Struct aws_sdk_lexruntimev2::client::fluent_builders::PutSession
source ·
[−]pub struct PutSession<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }Expand description
Fluent builder constructing a request to PutSession.
Creates a new session or modifies an existing session with an Amazon Lex V2 bot. Use this operation to enable your application to set the state of the bot.
Implementations
impl<C, M, R> PutSession<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> PutSession<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(self) -> Result<PutSessionOutput, SdkError<PutSessionError>> where
R::Policy: SmithyRetryPolicy<PutSessionInputOperationOutputAlias, PutSessionOutput, PutSessionError, PutSessionInputOperationRetryAlias>,
pub async fn send(self) -> Result<PutSessionOutput, SdkError<PutSessionError>> where
R::Policy: SmithyRetryPolicy<PutSessionInputOperationOutputAlias, PutSessionOutput, PutSessionError, PutSessionInputOperationRetryAlias>,
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 receives the session data.
The identifier of the bot that receives the session data.
The alias identifier of the bot that receives the session data.
The alias identifier of the bot that receives the session data.
The locale where the session is in use.
The locale where the session is in use.
The identifier of the session that receives the session data.
The identifier of the session that receives the session data.
Appends an item to messages.
To override the contents of this collection use set_messages.
A list of messages to send to the user. Messages are sent in the order that they are defined in the list.
A list of messages to send to the user. Messages are sent in the order that they are defined in the list.
Sets the state of the session with the user. You can use this to set the current intent, attributes, context, and dialog action. Use the dialog action to determine the next step that Amazon Lex V2 should use in the conversation with the user.
Sets the state of the session with the user. You can use this to set the current intent, attributes, context, and dialog action. Use the dialog action to determine the next step that Amazon Lex V2 should use in the conversation with the user.
Adds a key-value pair to requestAttributes.
To override the contents of this collection use set_request_attributes.
Request-specific information passed between Amazon Lex V2 and the client application.
The namespace x-amz-lex: is reserved for special attributes. Don't create any request attributes with the prefix x-amz-lex:.
Request-specific information passed between Amazon Lex V2 and the client application.
The namespace x-amz-lex: is reserved for special attributes. Don't create any request attributes with the prefix x-amz-lex:.
The message that Amazon Lex V2 returns in the response can be either text or speech depending on the value of this parameter.
-
If the value is
text/plain; charset=utf-8, Amazon Lex V2 returns text in the response.
The message that Amazon Lex V2 returns in the response can be either text or speech depending on the value of this parameter.
-
If the value is
text/plain; charset=utf-8, Amazon Lex V2 returns text in the response.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for PutSession<C, M, R>
impl<C, M, R> Unpin for PutSession<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for PutSession<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
