1 Answer
- Newest
- Most votes
- Most comments
1
It's because you can have only one sufix per event notification rule.
By doing this {suffix: '.wav, .mp3, .mp4,'} you are basically saying that you want to notify only objects that terminate with '.wav, .mp3, .mp4,' as a single suffix e.g. "myobject.wav, .mp3, .mp4," which is impossible.
To achieve what you want you will need to create 3 different event notification rules, one for each suffix:
audioTextBucket.addEventNotification( s3.EventType.OBJECT_CREATED_PUT, new s3n.LambdaDestination(functionLambda), {suffix: '.wav'} ); audioTextBucket.addEventNotification( s3.EventType.OBJECT_CREATED_PUT, new s3n.LambdaDestination(functionLambda), {suffix: '.mp3'} ); audioTextBucket.addEventNotification( s3.EventType.OBJECT_CREATED_PUT, new s3n.LambdaDestination(functionLambda), {suffix: '.mp4'} );
Hope this answers your question, let me know if I can still help somehow.
Relevant content
- asked 4 years ago
- asked 2 years ago