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

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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:

  • impHypervisor - The target hypervisor platform. Valid values: xen
  • impPlatform - The operating system of the virtual machine. Valid values: Windows | Linux
  • impClientToken - The token to enable idempotency for VM import requests.
  • impLicenseType - 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 - The name of the role to use when not using the default role, vmimport.
  • impArchitecture - The architecture of the virtual machine. Valid values: i386 | x86_64
  • impDescription - A description string for the import image task.
  • impDryRun - 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 - The client-specific data.
  • impDiskContainers - Information about the disk containers.

data ImportImage Source #

Contains the parameters for ImportImage.

See: importImage smart constructor.

Instances
Eq ImportImage Source # 
Instance details

Defined in Network.AWS.EC2.ImportImage

Data ImportImage Source # 
Instance details

Defined in Network.AWS.EC2.ImportImage

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 # 
Instance details

Defined in Network.AWS.EC2.ImportImage

Show ImportImage Source # 
Instance details

Defined in Network.AWS.EC2.ImportImage

Generic ImportImage Source # 
Instance details

Defined in Network.AWS.EC2.ImportImage

Associated Types

type Rep ImportImage :: Type -> Type #

Hashable ImportImage Source # 
Instance details

Defined in Network.AWS.EC2.ImportImage

AWSRequest ImportImage Source # 
Instance details

Defined in Network.AWS.EC2.ImportImage

Associated Types

type Rs ImportImage :: Type #

ToHeaders ImportImage Source # 
Instance details

Defined in Network.AWS.EC2.ImportImage

Methods

toHeaders :: ImportImage -> [Header] #

ToPath ImportImage Source # 
Instance details

Defined in Network.AWS.EC2.ImportImage

ToQuery ImportImage Source # 
Instance details

Defined in Network.AWS.EC2.ImportImage

NFData ImportImage Source # 
Instance details

Defined in Network.AWS.EC2.ImportImage

Methods

rnf :: ImportImage -> () #

type Rep ImportImage Source # 
Instance details

Defined in Network.AWS.EC2.ImportImage

type Rs ImportImage Source # 
Instance details

Defined in Network.AWS.EC2.ImportImage

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

importImageResponse Source #

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

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

data ImportImageResponse Source #

Contains the output for ImportImage.

See: importImageResponse smart constructor.

Instances
Eq ImportImageResponse Source # 
Instance details

Defined in Network.AWS.EC2.ImportImage

Data ImportImageResponse Source # 
Instance details

Defined in Network.AWS.EC2.ImportImage

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 # 
Instance details

Defined in Network.AWS.EC2.ImportImage

Show ImportImageResponse Source # 
Instance details

Defined in Network.AWS.EC2.ImportImage

Generic ImportImageResponse Source # 
Instance details

Defined in Network.AWS.EC2.ImportImage

Associated Types

type Rep ImportImageResponse :: Type -> Type #

NFData ImportImageResponse Source # 
Instance details

Defined in Network.AWS.EC2.ImportImage

Methods

rnf :: ImportImageResponse -> () #

type Rep ImportImageResponse Source # 
Instance details

Defined in Network.AWS.EC2.ImportImage

type Rep ImportImageResponse = D1 (MetaData "ImportImageResponse" "Network.AWS.EC2.ImportImage" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "ImportImageResponse'" PrefixI True) (((S1 (MetaSel (Just "_irsStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_irsHypervisor") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_irsPlatform") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_irsProgress") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_irsLicenseType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_irsSnapshotDetails") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [SnapshotDetail]))))) :*: ((S1 (MetaSel (Just "_irsStatusMessage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_irsImageId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_irsImportTaskId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_irsArchitecture") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_irsDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_irsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (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.

irsResponseStatus :: Lens' ImportImageResponse Int Source #

  • - | The response status code.