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
12 13 14 |
# File 'lib/aws/pws/credential_provider.rb', line 12 def initialize @client = AWS::PWS::Client.new end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
10 11 12 |
# File 'lib/aws/pws/credential_provider.rb', line 10 def client @client end |
Instance Method Details
#get_credentials ⇒ Object
rubocop:disable AccessorMethodName
17 18 19 20 21 22 |
# File 'lib/aws/pws/credential_provider.rb', line 17 def get_credentials { access_key_id: client.read('AWS_ACCESS_KEY_ID'), secret_access_key: client.read('AWS_SECRET_ACCESS_KEY') } end |