1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`StartImport`](crate::operation::start_import::builders::StartImportFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`destinations(impl Into<String>)`](crate::operation::start_import::builders::StartImportFluentBuilder::destinations) / [`set_destinations(Option<Vec::<String>>)`](crate::operation::start_import::builders::StartImportFluentBuilder::set_destinations):<br>required: **false**<br><p>The ARN of the destination event data store. Use this parameter for a new import.</p><br>
    ///   - [`import_source(ImportSource)`](crate::operation::start_import::builders::StartImportFluentBuilder::import_source) / [`set_import_source(Option<ImportSource>)`](crate::operation::start_import::builders::StartImportFluentBuilder::set_import_source):<br>required: **false**<br><p>The source S3 bucket for the import. Use this parameter for a new import.</p><br>
    ///   - [`start_event_time(DateTime)`](crate::operation::start_import::builders::StartImportFluentBuilder::start_event_time) / [`set_start_event_time(Option<DateTime>)`](crate::operation::start_import::builders::StartImportFluentBuilder::set_start_event_time):<br>required: **false**<br><p>Use 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. When you specify a time range, CloudTrail checks the prefix and log file names to verify the names contain a date between the specified <code>StartEventTime</code> and <code>EndEventTime</code> before attempting to import events.</p><br>
    ///   - [`end_event_time(DateTime)`](crate::operation::start_import::builders::StartImportFluentBuilder::end_event_time) / [`set_end_event_time(Option<DateTime>)`](crate::operation::start_import::builders::StartImportFluentBuilder::set_end_event_time):<br>required: **false**<br><p>Use 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. When you specify a time range, CloudTrail checks the prefix and log file names to verify the names contain a date between the specified <code>StartEventTime</code> and <code>EndEventTime</code> before attempting to import events.</p><br>
    ///   - [`import_id(impl Into<String>)`](crate::operation::start_import::builders::StartImportFluentBuilder::import_id) / [`set_import_id(Option<String>)`](crate::operation::start_import::builders::StartImportFluentBuilder::set_import_id):<br>required: **false**<br><p>The ID of the import. Use this parameter when you are retrying an import.</p><br>
    /// - On success, responds with [`StartImportOutput`](crate::operation::start_import::StartImportOutput) with field(s):
    ///   - [`import_id(Option<String>)`](crate::operation::start_import::StartImportOutput::import_id): <p>The ID of the import.</p>
    ///   - [`destinations(Option<Vec::<String>>)`](crate::operation::start_import::StartImportOutput::destinations): <p>The ARN of the destination event data store.</p>
    ///   - [`import_source(Option<ImportSource>)`](crate::operation::start_import::StartImportOutput::import_source): <p>The source S3 bucket for the import.</p>
    ///   - [`start_event_time(Option<DateTime>)`](crate::operation::start_import::StartImportOutput::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>
    ///   - [`end_event_time(Option<DateTime>)`](crate::operation::start_import::StartImportOutput::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>
    ///   - [`import_status(Option<ImportStatus>)`](crate::operation::start_import::StartImportOutput::import_status): <p>Shows the status of the import after a <code>StartImport</code> request. An import finishes with a status of <code>COMPLETED</code> if there were no failures, or <code>FAILED</code> if there were failures.</p>
    ///   - [`created_timestamp(Option<DateTime>)`](crate::operation::start_import::StartImportOutput::created_timestamp): <p>The timestamp for the import's creation.</p>
    ///   - [`updated_timestamp(Option<DateTime>)`](crate::operation::start_import::StartImportOutput::updated_timestamp): <p>The timestamp of the import's last update, if applicable.</p>
    /// - On failure, responds with [`SdkError<StartImportError>`](crate::operation::start_import::StartImportError)
    pub fn start_import(&self) -> crate::operation::start_import::builders::StartImportFluentBuilder {
        crate::operation::start_import::builders::StartImportFluentBuilder::new(self.handle.clone())
    }
}