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

Defined in Network.AWS.EC2.ImportInstance

Data ImportInstance Source # 
Instance details

Defined in Network.AWS.EC2.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 Source # 
Instance details

Defined in Network.AWS.EC2.ImportInstance

Show ImportInstance Source # 
Instance details

Defined in Network.AWS.EC2.ImportInstance

Generic ImportInstance Source # 
Instance details

Defined in Network.AWS.EC2.ImportInstance

Associated Types

type Rep ImportInstance :: Type -> Type #

Hashable ImportInstance Source # 
Instance details

Defined in Network.AWS.EC2.ImportInstance

AWSRequest ImportInstance Source # 
Instance details

Defined in Network.AWS.EC2.ImportInstance

Associated Types

type Rs ImportInstance :: Type #

ToHeaders ImportInstance Source # 
Instance details

Defined in Network.AWS.EC2.ImportInstance

ToPath ImportInstance Source # 
Instance details

Defined in Network.AWS.EC2.ImportInstance

ToQuery ImportInstance Source # 
Instance details

Defined in Network.AWS.EC2.ImportInstance

NFData ImportInstance Source # 
Instance details

Defined in Network.AWS.EC2.ImportInstance

Methods

rnf :: ImportInstance -> () #

type Rep ImportInstance Source # 
Instance details

Defined in Network.AWS.EC2.ImportInstance

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

Defined in Network.AWS.EC2.ImportInstance

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

Defined in Network.AWS.EC2.ImportInstance

Data ImportInstanceResponse Source # 
Instance details

Defined in Network.AWS.EC2.ImportInstance

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

Defined in Network.AWS.EC2.ImportInstance

Show ImportInstanceResponse Source # 
Instance details

Defined in Network.AWS.EC2.ImportInstance

Generic ImportInstanceResponse Source # 
Instance details

Defined in Network.AWS.EC2.ImportInstance

Associated Types

type Rep ImportInstanceResponse :: Type -> Type #

NFData ImportInstanceResponse Source # 
Instance details

Defined in Network.AWS.EC2.ImportInstance

Methods

rnf :: ImportInstanceResponse -> () #

type Rep ImportInstanceResponse Source # 
Instance details

Defined in Network.AWS.EC2.ImportInstance

type Rep ImportInstanceResponse = D1 (MetaData "ImportInstanceResponse" "Network.AWS.EC2.ImportInstance" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "ImportInstanceResponse'" PrefixI True) (S1 (MetaSel (Just "_iirsConversionTask") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ConversionTask)) :*: S1 (MetaSel (Just "_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.