Sahan Amadoruge
11/01/2021, 2:27 PMconst bucket = new Bucket(this, "Bucket", {
notifications: [
{
function: "src/notification1.main",
notificationProps: {
events: [EventType.OBJECT_CREATED],
},
},
{
function: "src/notification2.main",
notificationProps: {
events: [EventType.OBJECT_CREATED],
},
},
],
});
Or what is the best way to call different functions on same event?thdxr
11/01/2021, 2:30 PMbucket.addNotification
I believethdxr
11/01/2021, 2:30 PMSahan Amadoruge
11/02/2021, 3:50 AMSahan Amadoruge
11/02/2021, 11:52 AMthdxr
11/02/2021, 12:02 PMSahan Amadoruge
11/02/2021, 12:46 PMthdxr
11/02/2021, 12:50 PMSahan Amadoruge
11/02/2021, 12:58 PMSahan Amadoruge
11/02/2021, 1:00 PMbucket.addNotifications(this, [
{
function: {
handler: "src/test-one.main",
},
notificationProps: {
events: [s3.EventType.OBJECT_CREATED],
},
},
{
function: {
handler: "src/test-two.main",
},
notificationProps: {
events: [s3.EventType.OBJECT_CREATED],
},
},
]);
Sahan Amadoruge
11/02/2021, 1:13 PMthdxr
11/02/2021, 2:32 PMthdxr
11/02/2021, 2:32 PMSahan Amadoruge
11/02/2021, 2:33 PMSahan Amadoruge
11/02/2021, 2:34 PMthdxr
11/02/2021, 2:35 PMFrank
Frank
Frank
Sahan Amadoruge
11/02/2021, 3:26 PM