@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:41.821Z") @Stability(value=Experimental) public class Schedule extends software.amazon.jsii.JsiiObject
Example:
Schedule schedule = Schedule.rate(Duration.minutes(5));
| Modifier | Constructor and Description |
|---|---|
protected |
Schedule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Schedule(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static Schedule |
cron(CronOptions options)
(experimental) Create a schedule from a set of cron fields.
|
static Schedule |
expression(String expression)
(experimental) Construct a schedule from a literal schedule expression.
|
String |
getExpressionString()
(experimental) The Schedule expression.
|
static Schedule |
once()
(experimental) The canary will be executed once.
|
static Schedule |
rate(Duration interval)
(experimental) Construct a schedule from an interval.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Schedule(software.amazon.jsii.JsiiObjectRef objRef)
protected Schedule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) @NotNull public static Schedule cron(@NotNull CronOptions options)
options - This parameter is required.@Stability(value=Experimental) @NotNull public static Schedule expression(@NotNull String expression)
The expression must be in a rate(number units) format.
For example, Schedule.expression('rate(10 minutes)')
expression - The expression to use. This parameter is required.@Stability(value=Experimental) @NotNull public static Schedule once()
@Stability(value=Experimental) @NotNull public static Schedule rate(@NotNull Duration interval)
Allowed values: 0 (for a single run) or between 1 and 60 minutes.
To specify a single run, you can use Schedule.once().
interval - The interval at which to run the canary. This parameter is required.@Stability(value=Experimental) @NotNull public String getExpressionString()
Copyright © 2022. All rights reserved.