DynamoDBClient.restore_table_from_backup
rboto-dynamodb==0.4.0 · Service index · Types
Model summary (excerpt): Creates a new table from an existing backup. Any number of users can execute up to 50 concurrent restores (any type of restore) in a given account. You can call RestoreTableFromBackup at a maximum rate of 10 times per second. You must manually set up the following on the restored table: Auto scaling policies IAM policies Amazon CloudWatch metrics and alarms Tags Stream settings Time to Live...
Install and imports
from rboto import DynamoDBClient
from collections.abc import Sequence
from rboto_dynamodb.types import (
BillingMode,
GlobalSecondaryIndex,
LocalSecondaryIndex,
OnDemandThroughput,
ProvisionedThroughput,
RestoreTableFromBackupOutput,
SSESpecification,
VectorIndex,
)
Signature
async def restore_table_from_backup(
*,
target_table_name: str,
backup_arn: str,
billing_mode_override: BillingMode | None = None,
global_secondary_index_override: Sequence[GlobalSecondaryIndex] | None = None,
local_secondary_index_override: Sequence[LocalSecondaryIndex] | None = None,
provisioned_throughput_override: ProvisionedThroughput | None = None,
on_demand_throughput_override: OnDemandThroughput | None = None,
sse_specification_override: SSESpecification | None = None,
vector_index_override: Sequence[VectorIndex] | None = None,
) -> RestoreTableFromBackupOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
target_table_name |
Yes | The name of the new table to which the backup must be restored. |
backup_arn |
Yes | The Amazon Resource Name (ARN) associated with the backup. |
billing_mode_override |
No | The billing mode of the restored table. |
global_secondary_index_override |
No | List of global secondary indexes for the restored table. The indexes provided should match existing secondary indexes. You can choose to exclude some or all of the indexes at the time of restore. |
local_secondary_index_override |
No | List of local secondary indexes for the restored table. The indexes provided should match existing secondary indexes. You can choose to exclude some or all of the indexes at the time of restore. |
provisioned_throughput_override |
No | Provisioned throughput settings for the restored table. |
on_demand_throughput_override |
No | |
sse_specification_override |
No | The new server-side encryption settings for the restored table. |
vector_index_override |
No | The vector indexes for the restored table. If not specified, all vector indexes from the backup are restored. The indexes provided must match existing vector indexes from the backup. You can choose to exclude some or all of the vector indexes at the time of restore. |
Output
RestoreTableFromBackupOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
table_description |
TableDescriptionOutput | None |
Always present | TableDescriptionOutput |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
BillingMode, GlobalSecondaryIndex, LocalSecondaryIndex, OnDemandThroughput, ProvisionedThroughput, RestoreTableFromBackupOutput, SSESpecification, VectorIndex
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_dynamodb.exceptions:
BackupInUseError, BackupNotFoundError, InternalServerError, InvalidEndpointError, LimitExceededError, TableAlreadyExistsError, TableInUseError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.