aws_sdk_emrserverless/client/
list_job_run_attempts.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 [`ListJobRunAttempts`](crate::operation::list_job_run_attempts::builders::ListJobRunAttemptsFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_job_run_attempts::builders::ListJobRunAttemptsFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`application_id(impl Into<String>)`](crate::operation::list_job_run_attempts::builders::ListJobRunAttemptsFluentBuilder::application_id) / [`set_application_id(Option<String>)`](crate::operation::list_job_run_attempts::builders::ListJobRunAttemptsFluentBuilder::set_application_id):<br>required: **true**<br><p>The ID of the application for which to list job runs.</p><br>
8    ///   - [`job_run_id(impl Into<String>)`](crate::operation::list_job_run_attempts::builders::ListJobRunAttemptsFluentBuilder::job_run_id) / [`set_job_run_id(Option<String>)`](crate::operation::list_job_run_attempts::builders::ListJobRunAttemptsFluentBuilder::set_job_run_id):<br>required: **true**<br><p>The ID of the job run to list.</p><br>
9    ///   - [`next_token(impl Into<String>)`](crate::operation::list_job_run_attempts::builders::ListJobRunAttemptsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_job_run_attempts::builders::ListJobRunAttemptsFluentBuilder::set_next_token):<br>required: **false**<br><p>The token for the next set of job run attempt results.</p><br>
10    ///   - [`max_results(i32)`](crate::operation::list_job_run_attempts::builders::ListJobRunAttemptsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_job_run_attempts::builders::ListJobRunAttemptsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of job run attempts to list.</p><br>
11    /// - On success, responds with [`ListJobRunAttemptsOutput`](crate::operation::list_job_run_attempts::ListJobRunAttemptsOutput) with field(s):
12    ///   - [`job_run_attempts(Vec::<JobRunAttemptSummary>)`](crate::operation::list_job_run_attempts::ListJobRunAttemptsOutput::job_run_attempts): <p>The array of the listed job run attempt objects.</p>
13    ///   - [`next_token(Option<String>)`](crate::operation::list_job_run_attempts::ListJobRunAttemptsOutput::next_token): <p>The output displays the token for the next set of application results. This is required for pagination and is available as a response of the previous request.</p>
14    /// - On failure, responds with [`SdkError<ListJobRunAttemptsError>`](crate::operation::list_job_run_attempts::ListJobRunAttemptsError)
15    pub fn list_job_run_attempts(&self) -> crate::operation::list_job_run_attempts::builders::ListJobRunAttemptsFluentBuilder {
16        crate::operation::list_job_run_attempts::builders::ListJobRunAttemptsFluentBuilder::new(self.handle.clone())
17    }
18}