Type Definition aws_sdk_rust::aws::common::credentials::DefaultCredentialsProvider
[−]
[src]
type DefaultCredentialsProvider = AutoRefreshingProvider<ChainProvider>;
The credentials provider you probably want to use if you don't require Sync for your AWS services. Wraps a ChainProvider in an AutoRefreshingProvider that uses a RefCell to cache credentials.
The underlying ChainProvider checks multiple sources for credentials, and the AutoRefreshingProvider refreshes the credentials automatically when they expire. The RefCell allows this caching to happen without the overhead of a Mutex, but is !Sync.
For a Sync implementation of the same, see DefaultCredentialsProviderSync
Methods
impl DefaultCredentialsProvider
[src]
fn new(
parameters_provider: Option<ParametersProvider>
) -> Result<DefaultCredentialsProvider, CredentialsError>
parameters_provider: Option<ParametersProvider>
) -> Result<DefaultCredentialsProvider, CredentialsError>