You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::WAFV2::Types::DefaultAction

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing DefaultAction as input to an Aws::Client method, you can use a vanilla Hash:

{
  block: {
  },
  allow: {
  },
}

This is the latest version of AWS WAF, named AWS WAFV2, released in November, 2019. For information, including how to migrate your AWS WAF resources from the prior release, see the AWS WAF Developer Guide.

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, so count is not allowed.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#allowTypes::AllowAction

Specifies that AWS WAF should allow requests by default.

Returns:

#blockTypes::BlockAction

Specifies that AWS WAF should block requests by default.

Returns: