Class CfnProtection.ActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.shield.CfnProtection.ActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProtection.ActionProperty>
- Enclosing interface:
CfnProtection.ActionProperty
@Stability(Stable)
public static final class CfnProtection.ActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnProtection.ActionProperty>
A builder for
CfnProtection.ActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnProtection.ActionProperty.getBlock()build()Builds the configured instance.Sets the value ofCfnProtection.ActionProperty.getCount()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
block
Sets the value ofCfnProtection.ActionProperty.getBlock()- Parameters:
block- Specifies that Shield Advanced should configure its AWS WAF rules with the AWS WAFBlockaction. You must specify exactly one action, eitherBlockorCount.Example JSON:
{ "Block": {} }Example YAML:
Block: {}- Returns:
this
-
count
Sets the value ofCfnProtection.ActionProperty.getCount()- Parameters:
count- Specifies that Shield Advanced should configure its AWS WAF rules with the AWS WAFCountaction. You must specify exactly one action, eitherBlockorCount.Example JSON:
{ "Count": {} }Example YAML:
Count: {}- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnProtection.ActionProperty>- Returns:
- a new instance of
CfnProtection.ActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-