From 44a597a9f9f28b49dc8b4fa5333288236f4339fa Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Wed, 6 Oct 2021 09:24:12 -0700 Subject: [PATCH] allow removal of replica/ilm event-types (#3823) --- cmd/client-s3.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/client-s3.go b/cmd/client-s3.go index e5b6189d..5978ec6a 100644 --- a/cmd/client-s3.go +++ b/cmd/client-s3.go @@ -341,6 +341,11 @@ func (c *S3Client) RemoveNotificationConfig(ctx context.Context, arn string, eve eventsTyped = append(eventsTyped, notification.ObjectRemovedAll) case "get": eventsTyped = append(eventsTyped, notification.ObjectAccessedAll) + case "replica": + eventsTyped = append(eventsTyped, notification.EventType("s3:Replication:*")) + case "ilm": + eventsTyped = append(eventsTyped, notification.EventType("s3:ObjectRestore:*")) + eventsTyped = append(eventsTyped, notification.EventType("s3:ObjectTransition:*")) default: return errInvalidArgument().Trace(events...) }