class Aws::EndpointProvider
def partition_matching_region(region)
def partition_matching_region(region) @rules['partitions'].find do |p| region.match(p["regionRegex"]) || p['services'].values.find { |svc| svc['endpoints'].key?(region) } 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) } end end