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 CurrentDirectoryTest { public class Functions { /// /// Default constructor that Lambda will invoke. /// public Functions() { } public APIGatewayProxyResponse Get(APIGatewayProxyRequest request, ILambdaContext context) { var response = new APIGatewayProxyResponse { StatusCode = (int)HttpStatusCode.OK, Body = "CurrentProjectTest", Headers = new Dictionary { { "Content-Type", "text/plain" } } }; return response; } public APIGatewayProxyResponse Get2(APIGatewayProxyRequest request, ILambdaContext context) { var response = new APIGatewayProxyResponse { StatusCode = (int)HttpStatusCode.OK, Body = "SecondCurrentProjectTest", Headers = new Dictionary { { "Content-Type", "text/plain" } } }; return response; } } }