pub struct SecretLookup {
pub secret_access_key: String,
pub session_token: Option<String>,
pub principal_arn: String,
pub user_id: String,
pub account_id: String,
pub session_policies: Vec<String>,
pub principal_tags: Option<HashMap<String, String>>,
}Expand description
Result of looking up a set of credentials by access key ID.
Carries the secret + resolved principal + owning account id. The account id is intentionally read from the credential itself rather than from global config, so that once #381 (multi-account isolation) lands, the same lookup already returns the correct account for the credential.
Fields§
§secret_access_key: String§session_token: Option<String>§principal_arn: String§user_id: String§account_id: String§session_policies: Vec<String>Session policies from the STS call that minted this credential. Empty for IAM user access keys.
Tags on the principal (IAM user or assumed role) for
aws:PrincipalTag/<key> condition evaluation.
Trait Implementations§
Source§impl Clone for SecretLookup
impl Clone for SecretLookup
Source§fn clone(&self) -> SecretLookup
fn clone(&self) -> SecretLookup
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SecretLookup
impl Debug for SecretLookup
Source§impl PartialEq for SecretLookup
impl PartialEq for SecretLookup
Source§fn eq(&self, other: &SecretLookup) -> bool
fn eq(&self, other: &SecretLookup) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SecretLookup
impl StructuralPartialEq for SecretLookup
Auto Trait Implementations§
impl Freeze for SecretLookup
impl RefUnwindSafe for SecretLookup
impl Send for SecretLookup
impl Sync for SecretLookup
impl Unpin for SecretLookup
impl UnsafeUnpin for SecretLookup
impl UnwindSafe for SecretLookup
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.