Class CfnWebACL.ActivatedRuleProperty
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
).
Inheritance
Implements
Namespace: Amazon.CDK.AWS.WAF
Assembly: Amazon.CDK.AWS.WAF.dll
Syntax (csharp)
public class ActivatedRuleProperty : Object, CfnWebACL.IActivatedRuleProperty
Syntax (vb)
Public Class ActivatedRuleProperty
Inherits Object
Implements CfnWebACL.IActivatedRuleProperty
Remarks
To specify whether to insert or delete a Rule
, use the Action
parameter in the WebACLUpdate
data type.
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-webacl-rules.html
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
Constructors
ActivatedRuleProperty() |
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 |
Constructors
ActivatedRuleProperty()
public ActivatedRuleProperty()
Properties
Action
Specifies the action that Amazon CloudFront or AWS WAF takes when a web request matches the conditions in the Rule
.
public object Action { get; set; }
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.
public double Priority { get; set; }
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
.
public string RuleId { get; set; }
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
.