aws_sdk_databrew/client/
stop_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 [`StopJobRun`](crate::operation::stop_job_run::builders::StopJobRunFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`name(impl Into<String>)`](crate::operation::stop_job_run::builders::StopJobRunFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::stop_job_run::builders::StopJobRunFluentBuilder::set_name):<br>required: **true**<br><p>The name of the job to be stopped.</p><br>
7    ///   - [`run_id(impl Into<String>)`](crate::operation::stop_job_run::builders::StopJobRunFluentBuilder::run_id) / [`set_run_id(Option<String>)`](crate::operation::stop_job_run::builders::StopJobRunFluentBuilder::set_run_id):<br>required: **true**<br><p>The ID of the job run to be stopped.</p><br>
8    /// - On success, responds with [`StopJobRunOutput`](crate::operation::stop_job_run::StopJobRunOutput) with field(s):
9    ///   - [`run_id(String)`](crate::operation::stop_job_run::StopJobRunOutput::run_id): <p>The ID of the job run that you stopped.</p>
10    /// - On failure, responds with [`SdkError<StopJobRunError>`](crate::operation::stop_job_run::StopJobRunError)
11    pub fn stop_job_run(&self) -> crate::operation::stop_job_run::builders::StopJobRunFluentBuilder {
12        crate::operation::stop_job_run::builders::StopJobRunFluentBuilder::new(self.handle.clone())
13    }
14}