Sha256: 6d14a2cd8dd90f693a874d9b70d56224a808b884d6f12ec4bd857fc08dcc6ead

Contents?: true

Size: 479 Bytes

Versions: 5

Compression:

Stored size: 479 Bytes

Contents

require_relative "abstract_factory"

class AwsAssumeRole::Credentials::Factories::Static < AwsAssumeRole::Credentials::Factories::AbstractFactory
    type :credential_provider
    priority 0

    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
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
aws_assume_role-0.2.2 lib/aws_assume_role/credentials/factories/static.rb
aws_assume_role-0.2.0 lib/aws_assume_role/credentials/factories/static.rb
aws_assume_role-0.1.2 lib/aws_assume_role/credentials/factories/static.rb
aws_assume_role-0.1.1 lib/aws_assume_role/credentials/factories/static.rb
aws_assume_role-0.1.0 lib/aws_assume_role/credentials/factories/static.rb