DefaultAction - AWS WAFV2
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

DefaultAction

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.

Contents

Allow

Specifies that AWS WAF should allow requests by default.

Type: AllowAction object

Required: No

Block

Specifies that AWS WAF should block requests by default.

Type: BlockAction object

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: