Closed
Description
Use case
When troubleshooting Lambdas, it is common to log the incoming Lambda Event object at the debug level.
Unfortunately, the Data Classes base class does not implement the __str__
method, so we are presented with only the class name and a memory location.
We should implement a __str__
method on DictWrapper
to recursively generate a Dict to be presented as a string.
Some Data Classes will need to blacklist certain properties, as these contain sensitive data, such as credentials.
Solution/User Experience
PR incoming.
Alternative solutions
No response
Acknowledgment
- This feature request meets Lambda Powertools Tenets
- Should this be considered in other Lambda Powertools languages? i.e. Java, TypeScript