def get_endpoint(self, session, service_type=None, interface=None, region_name=None, service_name=None, **kwargs):
    return self.service_catalog.url_for(service_type=service_type, service_name=service_name, endpoint_type=interface, region_name=region_name)
def get_endpoint(self, session, service_type=None, interface=None, region_name=None, service_name=None, **kwargs):
    return self.service_catalog.url_for(service_type=service_type, service_name=service_name, endpoint_type=interface, region_name=region_name)