Class CfnLaunchTemplate.InstanceMarketOptionsProperty
Specifies the market (purchasing) option for an instance.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnLaunchTemplate.InstanceMarketOptionsProperty : CfnLaunchTemplate.IInstanceMarketOptionsProperty
Syntax (vb)
Public Class CfnLaunchTemplate.InstanceMarketOptionsProperty Implements CfnLaunchTemplate.IInstanceMarketOptionsProperty
Remarks
InstanceMarketOptions is a property of the AWS::EC2::LaunchTemplate LaunchTemplateData .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var instanceMarketOptionsProperty = new InstanceMarketOptionsProperty {
MarketType = "marketType",
SpotOptions = new SpotOptionsProperty {
BlockDurationMinutes = 123,
InstanceInterruptionBehavior = "instanceInterruptionBehavior",
MaxPrice = "maxPrice",
SpotInstanceType = "spotInstanceType",
ValidUntil = "validUntil"
}
};
Synopsis
Constructors
| InstanceMarketOptionsProperty() | Specifies the market (purchasing) option for an instance. |
Properties
| MarketType | The market type. |
| SpotOptions | The options for Spot Instances. |
Constructors
InstanceMarketOptionsProperty()
Specifies the market (purchasing) option for an instance.
public InstanceMarketOptionsProperty()
Remarks
InstanceMarketOptions is a property of the AWS::EC2::LaunchTemplate LaunchTemplateData .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var instanceMarketOptionsProperty = new InstanceMarketOptionsProperty {
MarketType = "marketType",
SpotOptions = new SpotOptionsProperty {
BlockDurationMinutes = 123,
InstanceInterruptionBehavior = "instanceInterruptionBehavior",
MaxPrice = "maxPrice",
SpotInstanceType = "spotInstanceType",
ValidUntil = "validUntil"
}
};
Properties
MarketType
The market type.
public string? MarketType { get; set; }
Property Value
Remarks
SpotOptions
The options for Spot Instances.
public object? SpotOptions { get; set; }