amazonka-ec2-1.1.0: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.ImportInstance

Contents

Description

Creates an import instance task using metadata from the specified disk image. ImportInstance only supports single-volume VMs. To import multi-volume VMs, use ImportImage. After importing the image, you then upload it using the 'ec2-import-volume' command in the EC2 command line tools. For more information, see Using the Command Line Tools to Import Your Virtual Machine to Amazon EC2 in the Amazon Elastic Compute Cloud User Guide.

See: AWS API Reference for ImportInstance.

Synopsis

Creating a Request

importInstance Source

Creates a value of ImportInstance with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

iiDryRun :: Lens' ImportInstance (Maybe Bool) Source

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

iiDescription :: Lens' ImportInstance (Maybe Text) Source

A description for the instance being imported.

iiPlatform :: Lens' ImportInstance PlatformValues Source

The instance operating system.

Destructuring the Response

importInstanceResponse Source

Creates a value of ImportInstanceResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses

iirsConversionTask :: Lens' ImportInstanceResponse (Maybe ConversionTask) Source

Information about the conversion task.

iirsStatus :: Lens' ImportInstanceResponse Int Source

The response status code.