@events
Define SNS topics with Lambda handler functions.
Syntax
- Name
- Lowercase alphanumeric string
- Maximum of 50 characters
- Dashes are allowed; underscores are not allowed
- Must begin with a letter
Example
These configuration examples show how to define events:
arc
@app
myapp
@events
hit-counter
likes
json
{
"app": "myapp",
"events": [
"hit-counter",
"likes"
]
}
toml
app="myapp"
events=[
"hit-counter",
"likes"
]
yaml
---
app: "myapp"
events:
- hit-counter
- likes
Which generates the following scaffolding:
/
├── events
│ ├── hit-counter/
│ └── likes/
├── app.arc
└── package.json