aws_sdk_glue/client/
stop_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 [`StopSession`](crate::operation::stop_session::builders::StopSessionFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`id(impl Into<String>)`](crate::operation::stop_session::builders::StopSessionFluentBuilder::id) / [`set_id(Option<String>)`](crate::operation::stop_session::builders::StopSessionFluentBuilder::set_id):<br>required: **true**<br><p>The ID of the session to be stopped.</p><br>
7    ///   - [`request_origin(impl Into<String>)`](crate::operation::stop_session::builders::StopSessionFluentBuilder::request_origin) / [`set_request_origin(Option<String>)`](crate::operation::stop_session::builders::StopSessionFluentBuilder::set_request_origin):<br>required: **false**<br><p>The origin of the request.</p><br>
8    /// - On success, responds with [`StopSessionOutput`](crate::operation::stop_session::StopSessionOutput) with field(s):
9    ///   - [`id(Option<String>)`](crate::operation::stop_session::StopSessionOutput::id): <p>Returns the Id of the stopped session.</p>
10    /// - On failure, responds with [`SdkError<StopSessionError>`](crate::operation::stop_session::StopSessionError)
11    pub fn stop_session(&self) -> crate::operation::stop_session::builders::StopSessionFluentBuilder {
12        crate::operation::stop_session::builders::StopSessionFluentBuilder::new(self.handle.clone())
13    }
14}