ListSchedules
Source:
src/AWS/Scheduler/ListSchedules.ts
Runtime binding for scheduler:ListSchedules.
Pairs with CreateSchedule for the dynamic-scheduling pattern: a
deployed Lambda enumerates the schedules it minted at runtime (sweep
pending reminders, count outstanding one-shots). Listing is always scoped
to the bound ScheduleGroup — or the default group when none is given.
Note: IAM evaluates scheduler:ListSchedules against the account-wide
schedule/*/* pattern (not the group), so the binding grants on that
pattern while the request’s GroupName filter keeps results group-scoped.
Listing Schedules At Runtime
Section titled “Listing Schedules At Runtime”Sweep Pending Reminders
const listSchedules = yield* AWS.Scheduler.ListSchedules();
// runtime: enumerate this app's runtime-minted remindersconst page = yield* listSchedules({ NamePrefix: "reminder-" });for (const schedule of page.Schedules) { console.log(schedule.Name, schedule.State);}Scope Listing To A Schedule Group
const listSchedules = yield* AWS.Scheduler.ListSchedules(group);