Interface CronOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
CronOptionsWithTimezone
- All Known Implementing Classes:
CronOptions.Jsii$Proxy
,CronOptionsWithTimezone.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:02.015Z")
@Stability(Stable)
public interface CronOptions
extends software.amazon.jsii.JsiiSerializable
Options to configure a cron expression.
All fields are strings so you can use complex expressions. Absence of a field implies '*' or '?', whichever one is appropriate.
Example:
import software.amazon.awscdk.services.events.*; import software.amazon.awscdk.services.events.targets.*; 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));
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCronOptions
static final class
An implementation forCronOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic CronOptions.Builder
builder()
default String
getDay()
The day of the month to run this rule at.default String
getHour()
The hour to run this rule at.default String
The minute to run this rule at.default String
getMonth()
The month to run this rule at.default String
The day of the week to run this rule at.default String
getYear()
The year to run this rule at.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDay
The day of the month to run this rule at.Default: - Every day of the month
-
getHour
The hour to run this rule at.Default: - Every hour
-
getMinute
The minute to run this rule at.Default: - Every minute
-
getMonth
The month to run this rule at.Default: - Every month
-
getWeekDay
The day of the week to run this rule at.Default: - Any day of the week
-
getYear
The year to run this rule at.Default: - Every year
-
builder
- Returns:
- a
CronOptions.Builder
ofCronOptions
-