aws_sdk_bedrockagentruntime/client/
update_session.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`UpdateSession`](crate::operation::update_session::builders::UpdateSessionFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`session_metadata(impl Into<String>, impl Into<String>)`](crate::operation::update_session::builders::UpdateSessionFluentBuilder::session_metadata) / [`set_session_metadata(Option<HashMap::<String, String>>)`](crate::operation::update_session::builders::UpdateSessionFluentBuilder::set_session_metadata):<br>required: **false**<br><p>A map of key-value pairs containing attributes to be persisted across the session. For example the user's ID, their language preference, and the type of device they are using.</p><br>
7    ///   - [`session_identifier(impl Into<String>)`](crate::operation::update_session::builders::UpdateSessionFluentBuilder::session_identifier) / [`set_session_identifier(Option<String>)`](crate::operation::update_session::builders::UpdateSessionFluentBuilder::set_session_identifier):<br>required: **true**<br><p>The unique identifier of the session to modify. You can specify either the session's <code>sessionId</code> or its Amazon Resource Name (ARN).</p><br>
8    /// - On success, responds with [`UpdateSessionOutput`](crate::operation::update_session::UpdateSessionOutput) with field(s):
9    ///   - [`session_id(String)`](crate::operation::update_session::UpdateSessionOutput::session_id): <p>The unique identifier of the session you updated.</p>
10    ///   - [`session_arn(String)`](crate::operation::update_session::UpdateSessionOutput::session_arn): <p>The Amazon Resource Name (ARN) of the session that was updated.</p>
11    ///   - [`session_status(SessionStatus)`](crate::operation::update_session::UpdateSessionOutput::session_status): <p>The status of the session you updated.</p>
12    ///   - [`created_at(DateTime)`](crate::operation::update_session::UpdateSessionOutput::created_at): <p>The timestamp for when the session was created.</p>
13    ///   - [`last_updated_at(DateTime)`](crate::operation::update_session::UpdateSessionOutput::last_updated_at): <p>The timestamp for when the session was last modified.</p>
14    /// - On failure, responds with [`SdkError<UpdateSessionError>`](crate::operation::update_session::UpdateSessionError)
15    pub fn update_session(&self) -> crate::operation::update_session::builders::UpdateSessionFluentBuilder {
16        crate::operation::update_session::builders::UpdateSessionFluentBuilder::new(self.handle.clone())
17    }
18}