Class: Aws::WAFV2::Types::BlockAction
- Inherits:
-
Struct
- Object
- Struct
- Aws::WAFV2::Types::BlockAction
- Defined in:
- gems/aws-sdk-wafv2/lib/aws-sdk-wafv2/types.rb
Overview
Note:
When making an API call, you may pass BlockAction data as a hash:
{
custom_response: {
response_code: 1, # required
custom_response_body_key: "EntityName",
response_headers: [
{
name: "CustomHTTPHeaderName", # required
value: "CustomHTTPHeaderValue", # required
},
],
},
}
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
-
#custom_response ⇒ Types::CustomResponse
Defines a custom response for the web request.
Instance Attribute Details
#custom_response ⇒ Types::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 in the WAF Developer Guide.
637 638 639 640 641 |
# File 'gems/aws-sdk-wafv2/lib/aws-sdk-wafv2/types.rb', line 637 class BlockAction < Struct.new( :custom_response) SENSITIVE = [] include Aws::Structure end |