Struct aws_sdk_macie2::types::UserIdentity
source · #[non_exhaustive]pub struct UserIdentity {
pub assumed_role: Option<AssumedRole>,
pub aws_account: Option<AwsAccount>,
pub aws_service: Option<AwsService>,
pub federated_user: Option<FederatedUser>,
pub iam_user: Option<IamUser>,
pub root: Option<UserIdentityRoot>,
pub type: Option<UserIdentityType>,
}
Expand description
Provides information about the type and other characteristics of an entity that 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.assumed_role: 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.
aws_account: Option<AwsAccount>
If the action was performed using the credentials for another Amazon Web Services account, the details of that account.
aws_service: 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.
federated_user: 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.
iam_user: 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.
root: Option<UserIdentityRoot>
If the action was performed using the credentials for your Amazon Web Services account, the details of your account.
type: Option<UserIdentityType>
The type of entity that performed the action.
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() -> UserIdentityBuilder
pub fn builder() -> UserIdentityBuilder
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 ==
.