SQSClient interacts with the AWS Simple Queue Service (SQS).
With it, the user can send messages to specified queues and list available queues in the current region.
SQSClient is included in both the dedicated sqs.js jslib bundle and the all-encompassing aws.js one, containing all the services clients.
Methods
Function | Description |
---|---|
sendMessage | Delivers a message to the specified queue. |
listQueues | Returns a list of your queues in the current region. |
Throws
SQSClient methods throw errors in case of failure.
Error | Condition |
---|---|
InvalidSignatureError | when using invalid credentials |
SQSServiceError | when AWS replied to the requested operation with an error |