class CfnWebACLPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.WAF.Mixins.CfnWebACLPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awswaf/mixins#CfnWebACLPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.waf.mixins.CfnWebACLPropsMixin |
Python | aws_cdk.mixins_preview.aws_waf.mixins.CfnWebACLPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_waf » 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. You also associate the WebACL with a Amazon CloudFront distribution to identify the requests that you want AWS WAF to filter. 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.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-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 waf_mixins } from '@aws-cdk/mixins-preview/aws-waf';
const cfnWebACLPropsMixin = new waf_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::WAF::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