Skip to content

Schedule

Source: src/AWS/Scheduler/Schedule.ts

An EventBridge Scheduler schedule.

Schedule is the canonical time-based delivery primitive. High-level helpers like every, cron, and at can synthesize the target role and scheduler target configuration on top of this resource.

const schedule = yield* Schedule("HourlyJob", {
scheduleExpression: "rate(1 hour)",
target: {
Arn: fn.functionArn,
RoleArn: role.roleArn,
},
flexibleTimeWindow: {
Mode: "OFF",
},
});