Interface CronOptionsWithTimezone

All Superinterfaces:
CronOptions, software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CronOptionsWithTimezone.Jsii$Proxy

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:16.033Z") @Stability(Experimental) public interface CronOptionsWithTimezone extends software.amazon.jsii.JsiiSerializable, CronOptions
(experimental) Options to configure a cron expression.

All fields are strings so you can use complex expressions. Absence of a field implies '*' or '?', whichever one is appropriate.

Example:

 LambdaInvoke target;
 Schedule rateBasedSchedule = Schedule.Builder.create(this, "Schedule")
         .schedule(ScheduleExpression.rate(Duration.minutes(10)))
         .target(target)
         .description("This is a test rate-based schedule")
         .build();
 Schedule cronBasedSchedule = Schedule.Builder.create(this, "Schedule")
         .schedule(ScheduleExpression.cron(CronOptionsWithTimezone.builder()
                 .minute("0")
                 .hour("23")
                 .day("20")
                 .month("11")
                 .timeZone(TimeZone.AMERICA_NEW_YORK)
                 .build()))
         .target(target)
         .description("This is a test cron-based schedule that will run at 11:00 PM, on day 20 of the month, only in November in New York timezone")
         .build();
 

See Also: