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 #

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

Defined in Network.AWS.EC2.ImportInstance

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

Defined in Network.AWS.EC2.ImportInstance

Show ImportInstance # 
Instance details

Defined in Network.AWS.EC2.ImportInstance

Generic ImportInstance # 
Instance details

Defined in Network.AWS.EC2.ImportInstance

Associated Types

type Rep ImportInstance :: * -> * #

Hashable ImportInstance # 
Instance details

Defined in Network.AWS.EC2.ImportInstance

AWSRequest ImportInstance # 
Instance details

Defined in Network.AWS.EC2.ImportInstance

Associated Types

type Rs ImportInstance :: * #

ToHeaders ImportInstance # 
Instance details

Defined in Network.AWS.EC2.ImportInstance

ToPath ImportInstance # 
Instance details

Defined in Network.AWS.EC2.ImportInstance

ToQuery ImportInstance # 
Instance details

Defined in Network.AWS.EC2.ImportInstance

NFData ImportInstance # 
Instance details

Defined in Network.AWS.EC2.ImportInstance

Methods

rnf :: ImportInstance -> () #

type Rep ImportInstance # 
Instance details

Defined in Network.AWS.EC2.ImportInstance

type Rep ImportInstance = D1 (MetaData "ImportInstance" "Network.AWS.EC2.ImportInstance" "amazonka-ec2-1.6.0-G6ppxISnQxeI7PhDx9p8Zy" 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 # 
Instance details

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

Defined in Network.AWS.EC2.ImportInstance

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

Defined in Network.AWS.EC2.ImportInstance

Show ImportInstanceResponse # 
Instance details

Defined in Network.AWS.EC2.ImportInstance

Generic ImportInstanceResponse # 
Instance details

Defined in Network.AWS.EC2.ImportInstance

Associated Types

type Rep ImportInstanceResponse :: * -> * #

NFData ImportInstanceResponse # 
Instance details

Defined in Network.AWS.EC2.ImportInstance

Methods

rnf :: ImportInstanceResponse -> () #

type Rep ImportInstanceResponse # 
Instance details

Defined in Network.AWS.EC2.ImportInstance

type Rep ImportInstanceResponse = D1 (MetaData "ImportInstanceResponse" "Network.AWS.EC2.ImportInstance" "amazonka-ec2-1.6.0-G6ppxISnQxeI7PhDx9p8Zy" 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) #

Information about the conversion task.

iirsResponseStatus :: Lens' ImportInstanceResponse Int #

  • - | The response status code.