aws_sdk_cloudtrail/client/stop_import.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 [`StopImport`](crate::operation::stop_import::builders::StopImportFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`import_id(impl Into<String>)`](crate::operation::stop_import::builders::StopImportFluentBuilder::import_id) / [`set_import_id(Option<String>)`](crate::operation::stop_import::builders::StopImportFluentBuilder::set_import_id):<br>required: **true**<br><p>The ID of the import.</p><br>
7 /// - On success, responds with [`StopImportOutput`](crate::operation::stop_import::StopImportOutput) with field(s):
8 /// - [`import_id(Option<String>)`](crate::operation::stop_import::StopImportOutput::import_id): <p>The ID for the import.</p>
9 /// - [`import_source(Option<ImportSource>)`](crate::operation::stop_import::StopImportOutput::import_source): <p>The source S3 bucket for the import.</p>
10 /// - [`destinations(Option<Vec::<String>>)`](crate::operation::stop_import::StopImportOutput::destinations): <p>The ARN of the destination event data store.</p>
11 /// - [`import_status(Option<ImportStatus>)`](crate::operation::stop_import::StopImportOutput::import_status): <p>The status of the import.</p>
12 /// - [`created_timestamp(Option<DateTime>)`](crate::operation::stop_import::StopImportOutput::created_timestamp): <p>The timestamp of the import's creation.</p>
13 /// - [`updated_timestamp(Option<DateTime>)`](crate::operation::stop_import::StopImportOutput::updated_timestamp): <p>The timestamp of the import's last update.</p>
14 /// - [`start_event_time(Option<DateTime>)`](crate::operation::stop_import::StopImportOutput::start_event_time): <p>Used with <code>EndEventTime</code> to bound a <code>StartImport</code> request, and limit imported trail events to only those events logged within a specified time period.</p>
15 /// - [`end_event_time(Option<DateTime>)`](crate::operation::stop_import::StopImportOutput::end_event_time): <p>Used with <code>StartEventTime</code> to bound a <code>StartImport</code> request, and limit imported trail events to only those events logged within a specified time period.</p>
16 /// - [`import_statistics(Option<ImportStatistics>)`](crate::operation::stop_import::StopImportOutput::import_statistics): <p>Returns information on the stopped import.</p>
17 /// - On failure, responds with [`SdkError<StopImportError>`](crate::operation::stop_import::StopImportError)
18 pub fn stop_import(&self) -> crate::operation::stop_import::builders::StopImportFluentBuilder {
19 crate::operation::stop_import::builders::StopImportFluentBuilder::new(self.handle.clone())
20 }
21}