LaunchTemplateConfiguration Struct
The launch template to apply the distributed AMI to.
Example
ts
// 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
accountIdstringaccount_idstraccountIdStringAccountIdstringAccountId*string= The current account is used#The AWS account ID that owns the launch template.
launchTemplateILaunchTemplatelaunch_templateILaunchTemplatelaunchTemplateILaunchTemplateLaunchTemplateILaunchTemplateLaunchTemplateILaunchTemplaterequired#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.
setDefaultVersionbooleanset_default_versionboolsetDefaultVersionBooleanSetDefaultVersionboolSetDefaultVersion*bool= 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.