[−][src]Enum credstash::CredStashCredential
Variants
Provides AWS credentials from multiple possible sources using a priority order.
The following sources are checked in order for credentials when calling credentials
:
- Environment variables:
AWS_ACCESS_KEY_ID
andAWS_SECRET_ACCESS_KEY
credential_process
command in the AWS config file, usually located at~/.aws/config
.- AWS credentials file. Usually located at
~/.aws/credentials
. - IAM instance profile. Will only work if running on an EC2 instance with an instance profile/role.
Note that this credential will also automatically refresh the credentials when they expire.
Provides AWS credentials from a profile in a credentials file, or from a credential process.
Use STS to assume role. The first argument is the ARN of the role to assume. The second tuple consiste of an optional MFA hardware device serial number or virtual device ARN and the associated MFA code.
Trait Implementations
impl Clone for CredStashCredential
[src]
fn clone(&self) -> CredStashCredential
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CredStashCredential
[src]
impl PartialEq<CredStashCredential> for CredStashCredential
[src]
fn eq(&self, other: &CredStashCredential) -> bool
[src]
fn ne(&self, other: &CredStashCredential) -> bool
[src]
impl StructuralPartialEq for CredStashCredential
[src]
Auto Trait Implementations
impl RefUnwindSafe for CredStashCredential
impl Send for CredStashCredential
impl Sync for CredStashCredential
impl Unpin for CredStashCredential
impl UnwindSafe for CredStashCredential
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,