Struct aws_sdk_macie2::model::UserIdentity
source · #[non_exhaustive]pub struct UserIdentity { /* private fields */ }
Expand description
Provides information about the type and other characteristics of an entity that performed an action on an affected resource.
Implementations§
source§impl UserIdentity
impl UserIdentity
sourcepub fn assumed_role(&self) -> Option<&AssumedRole>
pub fn assumed_role(&self) -> Option<&AssumedRole>
If the action was performed with temporary security credentials that were obtained using the AssumeRole operation of the Security Token Service (STS) API, the identifiers, session context, and other details about the identity.
sourcepub fn aws_account(&self) -> Option<&AwsAccount>
pub fn aws_account(&self) -> Option<&AwsAccount>
If the action was performed using the credentials for another Amazon Web Services account, the details of that account.
sourcepub fn aws_service(&self) -> Option<&AwsService>
pub fn aws_service(&self) -> Option<&AwsService>
If the action was performed by an Amazon Web Services account that belongs to an Amazon Web Service, the name of the service.
sourcepub fn federated_user(&self) -> Option<&FederatedUser>
pub fn federated_user(&self) -> Option<&FederatedUser>
If the action was performed with temporary security credentials that were obtained using the GetFederationToken operation of the Security Token Service (STS) API, the identifiers, session context, and other details about the identity.
sourcepub fn iam_user(&self) -> Option<&IamUser>
pub fn iam_user(&self) -> Option<&IamUser>
If the action was performed using the credentials for an Identity and Access Management (IAM) user, the name and other details about the user.
sourcepub fn root(&self) -> Option<&UserIdentityRoot>
pub fn root(&self) -> Option<&UserIdentityRoot>
If the action was performed using the credentials for your Amazon Web Services account, the details of your account.
sourcepub fn type(&self) -> Option<&UserIdentityType>
pub fn type(&self) -> Option<&UserIdentityType>
The type of entity that performed the action.
source§impl UserIdentity
impl UserIdentity
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture UserIdentity
.
Trait Implementations§
source§impl Clone for UserIdentity
impl Clone for UserIdentity
source§fn clone(&self) -> UserIdentity
fn clone(&self) -> UserIdentity
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UserIdentity
impl Debug for UserIdentity
source§impl PartialEq<UserIdentity> for UserIdentity
impl PartialEq<UserIdentity> for UserIdentity
source§fn eq(&self, other: &UserIdentity) -> bool
fn eq(&self, other: &UserIdentity) -> bool
self
and other
values to be equal, and is used
by ==
.