Class CfnWebACLPropsMixin.RuleGroupReferenceStatementProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebACLPropsMixin.RuleGroupReferenceStatementProperty>
- Enclosing interface:
CfnWebACLPropsMixin.RuleGroupReferenceStatementProperty
CfnWebACLPropsMixin.RuleGroupReferenceStatementProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnWebACLPropsMixin.RuleGroupReferenceStatementProperty.getArn()build()Builds the configured instance.excludedRules(List<? extends Object> excludedRules) excludedRules(IResolvable excludedRules) ruleActionOverrides(List<? extends Object> ruleActionOverrides) ruleActionOverrides(IResolvable ruleActionOverrides)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
arn
@Stability(Stable) public CfnWebACLPropsMixin.RuleGroupReferenceStatementProperty.Builder arn(String arn) Sets the value ofCfnWebACLPropsMixin.RuleGroupReferenceStatementProperty.getArn()- Parameters:
arn- The Amazon Resource Name (ARN) of the entity.- Returns:
this
-
excludedRules
@Stability(Stable) public CfnWebACLPropsMixin.RuleGroupReferenceStatementProperty.Builder excludedRules(IResolvable excludedRules) - 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 CfnWebACLPropsMixin.RuleGroupReferenceStatementProperty.Builder excludedRules(List<? extends Object> excludedRules) - 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 CfnWebACLPropsMixin.RuleGroupReferenceStatementProperty.Builder ruleActionOverrides(IResolvable ruleActionOverrides) - 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.Verify the rule names in your overrides carefully. With managed rule groups, AWS WAF silently ignores any override that uses an invalid rule name. With customer-owned rule groups, invalid rule names in your overrides will cause web ACL updates to fail. An invalid rule name is any name that doesn't exactly match the case-sensitive name of an existing rule in the rule group.
You can use overrides for testing, for example you can override all of rule actions to
Countand 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 CfnWebACLPropsMixin.RuleGroupReferenceStatementProperty.Builder ruleActionOverrides(List<? extends Object> ruleActionOverrides) - 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.Verify the rule names in your overrides carefully. With managed rule groups, AWS WAF silently ignores any override that uses an invalid rule name. With customer-owned rule groups, invalid rule names in your overrides will cause web ACL updates to fail. An invalid rule name is any name that doesn't exactly match the case-sensitive name of an existing rule in the rule group.
You can use overrides for testing, for example you can override all of rule actions to
Countand 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:
buildin interfacesoftware.amazon.jsii.Builder<CfnWebACLPropsMixin.RuleGroupReferenceStatementProperty>- Returns:
- a new instance of
CfnWebACLPropsMixin.RuleGroupReferenceStatementProperty - Throws:
NullPointerException- if any required attribute was not provided
-