Enum scratchstack_aspen::AwsPrincipal
source · 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
§type Err = AspenError
type Err = AspenError
The associated error which can be returned from parsing.
source§impl PartialEq<AwsPrincipal> for AwsPrincipal
impl PartialEq<AwsPrincipal> for AwsPrincipal
source§fn eq(&self, other: &AwsPrincipal) -> bool
fn eq(&self, other: &AwsPrincipal) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.