Show / Hide Table of Contents

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 CfnWebACL.IActivatedRuleProperty
Syntax (vb)
Public Interface CfnWebACL.IActivatedRuleProperty
Remarks

To specify whether to insert or delete a Rule , use the Action parameter in the WebACLUpdate data type.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-webacl-activatedrule.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

Properties

Action

Specifies the action that Amazon CloudFront or AWS WAF takes when a web request matches the conditions in the Rule .

Priority

Specifies the order in which the Rules in a WebACL are evaluated.

RuleId

The RuleId for a Rule .

Properties

Action

Specifies the action that Amazon CloudFront or AWS WAF takes when a web request matches the conditions in the Rule .

object? Action { get; }
Property Value

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 .

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-webacl-activatedrule.html#cfn-waf-webacl-activatedrule-action

    Priority

    Specifies the order in which the Rules in a WebACL are evaluated.

    double Priority { get; }
    Property Value

    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.

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-webacl-activatedrule.html#cfn-waf-webacl-activatedrule-priority

    RuleId

    The RuleId for a Rule .

    string RuleId { get; }
    Property Value

    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 .

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-webacl-activatedrule.html#cfn-waf-webacl-activatedrule-ruleid

    Back to top Generated by DocFX