Interface CronOptions

All Superinterfaces:
All Known Implementing Classes:

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:45.360Z") @Stability(Stable) public interface CronOptions extends
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.


 Function fn;
 Alias alias = fn.addAlias("prod");
 // Create AutoScaling target
 IScalableFunctionAttribute as = alias.addAutoScaling(AutoScalingOptions.builder().maxCapacity(50).build());
 // Configure Target Tracking
 // Configure Scheduled Scaling
 as.scaleOnSchedule("ScaleUpInTheMorning", ScalingSchedule.builder()

See Also:
  • Method Details

    • getDay

      @Stability(Stable) @Nullable default String getDay()
      The day of the month to run this rule at.

      Default: - Every day of the month

    • getHour

      @Stability(Stable) @Nullable default String getHour()
      The hour to run this rule at.

      Default: - Every hour

    • getMinute

      @Stability(Stable) @Nullable default String getMinute()
      The minute to run this rule at.

      Default: - Every minute

    • getMonth

      @Stability(Stable) @Nullable default String getMonth()
      The month to run this rule at.

      Default: - Every month

    • getWeekDay

      @Stability(Stable) @Nullable default String getWeekDay()
      The day of the week to run this rule at.

      Default: - Any day of the week

    • builder

      @Stability(Stable) static CronOptions.Builder builder()
      a CronOptions.Builder of CronOptions