build(deps): bump aws-lambda-powertools from 3.26.0 to 3.27.0 in /lambda
Type: Pull Request
State: Open
Association: Unknown
Comments: 1
(4 months ago)
(4 months ago)
dependencies python
Bumps aws-lambda-powertools from 3.26.0 to 3.27.0.
Release notes
Sourced from aws-lambda-powertools's releases.
v3.27.0
Summary
In this release, we focused on the Event Handler utility - we added three new features and shipped several important bug fixes across Event Handler and Idempotency.
- File uploads - handle
multipart/form-datauploads with full OpenAPI validation and Swagger UI file picker- Cookie parameters - use cookies as typed, validated parameters alongside
Query(),Header(), andForm()- Request object - access the resolved route pattern, path parameters, and HTTP method in middleware and route handlers
A huge thanks to
@oyiz-michael,@siwyd,@abhu85, and@danjhdfor their contributions!File upload support for OpenAPI
You can now handle file uploads in your API endpoints with full OpenAPI validation and Swagger UI support. If using Swagger, it renders a file picker automatically. A special thanks to
@oyiz-michaelfor starting the initial work on this feature.from typing import Annotatedfrom aws_lambda_powertools.event_handler import APIGatewayRestResolver from aws_lambda_powertools.event_handler.openapi.params import File, Form, UploadFile
app = APIGatewayRestResolver(enable_validation=True) app.enable_swagger(path="/swagger")
@app.post("/upload") def upload( file_data: Annotated[UploadFile, File(description="CSV file")], separator: Annotated[str, Form(description="CSV separator")] = ",", ): return { "filename": file_data.filename, "content_type": file_data.content_type, "file_size": len(file_data), }You can receive files as raw bytes (
Annotated[bytes, File()]) or as anUploadFileobject with filename and content type metadata.Cookie parameter support for OpenAPI
You can now use cookies as typed, validated parameters in your API endpoints - just like
Query(),Header(), orForm(). The OpenAPI schema generatesin: cookieparameters automatically, and validation works across all resolver types.from typing import Annotated</tr></table>
... (truncated)
Changelog
Sourced from aws-lambda-powertools's changelog.
[v3.27.0] - 2026-04-06
Maintenance
- version bump
Commits
31d0872chore: version bumpa03795fci: remove me-south-1 region (#8108)bf7e555docs: adding docs to Request object (#8105)a26d64bfeat(event_handler): add File parameter support for multipart/form-data uploa...7c9589cfeat(event_handler): add Cookie parameter support for OpenAPI utility (#8095)ccdc52efix(data_classes): support {proxy+} and path parameters in authorizer respons...74fbcc5fix(event_handler): sync middleware receives real response in async ASGI cont...2b95d7fchore(deps-dev): bump isort from 7.0.0 to 8.0.1 (#8101)30e43c1chore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.243.0a0 to 2.248...779c85cchore(deps-dev): bump types-requests from 2.32.4.20260107 to 2.33.0.20260402 ...- Additional commits viewable in compare view
Package Dependencies
aws-lambda-powertools
pip
3.26.0 → 3.27.0
Minor
/lambda
Technical Details
| ID: | 15202485 |
| UUID: | 4240157135 |
| Node ID: | PR_kwDOR8s55s7Rfoad |
| Host: | GitHub |
| Repository: | timpugh/lambda-powertools-reference |