Struct aws_sdk_rust::aws::common::credentials::ProfileProvider [] [src]

pub struct ProfileProvider {
    // some fields omitted
}

Provides AWS credentials from a profile in a credentials file.

The credentials file is located in the home directory of the given user.

Methods

impl ProfileProvider
[src]

Create a new ProfileProvider for the default credentials file path and profile name.

More details on the AWS credentials file can be found at AWS. Linux or Mac OS - ~/.aws/credentials Windows - %USERPROFILE%.aws\credentials

Sets the "default" credentials but can be overridden with set_profile.

Create a new ProfileProvider for the credentials file at the given path, using the given profile.

Get a reference to the credentials location.

Get a reference to the profile name. Profile name is the subsection in the credentials file. See AWS for details.

Set the credentials location.

Set the profile name.

Trait Implementations

impl Debug for ProfileProvider
[src]

Formats the value using the given formatter.

impl Clone for ProfileProvider
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl AwsCredentialsProvider for ProfileProvider
[src]

Produce a new AwsCredentials.