# AlternateMediaProperty

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

- Source: Generated code
- Type last changed: v2.273.0 · 8 Oct 2026

## 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

- `adBreaks`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnProgram.AdBreakProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_mediatailor.CfnProgram.AdBreakProperty.html)[] — Ad break configuration parameters defined in AlternateMedia.

- `clipRange`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnProgram.ClipRangeProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_mediatailor.CfnProgram.ClipRangeProperty.html) — Clip range configuration for the VOD source associated with the program.

- `durationMillis`: number — The duration of the alternateMedia in milliseconds.

- `liveSourceName`: string — The name of the live source for alternateMedia.

- `scheduledStartTimeMillis`: number — The date and time that the alternateMedia is scheduled to start, in epoch milliseconds.

- `sourceLocationName`: string — The name of the source location for alternateMedia.

- `vodSourceName`: string — The name of the VOD source for alternateMedia.
