import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GlueClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GlueClient"; import type { ListSessionsRequest, ListSessionsResponse } from "../models/models_2"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ListSessionsCommand}. */ export interface ListSessionsCommandInput extends ListSessionsRequest { } /** * @public * * The output of {@link ListSessionsCommand}. */ export interface ListSessionsCommandOutput extends ListSessionsResponse, __MetadataBearer { } declare const ListSessionsCommand_base: { new (input: ListSessionsCommandInput): import("@smithy/core/client").CommandImpl; new (...[input]: [] | [ListSessionsCommandInput]): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Retrieve a list of sessions.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { GlueClient, ListSessionsCommand } from "@aws-sdk/client-glue"; // ES Modules import * // const { GlueClient, ListSessionsCommand } = require("@aws-sdk/client-glue"); // CommonJS import * // import type { GlueClientConfig } from "@aws-sdk/client-glue"; * const config = {}; // type is GlueClientConfig * const client = new GlueClient(config); * const input = { // ListSessionsRequest * NextToken: "STRING_VALUE", * MaxResults: Number("int"), * Tags: { // TagsMap * "": "STRING_VALUE", * }, * RequestOrigin: "STRING_VALUE", * }; * const command = new ListSessionsCommand(input); * const response = await client.send(command); * // { // ListSessionsResponse * // Ids: [ // SessionIdList * // "STRING_VALUE", * // ], * // Sessions: [ // SessionList * // { // Session * // Id: "STRING_VALUE", * // CreatedOn: new Date("TIMESTAMP"), * // Status: "PROVISIONING" || "READY" || "FAILED" || "TIMEOUT" || "STOPPING" || "STOPPED", * // ErrorMessage: "STRING_VALUE", * // Description: "STRING_VALUE", * // Role: "STRING_VALUE", * // Command: { // SessionCommand * // Name: "STRING_VALUE", * // PythonVersion: "STRING_VALUE", * // }, * // DefaultArguments: { // OrchestrationArgumentsMap * // "": "STRING_VALUE", * // }, * // Connections: { // ConnectionsList * // Connections: [ // ConnectionStringList * // "STRING_VALUE", * // ], * // }, * // Progress: Number("double"), * // MaxCapacity: Number("double"), * // SecurityConfiguration: "STRING_VALUE", * // GlueVersion: "STRING_VALUE", * // NumberOfWorkers: Number("int"), * // WorkerType: "Standard" || "G.1X" || "G.2X" || "G.025X" || "G.4X" || "G.8X" || "Z.2X", * // CompletedOn: new Date("TIMESTAMP"), * // ExecutionTime: Number("double"), * // DPUSeconds: Number("double"), * // IdleTimeout: Number("int"), * // ProfileName: "STRING_VALUE", * // }, * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param ListSessionsCommandInput - {@link ListSessionsCommandInput} * @returns {@link ListSessionsCommandOutput} * @see {@link ListSessionsCommandInput} for command's `input` shape. * @see {@link ListSessionsCommandOutput} for command's `response` shape. * @see {@link GlueClientResolvedConfig | config} for GlueClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

Access to a resource was denied.

* * @throws {@link InternalServiceException} (server fault) *

An internal service error occurred.

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

The input provided was not valid.

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

The operation timed out.

* * @throws {@link GlueServiceException} *

Base exception class for all service exceptions from Glue service.

* * * @public */ export declare class ListSessionsCommand extends ListSessionsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListSessionsRequest; output: ListSessionsResponse; }; sdk: { input: ListSessionsCommandInput; output: ListSessionsCommandOutput; }; }; }