Struct sts_profile_auth::AwsProfileInfo[][src]

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>,
}
Expand description

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

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.

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

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.