Skip to content

delete_backup

delete_backup(
    backup_arn: BackupArn, *, config_overrides: Optional[DynamoDBClientConfig] = None
) -> DeleteBackupOutput

Deletes an existing backup of a table.

You can call DeleteBackup at a maximum rate of 10 times per second.

Parameters:

  • backup_arn (BackupArn) –

    The ARN associated with the backup.

Raises:

  • BackupInUseException –

    There is another ongoing conflicting backup control plane operation on the table. The backup is either being created, deleted or restored to a table.

  • BackupNotFoundException –

    Backup not found for the given BackupARN.

  • InternalServerError –

    An error occurred on the server side.

  • LimitExceededException –

    There is no limit to the number of daily on-demand backups that can be taken.

    For most purposes, up to 500 simultaneous table operations are allowed per account. These operations include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup, and RestoreTableToPointInTime.

    When you are creating a table with one or more secondary indexes, you can have up to 250 such requests running at a time. However, if the table or index specifications are complex, then DynamoDB might temporarily reduce the number of concurrent operations.

    When importing into DynamoDB, up to 50 simultaneous import table operations are allowed per account.

    There is a soft account quota of 2,500 tables.

    GetRecords was called with a value of more than 1000 for the limit request parameter.

    More than 2 processes are reading from the same streams shard at the same time. Exceeding this limit may result in request throttling.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_dynamodb/_services/dynamo_db.py
def delete_backup(
    self,
    backup_arn: "capo_dynamodb.types.backup_arn.BackupArn",
    *,
    config_overrides: Optional[DynamoDBClientConfig] = None,
) -> "capo_dynamodb.types.delete_backup_output.DeleteBackupOutput":
    """<p>Deletes an existing backup of a table.</p> <p>You can call <code>DeleteBackup</code> at a maximum rate of 10 times per second.</p>

    Args:
        backup_arn: <p>The ARN associated with the backup.</p>

    Raises:
        capo_dynamodb.errors.backup_in_use_exception.BackupInUseException: <p>There is another ongoing conflicting backup control plane operation on the table. The backup is either being created, deleted or restored to a table.</p>
        capo_dynamodb.errors.backup_not_found_exception.BackupNotFoundException: <p>Backup not found for the given BackupARN. </p>
        capo_dynamodb.errors.internal_server_error.InternalServerError: <p>An error occurred on the server side.</p>
        capo_dynamodb.errors.invalid_endpoint_exception.InvalidEndpointException
        capo_dynamodb.errors.limit_exceeded_exception.LimitExceededException: <p>There is no limit to the number of daily on-demand backups that can be taken. </p> <p>For most purposes, up to 500 simultaneous table operations are allowed per account. These operations include <code>CreateTable</code>, <code>UpdateTable</code>, <code>DeleteTable</code>,<code>UpdateTimeToLive</code>, <code>RestoreTableFromBackup</code>, and <code>RestoreTableToPointInTime</code>. </p> <p>When you are creating a table with one or more secondary indexes, you can have up to 250 such requests running at a time. However, if the table or index specifications are complex, then DynamoDB might temporarily reduce the number of concurrent operations.</p> <p>When importing into DynamoDB, up to 50 simultaneous import table operations are allowed per account.</p> <p>There is a soft account quota of 2,500 tables.</p> <p>GetRecords was called with a value of more than 1000 for the limit request parameter.</p> <p>More than 2 processes are reading from the same streams shard at the same time. Exceeding this limit may result in request throttling.</p>
        capo_dynamodb.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_dynamodb.types.delete_backup_input.DeleteBackupInput]",
    ) -> OperationResponse[
        "capo_dynamodb.types.delete_backup_output.DeleteBackupOutput"
    ]:
        import capo_dynamodb._operations.dynamo_db_20120810.delete_backup

        output, http_response = (
            capo_dynamodb._operations.dynamo_db_20120810.delete_backup.delete_backup(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteBackup")
    )
    input_: capo_dynamodb.types.delete_backup_input.DeleteBackupInput = {
        "backup_arn": backup_arn
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output