Creates a usage plan with the throttle and quota limits, as well as the associated API stages, specified in the payload.
Use a bare-bones client and the command you need to make an API call.
import { APIGatewayClient, CreateUsagePlanCommand } from "@aws-sdk/client-api-gateway"; // ES Modules import // const { APIGatewayClient, CreateUsagePlanCommand } = require("@aws-sdk/client-api-gateway"); // CommonJS import const client = new APIGatewayClient(config); const command = new CreateUsagePlanCommand(input); const response = await client.send(command);
CreateUsagePlanCommandInput for command's input shape.
input
CreateUsagePlanCommandOutput for command's response shape.
response
config for APIGatewayClient's config shape.
config
Creates a usage plan with the throttle and quota limits, as well as the associated API stages, specified in the payload.
Use a bare-bones client and the command you need to make an API call.
import { APIGatewayClient, CreateUsagePlanCommand } from "@aws-sdk/client-api-gateway"; // ES Modules import // const { APIGatewayClient, CreateUsagePlanCommand } = require("@aws-sdk/client-api-gateway"); // CommonJS import const client = new APIGatewayClient(config); const command = new CreateUsagePlanCommand(input); const response = await client.send(command);
CreateUsagePlanCommandInput for command's
input
shape.CreateUsagePlanCommandOutput for command's
response
shape.config for APIGatewayClient's
config
shape.