Struct aws_sdk_macie2::types::IamUser
source · #[non_exhaustive]pub struct IamUser {
pub account_id: Option<String>,
pub arn: Option<String>,
pub principal_id: Option<String>,
pub user_name: Option<String>,
}
Expand description
Provides information about an Identity and Access Management (IAM) user who performed an action on an affected resource.
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.account_id: Option<String>
The unique identifier for the Amazon Web Services account that's associated with the IAM user who performed the action.
arn: Option<String>
The Amazon Resource Name (ARN) of the principal that performed the action. The last section of the ARN contains the name of the user who performed the action.
principal_id: Option<String>
The unique identifier for the IAM user who performed the action.
user_name: Option<String>
The username of the IAM user who performed the action.
Implementations§
source§impl IamUser
impl IamUser
sourcepub fn account_id(&self) -> Option<&str>
pub fn account_id(&self) -> Option<&str>
The unique identifier for the Amazon Web Services account that's associated with the IAM user who performed the action.
sourcepub fn arn(&self) -> Option<&str>
pub fn arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the principal that performed the action. The last section of the ARN contains the name of the user who performed the action.
sourcepub fn principal_id(&self) -> Option<&str>
pub fn principal_id(&self) -> Option<&str>
The unique identifier for the IAM user who performed the action.
Trait Implementations§
source§impl PartialEq for IamUser
impl PartialEq for IamUser
impl StructuralPartialEq for IamUser
Auto Trait Implementations§
impl Freeze for IamUser
impl RefUnwindSafe for IamUser
impl Send for IamUser
impl Sync for IamUser
impl Unpin for IamUser
impl UnwindSafe for IamUser
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