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 { GetSessionRequest, GetSessionResponse } from "../models/models_2"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetSessionCommand}. */ export interface GetSessionCommandInput extends GetSessionRequest { } /** * @public * * The output of {@link GetSessionCommand}. */ export interface GetSessionCommandOutput extends GetSessionResponse, __MetadataBearer { } declare const GetSessionCommand_base: { new (input: GetSessionCommandInput): import("@smithy/core/client").CommandImpl; new (input: GetSessionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Retrieves the session.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { GlueClient, GetSessionCommand } from "@aws-sdk/client-glue"; // ES Modules import * // const { GlueClient, GetSessionCommand } = 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 = { // GetSessionRequest * Id: "STRING_VALUE", // required * RequestOrigin: "STRING_VALUE", * }; * const command = new GetSessionCommand(input); * const response = await client.send(command); * // { // GetSessionResponse * // Session: { // 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", * // }, * // }; * * ``` * * @param GetSessionCommandInput - {@link GetSessionCommandInput} * @returns {@link GetSessionCommandOutput} * @see {@link GetSessionCommandInput} for command's `input` shape. * @see {@link GetSessionCommandOutput} 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 EntityNotFoundException} (client fault) *

A specified entity does not exist

* * @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 GetSessionCommand extends GetSessionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetSessionRequest; output: GetSessionResponse; }; sdk: { input: GetSessionCommandInput; output: GetSessionCommandOutput; }; }; }