namespace BlueprintBaseName._1
open Amazon.Lambda.Core
open Amazon.Lambda.RuntimeSupport
open Amazon.Lambda.Serialization.Json
open System
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 JsonSerializer())
use bootstrap = new LambdaBootstrap(handlerWrapper)
bootstrap.RunAsync().GetAwaiter().GetResult()
0