aws事件规则的参数?

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

是否可以为AWS :: Events :: Rule提供参数?让您拥有运行相同代码的不同计划规则,但您希望使用参数作为输入,以便您可以区分触发了哪个规则?

  ScheduledRule1:
    Type: AWS::Events::Rule
    Properties:
      Description: Scheduled Rule
      ScheduleExpression: "rate(5 minutes)"
      State: "ENABLED"
      Targets:
        - Id: "MyJob"
          Arn: !GetAtt MyJob.Arn

  ScheduledRule2:
    Type: AWS::Events::Rule
    Properties:
      Description: Scheduled Rule
      ScheduleExpression: "rate(60 minutes)"
      State: "ENABLED"
      Targets:
        - Id: "MyJob"
          Arn: !GetAtt MyJob.Arn
amazon-web-services events rules
1个回答
0
投票

© www.soinside.com 2019 - 2024. All rights reserved.