// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`TerminateSession`](crate::operation::terminate_session::builders::TerminateSessionFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`session_id(impl Into<String>)`](crate::operation::terminate_session::builders::TerminateSessionFluentBuilder::session_id) / [`set_session_id(Option<String>)`](crate::operation::terminate_session::builders::TerminateSessionFluentBuilder::set_session_id):<br>required: **true**<br><p>The session ID.</p><br>
/// - On success, responds with [`TerminateSessionOutput`](crate::operation::terminate_session::TerminateSessionOutput) with field(s):
/// - [`state(Option<SessionState>)`](crate::operation::terminate_session::TerminateSessionOutput::state): <p>The state of the session. A description of each state follows.</p> <p><code>CREATING</code> - The session is being started, including acquiring resources.</p> <p><code>CREATED</code> - The session has been started.</p> <p><code>IDLE</code> - The session is able to accept a calculation.</p> <p><code>BUSY</code> - The session is processing another task and is unable to accept a calculation.</p> <p><code>TERMINATING</code> - The session is in the process of shutting down.</p> <p><code>TERMINATED</code> - The session and its resources are no longer running.</p> <p><code>DEGRADED</code> - The session has no healthy coordinators.</p> <p><code>FAILED</code> - Due to a failure, the session and its resources are no longer running.</p>
/// - On failure, responds with [`SdkError<TerminateSessionError>`](crate::operation::terminate_session::TerminateSessionError)
pub fn terminate_session(&self) -> crate::operation::terminate_session::builders::TerminateSessionFluentBuilder {
crate::operation::terminate_session::builders::TerminateSessionFluentBuilder::new(self.handle.clone())
}
}