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

Creates a session. A session is a contextual container used for generating recommendations. Amazon Connect creates a new Amazon Q in Connect session for each contact on which Amazon Q in Connect is enabled.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { QConnectClient, CreateSessionCommand } from "@aws-sdk/client-qconnect"; // ES Modules import * // const { QConnectClient, CreateSessionCommand } = require("@aws-sdk/client-qconnect"); // CommonJS import * // import type { QConnectClientConfig } from "@aws-sdk/client-qconnect"; * const config = {}; // type is QConnectClientConfig * const client = new QConnectClient(config); * const input = { // CreateSessionRequest * clientToken: "STRING_VALUE", * assistantId: "STRING_VALUE", // required * name: "STRING_VALUE", // required * description: "STRING_VALUE", * tags: { // Tags * "": "STRING_VALUE", * }, * tagFilter: { // TagFilter Union: only one key present * tagCondition: { // TagCondition * key: "STRING_VALUE", // required * value: "STRING_VALUE", * }, * andConditions: [ // AndConditions * { * key: "STRING_VALUE", // required * value: "STRING_VALUE", * }, * ], * orConditions: [ // OrConditions * { // OrCondition Union: only one key present * andConditions: [ * "", * ], * tagCondition: "", * }, * ], * }, * aiAgentConfiguration: { // AIAgentConfigurationMap * "": { // AIAgentConfigurationData * aiAgentId: "STRING_VALUE", // required * }, * }, * contactArn: "STRING_VALUE", * orchestratorConfigurationList: [ // OrchestratorConfigurationList * { // OrchestratorConfigurationEntry * aiAgentId: "STRING_VALUE", * orchestratorUseCase: "STRING_VALUE", // required * }, * ], * removeOrchestratorConfigurationList: true || false, * }; * const command = new CreateSessionCommand(input); * const response = await client.send(command); * // { // CreateSessionResponse * // session: { // SessionData * // sessionArn: "STRING_VALUE", // required * // sessionId: "STRING_VALUE", // required * // name: "STRING_VALUE", // required * // description: "STRING_VALUE", * // tags: { // Tags * // "": "STRING_VALUE", * // }, * // integrationConfiguration: { // SessionIntegrationConfiguration * // topicIntegrationArn: "STRING_VALUE", * // }, * // tagFilter: { // TagFilter Union: only one key present * // tagCondition: { // TagCondition * // key: "STRING_VALUE", // required * // value: "STRING_VALUE", * // }, * // andConditions: [ // AndConditions * // { * // key: "STRING_VALUE", // required * // value: "STRING_VALUE", * // }, * // ], * // orConditions: [ // OrConditions * // { // OrCondition Union: only one key present * // andConditions: [ * // "", * // ], * // tagCondition: "", * // }, * // ], * // }, * // aiAgentConfiguration: { // AIAgentConfigurationMap * // "": { // AIAgentConfigurationData * // aiAgentId: "STRING_VALUE", // required * // }, * // }, * // origin: "STRING_VALUE", * // orchestratorConfigurationList: [ // OrchestratorConfigurationList * // { // OrchestratorConfigurationEntry * // aiAgentId: "STRING_VALUE", * // orchestratorUseCase: "STRING_VALUE", // required * // }, * // ], * // }, * // }; * * ``` * * @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 QConnectClientResolvedConfig | config} for QConnectClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You do not have sufficient access to perform this action.

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

The request could not be processed because of conflict in the current state of the resource. For example, if you're using a Create API (such as CreateAssistant) that accepts name, a conflicting resource (usually with the same name) is being created or mutated.

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

The request failed because it depends on another request that failed.

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

The specified resource does not exist.

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

You do not have permission to perform this action.

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

The input fails to satisfy the constraints specified by a service.

* * @throws {@link QConnectServiceException} *

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