Class CfnSafetyRule.GatingRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.route53recoverycontrol.CfnSafetyRule.GatingRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSafetyRule.GatingRuleProperty>
- Enclosing interface:
CfnSafetyRule.GatingRuleProperty
@Stability(Stable)
public static final class CfnSafetyRule.GatingRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSafetyRule.GatingRuleProperty>
A builder for
CfnSafetyRule.GatingRuleProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.gatingControls
(List<String> gatingControls) Sets the value ofCfnSafetyRule.GatingRuleProperty.getGatingControls()
targetControls
(List<String> targetControls) Sets the value ofCfnSafetyRule.GatingRuleProperty.getTargetControls()
waitPeriodMs
(Number waitPeriodMs) Sets the value ofCfnSafetyRule.GatingRuleProperty.getWaitPeriodMs()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
gatingControls
@Stability(Stable) public CfnSafetyRule.GatingRuleProperty.Builder gatingControls(List<String> gatingControls) Sets the value ofCfnSafetyRule.GatingRuleProperty.getGatingControls()
- Parameters:
gatingControls
- An array of gating routing control Amazon Resource Names (ARNs). This parameter is required. For a simple on-off switch, specify the ARN for one routing control. The gating routing controls are evaluated by the rule configuration that you specify to determine if the target routing control states can be changed.- Returns:
this
-
targetControls
@Stability(Stable) public CfnSafetyRule.GatingRuleProperty.Builder targetControls(List<String> targetControls) Sets the value ofCfnSafetyRule.GatingRuleProperty.getTargetControls()
- Parameters:
targetControls
- An array of target routing control Amazon Resource Names (ARNs) for which the states can only be updated if the rule configuration that you specify evaluates to true for the gating routing control. This parameter is required. As a simple example, if you have a single gating control, it acts as an overall on-off switch for a set of target routing controls. You can use this to manually override automated failover, for example.- Returns:
this
-
waitPeriodMs
@Stability(Stable) public CfnSafetyRule.GatingRuleProperty.Builder waitPeriodMs(Number waitPeriodMs) Sets the value ofCfnSafetyRule.GatingRuleProperty.getWaitPeriodMs()
- Parameters:
waitPeriodMs
- An evaluation period, in milliseconds (ms), during which any request against the target routing controls will fail. This parameter is required. This helps prevent flapping of state. The wait period is 5000 ms by default, but you can choose a custom value.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSafetyRule.GatingRuleProperty>
- Returns:
- a new instance of
CfnSafetyRule.GatingRuleProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-