[][src]Struct sts_profile_auth::AwsProfileInfo

pub struct AwsProfileInfo {
    pub name: String,
    pub region: String,
    pub aws_access_key_id: String,
    pub aws_secret_access_key: String,
    pub aws_session_token: Option<String>,
    pub role_arn: Option<String>,
    pub source_profile: Option<String>,
}

Profile meta-data, representing either a profile with an access key, or a profile utilizing sts.

Fields

name: Stringregion: Stringaws_access_key_id: Stringaws_secret_access_key: Stringaws_session_token: Option<String>role_arn: Option<String>source_profile: Option<String>

Implementations

impl AwsProfileInfo[src]

pub fn from_hashmap(
    profile_name: &str,
    profile_map: &HashMap<String, HashMap<String, String>>
) -> Option<Self>
[src]

This function fills an instance of AwsProfileInfo using a hashmap generated by fill_profile_map It will return None if all required information cannot be found.

pub fn fill_profile_map() -> Result<HashMap<String, Self>, StsClientError>[src]

Extract profile information hashmap from ${HOME}/.aws/config and ${HOME}/.aws/credentials

Trait Implementations

impl Clone for AwsProfileInfo[src]

impl Debug for AwsProfileInfo[src]

impl Default for AwsProfileInfo[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> Instrument 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.