@@ -353,6 +353,23 @@ export interface IBucket extends IResource {
353
353
* @param filters Filters (see onEvent)
354
354
*/
355
355
addObjectRemovedNotification ( dest : IBucketNotificationDestination , ...filters : NotificationKeyFilter [ ] ) : void ;
356
+
357
+
358
+ /**
359
+ * Enables event bridge notification, causing all events below to be sent to EventBridge:
360
+ *
361
+ * - Object Deleted (DeleteObject)
362
+ * - Object Deleted (Lifecycle expiration)
363
+ * - Object Restore Initiated
364
+ * - Object Restore Completed
365
+ * - Object Restore Expired
366
+ * - Object Storage Class Changed
367
+ * - Object Access Tier Changed
368
+ * - Object ACL Updated
369
+ * - Object Tags Added
370
+ * - Object Tags Deleted
371
+ */
372
+ enableEventBridgeNotification ( ) : void ;
356
373
}
357
374
358
375
/**
@@ -874,7 +891,21 @@ export abstract class BucketBase extends Resource implements IBucket {
874
891
return this . addEventNotification ( EventType . OBJECT_REMOVED , dest , ...filters ) ;
875
892
}
876
893
877
- protected enableEventBridgeNotification ( ) {
894
+ /**
895
+ * Enables event bridge notification, causing all events below to be sent to EventBridge:
896
+ *
897
+ * - Object Deleted (DeleteObject)
898
+ * - Object Deleted (Lifecycle expiration)
899
+ * - Object Restore Initiated
900
+ * - Object Restore Completed
901
+ * - Object Restore Expired
902
+ * - Object Storage Class Changed
903
+ * - Object Access Tier Changed
904
+ * - Object ACL Updated
905
+ * - Object Tags Added
906
+ * - Object Tags Deleted
907
+ */
908
+ public enableEventBridgeNotification ( ) {
878
909
this . withNotifications ( notifications => notifications . enableEventBridgeNotification ( ) ) ;
879
910
}
880
911
0 commit comments