@jadpo/amazon-sqs
Amazon SQS: a queue's messages received as the app's events.
jadpo package add @jadpo/amazon-sqsAdds the newest version, skipping any that were withdrawn (yanked) and pre-releases such as 2.0.0-beta.1. --to 1.1.0 picks a version. Your app then calls it as AmazonSqs.v2012_11_05.
Use it in your app
@jadpo hasn't added a recipe to this package yet. A recipe is a working example of using the package in an app. After installing it, jadpo package show @jadpo/amazon-sqs lists its operations (the calls it makes to an outside API), functions and types, and the guide on installing and using a package shows how to add one to your app.
What this package can do
- Connects to one serviceIt sends requests to
the address its connection gives, and nowhere else. Your app gives it a connection to that service, with your own credentials. - Changes things at that service
messages.delete_messagechanges something there, such as sending a message or making a record, so calling it has an effect outside your app. - Can fail in ways your app must handle2 functions can fail:
messages.delete_messagecan fail withQueueDoesNotExistandReceiptHandleIsInvalid;messages.receive_messagecan fail withQueueDoesNotExist. Your app must say what happens when each does, and it won't compile until it does. - Works with Jadpo 0.6.0, Jadpo's newest releaseIt works with 0.4.0, 0.4.1 and 0.5.0 too. Each time a new Jadpo release comes out, jadpo.dev checks every package's newest version with it.0.4.0 · 0.4.1 · 0.5.0 · 0.6.0
jadpo.dev works out what this package can do from its code each time it checks a version, such as which services it calls and what personal data it sends, so the list doesn't depend on what its author says.
What it offersgenerated from the package's code
Operations
The calls this package makes to the outside API.
messages.delete_message
request POST / input DeleteMessageRequest changes idempotent fails QueueDoesNotExist fails ReceiptHandleIsInvalid
messages.receive_message
request POST / input ReceiveMessageRequest output ReceiveMessageResult fails QueueDoesNotExist
Types
The shapes of the values it takes and gives back.
DeleteMessageRequest= Object
The message to delete from its queue, by the handle it was received with.
queue_url: Text receipt_handle: Text
QueueMessage= Object
One message as SQS gives it: its id, the handle it is deleted by, and its body.
body: Text message_id: Text receipt_handle: Text
ReceiveMessageRequest= Object
Which queue to read, and how many of its messages at most.
max_number_of_messages: Int { min: 1, max: 10 }
queue_url: TextReceiveMessageResult= Object
The messages received, none when the queue had none to give.
messages: List<QueueMessage>?
Failures
The errors its calls can end with, which your app must handle.
QueueDoesNotExist
The queue the connection names doesn't exist.
kind not_found
ReceiptHandleIsInvalid
The handle isn't one of the queue's: the message was received too long ago, or by someone else.
kind rejected