import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeV2Client"; import type { DeleteSessionRequest, DeleteSessionResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DeleteSessionCommand}. */ export interface DeleteSessionCommandInput extends DeleteSessionRequest { } /** * @public * * The output of {@link DeleteSessionCommand}. */ export interface DeleteSessionCommandOutput extends DeleteSessionResponse, __MetadataBearer { } declare const DeleteSessionCommand_base: { new (input: DeleteSessionCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: DeleteSessionCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Removes session information for a specified bot, alias, and user ID.

*

You can use this operation to restart a conversation with a bot. * When you remove a session, the entire history of the session is removed * so that you can start again.

*

You don't need to delete a session. Sessions have a time limit and * will expire. Set the session time limit when you create the bot. The * default is 5 minutes, but you can specify anything between 1 minute and * 24 hours.

*

If you specify a bot or alias ID that doesn't exist, you receive a * BadRequestException. *

*

If the locale doesn't exist in the bot, or if the locale hasn't been * enables for the alias, you receive a * BadRequestException.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { LexRuntimeV2Client, DeleteSessionCommand } from "@aws-sdk/client-lex-runtime-v2"; // ES Modules import * // const { LexRuntimeV2Client, DeleteSessionCommand } = require("@aws-sdk/client-lex-runtime-v2"); // CommonJS import * // import type { LexRuntimeV2ClientConfig } from "@aws-sdk/client-lex-runtime-v2"; * const config = {}; // type is LexRuntimeV2ClientConfig * const client = new LexRuntimeV2Client(config); * const input = { // DeleteSessionRequest * botId: "STRING_VALUE", // required * botAliasId: "STRING_VALUE", // required * localeId: "STRING_VALUE", // required * sessionId: "STRING_VALUE", // required * }; * const command = new DeleteSessionCommand(input); * const response = await client.send(command); * // { // DeleteSessionResponse * // botId: "STRING_VALUE", * // botAliasId: "STRING_VALUE", * // localeId: "STRING_VALUE", * // sessionId: "STRING_VALUE", * // }; * * ``` * * @param DeleteSessionCommandInput - {@link DeleteSessionCommandInput} * @returns {@link DeleteSessionCommandOutput} * @see {@link DeleteSessionCommandInput} for command's `input` shape. * @see {@link DeleteSessionCommandOutput} for command's `response` shape. * @see {@link LexRuntimeV2ClientResolvedConfig | config} for LexRuntimeV2Client's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

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

* * @throws {@link InternalServerException} (server fault) *

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

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

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

* * @throws {@link LexRuntimeV2ServiceException} *

Base exception class for all service exceptions from LexRuntimeV2 service.

* * * @public */ export declare class DeleteSessionCommand extends DeleteSessionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteSessionRequest; output: DeleteSessionResponse; }; sdk: { input: DeleteSessionCommandInput; output: DeleteSessionCommandOutput; }; }; }