@Stability(value=Stable) public static final class CfnWebACLProps.Builder extends Object implements software.amazon.jsii.Builder<CfnWebACLProps>
CfnWebACLProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnWebACLProps |
build()
Builds the configured instance.
|
CfnWebACLProps.Builder |
defaultAction(CfnWebACL.ActionProperty defaultAction)
Sets the value of
CfnWebACLProps.getDefaultAction() |
CfnWebACLProps.Builder |
defaultAction(IResolvable defaultAction)
Sets the value of
CfnWebACLProps.getDefaultAction() |
CfnWebACLProps.Builder |
metricName(String metricName)
Sets the value of
CfnWebACLProps.getMetricName() |
CfnWebACLProps.Builder |
name(String name)
Sets the value of
CfnWebACLProps.getName() |
CfnWebACLProps.Builder |
rules(IResolvable rules)
Sets the value of
CfnWebACLProps.getRules() |
CfnWebACLProps.Builder |
rules(List<? extends Object> rules)
Sets the value of
CfnWebACLProps.getRules() |
@Stability(value=Stable) public CfnWebACLProps.Builder defaultAction(CfnWebACL.ActionProperty defaultAction)
CfnWebACLProps.getDefaultAction()defaultAction - The action to perform if none of the `Rules` contained in the `WebACL` match. This parameter is required.
The action is specified by the WafAction object.this@Stability(value=Stable) public CfnWebACLProps.Builder defaultAction(IResolvable defaultAction)
CfnWebACLProps.getDefaultAction()defaultAction - The action to perform if none of the `Rules` contained in the `WebACL` match. This parameter is required.
The action is specified by the WafAction object.this@Stability(value=Stable) public CfnWebACLProps.Builder metricName(String metricName)
CfnWebACLProps.getMetricName()metricName - A name for the metrics for this `WebACL` . This parameter is required.
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 .this@Stability(value=Stable) public CfnWebACLProps.Builder name(String name)
CfnWebACLProps.getName()name - A friendly name or description of the `WebACL` . This parameter is required.
You can't change the name of a WebACL after you create it.this@Stability(value=Stable) public CfnWebACLProps.Builder rules(IResolvable rules)
CfnWebACLProps.getRules()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@Stability(value=Stable) public CfnWebACLProps.Builder rules(List<? extends Object> rules)
CfnWebACLProps.getRules()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@Stability(value=Stable) public CfnWebACLProps build()
build in interface software.amazon.jsii.Builder<CfnWebACLProps>CfnWebACLPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.