Struct aws_sdk_iotsitewise::types::Identity
source · #[non_exhaustive]pub struct Identity {
pub user: Option<UserIdentity>,
pub group: Option<GroupIdentity>,
pub iam_user: Option<IamUserIdentity>,
pub iam_role: Option<IamRoleIdentity>,
}Expand description
Contains an identity that can access an IoT SiteWise Monitor resource.
Currently, you can't use Amazon Web Services API operations to retrieve IAM Identity Center identity IDs. You can find the IAM Identity Center identity IDs in the URL of user and group pages in the IAM Identity Center console.
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: Option<UserIdentity>An IAM Identity Center user identity.
group: Option<GroupIdentity>An IAM Identity Center group identity.
iam_user: Option<IamUserIdentity>An IAM user identity.
iam_role: Option<IamRoleIdentity>An IAM role identity.
Implementations§
source§impl Identity
impl Identity
sourcepub fn user(&self) -> Option<&UserIdentity>
pub fn user(&self) -> Option<&UserIdentity>
An IAM Identity Center user identity.
sourcepub fn group(&self) -> Option<&GroupIdentity>
pub fn group(&self) -> Option<&GroupIdentity>
An IAM Identity Center group identity.
sourcepub fn iam_user(&self) -> Option<&IamUserIdentity>
pub fn iam_user(&self) -> Option<&IamUserIdentity>
An IAM user identity.
sourcepub fn iam_role(&self) -> Option<&IamRoleIdentity>
pub fn iam_role(&self) -> Option<&IamRoleIdentity>
An IAM role identity.
Trait Implementations§
source§impl PartialEq for Identity
impl PartialEq for Identity
impl StructuralPartialEq for Identity
Auto Trait Implementations§
impl Freeze for Identity
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnwindSafe for Identity
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>
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.