Search code examples
amazon-web-servicesaws-lambdaamazon-snsaws-media-convert

How to configure MediaConvert to trigger different events for different inputs?


I have configured MediaConvert to trigger a success event which is listened/handled by a lambda.

But I have different kinds of jobs for MediaConvert, which means, on success, based on the input, I would like to trigger different sns topics or lambdas.

Is it possible to trigger different success events(sns topics) based on the inputs?


Solution

  • When you start a MediaConvert job you can define a "userMetadata" object. This object could contain a key-value pair like "type": "SOME_INDETIFIER". Now you can set different EventBridge rules which act based on the "type".