Skip to content

Commit 48d6a0b

Browse files
authored
Merge pull request #1849 from guardian/vb/add-evenbus-rule-desc
Add description to eventbus rules
2 parents c8bd0de + 2a905b3 commit 48d6a0b

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

cdk/lib/__snapshots__/liveactivities.test.ts.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ exports[`The LiveActivities stack matches the snapshot for CODE 1`] = `
5252
},
5353
"BroadcastRule3D75643B": {
5454
"Properties": {
55+
"Description": "Route broadcast update/end events from football to broadcast lambda",
5556
"EventBusName": {
5657
"Ref": "EventsD32975C2",
5758
},
@@ -229,6 +230,7 @@ exports[`The LiveActivities stack matches the snapshot for CODE 1`] = `
229230
},
230231
"ChannelRule421C2920": {
231232
"Properties": {
233+
"Description": "Route channel create/delete events from football to channel manager lambda",
232234
"EventBusName": {
233235
"Ref": "EventsD32975C2",
234236
},
@@ -320,6 +322,7 @@ exports[`The LiveActivities stack matches the snapshot for CODE 1`] = `
320322
},
321323
"InitialBroadcastRule538D106F": {
322324
"Properties": {
325+
"Description": "Route initial broadcast update event from channel manager to broadcast lambda",
323326
"EventBusName": {
324327
"Ref": "EventsD32975C2",
325328
},

cdk/lib/liveactivities.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@ export class LiveActivities extends GuStack {
253253
detailType: ['channel-create', 'channel-delete'],
254254
},
255255
targets: [new LambdaFunction(channelLambda)],
256+
description:
257+
'Route channel create/delete events from football to channel manager lambda',
256258
});
257259

258260
new Rule(this, 'BroadcastRule', {
@@ -262,6 +264,8 @@ export class LiveActivities extends GuStack {
262264
detailType: ['broadcast-update', 'broadcast-end'],
263265
},
264266
targets: [new LambdaFunction(broadcastLambda)],
267+
description:
268+
'Route broadcast update/end events from football to broadcast lambda',
265269
});
266270

267271
new Rule(this, 'InitialBroadcastRule', {
@@ -271,6 +275,8 @@ export class LiveActivities extends GuStack {
271275
detailType: ['broadcast-update'],
272276
},
273277
targets: [new LambdaFunction(broadcastLambda)],
278+
description:
279+
'Route initial broadcast update event from channel manager to broadcast lambda',
274280
});
275281
}
276282
}

0 commit comments

Comments
 (0)