aws_sdk_bedrockagentruntime/client/
end_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 [`EndSession`](crate::operation::end_session::builders::EndSessionFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`session_identifier(impl Into<String>)`](crate::operation::end_session::builders::EndSessionFluentBuilder::session_identifier) / [`set_session_identifier(Option<String>)`](crate::operation::end_session::builders::EndSessionFluentBuilder::set_session_identifier):<br>required: **true**<br><p>The unique identifier for the session to end. You can specify either the session's <code>sessionId</code> or its Amazon Resource Name (ARN).</p><br>
7    /// - On success, responds with [`EndSessionOutput`](crate::operation::end_session::EndSessionOutput) with field(s):
8    ///   - [`session_id(String)`](crate::operation::end_session::EndSessionOutput::session_id): <p>The unique identifier of the session you ended.</p>
9    ///   - [`session_arn(String)`](crate::operation::end_session::EndSessionOutput::session_arn): <p>The Amazon Resource Name (ARN) of the session you ended.</p>
10    ///   - [`session_status(SessionStatus)`](crate::operation::end_session::EndSessionOutput::session_status): <p>The current status of the session you ended.</p>
11    /// - On failure, responds with [`SdkError<EndSessionError>`](crate::operation::end_session::EndSessionError)
12    pub fn end_session(&self) -> crate::operation::end_session::builders::EndSessionFluentBuilder {
13        crate::operation::end_session::builders::EndSessionFluentBuilder::new(self.handle.clone())
14    }
15}