Class CfnSafetyRulePropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
Safety rules in Amazon Route 53 Application Recovery Controller let you add safeguards around changing routing control states, and enabling and disabling routing controls, to help prevent unwanted outcomes. Note that the name of a safety rule must be unique within a control panel.
There are two types of safety rules in Route 53 ARC: assertion rules and gating rules.
Assertion rule: An assertion rule enforces that, when you change a routing control state, certain criteria are met. For example, the criteria might be that at least one routing control state is On after the transaction completes so that traffic continues to be directed to at least one cell for the application. This prevents a fail-open scenario.
Gating rule: A gating rule lets you configure a gating routing control as an overall on-off switch for a group of routing controls. Or, you can configure more complex gating scenarios, for example, by configuring multiple gating routing controls.
For more information, see Safety rules in the Amazon Route 53 Application Recovery Controller Developer Guide.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.route53recoverycontrol.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
CfnSafetyRulePropsMixin cfnSafetyRulePropsMixin = CfnSafetyRulePropsMixin.Builder.create(CfnSafetyRuleMixinProps.builder()
.assertionRule(AssertionRuleProperty.builder()
.assertedControls(List.of("assertedControls"))
.waitPeriodMs(123)
.build())
.controlPanelArn("controlPanelArn")
.gatingRule(GatingRuleProperty.builder()
.gatingControls(List.of("gatingControls"))
.targetControls(List.of("targetControls"))
.waitPeriodMs(123)
.build())
.name("name")
.ruleConfig(RuleConfigProperty.builder()
.inverted(false)
.threshold(123)
.type("type")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAn assertion rule enforces that, when you change a routing control state, that the criteria that you set in the rule configuration is met.static final classA fluent builder forCfnSafetyRulePropsMixin.static interfaceA 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.static interfaceThe rule configuration for an assertion rule.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::Route53RecoveryControl::SafetyRule.CfnSafetyRulePropsMixin(CfnSafetyRuleMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::Route53RecoveryControl::SafetyRule.protectedCfnSafetyRulePropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnSafetyRulePropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnSafetyRuleMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnSafetyRulePropsMixin
protected CfnSafetyRulePropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnSafetyRulePropsMixin
protected CfnSafetyRulePropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnSafetyRulePropsMixin
@Stability(Stable) public CfnSafetyRulePropsMixin(@NotNull CfnSafetyRuleMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::Route53RecoveryControl::SafetyRule.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnSafetyRulePropsMixin
Create a mixin to apply properties toAWS::Route53RecoveryControl::SafetyRule.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-