JmesPath 查找不存在的地方

JmesPath find where not exists

以下 JmesPath 表达式查找已标记为团队的实例:

"Instances[?Tags[?Key=='team']]"

您知道如何查找未标记团队的实例吗?

我试过:

"Instances[?!Tags[?Key=='team']]"
-> !Tags[?Key=='team']]: event not found
"Instances[?null==Tags[?Key=='team']]"
-> []  <-- wrong answer
"Instances[?!not_null(Tags[?Key=='team'])]"
-> !not_null: event not found

非常感谢!

示例输入:

{ "Instances":
  [ { "id": "i-911"
    , "Tags":
      [ {"Key":"owner", "Value":"Edu"}
      , {"Key":"team", "Value":"forensics"}
      ]
    , "many other keys": "stuff"
    }
  , { "id": "i-999"
    , "Tags":
      [ {"Key":"owner", "Value":"Edu"}
      , {"Key":"note", "Value":"No team!"}
      ]
    , "many other keys": "stuff"
    }
  ]
}

已解决:括号内为答案:

"Instances[?!(Tags[?Key=='team'])]"