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