Whatever message this page gives is out now! Go check it out!

RestoreTableToPointInTime

Last update:
May 18, 2026

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

Figure: RestoreTableToPointInTime output
RestoreTableToPointInTime output

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page