RDS / Client / delete_db_cluster_automated_backup

delete_db_cluster_automated_backup#

RDS.Client.delete_db_cluster_automated_backup(**kwargs)#

Deletes automated backups using the DbClusterResourceId value of the source DB cluster or the Amazon Resource Name (ARN) of the automated backups.

See also: AWS API Documentation

Request Syntax

response = client.delete_db_cluster_automated_backup(
    DbClusterResourceId='string'
)
Parameters:

DbClusterResourceId (string) –

[REQUIRED]

The identifier for the source DB cluster, which can’t be changed and which is unique to an Amazon Web Services Region.

Return type:

dict

Returns:

Response Syntax

{
    'DBClusterAutomatedBackup': {
        'Engine': 'string',
        'VpcId': 'string',
        'DBClusterAutomatedBackupsArn': 'string',
        'DBClusterIdentifier': 'string',
        'RestoreWindow': {
            'EarliestTime': datetime(2015, 1, 1),
            'LatestTime': datetime(2015, 1, 1)
        },
        'MasterUsername': 'string',
        'DbClusterResourceId': 'string',
        'Region': 'string',
        'LicenseModel': 'string',
        'Status': 'string',
        'IAMDatabaseAuthenticationEnabled': True|False,
        'ClusterCreateTime': datetime(2015, 1, 1),
        'StorageEncrypted': True|False,
        'AllocatedStorage': 123,
        'EngineVersion': 'string',
        'DBClusterArn': 'string',
        'BackupRetentionPeriod': 123,
        'EngineMode': 'string',
        'AvailabilityZones': [
            'string',
        ],
        'Port': 123,
        'KmsKeyId': 'string',
        'StorageType': 'string',
        'Iops': 123
    }
}

Response Structure

  • (dict) –

    • DBClusterAutomatedBackup (dict) –

      An automated backup of a DB cluster. It consists of system backups, transaction logs, and the database cluster properties that existed at the time you deleted the source cluster.

      • Engine (string) –

        The name of the database engine for this automated backup.

      • VpcId (string) –

        The VPC ID associated with the DB cluster.

      • DBClusterAutomatedBackupsArn (string) –

        The Amazon Resource Name (ARN) for the automated backups.

      • DBClusterIdentifier (string) –

        The identifier for the source DB cluster, which can’t be changed and which is unique to an Amazon Web Services Region.

      • RestoreWindow (dict) –

        Earliest and latest time an instance can be restored to:

        • EarliestTime (datetime) –

          The earliest time you can restore an instance to.

        • LatestTime (datetime) –

          The latest time you can restore an instance to.

      • MasterUsername (string) –

        The master user name of the automated backup.

      • DbClusterResourceId (string) –

        The resource ID for the source DB cluster, which can’t be changed and which is unique to an Amazon Web Services Region.

      • Region (string) –

        The Amazon Web Services Region associated with the automated backup.

      • LicenseModel (string) –

        The license model information for this DB cluster automated backup.

      • Status (string) –

        A list of status information for an automated backup:

        • retained - Automated backups for deleted clusters.

      • IAMDatabaseAuthenticationEnabled (boolean) –

        True if mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.

      • ClusterCreateTime (datetime) –

        The time when the DB cluster was created, in Universal Coordinated Time (UTC).

      • StorageEncrypted (boolean) –

        Specifies whether the source DB cluster is encrypted.

      • AllocatedStorage (integer) –

        For all database engines except Amazon Aurora, AllocatedStorage specifies the allocated storage size in gibibytes (GiB). For Aurora, AllocatedStorage always returns 1, because Aurora DB cluster storage size isn’t fixed, but instead automatically adjusts as needed.

      • EngineVersion (string) –

        The version of the database engine for the automated backup.

      • DBClusterArn (string) –

        The Amazon Resource Name (ARN) for the source DB cluster.

      • BackupRetentionPeriod (integer) –

        The retention period for the automated backups.

      • EngineMode (string) –

        The engine mode of the database engine for the automated backup.

      • AvailabilityZones (list) –

        The Availability Zones where instances in the DB cluster can be created. For information on Amazon Web Services Regions and Availability Zones, see Regions and Availability Zones.

        • (string) –

      • Port (integer) –

        The port number that the automated backup used for connections.

        Default: Inherits from the source DB cluster

        Valid Values: 1150-65535

      • KmsKeyId (string) –

        The Amazon Web Services KMS key ID for an automated backup.

        The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.

      • StorageType (string) –

        The storage type associated with the DB cluster.

        This setting is only for non-Aurora Multi-AZ DB clusters.

      • Iops (integer) –

        The IOPS (I/O operations per second) value for the automated backup.

        This setting is only for non-Aurora Multi-AZ DB clusters.

Exceptions

  • RDS.Client.exceptions.InvalidDBClusterAutomatedBackupStateFault

  • RDS.Client.exceptions.DBClusterAutomatedBackupNotFoundFault