Add notification for object access via GET/HEAD (#3941)

The following notification event types are available for all targets,
      s3:ObjectAccessed:Get
      s3:ObjectAccessed:Head
      s3:ObjectAccessed:*
This commit is contained in:
Krishnan Parthasarathi
2017-03-21 23:02:17 +05:30
committed by Harshavardhana
parent 181e002c56
commit 13c4ce3617
4 changed files with 28 additions and 0 deletions
+3
View File
@@ -29,6 +29,9 @@ var suppportedEventTypes = map[string]struct{}{
// Object removed event types.
"s3:ObjectRemoved:*": {},
"s3:ObjectRemoved:Delete": {},
"s3:ObjectAccessed:Get": {},
"s3:ObjectAccessed:Head": {},
"s3:ObjectAccessed:*": {},
}
// checkEvent - checks if an event is supported.