Class CfnSafetyRuleMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.route53recoverycontrol.CfnSafetyRuleMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSafetyRuleMixinProps>
- Enclosing interface:
CfnSafetyRuleMixinProps
@Stability(Stable)
public static final class CfnSafetyRuleMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSafetyRuleMixinProps>
A builder for
CfnSafetyRuleMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassertionRule(CfnSafetyRulePropsMixin.AssertionRuleProperty assertionRule) Sets the value ofCfnSafetyRuleMixinProps.getAssertionRule()assertionRule(IResolvable assertionRule) Sets the value ofCfnSafetyRuleMixinProps.getAssertionRule()build()Builds the configured instance.controlPanelArn(String controlPanelArn) Sets the value ofCfnSafetyRuleMixinProps.getControlPanelArn()controlPanelArn(IControlPanelRef controlPanelArn) Sets the value ofCfnSafetyRuleMixinProps.getControlPanelArn()gatingRule(CfnSafetyRulePropsMixin.GatingRuleProperty gatingRule) Sets the value ofCfnSafetyRuleMixinProps.getGatingRule()gatingRule(IResolvable gatingRule) Sets the value ofCfnSafetyRuleMixinProps.getGatingRule()Sets the value ofCfnSafetyRuleMixinProps.getName()ruleConfig(CfnSafetyRulePropsMixin.RuleConfigProperty ruleConfig) Sets the value ofCfnSafetyRuleMixinProps.getRuleConfig()ruleConfig(IResolvable ruleConfig) Sets the value ofCfnSafetyRuleMixinProps.getRuleConfig()Sets the value ofCfnSafetyRuleMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
assertionRule
Sets the value ofCfnSafetyRuleMixinProps.getAssertionRule()- Parameters:
assertionRule- An assertion rule enforces that, when you change a routing control state, that the criteria that you set in the rule configuration is met. Otherwise, the change to the routing control is not accepted. For example, the criteria might be that at least one routing control state isOnafter the transaction so that traffic continues to flow to at least one cell for the application. This ensures that you avoid a fail-open scenario.- Returns:
this
-
assertionRule
@Stability(Stable) public CfnSafetyRuleMixinProps.Builder assertionRule(CfnSafetyRulePropsMixin.AssertionRuleProperty assertionRule) Sets the value ofCfnSafetyRuleMixinProps.getAssertionRule()- Parameters:
assertionRule- An assertion rule enforces that, when you change a routing control state, that the criteria that you set in the rule configuration is met. Otherwise, the change to the routing control is not accepted. For example, the criteria might be that at least one routing control state isOnafter the transaction so that traffic continues to flow to at least one cell for the application. This ensures that you avoid a fail-open scenario.- Returns:
this
-
controlPanelArn
Sets the value ofCfnSafetyRuleMixinProps.getControlPanelArn()- Parameters:
controlPanelArn- The Amazon Resource Name (ARN) of the control panel.- Returns:
this
-
controlPanelArn
@Stability(Stable) public CfnSafetyRuleMixinProps.Builder controlPanelArn(IControlPanelRef controlPanelArn) Sets the value ofCfnSafetyRuleMixinProps.getControlPanelArn()- Parameters:
controlPanelArn- The Amazon Resource Name (ARN) of the control panel.- Returns:
this
-
gatingRule
Sets the value ofCfnSafetyRuleMixinProps.getGatingRule()- Parameters:
gatingRule- A gating rule verifies that a gating routing control or set of gating routing controls, evaluates as true, based on a rule configuration that you specify, which allows a set of routing control state changes to complete. For example, if you specify one gating routing control and you set theTypein the rule configuration toOR, that indicates that you must set the gating routing control toOnfor the rule to evaluate as true; that is, for the gating control switch to be On. When you do that, then you can update the routing control states for the target routing controls that you specify in the gating rule.- Returns:
this
-
gatingRule
@Stability(Stable) public CfnSafetyRuleMixinProps.Builder gatingRule(CfnSafetyRulePropsMixin.GatingRuleProperty gatingRule) Sets the value ofCfnSafetyRuleMixinProps.getGatingRule()- Parameters:
gatingRule- A gating rule verifies that a gating routing control or set of gating routing controls, evaluates as true, based on a rule configuration that you specify, which allows a set of routing control state changes to complete. For example, if you specify one gating routing control and you set theTypein the rule configuration toOR, that indicates that you must set the gating routing control toOnfor the rule to evaluate as true; that is, for the gating control switch to be On. When you do that, then you can update the routing control states for the target routing controls that you specify in the gating rule.- Returns:
this
-
name
Sets the value ofCfnSafetyRuleMixinProps.getName()- Parameters:
name- The name of the assertion rule. The name must be unique within a control panel. You can use any non-white space character in the name except the following: & > < ' (single quote) " (double quote) ; (semicolon)- Returns:
this
-
ruleConfig
Sets the value ofCfnSafetyRuleMixinProps.getRuleConfig()- Parameters:
ruleConfig- The criteria that you set for specific assertion controls (routing controls) that designate how many control states must beONas the result of a transaction. For example, if you have three assertion controls, you might specifyATLEAST 2for your rule configuration. This means that at least two assertion controls must beON, so that at least two AWS Regions have traffic flowing to them.- Returns:
this
-
ruleConfig
@Stability(Stable) public CfnSafetyRuleMixinProps.Builder ruleConfig(CfnSafetyRulePropsMixin.RuleConfigProperty ruleConfig) Sets the value ofCfnSafetyRuleMixinProps.getRuleConfig()- Parameters:
ruleConfig- The criteria that you set for specific assertion controls (routing controls) that designate how many control states must beONas the result of a transaction. For example, if you have three assertion controls, you might specifyATLEAST 2for your rule configuration. This means that at least two assertion controls must beON, so that at least two AWS Regions have traffic flowing to them.- Returns:
this
-
tags
Sets the value ofCfnSafetyRuleMixinProps.getTags()- Parameters:
tags- The tags associated with the safety rule.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSafetyRuleMixinProps>- Returns:
- a new instance of
CfnSafetyRuleMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-