import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { AppRunnerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppRunnerClient"; import type { CreateConnectionRequest, CreateConnectionResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateConnectionCommand}. */ export interface CreateConnectionCommandInput extends CreateConnectionRequest { } /** * @public * * The output of {@link CreateConnectionCommand}. */ export interface CreateConnectionCommandOutput extends CreateConnectionResponse, __MetadataBearer { } declare const CreateConnectionCommand_base: { new (input: CreateConnectionCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateConnectionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Create an App Runner connection resource. App Runner requires a connection resource when you create App Runner services that access private repositories from * certain third-party providers. You can share a connection across multiple services.

*

A connection resource is needed to access GitHub and Bitbucket repositories. Both require * a user interface approval process through the App Runner console before you can use the * connection.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { AppRunnerClient, CreateConnectionCommand } from "@aws-sdk/client-apprunner"; // ES Modules import * // const { AppRunnerClient, CreateConnectionCommand } = require("@aws-sdk/client-apprunner"); // CommonJS import * // import type { AppRunnerClientConfig } from "@aws-sdk/client-apprunner"; * const config = {}; // type is AppRunnerClientConfig * const client = new AppRunnerClient(config); * const input = { // CreateConnectionRequest * ConnectionName: "STRING_VALUE", // required * ProviderType: "GITHUB" || "BITBUCKET", // required * Tags: [ // TagList * { // Tag * Key: "STRING_VALUE", * Value: "STRING_VALUE", * }, * ], * }; * const command = new CreateConnectionCommand(input); * const response = await client.send(command); * // { // CreateConnectionResponse * // Connection: { // Connection * // ConnectionName: "STRING_VALUE", * // ConnectionArn: "STRING_VALUE", * // ProviderType: "GITHUB" || "BITBUCKET", * // Status: "PENDING_HANDSHAKE" || "AVAILABLE" || "ERROR" || "DELETED", * // CreatedAt: new Date("TIMESTAMP"), * // }, * // }; * * ``` * * @param CreateConnectionCommandInput - {@link CreateConnectionCommandInput} * @returns {@link CreateConnectionCommandOutput} * @see {@link CreateConnectionCommandInput} for command's `input` shape. * @see {@link CreateConnectionCommandOutput} for command's `response` shape. * @see {@link AppRunnerClientResolvedConfig | config} for AppRunnerClient's `config` shape. * * @throws {@link InternalServiceErrorException} (server fault) *

An unexpected service exception occurred.

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

One or more input parameters aren't valid. Refer to the API action's document page, correct the input parameters, and try the action again.

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

App Runner can't create this resource. You've reached your account quota for this resource type.

*

For App Runner per-resource quotas, see App Runner endpoints and quotas in the * Amazon Web Services General Reference.

* * @throws {@link AppRunnerServiceException} *

Base exception class for all service exceptions from AppRunner service.

* * * @public */ export declare class CreateConnectionCommand extends CreateConnectionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateConnectionRequest; output: CreateConnectionResponse; }; sdk: { input: CreateConnectionCommandInput; output: CreateConnectionCommandOutput; }; }; }