CfnSizeConstraintSetProps

class aws_cdk.aws_wafregional.CfnSizeConstraintSetProps(*, name, size_constraints=None)

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]]], None]) – The size constraint and the part of the web request to check.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-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_wafregional as wafregional

cfn_size_constraint_set_props = wafregional.CfnSizeConstraintSetProps(
    name="name",

    # the properties below are optional
    size_constraints=[wafregional.CfnSizeConstraintSet.SizeConstraintProperty(
        comparison_operator="comparisonOperator",
        field_to_match=wafregional.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-wafregional-sizeconstraintset.html#cfn-wafregional-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-wafregional-sizeconstraintset.html#cfn-wafregional-sizeconstraintset-sizeconstraints