Skip to content

Instantly share code, notes, and snippets.

@awswithdotnet
Created April 25, 2022 21:53
Embed
What would you like to do?
Lambda with URL Handler
using Amazon.Lambda.Core;
using Amazon.Lambda.APIGatewayEvents;
using Amazon.Lambda.Serialization.Json;
namespace LambdaWithUrl;
public class Handler
{
[LambdaSerializer(typeof(JsonSerializer))]
public IEnumerable<String> Handle(APIGatewayProxyRequest apiGatewayProxyRequest)
{
return apiGatewayProxyRequest?.QueryStringParameters?.Values ?? new String[0];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment