LexRuntimeV2Client.get_session
rboto-lex-runtime-v2==0.4.0 · Service index · Types
Model summary (excerpt): Returns session information for a specified bot, alias, and user. For example, you can use this operation to retrieve session information for a user that has left a long-running session in use. If the bot, alias, or session identifier doesn't exist, Amazon Lex V2 returns a BadRequestException . If the locale doesn't exist or is not enabled for the alias, you receive a BadRequestException .
Install and imports
Signature
async def get_session(
*,
bot_id: str,
bot_alias_id: str,
locale_id: str,
session_id: str,
) -> GetSessionOutput: ...
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 return. |
Output
GetSessionOutput.
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 |
|---|---|---|---|
session_id |
str | None |
Always present | — |
messages |
list[MessageValueOutput] | None |
Always present | MessageValueOutput |
interpretations |
list[InterpretationOutput] | None |
Always present | InterpretationOutput |
session_state |
SessionStateValueOutput | None |
Always present | SessionStateValueOutput |
| 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, InternalServerError, ResourceNotFoundError, ThrottlingError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.