@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:17.101Z") @Stability(value=Experimental) public interface LaunchTemplateSpotOptions extends software.amazon.jsii.JsiiSerializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
LaunchTemplateSpotOptions.Builder
A builder for
LaunchTemplateSpotOptions |
static class |
LaunchTemplateSpotOptions.Jsii$Proxy
An implementation for
LaunchTemplateSpotOptions |
| Modifier and Type | Method and Description |
|---|---|
static LaunchTemplateSpotOptions.Builder |
builder() |
default Duration |
getBlockDuration()
(experimental) 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.
|
default SpotInstanceInterruption |
getInterruptionBehavior()
(experimental) The behavior when a Spot Instance is interrupted.
|
default Number |
getMaxPrice()
(experimental) Maximum hourly price you're willing to pay for each Spot instance.
|
default SpotRequestType |
getRequestType()
(experimental) The Spot Instance request type.
|
default Expiration |
getValidUntil()
(experimental) The end date of the request.
|
@Stability(value=Experimental) @Nullable default Duration getBlockDuration()
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.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html#fixed-duration-spot-instances@Stability(value=Experimental) @Nullable default SpotInstanceInterruption getInterruptionBehavior()
Default: Spot instances will terminate when interrupted.
@Stability(value=Experimental) @Nullable default Number getMaxPrice()
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.
@Stability(value=Experimental) @Nullable default SpotRequestType getRequestType()
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.
@Stability(value=Experimental) @Nullable default Expiration getValidUntil()
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.
@Stability(value=Experimental) static LaunchTemplateSpotOptions.Builder builder()
LaunchTemplateSpotOptions.Builder of LaunchTemplateSpotOptionsCopyright © 2021. All rights reserved.