@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
- A valid
rate
orcron
expression (more info here)
- A valid
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
```toml
app="myapp"
[scheduled] daily-update-buddy="rate(1 day)" friyay-only="cron(0 15 ? * FRI *)"
</div>
</arc-tab>
<arc-tab label=yaml>
<h5>yaml</h5>
<div slot=content>
```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