Interface FirewallManagerRuleGroup.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<FirewallManagerRuleGroup.Builder,
,FirewallManagerRuleGroup> SdkBuilder<FirewallManagerRuleGroup.Builder,
,FirewallManagerRuleGroup> SdkPojo
- Enclosing class:
FirewallManagerRuleGroup
-
Method Summary
Modifier and TypeMethodDescriptiondefault FirewallManagerRuleGroup.Builder
firewallManagerStatement
(Consumer<FirewallManagerStatement.Builder> firewallManagerStatement) The processing guidance for an Firewall Manager rule.firewallManagerStatement
(FirewallManagerStatement firewallManagerStatement) The processing guidance for an Firewall Manager rule.The name of the rule group.default FirewallManagerRuleGroup.Builder
overrideAction
(Consumer<OverrideAction.Builder> overrideAction) The action to use in the place of the action that results from the rule group evaluation.overrideAction
(OverrideAction overrideAction) The action to use in the place of the action that results from the rule group evaluation.If you define more than one rule group in the first or last Firewall Manager rule groups, WAF evaluates each request against the rule groups in order, starting from the lowest priority setting.default FirewallManagerRuleGroup.Builder
visibilityConfig
(Consumer<VisibilityConfig.Builder> visibilityConfig) Defines and enables Amazon CloudWatch metrics and web request sample collection.visibilityConfig
(VisibilityConfig visibilityConfig) Defines and enables Amazon CloudWatch metrics and web request sample collection.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
name
The name of the rule group. You cannot change the name of a rule group after you create it.
- Parameters:
name
- The name of the rule group. You cannot change the name of a rule group after you create it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
priority
If you define more than one rule group in the first or last Firewall Manager rule groups, WAF evaluates each request against the rule groups in order, starting from the lowest priority setting. The priorities don't need to be consecutive, but they must all be different.
- Parameters:
priority
- If you define more than one rule group in the first or last Firewall Manager rule groups, WAF evaluates each request against the rule groups in order, starting from the lowest priority setting. The priorities don't need to be consecutive, but they must all be different.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
firewallManagerStatement
FirewallManagerRuleGroup.Builder firewallManagerStatement(FirewallManagerStatement firewallManagerStatement) The processing guidance for an Firewall Manager rule. This is like a regular rule Statement, but it can only contain a rule group reference.
- Parameters:
firewallManagerStatement
- The processing guidance for an Firewall Manager rule. This is like a regular rule Statement, but it can only contain a rule group reference.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
firewallManagerStatement
default FirewallManagerRuleGroup.Builder firewallManagerStatement(Consumer<FirewallManagerStatement.Builder> firewallManagerStatement) The processing guidance for an Firewall Manager rule. This is like a regular rule Statement, but it can only contain a rule group reference.
This is a convenience method that creates an instance of theFirewallManagerStatement.Builder
avoiding the need to create one manually viaFirewallManagerStatement.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofirewallManagerStatement(FirewallManagerStatement)
.- Parameters:
firewallManagerStatement
- a consumer that will call methods onFirewallManagerStatement.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideAction
The action to use in the place of the action that results from the rule group evaluation. Set the override action to none to leave the result of the rule group alone. Set it to count to override the result to count only.
You can only use this for rule statements that reference a rule group, like
RuleGroupReferenceStatement
andManagedRuleGroupStatement
.This option is usually set to none. It does not affect how the rules in the rule group are evaluated. If you want the rules in the rule group to only count matches, do not use this and instead use the rule action override option, with
Count
action, in your rule group reference statement settings.- Parameters:
overrideAction
- The action to use in the place of the action that results from the rule group evaluation. Set the override action to none to leave the result of the rule group alone. Set it to count to override the result to count only.You can only use this for rule statements that reference a rule group, like
RuleGroupReferenceStatement
andManagedRuleGroupStatement
.This option is usually set to none. It does not affect how the rules in the rule group are evaluated. If you want the rules in the rule group to only count matches, do not use this and instead use the rule action override option, with
Count
action, in your rule group reference statement settings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideAction
default FirewallManagerRuleGroup.Builder overrideAction(Consumer<OverrideAction.Builder> overrideAction) The action to use in the place of the action that results from the rule group evaluation. Set the override action to none to leave the result of the rule group alone. Set it to count to override the result to count only.
You can only use this for rule statements that reference a rule group, like
RuleGroupReferenceStatement
andManagedRuleGroupStatement
.This option is usually set to none. It does not affect how the rules in the rule group are evaluated. If you want the rules in the rule group to only count matches, do not use this and instead use the rule action override option, with
Count
action, in your rule group reference statement settings.OverrideAction.Builder
avoiding the need to create one manually viaOverrideAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooverrideAction(OverrideAction)
.- Parameters:
overrideAction
- a consumer that will call methods onOverrideAction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
visibilityConfig
Defines and enables Amazon CloudWatch metrics and web request sample collection.
- Parameters:
visibilityConfig
- Defines and enables Amazon CloudWatch metrics and web request sample collection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
visibilityConfig
default FirewallManagerRuleGroup.Builder visibilityConfig(Consumer<VisibilityConfig.Builder> visibilityConfig) Defines and enables Amazon CloudWatch metrics and web request sample collection.
This is a convenience method that creates an instance of theVisibilityConfig.Builder
avoiding the need to create one manually viaVisibilityConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovisibilityConfig(VisibilityConfig)
.- Parameters:
visibilityConfig
- a consumer that will call methods onVisibilityConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-