Summary
This release enhances the Batch Processing feature, which you can now customize to not throw an error when the entire batch of items fails to process.
We have also added three new Pydantic models to our Parser feature to work with authorizers in Amazon API Gateway.
Thanks to @adriantomas, customers can bring their own boto3 client when using Feature Flags feature.
π β A big thank you to everyone who helped make this release.
Working with full batch failures
You can now set the raise_on_entire_batch_failure
option to False
to prevent the Batch Processing utility from throwing a BatchProcessingError
, when all records in a batch fail to process. This is useful when working with functions that handle batches with a small number of records, or when you use errors as a flow control mechanism.
New Parser models
You can now use the new Pydantic models to validate payloads originating from authorization events in REST and HTTP APIs.
Here are all the modules we've added:
- ApiGatewayAuthorizerToken - For REST API Authorizer events using Token
- ApiGatewayAuthorizerRequest - For REST API Authorizer events using Request
- ApiGatewayAuthorizerRequestV2 - For HTTP API Authorizer events using Request
Customizing boto3 client configuration for Feature Flags
You can now bring your own boto3 client instance when using Feature Flags. This is ideal when you want to reuse or customize the appconfigdata
client.
Last but not least, thanks to @Wurstnase for helping us to fix a bug when using CORS in the Event Handler feature.
Changes
πNew features and non-breaking changes
- feat(feature_flags): allow customers to bring their own boto3 client and session (#4717) by @adriantomas
- feat(batch): add option to not raise
BatchProcessingError
exception when the entire batch fails (#4719) by @leandrodamascena - feat(parser): add support for API Gateway Lambda authorizer events (#4718) by @leandrodamascena
π Documentation updates
- docs(public_reference): add BusPatrol as a public reference (#4713) by @leandrodamascena
- docs(i-made-this): Bedrock agents with Powertools for AWS Lambda (#4705) by @ran-isenberg
π Bug and hot fixes
- fix(event_handler): make the max_age attribute comply with RFC specification (#4731) by @leandrodamascena
- fix(event_handler): disable allow-credentials header when origin allow_origin is * (#4638) by @sthulb
- fix(event_handler): convert null body to empty string in ALBResolver to avoid HTTP 502 (#4683) by @heitorlessa
- fix(event_handler): custom serializer recursive values when using data validation (#4664) by @heitorlessa
- fix(event_handler): current_event regression AppSyncResolver Router (#4652) by @leandrodamascena
π§ Maintenance
- chore(layers): downgrade aws cdk to 2.145.0 (#4739) by @leandrodamascena
- chore(deps-dev): bump sentry-sdk from 2.8.0 to 2.9.0 (#4735) by @dependabot
- chore(deps-dev): bump cfn-lint from 1.5.2 to 1.5.3 (#4734) by @dependabot
- chore(deps): bump actions/setup-python from 5.1.0 to 5.1.1 (#4732) by @dependabot
- chore(deps): bump the layer-balancer group in /layer/scripts/layer-balancer with 3 updates (#4733) by @dependabot
- chore(deps-dev): bump cfn-lint from 1.5.1 to 1.5.2 (#4724) by @dependabot
- chore(deps): bump actions/setup-node from 4.0.2 to 4.0.3 (#4725) by @dependabot
- chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.202 to 0.1.205 (#4723) by @dependabot
- chore(deps-dev): bump zipp from 3.17.0 to 3.19.1 in /layer (#4721) by @dependabot
- chore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.147.3a0 to 2.148.0a0 (#4722) by @dependabot
- chore(deps): bump zipp from 3.17.0 to 3.19.1 in /docs (#4720) by @dependabot
- chore(deps-dev): bump aws-cdk-lib from 2.147.3 to 2.148.0 (#4710) by @dependabot
- chore(deps-dev): bump aws-cdk from 2.147.3 to 2.148.0 (#4708) by @dependabot
- chore(deps-dev): bump cfn-lint from 1.5.0 to 1.5.1 (#4711) by @dependabot
- chore(deps-dev): bump sentry-sdk from 2.7.1 to 2.8.0 (#4712) by @dependabot
- chore(deps): bump certifi from 2024.6.2 to 2024.7.4 (#4700) by @dependabot
- chore(deps-dev): bump ruff from 0.5.0 to 0.5.1 (#4697) by @dependabot
- chore(deps): bump actions/upload-artifact from 4.3.3 to 4.3.4 (#4698) by @dependabot
- chore(deps): bump actions/download-artifact from 4.1.7 to 4.1.8 (#4699) by @dependabot
- chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.201 to 0.1.202 (#4696) by @dependabot
- chore(deps): bump docker/setup-buildx-action from 3.3.0 to 3.4.0 (#4693) by @dependabot
- chore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.147.2a0 to 2.147.3a0 (#4686) by @dependabot
- chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.200 to 0.1.201 (#4687) by @dependabot
- chore(deps): bump docker/setup-qemu-action from 3.0.0 to 3.1.0 (#4685) by @dependabot
- chore(deps-dev): bump cfn-lint from 1.4.2 to 1.5.0 (#4675) by @dependabot
- chore(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.27.23 to 1.27.24 in /layer/scripts/layer-balancer in the layer-balancer group (#4684) by @dependabot
- chore: Add token to codecov action (#4682) by @hjgraca
- chore(deps-dev): bump aws-cdk-lib from 2.147.2 to 2.147.3 (#4674) by @dependabot
- chore(deps-dev): bump mkdocs-material from 9.5.27 to 9.5.28 (#4676) by @dependabot
- chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.199 to 0.1.200 (#4677) by @dependabot
- chore(deps): bump zgosalvez/github-actions-ensure-sha-pinned-actions from 3.0.9 to 3.0.10 (#4678) by @dependabot
- chore(deps-dev): bump aws-cdk from 2.147.2 to 2.147.3 (#4672) by @dependabot
- chore(deps-dev): bump mypy-boto3-s3 from 1.34.120 to 1.34.138 in the boto-typing group (#4673) by @dependabot
- chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.198 to 0.1.199 (#4668) by @dependabot
- chore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.147.1a0 to 2.147.2a0 (#4667) by @dependabot
- chore(deps-dev): bump cfn-lint from 1.4.1 to 1.4.2 (#4660) by @dependabot
- chore(deps-dev): bump aws-cdk-lib from 2.147.1 to 2.147.2 (#4661) by @dependabot
- chore(deps): bump the layer-balancer group in /layer/scripts/layer-balancer with 3 updates (#4659) by @dependabot
- chore(deps-dev): bump aws-cdk from 2.147.1 to 2.147.2 (#4657) by @dependabot
- chore(deps-dev): bump ruff from 0.4.10 to 0.5.0 (#4644) by @dependabot
- chore(deps-dev): bump cfn-lint from 1.3.7 to 1.4.1 (#4646) by @dependabot
- chore(deps-dev): bump sentry-sdk from 2.7.0 to 2.7.1 (#4645) by @dependabot
This release was made possible by the following contributors:
@adriantomas, @dependabot, @dependabot[bot], @github-actions, @github-actions[bot], @heitorlessa, @hjgraca, @leandrodamascena, @ran-isenberg and @sthulb