AWS::WAF::WebACL ActivatedRule
The ActivatedRule
object in an UpdateWebACL
request specifies a Rule
that you want to insert or delete,
the priority of the Rule
in the WebACL
, and the action that you want AWS WAF to take when a web request matches the Rule
(ALLOW
, BLOCK
, or COUNT
).
To specify whether to insert or delete a Rule
, use the Action
parameter in the WebACLUpdate
data type.
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
Properties
Action
-
Specifies the action that Amazon CloudFront or AWS WAF takes when a web request matches the conditions in the
Rule
. Valid values forAction
include the following:-
ALLOW
: CloudFront responds with the requested object. -
BLOCK
: CloudFront responds with an HTTP 403 (Forbidden) status code. -
COUNT
: AWS WAF increments a counter of requests that match the conditions in the rule and then continues to inspect the web request based on the remaining rules in the web ACL.
ActivatedRule|OverrideAction
applies only when updating or adding aRuleGroup
to aWebACL
. In this case, you do not useActivatedRule|Action
. For all other update requests,ActivatedRule|Action
is used instead ofActivatedRule|OverrideAction
.Required: No
Type: WafAction
Update requires: No interruption
-
Priority
-
Specifies the order in which the
Rules
in aWebACL
are evaluated. Rules with a lower value forPriority
are evaluated beforeRules
with a higher value. The value must be a unique integer. If you add multipleRules
to aWebACL
, the values don't need to be consecutive.Required: Yes
Type: Integer
Update requires: No interruption
RuleId
-
The
RuleId
for aRule
. You useRuleId
to get more information about aRule
, update aRule
, insert aRule
into aWebACL
or delete a one from aWebACL
, or delete aRule
from AWS WAF.RuleId
is returned byCreateRule
and byListRules
.Required: Yes
Type: String
Pattern:
.*\S.*
Minimum:
1
Maximum:
128
Update requires: No interruption