toEvent method
Implementation
Event toEvent() {
switch (this) {
case 's3:ReducedRedundancyLostObject':
return Event.s3ReducedRedundancyLostObject;
case 's3:ObjectCreated:*':
return Event.s3ObjectCreated;
case 's3:ObjectCreated:Put':
return Event.s3ObjectCreatedPut;
case 's3:ObjectCreated:Post':
return Event.s3ObjectCreatedPost;
case 's3:ObjectCreated:Copy':
return Event.s3ObjectCreatedCopy;
case 's3:ObjectCreated:CompleteMultipartUpload':
return Event.s3ObjectCreatedCompleteMultipartUpload;
case 's3:ObjectRemoved:*':
return Event.s3ObjectRemoved;
case 's3:ObjectRemoved:Delete':
return Event.s3ObjectRemovedDelete;
case 's3:ObjectRemoved:DeleteMarkerCreated':
return Event.s3ObjectRemovedDeleteMarkerCreated;
case 's3:ObjectRestore:*':
return Event.s3ObjectRestore;
case 's3:ObjectRestore:Post':
return Event.s3ObjectRestorePost;
case 's3:ObjectRestore:Completed':
return Event.s3ObjectRestoreCompleted;
case 's3:Replication:*':
return Event.s3Replication;
case 's3:Replication:OperationFailedReplication':
return Event.s3ReplicationOperationFailedReplication;
case 's3:Replication:OperationNotTracked':
return Event.s3ReplicationOperationNotTracked;
case 's3:Replication:OperationMissedThreshold':
return Event.s3ReplicationOperationMissedThreshold;
case 's3:Replication:OperationReplicatedAfterThreshold':
return Event.s3ReplicationOperationReplicatedAfterThreshold;
}
throw Exception('$this is not known in enum Event');
}