amazonka-ds-1.4.4: Amazon Directory Service 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.DirectoryService.RestoreFromSnapshot

Contents

Description

Restores a directory using an existing directory snapshot.

When you restore a directory from a snapshot, any changes made to the directory after the snapshot date are overwritten.

This action returns as soon as the restore operation is initiated. You can monitor the progress of the restore operation by calling the DescribeDirectories operation with the directory identifier. When the DirectoryDescription.Stage value changes to Active, the restore operation is complete.

Synopsis

Creating a Request

restoreFromSnapshot Source #

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

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

data RestoreFromSnapshot Source #

An object representing the inputs for the RestoreFromSnapshot operation.

See: restoreFromSnapshot smart constructor.

Instances

Eq RestoreFromSnapshot Source # 
Data RestoreFromSnapshot Source # 

Methods

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

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

toConstr :: RestoreFromSnapshot -> Constr #

dataTypeOf :: RestoreFromSnapshot -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RestoreFromSnapshot Source # 
Show RestoreFromSnapshot Source # 
Generic RestoreFromSnapshot Source # 
Hashable RestoreFromSnapshot Source # 
NFData RestoreFromSnapshot Source # 

Methods

rnf :: RestoreFromSnapshot -> () #

AWSRequest RestoreFromSnapshot Source # 
ToPath RestoreFromSnapshot Source # 
ToHeaders RestoreFromSnapshot Source # 
ToQuery RestoreFromSnapshot Source # 
ToJSON RestoreFromSnapshot Source # 
type Rep RestoreFromSnapshot Source # 
type Rep RestoreFromSnapshot = D1 (MetaData "RestoreFromSnapshot" "Network.AWS.DirectoryService.RestoreFromSnapshot" "amazonka-ds-1.4.4-9k5BNLMvpUcC12HvOZ6S1s" True) (C1 (MetaCons "RestoreFromSnapshot'" PrefixI True) (S1 (MetaSel (Just Symbol "_rfsSnapshotId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs RestoreFromSnapshot Source # 

Request Lenses

rfsSnapshotId :: Lens' RestoreFromSnapshot Text Source #

The identifier of the snapshot to restore from.

Destructuring the Response

restoreFromSnapshotResponse Source #

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

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

data RestoreFromSnapshotResponse Source #

Contains the results of the RestoreFromSnapshot operation.

See: restoreFromSnapshotResponse smart constructor.

Instances

Eq RestoreFromSnapshotResponse Source # 
Data RestoreFromSnapshotResponse Source # 

Methods

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

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

toConstr :: RestoreFromSnapshotResponse -> Constr #

dataTypeOf :: RestoreFromSnapshotResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RestoreFromSnapshotResponse Source # 
Show RestoreFromSnapshotResponse Source # 
Generic RestoreFromSnapshotResponse Source # 
NFData RestoreFromSnapshotResponse Source # 
type Rep RestoreFromSnapshotResponse Source # 
type Rep RestoreFromSnapshotResponse = D1 (MetaData "RestoreFromSnapshotResponse" "Network.AWS.DirectoryService.RestoreFromSnapshot" "amazonka-ds-1.4.4-9k5BNLMvpUcC12HvOZ6S1s" True) (C1 (MetaCons "RestoreFromSnapshotResponse'" PrefixI True) (S1 (MetaSel (Just Symbol "_rfsrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses