(synthetics): add static cron method to schedule class #16402
Labels
@aws-cdk/aws-synthetics
Related to Amazon CloudWatch Synthetics
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
good first issue
Related to contributions. See CONTRIBUTING.md
p2
cron
expressions are now allowed on synthetic canaries. Similar to app-autoscaling and autoscaling and other modules, the synthetic Schedule class should support a staticcron
method that takes incronOptions
.I think we can (and should) talk about moving
Schedule
to core. I tried that in #9250 and perhaps we can revive that conversation.Use Case
Syntactic sugar and to offer the same user experience across modules.
Proposed Solution
Here's how its done in application autoscaling:
aws-cdk/packages/@aws-cdk/aws-applicationautoscaling/lib/schedule.ts
Lines 47 to 62 in 492d33b
Other
The current work around is to use
Schedule.expression('cron(* * * * *)')
.Related: #16392.
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: