@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.691Z") @Stability(value=Stable) public interface CfnSafetyRuleProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.route53recoverycontrol.*;
CfnSafetyRuleProps cfnSafetyRuleProps = CfnSafetyRuleProps.builder()
.controlPanelArn("controlPanelArn")
.name("name")
.ruleConfig(RuleConfigProperty.builder()
.inverted(false)
.threshold(123)
.type("type")
.build())
// the properties below are optional
.assertionRule(AssertionRuleProperty.builder()
.assertedControls(List.of("assertedControls"))
.waitPeriodMs(123)
.build())
.gatingRule(GatingRuleProperty.builder()
.gatingControls(List.of("gatingControls"))
.targetControls(List.of("targetControls"))
.waitPeriodMs(123)
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnSafetyRuleProps.Builder
A builder for
CfnSafetyRuleProps |
static class |
CfnSafetyRuleProps.Jsii$Proxy
An implementation for
CfnSafetyRuleProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnSafetyRuleProps.Builder |
builder() |
default Object |
getAssertionRule()
An assertion rule enforces that, when you change a routing control state, that the criteria that you set in the rule configuration is met.
|
String |
getControlPanelArn()
The Amazon Resource Name (ARN) for the control panel.
|
default Object |
getGatingRule()
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.
|
String |
getName()
The name of the assertion rule.
|
Object |
getRuleConfig()
The criteria that you set for specific assertion controls (routing controls) that designate how many control states must be `ON` as the result of a transaction.
|
default List<CfnTag> |
getTags()
The value for a tag.
|
@Stability(value=Stable) @NotNull String getControlPanelArn()
@Stability(value=Stable) @NotNull String getName()
You can use any non-white space character in the name. The name must be unique within a control panel.
@Stability(value=Stable) @NotNull Object getRuleConfig()
For example, if you have three assertion controls, you might specify ATLEAST 2 for your rule configuration. This means that at least two assertion controls must be ON , so that at least two AWS Regions have traffic flowing to them.
@Stability(value=Stable) @Nullable default Object getAssertionRule()
Otherwise, the change to the routing control is not accepted. For example, the criteria might be that at least one routing control state is On after 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.
@Stability(value=Stable) @Nullable default Object getGatingRule()
For example, if you specify one gating routing control and you set the Type in the rule configuration to OR , that indicates that you must set the gating routing control to On for 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.
@Stability(value=Stable) static CfnSafetyRuleProps.Builder builder()
CfnSafetyRuleProps.Builder of CfnSafetyRulePropsCopyright © 2022. All rights reserved.