openapi: 3.0.0 info: version: '2012-11-05' x-release: v4 title: Amazon Simple Queue Service description: '

Welcome to the Amazon Simple Queue Service API Reference.

Amazon Simple Queue Service (Amazon SQS) is a reliable, highly-scalable hosted queue for storing messages as they travel between applications or microservices. Amazon SQS moves data between distributed application components and helps you decouple these components.

You can use AWS SDKs to access Amazon SQS using your favorite programming language. The SDKs perform tasks such as the following automatically:

Additional Information

' x-logo: url: 'https://twitter.com/awscloud/profile_image?size=original' backgroundColor: '#FFFFFF' termsOfService: 'https://aws.amazon.com/service-terms/' contact: name: Mike Ralphson email: mike.ralphson@gmail.com url: 'https://github.com/mermade/aws2openapi' x-twitter: PermittedSoc license: name: Apache 2.0 License url: 'http://www.apache.org/licenses/' x-providerName: amazonaws.com x-serviceName: sqs x-origin: - contentType: application/json url: 'https://raw.githubusercontent.com/aws/aws-sdk-js/master/apis/sqs-2012-11-05.normal.json' converter: url: 'https://github.com/mermade/aws2openapi' version: 1.0.0 x-apisguru-driver: external x-apiClientRegistration: url: 'https://portal.aws.amazon.com/gp/aws/developer/registration/index.html?nc2=h_ct' x-apisguru-categories: - cloud x-preferred: true externalDocs: description: Amazon Web Services documentation url: 'https://docs.aws.amazon.com/sqs/' servers: - url: 'http://sqs.{region}.amazonaws.com' variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-south-1 - sa-east-1 default: us-east-1 description: The Amazon SQS multi-region endpoint - url: 'https://sqs.{region}.amazonaws.com' variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-south-1 - sa-east-1 default: us-east-1 description: The Amazon SQS multi-region endpoint - url: 'http://sqs.{region}.amazonaws.com.cn' variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The Amazon SQS endpoint for China (Beijing) and China (Ningxia) - url: 'https://sqs.{region}.amazonaws.com.cn' variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The Amazon SQS endpoint for China (Beijing) and China (Ningxia) x-hasEquivalentPaths: true paths: '/{AccountNumber}/{QueueName}/#Action=AddPermission': get: x-aws-operation-name: AddPermission operationId: GET AddPermission description: '

Adds a permission to a queue for a specific principal. This allows sharing access to the queue.

When you create a queue, you have full control access rights for the queue. Only you, the owner of the queue, can grant or deny permissions to the queue. For more information about these permissions, see Allow Developers to Write Messages to a Shared Queue in the Amazon Simple Queue Service Developer Guide.

Some actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

&Attribute.1=first

&Attribute.2=second

Cross-account permissions don''t apply to this action. For more information, see Grant Cross-Account Permissions to a Role and a User Name in the Amazon Simple Queue Service Developer Guide.

' responses: '200': description: Success '480': description: OverLimit content: text/xml: schema: $ref: '#/components/schemas/OverLimit' parameters: - name: Label in: query required: true description: 'The unique identification of the permission you''re setting (for example, AliceSendMessage). Maximum 80 characters. Allowed characters include alphanumeric characters, hyphens (-), and underscores (_).' schema: type: string - name: AWSAccountIds in: query required: true description: 'The AWS account number of the principal who is given permission. The principal must have an AWS account, but does not need to be signed up for Amazon SQS. For information about locating the AWS account identification, see Your AWS Identifiers in the Amazon Simple Queue Service Developer Guide.' schema: type: array items: $ref: '#/components/schemas/String' xml: wrapped: false - name: Actions in: query required: true description: '

The action the client wants to allow for the specified principal. Valid values: the name of any action or *.

For more information about these actions, see Overview of Managing Access Permissions to Your Amazon Simple Queue Service Resource in the Amazon Simple Queue Service Developer Guide.

Specifying SendMessage, DeleteMessage, or ChangeMessageVisibility for ActionName.n also grants permissions for the corresponding batch versions of those actions: SendMessageBatch, DeleteMessageBatch, and ChangeMessageVisibilityBatch.

' schema: type: array items: $ref: '#/components/schemas/String' xml: wrapped: false - in: path name: AccountNumber required: true description: The AWS account number schema: type: integer - in: path name: QueueName required: true description: The name of the queue schema: type: string - name: Action in: query required: true schema: type: string enum: - AddPermission - name: Version in: query required: true schema: type: string enum: - '2012-11-05' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' '/#Action=AddPermission': post: x-aws-operation-name: AddPermission operationId: POST AddPermission description: '

Adds a permission to a queue for a specific principal. This allows sharing access to the queue.

When you create a queue, you have full control access rights for the queue. Only you, the owner of the queue, can grant or deny permissions to the queue. For more information about these permissions, see Allow Developers to Write Messages to a Shared Queue in the Amazon Simple Queue Service Developer Guide.

Some actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

&Attribute.1=first

&Attribute.2=second

Cross-account permissions don''t apply to this action. For more information, see Grant Cross-Account Permissions to a Role and a User Name in the Amazon Simple Queue Service Developer Guide.

' responses: '200': description: Success '480': description: OverLimit content: text/xml: schema: $ref: '#/components/schemas/OverLimit' requestBody: content: text/xml: schema: $ref: '#/components/schemas/AddPermissionRequest' parameters: - name: Action in: query required: true schema: type: string enum: - AddPermission - name: Version in: query required: true schema: type: string enum: - '2012-11-05' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' '/{AccountNumber}/{QueueName}/#Action=ChangeMessageVisibility': get: x-aws-operation-name: ChangeMessageVisibility operationId: GET ChangeMessageVisibility description: '

Changes the visibility timeout of a specified message in a queue to a new value. The default visibility timeout for a message is 30 seconds. The minimum is 0 seconds. The maximum is 12 hours. For more information, see Visibility Timeout in the Amazon Simple Queue Service Developer Guide.

For example, you have a message with a visibility timeout of 5 minutes. After 3 minutes, you call ChangeMessageVisibility with a timeout of 10 minutes. You can continue to call ChangeMessageVisibility to extend the visibility timeout to the maximum allowed time. If you try to extend the visibility timeout beyond the maximum, your request is rejected.

An Amazon SQS message has three basic states:

  1. Sent to a queue by a producer.

  2. Received from the queue by a consumer.

  3. Deleted from the queue.

A 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). There is no limit to the number of stored 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 a limit to the number of inflight messages.

Limits that apply to inflight messages are unrelated to the unlimited number of stored messages.

For 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). If you reach this limit, Amazon SQS returns the OverLimit error message. To avoid reaching the limit, you should delete messages from the queue after they''re processed. You can also increase the number of queues you use to process your messages. To request a limit increase, file a support request.

For 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). If you reach this limit, Amazon SQS returns no error messages.

If you attempt to set the VisibilityTimeout to a value greater than the maximum time left, Amazon SQS returns an error. Amazon SQS doesn''t automatically recalculate and increase the timeout to the maximum remaining time.

Unlike with a queue, when you change the visibility timeout for a specific message the timeout value is applied immediately but isn''t saved in memory for that message. If you don''t delete a message after it is received, the visibility timeout for the message reverts to the original timeout value (not to the value you set using the ChangeMessageVisibility action) the next time the message is received.

' responses: '200': description: Success '480': description: MessageNotInflight content: text/xml: schema: $ref: '#/components/schemas/MessageNotInflight' '481': description: ReceiptHandleIsInvalid content: text/xml: schema: $ref: '#/components/schemas/ReceiptHandleIsInvalid' parameters: - name: ReceiptHandle in: query required: true description: The receipt handle associated with the message whose visibility timeout is changed. This parameter is returned by the ReceiveMessage action. schema: type: string - name: VisibilityTimeout in: query required: true description: 'The new value for the message''s visibility timeout (in seconds). Values values: 0 to 43200. Maximum: 12 hours.' schema: type: integer - in: path name: AccountNumber required: true description: The AWS account number schema: type: integer - in: path name: QueueName required: true description: The name of the queue schema: type: string - name: Action in: query required: true schema: type: string enum: - ChangeMessageVisibility - name: Version in: query required: true schema: type: string enum: - '2012-11-05' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' '/#Action=ChangeMessageVisibility': post: x-aws-operation-name: ChangeMessageVisibility operationId: POST ChangeMessageVisibility description: '

Changes the visibility timeout of a specified message in a queue to a new value. The default visibility timeout for a message is 30 seconds. The minimum is 0 seconds. The maximum is 12 hours. For more information, see Visibility Timeout in the Amazon Simple Queue Service Developer Guide.

For example, you have a message with a visibility timeout of 5 minutes. After 3 minutes, you call ChangeMessageVisibility with a timeout of 10 minutes. You can continue to call ChangeMessageVisibility to extend the visibility timeout to the maximum allowed time. If you try to extend the visibility timeout beyond the maximum, your request is rejected.

An Amazon SQS message has three basic states:

  1. Sent to a queue by a producer.

  2. Received from the queue by a consumer.

  3. Deleted from the queue.

A 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). There is no limit to the number of stored 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 a limit to the number of inflight messages.

Limits that apply to inflight messages are unrelated to the unlimited number of stored messages.

For 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). If you reach this limit, Amazon SQS returns the OverLimit error message. To avoid reaching the limit, you should delete messages from the queue after they''re processed. You can also increase the number of queues you use to process your messages. To request a limit increase, file a support request.

For 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). If you reach this limit, Amazon SQS returns no error messages.

If you attempt to set the VisibilityTimeout to a value greater than the maximum time left, Amazon SQS returns an error. Amazon SQS doesn''t automatically recalculate and increase the timeout to the maximum remaining time.

Unlike with a queue, when you change the visibility timeout for a specific message the timeout value is applied immediately but isn''t saved in memory for that message. If you don''t delete a message after it is received, the visibility timeout for the message reverts to the original timeout value (not to the value you set using the ChangeMessageVisibility action) the next time the message is received.

' responses: '200': description: Success '480': description: MessageNotInflight content: text/xml: schema: $ref: '#/components/schemas/MessageNotInflight' '481': description: ReceiptHandleIsInvalid content: text/xml: schema: $ref: '#/components/schemas/ReceiptHandleIsInvalid' requestBody: content: text/xml: schema: $ref: '#/components/schemas/ChangeMessageVisibilityRequest' parameters: - name: Action in: query required: true schema: type: string enum: - ChangeMessageVisibility - name: Version in: query required: true schema: type: string enum: - '2012-11-05' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' '/{AccountNumber}/{QueueName}/#Action=ChangeMessageVisibilityBatch': get: x-aws-operation-name: ChangeMessageVisibilityBatch operationId: GET ChangeMessageVisibilityBatch description: '

Changes the visibility timeout of multiple messages. This is a batch version of ChangeMessageVisibility. The result of the action on each message is reported individually in the response. You can send up to 10 ChangeMessageVisibility requests with each ChangeMessageVisibilityBatch action.

Because the batch request can result in a combination of successful and unsuccessful actions, you should check for batch errors even when the call returns an HTTP status code of 200.

Some actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

&Attribute.1=first

