Class TimeWindow
(experimental) A time window during which EventBridge Scheduler invokes the schedule.
Inheritance
Namespace: Amazon.CDK.AWS.Scheduler.Alpha
Assembly: Amazon.CDK.AWS.Scheduler.Alpha.dll
Syntax (csharp)
public class TimeWindow : DeputyBase
Syntax (vb)
Public Class TimeWindow
Inherits DeputyBase
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
LambdaInvoke target;
var schedule = new Schedule(this, "Schedule", new ScheduleProps {
Schedule = ScheduleExpression.Rate(Duration.Hours(12)),
Target = target,
TimeWindow = TimeWindow.Flexible(Duration.Hours(10))
});
Synopsis
Constructors
TimeWindow(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
TimeWindow(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
MaxWindow | (experimental) The maximum time window during which the schedule can be invoked. |
Mode | (experimental) Determines whether the schedule is invoked within a flexible time window. |
Methods
Flexible(Duration) | (experimental) TimeWindow is enabled. |
Off() | (experimental) TimeWindow is disabled. |
Constructors
TimeWindow(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected TimeWindow(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
TimeWindow(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected TimeWindow(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
MaxWindow
(experimental) The maximum time window during which the schedule can be invoked.
public virtual Duration MaxWindow { get; }
Property Value
Remarks
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.
public virtual string Mode { get; }
Property Value
System.String
Remarks
Stability: Experimental
Methods
Flexible(Duration)
(experimental) TimeWindow is enabled.
public static TimeWindow Flexible(Duration maxWindow)
Parameters
- maxWindow Duration
Returns
Remarks
Stability: Experimental
Off()
(experimental) TimeWindow is disabled.
public static TimeWindow Off()
Returns
Remarks
Stability: Experimental