@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:25.179Z") @Stability(value=Experimental) public abstract class Schedule extends software.amazon.jsii.JsiiObject
Example:
AutoScalingGroup autoScalingGroup;
autoScalingGroup.scaleOnSchedule("PrescaleInTheMorning", BasicScheduledActionProps.builder()
.schedule(Schedule.cron(CronOptions.builder().hour("8").minute("0").build()))
.minCapacity(20)
.build());
autoScalingGroup.scaleOnSchedule("AllowDownscalingAtNight", BasicScheduledActionProps.builder()
.schedule(Schedule.cron(CronOptions.builder().hour("20").minute("0").build()))
.minCapacity(1)
.build());
| 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.
|
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.http://crontab.org/@Stability(value=Experimental) @NotNull public abstract String getExpressionString()
Copyright © 2022. All rights reserved.