The response from the Lambda is as follows:
{
"message" : "Good Morning, Heartin"
}
The expected response from the client is as follows:
{
"greeting" : "Good Morning, Heartin"
}
We can map the response returned from the Lambda into the expected response format by using the following mapping template:
{
"greeting" : $input.json('$.message'),
}