Class TimeWindow
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.scheduler.TimeWindow
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-17T14:41:00.547Z")
@Stability(Stable)
public class TimeWindow
extends software.amazon.jsii.JsiiObject
A time window during which EventBridge Scheduler invokes the schedule.
Example:
LambdaInvoke target;
Schedule schedule = Schedule.Builder.create(this, "Schedule")
.schedule(ScheduleExpression.rate(Duration.hours(12)))
.target(target)
.timeWindow(TimeWindow.flexible(Duration.hours(10)))
.build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTimeWindow(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedTimeWindow(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic TimeWindowTimeWindow is enabled.The maximum time window during which the schedule can be invoked.getMode()Determines whether the schedule is invoked within a flexible time window.static TimeWindowoff()TimeWindow is disabled.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
-
TimeWindow
protected TimeWindow(software.amazon.jsii.JsiiObjectRef objRef) -
TimeWindow
protected TimeWindow(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
flexible
TimeWindow is enabled.- Parameters:
maxWindow- This parameter is required.
-
off
TimeWindow is disabled. -
getMode
Determines whether the schedule is invoked within a flexible time window. -
getMaxWindow
The maximum time window during which the schedule can be invoked.Must be between 1 to 1440 minutes.
Default: - no value
-