September 2018
Intermediate to advanced
386 pages
11h 17m
English
Let's write a function that returns the dummy poll response. There are two approaches to writing lambda functions and handlers in Java:
Loading the handler method directly without having to implement an interface. This section describes this approach.
Implementing the provided standard interfaces as part of the aws-lambda-java-core library (interface approach).
Read more about them at https://docs.aws.amazon.com/lambda/latest/dg/java-programming-model-handler-types.html.
Create a file called Mapper.kt and include the following line. Here, we simply created a mapper property, which will help us to map all models to JSON and vice versa:
val mapper = jacksonObjectMapper().apply { setSerializationInclusion( ...
Read now
Unlock full access