Class: Aws::InstanceProfileCredentials
- Inherits:
-
Object
- Object
- Aws::InstanceProfileCredentials
- Includes:
- CredentialProvider
- Defined in:
- gems/aws-sdk-core/lib/aws-sdk-core/instance_profile_credentials.rb
Overview
Instance Attribute Summary collapse
-
#retries ⇒ Integer
readonly
Number of times to retry when retrieving credentials from the instance metadata service.
Attributes included from CredentialProvider
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ InstanceProfileCredentials
constructor
A new instance of InstanceProfileCredentials.
Methods included from CredentialProvider
Constructor Details
#initialize(options = {}) ⇒ InstanceProfileCredentials
Returns a new instance of InstanceProfileCredentials.
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'gems/aws-sdk-core/lib/aws-sdk-core/instance_profile_credentials.rb', line 77 def initialize( = {}) @retries = [:retries] || 1 endpoint_mode = resolve_endpoint_mode() @endpoint = resolve_endpoint(, endpoint_mode) @port = [:port] || 80 @disable_imds_v1 = resolve_disable_v1() # Flag for if v2 flow fails, skip future attempts @imds_v1_fallback = false @http_open_timeout = [:http_open_timeout] || 1 @http_read_timeout = [:http_read_timeout] || 1 @http_debug_output = [:http_debug_output] @backoff = backoff([:backoff]) @token_ttl = [:token_ttl] || 21_600 @token = nil @no_refresh_until = nil @async_refresh = false super end |
Instance Attribute Details
#retries ⇒ Integer (readonly)
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).
99 100 101 |
# File 'gems/aws-sdk-core/lib/aws-sdk-core/instance_profile_credentials.rb', line 99 def retries @retries end |