poetry: bump aws-lambda-powertools from 2.35.1 to 3.16.0
Type: Pull Request
State: Open
Association: Contributor
Comments: 0
(11 months ago)
(11 months ago)
dependencies python
Bumps aws-lambda-powertools from 2.35.1 to 3.16.0.
Release notes
Sourced from aws-lambda-powertools's releases.
v3.16.0
Summary
We are thrilled to announce that Powertools for AWS Lambda (Python) now offers AWS Lambda layers in the AWS China region cn-north-1.
New AWS China Lambda Layer ARNs
You can now use Powertools for AWS Lambda (Python) Lambda layers in the AWS China regions, enhancing customer experience by making our pre-packaged Lambda layers available in this AWS partition.
To take advantage of the new layers, you need to update your functions or deployment setup to include one of the new Lambda layer ARN from the table below:
AWS China (cn-north-1)
Architecture Layer ARN x86_64 arn:aws-cn:lambda:cn-north-1:498634801083:layer:AWSLambdaPowertoolsPythonV3-{python_version}-x86_64:{version} ARM arn:aws-cn:lambda:cn-north-1:498634801083:layer:AWSLambdaPowertoolsPythonV3-{python_version}-arm64:{version} Changes
🌟New features and non-breaking changes
- feat(ci): Partition workflow scripts updated to work (#6900) by
@sthulb- feat(ci): Deploy to AWS China partitions (#6867) by
@sthulb📜 Documentation updates
- docs(event-handler): remove Amplify transformers section (#6937) by
@dreamorosi- docs(kafka): refactor kafka documentation (#6854) by
@leandrodamascena🐛 Bug and hot fixes
- fix(logger): caplog working with parent Logger (#6847) by
@amin-farjadi- fix(event_source): fix decode headers with signed bytes (#6878) by
@leandrodamascena- fix(logger): fix exception on flush without buffer (#6794) by
@tonnico🔧 Maintenance
- chore(deps-dev): bump boto3-stubs from 1.39.2 to 1.39.3 (#6940) by @dependabot[bot]
- chore(deps-dev): bump coverage from 7.9.1 to 7.9.2 (#6941) by @dependabot[bot]
- chore(deps-dev): bump aws-cdk from 2.1020.1 to 2.1020.2 (#6942) by @dependabot[bot]
- chore(deps-dev): bump ruff from 0.12.1 to 0.12.2 (#6938) by @dependabot[bot]
- chore(deps-dev): bump types-protobuf from 6.30.2.20250516 to 6.30.2.20250703 (#6939) by @dependabot[bot]
- chore(deps): bump aws-encryption-sdk from 4.0.1 to 4.0.2 (#6932) by @dependabot[bot]
- chore(deps): bump mkdocs-material from 9.6.14 to 9.6.15 (#6931) by @dependabot[bot]
- chore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.203.0a0 to 2.203.1a0 (#6929) by @dependabot[bot]
- chore(deps-dev): bump aws-cdk-lib from 2.203.0 to 2.203.1 (#6928) by @dependabot[bot]
- chore(deps-dev): bump boto3-stubs from 1.39.1 to 1.39.2 (#6930) by @dependabot[bot]
- chore(deps-dev): bump aws-cdk from 2.1020.0 to 2.1020.1 (#6927) by @dependabot[bot]
- chore(ci): incorporate SSM update workflow into release pipeline (#6914) by
@leandrodamascena
... (truncated)
Changelog
Sourced from aws-lambda-powertools's changelog.
[v3.16.0] - 2025-07-02
Bug Fixes
- event_source: fix decode headers with signed bytes (#6878)
- logger: caplog working with parent Logger (#6847)
- logger: fix exception on flush without buffer (#6794)
Documentation
- kafka: refactor kafka documentation (#6854)
Features
Maintenance
- version bump
- ci: new pre-release 3.15.2a6 (#6923)
- ci: incorporate SSM update workflow into release pipeline (#6914)
- ci: new pre-release 3.15.2a3 (#6876)
- ci: new pre-release 3.15.2a2 (#6865)
- ci: new pre-release 3.15.2a5 (#6910)
- ci: new pre-release 3.15.2a4 (#6881)
- ci: pinning versions in actions + refactor tests (#6904)
- ci: stop publishing to gh-pages branch (#6903)
- ci: stop publishing to gh-pages branch (#6902)
- ci: stop publishing to gh-pages branch (#6901)
- ci: stop publishing to gh-pages branch (#6899)
- ci: remove v2 deployment files (#6895)
- ci: bump urllib3 version (#6893)
- ci: new pre-release 3.15.2a0 (#6852)
- ci: refactor thread safe tests (#6889)
- ci: new pre-release 3.15.2a1 (#6860)
- ci: fix command to replace layer number (#6868)
- deps: bump docker/setup-buildx-action from 3.10.0 to 3.11.1 (#6823)
- deps: bump pydantic from 2.11.5 to 2.11.7 (#6844)
- deps: bump mkdocs-material from 9.6.14 to 9.6.15 in /docs (#6920)
- deps: bump redis from 5.3.0 to 6.2.0 (#6827)
- deps: bump pydantic-settings from 2.9.1 to 2.10.1 (#6872)
- deps: bump datadog-lambda from 6.110.0 to 6.111.0 (#6857)
- deps: bump valkey-glide from 1.3.5 to 2.0.1 (#6871)
- deps: bump squidfunk/mkdocs-material from
eb04b60to0bfdba4in /docs (#6915)- deps: bump mkdocs-material from 9.5.50 to 9.6.14 in /docs (#6908)
- deps-dev: bump sentry-sdk from 2.29.1 to 2.31.0 (#6870)
- deps-dev: bump aws-cdk from 2.1019.1 to 2.1019.2 (#6875)
- deps-dev: bump pytest from 8.4.0 to 8.4.1 (#6874)
- deps-dev: bump cfn-lint from 1.35.4 to 1.36.1 (#6855)
- deps-dev: bump boto3-stubs from 1.38.42 to 1.38.43 (#6864)
... (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
ce5fad6chore: version bumpdf52248chore(ci): changelog rebuild (#6924)b66edacchore(ci): new pre-release 3.15.2a6 (#6923)5e3e85bchore(ci): incorporate SSM update workflow into release pipeline (#6914)852650fchore(deps-dev): bump cfn-lint from 1.36.1 to 1.37.0 (#6918)60d794fchore(deps-dev): bump aws-cdk from 2.1019.2 to 2.1020.0 (#6917)b6a924achore(deps-dev): bump boto3-stubs from 1.39.0 to 1.39.1 (#6916)46a2bd7chore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.202.0a0 to 2.203...75bdc4fchore(deps-dev): bump pytest-xdist from 3.7.0 to 3.8.0 (#6921)c393f54chore(deps): bump mkdocs-material from 9.6.14 to 9.6.15 in /docs (#6920)- 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
1
2
+144
-40
Package Dependencies
Technical Details
| ID: | 2849133 |
| UUID: | 2645222117 |
| Node ID: | PR_kwDOHvKt1c6dquLl |
| Host: | GitHub |
| Repository: | NHSDigital/NRLF |
| Mergeable: | Yes |
| Merge State: | Clean |
| Rebaseable: | Yes |