aws-lambda-powertools
Powertools for AWS Lambda (Python) is a developer toolkit to implement Serverless best practices and increase developer velocity.
Description
<!-- markdownlint-disable MD013 MD041 MD043 --> # Powertools for AWS Lambda (Python) [](https://github.com/aws-powertools/powertools-lambda-python/actions/workflows/python_build.yml) [](https://app.codecov.io/gh/aws-powertools/powertools-lambda-python)    [](https://scorecard.dev/viewer/?uri=github.com/aws-powertools/powertools-lambda-python) [](https://discord.gg/B8zZKbbyET) Powertools for AWS Lambda (Python) is a developer toolkit to implement Serverless [best practices and increase developer velocity](https://docs.powertools.aws.dev/lambda/python/latest/#features). Also available in [Java](https://github.com/aws-powertools/powertools-lambda-java), [TypeScript](https://github.com/aws-powertools/powertools-lambda-typescript), and [.NET](https://github.com/aws-powertools/powertools-lambda-dotnet). [οΏ½ Doccumentation](https://docs.powertools.aws.dev/lambda/python/) | [π PyPi](https://pypi.org/project/aws-lambda-powertools/) | [πΊοΈ Roadmap](https://docs.powertools.aws.dev/lambda/python/latest/roadmap/) | [π° Blog](https://aws.amazon.com/blogs/opensource/simplifying-serverless-best-practices-with-lambda-powertools/)  ## Features Core utilities such as Tracing, Logging, Metrics, and Event Handler are available across all Powertools for AWS Lambda languages. Additional utilities are subjective to each language ecosystem and customer demand. * **[Tracing](https://docs.powertools.aws.dev/lambda/python/latest/core/tracer/)** - Decorators and utilities to trace Lambda function handlers, and both synchronous and asynchronous functions * **[Logging](https://docs.powertools.aws.dev/lambda/python/latest/core/logger/)** - Structured logging made easier, and target to enrich structured logging with key Lambda context details * **[Metrics](https://docs.powertools.aws.dev/lambda/python/latest/core/metrics/)** - Custom Metrics created asynchronously via CloudWatch Embedded Metric Format (EMF) * **[Event handler: AppSync](https://docs.powertools.aws.dev/lambda/python/latest/core/event_handler/appsync/)** - AppSync event handler for Lambda Direct Resolver and Amplify GraphQL Transformer function * **[Event handler: AppSync Events](https://docs.powertools.aws.dev/lambda/python/latest/core/event_handler/appsync_events/)** - AppSync Events handler for real-time WebSocket APIs with pub/sub pattern * **[Event handler: API Gateway, ALB, Lambda Function URL, VPC Lattice](https://docs.powertools.aws.dev/lambda/python/latest/core/event_handler/api_gateway/)** - REST/HTTP API event handler for Lambda functions invoked via Amazon API Gateway, ALB, Lambda Function URL, and VPC Lattice * **[Event handler: Agents for Amazon Bedrock](https://docs.powertools.aws.dev/lambda/python/latest/core/event_handler/bedrock_agents/)** - Create Agents for Amazon Bedrock, automatically generating OpenAPI schemas * **[Middleware factory](https://docs.powertools.aws.dev/lambda/python/latest/utilities/middleware_factory/)** - Decorator factory to create your own middleware to run logic before, and after each Lambda invocation * **[Parameters](https://docs.powertools.aws.dev/lambda/python/latest/utilities/parameters/)** - Retrieve and cache parameter values from Parameter Store, Secrets Manager, AppConfig, or DynamoDB * **[Batch processing](https://docs.powertools.aws.dev/lambda/python/latest/utilities/batch/)** - Handle partial failures for AWS SQS, Kinesis Data Streams, and DynamoDB Streams batch processing * **[Typing](https://docs.powertools.aws.dev/lambda/python/latest/utilities/typing/)** - Static typing classes to speedup development in your IDE * **[Validation](https://docs.powertools.aws.dev/lambda/python/latest/utilities/validation/)** - JSON Schema validator for inbound events and responses * **[Event source data classes](https://docs.powertools.aws.dev/lambda/python/latest/utilities/data_classes/)** - Data classes describing the schema of common Lambda event triggers * **[Parser](https://docs.powertools.aws.dev/lambda/python/latest/utilities/parser/)** - Data parsing and deep validation using Pydantic * **[Idempotency](https://docs.powertools.aws.dev/lambda/python/latest/utilities/idempotency/)** - Convert your Lambda f
Release History
| Version | Changes | Urgency | Date |
|---|---|---|---|
| 3.28.0 | Imported from PyPI (3.28.0) | Low | 4/21/2026 |
| v3.28.0 | ## Summary This release brings dependency injection, an enriched Request object, OpenAPI improvements, and internal refactoring to the Event Handler. - **Dependency injection**: type-safe `Depends()` with nested resolution, caching, and test overrides - **Enriched Request**: `resolved_event` and `context` properties bridge middleware and dependencies - **OpenAPI status_code**: set default response status code on route decorators - **Query string fix**: parameters no longer dropped when | High | 4/15/2026 |
| v3.27.0 | ## Summary In this release, we focused on the Event Handler utility - we added three new features and shipped several important bug fixes across Event Handler and Idempotency. - **File uploads** - handle `multipart/form-data` uploads with full OpenAPI validation and Swagger UI file picker - **Cookie parameters** - use cookies as typed, validated parameters alongside `Query()`, `Header()`, and `Form()` - **Request object** - access the resolved route pattern, path parameters, and HTTP met | Medium | 4/6/2026 |
| v3.26.0 | ## Summary In this release, we are pleased to announce a new utility for interacting with the Lambda Metadata Service, allowing you to easily retrieve information about the Lambda function, such as the Availability Zone ID. A huge thanks to @acascell, @shaked-lokits, @maxrabin, and @amin-farjadi, for their contributions ππ ## Lambda Metadata Service >[Docs](https://docs.aws.amazon.com/powertools/python/latest/utilities/metadata/) You can now use `get_lambda_metadata()` function | Medium | 3/23/2026 |
| v3.25.0 | ## Summary This release introduces per-route validation support in event handler, durable context support for logger and metric decorators, multiple dimension sets in metrics, S3 IntelligentTiering event support, and a URL-decode flag for ALB query parameters. We also shipped several important bug fixes across logger, parameters, event handler, and typing. A huge thanks to @oyiz-michael, @chriselion, @maxrabin, @facu-01, and @Iamrodos, for their contributions ππ ### Per-route valida | Low | 3/12/2026 |
| v3.24.0 | ## Summary This release adds support for Lambda durable function replay in idempotency, a new parser model for DynamoDB Stream on-failure destinations, and a fix for batch processor. We've also dropped Python 3.9 support. A super thanks to @ConnorKirk for implementing the idempotency replay feature and @exg for the batch processor fix and DynamoDB Stream parser model ππ ### Idempotency: Allow durable functions to replay >[Docs](https://docs.powertools.aws.dev/lambda/python/latest | Low | 1/5/2026 |
| v3.23.0 | ## Summary In this release we added support for the [newly released Python 3.14](https://aws.amazon.com/pt/blogs/compute/python-3-14-runtime-now-available-in-aws-lambda/) AWS Lambda managed runtime :rocket:. ## Changes * refactor(event-handler): remove kwargs from AppSync exception constructor (#7699) by @T90REAL ## π Documentation updates * docs(openapi): Update docstring's openapi default version to match current default version (#7669) by @victorperezpiqueras * docs(batch): f | Low | 11/19/2025 |
| v3.22.1 | ## Summary In this release, we fixed a regression introduced by [PR #7227](https://github.com/aws-powertools/powertools-lambda-python/pull/7227) that affected customers using the Event Handler utility with nested metadata annotations such as `annotated_types` or `Interval`. Thanks to @rtandy for identifying the bug and validating the fix. We also fixed small bugs in type annotations and in our documentation. β Congrats @rpivo and @czechnology for contributing to this project for the fir | Low | 11/6/2025 |
| v3.22.0 | ## Summary This release enhances our Event Handler with support for Pydantic Models when validating query strings and headers parameters. This addition brings type safety, automatic validation, and better developer experience to your API endpoints. A super thanks to @tonnico for implementing this important feature π π **π Announcement:** You can now find our documentation on the official AWS documentation domain at [docs.aws.amazon.com/powertools/python.](http://docs.aws.amazon.com | Low | 10/21/2025 |
| v3.21.0 | ## Summary This release enhances our Event Handler with support for **Pydantic Field discriminators** and improved OpenAPI response capabilities. We've also expanded our Parser utility with better AppSync and CloudWatch models, plus important bug fixes for form data handling. βοΈ Congrats to @dap0am, @tonnico, @sreejaaryahi18, @aalvrzf, @Iamrodos, and @dcabib for contributing to this release! ### Pydantic Field discriminator support >[Docs](https://docs.powertools.aws.dev/lambda/pyt | Low | 10/10/2025 |
| v3.20.0 | ## Summary In this release we are excited to announce the new build recipes documentation for Powertools for AWS Lambda Python, which explains how to handle Rust and C bindings libraries, GLIBC compatibility, cross-platform builds, and architecture-specific dependencies. We also improved the Parser utility models by adding detailed descriptions and examples illustrating AWS Lambda event structures. βοΈ Congrats to [@dcabib](https://github.com/dcabib), [@sreejaaryahi18](https://github.co | Low | 9/9/2025 |
| v3.19.0 | ## Summary This release adds support for fetching multiple secrets from AWS Secrets Manager in a single API call. We also fixed a critical bug when working with **Data validation** and **Middleware** in our Event Handler utility. βοΈ Congrats to [@dap0am](https://github.com/dap0am) and [@trevmt](https://github.com/trevmt) for contributing to this project for the first time! ### Fetching multiple secrets >[Docs](https://docs.powertools.aws.dev/lambda/python/latest/utilities/parame | Low | 8/14/2025 |
| v3.17.1 | ## Summary This release adds support for files media types in our OpenAPI utility. We also improved our Parser utility by adding new models for AppSync Events. βοΈ Congrats to @oyiz-michael and @sdangol for contributing to this project for the first time! ### Working with form data >[Docs](https://docs.powertools.aws.dev/lambda/python/latest/core/event_handler/api_gateway/#handling-form-data) You can use the `Form` type to tell the Event Handler that a parameter expects form da | Low | 7/29/2025 |
| v3.17.0 | ## Summary This release enhances the Parser experience with new schemas for Amazon Cognito User Pool triggers. We also added support for `externalDocs` parameter in our OpenAPI utility. βοΈ Thanks to @VatsalGoel3 for working on all the new schemas added in this release, as well as @mhindery and @kimsappi for their first contributions! ### New Cognito Trigger Schemas >[Docs](https://docs.powertools.aws.dev/lambda/python/latest/utilities/parser/#built-in-models) You can now use one o | Low | 7/15/2025 |
| v3.16.0 | ## Summary We are thrilled to announce that Powertools for AWS Lambda (Python) now offers AWS Lambda layers in the **AWS China region cn-north-1**. ### New AWS China Lambda Layer ARNs You can now use Powertools for AWS Lambda (Python) Lambda layers in the AWS China regions, enhancing customer experience by making our pre-packaged Lambda layers available in this AWS partition. To take advantage of the new layers, you need to update your functions or deployment setup to include one of | Low | 7/4/2025 |
| v3.15.1 | ## Summary In this release we fixed a problem when deserializing protobuf records with complex schemas. ## Changes ## πNew features and non-breaking changes ## π Documentation updates ## π Bug and hot fixes * fix(kafka): add logic to handle protobuf deserialization (#6841) by @leandrodamascena ## π§ Maintenance ## This release was made possible by the following contributors: @leandrodamascena | Low | 7/2/2025 |
| v3.15.0 | ## Summary We're excited to announce the Kafka Consumer utility, which transparently handles message deserialization, provides an intuitive developer experience, and integrates seamlessly with the rest of the Powertools for AWS Lambda ecosystem. ### Key features * Automatic deserialization of Kafka messages (JSON, Avro, and Protocol Buffers) * Simplified event record handling with intuitive interface * Support for key and value deserialization * Support for Pydantic models and Datacl | Low | 6/20/2025 |
| v3.14.0 | ## Summary This release introduces a new `BedrockAgentFunctionResolver` to Event Handler that simplifies connecting AWS Lambda functions to Amazon Bedrock Agents. This feature eliminates the need to write boilerplate code for parsing requests and formatting responses, allowing you to focus on your agent's business logic. We would also like to extend a huge thank you to our new contributor @LucasCMFBraga β ### Creating Amazon Bedrock Agents >[Docs](https://docs.powertools.aws.dev/lam | Low | 6/4/2025 |
| v3.13.0 | ## Summary In this release, we renamed the `Redis` class to `Cache` in our Idempotency utility and added support for the [valkey-glide](https://pypi.org/project/valkey-glide/) library. Thanks to our new contributors @AlisonVilela, @Artur-T-Malas, and @kiitosu, we also fixed bugs in our Event Source Data Class utility. βπ ### Working with the new `CachePersistenceLayer` class >[Docs](https://docs.powertools.aws.dev/lambda/python/latest/utilities/idempotency/#cachepersistencelayer) | Low | 5/20/2025 |
| v3.12.0 | ## Summary Thanks to @anafalcao, in this release we added support for additional response fields supported by Bedrock Agents when using the `BedrockAgentResolver.` ### Additional response fields with BedrockAgentResolver >[Docs](https://docs.powertools.aws.dev/lambda/python/latest/core/event_handler/bedrock_agents/#fine-grained-responses) You can use the `BedrockResponse` class to add additional fields as needed, such as [session attributes, prompt session attributes, and knowledge b | Low | 5/6/2025 |
| v3.11.0 | ## Summary We are excited to announce a new integration for Event Handler to work with [AWS AppSync Events APIs](https://docs.aws.amazon.com/appsync/latest/eventapi/event-api-welcome.html). This utility provides a structured way to handle AppSync real-time events through dedicated handler methods, automatic routing, and flexible configuration options. Our Event Handler REST API now supports customizable HTTP error codes per route. Thanks for this contribution @amin-farjadi. Additionall | Low | 4/25/2025 |
| v3.10.0 | ## Summary This release introduces a new built-in model `AppSyncResolverEventModel` for the Parser utility, enabling structured parsing and validation of AWS AppSync Resolver events using Pydantic. It also improves the developer experience when logging with `exc_info=True` by updating the logic to check if an actual exception exists before adding exception-related keys to the log. Fixes missing properties for query string parameters in `APIGatewayWebSocketEvent` class, and the return | Low | 4/8/2025 |
| v3.9.0 | This release improves the OpenAPI utility, letting customers distinguish between request and response validation errors. It also adds support for API Gateway WebSocket in the Event Source Data Class utility. Thanks to @ericbn, we simplified the Event Source Data Class utility code, making it more readable and easier to maintain. β A huge thanks to our new contributor: @amin-farjadi. ### Working with OpenAPI response validation >[Docs](https://docs.powertools.aws.dev/lambda/python/l | Low | 3/25/2025 |
| v3.8.0 | ## Summary We are excited to announce a new feature in Logger: Logger buffering. This new feature allows you to buffer logs for a specific invocation, and flush them automatically on error or manually as needed. A special thanks to [Ollie Saul](https://www.linkedin.com/in/ollie-saull/) and [James Saull](https://www.linkedin.com/in/james-saull/) from [Dotelastic](https://dotelastic.com/) for their instrumental input on this new feature! β Also, huge thanks to our new contributors: @tiag | Low | 3/7/2025 |
| v3.7.0 | ## Summary In this release, we are thrilled to announce new features and improvements: * New Event Source Data Classes and Parser models for **IoT Core Registry Events** * Support for **OpenAPI examples** within parameters fields We also fixed a bug in the Logger utility's custom handlers and expanded Lambda layer support to Thailand (ap-southeast-7) and Mexico Central (mx-central-1) regions. β Huge thanks to our new contributors: @basvandriel and @DKurilo ### Working with IoT Co | Low | 2/25/2025 |
| v3.6.0 | ## Summary In this release, we are thrilled to announce new features and improvements: * Customizable masking capabilities with the erase method in **Data Masking utility** * Ability to disable metrics flush via environment variables * New Event Source Data Classes for **API Gateway Authorizer Response WebSocket** * New method to the **Logger class** to clear appended keys at any point during the execution of your Lambda invocation Special thanks to @philiptzou, for improving type an | Low | 2/11/2025 |
| v3.5.0 | ## Summary We're excited to introduce new features and improvements in this release: * We have added new **Event Source Data Classes** for AWS Transfer Family * Idempotency feature with support for **custom key prefixes** * **Context manager** for logger keys, offering more flexible logging options We also revamped the Data Source event class documentation and now we have more complete examples. Thanks to @xdxindustries for helping us resolve a bug with OpenAPI and Pydantic Models' | Low | 1/28/2025 |
| v3.4.1 | ## Summary In this release we fixed a bug in the Idempotency utility when using `Optional` types in output serialization. π β Thanks for @TonySherman for reporting this issue. ## Using Optinal types in Idempotency serialization > [Docs](https://docs.powertools.aws.dev/lambda/python/latest/utilities/idempotency/#output-serialization) Customers can now use `Optional` type when serializing Idempotency response. Previously, using `Optional` types in Idempotency serialization with P | Low | 1/14/2025 |
| v3.4.0 | ## Summary We are thrilled to announce support for querying Powertools Lambda layers ARN using SSM public parameters. We also added support for API Gateway WebSocket events in the parser utility and added Lambda layer support in the AWS Malaysia region (ap-southeast-5). Thanks to @tcysin, we have added `deprecated` flag support when working with OpenAPI operations in the Event handler. π β Congratulations to our new contributors @TurnrDev and @tcysin for getting their first PR merge | Low | 12/20/2024 |
| v3.3.0 | ## Summary In this release we added support for the [newly released Python 3.13](https://aws.amazon.com/pt/blogs/compute/python-3-13-runtime-now-available-in-aws-lambda/) AWS Lambda managed runtime π. Weβve also revamped the Parser documentation, and added **MutualTLS scheme** support when working with OpenAPI schemas and Event handler. >Oh hey, please welcome Ana as our new full-time maintainer - @anafalcao π π β Congrats to our new contributor [@Sector95](https://github.com/Sec | Low | 11/14/2024 |
| v3.2.0 | ## Summary We are thrilled to announce that Powertools for AWS Lambda (Python) now offers AWS Lambda layers in the **AWS GovCloud (US) regions**. π β Thanks to @SimonBFrank's amazing work, our Logger utility is now **thread-safe** when handling extra keys. ### New AWS GovCloud (US) Lambda Layer ARNs You can now use Powertools for AWS Lambda (Python) Lambda layers in the AWS GovCloud (US) regions, enhancing customer experience by making our pre-packaged Lambda layers available in | Low | 10/22/2024 |
| v3.1.0 | ## Summary We are excited to announce the first release following the v3 GA release. In this release we addressed a bug in the **Parser utility** as well as a regression in the naming of our public **Lambda layers**. Thanks to @mw-root we added support for Event Source for **CodeDeploy Lifecycle Hook**. π β A big thank you to our new contributors: @emmanuel-ferdman, @garysassano and @mw-root. ### Correct Naming for Powertools Lambda Layer x86_64 In our initial v3 release, we mi | Low | 10/8/2024 |
| v3.0.0 | ## Summary We are super happy to announce our **new major version β v3.0.0** ππ! We have made **Pydantic v2** the default for Powertools for AWS Lambda (Python) utilities, this was the most requested feature from you. Pydantic v2 is the most impactful upgrade, offering better performance and greater flexibility compared to Pydantic v1. The second most requested feature was publishing Powertools Lambda layers for **different Python versions and architectures**, allowing for easier inte | Low | 9/23/2024 |
| v2.43.1 | ## Summary The regression issue caused by PR #4863 has been resolved in this patch release. The issue occurred when working with zero numbers in the Data Source utility's DynamoDBStreamEvent class. ## Changes ## πNew features and non-breaking changes ## π Bug and hot fixes * fix(event_source): fix regression when working with zero numbers in DynamoDBStreamEvent (#4932) by @leandrodamascena ## π§ Maintenance * chore(deps): bump datadog-lambda from 6.97.0 to 6.98.0 (#4938) b | Low | 8/13/2024 |
| v2.43.0 | ## Summary This release improves the **Validation** utility, which now returns the validated data, including default values. We have improved the **Metrics** utility, which now can emit metrics using the **None** unit. We have also fixed a bug in **Event Source** for Amazon DynamoDB Streams when using numbers with more than 38 digits. π β A big thank you to our new contributors: @dracozombie19, and @avonengel ### Retrieving validated JSON from validate function > [Docs](https:// | Low | 8/8/2024 |
| v2.42.0 | ## Summary This release adds support for **OpenAPI extensions** to help you describe functionality beyond the OpenAPI Spec. We also made tons of improvements in the **Idempotency** docs based on customers feedback on navigation, examples, and limitations. π β Huge thanks to everyone who helped in this release, specially @[bertpl](https://github.com/bertpl) for crushing a bug in the **Idempotency** feature. ### Working with OpenAPI extensions > [Docs](https://docs.powertools.aws.dev | Low | 7/25/2024 |
| v2.41.0 | ## Summary This release enhances the **Batch Processing** feature, which you can now customize to not throw an error when the entire batch of items fails to process. We have also added three new Pydantic models to our **Parser** feature to work with authorizers in Amazon API Gateway. Thanks to @adriantomas, customers can bring their own boto3 client when using **Feature Flags** feature. π β A big thank you to everyone who helped make this release. ### Working with full batch fa | Low | 7/11/2024 |
| v2.40.0 | ## Summary We're excited to announce **Batch resolvers** in **GraphQL Event Handler** to tackle the infamous N+1 problem in GraphQL πͺ, making it easier to work with batching in AWS AppSync. Thanks to @danieljnchen, the validation utility now supports referencing internal schemas within your JSON files. π π β A big thank you to our new contributors: @scampbell5, @matteofigus, and @danieljnchen. ### Batch resolvers in Event Handler GraphQL >[Docs](https://docs.powertools.aws.de | Low | 6/27/2024 |
| v2.39.1 | ## Summary The regression issue caused by PR https://github.com/aws-powertools/powertools-lambda-python/pull/4421 is resolved in this patch release. The issue occurred due to static typing importing Pydantic, as it went undetected in our pipeline and code review. To prevent from happening again, we will introduce [dynamic tests for all optional dependencies](https://github.com/aws-powertools/powertools-lambda-python/issues/4501). We will pause new releases until that is implemented and ver | Low | 6/13/2024 |
| v2.39.0 | ## Summary This release improves **Event Handler** with **(a)** better serialization error for unsupported data types, and **(b)** middlewares are now triggered when a route is not found *(404)*. We also crushed OpenAPI bugs for a smoother experience πͺ². Thanks to @**knightmre**, **Event Source Data Classes** now features **(a)** updates Cognito User Pool User Migration event with verification link, and **(b)** new Pre-token generation and custom sender events. π β A big thank you to o | Low | 6/13/2024 |
| v2.38.1 | ## Summary A regression issue caused by PR [4295](https://github.com/aws-powertools/powertools-lambda-python/pull/4295/) has been resolved in this release. The issue occurred when using multiple instances of the `Logger` in different files and with the same `Logger` name. π β Thank you @Thomas-McKanna, @SimonBFrank, @saravsak, and @JacobAuthenic for quickly identifying and helping to resolve this regression. ## π Bug and hot fixes * fix(logger): reverting logger child modification | Low | 5/27/2024 |
| v2.38.0 | ## Summary This release introduces a handy new decorator for **HTTP HEAD verb** in Event Handler, improving the developer experience. Additionally, it offers a straightforward way to persist authorization sessions in OpenAPI, enhancing convenience. ππ As always, we've fixed some bugs and refined our documentation. π π β Huge thanks to our new contributors: @raymondbutcher, @nlykkei, and @keithrozario! ### Using the new decorator for HTTP HEAD verb in Event Handler > [Docs](ht | Low | 5/27/2024 |
| v2.37.0 | ## Summary This release adds **Security Schemes support for generated OpenAPI /** **Swagger UI**, and a new feature to **manipulate idempotent responses**. ππ And of course, you know it, fixes in typing and documentation. π π Tons of things in this release was only possible because of our community. π A **huge thank you** to @walmsles, @Wurstnase, @SZubarev, @Emerson-MM-Filho, @nlykkei, @amyc92 and many others for your support and collaboration! ### OpenAPI Security Schemes >[D | Low | 4/18/2024 |
| v2.36.0 | ## Summary We're excited to introduce some significant new features and improvements in this release: - Support for creating and updating Parameters and Secrets - Custom timestamps are now available with the EMF Metrics Provider for creating metrics - New flag for optimized batch processing with SQS Fifo queues - Introducing the new CloudWatchAlarmEvent data class We also made enhancements to our OpenAPI and type checking, and fixed some bugs! β Huge thanks to our new contributors | Low | 3/28/2024 |
| v2.35.1 | ## Summary This patch release squashes a couple of bugs: * **Bedrock Agent Resolver**: we now correctly process any request body data (e.g: on a POST request) * **Event Handler Data Validation**: any custom serializer passed to a resolver will now be used for custom objects during OpenAPI data/parameter validation * **Data Sources**: we've improved the typing on the SQSMessageAttributes data class Huge thanks to @aitchnyu, @robk1234 and @palfrey for reporting and helping us fix these | Low | 3/8/2024 |
| v2.35.0 | ## Summary Weβre super excited to introduce a brand **new utility** to author [Agents for Amazon Bedrock](https://aws.amazon.com/bedrock/agents/)! ππ Agents for [Amazon Bedrock](https://aws.amazon.com/bedrock/) is a feature to build and deploy conversational agents that can interact with your customers using Large Language Models (LLM) and AWS Lambda functions.  ## | Low | 3/6/2024 |
| v2.34.2 | ## Summary This patch release removes Data Masking dependencies from our managed Lambda Layer, explicitly `aws-encryption-sdk` who depend on `cffi`. The issue is that `cffi` has to be compiled to each specific Python version while we didn't. We are investigating the creation of a new layer per each Python version to bring back Data Masking dependencies. As of now, to use Data masking, you'll need to bring `aws-encryption-sdk` as part of your dependencies until then. ## Changes ## πN | Low | 2/26/2024 |
| v2.34.1 | ## Summary Patch release to fix a regression introduced in v2.33 when running Event Handler REST API **locally** _(unit test)_...spotted by @jonathan-Chang π! Huge thanks to Jonathan for reporting on Discord and helping triage all the way through. ## Changes ## π Bug and hot fixes * fix(event-handler): return dict on missing multi_value_headers (#3824) by @heitorlessa * fix(idempotency): validate before saving to cache (#3822) by @heitorlessa * fix(ci): inject PR_LABELS env f | Low | 2/21/2024 |
| v2.34.0 | ## Summary This release adds a new list intersection [set of actions in Feature Flags](https://docs.powertools.aws.dev/lambda/python/latest/utilities/feature_flags/#conditions), hot [new community content](https://docs.powertools.aws.dev/lambda/python/latest/we_made_this/), and tons of bugs squashed! π Huge thanks to community friends _(recurring contributors)_: **@gwlester** on new feature flag list intersection, **@ericbn** on docs layer ARN automation bug, and **@ran-isenberg** on two | Low | 2/21/2024 |
| v2.33.1 | ## Summary This release officially **drops support for Python 3.7** in Powertools for AWS, followed by [AWS Lambda runtime deprecation](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-deprecated). We also published our [versioning policy under Processes section](https://docs.powertools.aws.dev/lambda/python/latest/versioning/) to give you further transparency. π Huge thanks to a new contributor @Wurstnase _(mypy fix)_ π₯ Nathan Hanks's new [blog post features h | Low | 2/9/2024 |
| v2.33.0 | ## Summary We are pleased to announce our first security feature: Data Masking. You can now **encrypt**, **decrypt**, or **irreversibly erase** sensitive information to protect data confidentiality. We also made enhancements to our OpenAPI utility, and fixed some bugs! β Huge thanks to our new contributor: @maauk ### Data masking > [Docs](https://docs.powertools.aws.dev/lambda/python/latest/utilities/data_masking/) You can now **encrypt**, **decrypt**, or **irreversibly erase** | Low | 2/2/2024 |
