UpdateGlobalTable

Description

This function adds or removes replicas in a specified global table, previously created.

For more information, see UpdateGlobalTable.

Category

History

ColdFusion (2021 release): Added this function.

Syntax

serviceHandle.updateGlobalTable(requestParameters)

Parameters

See the request parameters of UpdateGlobalTable.

Example

<cfscript> 
    cred = { 
        "credentialAlias" : "myalias", 
        "vendorName" : "AWS", 
        "region" : "us-east-2", 
        "secretAccessKey" : "xxxxx", 
        "accessKeyId" : "xxxx" 
  } 
    config = { 
        "serviceName" = "DYNAMODB" 
      } 
    dynamo = getCloudService(cred, config) 
 
    globalTableName="Movies002" 
 
    // Remove replica 
    updateStruct1={ 
        "GlobalTableName": "#globalTableName#", 
        "ReplicaUpdates":[ 
            { 
                "Delete":{"RegionName":"us-east-1"} 
            } 
        ] 
    } 
    try{ 
        updateGlobalTableStruct=dynamo.updateGlobalTable(updateStruct1) 
        writeOutput("Replica removed successfully") 
        writeDump(updateGlobalTableStruct) 
    } 
    catch(any e){ 
        writeDump(e) 
    } 
</cfscript>

Output

UpdateGlobalTable output
UpdateGlobalTable output

 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