ListTagsOfResource

Description

This function lists all tags on an Amazon DynamoDB resource. 

For more information, see ListTagsOfResource.

Category

History

ColdFusion (2021 release): Added this function..

Syntax

serviceHandle.listTagsOfResource(requestParameters)

Parameters

See request parameters of ListTagsOfResource.

Example

<cfscript> 
  cred = { 
    "credentialAlias" : "myalias", 
    "vendorName" : "AWS", 
    "region" : "us-east-2", 
    "secretAccessKey" : "xxxxx", 
    "accessKeyId" : "xxxx" 
  } 
  config = { 
    "serviceName" = "DYNAMODB" 
  } 
  dynamo = getCloudService(cred, config) 
 
  // get ARN of a previously created table 
  tableName="YearlyProductCatalog" 
  // Get table ARN 
  describeStruct={ 
    "TableName":"#tableName#" 
  } 
  describeStructResponse=dynamo.describeTable(describeStruct) 
  ARN=describeStructResponse.Table.TableArn 
 
  // list tags of the ARN 
  listTageStruct={ 
    "ResourceArn":ARN 
  } 
  listTagsResourceResponse=dynamo.listTagsOfResource(listTageStruct) 
  writeOutput("The list of tags are as follows:") 
  writeDump(listTagsResourceResponse.Tags) 
</cfscript> 

Output

ListTagsOfResource output
ListTagsOfResource output

 Adobe

Dapatkan bantuan lebih cepat dan lebih mudah

Pengguna baru?

Adobe MAX 2024

Adobe MAX
Konferensi Kreativitas

14–16 Oktober Miami Beach dan online

Adobe MAX

Konferensi Kreativitas

14–16 Oktober Miami Beach dan online

Adobe MAX 2024

Adobe MAX
Konferensi Kreativitas

14–16 Oktober Miami Beach dan online

Adobe MAX

Konferensi Kreativitas

14–16 Oktober Miami Beach dan online