Mapping Lambda output to API Gateway header

前端 未结 5 661
失恋的感觉
失恋的感觉 2021-01-31 20:02

I\'m trying to map the JSON output from a Lambda function to the header of an API Gateway call. As an example here, we can consider a redirect scenario. So I\'d like to add a

5条回答
  •  醉话见心
    2021-01-31 20:36

    I know it has been a while since this was asked but you can now set:

    integration.response.header.Location (note Uppercase L in Location) in Mapping value if you are setting it in response headers.

    Example

提交回复
热议问题