Class: AWS::PWS::CredentialProvider
- Inherits:
-
Object
- Object
- AWS::PWS::CredentialProvider
- Includes:
- Core::CredentialProviders::Provider
- Defined in:
- lib/aws/pws/credential_provider.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
-
#get_credentials ⇒ Object
rubocop:disable AccessorMethodName.
-
#initialize ⇒ CredentialProvider
constructor
A new instance of CredentialProvider.
Constructor Details
#initialize ⇒ CredentialProvider
Returns a new instance of CredentialProvider.
11 12 13 |
# File 'lib/aws/pws/credential_provider.rb', line 11 def initialize @client = AWS::PWS::Client.new end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
9 10 11 |
# File 'lib/aws/pws/credential_provider.rb', line 9 def client @client end |
Instance Method Details
#get_credentials ⇒ Object
rubocop:disable AccessorMethodName
16 17 18 19 20 21 |
# File 'lib/aws/pws/credential_provider.rb', line 16 def get_credentials { access_key_id: client.read('AWS_ACCESS_KEY_ID'), secret_access_key: client.read('AWS_SECRET_ACCESS_KEY') } end |