@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)",
date="2023-01-31T18:36:50.696Z")
public interface CfnRuleProps
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() |
java.lang.String |
getMetricName()
A name for the metrics for this `Rule` .
|
java.lang.String |
getName()
The friendly name or description for the `Rule` .
|
default java.lang.Object |
getPredicates()
The `Predicates` object contains one `Predicate` element for each `ByteMatchSet` , `IPSet` , or `SqlInjectionMatchSet` object that you want to include in a `Rule` .
|
java.lang.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
.
java.lang.String getName()
You can't change the name of a Rule
after you create it.
default java.lang.Object getPredicates()
static CfnRuleProps.Builder builder()
CfnRuleProps.Builder
of CfnRuleProps