gems/aws-partitions/lib/aws-partitions/endpoint_provider.rb
# Intentionally marked private. The format of the endpoint rules
# is an implementation detail.
# @api private
Intentionally marked private. The format of the endpoint rules
is an implementation detail.
Intentionally marked private . The format of the endpoint rules is an implementation detail .
def partition_matching_region(region)
        @rules['partitions'].find do |p|
          region.match(p["regionRegex"]) ||
          p['services'].values.find { |svc| svc['endpoints'].key?(region) if svc.key? 'endpoints' }
        end
      end
def partition_matching_region ( region ) @rules [ 'partitions' ] . find do | p | region . match ( p [ "regionRegex" ] ) || p [ 'services' ] . values . find { | svc | svc [ 'endpoints' ] . key? ( region ) if svc . key? 'endpoints' } end end
Intentionally marked private.
Intentionally marked private .
region
api
None