&Attribute.2=second

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/ChangeMessageVisibilityBatchResult' '480': description: TooManyEntriesInBatchRequest content: text/xml: schema: $ref: '#/components/schemas/TooManyEntriesInBatchRequest' '481': description: EmptyBatchRequest content: text/xml: schema: $ref: '#/components/schemas/EmptyBatchRequest' '482': description: BatchEntryIdsNotDistinct content: text/xml: schema: $ref: '#/components/schemas/BatchEntryIdsNotDistinct' '483': description: InvalidBatchEntryId content: text/xml: schema: $ref: '#/components/schemas/InvalidBatchEntryId' parameters: - name: Entries in: query required: true description: A list of receipt handles of the messages for which the visibility timeout must be changed. schema: type: array items: $ref: '#/components/schemas/ChangeMessageVisibilityBatchRequestEntry' xml: wrapped: false - in: path name: AccountNumber required: true description: The AWS account number schema: type: integer - in: path name: QueueName required: true description: The name of the queue schema: type: string - name: Action in: query required: true schema: type: string enum: - ChangeMessageVisibilityBatch - name: Version in: query required: true schema: type: string enum: - '2012-11-05' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' '/#Action=ChangeMessageVisibilityBatch': post: x-aws-operation-name: ChangeMessageVisibilityBatch operationId: POST ChangeMessageVisibilityBatch description: '

Changes the visibility timeout of multiple messages. This is a batch version of ChangeMessageVisibility. The result of the action on each message is reported individually in the response. You can send up to 10 ChangeMessageVisibility requests with each ChangeMessageVisibilityBatch action.

Because the batch request can result in a combination of successful and unsuccessful actions, you should check for batch errors even when the call returns an HTTP status code of 200.

Some actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

&Attribute.1=first

&Attribute.2=second

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/ChangeMessageVisibilityBatchResult' '480': description: TooManyEntriesInBatchRequest content: text/xml: schema: $ref: '#/components/schemas/TooManyEntriesInBatchRequest' '481': description: EmptyBatchRequest content: text/xml: schema: $ref: '#/components/schemas/EmptyBatchRequest' '482': description: BatchEntryIdsNotDistinct content: text/xml: schema: $ref: '#/components/schemas/BatchEntryIdsNotDistinct' '483': description: InvalidBatchEntryId content: text/xml: schema: $ref: '#/components/schemas/InvalidBatchEntryId' requestBody: content: text/xml: schema: $ref: '#/components/schemas/ChangeMessageVisibilityBatchRequest' parameters: - name: Action in: query required: true schema: type: string enum: - ChangeMessageVisibilityBatch - name: Version in: query required: true schema: type: string enum: - '2012-11-05' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' '/#Action=CreateQueue': get: x-aws-operation-name: CreateQueue operationId: GET CreateQueue description: '

Creates a new standard or FIFO queue. You can pass one or more attributes in the request. Keep the following caveats in mind:

To successfully create a new queue, you must provide a queue name that adheres to the limits related to queues and is unique within the scope of your queues.

To get the queue URL, use the GetQueueUrl action. GetQueueUrl requires only the QueueName parameter. be aware of existing queue names:

Some actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

&Attribute.1=first

&Attribute.2=second

Cross-account permissions don''t apply to this action. For more information, see Grant Cross-Account Permissions to a Role and a User Name in the Amazon Simple Queue Service Developer Guide.

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/CreateQueueResult' '480': description: QueueDeletedRecently content: text/xml: schema: $ref: '#/components/schemas/QueueDeletedRecently' '481': description: QueueNameExists content: text/xml: schema: $ref: '#/components/schemas/QueueNameExists' parameters: - name: QueueName in: query required: true description: '

The name of the new queue. The following limits apply to this name:

Queue URLs and names are case-sensitive.

' schema: type: string - name: Attribute in: query required: false description: '

A map of attributes with their corresponding values.

The following lists the names, descriptions, and values of the special request parameters that the CreateQueue action uses:

The following attributes apply only to server-side-encryption:

The following attributes apply only to FIFO (first-in-first-out) queues:

' schema: type: object additionalProperties: $ref: '#/components/schemas/String' xml: wrapped: false - name: Tag in: query required: false description: '

Add cost allocation tags to the specified Amazon SQS queue. For an overview, see Tagging Your Amazon SQS Queues in the Amazon Simple Queue Service Developer Guide.

When you use queue tags, keep the following guidelines in mind:

For a full list of tag restrictions, see Limits Related to Queues in the Amazon Simple Queue Service Developer Guide.

To be able to tag a queue on creation, you must have the sqs:CreateQueue and sqs:TagQueue permissions.

Cross-account permissions don''t apply to this action. For more information, see Grant Cross-Account Permissions to a Role and a User Name in the Amazon Simple Queue Service Developer Guide.

' schema: type: object additionalProperties: $ref: '#/components/schemas/TagValue' xml: wrapped: false - name: Action in: query required: true schema: type: string enum: - CreateQueue - name: Version in: query required: true schema: type: string enum: - '2012-11-05' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' post: x-aws-operation-name: CreateQueue operationId: POST CreateQueue description: '

Creates a new standard or FIFO queue. You can pass one or more attributes in the request. Keep the following caveats in mind:

To successfully create a new queue, you must provide a queue name that adheres to the limits related to queues and is unique within the scope of your queues.

To get the queue URL, use the GetQueueUrl action. GetQueueUrl requires only the QueueName parameter. be aware of existing queue names:

Some actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

&Attribute.1=first

&Attribute.2=second

Cross-account permissions don''t apply to this action. For more information, see Grant Cross-Account Permissions to a Role and a User Name in the Amazon Simple Queue Service Developer Guide.

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/CreateQueueResult' '480': description: QueueDeletedRecently content: text/xml: schema: $ref: '#/components/schemas/QueueDeletedRecently' '481': description: QueueNameExists content: text/xml: schema: $ref: '#/components/schemas/QueueNameExists' requestBody: content: text/xml: schema: $ref: '#/components/schemas/CreateQueueRequest' parameters: - name: Action in: query required: true schema: type: string enum: - CreateQueue - name: Version in: query required: true schema: type: string enum: - '2012-11-05' '/{AccountNumber}/{QueueName}/#Action=DeleteMessage': get: x-aws-operation-name: DeleteMessage operationId: GET DeleteMessage description: '

Deletes the specified message from the specified queue. To select the message to delete, use the ReceiptHandle of the message (not the MessageId which you receive when you send the message). Amazon SQS can delete a message from a queue even if a visibility timeout setting causes the message to be locked by another consumer. Amazon SQS automatically deletes messages left in a queue longer than the retention period configured for the queue.

The ReceiptHandle is associated with a specific instance of receiving a message. If you receive a message more than once, the ReceiptHandle is different each time you receive a message. When you use the DeleteMessage action, you must provide the most recently received ReceiptHandle for the message (otherwise, the request succeeds, but the message might not be deleted).

For standard queues, it is possible to receive a message even after you delete it. This might happen on rare occasions if one of the servers which stores a copy of the message is unavailable when you send the request to delete the message. The copy remains on the server and might be returned to you during a subsequent receive request. You should ensure that your application is idempotent, so that receiving a message more than once does not cause issues.

' responses: '200': description: Success '480': description: InvalidIdFormat content: text/xml: schema: $ref: '#/components/schemas/InvalidIdFormat' '481': description: ReceiptHandleIsInvalid content: text/xml: schema: $ref: '#/components/schemas/ReceiptHandleIsInvalid' parameters: - name: ReceiptHandle in: query required: true description: The receipt handle associated with the message to delete. schema: type: string - in: path name: AccountNumber required: true description: The AWS account number schema: type: integer - in: path name: QueueName required: true description: The name of the queue schema: type: string - name: Action in: query required: true schema: type: string enum: - DeleteMessage - name: Version in: query required: true schema: type: string enum: - '2012-11-05' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' '/#Action=DeleteMessage': post: x-aws-operation-name: DeleteMessage operationId: POST DeleteMessage description: '

Deletes the specified message from the specified queue. To select the message to delete, use the ReceiptHandle of the message (not the MessageId which you receive when you send the message). Amazon SQS can delete a message from a queue even if a visibility timeout setting causes the message to be locked by another consumer. Amazon SQS automatically deletes messages left in a queue longer than the retention period configured for the queue.

The ReceiptHandle is associated with a specific instance of receiving a message. If you receive a message more than once, the ReceiptHandle is different each time you receive a message. When you use the DeleteMessage action, you must provide the most recently received ReceiptHandle for the message (otherwise, the request succeeds, but the message might not be deleted).

For standard queues, it is possible to receive a message even after you delete it. This might happen on rare occasions if one of the servers which stores a copy of the message is unavailable when you send the request to delete the message. The copy remains on the server and might be returned to you during a subsequent receive request. You should ensure that your application is idempotent, so that receiving a message more than once does not cause issues.

' responses: '200': description: Success '480': description: InvalidIdFormat content: text/xml: schema: $ref: '#/components/schemas/InvalidIdFormat' '481': description: ReceiptHandleIsInvalid content: text/xml: schema: $ref: '#/components/schemas/ReceiptHandleIsInvalid' requestBody: content: text/xml: schema: $ref: '#/components/schemas/DeleteMessageRequest' parameters: - name: Action in: query required: true schema: type: string enum: - DeleteMessage - name: Version in: query required: true schema: type: string enum: - '2012-11-05' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' '/{AccountNumber}/{QueueName}/#Action=DeleteMessageBatch': get: x-aws-operation-name: DeleteMessageBatch operationId: GET DeleteMessageBatch description: '

Deletes up to ten messages from the specified queue. This is a batch version of DeleteMessage. The result of the action on each message is reported individually in the response.

Because the batch request can result in a combination of successful and unsuccessful actions, you should check for batch errors even when the call returns an HTTP status code of 200.

Some actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

&Attribute.1=first

&Attribute.2=second

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/DeleteMessageBatchResult' '480': description: TooManyEntriesInBatchRequest content: text/xml: schema: $ref: '#/components/schemas/TooManyEntriesInBatchRequest' '481': description: EmptyBatchRequest content: text/xml: schema: $ref: '#/components/schemas/EmptyBatchRequest' '482': description: BatchEntryIdsNotDistinct content: text/xml: schema: $ref: '#/components/schemas/BatchEntryIdsNotDistinct' '483': description: InvalidBatchEntryId content: text/xml: schema: $ref: '#/components/schemas/InvalidBatchEntryId' parameters: - name: Entries in: query required: true description: A list of receipt handles for the messages to be deleted. schema: type: array items: $ref: '#/components/schemas/DeleteMessageBatchRequestEntry' xml: wrapped: false - in: path name: AccountNumber required: true description: The AWS account number schema: type: integer - in: path name: QueueName required: true description: The name of the queue schema: type: string - name: Action in: query required: true schema: type: string enum: - DeleteMessageBatch - name: Version in: query required: true schema: type: string enum: - '2012-11-05' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' '/#Action=DeleteMessageBatch': post: x-aws-operation-name: DeleteMessageBatch operationId: POST DeleteMessageBatch description: '

Deletes up to ten messages from the specified queue. This is a batch version of DeleteMessage. The result of the action on each message is reported individually in the response.

Because the batch request can result in a combination of successful and unsuccessful actions, you should check for batch errors even when the call returns an HTTP status code of 200.

Some actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

&Attribute.1=first

&Attribute.2=second

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/DeleteMessageBatchResult' '480': description: TooManyEntriesInBatchRequest content: text/xml: schema: $ref: '#/components/schemas/TooManyEntriesInBatchRequest' '481': description: EmptyBatchRequest content: text/xml: schema: $ref: '#/components/schemas/EmptyBatchRequest' '482': description: BatchEntryIdsNotDistinct content: text/xml: schema: $ref: '#/components/schemas/BatchEntryIdsNotDistinct' '483': description: InvalidBatchEntryId content: text/xml: schema: $ref: '#/components/schemas/InvalidBatchEntryId' requestBody: content: text/xml: schema: $ref: '#/components/schemas/DeleteMessageBatchRequest' parameters: - name: Action in: query required: true schema: type: string enum: - DeleteMessageBatch - name: Version in: query required: true schema: type: string enum: - '2012-11-05' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' '/{AccountNumber}/{QueueName}/#Action=DeleteQueue': get: x-aws-operation-name: DeleteQueue operationId: GET DeleteQueue description: '

