Last updated on
Apr 27, 2021
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