class Aws::WAFV2::Types::OverrideAction
The override action to apply to the rules in a rule group. Used only for rule statements that reference a rule group, like `RuleGroupReferenceStatement` and `ManagedRuleGroupStatement`.
Set the override action to none to leave the rule actions in effect. Set it to count to only count matches, regardless of the rule action settings.
In a Rule
, you must specify either this `OverrideAction` setting or the rule `Action` setting, but not both:
-
If the rule statement references a rule group, use this override action setting and not the action setting.
-
If the rule statement does not reference a rule group, use the rule action setting and not this rule override action setting.
@note When making an API call, you may pass OverrideAction
data as a hash: { count: { custom_request_handling: { insert_headers: [ # required { name: "CustomHTTPHeaderName", # required value: "CustomHTTPHeaderValue", # required }, ], }, }, none: { }, }
@!attribute [rw] count
Override the rule action setting to count. @return [Types::CountAction]
@!attribute [rw] none
Don't override the rule action setting. @return [Types::NoneAction]
@see docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/OverrideAction AWS API Documentation
Constants
- SENSITIVE