Deletes the queue specified by the QueueUrl, regardless of the queue''s contents. If the specified queue doesn''t exist, Amazon SQS returns a successful response.

Be careful with the DeleteQueue action: When you delete a queue, any messages in the queue are no longer available.

When you delete a queue, the deletion process takes up to 60 seconds. Requests you send involving that queue during the 60 seconds might succeed. For example, a SendMessage request might succeed, but after 60 seconds the queue and the message you sent no longer exist.

When you delete a queue, you must wait at least 60 seconds before creating a queue with the same name.

Cross-account permissions don''t apply to this action. For more information, see Grant Cross-Account Permissions to a Role and a User Name in the Amazon Simple Queue Service Developer Guide.

' responses: '200': description: Success parameters: - in: path name: AccountNumber required: true description: The AWS account number schema: type: integer - in: path name: QueueName required: true description: The name of the queue schema: type: string - name: Action in: query required: true schema: type: string enum: - DeleteQueue - name: Version in: query required: true schema: type: string enum: - '2012-11-05' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' '/#Action=DeleteQueue': post: x-aws-operation-name: DeleteQueue operationId: POST DeleteQueue description: '

Deletes the queue specified by the QueueUrl, regardless of the queue''s contents. If the specified queue doesn''t exist, Amazon SQS returns a successful response.

Be careful with the DeleteQueue action: When you delete a queue, any messages in the queue are no longer available.

When you delete a queue, the deletion process takes up to 60 seconds. Requests you send involving that queue during the 60 seconds might succeed. For example, a SendMessage request might succeed, but after 60 seconds the queue and the message you sent no longer exist.

When you delete a queue, you must wait at least 60 seconds before creating a queue with the same name.

Cross-account permissions don''t apply to this action. For more information, see Grant Cross-Account Permissions to a Role and a User Name in the Amazon Simple Queue Service Developer Guide.

' responses: '200': description: Success requestBody: content: text/xml: schema: $ref: '#/components/schemas/DeleteQueueRequest' parameters: - name: Action in: query required: true schema: type: string enum: - DeleteQueue - name: Version in: query required: true schema: type: string enum: - '2012-11-05' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' '/{AccountNumber}/{QueueName}/#Action=GetQueueAttributes': get: x-aws-operation-name: GetQueueAttributes operationId: GET GetQueueAttributes description: '

Gets attributes for the specified queue.

To determine whether a queue is FIFO, you can check whether QueueName ends with the .fifo suffix.

Some actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

&Attribute.1=first

&Attribute.2=second

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/GetQueueAttributesResult' '480': description: InvalidAttributeName content: text/xml: schema: $ref: '#/components/schemas/InvalidAttributeName' parameters: - name: AttributeNames in: query required: false description: '

A list of attributes for which to retrieve information.

In the future, new attributes might be added. If you write code that calls this action, we recommend that you structure your code so that it can handle new attributes gracefully.

The following attributes are supported:

The following attributes apply only to server-side-encryption:

The following attributes apply only to FIFO (first-in-first-out) queues:

' schema: type: array items: $ref: '#/components/schemas/QueueAttributeName' xml: wrapped: false - in: path name: AccountNumber required: true description: The AWS account number schema: type: integer - in: path name: QueueName required: true description: The name of the queue schema: type: string - name: Action in: query required: true schema: type: string enum: - GetQueueAttributes - name: Version in: query required: true schema: type: string enum: - '2012-11-05' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' '/#Action=GetQueueAttributes': post: x-aws-operation-name: GetQueueAttributes operationId: POST GetQueueAttributes description: '

Gets attributes for the specified queue.

To determine whether a queue is FIFO, you can check whether QueueName ends with the .fifo suffix.

Some actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

&Attribute.1=first

&Attribute.2=second

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/GetQueueAttributesResult' '480': description: InvalidAttributeName content: text/xml: schema: $ref: '#/components/schemas/InvalidAttributeName' requestBody: content: text/xml: schema: $ref: '#/components/schemas/GetQueueAttributesRequest' parameters: - name: Action in: query required: true schema: type: string enum: - GetQueueAttributes - name: Version in: query required: true schema: type: string enum: - '2012-11-05' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' '/#Action=GetQueueUrl': get: x-aws-operation-name: GetQueueUrl operationId: GET GetQueueUrl description: '

Returns the URL of an existing Amazon SQS queue.

To access a queue that belongs to another AWS account, use the QueueOwnerAWSAccountId parameter to specify the account ID of the queue''s owner. The queue''s owner must grant you permission to access the queue. For more information about shared queue access, see AddPermission or see Allow Developers to Write Messages to a Shared Queue in the Amazon Simple Queue Service Developer Guide.

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/GetQueueUrlResult' '480': description: QueueDoesNotExist content: text/xml: schema: $ref: '#/components/schemas/QueueDoesNotExist' parameters: - name: QueueName in: query required: true description: '

The name of the queue whose URL must be fetched. Maximum 80 characters. Valid values: alphanumeric characters, hyphens (-), and underscores (_).

Queue URLs and names are case-sensitive.

' schema: type: string - name: QueueOwnerAWSAccountId in: query required: false description: The AWS account ID of the account that created the queue. schema: type: string - name: Action in: query required: true schema: type: string enum: - GetQueueUrl - name: Version in: query required: true schema: type: string enum: - '2012-11-05' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' post: x-aws-operation-name: GetQueueUrl operationId: POST GetQueueUrl description: '

Returns the URL of an existing Amazon SQS queue.

To access a queue that belongs to another AWS account, use the QueueOwnerAWSAccountId parameter to specify the account ID of the queue''s owner. The queue''s owner must grant you permission to access the queue. For more information about shared queue access, see AddPermission or see Allow Developers to Write Messages to a Shared Queue in the Amazon Simple Queue Service Developer Guide.

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/GetQueueUrlResult' '480': description: QueueDoesNotExist content: text/xml: schema: $ref: '#/components/schemas/QueueDoesNotExist' requestBody: content: text/xml: schema: $ref: '#/components/schemas/GetQueueUrlRequest' parameters: - name: Action in: query required: true schema: type: string enum: - GetQueueUrl - name: Version in: query required: true schema: type: string enum: - '2012-11-05' '/{AccountNumber}/{QueueName}/#Action=ListDeadLetterSourceQueues': get: x-aws-operation-name: ListDeadLetterSourceQueues operationId: GET ListDeadLetterSourceQueues description: '

Returns a list of your queues that have the RedrivePolicy queue attribute configured with a dead-letter queue.

For more information about using dead-letter queues, see Using Amazon SQS Dead-Letter Queues in the Amazon Simple Queue Service Developer Guide.

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/ListDeadLetterSourceQueuesResult' '480': description: QueueDoesNotExist content: text/xml: schema: $ref: '#/components/schemas/QueueDoesNotExist' parameters: - in: path name: AccountNumber required: true description: The AWS account number schema: type: integer - in: path name: QueueName required: true description: The name of the queue schema: type: string - name: Action in: query required: true schema: type: string enum: - ListDeadLetterSourceQueues - name: Version in: query required: true schema: type: string enum: - '2012-11-05' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' '/#Action=ListDeadLetterSourceQueues': post: x-aws-operation-name: ListDeadLetterSourceQueues operationId: POST ListDeadLetterSourceQueues description: '

Returns a list of your queues that have the RedrivePolicy queue attribute configured with a dead-letter queue.

For more information about using dead-letter queues, see Using Amazon SQS Dead-Letter Queues in the Amazon Simple Queue Service Developer Guide.

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/ListDeadLetterSourceQueuesResult' '480': description: QueueDoesNotExist content: text/xml: schema: $ref: '#/components/schemas/QueueDoesNotExist' requestBody: content: text/xml: schema: $ref: '#/components/schemas/ListDeadLetterSourceQueuesRequest' parameters: - name: Action in: query required: true schema: type: string enum: - ListDeadLetterSourceQueues - name: Version in: query required: true schema: type: string enum: - '2012-11-05' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' '/{AccountNumber}/{QueueName}/#Action=ListQueueTags': get: x-aws-operation-name: ListQueueTags operationId: GET ListQueueTags description: '

List all cost allocation tags added to the specified Amazon SQS queue. For an overview, see Tagging Your Amazon SQS Queues in the Amazon Simple Queue Service Developer Guide.

Cross-account permissions don''t apply to this action. For more information, see Grant Cross-Account Permissions to a Role and a User Name in the Amazon Simple Queue Service Developer Guide.

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/ListQueueTagsResult' parameters: - in: path name: AccountNumber required: true description: The AWS account number schema: type: integer - in: path name: QueueName required: true description: The name of the queue schema: type: string - name: Action in: query required: true schema: type: string enum: - ListQueueTags - name: Version in: query required: true schema: type: string enum: - '2012-11-05' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' '/#Action=ListQueueTags': post: x-aws-operation-name: ListQueueTags operationId: POST ListQueueTags description: '

List all cost allocation tags added to the specified Amazon SQS queue. For an overview, see Tagging Your Amazon SQS Queues in the Amazon Simple Queue Service Developer Guide.

Cross-account permissions don''t apply to this action. For more information, see Grant Cross-Account Permissions to a Role and a User Name in the Amazon Simple Queue Service Developer Guide.

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/ListQueueTagsResult' requestBody: content: text/xml: schema: $ref: '#/components/schemas/ListQueueTagsRequest' parameters: - name: Action in: query required: true schema: type: string enum: - ListQueueTags - name: Version in: query required: true schema: type: string enum: - '2012-11-05' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' '/#Action=ListQueues': get: x-aws-operation-name: ListQueues operationId: GET ListQueues description: '

Returns a list of your queues. The maximum number of queues that can be returned is 1,000. If you specify a value for the optional QueueNamePrefix parameter, only queues with a name that begins with the specified value are returned.

Cross-account permissions don''t apply to this action. For more information, see Grant Cross-Account Permissions to a Role and a User Name in the Amazon Simple Queue Service Developer Guide.

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/ListQueuesResult' parameters: - name: QueueNamePrefix in: query required: false description:

A string to use for filtering the list results. Only those queues whose name begins with the specified string are returned.

Queue URLs and names are case-sensitive.

schema: type: string - name: Action in: query required: true schema: type: string enum: - ListQueues - name: Version in: query required: true schema: type: string enum: - '2012-11-05' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' post: x-aws-operation-name: ListQueues operationId: POST ListQueues description: '

Returns a list of your queues. The maximum number of queues that can be returned is 1,000. If you specify a value for the optional QueueNamePrefix parameter, only queues with a name that begins with the specified value are returned.

Cross-account permissions don''t apply to this action. For more information, see Grant Cross-Account Permissions to a Role and a User Name in the Amazon Simple Queue Service Developer Guide.

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/ListQueuesResult' requestBody: content: text/xml: schema: $ref: '#/components/schemas/ListQueuesRequest' parameters: - name: Action in: query required: true schema: type: string enum: - ListQueues - name: Version in: query required: true schema: type: string enum: - '2012-11-05' '/{AccountNumber}/{QueueName}/#Action=PurgeQueue': get: x-aws-operation-name: PurgeQueue operationId: GET PurgeQueue description: '

Deletes the messages in a queue specified by the QueueURL parameter.

When you use the PurgeQueue action, you can''t retrieve any messages deleted from a queue.

