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 |
Name | The friendly name or description for the |
Predicates | The |
Properties
MetricName
The name of the metrics for this Rule
.
string MetricName { get; }
Property Value
System.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
.
Name
The friendly name or description for the Rule
.
string Name { get; }
Property Value
System.String
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
.
virtual object Predicates { get; }
Property Value
System.Object