UpdateGlobalTableSettings

Description

This function updates settings for a global table, already created.

For more information, see UpdateGlobalTableSettings.

Category

History

ColdFusion (2021 release): Added this function.

Syntax

serviceHandle.updateGlobalTableSettings(requestParameters)

Parameters

See request parameters of UpdateGlobalTableSettings.

Example

<cfscript> 
    cred = { 
        "credentialAlias" : "myalias", 
        "vendorName" : "AWS", 
        "region" : "us-east-2", 
        "secretAccessKey" : "xxxxx", 
        "accessKeyId" : "xxxx" 
    } 
    config = { 
        "serviceName" = "DYNAMODB" 
      } 
    dynamo = getCloudService(cred, config) 
     
    globalTableName="Movies002" 
    updateGlobalSettingsStruct={ 
        "GlobalTableName": "#globalTableName#", 
        "GlobalTableBillingMode": "PROVISIONED", 
        "GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate": { 
            "AutoScalingDisabled": true 
        }, 
        "GlobalTableProvisionedWriteCapacityUnits": 20, 
        "ReplicaSettingsUpdate": [ 
            {  
                "RegionName": "us-east-2", 
                "ReplicaProvisionedReadCapacityUnits": 20 
            } 
        ] 
    } 
 
    try{ 
        updateGlobalTableResponse=dynamo.updateGlobalTableSettings(updateGlobalSettingsStruct) 
        writeOutput("Settings updated successfully") 
        writeDump(updateGlobalTableResponse) 
    } 
    catch (any e){ 
        writeDump(e) 
    } 
</cfscript>

Output

UpdateGlobalTableSettings output
UpdateGlobalTableSettings 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 2024

Adobe MAX

The Creativity Conference

Oct 14–16 Miami Beach and online