AWS Elemental MediaLive
User Guide

JSON for an Input Switch Action

The JSON for an Input Switch Action

This JSON goes in the Creates section of the command body. This JSON body has the Pascal case (upper camel case) that applies to the AWS CLI.

{ "ChannelId": "string", "Creates": { "ScheduleActions": [ { "ScheduleActionStartSettings": { "FixedModeScheduleActionStartSettings": { "Time": "string" } }, "ActionName": "string", "ScheduleActionSettings": { "InputSwitchSettings": { "InputAttachmentNameReference": "string" } } } ] } }

Example

This example of a request switches to an input at a fixed time. The input is the input attachment with the name vod_ward_cars_ad. This name was given to the input when the input was set up as an input attachment in this channel.

This JSON body has the Pascal case (upper camel case) that applies to the AWS CLI.

{ "ChannelId": "string", "Creates": { "ScheduleActions": [ { "ScheduleActionStartSettings": { "FixedModeScheduleActionStartSettings": { "Time": "2018-05-21T20:42:19.000Z" } }, "ActionName": "ad_002", "ScheduleActionSettings": { "InputSwitchSettings": { "InputAttachmentNameReference": "vod_ward_cars_ad" } } } ] } }