Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
See: AWS API Reference for RestoreFromSnapshot.
Creating a Request
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.
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.
Response Lenses
rfsrsStatus :: Lens' RestoreFromSnapshotResponse Int Source
The response status code.