import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ImagebuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ImagebuilderClient"; import type { ImportVmImageRequest, ImportVmImageResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ImportVmImageCommand}. */ export interface ImportVmImageCommandInput extends ImportVmImageRequest { } /** * @public * * The output of {@link ImportVmImageCommand}. */ export interface ImportVmImageCommandOutput extends ImportVmImageResponse, __MetadataBearer { } declare const ImportVmImageCommand_base: { new (input: ImportVmImageCommandInput): import("@smithy/core/client").CommandImpl; new (input: ImportVmImageCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

When you export your virtual machine (VM) from its virtualization environment, that * process creates a set of one or more disk container files that act as snapshots of your * VM’s environment, settings, and data. The Amazon EC2 API ImportImage * action uses those files to import your VM and create an AMI. To import using the CLI * command, see import-image *

*

You can reference the task ID from the VM import to pull in the AMI that the import * created as the base image for your Image Builder recipe.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ImagebuilderClient, ImportVmImageCommand } from "@aws-sdk/client-imagebuilder"; // ES Modules import * // const { ImagebuilderClient, ImportVmImageCommand } = require("@aws-sdk/client-imagebuilder"); // CommonJS import * // import type { ImagebuilderClientConfig } from "@aws-sdk/client-imagebuilder"; * const config = {}; // type is ImagebuilderClientConfig * const client = new ImagebuilderClient(config); * const input = { // ImportVmImageRequest * name: "STRING_VALUE", // required * semanticVersion: "STRING_VALUE", // required * description: "STRING_VALUE", * platform: "Windows" || "Linux" || "macOS", // required * osVersion: "STRING_VALUE", * vmImportTaskId: "STRING_VALUE", // required * loggingConfiguration: { // ImageLoggingConfiguration * logGroupName: "STRING_VALUE", * }, * tags: { // TagMap * "": "STRING_VALUE", * }, * clientToken: "STRING_VALUE", // required * }; * const command = new ImportVmImageCommand(input); * const response = await client.send(command); * // { // ImportVmImageResponse * // requestId: "STRING_VALUE", * // imageArn: "STRING_VALUE", * // clientToken: "STRING_VALUE", * // }; * * ``` * * @param ImportVmImageCommandInput - {@link ImportVmImageCommandInput} * @returns {@link ImportVmImageCommandOutput} * @see {@link ImportVmImageCommandInput} for command's `input` shape. * @see {@link ImportVmImageCommandOutput} for command's `response` shape. * @see {@link ImagebuilderClientResolvedConfig | config} for ImagebuilderClient's `config` shape. * * @throws {@link ClientException} (client fault) *

These errors are usually caused by a client action, such as using an action or * resource on behalf of a user that doesn't have permissions to use the action or * resource, or specifying an invalid resource identifier.

* * @throws {@link ServiceException} (server fault) *

This exception is thrown when the service encounters an unrecoverable * exception.

* * @throws {@link ServiceUnavailableException} (server fault) *

The service is unable to process your request at this time.

* * @throws {@link ImagebuilderServiceException} *

Base exception class for all service exceptions from Imagebuilder service.

* * * @public */ export declare class ImportVmImageCommand extends ImportVmImageCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ImportVmImageRequest; output: ImportVmImageResponse; }; sdk: { input: ImportVmImageCommandInput; output: ImportVmImageCommandOutput; }; }; }