import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client"; import type { DeleteVpnConnectionRequest } from "../models/models_3"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DeleteVpnConnectionCommand}. */ export interface DeleteVpnConnectionCommandInput extends DeleteVpnConnectionRequest { } /** * @public * * The output of {@link DeleteVpnConnectionCommand}. */ export interface DeleteVpnConnectionCommandOutput extends __MetadataBearer { } declare const DeleteVpnConnectionCommand_base: { new (input: DeleteVpnConnectionCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: DeleteVpnConnectionCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Deletes the specified VPN connection.

*

If you're deleting the VPC and its associated components, we recommend that you detach * the virtual private gateway from the VPC and delete the VPC before deleting the VPN * connection. If you believe that the tunnel credentials for your VPN connection have been * compromised, you can delete the VPN connection and create a new one that has new keys, * without needing to delete the VPC or virtual private gateway. If you create a new VPN * connection, you must reconfigure the customer gateway device using the new configuration * information returned with the new VPN connection ID.

*

For certificate-based authentication, delete all Certificate Manager (ACM) private * certificates used for the Amazon Web Services-side tunnel endpoints for the VPN * connection before deleting the VPN connection.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, DeleteVpnConnectionCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, DeleteVpnConnectionCommand } = require("@aws-sdk/client-ec2"); // CommonJS import * // import type { EC2ClientConfig } from "@aws-sdk/client-ec2"; * const config = {}; // type is EC2ClientConfig * const client = new EC2Client(config); * const input = { // DeleteVpnConnectionRequest * VpnConnectionId: "STRING_VALUE", // required * DryRun: true || false, * }; * const command = new DeleteVpnConnectionCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param DeleteVpnConnectionCommandInput - {@link DeleteVpnConnectionCommandInput} * @returns {@link DeleteVpnConnectionCommandOutput} * @see {@link DeleteVpnConnectionCommandInput} for command's `input` shape. * @see {@link DeleteVpnConnectionCommandOutput} for command's `response` shape. * @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape. * * @throws {@link EC2ServiceException} *

Base exception class for all service exceptions from EC2 service.

* * * @public */ export declare class DeleteVpnConnectionCommand extends DeleteVpnConnectionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteVpnConnectionRequest; output: {}; }; sdk: { input: DeleteVpnConnectionCommandInput; output: DeleteVpnConnectionCommandOutput; }; }; }