Class CfnWebACLPropsMixin.WafActionProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.waf.CfnWebACLPropsMixin.WafActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebACLPropsMixin.WafActionProperty>
- Enclosing interface:
CfnWebACLPropsMixin.WafActionProperty
@Stability(Stable)
public static final class CfnWebACLPropsMixin.WafActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWebACLPropsMixin.WafActionProperty>
A builder for
CfnWebACLPropsMixin.WafActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnWebACLPropsMixin.WafActionProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnWebACLPropsMixin.WafActionProperty.getType()- Parameters:
type- Specifies how you want AWS WAF to respond to requests that match the settings in aRule. 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 aWebACL.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWebACLPropsMixin.WafActionProperty>- Returns:
- a new instance of
CfnWebACLPropsMixin.WafActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-