Created
August 12, 2019 21:21
-
-
Save thebeebs/fbd188499a37134b4f379e85bf5dfbc8 to your computer and use it in GitHub Desktop.
Simple Lambda Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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