Struct aws_sdk_macie2::model::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
sourceimpl 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.
sourceimpl UserIdentity
impl UserIdentity
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture UserIdentity
Trait Implementations
sourceimpl Clone for UserIdentity
impl Clone for UserIdentity
sourcefn clone(&self) -> UserIdentity
fn clone(&self) -> UserIdentity
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for UserIdentity
impl Debug for UserIdentity
sourceimpl PartialEq<UserIdentity> for UserIdentity
impl PartialEq<UserIdentity> for UserIdentity
sourcefn eq(&self, other: &UserIdentity) -> bool
fn eq(&self, other: &UserIdentity) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &UserIdentity) -> bool
fn ne(&self, other: &UserIdentity) -> bool
This method tests for !=
.
impl StructuralPartialEq for UserIdentity
Auto Trait Implementations
impl RefUnwindSafe for UserIdentity
impl Send for UserIdentity
impl Sync for UserIdentity
impl Unpin for UserIdentity
impl UnwindSafe for UserIdentity
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more