Class CfnAutomationRuleProps.Builder
java.lang.Object
software.amazon.awscdk.services.securityhub.CfnAutomationRuleProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAutomationRuleProps>
- Enclosing interface:
CfnAutomationRuleProps
@Stability(Stable)
public static final class CfnAutomationRuleProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAutomationRuleProps>
A builder for
CfnAutomationRuleProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnAutomationRuleProps.getActions()actions(IResolvable actions) Sets the value ofCfnAutomationRuleProps.getActions()build()Builds the configured instance.criteria(IResolvable criteria) Sets the value ofCfnAutomationRuleProps.getCriteria()Sets the value ofCfnAutomationRuleProps.getCriteria()description(String description) Sets the value ofCfnAutomationRuleProps.getDescription()isTerminal(Boolean isTerminal) Sets the value ofCfnAutomationRuleProps.getIsTerminal()isTerminal(IResolvable isTerminal) Sets the value ofCfnAutomationRuleProps.getIsTerminal()Sets the value ofCfnAutomationRuleProps.getRuleName()Sets the value ofCfnAutomationRuleProps.getRuleOrder()ruleStatus(String ruleStatus) Sets the value ofCfnAutomationRuleProps.getRuleStatus()Sets the value ofCfnAutomationRuleProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actions
Sets the value ofCfnAutomationRuleProps.getActions()- Parameters:
actions- One or more actions to update finding fields if a finding matches the conditions specified inCriteria. This parameter is required.- Returns:
this
-
actions
Sets the value ofCfnAutomationRuleProps.getActions()- Parameters:
actions- One or more actions to update finding fields if a finding matches the conditions specified inCriteria. This parameter is required.- Returns:
this
-
criteria
Sets the value ofCfnAutomationRuleProps.getCriteria()- Parameters:
criteria- A set of AWS Security Finding Format (ASFF) finding field attributes and corresponding expected values that Security Hub uses to filter findings. If a rule is enabled and a finding matches the criteria specified in this parameter, Security Hub applies the rule action to the finding. This parameter is required.- Returns:
this
-
criteria
@Stability(Stable) public CfnAutomationRuleProps.Builder criteria(CfnAutomationRule.AutomationRulesFindingFiltersProperty criteria) Sets the value ofCfnAutomationRuleProps.getCriteria()- Parameters:
criteria- A set of AWS Security Finding Format (ASFF) finding field attributes and corresponding expected values that Security Hub uses to filter findings. If a rule is enabled and a finding matches the criteria specified in this parameter, Security Hub applies the rule action to the finding. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnAutomationRuleProps.getDescription()- Parameters:
description- A description of the rule. This parameter is required.- Returns:
this
-
ruleName
Sets the value ofCfnAutomationRuleProps.getRuleName()- Parameters:
ruleName- The name of the rule. This parameter is required.- Returns:
this
-
ruleOrder
Sets the value ofCfnAutomationRuleProps.getRuleOrder()- Parameters:
ruleOrder- An integer ranging from 1 to 1000 that represents the order in which the rule action is applied to findings. This parameter is required. Security Hub applies rules with lower values for this parameter first.- Returns:
this
-
isTerminal
Sets the value ofCfnAutomationRuleProps.getIsTerminal()- 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:
this
-
isTerminal
Sets the value ofCfnAutomationRuleProps.getIsTerminal()- 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:
this
-
ruleStatus
Sets the value ofCfnAutomationRuleProps.getRuleStatus()- Parameters:
ruleStatus- Whether the rule is active after it is created. If this parameter is equal toENABLED, Security Hub applies the rule to findings and finding updates after the rule is created.- Returns:
this
-
tags
Sets the value ofCfnAutomationRuleProps.getTags()- Parameters:
tags- User-defined tags associated with an automation rule.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAutomationRuleProps>- Returns:
- a new instance of
CfnAutomationRuleProps - Throws:
NullPointerException- if any required attribute was not provided
-