Class LaunchTemplateSpotOptions.Jsii$Proxy
- All Implemented Interfaces:
LaunchTemplateSpotOptions
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
LaunchTemplateSpotOptions
LaunchTemplateSpotOptions
-
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.LaunchTemplateSpotOptions
LaunchTemplateSpotOptions.Builder, LaunchTemplateSpotOptions.Jsii$Proxy
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Constructor that initializes the object based on literal property values passed by theLaunchTemplateSpotOptions.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 Duration
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.final SpotInstanceInterruption
The behavior when a Spot Instance is interrupted.final Number
Maximum hourly price you're willing to pay for each Spot instance.final SpotRequestType
The Spot Instance request type.final Expiration
The end date of the request.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 theLaunchTemplateSpotOptions.Builder
.
-
-
Method Details
-
getBlockDuration
Description copied from interface:LaunchTemplateSpotOptions
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.You can use a duration of 1, 2, 3, 4, 5, or 6 hours.
Default: Requested spot instances do not have a pre-defined duration.
- Specified by:
getBlockDuration
in interfaceLaunchTemplateSpotOptions
- See Also:
-
getInterruptionBehavior
Description copied from interface:LaunchTemplateSpotOptions
The behavior when a Spot Instance is interrupted.Default: Spot instances will terminate when interrupted.
- Specified by:
getInterruptionBehavior
in interfaceLaunchTemplateSpotOptions
-
getMaxPrice
Description copied from interface:LaunchTemplateSpotOptions
Maximum hourly price you're willing to pay for each Spot instance.The 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.
- Specified by:
getMaxPrice
in interfaceLaunchTemplateSpotOptions
-
getRequestType
Description copied from interface:LaunchTemplateSpotOptions
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.
Default: One-time spot request.
- Specified by:
getRequestType
in interfaceLaunchTemplateSpotOptions
-
getValidUntil
Description copied from interface:LaunchTemplateSpotOptions
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.
Default: The default end date is 7 days from the current date.
- Specified by:
getValidUntil
in interfaceLaunchTemplateSpotOptions
-
$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()
-