目标的 AWS EventBridge 输入路径无效

问题描述 投票:0回答:1

我正在配置 AWS EventBridge 输入转换器以从以下事件中提取

10.193.133.18

{
  "detail":{
    "attachments":[
      {
        "type":"serviceconnectdetail",
        "details":[
          {
            "name":"ContainerName",
            "value":"ecs-service-connect-1dmFs"
          }
        ]
      },
      {
        "type":"eni",
        "details":[
          {
            "name":"privateIPv4Address",
            "value":"10.193.133.18"
          }
        ]
      }
    ]
  }
}

输入路径:

{
  "privateIp": "$.detail.attachments[?(@.type == 'eni')].details[?(@.name == 'privateIPv4Address')].value"
}

模板:

{
  "privateIp": "<privateIp>"
}

输出:

{
  "privateIp": "10.193.133.18"
}

一切正常,直到我按下

Update rule
按钮。它显示错误消息:

InputPath for target Id8c917377-af84-4c9d-bb5f-xxxxxxx is invalid.

我是否错误配置了输入变压器?或者 AWS EventBridge 输入转换器不支持 JsonPath 过滤器表达式?

amazon-web-services aws-event-bridge
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.