import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DatabaseMigrationServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DatabaseMigrationServiceClient"; import type { DeleteConnectionMessage, DeleteConnectionResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DeleteConnectionCommand}. */ export interface DeleteConnectionCommandInput extends DeleteConnectionMessage { } /** * @public * * The output of {@link DeleteConnectionCommand}. */ export interface DeleteConnectionCommandOutput extends DeleteConnectionResponse, __MetadataBearer { } declare const DeleteConnectionCommand_base: { new (input: DeleteConnectionCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: DeleteConnectionCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Deletes the connection between a replication instance and an endpoint.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { DatabaseMigrationServiceClient, DeleteConnectionCommand } from "@aws-sdk/client-database-migration-service"; // ES Modules import * // const { DatabaseMigrationServiceClient, DeleteConnectionCommand } = require("@aws-sdk/client-database-migration-service"); // CommonJS import * // import type { DatabaseMigrationServiceClientConfig } from "@aws-sdk/client-database-migration-service"; * const config = {}; // type is DatabaseMigrationServiceClientConfig * const client = new DatabaseMigrationServiceClient(config); * const input = { // DeleteConnectionMessage * EndpointArn: "STRING_VALUE", // required * ReplicationInstanceArn: "STRING_VALUE", // required * }; * const command = new DeleteConnectionCommand(input); * const response = await client.send(command); * // { // DeleteConnectionResponse * // Connection: { // Connection * // ReplicationInstanceArn: "STRING_VALUE", * // EndpointArn: "STRING_VALUE", * // Status: "STRING_VALUE", * // LastFailureMessage: "STRING_VALUE", * // EndpointIdentifier: "STRING_VALUE", * // ReplicationInstanceIdentifier: "STRING_VALUE", * // }, * // }; * * ``` * * @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 DatabaseMigrationServiceClientResolvedConfig | config} for DatabaseMigrationServiceClient's `config` shape. * * @throws {@link AccessDeniedFault} (client fault) *

DMS was denied access to the endpoint. Check that the * role is correctly configured.

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

The resource is in a state that prevents it from being used for database migration.

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

The resource could not be found.

* * @throws {@link DatabaseMigrationServiceServiceException} *

Base exception class for all service exceptions from DatabaseMigrationService service.

* * * @example Delete Connection * ```javascript * // Deletes the connection between the replication instance and the endpoint. * const input = { * EndpointArn: "arn:aws:dms:us-east-1:123456789012:endpoint:RAAR3R22XSH46S3PWLC3NJAWKM", * ReplicationInstanceArn: "arn:aws:dms:us-east-1:123456789012:rep:6UTDJGBOUS3VI3SUWA66XFJCJQ" * }; * const command = new DeleteConnectionCommand(input); * const response = await client.send(command); * /* response is * { * Connection: { /* empty *\/ } * } * *\/ * ``` * * @public */ export declare class DeleteConnectionCommand extends DeleteConnectionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteConnectionMessage; output: DeleteConnectionResponse; }; sdk: { input: DeleteConnectionCommandInput; output: DeleteConnectionCommandOutput; }; }; }