FleetSpotOptionsArgs

data class FleetSpotOptionsArgs(val allocationStrategy: Output<String>? = null, val instanceInterruptionBehavior: Output<String>? = null, val instancePoolsToUseCount: Output<Int>? = null, val maintenanceStrategies: Output<FleetSpotOptionsMaintenanceStrategiesArgs>? = null, val maxTotalPrice: Output<String>? = null, val minTargetCapacity: Output<Int>? = null, val singleAvailabilityZone: Output<Boolean>? = null, val singleInstanceType: Output<Boolean>? = null) : ConvertibleToJava<FleetSpotOptionsArgs>

Constructors

Link copied to clipboard
constructor(allocationStrategy: Output<String>? = null, instanceInterruptionBehavior: Output<String>? = null, instancePoolsToUseCount: Output<Int>? = null, maintenanceStrategies: Output<FleetSpotOptionsMaintenanceStrategiesArgs>? = null, maxTotalPrice: Output<String>? = null, minTargetCapacity: Output<Int>? = null, singleAvailabilityZone: Output<Boolean>? = null, singleInstanceType: Output<Boolean>? = null)

Properties

Link copied to clipboard
val allocationStrategy: Output<String>? = null

How to allocate the target capacity across the Spot pools. Valid values: diversified, lowestPrice, capacity-optimized, capacity-optimized-prioritized and price-capacity-optimized. Default: lowestPrice.

Link copied to clipboard

Behavior when a Spot Instance is interrupted. Valid values: hibernate, stop, terminate. Default: terminate.

Link copied to clipboard
val instancePoolsToUseCount: Output<Int>? = null

Number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot allocation_strategy is set to lowestPrice. Default: 1.

Link copied to clipboard

Nested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below.

Link copied to clipboard
val maxTotalPrice: Output<String>? = null

The maximum amount per hour for Spot Instances that you're willing to pay.

Link copied to clipboard
val minTargetCapacity: Output<Int>? = null

The minimum target capacity for Spot Instances in the fleet. If the minimum target capacity is not reached, the fleet launches no instances. Supported only for fleets of type instant.

Link copied to clipboard
val singleAvailabilityZone: Output<Boolean>? = null

Indicates that the fleet launches all Spot Instances into a single Availability Zone. Supported only for fleets of type instant.

Link copied to clipboard
val singleInstanceType: Output<Boolean>? = null

Indicates that the fleet uses a single instance type to launch all Spot Instances in the fleet. Supported only for fleets of type instant.

Functions

Link copied to clipboard
open override fun toJava(): FleetSpotOptionsArgs