@Stability(value=Stable)
public static interface CfnLaunchTemplate.InstanceMarketOptionsProperty
extends software.amazon.jsii.JsiiSerializable
InstanceMarketOptions is a property of the AWS::EC2::LaunchTemplate LaunchTemplateData .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
InstanceMarketOptionsProperty instanceMarketOptionsProperty = InstanceMarketOptionsProperty.builder()
.marketType("marketType")
.spotOptions(SpotOptionsProperty.builder()
.blockDurationMinutes(123)
.instanceInterruptionBehavior("instanceInterruptionBehavior")
.maxPrice("maxPrice")
.spotInstanceType("spotInstanceType")
.validUntil("validUntil")
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnLaunchTemplate.InstanceMarketOptionsProperty.Builder
A builder for
CfnLaunchTemplate.InstanceMarketOptionsProperty |
static class |
CfnLaunchTemplate.InstanceMarketOptionsProperty.Jsii$Proxy
An implementation for
CfnLaunchTemplate.InstanceMarketOptionsProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnLaunchTemplate.InstanceMarketOptionsProperty.Builder |
builder() |
default String |
getMarketType()
The market type.
|
default Object |
getSpotOptions()
The options for Spot Instances.
|
@Stability(value=Stable) @Nullable default String getMarketType()
@Stability(value=Stable) @Nullable default Object getSpotOptions()
@Stability(value=Stable) static CfnLaunchTemplate.InstanceMarketOptionsProperty.Builder builder()
Copyright © 2022. All rights reserved.