Last updated on
Apr 27, 2021
Description
This function enables or disables the point in time recovery for a specified table.
For more information, see UpdateContinuousBackups.
Category
History
ColdFusion (2021 release): Added this function.
Syntax
serviceHandle.updateContinuousBackups(requestParameters)
Parameters
See request parameters of UpdateContinuousBackups.
Example
<cfscript> cred = { "credentialAlias" : "myalias", "vendorName" : "AWS", "region" : "us-east-2", "secretAccessKey" : "xxxxx", "accessKeyId" : "xxxx" } config = { "serviceName" = "DYNAMODB" } dynamo = getCloudService(cred, config) tableName="YearlyProductCatalog" updateStruct={ "PointInTimeRecoverySpecification": { "PointInTimeRecoveryEnabled": true }, "TableName": "#tableName#" } // updateResponse=dynamo.updateContinuousBackups(updateStruct) // writeDump(updateResponse) try{ updateResponse=dynamo.updateContinuousBackups(updateStruct) if (updateResponse.ContinuousBackupsDescription.ContinuousBackupsStatus=="ENABLED") { writeOutput("Continuous backups enabled") } else{ writeOutput("Continuous backups failed") } } catch(any e){ writeDump(e) } </cfscript>