Modifies a launch template. You can specify which version of the launch template to
set as the default version. When launching an instance, the default version applies when
a launch template version is not specified.
example
Use a bare-bones client and the command you need to make an API call.
Modifies a launch template. You can specify which version of the launch template to set as the default version. When launching an instance, the default version applies when a launch template version is not specified.
Use a bare-bones client and the command you need to make an API call.
import { EC2Client, ModifyLaunchTemplateCommand } from "@aws-sdk/client-ec2"; // ES Modules import // const { EC2Client, ModifyLaunchTemplateCommand } = require("@aws-sdk/client-ec2"); // CommonJS import const client = new EC2Client(config); const command = new ModifyLaunchTemplateCommand(input); const response = await client.send(command);
ModifyLaunchTemplateCommandInput for command's
input
shape.ModifyLaunchTemplateCommandOutput for command's
response
shape.config for EC2Client's
config
shape.