Interface CfnSizeConstraintSetPropsMixin.SizeConstraintProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnSizeConstraintSetPropsMixin.SizeConstraintProperty.Jsii$Proxy
Enclosing class:
CfnSizeConstraintSetPropsMixin

@Stability(Stable) public static interface CfnSizeConstraintSetPropsMixin.SizeConstraintProperty extends software.amazon.jsii.JsiiSerializable

AWS WAF Classic support will end on September 30, 2025.

This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide.

For the latest version of AWS WAF , use the AWS WAF V2 API and see the AWS WAF Developer Guide . With the latest version, AWS WAF has a single set of endpoints for regional and global use.

Specifies a constraint on the size of a part of the web request. AWS WAF uses the Size , ComparisonOperator , and FieldToMatch to build an expression in the form of " Size ComparisonOperator size in bytes of FieldToMatch ". If that expression is true, the SizeConstraint is considered to match.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.cfnpropertymixins.services.wafregional.*;
 SizeConstraintProperty sizeConstraintProperty = SizeConstraintProperty.builder()
         .comparisonOperator("comparisonOperator")
         .fieldToMatch(FieldToMatchProperty.builder()
                 .data("data")
                 .type("type")
                 .build())
         .size(123)
         .textTransformation("textTransformation")
         .build();
 

See Also: