Skip to content

Commit f79e7c6

Browse files
authored
[lambda_http]: Added builders pass-through feature to enable aws_lambda_events/builders (#1146)
Fixes #1141
1 parent 6297eba commit f79e7c6

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

lambda-http/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ apigw_websockets = []
2424
alb = []
2525
vpc_lattice = []
2626
pass_through = []
27+
builders = ["aws_lambda_events/builders"]
2728
catch-all-fields = ["aws_lambda_events/catch-all-fields"]
2829
tracing = ["lambda_runtime/tracing"] # enables access to the Tracing utilities
2930
opentelemetry = ["lambda_runtime/opentelemetry"] # enables access to the OpenTelemetry layers and utilities

lambda-http/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ The available feature flags for `lambda_http` are the following:
252252
- `apigw_http`: for events coming from [Amazon API Gateway HTTP APIs](https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api.html) and [AWS Lambda Function URLs](https://docs.aws.amazon.com/lambda/latest/dg/lambda-urls.html).
253253
- `apigw_websockets`: for events coming from [Amazon API Gateway WebSockets](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api.html).
254254
- `vpc_lattice`: for events coming from [AWS VPC Lattice](https://docs.aws.amazon.com/vpc-lattice/latest/ug/lambda-functions.html).
255+
- `catch-all-fields`: enables catch-all fields in event types to preserve unknown JSON fields during deserialization.
256+
- `builders`: enables builder pattern support for request/response types in `aws_lambda_events`, useful for constructing test fixtures.
255257

256258
If you only want to support one of these sources, you can disable the default features, and enable only the source that you care about in your package's `Cargo.toml` file. Substitute the dependency line for `lambda_http` for the snippet below, changing the feature that you want to enable:
257259

0 commit comments

Comments
 (0)