Creates a new RestApi resource.
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);
CreateRestApiCommandInput for command's input shape.
input
CreateRestApiCommandOutput for command's response shape.
response
config for APIGatewayClient's config shape.
config
Creates a new RestApi resource.
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);
CreateRestApiCommandInput for command's
input
shape.CreateRestApiCommandOutput for command's
response
shape.config for APIGatewayClient's
config
shape.