Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 9, 2025

Bumps aws-lambda-powertools from 2.35.1 to 3.14.0.

Release notes

Sourced from aws-lambda-powertools's releases.

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

You can now use the new BedrockAgentFunctionResolver to register tools and handle requests in your Lambda functions. The resolver will automatically parse the request, route it to the appropriate function, and return a well-formed response that includes the tool's output and any existing session attributes.

bedrock_agent1

By default, errors are handled gracefully and returned to the agent with error type and message information, allowing the conversation to continue. This is useful when you want to let the LLM handle errors and reduce boilerplate error-handling code.

If you need more control over error scenarios, you can use BedrockFunctionResponse to customize the response and determine if the conversation should continue:

bedrock_error_response

You can also use the BedrockFunctionResponse when you want to enrich the response with session attributes or knowledge base configurations, or when you want the agent to re-prompt the user to provide additional information.

Changes

🌟New features and non-breaking changes

  • feat(bedrock_agent): add new Amazon Bedrock Agents Functions Resolver (#6564) by @​anafalcao
  • feat(event_handler): enable support for custom deserializer to parse the request body (#6601) by @​LucasCMFBraga

📜 Documentation updates

🐛 Bug and hot fixes

🔧 Maintenance

... (truncated)

Changelog

Sourced from aws-lambda-powertools's changelog.

[v3.14.0] - 2025-06-03

Bug Fixes

  • event_handler: fix OpenAPI schema response for disabled validation (#6720)

Features

  • bedrock_agent: add new Amazon Bedrock Agents Functions Resolver (#6564)
  • event_handler: enable support for custom deserializer to parse the request body (#6601)

Maintenance

  • version bump
  • ci: new pre-release 3.13.1a7 (#6759)
  • ci: new pre-release 3.13.1a0 (#6696)
  • ci: new pre-release 3.13.1a6 (#6751)
  • ci: new pre-release 3.13.1a1 (#6704)
  • ci: new pre-release 3.13.1a2 (#6709)
  • ci: new pre-release 3.13.1a5 (#6744)
  • ci: new pre-release 3.13.1a4 (#6738)
  • ci: add missing dependency to build docs (#6717)
  • ci: new pre-release 3.13.1a3 (#6732)
  • deps: bump pydantic from 2.11.4 to 2.11.5 (#6711)
  • deps: bump mkdocstrings-python from 1.16.10 to 1.16.11 (#6724)
  • deps: bump redis from 6.1.0 to 6.2.0 (#6736)
  • deps: bump ossf/scorecard-action from 2.4.1 to 2.4.2 (#6746)
  • deps: bump mkdocstrings-python from 1.16.10 to 1.16.11 in /docs (#6722)
  • deps: bump datadog-lambda from 6.109.0 to 6.110.0 (#6714)
  • deps-dev: bump pytest-mock from 3.14.0 to 3.14.1 (#6723)
  • deps-dev: bump pytest-xdist from 3.6.1 to 3.7.0 (#6730)
  • deps-dev: bump aws-cdk-lib from 2.198.0 to 2.199.0 (#6731)
  • deps-dev: bump aws-cdk-aws-lambda-python-alpha from 2.197.0a0 to 2.198.0a0 (#6715)
  • deps-dev: bump aws-cdk-aws-lambda-python-alpha from 2.198.0a0 to 2.199.0a0 (#6729)
  • deps-dev: bump coverage from 7.8.1 to 7.8.2 (#6713)
  • deps-dev: bump boto3-stubs from 1.38.22 to 1.38.23 (#6712)
  • deps-dev: bump aws-cdk from 2.1016.1 to 2.1017.0 (#6734)
  • deps-dev: bump boto3-stubs from 1.38.23 to 1.38.25 (#6735)
  • deps-dev: bump ruff from 0.11.11 to 0.11.12 (#6741)
  • deps-dev: bump boto3-stubs from 1.38.25 to 1.38.26 (#6742)
  • deps-dev: bump cfn-lint from 1.35.1 to 1.35.3 (#6708)
  • deps-dev: bump ruff from 0.11.10 to 0.11.11 (#6706)
  • deps-dev: bump boto3-stubs from 1.38.21 to 1.38.22 (#6707)
  • deps-dev: bump aws-cdk from 2.1016.0 to 2.1016.1 (#6703)
  • deps-dev: bump aws-cdk from 2.1017.0 to 2.1017.1 (#6748)
  • deps-dev: bump boto3-stubs from 1.38.26 to 1.38.27 (#6747)
  • deps-dev: bump coverage from 7.8.0 to 7.8.1 (#6701)
  • deps-dev: bump aws-cdk-aws-lambda-python-alpha from 2.196.1a0 to 2.197.0a0 (#6700)
  • deps-dev: bump aws-cdk-lib from 2.196.1 to 2.197.0 (#6699)
  • deps-dev: bump pytest from 8.3.5 to 8.4.0 (#6757)
  • deps-dev: bump cfn-lint from 1.35.3 to 1.35.4 (#6755)

... (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
  • d1e668a chore: version bump
  • 1a1f7df chore(ci): changelog rebuild (#6760)
  • b66665c feat(bedrock_agent): add new Amazon Bedrock Agents Functions Resolver (#6564)
  • 9c16b81 chore(ci): new pre-release 3.13.1a7 (#6759)
  • 69e5e0f chore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.199.0a0 to 2.200...
  • b584739 chore(deps-dev): bump boto3-stubs from 1.38.27 to 1.38.28 (#6756)
  • 10bfa5f chore(deps-dev): bump cfn-lint from 1.35.3 to 1.35.4 (#6755)
  • 85ca2cb chore(deps-dev): bump pytest from 8.3.5 to 8.4.0 (#6757)
  • 3077eba chore(ci): changelog rebuild (#6752)
  • 68a0482 chore(ci): new pre-release 3.13.1a6 (#6751)
  • 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.14.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.14.0)

---
updated-dependencies:
- dependency-name: aws-lambda-powertools
  dependency-version: 3.14.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 Jun 9, 2025
@dependabot dependabot bot temporarily deployed to pull-request June 9, 2025 01:07 Inactive
@dependabot dependabot bot temporarily deployed to pull-request June 9, 2025 01:07 Inactive
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 9, 2025

@github-actions
Copy link

github-actions bot commented Jun 9, 2025

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

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Jun 23, 2025

Superseded by #941.

@dependabot dependabot bot closed this Jun 23, 2025
@dependabot dependabot bot deleted the dependabot/pip/aws-lambda-powertools-3.14.0 branch June 23, 2025 02:04
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