Copyright | (c) 2013-2021 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 |
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
- data RestoreFromSnapshot = RestoreFromSnapshot' {
- snapshotId :: Text
- newRestoreFromSnapshot :: Text -> RestoreFromSnapshot
- restoreFromSnapshot_snapshotId :: Lens' RestoreFromSnapshot Text
- data RestoreFromSnapshotResponse = RestoreFromSnapshotResponse' {
- httpStatus :: Int
- newRestoreFromSnapshotResponse :: Int -> RestoreFromSnapshotResponse
- restoreFromSnapshotResponse_httpStatus :: Lens' RestoreFromSnapshotResponse Int
Creating a Request
data RestoreFromSnapshot Source #
An object representing the inputs for the RestoreFromSnapshot operation.
See: newRestoreFromSnapshot
smart constructor.
RestoreFromSnapshot' | |
|
Instances
newRestoreFromSnapshot Source #
Create a value of RestoreFromSnapshot
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:snapshotId:RestoreFromSnapshot'
, restoreFromSnapshot_snapshotId
- The identifier of the snapshot to restore from.
Request Lenses
restoreFromSnapshot_snapshotId :: Lens' RestoreFromSnapshot Text Source #
The identifier of the snapshot to restore from.
Destructuring the Response
data RestoreFromSnapshotResponse Source #
Contains the results of the RestoreFromSnapshot operation.
See: newRestoreFromSnapshotResponse
smart constructor.
RestoreFromSnapshotResponse' | |
|
Instances
newRestoreFromSnapshotResponse Source #
Create a value of RestoreFromSnapshotResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:RestoreFromSnapshotResponse'
, restoreFromSnapshotResponse_httpStatus
- The response's http status code.
Response Lenses
restoreFromSnapshotResponse_httpStatus :: Lens' RestoreFromSnapshotResponse Int Source #
The response's http status code.