[英]ValidationException: Parameter ScheduleExpression is not valid
My cron syntax is我的 cron 语法是
cron(25 8 10 2 4 2022)计划(25 8 10 2 4 2022)
And I wish to run the job exactly once on Thursday February 10 at 8:25 am.我希望在 2 月 10 日星期四上午 8:25 恰好运行一次该作业。 But getting the above error when trying to run.但是在尝试运行时出现上述错误。
You can schedule lambda event using following syntax:您可以使用以下语法安排 lambda 事件:
# NOTE: This will execute on UTC mode only
cron(Minutes Hours Day-of-month Month Day-of-week Year)
So your cron expression should look like:所以你的 cron 表达式应该是这样的:
cron(25 08 10 02 ? 2022)
For more information, here is the official AWS Guide有关更多信息,请参阅官方 AWS 指南
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.