@scheduled

Define EventBridge schedule expressions with Lambda handler functions.

Syntax

  • name

    • Lowercase alphanumeric string
    • Maximum of 20 characters
    • Dashes are allowed; underscores are not allowed
    • Must begin with a letter
  • Interval

Example

These configuration examples show how to define scheduled functions:

arc
@app
myapp

@scheduled
daily-update-buddy rate(1 day)
friyay-only cron(0 15 ? * FRI *)
json
{
  "app": "myapp",
  "scheduled": {
    "daily-update-buddy": "rate(1 day)",
    "friyay-only": "cron(0 15 ? * FRI *)" }
}
toml
app="myapp"

[scheduled]
daily-update-buddy="rate(1 day)"
friyay-only="cron(0 15 ? * FRI *)"
yaml
app: myapp
scheduled:
  - daily-update-buddy: rate(1 day)
  - friyay-only: cron(0 15 ? * FRI *)

Which generates the following scaffolding:

/
├── src/
│   └── scheduled/
│       ├── daily-update-buddy/
│       └── friyay-only/
├── app.arc
└── package.json