Interface CfnWebACL.IActivatedRuleProperty
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
).
Namespace: Amazon.CDK.AWS.WAF
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IActivatedRuleProperty
Syntax (vb)
Public Interface IActivatedRuleProperty
Remarks
To specify whether to insert or delete a Rule
, use the Action
parameter in the WebACLUpdate
data type.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.WAF;
var activatedRuleProperty = new ActivatedRuleProperty {
Priority = 123,
RuleId = "ruleId",
// the properties below are optional
Action = new WafActionProperty {
Type = "type"
}
};
Synopsis
Properties
Action | Specifies the action that Amazon CloudFront or AWS WAF takes when a web request matches the conditions in the |
Priority | Specifies the order in which the |
RuleId | The |
Properties
Action
Specifies the action that Amazon CloudFront or AWS WAF takes when a web request matches the conditions in the Rule
.
virtual object Action { get; }
Property Value
System.Object
Remarks
Valid values for Action
include the following:
ActivatedRule|OverrideAction
applies only when updating or adding a RuleGroup
to a WebACL
. In this case, you do not use ActivatedRule|Action
. For all other update requests, ActivatedRule|Action
is used instead of ActivatedRule|OverrideAction
.
Priority
Specifies the order in which the Rules
in a WebACL
are evaluated.
double Priority { get; }
Property Value
System.Double
Remarks
Rules with a lower value for Priority
are evaluated before Rules
with a higher value. The value must be a unique integer. If you add multiple Rules
to a WebACL
, the values don't need to be consecutive.
RuleId
The RuleId
for a Rule
.
string RuleId { get; }
Property Value
System.String
Remarks
You use RuleId
to get more information about a Rule
, update a Rule
, insert a Rule
into a WebACL
or delete a one from a WebACL
, or delete a Rule
from AWS WAF .
RuleId
is returned by CreateRule
and by ListRules
.