Skip to content

CapacityReservationRequest

Source code in docs_src/capo_ecs/types/capacity_reservation_request.py
class CapacityReservationRequest(TypedDict, closed=True):
    reservation_group_arn: NotRequired["capo_ecs.types.string.String"]
    """<p>The ARN of the Capacity Reservation resource group in which to run the instance.</p>"""
    reservation_preference: NotRequired[
        "capo_ecs.types.capacity_reservation_preference.CapacityReservationPreference"
    ]
    """<p>The preference on when capacity reservations should be used.</p> <p>Valid values are:</p> <ul> <li> <p> <code>RESERVATIONS_ONLY</code> - Exclusively launch instances into capacity reservations that match the instance requirements configured for the capacity provider. If none exist, instances will fail to provision.</p> </li> <li> <p> <code>RESERVATIONS_FIRST</code> - Prefer to launch instances into a capacity reservation if any exist that match the instance requirements configured for the capacity provider. If none exist, fall back to launching instances On-Demand.</p> </li> <li> <p> <code>RESERVATIONS_EXCLUDED</code> - Avoid using capacity reservations and launch exclusively On-Demand.</p> </li> </ul>"""

reservation_group_arn instance-attribute

reservation_group_arn: NotRequired[String]

The ARN of the Capacity Reservation resource group in which to run the instance.

reservation_preference instance-attribute

reservation_preference: NotRequired[CapacityReservationPreference]

The preference on when capacity reservations should be used.

Valid values are:

  • RESERVATIONS_ONLY - Exclusively launch instances into capacity reservations that match the instance requirements configured for the capacity provider. If none exist, instances will fail to provision.

  • RESERVATIONS_FIRST - Prefer to launch instances into a capacity reservation if any exist that match the instance requirements configured for the capacity provider. If none exist, fall back to launching instances On-Demand.

  • RESERVATIONS_EXCLUDED - Avoid using capacity reservations and launch exclusively On-Demand.