Skip to content

Instantly share code, notes, and snippets.

Created August 6, 2022 14:57
What would you like to do?
top-level-lambda Program.cs
using Amazon.Lambda.APIGatewayEvents;
using Amazon.Lambda.RuntimeSupport;
using Amazon.Lambda.Serialization.Json;
var handler = (APIGatewayProxyRequest apiGatewayProxyRequest) =>
return apiGatewayProxyRequest?.QueryStringParameters?.Values ?? new string[0];
LambdaBootstrapBuilder lambdaBootstrapBuilder = LambdaBootstrapBuilder.Create(handler, new JsonSerializer());
LambdaBootstrap lambdaBootstrap = lambdaBootstrapBuilder.Build();
await lambdaBootstrap.RunAsync();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment