Scheduler: Option to delete schedules after completion. #27455
Labels
@aws-cdk/aws-scheduler
Related to the AWS Scheduler service
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
needs-cfn
This issue is waiting on changes to CloudFormation before it can be addressed.
p2
Describe the feature
Add a property to the
createSchedule
andupdateSchedule
functions that allows for schedules to be deleted after completion.This is already an option through the web console and the CLI [AWS docs]
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
andUpdateScheduleInput
objects:ActionAfterCompletion
property with value'DELETE' | 'NONE'
Acknowledgements
CDK version used
2.100.0
Environment details (OS name and version, etc.)
Node 18
The text was updated successfully, but these errors were encountered: