Commit b654ca6
Michael Brewer
feat(trigger): data class and helper functions for lambda trigger events (#159)
* feat(trigger): class wrapper for events
Put together an intial set of common lambda trigger events
* build: fix build for python 3.6
* fix(linters): make the python linters happy
* tests: add missing test cases
* docs: Include some docstrings
Tracked down some of the AWS docs to inline with the dict wrapper
classes.
* feat(trigger): initial cognito triggers
* feat(trigger): add event_bridge_event
* feat(trigger): use consistent getter name
For cases when the dict name conflicts with a python builtin we should
use a consistent method name
* refactor: less copies passed around
* feat(trigger): add UserMigrationTriggerEvent
Add support for UserMigrationTriggerEvent and include better docstrings
* feat(trigger): cognito custom message and pre-auth
Add support for CustomMessageTriggerEvent and
PreAuthenticationTriggerEvent
* feat(trigger): cognito pre token and post auth
Add support for PreTokenGenerationTriggerEvent and
PostAuthenticationTriggerEvent
* tests(trigger): some extra checks
* chore(trigger): clean up and docs
Changes:
* Add some missing docs pull for various AWS Docs
* Fix SQS mapping
* Make docs consistent
* chore: consistent naming
* feat(trigger): Add api gateway proxy events
* chore: Add more docs
* fix(trigger): better type hinting
* feat(trigger): Add conveince methods
For both SNS and S3 event notifications we actually include a single
records, so we can have conveince metods to access popular resources
* feat(trigger): Create DictWrapper
Use new DictWrapper abstract class for the data classes that wrap an
event Dict
* feat(trigger): API gateway helper methods
* feat(trigger): Kinesis stream event
Add support for Kinesis stream events with a helper method to decode
data
* feat(trigger): Application load balancer event
Create BaseProxyEvent for some reusable code for the http proxy events
Add support for ALB events
* refactor(trigger): Split decompress and parse
For handling CloudWatchLogsEvent log data split the Decode and
decompress from the parse as CloudWatchLogsDecodedData
* feat(trigger): Some attribte caching
* fix(trigger): Init with __init__
* fix(trigger): Add missing __eq__
We don't need to include `_decompressed_logs_data` and `_json_logs_data`
in equality tests
* feat(trigger): unquote_plus s3 object key
* refactor(data_classes): rename package from trigger
* refactor(data_classes): Use DictWrapper consistently1 parent a25e3b1 commit b654ca6
File tree
32 files changed
+3497
-0
lines changed- aws_lambda_powertools/utilities/data_classes
- tests
- events
- functional
32 files changed
+3497
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
Lines changed: 38 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
0 commit comments