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 { DeleteConnectionRequest, DeleteConnectionResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DeleteConnectionCommand}. */ export interface DeleteConnectionCommandInput extends DeleteConnectionRequest { } /** * @public * * The output of {@link DeleteConnectionCommand}. */ export interface DeleteConnectionCommandOutput extends DeleteConnectionResponse, __MetadataBearer { } declare const DeleteConnectionCommand_base: { new (input: DeleteConnectionCommandInput): import("@smithy/core/client").CommandImpl; new (input: DeleteConnectionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Delete an App Runner connection. You must first ensure that there are no running App Runner services that use this connection. If there are any, the * DeleteConnection action fails.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { AppRunnerClient, DeleteConnectionCommand } from "@aws-sdk/client-apprunner"; // ES Modules import * // const { AppRunnerClient, DeleteConnectionCommand } = 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 = { // DeleteConnectionRequest * ConnectionArn: "STRING_VALUE", // required * }; * const command = new DeleteConnectionCommand(input); * const response = await client.send(command); * // { // DeleteConnectionResponse * // Connection: { // Connection * // ConnectionName: "STRING_VALUE", * // ConnectionArn: "STRING_VALUE", * // ProviderType: "GITHUB" || "BITBUCKET", * // Status: "PENDING_HANDSHAKE" || "AVAILABLE" || "ERROR" || "DELETED", * // CreatedAt: new Date("TIMESTAMP"), * // }, * // }; * * ``` * * @param DeleteConnectionCommandInput - {@link DeleteConnectionCommandInput} * @returns {@link DeleteConnectionCommandOutput} * @see {@link DeleteConnectionCommandInput} for command's `input` shape. * @see {@link DeleteConnectionCommandOutput} 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 ResourceNotFoundException} (client fault) *

A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon Web Services account.

* * @throws {@link AppRunnerServiceException} *

Base exception class for all service exceptions from AppRunner service.

* * * @public */ export declare class DeleteConnectionCommand extends DeleteConnectionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteConnectionRequest; output: DeleteConnectionResponse; }; sdk: { input: DeleteConnectionCommandInput; output: DeleteConnectionCommandOutput; }; }; }