GroupMixedInstancesPolicyInstancesDistributionArgs

data class GroupMixedInstancesPolicyInstancesDistributionArgs(val onDemandAllocationStrategy: Output<String>? = null, val onDemandBaseCapacity: Output<Int>? = null, val onDemandPercentageAboveBaseCapacity: Output<Int>? = null, val spotAllocationStrategy: Output<String>? = null, val spotInstancePools: Output<Int>? = null, val spotMaxPrice: Output<String>? = null) : ConvertibleToJava<GroupMixedInstancesPolicyInstancesDistributionArgs>

Constructors

constructor(onDemandAllocationStrategy: Output<String>? = null, onDemandBaseCapacity: Output<Int>? = null, onDemandPercentageAboveBaseCapacity: Output<Int>? = null, spotAllocationStrategy: Output<String>? = null, spotInstancePools: Output<Int>? = null, spotMaxPrice: Output<String>? = null)

Properties

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

Strategy to use when launching on-demand instances. Valid values: prioritized, lowest-price. Default: prioritized.

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

Absolute minimum amount of desired capacity that must be fulfilled by on-demand instances. Default: 0.

Link copied to clipboard

Percentage split between on-demand and Spot instances above the base on-demand capacity. Default: 100.

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

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

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

Number of Spot pools per availability zone to allocate capacity. EC2 Auto Scaling selects the cheapest Spot pools and evenly allocates Spot capacity across the number of Spot pools that you specify. Only available with spot_allocation_strategy set to lowest-price. Otherwise it must be set to 0, if it has been defined before. Default: 2.

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

Maximum price per unit hour that the user is willing to pay for the Spot instances. Default: an empty string which means the on-demand price.

Functions

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