Class CfnZonalAutoshiftConfiguration
- All Implemented Interfaces:
IInspectable,IZonalAutoshiftConfigurationRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
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.services.arczonalshift.*;
CfnZonalAutoshiftConfiguration cfnZonalAutoshiftConfiguration = CfnZonalAutoshiftConfiguration.Builder.create(this, "MyCfnZonalAutoshiftConfiguration")
.resourceIdentifier("resourceIdentifier")
// the properties below are optional
.practiceRunConfiguration(PracticeRunConfigurationProperty.builder()
.outcomeAlarms(List.of(ControlConditionProperty.builder()
.alarmIdentifier("alarmIdentifier")
.type("type")
.build()))
// the properties below are optional
.blockedDates(List.of("blockedDates"))
.blockedWindows(List.of("blockedWindows"))
.blockingAlarms(List.of(ControlConditionProperty.builder()
.alarmIdentifier("alarmIdentifier")
.type("type")
.build()))
.build())
.zonalAutoshiftStatus("zonalAutoshiftStatus")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnZonalAutoshiftConfiguration.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.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.arczonalshift.IZonalAutoshiftConfigurationRef
IZonalAutoshiftConfigurationRef.Jsii$Default, IZonalAutoshiftConfigurationRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnZonalAutoshiftConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnZonalAutoshiftConfiguration(software.amazon.jsii.JsiiObjectRef objRef) CfnZonalAutoshiftConfiguration(software.constructs.Construct scope, String id, CfnZonalAutoshiftConfigurationProps props) -
Method Summary
Modifier and TypeMethodDescriptionA 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.The identifier for the resource that AWS shifts traffic for.A reference to a ZonalAutoshiftConfiguration resource.When zonal autoshift isENABLED, 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.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidA 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.voidA 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.voidsetResourceIdentifier(String value) The identifier for the resource that AWS shifts traffic for.voidsetZonalAutoshiftStatus(String value) When zonal autoshift isENABLED, 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.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnZonalAutoshiftConfiguration
protected CfnZonalAutoshiftConfiguration(software.amazon.jsii.JsiiObjectRef objRef) -
CfnZonalAutoshiftConfiguration
protected CfnZonalAutoshiftConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnZonalAutoshiftConfiguration
@Stability(Stable) public CfnZonalAutoshiftConfiguration(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnZonalAutoshiftConfigurationProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getZonalAutoshiftConfigurationRef
@Stability(Stable) @NotNull public ZonalAutoshiftConfigurationReference getZonalAutoshiftConfigurationRef()A reference to a ZonalAutoshiftConfiguration resource.- Specified by:
getZonalAutoshiftConfigurationRefin interfaceIZonalAutoshiftConfigurationRef
-
getResourceIdentifier
The identifier for the resource that AWS shifts traffic for. -
setResourceIdentifier
The identifier for the resource that AWS shifts traffic for. -
getPracticeRunConfiguration
A 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.Returns union: either
IResolvableorCfnZonalAutoshiftConfiguration.PracticeRunConfigurationProperty -
setPracticeRunConfiguration
A 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. -
setPracticeRunConfiguration
@Stability(Stable) public void setPracticeRunConfiguration(@Nullable CfnZonalAutoshiftConfiguration.PracticeRunConfigurationProperty value) A 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. -
getZonalAutoshiftStatus
When zonal autoshift isENABLED, 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. -
setZonalAutoshiftStatus
When zonal autoshift isENABLED, 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.
-