aws-sdk-batch 1.124.0

AWS SDK for AWS Batch
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`TerminateServiceJob`](crate::operation::terminate_service_job::builders::TerminateServiceJobFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`job_id(impl Into<String>)`](crate::operation::terminate_service_job::builders::TerminateServiceJobFluentBuilder::job_id) / [`set_job_id(Option<String>)`](crate::operation::terminate_service_job::builders::TerminateServiceJobFluentBuilder::set_job_id):<br>required: **true**<br><p>The service job ID of the service job to terminate.</p><br>
    ///   - [`reason(impl Into<String>)`](crate::operation::terminate_service_job::builders::TerminateServiceJobFluentBuilder::reason) / [`set_reason(Option<String>)`](crate::operation::terminate_service_job::builders::TerminateServiceJobFluentBuilder::set_reason):<br>required: **true**<br><p>A message to attach to the service job that explains the reason for canceling it. This message is returned by <code>DescribeServiceJob</code> operations on the service job.</p><br>
    /// - On success, responds with [`TerminateServiceJobOutput`](crate::operation::terminate_service_job::TerminateServiceJobOutput)
    /// - On failure, responds with [`SdkError<TerminateServiceJobError>`](crate::operation::terminate_service_job::TerminateServiceJobError)
    pub fn terminate_service_job(&self) -> crate::operation::terminate_service_job::builders::TerminateServiceJobFluentBuilder {
        crate::operation::terminate_service_job::builders::TerminateServiceJobFluentBuilder::new(self.handle.clone())
    }
}