Class Interface for AWS Lambda event.
Project description
Welcome to aws_lambda_event Documentation
This library provides Python Class interface, attribute auto-complete, type hint for AWS Lambda Events.
Example:
# An example lambda handler python module
import aws_lambda_event
# example S3 Put event
def handler(event, context):
event_obj = aws_lambda_event.S3PutEvent(event)
for record in event_obj.records:
# access attribute
_ = record.eventTime
# important attributes quick access alias
_ = record.bucket
_ = record.key
_ = record.etag
_ = record.size
...
List of Supported Event:
S3PutEvent
S3DeleteEvent
SNSTopicNotificationEvent
SQSEvent
DynamodbUpdateEvent
KinesisStreamEvent
KinesisFirehoseEvent
You can find the event JSON schema in two place:
AWS Lambda Event Source Mapping Official Document: https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html
Goto AWS Lambda Function Console -> Create Test Event -> Choose from Event template
Install
aws_lambda_event is released on PyPI, so all you need is:
$ pip install aws_lambda_event
To upgrade to latest version:
$ pip install --upgrade aws_lambda_event
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
File details
Details for the file aws_lambda_event-2.0.1.tar.gz
.
File metadata
- Download URL: aws_lambda_event-2.0.1.tar.gz
- Upload date:
- Size: 24.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba9d335bd8c5e22aa1682e498005fae8fd6c53f55f7fc78ab2a51be8ca2bb278 |
|
MD5 | 4c0245cad25616e19fac0a9ac0ae7f2f |
|
BLAKE2b-256 | 2443d1c0427280e7c58c6d346363a4ece254a89e8f3a0cf8c427863c8f11d5de |
File details
Details for the file aws_lambda_event-2.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: aws_lambda_event-2.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 36.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b791f14aa50ebd2ef52491399c7dae5b2ebc714a7617af446a9479a8dc69bf69 |
|
MD5 | cf30e2e078bc33e17b59bb15bca3a141 |
|
BLAKE2b-256 | 6d45e5fc4b3ed8d4fb482496f7fa90d1fe7a371b735f7beb2bf9974e27d62e5d |