Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Network.AWS.DirectoryService.RestoreFromSnapshot
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.
Creating a Request
Arguments
:: Text | |
-> 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:
rfsSnapshotId
- The identifier of the snapshot to restore from.
data RestoreFromSnapshot #
An object representing the inputs for the RestoreFromSnapshot
operation.
See: restoreFromSnapshot
smart constructor.
Instances
Request Lenses
rfsSnapshotId :: Lens' RestoreFromSnapshot Text #
The identifier of the snapshot to restore from.
Destructuring the Response
Arguments
:: Int | |
-> 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:
rfsrsResponseStatus
- -- | The response status code.
data RestoreFromSnapshotResponse #
Contains the results of the RestoreFromSnapshot
operation.
See: restoreFromSnapshotResponse
smart constructor.
Response Lenses
rfsrsResponseStatus :: Lens' RestoreFromSnapshotResponse Int #
- - | The response status code.