Class TriggerSchedule

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.glue.alpha.TriggerSchedule
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)", date="2026-09-10T17:52:11.346Z") @Stability(Experimental) public class TriggerSchedule extends software.amazon.jsii.JsiiObject
(experimental) Represents a trigger schedule.

Example:

 import software.amazon.awscdk.*;
 import software.amazon.awscdk.services.iam.*;
 Stack stack;
 IRole role;
 Code script;
 PySparkEtlJob job = PySparkEtlJob.Builder.create(stack, "Job").role(role).script(script).build();
 Workflow workflow = new Workflow(stack, "Workflow");
 workflow.addScheduledTrigger("WeeklyTrigger", ScheduledTriggerOptions.builder()
         .actions(List.of(Action.job(job)))
         .schedule(TriggerSchedule.weekly())
         .build());
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    TriggerSchedule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    TriggerSchedule(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    cron(CronOptions options)
    (experimental) Creates a new TriggerSchedule instance with a cron expression.
    (experimental) Creates a schedule that fires once a day, at midnight UTC.
    expression(String expression)
    (experimental) Creates a new TriggerSchedule instance with a custom expression.
    (experimental) The expression string for the schedule.
    (experimental) Creates a schedule that fires once a week, at midnight UTC on Sunday.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • TriggerSchedule

      protected TriggerSchedule(software.amazon.jsii.JsiiObjectRef objRef)
    • TriggerSchedule

      protected TriggerSchedule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
  • Method Details

    • cron

      @Stability(Experimental) @NotNull public static TriggerSchedule cron(@NotNull CronOptions options)
      (experimental) Creates a new TriggerSchedule instance with a cron expression.

      Parameters:
      options - The cron options for the schedule. This parameter is required.
      Returns:
      A new TriggerSchedule instance.
    • daily

      @Stability(Experimental) @NotNull public static TriggerSchedule daily()
      (experimental) Creates a schedule that fires once a day, at midnight UTC.

      Returns:
      A new TriggerSchedule instance.
    • expression

      @Stability(Experimental) @NotNull public static TriggerSchedule expression(@NotNull String expression)
      (experimental) Creates a new TriggerSchedule instance with a custom expression.

      Parameters:
      expression - The custom expression for the schedule. This parameter is required.
      Returns:
      A new TriggerSchedule instance.
    • weekly

      @Stability(Experimental) @NotNull public static TriggerSchedule weekly()
      (experimental) Creates a schedule that fires once a week, at midnight UTC on Sunday.

      Returns:
      A new TriggerSchedule instance.
    • getExpressionString

      @Stability(Experimental) @NotNull public String getExpressionString()
      (experimental) The expression string for the schedule.