interface DefaultActionProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.WAFv2.Mixins.CfnWebACLPropsMixin.DefaultActionProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awswafv2/mixins#CfnWebACLPropsMixin_DefaultActionProperty |
Java | software.amazon.awscdk.mixins.preview.services.wafv2.mixins.CfnWebACLPropsMixin.DefaultActionProperty |
Python | aws_cdk.mixins_preview.aws_wafv2.mixins.CfnWebACLPropsMixin.DefaultActionProperty |
TypeScript | @aws-cdk/mixins-preview » aws_wafv2 » mixins » CfnWebACLPropsMixin » DefaultActionProperty |
In a WebACL , this is the action that you want AWS WAF to perform when a web request doesn't match any of the rules in the WebACL .
The default action must be a terminating action.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as wafv2_mixins } from '@aws-cdk/mixins-preview/aws-wafv2';
const defaultActionProperty: wafv2_mixins.CfnWebACLPropsMixin.DefaultActionProperty = {
allow: {
customRequestHandling: {
insertHeaders: [{
name: 'name',
value: 'value',
}],
},
},
block: {
customResponse: {
customResponseBodyKey: 'customResponseBodyKey',
responseCode: 123,
responseHeaders: [{
name: 'name',
value: 'value',
}],
},
},
};
Properties
| Name | Type | Description |
|---|---|---|
| allow? | IResolvable | Allow | Specifies that AWS WAF should allow requests by default. |
| block? | IResolvable | Block | Specifies that AWS WAF should block requests by default. |
allow?
Type:
IResolvable | Allow
(optional)
Specifies that AWS WAF should allow requests by default.
block?
Type:
IResolvable | Block
(optional)
Specifies that AWS WAF should block requests by default.

.NET
Go
Java
Python
TypeScript