UpdateContinuousBackups

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>

 Adobe

Get help faster and easier

New user?

Adobe MAX 2024

Adobe MAX
The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX

The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX 2024

Adobe MAX
The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX

The Creativity Conference

Oct 14–16 Miami Beach and online