If I have a
import lombok.Value;
@Value
public class IncomingRequest {
String data;
}
and try to have a RequestHandler like
import com.amazonaws.services.lambda.runtime.Context;
import com.amazonaws.services.lambda.runtime.RequestHandler;
public class LambdaHandler implements RequestHandler<IncomingRequest, String> {
@Override
public String handleRequest(IncomingRequest request, Context context) {
...
}
}
I only ever get empty request objects or with some other configuration I get deserialization exceptions.
What do I need to do to enable AWS Lambda to properly deserialize into my custom class?