aws_sdk_frauddetector/client/cancel_batch_import_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 [`CancelBatchImportJob`](crate::operation::cancel_batch_import_job::builders::CancelBatchImportJobFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`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>
7 /// - On success, responds with [`CancelBatchImportJobOutput`](crate::operation::cancel_batch_import_job::CancelBatchImportJobOutput)
8 /// - On failure, responds with [`SdkError<CancelBatchImportJobError>`](crate::operation::cancel_batch_import_job::CancelBatchImportJobError)
9 pub fn cancel_batch_import_job(&self) -> crate::operation::cancel_batch_import_job::builders::CancelBatchImportJobFluentBuilder {
10 crate::operation::cancel_batch_import_job::builders::CancelBatchImportJobFluentBuilder::new(self.handle.clone())
11 }
12}