poetry: bump aws-lambda-powertools from 2.35.1 to 3.18.0
Type: Pull Request
State: Open
Association: Contributor
Comments: 2
(10 months ago)
(10 months ago)
dependencies python
Bumps aws-lambda-powertools from 2.35.1 to 3.18.0.
Release notes
Sourced from aws-lambda-powertools's releases.
v3.18.0
Summary
This release adds support for files media types in our OpenAPI utility. We also improved our Parser utility by adding new models for AppSync Events.
⭐️ Congrats to
@oyiz-michaeland@sdangolfor contributing to this project for the first time!Working with form data
You can use the
Formtype to tell the Event Handler that a parameter expects form data. This automatically sets the correct OpenAPI schema forapplication/x-www-form-urlencodedrequests.Changes
🌟New features and non-breaking changes
- feat(event_handler): add support for form data in OpenAPI utility (#7028) by
@oyiz-michael- feat(metrics): add runtime validations for the metric name (#7026) by
@sdangol- feat(parser): add AppSync Events models (#6999) by
@leandrodamascena- feat(typing): add tenant_id property (#6985) by
@leandrodamascena📜 Documentation updates
- docs(parser): fix a a typo in SqsEnvelope (#7052) by
@DustinAlandzes- docs(event_handler): add section about Pydantic serialization (#7049) by
@leandrodamascena- docs(parameters): fix typo in transform auto instruction (#7017) by
@kattakaha- docs(event_handler): enhance documentation on query/header parameters behavior (#7000) by
@leandrodamascena🔧 Maintenance
- chore(ci): improve feature flags UA (#7051) by
@leandrodamascena- chore(deps-dev): bump boto3-stubs from 1.39.13 to 1.39.14 (#7042) by @dependabot[bot]
- chore(ci): remove closed-issue and opened-pr workflows (#7047) by
@leandrodamascena- chore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.206.0a0 to 2.207.0a0 (#7037) by @dependabot[bot]
- chore(deps-dev): bump ruff from 0.12.4 to 0.12.5 (#7032) by @dependabot[bot]
- chore(deps-dev): bump boto3-stubs from 1.39.12 to 1.39.13 (#7036) by @dependabot[bot]
- chore(deps-dev): bump coverage from 7.9.2 to 7.10.0 (#7033) by @dependabot[bot]
- chore(deps-dev): bump aws-cdk-lib from 2.206.0 to 2.207.0 (#7035) by @dependabot[bot]
- chore(deps-dev): bump aws-cdk from 2.1021.0 to 2.1022.0 (#7031) by @dependabot[bot]
- chore(deps): update aws-powertools/actions requirement to 5ae7c190d6b51491bb14f593c3509c1bcbf7a3c1 (#7034) by @dependabot[bot]
- chore(deps-dev): bump boto3-stubs from 1.39.11 to 1.39.12 (#7027) by @dependabot[bot]
- chore(deps-dev): bump testcontainers from 4.10.0 to 4.12.0 (#7021) by @dependabot[bot]
- chore(deps-dev): bump sentry-sdk from 2.33.0 to 2.33.2 (#7023) by @dependabot[bot]
- chore(deps-dev): bump boto3-stubs from 1.39.9 to 1.39.11 (#7022) by @dependabot[bot]
... (truncated)
Changelog
Sourced from aws-lambda-powertools's changelog.
[v3.18.0] - 2025-07-29
Documentation
- event_handler: add section about Pydantic serialization (#7049)
- event_handler: enhance documentation on query/header parameters behavior (#7000)
- parameters: fix typo in transform auto instruction (#7017)
- parser: fix a a typo in SqsEnvelope (#7052)
Features
- event_handler: add support for form data in OpenAPI utility (#7028)
- metrics: add runtime validations for the metric name (#7026)
- parser: add AppSync Events models (#6999)
- typing: add tenant_id property (#6985)
Maintenance
- version bump
- ci: new pre-release 3.17.1a4 (#7018)
- ci: improve feature flags UA (#7051)
- ci: new pre-release 3.17.1a8 (#7045)
- ci: new pre-release 3.17.1a9 (#7054)
- ci: new pre-release 3.17.1a7 (#7038)
- ci: new pre-release 3.17.1a0 (#6989)
- ci: new pre-release 3.17.1a1 (#6997)
- ci: add a new workflow to build docs in new PRs (#7002)
- ci: new pre-release 3.17.1a2 (#7008)
- ci: new pre-release 3.17.1a6 (#7029)
- ci: new pre-release 3.17.1a3 (#7014)
- ci: new pre-release 3.17.1a5 (#7025)
- ci: remove closed-issue and opened-pr workflows (#7047)
- deps: update aws-powertools/actions requirement to 5ae7c190d6b51491bb14f593c3509c1bcbf7a3c1 (#7034)
- deps-dev: bump pytest-asyncio from 0.26.0 to 1.1.0 (#6995)
- deps-dev: bump boto3-stubs from 1.39.8 to 1.39.9 (#7011)
- deps-dev: bump boto3-stubs from 1.39.11 to 1.39.12 (#7027)
- deps-dev: bump testcontainers from 4.10.0 to 4.12.0 (#7021)
- deps-dev: bump boto3-stubs from 1.39.7 to 1.39.8 (#7006)
- deps-dev: bump ruff from 0.12.3 to 0.12.4 (#7005)
- deps-dev: bump aws-cdk from 2.1021.0 to 2.1022.0 (#7031)
- deps-dev: bump aws-cdk-lib from 2.206.0 to 2.207.0 (#7035)
- deps-dev: bump coverage from 7.9.2 to 7.10.0 (#7033)
- deps-dev: bump sentry-sdk from 2.33.0 to 2.33.2 (#7023)
- deps-dev: bump aws-cdk-lib from 2.205.0 to 2.206.0 (#6996)
- deps-dev: bump boto3-stubs from 1.39.4 to 1.39.7 (#6994)
- deps-dev: bump aws-cdk-aws-lambda-python-alpha from 2.205.0a0 to 2.206.0a0 (#6993)
- deps-dev: bump aws-cdk from 2.1020.2 to 2.1021.0 (#6992)
- deps-dev: bump boto3-stubs from 1.39.12 to 1.39.13 (#7036)
- deps-dev: bump ruff from 0.12.4 to 0.12.5 (#7032)
- deps-dev: bump sentry-sdk from 2.32.0 to 2.33.0 (#6988)
- deps-dev: bump aws-cdk-aws-lambda-python-alpha from 2.204.0a0 to 2.205.0a0 (#6986)
... (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
b8e44d2chore: version bumpecbae96chore(ci): new pre-release 3.17.1a9 (#7054)e51b767docs(parser): fix a a typo in SqsEnvelope (#7052)2cedb72chore(ci): improve feature flags UA (#7051)d017744docs(event_handler): add section about Pydantic serialization (#7049)5999346chore(deps-dev): bump boto3-stubs from 1.39.13 to 1.39.14 (#7042)e541c83chore(ci): new pre-release 3.17.1a8 (#7045)9a9f9e3chore(ci): changelog rebuild (#7048)a928277chore(ci): remove closed-issue and opened-pr workflows (#7047)c83d15efeat(event_handler): add support for form data in OpenAPI utility (#7028)- 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: | 4498498 |
| UUID: | 3287751369 |
| Node ID: | PR_kwDOHvKt1c6h6jG9 |
| Host: | GitHub |
| Repository: | NHSDigital/NRLF |