Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ImportVolumeCommand

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

This API action supports only single-volume VMs. To import multi-volume VMs, use ImportImage instead. To import a disk to a snapshot, use ImportSnapshot 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 Disks to Amazon EBS 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, ImportVolumeCommand } from "@aws-sdk/client-ec2"; // ES Modules import
// const { EC2Client, ImportVolumeCommand } = require("@aws-sdk/client-ec2"); // CommonJS import
const client = new EC2Client(config);
const command = new ImportVolumeCommand(input);
const response = await client.send(command);
see

ImportVolumeCommandInput for command's input shape.

see

ImportVolumeCommandOutput for command's response shape.

see

config for EC2Client's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: ImportVolumeCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<ImportVolumeCommandInput, ImportVolumeCommandOutput>

Methods

Static getEndpointParameterInstructions