import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { DescribeSessionsRequest, DescribeSessionsResponse } from "../models/models_1"; import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DescribeSessionsCommand}. */ export interface DescribeSessionsCommandInput extends DescribeSessionsRequest { } /** * @public * * The output of {@link DescribeSessionsCommand}. */ export interface DescribeSessionsCommandOutput extends DescribeSessionsResponse, __MetadataBearer { } declare const DescribeSessionsCommand_base: { new (input: DescribeSessionsCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: DescribeSessionsCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Retrieves a list of all active sessions (both connected and disconnected) or terminated * sessions from the past 30 days.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SSMClient, DescribeSessionsCommand } from "@aws-sdk/client-ssm"; // ES Modules import * // const { SSMClient, DescribeSessionsCommand } = require("@aws-sdk/client-ssm"); // CommonJS import * const client = new SSMClient(config); * const input = { // DescribeSessionsRequest * State: "Active" || "History", // required * MaxResults: Number("int"), * NextToken: "STRING_VALUE", * Filters: [ // SessionFilterList * { // SessionFilter * key: "InvokedAfter" || "InvokedBefore" || "Target" || "Owner" || "Status" || "SessionId" || "AccessType", // required * value: "STRING_VALUE", // required * }, * ], * }; * const command = new DescribeSessionsCommand(input); * const response = await client.send(command); * // { // DescribeSessionsResponse * // Sessions: [ // SessionList * // { // Session * // SessionId: "STRING_VALUE", * // Target: "STRING_VALUE", * // Status: "Connected" || "Connecting" || "Disconnected" || "Terminated" || "Terminating" || "Failed", * // StartDate: new Date("TIMESTAMP"), * // EndDate: new Date("TIMESTAMP"), * // DocumentName: "STRING_VALUE", * // Owner: "STRING_VALUE", * // Reason: "STRING_VALUE", * // Details: "STRING_VALUE", * // OutputUrl: { // SessionManagerOutputUrl * // S3OutputUrl: "STRING_VALUE", * // CloudWatchOutputUrl: "STRING_VALUE", * // }, * // MaxSessionDuration: "STRING_VALUE", * // AccessType: "Standard" || "JustInTime", * // }, * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param DescribeSessionsCommandInput - {@link DescribeSessionsCommandInput} * @returns {@link DescribeSessionsCommandOutput} * @see {@link DescribeSessionsCommandInput} for command's `input` shape. * @see {@link DescribeSessionsCommandOutput} 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 InvalidFilterKey} (client fault) *

The specified key isn't valid.

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

The specified token isn't valid.

* * @throws {@link SSMServiceException} *

Base exception class for all service exceptions from SSM service.

* * * @public */ export declare class DescribeSessionsCommand extends DescribeSessionsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeSessionsRequest; output: DescribeSessionsResponse; }; sdk: { input: DescribeSessionsCommandInput; output: DescribeSessionsCommandOutput; }; }; }