The message deletion process takes up to 60 seconds. We recommend waiting for 60 seconds regardless of your queue''s size.

Messages sent to the queue before you call PurgeQueue might be received but are deleted within the next minute.

Messages sent to the queue after you call PurgeQueue might be deleted while the queue is being purged.

' responses: '200': description: Success '480': description: QueueDoesNotExist content: text/xml: schema: $ref: '#/components/schemas/QueueDoesNotExist' '481': description: PurgeQueueInProgress content: text/xml: schema: $ref: '#/components/schemas/PurgeQueueInProgress' parameters: - in: path name: AccountNumber required: true description: The AWS account number schema: type: integer - in: path name: QueueName required: true description: The name of the queue schema: type: string - name: Action in: query required: true schema: type: string enum: - PurgeQueue - name: Version in: query required: true schema: type: string enum: - '2012-11-05' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' '/#Action=PurgeQueue': post: x-aws-operation-name: PurgeQueue operationId: POST PurgeQueue description: '

Deletes the messages in a queue specified by the QueueURL parameter.

When you use the PurgeQueue action, you can''t retrieve any messages deleted from a queue.

The message deletion process takes up to 60 seconds. We recommend waiting for 60 seconds regardless of your queue''s size.

Messages sent to the queue before you call PurgeQueue might be received but are deleted within the next minute.

Messages sent to the queue after you call PurgeQueue might be deleted while the queue is being purged.

' responses: '200': description: Success '480': description: QueueDoesNotExist content: text/xml: schema: $ref: '#/components/schemas/QueueDoesNotExist' '481': description: PurgeQueueInProgress content: text/xml: schema: $ref: '#/components/schemas/PurgeQueueInProgress' requestBody: content: text/xml: schema: $ref: '#/components/schemas/PurgeQueueRequest' parameters: - name: Action in: query required: true schema: type: string enum: - PurgeQueue - name: Version in: query required: true schema: type: string enum: - '2012-11-05' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' '/{AccountNumber}/{QueueName}/#Action=ReceiveMessage': get: x-aws-operation-name: ReceiveMessage operationId: GET ReceiveMessage description: '

Retrieves one or more messages (up to 10), from the specified queue. Using the WaitTimeSeconds parameter enables long-poll support. For more information, see Amazon SQS Long Polling in the Amazon Simple Queue Service Developer Guide.

Short poll is the default behavior where a weighted random set of machines is sampled on a ReceiveMessage call. Thus, only the messages on the sampled machines are returned. If the number of messages in the queue is small (fewer than 1,000), you most likely get fewer messages than you requested per ReceiveMessage call. If the number of messages in the queue is extremely small, you might not receive any messages in a particular ReceiveMessage response. If this happens, repeat the request.

For each message returned, the response includes the following:

The receipt handle is the identifier you must provide when deleting the message. For more information, see Queue and Message Identifiers in the Amazon Simple Queue Service Developer Guide.

You can provide the VisibilityTimeout parameter in your request. The parameter is applied to the messages that Amazon SQS returns in the response. If you don''t include the parameter, the overall visibility timeout for the queue is used for the returned messages. For more information, see Visibility Timeout in the Amazon Simple Queue Service Developer Guide.

A message that isn''t deleted or a message whose visibility isn''t extended before the visibility timeout expires counts as a failed receive. Depending on the configuration of the queue, the message might be sent to the dead-letter queue.

In the future, new attributes might be added. If you write code that calls this action, we recommend that you structure your code so that it can handle new attributes gracefully.

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/ReceiveMessageResult' '480': description: OverLimit content: text/xml: schema: $ref: '#/components/schemas/OverLimit' parameters: - name: AttributeNames in: query required: false description: '

A list of attributes that need to be returned along with each message. These attributes include:

' schema: type: array items: $ref: '#/components/schemas/QueueAttributeName' xml: wrapped: false - name: MessageAttributeNames in: query required: false description: '

The name of the message attribute, where N is the index.

When using ReceiveMessage, you can send a list of attribute names to receive, or you can return all of the attributes by specifying All or .* in your request. You can also use all message attributes starting with a prefix, for example bar.*.

' schema: type: array items: $ref: '#/components/schemas/MessageAttributeName' xml: wrapped: false - name: MaxNumberOfMessages in: query required: false description: 'The maximum number of messages to return. Amazon SQS never returns more messages than this value (however, fewer messages might be returned). Valid values: 1 to 10. Default: 1.' schema: type: integer - name: VisibilityTimeout in: query required: false description: The duration (in seconds) that the received messages are hidden from subsequent retrieve requests after being retrieved by a ReceiveMessage request. schema: type: integer - name: WaitTimeSeconds in: query required: false description: 'The duration (in seconds) for which the call waits for a message to arrive in the queue before returning. If a message is available, the call returns sooner than WaitTimeSeconds. If no messages are available and the wait time expires, the call returns successfully with an empty list of messages.' schema: type: integer - name: ReceiveRequestAttemptId in: query required: false description: '

This parameter applies only to FIFO (first-in-first-out) queues.

The token used for deduplication of ReceiveMessage calls. If a networking issue occurs after a ReceiveMessage action, and instead of a response you receive a generic error, you can retry the same action with an identical ReceiveRequestAttemptId to retrieve the same set of messages, even if their visibility timeout has not yet expired.

