// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`EndSession`](crate::operation::end_session::builders::EndSessionFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`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>
/// - On success, responds with [`EndSessionOutput`](crate::operation::end_session::EndSessionOutput) with field(s):
/// - [`session_id(String)`](crate::operation::end_session::EndSessionOutput::session_id): <p>The unique identifier of the session you ended.</p>
/// - [`session_arn(String)`](crate::operation::end_session::EndSessionOutput::session_arn): <p>The Amazon Resource Name (ARN) of the session you ended.</p>
/// - [`session_status(SessionStatus)`](crate::operation::end_session::EndSessionOutput::session_status): <p>The current status of the session you ended.</p>
/// - On failure, responds with [`SdkError<EndSessionError>`](crate::operation::end_session::EndSessionError)
pub fn end_session(&self) -> crate::operation::end_session::builders::EndSessionFluentBuilder {
crate::operation::end_session::builders::EndSessionFluentBuilder::new(self.handle.clone())
}
}