using Amazon.Lambda.Core; using Newtonsoft.Json.Linq; // 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 Lambda { public class Function { /// /// A simple function that takes a string and does a ToUpper /// /// /// /// public async Task FunctionHandler(JObject input, ILambdaContext context) { Console.WriteLine("Message received from the IOT topic : " + input["message"]); } } }