Interface AutomationRulesConfig.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AutomationRulesConfig.Builder,
,AutomationRulesConfig> SdkBuilder<AutomationRulesConfig.Builder,
,AutomationRulesConfig> SdkPojo
- Enclosing class:
AutomationRulesConfig
-
Method Summary
Modifier and TypeMethodDescriptionactions
(Collection<AutomationRulesAction> actions) One or more actions to update finding fields if a finding matches the defined criteria of the rule.actions
(Consumer<AutomationRulesAction.Builder>... actions) One or more actions to update finding fields if a finding matches the defined criteria of the rule.actions
(AutomationRulesAction... actions) One or more actions to update finding fields if a finding matches the defined criteria of the rule.A timestamp that indicates when the rule was created.The principal that created a rule.default AutomationRulesConfig.Builder
A set of Amazon Web Services Security Finding Format finding field attributes and corresponding expected values that Security Hub uses to filter findings.criteria
(AutomationRulesFindingFilters criteria) A set of Amazon Web Services Security Finding Format finding field attributes and corresponding expected values that Security Hub uses to filter findings.description
(String description) A description of the rule.isTerminal
(Boolean isTerminal) Specifies whether a rule is the last to be applied with respect to a finding that matches the rule criteria.The Amazon Resource Name (ARN) of a rule.The name of the rule.An integer ranging from 1 to 1000 that represents the order in which the rule action is applied to findings.ruleStatus
(String ruleStatus) Whether the rule is active after it is created.ruleStatus
(RuleStatus ruleStatus) Whether the rule is active after it is created.A timestamp that indicates when the rule was most recently updated.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
-
ruleArn
The Amazon Resource Name (ARN) of a rule.
- Parameters:
ruleArn
- The Amazon Resource Name (ARN) of a rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleStatus
Whether the rule is active after it is created. If this parameter is equal to
ENABLED
, Security Hub starts applying the rule to findings and finding updates after the rule is created.- Parameters:
ruleStatus
- Whether the rule is active after it is created. If this parameter is equal toENABLED
, Security Hub starts applying the rule to findings and finding updates after the rule is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ruleStatus
Whether the rule is active after it is created. If this parameter is equal to
ENABLED
, Security Hub starts applying the rule to findings and finding updates after the rule is created.- Parameters:
ruleStatus
- Whether the rule is active after it is created. If this parameter is equal toENABLED
, Security Hub starts applying the rule to findings and finding updates after the rule is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ruleOrder
An integer ranging from 1 to 1000 that represents the order in which the rule action is applied to findings. Security Hub applies rules with lower values for this parameter first.
- Parameters:
ruleOrder
- An integer ranging from 1 to 1000 that represents the order in which the rule action is applied to findings. Security Hub applies rules with lower values for this parameter first.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleName
The name of the rule.
- Parameters:
ruleName
- The name of the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the rule.
- Parameters:
description
- A description of the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isTerminal
Specifies whether a rule is the last to be applied with respect to a finding that matches the rule criteria. This is useful when a finding matches the criteria for multiple rules, and each rule has different actions. If a rule is terminal, Security Hub applies the rule action to a finding that matches the rule criteria and doesn't evaluate other rules for the finding. By default, a rule isn't terminal.
- Parameters:
isTerminal
- Specifies whether a rule is the last to be applied with respect to a finding that matches the rule criteria. This is useful when a finding matches the criteria for multiple rules, and each rule has different actions. If a rule is terminal, Security Hub applies the rule action to a finding that matches the rule criteria and doesn't evaluate other rules for the finding. By default, a rule isn't terminal.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
criteria
A set of Amazon Web Services Security Finding Format finding field attributes and corresponding expected values that Security Hub uses to filter findings. If a rule is enabled and a finding matches the conditions specified in this parameter, Security Hub applies the rule action to the finding.
- Parameters:
criteria
- A set of Amazon Web Services Security Finding Format finding field attributes and corresponding expected values that Security Hub uses to filter findings. If a rule is enabled and a finding matches the conditions specified in this parameter, Security Hub applies the rule action to the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
criteria
default AutomationRulesConfig.Builder criteria(Consumer<AutomationRulesFindingFilters.Builder> criteria) A set of Amazon Web Services Security Finding Format finding field attributes and corresponding expected values that Security Hub uses to filter findings. If a rule is enabled and a finding matches the conditions specified in this parameter, Security Hub applies the rule action to the finding.
This is a convenience method that creates an instance of theAutomationRulesFindingFilters.Builder
avoiding the need to create one manually viaAutomationRulesFindingFilters.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocriteria(AutomationRulesFindingFilters)
.- Parameters:
criteria
- a consumer that will call methods onAutomationRulesFindingFilters.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
actions
One or more actions to update finding fields if a finding matches the defined criteria of the rule.
- Parameters:
actions
- One or more actions to update finding fields if a finding matches the defined criteria of the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
One or more actions to update finding fields if a finding matches the defined criteria of the rule.
- Parameters:
actions
- One or more actions to update finding fields if a finding matches the defined criteria of the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
One or more actions to update finding fields if a finding matches the defined criteria of the rule.
This is a convenience method that creates an instance of theAutomationRulesAction.Builder
avoiding the need to create one manually viaAutomationRulesAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toactions(List<AutomationRulesAction>)
.- Parameters:
actions
- a consumer that will call methods onAutomationRulesAction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
createdAt
A timestamp that indicates when the rule was created.
For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps.
- Parameters:
createdAt
- A timestamp that indicates when the rule was created.For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
A timestamp that indicates when the rule was most recently updated.
For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps.
- Parameters:
updatedAt
- A timestamp that indicates when the rule was most recently updated.For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdBy
The principal that created a rule.
- Parameters:
createdBy
- The principal that created a rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-