Class CfnZonalAutoshiftConfigurationProps.Builder

java.lang.Object
software.amazon.awscdk.services.arczonalshift.CfnZonalAutoshiftConfigurationProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnZonalAutoshiftConfigurationProps>
Enclosing interface:
CfnZonalAutoshiftConfigurationProps

@Stability(Stable) public static final class CfnZonalAutoshiftConfigurationProps.Builder extends Object implements software.amazon.jsii.Builder<CfnZonalAutoshiftConfigurationProps>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • resourceIdentifier

      @Stability(Stable) public CfnZonalAutoshiftConfigurationProps.Builder resourceIdentifier(String resourceIdentifier)
      Parameters:
      resourceIdentifier - The identifier for the resource that AWS shifts traffic for. This parameter is required. The identifier is the Amazon Resource Name (ARN) for the resource.

      At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.

      Returns:
      this
    • practiceRunConfiguration

      @Stability(Stable) public CfnZonalAutoshiftConfigurationProps.Builder practiceRunConfiguration(IResolvable practiceRunConfiguration)
      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, Route 53 ARC shifts traffic for the resource weekly for practice runs.

      Practice runs are required for zonal autoshift. The zonal shifts that Route 53 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 CfnZonalAutoshiftConfigurationProps.Builder practiceRunConfiguration(CfnZonalAutoshiftConfiguration.PracticeRunConfigurationProperty practiceRunConfiguration)
      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, Route 53 ARC shifts traffic for the resource weekly for practice runs.

      Practice runs are required for zonal autoshift. The zonal shifts that Route 53 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
    • zonalAutoshiftStatus

      @Stability(Stable) public CfnZonalAutoshiftConfigurationProps.Builder zonalAutoshiftStatus(String zonalAutoshiftStatus)
      Parameters:
      zonalAutoshiftStatus - 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.
      Returns:
      this
    • build

      @Stability(Stable) public CfnZonalAutoshiftConfigurationProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnZonalAutoshiftConfigurationProps>
      Returns:
      a new instance of CfnZonalAutoshiftConfigurationProps
      Throws:
      NullPointerException - if any required attribute was not provided