pub enum GrantAuthorization {
Grantee,
GranteeRole,
Account,
}Expand description
How a grant matched the caller (see
ResourcePolicyProvider::grant_authorization).
Variants§
Grantee
The grant names the calling identity itself (its user or session ARN): it authorizes the request without an IAM policy, in the key’s account or another, within the caller’s SCP ceiling.
GranteeRole
The grant names the role an assumed-role session assumed. As for
Self::Grantee, but the session’s session policies also cap it:
they limit what is granted to the role.
Account
The grant names the caller’s account (its root). Like a key policy statement naming an account, that only lets the account delegate: the caller’s own IAM policies must also allow the action.
Implementations§
Trait Implementations§
Source§impl Clone for GrantAuthorization
impl Clone for GrantAuthorization
impl Copy for GrantAuthorization
Source§impl Debug for GrantAuthorization
impl Debug for GrantAuthorization
impl Eq for GrantAuthorization
Source§impl PartialEq for GrantAuthorization
impl PartialEq for GrantAuthorization
impl StructuralPartialEq for GrantAuthorization
Auto Trait Implementations§
impl Forget for GrantAuthorization
impl Freeze for GrantAuthorization
impl Move for GrantAuthorization
impl RefUnwindSafe for GrantAuthorization
impl Send for GrantAuthorization
impl Sync for GrantAuthorization
impl Unpin for GrantAuthorization
impl UnsafeUnpin for GrantAuthorization
impl UnwindSafe for GrantAuthorization
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.