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 { TerminateClientVpnConnectionsRequest, TerminateClientVpnConnectionsResult } from "../models/models_7"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link TerminateClientVpnConnectionsCommand}. */ export interface TerminateClientVpnConnectionsCommandInput extends TerminateClientVpnConnectionsRequest { } /** * @public * * The output of {@link TerminateClientVpnConnectionsCommand}. */ export interface TerminateClientVpnConnectionsCommandOutput extends TerminateClientVpnConnectionsResult, __MetadataBearer { } declare const TerminateClientVpnConnectionsCommand_base: { new (input: TerminateClientVpnConnectionsCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: TerminateClientVpnConnectionsCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Terminates active Client VPN endpoint connections. This action can be used to terminate a specific client connection, or up to five connections established by a specific user.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, TerminateClientVpnConnectionsCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, TerminateClientVpnConnectionsCommand } = 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 = { // TerminateClientVpnConnectionsRequest * ClientVpnEndpointId: "STRING_VALUE", // required * ConnectionId: "STRING_VALUE", * Username: "STRING_VALUE", * DryRun: true || false, * }; * const command = new TerminateClientVpnConnectionsCommand(input); * const response = await client.send(command); * // { // TerminateClientVpnConnectionsResult * // ClientVpnEndpointId: "STRING_VALUE", * // Username: "STRING_VALUE", * // ConnectionStatuses: [ // TerminateConnectionStatusSet * // { // TerminateConnectionStatus * // ConnectionId: "STRING_VALUE", * // PreviousStatus: { // ClientVpnConnectionStatus * // Code: "active" || "failed-to-terminate" || "terminating" || "terminated", * // Message: "STRING_VALUE", * // }, * // CurrentStatus: { * // Code: "active" || "failed-to-terminate" || "terminating" || "terminated", * // Message: "STRING_VALUE", * // }, * // }, * // ], * // }; * * ``` * * @param TerminateClientVpnConnectionsCommandInput - {@link TerminateClientVpnConnectionsCommandInput} * @returns {@link TerminateClientVpnConnectionsCommandOutput} * @see {@link TerminateClientVpnConnectionsCommandInput} for command's `input` shape. * @see {@link TerminateClientVpnConnectionsCommandOutput} 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 TerminateClientVpnConnectionsCommand extends TerminateClientVpnConnectionsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: TerminateClientVpnConnectionsRequest; output: TerminateClientVpnConnectionsResult; }; sdk: { input: TerminateClientVpnConnectionsCommandInput; output: TerminateClientVpnConnectionsCommandOutput; }; }; }