Interface StatelessRule.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<StatelessRule.Builder,
,StatelessRule> SdkBuilder<StatelessRule.Builder,
,StatelessRule> SdkPojo
- Enclosing class:
StatelessRule
-
Method Summary
Modifier and TypeMethodDescriptionIndicates the order in which to run this rule relative to all of the rules that are defined for a stateless rule group.default StatelessRule.Builder
ruleDefinition
(Consumer<RuleDefinition.Builder> ruleDefinition) Defines the stateless 5-tuple packet inspection criteria and the action to take on a packet that matches the criteria.ruleDefinition
(RuleDefinition ruleDefinition) Defines the stateless 5-tuple packet inspection criteria and the action to take on a packet that matches the criteria.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, sdkFieldNameToField, sdkFields
-
Method Details
-
ruleDefinition
Defines the stateless 5-tuple packet inspection criteria and the action to take on a packet that matches the criteria.
- Parameters:
ruleDefinition
- Defines the stateless 5-tuple packet inspection criteria and the action to take on a packet that matches the criteria.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleDefinition
Defines the stateless 5-tuple packet inspection criteria and the action to take on a packet that matches the criteria.
This is a convenience method that creates an instance of theRuleDefinition.Builder
avoiding the need to create one manually viaRuleDefinition.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toruleDefinition(RuleDefinition)
.- Parameters:
ruleDefinition
- a consumer that will call methods onRuleDefinition.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
priority
Indicates the order in which to run this rule relative to all of the rules that are defined for a stateless rule group. Network Firewall evaluates the rules in a rule group starting with the lowest priority setting. You must ensure that the priority settings are unique for the rule group.
Each stateless rule group uses exactly one
StatelessRulesAndCustomActions
object, and eachStatelessRulesAndCustomActions
contains exactly oneStatelessRules
object. To ensure unique priority settings for your rule groups, set unique priorities for the stateless rules that you define inside any singleStatelessRules
object.You can change the priority settings of your rules at any time. To make it easier to insert rules later, number them so there's a wide range in between, for example use 100, 200, and so on.
- Parameters:
priority
- Indicates the order in which to run this rule relative to all of the rules that are defined for a stateless rule group. Network Firewall evaluates the rules in a rule group starting with the lowest priority setting. You must ensure that the priority settings are unique for the rule group.Each stateless rule group uses exactly one
StatelessRulesAndCustomActions
object, and eachStatelessRulesAndCustomActions
contains exactly oneStatelessRules
object. To ensure unique priority settings for your rule groups, set unique priorities for the stateless rules that you define inside any singleStatelessRules
object.You can change the priority settings of your rules at any time. To make it easier to insert rules later, number them so there's a wide range in between, for example use 100, 200, and so on.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-