@LEOS1 :
Refer to this post : [Workflow] Filter for attribute change only if two specific attributes are changing
Here are two possibility :
Solution 1 :
$[?(("location" in @.changes[*].attribute && "cloudLifecycleState" in @.changes[*].attribute))]
Solution 2 :
$[?($.changes[?(@.attribute == "location")] size 1)][?($.changes[?(@.attribute == "cloudLifecycleState")] size 1)]