Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ImportInstanceCommand

Creates an import instance task using metadata from the specified disk image.

This API action supports only single-volume VMs. To import multi-volume VMs, use ImportImage instead.

This API action is not supported by the Command Line Interface (CLI). For information about using the Amazon EC2 CLI, which is deprecated, see Importing a VM to Amazon EC2 in the Amazon EC2 CLI Reference PDF file.

For information about the import manifest referenced by this API action, see VM Import Manifest.

example

Use a bare-bones client and the command you need to make an API call.

import { EC2Client, ImportInstanceCommand } from "@aws-sdk/client-ec2"; // ES Modules import
// const { EC2Client, ImportInstanceCommand } = require("@aws-sdk/client-ec2"); // CommonJS import
const client = new EC2Client(config);
const command = new ImportInstanceCommand(input);
const response = await client.send(command);
see

ImportInstanceCommandInput for command's input shape.

see

ImportInstanceCommandOutput for command's response shape.

see

config for EC2Client's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: ImportInstanceCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<ImportInstanceCommandInput, ImportInstanceCommandOutput>

Methods

Static getEndpointParameterInstructions