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

Copyright(c) 2013-2016 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). For more information, see Importing a VM as an Image Using VM Import/Export in the VM Import/Export User Guide.

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:

data ImportImage Source #

Contains the parameters for ImportImage.

See: importImage smart constructor.

Instances

Eq ImportImage Source # 
Data ImportImage Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ImportImage -> c ImportImage #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ImportImage #

toConstr :: ImportImage -> Constr #

dataTypeOf :: ImportImage -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ImportImage) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ImportImage) #

gmapT :: (forall b. Data b => b -> b) -> ImportImage -> ImportImage #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ImportImage -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ImportImage -> r #

gmapQ :: (forall d. Data d => d -> u) -> ImportImage -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ImportImage -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ImportImage -> m ImportImage #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ImportImage -> m ImportImage #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ImportImage -> m ImportImage #

Read ImportImage Source # 
Show ImportImage Source # 
Generic ImportImage Source # 

Associated Types

type Rep ImportImage :: * -> * #

Hashable ImportImage Source # 
NFData ImportImage Source # 

Methods

rnf :: ImportImage -> () #

AWSRequest ImportImage Source # 
ToPath ImportImage Source # 
ToHeaders ImportImage Source # 

Methods

toHeaders :: ImportImage -> [Header] #

ToQuery ImportImage Source # 
type Rep ImportImage Source # 
type Rs ImportImage Source # 

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 Prerequisites in the VM Import/Export 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

data ImportImageResponse Source #

Contains the output for ImportImage.

See: importImageResponse smart constructor.

Instances

Eq ImportImageResponse Source # 
Data ImportImageResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ImportImageResponse -> c ImportImageResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ImportImageResponse #

toConstr :: ImportImageResponse -> Constr #

dataTypeOf :: ImportImageResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ImportImageResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ImportImageResponse) #

gmapT :: (forall b. Data b => b -> b) -> ImportImageResponse -> ImportImageResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ImportImageResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ImportImageResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> ImportImageResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ImportImageResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ImportImageResponse -> m ImportImageResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ImportImageResponse -> m ImportImageResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ImportImageResponse -> m ImportImageResponse #

Read ImportImageResponse Source # 
Show ImportImageResponse Source # 
Generic ImportImageResponse Source # 
NFData ImportImageResponse Source # 

Methods

rnf :: ImportImageResponse -> () #

type Rep ImportImageResponse Source # 
type Rep ImportImageResponse = D1 (MetaData "ImportImageResponse" "Network.AWS.EC2.ImportImage" "amazonka-ec2-1.4.4-4aYNmHv73MpJXVQjlVKYjQ" False) (C1 (MetaCons "ImportImageResponse'" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_irsStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_irsHypervisor") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_irsPlatform") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) (S1 (MetaSel (Just Symbol "_irsProgress") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_irsLicenseType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_irsSnapshotDetails") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [SnapshotDetail])))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_irsStatusMessage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_irsImageId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_irsImportTaskId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) (S1 (MetaSel (Just Symbol "_irsArchitecture") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_irsDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_irsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))))

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.

irsSnapshotDetails :: Lens' ImportImageResponse [SnapshotDetail] Source #

Information about the snapshots.

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.