Interface CfnLaunchTemplate.InstanceMarketOptionsProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLaunchTemplate.InstanceMarketOptionsProperty.Jsii$Proxy
- Enclosing class:
CfnLaunchTemplate
@Stability(Stable)
public static interface CfnLaunchTemplate.InstanceMarketOptionsProperty
extends software.amazon.jsii.JsiiSerializable
Specifies the market (purchasing) option for an instance.
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();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnLaunchTemplate.InstanceMarketOptionsProperty
static final class
An implementation forCfnLaunchTemplate.InstanceMarketOptionsProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMarketType
The market type.- See Also:
-
getSpotOptions
The options for Spot Instances.- See Also:
-
builder
-