Struct aws_sdk_servicecatalog::types::Principal
source · #[non_exhaustive]pub struct Principal {
pub principal_arn: Option<String>,
pub principal_type: Option<PrincipalType>,
}
Expand description
Information about a principal.
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.principal_arn: Option<String>
The ARN of the principal (user, role, or group). This field allows for an ARN with no accountID
, with or without wildcard characters if the PrincipalType
is an IAM_PATTERN
.
For more information, review associate-principal-with-portfolio in the Amazon Web Services CLI Command Reference.
principal_type: Option<PrincipalType>
The principal type. The supported value is IAM
if you use a fully defined ARN, or IAM_PATTERN
if you use an ARN with no accountID
, with or without wildcard characters.
Implementations§
source§impl Principal
impl Principal
sourcepub fn principal_arn(&self) -> Option<&str>
pub fn principal_arn(&self) -> Option<&str>
The ARN of the principal (user, role, or group). This field allows for an ARN with no accountID
, with or without wildcard characters if the PrincipalType
is an IAM_PATTERN
.
For more information, review associate-principal-with-portfolio in the Amazon Web Services CLI Command Reference.
sourcepub fn principal_type(&self) -> Option<&PrincipalType>
pub fn principal_type(&self) -> Option<&PrincipalType>
The principal type. The supported value is IAM
if you use a fully defined ARN, or IAM_PATTERN
if you use an ARN with no accountID
, with or without wildcard characters.
Trait Implementations§
source§impl PartialEq for Principal
impl PartialEq for Principal
impl StructuralPartialEq for Principal
Auto Trait Implementations§
impl Freeze for Principal
impl RefUnwindSafe for Principal
impl Send for Principal
impl Sync for Principal
impl Unpin for Principal
impl UnwindSafe for Principal
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