Configure the response received by clients, produced from the API Gateway backend.
import { GatewayResponse } from 'aws-cdk-lib/aws-apigateway';Or use the module namespace:
import * as apigateway from 'aws-cdk-lib/aws-apigateway';
// apigateway.GatewayResponseConfiguration passed to the constructor as GatewayResponseProps.
restApiRequiredIRestApiRest api resource to target.
GatewayResponseOptionstypeRequiredinherited from GatewayResponseOptionsResponseTypeResponse type to associate with gateway response.
responseHeadersOptionalinherited from GatewayResponseOptions{ [key: string]: string }Custom headers parameters for response.
Default: - no headers
statusCodeOptionalinherited from GatewayResponseOptionsstringHttp status code for response.
Default: - standard http status code for the response type.
templatesOptionalinherited from GatewayResponseOptions{ [key: string]: string }Custom templates to get mapped as response.
Default: - Response from api will be returned without applying any transformation.
Everything you need to know about Amazon API Gateway on one page. HD quality, print-friendly.
Download Free Infographicaws-apigateway