import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { AppStreamClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppStreamClient"; import type { DescribeSessionsRequest, DescribeSessionsResult } from "../models/models_0"; /** * @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 DescribeSessionsResult, __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 that describes the streaming sessions for a specified stack and fleet. If a UserId is provided for the stack and fleet, * only streaming sessions for that user are described. If an authentication type is not provided, * the default is to authenticate users using a streaming URL.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { AppStreamClient, DescribeSessionsCommand } from "@aws-sdk/client-appstream"; // ES Modules import * // const { AppStreamClient, DescribeSessionsCommand } = require("@aws-sdk/client-appstream"); // CommonJS import * // import type { AppStreamClientConfig } from "@aws-sdk/client-appstream"; * const config = {}; // type is AppStreamClientConfig * const client = new AppStreamClient(config); * const input = { // DescribeSessionsRequest * StackName: "STRING_VALUE", // required * FleetName: "STRING_VALUE", // required * UserId: "STRING_VALUE", * NextToken: "STRING_VALUE", * Limit: Number("int"), * AuthenticationType: "API" || "SAML" || "USERPOOL" || "AWS_AD", * InstanceId: "STRING_VALUE", * }; * const command = new DescribeSessionsCommand(input); * const response = await client.send(command); * // { // DescribeSessionsResult * // Sessions: [ // SessionList * // { // Session * // Id: "STRING_VALUE", // required * // UserId: "STRING_VALUE", // required * // StackName: "STRING_VALUE", // required * // FleetName: "STRING_VALUE", // required * // State: "ACTIVE" || "PENDING" || "EXPIRED", // required * // ConnectionState: "CONNECTED" || "NOT_CONNECTED", * // StartTime: new Date("TIMESTAMP"), * // MaxExpirationTime: new Date("TIMESTAMP"), * // AuthenticationType: "API" || "SAML" || "USERPOOL" || "AWS_AD", * // NetworkAccessConfiguration: { // NetworkAccessConfiguration * // EniPrivateIpAddress: "STRING_VALUE", * // EniIpv6Addresses: [ // StringList * // "STRING_VALUE", * // ], * // EniId: "STRING_VALUE", * // }, * // InstanceId: "STRING_VALUE", * // InstanceDrainStatus: "ACTIVE" || "DRAINING" || "NOT_APPLICABLE", * // }, * // ], * // 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 AppStreamClientResolvedConfig | config} for AppStreamClient's `config` shape. * * @throws {@link InvalidParameterCombinationException} (client fault) *

Indicates an incorrect combination of parameters, or a missing parameter.

* * @throws {@link AppStreamServiceException} *

Base exception class for all service exceptions from AppStream service.

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