Skip to content

DeleteDBClusterMessage

Source code in docs_src/capo_rds/types/delete_db_cluster_message.py
class DeleteDBClusterMessage(TypedDict, closed=True):
    db_cluster_identifier: NotRequired["capo_rds.types.string.String"]
    """<p>The DB cluster identifier for the DB cluster to be deleted. This parameter isn't case-sensitive.</p> <p>Constraints:</p> <ul> <li> <p>Must match an existing DBClusterIdentifier.</p> </li> </ul>"""
    skip_final_snapshot: NotRequired["capo_rds.types.boolean.Boolean"]
    """<p>Specifies whether to skip the creation of a final DB cluster snapshot before RDS deletes the DB cluster. If you set this value to <code>true</code>, RDS doesn't create a final DB cluster snapshot. If you set this value to <code>false</code> 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.</p> <note> <p>If <code>SkipFinalSnapshot</code> is disabled, you must specify a value for the <code>FinalDBSnapshotIdentifier</code> parameter.</p> </note>"""
    final_db_snapshot_identifier: NotRequired["capo_rds.types.string.String"]
    """<p>The DB cluster snapshot identifier of the new DB cluster snapshot created when <code>SkipFinalSnapshot</code> is disabled.</p> <note> <p>If you specify this parameter and also skip the creation of a final DB cluster snapshot with the <code>SkipFinalShapshot</code> parameter, the request results in an error.</p> </note> <p>Constraints:</p> <ul> <li> <p>Must be 1 to 255 letters, numbers, or hyphens.</p> </li> <li> <p>First character must be a letter</p> </li> <li> <p>Can't end with a hyphen or contain two consecutive hyphens</p> </li> </ul>"""
    delete_automated_backups: NotRequired[
        "capo_rds.types.boolean_optional.BooleanOptional"
    ]
    """<p>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.</p>"""
    delete_db_instances: NotRequired["capo_rds.types.boolean_optional.BooleanOptional"]
    """<p>Specifies whether to delete all DB instances in the DB cluster together with the DB cluster. If you set this value to <code>true</code>, RDS deletes every DB instance in the DB cluster and then deletes the DB cluster. You don't need to call <code>DeleteDBInstance</code> for each DB instance first. If you set this value to <code>false</code> or don't specify it, RDS deletes the DB cluster only after you delete each of its DB instances.</p> <p>You must have permission to call <code>DeleteDBInstance</code> on every DB instance in the DB cluster. If RDS can't delete a DB instance in the DB cluster, the request fails and RDS doesn't delete the DB cluster or any of its DB instances.</p> <p>Constraints:</p> <ul> <li> <p>You can't specify this parameter for a DB cluster that is a member of an Aurora global database. Remove the DB cluster from the global database first.</p> </li> <li> <p>You can't specify this parameter for an Aurora Limitless Database DB cluster.</p> </li> <li> <p>Deletion protection must be turned off for the DB cluster.</p> </li> <li> <p>No DB instance in the DB cluster can be in the <code>deleting</code> state or be switching over, be the blue DB instance of an active blue/green deployment, or have an active zero-ETL integration.</p> </li> <li> <p>No DB instance in the DB cluster can be the source of an Aurora read replica DB cluster, or have a read replica that is being created or a cross-Region read replica that is being restored.</p> </li> <li> <p>The DB cluster can't be in the <code>stopping</code> state.</p> </li> </ul> <p>If the DB cluster doesn't contain any DB instances, RDS deletes the DB cluster the same way as when you don't specify this parameter.</p> <p>Default: <code>false</code> </p> <p>Valid for Cluster Type: Aurora MySQL and Aurora PostgreSQL DB clusters only</p>"""

db_cluster_identifier instance-attribute

db_cluster_identifier: NotRequired[String]

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 instance-attribute

delete_automated_backups: NotRequired[BooleanOptional]

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.

delete_db_instances instance-attribute

delete_db_instances: NotRequired[BooleanOptional]

Specifies whether to delete all DB instances in the DB cluster together with the DB cluster. If you set this value to true, RDS deletes every DB instance in the DB cluster and then deletes the DB cluster. You don't need to call DeleteDBInstance for each DB instance first. If you set this value to false or don't specify it, RDS deletes the DB cluster only after you delete each of its DB instances.

You must have permission to call DeleteDBInstance on every DB instance in the DB cluster. If RDS can't delete a DB instance in the DB cluster, the request fails and RDS doesn't delete the DB cluster or any of its DB instances.

Constraints:

  • You can't specify this parameter for a DB cluster that is a member of an Aurora global database. Remove the DB cluster from the global database first.

  • You can't specify this parameter for an Aurora Limitless Database DB cluster.

  • Deletion protection must be turned off for the DB cluster.

  • No DB instance in the DB cluster can be in the deleting state or be switching over, be the blue DB instance of an active blue/green deployment, or have an active zero-ETL integration.

  • No DB instance in the DB cluster can be the source of an Aurora read replica DB cluster, or have a read replica that is being created or a cross-Region read replica that is being restored.

  • The DB cluster can't be in the stopping state.

If the DB cluster doesn't contain any DB instances, RDS deletes the DB cluster the same way as when you don't specify this parameter.

Default: false

Valid for Cluster Type: Aurora MySQL and Aurora PostgreSQL DB clusters only

final_db_snapshot_identifier instance-attribute

final_db_snapshot_identifier: NotRequired[String]

The DB cluster snapshot identifier of the new DB cluster snapshot created when SkipFinalSnapshot is disabled.

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 instance-attribute

skip_final_snapshot: NotRequired[Boolean]

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.

If SkipFinalSnapshot is disabled, you must specify a value for the FinalDBSnapshotIdentifier parameter.