github aws-powertools/powertools-lambda-python v2.42.0

latest releases: v2.43.1, v2.43.0
one month ago

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 for crushing a bug in the Idempotency feature.

Working with OpenAPI extensions

Docs

You can now define extensions using the openapi_extensions parameter. This unblocks a common use case in defining Amazon API Gateway extensions like Authorizers, Integrations, etc.

openapi_extension

Idempotency revamped docs

Based on customer feedback at the Serverless Days ANZ, we improved all code snippets, made navigation more granular, and split DynamoDB vs Redis persistence storage (Infra vs Runtime).

We also made it more explicit everywhere that Idempotency is bound to a particular time window (1h by default) that you can adjust.

image

Changes

🌟New features and non-breaking changes

πŸ“œ Documentation updates

πŸ› Bug and hot fixes

  • fix(idempotency): ensure in_progress_expiration field is set on Lambda timeout. (#4773) by @sthulb

πŸ”§ Maintenance

  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.212 to 0.1.219 (#4817) by @dependabot
  • chore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.148.1a0 to 2.150.0a0 (#4813) by @dependabot
  • chore(deps-dev): bump mkdocs-material from 9.5.29 to 9.5.30 (#4807) by @dependabot
  • chore(deps-dev): bump sentry-sdk from 2.10.0 to 2.11.0 (#4815) by @dependabot
  • chore(deps-dev): bump mypy-boto3-dynamodb from 1.34.131 to 1.34.148 in the boto-typing group (#4812) by @dependabot
  • chore(deps-dev): bump aws-cdk from 2.149.0 to 2.150.0 (#4805) by @dependabot
  • chore(docs): Add lambda layer policy to versioning docs (#4811) by @hjgraca
  • chore(deps-dev): bump aws-cdk-lib from 2.148.1 to 2.150.0 (#4806) by @dependabot
  • chore(deps-dev): bump pytest from 8.2.2 to 8.3.1 (#4799) by @dependabot
  • chore(deps): bump docker/setup-qemu-action from 3.1.0 to 3.2.0 (#4800) by @dependabot
  • chore(deps): bump docker/setup-buildx-action from 3.4.0 to 3.5.0 (#4801) by @dependabot
  • chore(deps-dev): bump ruff from 0.5.3 to 0.5.4 (#4798) by @dependabot
  • chore(logger): use package logger over source logger to reduce noise (#4793) by @heitorlessa
  • chore(deps-dev): bump cfn-lint from 1.8.1 to 1.8.2 (#4788) by @dependabot
  • chore(deps-dev): bump mypy-boto3-secretsmanager from 1.34.128 to 1.34.145 in the boto-typing group (#4787) by @dependabot
  • chore(deps): bump aws-actions/closed-issue-message from 8b6324312193476beecf11f8e8539d73a3553bf4 to 80edfc24bdf1283400eb04d20a8a605ae8bf7d48 (#4786) by @dependabot
  • chore(deps-dev): bump ruff from 0.5.2 to 0.5.3 (#4781) by @dependabot
  • chore(deps-dev): bump cfn-lint from 1.6.1 to 1.8.1 (#4780) by @dependabot
  • chore(deps-dev): bump pytest-asyncio from 0.23.7 to 0.23.8 (#4776) by @dependabot
  • chore(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.27.26 to 1.27.27 in /layer/scripts/layer-balancer in the layer-balancer group (#4779) by @dependabot
  • chore(deps): bump datadog-lambda from 6.96.0 to 6.97.0 (#4770) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.211 to 0.1.212 (#4769) by @dependabot
  • chore(deps-dev): bump mkdocs-material from 9.5.28 to 9.5.29 (#4764) by @dependabot
  • chore(deps-dev): bump aws-cdk from 2.148.0 to 2.149.0 (#4765) by @dependabot
  • chore(deps-dev): bump ruff from 0.5.1 to 0.5.2 (#4762) by @dependabot
  • chore(deps-dev): bump sentry-sdk from 2.9.0 to 2.10.0 (#4763) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.207 to 0.1.211 (#4760) by @dependabot
  • chore(deps): bump actions/dependency-review-action from 4.3.3 to 4.3.4 (#4753) by @dependabot
  • chore(deps-dev): bump cfn-lint from 1.6.0 to 1.6.1 (#4751) by @dependabot
  • chore(deps-dev): bump cfn-lint from 1.5.3 to 1.6.0 (#4747) by @dependabot
  • chore(deps-dev): bump coverage from 7.5.4 to 7.6.0 (#4746) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.206 to 0.1.207 (#4748) by @dependabot
  • chore(deps): bump the layer-balancer group in /layer/scripts/layer-balancer with 3 updates (#4745) by @dependabot

This release was made possible by the following contributors:

@dependabot, @dependabot[bot], @github-actions, @github-actions[bot], @heitorlessa, @hjgraca, @leandrodamascena and @sthulb

Don't miss a new powertools-lambda-python release

NewReleases is sending notifications on new releases.