Posted On: Jun 23, 2020
Amazon SQS makes it easier to manage lists of queues by allowing callers to iterate through the results of ListQueues and ListDeadLetterSourceQueues APIs using a multi-page format. You can check the status of your request and receive the results in multiple pages by setting the MaxResults parameter to a value between 1 and 1000. You can receive up to a maximum of 1000 results in a single page. If there are more than 1000 results to display, you will receive a Next Token. Use the Next Token to receive the next set of results until the Next Token is null. This enables you to get all the results from your list request in multiple pages. We recommend you to use paginated lists instead of getting all the results in a single request. Furthermore, you can continue filtering your results of list requests using QueueNamePrefix.
Multi-page support for ListQueues API and ListDeadLetterSourceQueues API requests is now available in all commercial Amazon Web Services Regions where Amazon SQS is available, including Amazon Web Services China (Beijing) Region, operated by Sinnet and Amazon Web Services China (Ningxia) Region, operated by NWCD. You can learn more about this feature in the documentation here.