ModifyLaunchTemplate
In this article:
ModifyLaunchTemplate#
Description#
Request to change the default version for a launch template. You can specify which version of the launch template version should be set as the default version. When launching an instance, the default version is used if a launch template version is not specified.
Request Parameters#
Required parameters#
LaunchTemplateId — The ID of the launch template.
Type: String
Required: Yes, if LaunchTemplateName is not supplied
LaunchTemplateName — The name of the launch template.
Type: String
Required: Yes, if LaunchTemplateId is not supplied
Length constraints: from 3 to 255 characters
Optional parameters#
SetDefaultVersion — The version number of the launch template, which should be set as the default version.
Type: String
Required: No
Response Elements#
launchTemplate — Information about the launch template.
Type: LaunchTemplate object
requestId — The request ID
Type: String
Examples#
c2-ec2 ModifyLaunchTemplate LaunchTemplateId lt-12345678 SetDefaultVersion 2