class Aws::ECSCredentials
def initialize options = {}
(**options)
-
:http_debug_output
(IO
) -- HTTP wire -
:delay
(Numeric, Proc
) -- By default, failures are retried -
:http_read_timeout
(Float
) -- -
:http_open_timeout
(Float
) -- -
:credential_path
(String
) -- By default, the value of the -
:port
(Integer
) -- -
:ip_address
(String
) -- -
:retries
(Integer
) -- Number of times to retry
Parameters:
-
options
(Hash
) --
def initialize options = {} @retries = options[:retries] || 5 @ip_address = options[:ip_address] || '169.254.170.2' @port = options[:port] || 80 @credential_path = options[:credential_path] @credential_path ||= ENV['AWS_CONTAINER_CREDENTIALS_RELATIVE_URI'] unless @credential_path raise ArgumentError.new( "Cannot instantiate an ECS Credential Provider without a credential path." ) end @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]) super end