class Aws::Sigv4::StaticCredentialsProvider

Users that wish to configure static credentials can use the `:access_key_id` and `:secret_access_key` constructor options. @api private

Attributes

credentials[R]

@return [Credentials]

Public Class Methods

new(options = {}) click to toggle source

@option options [Credentials] :credentials @option options [String] :access_key_id @option options [String] :secret_access_key @option options [String] :session_token (nil)

# File lib/aws-sigv4/credentials.rb, line 52
def initialize(options = {})
  @credentials = options[:credentials] ?
    options[:credentials] :
    Credentials.new(options)
end

Public Instance Methods

set?() click to toggle source

@return [Boolean]

# File lib/aws-sigv4/credentials.rb, line 62
def set?
  !!credentials && credentials.set?
end