Class: Aws::WAFV2::Types::BlockAction

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

Overview

Specifies that WAF should block the request and optionally defines additional custom handling for the response to the web request.

This is used in the context of other settings, for example to specify values for RuleAction and web ACL DefaultAction.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#custom_responseTypes::CustomResponse

Defines a custom response for the web request.

For information about customizing web requests and responses, see

Customizing web requests and responses in WAF][1

in the *WAF

Developer Guide*.

[1]: docs.aws.amazon.com/waf/latest/developerguide/waf-custom-request-response.html



486
487
488
489
490
# File 'lib/aws-sdk-wafv2/types.rb', line 486

class BlockAction < Struct.new(
  :custom_response)
  SENSITIVE = []
  include Aws::Structure
end