class CfnRegexPatternSetPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.WAFRegional.Mixins.CfnRegexPatternSetPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awswafregional/mixins#CfnRegexPatternSetPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.wafregional.mixins.CfnRegexPatternSetPropsMixin |
Python | aws_cdk.mixins_preview.aws_wafregional.mixins.CfnRegexPatternSetPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_wafregional » mixins » CfnRegexPatternSetPropsMixin |
Implements
IMixin
Extends
Mixin
The RegexPatternSet specifies the regular expression (regex) pattern that you want AWS WAF to search for, such as B[a@]dB[o0]t .
You can then configure AWS WAF to reject those requests.
Note that you can only create regex pattern sets using a CloudFormation template. To add the regex pattern sets created through CloudFormation to a RegexMatchSet, use the AWS WAF console, API, or command line interface (CLI). For more information, see UpdateRegexMatchSet .
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as wafregional_mixins } from '@aws-cdk/mixins-preview/aws-wafregional';
const cfnRegexPatternSetPropsMixin = new wafregional_mixins.CfnRegexPatternSetPropsMixin({
name: 'name',
regexPatternStrings: ['regexPatternStrings'],
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnRegexPatternSetPropsMixin(props: CfnRegexPatternSetMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Regex Pattern Set Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::WAFRegional::RegexPatternSet.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript