| 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.DocumentDB.DeleteDBCluster
Description
Deletes a previously provisioned cluster. When you delete a cluster, all automated backups for that cluster are deleted and can't be recovered. Manual DB cluster snapshots of the specified cluster are not deleted.
Synopsis
- data DeleteDBCluster = DeleteDBCluster' {}
- newDeleteDBCluster :: Text -> DeleteDBCluster
- deleteDBCluster_finalDBSnapshotIdentifier :: Lens' DeleteDBCluster (Maybe Text)
- deleteDBCluster_skipFinalSnapshot :: Lens' DeleteDBCluster (Maybe Bool)
- deleteDBCluster_dbClusterIdentifier :: Lens' DeleteDBCluster Text
- data DeleteDBClusterResponse = DeleteDBClusterResponse' {
- dbCluster :: Maybe DBCluster
- httpStatus :: Int
- newDeleteDBClusterResponse :: Int -> DeleteDBClusterResponse
- deleteDBClusterResponse_dbCluster :: Lens' DeleteDBClusterResponse (Maybe DBCluster)
- deleteDBClusterResponse_httpStatus :: Lens' DeleteDBClusterResponse Int
Creating a Request
data DeleteDBCluster Source #
Represents the input to DeleteDBCluster.
See: newDeleteDBCluster smart constructor.
Constructors
| DeleteDBCluster' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> DeleteDBCluster |
Create a value of DeleteDBCluster 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:finalDBSnapshotIdentifier:DeleteDBCluster', deleteDBCluster_finalDBSnapshotIdentifier - The cluster snapshot identifier of the new cluster snapshot created when
SkipFinalSnapshot is set to false.
Specifying this parameter and also setting the SkipFinalShapshot
parameter to true results in an error.
Constraints:
- Must be from 1 to 255 letters, numbers, or hyphens.
- The first character must be a letter.
- Cannot end with a hyphen or contain two consecutive hyphens.
$sel:skipFinalSnapshot:DeleteDBCluster', deleteDBCluster_skipFinalSnapshot - Determines whether a final cluster snapshot is created before the
cluster is deleted. If true is specified, no cluster snapshot is
created. If false is specified, a cluster snapshot is created before
the DB cluster is deleted.
If SkipFinalSnapshot is false, you must specify a
FinalDBSnapshotIdentifier parameter.
Default: false
DeleteDBCluster, deleteDBCluster_dbClusterIdentifier - The cluster identifier for the cluster to be deleted. This parameter
isn't case sensitive.
Constraints:
- Must match an existing
DBClusterIdentifier.
Request Lenses
deleteDBCluster_finalDBSnapshotIdentifier :: Lens' DeleteDBCluster (Maybe Text) Source #
The cluster snapshot identifier of the new cluster snapshot created when
SkipFinalSnapshot is set to false.
Specifying this parameter and also setting the SkipFinalShapshot
parameter to true results in an error.
Constraints:
- Must be from 1 to 255 letters, numbers, or hyphens.
- The first character must be a letter.
- Cannot end with a hyphen or contain two consecutive hyphens.
deleteDBCluster_skipFinalSnapshot :: Lens' DeleteDBCluster (Maybe Bool) Source #
Determines whether a final cluster snapshot is created before the
cluster is deleted. If true is specified, no cluster snapshot is
created. If false is specified, a cluster snapshot is created before
the DB cluster is deleted.
If SkipFinalSnapshot is false, you must specify a
FinalDBSnapshotIdentifier parameter.
Default: false
deleteDBCluster_dbClusterIdentifier :: Lens' DeleteDBCluster Text Source #
The cluster identifier for the cluster to be deleted. This parameter isn't case sensitive.
Constraints:
- Must match an existing
DBClusterIdentifier.
Destructuring the Response
data DeleteDBClusterResponse Source #
See: newDeleteDBClusterResponse smart constructor.
Constructors
| DeleteDBClusterResponse' | |
Fields
| |
Instances
newDeleteDBClusterResponse Source #
Create a value of DeleteDBClusterResponse 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:dbCluster:DeleteDBClusterResponse', deleteDBClusterResponse_dbCluster - Undocumented member.
$sel:httpStatus:DeleteDBClusterResponse', deleteDBClusterResponse_httpStatus - The response's http status code.
Response Lenses
deleteDBClusterResponse_dbCluster :: Lens' DeleteDBClusterResponse (Maybe DBCluster) Source #
Undocumented member.
deleteDBClusterResponse_httpStatus :: Lens' DeleteDBClusterResponse Int Source #
The response's http status code.