interface CfnRouteResponseProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.APIGatewayv2.CfnRouteResponseProps |
![]() | software.amazon.awscdk.services.apigatewayv2.CfnRouteResponseProps |
![]() | aws_cdk.aws_apigatewayv2.CfnRouteResponseProps |
![]() | @aws-cdk/aws-apigatewayv2 » CfnRouteResponseProps |
Properties for defining a CfnRouteResponse
.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as apigatewayv2 from '@aws-cdk/aws-apigatewayv2';
declare const responseModels: any;
const cfnRouteResponseProps: apigatewayv2.CfnRouteResponseProps = {
apiId: 'apiId',
routeId: 'routeId',
routeResponseKey: 'routeResponseKey',
// the properties below are optional
modelSelectionExpression: 'modelSelectionExpression',
responseModels: responseModels,
responseParameters: {
responseParametersKey: {
required: false,
},
},
};
Properties
Name | Type | Description |
---|---|---|
api | string | The API identifier. |
route | string | The route ID. |
route | string | The route response key. |
model | string | The model selection expression for the route response. |
response | any | The response models for the route response. |
response | IResolvable | { [string]: IResolvable | Parameter } | The route response parameters. |
apiId
Type:
string
The API identifier.
routeId
Type:
string
The route ID.
routeResponseKey
Type:
string
The route response key.
modelSelectionExpression?
Type:
string
(optional)
The model selection expression for the route response.
Supported only for WebSocket APIs.
responseModels?
Type:
any
(optional)
The response models for the route response.
responseParameters?
Type:
IResolvable
| { [string]:
IResolvable
|
Parameter
}
(optional)
The route response parameters.