allow removal of replica/ilm event-types (#3823)

This commit is contained in:
Harshavardhana
2021-10-06 09:24:12 -07:00
committed by GitHub
parent 55c6a1fccc
commit 44a597a9f9
+5
View File
@@ -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...)
}