@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.626Z") @Stability(value=Stable) public interface CfnRuleProps extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnRuleProps.Builder
A builder for
CfnRuleProps |
static class |
CfnRuleProps.Jsii$Proxy
An implementation for
CfnRuleProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnRuleProps.Builder |
builder() |
String |
getMetricName()
The name of the metrics for this `Rule` .
|
String |
getName()
The friendly name or description for the `Rule` .
|
default Object |
getPredicates()
The `Predicates` object contains one `Predicate` element for each `ByteMatchSet` , `IPSet` , or `SqlInjectionMatchSet` object that you want to include in a `Rule` .
|
@Stability(value=Stable) @NotNull String getMetricName()
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 .
@Stability(value=Stable) @NotNull String getName()
You can't change the name of a Rule after you create it.
@Stability(value=Stable) @Nullable default Object getPredicates()
@Stability(value=Stable) static CfnRuleProps.Builder builder()
CfnRuleProps.Builder of CfnRulePropsCopyright © 2022. All rights reserved.