Class CfnRuleProps
Properties for defining a CfnRule
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.WAFRegional
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnRuleProps : Object, ICfnRuleProps
Syntax (vb)
Public Class CfnRuleProps
Inherits Object
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
Cfn |
Properties
Metric |
A name for the metrics for this |
Name | The friendly name or description for the |
Predicates | The |
Constructors
CfnRuleProps()
public CfnRuleProps()
Properties
MetricName
A name for the metrics for this Rule
.
public string MetricName { get; set; }
Property Value
System.
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
.
Name
The friendly name or description for the Rule
.
public string Name { get; set; }
Property Value
System.
Remarks
You can't change the name of a Rule
after you create it.
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
System.