Skip to content

EC2  >  Dictionaries  >  ReservedCapacityOptionsRequestDict

ReservedCapacityOptionsRequestDict

Dictionary Type

ReservedCapacityOptionsRequestDict

Bases: TypedDict

Dictionary form of ReservedCapacityOptionsRequest.

Attributes

allocation_strategy instance-attribute
allocation_strategy: str | None

The strategy that determines the order in which EC2 Fleet launches instances across the reservation types that you specify. The only supported value is prioritized, which launches instances in the priority order that you specify in your launch template overrides. If you don't specify an allocation strategy, instances are launched in a random order.

capacity_reservation_target instance-attribute

The Capacity Reservations or Capacity Reservation Resource Groups to use for fulfilling the EC2 Fleet request. You can specify Capacity Reservation IDs or a Capacity Reservation Resource Group ARN, but not both.

reservation_types instance-attribute
reservation_types: Sequence[str] | None

The types of Capacity Reservations to use for fulfilling the EC2 Fleet request. This is an ordered list: EC2 Fleet attempts to launch instances into each Capacity Reservation type in the order that you specify them before moving on to the next type.

reserved_capacity_fallback_options instance-attribute

The fallback behavior for the EC2 Fleet when there is not enough reserved capacity available to meet the target capacity. This member takes a ReservedCapacityFallbackOptionsRequest structure, in which you set MarketTypes to the instance purchasing options to fall back to.