Skip to content

Commit ab4fc5e

Browse files
committed
Add RDS sample event
1 parent 430dc81 commit ab4fc5e

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

doc_source/eventsources.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ JSON keys may vary in case between AWS event sources\.
1111
+ [Scheduled Event Sample Event](#eventsources-scheduled-event)
1212
+ [Amazon CloudWatch Logs Sample Event](#eventsources-cloudwatch-logs)
1313
+ [Amazon SNS Sample Event](#eventsources-sns)
14+
+ [Amazon RDS Sample Event](#eventsources-rds)
1415
+ [Amazon DynamoDB Update Sample Event](#eventsources-ddb-update)
1516
+ [Amazon Cognito Sync Trigger Sample Event](#eventsources-cognito-sync-trigger)
1617
+ [Amazon Kinesis Data Streams Sample Event](#eventsources-kinesis-streams)
@@ -211,6 +212,35 @@ JSON keys may vary in case between AWS event sources\.
211212
}
212213
```
213214

215+
**Amazon RDS Sample Event** <a name="eventsources-rds"></a>
216+
217+
```
218+
{
219+
"Records": [
220+
{
221+
"EventVersion": "1.0",
222+
"EventSubscriptionArn": eventsubscriptionarn,
223+
"EventSource": "aws:sns",
224+
"Sns": {
225+
"SignatureVersion": "1",
226+
"Timestamp": "1970-01-01T00:00:00.000Z",
227+
"Signature": "EXAMPLE",
228+
"SigningCertUrl": "EXAMPLE",
229+
"MessageId": "95df01b4-ee98-5cb9-9903-4c221d41eb5e",
230+
"Message": "{\"Event Source\":\"db-instance\",\"Event Time\":\"1970-01-01 00:00:00.000\",\"Identifier Link\":\"https://console.aws.amazon.com/rds/home?region=eu-west-1#dbinstance:id=dbinstanceid\",\"Source ID\":\"dbinstanceid\",\"Event ID\":\"http://docs.amazonwebservices.com/AmazonRDS/latest/UserGuide/USER_Events.html#RDS-EVENT-0002\",\"Event Message\":\"Finished DB Instance backup\"}",
231+
"MessageAttributes": {},
232+
"Type": "Notification",
233+
"UnsubscribeUrl": "EXAMPLE",
234+
"TopicArn": topicarn,
235+
"Subject": "RDS Notification Message"
236+
}
237+
}
238+
]
239+
}
240+
```
241+
242+
**Note** The first event send will not have (escaped) json in the `Message` key, but instead text like `This is a message to notify that RDS will attempt to send you event notifications of type db-instance to the topic topicarn`.
243+
214244
**Amazon DynamoDB Update Sample Event** <a name="eventsources-ddb-update"></a>
215245

216246
```

0 commit comments

Comments
 (0)