aws-sdk-emr 1.121.0

AWS SDK for Amazon EMR
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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:
    ///   - [`cluster_id(impl Into<String>)`](crate::operation::terminate_session::builders::TerminateSessionFluentBuilder::cluster_id) / [`set_cluster_id(Option<String>)`](crate::operation::terminate_session::builders::TerminateSessionFluentBuilder::set_cluster_id):<br>required: **true**<br><p>The ID of the cluster that the session belongs to.</p><br>
    ///   - [`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 ID of the session to terminate.</p><br>
    /// - On success, responds with [`TerminateSessionOutput`](crate::operation::terminate_session::TerminateSessionOutput) with field(s):
    ///   - [`cluster_id(Option<String>)`](crate::operation::terminate_session::TerminateSessionOutput::cluster_id): <p>The ID of the cluster that the session belonged to.</p>
    ///   - [`session_id(Option<String>)`](crate::operation::terminate_session::TerminateSessionOutput::session_id): <p>The ID of the terminated session.</p>
    ///   - [`state(Option<SessionState>)`](crate::operation::terminate_session::TerminateSessionOutput::state): <p>The state of the session after the terminate request has been accepted.</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())
    }
}