Modifier and Type | Method and Description |
---|---|
CfnWebACL |
build() |
static CfnWebACL.Builder |
create(Construct scope,
java.lang.String id) |
CfnWebACL.Builder |
defaultAction(CfnWebACL.ActionProperty defaultAction)
The action to perform if none of the `Rules` contained in the `WebACL` match.
|
CfnWebACL.Builder |
defaultAction(IResolvable defaultAction)
The action to perform if none of the `Rules` contained in the `WebACL` match.
|
CfnWebACL.Builder |
metricName(java.lang.String metricName)
A name for the metrics for this `WebACL` .
|
CfnWebACL.Builder |
name(java.lang.String name)
A friendly name or description of the `WebACL` .
|
CfnWebACL.Builder |
rules(IResolvable rules)
An array that contains the action for each `Rule` in a `WebACL` , the priority of the `Rule` , and the ID of the `Rule` .
|
CfnWebACL.Builder |
rules(java.util.List<? extends java.lang.Object> rules)
An array that contains the action for each `Rule` in a `WebACL` , the priority of the `Rule` , and the ID of the `Rule` .
|
public static CfnWebACL.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.CfnWebACL.ActionProperty.Builder
.public CfnWebACL.Builder defaultAction(IResolvable defaultAction)
The action is specified by the WafAction
object.
defaultAction
- The action to perform if none of the `Rules` contained in the `WebACL` match. This parameter is required.this
public CfnWebACL.Builder defaultAction(CfnWebACL.ActionProperty defaultAction)
The action is specified by the WafAction
object.
defaultAction
- The action to perform if none of the `Rules` contained in the `WebACL` match. This parameter is required.this
public CfnWebACL.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 WebACL
.
metricName
- A name for the metrics for this `WebACL` . This parameter is required.this
public CfnWebACL.Builder name(java.lang.String name)
You can't change the name of a WebACL
after you create it.
name
- A friendly name or description of the `WebACL` . This parameter is required.this
public CfnWebACL.Builder rules(IResolvable rules)
rules
- An array that contains the action for each `Rule` in a `WebACL` , the priority of the `Rule` , and the ID of the `Rule` . This parameter is required.this
public CfnWebACL.Builder rules(java.util.List<? extends java.lang.Object> rules)
rules
- An array that contains the action for each `Rule` in a `WebACL` , the priority of the `Rule` , and the ID of the `Rule` . This parameter is required.this
public CfnWebACL build()