CfnRegexPatternSetPropsMixin

class aws_cdk.cfn_property_mixins.aws_wafv2.CfnRegexPatternSetPropsMixin(props, *, strategy=None)

Bases: Mixin

This is the latest version of AWS WAF , named AWS WAF V2, released in November, 2019.

For information, including how to migrate your AWS WAF resources from the prior release, see the AWS WAF developer guide .

Use an RegexPatternSet to have AWS WAF inspect a web request component for a specific set of regular expression patterns.

You use a regex pattern set by providing its Amazon Resource Name (ARN) to the rule statement RegexPatternSetReferenceStatement , when you add a rule to a rule group or web ACL.

see:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-regexpatternset.html

cloudformationResource:

AWS::WAFv2::RegexPatternSet

mixin:

true

exampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.cfn_property_mixins import aws_wafv2 as wafv2
import aws_cdk as cdk

# merge_strategy: cdk.IMergeStrategy

cfn_regex_pattern_set_props_mixin = wafv2.CfnRegexPatternSetPropsMixin(wafv2.CfnRegexPatternSetMixinProps(
    description="description",
    name="name",
    regular_expression_list=["regularExpressionList"],
    scope="scope",
    tags=[cdk.CfnTag(
        key="key",
        value="value"
    )]
),
    strategy=merge_strategy
)

Create a mixin to apply properties to AWS::WAFv2::RegexPatternSet.

Parameters:
  • props (Union[CfnRegexPatternSetMixinProps, Dict[str, Any]]) – L1 properties to apply.

  • strategy (Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

None

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['description', 'name', 'regularExpressionList', 'scope', 'tags']

Static Methods

classmethod is_mixin(x)

Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.