POST on QueueService

The POST action creates a new queue. You must provide a queue name that is unique within the scope of the queues you own. The queue is assigned a queue URL; you must use this URL when performing actions on the queue.

When you create a queue, if a queue with the same name already exists, POST on QueueService returns the queue URL with an error indicating that the queue already exists.

When you create a queue, FullControl access rights are granted to you for the queue. Only you (as owner of the queue), or a grantee assigned FullControl rights to the queue, can grant or deny access rights to the queue and its messages.

Note:

You must be signed up for Amazon SQS for the request to succeed, as SQS is not a free service.

The default value for VisibilityTimeout (30 seconds) is also set when a queue is created. See SetVisibilityTimeout (Query) for information about how visibility timeout works.

POST on QueueService requests are validated on the following:

Returns Success and a queue URL if successful or an error response if unsuccessful.

The following example POST request on the QueueService endpoint creates a queue named queue2.

See CreateQueue (Query) for sample response information.

ErrorDescription
InvalidParameterValueQueueName did not pass validation.