AWS::WAF::SizeConstraintSet> AWS WAF Classic support will end on September 30, 2025. > > This is *AWS WAF Classic* documentation. For more information, see [AWS WAF Classic](https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html) in the developer guide. > > *For the latest version of AWS WAF* , use the AWS WAF V2 API and see the [AWS WAF Developer Guide](https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html) . With the latest version, AWS WAF has a single set of endpoints for regional and global use. A complex type that contains `SizeConstraint` objects, which specify the parts of web requests that you want AWS WAF to inspect the size of. If a `SizeConstraintSet` contains more than one `SizeConstraint` object, a request only needs to match one constraint to be considered a match.
import { CfnSizeConstraintSet } from 'aws-cdk-lib/aws-waf';Or use the module namespace:
import * as waf from 'aws-cdk-lib/aws-waf';
// waf.CfnSizeConstraintSetConfiguration passed to the constructor as CfnSizeConstraintSetProps.
nameRequiredstringThe name, if any, of the `SizeConstraintSet` .
sizeConstraintsRequiredIResolvable | IResolvable | SizeConstraintProperty[]The size constraint and the part of the web request to check.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-wafAWS::WAF::SizeConstraintSet