

If you attempt to set the VisibilityTimeout to a value greater than the maximum time left, Amazon SQS returns an error. If you reach this limit, Amazon SQS returns no error messages. To request a limit increase, file a support request.įor FIFO queues, there can be a maximum of 20,000 inflight messages (received from a queue by a consumer, but not yet deleted from the queue). You can also increase the number of queues you use to process your messages. To avoid reaching the limit, you should delete messages from the queue after they're processed. If you reach this limit, Amazon SQS returns the OverLimit error message. Limits that apply to inflight messages are unrelated to the unlimited number of stored messages.įor most standard queues (depending on queue traffic and message backlog), there can be a maximum of approximately 120,000 inflight messages (received from a queue by a consumer, but not yet deleted from the queue). There is a limit to the number of inflight messages. A message is considered to be in flight after it is received from a queue by a consumer, but not yet deleted from the queue (that is, between states 2 and 3). There is no limit to the number of stored messages. If you try to extend the visibility timeout beyond the maximum, your request is rejected.Īn Amazon SQS message has three basic states:Ī message is considered to be stored after it is sent to a queue by a producer, but not yet received from the queue by a consumer (that is, between states 1 and 2).

You can continue to call ChangeMessageVisibility to extend the visibility timeout to the maximum allowed time. After 3 minutes, you call ChangeMessageVisibility with a timeout of 10 minutes. For more information, see Visibility Timeout in the Amazon Simple Queue Service Developer Guide.įor example, you have a message with a visibility timeout of 5 minutes. The default visibility timeout for a message is 30 seconds. source fn change_message_visibility(Ĭhanges the visibility timeout of a specified message in a queue to a new value. For more information, see Grant cross-account permissions to a role and a user name in the Amazon Simple Queue Service Developer Guide. For example, a parameter list with two elements looks like this:Ĭross-account permissions don't apply to this action. Values of n are integers starting from 1. These lists are specified using the param.n notation. To remove the ability to change queue permissions, you must deny permission to the AddPermission, RemovePermission, and SetQueueAttributes actions in your IAM policy. For more information, see Using Custom Policies with the Amazon SQS Access Policy Language in the Amazon Simple Queue Service Developer Guide.Īn Amazon SQS policy can have a maximum of 7 actions. You can use SetQueueAttributes to upload your policy. For more information about these permissions, see Allow Developers to Write Messages to a Shared Queue in the Amazon Simple Queue Service Developer Guide.ĪddPermission generates a policy for you. Only you, the owner of the queue, can grant or deny permissions to the queue.
#AWS SQS QUEUE NAME LIMITS FULL#
When you create a queue, you have full control access rights for the queue.

For example, a parameter list with two elements looks like this:Ĭross-account permissions don't apply to this action.Adds a permission to a queue for a specific principal.

If the queue name, attribute names, or attribute values don't match an existing queue, CreateQueue If you provide the name of an existing queue along with the exact names and values of all the queue's attributes,ĬreateQueue returns the queue URL for the existing queue. To get the queue URL, use the GetQueueUrl action. Related to queues and is unique within the scope of your queues. To successfully create a new queue, you must provide a queue name that adheres to the limits If you delete a queue, you must wait at least 60 seconds before creating a queue with the same name. If you don't provide a value for an attribute, the queue is created with the default value for the attribute. For more information, see Moving From a Standard Queue to a FIFO Queue in the Amazon Simple Queue Service Developer Guide. You must either create a new FIFO queue for your application or delete your existing standard queue and You can't change the queue type after you create it and you can't convert an existing standard queue into a FIFO If you don't specify the FifoQueue attribute, Amazon SQS creates a standard queue. You can pass one or more attributes in the request.
