gpt4 book ai didi

amazon-web-services - CloudFormation 中 Eventbridge Scheduler 的重试策略

转载 作者:行者123 更新时间:2023-12-03 07:13:44 26 4
gpt4 key购买 nike

我正在尝试将重试策略实现到事件桥调度程序的 CloudFormation 中。根据documentation ,这似乎是可能的,但是,当我尝试以这种方式部署它时,出现错误

Properties validation failed for resource Scheduler with message: #: extraneous key [RetryPolicy] is not permitted

我尝试将重试策略 block 直接放入属性中:

  SchedulerSchedule:
Type: AWS::Scheduler::Schedule
Properties:
RetryPolicy:
MaximumEventAgeInSeconds: 3600
MaximumRetryAttempts: 3
...

有什么想法吗?

最佳答案

RetryPolicy 需要是 Target 的一部分,不是 Schedule 本身的顶级属性。

MyFirstSchedule:
Type: AWS::Scheduler::Schedule
Properties:
...
Target:
...
RetryPolicy:
MaximumEventAgeInSeconds: 3600
MaximumRetryAttempts: 3

关于amazon-web-services - CloudFormation 中 Eventbridge Scheduler 的重试策略,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/75812780/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com