Class CfnWebACL.RuleGroupReferenceStatementProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebACL.RuleGroupReferenceStatementProperty>
- Enclosing interface:
CfnWebACL.RuleGroupReferenceStatementProperty
CfnWebACL.RuleGroupReferenceStatementProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnWebACL.RuleGroupReferenceStatementProperty.getArn()
build()
Builds the configured instance.excludedRules
(List<? extends Object> excludedRules) Sets the value ofCfnWebACL.RuleGroupReferenceStatementProperty.getExcludedRules()
excludedRules
(IResolvable excludedRules) Sets the value ofCfnWebACL.RuleGroupReferenceStatementProperty.getExcludedRules()
ruleActionOverrides
(List<? extends Object> ruleActionOverrides) Sets the value ofCfnWebACL.RuleGroupReferenceStatementProperty.getRuleActionOverrides()
ruleActionOverrides
(IResolvable ruleActionOverrides) Sets the value ofCfnWebACL.RuleGroupReferenceStatementProperty.getRuleActionOverrides()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
arn
Sets the value ofCfnWebACL.RuleGroupReferenceStatementProperty.getArn()
- Parameters:
arn
- The Amazon Resource Name (ARN) of the entity. This parameter is required.- Returns:
this
-
excludedRules
@Stability(Stable) public CfnWebACL.RuleGroupReferenceStatementProperty.Builder excludedRules(IResolvable excludedRules) Sets the value ofCfnWebACL.RuleGroupReferenceStatementProperty.getExcludedRules()
- Parameters:
excludedRules
- Rules in the referenced rule group whose actions are set toCount
.Instead of this option, use
RuleActionOverrides
. It accepts any valid action setting, includingCount
.- Returns:
this
-
excludedRules
@Stability(Stable) public CfnWebACL.RuleGroupReferenceStatementProperty.Builder excludedRules(List<? extends Object> excludedRules) Sets the value ofCfnWebACL.RuleGroupReferenceStatementProperty.getExcludedRules()
- Parameters:
excludedRules
- Rules in the referenced rule group whose actions are set toCount
.Instead of this option, use
RuleActionOverrides
. It accepts any valid action setting, includingCount
.- Returns:
this
-
ruleActionOverrides
@Stability(Stable) public CfnWebACL.RuleGroupReferenceStatementProperty.Builder ruleActionOverrides(IResolvable ruleActionOverrides) Sets the value ofCfnWebACL.RuleGroupReferenceStatementProperty.getRuleActionOverrides()
- Parameters:
ruleActionOverrides
- Action settings to use in the place of the rule actions that are configured inside the rule group. You specify one override for each rule whose action you want to change.Take care to verify the rule names in your overrides. If you provide a rule name that doesn't match the name of any rule in the rule group, AWS WAF doesn't return an error and doesn't apply the override setting.
You can use overrides for testing, for example you can override all of rule actions to
Count
and then monitor the resulting count metrics to understand how the rule group would handle your web traffic. You can also permanently override some or all actions, to modify how the rule group manages your web traffic.- Returns:
this
-
ruleActionOverrides
@Stability(Stable) public CfnWebACL.RuleGroupReferenceStatementProperty.Builder ruleActionOverrides(List<? extends Object> ruleActionOverrides) Sets the value ofCfnWebACL.RuleGroupReferenceStatementProperty.getRuleActionOverrides()
- Parameters:
ruleActionOverrides
- Action settings to use in the place of the rule actions that are configured inside the rule group. You specify one override for each rule whose action you want to change.Take care to verify the rule names in your overrides. If you provide a rule name that doesn't match the name of any rule in the rule group, AWS WAF doesn't return an error and doesn't apply the override setting.
You can use overrides for testing, for example you can override all of rule actions to
Count
and then monitor the resulting count metrics to understand how the rule group would handle your web traffic. You can also permanently override some or all actions, to modify how the rule group manages your web traffic.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnWebACL.RuleGroupReferenceStatementProperty>
- Returns:
- a new instance of
CfnWebACL.RuleGroupReferenceStatementProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-