x-amazon-apigateway-integration.responseParameters 对象
指定从集成方法响应参数到方法响应参数的映射。您可以将 header、body 或静态值映射到 header 类型的方法响应。仅支持用于 REST API 。
| 属性名称 | 类型 | 描述 |
|---|---|---|
method.response.header. |
string |
指定的参数值可以源自 |
x-amazon-apigateway-integration.responseParameters 示例
下面的示例将集成响应的 body 和 header 参数映射到了方法响应的两个 header 参数。
"responseParameters" : { "method.response.header.Location" : "integration.response.body.redirect.url", "method.response.header.x-user-id" : "integration.response.header.x-userid" }