namespace BlueprintBaseName._1 open Amazon.Lambda.Core open Amazon.Lambda.RuntimeSupport open Amazon.Lambda.Serialization.SystemTextJson open System // This project specifies the serializer used to convert Lambda event into .NET classes in the project's main // main function. This assembly register a serializer for use when the project is being debugged using the // AWS .NET Mock Lambda Test Tool. [)>] () module Function = /// /// A simple function that takes a string and does a ToUpper /// /// To use this handler to respond to an AWS event, reference the appropriate package from /// https://github.com/aws/aws-lambda-dotnet#events /// and change the string input parameter to the desired event type. /// /// /// /// let functionHandler (input: string) (_: ILambdaContext) = match input with | null -> String.Empty | _ -> input.ToUpper() [] let main _args = let handler = Func(functionHandler) use handlerWrapper = HandlerWrapper.GetHandlerWrapper(handler, new DefaultLambdaJsonSerializer()) use bootstrap = new LambdaBootstrap(handlerWrapper) bootstrap.RunAsync().GetAwaiter().GetResult() 0