# CfnGatewayResponseProps

Properties for defining a `CfnGatewayResponse`.

Extends: CfnGatewayResponseProps
Used as props by: CfnGatewayResponse

- Source: Generated code
- Type last changed: v2.227.0 · 21 Nov 2025

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apigateway as apigateway } from 'aws-cdk-lib';
const cfnGatewayResponseProps: apigateway.CfnGatewayResponseProps = {
  responseType: 'responseType',
  restApiId: 'restApiId',

  // the properties below are optional
  responseParameters: {
    responseParametersKey: 'responseParameters',
  },
  responseTemplates: {
    responseTemplatesKey: 'responseTemplates',
  },
  statusCode: 'statusCode',
};
```

## Properties

- `responseParameters`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: string } — Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.

- `responseTemplates`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: string } — Response templates of the GatewayResponse as a string-to-string map of key-value pairs.

- `responseType`: string (required) — The response type of the associated GatewayResponse.

- `restApiId`: string | [IRestApiRef](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_apigateway.IRestApiRef.html) (required) — The string identifier of the associated RestApi.

- `statusCode`: string — The HTTP status code for this GatewayResponse.
