CfnRegexPatternSetPropsMixin
- class aws_cdk.mixins_preview.aws_wafv2.mixins.CfnRegexPatternSetPropsMixin(props, *, strategy=None)
Bases:
MixinThis 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
RegexPatternSetto 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:
- 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.mixins_preview import mixins from aws_cdk.mixins_preview.aws_wafv2 import mixins as wafv2_mixins cfn_regex_pattern_set_props_mixin = wafv2_mixins.CfnRegexPatternSetPropsMixin(wafv2_mixins.CfnRegexPatternSetMixinProps( description="description", name="name", regular_expression_list=["regularExpressionList"], scope="scope", tags=[CfnTag( key="key", value="value" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::WAFv2::RegexPatternSet.- Parameters:
props (
Union[CfnRegexPatternSetMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- 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)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental