Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CreateApiKeyCommand

Create an ApiKey resource.

example

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

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

CreateApiKeyCommandInput for command's input shape.

see

CreateApiKeyCommandOutput for command's response shape.

see

config for APIGatewayClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: CreateApiKeyCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<CreateApiKeyCommandInput, CreateApiKeyCommandOutput>