aws_sdk_datazone/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    ///   - [`domain_identifier(impl Into<String>)`](crate::operation::get_job_run::builders::GetJobRunFluentBuilder::domain_identifier) / [`set_domain_identifier(Option<String>)`](crate::operation::get_job_run::builders::GetJobRunFluentBuilder::set_domain_identifier):<br>required: **true**<br><p>The ID of the domain.</p><br>
7    ///   - [`identifier(impl Into<String>)`](crate::operation::get_job_run::builders::GetJobRunFluentBuilder::identifier) / [`set_identifier(Option<String>)`](crate::operation::get_job_run::builders::GetJobRunFluentBuilder::set_identifier):<br>required: **true**<br><p>The ID of the job run.</p><br>
8    /// - On success, responds with [`GetJobRunOutput`](crate::operation::get_job_run::GetJobRunOutput) with field(s):
9    ///   - [`domain_id(Option<String>)`](crate::operation::get_job_run::GetJobRunOutput::domain_id): <p>The ID of the domain.</p>
10    ///   - [`id(Option<String>)`](crate::operation::get_job_run::GetJobRunOutput::id): <p>The ID of the job run.</p>
11    ///   - [`job_id(Option<String>)`](crate::operation::get_job_run::GetJobRunOutput::job_id): <p>The ID of the job run.</p>
12    ///   - [`job_type(Option<JobType>)`](crate::operation::get_job_run::GetJobRunOutput::job_type): <p>The type of the job run.</p>
13    ///   - [`run_mode(Option<JobRunMode>)`](crate::operation::get_job_run::GetJobRunOutput::run_mode): <p>The mode of the job run.</p>
14    ///   - [`details(Option<JobRunDetails>)`](crate::operation::get_job_run::GetJobRunOutput::details): <p>The details of the job run.</p>
15    ///   - [`status(Option<JobRunStatus>)`](crate::operation::get_job_run::GetJobRunOutput::status): <p>The status of the job run.</p>
16    ///   - [`error(Option<JobRunError>)`](crate::operation::get_job_run::GetJobRunOutput::error): <p>The error generated if the action is not completed successfully.</p>
17    ///   - [`created_by(Option<String>)`](crate::operation::get_job_run::GetJobRunOutput::created_by): <p>The user who created the job run.</p>
18    ///   - [`created_at(Option<DateTime>)`](crate::operation::get_job_run::GetJobRunOutput::created_at): <p>The timestamp of when the job run was created.</p>
19    ///   - [`start_time(Option<DateTime>)`](crate::operation::get_job_run::GetJobRunOutput::start_time): <p>The timestamp of when the job run started.</p>
20    ///   - [`end_time(Option<DateTime>)`](crate::operation::get_job_run::GetJobRunOutput::end_time): <p>The timestamp of when the job run ended.</p>
21    /// - On failure, responds with [`SdkError<GetJobRunError>`](crate::operation::get_job_run::GetJobRunError)
22    pub fn get_job_run(&self) -> crate::operation::get_job_run::builders::GetJobRunFluentBuilder {
23        crate::operation::get_job_run::builders::GetJobRunFluentBuilder::new(self.handle.clone())
24    }
25}