Class CfnWebACLPropsMixin.ActionProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.wafregional.CfnWebACLPropsMixin.ActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebACLPropsMixin.ActionProperty>
- Enclosing interface:
CfnWebACLPropsMixin.ActionProperty
@Stability(Stable)
public static final class CfnWebACLPropsMixin.ActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWebACLPropsMixin.ActionProperty>
A builder for
CfnWebACLPropsMixin.ActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnWebACLPropsMixin.ActionProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnWebACLPropsMixin.ActionProperty.getType()- Parameters:
type- For actions that are associated with a rule, the action that AWS WAF takes when a web request matches all conditions in a rule. For the default action of a web access control list (ACL), the action that AWS WAF takes when a web request doesn't match all conditions in any rule.Valid settings include the following:
ALLOW: AWS WAF allows requestsBLOCK: AWS WAF blocks requestsCOUNT: AWS WAF increments a counter of the requests that match all of the conditions in the rule. AWS WAF then continues to inspect the web request based on the remaining rules in the web ACL. You can't specifyCOUNTfor the default action for a WebACL.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWebACLPropsMixin.ActionProperty>- Returns:
- a new instance of
CfnWebACLPropsMixin.ActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-