Interface CronOptions

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

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

 Schedule schedule = Schedule.cron(CronOptions.builder()
         .hour("0,8,16")
         .build());
 

See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    A builder for CronOptions
    static final class 
    An implementation for CronOptions
  • Method Summary

    Modifier and Type
    Method
    Description
     
    default String
    (experimental) The day of the month to run this rule at.
    default String
    (experimental) The hour to run this rule at.
    default String
    (experimental) The minute to run this rule at.
    default String
    (experimental) The month to run this rule at.
    default String
    (experimental) The day of the week to run this rule at.

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Method Details

    • getDay

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

      Default: - Every day of the month

    • getHour

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

      Default: - Every hour

    • getMinute

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

      Default: - Every minute

    • getMonth

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

      Default: - Every month

    • getWeekDay

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

      Default: - Any day of the week

    • builder

      @Stability(Experimental) static CronOptions.Builder builder()
      Returns:
      a CronOptions.Builder of CronOptions