using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; 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 WithDefaultsFile { public class Function { /// /// A simple function that takes a string and does a ToUpper /// /// /// /// public string FunctionHandler(string input, ILambdaContext context) { return input?.ToUpper(); } } }