class CfnWebACLPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.WAFRegional.Mixins.CfnWebACLPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awswafregional/mixins#CfnWebACLPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.wafregional.mixins.CfnWebACLPropsMixin |
Python | aws_cdk.mixins_preview.aws_wafregional.mixins.CfnWebACLPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_wafregional » mixins » CfnWebACLPropsMixin |
Implements
IMixin
Extends
Mixin
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.
Contains the Rules that identify the requests that you want to allow, block, or count. In a WebACL , you also specify a default action ( ALLOW or BLOCK ), and the action for each Rule that you add to a WebACL , for example, block requests from specified IP addresses or block requests from specified referrers. If you add more than one Rule to a WebACL , a request needs to match only one of the specifications to be allowed, blocked, or counted.
To identify the requests that you want AWS WAF to filter, you associate the WebACL with an API Gateway API or an Application Load Balancer.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-webacl.html
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 cfnWebACLPropsMixin = new wafregional_mixins.CfnWebACLPropsMixin({
defaultAction: {
type: 'type',
},
metricName: 'metricName',
name: 'name',
rules: [{
action: {
type: 'type',
},
priority: 123,
ruleId: 'ruleId',
}],
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnWebACLPropsMixin(props: CfnWebACLMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Web ACLMixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::WAFRegional::WebACL.
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