Class CfnWebACL.AWSManagedRulesAntiDDoSRuleSetProperty.Builder
java.lang.Object
software.amazon.awscdk.services.wafv2.CfnWebACL.AWSManagedRulesAntiDDoSRuleSetProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebACL.AWSManagedRulesAntiDDoSRuleSetProperty>
- Enclosing interface:
CfnWebACL.AWSManagedRulesAntiDDoSRuleSetProperty
@Stability(Stable)
public static final class CfnWebACL.AWSManagedRulesAntiDDoSRuleSetProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWebACL.AWSManagedRulesAntiDDoSRuleSetProperty>
A builder for
CfnWebACL.AWSManagedRulesAntiDDoSRuleSetProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.clientSideActionConfig
(IResolvable clientSideActionConfig) clientSideActionConfig
(CfnWebACL.ClientSideActionConfigProperty clientSideActionConfig) sensitivityToBlock
(String sensitivityToBlock) Sets the value ofCfnWebACL.AWSManagedRulesAntiDDoSRuleSetProperty.getSensitivityToBlock()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clientSideActionConfig
@Stability(Stable) public CfnWebACL.AWSManagedRulesAntiDDoSRuleSetProperty.Builder clientSideActionConfig(IResolvable clientSideActionConfig) - Parameters:
clientSideActionConfig
- Configures the request handling that's applied by the managed rule group rulesChallengeAllDuringEvent
andChallengeDDoSRequests
during a distributed denial of service (DDoS) attack. This parameter is required.- Returns:
this
-
clientSideActionConfig
@Stability(Stable) public CfnWebACL.AWSManagedRulesAntiDDoSRuleSetProperty.Builder clientSideActionConfig(CfnWebACL.ClientSideActionConfigProperty clientSideActionConfig) - Parameters:
clientSideActionConfig
- Configures the request handling that's applied by the managed rule group rulesChallengeAllDuringEvent
andChallengeDDoSRequests
during a distributed denial of service (DDoS) attack. This parameter is required.- Returns:
this
-
sensitivityToBlock
@Stability(Stable) public CfnWebACL.AWSManagedRulesAntiDDoSRuleSetProperty.Builder sensitivityToBlock(String sensitivityToBlock) Sets the value ofCfnWebACL.AWSManagedRulesAntiDDoSRuleSetProperty.getSensitivityToBlock()
- Parameters:
sensitivityToBlock
- The sensitivity that the rule group ruleDDoSRequests
uses when matching against the DDoS suspicion labeling on a request. The managed rule group adds the labeling during DDoS events, before theDDoSRequests
rule runs.The higher the sensitivity, the more levels of labeling that the rule matches:
- Low sensitivity is less sensitive, causing the rule to match only on the most likely participants in an attack, which are the requests with the high suspicion label
awswaf:managed:aws:anti-ddos:high-suspicion-ddos-request
. - Medium sensitivity causes the rule to match on the medium and high suspicion labels.
- High sensitivity causes the rule to match on all of the suspicion labels: low, medium, and high.
Default:
LOW
- Low sensitivity is less sensitive, causing the rule to match only on the most likely participants in an attack, which are the requests with the high suspicion label
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnWebACL.AWSManagedRulesAntiDDoSRuleSetProperty>
- Returns:
- a new instance of
CfnWebACL.AWSManagedRulesAntiDDoSRuleSetProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-