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
Built Distribution
Close
Hashes for lambda_parse_sqs-0.1.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e0eb33f779ad876570a041b2651c03c3484cac12c792b9990bc50791e5d4cd5 |
|
MD5 | 78ee1718d9e46d75bd06e1dcc4b8e747 |
|
BLAKE2b-256 | bebea602de561b5599c1200d04c9608497ba6f5a7b3c22e3f97135ac34c9fa5b |