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

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:16.043Z") @Stability(Experimental) public class TimeWindow extends software.amazon.jsii.JsiiObject
(experimental) 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

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

    Modifier and Type
    Method
    Description
    static TimeWindow
    flexible(Duration maxWindow)
    (experimental) TimeWindow is enabled.
    (experimental) The maximum time window during which the schedule can be invoked.
    (experimental) Determines whether the schedule is invoked within a flexible time window.
    static TimeWindow
    off()
    (experimental) TimeWindow is disabled.

    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

    • TimeWindow

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

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

    • flexible

      @Stability(Experimental) @NotNull public static TimeWindow flexible(@NotNull Duration maxWindow)
      (experimental) TimeWindow is enabled.

      Parameters:
      maxWindow - This parameter is required.
    • off

      @Stability(Experimental) @NotNull public static TimeWindow off()
      (experimental) TimeWindow is disabled.
    • getMode

      @Stability(Experimental) @NotNull public String getMode()
      (experimental) Determines whether the schedule is invoked within a flexible time window.
    • getMaxWindow

      @Stability(Experimental) @Nullable public Duration getMaxWindow()
      (experimental) The maximum time window during which the schedule can be invoked.

      Must be between 1 to 1440 minutes.

      Default: - no value