'Is there a way to put a conditional in an aws event bridge input transformer?

Let's say something like:

{
  "InputPathsMap": {"instance1": "$.detail.instance1","instance2": "$.detail.instance2"},
  "InputTemplate": "<instance1 || instance2>"
}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source