Modifier and Type | Method and Description |
---|---|
CfnRule |
build() |
static CfnRule.Builder |
create(Construct scope,
java.lang.String id) |
CfnRule.Builder |
metricName(java.lang.String metricName)
A name for the metrics for this `Rule` .
|
CfnRule.Builder |
name(java.lang.String name)
The friendly name or description for the `Rule` .
|
CfnRule.Builder |
predicates(IResolvable predicates)
The `Predicates` object contains one `Predicate` element for each `ByteMatchSet` , `IPSet` , or `SqlInjectionMatchSet` object that you want to include in a `Rule` .
|
CfnRule.Builder |
predicates(java.util.List<? extends java.lang.Object> predicates)
The `Predicates` object contains one `Predicate` element for each `ByteMatchSet` , `IPSet` , or `SqlInjectionMatchSet` object that you want to include in a `Rule` .
|
public static CfnRule.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnRule.PredicateProperty.Builder
.public CfnRule.Builder metricName(java.lang.String metricName)
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
.
metricName
- A name for the metrics for this `Rule` . This parameter is required.this
public CfnRule.Builder name(java.lang.String name)
You can't change the name of a Rule
after you create it.
name
- The friendly name or description for the `Rule` . This parameter is required.this
public CfnRule.Builder predicates(IResolvable predicates)
predicates
- The `Predicates` object contains one `Predicate` element for each `ByteMatchSet` , `IPSet` , or `SqlInjectionMatchSet` object that you want to include in a `Rule` . This parameter is required.this
public CfnRule.Builder predicates(java.util.List<? extends java.lang.Object> predicates)
predicates
- The `Predicates` object contains one `Predicate` element for each `ByteMatchSet` , `IPSet` , or `SqlInjectionMatchSet` object that you want to include in a `Rule` . This parameter is required.this
public CfnRule build()