LaunchTemplateSpotOptionsArgs

data class LaunchTemplateSpotOptionsArgs(val blockDurationMinutes: Output<Int>? = null, val instanceInterruptionBehavior: Output<String>? = null, val maxPrice: Output<String>? = null, val spotInstanceType: Output<String>? = null, val validUntil: Output<String>? = null) : ConvertibleToJava<LaunchTemplateSpotOptionsArgs>

Specifies options for Spot Instances. `SpotOptions` is a property of AWS::EC2::LaunchTemplate InstanceMarketOptions.

Constructors

Link copied to clipboard
constructor(blockDurationMinutes: Output<Int>? = null, instanceInterruptionBehavior: Output<String>? = null, maxPrice: Output<String>? = null, spotInstanceType: Output<String>? = null, validUntil: Output<String>? = null)

Properties

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

Deprecated.

Link copied to clipboard

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

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

The maximum hourly price you're willing to pay for a Spot Instance. 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. If you do specify this parameter, it must be more than USD $0.001. Specifying a value below USD $0.001 will result in an `InvalidParameterValue` error message when the launch template is used to launch an instance. If you specify a maximum price, your Spot Instances will be interrupted more frequently than if you do not specify this parameter.

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

The Spot Instance request type. If you are using Spot Instances with an Auto Scaling group, use `one-time` requests, as the ASlong service handles requesting new Spot Instances whenever the group is below its desired capacity.

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

The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ). Supported only for persistent requests.

Functions

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