AWS::ApiGatewayV2::RouteResponseThe `AWS::ApiGatewayV2::RouteResponse` resource creates a route response for a WebSocket API. For more information, see [Set up Route Responses for a WebSocket API in API Gateway](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-route-response.html) in the *API Gateway Developer Guide* .
import { CfnRouteResponse } from 'aws-cdk-lib/aws-apigatewayv2';Or use the module namespace:
import * as apigatewayv2 from 'aws-cdk-lib/aws-apigatewayv2';
// apigatewayv2.CfnRouteResponseConfiguration passed to the constructor as CfnRouteResponseProps.
apiIdRequiredstring | IApiRefThe API identifier.
routeIdRequiredstring | IRouteRefThe route ID.
routeResponseKeyRequiredstringThe route response key.
modelSelectionExpressionOptionalstringThe model selection expression for the route response. Supported only for WebSocket APIs.
responseModelsOptionalanyThe response models for the route response.
responseParametersOptionalIResolvable | { [key: string]: IResolvable | ParameterConstraintsProperty }The route response parameters.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-apigatewayv2AWS::ApiGatewayV2::RouteResponse