Skip to content

Commit 73da7f8

Browse files
committed
Add description to eventbus rules
1 parent c8bd0de commit 73da7f8

2 files changed

Lines changed: 6 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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ export class LiveActivities extends GuStack {
253253
detailType: ['channel-create', 'channel-delete'],
254254
},
255255
targets: [new LambdaFunction(channelLambda)],
256+
description: "Route channel create/delete events from football to channel manager lambda",
256257
});
257258

258259
new Rule(this, 'BroadcastRule', {
@@ -262,6 +263,7 @@ export class LiveActivities extends GuStack {
262263
detailType: ['broadcast-update', 'broadcast-end'],
263264
},
264265
targets: [new LambdaFunction(broadcastLambda)],
266+
description: "Route broadcast update/end events from football to broadcast lambda",
265267
});
266268

267269
new Rule(this, 'InitialBroadcastRule', {
@@ -271,6 +273,7 @@ export class LiveActivities extends GuStack {
271273
detailType: ['broadcast-update'],
272274
},
273275
targets: [new LambdaFunction(broadcastLambda)],
276+
description: "Route initial broadcast update event from channel manager to broadcast lambda",
274277
});
275278
}
276279
}

0 commit comments

Comments
 (0)