amazonka-ec2-1.3.1: 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.ImportImage

Contents

Description

Import single or multi-volume disk images or EBS snapshots into an Amazon Machine Image (AMI).

See: AWS API Reference for ImportImage.

Synopsis

Creating a Request

importImage :: ImportImage Source

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

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

Request Lenses

impHypervisor :: Lens' ImportImage (Maybe Text) Source

The target hypervisor platform.

Valid values: xen

impPlatform :: Lens' ImportImage (Maybe Text) Source

The operating system of the virtual machine.

Valid values: Windows | Linux

impClientToken :: Lens' ImportImage (Maybe Text) Source

The token to enable idempotency for VM import requests.

impLicenseType :: Lens' ImportImage (Maybe Text) Source

The license type to be used for the Amazon Machine Image (AMI) after importing.

Note: You may only use BYOL if you have existing licenses with rights to use these licenses in a third party cloud like AWS. For more information, see VM Import/Export Prerequisites in the Amazon Elastic Compute Cloud User Guide.

Valid values: AWS | BYOL

impRoleName :: Lens' ImportImage (Maybe Text) Source

The name of the role to use when not using the default role, 'vmimport'.

impArchitecture :: Lens' ImportImage (Maybe Text) Source

The architecture of the virtual machine.

Valid values: i386 | x86_64

impDescription :: Lens' ImportImage (Maybe Text) Source

A description string for the import image task.

impDryRun :: Lens' ImportImage (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.

impClientData :: Lens' ImportImage (Maybe ClientData) Source

The client-specific data.

impDiskContainers :: Lens' ImportImage [ImageDiskContainer] Source

Information about the disk containers.

Destructuring the Response

Response Lenses

irsStatus :: Lens' ImportImageResponse (Maybe Text) Source

A brief status of the task.

irsHypervisor :: Lens' ImportImageResponse (Maybe Text) Source

The target hypervisor of the import task.

irsPlatform :: Lens' ImportImageResponse (Maybe Text) Source

The operating system of the virtual machine.

irsProgress :: Lens' ImportImageResponse (Maybe Text) Source

The progress of the task.

irsLicenseType :: Lens' ImportImageResponse (Maybe Text) Source

The license type of the virtual machine.

irsStatusMessage :: Lens' ImportImageResponse (Maybe Text) Source

A detailed status message of the import task.

irsImageId :: Lens' ImportImageResponse (Maybe Text) Source

The ID of the Amazon Machine Image (AMI) created by the import task.

irsImportTaskId :: Lens' ImportImageResponse (Maybe Text) Source

The task ID of the import image task.

irsArchitecture :: Lens' ImportImageResponse (Maybe Text) Source

The architecture of the virtual machine.

irsDescription :: Lens' ImportImageResponse (Maybe Text) Source

A description of the import task.