TimeWindow
- class aws_cdk.aws_scheduler_alpha.TimeWindow(*args: Any, **kwargs)
Bases:
object
(experimental) A time window during which EventBridge Scheduler invokes the schedule.
- Stability:
experimental
- ExampleMetadata:
infused
Example:
# target: targets.LambdaInvoke schedule = Schedule(self, "Schedule", schedule=ScheduleExpression.rate(Duration.hours(12)), target=target, time_window=TimeWindow.flexible(Duration.hours(10)) )
Attributes
- max_window
(experimental) The maximum time window during which the schedule can be invoked.
Must be between 1 to 1440 minutes.
- Default:
no value
- Stability:
experimental
- mode
(experimental) Determines whether the schedule is invoked within a flexible time window.
- Stability:
experimental
Static Methods
- classmethod flexible(max_window)
(experimental) TimeWindow is enabled.
- Parameters:
max_window (
Duration
) –- Stability:
experimental
- Return type:
- classmethod off()
(experimental) TimeWindow is disabled.
- Stability:
experimental
- Return type: