CfnSizeConstraintSetProps

class aws_cdk.aws_waf.CfnSizeConstraintSetProps(*, name, size_constraints)

Bases: object

Properties for defining a CfnSizeConstraintSet.

Parameters:
  • name (str) – The name, if any, of the SizeConstraintSet .

  • size_constraints (Union[IResolvable, Sequence[Union[IResolvable, SizeConstraintProperty, Dict[str, Any]]]]) – The size constraint and the part of the web request to check.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-sizeconstraintset.html

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 .

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-sizeconstraintset.html#cfn-waf-sizeconstraintset-name

size_constraints

The size constraint and the part of the web request to check.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-sizeconstraintset.html#cfn-waf-sizeconstraintset-sizeconstraints