import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client"; import type { ModifyLaunchTemplateRequest, ModifyLaunchTemplateResult } from "../models/models_6"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ModifyLaunchTemplateCommand}. */ export interface ModifyLaunchTemplateCommandInput extends ModifyLaunchTemplateRequest { } /** * @public * * The output of {@link ModifyLaunchTemplateCommand}. */ export interface ModifyLaunchTemplateCommandOutput extends ModifyLaunchTemplateResult, __MetadataBearer { } declare const ModifyLaunchTemplateCommand_base: { new (input: ModifyLaunchTemplateCommandInput): import("@smithy/smithy-client").CommandImpl; new (...[input]: [] | [ModifyLaunchTemplateCommandInput]): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

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. * ```javascript * import { EC2Client, ModifyLaunchTemplateCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, ModifyLaunchTemplateCommand } = require("@aws-sdk/client-ec2"); // CommonJS import * // import type { EC2ClientConfig } from "@aws-sdk/client-ec2"; * const config = {}; // type is EC2ClientConfig * const client = new EC2Client(config); * const input = { // ModifyLaunchTemplateRequest * DryRun: true || false, * ClientToken: "STRING_VALUE", * LaunchTemplateId: "STRING_VALUE", * LaunchTemplateName: "STRING_VALUE", * DefaultVersion: "STRING_VALUE", * }; * const command = new ModifyLaunchTemplateCommand(input); * const response = await client.send(command); * // { // ModifyLaunchTemplateResult * // LaunchTemplate: { // LaunchTemplate * // LaunchTemplateId: "STRING_VALUE", * // LaunchTemplateName: "STRING_VALUE", * // CreateTime: new Date("TIMESTAMP"), * // CreatedBy: "STRING_VALUE", * // DefaultVersionNumber: Number("long"), * // LatestVersionNumber: Number("long"), * // Tags: [ // TagList * // { // Tag * // Key: "STRING_VALUE", * // Value: "STRING_VALUE", * // }, * // ], * // Operator: { // OperatorResponse * // Managed: true || false, * // Principal: "STRING_VALUE", * // HiddenByDefault: true || false, * // }, * // }, * // }; * * ``` * * @param ModifyLaunchTemplateCommandInput - {@link ModifyLaunchTemplateCommandInput} * @returns {@link ModifyLaunchTemplateCommandOutput} * @see {@link ModifyLaunchTemplateCommandInput} for command's `input` shape. * @see {@link ModifyLaunchTemplateCommandOutput} for command's `response` shape. * @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape. * * @throws {@link EC2ServiceException} *

Base exception class for all service exceptions from EC2 service.

* * * @example To change the default version of a launch template * ```javascript * // This example specifies version 2 as the default version of the specified launch template. * const input = { * DefaultVersion: "2", * LaunchTemplateId: "lt-0abcd290751193123" * }; * const command = new ModifyLaunchTemplateCommand(input); * const response = await client.send(command); * /* response is * { * LaunchTemplate: { * CreateTime: "2017-12-01T13:35:46.000Z", * CreatedBy: "arn:aws:iam::123456789012:root", * DefaultVersionNumber: 2, * LatestVersionNumber: 2, * LaunchTemplateId: "lt-0abcd290751193123", * LaunchTemplateName: "WebServers" * } * } * *\/ * ``` * * @public */ export declare class ModifyLaunchTemplateCommand extends ModifyLaunchTemplateCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ModifyLaunchTemplateRequest; output: ModifyLaunchTemplateResult; }; sdk: { input: ModifyLaunchTemplateCommandInput; output: ModifyLaunchTemplateCommandOutput; }; }; }