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 { Integration, PutIntegrationRequest } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link PutIntegrationCommand}. */ export interface PutIntegrationCommandInput extends PutIntegrationRequest { } /** * @public * * The output of {@link PutIntegrationCommand}. */ export interface PutIntegrationCommandOutput extends Integration, __MetadataBearer { } declare const PutIntegrationCommand_base: { new (input: PutIntegrationCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: PutIntegrationCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Sets up a method's integration.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { APIGatewayClient, PutIntegrationCommand } from "@aws-sdk/client-api-gateway"; // ES Modules import * // const { APIGatewayClient, PutIntegrationCommand } = 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 = { // PutIntegrationRequest * restApiId: "STRING_VALUE", // required * resourceId: "STRING_VALUE", // required * httpMethod: "STRING_VALUE", // required * type: "HTTP" || "AWS" || "MOCK" || "HTTP_PROXY" || "AWS_PROXY", // required * integrationHttpMethod: "STRING_VALUE", * uri: "STRING_VALUE", * connectionType: "INTERNET" || "VPC_LINK", * connectionId: "STRING_VALUE", * credentials: "STRING_VALUE", * requestParameters: { // MapOfStringToString * "": "STRING_VALUE", * }, * requestTemplates: { * "": "STRING_VALUE", * }, * passthroughBehavior: "STRING_VALUE", * cacheNamespace: "STRING_VALUE", * cacheKeyParameters: [ // ListOfString * "STRING_VALUE", * ], * contentHandling: "CONVERT_TO_BINARY" || "CONVERT_TO_TEXT", * timeoutInMillis: Number("int"), * tlsConfig: { // TlsConfig * insecureSkipVerification: true || false, * }, * responseTransferMode: "BUFFERED" || "STREAM", * integrationTarget: "STRING_VALUE", * }; * const command = new PutIntegrationCommand(input); * const response = await client.send(command); * // { // 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: { // MapOfStringToString * // "": "STRING_VALUE", * // }, * // requestTemplates: { * // "": "STRING_VALUE", * // }, * // 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: { * // "": "STRING_VALUE", * // }, * // responseTemplates: { * // "": "STRING_VALUE", * // }, * // contentHandling: "CONVERT_TO_BINARY" || "CONVERT_TO_TEXT", * // }, * // }, * // tlsConfig: { // TlsConfig * // insecureSkipVerification: true || false, * // }, * // responseTransferMode: "BUFFERED" || "STREAM", * // integrationTarget: "STRING_VALUE", * // }; * * ``` * * @param PutIntegrationCommandInput - {@link PutIntegrationCommandInput} * @returns {@link PutIntegrationCommandOutput} * @see {@link PutIntegrationCommandInput} for command's `input` shape. * @see {@link PutIntegrationCommandOutput} 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 PutIntegrationCommand extends PutIntegrationCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: PutIntegrationRequest; output: Integration; }; sdk: { input: PutIntegrationCommandInput; output: PutIntegrationCommandOutput; }; }; }