aws / aws-lambda-go

Libraries, samples and tools to help Go developers develop AWS Lambda functions.
Apache License 2.0
3.62k stars 550 forks source link

feat: Add support for AWS VPC Lattice events #520

Open nmoutschen opened 1 year ago

nmoutschen commented 1 year ago

Is your feature request related to a problem? Please describe.

AWS VPC Lattice can target Lambda functions, but the data structure is slightly different than for API Gateways. As a result, trying to use APIGatewayProxyRequest for Lattice fails.

Describe the solution you'd like

Add a new event type for VPC Lattice v1 and v2 payloads.

Describe alternatives you've considered

None that would not require to change the data structure of Lattice.

Additional context

N/A