testapps/TestLayerServerless/Function.cs (18 lines of code) (raw):
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
using Amazon.Lambda.Core;
using Amazon.Lambda.APIGatewayEvents;
// 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 TestLayerServerless
{
public class Functions
{
public string ToUpper(string evnt, ILambdaContext context)
{
return evnt.ToUpper();
}
}
}