aws-cdk-lib.aws_ec2.CfnLaunchTemplate.InstanceMarketOptionsProperty

interface InstanceMarketOptionsProperty

LanguageType name
.NETAmazon.CDK.AWS.EC2.CfnLaunchTemplate.InstanceMarketOptionsProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnLaunchTemplate_InstanceMarketOptionsProperty
Javasoftware.amazon.awscdk.services.ec2.CfnLaunchTemplate.InstanceMarketOptionsProperty
Pythonaws_cdk.aws_ec2.CfnLaunchTemplate.InstanceMarketOptionsProperty
TypeScript aws-cdk-lib » aws_ec2 » CfnLaunchTemplate » InstanceMarketOptionsProperty

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 { aws_ec2 as ec2 } from 'aws-cdk-lib';
const instanceMarketOptionsProperty: ec2.CfnLaunchTemplate.InstanceMarketOptionsProperty = {
  marketType: 'marketType',
  spotOptions: {
    blockDurationMinutes: 123,
    instanceInterruptionBehavior: 'instanceInterruptionBehavior',
    maxPrice: 'maxPrice',
    spotInstanceType: 'spotInstanceType',
    validUntil: 'validUntil',
  },
};

Properties

NameTypeDescription
marketType?stringThe market type.
spotOptions?IResolvable | SpotOptionsPropertyThe options for Spot Instances.

marketType?

Type: string (optional)

The market type.


spotOptions?

Type: IResolvable | SpotOptionsProperty (optional)

The options for Spot Instances.