Skip to content

ECS  >  Dictionaries  >  CapacityReservationRequestDict

CapacityReservationRequestDict

Dictionary Type

CapacityReservationRequestDict

Bases: TypedDict

Dictionary form of CapacityReservationRequest.

Attributes

reservation_group_arn instance-attribute
reservation_group_arn: str | None

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

reservation_preference instance-attribute
reservation_preference: str | None

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.