Last updated on
16 May 2021
Description
This function restores a table to a specified point in time within two date-time objects.
For more information, see RestoreTableToPointInTime.
Category
History
ColdFusion (2021 release): Added this function.
Syntax
serviceHandle.restoreTableToPointInTime(requestParameters)
Parameters
See request parameters of RestoreTableToPointInTime.
Example
<cfscript> cred = { "credentialAlias" : "myalias", "vendorName" : "AWS", "region" : "us-east-2", "secretAccessKey" : "xxxxx", "accessKeyId" : "xxxx" } config = { "serviceName" = "DYNAMODB" } dynamo = getCloudService(cred, config) sourceTableName = "NewProductCatalog"; newTableName = "NewProductCatalogRestoredInTime"; enabledPointInTimeRecoveryStruct = { "PointInTimeRecoverySpecification": { "PointInTimeRecoveryEnabled": true }, "TableName": "#sourceTableName#" } restoreTableToPointInTimeStruct = { "SourceTableName": "#sourceTableName#", "TargetTableName": "#newTableName#", "UseLatestRestorableTime": true } dynamo.UpdateContinuousBackups(enabledPointInTimeRecoveryStruct); restoreTableResponse=dynamo.RestoreTableToPointInTime(restoreTableToPointInTimeStruct); writeDump(restoreTableResponse) </cfscript>
Output