Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CreateRestApiCommand

Creates a new RestApi resource.

example

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

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

CreateRestApiCommandInput for command's input shape.

see

CreateRestApiCommandOutput for command's response shape.

see

config for APIGatewayClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: CreateRestApiCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<CreateRestApiCommandInput, CreateRestApiCommandOutput>