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.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.CfnLaunchTemplate.SpotOptionsProperty
CfnLaunchTemplate.SpotOptionsProperty.Builder, CfnLaunchTemplate.SpotOptionsProperty.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor that initializes the object based on literal property values passed by theCfnLaunchTemplate.SpotOptionsProperty.Builder
.protected
Jsii$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.JsonNode
final boolean
final Number
Deprecated.final String
The behavior when a Spot Instance is interrupted.final String
The maximum hourly price you're willing to pay for the Spot Instances.final String
The Spot Instance request type.final String
The end date of the request, in UTC format ( YYYY-MM-DD T HH:MM:SS Z).final int
hashCode()
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.SpotOptionsProperty
Deprecated.- Specified by:
getBlockDurationMinutes
in interfaceCfnLaunchTemplate.SpotOptionsProperty
-
getInstanceInterruptionBehavior
Description copied from interface:CfnLaunchTemplate.SpotOptionsProperty
The behavior when a Spot Instance is interrupted.The default is
terminate
.- Specified by:
getInstanceInterruptionBehavior
in interfaceCfnLaunchTemplate.SpotOptionsProperty
-
getMaxPrice
Description copied from interface:CfnLaunchTemplate.SpotOptionsProperty
The 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:
getMaxPrice
in interfaceCfnLaunchTemplate.SpotOptionsProperty
-
getSpotInstanceType
Description copied from interface:CfnLaunchTemplate.SpotOptionsProperty
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.- Specified by:
getSpotInstanceType
in interfaceCfnLaunchTemplate.SpotOptionsProperty
-
getValidUntil
Description copied from interface:CfnLaunchTemplate.SpotOptionsProperty
The 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
ValidUntil
date and time is reached. Otherwise, the request remains active until you cancel it. - For a one-time request,
ValidUntil
is not supported. The request remains active until all instances launch or you cancel the request.
Default: 7 days from the current date
- Specified by:
getValidUntil
in 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$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-