aws dynamodb restore-table-to-point-in-time

Restores the specified table to the specified point in time within EarliestRestorableDateTime and LatestRestorableDateTime. You can restore your table to any point in time during the last 35 days. Any number of users can execute up to 4 concurrent restores (any type of restore) in a given account. When you restore using point in time recovery, DynamoDB restores your table data to the state based on the selected date and time (day:hour:minute:second) to a new table. Along with data, the following are also included on the new restored table using point in time recovery: Global secondary indexes (GSIs) Local secondary indexes (LSIs) Provisioned read and write capacity Encryption settings All these settings come from the current settings of the source table at the time of restore. 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 (TTL) settings Point in time recovery settings

Options

NameDescription
--source-table-arn <string>The DynamoDB table that will be restored. This value is an Amazon Resource Name (ARN)
--source-table-name <string>Name of the source table that is being restored
--target-table-name <string>The name of the new table to which it must be restored to
--use-latest-restorable-timeRestore the table to the latest possible time. LatestRestorableDateTime is typically 5 minutes before the current time
--no-use-latest-restorable-timeRestore the table to the latest possible time. LatestRestorableDateTime is typically 5 minutes before the current time
--restore-date-time <timestamp>Time in the past to restore the table to
--billing-mode-override <string>The billing mode of the restored table
--global-secondary-index-override <list>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 <list>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 <structure>Provisioned throughput settings for the restored table
--sse-specification-override <structure>The new server-side encryption settings for the restored table
--cli-input-json <string>Performs service operation based on the JSON string provided. The JSON string follows the format provided by ``--generate-cli-skeleton``. If other arguments are provided on the command line, the CLI values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally
--generate-cli-skeleton <string>Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value ``input``, prints a sample input JSON that can be used as an argument for ``--cli-input-json``. If provided with the value ``output``, it validates the command inputs and returns a sample output JSON for that command