@Stability(value=Stable) public static final class CfnLaunchTemplate.SpotOptionsProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnLaunchTemplate.SpotOptionsProperty>
CfnLaunchTemplate.SpotOptionsProperty| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnLaunchTemplate.SpotOptionsProperty.Builder blockDurationMinutes(Number blockDurationMinutes)
CfnLaunchTemplate.SpotOptionsProperty.getBlockDurationMinutes()blockDurationMinutes - The required duration for the Spot Instances (also known as Spot blocks), in minutes.
This value must be a multiple of 60 (60, 120, 180, 240, 300, or 360).this@Stability(value=Stable) public CfnLaunchTemplate.SpotOptionsProperty.Builder instanceInterruptionBehavior(String instanceInterruptionBehavior)
CfnLaunchTemplate.SpotOptionsProperty.getInstanceInterruptionBehavior()instanceInterruptionBehavior - The behavior when a Spot Instance is interrupted.
The default is terminate .this@Stability(value=Stable) public CfnLaunchTemplate.SpotOptionsProperty.Builder maxPrice(String maxPrice)
CfnLaunchTemplate.SpotOptionsProperty.getMaxPrice()maxPrice - The maximum hourly price you're willing to pay for the Spot Instances.this@Stability(value=Stable) public CfnLaunchTemplate.SpotOptionsProperty.Builder spotInstanceType(String spotInstanceType)
CfnLaunchTemplate.SpotOptionsProperty.getSpotInstanceType()spotInstanceType - The Spot Instance request type.
If you are using Spot Instances with an Auto Scaling group, use one-time requests, as the Amazon EC2 Auto Scaling service handles requesting new Spot Instances whenever the group is below its desired capacity.this@Stability(value=Stable) public CfnLaunchTemplate.SpotOptionsProperty.Builder validUntil(String validUntil)
CfnLaunchTemplate.SpotOptionsProperty.getValidUntil()validUntil - The end date of the request.
For a one-time request, the request remains active until all instances launch, the request is canceled, or this date is reached. If the request is persistent, it remains active until it is canceled or this date and time is reached. The default end date is 7 days from the current date.this@Stability(value=Stable) public CfnLaunchTemplate.SpotOptionsProperty build()
build in interface software.amazon.jsii.Builder<CfnLaunchTemplate.SpotOptionsProperty>CfnLaunchTemplate.SpotOptionsPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.