Skip to content

Instantly share code, notes, and snippets.

@thebeebs
Created August 12, 2019 21:21
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 thebeebs/fbd188499a37134b4f379e85bf5dfbc8 to your computer and use it in GitHub Desktop.
Save thebeebs/fbd188499a37134b4f379e85bf5dfbc8 to your computer and use it in GitHub Desktop.
Simple Lambda Example
using Amazon.Lambda.Core;
// Assembly attribute to enable the Lambda function's JSON input to be converted into a .NET class.
[assembly: LambdaSerializer(typeof(Amazon.Lambda.Serialization.Json.JsonSerializer))]
namespace demoLambda
{
public class Function
{
public string FunctionHandler(string input, ILambdaContext context)
{
return input?.ToUpper();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment