@Stability(value=Stable) public static final class CfnSafetyRule.GatingRuleProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnSafetyRule.GatingRuleProperty>
CfnSafetyRule.GatingRuleProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnSafetyRule.GatingRuleProperty |
build()
Builds the configured instance.
|
CfnSafetyRule.GatingRuleProperty.Builder |
gatingControls(List<String> gatingControls)
Sets the value of
CfnSafetyRule.GatingRuleProperty.getGatingControls() |
CfnSafetyRule.GatingRuleProperty.Builder |
targetControls(List<String> targetControls)
Sets the value of
CfnSafetyRule.GatingRuleProperty.getTargetControls() |
CfnSafetyRule.GatingRuleProperty.Builder |
waitPeriodMs(Number waitPeriodMs)
Sets the value of
CfnSafetyRule.GatingRuleProperty.getWaitPeriodMs() |
@Stability(value=Stable) public CfnSafetyRule.GatingRuleProperty.Builder gatingControls(List<String> gatingControls)
CfnSafetyRule.GatingRuleProperty.getGatingControls()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.this@Stability(value=Stable) public CfnSafetyRule.GatingRuleProperty.Builder targetControls(List<String> targetControls)
CfnSafetyRule.GatingRuleProperty.getTargetControls()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.this@Stability(value=Stable) public CfnSafetyRule.GatingRuleProperty.Builder waitPeriodMs(Number waitPeriodMs)
CfnSafetyRule.GatingRuleProperty.getWaitPeriodMs()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.this@Stability(value=Stable) public CfnSafetyRule.GatingRuleProperty build()
build in interface software.amazon.jsii.Builder<CfnSafetyRule.GatingRuleProperty>CfnSafetyRule.GatingRulePropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.