aws_sdk_emrserverless/client/
get_job_run.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 [`GetJobRun`](crate::operation::get_job_run::builders::GetJobRunFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`application_id(impl Into<String>)`](crate::operation::get_job_run::builders::GetJobRunFluentBuilder::application_id) / [`set_application_id(Option<String>)`](crate::operation::get_job_run::builders::GetJobRunFluentBuilder::set_application_id):<br>required: **true**<br><p>The ID of the application on which the job run is submitted.</p><br>
7    ///   - [`job_run_id(impl Into<String>)`](crate::operation::get_job_run::builders::GetJobRunFluentBuilder::job_run_id) / [`set_job_run_id(Option<String>)`](crate::operation::get_job_run::builders::GetJobRunFluentBuilder::set_job_run_id):<br>required: **true**<br><p>The ID of the job run.</p><br>
8    ///   - [`attempt(i32)`](crate::operation::get_job_run::builders::GetJobRunFluentBuilder::attempt) / [`set_attempt(Option<i32>)`](crate::operation::get_job_run::builders::GetJobRunFluentBuilder::set_attempt):<br>required: **false**<br><p>An optimal parameter that indicates the amount of attempts for the job. If not specified, this value defaults to the attempt of the latest job.</p><br>
9    /// - On success, responds with [`GetJobRunOutput`](crate::operation::get_job_run::GetJobRunOutput) with field(s):
10    ///   - [`job_run(Option<JobRun>)`](crate::operation::get_job_run::GetJobRunOutput::job_run): <p>The output displays information about the job run.</p>
11    /// - On failure, responds with [`SdkError<GetJobRunError>`](crate::operation::get_job_run::GetJobRunError)
12    pub fn get_job_run(&self) -> crate::operation::get_job_run::builders::GetJobRunFluentBuilder {
13        crate::operation::get_job_run::builders::GetJobRunFluentBuilder::new(self.handle.clone())
14    }
15}