powertools-lambda-python
powertools-lambda-python copied to clipboard
A developer toolkit to implement Serverless best practices and increase developer velocity.
### Link to your material https://github.com/aws-samples/multichannel-app-to-person-alerting ### Description Implemented idempotency into my multi-channel alerting solution, using the message ID sent with the API request as the idempotency token/key. ### Preferred...
### Use case Currently the `key` of the `conditions` of the feature flags only support that the values sent in the `context` are first level. It would be very interesting...
### Why is this needed? Memray is a memory profiler for Python. It can track memory allocations in Python code, in native extension modules, and in the Python interpreter itself....
### Use case Provide a method to return a `datetime` object to make it easier to manipulate for customers building APIs, webhooks, and observable systems. > [Docs](https://docs.powertools.aws.dev/lambda/python/latest/utilities/idempotency/#manipulating-the-idempotent-response) As of now,...
### Why is this needed? We need to replace pdoc3 with mkdocstrings to create better documentation for API and other utilities. ### Which area does this relate to? Automation ###...
### Use case HTTP resolver middlewares should have access to path parameters to help with use cases like resource-specific authnz, logging enrichment, etc. Access is already available in an undocumented...
### Expected Behaviour The `logger_handler` argument for a Logger instance should set the provided logger as the registered handler, regardless of what handlers are already set on `logging.getLogger()` outputs. ###...
### Static type checker used mypy (project's standard) ### AWS Lambda function runtime 3.11 ### Powertools for AWS Lambda (Python) version latest (2.39.1) ### Static type checker info `parameters.get_secret()` has...
### Use case CloudWatch Logs are vital, but expensive. To control costs you switch log level from DEBUG to INFO. When an exception happens you have very little context to...
### What were you searching in the docs? I was reading about `Logger() ` ### Is this related to an existing documentation section? https://docs.powertools.aws.dev/lambda/python/latest/core/logger/#clearing-all-state ### How can we improve? The...