class Aws::WAFV2::Types::RuleAction
The action that WAF should take on a web request when it matches a rule's statement. Settings at the web ACL level can override the rule action setting.
@note When making an API call, you may pass RuleAction
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 }, ], }, }, count: { custom_request_handling: { insert_headers: [ # required { name: "CustomHTTPHeaderName", # required value: "CustomHTTPHeaderValue", # required }, ], }, }, }
@!attribute [rw] block
Instructs WAF to block the web request. @return [Types::BlockAction]
@!attribute [rw] allow
Instructs WAF to allow the web request. @return [Types::AllowAction]
@!attribute [rw] count
Instructs WAF to count the web request and allow it. @return [Types::CountAction]
@see docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/RuleAction AWS API Documentation
Constants
- SENSITIVE