import { Command as $Command } from "@smithy/smithy-client"; import type { BlobPayloadInputTypes, MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { APIGatewayClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../APIGatewayClient"; import type { ApiKeyIds, ImportApiKeysRequest } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public */ export type ImportApiKeysCommandInputType = Omit & { body: BlobPayloadInputTypes; }; /** * @public * * The input for {@link ImportApiKeysCommand}. */ export interface ImportApiKeysCommandInput extends ImportApiKeysCommandInputType { } /** * @public * * The output of {@link ImportApiKeysCommand}. */ export interface ImportApiKeysCommandOutput extends ApiKeyIds, __MetadataBearer { } declare const ImportApiKeysCommand_base: { new (input: ImportApiKeysCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: ImportApiKeysCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Import API keys from an external source, such as a CSV-formatted file.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { APIGatewayClient, ImportApiKeysCommand } from "@aws-sdk/client-api-gateway"; // ES Modules import * // const { APIGatewayClient, ImportApiKeysCommand } = require("@aws-sdk/client-api-gateway"); // CommonJS import * // import type { APIGatewayClientConfig } from "@aws-sdk/client-api-gateway"; * const config = {}; // type is APIGatewayClientConfig * const client = new APIGatewayClient(config); * const input = { // ImportApiKeysRequest * body: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required * format: "csv", // required * failOnWarnings: true || false, * }; * const command = new ImportApiKeysCommand(input); * const response = await client.send(command); * // { // ApiKeyIds * // ids: [ // ListOfString * // "STRING_VALUE", * // ], * // warnings: [ * // "STRING_VALUE", * // ], * // }; * * ``` * * @param ImportApiKeysCommandInput - {@link ImportApiKeysCommandInput} * @returns {@link ImportApiKeysCommandOutput} * @see {@link ImportApiKeysCommandInput} for command's `input` shape. * @see {@link ImportApiKeysCommandOutput} for command's `response` shape. * @see {@link APIGatewayClientResolvedConfig | config} for APIGatewayClient's `config` shape. * * @throws {@link BadRequestException} (client fault) *

The submitted request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details.

* * @throws {@link ConflictException} (client fault) *

The request configuration has conflicts. For details, see the accompanying error message.

* * @throws {@link LimitExceededException} (client fault) *

The request exceeded the rate limit. Retry after the specified time period.

* * @throws {@link NotFoundException} (client fault) *

The requested resource is not found. Make sure that the request URI is correct.

* * @throws {@link TooManyRequestsException} (client fault) *

The request has reached its throttling limit. Retry after the specified time period.

* * @throws {@link UnauthorizedException} (client fault) *

The request is denied because the caller has insufficient permissions.

* * @throws {@link APIGatewayServiceException} *

Base exception class for all service exceptions from APIGateway service.

* * * @public */ export declare class ImportApiKeysCommand extends ImportApiKeysCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ImportApiKeysRequest; output: ApiKeyIds; }; sdk: { input: ImportApiKeysCommandInput; output: ImportApiKeysCommandOutput; }; }; }