Class: Aws::Sigv2::StaticCredentialsProvider
- Inherits:
-
Object
- Object
- Aws::Sigv2::StaticCredentialsProvider
- Defined in:
- lib/aws-sigv2/credentials.rb
Overview
The default credential provider class.
StaticCredentialsProvider.new({
access_key_id: 'akid',
secret_access_key: 'secret',
})
Instance Attribute Summary collapse
- #credentials ⇒ Credentials readonly
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ StaticCredentialsProvider
constructor
A new instance of StaticCredentialsProvider.
Constructor Details
#initialize(options = {}) ⇒ StaticCredentialsProvider
Returns a new instance of StaticCredentialsProvider.
45 46 47 48 49 |
# File 'lib/aws-sigv2/credentials.rb', line 45 def initialize( = {}) @credentials = [:credentials] ? [:credentials] : Credentials.new() end |
Instance Attribute Details
#credentials ⇒ Credentials (readonly)
52 53 54 |
# File 'lib/aws-sigv2/credentials.rb', line 52 def credentials @credentials end |