aws_sdk_emrcontainers/client/
cancel_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 [`CancelJobRun`](crate::operation::cancel_job_run::builders::CancelJobRunFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`id(impl Into<String>)`](crate::operation::cancel_job_run::builders::CancelJobRunFluentBuilder::id) / [`set_id(Option<String>)`](crate::operation::cancel_job_run::builders::CancelJobRunFluentBuilder::set_id):<br>required: **true**<br><p>The ID of the job run to cancel.</p><br>
7    ///   - [`virtual_cluster_id(impl Into<String>)`](crate::operation::cancel_job_run::builders::CancelJobRunFluentBuilder::virtual_cluster_id) / [`set_virtual_cluster_id(Option<String>)`](crate::operation::cancel_job_run::builders::CancelJobRunFluentBuilder::set_virtual_cluster_id):<br>required: **true**<br><p>The ID of the virtual cluster for which the job run will be canceled.</p><br>
8    /// - On success, responds with [`CancelJobRunOutput`](crate::operation::cancel_job_run::CancelJobRunOutput) with field(s):
9    ///   - [`id(Option<String>)`](crate::operation::cancel_job_run::CancelJobRunOutput::id): <p>The output contains the ID of the cancelled job run.</p>
10    ///   - [`virtual_cluster_id(Option<String>)`](crate::operation::cancel_job_run::CancelJobRunOutput::virtual_cluster_id): <p>The output contains the virtual cluster ID for which the job run is cancelled.</p>
11    /// - On failure, responds with [`SdkError<CancelJobRunError>`](crate::operation::cancel_job_run::CancelJobRunError)
12    pub fn cancel_job_run(&self) -> crate::operation::cancel_job_run::builders::CancelJobRunFluentBuilder {
13        crate::operation::cancel_job_run::builders::CancelJobRunFluentBuilder::new(self.handle.clone())
14    }
15}