Amazon Elastic Compute Cloud
API Reference (API Version 2016-11-15)

SpotOptions

Describes the configuration of Spot Instances in an EC2 Fleet.

Contents

allocationStrategy

Indicates how to allocate the target capacity across the Spot pools specified by the Spot Fleet request. The default is lowest-price.

Type: String

Valid Values: lowest-price | diversified

Required: No

instanceInterruptionBehavior

The behavior when a Spot Instance is interrupted. The default is terminate.

Type: String

Valid Values: hibernate | stop | terminate

Required: No

instancePoolsToUseCount

The number of Spot pools across which to allocate your target Spot capacity. Valid only when AllocationStrategy is set to lowestPrice. EC2 Fleet selects the cheapest Spot pools and evenly allocates your target Spot capacity across the number of Spot pools that you specify.

Type: Integer

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

On this page: