选择您的 Cookie 首选项

我们使用必要 Cookie 和类似工具提供我们的网站和服务。我们使用性能 Cookie 收集匿名统计数据,以便我们可以了解客户如何使用我们的网站并进行改进。必要 Cookie 无法停用,但您可以单击“自定义”或“拒绝”来拒绝性能 Cookie。

如果您同意,AWS 和经批准的第三方还将使用 Cookie 提供有用的网站功能、记住您的首选项并显示相关内容,包括相关广告。要接受或拒绝所有非必要 Cookie,请单击“接受”或“拒绝”。要做出更详细的选择,请单击“自定义”。

x-amazon-apigateway-gateway-responses.responseParameters 对象

聚焦模式
x-amazon-apigateway-gateway-responses.responseParameters 对象 - Amazon API Gateway

定义键/值对的字符串到字符串映射,从传入请求参数或使用文本字符串生成网关响应参数。仅支持用于 REST API 。

属性名称 类型 说明
gatewayresponse.param-position.param-name string

param-position 可以是 headerpathquerystring。有关更多信息,请参阅 将方法请求数据映射至集成请求参数

x-amazon-apigateway-gateway-responses.responseParameters 示例

以下 OpenAPI 扩展示例显示了一个 GatewayResponse 响应参数映射表达式,可用于为 *.example.domain 域中的资源启用 CORS 支持。

"responseParameters": { "gatewayresponse.header.Access-Control-Allow-Origin": '*.example.domain', "gatewayresponse.header.from-request-header" : method.request.header.Accept, "gatewayresponse.header.from-request-path" : method.request.path.petId, "gatewayresponse.header.from-request-query" : method.request.querystring.qname }
隐私网站条款Cookie 首选项
© 2025, Amazon Web Services, Inc. 或其附属公司。保留所有权利。