Checks the status of continuous backups and point in time recovery on the specified table. Continuous backups are ENABLED on all tables at table creation. If point in time recovery is enabled, PointInTimeRecoveryStatus will be set to ENABLED.
After continuous backups and point in time recovery are enabled, you can restore to any point in time within EarliestRestorableDateTime and LatestRestorableDateTime.
LatestRestorableDateTime is typically 5 minutes before the current time. You can restore your table to any point in time in the last 35 days. You can set the recovery period to any value between 1 and 35 days.
You can call DescribeContinuousBackups at a maximum rate of 10 times per second.
Parameters:
-
table_name
(TableArn)
–
Name of the table for which the customer wants to check the continuous backups and point in time recovery settings.
You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
Raises:
-
InternalServerError
–
An error occurred on the server side.
-
TableNotFoundException
–
A source table with the name TableName does not currently exist within the subscriber's account or the subscriber is operating in the wrong Amazon Web Services Region.
-
UnknownServiceError
–
The service returned an error code this client does not model.
Source code in docs_src/capo_dynamodb/_services/dynamo_db.py
| def describe_continuous_backups(
self,
table_name: "capo_dynamodb.types.table_arn.TableArn",
*,
config_overrides: Optional[DynamoDBClientConfig] = None,
) -> "capo_dynamodb.types.describe_continuous_backups_output.DescribeContinuousBackupsOutput":
"""<p>Checks the status of continuous backups and point in time recovery on the specified table. Continuous backups are <code>ENABLED</code> on all tables at table creation. If point in time recovery is enabled, <code>PointInTimeRecoveryStatus</code> will be set to ENABLED.</p> <p> After continuous backups and point in time recovery are enabled, you can restore to any point in time within <code>EarliestRestorableDateTime</code> and <code>LatestRestorableDateTime</code>. </p> <p> <code>LatestRestorableDateTime</code> is typically 5 minutes before the current time. You can restore your table to any point in time in the last 35 days. You can set the recovery period to any value between 1 and 35 days. </p> <p>You can call <code>DescribeContinuousBackups</code> at a maximum rate of 10 times per second.</p>
Args:
table_name: <p>Name of the table for which the customer wants to check the continuous backups and point in time recovery settings.</p> <p>You can also provide the Amazon Resource Name (ARN) of the table in this parameter.</p>
Raises:
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.table_not_found_exception.TableNotFoundException: <p>A source table with the name <code>TableName</code> does not currently exist within the subscriber's account or the subscriber is operating in the wrong Amazon Web Services Region.</p>
capo_dynamodb.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_dynamodb.types.describe_continuous_backups_input.DescribeContinuousBackupsInput]",
) -> OperationResponse[
"capo_dynamodb.types.describe_continuous_backups_output.DescribeContinuousBackupsOutput"
]:
import capo_dynamodb._operations.dynamo_db_20120810.describe_continuous_backups
output, http_response = (
capo_dynamodb._operations.dynamo_db_20120810.describe_continuous_backups.describe_continuous_backups(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeContinuousBackups")
)
input_: capo_dynamodb.types.describe_continuous_backups_input.DescribeContinuousBackupsInput = {
"table_name": table_name
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|