我使用
Name
列出我的 Amazon EventBridge 计划的
list-schedules
:
aws scheduler list-schedules | jq '.Schedules[].Name'
它输出:
my-schedule
。为了再次检查,我在 AWS 网页上查看了我的计划名称:
get-schedule
时:
aws scheduler get-schedule --name my-schedule
我收到错误:
An error occurred (ResourceNotFoundException) when calling the GetSchedule operation: Schedule my-schedule does not exist.
如何使用 AWS CLI 检索有关特定计划的详细信息?
如果没有指定group-name参数,则使用“default”作为组名。确保此默认组与您的计划组名称一致。