19.08.2018 Views

sqs-dg-2009-02-01

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Amazon Simple Queue Service Developer Guide<br />

Queue and Message Identifiers<br />

Queue and Message Identifiers<br />

SQS uses the following three identifiers that you need to be familiar with:<br />

• Queue URL<br />

• Message ID<br />

• Receipt handle<br />

Queue URLs<br />

When creating a new queue, you must provide a queue name that is unique within the scope of all your<br />

queues. If you create queues using both the 2008-<strong>01</strong>-<strong>01</strong> WSDL and a previous version, you still have a<br />

single namespace for all your queues. SQS assigns each queue you create an identifier called a queue<br />

URL, which includes the queue name and other components that SQS determines. Whenever you want<br />

to perform an action on a queue, you provide its queue URL.<br />

The following is the queue URL for a queue named "queue2" owned by a person with the AWS account<br />

number "123456789<strong>01</strong>2".<br />

http://<strong>sqs</strong>.us-east-1.amazonaws.com/123456789<strong>01</strong>2/queue2<br />

Important<br />

In your system, always store the entire queue URL as Amazon SQS returned it to you when you<br />

created the queue (for example,<br />

http://<strong>sqs</strong>.us-east-1.amazonaws.com/123456789<strong>01</strong>2/queue2). Don't build the queue<br />

URL from its separate components each time you need to specify the queue URL in a request<br />

because Amazon SQS could change the components that make up the queue URL.<br />

You can also get the queue URL for a queue by listing your queues. Even though you have a single<br />

namespace for all your queues, the list of queues returned depends on the WSDL you use for the request.<br />

For more information, see ListQueues.<br />

API Version <strong>2009</strong>-<strong>02</strong>-<strong>01</strong><br />

6

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!