Class CfnWebACL.RuleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.waf.regional.CfnWebACL.RuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebACL.RuleProperty>
- Enclosing interface:
CfnWebACL.RuleProperty
@Stability(Stable)
public static final class CfnWebACL.RuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWebACL.RuleProperty>
A builder for
CfnWebACL.RuleProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaction
(IResolvable action) Sets the value ofCfnWebACL.RuleProperty.getAction()
action
(CfnWebACL.ActionProperty action) Sets the value ofCfnWebACL.RuleProperty.getAction()
build()
Builds the configured instance.Sets the value ofCfnWebACL.RuleProperty.getPriority()
Sets the value ofCfnWebACL.RuleProperty.getRuleId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
action
Sets the value ofCfnWebACL.RuleProperty.getAction()
- Parameters:
action
- The action that AWS WAF takes when a web request matches all conditions in the rule, such as allow, block, or count the request. This parameter is required.- Returns:
this
-
action
Sets the value ofCfnWebACL.RuleProperty.getAction()
- Parameters:
action
- The action that AWS WAF takes when a web request matches all conditions in the rule, such as allow, block, or count the request. This parameter is required.- Returns:
this
-
priority
Sets the value ofCfnWebACL.RuleProperty.getPriority()
- Parameters:
priority
- The order in which AWS WAF evaluates the rules in a web ACL. This parameter is required. AWS WAF evaluates rules with a lower value before rules with a higher value. The value must be a unique integer. If you have multiple rules in a web ACL, the priority numbers do not need to be consecutive.- Returns:
this
-
ruleId
Sets the value ofCfnWebACL.RuleProperty.getRuleId()
- Parameters:
ruleId
- The ID of an AWS WAF Regional rule to associate with a web ACL. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnWebACL.RuleProperty>
- Returns:
- a new instance of
CfnWebACL.RuleProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-