Class: Aws::CredentialProviderChain Private
- Inherits:
-
Object
- Object
- Aws::CredentialProviderChain
- 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
-
#initialize(config = nil) ⇒ CredentialProviderChain
constructor
private
A new instance of CredentialProviderChain.
- #resolve ⇒ CredentialProvider? private
Constructor Details
#initialize(config = nil) ⇒ 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 = nil) @config = config end |
Instance Method Details
#resolve ⇒ CredentialProvider?
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.
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, | provider = send(method_name, .merge(config: @config)) return provider if provider && provider.set? end nil end |