interface ActionProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.WAFRegional.CfnWebACL.ActionProperty |
![]() | software.amazon.awscdk.services.waf.regional.CfnWebACL.ActionProperty |
![]() | aws_cdk.aws_wafregional.CfnWebACL.ActionProperty |
![]() | @aws-cdk/aws-wafregional » CfnWebACL » ActionProperty |
Specifies the action AWS WAF takes when a web request matches or doesn't match all rule conditions.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as wafregional from '@aws-cdk/aws-wafregional';
const actionProperty: wafregional.CfnWebACL.ActionProperty = {
type: 'type',
};
Properties
Name | Type | Description |
---|---|---|
type | string | For actions that are associated with a rule, the action that AWS WAF takes when a web request matches all conditions in a rule. |
type
Type:
string
For actions that are associated with a rule, the action that AWS WAF takes when a web request matches all conditions in a rule.
For the default action of a web access control list (ACL), the action that AWS WAF takes when a web request doesn't match all conditions in any rule.
Valid settings include the following:
ALLOW
: AWS WAF allows requestsBLOCK
: AWS WAF blocks requestsCOUNT
: AWS WAF increments a counter of the requests that match all of the conditions in the rule. AWS WAF then continues to inspect the web request based on the remaining rules in the web ACL. You can't specifyCOUNT
for the default action for a WebACL.