Skip to content

Commit

Permalink
Add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
thantos committed Mar 9, 2021
1 parent fafad70 commit 69e5eff
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/@aws-cdk/aws-events/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,18 @@ onCommitRule.addTarget(new targets.SnsTopic(topic, {
}));
```

Or using an Object:

```ts
onCommitRule.addTarget(new targets.SnsTopic(topic, {
message: events.RuleTargetInput.fromObject(
{
DataType: `custom_${events.EventField.fromPath('$.detail-type')}`
}
)
}));
```

## Scheduling

You can configure a Rule to run on a schedule (cron or rate).
Expand Down

0 comments on commit 69e5eff

Please sign in to comment.