Skip to content

ReservedCapacityOptionsRequest

Source code in docs_src/capo_ec2/types/reserved_capacity_options_request.py
class ReservedCapacityOptionsRequest(TypedDict, closed=True):
    allocation_strategy: NotRequired[
        "capo_ec2.types.reserved_capacity_allocation_strategy.ReservedCapacityAllocationStrategy"
    ]
    """<p>The strategy that determines the order in which EC2 Fleet launches instances across the reservation types that you specify. The only supported value is <code>prioritized</code>, 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.</p>"""
    reservation_types: NotRequired[
        "capo_ec2.types.reservation_type_list_request.ReservationTypeListRequest"
    ]
    """<p>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.</p>"""
    capacity_reservation_target: NotRequired[
        "capo_ec2.types.fleet_capacity_reservation_target_request.FleetCapacityReservationTargetRequest"
    ]
    """<p>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.</p>"""
    reserved_capacity_fallback_options: NotRequired[
        "capo_ec2.types.reserved_capacity_fallback_options_request.ReservedCapacityFallbackOptionsRequest"
    ]
    """<p>The fallback behavior for the EC2 Fleet when there is not enough reserved capacity available to meet the target capacity. This member takes a <code>ReservedCapacityFallbackOptionsRequest</code> structure, in which you set <code>MarketTypes</code> to the instance purchasing options to fall back to.</p>"""

allocation_strategy instance-attribute

allocation_strategy: NotRequired[ReservedCapacityAllocationStrategy]

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

capacity_reservation_target: NotRequired[FleetCapacityReservationTargetRequest]

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: NotRequired[ReservationTypeListRequest]

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

reserved_capacity_fallback_options: NotRequired[ReservedCapacityFallbackOptionsRequest]

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.