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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnLaunchTemplate.InstanceMarketOptionsPropertystatic final classAn 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.Returns union: either
IResolvableorCfnLaunchTemplate.SpotOptionsProperty- See Also:
-
builder
-