InstanceProfileCredentials — AWS SDK for Ruby V2 (original) (raw)

You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Inherits:

Object

Includes:

CredentialProvider

Defined in:

aws-sdk-core/lib/aws-sdk-core/instance_profile_credentials.rb

Instance Attribute Summary collapse

Attributes included from CredentialProvider

#credentials

Instance Method Summarycollapse

Methods included from CredentialProvider

#access_key_id, #secret_access_key, #session_token, #set?

Constructor Details

#initialize(options = {}) ⇒ InstanceProfileCredentials

Returns a new instance of InstanceProfileCredentials.

| 62 63 64 65 66 67 68 69 70 71 72 | # File 'aws-sdk-core/lib/aws-sdk-core/instance_profile_credentials.rb', line 62 def initialize options = {} @retries = options[:retries] || 5 @ip_address = options[:ip_address] | | '169.254.169.254' @port = options[:port] | | 80 @http_open_timeout = options[:http_open_timeout] | | 5 @http_read_timeout = options[:http_read_timeout] | | 5 @http_debug_output = options[:http_debug_output] @backoff = backoff(options[:backoff]) @token_ttl = options[:token_ttl] | | 21600 super end | | -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------- | -------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------- |

Instance Attribute Details

#retries ⇒ Integer

Returns Number of times to retry when retrieving credentials from the instance metadata service. Defaults to 0 when resolving from the default credential chain (CredentialProviderChain).

77 78 79 # File 'aws-sdk-core/lib/aws-sdk-core/instance_profile_credentials.rb', line 77 def retries @retries end