AWS::ApiGateway::GatewayResponseThe `AWS::ApiGateway::GatewayResponse` resource creates a gateway response for your API. When you delete a stack containing this resource, your custom gateway responses are reset. For more information, see [API Gateway Responses](https://docs.aws.amazon.com/apigateway/latest/developerguide/customize-gateway-responses.html#api-gateway-gatewayResponse-definition) in the *API Gateway Developer Guide* .
import { CfnGatewayResponse } from 'aws-cdk-lib/aws-apigateway';Or use the module namespace:
import * as apigateway from 'aws-cdk-lib/aws-apigateway';
// apigateway.CfnGatewayResponseConfiguration passed to the constructor as CfnGatewayResponseProps.
responseTypeRequiredstringThe response type of the associated GatewayResponse.
restApiIdRequiredstring | IRestApiRefThe string identifier of the associated RestApi.
responseParametersOptional{ [key: string]: string } | IResolvableResponse parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.
responseTemplatesOptional{ [key: string]: string } | IResolvableResponse templates of the GatewayResponse as a string-to-string map of key-value pairs.
statusCodeOptionalstringThe HTTP status code for this GatewayResponse.
This L1 construct maps directly to the following CloudFormation resource type.
Everything you need to know about Amazon API Gateway on one page. HD quality, print-friendly.
Download Free Infographicaws-apigatewayAWS::ApiGateway::GatewayResponse