amazonka-ds-1.6.0: Amazon Directory Service 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.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 #

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 #

An object representing the inputs for the RestoreFromSnapshot operation.

See: restoreFromSnapshot smart constructor.

Instances

Eq RestoreFromSnapshot # 
Data RestoreFromSnapshot # 

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 # 
Show RestoreFromSnapshot # 
Generic RestoreFromSnapshot # 
Hashable RestoreFromSnapshot # 
ToJSON RestoreFromSnapshot # 
NFData RestoreFromSnapshot # 

Methods

rnf :: RestoreFromSnapshot -> () #

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

Request Lenses

rfsSnapshotId :: Lens' RestoreFromSnapshot Text #

The identifier of the snapshot to restore from.

Destructuring the Response

restoreFromSnapshotResponse #

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 #

Contains the results of the RestoreFromSnapshot operation.

See: restoreFromSnapshotResponse smart constructor.

Instances

Eq RestoreFromSnapshotResponse # 
Data RestoreFromSnapshotResponse # 

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 # 
Show RestoreFromSnapshotResponse # 
Generic RestoreFromSnapshotResponse # 
NFData RestoreFromSnapshotResponse # 
type Rep RestoreFromSnapshotResponse # 
type Rep RestoreFromSnapshotResponse = D1 * (MetaData "RestoreFromSnapshotResponse" "Network.AWS.DirectoryService.RestoreFromSnapshot" "amazonka-ds-1.6.0-GmQtRfGRD6LI91OTzfkXGW" True) (C1 * (MetaCons "RestoreFromSnapshotResponse'" PrefixI True) (S1 * (MetaSel (Just Symbol "_rfsrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int)))

Response Lenses