powertools-lambda-python
powertools-lambda-python copied to clipboard
A developer toolkit to implement Serverless best practices and increase developer velocity.
feat(event_handler): Allow the ApiGatewayResolver to support an existing subclass of BaseProxyEvent
**Issue number:** #3267 ## Summary ### Changes > Allow the ApiGatewayResolver to support an existing subclass of BaseProxyEvent. The existing subclass can be a custom implementation, and allows overriding the...
### Why is this needed? The `extract_data_from_envelope` method name seems strange for customers to understand what it is for. We now have the opportunity to deprecate this method, add a...
**Issue number:** #3568 ## Summary ### Changes Add the `Any` return type to the event_source function definition. The `handler` argument already specifies that it will return `Any` and `event_source` returns...
### Expected Behaviour I *think* I would expect (global) middleware to be triggered when a not-found route is used. I have middleware that implements desirable behaviour even when the route...
**Issue number:** https://github.com/aws-powertools/aws-lambda-powertools-python/issues/2493 ## Summary ### Changes Adding the ability to create authentication using SigV4. ### User experience > Please share what the user experience looks like before and after...
### Use case I wan't to add variables to the logger for the duration of a request and get clean up for free without needing to explicitly call delete. This...
### Use case Similar to what we did in the Event Source Data Class - (https://github.com/aws-powertools/powertools-lambda-python/pull/1619), when customers are using `DynamoDBStreamModel`, we can unmarshal the values and create a better...
### Use case Have the same experience as SSM but Secrets Manager now that it's possible. It was quietly launched recently: https://aws.amazon.com/about-aws/whats-new/2023/11/aws-secrets-manager-batch-retrieval-secrets/ ### Solution/User Experience Same experience as `get_parameters_by_name`, as...
### What were you searching in the docs? (from Discord) When searching on how to validate an idempotency request, there's a note: > If we try to send the same...
### Use case The flag `log_uncaught_exceptions` doesn't work in the Lambda Runtime, so we need to remove it. ### Solution/User Experience Remove the `log_uncaught_exceptions` flag. ### Alternative solutions _No response_...