Show / Hide Table of Contents

Class CfnRuleProps

Properties for defining a CfnRule.

Inheritance
object
CfnRuleProps
Implements
ICfnRuleProps
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.WAFRegional
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnRuleProps : ICfnRuleProps
Syntax (vb)
Public Class CfnRuleProps Implements ICfnRuleProps
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-rule.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.WAFRegional;

             var cfnRuleProps = new CfnRuleProps {
                 MetricName = "metricName",
                 Name = "name",

                 // the properties below are optional
                 Predicates = new [] { new PredicateProperty {
                     DataId = "dataId",
                     Negated = false,
                     Type = "type"
                 } }
             };

Synopsis

Constructors

CfnRuleProps()

Properties for defining a CfnRule.

Properties

MetricName

A name for the metrics for this Rule .

Name

The friendly name or description for the Rule .

Predicates

The Predicates object contains one Predicate element for each ByteMatchSet , IPSet , or SqlInjectionMatchSet object that you want to include in a Rule .

Constructors

CfnRuleProps()

Properties for defining a CfnRule.

public CfnRuleProps()
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-rule.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.WAFRegional;

             var cfnRuleProps = new CfnRuleProps {
                 MetricName = "metricName",
                 Name = "name",

                 // the properties below are optional
                 Predicates = new [] { new PredicateProperty {
                     DataId = "dataId",
                     Negated = false,
                     Type = "type"
                 } }
             };

Properties

MetricName

A name for the metrics for this Rule .

public string MetricName { get; set; }
Property Value

string

Remarks

The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't contain whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't change MetricName after you create the Rule .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-rule.html#cfn-wafregional-rule-metricname

Name

The friendly name or description for the Rule .

public string Name { get; set; }
Property Value

string

Remarks

You can't change the name of a Rule after you create it.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-rule.html#cfn-wafregional-rule-name

Predicates

The Predicates object contains one Predicate element for each ByteMatchSet , IPSet , or SqlInjectionMatchSet object that you want to include in a Rule .

public object? Predicates { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-rule.html#cfn-wafregional-rule-predicates

Implements

ICfnRuleProps
Back to top Generated by DocFX