Skip to content

Instantly share code, notes, and snippets.

@douglasnaphas
Created March 22, 2024 18:28
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 douglasnaphas/fada7e5e03007af28fd0f367a01883d8 to your computer and use it in GitHub Desktop.
Save douglasnaphas/fada7e5e03007af28fd0f367a01883d8 to your computer and use it in GitHub Desktop.
hello-world C# Lambda function
using Amazon.Lambda.Core;
[assembly: LambdaSerializer(typeof(Amazon.Lambda.Serialization.SystemTextJson.DefaultLambdaJsonSerializer))]
namespace HelloWorld
{
public class Function
{
public string FunctionHandler(string input, ILambdaContext context)
{
return "Hello World!";
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment