Class CfnZonalAutoshiftConfigurationMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnZonalAutoshiftConfigurationMixinProps>
- Enclosing interface:
CfnZonalAutoshiftConfigurationMixinProps
CfnZonalAutoshiftConfigurationMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.practiceRunConfiguration(CfnZonalAutoshiftConfigurationPropsMixin.PracticeRunConfigurationProperty practiceRunConfiguration) Sets the value ofCfnZonalAutoshiftConfigurationMixinProps.getPracticeRunConfiguration()practiceRunConfiguration(IResolvable practiceRunConfiguration) Sets the value ofCfnZonalAutoshiftConfigurationMixinProps.getPracticeRunConfiguration()resourceIdentifier(String resourceIdentifier) Sets the value ofCfnZonalAutoshiftConfigurationMixinProps.getResourceIdentifier()zonalAutoshiftStatus(String zonalAutoshiftStatus) Sets the value ofCfnZonalAutoshiftConfigurationMixinProps.getZonalAutoshiftStatus()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
practiceRunConfiguration
@Stability(Stable) public CfnZonalAutoshiftConfigurationMixinProps.Builder practiceRunConfiguration(IResolvable practiceRunConfiguration) Sets the value ofCfnZonalAutoshiftConfigurationMixinProps.getPracticeRunConfiguration()- Parameters:
practiceRunConfiguration- 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. When a resource has a practice run configuration, ARC shifts traffic for the resource weekly for practice runs.Practice runs are required for zonal autoshift. The zonal shifts that ARC starts for practice runs help you to ensure that shifting away traffic from an Availability Zone during an autoshift is safe for your application.
You can update or delete a practice run configuration. Before you delete a practice run configuration, you must disable zonal autoshift for the resource. A practice run configuration is required when zonal autoshift is enabled.
- Returns:
this
-
practiceRunConfiguration
@Stability(Stable) public CfnZonalAutoshiftConfigurationMixinProps.Builder practiceRunConfiguration(CfnZonalAutoshiftConfigurationPropsMixin.PracticeRunConfigurationProperty practiceRunConfiguration) Sets the value ofCfnZonalAutoshiftConfigurationMixinProps.getPracticeRunConfiguration()- Parameters:
practiceRunConfiguration- 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. When a resource has a practice run configuration, ARC shifts traffic for the resource weekly for practice runs.Practice runs are required for zonal autoshift. The zonal shifts that ARC starts for practice runs help you to ensure that shifting away traffic from an Availability Zone during an autoshift is safe for your application.
You can update or delete a practice run configuration. Before you delete a practice run configuration, you must disable zonal autoshift for the resource. A practice run configuration is required when zonal autoshift is enabled.
- Returns:
this
-
resourceIdentifier
@Stability(Stable) public CfnZonalAutoshiftConfigurationMixinProps.Builder resourceIdentifier(String resourceIdentifier) Sets the value ofCfnZonalAutoshiftConfigurationMixinProps.getResourceIdentifier()- Parameters:
resourceIdentifier- The identifier for the resource that AWS shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.At this time, supported resources are Network Load Balancers and Application Load Balancers.
- Returns:
this
-
zonalAutoshiftStatus
@Stability(Stable) public CfnZonalAutoshiftConfigurationMixinProps.Builder zonalAutoshiftStatus(String zonalAutoshiftStatus) Sets the value ofCfnZonalAutoshiftConfigurationMixinProps.getZonalAutoshiftStatus()- Parameters:
zonalAutoshiftStatus- 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. Traffic is also shifted away for the required weekly practice runs.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnZonalAutoshiftConfigurationMixinProps>- Returns:
- a new instance of
CfnZonalAutoshiftConfigurationMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-