We are excited to announce our new API Documentation.
Protected
Gets the RouteResponses for a Route.
Use a bare-bones client and the command you need to make an API call.
import { ApiGatewayV2Client, GetRouteResponsesCommand } from "@aws-sdk/client-apigatewayv2"; // ES Modules import// const { ApiGatewayV2Client, GetRouteResponsesCommand } = require("@aws-sdk/client-apigatewayv2"); // CommonJS importconst client = new ApiGatewayV2Client(config);const input = { // GetRouteResponsesRequest ApiId: "STRING_VALUE", // required MaxResults: "STRING_VALUE", NextToken: "STRING_VALUE", RouteId: "STRING_VALUE", // required};const command = new GetRouteResponsesCommand(input);const response = await client.send(command);// { // GetRouteResponsesResponse// Items: [ // __listOfRouteResponse// { // RouteResponse// ModelSelectionExpression: "STRING_VALUE",// ResponseModels: { // RouteModels// "<keys>": "STRING_VALUE",// },// ResponseParameters: { // RouteParameters// "<keys>": { // ParameterConstraints// Required: true || false,// },// },// RouteResponseId: "STRING_VALUE",// RouteResponseKey: "STRING_VALUE", // required// },// ],// NextToken: "STRING_VALUE",// };
GetRouteResponsesCommandInput
GetRouteResponsesCommandOutput
input
response
config
BadRequestException (client fault)
The request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details.
NotFoundException (client fault)
The resource specified in the request was not found. See the message field for more information.
TooManyRequestsException (client fault)
A limit has been exceeded. See the accompanying error message for details.
ApiGatewayV2ServiceException
Base exception class for all service exceptions from ApiGatewayV2 service.
Readonly
Static
Gets the RouteResponses for a Route.
Example
Use a bare-bones client and the command you need to make an API call.
Param
GetRouteResponsesCommandInput
Returns
GetRouteResponsesCommandOutput
See
input
shape.response
shape.config
shape.Throws
BadRequestException (client fault)
The request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details.
Throws
NotFoundException (client fault)
The resource specified in the request was not found. See the message field for more information.
Throws
TooManyRequestsException (client fault)
A limit has been exceeded. See the accompanying error message for details.
Throws
ApiGatewayV2ServiceException
Base exception class for all service exceptions from ApiGatewayV2 service.