Class: Aws::EndpointProvider Private

Inherits:
Object
  • Object
show all
Defined in:
lib/aws-sdk-core/endpoint_provider.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Constant Summary collapse

PATH =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

File.join(File.dirname(__FILE__), '..', '..', 'endpoints.json')
RULES =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Json.load_file(PATH)['endpoints']

Class Method Summary collapse

Class Method Details

.resolve(region, service) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



13
14
15
16
17
18
19
# File 'lib/aws-sdk-core/endpoint_provider.rb', line 13

def resolve(region, service)
  keys(region, service).each do |key|
    if match = RULES[key]
      return expand(match['endpoint'], region.to_s, service.to_s)
    end
  end
end