':type endpoint_data: dict
:param endpoint_data: Regions and endpoints data in the same format
as is used by botocore / boto3.
:type service_rename_map: dict
:param service_rename_map: A mapping of boto2 service name to
endpoint prefix.'

def __init__(self, endpoint_data, service_rename_map=None):

    super(_CompatEndpointResolver, self).__init__(endpoint_data)
    if (service_rename_map is None):
        service_rename_map = self._DEFAULT_SERVICE_RENAMES
    self._endpoint_prefix_map = service_rename_map
    self._service_name_map = dict(((v, k) for (k, v) in service_rename_map.items()))
