delete_db_cluster¶
Operation¶
delete_db_cluster
async
¶
delete_db_cluster(input: DeleteDBClusterInput, plugins: list[Plugin] | None = None) -> DeleteDBClusterOutput
The DeleteDBCluster action deletes a previously provisioned DB cluster. When you delete a DB cluster, all automated backups for that DB cluster are deleted and can't be recovered. Manual DB cluster snapshots of the specified DB cluster are not deleted.
If you're deleting a Multi-AZ DB cluster with read replicas, all cluster members are terminated and read replicas are promoted to standalone instances.
For more information on Amazon Aurora, see What is Amazon Aurora? in the Amazon Aurora User Guide.
For more information on Multi-AZ DB clusters, see Multi-AZ DB cluster deployments in the Amazon RDS User Guide.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
DeleteDBClusterInput
|
An instance of |
required |
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
Returns:
| Type | Description |
|---|---|
DeleteDBClusterOutput
|
An instance of |
Input¶
DeleteDBClusterInput
dataclass
¶
Bases: _SerdeShape
Attributes¶
db_cluster_identifier
class-attribute
instance-attribute
¶
db_cluster_identifier: str | None = ...
The DB cluster identifier for the DB cluster to be deleted. This parameter isn't case-sensitive.
Constraints:
- Must match an existing DBClusterIdentifier.
delete_automated_backups
class-attribute
instance-attribute
¶
delete_automated_backups: bool | None = ...
Specifies whether to remove automated backups immediately after the DB cluster is deleted. This parameter isn't case-sensitive. The default is to remove automated backups immediately after the DB cluster is deleted, unless the Amazon Web Services Backup policy specifies a point-in-time restore rule.
final_db_snapshot_identifier
class-attribute
instance-attribute
¶
final_db_snapshot_identifier: str | None = ...
The DB cluster snapshot identifier of the new DB cluster snapshot
created when SkipFinalSnapshot is disabled.
Note
If you specify this parameter and also skip the creation of a final DB
cluster snapshot with the SkipFinalShapshot parameter, the request
results in an error.
Constraints:
-
Must be 1 to 255 letters, numbers, or hyphens.
-
First character must be a letter
-
Can't end with a hyphen or contain two consecutive hyphens
skip_final_snapshot
class-attribute
instance-attribute
¶
skip_final_snapshot: bool | None = ...
Specifies whether to skip the creation of a final DB cluster snapshot
before RDS deletes the DB cluster. If you set this value to true, RDS
doesn't create a final DB cluster snapshot. If you set this value to
false or don't specify it, RDS creates a DB cluster snapshot before
it deletes the DB cluster. By default, this parameter is disabled, so
RDS creates a final DB cluster snapshot.
Note
If SkipFinalSnapshot is disabled, you must specify a value for the
FinalDBSnapshotIdentifier parameter.
Output¶
DeleteDBClusterOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for DeleteDBClusterOutput structure.
Attributes¶
db_cluster
class-attribute
instance-attribute
¶
Contains the details of an Amazon Aurora DB cluster or Multi-AZ DB cluster.
For an Amazon Aurora DB cluster, this data type is used as a response
element in the operations CreateDBCluster, DeleteDBCluster,
DescribeDBClusters, FailoverDBCluster, ModifyDBCluster,
PromoteReadReplicaDBCluster, RestoreDBClusterFromS3,
RestoreDBClusterFromSnapshot, RestoreDBClusterToPointInTime,
StartDBCluster, and StopDBCluster.
For a Multi-AZ DB cluster, this data type is used as a response element
in the operations CreateDBCluster, DeleteDBCluster,
DescribeDBClusters, FailoverDBCluster, ModifyDBCluster,
RebootDBCluster, RestoreDBClusterFromSnapshot, and
RestoreDBClusterToPointInTime.
For more information on Amazon Aurora DB clusters, see What is Amazon Aurora? in the Amazon Aurora User Guide.
For more information on Multi-AZ DB clusters, see Multi-AZ deployments with two readable standby DB instances in the Amazon RDS User Guide.
response_metadata
class-attribute
instance-attribute
¶
Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.