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 { ImportRestApiRequest, RestApi } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public */ export type ImportRestApiCommandInputType = Omit & { body: BlobPayloadInputTypes; }; /** * @public * * The input for {@link ImportRestApiCommand}. */ export interface ImportRestApiCommandInput extends ImportRestApiCommandInputType { } /** * @public * * The output of {@link ImportRestApiCommand}. */ export interface ImportRestApiCommandOutput extends RestApi, __MetadataBearer { } declare const ImportRestApiCommand_base: { new (input: ImportRestApiCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: ImportRestApiCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

A feature of the API Gateway control service for creating a new API from an external API definition file.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { APIGatewayClient, ImportRestApiCommand } from "@aws-sdk/client-api-gateway"; // ES Modules import * // const { APIGatewayClient, ImportRestApiCommand } = 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 = { // ImportRestApiRequest * failOnWarnings: true || false, * parameters: { // MapOfStringToString * "": "STRING_VALUE", * }, * body: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required * }; * const command = new ImportRestApiCommand(input); * const response = await client.send(command); * // { // RestApi * // id: "STRING_VALUE", * // name: "STRING_VALUE", * // description: "STRING_VALUE", * // createdDate: new Date("TIMESTAMP"), * // version: "STRING_VALUE", * // warnings: [ // ListOfString * // "STRING_VALUE", * // ], * // binaryMediaTypes: [ * // "STRING_VALUE", * // ], * // minimumCompressionSize: Number("int"), * // apiKeySource: "HEADER" || "AUTHORIZER", * // endpointConfiguration: { // EndpointConfiguration * // types: [ // ListOfEndpointType * // "REGIONAL" || "EDGE" || "PRIVATE", * // ], * // ipAddressType: "ipv4" || "dualstack", * // vpcEndpointIds: [ * // "STRING_VALUE", * // ], * // }, * // policy: "STRING_VALUE", * // tags: { // MapOfStringToString * // "": "STRING_VALUE", * // }, * // disableExecuteApiEndpoint: true || false, * // rootResourceId: "STRING_VALUE", * // securityPolicy: "TLS_1_0" || "TLS_1_2" || "SecurityPolicy_TLS13_1_3_2025_09" || "SecurityPolicy_TLS13_1_3_FIPS_2025_09" || "SecurityPolicy_TLS13_1_2_PFS_PQ_2025_09" || "SecurityPolicy_TLS13_1_2_FIPS_PQ_2025_09" || "SecurityPolicy_TLS13_1_2_FIPS_PFS_PQ_2025_09" || "SecurityPolicy_TLS13_1_2_PQ_2025_09" || "SecurityPolicy_TLS13_1_2_2021_06" || "SecurityPolicy_TLS13_2025_EDGE" || "SecurityPolicy_TLS12_PFS_2025_EDGE" || "SecurityPolicy_TLS12_2018_EDGE", * // endpointAccessMode: "BASIC" || "STRICT", * // apiStatus: "UPDATING" || "AVAILABLE" || "PENDING" || "FAILED", * // apiStatusMessage: "STRING_VALUE", * // }; * * ``` * * @param ImportRestApiCommandInput - {@link ImportRestApiCommandInput} * @returns {@link ImportRestApiCommandOutput} * @see {@link ImportRestApiCommandInput} for command's `input` shape. * @see {@link ImportRestApiCommandOutput} 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 ImportRestApiCommand extends ImportRestApiCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ImportRestApiRequest; output: RestApi; }; sdk: { input: ImportRestApiCommandInput; output: ImportRestApiCommandOutput; }; }; }