CfnSizeConstraintSetProps
- class aws_cdk.aws_waf.CfnSizeConstraintSetProps(*, name, size_constraints)
Bases:
objectProperties for defining a
CfnSizeConstraintSet.- Parameters:
name (
str) – The name, if any, of theSizeConstraintSet.size_constraints (
Union[IResolvable,Sequence[Union[IResolvable,SizeConstraintProperty,Dict[str,Any]]]]) – The size constraint and the part of the web request to check.
- Link:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_waf as waf cfn_size_constraint_set_props = waf.CfnSizeConstraintSetProps( name="name", size_constraints=[waf.CfnSizeConstraintSet.SizeConstraintProperty( comparison_operator="comparisonOperator", field_to_match=waf.CfnSizeConstraintSet.FieldToMatchProperty( type="type", # the properties below are optional data="data" ), size=123, text_transformation="textTransformation" )] )
Attributes
- name
The name, if any, of the
SizeConstraintSet.
- size_constraints
The size constraint and the part of the web request to check.