Share this page

# LrSqsClient.listDeadLetterSourceQueues

Lists the queues that have the LrSqsClient's current queue set as their dead-letter queue.

`public static LrSqsQueuesList listDeadLetterSourceQueues()`

`public static LrSqsQueuesList listDeadLetterSourceQueues(int maxResults)`

`public static LrSqsQueuesList listDeadLetterSourceQueues(int maxResults, String nextToken)`

`public static LrSqsQueuesList listDeadLetterSourceQueues(String nextToken)`

## Arguments

Name | Description
--- | ---
maxResults | The maximum number of queues to list.
nextToken | The pagination token.

## Return values

This API returns an LrSqsQueuesList object.

## Example

Copy code

    public void TestListDeadLetter()
        {
            LrSqsClient.initClient(region, "https://sqs.eu-central-1.amazonaws.com/123456789/jsmith-sqs0-dead-letter");

            LrSqsQueuesList response = LrSqsClient.listDeadLetterSourceQueues();
            for (String queueUrl : response.queueUrls())
            {
                lr.log_message("DLQ Source: " + queueUrl);
            }

            response = LrSqsClient.listDeadLetterSourceQueues(10, response.nextToken());
            response = LrSqsClient.listDeadLetterSourceQueues(response.nextToken());

            LrSqsClient.closeClient();
      }

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