Class: Aws::TokenProviderChain Private

Inherits:
Object
  • Object
show all
Defined in:
lib/aws-sdk-core/token_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 = nil) ⇒ TokenProviderChain

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 TokenProviderChain.



6
7
8
# File 'lib/aws-sdk-core/token_provider_chain.rb', line 6

def initialize(config = nil)
  @config = config
end

Instance Method Details

#resolveTokenProvider?

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:



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

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