Last updated on
Apr 27, 2021
Description
This function displays region-specific settings for a global table, already created.
For more information, see DescribeGlobalTableSettings.
Category
History
ColdFusion (2021 release): Added this function.
Syntax
serviceHandle.describeGlovalTableSettings(requestParameters)
serviceHandle.describeGlovalTableSettings(requestParameters)
serviceHandle.describeGlovalTableSettings(requestParameters)
Parameters
See request parameters for DescribeGlobalTableSettings.
Example
<cfscript>
cred = {
"credentialAlias" : "myalias",
"vendorName" : "AWS",
"region" : "us-east-2",
"secretAccessKey" : "xxxxx",
"accessKeyId" : "xxxx"
}
config = {
"serviceName" = "DYNAMODB"
}
dynamo = getCloudService(cred, config)
// get global table settings
describeGlobalTableSettingsStruct={
"GlobalTableName": "Movies002"
}
settingsResponse=dynamo.describeGlobalTableSettings(describeGlobalTableSettingsStruct)
writeOutput("Replica settings:")
writeDump(settingsResponse.ReplicaSettings)
</cfscript>
<cfscript>
cred = {
"credentialAlias" : "myalias",
"vendorName" : "AWS",
"region" : "us-east-2",
"secretAccessKey" : "xxxxx",
"accessKeyId" : "xxxx"
}
config = {
"serviceName" = "DYNAMODB"
}
dynamo = getCloudService(cred, config)
// get global table settings
describeGlobalTableSettingsStruct={
"GlobalTableName": "Movies002"
}
settingsResponse=dynamo.describeGlobalTableSettings(describeGlobalTableSettingsStruct)
writeOutput("Replica settings:")
writeDump(settingsResponse.ReplicaSettings)
</cfscript>
<cfscript> cred = { "credentialAlias" : "myalias", "vendorName" : "AWS", "region" : "us-east-2", "secretAccessKey" : "xxxxx", "accessKeyId" : "xxxx" } config = { "serviceName" = "DYNAMODB" } dynamo = getCloudService(cred, config) // get global table settings describeGlobalTableSettingsStruct={ "GlobalTableName": "Movies002" } settingsResponse=dynamo.describeGlobalTableSettings(describeGlobalTableSettingsStruct) writeOutput("Replica settings:") writeDump(settingsResponse.ReplicaSettings) </cfscript>
Output