Web Acl Rule Args
Rule of WebACL that contains condition and action.
Constructors
Properties
The action that AWS WAF should take on a web request when it matches the rule's statement. Settings at the web ACL level can override the rule action setting. This is used only for rules whose statements don't reference a rule group. Rule statements that reference a rule group are RuleGroupReferenceStatement
and ManagedRuleGroupStatement
. You must set either this Action
setting or the rule's OverrideAction
, but not both:
Specifies how AWS WAF should handle CAPTCHA
evaluations. If you don't specify this, AWS WAF uses the CAPTCHA
configuration that's defined for the web ACL.
Specifies how AWS WAF should handle Challenge
evaluations. If you don't specify this, AWS WAF uses the challenge configuration that's defined for the web ACL.
The name of the rule. If you change the name of a Rule
after you create it and you want the rule's metric name to reflect the change, update the metric name in the rule's VisibilityConfig
settings. AWS WAF doesn't automatically update the metric name when you update the rule name.
The override action to apply to the rules in a rule group, instead of the individual rule action settings. This is used only for rules whose statements reference a rule group. Rule statements that reference a rule group are RuleGroupReferenceStatement
and ManagedRuleGroupStatement
. Set the override action to none to leave the rule group rule actions in effect. Set it to count to only count matches, regardless of the rule action settings. You must set either this OverrideAction
setting or the Action
setting, but not both:
Collection of Rule Labels.
The AWS WAF processing statement for the rule, for example ByteMatchStatement
or SizeConstraintStatement
.
Defines and enables Amazon CloudWatch metrics and web request sample collection. If you change the name of a Rule
after you create it and you want the rule's metric name to reflect the change, update the metric name as well. AWS WAF doesn't automatically update the metric name.