Parse SQS messages from lambda triggered SQS subscription
Project description
Lambda Parse SQS Messages
When creating a Lambda subscription to consume SQS events, it's possible to receive multiple messages at once function invocation. So, its necessary to parse message body and iterate over multiple events.
pip install lambda-parse-sqs
from lambda_parse_sqs import parse_messages
def lambda_handler(event, context):
messages = parse_messages(event)
for message in messages:
# Do wethever you want
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lambda_parse_sqs-0.2.2.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for lambda_parse_sqs-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04ab67278a41a5478f378f9b86dfc2b6517c42695ef62f11213a1b9587259731 |
|
MD5 | f46db9d910d5b7226ff4218c4258c6b0 |
|
BLAKE2b-256 | 6807d3514e7bd9f1df3041f47f2c2ac0698c207efa1872633a21d97bf1ef2fa9 |