public static void Main(string[] args) { var test = new SampleClass { Str = "hogehoge", StrArray = new[] { "hoge", "huga", "foo" }, }; var response = new Function().FunctionHandler(test, new LambdaContext()); }
/// <summary> /// A simple function that takes a string and does a ToUpper /// </summary> /// <param name="input"></param> /// <param name="context"></param> /// <returns></returns> public SampleClass FunctionHandler(SampleClass input, ILambdaContext context) { var response = new SampleClass { Str = input.Str?.ToUpper(), StrArray = input.StrArray.Select(x => x?.ToUpper()).ToArray(), }; return(response); }