pub struct SpotOptions {
pub allocation_strategy: Option<String>,
pub instance_interruption_behavior: Option<String>,
pub instance_pools_to_use_count: Option<i64>,
pub max_total_price: Option<String>,
pub min_target_capacity: Option<i64>,
pub single_availability_zone: Option<bool>,
pub single_instance_type: Option<bool>,
}Expand description
Describes the configuration of Spot Instances in an EC2 Fleet.
Fields§
§allocation_strategy: Option<String>Indicates how to allocate the target Spot Instance capacity across the Spot Instance pools specified by the EC2 Fleet.
If the allocation strategy is lowest-price, EC2 Fleet launches instances from the Spot Instance pools with the lowest price. This is the default allocation strategy.
If the allocation strategy is diversified, EC2 Fleet launches instances from all of the Spot Instance pools that you specify.
If the allocation strategy is capacity-optimized, EC2 Fleet launches instances from Spot Instance pools with optimal capacity for the number of instances that are launching.
instance_interruption_behavior: Option<String>The behavior when a Spot Instance is interrupted. The default is terminate.
instance_pools_to_use_count: Option<i64>The number of Spot pools across which to allocate your target Spot capacity. Valid only when AllocationStrategy is set to lowest-price. EC2 Fleet selects the cheapest Spot pools and evenly allocates your target Spot capacity across the number of Spot pools that you specify.
max_total_price: Option<String>The maximum amount per hour for Spot Instances that you're willing to pay.
min_target_capacity: Option<i64>The minimum target capacity for Spot Instances in the fleet. If the minimum target capacity is not reached, the fleet launches no instances.
single_availability_zone: Option<bool>Indicates that the fleet launches all Spot Instances into a single Availability Zone. Supported only for fleets of type instant.
single_instance_type: Option<bool>Indicates that the fleet uses a single instance type to launch all Spot Instances in the fleet. Supported only for fleets of type instant.
Trait Implementations§
Source§impl Clone for SpotOptions
impl Clone for SpotOptions
Source§fn clone(&self) -> SpotOptions
fn clone(&self) -> SpotOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more