LexRuntimeV2Client.delete_session
rboto-lex-runtime-v2==0.4.0 · Service index · Types
Model summary (excerpt): 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...
Install and imports
from rboto import LexRuntimeV2Client
from rboto_lex_runtime_v2.types import (
DeleteSessionOutput,
)
Signature
async def delete_session(
*,
bot_id: str,
bot_alias_id: str,
locale_id: str,
session_id: str,
) -> DeleteSessionOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
bot_id |
Yes | The identifier of the bot that contains the session data. |
bot_alias_id |
Yes | The alias identifier in use for the bot that contains the session data. |
locale_id |
Yes | The locale where the session is in use. |
session_id |
Yes | The identifier of the session to delete. |
Output
DeleteSessionOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
bot_id |
str | None |
Always present | — |
bot_alias_id |
str | None |
Always present | — |
locale_id |
str | None |
Always present | — |
session_id |
str | None |
Always present | — |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_lex_runtime_v2.exceptions:
AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, ThrottlingError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.