1 Answer
- Newest
- Most votes
- Most comments
Relevant content
- Accepted Answerasked a year ago
- asked 3 months ago
- asked 9 months ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
Thank you for your answer. The problem is that the mapping template is applied after the header mapping. So mapping the application/json has no influence on my header mapping.
That is true, but you can override the value of a header inside the mapping template using
$context.responseOverride.header.header_name
. See more here