amazonka-ec2-1.4.5: 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.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 . For more information, see Importing a Virtual Machine Using the Amazon EC2 CLI .

For information about the import manifest referenced by this API action, see VM Import Manifest .

Synopsis

Creating a Request

importInstance #

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:

  • iiLaunchSpecification - The launch specification.
  • iiDiskImages - The disk image.
  • iiDescription - A description for the instance being imported.
  • iiDryRun - 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 .
  • iiPlatform - The instance operating system.

data ImportInstance #

Contains the parameters for ImportInstance.

See: importInstance smart constructor.

Instances

Eq ImportInstance # 
Data ImportInstance # 

Methods

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

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

toConstr :: ImportInstance -> Constr #

dataTypeOf :: ImportInstance -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ImportInstance # 
Show ImportInstance # 
Generic ImportInstance # 

Associated Types

type Rep ImportInstance :: * -> * #

Hashable ImportInstance # 
NFData ImportInstance # 

Methods

rnf :: ImportInstance -> () #

AWSRequest ImportInstance # 
ToQuery ImportInstance # 
ToPath ImportInstance # 
ToHeaders ImportInstance # 
type Rep ImportInstance # 
type Rs ImportInstance # 

Request Lenses

iiDescription :: Lens' ImportInstance (Maybe Text) #

A description for the instance being imported.

iiDryRun :: Lens' ImportInstance (Maybe Bool) #

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 .

iiPlatform :: Lens' ImportInstance PlatformValues #

The instance operating system.

Destructuring the Response

importInstanceResponse #

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:

data ImportInstanceResponse #

Contains the output for ImportInstance.

See: importInstanceResponse smart constructor.

Instances

Eq ImportInstanceResponse # 
Data ImportInstanceResponse # 

Methods

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

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

toConstr :: ImportInstanceResponse -> Constr #

dataTypeOf :: ImportInstanceResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ImportInstanceResponse # 
Show ImportInstanceResponse # 
Generic ImportInstanceResponse # 
NFData ImportInstanceResponse # 

Methods

rnf :: ImportInstanceResponse -> () #

type Rep ImportInstanceResponse # 
type Rep ImportInstanceResponse = D1 (MetaData "ImportInstanceResponse" "Network.AWS.EC2.ImportInstance" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "ImportInstanceResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_iirsConversionTask") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ConversionTask))) (S1 (MetaSel (Just Symbol "_iirsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

iirsConversionTask :: Lens' ImportInstanceResponse (Maybe ConversionTask) #

Information about the conversion task.

iirsResponseStatus :: Lens' ImportInstanceResponse Int #

  • - | The response status code.