interface InstanceMarketOptionsProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.EC2.Mixins.CfnLaunchTemplatePropsMixin.InstanceMarketOptionsProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsec2/mixins#CfnLaunchTemplatePropsMixin_InstanceMarketOptionsProperty |
Java | software.amazon.awscdk.mixins.preview.services.ec2.mixins.CfnLaunchTemplatePropsMixin.InstanceMarketOptionsProperty |
Python | aws_cdk.mixins_preview.aws_ec2.mixins.CfnLaunchTemplatePropsMixin.InstanceMarketOptionsProperty |
TypeScript | @aws-cdk/mixins-preview » aws_ec2 » mixins » CfnLaunchTemplatePropsMixin » 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 { mixins as ec2_mixins } from '@aws-cdk/mixins-preview/aws-ec2';
const instanceMarketOptionsProperty: ec2_mixins.CfnLaunchTemplatePropsMixin.InstanceMarketOptionsProperty = {
marketType: 'marketType',
spotOptions: {
blockDurationMinutes: 123,
instanceInterruptionBehavior: 'instanceInterruptionBehavior',
maxPrice: 'maxPrice',
spotInstanceType: 'spotInstanceType',
validUntil: 'validUntil',
},
};
Properties
| Name | Type | Description |
|---|---|---|
| market | string | The market type. |
| spot | IResolvable | Spot | The options for Spot Instances. |
marketType?
Type:
string
(optional)
The market type.
spotOptions?
Type:
IResolvable | Spot
(optional)
The options for Spot Instances.

.NET
Go
Java
Python
TypeScript