class Aws::Plugins::EndpointDiscovery

the background every 60 secs (default). Defaults to ‘false`.
When set to `true`, a thread polling for endpoints will be running in
@seahorse.client.option [Boolean] :active_endpoint_cache
requests fetching endpoints information. Defaults to 60 sec.
Use this option to config the time interval in seconds for making
When :endpoint_discovery and :active_endpoint_cache is enabled,
@seahorse.client.option [Integer] :endpoint_cache_poll_interval
defaults to 10.
Used for the maximum threads in use for polling endpoints to be cached,
@seahorse.client.option [Integer] :endpoint_cache_max_threads
for endpoint discovery enabled operations. Defaults to 1000.
Used for the maximum size limit of the LRU cache storing endpoints data
@seahorse.client.option [Integer] :endpoint_cache_max_entries
operations when available. Defaults to `false`.
set to `true`, endpoint discovery will be enabled for
@seahorse.client.option [Boolean] :endpoint_discovery When
Enables Endpoint Discovery per service when supported

def self.resolve_endpoint_discovery(cfg)

def self.resolve_endpoint_discovery(cfg)
  env = ENV['AWS_ENABLE_ENDPOINT_DISCOVERY']
  shared_cfg = Aws.shared_config.endpoint_discovery(profile: cfg.profile)
  self.str_2_bool(env) || self.str_2_bool(shared_cfg)
end

def self.str_2_bool(str)

def self.str_2_bool(str)
  case str.to_s
  when "true" then true
  when "false" then false
  else
    nil
  end
end

def add_handlers(handlers, config)

def add_handlers(handlers, config)
  handlers.add(Handler, priority: 90) if config.regional_endpoint
end