SpotOptions

Describes the configuration of Spot Instances in an EC2 Fleet.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The strategy that determines how to allocate the target Spot Instance capacity across the Spot Instance pools specified by the EC2 Fleet launch configuration. For more information, see Allocation strategies for Spot Instances in the Amazon EC2 User Guide.

Link copied to clipboard

The behavior when a Spot Instance is interrupted.

Link copied to clipboard

The number of Spot pools across which to allocate your target Spot capacity. Supported 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.

Link copied to clipboard

The strategies for managing your workloads on your Spot Instances that will be interrupted. Currently only the capacity rebalance strategy is available.

Link copied to clipboard

The maximum amount per hour for Spot Instances that you're willing to pay. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.

Link copied to clipboard

The minimum target capacity for Spot Instances in the fleet. If the minimum target capacity is not reached, the fleet launches no instances.

Link copied to clipboard

Indicates that the fleet launches all Spot Instances into a single Availability Zone.

Link copied to clipboard

Indicates that the fleet uses a single instance type to launch all Spot Instances in the fleet.

Functions

Link copied to clipboard
inline fun copy(block: SpotOptions.Builder.() -> Unit = {}): SpotOptions
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String