Scheduler: Option to delete schedules after completion.
- Dominant language
- TypeScript
- Stars
- 12.9k
- Forks
- 4.6k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 83
Description
### Describe the feature
Add a property to the `createSchedule` and `updateSchedule` functions that allows for schedules to be deleted after completion.
This is already an option through the web console and the CLI [[AWS docs](https://docs.aws.amazon.com/scheduler/latest/UserGuide/managing-schedule-delete.html?icmpid=docs_console_unmapped#managing-schedule-automatic-deletion)]
### Use Case
Our Scheduler quota is being consumed by a lot of schedules that only trigger once but then hang around. We had to build something that deletes these schedules after they've completed which is extra infrastructure to maintain.
### Proposed Solution
In the `CreateScheduleInput` and `UpdateScheduleInput` objects:
* Add an `ActionAfterCompletion` property with value `'DELETE' | 'NONE'`
### Acknowledgements
- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change
### CDK version used
2.100.0
### Environment details (OS name and version, etc.)
Node 18
Contributor guide
Research direction
Start at the TypeScript definitions and implementations of createSchedule, updateSchedule, CreateScheduleInput, and UpdateScheduleInput. Trace how their properties reach AWS Scheduler, then verify that both functions accept DELETE and NONE and that the synthesized schedule configuration reflects the selected value.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, typescript
- Domain
- cloud, infrastructure
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100