Struct aws_sdk_iam::types::AccessKeyMetadata
source · #[non_exhaustive]pub struct AccessKeyMetadata {
pub user_name: Option<String>,
pub access_key_id: Option<String>,
pub status: Option<StatusType>,
pub create_date: Option<DateTime>,
}
Expand description
Contains information about an Amazon Web Services access key, without its secret key.
This data type is used as a response element in the ListAccessKeys
operation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.user_name: Option<String>
The name of the IAM user that the key is associated with.
access_key_id: Option<String>
The ID for this access key.
status: Option<StatusType>
The status of the access key. Active
means that the key is valid for API calls; Inactive
means it is not.
create_date: Option<DateTime>
The date when the access key was created.
Implementations§
source§impl AccessKeyMetadata
impl AccessKeyMetadata
sourcepub fn user_name(&self) -> Option<&str>
pub fn user_name(&self) -> Option<&str>
The name of the IAM user that the key is associated with.
sourcepub fn access_key_id(&self) -> Option<&str>
pub fn access_key_id(&self) -> Option<&str>
The ID for this access key.
sourcepub fn status(&self) -> Option<&StatusType>
pub fn status(&self) -> Option<&StatusType>
The status of the access key. Active
means that the key is valid for API calls; Inactive
means it is not.
sourcepub fn create_date(&self) -> Option<&DateTime>
pub fn create_date(&self) -> Option<&DateTime>
The date when the access key was created.
source§impl AccessKeyMetadata
impl AccessKeyMetadata
sourcepub fn builder() -> AccessKeyMetadataBuilder
pub fn builder() -> AccessKeyMetadataBuilder
Creates a new builder-style object to manufacture AccessKeyMetadata
.
Trait Implementations§
source§impl Clone for AccessKeyMetadata
impl Clone for AccessKeyMetadata
source§fn clone(&self) -> AccessKeyMetadata
fn clone(&self) -> AccessKeyMetadata
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AccessKeyMetadata
impl Debug for AccessKeyMetadata
source§impl PartialEq for AccessKeyMetadata
impl PartialEq for AccessKeyMetadata
source§fn eq(&self, other: &AccessKeyMetadata) -> bool
fn eq(&self, other: &AccessKeyMetadata) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AccessKeyMetadata
Auto Trait Implementations§
impl Freeze for AccessKeyMetadata
impl RefUnwindSafe for AccessKeyMetadata
impl Send for AccessKeyMetadata
impl Sync for AccessKeyMetadata
impl Unpin for AccessKeyMetadata
impl UnwindSafe for AccessKeyMetadata
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.