Skip to content

Instantly share code, notes, and snippets.

@awswithdotnet
Created August 6, 2022 14:57
Show Gist options
  • Save awswithdotnet/684a92d93c8d7a62ff3331f1688c140b to your computer and use it in GitHub Desktop.
Save awswithdotnet/684a92d93c8d7a62ff3331f1688c140b to your computer and use it in GitHub Desktop.
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