class CfnXssMatchSetPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.WAFRegional.Mixins.CfnXssMatchSetPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awswafregional/mixins#CfnXssMatchSetPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.wafregional.mixins.CfnXssMatchSetPropsMixin |
Python | aws_cdk.mixins_preview.aws_wafregional.mixins.CfnXssMatchSetPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_wafregional » mixins » CfnXssMatchSetPropsMixin |
Implements
IMixin
Extends
Mixin
AWS WAF Classic support will end on September 30, 2025.
This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide.
For the latest version of AWS WAF , use the AWS WAF V2 API and see the AWS WAF Developer Guide . With the latest version, AWS WAF has a single set of endpoints for regional and global use.
A complex type that contains XssMatchTuple objects, which specify the parts of web requests that you want AWS WAF to inspect for cross-site scripting attacks and, if you want AWS WAF to inspect a header, the name of the header. If a XssMatchSet contains more than one XssMatchTuple object, a request needs to include cross-site scripting attacks in only one of the specified parts of the request to be considered a match.
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 cfnXssMatchSetPropsMixin = new wafregional_mixins.CfnXssMatchSetPropsMixin({
name: 'name',
xssMatchTuples: [{
fieldToMatch: {
data: 'data',
type: 'type',
},
textTransformation: 'textTransformation',
}],
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnXssMatchSetPropsMixin(props: CfnXssMatchSetMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Xss Match Set Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::WAFRegional::XssMatchSet.
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