Show / Hide Table of Contents

Interface ICfnRuleProps

Properties for defining a CfnRule.

Namespace: Amazon.CDK.AWS.WAF
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnRuleProps
Syntax (vb)
Public Interface ICfnRuleProps
Remarks

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

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

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

Synopsis

Properties

MetricName

The name of 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 .

Properties

MetricName

The name of the metrics for this Rule .

string MetricName { get; }
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-waf-rule.html#cfn-waf-rule-metricname

Name

The friendly name or description for the Rule .

string Name { get; }
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-waf-rule.html#cfn-waf-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 .

object? Predicates { get; }
Property Value

object

Remarks

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

Back to top Generated by DocFX