Module | AWS::Core::CredentialProviders::Provider |
In: |
lib/aws/core/credential_providers.rb
|
This module is mixed into the various credential provider classes. It provides a unified interface for getting credentials and refreshing them.
KEYS | = | Set[:access_key_id, :secret_access_key, :session_token] | The list of possible keys in the hash returned by {credentials}. |
@return [Hash] Returns a hash of credentials containg at least
the `:access_key_id` and `:secret_access_key`. The hash may also contain a `:session_token`.
@raise [Errors::MissingCredentialsError] Raised when the
`:access_key_id` or the `:secret_access_key` can not be found.
Clears out cached/memoized credentials. Causes the provider to refetch credentials from the source. @return [nil]
@return [String,nil] Returns the AWS session token or nil if these
are not session credentials.
@raise (see credentials)
This method is called on a credential provider to fetch credentials. The credentials hash returned from this method will be cashed until the client calls {refresh}. @return [Hash]