Share this page

# 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();
      }

Tips to improve your search results... VuGen Function Reference Version 26.1 Function Reference 26.1 All View Local Help Center View Online Help Center Version: