Class CfnLaunchTemplate.InstanceMarketOptionsProperty
Specifies the market (purchasing) option for an instance.
Inheritance
System.Object
CfnLaunchTemplate.InstanceMarketOptionsProperty
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public class InstanceMarketOptionsProperty : Object, CfnLaunchTemplate.IInstanceMarketOptionsProperty
Syntax (vb)
Public Class InstanceMarketOptionsProperty
Inherits Object
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() |
Properties
MarketType | The market type. |
SpotOptions | The options for Spot Instances. |
Constructors
InstanceMarketOptionsProperty()
public InstanceMarketOptionsProperty()
Properties
MarketType
The market type.
public string MarketType { get; set; }
Property Value
System.String
Remarks
SpotOptions
The options for Spot Instances.
public object SpotOptions { get; set; }
Property Value
System.Object