The length of ReceiveRequestAttemptId is 128 characters. ReceiveRequestAttemptId can contain alphanumeric characters (a-z, A-Z, 0-9) and punctuation (!"#$%&''()*+,-./:;<=>?@[\]^_`{|}~).

For best practices of using ReceiveRequestAttemptId, see Using the ReceiveRequestAttemptId Request Parameter in the Amazon Simple Queue Service Developer Guide.

' schema: type: string - in: path name: AccountNumber required: true description: The AWS account number schema: type: integer - in: path name: QueueName required: true description: The name of the queue schema: type: string - name: Action in: query required: true schema: type: string enum: - ReceiveMessage - name: Version in: query required: true schema: type: string enum: - '2012-11-05' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' '/#Action=ReceiveMessage': post: x-aws-operation-name: ReceiveMessage operationId: POST ReceiveMessage description: '

Retrieves one or more messages (up to 10), from the specified queue. Using the WaitTimeSeconds parameter enables long-poll support. For more information, see Amazon SQS Long Polling in the Amazon Simple Queue Service Developer Guide.

Short poll is the default behavior where a weighted random set of machines is sampled on a ReceiveMessage call. Thus, only the messages on the sampled machines are returned. If the number of messages in the queue is small (fewer than 1,000), you most likely get fewer messages than you requested per ReceiveMessage call. If the number of messages in the queue is extremely small, you might not receive any messages in a particular ReceiveMessage response. If this happens, repeat the request.

For each message returned, the response includes the following:

The receipt handle is the identifier you must provide when deleting the message. For more information, see Queue and Message Identifiers in the Amazon Simple Queue Service Developer Guide.

You can provide the VisibilityTimeout parameter in your request. The parameter is applied to the messages that Amazon SQS returns in the response. If you don''t include the parameter, the overall visibility timeout for the queue is used for the returned messages. For more information, see Visibility Timeout in the Amazon Simple Queue Service Developer Guide.

A message that isn''t deleted or a message whose visibility isn''t extended before the visibility timeout expires counts as a failed receive. Depending on the configuration of the queue, the message might be sent to the dead-letter queue.

In the future, new attributes might be added. If you write code that calls this action, we recommend that you structure your code so that it can handle new attributes gracefully.

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/ReceiveMessageResult' '480': description: OverLimit content: text/xml: schema: $ref: '#/components/schemas/OverLimit' requestBody: content: text/xml: schema: $ref: '#/components/schemas/ReceiveMessageRequest' parameters: - name: Action in: query required: true schema: type: string enum: - ReceiveMessage - name: Version in: query required: true schema: type: string enum: - '2012-11-05' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' '/{AccountNumber}/{QueueName}/#Action=RemovePermission': get: x-aws-operation-name: RemovePermission operationId: GET RemovePermission description: '

Revokes any permissions in the queue policy that matches the specified Label parameter.

' responses: '200': description: Success parameters: - name: Label in: query required: true description: The identification of the permission to remove. This is the label added using the AddPermission action. schema: type: string - in: path name: AccountNumber required: true description: The AWS account number schema: type: integer - in: path name: QueueName required: true description: The name of the queue schema: type: string - name: Action in: query required: true schema: type: string enum: - RemovePermission - name: Version in: query required: true schema: type: string enum: - '2012-11-05' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' '/#Action=RemovePermission': post: x-aws-operation-name: RemovePermission operationId: POST RemovePermission description: '

Revokes any permissions in the queue policy that matches the specified Label parameter.

' responses: '200': description: Success requestBody: content: text/xml: schema: $ref: '#/components/schemas/RemovePermissionRequest' parameters: - name: Action in: query required: true schema: type: string enum: - RemovePermission - name: Version in: query required: true schema: type: string enum: - '2012-11-05' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' '/{AccountNumber}/{QueueName}/#Action=SendMessage': get: x-aws-operation-name: SendMessage operationId: GET SendMessage description: '

Delivers a message to the specified queue.

A message can include only XML, JSON, and unformatted text. The following Unicode characters are allowed:

#x9 | #xA | #xD | #x20 to #xD7FF | #xE000 to #xFFFD | #x10000 to #x10FFFF

Any characters not included in this list will be rejected. For more information, see the W3C specification for characters.

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/SendMessageResult' '480': description: InvalidMessageContents content: text/xml: schema: $ref: '#/components/schemas/InvalidMessageContents' '481': description: UnsupportedOperation content: text/xml: schema: $ref: '#/components/schemas/UnsupportedOperation' parameters: - name: MessageBody in: query required: true description: '

The message to send. The maximum string size is 256 KB.

A message can include only XML, JSON, and unformatted text. The following Unicode characters are allowed:

#x9 | #xA | #xD | #x20 to #xD7FF | #xE000 to #xFFFD | #x10000 to #x10FFFF

Any characters not included in this list will be rejected. For more information, see the W3C specification for characters.

' schema: type: string - name: DelaySeconds in: query required: false description: '

The length of time, in seconds, for which to delay a specific message. Valid values: 0 to 900. Maximum: 15 minutes. Messages with a positive DelaySeconds value become available for processing after the delay period is finished. If you don''t specify a value, the default value for the queue applies.

When you set FifoQueue, you can''t set DelaySeconds per message. You can set this parameter only on a queue level.

' schema: type: integer - name: MessageAttribute in: query required: false description: 'Each message attribute consists of a Name, Type, and Value. For more information, see Amazon SQS Message Attributes in the Amazon Simple Queue Service Developer Guide.' schema: type: object additionalProperties: $ref: '#/components/schemas/MessageAttributeValue' xml: wrapped: false - name: MessageSystemAttribute in: query required: false description: '

The message system attribute to send. Each message system attribute consists of a Name, Type, and Value.

' schema: type: object additionalProperties: $ref: '#/components/schemas/MessageSystemAttributeValue' xml: wrapped: false - name: MessageDeduplicationId in: query required: false description: '

This parameter applies only to FIFO (first-in-first-out) queues.

The token used for deduplication of sent messages. If a message with a particular MessageDeduplicationId is sent successfully, any messages sent with the same MessageDeduplicationId are accepted successfully but aren''t delivered during the 5-minute deduplication interval. For more information, see Exactly-Once Processing in the Amazon Simple Queue Service Developer Guide.

The MessageDeduplicationId is available to the consumer of the message (this can be useful for troubleshooting delivery issues).

If a message is sent successfully but the acknowledgement is lost and the message is resent with the same MessageDeduplicationId after the deduplication interval, Amazon SQS can''t detect duplicate messages.

Amazon SQS continues to keep track of the message deduplication ID even after the message is received and deleted.

The length of MessageDeduplicationId is 128 characters. MessageDeduplicationId can contain alphanumeric characters (a-z, A-Z, 0-9) and punctuation (!"#$%&''()*+,-./:;<=>?@[\]^_`{|}~).

For best practices of using MessageDeduplicationId, see Using the MessageDeduplicationId Property in the Amazon Simple Queue Service Developer Guide.

' schema: type: string - name: MessageGroupId in: query required: false description: '

This parameter applies only to FIFO (first-in-first-out) queues.

The tag that specifies that a message belongs to a specific message group. Messages that belong to the same message group are processed in a FIFO manner (however, messages in different message groups might be processed out of order). To interleave multiple ordered streams within a single queue, use MessageGroupId values (for example, session data for multiple users). In this scenario, multiple consumers can process the queue, but the session data of each user is processed in a FIFO fashion.

The length of MessageGroupId is 128 characters. Valid values: alphanumeric characters and punctuation (!"#$%&''()*+,-./:;<=>?@[\]^_`{|}~).

For best practices of using MessageGroupId, see Using the MessageGroupId Property in the Amazon Simple Queue Service Developer Guide.

MessageGroupId is required for FIFO queues. You can''t use it for Standard queues.

' schema: type: string - in: path name: AccountNumber required: true description: The AWS account number schema: type: integer - in: path name: QueueName required: true description: The name of the queue schema: type: string - name: Action in: query required: true schema: type: string enum: - SendMessage - name: Version in: query required: true schema: type: string enum: - '2012-11-05' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' '/#Action=SendMessage': post: x-aws-operation-name: SendMessage operationId: POST SendMessage description: '

Delivers a message to the specified queue.

A message can include only XML, JSON, and unformatted text. The following Unicode characters are allowed:

#x9 | #xA | #xD | #x20 to #xD7FF | #xE000 to #xFFFD | #x10000 to #x10FFFF

Any characters not included in this list will be rejected. For more information, see the W3C specification for characters.

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/SendMessageResult' '480': description: InvalidMessageContents content: text/xml: schema: $ref: '#/components/schemas/InvalidMessageContents' '481': description: UnsupportedOperation content: text/xml: schema: $ref: '#/components/schemas/UnsupportedOperation' requestBody: content: text/xml: schema: $ref: '#/components/schemas/SendMessageRequest' parameters: - name: Action in: query required: true schema: type: string enum: - SendMessage - name: Version in: query required: true schema: type: string enum: - '2012-11-05' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' '/{AccountNumber}/{QueueName}/#Action=SendMessageBatch': get: x-aws-operation-name: SendMessageBatch operationId: GET SendMessageBatch description: '

Delivers up to ten messages to the specified queue. This is a batch version of SendMessage. For a FIFO queue, multiple messages within a single batch are enqueued in the order they are sent.

The result of sending each message is reported individually in the response. Because the batch request can result in a combination of successful and unsuccessful actions, you should check for batch errors even when the call returns an HTTP status code of 200.

The maximum allowed individual message size and the maximum total payload size (the sum of the individual lengths of all of the batched messages) are both 256 KB (262,144 bytes).

A message can include only XML, JSON, and unformatted text. The following Unicode characters are allowed:

#x9 | #xA | #xD | #x20 to #xD7FF | #xE000 to #xFFFD | #x10000 to #x10FFFF

Any characters not included in this list will be rejected. For more information, see the W3C specification for characters.

If you don''t specify the DelaySeconds parameter for an entry, Amazon SQS uses the default value for the queue.

Some actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

&Attribute.1=first

&Attribute.2=second

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/SendMessageBatchResult' '480': description: TooManyEntriesInBatchRequest content: text/xml: schema: $ref: '#/components/schemas/TooManyEntriesInBatchRequest' '481': description: EmptyBatchRequest content: text/xml: schema: $ref: '#/components/schemas/EmptyBatchRequest' '482': description: BatchEntryIdsNotDistinct content: text/xml: schema: $ref: '#/components/schemas/BatchEntryIdsNotDistinct' '483': description: BatchRequestTooLong content: text/xml: schema: $ref: '#/components/schemas/BatchRequestTooLong' '484': description: InvalidBatchEntryId content: text/xml: schema: $ref: '#/components/schemas/InvalidBatchEntryId' '485': description: UnsupportedOperation content: text/xml: schema: $ref: '#/components/schemas/UnsupportedOperation' parameters: - name: Entries in: query required: true description: A list of SendMessageBatchRequestEntry items. schema: type: array items: $ref: '#/components/schemas/SendMessageBatchRequestEntry' xml: wrapped: false - in: path name: AccountNumber required: true description: The AWS account number schema: type: integer - in: path name: QueueName required: true description: The name of the queue schema: type: string - name: Action in: query required: true schema: type: string enum: - SendMessageBatch - name: Version in: query required: true schema: type: string enum: - '2012-11-05' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' '/#Action=SendMessageBatch': post: x-aws-operation-name: SendMessageBatch operationId: POST SendMessageBatch description: '

Delivers up to ten messages to the specified queue. This is a batch version of SendMessage. For a FIFO queue, multiple messages within a single batch are enqueued in the order they are sent.

The result of sending each message is reported individually in the response. Because the batch request can result in a combination of successful and unsuccessful actions, you should check for batch errors even when the call returns an HTTP status code of 200.

The maximum allowed individual message size and the maximum total payload size (the sum of the individual lengths of all of the batched messages) are both 256 KB (262,144 bytes).

A message can include only XML, JSON, and unformatted text. The following Unicode characters are allowed:

#x9 | #xA | #xD | #x20 to #xD7FF | #xE000 to #xFFFD | #x10000 to #x10FFFF

Any characters not included in this list will be rejected. For more information, see the W3C specification for characters.

If you don''t specify the DelaySeconds parameter for an entry, Amazon SQS uses the default value for the queue.

Some actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

&Attribute.1=first

&Attribute.2=second

' responses: '200': description: Success content: text/xml: schema: $ref: '#/components/schemas/SendMessageBatchResult' '480': description: TooManyEntriesInBatchRequest content: text/xml: schema: $ref: '#/components/schemas/TooManyEntriesInBatchRequest' '481': description: EmptyBatchRequest content: text/xml: schema: $ref: '#/components/schemas/EmptyBatchRequest' '482': description: BatchEntryIdsNotDistinct content: text/xml: schema: $ref: '#/components/schemas/BatchEntryIdsNotDistinct' '483': description: BatchRequestTooLong content: text/xml: schema: $ref: '#/components/schemas/BatchRequestTooLong' '484': description: InvalidBatchEntryId content: text/xml: schema: $ref: '#/components/schemas/InvalidBatchEntryId' '485': description: UnsupportedOperation content: text/xml: schema: $ref: '#/components/schemas/UnsupportedOperation' requestBody: content: text/xml: schema: $ref: '#/components/schemas/SendMessageBatchRequest' parameters: - name: Action in: query required: true schema: type: string enum: - SendMessageBatch - name: Version in: query required: true schema: type: string enum: - '2012-11-05' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' '/{AccountNumber}/{QueueName}/#Action=SetQueueAttributes': get: x-aws-operation-name: SetQueueAttributes operationId: GET SetQueueAttributes description: '

Sets the value of one or more queue attributes. When you change a queue''s attributes, the change can take up to 60 seconds for most of the attributes to propagate throughout the Amazon SQS system. Changes made to the MessageRetentionPeriod attribute can take up to 15 minutes.

' responses: '200': description: Success '480': description: InvalidAttributeName content: text/xml: schema: $ref: '#/components/schemas/InvalidAttributeName' parameters: - name: Attribute in: query required: true description: '

A map of attributes to set.

The following lists the names, descriptions, and values of the special request parameters that the SetQueueAttributes action uses:

The following attributes apply only to server-side-encryption:

The following attribute applies only to FIFO (first-in-first-out) queues:

' schema: type: object additionalProperties: $ref: '#/components/schemas/String' xml: wrapped: false - in: path name: AccountNumber required: true description: The AWS account number schema: type: integer - in: path name: QueueName required: true description: The name of the queue schema: type: string - name: Action in: query required: true schema: type: string enum: - SetQueueAttributes - name: Version in: query required: true schema: type: string enum: - '2012-11-05' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' '/#Action=SetQueueAttributes': post: x-aws-operation-name: SetQueueAttributes operationId: POST SetQueueAttributes description: '

Sets the value of one or more queue attributes. When you change a queue''s attributes, the change can take up to 60 seconds for most of the attributes to propagate throughout the Amazon SQS system. Changes made to the MessageRetentionPeriod attribute can take up to 15 minutes.

' responses: '200': description: Success '480': description: InvalidAttributeName content: text/xml: schema: $ref: '#/components/schemas/InvalidAttributeName' requestBody: content: text/xml: schema: $ref: '#/components/schemas/SetQueueAttributesRequest' parameters: - name: Action in: query required: true schema: type: string enum: - SetQueueAttributes - name: Version in: query required: true schema: type: string enum: - '2012-11-05' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' '/{AccountNumber}/{QueueName}/#Action=TagQueue': get: x-aws-operation-name: TagQueue operationId: GET TagQueue description: '

Add cost allocation tags to the specified Amazon SQS queue. For an overview, see Tagging Your Amazon SQS Queues in the Amazon Simple Queue Service Developer Guide.

When you use queue tags, keep the following guidelines in mind:

For a full list of tag restrictions, see Limits Related to Queues in the Amazon Simple Queue Service Developer Guide.

Cross-account permissions don''t apply to this action. For more information, see Grant Cross-Account Permissions to a Role and a User Name in the Amazon Simple Queue Service Developer Guide.

' responses: '200': description: Success parameters: - name: Tags in: query required: true description: The list of tags to be added to the specified queue. schema: type: object additionalProperties: $ref: '#/components/schemas/TagValue' xml: wrapped: false - in: path name: AccountNumber required: true description: The AWS account number schema: type: integer - in: path name: QueueName required: true description: The name of the queue schema: type: string - name: Action in: query required: true schema: type: string enum: - TagQueue - name: Version in: query required: true schema: type: string enum: - '2012-11-05' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' '/#Action=TagQueue': post: x-aws-operation-name: TagQueue operationId: POST TagQueue description: '

Add cost allocation tags to the specified Amazon SQS queue. For an overview, see Tagging Your Amazon SQS Queues in the Amazon Simple Queue Service Developer Guide.

When you use queue tags, keep the following guidelines in mind:

For a full list of tag restrictions, see Limits Related to Queues in the Amazon Simple Queue Service Developer Guide.

Cross-account permissions don''t apply to this action. For more information, see Grant Cross-Account Permissions to a Role and a User Name in the Amazon Simple Queue Service Developer Guide.

' responses: '200': description: Success requestBody: content: text/xml: schema: $ref: '#/components/schemas/TagQueueRequest' parameters: - name: Action in: query required: true schema: type: string enum: - TagQueue - name: Version in: query required: true schema: type: string enum: - '2012-11-05' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' '/{AccountNumber}/{QueueName}/#Action=UntagQueue': get: x-aws-operation-name: UntagQueue operationId: GET UntagQueue description: '

Remove cost allocation tags from the specified Amazon SQS queue. For an overview, see Tagging Your Amazon SQS Queues in the Amazon Simple Queue Service Developer Guide.

Cross-account permissions don''t apply to this action. For more information, see Grant Cross-Account Permissions to a Role and a User Name in the Amazon Simple Queue Service Developer Guide.

' responses: '200': description: Success parameters: - name: TagKeys in: query required: true description: The list of tags to be removed from the specified queue. schema: type: array items: $ref: '#/components/schemas/TagKey' xml: wrapped: false - in: path name: AccountNumber required: true description: The AWS account number schema: type: integer - in: path name: QueueName required: true description: The name of the queue schema: type: string - name: Action in: query required: true schema: type: string enum: - UntagQueue - name: Version in: query required: true schema: type: string enum: - '2012-11-05' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' '/#Action=UntagQueue': post: x-aws-operation-name: UntagQueue operationId: POST UntagQueue description: '

Remove cost allocation tags from the specified Amazon SQS queue. For an overview, see Tagging Your Amazon SQS Queues in the Amazon Simple Queue Service Developer Guide.

Cross-account permissions don''t apply to this action. For more information, see Grant Cross-Account Permissions to a Role and a User Name in the Amazon Simple Queue Service Developer Guide.

' responses: '200': description: Success requestBody: content: text/xml: schema: $ref: '#/components/schemas/UntagQueueRequest' parameters: - name: Action in: query required: true schema: type: string enum: - UntagQueue - name: Version in: query required: true schema: type: string enum: - '2012-11-05' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' components: parameters: X-Amz-Content-Sha256: name: X-Amz-Content-Sha256 in: header schema: type: string required: false X-Amz-Date: name: X-Amz-Date in: header schema: type: string required: false X-Amz-Algorithm: name: X-Amz-Algorithm in: header schema: type: string required: false X-Amz-Credential: name: X-Amz-Credential in: header schema: type: string required: false X-Amz-Security-Token: name: X-Amz-Security-Token in: header schema: type: string required: false X-Amz-Signature: name: X-Amz-Signature in: header schema: type: string required: false X-Amz-SignedHeaders: name: X-Amz-SignedHeaders in: header schema: type: string required: false securitySchemes: hmac: type: apiKey name: Authorization in: header description: Amazon Signature authorization v4 x-amazon-apigateway-authtype: awsSigv4 schemas: String: type: string OverLimit: {} MessageNotInflight: {} ReceiptHandleIsInvalid: {} ChangeMessageVisibilityBatchResult: type: object required: - Successful - Failed properties: Successful: $ref: '#/components/schemas/ChangeMessageVisibilityBatchResultEntryList' description: A list of ChangeMessageVisibilityBatchResultEntry items. Failed: $ref: '#/components/schemas/BatchResultErrorEntryList' description: A list of BatchResultErrorEntry items. description: 'For each message in the batch, the response contains a ChangeMessageVisibilityBatchResultEntry tag if the message succeeds or a BatchResultErrorEntry tag if the message fails.' ChangeMessageVisibilityBatchRequestEntry: type: object required: - Id - ReceiptHandle properties: Id: $ref: '#/components/schemas/String' description:

An identifier for this particular receipt handle used to communicate the result.

The Ids of a batch request need to be unique within a request

ReceiptHandle: $ref: '#/components/schemas/String' description: A receipt handle. VisibilityTimeout: $ref: '#/components/schemas/Integer' description: The new value (in seconds) for the message's visibility timeout. description: '

Encloses a receipt handle and an entry id for each message in ChangeMessageVisibilityBatch.

All of the following list parameters must be prefixed with ChangeMessageVisibilityBatchRequestEntry.n, where n is an integer value starting with 1. For example, a parameter list for this action might look like this:

&ChangeMessageVisibilityBatchRequestEntry.1.Id=change_visibility_msg_2

&ChangeMessageVisibilityBatchRequestEntry.1.ReceiptHandle=your_receipt_handle

&ChangeMessageVisibilityBatchRequestEntry.1.VisibilityTimeout=45

' TooManyEntriesInBatchRequest: {} EmptyBatchRequest: {} BatchEntryIdsNotDistinct: {} InvalidBatchEntryId: {} CreateQueueResult: type: object properties: QueueUrl: $ref: '#/components/schemas/String' description: The URL of the created Amazon SQS queue. description: Returns the QueueUrl attribute of the created queue. TagValue: type: string QueueDeletedRecently: {} QueueNameExists: {} InvalidIdFormat: {} DeleteMessageBatchResult: type: object required: - Successful - Failed properties: Successful: $ref: '#/components/schemas/DeleteMessageBatchResultEntryList' description: A list of DeleteMessageBatchResultEntry items. Failed: $ref: '#/components/schemas/BatchResultErrorEntryList' description: A list of BatchResultErrorEntry items. description: 'For each message in the batch, the response contains a DeleteMessageBatchResultEntry tag if the message is deleted or a BatchResultErrorEntry tag if the message can''t be deleted.' DeleteMessageBatchRequestEntry: type: object required: - Id - ReceiptHandle properties: Id: $ref: '#/components/schemas/String' description:

An identifier for this particular receipt handle. This is used to communicate the result.

The Ids of a batch request need to be unique within a request

ReceiptHandle: $ref: '#/components/schemas/String' description: A receipt handle. description: Encloses a receipt handle and an identifier for it. GetQueueAttributesResult: type: object properties: Attributes: $ref: '#/components/schemas/QueueAttributeMap' description: A map of attributes to their respective values. description: A list of returned queue attributes. QueueAttributeName: type: string enum: - All - Policy - VisibilityTimeout - MaximumMessageSize - MessageRetentionPeriod - ApproximateNumberOfMessages - ApproximateNumberOfMessagesNotVisible - CreatedTimestamp - LastModifiedTimestamp - QueueArn - ApproximateNumberOfMessagesDelayed - DelaySeconds - ReceiveMessageWaitTimeSeconds - RedrivePolicy - FifoQueue - ContentBasedDeduplication - KmsMasterKeyId - KmsDataKeyReusePeriodSeconds InvalidAttributeName: {} GetQueueUrlResult: type: object properties: QueueUrl: $ref: '#/components/schemas/String' description: The URL of the queue. description: 'For more information, see Interpreting Responses in the Amazon Simple Queue Service Developer Guide.' QueueDoesNotExist: {} ListDeadLetterSourceQueuesResult: type: object required: - queueUrls properties: queueUrls: $ref: '#/components/schemas/QueueUrlList' description: A list of source queue URLs that have the RedrivePolicy queue attribute configured with a dead-letter queue. description: A list of your dead letter source queues. ListQueueTagsResult: type: object properties: Tags: $ref: '#/components/schemas/TagMap' description: The list of all tags added to the specified queue. ListQueuesResult: type: object properties: QueueUrls: $ref: '#/components/schemas/QueueUrlList' description: 'A list of queue URLs, up to 1,000 entries.' description: A list of your queues. PurgeQueueInProgress: {} ReceiveMessageResult: type: object properties: Messages: $ref: '#/components/schemas/MessageList' description: A list of messages. description: A list of received messages. MessageAttributeName: type: string SendMessageResult: type: object properties: MD5OfMessageBody: $ref: '#/components/schemas/String' description: 'An MD5 digest of the non-URL-encoded message attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information about MD5, see RFC1321.' MD5OfMessageAttributes: $ref: '#/components/schemas/String' description: 'An MD5 digest of the non-URL-encoded message attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information about MD5, see RFC1321.' MD5OfMessageSystemAttributes: $ref: '#/components/schemas/String' description: An MD5 digest of the non-URL-encoded message system attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. MessageId: $ref: '#/components/schemas/String' description: 'An attribute containing the MessageId of the message sent to the queue. For more information, see Queue and Message Identifiers in the Amazon Simple Queue Service Developer Guide. ' SequenceNumber: $ref: '#/components/schemas/String' description: '

This parameter applies only to FIFO (first-in-first-out) queues.

The large, non-consecutive number that Amazon SQS assigns to each message.

The length of SequenceNumber is 128 bits. SequenceNumber continues to increase for a particular MessageGroupId.

' description: The MD5OfMessageBody and MessageId elements. MessageAttributeValue: type: object required: - DataType properties: StringValue: $ref: '#/components/schemas/String' description: 'Strings are Unicode with UTF-8 binary encoding. For a list of code values, see ASCII Printable Characters.' BinaryValue: $ref: '#/components/schemas/Binary' description: 'Binary type attributes can store any binary data, such as compressed data, encrypted data, or images.' StringListValues: $ref: '#/components/schemas/StringList' description: Not implemented. Reserved for future use. BinaryListValues: $ref: '#/components/schemas/BinaryList' description: Not implemented. Reserved for future use. DataType: $ref: '#/components/schemas/String' description: '

Amazon SQS supports the following logical data types: String, Number, and Binary. For the Number data type, you must use StringValue.

You can also append custom labels. For more information, see Amazon SQS Message Attributes in the Amazon Simple Queue Service Developer Guide.

' description: '

The user-specified message attribute value. For string data types, the Value attribute has the same restrictions on the content as the message body. For more information, see SendMessage.

Name, type, value and the message body must not be empty or null. All parts of the message attribute, including Name, Type, and Value, are part of the message size restriction (256 KB or 262,144 bytes).

' xml: wrapped: false MessageSystemAttributeValue: type: object required: - DataType properties: StringValue: $ref: '#/components/schemas/String' description: 'Strings are Unicode with UTF-8 binary encoding. For a list of code values, see ASCII Printable Characters.' BinaryValue: $ref: '#/components/schemas/Binary' description: 'Binary type attributes can store any binary data, such as compressed data, encrypted data, or images.' StringListValues: $ref: '#/components/schemas/StringList' description: Not implemented. Reserved for future use. BinaryListValues: $ref: '#/components/schemas/BinaryList' description: Not implemented. Reserved for future use. DataType: $ref: '#/components/schemas/String' description: '

Amazon SQS supports the following logical data types: String, Number, and Binary. For the Number data type, you must use StringValue.

You can also append custom labels. For more information, see Amazon SQS Message Attributes in the Amazon Simple Queue Service Developer Guide.

' description: '

The user-specified message system attribute value. For string data types, the Value attribute has the same restrictions on the content as the message body. For more information, see SendMessage.

Name, type, value and the message body must not be empty or null.

' xml: wrapped: false InvalidMessageContents: {} UnsupportedOperation: {} SendMessageBatchResult: type: object required: - Successful - Failed properties: Successful: $ref: '#/components/schemas/SendMessageBatchResultEntryList' description: A list of SendMessageBatchResultEntry items. Failed: $ref: '#/components/schemas/BatchResultErrorEntryList' description: A list of BatchResultErrorEntry items with error details about each message that can't be enqueued. description: 'For each message in the batch, the response contains a SendMessageBatchResultEntry tag if the message succeeds or a BatchResultErrorEntry tag if the message fails.' SendMessageBatchRequestEntry: type: object required: - Id - MessageBody properties: Id: $ref: '#/components/schemas/String' description: '

An identifier for a message in this batch used to communicate the result.

The Ids of a batch request need to be unique within a request

This identifier can have up to 80 characters. The following characters are accepted: alphanumeric characters, hyphens(-), and underscores (_).

' MessageBody: $ref: '#/components/schemas/String' description: The body of the message. DelaySeconds: $ref: '#/components/schemas/Integer' description: '

The length of time, in seconds, for which a specific message is delayed. Valid values: 0 to 900. Maximum: 15 minutes. Messages with a positive DelaySeconds value become available for processing after the delay period is finished. If you don''t specify a value, the default value for the queue is applied.

When you set FifoQueue, you can''t set DelaySeconds per message. You can set this parameter only on a queue level.

' MessageAttributes: $ref: '#/components/schemas/MessageBodyAttributeMap' description: 'Each message attribute consists of a Name, Type, and Value. For more information, see Amazon SQS Message Attributes in the Amazon Simple Queue Service Developer Guide.' MessageSystemAttributes: $ref: '#/components/schemas/MessageBodySystemAttributeMap' description: '

The message system attribute to send Each message system attribute consists of a Name, Type, and Value.

' MessageDeduplicationId: $ref: '#/components/schemas/String' description: '

This parameter applies only to FIFO (first-in-first-out) queues.

The token used for deduplication of messages within a 5-minute minimum deduplication interval. If a message with a particular MessageDeduplicationId is sent successfully, subsequent messages with the same MessageDeduplicationId are accepted successfully but aren''t delivered. For more information, see Exactly-Once Processing in the Amazon Simple Queue Service Developer Guide.

The MessageDeduplicationId is available to the consumer of the message (this can be useful for troubleshooting delivery issues).

If a message is sent successfully but the acknowledgement is lost and the message is resent with the same MessageDeduplicationId after the deduplication interval, Amazon SQS can''t detect duplicate messages.

Amazon SQS continues to keep track of the message deduplication ID even after the message is received and deleted.

The length of MessageDeduplicationId is 128 characters. MessageDeduplicationId can contain alphanumeric characters (a-z, A-Z, 0-9) and punctuation (!"#$%&''()*+,-./:;<=>?@[\]^_`{|}~).

For best practices of using MessageDeduplicationId, see Using the MessageDeduplicationId Property in the Amazon Simple Queue Service Developer Guide.

' MessageGroupId: $ref: '#/components/schemas/String' description: '

This parameter applies only to FIFO (first-in-first-out) queues.

The tag that specifies that a message belongs to a specific message group. Messages that belong to the same message group are processed in a FIFO manner (however, messages in different message groups might be processed out of order). To interleave multiple ordered streams within a single queue, use MessageGroupId values (for example, session data for multiple users). In this scenario, multiple consumers can process the queue, but the session data of each user is processed in a FIFO fashion.

The length of MessageGroupId is 128 characters. Valid values: alphanumeric characters and punctuation (!"#$%&''()*+,-./:;<=>?@[\]^_`{|}~).

For best practices of using MessageGroupId, see Using the MessageGroupId Property in the Amazon Simple Queue Service Developer Guide.

MessageGroupId is required for FIFO queues. You can''t use it for Standard queues.

' description: Contains the details of a single Amazon SQS message along with an Id. BatchRequestTooLong: {} TagKey: type: string AWSAccountIdList: type: array items: $ref: '#/components/schemas/String' xml: wrapped: false ActionNameList: type: array items: $ref: '#/components/schemas/String' xml: wrapped: false AddPermissionRequest: type: object required: - QueueUrl - Label - AWSAccountIds - Actions title: AddPermissionRequest properties: QueueUrl: $ref: '#/components/schemas/String' description:

The URL of the Amazon SQS queue to which permissions are added.

Queue URLs and names are case-sensitive.

Label: $ref: '#/components/schemas/String' description: 'The unique identification of the permission you''re setting (for example, AliceSendMessage). Maximum 80 characters. Allowed characters include alphanumeric characters, hyphens (-), and underscores (_).' AWSAccountIds: $ref: '#/components/schemas/AWSAccountIdList' description: 'The AWS account number of the principal who is given permission. The principal must have an AWS account, but does not need to be signed up for Amazon SQS. For information about locating the AWS account identification, see Your AWS Identifiers in the Amazon Simple Queue Service Developer Guide.' Actions: $ref: '#/components/schemas/ActionNameList' description: '

The action the client wants to allow for the specified principal. Valid values: the name of any action or *.

For more information about these actions, see Overview of Managing Access Permissions to Your Amazon Simple Queue Service Resource in the Amazon Simple Queue Service Developer Guide.

Specifying SendMessage, DeleteMessage, or ChangeMessageVisibility for ActionName.n also grants permissions for the corresponding batch versions of those actions: SendMessageBatch, DeleteMessageBatch, and ChangeMessageVisibilityBatch.

' description:

AttributeNameList: type: array items: $ref: '#/components/schemas/QueueAttributeName' xml: wrapped: false Boolean: type: boolean BatchResultErrorEntry: type: object required: - Id - SenderFault - Code properties: Id: $ref: '#/components/schemas/String' description: The Id of an entry in a batch request. SenderFault: $ref: '#/components/schemas/Boolean' description: Specifies whether the error happened due to the producer. Code: $ref: '#/components/schemas/String' description: An error code representing why the action failed on this entry. Message: $ref: '#/components/schemas/String' description: A message explaining why the action failed on this entry. description: Gives a detailed description of the result of an action on each entry in the request. BatchResultErrorEntryList: type: array items: $ref: '#/components/schemas/BatchResultErrorEntry' xml: wrapped: false Binary: type: string BinaryList: type: array items: $ref: '#/components/schemas/Binary' ChangeMessageVisibilityBatchRequestEntryList: type: array items: $ref: '#/components/schemas/ChangeMessageVisibilityBatchRequestEntry' xml: wrapped: false ChangeMessageVisibilityBatchRequest: type: object required: - QueueUrl - Entries title: ChangeMessageVisibilityBatchRequest properties: QueueUrl: $ref: '#/components/schemas/String' description:

The URL of the Amazon SQS queue whose messages' visibility is changed.

Queue URLs and names are case-sensitive.

Entries: $ref: '#/components/schemas/ChangeMessageVisibilityBatchRequestEntryList' description: A list of receipt handles of the messages for which the visibility timeout must be changed. description:

Integer: type: integer ChangeMessageVisibilityBatchResultEntryList: type: array items: $ref: '#/components/schemas/ChangeMessageVisibilityBatchResultEntry' xml: wrapped: false ChangeMessageVisibilityBatchResultEntry: type: object required: - Id properties: Id: $ref: '#/components/schemas/String' description: Represents a message whose visibility timeout has been changed successfully. description: 'Encloses the Id of an entry in ChangeMessageVisibilityBatch. ' ChangeMessageVisibilityRequest: type: object required: - QueueUrl - ReceiptHandle - VisibilityTimeout title: ChangeMessageVisibilityRequest properties: QueueUrl: $ref: '#/components/schemas/String' description:

The URL of the Amazon SQS queue whose message's visibility is changed.

Queue URLs and names are case-sensitive.

ReceiptHandle: $ref: '#/components/schemas/String' description: The receipt handle associated with the message whose visibility timeout is changed. This parameter is returned by the ReceiveMessage action. VisibilityTimeout: $ref: '#/components/schemas/Integer' description: 'The new value for the message''s visibility timeout (in seconds). Values values: 0 to 43200. Maximum: 12 hours.' QueueAttributeMap: type: object additionalProperties: $ref: '#/components/schemas/String' xml: wrapped: false TagMap: type: object additionalProperties: $ref: '#/components/schemas/TagValue' xml: wrapped: false CreateQueueRequest: type: object required: - QueueName title: CreateQueueRequest properties: QueueName: $ref: '#/components/schemas/String' description: '

The name of the new queue. The following limits apply to this name:

Queue URLs and names are case-sensitive.

' Attributes: $ref: '#/components/schemas/QueueAttributeMap' description: '

A map of attributes with their corresponding values.

The following lists the names, descriptions, and values of the special request parameters that the CreateQueue action uses:

The following attributes apply only to server-side-encryption:

The following attributes apply only to FIFO (first-in-first-out) queues:

' tags: $ref: '#/components/schemas/TagMap' description: '

Add cost allocation tags to the specified Amazon SQS queue. For an overview, see Tagging Your Amazon SQS Queues in the Amazon Simple Queue Service Developer Guide.

When you use queue tags, keep the following guidelines in mind:

For a full list of tag restrictions, see Limits Related to Queues in the Amazon Simple Queue Service Developer Guide.

To be able to tag a queue on creation, you must have the sqs:CreateQueue and sqs:TagQueue permissions.

Cross-account permissions don''t apply to this action. For more information, see Grant Cross-Account Permissions to a Role and a User Name in the Amazon Simple Queue Service Developer Guide.

' description:

DeleteMessageBatchRequestEntryList: type: array items: $ref: '#/components/schemas/DeleteMessageBatchRequestEntry' xml: wrapped: false DeleteMessageBatchRequest: type: object required: - QueueUrl - Entries title: DeleteMessageBatchRequest properties: QueueUrl: $ref: '#/components/schemas/String' description:

The URL of the Amazon SQS queue from which messages are deleted.

Queue URLs and names are case-sensitive.

Entries: $ref: '#/components/schemas/DeleteMessageBatchRequestEntryList' description: A list of receipt handles for the messages to be deleted. description:

DeleteMessageBatchResultEntryList: type: array items: $ref: '#/components/schemas/DeleteMessageBatchResultEntry' xml: wrapped: false DeleteMessageBatchResultEntry: type: object required: - Id properties: Id: $ref: '#/components/schemas/String' description: Represents a successfully deleted message. description: 'Encloses the Id of an entry in DeleteMessageBatch. ' DeleteMessageRequest: type: object required: - QueueUrl - ReceiptHandle title: DeleteMessageRequest properties: QueueUrl: $ref: '#/components/schemas/String' description:

The URL of the Amazon SQS queue from which messages are deleted.

Queue URLs and names are case-sensitive.

ReceiptHandle: $ref: '#/components/schemas/String' description: The receipt handle associated with the message to delete. description:

DeleteQueueRequest: type: object required: - QueueUrl title: DeleteQueueRequest properties: QueueUrl: $ref: '#/components/schemas/String' description:

The URL of the Amazon SQS queue to delete.

Queue URLs and names are case-sensitive.

description:

GetQueueAttributesRequest: type: object required: - QueueUrl title: GetQueueAttributesRequest properties: QueueUrl: $ref: '#/components/schemas/String' description:

The URL of the Amazon SQS queue whose attribute information is retrieved.

Queue URLs and names are case-sensitive.

AttributeNames: $ref: '#/components/schemas/AttributeNameList' description: '

A list of attributes for which to retrieve information.

In the future, new attributes might be added. If you write code that calls this action, we recommend that you structure your code so that it can handle new attributes gracefully.

The following attributes are supported:

The following attributes apply only to server-side-encryption:

The following attributes apply only to FIFO (first-in-first-out) queues:

' description:

GetQueueUrlRequest: type: object required: - QueueName title: GetQueueUrlRequest properties: QueueName: $ref: '#/components/schemas/String' description: '

The name of the queue whose URL must be fetched. Maximum 80 characters. Valid values: alphanumeric characters, hyphens (-), and underscores (_).

Queue URLs and names are case-sensitive.

' QueueOwnerAWSAccountId: $ref: '#/components/schemas/String' description: The AWS account ID of the account that created the queue. description:

ListDeadLetterSourceQueuesRequest: type: object required: - QueueUrl title: ListDeadLetterSourceQueuesRequest properties: QueueUrl: $ref: '#/components/schemas/String' description:

The URL of a dead-letter queue.

Queue URLs and names are case-sensitive.

description:

QueueUrlList: type: array items: $ref: '#/components/schemas/String' xml: wrapped: false ListQueueTagsRequest: type: object required: - QueueUrl title: ListQueueTagsRequest properties: QueueUrl: $ref: '#/components/schemas/String' description: The URL of the queue. ListQueuesRequest: type: object title: ListQueuesRequest properties: QueueNamePrefix: $ref: '#/components/schemas/String' description:

A string to use for filtering the list results. Only those queues whose name begins with the specified string are returned.

Queue URLs and names are case-sensitive.

description:

MessageSystemAttributeMap: type: object additionalProperties: $ref: '#/components/schemas/String' xml: wrapped: false MessageBodyAttributeMap: type: object additionalProperties: $ref: '#/components/schemas/MessageAttributeValue' xml: wrapped: false Message: type: object properties: MessageId: $ref: '#/components/schemas/String' description: A unique identifier for the message. A MessageIdis considered unique across all AWS accounts for an extended period of time. ReceiptHandle: $ref: '#/components/schemas/String' description: 'An identifier associated with the act of receiving the message. A new receipt handle is returned every time you receive a message. When deleting a message, you provide the last received receipt handle to delete the message.' MD5OfBody: $ref: '#/components/schemas/String' description: An MD5 digest of the non-URL-encoded message body string. Body: $ref: '#/components/schemas/String' description: The message's contents (not URL-encoded). Attributes: $ref: '#/components/schemas/MessageSystemAttributeMap' description: '

A map of the attributes requested in ReceiveMessage to their respective values. Supported attributes:

ApproximateFirstReceiveTimestamp and SentTimestamp are each returned as an integer representing the epoch time in milliseconds.

' MD5OfMessageAttributes: $ref: '#/components/schemas/String' description: 'An MD5 digest of the non-URL-encoded message attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information about MD5, see RFC1321.' MessageAttributes: $ref: '#/components/schemas/MessageBodyAttributeMap' description: 'Each message attribute consists of a Name, Type, and Value. For more information, see Amazon SQS Message Attributes in the Amazon Simple Queue Service Developer Guide.' description: An Amazon SQS message. MessageAttributeNameList: type: array items: $ref: '#/components/schemas/MessageAttributeName' xml: wrapped: false StringList: type: array items: $ref: '#/components/schemas/String' MessageBodySystemAttributeMap: type: object additionalProperties: $ref: '#/components/schemas/MessageSystemAttributeValue' xml: wrapped: false MessageList: type: array items: $ref: '#/components/schemas/Message' xml: wrapped: false MessageSystemAttributeName: type: string enum: - SenderId - SentTimestamp - ApproximateReceiveCount - ApproximateFirstReceiveTimestamp - SequenceNumber - MessageDeduplicationId - MessageGroupId - AWSTraceHeader MessageSystemAttributeNameForSends: type: string enum: - AWSTraceHeader PurgeQueueRequest: type: object required: - QueueUrl title: PurgeQueueRequest properties: QueueUrl: $ref: '#/components/schemas/String' description:

The URL of the queue from which the PurgeQueue action deletes messages.

Queue URLs and names are case-sensitive.

description:

ReceiveMessageRequest: type: object required: - QueueUrl title: ReceiveMessageRequest properties: QueueUrl: $ref: '#/components/schemas/String' description:

The URL of the Amazon SQS queue from which messages are received.

Queue URLs and names are case-sensitive.

AttributeNames: $ref: '#/components/schemas/AttributeNameList' description: '

A list of attributes that need to be returned along with each message. These attributes include:

' MessageAttributeNames: $ref: '#/components/schemas/MessageAttributeNameList' description: '

The name of the message attribute, where N is the index.

When using ReceiveMessage, you can send a list of attribute names to receive, or you can return all of the attributes by specifying All or .* in your request. You can also use all message attributes starting with a prefix, for example bar.*.

' MaxNumberOfMessages: $ref: '#/components/schemas/Integer' description: 'The maximum number of messages to return. Amazon SQS never returns more messages than this value (however, fewer messages might be returned). Valid values: 1 to 10. Default: 1.' VisibilityTimeout: $ref: '#/components/schemas/Integer' description: The duration (in seconds) that the received messages are hidden from subsequent retrieve requests after being retrieved by a ReceiveMessage request. WaitTimeSeconds: $ref: '#/components/schemas/Integer' description: 'The duration (in seconds) for which the call waits for a message to arrive in the queue before returning. If a message is available, the call returns sooner than WaitTimeSeconds. If no messages are available and the wait time expires, the call returns successfully with an empty list of messages.' ReceiveRequestAttemptId: $ref: '#/components/schemas/String' description: '

This parameter applies only to FIFO (first-in-first-out) queues.

The token used for deduplication of ReceiveMessage calls. If a networking issue occurs after a ReceiveMessage action, and instead of a response you receive a generic error, you can retry the same action with an identical ReceiveRequestAttemptId to retrieve the same set of messages, even if their visibility timeout has not yet expired.

The length of ReceiveRequestAttemptId is 128 characters. ReceiveRequestAttemptId can contain alphanumeric characters (a-z, A-Z, 0-9) and punctuation (!"#$%&''()*+,-./:;<=>?@[\]^_`{|}~).

For best practices of using ReceiveRequestAttemptId, see Using the ReceiveRequestAttemptId Request Parameter in the Amazon Simple Queue Service Developer Guide.

' description:

RemovePermissionRequest: type: object required: - QueueUrl - Label title: RemovePermissionRequest properties: QueueUrl: $ref: '#/components/schemas/String' description:

The URL of the Amazon SQS queue from which permissions are removed.

Queue URLs and names are case-sensitive.

Label: $ref: '#/components/schemas/String' description: The identification of the permission to remove. This is the label added using the AddPermission action. description:

SendMessageBatchRequestEntryList: type: array items: $ref: '#/components/schemas/SendMessageBatchRequestEntry' xml: wrapped: false SendMessageBatchRequest: type: object required: - QueueUrl - Entries title: SendMessageBatchRequest properties: QueueUrl: $ref: '#/components/schemas/String' description:

The URL of the Amazon SQS queue to which batched messages are sent.

Queue URLs and names are case-sensitive.

Entries: $ref: '#/components/schemas/SendMessageBatchRequestEntryList' description: A list of SendMessageBatchRequestEntry items. description:

SendMessageBatchResultEntryList: type: array items: $ref: '#/components/schemas/SendMessageBatchResultEntry' xml: wrapped: false SendMessageBatchResultEntry: type: object required: - Id - MessageId - MD5OfMessageBody properties: Id: $ref: '#/components/schemas/String' description: An identifier for the message in this batch. MessageId: $ref: '#/components/schemas/String' description: An identifier for the message. MD5OfMessageBody: $ref: '#/components/schemas/String' description: 'An MD5 digest of the non-URL-encoded message attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information about MD5, see RFC1321.' MD5OfMessageAttributes: $ref: '#/components/schemas/String' description: 'An MD5 digest of the non-URL-encoded message attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information about MD5, see RFC1321.' MD5OfMessageSystemAttributes: $ref: '#/components/schemas/String' description: 'An MD5 digest of the non-URL-encoded message system attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information about MD5, see RFC1321.' SequenceNumber: $ref: '#/components/schemas/String' description: '

This parameter applies only to FIFO (first-in-first-out) queues.

The large, non-consecutive number that Amazon SQS assigns to each message.

The length of SequenceNumber is 128 bits. As SequenceNumber continues to increase for a particular MessageGroupId.

' description: 'Encloses a MessageId for a successfully-enqueued message in a SendMessageBatch. ' SendMessageRequest: type: object required: - QueueUrl - MessageBody title: SendMessageRequest properties: QueueUrl: $ref: '#/components/schemas/String' description:

The URL of the Amazon SQS queue to which a message is sent.

Queue URLs and names are case-sensitive.

MessageBody: $ref: '#/components/schemas/String' description: '

The message to send. The maximum string size is 256 KB.

A message can include only XML, JSON, and unformatted text. The following Unicode characters are allowed:

#x9 | #xA | #xD | #x20 to #xD7FF | #xE000 to #xFFFD | #x10000 to #x10FFFF

Any characters not included in this list will be rejected. For more information, see the W3C specification for characters.

' DelaySeconds: $ref: '#/components/schemas/Integer' description: '

The length of time, in seconds, for which to delay a specific message. Valid values: 0 to 900. Maximum: 15 minutes. Messages with a positive DelaySeconds value become available for processing after the delay period is finished. If you don''t specify a value, the default value for the queue applies.

When you set FifoQueue, you can''t set DelaySeconds per message. You can set this parameter only on a queue level.

' MessageAttributes: $ref: '#/components/schemas/MessageBodyAttributeMap' description: 'Each message attribute consists of a Name, Type, and Value. For more information, see Amazon SQS Message Attributes in the Amazon Simple Queue Service Developer Guide.' MessageSystemAttributes: $ref: '#/components/schemas/MessageBodySystemAttributeMap' description: '

The message system attribute to send. Each message system attribute consists of a Name, Type, and Value.

' MessageDeduplicationId: $ref: '#/components/schemas/String' description: '

This parameter applies only to FIFO (first-in-first-out) queues.

The token used for deduplication of sent messages. If a message with a particular MessageDeduplicationId is sent successfully, any messages sent with the same MessageDeduplicationId are accepted successfully but aren''t delivered during the 5-minute deduplication interval. For more information, see Exactly-Once Processing in the Amazon Simple Queue Service Developer Guide.

The MessageDeduplicationId is available to the consumer of the message (this can be useful for troubleshooting delivery issues).

If a message is sent successfully but the acknowledgement is lost and the message is resent with the same MessageDeduplicationId after the deduplication interval, Amazon SQS can''t detect duplicate messages.

Amazon SQS continues to keep track of the message deduplication ID even after the message is received and deleted.

The length of MessageDeduplicationId is 128 characters. MessageDeduplicationId can contain alphanumeric characters (a-z, A-Z, 0-9) and punctuation (!"#$%&''()*+,-./:;<=>?@[\]^_`{|}~).

For best practices of using MessageDeduplicationId, see Using the MessageDeduplicationId Property in the Amazon Simple Queue Service Developer Guide.

' MessageGroupId: $ref: '#/components/schemas/String' description: '

This parameter applies only to FIFO (first-in-first-out) queues.

The tag that specifies that a message belongs to a specific message group. Messages that belong to the same message group are processed in a FIFO manner (however, messages in different message groups might be processed out of order). To interleave multiple ordered streams within a single queue, use MessageGroupId values (for example, session data for multiple users). In this scenario, multiple consumers can process the queue, but the session data of each user is processed in a FIFO fashion.

The length of MessageGroupId is 128 characters. Valid values: alphanumeric characters and punctuation (!"#$%&''()*+,-./:;<=>?@[\]^_`{|}~).

For best practices of using MessageGroupId, see Using the MessageGroupId Property in the Amazon Simple Queue Service Developer Guide.

MessageGroupId is required for FIFO queues. You can''t use it for Standard queues.

' description:

SetQueueAttributesRequest: type: object required: - QueueUrl - Attributes title: SetQueueAttributesRequest properties: QueueUrl: $ref: '#/components/schemas/String' description:

The URL of the Amazon SQS queue whose attributes are set.

Queue URLs and names are case-sensitive.

Attributes: $ref: '#/components/schemas/QueueAttributeMap' description: '

A map of attributes to set.

The following lists the names, descriptions, and values of the special request parameters that the SetQueueAttributes action uses:

The following attributes apply only to server-side-encryption:

The following attribute applies only to FIFO (first-in-first-out) queues:

' description:

TagKeyList: type: array items: $ref: '#/components/schemas/TagKey' xml: wrapped: false TagQueueRequest: type: object required: - QueueUrl - Tags title: TagQueueRequest properties: QueueUrl: $ref: '#/components/schemas/String' description: The URL of the queue. Tags: $ref: '#/components/schemas/TagMap' description: The list of tags to be added to the specified queue. UntagQueueRequest: type: object required: - QueueUrl - TagKeys title: UntagQueueRequest properties: QueueUrl: $ref: '#/components/schemas/String' description: The URL of the queue. TagKeys: $ref: '#/components/schemas/TagKeyList' description: The list of tags to be removed from the specified queue. security: - hmac: []