interface CfnLaunchTemplateMixinProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.EC2.Mixins.CfnLaunchTemplateMixinProps |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsec2/mixins#CfnLaunchTemplateMixinProps |
Java | software.amazon.awscdk.mixins.preview.services.ec2.mixins.CfnLaunchTemplateMixinProps |
Python | aws_cdk.mixins_preview.aws_ec2.mixins.CfnLaunchTemplateMixinProps |
TypeScript | @aws-cdk/mixins-preview » aws_ec2 » mixins » CfnLaunchTemplateMixinProps |
Properties for CfnLaunchTemplatePropsMixin.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html
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 cfnLaunchTemplateMixinProps: ec2_mixins.CfnLaunchTemplateMixinProps = {
launchTemplateData: {
blockDeviceMappings: [{
deviceName: 'deviceName',
ebs: {
deleteOnTermination: false,
encrypted: false,
iops: 123,
kmsKeyId: 'kmsKeyId',
snapshotId: 'snapshotId',
throughput: 123,
volumeInitializationRate: 123,
volumeSize: 123,
volumeType: 'volumeType',
},
noDevice: 'noDevice',
virtualName: 'virtualName',
}],
capacityReservationSpecification: {
capacityReservationPreference: 'capacityReservationPreference',
capacityReservationTarget: {
capacityReservationId: 'capacityReservationId',
capacityReservationResourceGroupArn: 'capacityReservationResourceGroupArn',
},
},
cpuOptions: {
amdSevSnp: 'amdSevSnp',
coreCount: 123,
threadsPerCore: 123,
},
creditSpecification: {
cpuCredits: 'cpuCredits',
},
disableApiStop: false,
disableApiTermination: false,
ebsOptimized: false,
elasticGpuSpecifications: [{
type: 'type',
}],
elasticInferenceAccelerators: [{
count: 123,
type: 'type',
}],
enclaveOptions: {
enabled: false,
},
hibernationOptions: {
configured: false,
},
iamInstanceProfile: {
arn: 'arn',
name: 'name',
},
imageId: 'imageId',
instanceInitiatedShutdownBehavior: 'instanceInitiatedShutdownBehavior',
instanceMarketOptions: {
marketType: 'marketType',
spotOptions: {
blockDurationMinutes: 123,
instanceInterruptionBehavior: 'instanceInterruptionBehavior',
maxPrice: 'maxPrice',
spotInstanceType: 'spotInstanceType',
validUntil: 'validUntil',
},
},
instanceRequirements: {
acceleratorCount: {
max: 123,
min: 123,
},
acceleratorManufacturers: ['acceleratorManufacturers'],
acceleratorNames: ['acceleratorNames'],
acceleratorTotalMemoryMiB: {
max: 123,
min: 123,
},
acceleratorTypes: ['acceleratorTypes'],
allowedInstanceTypes: ['allowedInstanceTypes'],
bareMetal: 'bareMetal',
baselineEbsBandwidthMbps: {
max: 123,
min: 123,
},
baselinePerformanceFactors: {
cpu: {
references: [{
instanceFamily: 'instanceFamily',
}],
},
},
burstablePerformance: 'burstablePerformance',
cpuManufacturers: ['cpuManufacturers'],
excludedInstanceTypes: ['excludedInstanceTypes'],
instanceGenerations: ['instanceGenerations'],
localStorage: 'localStorage',
localStorageTypes: ['localStorageTypes'],
maxSpotPriceAsPercentageOfOptimalOnDemandPrice: 123,
memoryGiBPerVCpu: {
max: 123,
min: 123,
},
memoryMiB: {
max: 123,
min: 123,
},
networkBandwidthGbps: {
max: 123,
min: 123,
},
networkInterfaceCount: {
max: 123,
min: 123,
},
onDemandMaxPricePercentageOverLowestPrice: 123,
requireHibernateSupport: false,
spotMaxPricePercentageOverLowestPrice: 123,
totalLocalStorageGb: {
max: 123,
min: 123,
},
vCpuCount: {
max: 123,
min: 123,
},
},
instanceType: 'instanceType',
kernelId: 'kernelId',
keyName: 'keyName',
licenseSpecifications: [{
licenseConfigurationArn: 'licenseConfigurationArn',
}],
maintenanceOptions: {
autoRecovery: 'autoRecovery',
},
metadataOptions: {
httpEndpoint: 'httpEndpoint',
httpProtocolIpv6: 'httpProtocolIpv6',
httpPutResponseHopLimit: 123,
httpTokens: 'httpTokens',
instanceMetadataTags: 'instanceMetadataTags',
},
monitoring: {
enabled: false,
},
networkInterfaces: [{
associateCarrierIpAddress: false,
associatePublicIpAddress: false,
connectionTrackingSpecification: {
tcpEstablishedTimeout: 123,
udpStreamTimeout: 123,
udpTimeout: 123,
},
deleteOnTermination: false,
description: 'description',
deviceIndex: 123,
enaQueueCount: 123,
enaSrdSpecification: {
enaSrdEnabled: false,
enaSrdUdpSpecification: {
enaSrdUdpEnabled: false,
},
},
groups: ['groups'],
interfaceType: 'interfaceType',
ipv4PrefixCount: 123,
ipv4Prefixes: [{
ipv4Prefix: 'ipv4Prefix',
}],
ipv6AddressCount: 123,
ipv6Addresses: [{
ipv6Address: 'ipv6Address',
}],
ipv6PrefixCount: 123,
ipv6Prefixes: [{
ipv6Prefix: 'ipv6Prefix',
}],
networkCardIndex: 123,
networkInterfaceId: 'networkInterfaceId',
primaryIpv6: false,
privateIpAddress: 'privateIpAddress',
privateIpAddresses: [{
primary: false,
privateIpAddress: 'privateIpAddress',
}],
secondaryPrivateIpAddressCount: 123,
subnetId: 'subnetId',
}],
networkPerformanceOptions: {
bandwidthWeighting: 'bandwidthWeighting',
},
placement: {
affinity: 'affinity',
availabilityZone: 'availabilityZone',
groupId: 'groupId',
groupName: 'groupName',
hostId: 'hostId',
hostResourceGroupArn: 'hostResourceGroupArn',
partitionNumber: 123,
spreadDomain: 'spreadDomain',
tenancy: 'tenancy',
},
privateDnsNameOptions: {
enableResourceNameDnsAaaaRecord: false,
enableResourceNameDnsARecord: false,
hostnameType: 'hostnameType',
},
ramDiskId: 'ramDiskId',
securityGroupIds: ['securityGroupIds'],
securityGroups: ['securityGroups'],
tagSpecifications: [{
resourceType: 'resourceType',
tags: [{
key: 'key',
value: 'value',
}],
}],
userData: 'userData',
},
launchTemplateName: 'launchTemplateName',
tagSpecifications: [{
resourceType: 'resourceType',
tags: [{
key: 'key',
value: 'value',
}],
}],
versionDescription: 'versionDescription',
};
Properties
| Name | Type | Description |
|---|---|---|
| launch | IResolvable | Launch | The information for the launch template. |
| launch | string | A name for the launch template. |
| tag | IResolvable | (IResolvable | Launch)[] | The tags to apply to the launch template on creation. |
| version | string | A description for the first version of the launch template. |
launchTemplateData?
Type:
IResolvable | Launch
(optional)
The information for the launch template.
launchTemplateName?
Type:
string
(optional)
A name for the launch template.
tagSpecifications?
Type:
IResolvable | (IResolvable | Launch)[]
(optional)
The tags to apply to the launch template on creation.
To tag the launch template, the resource type must be launch-template .
To specify the tags for resources that are created during instance launch, use TagSpecifications .
versionDescription?
Type:
string
(optional)
A description for the first version of the launch template.

.NET
Go
Java
Python
TypeScript