interface LaunchTemplateConfiguration
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ImageBuilder.Alpha.LaunchTemplateConfiguration |
Go | github.com/aws/aws-cdk-go/awsimagebuilderalpha/v2#LaunchTemplateConfiguration |
Java | software.amazon.awscdk.services.imagebuilder.alpha.LaunchTemplateConfiguration |
Python | aws_cdk.aws_imagebuilder_alpha.LaunchTemplateConfiguration |
TypeScript (source) | @aws-cdk/aws-imagebuilder-alpha ยป LaunchTemplateConfiguration |
The launch template to apply the distributed AMI to.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as imagebuilder_alpha from '@aws-cdk/aws-imagebuilder-alpha';
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
declare const launchTemplate: ec2.LaunchTemplate;
const launchTemplateConfiguration: imagebuilder_alpha.LaunchTemplateConfiguration = {
launchTemplate: launchTemplate,
// the properties below are optional
accountId: 'accountId',
setDefaultVersion: false,
};
Properties
| Name | Type | Description |
|---|---|---|
| launch | ILaunch | The launch template to apply the distributed AMI to. |
| account | string | The AWS account ID that owns the launch template. |
| set | boolean | Whether to set the new launch template version that is created as the default launch template version. |
launchTemplate
Type:
ILaunch
The launch template to apply the distributed AMI to.
A new launch template version will be created for the provided launch template with the distributed AMI applied.
Note: The launch template should expose a launchTemplateId. Templates
imported by name only are not supported.
accountId?
Type:
string
(optional, default: The current account is used)
The AWS account ID that owns the launch template.
setDefaultVersion?
Type:
boolean
(optional, default: false)
Whether to set the new launch template version that is created as the default launch template version.
After creation of the launch template version containing the distributed AMI, it will be automatically set as the default version for the launch template.

.NET
Go
Java
Python
TypeScript (