Struct rusoto_credential::DefaultCredentialsProvider [−][src]
pub struct DefaultCredentialsProvider(_);Expand description
Wraps a ChainProvider in an AutoRefreshingProvider.
The underlying ChainProvider checks multiple sources for credentials, and the AutoRefreshingProvider
refreshes the credentials automatically when they expire.
Warning
This provider allows the credential_process option in the AWS config
file (~/.aws/config), a method of sourcing credentials from an external process. This can
potentially be dangerous, so proceed with caution. Other credential providers should be
preferred if at all possible. If using this option, you should make sure that the config file
is as locked down as possible using security best practices for your operating system.
Implementations
Creates a new thread-safe DefaultCredentialsProvider.
Trait Implementations
fn credentials<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<AwsCredentials, CredentialsError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn credentials<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<AwsCredentials, CredentialsError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Produce a new AwsCredentials future.
Auto Trait Implementations
impl !RefUnwindSafe for DefaultCredentialsProvider
impl Send for DefaultCredentialsProvider
impl Sync for DefaultCredentialsProvider
impl Unpin for DefaultCredentialsProvider
impl !UnwindSafe for DefaultCredentialsProvider
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more