lib/plugins/aws/package/compile/events/apiGateway/lib/resources.js/getNodePaths
    function getNodePaths(result, node) {
      const r = result;
      r[node.path] = node;
      if (!node.name) {
        r[node.path].name = self.provider.naming.normalizePath(node.path);
      }

      node.children.forEach((child) => getNodePaths(result, child));
    }