in src/util.js [58:78]
function parseNeptuneEndpoint(neptuneEndpoint) {
let endpointParts = neptuneEndpoint.split(':');
if (endpointParts.length !== 2) {
throw Error('Cannot parse neptune endpoint ' + neptuneEndpoint + ' because it is not in expected format of host:port');
}
const host = endpointParts[0];
const hostParts = splitHost(host);
const domain = getDomainFromHostParts(hostParts);
const neptuneType = domain.includes(NEPTUNE_GRAPH) ? NEPTUNE_GRAPH : NEPTUNE_DB;
const region = neptuneType === NEPTUNE_DB ? hostParts[2] : hostParts[1];
return {
port: endpointParts[1],
host: host,
domain: domain,
region: region,
graphName: hostParts[0],
neptuneType: neptuneType
};
}