pub enum AwsPrincipal {
Any,
Account(String),
Arn(Arn),
}
Expand description
An AWS account principal clause in an Aspen policy.
AwsPrincipal enums are immutable.
Variants§
Any
Any entity in any AWS account.
Account(String)
Any entity in the specified AWS account.
Arn(Arn)
The entity specified by the given ARN.
Implementations§
Source§impl AwsPrincipal
impl AwsPrincipal
Sourcepub fn matches(&self, identity: &PrincipalIdentity) -> bool
pub fn matches(&self, identity: &PrincipalIdentity) -> bool
Indicate whether this AwsPrincipal matches the given PrincipalIdentity.
Trait Implementations§
Source§impl Clone for AwsPrincipal
impl Clone for AwsPrincipal
Source§fn clone(&self) -> AwsPrincipal
fn clone(&self) -> AwsPrincipal
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AwsPrincipal
impl Debug for AwsPrincipal
Source§impl Display for AwsPrincipal
impl Display for AwsPrincipal
Source§impl FromStr for AwsPrincipal
impl FromStr for AwsPrincipal
Source§impl PartialEq for AwsPrincipal
impl PartialEq for AwsPrincipal
impl Eq for AwsPrincipal
impl StructuralPartialEq for AwsPrincipal
Auto Trait Implementations§
impl Freeze for AwsPrincipal
impl RefUnwindSafe for AwsPrincipal
impl Send for AwsPrincipal
impl Sync for AwsPrincipal
impl Unpin for AwsPrincipal
impl UnwindSafe for AwsPrincipal
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