DefaultAction - Amazon WAFV2
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

DefaultAction

In a WebACL, this is the action that you want Amazon 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 Amazon WAF should allow requests by default.

Type: AllowAction object

Required: No

Block

Specifies that Amazon 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 Amazon SDKs, see the following: