Option 2: Send events for specific channels to an email address - MediaLive

Option 2: Send events for specific channels to an email address

You can set up a rule to send all events for one or several channels or multiplexes to one email address. You must perform this setup in each Region where channels or multiplexes are running.

Create as many subscriptions and rules combinations as you need. Follow the steps for option 1, with these differences:

  • When creating the SNS subscription, you might want to add more detail to the topic, for example, MediaLive_notifications_channel_1234567.

  • When creating the CloudWatch rule, you create an event pattern that identifies aws.medialive as the event source and the ARN for the specific channel or multiplex as the resource within that event source. For example, for a channel create this pattern:

    { "source": [ "aws.medialive" ], "resources": [ "arn:aws:medialive:us-west-2:111122223333:channel:1234567" ] }

The resource is the ARN for the channel or multiplex. You can obtain this ARN from the channels list or multiplexes list on the MediaLive console.

The rule for this example says, "When CloudWatch receives any event from aws.medialive for channel 1234567, invoke the specified SNS topic." In other words, the rule triggers an email that is sent to the subscribed email address.

You can choose to include more than one channel or multiplex in the resources section, as shown in the following example:

"resources": [ "arn:aws:medialive:us-west-2:111122223333:channel:1234567", "arn:aws:medialive:us-west-2:111122223333:channel:2223334" ]