@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:09.063Z") @Stability(value=Experimental) public abstract class Schedule extends software.amazon.jsii.JsiiObject
Example:
import software.amazon.awscdk.core.*;
import software.amazon.awscdk.core.*;
Function fn;
Rule rule = Rule.Builder.create(this, "Schedule Rule")
.schedule(Schedule.cron(CronOptions.builder().minute("0").hour("4").build()))
.build();
rule.addTarget(new LambdaFunction(fn));
| Modifier | Constructor and Description |
|---|---|
protected |
Schedule() |
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.
|
abstract String |
getExpressionString()
(experimental) Retrieve the expression for this schedule.
|
static Schedule |
rate(Duration duration)
(experimental) Construct a schedule from an interval and a time unit.
|
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) protected Schedule()
@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)
expression - The expression to use. This parameter is required.@Stability(value=Experimental) @NotNull public static Schedule rate(@NotNull Duration duration)
duration - This parameter is required.@Stability(value=Experimental) @NotNull public abstract String getExpressionString()
Copyright © 2022. All rights reserved.