class Aws::InstanceProfileCredentials
def initialize(options = {})
(**options)-
before_refresh(Callable) -- Proc called before -
:token_ttl(Integer) -- Time-to-Live in seconds for EC2 -
:http_debug_output(IO) -- HTTP wire -
:delay(Numeric, Proc) -- By default, failures are retried -
:http_read_timeout(Float) -- -
:http_open_timeout(Float) -- -
:port(Integer) -- -
:ip_address(String) -- Deprecated. Use -
:endpoint_mode(String) -- The endpoint mode for -
:endpoint(String) -- The IMDS -
:retries(Integer) -- Number of times to retry
Parameters:
-
options(Hash) --
def initialize(options = {}) @retries = options[:retries] || 1 endpoint_mode = resolve_endpoint_mode(options) @endpoint = resolve_endpoint(options, endpoint_mode) @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] @backoff = backoff(options[:backoff]) @token_ttl = options[:token_ttl] || 21_600 @token = nil @no_refresh_until = nil @async_refresh = false super end