ReservedCapacityOptions¶
Structure Class¶
ReservedCapacityOptions
dataclass
¶
Bases: _SerdeShape
Defines EC2 Fleet preferences for utilizing reserved capacity when
DefaultTargetCapacityType is set to reserved-capacity. EC2 Fleet can
fulfill reserved capacity using On-Demand Capacity Reservations,
Capacity Blocks for ML, and interruptible Capacity Reservations.
Attributes¶
allocation_strategy
class-attribute
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.
reservation_types
class-attribute
instance-attribute
¶
The types of Capacity Reservations used for fulfilling the EC2 Fleet request.
reserved_capacity_fallback_options
class-attribute
instance-attribute
¶
reserved_capacity_fallback_options: ReservedCapacityFallbackOptions | None = ...
The fallback behavior for the EC2 Fleet when there is not enough reserved capacity available to meet the target capacity.