class CfnZonalAutoshiftConfigurationPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.ARCZonalShift.Mixins.CfnZonalAutoshiftConfigurationPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsarczonalshift/mixins#CfnZonalAutoshiftConfigurationPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.arczonalshift.mixins.CfnZonalAutoshiftConfigurationPropsMixin |
Python | aws_cdk.mixins_preview.aws_arczonalshift.mixins.CfnZonalAutoshiftConfigurationPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_arczonalshift » mixins » CfnZonalAutoshiftConfigurationPropsMixin |
Implements
IMixin
Extends
Mixin
The zonal autoshift configuration for a resource includes the practice run configuration and the status for running autoshifts, zonal autoshift status.
When a resource has a practice run configuation, ARC starts weekly zonal shifts for the resource, to shift traffic away from an Availability Zone. Weekly practice runs help you to make sure that your application can continue to operate normally with the loss of one Availability Zone.
You can update the zonal autoshift autoshift status to enable or disable zonal autoshift. When zonal autoshift is ENABLED , you authorize AWS to shift away resource traffic for an application from an Availability Zone during events, on your behalf, to help reduce time to recovery. Traffic is also shifted away for the required weekly practice runs.
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 arczonalshift_mixins } from '@aws-cdk/mixins-preview/aws-arczonalshift';
const cfnZonalAutoshiftConfigurationPropsMixin = new arczonalshift_mixins.CfnZonalAutoshiftConfigurationPropsMixin({
practiceRunConfiguration: {
blockedDates: ['blockedDates'],
blockedWindows: ['blockedWindows'],
blockingAlarms: [{
alarmIdentifier: 'alarmIdentifier',
type: 'type',
}],
outcomeAlarms: [{
alarmIdentifier: 'alarmIdentifier',
type: 'type',
}],
},
resourceIdentifier: 'resourceIdentifier',
zonalAutoshiftStatus: 'zonalAutoshiftStatus',
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnZonalAutoshiftConfigurationPropsMixin(props: CfnZonalAutoshiftConfigurationMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Zonal Autoshift Configuration Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::ARCZonalShift::ZonalAutoshiftConfiguration.
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