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 ).
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.WAF
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnWebACL.ActivatedRuleProperty : CfnWebACL.IActivatedRuleProperty
Syntax (vb)
Public Class CfnWebACL.ActivatedRuleProperty Implements CfnWebACL.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
Constructors
| ActivatedRuleProperty() | The |
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()
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 ).
public ActivatedRuleProperty()
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"
}
};
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
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 .
Type union: either IResolvable or CfnWebACL.IWafActionProperty
Priority
Specifies the order in which the Rules in a WebACL are evaluated.
public double Priority { get; set; }
Property Value
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
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 .