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

Contents

Description

Imports a disk into an EBS snapshot.

Synopsis

Creating a Request

importSnapshot :: ImportSnapshot Source #

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

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

data ImportSnapshot Source #

Contains the parameters for ImportSnapshot.

See: importSnapshot smart constructor.

Instances

Eq ImportSnapshot Source # 
Data ImportSnapshot Source # 

Methods

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

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

toConstr :: ImportSnapshot -> Constr #

dataTypeOf :: ImportSnapshot -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ImportSnapshot Source # 
Show ImportSnapshot Source # 
Generic ImportSnapshot Source # 

Associated Types

type Rep ImportSnapshot :: * -> * #

Hashable ImportSnapshot Source # 
NFData ImportSnapshot Source # 

Methods

rnf :: ImportSnapshot -> () #

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

Request Lenses

isDiskContainer :: Lens' ImportSnapshot (Maybe SnapshotDiskContainer) Source #

Information about the disk container.

isClientToken :: Lens' ImportSnapshot (Maybe Text) Source #

Token to enable idempotency for VM import requests.

isRoleName :: Lens' ImportSnapshot (Maybe Text) Source #

The name of the role to use when not using the default role, 'vmimport'.

isDescription :: Lens' ImportSnapshot (Maybe Text) Source #

The description string for the import snapshot task.

isDryRun :: Lens' ImportSnapshot (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.

isClientData :: Lens' ImportSnapshot (Maybe ClientData) Source #

The client-specific data.

Destructuring the Response

importSnapshotResponse Source #

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

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

data ImportSnapshotResponse Source #

Contains the output for ImportSnapshot.

See: importSnapshotResponse smart constructor.

Instances

Eq ImportSnapshotResponse Source # 
Data ImportSnapshotResponse Source # 

Methods

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

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

toConstr :: ImportSnapshotResponse -> Constr #

dataTypeOf :: ImportSnapshotResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ImportSnapshotResponse Source # 
Show ImportSnapshotResponse Source # 
Generic ImportSnapshotResponse Source # 
NFData ImportSnapshotResponse Source # 

Methods

rnf :: ImportSnapshotResponse -> () #

type Rep ImportSnapshotResponse Source # 
type Rep ImportSnapshotResponse = D1 (MetaData "ImportSnapshotResponse" "Network.AWS.EC2.ImportSnapshot" "amazonka-ec2-1.4.4-4aYNmHv73MpJXVQjlVKYjQ" False) (C1 (MetaCons "ImportSnapshotResponse'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_isrsSnapshotTaskDetail") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe SnapshotTaskDetail))) (S1 (MetaSel (Just Symbol "_isrsImportTaskId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_isrsDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_isrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))

Response Lenses

isrsSnapshotTaskDetail :: Lens' ImportSnapshotResponse (Maybe SnapshotTaskDetail) Source #

Information about the import snapshot task.

isrsImportTaskId :: Lens' ImportSnapshotResponse (Maybe Text) Source #

The ID of the import snapshot task.

isrsDescription :: Lens' ImportSnapshotResponse (Maybe Text) Source #

A description of the import snapshot task.