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

pub struct ProfileProvider { /* 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 by default. You can change the default profile by calling set_profile.

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. [default] is the profile that is used by default. However, you can set_profile with the name that matches a named profile in your credentials file and those credentials will be used.

Trait Implementations

impl Clone for ProfileProvider
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ProfileProvider
[src]

Formats the value using the given formatter.

impl AwsCredentialsProvider for ProfileProvider
[src]

Produce a new AwsCredentials.