public static interface AwsWafWebAclRule.Builder extends SdkPojo, CopyableBuilder<AwsWafWebAclRule.Builder,AwsWafWebAclRule>
| Modifier and Type | Method and Description |
|---|---|
default AwsWafWebAclRule.Builder |
action(Consumer<WafAction.Builder> action)
Specifies the action that CloudFront or WAF takes when a web request matches the conditions in the rule.
|
AwsWafWebAclRule.Builder |
action(WafAction action)
Specifies the action that CloudFront or WAF takes when a web request matches the conditions in the rule.
|
AwsWafWebAclRule.Builder |
excludedRules(Collection<WafExcludedRule> excludedRules)
Rules to exclude from a rule group.
|
AwsWafWebAclRule.Builder |
excludedRules(Consumer<WafExcludedRule.Builder>... excludedRules)
Rules to exclude from a rule group.
|
AwsWafWebAclRule.Builder |
excludedRules(WafExcludedRule... excludedRules)
Rules to exclude from a rule group.
|
default AwsWafWebAclRule.Builder |
overrideAction(Consumer<WafOverrideAction.Builder> overrideAction)
Use the
OverrideAction to test your RuleGroup. |
AwsWafWebAclRule.Builder |
overrideAction(WafOverrideAction overrideAction)
Use the
OverrideAction to test your RuleGroup. |
AwsWafWebAclRule.Builder |
priority(Integer priority)
Specifies the order in which the rules in a web ACL are evaluated.
|
AwsWafWebAclRule.Builder |
ruleId(String ruleId)
The identifier for a rule.
|
AwsWafWebAclRule.Builder |
type(String type)
The rule type.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildAwsWafWebAclRule.Builder action(WafAction action)
Specifies the action that CloudFront or WAF takes when a web request matches the conditions in the rule.
action - Specifies the action that CloudFront or WAF takes when a web request matches the conditions in the
rule.default AwsWafWebAclRule.Builder action(Consumer<WafAction.Builder> action)
Specifies the action that CloudFront or WAF takes when a web request matches the conditions in the rule.
This is a convenience method that creates an instance of theWafAction.Builder avoiding the need to
create one manually via WafAction.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to action(WafAction).
action - a consumer that will call methods on WafAction.Builderaction(WafAction)AwsWafWebAclRule.Builder excludedRules(Collection<WafExcludedRule> excludedRules)
Rules to exclude from a rule group.
excludedRules - Rules to exclude from a rule group.AwsWafWebAclRule.Builder excludedRules(WafExcludedRule... excludedRules)
Rules to exclude from a rule group.
excludedRules - Rules to exclude from a rule group.AwsWafWebAclRule.Builder excludedRules(Consumer<WafExcludedRule.Builder>... excludedRules)
Rules to exclude from a rule group.
This is a convenience method that creates an instance of theWafExcludedRule.Builder avoiding the need to create
one manually via WafExcludedRule.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #excludedRules(List.
excludedRules - a consumer that will call methods on
WafExcludedRule.Builder#excludedRules(java.util.Collection) AwsWafWebAclRule.Builder overrideAction(WafOverrideAction overrideAction)
Use the OverrideAction to test your RuleGroup.
Any rule in a RuleGroup can potentially block a request. If you set the
OverrideAction to None, the RuleGroup blocks a request if any
individual rule in the RuleGroup matches the request and is configured to block that request.
However, if you first want to test the RuleGroup, set the OverrideAction to
Count. The RuleGroup then overrides any block action specified by individual rules
contained within the group. Instead of blocking matching requests, those requests are counted.
ActivatedRule|OverrideAction applies only when updating or adding a
RuleGroup to a web ACL. In this case you do not use ActivatedRule
Action. For all other update requests, ActivatedRule Action is used
instead of ActivatedRule OverrideAction.
overrideAction - Use the OverrideAction to test your RuleGroup.
Any rule in a RuleGroup can potentially block a request. If you set the
OverrideAction to None, the RuleGroup blocks a request if any
individual rule in the RuleGroup matches the request and is configured to block that
request.
However, if you first want to test the RuleGroup, set the OverrideAction to
Count. The RuleGroup then overrides any block action specified by individual
rules contained within the group. Instead of blocking matching requests, those requests are counted.
ActivatedRule|OverrideAction applies only when updating or adding a
RuleGroup to a web ACL. In this case you do not use ActivatedRule
Action. For all other update requests, ActivatedRule Action is
used instead of ActivatedRule OverrideAction.
default AwsWafWebAclRule.Builder overrideAction(Consumer<WafOverrideAction.Builder> overrideAction)
Use the OverrideAction to test your RuleGroup.
Any rule in a RuleGroup can potentially block a request. If you set the
OverrideAction to None, the RuleGroup blocks a request if any
individual rule in the RuleGroup matches the request and is configured to block that request.
However, if you first want to test the RuleGroup, set the OverrideAction to
Count. The RuleGroup then overrides any block action specified by individual rules
contained within the group. Instead of blocking matching requests, those requests are counted.
ActivatedRule|OverrideAction applies only when updating or adding a
RuleGroup to a web ACL. In this case you do not use ActivatedRule
Action. For all other update requests, ActivatedRule Action is used
instead of ActivatedRule OverrideAction.
WafOverrideAction.Builder avoiding the
need to create one manually via WafOverrideAction.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to overrideAction(WafOverrideAction).
overrideAction - a consumer that will call methods on WafOverrideAction.BuilderoverrideAction(WafOverrideAction)AwsWafWebAclRule.Builder priority(Integer priority)
Specifies the order in which the rules in a web ACL are evaluated. Rules with a lower value for
Priority are evaluated before rules with a higher value. The value must be a unique integer. If
you add multiple rules to a web ACL, the values do not need to be consecutive.
priority - Specifies the order in which the rules in a web ACL are evaluated. Rules with a lower value for
Priority are evaluated before rules with a higher value. The value must be a unique
integer. If you add multiple rules to a web ACL, the values do not need to be consecutive.AwsWafWebAclRule.Builder ruleId(String ruleId)
The identifier for a rule.
ruleId - The identifier for a rule.AwsWafWebAclRule.Builder type(String type)
The rule type.
Valid values: REGULAR | RATE_BASED | GROUP
The default is REGULAR.
type - The rule type.
Valid values: REGULAR | RATE_BASED | GROUP
The default is REGULAR.
Copyright © 2023. All rights reserved.