| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.RDS.DeleteDBSnapshot
Description
Deletes a DB snapshot. If the snapshot is being copied, the copy operation is terminated.
The DB snapshot must be in the available state to be deleted.
Synopsis
- data DeleteDBSnapshot = DeleteDBSnapshot' {}
- newDeleteDBSnapshot :: Text -> DeleteDBSnapshot
- deleteDBSnapshot_dbSnapshotIdentifier :: Lens' DeleteDBSnapshot Text
- data DeleteDBSnapshotResponse = DeleteDBSnapshotResponse' {}
- newDeleteDBSnapshotResponse :: Int -> DeleteDBSnapshotResponse
- deleteDBSnapshotResponse_dbSnapshot :: Lens' DeleteDBSnapshotResponse (Maybe DBSnapshot)
- deleteDBSnapshotResponse_httpStatus :: Lens' DeleteDBSnapshotResponse Int
Creating a Request
data DeleteDBSnapshot Source #
See: newDeleteDBSnapshot smart constructor.
Constructors
| DeleteDBSnapshot' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> DeleteDBSnapshot |
Create a value of DeleteDBSnapshot 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:
DeleteDBSnapshot, deleteDBSnapshot_dbSnapshotIdentifier - The DB snapshot identifier.
Constraints: Must be the name of an existing DB snapshot in the
available state.
Request Lenses
deleteDBSnapshot_dbSnapshotIdentifier :: Lens' DeleteDBSnapshot Text Source #
The DB snapshot identifier.
Constraints: Must be the name of an existing DB snapshot in the
available state.
Destructuring the Response
data DeleteDBSnapshotResponse Source #
See: newDeleteDBSnapshotResponse smart constructor.
Constructors
| DeleteDBSnapshotResponse' | |
Fields
| |
Instances
newDeleteDBSnapshotResponse Source #
Create a value of DeleteDBSnapshotResponse 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:dbSnapshot:DeleteDBSnapshotResponse', deleteDBSnapshotResponse_dbSnapshot - Undocumented member.
$sel:httpStatus:DeleteDBSnapshotResponse', deleteDBSnapshotResponse_httpStatus - The response's http status code.
Response Lenses
deleteDBSnapshotResponse_dbSnapshot :: Lens' DeleteDBSnapshotResponse (Maybe DBSnapshot) Source #
Undocumented member.
deleteDBSnapshotResponse_httpStatus :: Lens' DeleteDBSnapshotResponse Int Source #
The response's http status code.