Copyright | (c) 2013-2017 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 |
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
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 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:
rfsrsResponseStatus
- -- | The response status code.
data RestoreFromSnapshotResponse Source #
Contains the results of the RestoreFromSnapshot
operation.
See: restoreFromSnapshotResponse
smart constructor.
Response Lenses
rfsrsResponseStatus :: Lens' RestoreFromSnapshotResponse Int Source #
- - | The response status code.