class

Aws::Credentials::Providers

Inherits Aws::Credentials::CredentialsWithExpiration / Aws::Credentials::Provider / Reference / Object

Providers provides credentials from multiple Provider and holds until expiration of credential.

Credential expiration is reached then reload credentials from given Providers.

Constructors

new(providers : Array(Provider), current_time_provider : Proc(Time) = -> do Time.utc end, logger : Log = ::Log.for("AWS.Credentials"))
Source

Instance methods

credentials

Resolving AWS::Credentials::Credentials.

Credential not resolvable then raise Aws::Credentials||MissingCredentials error.

Source
current_time_provider=(current_time_provider : Proc(Time))
Source
refresh

Clear cache and reload credential from source.

Source