Struct aws_sdk_lexruntimev2::client::fluent_builders::GetSession
source ·
[−]pub struct GetSession<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }Expand description
Fluent builder constructing a request to GetSession.
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.
Implementations
impl<C, M, R> GetSession<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> GetSession<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(self) -> Result<GetSessionOutput, SdkError<GetSessionError>> where
R::Policy: SmithyRetryPolicy<GetSessionInputOperationOutputAlias, GetSessionOutput, GetSessionError, GetSessionInputOperationRetryAlias>,
pub async fn send(self) -> Result<GetSessionOutput, SdkError<GetSessionError>> where
R::Policy: SmithyRetryPolicy<GetSessionInputOperationOutputAlias, GetSessionOutput, GetSessionError, GetSessionInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
The identifier of the bot that contains the session data.
The identifier of the bot that contains the session data.
The alias identifier in use for the bot that contains the session data.
The alias identifier in use for the bot that contains the session data.
The locale where the session is in use.
The locale where the session is in use.
The identifier of the session to return.
The identifier of the session to return.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for GetSession<C, M, R>
impl<C, M, R> Unpin for GetSession<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for GetSession<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
