Class CfnLaunchTemplate.SpotOptionsProperty.Jsii$Proxy
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ec2.CfnLaunchTemplate.SpotOptionsProperty.Jsii$Proxy
- All Implemented Interfaces:
CfnLaunchTemplate.SpotOptionsProperty,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- CfnLaunchTemplate.SpotOptionsProperty
@Stability(Stable)
@Internal
public static final class CfnLaunchTemplate.SpotOptionsProperty.Jsii$Proxy
extends software.amazon.jsii.JsiiObject
implements CfnLaunchTemplate.SpotOptionsProperty
An implementation for
CfnLaunchTemplate.SpotOptionsProperty-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.CfnLaunchTemplate.SpotOptionsProperty
CfnLaunchTemplate.SpotOptionsProperty.Builder, CfnLaunchTemplate.SpotOptionsProperty.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor that initializes the object based on literal property values passed by theCfnLaunchTemplate.SpotOptionsProperty.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodefinal booleanfinal NumberDeprecated.final StringThe behavior when a Spot Instance is interrupted.final StringThe maximum hourly price you're willing to pay for the Spot Instances.final StringThe Spot Instance request type.final StringThe end date of the request, in UTC format ( YYYY-MM-DD T HH:MM:SS Z).final inthashCode()Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theCfnLaunchTemplate.SpotOptionsProperty.Builder.
-
-
Method Details
-
getBlockDurationMinutes
Description copied from interface:CfnLaunchTemplate.SpotOptionsPropertyDeprecated.- Specified by:
getBlockDurationMinutesin interfaceCfnLaunchTemplate.SpotOptionsProperty
-
getInstanceInterruptionBehavior
Description copied from interface:CfnLaunchTemplate.SpotOptionsPropertyThe behavior when a Spot Instance is interrupted.The default is
terminate.- Specified by:
getInstanceInterruptionBehaviorin interfaceCfnLaunchTemplate.SpotOptionsProperty
-
getMaxPrice
Description copied from interface:CfnLaunchTemplate.SpotOptionsPropertyThe maximum hourly price you're willing to pay for the Spot Instances.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 specify a maximum price, your Spot Instances will be interrupted more frequently than if you do not specify this parameter.
- Specified by:
getMaxPricein interfaceCfnLaunchTemplate.SpotOptionsProperty
-
getSpotInstanceType
Description copied from interface:CfnLaunchTemplate.SpotOptionsPropertyThe Spot Instance request type.If you are using Spot Instances with an Auto Scaling group, use
one-timerequests, as the Amazon EC2 Auto Scaling service handles requesting new Spot Instances whenever the group is below its desired capacity.- Specified by:
getSpotInstanceTypein interfaceCfnLaunchTemplate.SpotOptionsProperty
-
getValidUntil
Description copied from interface:CfnLaunchTemplate.SpotOptionsPropertyThe end date of the request, in UTC format ( YYYY-MM-DD T HH:MM:SS Z). Supported only for persistent requests.- For a persistent request, the request remains active until the
ValidUntildate and time is reached. Otherwise, the request remains active until you cancel it. - For a one-time request,
ValidUntilis not supported. The request remains active until all instances launch or you cancel the request.
Default: 7 days from the current date
- Specified by:
getValidUntilin interfaceCfnLaunchTemplate.SpotOptionsProperty
- For a persistent request, the request remains active until the
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-