Class CfnRuleProps
Properties for defining a CfnRule.
Implements
Inherited Members
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 |
Properties
| MetricName | A name for the metrics for this |
| Name | The friendly name or description for the |
| Predicates | The |
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
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
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
Remarks
Type union: either IResolvable or (either IResolvable or CfnRule.IPredicateProperty)[]