Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 14, 2025

Bumps aws-lambda-powertools from 2.35.1 to 3.10.0.

Release notes

Sourced from aws-lambda-powertools's releases.

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 type of a parameter in TransferFamilyAuthorizerResponse.

⭐ Huge thanks to @​VatsalGoel3, @​dave-dotnet-overall and @​fabien-github!

Built-in model AppSync Resolver for Parser

Docs

Enables structured parsing and validation of AWS AppSync Resolver events using Pydantic. The schema supports fields such as arguments, identity, source, request, info, prev, and stash, covering all standard AppSync resolver context attributes.

image

Changes

🌟New features and non-breaking changes

📜 Documentation updates

🐛 Bug and hot fixes

🔧 Maintenance

... (truncated)

Changelog

Sourced from aws-lambda-powertools's changelog.

[v3.10.0] - 2025-04-08

Bug Fixes

  • event_source: Added missing properties in APIGatewayWebSocketEvent class (#6411)
  • event_source: fix HomeDirectoryDetails type in TransferFamilyAuthorizerResponse method (#6403)
  • logger: improve behavior with exc_info=True to prevent errors (#6417)

Documentation

  • homepage: add SAR documentation (#6347)

Features

  • parser: add AppSyncResolver model (#6400)

Maintenance

  • version bump
  • ci: new pre-release 3.9.1a4 (#6377)
  • ci: new pre-release 3.9.1a8 (#6415)
  • ci: new pre-release 3.9.1a9 (#6422)
  • ci: new pre-release 3.9.1a0 (#6354)
  • ci: new pre-release 3.9.1a5 (#6385)
  • ci: new pre-release 3.9.1a7 (#6401)
  • ci: new pre-release 3.9.1a1 (#6356)
  • ci: new pre-release 3.9.1a2 (#6364)
  • ci: new pre-release 3.9.1a6 (#6392)
  • ci: new pre-release 3.9.1a3 (#6369)
  • deps: bump aws-encryption-sdk from 4.0.0 to 4.0.1 (#6360)
  • deps: bump pydantic from 2.11.1 to 2.11.2 (#6395)
  • deps: bump zgosalvez/github-actions-ensure-sha-pinned-actions from 3.0.22 to 3.0.23 (#6371)
  • deps: bump squidfunk/mkdocs-material from 3555052 to 23b6978 in /docs (#6404)
  • deps: bump datadog-lambda from 6.106.0 to 6.107.0 (#6405)
  • deps: bump squidfunk/mkdocs-material from f226a2d to 3555052 in /docs (#6372)
  • deps: bump pydantic from 2.10.6 to 2.11.1 (#6383)
  • deps: bump typing-extensions from 4.12.2 to 4.13.1 (#6418)
  • deps: bump actions/setup-python from 5.4.0 to 5.5.0 (#6349)
  • deps: bump actions/dependency-review-action from 4.5.0 to 4.6.0 (#6380)
  • deps-dev: bump aws-cdk-aws-lambda-python-alpha from 2.186.0a0 to 2.187.0a0 (#6382)
  • deps-dev: bump pytest-cov from 6.0.0 to 6.1.0 (#6381)
  • deps-dev: bump coverage from 7.7.1 to 7.8.0 (#6376)
  • deps-dev: bump mkdocs-material from 9.6.9 to 9.6.10 (#6375)
  • deps-dev: bump boto3-stubs from 1.37.23 to 1.37.24 (#6374)
  • deps-dev: bump boto3-stubs from 1.37.24 to 1.37.25 (#6384)
  • deps-dev: bump sentry-sdk from 2.24.1 to 2.25.0 (#6373)
  • deps-dev: bump aws-cdk from 2.1006.0 to 2.1007.0 (#6387)
  • deps-dev: bump boto3-stubs from 1.37.25 to 1.37.26 (#6389)
  • deps-dev: bump sentry-sdk from 2.25.0 to 2.25.1 (#6391)
  • deps-dev: bump boto3-stubs from 1.37.22 to 1.37.23 (#6366)
  • deps-dev: bump cdklabs-generative-ai-cdk-constructs from 0.1.298 to 0.1.299 (#6390)

... (truncated)

Upgrade guide

Sourced from aws-lambda-powertools's upgrade guide.


title: Upgrade guide description: Guide to update between major Powertools for AWS Lambda (Python) versions

End of support v2

!!! warning "On March 25st, 2025, Powertools for AWS Lambda (Python) v2 reached end of support and will no longer receive updates or releases. If you are still using v2, we strongly recommend you to read our upgrade guide and update to the latest version."

Given our commitment to all of our customers using Powertools for AWS Lambda (Python), we will keep Pypi{target="_blank"} v2 releases and documentation 2.x versions to prevent any disruption.

Migrate to v3 from v2

!!! info "We strongly encourage you to migrate to v3. However, if you still need to upgrade from v1 to v2, you can find the upgrade guide."

We've made minimal breaking changes to make your transition to v3 as smooth as possible.

Quick summary

Area Change Code change required
Pydantic We have removed support for Pydantic v1 No
Parser We have replaced DynamoDBStreamModel AttributeValue with native Python types Yes
Parser We no longer export Pydantic objects from parser.pydantic. Yes
Lambda layer Lambda layers are now compiled according to the specific Python version and architecture No
Event Handler We have deprecated the get_header_value function. Yes
Batch Processor @batch_processor and @async_batch_processor decorators are now deprecated Yes
Event Source Data Classes We have updated default values for optional fields. Yes
Parameters The default cache TTL is now set to 5 minutes No
Parameters The config parameter is deprecated in favor of boto_config Yes
JMESPath Functions The extract_data_from_envelope function is deprecated in favor of query Yes
Types file We have removed the type imports from the shared/types.py file Yes

First Steps

Before you start, we suggest making a copy of your current working project or create a new branch with git.

  1. Upgrade Python to at least v3.9.
  2. Ensure you have the latest version via Lambda Layer or PyPi{target="_blank"}.
  3. Review the following sections to confirm if you need to make changes to your code.

Drop support for Pydantic v1

!!! note "No code changes required"

As of June 30, 2024, Pydantic v1 has reached its end-of-life, and we have discontinued support for this version. We now exclusively support Pydantic v2.

Use Pydantic v2 Migration Guide{target="_blank"} to migrate your custom Pydantic models to v2.

... (truncated)

Commits
  • 1f77778 chore: version bump
  • 9e6f903 chore(ci): new pre-release 3.9.1a9 (#6422)
  • 5aa32c4 chore(deps-dev): bump boto3-stubs from 1.37.28 to 1.37.29 (#6421)
  • df6d252 chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.300 to 0....
  • 6164a9b chore(deps-dev): bump cfn-lint from 1.32.3 to 1.32.4 (#6419)
  • c87dcc0 chore(deps): bump typing-extensions from 4.12.2 to 4.13.1 (#6418)
  • 71edfc1 chore(ci): changelog rebuild (#6416)
  • aa6da21 fix(logger): improve behavior with exc_info=True to prevent errors (#6417)
  • f608b21 chore(ci): new pre-release 3.9.1a8 (#6415)
  • cc479b0 fix(event_source): Added missing properties in APIGatewayWebSocketEvent class...
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [aws-lambda-powertools](https://github.com/aws-powertools/powertools-lambda-python) from 2.35.1 to 3.10.0.
- [Release notes](https://github.com/aws-powertools/powertools-lambda-python/releases)
- [Changelog](https://github.com/aws-powertools/powertools-lambda-python/blob/develop/CHANGELOG.md)
- [Upgrade guide](https://github.com/aws-powertools/powertools-lambda-python/blob/develop/docs/upgrade.md)
- [Commits](aws-powertools/powertools-lambda-python@v2.35.1...v3.10.0)

---
updated-dependencies:
- dependency-name: aws-lambda-powertools
  dependency-version: 3.10.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Apr 14, 2025
@sonarqubecloud
Copy link

@github-actions
Copy link

💥 Something went wrong while building the pull request environment.
Check Output Logs

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Apr 28, 2025

Superseded by #892.

@dependabot dependabot bot closed this Apr 28, 2025
@dependabot dependabot bot deleted the dependabot/pip/aws-lambda-powertools-3.10.0 branch April 28, 2025 01:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants