Skip to content
v2.275.0

AlternateMediaProperty Struct ​

A playlist of media to be played instead of the default media on a particular program.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_mediatailor as mediatailor } from 'aws-cdk-lib';
const alternateMediaProperty: mediatailor.CfnProgram.AlternateMediaProperty = {
  adBreaks: [{
    offsetMillis: 123,

    // the properties below are optional
    adBreakMetadata: [{
      key: 'key',
      value: 'value',
    }],
    messageType: 'messageType',
    slate: {
      sourceLocationName: 'sourceLocationName',
      vodSourceName: 'vodSourceName',
    },
    spliceInsertMessage: {
      availNum: 123,
      availsExpected: 123,
      spliceEventId: 123,
      uniqueProgramId: 123,
    },
    timeSignalMessage: {
      segmentationDescriptors: [{
        segmentationEventId: 123,
        segmentationTypeId: 123,
        segmentationUpid: 'segmentationUpid',
        segmentationUpidType: 123,
        segmentNum: 123,
        segmentsExpected: 123,
        subSegmentNum: 123,
        subSegmentsExpected: 123,
      }],
    },
  }],
  clipRange: {
    endOffsetMillis: 123,
    startOffsetMillis: 123,
  },
  durationMillis: 123,
  liveSourceName: 'liveSourceName',
  scheduledStartTimeMillis: 123,
  sourceLocationName: 'sourceLocationName',
  vodSourceName: 'vodSourceName',
};

Properties ​

adBreaksoptionalIResolvable | IResolvable | CfnProgram.AdBreakProperty[]ad_breaksoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AdBreakProperty]]]adBreaksoptionalIResolvableAdBreaksoptionalIResolvableAdBreaksoptionalinterface{}#
Ad break configuration parameters defined in AlternateMedia.
clipRangeoptionalIResolvable | CfnProgram.ClipRangePropertyclip_rangeoptionaltyping.Union[IResolvable, ClipRangeProperty]clipRangeoptionalIResolvableClipRangeoptionalIResolvableClipRangeoptionalinterface{}#
Clip range configuration for the VOD source associated with the program.
durationMillisoptionalnumberduration_millisoptionalint | floatdurationMillisoptionalNumberDurationMillisoptionaldoubleDurationMillisoptional*float64#
The duration of the alternateMedia in milliseconds.
liveSourceNameoptionalstringlive_source_nameoptionalstrliveSourceNameoptionalStringLiveSourceNameoptionalstringLiveSourceNameoptional*string#
The name of the live source for alternateMedia.
scheduledStartTimeMillisoptionalnumberscheduled_start_time_millisoptionalint | floatscheduledStartTimeMillisoptionalNumberScheduledStartTimeMillisoptionaldoubleScheduledStartTimeMillisoptional*float64#
The date and time that the alternateMedia is scheduled to start, in epoch milliseconds.
sourceLocationNameoptionalstringsource_location_nameoptionalstrsourceLocationNameoptionalStringSourceLocationNameoptionalstringSourceLocationNameoptional*string#
The name of the source location for alternateMedia.
vodSourceNameoptionalstringvod_source_nameoptionalstrvodSourceNameoptionalStringVodSourceNameoptionalstringVodSourceNameoptional*string#
The name of the VOD source for alternateMedia.