class Aws::WAFV2::Types::BlockAction
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
.
@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 }, ], }, }
@!attribute [rw] custom_response
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][2]. [1]: https://docs.aws.amazon.com/waf/latest/developerguide/waf-custom-request-response.html [2]: https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html @return [Types::CustomResponse]
@see docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/BlockAction AWS API Documentation
Constants
- SENSITIVE