Skip to content

ReservedCapacityOptions

Source code in docs_src/capo_ec2/types/reserved_capacity_options.py
class ReservedCapacityOptions(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.ReservationTypeList"
    ]
    """<p>The types of Capacity Reservations used for fulfilling the EC2 Fleet request.</p>"""
    reserved_capacity_fallback_options: NotRequired[
        "capo_ec2.types.reserved_capacity_fallback_options.ReservedCapacityFallbackOptions"
    ]
    """<p>The fallback behavior for the EC2 Fleet when there is not enough reserved capacity available to meet the target capacity.</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.

reservation_types instance-attribute

reservation_types: NotRequired[ReservationTypeList]

The types of Capacity Reservations used for fulfilling the EC2 Fleet request.

reserved_capacity_fallback_options instance-attribute

reserved_capacity_fallback_options: NotRequired[ReservedCapacityFallbackOptions]

The fallback behavior for the EC2 Fleet when there is not enough reserved capacity available to meet the target capacity.