[][src]Enum credstash::CredStashCredential

pub enum CredStashCredential {
    DefaultCredentialsProvider,
    DefaultProfile(Option<String>),
    DefaultAssumeRole((String, Option<(String, String)>)),
}

Variants

DefaultCredentialsProvider

Provides AWS credentials from multiple possible sources using a priority order.

The following sources are checked in order for credentials when calling credentials:

  1. Environment variables: AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY
  2. credential_process command in the AWS config file, usually located at ~/.aws/config.
  3. AWS credentials file. Usually located at ~/.aws/credentials.
  4. 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.

DefaultProfile(Option<String>)

Provides AWS credentials from a profile in a credentials file, or from a credential process.

DefaultAssumeRole((String, Option<(String, String)>))

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]

impl Debug for CredStashCredential[src]

impl PartialEq<CredStashCredential> for CredStashCredential[src]

impl StructuralPartialEq for CredStashCredential[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.