aws_sdk_frauddetector/client/
cancel_batch_import_job.rs

1
2
3
4
5
6
7
8
9
10
11
12
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CancelBatchImportJob`](crate::operation::cancel_batch_import_job::builders::CancelBatchImportJobFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`job_id(impl Into<String>)`](crate::operation::cancel_batch_import_job::builders::CancelBatchImportJobFluentBuilder::job_id) / [`set_job_id(Option<String>)`](crate::operation::cancel_batch_import_job::builders::CancelBatchImportJobFluentBuilder::set_job_id):<br>required: **true**<br><p>The ID of an in-progress batch import job to cancel.</p> <p>Amazon Fraud Detector will throw an error if the batch import job is in <code>FAILED</code>, <code>CANCELED</code>, or <code>COMPLETED</code> state.</p><br>
    /// - On success, responds with [`CancelBatchImportJobOutput`](crate::operation::cancel_batch_import_job::CancelBatchImportJobOutput)
    /// - On failure, responds with [`SdkError<CancelBatchImportJobError>`](crate::operation::cancel_batch_import_job::CancelBatchImportJobError)
    pub fn cancel_batch_import_job(&self) -> crate::operation::cancel_batch_import_job::builders::CancelBatchImportJobFluentBuilder {
        crate::operation::cancel_batch_import_job::builders::CancelBatchImportJobFluentBuilder::new(self.handle.clone())
    }
}