Skip to content

CapacityReservationSpecification

Source code in docs_src/capo_ec2/types/capacity_reservation_specification.py
class CapacityReservationSpecification(TypedDict, closed=True):
    capacity_reservation_preference: NotRequired[
        "capo_ec2.types.capacity_reservation_preference.CapacityReservationPreference"
    ]
    """<p>Indicates the instance's Capacity Reservation preferences. Possible preferences include:</p> <ul> <li> <p> <code>capacity-reservations-only</code> - The instance will only run in a Capacity Reservation or Capacity Reservation group. If capacity isn't available, the instance will fail to launch.</p> </li> <li> <p> <code>open</code> - The instance can run in any <code>open</code> Capacity Reservation that has matching attributes (instance type, platform, Availability Zone, and tenancy). If capacity isn't available, the instance runs as an On-Demand Instance.</p> </li> <li> <p> <code>none</code> - The instance doesn't run in a Capacity Reservation even if one is available. The instance runs as an On-Demand Instance.</p> </li> </ul>"""
    capacity_reservation_target: NotRequired[
        "capo_ec2.types.capacity_reservation_target.CapacityReservationTarget"
    ]
    """<p>Information about the target Capacity Reservation or Capacity Reservation group.</p>"""

capacity_reservation_preference instance-attribute

capacity_reservation_preference: NotRequired[CapacityReservationPreference]

Indicates the instance's Capacity Reservation preferences. Possible preferences include:

  • capacity-reservations-only - The instance will only run in a Capacity Reservation or Capacity Reservation group. If capacity isn't available, the instance will fail to launch.

  • open - The instance can run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone, and tenancy). If capacity isn't available, the instance runs as an On-Demand Instance.

  • none - The instance doesn't run in a Capacity Reservation even if one is available. The instance runs as an On-Demand Instance.

capacity_reservation_target instance-attribute

capacity_reservation_target: NotRequired[CapacityReservationTarget]

Information about the target Capacity Reservation or Capacity Reservation group.