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
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListSessions`](crate::operation::list_sessions::builders::ListSessionsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_sessions::builders::ListSessionsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`cluster_id(impl Into<String>)`](crate::operation::list_sessions::builders::ListSessionsFluentBuilder::cluster_id) / [`set_cluster_id(Option<String>)`](crate::operation::list_sessions::builders::ListSessionsFluentBuilder::set_cluster_id):<br>required: **true**<br><p>The ID of the cluster to list sessions for.</p><br>
    ///   - [`session_states(SessionState)`](crate::operation::list_sessions::builders::ListSessionsFluentBuilder::session_states) / [`set_session_states(Option<Vec::<SessionState>>)`](crate::operation::list_sessions::builders::ListSessionsFluentBuilder::set_session_states):<br>required: **false**<br><p>An optional filter that limits the results to sessions in the specified states.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_sessions::builders::ListSessionsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_sessions::builders::ListSessionsFluentBuilder::set_next_token):<br>required: **false**<br><p>The pagination token returned by a previous <code>ListSessions</code> call. Use it to retrieve the next page of results.</p><br>
    ///   - [`max_results(i32)`](crate::operation::list_sessions::builders::ListSessionsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_sessions::builders::ListSessionsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of sessions to return in each page of results.</p><br>
    /// - On success, responds with [`ListSessionsOutput`](crate::operation::list_sessions::ListSessionsOutput) with field(s):
    ///   - [`sessions(Option<Vec::<Session>>)`](crate::operation::list_sessions::ListSessionsOutput::sessions): <p>The sessions that match the request.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_sessions::ListSessionsOutput::next_token): <p>The pagination token to use in a subsequent <code>ListSessions</code> call to retrieve the next page of results. This field is absent when there are no more results.</p>
    /// - On failure, responds with [`SdkError<ListSessionsError>`](crate::operation::list_sessions::ListSessionsError)
    pub fn list_sessions(&self) -> crate::operation::list_sessions::builders::ListSessionsFluentBuilder {
        crate::operation::list_sessions::builders::ListSessionsFluentBuilder::new(self.handle.clone())
    }
}