@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-05-19T23:09:23.334Z") @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.regional.*; 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()
A name for 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 CfnRuleProps
Copyright © 2023. All rights reserved.