func GetAllUnservicedAppMeshNodes(meshname *string, svc *appmesh.Client) []string {
	routes := GetAllAppMeshPaths(meshname, svc)
	nodes := getAllAppMeshNodes(meshname, svc)
	var nodelist []string
	var pathlist []string
	var dangling []string
	for _, node := range nodes {
		nodelist = append(nodelist, aws.ToString(node.VirtualNodeName))
	}
	for _, route := range routes {
		for _, path := range route.VirtualServiceRoutes {
			pathlist = append(pathlist, path.DestinationNode)
		}
	}
	for _, node := range nodelist {
		if !stringInSlice(node, pathlist) {
			dangling = append(dangling, node)
		}
	}
	return dangling
}
// GetAllUnservicedAppMeshNodes returns a slice of nodes that don't serve as the backend for any service
GetAllUnservicedAppMeshNodes returns a slice of nodes that don't serve as the backend for any service
// GetAllUnservicedAppMeshNodes returns a slice of nodes that don ' t serve as the backend for any service
func GetAllUnservicedAppMeshNodes(meshname *string, svc *appmesh.Client) []string {
	routes := GetAllAppMeshPaths(meshname, svc)
	nodes := getAllAppMeshNodes(meshname, svc)
	var nodelist []string
	var pathlist []string
	var dangling []string
	for _, node := range nodes {
		nodelist = append(nodelist, aws.ToString(node.VirtualNodeName))
	}
	for _, route := range routes {
		for _, path := range route.VirtualServiceRoutes {
			pathlist = append(pathlist, path.DestinationNode)
		}
	}
	for _, node := range nodelist {
		if !stringInSlice(node, pathlist) {
			dangling = append(dangling, node)
		}
	}
	return dangling
}
func GetAllUnservicedAppMeshNodes ( meshname * string , svc * appmesh . Client ) [ ] string { routes := GetAllAppMeshPaths ( meshname , svc ) nodes := getAllAppMeshNodes ( meshname , svc ) var nodelist [ ] string var pathlist [ ] string var dangling [ ] string for _ , node := range nodes { nodelist = append ( nodelist , aws . ToString ( node . VirtualNodeName ) ) } for _ , route := range routes { for _ , path := range route . VirtualServiceRoutes { pathlist = append ( pathlist , path . DestinationNode ) } } for _ , node := range nodelist { if ! stringInSlice ( node , pathlist ) { dangling = append ( dangling , node ) } } return dangling }
GetAllUnservicedAppMeshNodes returns a slice of nodes that don't serve as the backend for any service
GetAllUnservicedAppMeshNodes returns a slice of nodes that don ' t serve as the backend for any service