Last updated on
Apr 27, 2021
Description
This function creates a backup of an existing table.
Each time you create a backup, the entire table data is backed up. You can back up a table as many times you can.
For more information, see CreateBackup.
Category
History
ColdFusion (2021 release): Added this function.
Syntax
serviceHandle.createBackup(requestParameters)
Parameters
See request parameters of CreateBackup.
Example
<cfscript> cred = { "credentialAlias" : "myalias", "vendorName" : "AWS", "region" : "us-east-2", "secretAccessKey" : "xxxxx", "accessKeyId" : "xxxx" } conf={ "serviceName"="DYNAMODB" } dynamo=getCloudService(cred, conf) // create a backup tableName="YearlyProductCatalog" createBackupStruct={ "BackupName": "prodBackup", "TableName": "#tableName#" } try{ createBackupResponse=dynamo.createBackup(createBackupStruct) writeOutput("Backup created successfully") writeDump(createBackupResponse) } catch(any e){ writeDump(e) } </cfscript>
Output