Interface AvailabilityZoneDistribution.Builder

    • Method Detail

      • capacityDistributionStrategy

        AvailabilityZoneDistribution.Builder capacityDistributionStrategy​(String capacityDistributionStrategy)

        If launches fail in an Availability Zone, the following strategies are available. The default is balanced-best-effort.

        • balanced-only - If launches fail in an Availability Zone, Auto Scaling will continue to attempt to launch in the unhealthy zone to preserve a balanced distribution.

        • balanced-best-effort - If launches fail in an Availability Zone, Auto Scaling will attempt to launch in another healthy Availability Zone instead.

        Parameters:
        capacityDistributionStrategy - If launches fail in an Availability Zone, the following strategies are available. The default is balanced-best-effort.

        • balanced-only - If launches fail in an Availability Zone, Auto Scaling will continue to attempt to launch in the unhealthy zone to preserve a balanced distribution.

        • balanced-best-effort - If launches fail in an Availability Zone, Auto Scaling will attempt to launch in another healthy Availability Zone instead.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        CapacityDistributionStrategy, CapacityDistributionStrategy
      • capacityDistributionStrategy

        AvailabilityZoneDistribution.Builder capacityDistributionStrategy​(CapacityDistributionStrategy capacityDistributionStrategy)

        If launches fail in an Availability Zone, the following strategies are available. The default is balanced-best-effort.

        • balanced-only - If launches fail in an Availability Zone, Auto Scaling will continue to attempt to launch in the unhealthy zone to preserve a balanced distribution.

        • balanced-best-effort - If launches fail in an Availability Zone, Auto Scaling will attempt to launch in another healthy Availability Zone instead.

        Parameters:
        capacityDistributionStrategy - If launches fail in an Availability Zone, the following strategies are available. The default is balanced-best-effort.

        • balanced-only - If launches fail in an Availability Zone, Auto Scaling will continue to attempt to launch in the unhealthy zone to preserve a balanced distribution.

        • balanced-best-effort - If launches fail in an Availability Zone, Auto Scaling will attempt to launch in another healthy Availability Zone instead.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        CapacityDistributionStrategy, CapacityDistributionStrategy