class Aws::Partitions::EndpointProvider

def endpoint_for(region, service, is_global_fn, variants)

def endpoint_for(region, service, is_global_fn, variants)
  if configured_variants?(variants)
    endpoint_with_variants_for(region, service, variants)
  else
    endpoint_no_variants_for(region, service, is_global_fn)
  end
end