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