Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CreateRouteCommand

Creates a Route for an API.

example

Use a bare-bones client and the command you need to make an API call.

import { ApiGatewayV2Client, CreateRouteCommand } from "@aws-sdk/client-apigatewayv2"; // ES Modules import
// const { ApiGatewayV2Client, CreateRouteCommand } = require("@aws-sdk/client-apigatewayv2"); // CommonJS import
const client = new ApiGatewayV2Client(config);
const command = new CreateRouteCommand(input);
const response = await client.send(command);
see

CreateRouteCommandInput for command's input shape.

see

CreateRouteCommandOutput for command's response shape.

see

config for ApiGatewayV2Client's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: CreateRouteCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<CreateRouteCommandInput, CreateRouteCommandOutput>

Methods

Static getEndpointParameterInstructions