class Aws::Credentials::Providers
- Aws::Credentials::Providers
- Reference
- Object
Overview
Providers
provides credentials from multiple Provider
and holds until expiration of credential.
Credential expiration is reached then reload credentials from given Provider
s.
Included Modules
Defined in:
aws-credentials/provider.crConstructors
Instance Method Summary
-
#credentials : Credentials
Resolving
AWS::Credentials::Credentials
. -
#refresh : Nil
Clear cache and reload credential from source.
Instance methods inherited from module Aws::Credentials::CredentialsWithExpiration
unresolved_or_expired(maybe_resolved_credentials : Credentials | Nil, current_time_provider : Proc(Time))
unresolved_or_expired
Instance methods inherited from module Aws::Credentials::Provider
credentials : Credentials
credentials,
credentials? : Credentials | Nil
credentials?,
refresh : Nil
refresh
Constructor Detail
def self.new(providers : Array(Provider), current_time_provider : Proc(Time) = -> do
Time.utc
end)
#
Instance Method Detail
def credentials : Credentials
#
Description copied from module Aws::Credentials::Provider
Resolving AWS::Credentials::Credentials
.
Credential not resolvable then raise Aws::Credentials||MissingCredentials
error.
def refresh : Nil
#
Description copied from module Aws::Credentials::Provider
Clear cache and reload credential from source.