Skip to content

CapacityReservationSpecification

Source code in docs_src/capo_auto_scaling/types/capacity_reservation_specification.py
class CapacityReservationSpecification(TypedDict, closed=True):
    capacity_reservation_preference: NotRequired[
        "capo_auto_scaling.types.capacity_reservation_preference.CapacityReservationPreference"
    ]
    """<p> The capacity reservation preference. The following options are available: </p> <ul> <li> <p> <code>capacity-reservations-only</code> - Auto Scaling will only launch instances into a Capacity Reservation or Capacity Reservation resource group. If capacity isn't available, instances will fail to launch.</p> </li> <li> <p> <code>capacity-reservations-first</code> - Auto Scaling will try to launch instances into a Capacity Reservation or Capacity Reservation resource group first. If capacity isn't available, instances will run in On-Demand capacity.</p> </li> <li> <p> <code>none</code> - Auto Scaling will not launch instances into a Capacity Reservation. Instances will run in On-Demand capacity. </p> </li> <li> <p> <code>default</code> - Auto Scaling uses the Capacity Reservation preference from your launch template or an open Capacity Reservation.</p> </li> </ul>"""
    capacity_reservation_target: NotRequired[
        "capo_auto_scaling.types.capacity_reservation_target.CapacityReservationTarget"
    ]
    """<p> Describes a target Capacity Reservation or Capacity Reservation resource group. </p>"""

capacity_reservation_preference instance-attribute

capacity_reservation_preference: NotRequired[CapacityReservationPreference]

The capacity reservation preference. The following options are available:

  • capacity-reservations-only - Auto Scaling will only launch instances into a Capacity Reservation or Capacity Reservation resource group. If capacity isn't available, instances will fail to launch.

  • capacity-reservations-first - Auto Scaling will try to launch instances into a Capacity Reservation or Capacity Reservation resource group first. If capacity isn't available, instances will run in On-Demand capacity.

  • none - Auto Scaling will not launch instances into a Capacity Reservation. Instances will run in On-Demand capacity.

  • default - Auto Scaling uses the Capacity Reservation preference from your launch template or an open Capacity Reservation.

capacity_reservation_target instance-attribute

capacity_reservation_target: NotRequired[CapacityReservationTarget]

Describes a target Capacity Reservation or Capacity Reservation resource group.