

# x-amazon-apigateway-gateway-responses.responseParameters オブジェクト
<a name="api-gateway-swagger-extensions-gateway-responses.responseParameters"></a>

キーと値のペアの文字列間マップを定義し、ゲートウェイレスポンスパラメータを受信リクエストパラメータから生成するか、リテラル文字列を使用して生成します。REST API でのみサポートされます。


| プロパティ名 | タイプ | 説明 | 
| --- | --- | --- | 
| gatewayresponse.param-position.param-name | string |  `param-position` は、`header`、`path`、`querystring` のいずれかです。詳細については、「[API Gateway の REST API パラメータマッピング](rest-api-parameter-mapping.md)」を参照してください。  | 

## x-amazon-apigateway-gateway-responses.responseParameters の例
<a name="api-gateway-swagger-extensions-gateway-responses.responseParameters-example"></a>

 次の OpenAPI の拡張例では、[GatewayResponse](https://docs.aws.amazon.com/apigateway/latest/api/API_GatewayResponse.html) レスポンスパラメータマッピング式を使用して、`*.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
      }
```