Mapping responses

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'),
}
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.225.234.28