import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { TerminateSessionRequest, TerminateSessionResponse } from "../models/models_2"; import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link TerminateSessionCommand}. */ export interface TerminateSessionCommandInput extends TerminateSessionRequest { } /** * @public * * The output of {@link TerminateSessionCommand}. */ export interface TerminateSessionCommandOutput extends TerminateSessionResponse, __MetadataBearer { } declare const TerminateSessionCommand_base: { new (input: TerminateSessionCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: TerminateSessionCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Permanently ends a session and closes the data connection between the Session Manager client and * SSM Agent on the managed node. A terminated session can't be resumed.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SSMClient, TerminateSessionCommand } from "@aws-sdk/client-ssm"; // ES Modules import * // const { SSMClient, TerminateSessionCommand } = require("@aws-sdk/client-ssm"); // CommonJS import * const client = new SSMClient(config); * const input = { // TerminateSessionRequest * SessionId: "STRING_VALUE", // required * }; * const command = new TerminateSessionCommand(input); * const response = await client.send(command); * // { // TerminateSessionResponse * // SessionId: "STRING_VALUE", * // }; * * ``` * * @param TerminateSessionCommandInput - {@link TerminateSessionCommandInput} * @returns {@link TerminateSessionCommandOutput} * @see {@link TerminateSessionCommandInput} for command's `input` shape. * @see {@link TerminateSessionCommandOutput} for command's `response` shape. * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. * * @throws {@link InternalServerError} (server fault) *

An error occurred on the server side.

* * @throws {@link SSMServiceException} *

Base exception class for all service exceptions from SSM service.

* * * @public */ export declare class TerminateSessionCommand extends TerminateSessionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: TerminateSessionRequest; output: TerminateSessionResponse; }; sdk: { input: TerminateSessionCommandInput; output: TerminateSessionCommandOutput; }; }; }