Interface CfnRuleProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnRuleProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.102.0 (build e354887)",
date="2024-08-23T05:56:24.759Z")
@Stability(Stable)
public interface CfnRuleProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnRule
.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.waf.*; CfnRuleProps cfnRuleProps = CfnRuleProps.builder() .metricName("metricName") .name("name") // the properties below are optional .predicates(List.of(PredicateProperty.builder() .dataId("dataId") .negated(false) .type("type") .build())) .build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnRuleProps
static final class
An implementation forCfnRuleProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic CfnRuleProps.Builder
builder()
The name of the metrics for thisRule
.getName()
The friendly name or description for theRule
.default Object
ThePredicates
object contains onePredicate
element for eachByteMatchSet
,IPSet
, orSqlInjectionMatchSet
object that you want to include in aRule
.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMetricName
The name of the metrics for thisRule
.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 theRule
.- See Also:
-
getName
The friendly name or description for theRule
.You can't change the name of a
Rule
after you create it.- See Also:
-
getPredicates
ThePredicates
object contains onePredicate
element for eachByteMatchSet
,IPSet
, orSqlInjectionMatchSet
object that you want to include in aRule
.- See Also:
-
builder
- Returns:
- a
CfnRuleProps.Builder
ofCfnRuleProps
-