ReservedCapacityOptionsRequest
¶
Used by
-
AsyncEC2Client Operationscreate_fleet -
EC2Client Operationscreate_fleet
Source code in docs_src/capo_ec2/types/reserved_capacity_options_request.py
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.