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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-wafv2/lib/aws-sdk-wafv2/types.rb

Overview

Note:

When making an API call, you may pass DefaultAction data as a 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.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#allowTypes::AllowAction

Specifies that AWS WAF should allow requests by default.

Returns:

  • (Types::AllowAction)


1710
1711
1712
1713
1714
1715
# File 'gems/aws-sdk-wafv2/lib/aws-sdk-wafv2/types.rb', line 1710

class DefaultAction < Struct.new(
  :block,
  :allow)
  SENSITIVE = []
  include Aws::Structure
end

#blockTypes::BlockAction

Specifies that AWS WAF should block requests by default.

Returns:

  • (Types::BlockAction)


1710
1711
1712
1713
1714
1715
# File 'gems/aws-sdk-wafv2/lib/aws-sdk-wafv2/types.rb', line 1710

class DefaultAction < Struct.new(
  :block,
  :allow)
  SENSITIVE = []
  include Aws::Structure
end