package s3notification // supportedEvents are the event names a configuration may list: the AWS names, // including those for things that never happen here (restore, replication, // tiering, transition) so a configuration written for AWS applies unchanged, // plus the multipart and retention events this server also emits. var supportedEvents = map[string]bool{ "s3:ObjectCreated:*": true, "s3:ObjectCreated:Put": true, "s3:ObjectCreated:Post": true, "s3:ObjectCreated:Copy": true, "s3:ObjectCreated:CompleteMultipartUpload": true, "s3:ObjectRemoved:*": true, "s3:ObjectRemoved:Delete": true, "s3:ObjectRemoved:DeleteMarkerCreated": true, "s3:ObjectRestore:*": true, "s3:ObjectRestore:Post": true, "s3:ObjectRestore:Completed": true, "s3:ObjectRestore:Delete": true, "s3:ReducedRedundancyLostObject": true, "s3:Replication:*": true, "s3:Replication:OperationFailedReplication": true, "s3:Replication:OperationMissedThreshold": true, "s3:Replication:OperationReplicatedAfterThreshold": true, "s3:Replication:OperationNotTracked": true, "s3:LifecycleExpiration:*": true, "s3:LifecycleExpiration:Delete": true, "s3:LifecycleExpiration:DeleteMarkerCreated": true, "s3:LifecycleTransition": true, "s3:IntelligentTiering": true, "s3:ObjectTagging:*": true, "s3:ObjectTagging:Put": true, "s3:ObjectTagging:Delete": true, "s3:ObjectAcl:Put": true, "s3:ObjectRetention:Put": true, "s3:MultipartUpload:*": true, "s3:MultipartUpload:PartUploaded": true, "s3:MultipartUpload:PartCopied": true, "s3:MultipartUpload:Aborted": true, } // IsSupportedEvent reports whether name may appear in a configuration's Event list. func IsSupportedEvent(name string) bool { return supportedEvents[name] }