Class CfnZonalAutoshiftConfigurationPropsMixin
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.arczonalshift.CfnZonalAutoshiftConfigurationPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-11T13:19:56.084Z")
@Stability(Stable)
public class CfnZonalAutoshiftConfigurationPropsMixin
extends Mixin
implements software.constructs.IMixin
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 software.amazon.awscdk.cfnpropertymixins.services.arczonalshift.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
CfnZonalAutoshiftConfigurationPropsMixin cfnZonalAutoshiftConfigurationPropsMixin = CfnZonalAutoshiftConfigurationPropsMixin.Builder.create(CfnZonalAutoshiftConfigurationMixinProps.builder()
.practiceRunConfiguration(PracticeRunConfigurationProperty.builder()
.blockedDates(List.of("blockedDates"))
.blockedWindows(List.of("blockedWindows"))
.blockingAlarms(List.of(ControlConditionProperty.builder()
.alarmIdentifier("alarmIdentifier")
.type("type")
.build()))
.outcomeAlarms(List.of(ControlConditionProperty.builder()
.alarmIdentifier("alarmIdentifier")
.type("type")
.build()))
.build())
.resourceIdentifier("resourceIdentifier")
.zonalAutoshiftStatus("zonalAutoshiftStatus")
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnZonalAutoshiftConfigurationPropsMixin.static interfaceA control condition is an alarm that you specify for a practice run.static interfaceA practice run configuration for a resource includes the Amazon CloudWatch alarms that you've specified for a practice run, as well as any blocked dates or blocked windows for the practice run.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::ARCZonalShift::ZonalAutoshiftConfiguration.CfnZonalAutoshiftConfigurationPropsMixin(CfnZonalAutoshiftConfigurationMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::ARCZonalShift::ZonalAutoshiftConfiguration.protectedCfnZonalAutoshiftConfigurationPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnZonalAutoshiftConfigurationPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnZonalAutoshiftConfigurationMixinPropsgetProps()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
-
CfnZonalAutoshiftConfigurationPropsMixin
protected CfnZonalAutoshiftConfigurationPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnZonalAutoshiftConfigurationPropsMixin
protected CfnZonalAutoshiftConfigurationPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnZonalAutoshiftConfigurationPropsMixin
@Stability(Stable) public CfnZonalAutoshiftConfigurationPropsMixin(@NotNull CfnZonalAutoshiftConfigurationMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::ARCZonalShift::ZonalAutoshiftConfiguration.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnZonalAutoshiftConfigurationPropsMixin
@Stability(Stable) public CfnZonalAutoshiftConfigurationPropsMixin(@NotNull CfnZonalAutoshiftConfigurationMixinProps props) Create a mixin to apply properties toAWS::ARCZonalShift::ZonalAutoshiftConfiguration.- 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
-