LrSqsClient.listQueueTags

Retrieves all tags for the LrSqsClient's current queue.

public static Map<String, String> listQueueTags()

Return values

This function returns a map with strings as both keys and values. For details about the SQS tags, see the Amazon SQS documentation.

Example

Copy code
public void tags(){
        LrSqsClient.initClient(region, fifoQueueUrl);
        Map<String, String> allTags = LrSqsClient.listQueueTags();
        
        for (Map.Entry<String, String> entry : allTags.entrySet()){
            lr.output_message("key: " + entry.getKey() + " value: " + entry.getValue());
        }
        
        LrSqsClient.tagQueue(new HashMap()
                {{
                      put("tag1", "tagvalue1");
                 }});
        
        allTags = LrSqsClient.listQueueTags();
        
        for (Map.Entry<String, String> entry : allTags.entrySet()){
            lr.output_message("key: " + entry.getKey() + " value: " + entry.getValue());
        }
        
        LrSqsClient.untagQueue(new ArrayList()
                {{
                      add("tag1");
                 }});
        
        allTags = LrSqsClient.listQueueTags();
        for (Map.Entry<String, String> entry : allTags.entrySet()){
            lr.output_message("key: " + entry.getKey() + " value: " + entry.getValue());
        }
        
        LrSqsClient.closeClient();
  }