Class: Aws::CredentialProviderChain Private

Inherits:
Object
  • Object
show all
Defined in:
lib/aws-sdk-core/credential_provider_chain.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ CredentialProviderChain

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of CredentialProviderChain.



5
6
7
# File 'lib/aws-sdk-core/credential_provider_chain.rb', line 5

def initialize(config)
  @config = config
end

Instance Method Details

#resolveCredentialProvider?

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:



10
11
12
13
14
15
16
# File 'lib/aws-sdk-core/credential_provider_chain.rb', line 10

def resolve
  providers.each do |method_name, options|
    provider = send(method_name, options.merge(config: @config))
    return provider if provider && provider.set?
  end
  nil
end