Module: Aws::CredentialProvider
- Extended by:
- Deprecations
- Defined in:
- lib/aws-sdk-core/credential_provider.rb
Instance Attribute Summary collapse
- #credentials ⇒ Credentials readonly
Instance Method Summary collapse
-
#access_key_id ⇒ Object
deprecated
Deprecated.
Deprecated in 2.1.0. This method is subject to errors from a race condition when called against refreshable credential objects. Will be removed in 2.2.0.
-
#secret_access_key ⇒ Object
deprecated
Deprecated.
Deprecated in 2.1.0. This method is subject to errors from a race condition when called against refreshable credential objects. Will be removed in 2.2.0.
-
#session_token ⇒ Object
deprecated
Deprecated.
Deprecated in 2.1.0. This method is subject to errors from a race condition when called against refreshable credential objects. Will be removed in 2.2.0.
- #set? ⇒ Boolean
Methods included from Deprecations
Instance Attribute Details
#credentials ⇒ Credentials (readonly)
7 8 9 |
# File 'lib/aws-sdk-core/credential_provider.rb', line 7 def credentials @credentials end |
Instance Method Details
#access_key_id ⇒ Object
Deprecated in 2.1.0. This method is subject to errors from a race condition when called against refreshable credential objects. Will be removed in 2.2.0.
18 19 20 |
# File 'lib/aws-sdk-core/credential_provider.rb', line 18 def access_key_id credentials ? credentials.access_key_id : nil end |
#secret_access_key ⇒ Object
Deprecated in 2.1.0. This method is subject to errors from a race condition when called against refreshable credential objects. Will be removed in 2.2.0.
27 28 29 |
# File 'lib/aws-sdk-core/credential_provider.rb', line 27 def secret_access_key credentials ? credentials.secret_access_key : nil end |
#session_token ⇒ Object
Deprecated in 2.1.0. This method is subject to errors from a race condition when called against refreshable credential objects. Will be removed in 2.2.0.
36 37 38 |
# File 'lib/aws-sdk-core/credential_provider.rb', line 36 def session_token credentials ? credentials.session_token : nil end |
#set? ⇒ Boolean
10 11 12 |
# File 'lib/aws-sdk-core/credential_provider.rb', line 10 def set? !!credentials && credentials.set? end |