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.

Methods

Constants

KEYS = Set[:access_key_id, :secret_access_key, :session_token]   The list of possible keys in the hash returned by {credentials}.

Public Instance methods

@return [String] Returns the AWS access key id. @raise (see 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] Returns the AWS secret access key. @raise (see credentials)

@return [String,nil] Returns the AWS session token or nil if these

  are not session credentials.

@raise (see credentials)

@return [Boolean] Returns true if has credentials and it contains

  at least the `:access_key_id` and `:secret_access_key`.

Protected Instance methods

This method is called on a credential provider to fetch credentials. The credentials hash returned from this method will be cached until the client calls {refresh}. @return [Hash]

[Validate]