Describes an existing backup of a table.
You can call DescribeBackup at a maximum rate of 10 times per second.
Parameters:
-
backup_arn
(BackupArn)
–
The Amazon Resource Name (ARN) associated with the backup.
Raises:
Source code in docs_src/capo_dynamodb/_services/dynamo_db.py
| def describe_backup(
self,
backup_arn: "capo_dynamodb.types.backup_arn.BackupArn",
*,
config_overrides: Optional[DynamoDBClientConfig] = None,
) -> "capo_dynamodb.types.describe_backup_output.DescribeBackupOutput":
"""<p>Describes an existing backup of a table.</p> <p>You can call <code>DescribeBackup</code> at a maximum rate of 10 times per second.</p>
Args:
backup_arn: <p>The Amazon Resource Name (ARN) associated with the backup.</p>
Raises:
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.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_dynamodb.types.describe_backup_input.DescribeBackupInput]",
) -> OperationResponse[
"capo_dynamodb.types.describe_backup_output.DescribeBackupOutput"
]:
import capo_dynamodb._operations.dynamo_db_20120810.describe_backup
output, http_response = (
capo_dynamodb._operations.dynamo_db_20120810.describe_backup.describe_backup(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeBackup")
)
input_: capo_dynamodb.types.describe_backup_input.DescribeBackupInput = {
"backup_arn": backup_arn
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|