CfnByteMatchSetProps

class aws_cdk.aws_wafregional.CfnByteMatchSetProps(*, name, byte_match_tuples=None)

Bases: object

Properties for defining a CfnByteMatchSet.

Parameters
  • name (str) – A friendly name or description of the ByteMatchSet . You can’t change Name after you create a ByteMatchSet .

  • byte_match_tuples (Union[IResolvable, Sequence[Union[IResolvable, ByteMatchTupleProperty]], None]) – Specifies the bytes (typically a string that corresponds with ASCII characters) that you want AWS WAF to search for in web requests, the location in requests that you want AWS WAF to search, and other settings.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-bytematchset.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_byte_match_set_props = wafregional.CfnByteMatchSetProps(
    name="name",

    # the properties below are optional
    byte_match_tuples=[wafregional.CfnByteMatchSet.ByteMatchTupleProperty(
        field_to_match=wafregional.CfnByteMatchSet.FieldToMatchProperty(
            type="type",

            # the properties below are optional
            data="data"
        ),
        positional_constraint="positionalConstraint",
        text_transformation="textTransformation",

        # the properties below are optional
        target_string="targetString",
        target_string_base64="targetStringBase64"
    )]
)

Attributes

byte_match_tuples

Specifies the bytes (typically a string that corresponds with ASCII characters) that you want AWS WAF to search for in web requests, the location in requests that you want AWS WAF to search, and other settings.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-bytematchset.html#cfn-wafregional-bytematchset-bytematchtuples

Return type

Union[IResolvable, List[Union[IResolvable, ByteMatchTupleProperty]], None]

name

A friendly name or description of the ByteMatchSet .

You can’t change Name after you create a ByteMatchSet .

Link

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

Return type

str