using System; using System.Linq; using System.Collections.Generic; using System.Text; using Amazon.Lambda.Core; namespace TestServerlessApp { public class DynamicExample_DynamicInput_Generated { private readonly DynamicExample dynamicExample; public DynamicExample_DynamicInput_Generated() { SetExecutionEnvironment(); dynamicExample = new DynamicExample(); } public string DynamicInput(dynamic text, Amazon.Lambda.Core.ILambdaContext __context__) { return dynamicExample.DynamicInput(text, __context__); } private static void SetExecutionEnvironment() { const string envName = "AWS_EXECUTION_ENV"; var envValue = new StringBuilder(); // If there is an existing execution environment variable add the annotations package as a suffix. if(!string.IsNullOrEmpty(Environment.GetEnvironmentVariable(envName))) { envValue.Append($"{Environment.GetEnvironmentVariable(envName)}_"); } envValue.Append("amazon-lambda-annotations_1.0.0.0"); Environment.SetEnvironmentVariable(envName, envValue.ToString()); } } }