是否可以为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
是