Whatever message this page gives is out now! Go check it out!
untagQueue(queueUrl, map)queueObject.tag(queueUrl)Parameter | Description | Type | Required |
queueURL | The url of the queue which is to be untagged. | String | Yes |
map | The tags to be removed from the specified queue. | Struct | Yes |
<cfscript>
cred={
"credentialAlias" : "alias",
"vendorName" : "AWS",
"region" : "us-east-2",
"secretAccessKey" : "secret access",
"accessKeyId" : "access key"
}
conf={
"serviceName"="SQS"
}
sqs=cloudService(cred, conf)
// Step 1: create a queue
sqs.createQueue("myTagQueue")
// get the queue url
myQueueUrl=sqs.getQueueUrl("myTagQueue")
writeOutput(myQueueUrl)
// Step 2: add tags to the queue
tagMetadata={
"tags"={
"Product":"ColdFusion",
"Version":"2020",
"Build":"300300",
"Date":"2020/02/28",
"Location":"Adobe"
}
}
try{
sqs.tagQueue(myQueueUrl,tagMetadata)
writeOutput("Tags added successfully")
}
catch(any e){
writeDump(e)
}
// Step 3: remove tags from the queue
tagsToBeRemoved = {
"tagKeys"=["Product","Version"]
}
try{
untagResponse=sqs.untagQueue(myQueueUrl,tagsToBeRemoved)
writeOutput("Tags removed successfully")
}
catch (any e){
writeDump(e)
}
// Step 4: list the remaining tags
tagList=sqs.listQueueTags(myQueueUrl)
writeDump(tagList.tags)
</cfscript>