poetry: bump aws-lambda-powertools from 2.35.1 to 3.14.0
Type: Pull Request
State: Open
Association: Contributor
Comments: 3
(12 months ago)
(11 months ago)
dependencies python
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
BedrockAgentFunctionResolverto 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
You can now use the new
BedrockAgentFunctionResolverto 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.
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
BedrockFunctionResponseto customize the response and determine if the conversation should continue:
You can also use the
BedrockFunctionResponsewhen 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
- docs(public_reference): add Instil as a public reference (#6763) by
@leandrodamascena🐛 Bug and hot fixes
- fix(event_handler): fix OpenAPI schema response for disabled validation (#6720) by
@leandrodamascena🔧 Maintenance
- chore(deps-dev): bump boto3-stubs from 1.38.28 to 1.38.29 (#6764) by @dependabot[bot]
- chore(deps): bump mkdocstrings-python from 1.16.11 to 1.16.12 (#6765) by @dependabot[bot]
- chore(deps): bump mkdocstrings-python from 1.16.11 to 1.16.12 in /docs (#6768) by @dependabot[bot]
- chore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.200.0a0 to 2.200.1a0 (#6766) by @dependabot[bot]
- chore(deps-dev): bump aws-cdk-lib from 2.200.0 to 2.200.1 (#6767) by @dependabot[bot]
- chore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.199.0a0 to 2.200.0a0 (#6758) by @dependabot[bot]
- chore(deps-dev): bump boto3-stubs from 1.38.27 to 1.38.28 (#6756) by @dependabot[bot]
- chore(deps-dev): bump cfn-lint from 1.35.3 to 1.35.4 (#6755) by @dependabot[bot]
- chore(deps-dev): bump pytest from 8.3.5 to 8.4.0 (#6757) by @dependabot[bot]
... (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 AttributeValuewith native Python typesYes 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_valuefunction.Yes Batch Processor @batch_processorand@async_batch_processordecorators are now deprecatedYes 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 configparameter is deprecated in favor ofboto_configYes JMESPath Functions The extract_data_from_envelopefunction is deprecated in favor ofqueryYes Types file We have removed the type imports from the shared/types.pyfileYes First Steps
Before you start, we suggest making a copy of your current working project or create a new branch with git.
- Upgrade Python to at least v3.9.
- Ensure you have the latest version via Lambda Layer or PyPi{target="_blank"}.
- 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
d1e668achore: version bump1a1f7dfchore(ci): changelog rebuild (#6760)b66665cfeat(bedrock_agent): add new Amazon Bedrock Agents Functions Resolver (#6564)9c16b81chore(ci): new pre-release 3.13.1a7 (#6759)69e5e0fchore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.199.0a0 to 2.200...b584739chore(deps-dev): bump boto3-stubs from 1.38.27 to 1.38.28 (#6756)10bfa5fchore(deps-dev): bump cfn-lint from 1.35.3 to 1.35.4 (#6755)85ca2cbchore(deps-dev): bump pytest from 8.3.5 to 8.4.0 (#6757)3077ebachore(ci): changelog rebuild (#6752)68a0482chore(ci): new pre-release 3.13.1a6 (#6751)- Additional commits viewable in compare view
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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Pull Request Statistics
0
0
+0
-0
Package Dependencies
Technical Details
| ID: | 1300522 |
| UUID: | 3128856158 |
| Node ID: | PR_kwDOHvKt1c6Zm5Gh |
| Host: | GitHub |
| Repository: | NHSDigital/NRLF |