Struct rusoto_credential::ProfileProvider
[−]
[src]
pub struct ProfileProvider { /* fields omitted */ }
Provides AWS credentials from a profile in a credentials file.
Methods
impl ProfileProvider
[src]
fn new() -> Result<ProfileProvider, CredentialsError>
[src]
Create a new ProfileProvider
for the default credentials file path and profile name.
fn with_configuration<F, P>(file_path: F, profile: P) -> ProfileProvider where
F: Into<PathBuf>,
P: Into<String>,
[src]
F: Into<PathBuf>,
P: Into<String>,
Create a new ProfileProvider
for the credentials file at the given path, using
the given profile.
fn file_path(&self) -> &Path
[src]
Get a reference to the credentials file path.
fn profile(&self) -> &str
[src]
Get a reference to the profile name.
fn set_file_path<F>(&mut self, file_path: F) where
F: Into<PathBuf>,
[src]
F: Into<PathBuf>,
Set the credentials file path.
fn set_profile<P>(&mut self, profile: P) where
P: Into<String>,
[src]
P: Into<String>,
Set the profile name.
Trait Implementations
impl Clone for ProfileProvider
[src]
fn clone(&self) -> ProfileProvider
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for ProfileProvider
[src]
impl ProvideAwsCredentials for ProfileProvider
[src]
fn credentials(&self) -> Result<AwsCredentials, CredentialsError>
[src]
Produce a new AwsCredentials
.