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 |
Deletes an existing snapshot. When you receive a successful response from this operation, MemoryDB immediately begins deleting the snapshot; you cannot cancel or revert this operation.
Synopsis
- data DeleteSnapshot = DeleteSnapshot' {
- snapshotName :: Text
- newDeleteSnapshot :: Text -> DeleteSnapshot
- deleteSnapshot_snapshotName :: Lens' DeleteSnapshot Text
- data DeleteSnapshotResponse = DeleteSnapshotResponse' {
- snapshot :: Maybe Snapshot
- httpStatus :: Int
- newDeleteSnapshotResponse :: Int -> DeleteSnapshotResponse
- deleteSnapshotResponse_snapshot :: Lens' DeleteSnapshotResponse (Maybe Snapshot)
- deleteSnapshotResponse_httpStatus :: Lens' DeleteSnapshotResponse Int
Creating a Request
data DeleteSnapshot Source #
See: newDeleteSnapshot
smart constructor.
DeleteSnapshot' | |
|
Instances
Create a value of DeleteSnapshot
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:snapshotName:DeleteSnapshot'
, deleteSnapshot_snapshotName
- The name of the snapshot to delete
Request Lenses
deleteSnapshot_snapshotName :: Lens' DeleteSnapshot Text Source #
The name of the snapshot to delete
Destructuring the Response
data DeleteSnapshotResponse Source #
See: newDeleteSnapshotResponse
smart constructor.
DeleteSnapshotResponse' | |
|
Instances
newDeleteSnapshotResponse Source #
Create a value of DeleteSnapshotResponse
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:snapshot:DeleteSnapshotResponse'
, deleteSnapshotResponse_snapshot
- The snapshot object that has been deleted.
$sel:httpStatus:DeleteSnapshotResponse'
, deleteSnapshotResponse_httpStatus
- The response's http status code.
Response Lenses
deleteSnapshotResponse_snapshot :: Lens' DeleteSnapshotResponse (Maybe Snapshot) Source #
The snapshot object that has been deleted.
deleteSnapshotResponse_httpStatus :: Lens' DeleteSnapshotResponse Int Source #
The response's http status code.