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:
  • Field Details

    • CFN_PROPERTY_KEYS

      @Stability(Stable) protected static final List<String> 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 to AWS::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 to AWS::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.

      Specified by:
      applyTo in interface software.constructs.IMixin
      Specified by:
      applyTo in class Mixin
      Parameters:
      construct - This parameter is required.
    • supports

      @Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct)
      Check if this mixin supports the given construct.

      Specified by:
      supports in interface software.constructs.IMixin
      Overrides:
      supports in class Mixin
      Parameters:
      construct - This parameter is required.
    • getProps

      @Stability(Stable) @NotNull protected CfnZonalAutoshiftConfigurationMixinProps getProps()
    • getStrategy

      @Stability(Stable) @NotNull protected IMergeStrategy getStrategy()