import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { APIGatewayClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../APIGatewayClient"; import type { CreateResourceRequest, Resource } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateResourceCommand}. */ export interface CreateResourceCommandInput extends CreateResourceRequest { } /** * @public * * The output of {@link CreateResourceCommand}. */ export interface CreateResourceCommandOutput extends Resource, __MetadataBearer { } declare const CreateResourceCommand_base: { new (input: CreateResourceCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: CreateResourceCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Creates a Resource resource.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { APIGatewayClient, CreateResourceCommand } from "@aws-sdk/client-api-gateway"; // ES Modules import * // const { APIGatewayClient, CreateResourceCommand } = 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 = { // CreateResourceRequest * restApiId: "STRING_VALUE", // required * parentId: "STRING_VALUE", // required * pathPart: "STRING_VALUE", // required * }; * const command = new CreateResourceCommand(input); * const response = await client.send(command); * // { // Resource * // id: "STRING_VALUE", * // parentId: "STRING_VALUE", * // pathPart: "STRING_VALUE", * // path: "STRING_VALUE", * // resourceMethods: { // MapOfMethod * // "": { // Method * // httpMethod: "STRING_VALUE", * // authorizationType: "STRING_VALUE", * // authorizerId: "STRING_VALUE", * // apiKeyRequired: true || false, * // requestValidatorId: "STRING_VALUE", * // operationName: "STRING_VALUE", * // requestParameters: { // MapOfStringToBoolean * // "": true || false, * // }, * // requestModels: { // MapOfStringToString * // "": "STRING_VALUE", * // }, * // methodResponses: { // MapOfMethodResponse * // "": { // MethodResponse * // statusCode: "STRING_VALUE", * // responseParameters: { * // "": true || false, * // }, * // responseModels: { * // "": "STRING_VALUE", * // }, * // }, * // }, * // methodIntegration: { // Integration * // type: "HTTP" || "AWS" || "MOCK" || "HTTP_PROXY" || "AWS_PROXY", * // httpMethod: "STRING_VALUE", * // uri: "STRING_VALUE", * // connectionType: "INTERNET" || "VPC_LINK", * // connectionId: "STRING_VALUE", * // credentials: "STRING_VALUE", * // requestParameters: "", * // requestTemplates: "", * // passthroughBehavior: "STRING_VALUE", * // contentHandling: "CONVERT_TO_BINARY" || "CONVERT_TO_TEXT", * // timeoutInMillis: Number("int"), * // cacheNamespace: "STRING_VALUE", * // cacheKeyParameters: [ // ListOfString * // "STRING_VALUE", * // ], * // integrationResponses: { // MapOfIntegrationResponse * // "": { // IntegrationResponse * // statusCode: "STRING_VALUE", * // selectionPattern: "STRING_VALUE", * // responseParameters: "", * // responseTemplates: "", * // contentHandling: "CONVERT_TO_BINARY" || "CONVERT_TO_TEXT", * // }, * // }, * // tlsConfig: { // TlsConfig * // insecureSkipVerification: true || false, * // }, * // responseTransferMode: "BUFFERED" || "STREAM", * // integrationTarget: "STRING_VALUE", * // }, * // authorizationScopes: [ * // "STRING_VALUE", * // ], * // }, * // }, * // }; * * ``` * * @param CreateResourceCommandInput - {@link CreateResourceCommandInput} * @returns {@link CreateResourceCommandOutput} * @see {@link CreateResourceCommandInput} for command's `input` shape. * @see {@link CreateResourceCommandOutput} 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 CreateResourceCommand extends CreateResourceCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateResourceRequest; output: Resource; }; sdk: { input: CreateResourceCommandInput; output: CreateResourceCommandOutput; }; }; }