class CfnSafetyRulePropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Route53RecoveryControl.Mixins.CfnSafetyRulePropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsroute53recoverycontrol/mixins#CfnSafetyRulePropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.route53recoverycontrol.mixins.CfnSafetyRulePropsMixin |
Python | aws_cdk.mixins_preview.aws_route53recoverycontrol.mixins.CfnSafetyRulePropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_route53recoverycontrol » mixins » CfnSafetyRulePropsMixin |
Implements
IMixin
Extends
Mixin
Creates a safety rule in a control panel in Amazon Route 53 Application Recovery Controller.
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 { mixins } from '@aws-cdk/mixins-preview';
import { mixins as route53recoverycontrol_mixins } from '@aws-cdk/mixins-preview/aws-route53recoverycontrol';
const cfnSafetyRulePropsMixin = new route53recoverycontrol_mixins.CfnSafetyRulePropsMixin({
assertionRule: {
assertedControls: ['assertedControls'],
waitPeriodMs: 123,
},
controlPanelArn: 'controlPanelArn',
gatingRule: {
gatingControls: ['gatingControls'],
targetControls: ['targetControls'],
waitPeriodMs: 123,
},
name: 'name',
ruleConfig: {
inverted: false,
threshold: 123,
type: 'type',
},
tags: [{
key: 'key',
value: 'value',
}],
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnSafetyRulePropsMixin(props: CfnSafetyRuleMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Safety Rule Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::Route53RecoveryControl::SafetyRule.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript