Creates a unique key that you can distribute to clients who invoke your API.
Use a bare-bones client and the command you need to make an API call.
import { AppSyncClient, CreateApiKeyCommand } from "@aws-sdk/client-appsync"; // ES Modules import // const { AppSyncClient, CreateApiKeyCommand } = require("@aws-sdk/client-appsync"); // CommonJS import const client = new AppSyncClient(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 AppSyncClient's config shape.
config
Creates a unique key that you can distribute to clients who invoke your API.
Use a bare-bones client and the command you need to make an API call.
import { AppSyncClient, CreateApiKeyCommand } from "@aws-sdk/client-appsync"; // ES Modules import // const { AppSyncClient, CreateApiKeyCommand } = require("@aws-sdk/client-appsync"); // CommonJS import const client = new AppSyncClient(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 AppSyncClient's
config
shape.