# CfnProgramProps

Properties for defining a `CfnProgram`.

Extends: CfnProgramProps
Used as props by: CfnProgram

- 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 cfnProgramProps: mediatailor.CfnProgramProps = {
  channelName: 'channelName',
  programName: 'programName',
  sourceLocationName: 'sourceLocationName',

  // the properties below are optional
  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,
      }],
    },
  }],
  audienceMedia: [{
    alternateMedia: [{
      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',
    }],
    audience: 'audience',
  }],
  liveSourceName: 'liveSourceName',
  scheduleConfiguration: {
    transition: {
      relativePosition: 'relativePosition',
      type: 'type',

      // the properties below are optional
      durationMillis: 123,
      relativeProgram: 'relativeProgram',
      scheduledStartTimeMillis: 123,
    },

    // the properties below are optional
    clipRange: {
      endOffsetMillis: 123,
      startOffsetMillis: 123,
    },
  },
  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)[] — The ad break configuration settings.

- `audienceMedia`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnProgram.AudienceMediaProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_mediatailor.CfnProgram.AudienceMediaProperty.html)[] — The list of AudienceMedia defined in program.

- `channelName`: string (required) — The name of the channel for this Program.

- `liveSourceName`: string — The name of the LiveSource for this Program.

- `programName`: string (required) — The name of the Program.

- `scheduleConfiguration`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnProgram.ScheduleConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_mediatailor.CfnProgram.ScheduleConfigurationProperty.html) — Schedule configuration parameters.

- `sourceLocationName`: string (required) — The name of the source location.

- `vodSourceName`: string — The name that's used to refer to a VOD source.
