Class CfnWebACL.AWSManagedRulesBotControlRuleSetProperty.Builder
java.lang.Object
software.amazon.awscdk.services.wafv2.CfnWebACL.AWSManagedRulesBotControlRuleSetProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebACL.AWSManagedRulesBotControlRuleSetProperty>
- Enclosing interface:
CfnWebACL.AWSManagedRulesBotControlRuleSetProperty
@Stability(Stable)
public static final class CfnWebACL.AWSManagedRulesBotControlRuleSetProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWebACL.AWSManagedRulesBotControlRuleSetProperty>
A builder for
CfnWebACL.AWSManagedRulesBotControlRuleSetProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.enableMachineLearning
(Boolean enableMachineLearning) enableMachineLearning
(IResolvable enableMachineLearning) inspectionLevel
(String inspectionLevel) Sets the value ofCfnWebACL.AWSManagedRulesBotControlRuleSetProperty.getInspectionLevel()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
inspectionLevel
@Stability(Stable) public CfnWebACL.AWSManagedRulesBotControlRuleSetProperty.Builder inspectionLevel(String inspectionLevel) Sets the value ofCfnWebACL.AWSManagedRulesBotControlRuleSetProperty.getInspectionLevel()
- Parameters:
inspectionLevel
- The inspection level to use for the Bot Control rule group. This parameter is required. The common level is the least expensive. The targeted level includes all common level rules and adds rules with more advanced inspection criteria. For details, see AWS WAF Bot Control rule group in the AWS WAF Developer Guide .- Returns:
this
-
enableMachineLearning
@Stability(Stable) public CfnWebACL.AWSManagedRulesBotControlRuleSetProperty.Builder enableMachineLearning(Boolean enableMachineLearning) - Parameters:
enableMachineLearning
- Applies only to the targeted inspection level. Determines whether to use machine learning (ML) to analyze your web traffic for bot-related activity. Machine learning is required for the Bot Control rulesTGT_ML_CoordinatedActivityLow
andTGT_ML_CoordinatedActivityMedium
, which inspect for anomalous behavior that might indicate distributed, coordinated bot activity.For more information about this choice, see the listing for these rules in the table at Bot Control rules listing in the AWS WAF Developer Guide .
Default:
TRUE
- Returns:
this
-
enableMachineLearning
@Stability(Stable) public CfnWebACL.AWSManagedRulesBotControlRuleSetProperty.Builder enableMachineLearning(IResolvable enableMachineLearning) - Parameters:
enableMachineLearning
- Applies only to the targeted inspection level. Determines whether to use machine learning (ML) to analyze your web traffic for bot-related activity. Machine learning is required for the Bot Control rulesTGT_ML_CoordinatedActivityLow
andTGT_ML_CoordinatedActivityMedium
, which inspect for anomalous behavior that might indicate distributed, coordinated bot activity.For more information about this choice, see the listing for these rules in the table at Bot Control rules listing in the AWS WAF Developer Guide .
Default:
TRUE
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnWebACL.AWSManagedRulesBotControlRuleSetProperty>
- Returns:
- a new instance of
CfnWebACL.AWSManagedRulesBotControlRuleSetProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-