Class: Aws::InstanceProfileCredentials

Inherits:
Credentials show all
Defined in:
aws-sdk-core/lib/aws-sdk-core/instance_profile_credentials.rb

Instance Attribute Summary collapse

Attributes inherited from Credentials

#access_key_id, #secret_access_key, #session_token

Instance Method Summary collapse

Methods inherited from Credentials

#set?

Constructor Details

#initialize(options = {}) ⇒ InstanceProfileCredentials

Returns a new instance of InstanceProfileCredentials

Options Hash (options):

  • :retries (Integer) — default: 0

    Number of times to retry when retrieving credentials.

  • :ip_address (String) — default: '169.254.169.254'
  • :port (Integer) — default: 80
  • :http_open_timeout (Float) — default: 1
  • :http_read_timeout (Float) — default: 1
  • :http_debug_output (IO) — default: nil

    HTTP wire traces are sent to this object. You can specify something like $stdout.


37
38
39
40
41
42
43
44
45
# File 'aws-sdk-core/lib/aws-sdk-core/instance_profile_credentials.rb', line 37

def initialize options = {}
  @retries = options[:retries] || 0
  @ip_address = options[:ip_address] || '169.254.169.254'
  @port = options[:port] || 80
  @http_open_timeout = options[:http_open_timeout] || 1
  @http_read_timeout = options[:http_read_timeout] || 1
  @http_debug_output = options[:http_debug_output]
  super
end

Instance Attribute Details

#retriesInteger (readonly)


49
50
51
# File 'aws-sdk-core/lib/aws-sdk-core/instance_profile_credentials.rb', line 49

def retries
  @retries
end