aws-cdk-lib.aws_ec2.LaunchTemplateAttributes

interface LaunchTemplateAttributes

LanguageType name
.NETAmazon.CDK.AWS.EC2.LaunchTemplateAttributes
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#LaunchTemplateAttributes
Javasoftware.amazon.awscdk.services.ec2.LaunchTemplateAttributes
Pythonaws_cdk.aws_ec2.LaunchTemplateAttributes
TypeScript (source)aws-cdk-lib » aws_ec2 » LaunchTemplateAttributes

Attributes for an imported LaunchTemplate.

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 launchTemplateAttributes: ec2.LaunchTemplateAttributes = {
  launchTemplateId: 'launchTemplateId',
  launchTemplateName: 'launchTemplateName',
  versionNumber: 'versionNumber',
};

Properties

NameTypeDescription
launchTemplateId?stringThe identifier of the Launch Template.
launchTemplateName?stringThe name of the Launch Template.
versionNumber?stringThe version number of this launch template to use.

launchTemplateId?

Type: string (optional, default: None)

The identifier of the Launch Template.

Exactly one of launchTemplateId and launchTemplateName may be set.


launchTemplateName?

Type: string (optional, default: None)

The name of the Launch Template.

Exactly one of launchTemplateId and launchTemplateName may be set.


versionNumber?

Type: string (optional, default: Version: "$Default")

The version number of this launch template to use.