Class Schedule
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.synthetics.alpha.Schedule
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.89.0 (build 2f74b3e)",
date="2023-10-16T19:21:20.002Z")
@Stability(Deprecated)
@Deprecated
public class Schedule
extends software.amazon.jsii.JsiiObject
Deprecated.
(deprecated) Schedule for canary runs.
Example:
Canary canary = Canary.Builder.create(this, "MyCanary")
.schedule(Schedule.rate(Duration.minutes(5)))
.test(Test.custom(CustomTestOptions.builder()
.code(Code.fromAsset(join(__dirname, "canary")))
.handler("index.handler")
.build()))
.runtime(Runtime.SYNTHETICS_NODEJS_PUPPETEER_4_0)
.environmentVariables(Map.of(
"stage", "prod"))
.build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Schedulecron(CronOptions options) Deprecated.static Scheduleexpression(String expression) Deprecated.Deprecated.static Scheduleonce()Deprecated.static ScheduleDeprecated.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Schedule
protected Schedule(software.amazon.jsii.JsiiObjectRef objRef) Deprecated. -
Schedule
protected Schedule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) Deprecated.
-
-
Method Details
-
cron
@Stability(Deprecated) @Deprecated @NotNull public static Schedule cron(@NotNull CronOptions options) Deprecated.(deprecated) Create a schedule from a set of cron fields.- Parameters:
options- This parameter is required.
-
expression
@Stability(Deprecated) @Deprecated @NotNull public static Schedule expression(@NotNull String expression) Deprecated.(deprecated) Construct a schedule from a literal schedule expression.The expression must be in a
rate(number units)format. For example,Schedule.expression('rate(10 minutes)')- Parameters:
expression- The expression to use. This parameter is required.
-
once
Deprecated.(deprecated) The canary will be executed once. -
rate
Deprecated.(deprecated) Construct a schedule from an interval.Allowed values: 0 (for a single run) or between 1 and 60 minutes. To specify a single run, you can use
Schedule.once().- Parameters:
interval- The interval at which to run the canary. This parameter is required.
-
getExpressionString
Deprecated.(deprecated) The Schedule expression.
-