Class: AwsAssumeRole::Credentials::Factories::Static

Inherits:
AbstractFactory show all
Defined in:
lib/aws_assume_role/credentials/factories/static.rb

Constant Summary

Constants included from AwsAssumeRole::Credentials::Factories

Types

Constants included from AwsAssumeRole

AwsAssumeRole::Config, DefaultProvider, VERSION

Instance Attribute Summary

Attributes inherited from AbstractFactory

#credentials, #profile, #region, #role_arn

Instance Method Summary collapse

Methods inherited from AbstractFactory

priority, register_if_complete, type

Methods included from Logging

included

Methods included from AwsAssumeRole

shared_config

Constructor Details

#initialize(options = {}) ⇒ Static

Returns a new instance of Static.


7
8
9
10
11
12
13
14
15
# File 'lib/aws_assume_role/credentials/factories/static.rb', line 7

def initialize(options = {})
    @credentials = Aws::Credentials.new(
        options[:access_key_id],
        options[:secret_access_key],
        options[:session_token],
    )
    @region = options[:region]
    @profile = options[:profile]
end