class AWS::PWS::CredentialProvider

Attributes

client[R]

Public Class Methods

new() click to toggle source
# File lib/aws/pws/credential_provider.rb, line 12
def initialize
  @client = AWS::PWS::Client.new
end

Public Instance Methods

get_credentials() click to toggle source

rubocop:disable AccessorMethodName

# 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