@Stability(value=Stable) @Internal public static final class LaunchTemplateSpotOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements LaunchTemplateSpotOptions
LaunchTemplateSpotOptionssoftware.amazon.jsii.JsiiObject.InitializationModeLaunchTemplateSpotOptions.Builder, LaunchTemplateSpotOptions.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
protected |
Jsii$Proxy(LaunchTemplateSpotOptions.Builder builder)
Constructor that initializes the object based on literal property values passed by the
LaunchTemplateSpotOptions.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
Duration |
getBlockDuration()
Spot Instances with a defined duration (also known as Spot blocks) are designed not to be interrupted and will run continuously for the duration you select.
|
SpotInstanceInterruption |
getInterruptionBehavior()
The behavior when a Spot Instance is interrupted.
|
Number |
getMaxPrice()
Maximum hourly price you're willing to pay for each Spot instance.
|
SpotRequestType |
getRequestType()
The Spot Instance request type.
|
Expiration |
getValidUntil()
The end date of the request.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(LaunchTemplateSpotOptions.Builder builder)
LaunchTemplateSpotOptions.Builder.public final Duration getBlockDuration()
LaunchTemplateSpotOptionsYou can use a duration of 1, 2, 3, 4, 5, or 6 hours.
Default: Requested spot instances do not have a pre-defined duration.
getBlockDuration in interface LaunchTemplateSpotOptionspublic final SpotInstanceInterruption getInterruptionBehavior()
LaunchTemplateSpotOptionsDefault: Spot instances will terminate when interrupted.
getInterruptionBehavior in interface LaunchTemplateSpotOptionspublic final Number getMaxPrice()
LaunchTemplateSpotOptionsThe value is given in dollars. ex: 0.01 for 1 cent per hour, or 0.001 for one-tenth of a cent per hour.
Default: Maximum hourly price will default to the on-demand price for the instance type.
getMaxPrice in interface LaunchTemplateSpotOptionspublic final SpotRequestType getRequestType()
LaunchTemplateSpotOptionsIf 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.
Default: One-time spot request.
getRequestType in interface LaunchTemplateSpotOptionspublic final Expiration getValidUntil()
LaunchTemplateSpotOptionsFor 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.
Default: The default end date is 7 days from the current date.
getValidUntil in interface LaunchTemplateSpotOptions@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.