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

Copyright(c) 2013-2017 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.ImportVolume

Contents

Description

Creates an import volume task using metadata from the specified disk image.For more information, see Importing Disks to Amazon EBS .

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

Synopsis

Creating a Request

importVolume Source #

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

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

  • ivDescription - A description of the volume.
  • ivDryRun - 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 .
  • ivAvailabilityZone - The Availability Zone for the resulting EBS volume.
  • ivImage - The disk image.
  • ivVolume - The volume size.

data ImportVolume Source #

Contains the parameters for ImportVolume.

See: importVolume smart constructor.

Instances

Eq ImportVolume Source # 
Data ImportVolume Source # 

Methods

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

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

toConstr :: ImportVolume -> Constr #

dataTypeOf :: ImportVolume -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ImportVolume Source # 
Show ImportVolume Source # 
Generic ImportVolume Source # 

Associated Types

type Rep ImportVolume :: * -> * #

Hashable ImportVolume Source # 
NFData ImportVolume Source # 

Methods

rnf :: ImportVolume -> () #

AWSRequest ImportVolume Source # 
ToQuery ImportVolume Source # 
ToPath ImportVolume Source # 
ToHeaders ImportVolume Source # 
type Rep ImportVolume Source # 
type Rs ImportVolume Source # 

Request Lenses

ivDescription :: Lens' ImportVolume (Maybe Text) Source #

A description of the volume.

ivDryRun :: Lens' ImportVolume (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 .

ivAvailabilityZone :: Lens' ImportVolume Text Source #

The Availability Zone for the resulting EBS volume.

Destructuring the Response

importVolumeResponse Source #

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

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

data ImportVolumeResponse Source #

Contains the output for ImportVolume.

See: importVolumeResponse smart constructor.

Instances

Eq ImportVolumeResponse Source # 
Data ImportVolumeResponse Source # 

Methods

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

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

toConstr :: ImportVolumeResponse -> Constr #

dataTypeOf :: ImportVolumeResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ImportVolumeResponse Source # 
Show ImportVolumeResponse Source # 
Generic ImportVolumeResponse Source # 
NFData ImportVolumeResponse Source # 

Methods

rnf :: ImportVolumeResponse -> () #

type Rep ImportVolumeResponse Source # 
type Rep ImportVolumeResponse = D1 (MetaData "ImportVolumeResponse" "Network.AWS.EC2.ImportVolume" "amazonka-ec2-1.5.0-8IdXK3SzsETDMW2aFpANS9" False) (C1 (MetaCons "ImportVolumeResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ivrsConversionTask") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ConversionTask))) (S1 (MetaSel (Just Symbol "_ivrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

ivrsConversionTask :: Lens' ImportVolumeResponse (Maybe ConversionTask) Source #

Information about the conversion task.

ivrsResponseStatus :: Lens' ImportVolumeResponse Int Source #

  • - | The response status code.