Skip to content

Instantly share code, notes, and snippets.

@awswithdotnet
Created April 25, 2022 21:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awswithdotnet/268b7e78e8dc6d4c048cdcbfbcb7a976 to your computer and use it in GitHub Desktop.
Save awswithdotnet/268b7e78e8dc6d4c048cdcbfbcb7a976 to your computer and use it in GitHub Desktop.
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