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 default_endpoint(partition, service, region)
        hostname_template = partition["defaults"]["hostname"]
        hostname_template.
          sub('{region}', region).
          sub('{service}', service).
          sub('{dnsSuffix}', partition["dnsSuffix"])
      end
def default_endpoint ( partition , service , region ) hostname_template = partition [ "defaults" ] [ "hostname" ] hostname_template . sub ( '{region}' , region ) . sub ( '{service}' , service ) . sub ( '{dnsSuffix}' , partition [ "dnsSuffix" ] ) end
Intentionally marked private.
Intentionally marked private .
partition
service
region
api
None