Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lambda-http/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ apigw_websockets = []
alb = []
vpc_lattice = []
pass_through = []
builders = ["aws_lambda_events/builders"]
catch-all-fields = ["aws_lambda_events/catch-all-fields"]
tracing = ["lambda_runtime/tracing"] # enables access to the Tracing utilities
opentelemetry = ["lambda_runtime/opentelemetry"] # enables access to the OpenTelemetry layers and utilities
Expand Down
2 changes: 2 additions & 0 deletions lambda-http/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@ The available feature flags for `lambda_http` are the following:
- `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).
- `apigw_websockets`: for events coming from [Amazon API Gateway WebSockets](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api.html).
- `vpc_lattice`: for events coming from [AWS VPC Lattice](https://docs.aws.amazon.com/vpc-lattice/latest/ug/lambda-functions.html).
- `catch-all-fields`: enables catch-all fields in event types to preserve unknown JSON fields during deserialization.
Comment thread
dcormier marked this conversation as resolved.
- `builders`: enables builder pattern support for request/response types in `aws_lambda_events`, useful for constructing test fixtures.

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:

Expand Down
Loading