Create an ApiKey resource.
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);
CreateApiKeyCommandInput for command's input shape.
input
CreateApiKeyCommandOutput for command's response shape.
response
config for APIGatewayClient's config shape.
config
Create an ApiKey resource.
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);
CreateApiKeyCommandInput for command's
input
shape.CreateApiKeyCommandOutput for command's
response
shape.config for APIGatewayClient's
config
shape.