Provides a read-only interface to the bundled endpoints.json file.
# File lib/aws/core/endpoints.rb, line 28 def endpoints @endpoints ||= begin JSON.parse(File.read(File.join(AWS::ROOT, 'endpoints.json'))) end end
# File lib/aws/core/endpoints.rb, line 21 def hostname(region, endpoint_prefix) region = endpoints["regions"][region] || {} endpoint = region[endpoint_prefix] || {} endpoint["hostname"] end
# File lib/aws/core/endpoints.rb, line 28 def endpoints @endpoints ||= begin JSON.parse(File.read(File.join(AWS::ROOT, 'endpoints.json'))) end end
# File lib/aws/core/endpoints.rb, line 21 def hostname(region, endpoint_prefix) region = endpoints["regions"][region] || {} endpoint = region[endpoint_prefix] || {} endpoint["hostname"] end