Struct rusoto_credential::ProfileProvider [−][src]
pub struct ProfileProvider { /* fields omitted */ }
Provides AWS credentials from a profile in a credentials file.
Methods
impl ProfileProvider
[src]
impl ProfileProvider
pub fn new() -> Result<ProfileProvider, CredentialsError>
[src]
pub fn new() -> Result<ProfileProvider, CredentialsError>
Create a new ProfileProvider
for the default credentials file path and profile name.
pub fn with_configuration<F, P>(file_path: F, profile: P) -> ProfileProvider where
F: Into<PathBuf>,
P: Into<String>,
[src]
pub fn with_configuration<F, P>(file_path: F, profile: P) -> ProfileProvider where
F: Into<PathBuf>,
P: Into<String>,
Create a new ProfileProvider
for the credentials file at the given path, using
the given profile.
pub fn with_default_configuration<F>(file_path: F) -> ProfileProvider where
F: Into<PathBuf>,
[src]
pub fn with_default_configuration<F>(file_path: F) -> ProfileProvider where
F: Into<PathBuf>,
Create a new ProfileProvider
for the credentials file at the given path, using
the profile name from environment variable AWS_PROFILE
or fall-back to "default"
if AWS_PROFILE
is not set.
pub fn file_path(&self) -> &Path
[src]
pub fn file_path(&self) -> &Path
Get a reference to the credentials file path.
pub fn profile(&self) -> &str
[src]
pub fn profile(&self) -> &str
Get a reference to the profile name.
pub fn set_file_path<F>(&mut self, file_path: F) where
F: Into<PathBuf>,
[src]
pub fn set_file_path<F>(&mut self, file_path: F) where
F: Into<PathBuf>,
Set the credentials file path.
pub fn set_profile<P>(&mut self, profile: P) where
P: Into<String>,
[src]
pub fn set_profile<P>(&mut self, profile: P) where
P: Into<String>,
Set the profile name.
Trait Implementations
impl Clone for ProfileProvider
[src]
impl Clone for ProfileProvider
fn clone(&self) -> ProfileProvider
[src]
fn clone(&self) -> ProfileProvider
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for ProfileProvider
[src]
impl Debug for ProfileProvider
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl ProvideAwsCredentials for ProfileProvider
[src]
impl ProvideAwsCredentials for ProfileProvider
type Future = ProfileProviderFuture
The future response value.
fn credentials(&self) -> Self::Future
[src]
fn credentials(&self) -> Self::Future
Produce a new AwsCredentials
future.
Auto Trait Implementations
impl Send for ProfileProvider
impl Send for ProfileProvider
impl Sync for ProfileProvider
impl Sync for ProfileProvider