#[non_exhaustive]pub enum PolicyMatchReason {
Show 14 variants
PrincipalEq,
PrincipalIn,
PrincipalAny,
PrincipalIs,
PrincipalIsIn,
ActionEq,
ActionIn,
ActionAny,
ResourceEq,
ResourceIn,
ResourceAny,
ResourceIs,
ResourceIsIn,
Unknown,
}Expand description
Why a policy was selected by the list-policies API.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
PrincipalEq
The policy’s principal constraint matches the queried user exactly.
PrincipalIn
The policy’s principal constraint matches via group membership.
PrincipalAny
The policy applies to any principal.
PrincipalIs
The policy’s principal constraint uses is (type check).
PrincipalIsIn
The policy’s principal constraint uses is ... in (type + membership).
ActionEq
The policy’s action constraint matches exactly.
ActionIn
The policy’s action constraint matches via in.
ActionAny
The policy applies to any action.
ResourceEq
The policy’s resource constraint matches exactly.
ResourceIn
The policy’s resource constraint matches via in.
ResourceAny
The policy applies to any resource.
ResourceIs
The policy’s resource constraint uses is (type check).
ResourceIsIn
The policy’s resource constraint uses is ... in (type + membership).
Unknown
A match reason introduced by a newer server version.
Trait Implementations§
Source§impl Clone for PolicyMatchReason
impl Clone for PolicyMatchReason
Source§fn clone(&self) -> PolicyMatchReason
fn clone(&self) -> PolicyMatchReason
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more