#[non_exhaustive]pub struct KeyLastUsageData {
pub operation: Option<KeyLastUsageTrackingOperation>,
pub timestamp: Option<DateTime>,
pub cloud_trail_event_id: Option<String>,
pub kms_request_id: Option<String>,
}Expand description
Contains usage information about the last time the KMS key was used for a successful cryptographic operation.
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.operation: Option<KeyLastUsageTrackingOperation>The last successful cryptographic operation the KMS key was used for. Absent if the key has not been used since KMS began tracking.
timestamp: Option<DateTime>The date and time when the KMS key was most recently used for a successful cryptographic operation. Absent if the key has not been used since KMS began tracking.
cloud_trail_event_id: Option<String>The CloudTrail eventId associated with the last successful cryptographic operation. Absent if the key has not been used since KMS began tracking.
kms_request_id: Option<String>The KMS request ID associated with the last successful cryptographic operation. Absent if the key has not been used since KMS began tracking.
Implementations§
Source§impl KeyLastUsageData
impl KeyLastUsageData
Sourcepub fn operation(&self) -> Option<&KeyLastUsageTrackingOperation>
pub fn operation(&self) -> Option<&KeyLastUsageTrackingOperation>
The last successful cryptographic operation the KMS key was used for. Absent if the key has not been used since KMS began tracking.
Sourcepub fn timestamp(&self) -> Option<&DateTime>
pub fn timestamp(&self) -> Option<&DateTime>
The date and time when the KMS key was most recently used for a successful cryptographic operation. Absent if the key has not been used since KMS began tracking.
Sourcepub fn cloud_trail_event_id(&self) -> Option<&str>
pub fn cloud_trail_event_id(&self) -> Option<&str>
The CloudTrail eventId associated with the last successful cryptographic operation. Absent if the key has not been used since KMS began tracking.
Sourcepub fn kms_request_id(&self) -> Option<&str>
pub fn kms_request_id(&self) -> Option<&str>
The KMS request ID associated with the last successful cryptographic operation. Absent if the key has not been used since KMS began tracking.
Source§impl KeyLastUsageData
impl KeyLastUsageData
Sourcepub fn builder() -> KeyLastUsageDataBuilder
pub fn builder() -> KeyLastUsageDataBuilder
Creates a new builder-style object to manufacture KeyLastUsageData.
Trait Implementations§
Source§impl Clone for KeyLastUsageData
impl Clone for KeyLastUsageData
Source§fn clone(&self) -> KeyLastUsageData
fn clone(&self) -> KeyLastUsageData
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for KeyLastUsageData
impl Debug for KeyLastUsageData
Source§impl PartialEq for KeyLastUsageData
impl PartialEq for KeyLastUsageData
impl StructuralPartialEq for KeyLastUsageData
Auto Trait Implementations§
impl Freeze for KeyLastUsageData
impl RefUnwindSafe for KeyLastUsageData
impl Send for KeyLastUsageData
impl Sync for KeyLastUsageData
impl Unpin for KeyLastUsageData
impl UnsafeUnpin for KeyLastUsageData
impl UnwindSafe for KeyLastUsageData
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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