Struct aws_sdk_eventbridge::types::Archive
source · #[non_exhaustive]pub struct Archive {
pub archive_name: Option<String>,
pub event_source_arn: Option<String>,
pub state: Option<ArchiveState>,
pub state_reason: Option<String>,
pub retention_days: Option<i32>,
pub size_bytes: i64,
pub event_count: i64,
pub creation_time: Option<DateTime>,
}
Expand description
An Archive
object that contains details about an archive.
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.archive_name: Option<String>
The name of the archive.
event_source_arn: Option<String>
The ARN of the event bus associated with the archive. Only events from this event bus are sent to the archive.
state: Option<ArchiveState>
The current state of the archive.
state_reason: Option<String>
A description for the reason that the archive is in the current state.
retention_days: Option<i32>
The number of days to retain events in the archive before they are deleted.
size_bytes: i64
The size of the archive, in bytes.
event_count: i64
The number of events in the archive.
creation_time: Option<DateTime>
The time stamp for the time that the archive was created.
Implementations§
source§impl Archive
impl Archive
sourcepub fn archive_name(&self) -> Option<&str>
pub fn archive_name(&self) -> Option<&str>
The name of the archive.
sourcepub fn event_source_arn(&self) -> Option<&str>
pub fn event_source_arn(&self) -> Option<&str>
The ARN of the event bus associated with the archive. Only events from this event bus are sent to the archive.
sourcepub fn state(&self) -> Option<&ArchiveState>
pub fn state(&self) -> Option<&ArchiveState>
The current state of the archive.
sourcepub fn state_reason(&self) -> Option<&str>
pub fn state_reason(&self) -> Option<&str>
A description for the reason that the archive is in the current state.
sourcepub fn retention_days(&self) -> Option<i32>
pub fn retention_days(&self) -> Option<i32>
The number of days to retain events in the archive before they are deleted.
sourcepub fn size_bytes(&self) -> i64
pub fn size_bytes(&self) -> i64
The size of the archive, in bytes.
sourcepub fn event_count(&self) -> i64
pub fn event_count(&self) -> i64
The number of events in the archive.
sourcepub fn creation_time(&self) -> Option<&DateTime>
pub fn creation_time(&self) -> Option<&DateTime>
The time stamp for the time that the archive was created.
Trait Implementations§
source§impl PartialEq for Archive
impl PartialEq for Archive
impl StructuralPartialEq for Archive
Auto Trait Implementations§
impl Freeze for Archive
impl RefUnwindSafe for Archive
impl Send for Archive
impl Sync for Archive
impl Unpin for Archive
impl UnwindSafe for Archive
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