Class CfnWebACLPropsMixin.SqliMatchStatementProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.wafv2.CfnWebACLPropsMixin.SqliMatchStatementProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebACLPropsMixin.SqliMatchStatementProperty>
- Enclosing interface:
CfnWebACLPropsMixin.SqliMatchStatementProperty
@Stability(Stable)
public static final class CfnWebACLPropsMixin.SqliMatchStatementProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWebACLPropsMixin.SqliMatchStatementProperty>
A builder for
CfnWebACLPropsMixin.SqliMatchStatementProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.fieldToMatch(CfnWebACLPropsMixin.FieldToMatchProperty fieldToMatch) Sets the value ofCfnWebACLPropsMixin.SqliMatchStatementProperty.getFieldToMatch()fieldToMatch(IResolvable fieldToMatch) Sets the value ofCfnWebACLPropsMixin.SqliMatchStatementProperty.getFieldToMatch()sensitivityLevel(String sensitivityLevel) Sets the value ofCfnWebACLPropsMixin.SqliMatchStatementProperty.getSensitivityLevel()textTransformations(List<? extends Object> textTransformations) Sets the value ofCfnWebACLPropsMixin.SqliMatchStatementProperty.getTextTransformations()textTransformations(IResolvable textTransformations) Sets the value ofCfnWebACLPropsMixin.SqliMatchStatementProperty.getTextTransformations()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fieldToMatch
@Stability(Stable) public CfnWebACLPropsMixin.SqliMatchStatementProperty.Builder fieldToMatch(IResolvable fieldToMatch) Sets the value ofCfnWebACLPropsMixin.SqliMatchStatementProperty.getFieldToMatch()- Parameters:
fieldToMatch- The part of the web request that you want AWS WAF to inspect.- Returns:
this
-
fieldToMatch
@Stability(Stable) public CfnWebACLPropsMixin.SqliMatchStatementProperty.Builder fieldToMatch(CfnWebACLPropsMixin.FieldToMatchProperty fieldToMatch) Sets the value ofCfnWebACLPropsMixin.SqliMatchStatementProperty.getFieldToMatch()- Parameters:
fieldToMatch- The part of the web request that you want AWS WAF to inspect.- Returns:
this
-
sensitivityLevel
@Stability(Stable) public CfnWebACLPropsMixin.SqliMatchStatementProperty.Builder sensitivityLevel(String sensitivityLevel) Sets the value ofCfnWebACLPropsMixin.SqliMatchStatementProperty.getSensitivityLevel()- Parameters:
sensitivityLevel- The sensitivity that you want AWS WAF to use to inspect for SQL injection attacks.HIGHdetects more attacks, but might generate more false positives, especially if your web requests frequently contain unusual strings. For information about identifying and mitigating false positives, see Testing and tuning in the AWS WAF Developer Guide .LOWis generally a better choice for resources that already have other protections against SQL injection attacks or that have a low tolerance for false positives.Default:
LOW- Returns:
this
-
textTransformations
@Stability(Stable) public CfnWebACLPropsMixin.SqliMatchStatementProperty.Builder textTransformations(IResolvable textTransformations) Sets the value ofCfnWebACLPropsMixin.SqliMatchStatementProperty.getTextTransformations()- Parameters:
textTransformations- Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. If you specify one or more transformations in a rule statement, AWS WAF performs all transformations on the content of the request component identified byFieldToMatch, starting from the lowest priority setting, before inspecting the content for a match.- Returns:
this
-
textTransformations
@Stability(Stable) public CfnWebACLPropsMixin.SqliMatchStatementProperty.Builder textTransformations(List<? extends Object> textTransformations) Sets the value ofCfnWebACLPropsMixin.SqliMatchStatementProperty.getTextTransformations()- Parameters:
textTransformations- Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. If you specify one or more transformations in a rule statement, AWS WAF performs all transformations on the content of the request component identified byFieldToMatch, starting from the lowest priority setting, before inspecting the content for a match.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWebACLPropsMixin.SqliMatchStatementProperty>- Returns:
- a new instance of
CfnWebACLPropsMixin.SqliMatchStatementProperty - Throws:
NullPointerException- if any required attribute was not provided
-