Skip to content

DynamoDBClient.restore_table_to_point_in_time

rboto-dynamodb==0.4.0 · Service index · Types

Model summary (excerpt): Restores the specified table to the specified point in time within EarliestRestorableDateTime and LatestRestorableDateTime . 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. Any number of users can execute up to 50 concurrent restores (any type of restore) in a given account. When you restore using point in...

Install and imports

python -m pip install "rboto[dynamodb]==0.4.0"
from rboto import DynamoDBClient
from collections.abc import Sequence
from rboto_dynamodb.types import (
    BillingMode,
    GlobalSecondaryIndex,
    LocalSecondaryIndex,
    OnDemandThroughput,
    ProvisionedThroughput,
    RestoreTableToPointInTimeOutput,
    SSESpecification,
    VectorIndex,
)

Signature

async def restore_table_to_point_in_time(
    *,
    target_table_name: str,
    source_table_arn: str | None = None,
    source_table_name: str | None = None,
    use_latest_restorable_time: bool | None = None,
    restore_date_time: str | None = None,
    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,
) -> RestoreTableToPointInTimeOutput: ...

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 it must be restored to.
source_table_arn No The DynamoDB table that will be restored. This value is an Amazon Resource Name (ARN).
source_table_name No Name of the source table that is being restored.
use_latest_restorable_time No Restore the table to the latest possible time. LatestRestorableDateTime is typically 5 minutes before the current time.
restore_date_time No Time in the past to restore the table to.
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. The WarmThroughput setting is not supported on global secondary indexes when you use RestoreTableToPointInTime . Although WarmThroughput appears in the shared index definition, including it in a...
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 source table are restored. The indexes provided must match existing vector indexes from the source table. You can choose to exclude some or all of the vector indexes at the time of restore.

Output

RestoreTableToPointInTimeOutput.

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.

BillingMode, GlobalSecondaryIndex, LocalSecondaryIndex, OnDemandThroughput, ProvisionedThroughput, RestoreTableToPointInTimeOutput, 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:

InternalServerError, InvalidEndpointError, InvalidRestoreTimeError, LimitExceededError, PointInTimeRecoveryUnavailableError, TableAlreadyExistsError, TableInUseError, TableNotFoundError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model