delete_db_cluster
async
¶
delete_db_cluster(
*,
config_overrides: Optional[AsyncDocDBClientConfig] = None,
db_cluster_identifier: Optional[String] = None,
skip_final_snapshot: Optional[Boolean] = None,
final_db_snapshot_identifier: Optional[String] = None,
) -> DeleteDBClusterResult
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.
Parameters:
-
db_cluster_identifier(Optional[String], default:None) –The cluster identifier for the cluster to be deleted. This parameter isn't case sensitive.
Constraints:
-
Must match an existing
DBClusterIdentifier.
-
-
skip_final_snapshot(Optional[Boolean], default:None) –Determines whether a final cluster snapshot is created before the cluster is deleted. If
trueis specified, no cluster snapshot is created. Iffalseis specified, a cluster snapshot is created before the DB cluster is deleted.If
SkipFinalSnapshotisfalse, you must specify aFinalDBSnapshotIdentifierparameter.Default:
false -
final_db_snapshot_identifier(Optional[String], default:None) –The cluster snapshot identifier of the new cluster snapshot created when
SkipFinalSnapshotis set tofalse.Specifying this parameter and also setting the
SkipFinalShapshotparameter totrueresults 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.
-
Raises:
-
DBClusterNotFoundFault–DBClusterIdentifierdoesn't refer to an existing cluster. -
DBClusterSnapshotAlreadyExistsFault–You already have a cluster snapshot with the given identifier.
-
InvalidDBClusterSnapshotStateFault–The provided value isn't a valid cluster snapshot state.
-
InvalidDBClusterStateFault–The cluster isn't in a valid state.
-
SnapshotQuotaExceededFault–The request would cause you to exceed the allowed number of snapshots.
-
UnknownServiceError–The service returned an error code this client does not model.