#[non_exhaustive]pub struct StartImportInput {
pub destinations: Option<Vec<String>>,
pub import_source: Option<ImportSource>,
pub start_event_time: Option<DateTime>,
pub end_event_time: Option<DateTime>,
pub import_id: Option<String>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.destinations: Option<Vec<String>>
The ARN of the destination event data store. Use this parameter for a new import.
import_source: Option<ImportSource>
The source S3 bucket for the import. Use this parameter for a new import.
start_event_time: Option<DateTime>
Use with EndEventTime
to bound a StartImport
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 StartEventTime
and EndEventTime
before attempting to import events.
end_event_time: Option<DateTime>
Use with StartEventTime
to bound a StartImport
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 StartEventTime
and EndEventTime
before attempting to import events.
import_id: Option<String>
The ID of the import. Use this parameter when you are retrying an import.
Implementations§
source§impl StartImportInput
impl StartImportInput
sourcepub fn destinations(&self) -> &[String]
pub fn destinations(&self) -> &[String]
The ARN of the destination event data store. Use this parameter for a new import.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .destinations.is_none()
.
sourcepub fn import_source(&self) -> Option<&ImportSource>
pub fn import_source(&self) -> Option<&ImportSource>
The source S3 bucket for the import. Use this parameter for a new import.
sourcepub fn start_event_time(&self) -> Option<&DateTime>
pub fn start_event_time(&self) -> Option<&DateTime>
Use with EndEventTime
to bound a StartImport
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 StartEventTime
and EndEventTime
before attempting to import events.
sourcepub fn end_event_time(&self) -> Option<&DateTime>
pub fn end_event_time(&self) -> Option<&DateTime>
Use with StartEventTime
to bound a StartImport
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 StartEventTime
and EndEventTime
before attempting to import events.
source§impl StartImportInput
impl StartImportInput
sourcepub fn builder() -> StartImportInputBuilder
pub fn builder() -> StartImportInputBuilder
Creates a new builder-style object to manufacture StartImportInput
.
Trait Implementations§
source§impl Clone for StartImportInput
impl Clone for StartImportInput
source§fn clone(&self) -> StartImportInput
fn clone(&self) -> StartImportInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StartImportInput
impl Debug for StartImportInput
source§impl PartialEq for StartImportInput
impl PartialEq for StartImportInput
source§fn eq(&self, other: &StartImportInput) -> bool
fn eq(&self, other: &StartImportInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for StartImportInput
Auto Trait Implementations§
impl Freeze for StartImportInput
impl RefUnwindSafe for StartImportInput
impl Send for StartImportInput
impl Sync for StartImportInput
impl Unpin for StartImportInput
impl UnwindSafe for StartImportInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more