Solution Review: Using a Serializer and Context
Explore how to apply the DefaultLambdaJsonSerializer for JSON serialization in AWS Lambda functions using C#. Learn to utilize the context object's MemoryLimitInMB property to manage function resources efficiently and test Lambda functions with JSON input.
We'll cover the following...
We'll cover the following...
The completed solution is presented in the playground below.
namespace LambdaApp;
public class Output
{
public bool Success { get; set; }
public string? OriginalInput { get; set; }
public int MemoryLimitInMB { get; set; }
}Complete solution
To make the function handler work, we needed to apply a JSON serializer. Without one, the only data type supported for input and output is ...