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 { CreateSessionRequest, CreateSessionResponse } from "../models/models_1"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateSessionCommand}. */ export interface CreateSessionCommandInput extends CreateSessionRequest { } /** * @public * * The output of {@link CreateSessionCommand}. */ export interface CreateSessionCommandOutput extends CreateSessionResponse, __MetadataBearer { } declare const CreateSessionCommand_base: { new (input: CreateSessionCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateSessionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Creates a new session.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { GlueClient, CreateSessionCommand } from "@aws-sdk/client-glue"; // ES Modules import * // const { GlueClient, CreateSessionCommand } = 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 = { // CreateSessionRequest * Id: "STRING_VALUE", // required * Description: "STRING_VALUE", * Role: "STRING_VALUE", // required * Command: { // SessionCommand * Name: "STRING_VALUE", * PythonVersion: "STRING_VALUE", * }, * Timeout: Number("int"), * IdleTimeout: Number("int"), * DefaultArguments: { // OrchestrationArgumentsMap * "": "STRING_VALUE", * }, * Connections: { // ConnectionsList * Connections: [ // ConnectionStringList * "STRING_VALUE", * ], * }, * MaxCapacity: Number("double"), * NumberOfWorkers: Number("int"), * WorkerType: "Standard" || "G.1X" || "G.2X" || "G.025X" || "G.4X" || "G.8X" || "Z.2X", * SecurityConfiguration: "STRING_VALUE", * GlueVersion: "STRING_VALUE", * Tags: { // TagsMap * "": "STRING_VALUE", * }, * RequestOrigin: "STRING_VALUE", * }; * const command = new CreateSessionCommand(input); * const response = await client.send(command); * // { // CreateSessionResponse * // 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 CreateSessionCommandInput - {@link CreateSessionCommandInput} * @returns {@link CreateSessionCommandOutput} * @see {@link CreateSessionCommandInput} for command's `input` shape. * @see {@link CreateSessionCommandOutput} 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 AlreadyExistsException} (client fault) *

A resource to be created or added already exists.

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

The same unique identifier was associated with two different records.

* * @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 ResourceNumberLimitExceededException} (client fault) *

A resource numerical limit was exceeded.

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

A value could not be validated.

* * @throws {@link GlueServiceException} *

Base exception class for all service exceptions from Glue service.

* * * @public */ export declare class CreateSessionCommand extends CreateSessionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateSessionRequest; output: CreateSessionResponse; }; sdk: { input: CreateSessionCommandInput; output: CreateSessionCommandOutput; }; }; }