class Aws::WAFV2::Types::DefaultAction

In a WebACL, this is the action that you want 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 you can't use count.

@note When making an API call, you may pass DefaultAction

data as a hash:

    {
      block: {
        custom_response: {
          response_code: 1, # required
          custom_response_body_key: "EntityName",
          response_headers: [
            {
              name: "CustomHTTPHeaderName", # required
              value: "CustomHTTPHeaderValue", # required
            },
          ],
        },
      },
      allow: {
        custom_request_handling: {
          insert_headers: [ # required
            {
              name: "CustomHTTPHeaderName", # required
              value: "CustomHTTPHeaderValue", # required
            },
          ],
        },
      },
    }

@!attribute [rw] block

Specifies that WAF should block requests by default.
@return [Types::BlockAction]

@!attribute [rw] allow

Specifies that WAF should allow requests by default.
@return [Types::AllowAction]

@see docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/DefaultAction AWS API Documentation

Constants

SENSITIVE