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

  • 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 Source #

Contains the parameters for ImportInstance.

See: importInstance smart constructor.

Instances

Eq ImportInstance Source # 
Data ImportInstance Source # 

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 Source # 
Show ImportInstance Source # 
Generic ImportInstance Source # 

Associated Types

type Rep ImportInstance :: * -> * #

Hashable ImportInstance Source # 
NFData ImportInstance Source # 

Methods

rnf :: ImportInstance -> () #

AWSRequest ImportInstance Source # 
ToHeaders ImportInstance Source # 
ToPath ImportInstance Source # 
ToQuery ImportInstance Source # 
type Rep ImportInstance Source # 
type Rep ImportInstance = D1 * (MetaData "ImportInstance" "Network.AWS.EC2.ImportInstance" "amazonka-ec2-1.6.0-Kkew7Kpgof6EYi20Z0WOzs" False) (C1 * (MetaCons "ImportInstance'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_iiLaunchSpecification") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe ImportInstanceLaunchSpecification))) (S1 * (MetaSel (Just Symbol "_iiDiskImages") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [DiskImage])))) ((:*:) * (S1 * (MetaSel (Just Symbol "_iiDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_iiDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))) (S1 * (MetaSel (Just Symbol "_iiPlatform") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * PlatformValues))))))
type Rs ImportInstance Source # 

Request Lenses

iiDescription :: Lens' ImportInstance (Maybe Text) Source #

A description for the instance being imported.

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 .

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:

data ImportInstanceResponse Source #

Contains the output for ImportInstance.

See: importInstanceResponse smart constructor.

Instances

Eq ImportInstanceResponse Source # 
Data ImportInstanceResponse Source # 

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 Source # 
Show ImportInstanceResponse Source # 
Generic ImportInstanceResponse Source # 
NFData ImportInstanceResponse Source # 

Methods

rnf :: ImportInstanceResponse -> () #

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

Response Lenses

iirsConversionTask :: Lens' ImportInstanceResponse (Maybe ConversionTask) Source #

Information about the conversion task.

iirsResponseStatus :: Lens' ImportInstanceResponse Int Source #

  • - | The response status code.