Regex 如何在Cloudwatch事件上使用正则表达式

Regex 如何在Cloudwatch事件上使用正则表达式,regex,amazon-web-services,events,filter,amazon-cloudwatch,Regex,Amazon Web Services,Events,Filter,Amazon Cloudwatch,在Cloudwatch事件中,我们可以编写关于源代码、详细信息等的过滤规则 如下图所示 DefaultEventsRule: Type: AWS::Events::Rule Properties: Name: "CloudWatchRule1" Description: "Match events and send them to corresponding queue for delivery."

在Cloudwatch事件中,我们可以编写关于源代码、详细信息等的过滤规则 如下图所示

  DefaultEventsRule:
    Type: AWS::Events::Rule
    Properties:
      Name: "CloudWatchRule1"
      Description: "Match events and send them to corresponding queue for delivery."
      EventPattern:
        {
          "source": ["xyz"],
          "resources":
              ...
是否可以对该
源代码执行正则表达式操作?
看起来不可能在事件上编写正则表达式;还有另外一个问题,所以问一个类似的问题(对于<代码>目的地),解决方法是使用单独的规则,似乎这也是源代码的唯一方法


Ref:

目前不支持正则表达式。您最多可以将
复杂过滤器
EventBridge
见详情

还可以看到这个问题的答案,这对我很有帮助

希望AWS的家伙们将来能添加
RegEx匹配