import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ListSessionsRequest, ListSessionsResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @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(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Lists sessions for the specified application. You can filter sessions by state and creation time.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EMRServerlessClient, ListSessionsCommand } from "@aws-sdk/client-emr-serverless"; // ES Modules import * // const { EMRServerlessClient, ListSessionsCommand } = require("@aws-sdk/client-emr-serverless"); // CommonJS import * // import type { EMRServerlessClientConfig } from "@aws-sdk/client-emr-serverless"; * const config = {}; // type is EMRServerlessClientConfig * const client = new EMRServerlessClient(config); * const input = { // ListSessionsRequest * applicationId: "STRING_VALUE", // required * nextToken: "STRING_VALUE", * maxResults: Number("int"), * states: [ // SessionStateSet * "STRING_VALUE", * ], * createdAtAfter: new Date("TIMESTAMP"), * createdAtBefore: new Date("TIMESTAMP"), * }; * const command = new ListSessionsCommand(input); * const response = await client.send(command); * // { // ListSessionsResponse * // sessions: [ // Sessions // required * // { // SessionSummary * // applicationId: "STRING_VALUE", // required * // sessionId: "STRING_VALUE", // required * // arn: "STRING_VALUE", // required * // name: "STRING_VALUE", * // state: "STRING_VALUE", // required * // stateDetails: "STRING_VALUE", // required * // releaseLabel: "STRING_VALUE", // required * // executionRoleArn: "STRING_VALUE", // required * // createdBy: "STRING_VALUE", // required * // createdAt: new Date("TIMESTAMP"), // required * // updatedAt: new Date("TIMESTAMP"), // required * // }, * // ], * // 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 EMRServerlessClientResolvedConfig | config} for EMRServerlessClient's `config` shape. * * @throws {@link InternalServerException} (server fault) *

Request processing failed because of an error or failure with the service.

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

The specified resource was not found.

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

The input fails to satisfy the constraints specified by an Amazon Web Services service.

* * @throws {@link EMRServerlessServiceException} *

Base exception class for all service exceptions from EMRServerless 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; }; }; }