Aws Lambda Powertools Python Versions Save

A developer toolkit to implement Serverless best practices and increase developer velocity.

v2.39.1

1 week ago

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. We will pause new releases until that is implemented and verified. For further improvement, we will look into making daily pre-releases to help create more complex canary tests.

Changes

πŸ› Bug and hot fixes

  • fix(event_handler): regression making pydantic required (it should not) (#4500) by @leandrodamascena

This release was made possible by the following contributors:

@github-actions, @github-actions[bot] and @leandrodamascena

v2.39.0

1 week ago

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 our new contributors: @knightmre, @phipag, @keithrozario, and @stevenhoelscher.

Event Handler middlewares are now triggered even when a route is not found (404)

Docs

You can now run middlewares even when a route is not found. Before, Event Handler immediately returned a HTTP 404 (Not Found). However, we learned from customers that key middleware logic should always run regardless, hence the fix.

This allows you to consistently perform cross-cutting concerns like logging, header injection, authorization, etc. even for invalid routes.

middleware

New CloudFormation Custom Resource Event Source Data Class

Docs

You can now use CloudFormationCustomResourceEvent for a better experience with type hinting and code completion support.

NOTE. We recommend customers to use CloudFormation Custom Resource Helper library to author custom resources.

Better error message for unsupported data types in Event Handler

Docs

We now raise a SerializationError when trying to serialize unsupported data types. Before, Event Handler did not distinguish between unsupported type or object altogether, like SQLAlchemy models.

You can bring your own custom serializer for additional data type support.

serialization_

Last but not least, we fixed an issue that occurred when disabling Idempotency using an environment variable. Thanks to @stevenhoelscher for this great catch.

Changes

🌟New features and non-breaking changes

  • feat(events): Update and Add Cognito User Pool Events (#4423) by @knightmre
  • feat(event_source): add CloudFormationCustomResourceEvent data class. (#4342) by @phipag

πŸ“œ Documentation updates

  • docs(public reference): add Recast as a public reference (#4491) by @leandrodamascena
  • feat(events): Update and Add Cognito User Pool Events (#4423) by @knightmre
  • feat(event_source): add CloudFormationCustomResourceEvent data class. (#4342) by @phipag
  • docs(homepage): Change installation to CDK v2 (#4351) by @keithrozario

πŸ› Bug and hot fixes

  • fix(event_handler): do not skip middleware and exception handlers on 404 error (#4492) by @heitorlessa
  • fix(event_handler): raise more specific SerializationError exception for unsupported types in data validation (#4415) by @leandrodamascena
  • fix(event_handler): security scheme unhashable list when working with router (#4421) by @leandrodamascena
  • fix(idempotency): POWERTOOLS_IDEMPOTENCY_DISABLED should respect truthy values (#4391) by @stevenhoelscher
  • fix(event_handler): CORS Origin for ALBResolver multi-headers (#4385) by @leandrodamascena

πŸ”§ Maintenance

  • chore(deps): bump actions/checkout from 4.1.6 to 4.1.7 (#4493) by @dependabot
  • chore(deps-dev): bump cfn-lint from 0.87.5 to 0.87.6 (#4486) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.176 to 0.1.179 (#4488) by @dependabot
  • chore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.144.0a0 to 2.145.0a0 (#4487) by @dependabot
  • chore(deps): bump datadog-lambda from 6.95.0 to 6.96.0 (#4489) by @dependabot
  • chore(deps): bump pydantic from 1.10.15 to 1.10.16 (#4485) by @dependabot
  • chore(deps-dev): bump aws-cdk-lib from 2.144.0 to 2.145.0 (#4481) by @dependabot
  • chore(deps-dev): bump aws-cdk from 2.144.0 to 2.145.0 (#4482) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.175 to 0.1.176 (#4480) by @dependabot
  • chore(deps-dev): bump cfn-lint from 0.87.4 to 0.87.5 (#4479) by @dependabot
  • chore(deps): bump zgosalvez/github-actions-ensure-sha-pinned-actions from 3.0.6 to 3.0.7 (#4478) by @dependabot
  • chore(deps-dev): bump sentry-sdk from 2.5.0 to 2.5.1 (#4469) by @dependabot
  • chore(deps): bump typing-extensions from 4.12.1 to 4.12.2 (#4470) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.174 to 0.1.175 (#4472) by @dependabot
  • chore(deps): bump datadog-lambda from 5.94.0 to 6.95.0 (#4471) by @dependabot
  • chore(deps): bump the layer-balancer group in /layer/scripts/layer-balancer with 3 updates (#4468) by @dependabot
  • chore(deps-dev): bump ijson from 3.2.3 to 3.3.0 (#4465) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.173 to 0.1.174 (#4466) by @dependabot
  • chore(deps): bump redis from 5.0.4 to 5.0.5 (#4464) by @dependabot
  • chore(deps-dev): bump mkdocs-material from 9.5.25 to 9.5.26 (#4463) by @dependabot
  • chore(deps-dev): bump sentry-sdk from 2.4.0 to 2.5.0 (#4462) by @dependabot
  • chore(deps): bump squidfunk/mkdocs-material from 8a87f05 to 96abcbb in /docs (#4461) by @dependabot
  • chore(deps-dev): bump ruff from 0.4.7 to 0.4.8 (#4455) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.169 to 0.1.173 (#4459) by @dependabot
  • chore(deps): bump actions/dependency-review-action from 4.3.2 to 4.3.3 (#4456) by @dependabot
  • chore(deps): bump aws-xray-sdk from 2.13.1 to 2.14.0 (#4453) by @dependabot
  • chore(deps-dev): bump mypy-boto3-s3 from 1.34.105 to 1.34.120 in the boto-typing group (#4452) by @dependabot
  • chore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.143.1a0 to 2.144.0a0 (#4448) by @dependabot
  • chore(deps-dev): bump sentry-sdk from 2.3.1 to 2.4.0 (#4449) by @dependabot
  • chore(deps-dev): bump pytest from 8.2.1 to 8.2.2 (#4450) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.164 to 0.1.169 (#4442) by @dependabot
  • chore(deps-dev): bump aws-cdk-lib from 2.143.1 to 2.144.0 (#4441) by @dependabot
  • chore(deps-dev): bump aws-cdk from 2.143.1 to 2.144.0 (#4443) by @dependabot
  • chore(deps): bump zgosalvez/github-actions-ensure-sha-pinned-actions from 3.0.5 to 3.0.6 (#4445) by @dependabot
  • chore(deps): bump the layer-balancer group in /layer/scripts/layer-balancer with 3 updates (#4444) by @dependabot
  • chore(deps): bump typing-extensions from 4.12.0 to 4.12.1 (#4440) by @dependabot
  • chore(deps-dev): bump ruff from 0.4.6 to 0.4.7 (#4435) by @dependabot
  • chore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.143.0a0 to 2.143.1a0 (#4433) by @dependabot
  • chore(deps-dev): bump aws-cdk-lib from 2.143.0 to 2.143.1 (#4429) by @dependabot
  • chore(deps-dev): bump aws-cdk from 2.143.0 to 2.143.1 (#4430) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.163 to 0.1.164 (#4428) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.161 to 0.1.163 (#4425) by @dependabot
  • chore(libraries): add jmespath as a required dependency (#4422) by @leandrodamascena
  • chore(deps-dev): bump ruff from 0.4.5 to 0.4.6 (#4417) by @dependabot
  • chore(deps-dev): bump cfn-lint from 0.87.3 to 0.87.4 (#4419) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.159 to 0.1.161 (#4420) by @dependabot
  • chore(deps-dev): bump coverage from 7.5.2 to 7.5.3 (#4418) by @dependabot
  • chore(deps-dev): bump mypy-boto3-dynamodb from 1.34.113 to 1.34.114 in the boto-typing group (#4416) by @dependabot
  • chore(deps-dev): bump mkdocs-material from 9.5.24 to 9.5.25 (#4411) by @dependabot
  • chore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.142.1a0 to 2.143.0a0 (#4410) by @dependabot
  • chore(deps-dev): bump mypy-boto3-dynamodb from 1.34.97 to 1.34.113 in the boto-typing group (#4409) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.158 to 0.1.159 (#4412) by @dependabot
  • chore(deps-dev): bump coverage from 7.5.1 to 7.5.2 (#4413) by @dependabot
  • chore(deps): bump squidfunk/mkdocs-material from 5358893 to 8a87f05 in /docs (#4408) by @dependabot
  • chore(deps): bump typing-extensions from 4.11.0 to 4.12.0 (#4404) by @dependabot
  • chore(deps-dev): bump aws-cdk-lib from 2.142.1 to 2.143.0 (#4403) by @dependabot
  • chore(deps-dev): bump aws-cdk from 2.142.1 to 2.143.0 (#4402) by @dependabot
  • chore(deps-dev): bump ruff from 0.4.4 to 0.4.5 (#4399) by @dependabot
  • chore(deps-dev): bump sentry-sdk from 2.2.1 to 2.3.1 (#4398) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.157 to 0.1.158 (#4397) by @dependabot
  • chore(deps): bump the layer-balancer group in /layer/scripts/layer-balancer with 2 updates (#4396) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.155 to 0.1.157 (#4394) by @dependabot
  • chore(deps): bump aws-encryption-sdk from 3.2.0 to 3.3.0 (#4393) by @dependabot
  • chore(deps-dev): bump mypy-boto3-cloudformation from 1.34.84 to 1.34.111 in the boto-typing group (#4392) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.154 to 0.1.155 (#4386) by @dependabot
  • chore(deps-dev): bump pytest-asyncio from 0.23.6 to 0.23.7 (#4387) by @dependabot
  • chore(deps-dev): bump sentry-sdk from 2.2.0 to 2.2.1 (#4388) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.152 to 0.1.154 (#4382) by @dependabot
  • chore(deps): bump codecov/codecov-action from 4.4.0 to 4.4.1 (#4376) by @dependabot
  • chore(deps-dev): bump mypy-boto3-secretsmanager from 1.34.107 to 1.34.109 in the boto-typing group (#4378) by @dependabot
  • chore(deps): bump aws-xray-sdk from 2.13.0 to 2.13.1 (#4379) by @dependabot
  • chore(deps): bump requests from 2.31.0 to 2.32.0 (#4383) by @dependabot
  • chore(deps-dev): bump mkdocs-material from 9.5.23 to 9.5.24 (#4380) by @dependabot
  • chore(deps-dev): bump pytest from 8.2.0 to 8.2.1 (#4381) by @dependabot
  • chore(deps): bump squidfunk/mkdocs-material from 48d1914 to 5358893 in /docs (#4377) by @dependabot
  • chore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.141.0a0 to 2.142.1a0 (#4367) by @dependabot
  • chore(deps-dev): bump aws-cdk from 2.142.0 to 2.142.1 (#4366) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.150 to 0.1.152 (#4368) by @dependabot
  • chore(deps): bump the layer-balancer group in /layer/scripts/layer-balancer with 3 updates (#4369) by @dependabot
  • chore(deps-dev): bump cfn-lint from 0.87.2 to 0.87.3 (#4370) by @dependabot

This release was made possible by the following contributors:

@dependabot, @dependabot[bot], @github-actions, @github-actions[bot], @heitorlessa, @keithrozario, @knightmre, @leandrodamascena, @phipag and @stevenhoelscher

v2.38.1

4 weeks ago

Summary

A regression issue caused by PR 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 (#4363) by @leandrodamascena

This release was made possible by the following contributors:

@leandrodamascena

v2.38.0

4 weeks ago

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

We've introduced a new @app.head decorator to the Event Handler, as it's the recommended approach when you only need to return headers in the response content.

head

Persisting authorization sessions in OpenAPI

Docs

We've added support to persist authorization data, such as OAuth 2.0 access tokens, even when the browser is closed or refreshed. This ensures that the user's authorization information is securely retained in the browser's local storage, providing a seamless experience and avoiding the need to re-authenticate.

authorization

Changes

  • refactor(data-masking): remove Non-GA comments (#4334) by @leandrodamascena
  • refactor(parser): only infer type hints when necessary (#4183) by @raymondbutcher

🌟New features and non-breaking changes

  • feat(logger-utils): preserve log level for discovered third-party top-level loggers (#4299) by @heitorlessa
  • feat(event_handler): add support for persisting authorization session in OpenAPI (#4312) by @nlykkei
  • feat(event_handler): add decorator for HTTP HEAD verb (#4275) by @nlykkei

πŸ“œ Documentation updates

  • docs(homepage): Change installation to CDK v2 (#4351) by @keithrozario
  • docs(homepage): add link to new and official workshop (#4292) by @dreamorosi
  • docs(general): update documentation to add info about v3 (#4234) by @leandrodamascena
  • docs(roadmap): april updates (#4181) by @heitorlessa
  • docs(idempotency): fix highlight and import path (#4154) by @rubenfonseca

πŸ› Bug and hot fixes

  • fix(logger): correctly pick powertools or custom handler in custom environments (#4295) by @heitorlessa
  • fix(event-sources): sane defaults for authorizer v1 and v2 (#4298) by @heitorlessa
  • fix(parser): make etag optional field on S3 notification events (#4173) by @benjamingorman
  • fix(typing): resolved_headers_field is not Optional (#4148) by @Wurstnase
  • fix(ci): apply lessons learned to monthly roadmap reminder cross-repo (#4078) by @heitorlessa

πŸ”§ Maintenance

  • chore(deps): bump typing-extensions from 4.11.0 to 4.12.0 (#4404) by @dependabot
  • chore(deps-dev): bump aws-cdk-lib from 2.142.1 to 2.143.0 (#4403) by @dependabot
  • chore(deps-dev): bump aws-cdk from 2.142.1 to 2.143.0 (#4402) by @dependabot
  • chore(deps-dev): bump ruff from 0.4.4 to 0.4.5 (#4399) by @dependabot
  • chore(deps-dev): bump sentry-sdk from 2.2.1 to 2.3.1 (#4398) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.157 to 0.1.158 (#4397) by @dependabot
  • chore(deps): bump the layer-balancer group in /layer/scripts/layer-balancer with 2 updates (#4396) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.155 to 0.1.157 (#4394) by @dependabot
  • chore(deps): bump aws-encryption-sdk from 3.2.0 to 3.3.0 (#4393) by @dependabot
  • chore(deps-dev): bump mypy-boto3-cloudformation from 1.34.84 to 1.34.111 in the boto-typing group (#4392) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.154 to 0.1.155 (#4386) by @dependabot
  • chore(deps-dev): bump pytest-asyncio from 0.23.6 to 0.23.7 (#4387) by @dependabot
  • chore(deps-dev): bump sentry-sdk from 2.2.0 to 2.2.1 (#4388) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.152 to 0.1.154 (#4382) by @dependabot
  • chore(deps): bump codecov/codecov-action from 4.4.0 to 4.4.1 (#4376) by @dependabot
  • chore(deps-dev): bump mypy-boto3-secretsmanager from 1.34.107 to 1.34.109 in the boto-typing group (#4378) by @dependabot
  • chore(deps): bump aws-xray-sdk from 2.13.0 to 2.13.1 (#4379) by @dependabot
  • chore(deps): bump requests from 2.31.0 to 2.32.0 (#4383) by @dependabot
  • chore(deps-dev): bump mkdocs-material from 9.5.23 to 9.5.24 (#4380) by @dependabot
  • chore(deps-dev): bump pytest from 8.2.0 to 8.2.1 (#4381) by @dependabot
  • chore(deps): bump squidfunk/mkdocs-material from 48d1914 to 5358893 in /docs (#4377) by @dependabot
  • chore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.141.0a0 to 2.142.1a0 (#4367) by @dependabot
  • chore(deps-dev): bump aws-cdk from 2.142.0 to 2.142.1 (#4366) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.150 to 0.1.152 (#4368) by @dependabot
  • chore(deps): bump the layer-balancer group in /layer/scripts/layer-balancer with 3 updates (#4369) by @dependabot
  • chore(deps-dev): bump cfn-lint from 0.87.2 to 0.87.3 (#4370) by @dependabot
  • chore(ci): bump download artifact action to v4 (#4358) by @leandrodamascena
  • chore(ci): bump upload artifact action to v4 (#4355) by @leandrodamascena
  • chore(deps-dev): bump aws-cdk-lib from 2.141.0 to 2.142.1 (#4352) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.146 to 0.1.150 (#4346) by @dependabot
  • chore(deps-dev): bump sentry-sdk from 2.1.1 to 2.2.0 (#4348) by @dependabot
  • chore(deps-dev): bump mypy-boto3-secretsmanager from 1.34.72 to 1.34.107 in the boto-typing group (#4345) by @dependabot
  • chore(deps): bump actions/checkout from 4.1.5 to 4.1.6 (#4344) by @dependabot
  • chore(deps-dev): bump aws-cdk from 2.141.0 to 2.142.0 (#4343) by @dependabot
  • chore(deps-dev): bump mkdocs-material from 9.5.22 to 9.5.23 (#4338) by @dependabot
  • chore(deps): bump the layer-balancer group in /layer/scripts/layer-balancer with 3 updates (#4337) by @dependabot
  • chore(deps): bump squidfunk/mkdocs-material from 8ef47d7 to 48d1914 in /docs (#4336) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.145 to 0.1.146 (#4330) by @dependabot
  • chore(deps): bump codecov/codecov-action from 4.3.1 to 4.4.0 (#4328) by @dependabot
  • chore(deps-dev): bump mypy-boto3-s3 from 1.34.91 to 1.34.105 in the boto-typing group (#4329) by @dependabot
  • chore(deps-dev): bump mkdocs-material from 9.5.21 to 9.5.22 (#4324) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.144 to 0.1.145 (#4325) by @dependabot
  • chore(deps): bump squidfunk/mkdocs-material from 11d7ec0 to 8ef47d7 in /docs (#4323) by @dependabot
  • chore(deps-dev): bump cfn-lint from 0.87.1 to 0.87.2 (#4317) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.142 to 0.1.144 (#4316) by @dependabot
  • chore(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.27.12 to 1.27.13 in /layer/scripts/layer-balancer in the layer-balancer group (#4319) by @dependabot
  • chore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.140.0a0 to 2.141.0a0 (#4318) by @dependabot
  • chore(deps): bump ossf/scorecard-action from 2.3.1 to 2.3.3 (#4315) by @dependabot
  • chore(deps-dev): bump ruff from 0.4.3 to 0.4.4 (#4309) by @dependabot
  • chore(deps-dev): bump aws-cdk-lib from 2.140.0 to 2.141.0 (#4308) by @dependabot
  • chore(deps-dev): bump aws-cdk from 2.140.0 to 2.141.0 (#4306) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.140 to 0.1.142 (#4307) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.139 to 0.1.140 (#4301) by @dependabot
  • chore(deps): bump the layer-balancer group in /layer/scripts/layer-balancer with 2 updates (#4302) by @dependabot
  • chore(governance): add FastAPI third party license attribution (#4297) by @leandrodamascena
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.136 to 0.1.139 (#4293) by @dependabot
  • fix(typing): resolved_headers_field is not Optional (#4148) by @Wurstnase
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.135 to 0.1.136 (#4285) by @dependabot
  • chore(deps): bump zgosalvez/github-actions-ensure-sha-pinned-actions from 3.0.4 to 3.0.5 (#4281) by @dependabot
  • chore(deps): bump actions/checkout from 4.1.4 to 4.1.5 (#4282) by @dependabot
  • chore(deps): bump jinja2 from 3.1.3 to 3.1.4 in /docs (#4284) by @dependabot
  • chore(deps-dev): bump jinja2 from 3.1.3 to 3.1.4 (#4283) by @dependabot
  • chore(deps-dev): bump ruff from 0.4.2 to 0.4.3 (#4286) by @dependabot
  • chore(deps-dev): bump sentry-sdk from 2.0.1 to 2.1.1 (#4287) by @dependabot
  • chore(deps-dev): bump coverage from 7.5.0 to 7.5.1 (#4288) by @dependabot
  • chore(deps): bump squidfunk/mkdocs-material from 98c9809 to 11d7ec0 in /docs (#4269) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.134 to 0.1.135 (#4273) by @dependabot
  • chore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.139.1a0 to 2.140.0a0 (#4270) by @dependabot
  • chore(deps-dev): bump cfn-lint from 0.87.0 to 0.87.1 (#4272) by @dependabot
  • chore(deps-dev): bump mkdocs-material from 9.5.20 to 9.5.21 (#4271) by @dependabot
  • chore(deps-dev): bump mike from 2.1.0 to 2.1.1 (#4268) by @dependabot
  • chore(deps-dev): bump mike from 1.1.2 to 2.1.0 (#4258) by @dependabot
  • chore(deps-dev): bump aws-cdk-lib from 2.139.1 to 2.140.0 (#4259) by @dependabot
  • chore(deps): bump slsa-framework/slsa-github-generator from 1.10.0 to 2.0.0 (#4179) by @dependabot
  • chore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.139.0a0 to 2.139.1a0 (#4261) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.133 to 0.1.134 (#4260) by @dependabot
  • chore(deps-dev): bump aws-cdk from 2.139.1 to 2.140.0 (#4256) by @dependabot
  • chore(deps-dev): bump mypy-boto3-dynamodb from 1.34.91 to 1.34.97 in the boto-typing group (#4257) by @dependabot
  • chore(deps-dev): bump aws-cdk-lib from 2.139.0 to 2.139.1 (#4248) by @dependabot
  • chore(deps-dev): bump cfn-lint from 0.86.4 to 0.87.0 (#4249) by @dependabot
  • chore(deps-dev): bump pytest-xdist from 3.5.0 to 3.6.1 (#4247) by @dependabot
  • chore(deps): bump datadog-lambda from 5.93.0 to 5.94.0 (#4253) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.132 to 0.1.133 (#4246) by @dependabot
  • chore(deps): bump codecov/codecov-action from 4.3.0 to 4.3.1 (#4252) by @dependabot
  • chore(deps-dev): bump aws-cdk from 2.139.0 to 2.139.1 (#4245) by @dependabot
  • chore(deps): bump actions/dependency-review-action from 4.3.1 to 4.3.2 (#4244) by @dependabot
  • chore(deps-dev): bump filelock from 3.13.4 to 3.14.0 (#4241) by @dependabot
  • chore(deps-dev): bump hvac from 2.1.0 to 2.2.0 (#4238) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.131 to 0.1.132 (#4239) by @dependabot
  • chore(deps-dev): bump mkdocs-material from 9.5.19 to 9.5.20 (#4242) by @dependabot
  • chore(deps): bump actions/dependency-review-action from 4.2.5 to 4.3.1 (#4240) by @dependabot
  • chore(deps-dev): bump pytest from 8.1.1 to 8.2.0 (#4237) by @dependabot
  • chore(deps): bump squidfunk/mkdocs-material from e309089 to 98c9809 in /docs (#4236) by @dependabot
  • chore(ci): add branch v3 to quality check and e2e actions (#4232) by @leandrodamascena
  • chore(deps-dev): bump sentry-sdk from 1.45.0 to 2.0.1 (#4223) by @dependabot
  • chore(deps-dev): bump mkdocs-material from 9.5.18 to 9.5.19 (#4224) by @dependabot
  • chore(deps-dev): bump black from 24.4.1 to 24.4.2 (#4222) by @dependabot
  • chore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.138.0a0 to 2.139.0a0 (#4225) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.130 to 0.1.131 (#4221) by @dependabot
  • chore(deps): bump datadog-lambda from 5.92.0 to 5.93.0 (#4211) by @dependabot
  • chore(deps-dev): bump ruff from 0.4.1 to 0.4.2 (#4212) by @dependabot
  • chore(deps-dev): bump aws-cdk-lib from 2.138.0 to 2.139.0 (#4213) by @dependabot
  • chore(deps-dev): bump aws-cdk from 2.138.0 to 2.139.0 (#4215) by @dependabot
  • chore(deps-dev): bump types-redis from 4.6.0.20240423 to 4.6.0.20240425 (#4214) by @dependabot
  • chore(deps): bump squidfunk/mkdocs-material from 521644b to e309089 in /docs (#4216) by @dependabot
  • chore(deps-dev): bump the boto-typing group with 2 updates (#4210) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.126 to 0.1.130 (#4209) by @dependabot
  • chore(deps): bump actions/checkout from 4.1.3 to 4.1.4 (#4206) by @dependabot
  • chore(deps): bump actions/download-artifact from 4.1.6 to 4.1.7 (#4205) by @dependabot
  • chore(deps-dev): bump black from 24.4.0 to 24.4.1 (#4203) by @dependabot
  • chore(deps-dev): bump mypy from 1.9.0 to 1.10.0 (#4202) by @dependabot
  • chore(deps-dev): bump mypy-boto3-ssm from 1.34.61 to 1.34.91 in the boto-typing group (#4201) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.123 to 0.1.126 (#4188) by @dependabot
  • chore(deps-dev): bump coverage from 7.4.4 to 7.5.0 (#4186) by @dependabot
  • chore(deps): bump redis from 5.0.3 to 5.0.4 (#4187) by @dependabot
  • chore(deps-dev): bump types-redis from 4.6.0.20240417 to 4.6.0.20240423 (#4185) by @dependabot
  • chore(deps): bump actions/download-artifact from 4.1.5 to 4.1.6 (#4178) by @dependabot
  • chore(deps): bump actions/upload-artifact from 4.3.2 to 4.3.3 (#4177) by @dependabot
  • chore(deps-dev): bump cfn-lint from 0.86.3 to 0.86.4 (#4180) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.121 to 0.1.123 (#4176) by @dependabot
  • chore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.137.0a0 to 2.138.0a0 (#4169) by @dependabot
  • chore(deps): bump actions/checkout from 4.1.2 to 4.1.3 (#4168) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.119 to 0.1.121 (#4167) by @dependabot
  • chore(deps-dev): bump ruff from 0.3.7 to 0.4.1 (#4166) by @dependabot
  • chore(deps-dev): bump aws-cdk from 2.137.0 to 2.138.0 (#4157) by @dependabot
  • chore(deps-dev): bump aws-cdk-lib from 2.137.0 to 2.138.0 (#4160) by @dependabot
  • chore(deps): bump actions/download-artifact from 4.1.4 to 4.1.5 (#4161) by @dependabot
  • chore(deps): bump actions/upload-artifact from 4.3.1 to 4.3.2 (#4162) by @dependabot

This release was made possible by the following contributors:

@Wurstnase, @benjamingorman, @dependabot, @dependabot[bot], @dreamorosi, @github-actions, @github-actions[bot], @heitorlessa, @keithrozario, @leandrodamascena, @nlykkei, @phipag, @raymondbutcher and @rubenfonseca

v2.37.0

2 months ago

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

Docs

You can now add security scheme annotations to your generated OpenAPI documentation (HTTP headers, API keys, OAuth 2 and OpenID connect). Additionally, you can configure the built-in Swagger UI to use OAuth 2 when generating requests.

carbon (21) (1) image (26)

🌟 Huge thanks to @nlykkei for helping us shape this feature!

Manipulating Idempotent Responses

Docs

You can now set up a response_hook in the IdempotentConfig class to manipulate the returned data when an operation is idempotent. The hook function will be called with the current deserialized response object and the idempotency record.

This can be used for changing something in the response, inject headers, emit custom metrics, and many other use cases.

carbon (23)

🌟 Thank you @walmsles for leading the design and implementation of this!

Changes

🌟New features and non-breaking changes

  • feat(event_handler): add support for OpenAPI security schemes (#4103) by @rubenfonseca
  • feat(event_sources,parser): add support for DeadLetterQueueSourceArn for SQS (#4133) by @rubenfonseca
  • feat(logger): add method to return currently configured keys (#4033) by @leandrodamascena
  • feat(idempotency): add feature for manipulating idempotent responses (#4037) by @walmsles

πŸ“œ Documentation updates

  • docs(we-made-this): new article on how to stream data with AWS Lambda & Powertools for AWS Lambda (#4068) by @leandrodamascena

πŸ› Bug and hot fixes

  • fix(typing): make the case_sensitive field a boolean only (#4128) by @Wurstnase
  • fix(typing): improve overloads to ensure the return type follows the default_value type (#4114) by @Wurstnase
  • fix(docs): clarified usage of validation with fine grained responses (#4101) by @rubenfonseca
  • fix(event_source): fix typo in physicalname attribute for AmazonMQ events (#4053) by @SZubarev

πŸ”§ Maintenance

  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.115 to 0.1.119 (#4150) by @dependabot
  • chore(deps-dev): bump types-redis from 4.6.0.20240409 to 4.6.0.20240417 (#4145) by @dependabot
  • chore(deps-dev): bump mkdocs-material from 9.5.17 to 9.5.18 (#4143) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.113 to 0.1.115 (#4142) by @dependabot
  • chore(deps): bump squidfunk/mkdocs-material from 6b124e1 to 521644b in /docs (#4141) by @dependabot
  • chore(deps-dev): bump cfn-lint from 0.86.2 to 0.86.3 (#4137) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.112 to 0.1.113 (#4136) by @dependabot
  • chore(deps): bump sqlparse from 0.4.4 to 0.5.0 (#4138) by @dependabot
  • chore(deps-dev): bump black from 24.3.0 to 24.4.0 (#4135) by @dependabot
  • chore(docs): update highlighted lines on the Typing examples (#4131) by @Emerson-MM-Filho
  • chore(deps-dev): bump mypy-boto3-cloudformation from 1.34.77 to 1.34.84 in the boto-typing group (#4126) by @dependabot
  • chore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.136.0a0 to 2.137.0a0 (#4124) by @dependabot
  • chore(deps): bump idna from 3.6 to 3.7 (#4121) by @dependabot
  • chore(deps-dev): bump aws-cdk-lib from 2.136.1 to 2.137.0 (#4119) by @dependabot
  • chore(deps-dev): bump ruff from 0.3.5 to 0.3.7 (#4123) by @dependabot
  • chore(deps-dev): bump mypy-boto3-cloudwatch from 1.34.75 to 1.34.83 in the boto-typing group (#4116) by @dependabot
  • chore(deps-dev): bump aws-cdk from 2.136.1 to 2.137.0 (#4115) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.110 to 0.1.112 (#4109) by @dependabot
  • chore(deps-dev): bump sentry-sdk from 1.44.1 to 1.45.0 (#4108) by @dependabot
  • chore(deps-dev): bump aws-cdk-lib from 2.136.0 to 2.136.1 (#4107) by @dependabot
  • chore(deps-dev): bump aws-cdk from 2.136.0 to 2.136.1 (#4106) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.107 to 0.1.110 (#4097) by @dependabot
  • chore(deps-dev): bump filelock from 3.13.3 to 3.13.4 (#4096) by @dependabot
  • chore(deps): bump zgosalvez/github-actions-ensure-sha-pinned-actions from 3.0.3 to 3.0.4 (#4099) by @dependabot
  • chore(deps): bump codecov/codecov-action from 4.2.0 to 4.3.0 (#4098) by @dependabot
  • chore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.135.0a0 to 2.136.0a0 (#4095) by @dependabot
  • chore(deps-dev): bump types-redis from 4.6.0.20240311 to 4.6.0.20240409 (#4094) by @dependabot
  • chore(deps-dev): bump aws-cdk from 2.135.0 to 2.136.0 (#4090) by @dependabot
  • chore(deps): bump docker/setup-buildx-action from 3.2.0 to 3.3.0 (#4091) by @dependabot
  • chore(deps-dev): bump aws-cdk-lib from 2.135.0 to 2.136.0 (#4092) by @dependabot
  • chore(deps-dev): bump cfn-lint from 0.86.1 to 0.86.2 (#4081) by @dependabot
  • chore(deps): bump typing-extensions from 4.10.0 to 4.11.0 (#4080) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.106 to 0.1.107 (#4082) by @dependabot
  • chore(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.27.10 to 1.27.11 in /layer/scripts/layer-balancer in the layer-balancer group (#4079) by @dependabot
  • chore(ci): add monthly roadmap reminder workflow (#4075) by @heitorlessa
  • chore(deps): bump codecov/codecov-action from 4.1.1 to 4.2.0 (#4072) by @dependabot
  • chore(deps): bump golang.org/x/sync from 0.6.0 to 0.7.0 in /layer/scripts/layer-balancer in the layer-balancer group (#4071) by @dependabot
  • chore(deps-dev): bump sentry-sdk from 1.44.0 to 1.44.1 (#4065) by @dependabot
  • chore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.134.0a0 to 2.135.0a0 (#4063) by @dependabot
  • chore(deps): bump pydantic from 1.10.14 to 1.10.15 (#4064) by @dependabot
  • chore(deps-dev): bump the boto-typing group with 2 updates (#4062) by @dependabot
  • chore(deps): bump the layer-balancer group in /layer/scripts/layer-balancer with 1 update (#4066) by @dependabot
  • chore(ci): prevent deprecated custom runner from being used (#4061) by @heitorlessa
  • chore(deps-dev): bump aws-cdk from 2.134.0 to 2.135.0 (#4058) by @dependabot
  • chore(deps-dev): bump aws-cdk-lib from 2.134.0 to 2.135.0 (#4057) by @dependabot
  • chore(deps-dev): bump mkdocs-material from 9.5.16 to 9.5.17 (#4056) by @dependabot
  • chore(deps): bump squidfunk/mkdocs-material from 065f3af to 6b124e1 in /docs (#4055) by @dependabot
  • chore(deps-dev): bump ruff from 0.3.4 to 0.3.5 (#4049) by @dependabot
  • chore(deps-dev): bump mkdocs-material from 9.5.15 to 9.5.16 (#4050) by @dependabot
  • chore(deps-dev): bump the boto-typing group with 1 update (#4047) by @dependabot
  • chore(deps): bump squidfunk/mkdocs-material from 3307665 to 065f3af in /docs (#4052) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.105 to 0.1.106 (#4048) by @dependabot
  • chore(deps): bump the layer-balancer group in /layer/scripts/layer-balancer with 3 updates (#4042) by @dependabot
  • chore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.133.0a0 to 2.134.0a0 (#4039) by @dependabot
  • chore(deps-dev): bump sentry-sdk from 1.43.0 to 1.44.0 (#4040) by @dependabot
  • chore(deps): bump datadog-lambda from 5.91.0 to 5.92.0 (#4038) by @dependabot
  • chore(deps-dev): bump aws-cdk-lib from 2.133.0 to 2.134.0 (#4031) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.104 to 0.1.105 (#4030) by @dependabot
  • chore(deps-dev): bump aws-cdk from 2.133.0 to 2.134.0 (#4032) by @dependabot
  • chore(deps-dev): bump the boto-typing group with 1 update (#4029) by @dependabot

This release was made possible by the following contributors:

@Emerson-MM-Filho, @SZubarev, @Wurstnase, @dependabot, @dependabot[bot], @github-actions, @github-actions[bot], @heitorlessa, @leandrodamascena, @rubenfonseca and @walmsles

v2.36.0

2 months ago

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: @rafrafek, @xquek, and @par6n!

Creating and updating Parameters and Secrets

Docs

In response to our customer requests, Powertools now provides an enhanced experience for effortlessly creating and updating Parameters and Secrets. Recognizing the critical importance of parameters and secrets management, we created this new feature to empower customers with a seamless experience in managing their sensitive information.

parameters

secrets

A big thank you to @stephenbawks for their dedicated effort in implementing this new feature.

EMF Metrics with custom timestamp

Docs

Some customers may need to create metrics with specific timestamps, to address this use case we've added the capability set custom metrics with specific timestamps to improve customer flexibility. Previously, this was not possible and all metrics were generated with the current timestamp.

timestamp

New flag for optimized batch processing with SQS Fifo queues

Docs

We've created a new flag to enable seamless processing of messages from different group IDs. Activating this flag ensures that messages from a failed group ID are returned to SQS, allowing uninterrupted processing of messages from subsequent group IDs.

batch

Thank you @duc00, for highlighting such an important matter and contributing to the improvement of this utility.

New CloudWatchAlarmEvent data class

Docs

Customers now have the ability to utilize CloudWatchAlarmEvent, which provides Type hinting and code completion support for this event, enhancing the development experience.

cwagent

Last but not least, we've made significant improvements to our OpenAPI utility and fixed bugs to ensure a smoother experience. See all the latest improvements and bugfix in the changes section.

Changes

  • refactor(logger): add type annotation for append_keys method (#3988) by @rafrafek
  • refactor(parameters): improve typing for get_secret method (#3910) by @TonySherman

🌟New features and non-breaking changes

  • feat(metrics): allow custom timestamps for metrics (#4006) by @leandrodamascena
  • feat(parameters): add feature for creating and updating Parameters and Secrets (#2858) by @stephenbawks
  • feat(batch): add flag in SqsFifoProcessor to enable continuous message processing (#3954) by @leandrodamascena
  • feat(tracer): auto-disable tracer when for AWS SAM and Chalice environments (#3949) by @leandrodamascena
  • feat(event_handler): define exception_handler directly from the router (#3979) by @leandrodamascena
  • feat(event-handler): add compress option when serving Swagger HTML (#3946) by @xquek
  • feat(data_classes): Add CloudWatchAlarmEvent data class (#3868) by @par6n

πŸ“œ Documentation updates

  • docs(batch): improved the example demonstrating how to create a custom partial processor. (#4024) by @leandrodamascena
  • docs(tutorial): fix "Simplifying with Tracer" section in the tutorial (#3962) by @leandrodamascena
  • docs(bedrock-agents): fix type in Bedrock operation example (#3948) by @eldritchideen

πŸ› Bug and hot fixes

  • fix(tracer): add name sanitization for X-Ray subsegments (#4005) by @leandrodamascena
  • fix(event_handler): always add 422 response to the schema (#3995) by @rubenfonseca
  • fix(event_handler): make decoded_body field optional in ApiGateway resolver (#3937) by @leandrodamascena

πŸ”§ Maintenance

  • chore(deps-dev): bump aws-cdk-lib from 2.133.0 to 2.134.0 (#4031) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.104 to 0.1.105 (#4030) by @dependabot
  • chore(deps-dev): bump aws-cdk from 2.133.0 to 2.134.0 (#4032) by @dependabot
  • chore(deps-dev): bump the boto-typing group with 1 update (#4029) by @dependabot
  • chore(deps): bump codecov/codecov-action from 4.1.0 to 4.1.1 (#4021) by @dependabot
  • chore(deps): bump actions/setup-python from 5.0.0 to 5.1.0 (#4022) by @dependabot
  • chore(deps): bump actions/dependency-review-action from 4.2.4 to 4.2.5 (#4023) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.101 to 0.1.104 (#4020) by @dependabot
  • chore(deps): bump squidfunk/mkdocs-material from 6c81a89 to 3307665 in /docs (#4017) by @dependabot
  • chore(deps-dev): bump mkdocs-material from 9.5.14 to 9.5.15 (#4016) by @dependabot
  • chore(deps-dev): bump pytest-cov from 4.1.0 to 5.0.0 (#4013) by @dependabot
  • chore(deps-dev): bump filelock from 3.13.1 to 3.13.3 (#4014) by @dependabot
  • chore(deps): bump actions/dependency-review-action from 4.2.3 to 4.2.4 (#4012) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.99 to 0.1.101 (#4015) by @dependabot
  • chore(deps-dev): bump pytest-mock from 3.13.0 to 3.14.0 (#4007) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.96 to 0.1.99 (#4008) by @dependabot
  • chore(deps-dev): bump cfn-lint from 0.86.0 to 0.86.1 (#3998) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.94 to 0.1.96 (#4002) by @dependabot
  • chore(deps-dev): bump pytest-mock from 3.12.0 to 3.13.0 (#3999) by @dependabot
  • chore(deps-dev): bump ruff from 0.3.3 to 0.3.4 (#3996) by @dependabot
  • chore(deps): bump slsa-framework/slsa-github-generator from 1.9.0 to 1.10.0 (#3997) by @dependabot
  • chore(deps): bump the layer-balancer group in /layer/scripts/layer-balancer with 1 update (#4001) by @dependabot
  • chore(deps-dev): bump sentry-sdk from 1.42.0 to 1.43.0 (#3992) by @dependabot
  • chore(deps): bump actions/dependency-review-action from 4.1.3 to 4.2.3 (#3993) by @dependabot
  • chore(deps-dev): bump the boto-typing group with 1 update (#3991) by @dependabot
  • chore(deps-dev): bump pytest-asyncio from 0.23.5.post1 to 0.23.6 (#3984) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.91 to 0.1.94 (#3985) by @dependabot
  • chore(deps): bump aws-encryption-sdk from 3.1.1 to 3.2.0 (#3983) by @dependabot
  • chore(deps-dev): bump the boto-typing group with 2 updates (#3982) by @dependabot
  • chore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.132.1a0 to 2.133.0a0 (#3976) by @dependabot
  • chore(deps-dev): bump mkdocs-material from 9.5.13 to 9.5.14 (#3978) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.90 to 0.1.91 (#3975) by @dependabot
  • chore(deps-dev): bump types-python-dateutil from 2.9.0.20240315 to 2.9.0.20240316 (#3977) by @dependabot
  • chore(deps): bump squidfunk/mkdocs-material from 3678304 to 6c81a89 in /docs (#3973) by @dependabot
  • chore(deps): bump the layer-balancer group in /layer/scripts/layer-balancer with 3 updates (#3972) by @dependabot
  • chore(deps-dev): bump the boto-typing group with 2 updates (#3974) by @dependabot
  • chore(deps-dev): bump ruff from 0.3.2 to 0.3.3 (#3967) by @dependabot
  • chore(deps-dev): bump aws-cdk-lib from 2.132.1 to 2.133.0 (#3965) by @dependabot
  • chore(deps-dev): bump black from 24.2.0 to 24.3.0 (#3968) by @dependabot
  • chore(deps-dev): bump types-python-dateutil from 2.8.19.20240311 to 2.9.0.20240315 (#3966) by @dependabot
  • chore(deps-dev): bump aws-cdk from 2.132.1 to 2.133.0 (#3963) by @dependabot
  • chore(deps-dev): bump the boto-typing group with 1 update (#3964) by @dependabot
  • chore(deps): bump datadog-lambda from 5.90.0 to 5.91.0 (#3958) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.89 to 0.1.90 (#3957) by @dependabot
  • chore(deps-dev): bump the boto-typing group with 1 update (#3956) by @dependabot
  • chore(deps): bump docker/setup-buildx-action from 3.1.0 to 3.2.0 (#3955) by @dependabot
  • chore(deps-dev): bump coverage from 7.4.3 to 7.4.4 (#3959) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.88 to 0.1.89 (#3952) by @dependabot
  • chore(deps-dev): bump sentry-sdk from 1.41.0 to 1.42.0 (#3951) by @dependabot
  • chore(deps-dev): bump the boto-typing group with 1 update (#3950) by @dependabot
  • chore(deps): bump datadog-lambda from 5.89.0 to 5.90.0 (#3941) by @dependabot
  • chore(deps-dev): bump the boto-typing group with 2 updates (#3940) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.87 to 0.1.88 (#3942) by @dependabot
  • chore(deps-dev): bump pytest from 8.0.2 to 8.1.1 (#3943) by @dependabot
  • chore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.131.0a0 to 2.132.1a0 (#3944) by @dependabot
  • chore(deps): bump actions/checkout from 4.1.1 to 4.1.2 (#3939) by @dependabot
  • chore(deps-dev): bump aws-cdk from 2.132.0 to 2.132.1 (#3938) by @dependabot
  • chore(deps-dev): bump aws-cdk-lib from 2.131.0 to 2.132.1 (#3936) by @dependabot
  • chore(deps): bump redis from 5.0.2 to 5.0.3 (#3929) by @dependabot
  • chore(deps-dev): bump aws-cdk from 2.131.0 to 2.132.0 (#3928) by @dependabot
  • chore(deps-dev): bump types-redis from 4.6.0.20240218 to 4.6.0.20240311 (#3931) by @dependabot
  • chore(deps-dev): bump types-python-dateutil from 2.8.19.20240106 to 2.8.19.20240311 (#3932) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.83 to 0.1.87 (#3930) by @dependabot
  • chore(deps-dev): bump ruff from 0.3.0 to 0.3.2 (#3925) by @dependabot
  • chore(deps-dev): bump mypy from 1.8.0 to 1.9.0 (#3921) by @dependabot
  • chore(deps-dev): bump bandit from 1.7.7 to 1.7.8 (#3920) by @dependabot
  • chore(deps-dev): bump pytest-asyncio from 0.23.5 to 0.23.5.post1 (#3923) by @dependabot
  • chore(deps): bump pypa/gh-action-pypi-publish from 1.8.12 to 1.8.14 (#3918) by @dependabot
  • chore(deps-dev): bump the boto-typing group with 2 updates (#3919) by @dependabot

This release was made possible by the following contributors:

@TonySherman, @dependabot, @dependabot[bot], @eldritchideen, @github-actions, @github-actions[bot], @leandrodamascena, @par6n, @rafrafek, @rubenfonseca, @stephenbawks and @xquek

v2.35.1

3 months ago

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 issues!

Changes

πŸ› Bug and hot fixes

  • fix(event_handler): validate POST bodies on BedrockAgentResolver (#3903) by @rubenfonseca
  • fix(data_sources): ensure correct types on SQSMessageAttributes (#3898) by @rubenfonseca
  • fix(internal): call ruff with correct args (#3901) by @rubenfonseca
  • fix(event_handler): use custom serializer during openapi serialization (#3900) by @rubenfonseca

πŸ”§ Maintenance

  • chore(deps): bump datadog-lambda from 5.88.0 to 5.89.0 (#3907) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.82 to 0.1.83 (#3908) by @dependabot
  • chore(deps-dev): bump sentry-sdk from 1.40.6 to 1.41.0 (#3905) by @dependabot
  • chore(deps): bump the layer-balancer group in /layer/scripts/layer-balancer with 3 updates (#3911) by @dependabot
  • chore(deps): bump aws-xray-sdk from 2.12.1 to 2.13.0 (#3906) by @dependabot
  • chore(deps-dev): bump the boto-typing group with 1 update (#3904) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.81 to 0.1.82 (#3896) by @dependabot
  • chore(deps-dev): bump mkdocs-material from 9.5.12 to 9.5.13 (#3895) by @dependabot
  • chore(deps): bump squidfunk/mkdocs-material from 7be068b to 3678304 in /docs (#3894) by @dependabot

This release was made possible by the following contributors:

@dependabot, @dependabot[bot], @github-actions, @github-actions[bot] and @rubenfonseca

v2.35.0

3 months ago

Summary

We’re super excited to introduce a brand new utility to author Agents for Amazon Bedrock! πŸŽ‰πŸŽ‰

Agents for Amazon 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.

image

Agents for Amazon Bedrock Event Handler

Docs

Building on top of the Event Handler validation framework and the OpenAPI generation feature introduced in December, we created a new utility to:

  • πŸ›  Drastically reduce the boilerplate to build Agents for Amazon Bedrock
  • πŸš€ Automatically generate OpenAPI schemas from your business logic code
  • βœ… Built-in data validation for requests and responses
  • 🌐 Similar experience when authoring REST and HTTP APIs

Here's an agent with an action to schedule a meeting, ensuring that a valid email was passed in by the user:

image

Check out our brand new docs on the feature and let us know what you think!

Oh and we also fixed some bugs :) Thank you @kbakk and @aminalaee for your contributions!

Changes

  • refactor(logger): improve typing (#3869) by @aminalaee

πŸ“œ Documentation updates

  • docs(event_handler): add bedrock agent resolver documentation (#3602) by @rubenfonseca

πŸ› Bug and hot fixes

  • fix(event_handler): OpenAPI schema version respects Pydantic version (#3860) by @rubenfonseca

πŸ”§ Maintenance

  • chore(docs): add Bedrock Agents to feature list (#3889) by @rubenfonseca
  • chore(deps): bump the layer-balancer group in /layer/scripts/layer-balancer with 1 update (#3887) by @dependabot
  • docs(event_handler): add bedrock agent resolver documentation (#3602) by @rubenfonseca
  • chore(deps-dev): bump cfn-lint from 0.85.3 to 0.86.0 (#3882) by @dependabot
  • chore(deps-dev): bump aws-cdk from 2.130.0 to 2.131.0 (#3883) by @dependabot
  • chore(deps): bump the layer-balancer group in /layer/scripts/layer-balancer with 1 update (#3884) by @dependabot
  • chore(deps-dev): bump aws-cdk-lib from 2.130.0 to 2.131.0 (#3881) by @dependabot
  • chore(deps): bump actions/download-artifact from 4.1.3 to 4.1.4 (#3875) by @dependabot
  • chore(deps): bump squidfunk/mkdocs-material from 49d1bfd to 7be068b in /docs (#3872) by @dependabot
  • chore(deps-dev): bump mkdocs-material from 9.5.11 to 9.5.12 (#3870) by @dependabot
  • chore(deps-dev): bump ruff from 0.2.2 to 0.3.0 (#3871) by @dependabot
  • chore(deps): bump redis from 5.0.1 to 5.0.2 (#3867) by @dependabot
  • chore(deps-dev): bump cfn-lint from 0.85.2 to 0.85.3 (#3861) by @dependabot
  • chore(deps): bump actions/download-artifact from 4.1.2 to 4.1.3 (#3862) by @dependabot
  • chore(deps): bump pypa/gh-action-pypi-publish from 1.8.11 to 1.8.12 (#3863) by @dependabot
  • chore(deps): bump docker/setup-buildx-action from 3.0.0 to 3.1.0 (#3864) by @dependabot
  • chore(deps-dev): bump black from 24.1.1 to 24.2.0 (#3760) by @dependabot
  • chore(deps): bump codecov/codecov-action from 4.0.2 to 4.1.0 (#3856) by @dependabot
  • chore(deps): bump squidfunk/mkdocs-material from 43b898a to 49d1bfd in /docs (#3857) by @dependabot

This release was made possible by the following contributors:

@aminalaee, @dependabot, @dependabot[bot], @github-actions, @github-actions[bot] and @rubenfonseca

v2.34.2

4 months ago

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

🌟New features and non-breaking changes

  • feat(event-source): add function to get multi-value query string params by name (#3846) by @TonySherman

πŸ“œ Documentation updates

  • docs(install): make minimum install the default option then extra (#3834) by @heitorlessa

πŸ› Bug and hot fixes

  • fix(typing): ensure return type is a str when default_value is set (#3840) by @Wurstnase

πŸ”§ Maintenance

  • chore(ci): remove aws-encryption-sdk from Lambda layer due to cffi being tied to python version (#3853) by @leandrodamascena
  • chore(deps-dev): bump aws-cdk from 2.129.0 to 2.130.0 (#3843) by @dependabot
  • chore(deps): bump codecov/codecov-action from 4.0.1 to 4.0.2 (#3842) by @dependabot
  • chore(deps): bump the layer-balancer group in /layer/scripts/layer-balancer with 3 updates (#3844) by @dependabot
  • chore(deps-dev): bump httpx from 0.26.0 to 0.27.0 (#3828) by @dependabot
  • chore(deps): bump cryptography from 42.0.2 to 42.0.4 (#3827) by @dependabot
  • chore(deps-dev): bump aws-cdk-lib from 2.128.0 to 2.130.0 (#3838) by @dependabot
  • chore(deps-dev): bump aws-cdk from 2.128.0 to 2.129.0 (#3831) by @dependabot
  • chore(deps): bump the layer-balancer group in /layer/scripts/layer-balancer with 3 updates (#3835) by @dependabot
  • chore(deps-dev): bump the boto-typing group with 1 update (#3836) by @dependabot

This release was made possible by the following contributors:

@TonySherman, @Wurstnase, @dependabot, @dependabot[bot], @github-actions, @github-actions[bot], @heitorlessa and @leandrodamascena

v2.34.1

4 months ago

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 for PR Label automation (#3819) by @heitorlessa
  • fix(ci): revert layer version bump write-only back to append (#3818) by @heitorlessa

πŸ”§ Maintenance

  • fix(idempotency): validate before saving to cache (#3822) by @heitorlessa
  • chore(deps-dev): bump ruff from 0.2.1 to 0.2.2 (#3802) by @dependabot

This release was made possible by the following contributors:

@dependabot, @dependabot[bot], @github-actions, @github-actions[bot] and @heitorlessa