Show / Hide Table of Contents

Class CfnLaunchTemplate.InstanceMarketOptionsProperty

Specifies the market (purchasing) option for an instance.

Inheritance
object
CfnLaunchTemplate.InstanceMarketOptionsProperty
Implements
CfnLaunchTemplate.IInstanceMarketOptionsProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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 .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-instancemarketoptions.html

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 .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-instancemarketoptions.html

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

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-instancemarketoptions.html#cfn-ec2-launchtemplate-instancemarketoptions-markettype

SpotOptions

The options for Spot Instances.

public object? SpotOptions { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-instancemarketoptions.html#cfn-ec2-launchtemplate-instancemarketoptions-spotoptions

Type union: either IResolvable or CfnLaunchTemplate.ISpotOptionsProperty

Implements

CfnLaunchTemplate.IInstanceMarketOptionsProperty
Back to top Generated by DocFX