Class CfnWebACLPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.waf.CfnWebACLPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebACLPropsMixin>
- Enclosing class:
CfnWebACLPropsMixin
@Stability(Stable)
public static final class CfnWebACLPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWebACLPropsMixin>
A fluent builder for
CfnWebACLPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnWebACLPropsMixin.Buildercreate()static CfnWebACLPropsMixin.Buildercreate(CfnPropertyMixinOptions options) defaultAction(CfnWebACLPropsMixin.WafActionProperty defaultAction) The action to perform if none of theRulescontained in theWebACLmatch.defaultAction(IResolvable defaultAction) The action to perform if none of theRulescontained in theWebACLmatch.metricName(String metricName) The name of the metrics for thisWebACL.A friendly name or description of theWebACL.An array that contains the action for eachRulein aWebACL, the priority of theRule, and the ID of theRule.rules(IResolvable rules) An array that contains the action for eachRulein aWebACL, the priority of theRule, and the ID of theRule.
-
Method Details
-
create
@Stability(Stable) public static CfnWebACLPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnWebACLPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnWebACLPropsMixin.Builder.
-
defaultAction
The action to perform if none of theRulescontained in theWebACLmatch.The action is specified by the
WafActionobject.- Parameters:
defaultAction- The action to perform if none of theRulescontained in theWebACLmatch. This parameter is required.- Returns:
this- See Also:
-
defaultAction
@Stability(Stable) public CfnWebACLPropsMixin.Builder defaultAction(CfnWebACLPropsMixin.WafActionProperty defaultAction) The action to perform if none of theRulescontained in theWebACLmatch.The action is specified by the
WafActionobject.- Parameters:
defaultAction- The action to perform if none of theRulescontained in theWebACLmatch. This parameter is required.- Returns:
this- See Also:
-
metricName
The name of the metrics for thisWebACL.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
MetricNameafter you create theWebACL.- Parameters:
metricName- The name of the metrics for thisWebACL. This parameter is required.- Returns:
this- See Also:
-
name
A friendly name or description of theWebACL.You can't change the name of a
WebACLafter you create it.- Parameters:
name- A friendly name or description of theWebACL. This parameter is required.- Returns:
this- See Also:
-
rules
An array that contains the action for eachRulein aWebACL, the priority of theRule, and the ID of theRule.- Parameters:
rules- An array that contains the action for eachRulein aWebACL, the priority of theRule, and the ID of theRule. This parameter is required.- Returns:
this- See Also:
-
rules
An array that contains the action for eachRulein aWebACL, the priority of theRule, and the ID of theRule.- Parameters:
rules- An array that contains the action for eachRulein aWebACL, the priority of theRule, and the ID of theRule. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWebACLPropsMixin>- Returns:
- a newly built instance of
CfnWebACLPropsMixin.
-