@aws-sdk/client-lex-runtime-service
Version:
AWS SDK for JavaScript Lex Runtime Service Client for Node.js, Browser and React Native
100 lines (99 loc) • 4.16 kB
TypeScript
import { Command as $Command } from "@smithy/smithy-client";
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { LexRuntimeServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeServiceClient";
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<DeleteSessionCommandInput, DeleteSessionCommandOutput, LexRuntimeServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (input: DeleteSessionCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteSessionCommandInput, DeleteSessionCommandOutput, LexRuntimeServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Removes session information for a specified bot, alias, and user ID.
* </p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { LexRuntimeServiceClient, DeleteSessionCommand } from "@aws-sdk/client-lex-runtime-service"; // ES Modules import
* // const { LexRuntimeServiceClient, DeleteSessionCommand } = require("@aws-sdk/client-lex-runtime-service"); // CommonJS import
* // import type { LexRuntimeServiceClientConfig } from "@aws-sdk/client-lex-runtime-service";
* const config = {}; // type is LexRuntimeServiceClientConfig
* const client = new LexRuntimeServiceClient(config);
* const input = { // DeleteSessionRequest
* botName: "STRING_VALUE", // required
* botAlias: "STRING_VALUE", // required
* userId: "STRING_VALUE", // required
* };
* const command = new DeleteSessionCommand(input);
* const response = await client.send(command);
* // { // DeleteSessionResponse
* // botName: "STRING_VALUE",
* // botAlias: "STRING_VALUE",
* // userId: "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 LexRuntimeServiceClientResolvedConfig | config} for LexRuntimeServiceClient's `config` shape.
*
* @throws {@link BadRequestException} (client fault)
* <p> Request validation failed, there is no usable message in the context,
* or the bot build failed, is still in progress, or contains unbuilt
* changes. </p>
*
* @throws {@link ConflictException} (client fault)
* <p> Two clients are using the same AWS account, Amazon Lex bot, and user
* ID. </p>
*
* @throws {@link InternalFailureException} (server fault)
* <p>Internal service error. Retry the call.</p>
*
* @throws {@link LimitExceededException} (client fault)
* <p>Exceeded a limit.</p>
*
* @throws {@link NotFoundException} (client fault)
* <p>The resource (such as the Amazon Lex bot or an alias) that is referred
* to is not found.</p>
*
* @throws {@link LexRuntimeServiceServiceException}
* <p>Base exception class for all service exceptions from LexRuntimeService service.</p>
*
*
* @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;
};
};
}