AmazonSQSClient.CreateQueue Method (CreateQueueRequest)

.NET Framework 4.5
 
 
 
Did this page help you?  Yes  No   Tell us about it...

The CreateQueue action creates a new queue, or returns the URL of an existing one. When you request CreateQueue , you provide a name for the queue. To successfully create a new queue, you must provide a name that is unique within the scope of your own queues.

You may pass one or more attributes in the request. If you do not provide a value for any attribute, the queue will have the default value for that attribute. Permitted attributes are the same that can be set using SetQueueAttributes.

If you provide the name of an existing queue, a new queue isn't created. If the values of attributes provided with the request match up with those on the existing queue, the queue URL is returned. Otherwise, a QueueNameExists error is returned.

Namespace: Amazon.SQS
Assembly: AWSSDK.dll
Version: 2.0.0.3

Syntax

C#
public virtual CreateQueueResponse CreateQueue(
         CreateQueueRequest request
)

Parameters

request
Type: Amazon.SQS.Model.CreateQueueRequest

Return Value
Type: Amazon.SQS.Model.CreateQueueResponse
The response from the CreateQueue service method, as returned by AmazonSQS.

Exceptions

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5