Amazon Simple Queue Service
Developer Guide

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.

Tutorial: Listing All Amazon SQS Queues in a Region

When you create a queue, it can take a short time for the queue to propagate throughout Amazon SQS. In this tutorial you learn how to confirm your queue's existence by listing all queues in the current region.

AWS Management Console

  1. Sign in to the Amazon SQS console.

  2. Your queues in the current region are listed.

    The Queue Type column helps you distinguish standard queues from FIFO queues at a glance. For a FIFO queue, the Content-Based Deduplication column displays whether you have enabled exactly-once processing.

    Your queue's Name, URL, and ARN are displayed on the Details tab.

AWS SDK for Java

Before you begin working with the example code, specify your AWS credentials. For more information, see Set up AWS Credentials and Region for Development in the AWS SDK for Java Developer Guide.


This action is identical for standard and FIFO queues.

  1. Copy the standard queue example program or the FIFO queue example program.

    The following section of the code list all queues in the current region:

    // List queues System.out.println("Listing all queues in your account.\n"); for (final String queueUrl : sqs.listQueues().getQueueUrls()) { System.out.println(" QueueUrl: " + queueUrl); } System.out.println();
  2. Compile and run the example.

    All queues in the current region created using API version 2012-11-05 are listed. The response include the following items:

    • The unique queue URL.

    • The request ID that Amazon SQS assigned to your request.