About the Queue URL

AWS assigns each queue a unique identifier called a queue URL. When you create a queue, AWS returns the queue URL to you. Whenever you want to perform an action on a queue, you provide its queue URL. A queue's URL includes the name you specified when you created the queue (which must be unique within the scope of all your queues). The queue URL also includes other components, which are determined by AWS.

A queue URL for a queue named "queue2" looks similar to this:

http://queue.amazonaws.com/A23E9WXPHGOG29/queue2
[Important]Important

In your system, always store the entire queue URL as it was returned to you by AWS when you created the queue. Don't build the queue URL from its separate components each time you need to specify the queue URL in a request because AWS could change the components that make up the queue URL.

You can also get the queue URL for a queue by listing your queues. See ListQueues or GET on QueueService.

[Important]Important

When specifying a queue when using the REST API, you omit http://queue.amazon.aws.com from the queue URL and provide only what's left (/A23E9WXPHGOG29/queue2 in the preceding example). For an example, see the example request in PUT on MessageQueue).