amazonka-ec2-1.4.5: 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 #

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:

  • isDiskContainer - Information about the disk container.
  • isClientToken - Token to enable idempotency for VM import requests.
  • isRoleName - The name of the role to use when not using the default role, vmimport.
  • isDescription - The description string for the import snapshot task.
  • isDryRun - 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 - The client-specific data.

data ImportSnapshot #

Contains the parameters for ImportSnapshot.

See: importSnapshot smart constructor.

Instances

Eq ImportSnapshot # 
Data ImportSnapshot # 

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 # 
Show ImportSnapshot # 
Generic ImportSnapshot # 

Associated Types

type Rep ImportSnapshot :: * -> * #

Hashable ImportSnapshot # 
NFData ImportSnapshot # 

Methods

rnf :: ImportSnapshot -> () #

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

Request Lenses

isDiskContainer :: Lens' ImportSnapshot (Maybe SnapshotDiskContainer) #

Information about the disk container.

isClientToken :: Lens' ImportSnapshot (Maybe Text) #

Token to enable idempotency for VM import requests.

isRoleName :: Lens' ImportSnapshot (Maybe Text) #

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

isDescription :: Lens' ImportSnapshot (Maybe Text) #

The description string for the import snapshot task.

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

isClientData :: Lens' ImportSnapshot (Maybe ClientData) #

The client-specific data.

Destructuring the Response

importSnapshotResponse #

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 #

Contains the output for ImportSnapshot.

See: importSnapshotResponse smart constructor.

Instances

Eq ImportSnapshotResponse # 
Data ImportSnapshotResponse # 

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

Methods

rnf :: ImportSnapshotResponse -> () #

type Rep ImportSnapshotResponse # 
type Rep ImportSnapshotResponse = D1 (MetaData "ImportSnapshotResponse" "Network.AWS.EC2.ImportSnapshot" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" 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) #

Information about the import snapshot task.

isrsImportTaskId :: Lens' ImportSnapshotResponse (Maybe Text) #

The ID of the import snapshot task.

isrsDescription :: Lens' ImportSnapshotResponse (Maybe Text) #

A description of the import snapshot task.

isrsResponseStatus :: Lens' ImportSnapshotResponse Int #

  • - | The response status code.