{ "api_version": "2012-11-05", "type": "query", "result_wrapped": true, "signature_version": "v4", "service_full_name": "Amazon Simple Queue Service", "service_abbreviation": "Amazon SQS", "endpoint_prefix": "sqs", "xmlnamespace": "http://queue.amazonaws.com/doc/2012-11-05/", "documentation": "\n
Amazon Simple Queue Service (Amazon SQS) offers a reliable, highly scalable,\n hosted queue for storing messages as they travel between computers. By using\n Amazon SQS, developers can simply move data between distributed components of\n their applications that perform different tasks, without losing messages or\n requiring each component to be always available. Amazon SQS makes it easy to\n build an automated workflow, working in close conjunction with the Amazon\n Elastic Compute Cloud (Amazon EC2) and the other AWS infrastructure web\n services.
\n\nAmazon SQS works by exposing Amazon's web-scale messaging infrastructure as\n a web service. Any computer on the Internet can add or read messages without\n any installed software or special firewall configurations. Components of\n applications using Amazon SQS can run independently, and do not need to be on\n the same network, developed with the same technologies, or running at the same\n time.
\n\nVisit http://aws.amazon.com/sqs/\n for more information.
\n ", "operations": { "AddPermission": { "name": "AddPermission", "input": { "shape_name": "AddPermissionRequest", "type": "structure", "members": { "QueueUrl": { "shape_name": "String", "type": "string", "documentation": "\nThe URL of the SQS queue to take action on.
\n ", "required": true, "no_paramfile": true }, "Label": { "shape_name": "String", "type": "string", "documentation": "\nThe unique identification of the permission you're setting (e.g.,\n AliceSendMessage
). Constraints: Maximum 80 characters;\n alphanumeric characters, hyphens (-), and underscores (_) are allowed.
The AWS account number of the principal\n who will be given permission. The principal must have an AWS account, but does\n not need to be signed up for Amazon SQS.
\n ", "required": true }, "Actions": { "shape_name": "ActionNameList", "type": "list", "members": { "shape_name": "String", "type": "string", "documentation": null, "xmlname": "ActionName" }, "flattened": true, "documentation": "\nThe action the client wants to allow for the specified principal.
\n ", "required": true } }, "documentation": null }, "output": null, "errors": [ { "shape_name": "OverLimit", "type": "structure", "members": {}, "documentation": "\nThe operation that you requested would violate a limit. For example,\n ReceiveMessage returns this error if the maximum number of messages\n inflight has already been reached. AddPermission returns this error if\n the maximum number of permissions for the queue has already been reached.\n
\n " } ], "documentation": "\nThe AddPermission action adds a permission to a queue for a specific \n principal.\n This allows for sharing access to the queue.
\n\nWhen you create a queue, you have full control access rights for the queue.\n Only you (as owner of the queue) can grant or deny permissions to the queue.\n For more information about these permissions, see\n Shared\n Queues in the Amazon SQS Developer Guide.
\n\nAddPermission
writes an SQS-generated policy. If you want to\n write your own policy, use SetQueueAttributes to upload your policy. For more\n information about writing your own policy, see\n Appendix:\n The Access Policy Language in the Amazon SQS Developer Guide.
The URL of the SQS queue to take action on.
\n ", "required": true, "no_paramfile": true }, "ReceiptHandle": { "shape_name": "String", "type": "string", "documentation": "\nThe receipt handle associated with the message whose visibility timeout\n should be changed.
\n ", "required": true }, "VisibilityTimeout": { "shape_name": "Integer", "type": "integer", "documentation": "\nThe new value (in seconds) for the message's visibility timeout.
\n ", "required": true } }, "documentation": null }, "output": null, "errors": [ { "shape_name": "MessageNotInflight", "type": "structure", "members": {}, "documentation": "\nThe message referred to is not in flight.
\n " }, { "shape_name": "ReceiptHandleIsInvalid", "type": "structure", "members": {}, "documentation": "\nThe receipt handle provided is not valid.
\n " } ], "documentation": "\nThe ChangeMessageVisibility
action changes the visibility\n timeout of a specified message in a queue to a new value. The maximum allowed\n timeout value you can set the value to is 12 hours. This means you can't extend\n the timeout of a message in an existing queue to more than a total visibility\n timeout of 12 hours. (For more information visibility timeout, see Visibility\n Timeout in the Amazon SQS Developer Guide.)
For example, let's say you have a message and its default message visibility\n timeout is 30 minutes. You could call ChangeMessageVisiblity
with\n a value of two hours and the effective timeout would be two hours and 30\n minutes. When that time comes near you could again extend the time out by\n calling ChangeMessageVisiblity, but this time the maximum allowed timeout would\n be 9 hours and 30 minutes.
VisibilityTimeout
to an\n amount more than the maximum time left, Amazon SQS returns an error. It will\n not automatically recalculate and increase the timeout to the maximum time\n remaining.The URL of the SQS queue to take action on.
\n ", "required": true, "no_paramfile": true }, "Entries": { "shape_name": "ChangeMessageVisibilityBatchRequestEntryList", "type": "list", "members": { "shape_name": "ChangeMessageVisibilityBatchRequestEntry", "type": "structure", "members": { "Id": { "shape_name": "String", "type": "string", "documentation": "\nAn identifier for this particular receipt handle. This is used to communicate\n the result. Note that the Id
s of a batch request need to be\n unique within the request.
A receipt handle.
\n ", "required": true }, "VisibilityTimeout": { "shape_name": "Integer", "type": "integer", "documentation": "\nThe new value (in seconds) for the message's visibility timeout.
\n " } }, "documentation": "\nEncloses a receipt handle and an entry id for each message in\n ChangeMessageVisibilityBatch.
\n ", "xmlname": "ChangeMessageVisibilityBatchRequestEntry" }, "flattened": true, "documentation": "\nA list of receipt handles of the messages for which the visibility timeout\n must be changed.
\n ", "required": true } }, "documentation": null }, "output": { "shape_name": "ChangeMessageVisibilityBatchResult", "type": "structure", "members": { "Successful": { "shape_name": "ChangeMessageVisibilityBatchResultEntryList", "type": "list", "members": { "shape_name": "ChangeMessageVisibilityBatchResultEntry", "type": "structure", "members": { "Id": { "shape_name": "String", "type": "string", "documentation": "\nRepresents a message whose visibility timeout has been changed\n successfully.
\n ", "required": true } }, "documentation": "\nEncloses the id of an entry in ChangeMessageVisibilityBatch.
\n ", "xmlname": "ChangeMessageVisibilityBatchResultEntry" }, "flattened": true, "documentation": "\nA list of ChangeMessageVisibilityBatchResultEntrys.
\n ", "required": true }, "Failed": { "shape_name": "BatchResultErrorEntryList", "type": "list", "members": { "shape_name": "BatchResultErrorEntry", "type": "structure", "members": { "Id": { "shape_name": "String", "type": "string", "documentation": "\nThe id of an entry in a batch request.
\n ", "required": true }, "SenderFault": { "shape_name": "Boolean", "type": "boolean", "documentation": "\nWhether the error happened due to the sender's fault.
\n ", "required": true }, "Code": { "shape_name": "String", "type": "string", "documentation": "\nAn error code representing why the operation failed on this entry.
\n ", "required": true }, "Message": { "shape_name": "String", "type": "string", "documentation": "\nA message explaining why the operation failed on this entry.
\n " } }, "documentation": "\nThis is used in the responses of batch API to give a detailed description\n of the result of an operation on each entry in the request.
\n ", "xmlname": "BatchResultErrorEntry" }, "flattened": true, "documentation": "\nA list of BatchResultErrorEntrys.
\n ", "required": true } }, "documentation": null }, "errors": [ { "shape_name": "TooManyEntriesInBatchRequest", "type": "structure", "members": {}, "documentation": "\nBatch request contains more number of entries than permissible.
\n " }, { "shape_name": "EmptyBatchRequest", "type": "structure", "members": {}, "documentation": "\nBatch request does not contain an entry.
\n " }, { "shape_name": "BatchEntryIdsNotDistinct", "type": "structure", "members": {}, "documentation": "\nTwo or more batch entries have the same Id
in the request.
The Id
of a batch entry in a batch request does not abide\n by the specification.
This is a batch version of ChangeMessageVisibility. It takes\n multiple receipt handles and performs the operation on each of the them. The\n result of the operation on each message is reported individually in the\n response.
\n " }, "CreateQueue": { "name": "CreateQueue", "input": { "shape_name": "CreateQueueRequest", "type": "structure", "members": { "QueueName": { "shape_name": "String", "type": "string", "documentation": "\nThe name for the queue to be created.
\n ", "required": true }, "Attributes": { "shape_name": "AttributeMap", "type": "map", "keys": { "shape_name": "QueueAttributeName", "type": "string", "enum": [ "Policy", "VisibilityTimeout", "MaximumMessageSize", "MessageRetentionPeriod", "ApproximateNumberOfMessages", "ApproximateNumberOfMessagesNotVisible", "CreatedTimestamp", "LastModifiedTimestamp", "QueueArn", "ApproximateNumberOfMessagesDelayed", "DelaySeconds", "ReceiveMessageWaitTimeSeconds" ], "documentation": "\nThe name of a queue attribute.
\n ", "xmlname": "Name" }, "members": { "shape_name": "String", "type": "string", "documentation": "\nThe value of a queue attribute.
\n ", "xmlname": "Value" }, "flattened": true, "xmlname": "Attribute", "documentation": "\nA map of attributes with their corresponding values.
\n " } }, "documentation": null }, "output": { "shape_name": "CreateQueueResult", "type": "structure", "members": { "QueueUrl": { "shape_name": "String", "type": "string", "documentation": "\nThe URL for the created SQS queue.
\n " } }, "documentation": null }, "errors": [ { "shape_name": "QueueDeletedRecently", "type": "structure", "members": {}, "documentation": "\nYou must wait 60 seconds after deleting a queue before you can create another\n with the same name.
\n " }, { "shape_name": "QueueNameExists", "type": "structure", "members": {}, "documentation": "\nA queue already exists with this name. SQS returns this error only if the request includes\n attributes whose values differ from those of the existing queue.
\n " } ], "documentation": "\nThe CreateQueue
action creates a new queue, or returns the URL\n of an existing one. When you request CreateQueue
, you provide a\n name for the queue. To successfully create a new queue, you must provide a name\n that is unique within the scope of your own queues.
You may pass one or more attributes in the request. If you do not\n provide a value for any attribute, the queue will have the default value\n for that attribute. Permitted attributes are the same that can be set\n using SetQueueAttributes.
\n\nIf you provide the name of an existing queue, a new queue isn't created.\n If the values of attributes provided with the request match up with those\n on the existing queue, the queue URL is returned. Otherwise, a\n QueueNameExists
error is returned.
The URL of the SQS queue to take action on.
\n ", "required": true, "no_paramfile": true }, "ReceiptHandle": { "shape_name": "String", "type": "string", "documentation": "\nThe receipt handle associated with the message to delete.
\n ", "required": true } }, "documentation": null }, "output": null, "errors": [ { "shape_name": "InvalidIdFormat", "type": "structure", "members": {}, "documentation": "\nThe receipt handle is not valid for the current version.
\n " }, { "shape_name": "ReceiptHandleIsInvalid", "type": "structure", "members": {}, "documentation": "\nThe receipt handle provided is not valid.
\n " } ], "documentation": "\nThe DeleteMessage
action unconditionally removes the specified\n message from the specified queue. Even if the message is locked by another\n reader due to the visibility timeout setting, it is still deleted from the\n queue.
The URL of the SQS queue to take action on.
\n ", "required": true, "no_paramfile": true }, "Entries": { "shape_name": "DeleteMessageBatchRequestEntryList", "type": "list", "members": { "shape_name": "DeleteMessageBatchRequestEntry", "type": "structure", "members": { "Id": { "shape_name": "String", "type": "string", "documentation": "\nAn identifier for this particular receipt handle. This is used to\n communicate the result. Note that the Id
s of a batch request\n need to be unique within the request.
A receipt handle.
\n ", "required": true } }, "documentation": "\nEncloses a receipt handle and an identifier for it.
\n ", "xmlname": "DeleteMessageBatchRequestEntry" }, "flattened": true, "documentation": "\nA list of receipt handles for the messages to be deleted.
\n ", "required": true } }, "documentation": null }, "output": { "shape_name": "DeleteMessageBatchResult", "type": "structure", "members": { "Successful": { "shape_name": "DeleteMessageBatchResultEntryList", "type": "list", "members": { "shape_name": "DeleteMessageBatchResultEntry", "type": "structure", "members": { "Id": { "shape_name": "String", "type": "string", "documentation": "\nRepresents a successfully deleted message.
\n ", "required": true } }, "documentation": "\nEncloses the id an entry in DeleteMessageBatch.
\n ", "xmlname": "DeleteMessageBatchResultEntry" }, "flattened": true, "documentation": "\nA list of DeleteMessageBatchResultEntrys.
\n ", "required": true }, "Failed": { "shape_name": "BatchResultErrorEntryList", "type": "list", "members": { "shape_name": "BatchResultErrorEntry", "type": "structure", "members": { "Id": { "shape_name": "String", "type": "string", "documentation": "\nThe id of an entry in a batch request.
\n ", "required": true }, "SenderFault": { "shape_name": "Boolean", "type": "boolean", "documentation": "\nWhether the error happened due to the sender's fault.
\n ", "required": true }, "Code": { "shape_name": "String", "type": "string", "documentation": "\nAn error code representing why the operation failed on this entry.
\n ", "required": true }, "Message": { "shape_name": "String", "type": "string", "documentation": "\nA message explaining why the operation failed on this entry.
\n " } }, "documentation": "\nThis is used in the responses of batch API to give a detailed description\n of the result of an operation on each entry in the request.
\n ", "xmlname": "BatchResultErrorEntry" }, "flattened": true, "documentation": "\nA list of BatchResultErrorEntrys.
\n ", "required": true } }, "documentation": null }, "errors": [ { "shape_name": "TooManyEntriesInBatchRequest", "type": "structure", "members": {}, "documentation": "\nBatch request contains more number of entries than permissible.
\n " }, { "shape_name": "EmptyBatchRequest", "type": "structure", "members": {}, "documentation": "\nBatch request does not contain an entry.
\n " }, { "shape_name": "BatchEntryIdsNotDistinct", "type": "structure", "members": {}, "documentation": "\nTwo or more batch entries have the same Id
in the request.
The Id
of a batch entry in a batch request does not abide\n by the specification.
This is a batch version of DeleteMessage. It takes multiple\n receipt handles and deletes each one of the messages. The result of the delete\n operation on each message is reported individually in the response.
\n " }, "DeleteQueue": { "name": "DeleteQueue", "input": { "shape_name": "DeleteQueueRequest", "type": "structure", "members": { "QueueUrl": { "shape_name": "String", "type": "string", "documentation": "\nThe URL of the SQS queue to take action on.
\n ", "required": true, "no_paramfile": true } }, "documentation": null }, "output": null, "errors": [], "documentation": "\nThis action unconditionally deletes the queue specified by the queue URL. Use\n this operation WITH CARE! The queue is deleted even if it is NOT empty.
\nOnce a queue has been deleted, the queue name is unavailable for use with new\n queues for 60 seconds.
\n " }, "GetQueueAttributes": { "name": "GetQueueAttributes", "input": { "shape_name": "GetQueueAttributesRequest", "type": "structure", "members": { "QueueUrl": { "shape_name": "String", "type": "string", "documentation": "\nThe URL of the SQS queue to take action on.
\n ", "required": true, "no_paramfile": true }, "AttributeNames": { "shape_name": "AttributeNameList", "type": "list", "members": { "shape_name": "QueueAttributeName", "type": "string", "enum": [ "Policy", "VisibilityTimeout", "MaximumMessageSize", "MessageRetentionPeriod", "ApproximateNumberOfMessages", "ApproximateNumberOfMessagesNotVisible", "CreatedTimestamp", "LastModifiedTimestamp", "QueueArn", "ApproximateNumberOfMessagesDelayed", "DelaySeconds", "ReceiveMessageWaitTimeSeconds" ], "documentation": null, "xmlname": "AttributeName" }, "flattened": true, "documentation": "\nA list of attributes to retrieve information for.
\n " } }, "documentation": null }, "output": { "shape_name": "GetQueueAttributesResult", "type": "structure", "members": { "Attributes": { "shape_name": "AttributeMap", "type": "map", "keys": { "shape_name": "QueueAttributeName", "type": "string", "enum": [ "Policy", "VisibilityTimeout", "MaximumMessageSize", "MessageRetentionPeriod", "ApproximateNumberOfMessages", "ApproximateNumberOfMessagesNotVisible", "CreatedTimestamp", "LastModifiedTimestamp", "QueueArn", "ApproximateNumberOfMessagesDelayed", "DelaySeconds", "ReceiveMessageWaitTimeSeconds" ], "documentation": "\nThe name of a queue attribute.
\n ", "xmlname": "Name" }, "members": { "shape_name": "String", "type": "string", "documentation": "\nThe value of a queue attribute.
\n ", "xmlname": "Value" }, "flattened": true, "xmlname": "Attribute", "documentation": "\nA map of attributes to the respective values.
\n " } }, "documentation": null }, "errors": [ { "shape_name": "InvalidAttributeName", "type": "structure", "members": {}, "documentation": "\nThe attribute referred to does not exist.
\n " } ], "documentation": "\nGets attributes for the specified queue. The following attributes are supported:\n
All
- returns all values.ApproximateNumberOfMessages
- returns the approximate\n number of visible messages in a queue. For more information, see\n Resources Required to Process Messages in the Amazon SQS Developer\n Guide.ApproximateNumberOfMessagesNotVisible
- returns the\n approximate number of messages that are not timed-out and not deleted. \n For more information, see Resources Required to Process Messages in the\n Amazon SQS Developer Guide.VisibilityTimeout
- returns the visibility timeout for\n the queue. For more information about visibility timeout, see\n Visibility Timeout in the Amazon SQS Developer Guide.CreatedTimestamp
- returns the time when the queue was\n created (epoch time in seconds).LastModifiedTimestamp
- returns the time when the queue\n was last changed (epoch time in seconds).Policy
- returns the queue's policy.MaximumMessageSize
- returns the limit of how many bytes\n a message can contain before Amazon SQS rejects it.MessageRetentionPeriod
- returns the number of seconds\n Amazon SQS retains a message.QueueArn
- returns the queue's Amazon resource name\n (ARN).ApproximateNumberOfMessagesDelayed
- returns the\n approximate number of messages that are pending to be added to the\n queue.DelaySeconds
- returns the default delay on the queue\n in seconds.ReceiveMessageWaitTimeSeconds
- returns the time for which a\n ReceiveMessage call will wait for a message to arrive.The name of the queue whose URL must be fetched.
\n ", "required": true }, "QueueOwnerAWSAccountId": { "shape_name": "String", "type": "string", "documentation": "\nThe AWS account number of the queue's owner.
\n " } }, "documentation": null }, "output": { "shape_name": "GetQueueUrlResult", "type": "structure", "members": { "QueueUrl": { "shape_name": "String", "type": "string", "documentation": "\nThe URL for the queue.
\n " } }, "documentation": null }, "errors": [ { "shape_name": "QueueDoesNotExist", "type": "structure", "members": {}, "documentation": "\nThe queue referred to does not exist.
\n " } ], "documentation": "\nThe GetQueueUrl
action returns the URL of an existing queue.
A string to use for filtering the list results. Only those queues whose name\n begins with the specified string are returned.
\n " } }, "documentation": null }, "output": { "shape_name": "ListQueuesResult", "type": "structure", "members": { "QueueUrls": { "shape_name": "QueueUrlList", "type": "list", "members": { "shape_name": "String", "type": "string", "documentation": null, "xmlname": "QueueUrl" }, "flattened": true, "documentation": "\nA list of queue URLs, up to 1000 entries.
\n " } }, "documentation": null }, "errors": [], "documentation": "\nReturns a list of your queues.
\n " }, "ReceiveMessage": { "name": "ReceiveMessage", "input": { "shape_name": "ReceiveMessageRequest", "type": "structure", "members": { "QueueUrl": { "shape_name": "String", "type": "string", "documentation": "\nThe URL of the SQS queue to take action on.
\n ", "required": true, "no_paramfile": true }, "AttributeNames": { "shape_name": "AttributeNameList", "type": "list", "members": { "shape_name": "QueueAttributeName", "type": "string", "enum": [ "Policy", "VisibilityTimeout", "MaximumMessageSize", "MessageRetentionPeriod", "ApproximateNumberOfMessages", "ApproximateNumberOfMessagesNotVisible", "CreatedTimestamp", "LastModifiedTimestamp", "QueueArn", "ApproximateNumberOfMessagesDelayed", "DelaySeconds", "ReceiveMessageWaitTimeSeconds" ], "documentation": null, "xmlname": "AttributeName" }, "flattened": true, "documentation": "\nA list of attributes that need to be returned along with each message.\n The set of valid attributes are [SenderId, ApproximateFirstReceiveTimestamp,\n ApproximateReceiveCount, SentTimestamp].\n
\n " }, "MaxNumberOfMessages": { "shape_name": "Integer", "type": "integer", "documentation": "\nThe maximum number of messages to return. Amazon SQS never returns more\n messages than this value but may return fewer.
\n\nAll of the messages are not necessarily returned.
\n " }, "VisibilityTimeout": { "shape_name": "Integer", "type": "integer", "documentation": "\nThe duration (in seconds) that the received messages are hidden from\n subsequent retrieve requests after being retrieved by a\n ReceiveMessage
request.
The duration (in seconds) for which the call will wait for a message to arrive\n in the queue before returning. If a message is available, the call will\n return sooner than WaitTimeSeconds.
\n " } }, "documentation": null }, "output": { "shape_name": "ReceiveMessageResult", "type": "structure", "members": { "Messages": { "shape_name": "MessageList", "type": "list", "members": { "shape_name": "Message", "type": "structure", "members": { "MessageId": { "shape_name": "String", "type": "string", "documentation": null }, "ReceiptHandle": { "shape_name": "String", "type": "string", "documentation": null }, "MD5OfBody": { "shape_name": "String", "type": "string", "documentation": null }, "Body": { "shape_name": "String", "type": "string", "documentation": null }, "Attributes": { "shape_name": "AttributeMap", "type": "map", "keys": { "shape_name": "QueueAttributeName", "type": "string", "enum": [ "Policy", "VisibilityTimeout", "MaximumMessageSize", "MessageRetentionPeriod", "ApproximateNumberOfMessages", "ApproximateNumberOfMessagesNotVisible", "CreatedTimestamp", "LastModifiedTimestamp", "QueueArn", "ApproximateNumberOfMessagesDelayed", "DelaySeconds", "ReceiveMessageWaitTimeSeconds" ], "documentation": "\nThe name of a queue attribute.
\n ", "xmlname": "Name" }, "members": { "shape_name": "String", "type": "string", "documentation": "\nThe value of a queue attribute.
\n ", "xmlname": "Value" }, "flattened": true, "xmlname": "Attribute", "documentation": null } }, "documentation": null, "xmlname": "Message" }, "flattened": true, "documentation": "\nA list of messages.
\n " } }, "documentation": null }, "errors": [ { "shape_name": "OverLimit", "type": "structure", "members": {}, "documentation": "\nThe operation that you requested would violate a limit. For example,\n ReceiveMessage returns this error if the maximum number of messages\n inflight has already been reached. AddPermission returns this error if\n the maximum number of permissions for the queue has already been reached.\n
\n " } ], "documentation": "\nRetrieves one or more messages from the specified queue, including the message\n body and message ID of each message. Messages returned by this action stay in\n the queue until you delete them. However, once a message is returned to a\n ReceiveMessage
request, it is not returned on subsequent\n ReceiveMessage
requests\n for the duration of the VisibilityTimeout
. If you do not specify a\n VisibilityTimeout
in the request, the overall visibility timeout for the queue\n is used for the returned messages.
If a message is available in the queue, the call will return immediately. Otherwise,\n it will wait up to WaitTimeSeconds
for a message to arrive. If you do not specify\n WaitTimeSeconds
in the request, the queue attribute\n ReceiveMessageWaitTimeSeconds is used to determine how long to wait.
You could ask for additional information about each message through the attributes.\n Attributes that can be requested are [SenderId, ApproximateFirstReceiveTimestamp,\n ApproximateReceiveCount, SentTimestamp]
.
The URL of the SQS queue to take action on.
\n ", "required": true, "no_paramfile": true }, "Label": { "shape_name": "String", "type": "string", "documentation": "\nThe identification of the permission to remove. This is the label added with\n the AddPermission operation.
\n ", "required": true } }, "documentation": null }, "output": null, "errors": [], "documentation": "\nThe RemovePermission
action revokes any permissions in the queue\n policy that matches the specified Label
parameter. Only the owner\n of the queue can remove permissions.
The URL of the SQS queue to take action on.
\n ", "required": true, "no_paramfile": true }, "MessageBody": { "shape_name": "String", "type": "string", "documentation": "\nThe message to send.
\n ", "required": true }, "DelaySeconds": { "shape_name": "Integer", "type": "integer", "documentation": "\nThe number of seconds the message has to be delayed.
\n " } }, "documentation": null }, "output": { "shape_name": "SendMessageResult", "type": "structure", "members": { "MD5OfMessageBody": { "shape_name": "String", "type": "string", "documentation": "\nAn MD5 digest of the non-URL-encoded message body string. This can be used to\n verify that SQS received the message correctly. SQS first URL decodes the\n message before creating the MD5 digest. For information about MD5, go to http://faqs.org/rfcs/rfc1321.html.
\n " }, "MessageId": { "shape_name": "String", "type": "string", "documentation": "\nThe message ID of the message added to the queue.
\n " } }, "documentation": null }, "errors": [ { "shape_name": "InvalidMessageContents", "type": "structure", "members": {}, "documentation": "\nThe message contains characters outside the allowed set.
\n " } ], "documentation": "\nThe SendMessage
action delivers a message to the specified\n queue.
The URL of the SQS queue to take action on.
\n ", "required": true, "no_paramfile": true }, "Entries": { "shape_name": "SendMessageBatchRequestEntryList", "type": "list", "members": { "shape_name": "SendMessageBatchRequestEntry", "type": "structure", "members": { "Id": { "shape_name": "String", "type": "string", "documentation": "\nAn identifier for the message in this batch. This is used to communicate\n the result. Note that the the Id
s of a batch request need to\n be unique within the request.
Body of the message.
\n ", "required": true }, "DelaySeconds": { "shape_name": "Integer", "type": "integer", "documentation": "\nThe number of seconds for which the message has to be delayed.
\n " } }, "documentation": "\nContains the details of a single SQS message along with a Id
.
A list of SendMessageBatchRequestEntrys.
\n ", "required": true } }, "documentation": null }, "output": { "shape_name": "SendMessageBatchResult", "type": "structure", "members": { "Successful": { "shape_name": "SendMessageBatchResultEntryList", "type": "list", "members": { "shape_name": "SendMessageBatchResultEntry", "type": "structure", "members": { "Id": { "shape_name": "String", "type": "string", "documentation": "\nAn identifier for the message in this batch.
\n ", "required": true }, "MessageId": { "shape_name": "String", "type": "string", "documentation": "\nAn identifier for the message.
\n ", "required": true }, "MD5OfMessageBody": { "shape_name": "String", "type": "string", "documentation": "\nAn MD5 digest of the non-URL-encoded message body string. This can be used to\n verify that SQS received the message correctly. SQS first URL decodes the\n message before creating the MD5 digest. For information about MD5, go to http://faqs.org/rfcs/rfc1321.html.
\n ", "required": true } }, "documentation": "\nEncloses a message ID for successfully enqueued message of a\n SendMessageBatch.
\n ", "xmlname": "SendMessageBatchResultEntry" }, "flattened": true, "documentation": "\nA list of SendMessageBatchResultEntrys.
\n ", "required": true }, "Failed": { "shape_name": "BatchResultErrorEntryList", "type": "list", "members": { "shape_name": "BatchResultErrorEntry", "type": "structure", "members": { "Id": { "shape_name": "String", "type": "string", "documentation": "\nThe id of an entry in a batch request.
\n ", "required": true }, "SenderFault": { "shape_name": "Boolean", "type": "boolean", "documentation": "\nWhether the error happened due to the sender's fault.
\n ", "required": true }, "Code": { "shape_name": "String", "type": "string", "documentation": "\nAn error code representing why the operation failed on this entry.
\n ", "required": true }, "Message": { "shape_name": "String", "type": "string", "documentation": "\nA message explaining why the operation failed on this entry.
\n " } }, "documentation": "\nThis is used in the responses of batch API to give a detailed description\n of the result of an operation on each entry in the request.
\n ", "xmlname": "BatchResultErrorEntry" }, "flattened": true, "documentation": "\nA list of BatchResultErrorEntrys with the error detail about each\n message that could not be enqueued.
\n ", "required": true } }, "documentation": null }, "errors": [ { "shape_name": "TooManyEntriesInBatchRequest", "type": "structure", "members": {}, "documentation": "\nBatch request contains more number of entries than permissible.
\n " }, { "shape_name": "EmptyBatchRequest", "type": "structure", "members": {}, "documentation": "\nBatch request does not contain an entry.
\n " }, { "shape_name": "BatchEntryIdsNotDistinct", "type": "structure", "members": {}, "documentation": "\nTwo or more batch entries have the same Id
in the request.
The length of all the messages put together is more than the limit.
\n " }, { "shape_name": "InvalidBatchEntryId", "type": "structure", "members": {}, "documentation": "\nThe Id
of a batch entry in a batch request does not abide\n by the specification.
This is a batch version of SendMessage. It takes\n multiple messages and adds each of them to the queue. The result of each \n add operation is reported individually in the response.
\n " }, "SetQueueAttributes": { "name": "SetQueueAttributes", "input": { "shape_name": "SetQueueAttributesRequest", "type": "structure", "members": { "QueueUrl": { "shape_name": "String", "type": "string", "documentation": "\nThe URL of the SQS queue to take action on.
\n ", "required": true, "no_paramfile": true }, "Attributes": { "shape_name": "AttributeMap", "type": "map", "keys": { "shape_name": "QueueAttributeName", "type": "string", "enum": [ "Policy", "VisibilityTimeout", "MaximumMessageSize", "MessageRetentionPeriod", "ApproximateNumberOfMessages", "ApproximateNumberOfMessagesNotVisible", "CreatedTimestamp", "LastModifiedTimestamp", "QueueArn", "ApproximateNumberOfMessagesDelayed", "DelaySeconds", "ReceiveMessageWaitTimeSeconds" ], "documentation": "\nThe name of a queue attribute.
\n ", "xmlname": "Name" }, "members": { "shape_name": "String", "type": "string", "documentation": "\nThe value of a queue attribute.
\n ", "xmlname": "Value" }, "flattened": true, "xmlname": "Attribute", "documentation": "\nA map of attributes to set.
\n ", "required": true } }, "documentation": null }, "output": null, "errors": [ { "shape_name": "InvalidAttributeName", "type": "structure", "members": {}, "documentation": "\nThe attribute referred to does not exist.
\n " } ], "documentation": "\nSets the value of one or more queue attributes. Valid attributes that\n can be set are [VisibilityTimeout, Policy, MaximumMessageSize,\n MessageRetentionPeriod, ReceiveMessageWaitTimeSeconds].
\n " } }, "metadata": { "regions": { "us-east-1": "https://queue.amazonaws.com/", "ap-northeast-1": "https://ap-northeast-1.queue.amazonaws.com/", "sa-east-1": "https://sa-east-1.queue.amazonaws.com/", "ap-southeast-1": "https://ap-southeast-1.queue.amazonaws.com/", "ap-southeast-2": "https://ap-southeast-2.queue.amazonaws.com/", "us-west-2": "https://us-west-2.queue.amazonaws.com/", "us-west-1": "https://us-west-1.queue.amazonaws.com/", "eu-west-1": "https://eu-west-1.queue.amazonaws.com/", "us-gov-west-1": null, "cn-north-1": "https://sqs.cn-north-1.amazonaws.com.cn" }, "protocols": [ "https", "http" ] }, "retry": { "__default__": { "max_attempts": 5, "delay": { "type": "exponential", "base": "rand", "growth_factor": 2 }, "policies": { "general_socket_errors": { "applies_when": { "socket_errors": [ "GENERAL_CONNECTION_ERROR" ] } }, "general_server_error": { "applies_when": { "response": { "http_status_code": 500 } } }, "service_unavailable": { "applies_when": { "response": { "http_status_code": 503 } } }, "limit_exceeded": { "applies_when": { "response": { "http_status_code": 509 } } }, "request_limit_exceeded": { "applies_when": { "response": { "service_error_code": "RequestThrottled", "http_status_code": 403 } } } } } } }