import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { StartSessionRequest, StartSessionResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link StartSessionCommand}. */ export interface StartSessionCommandInput extends StartSessionRequest { } /** * @public * * The output of {@link StartSessionCommand}. */ export interface StartSessionCommandOutput extends StartSessionResponse, __MetadataBearer { } declare const StartSessionCommand_base: { new (input: StartSessionCommandInput): import("@smithy/core/client").CommandImpl; new (input: StartSessionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates and starts a new session on the specified application. The application must be in the STARTED state or have AutoStart enabled, and have interactive sessions enabled. This operation is supported for EMR release 7.13.0 and later.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EMRServerlessClient, StartSessionCommand } from "@aws-sdk/client-emr-serverless"; // ES Modules import * // const { EMRServerlessClient, StartSessionCommand } = 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 = { // StartSessionRequest * applicationId: "STRING_VALUE", // required * clientToken: "STRING_VALUE", // required * executionRoleArn: "STRING_VALUE", // required * configurationOverrides: { // SessionConfigurationOverrides * runtimeConfiguration: [ // ConfigurationList * { // Configuration * classification: "STRING_VALUE", // required * properties: { // SensitivePropertiesMap * "": "STRING_VALUE", * }, * configurations: [ * { * classification: "STRING_VALUE", // required * properties: { * "": "STRING_VALUE", * }, * configurations: "", * }, * ], * }, * ], * }, * tags: { // TagMap * "": "STRING_VALUE", * }, * idleTimeoutMinutes: Number("long"), * name: "STRING_VALUE", * }; * const command = new StartSessionCommand(input); * const response = await client.send(command); * // { // StartSessionResponse * // applicationId: "STRING_VALUE", // required * // sessionId: "STRING_VALUE", // required * // arn: "STRING_VALUE", // required * // }; * * ``` * * @param StartSessionCommandInput - {@link StartSessionCommandInput} * @returns {@link StartSessionCommandOutput} * @see {@link StartSessionCommandInput} for command's `input` shape. * @see {@link StartSessionCommandOutput} for command's `response` shape. * @see {@link EMRServerlessClientResolvedConfig | config} for EMRServerlessClient's `config` shape. * * @throws {@link ConflictException} (client fault) *

The request could not be processed because of conflict in the current state of the resource.

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

The maximum number of resources per account has been reached.

* * @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 StartSessionCommand extends StartSessionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: StartSessionRequest; output: StartSessionResponse; }; sdk: { input: StartSessionCommandInput; output: StartSessionCommandOutput; }; }; }