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-17T14:54:30.239Z")
@Stability(Deprecated)
@Deprecated
public class TriggerSchedule
extends software.amazon.jsii.JsiiObject
Deprecated.
(deprecated) 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
ConstructorsModifierConstructorDescriptionprotectedTriggerSchedule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) Deprecated.protectedTriggerSchedule(software.amazon.jsii.JsiiObjectRef objRef) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic TriggerSchedulecron(CronOptions options) Deprecated.static TriggerScheduledaily()Deprecated.static TriggerScheduleexpression(String expression) Deprecated.Deprecated.static TriggerScheduleweekly()Deprecated.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
TriggerSchedule
protected TriggerSchedule(software.amazon.jsii.JsiiObjectRef objRef) Deprecated. -
TriggerSchedule
protected TriggerSchedule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) Deprecated.
-
-
Method Details
-
cron
@Stability(Deprecated) @Deprecated @NotNull public static TriggerSchedule cron(@NotNull CronOptions options) Deprecated.(deprecated) 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
Deprecated.(deprecated) Creates a schedule that fires once a day, at midnight UTC.- Returns:
- A new TriggerSchedule instance.
-
expression
@Stability(Deprecated) @Deprecated @NotNull public static TriggerSchedule expression(@NotNull String expression) Deprecated.(deprecated) 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
Deprecated.(deprecated) Creates a schedule that fires once a week, at midnight UTC on Sunday.- Returns:
- A new TriggerSchedule instance.
-
getExpressionString
Deprecated.(deprecated) The expression string for the schedule.
-