aws_sdk_elastictranscoder/client/
cancel_job.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 [`CancelJob`](crate::operation::cancel_job::builders::CancelJobFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`id(impl Into<String>)`](crate::operation::cancel_job::builders::CancelJobFluentBuilder::id) / [`set_id(Option<String>)`](crate::operation::cancel_job::builders::CancelJobFluentBuilder::set_id):<br>required: **true**<br><p>The identifier of the job that you want to cancel.</p> <p>To get a list of the jobs (including their <code>jobId</code>) that have a status of <code>Submitted</code>, use the <code>ListJobsByStatus</code> API action.</p><br>
7    /// - On success, responds with [`CancelJobOutput`](crate::operation::cancel_job::CancelJobOutput)
8    /// - On failure, responds with [`SdkError<CancelJobError>`](crate::operation::cancel_job::CancelJobError)
9    pub fn cancel_job(&self) -> crate::operation::cancel_job::builders::CancelJobFluentBuilder {
10        crate::operation::cancel_job::builders::CancelJobFluentBuilder::new(self.handle.clone())
11    }
12}