pub struct StsTempCredential {
pub access_key_id: String,
pub secret_access_key: String,
pub session_token: String,
pub principal_arn: String,
pub user_id: String,
pub account_id: String,
pub expiration: DateTime<Utc>,
}Expand description
A temporary credential issued by STS (AssumeRole, AssumeRoleWithWebIdentity,
AssumeRoleWithSAML, GetSessionToken, GetFederationToken).
Unlike CredentialIdentity, which only remembers the principal ARN for
GetCallerIdentity, this struct also retains the secret access key and
session token so that SigV4 verification and IAM enforcement (added in
later batches) can look them up when a client signs a request with
temporary credentials. expiration is the absolute wall-clock time at
which the credential becomes invalid.
Fields§
§access_key_id: String§secret_access_key: String§session_token: String§principal_arn: String§user_id: String§account_id: String§expiration: DateTime<Utc>Trait Implementations§
Source§impl Clone for StsTempCredential
impl Clone for StsTempCredential
Source§fn clone(&self) -> StsTempCredential
fn clone(&self) -> StsTempCredential
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for StsTempCredential
impl RefUnwindSafe for StsTempCredential
impl Send for StsTempCredential
impl Sync for StsTempCredential
impl Unpin for StsTempCredential
impl UnsafeUnpin for StsTempCredential
impl UnwindSafe for StsTempCredential
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