import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateProgramRequest, CreateProgramResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateProgramCommand}. */ export interface CreateProgramCommandInput extends CreateProgramRequest { } /** * @public * * The output of {@link CreateProgramCommand}. */ export interface CreateProgramCommandOutput extends CreateProgramResponse, __MetadataBearer { } declare const CreateProgramCommand_base: { new (input: CreateProgramCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateProgramCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates a program within a channel. For information about programs, see Working with programs in the MediaTailor User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { MediaTailorClient, CreateProgramCommand } from "@aws-sdk/client-mediatailor"; // ES Modules import * // const { MediaTailorClient, CreateProgramCommand } = require("@aws-sdk/client-mediatailor"); // CommonJS import * // import type { MediaTailorClientConfig } from "@aws-sdk/client-mediatailor"; * const config = {}; // type is MediaTailorClientConfig * const client = new MediaTailorClient(config); * const input = { // CreateProgramRequest * AdBreaks: [ // __listOfAdBreak * { // AdBreak * MessageType: "SPLICE_INSERT" || "TIME_SIGNAL", * OffsetMillis: Number("long"), // required * Slate: { // SlateSource * SourceLocationName: "STRING_VALUE", * VodSourceName: "STRING_VALUE", * }, * SpliceInsertMessage: { // SpliceInsertMessage * AvailNum: Number("int"), * AvailsExpected: Number("int"), * SpliceEventId: Number("int"), * UniqueProgramId: Number("int"), * }, * TimeSignalMessage: { // TimeSignalMessage * SegmentationDescriptors: [ // SegmentationDescriptorList * { // SegmentationDescriptor * SegmentationEventId: Number("int"), * SegmentationUpidType: Number("int"), * SegmentationUpid: "STRING_VALUE", * SegmentationTypeId: Number("int"), * SegmentNum: Number("int"), * SegmentsExpected: Number("int"), * SubSegmentNum: Number("int"), * SubSegmentsExpected: Number("int"), * }, * ], * }, * AdBreakMetadata: [ // AdBreakMetadataList * { // KeyValuePair * Key: "STRING_VALUE", // required * Value: "STRING_VALUE", // required * }, * ], * }, * ], * ChannelName: "STRING_VALUE", // required * LiveSourceName: "STRING_VALUE", * ProgramName: "STRING_VALUE", // required * ScheduleConfiguration: { // ScheduleConfiguration * Transition: { // Transition * DurationMillis: Number("long"), * RelativePosition: "BEFORE_PROGRAM" || "AFTER_PROGRAM", // required * RelativeProgram: "STRING_VALUE", * ScheduledStartTimeMillis: Number("long"), * Type: "STRING_VALUE", // required * }, * ClipRange: { // ClipRange * EndOffsetMillis: Number("long"), * StartOffsetMillis: Number("long"), * }, * }, * SourceLocationName: "STRING_VALUE", // required * VodSourceName: "STRING_VALUE", * AudienceMedia: [ // __listOfAudienceMedia * { // AudienceMedia * Audience: "STRING_VALUE", * AlternateMedia: [ // __listOfAlternateMedia * { // AlternateMedia * SourceLocationName: "STRING_VALUE", * LiveSourceName: "STRING_VALUE", * VodSourceName: "STRING_VALUE", * ClipRange: { * EndOffsetMillis: Number("long"), * StartOffsetMillis: Number("long"), * }, * ScheduledStartTimeMillis: Number("long"), * AdBreaks: [ * { * MessageType: "SPLICE_INSERT" || "TIME_SIGNAL", * OffsetMillis: Number("long"), // required * Slate: { * SourceLocationName: "STRING_VALUE", * VodSourceName: "STRING_VALUE", * }, * SpliceInsertMessage: { * AvailNum: Number("int"), * AvailsExpected: Number("int"), * SpliceEventId: Number("int"), * UniqueProgramId: Number("int"), * }, * TimeSignalMessage: { * SegmentationDescriptors: [ * { * SegmentationEventId: Number("int"), * SegmentationUpidType: Number("int"), * SegmentationUpid: "STRING_VALUE", * SegmentationTypeId: Number("int"), * SegmentNum: Number("int"), * SegmentsExpected: Number("int"), * SubSegmentNum: Number("int"), * SubSegmentsExpected: Number("int"), * }, * ], * }, * AdBreakMetadata: [ * { * Key: "STRING_VALUE", // required * Value: "STRING_VALUE", // required * }, * ], * }, * ], * DurationMillis: Number("long"), * }, * ], * }, * ], * Tags: { // __mapOf__string * "": "STRING_VALUE", * }, * }; * const command = new CreateProgramCommand(input); * const response = await client.send(command); * // { // CreateProgramResponse * // AdBreaks: [ // __listOfAdBreak * // { // AdBreak * // MessageType: "SPLICE_INSERT" || "TIME_SIGNAL", * // OffsetMillis: Number("long"), // required * // Slate: { // SlateSource * // SourceLocationName: "STRING_VALUE", * // VodSourceName: "STRING_VALUE", * // }, * // SpliceInsertMessage: { // SpliceInsertMessage * // AvailNum: Number("int"), * // AvailsExpected: Number("int"), * // SpliceEventId: Number("int"), * // UniqueProgramId: Number("int"), * // }, * // TimeSignalMessage: { // TimeSignalMessage * // SegmentationDescriptors: [ // SegmentationDescriptorList * // { // SegmentationDescriptor * // SegmentationEventId: Number("int"), * // SegmentationUpidType: Number("int"), * // SegmentationUpid: "STRING_VALUE", * // SegmentationTypeId: Number("int"), * // SegmentNum: Number("int"), * // SegmentsExpected: Number("int"), * // SubSegmentNum: Number("int"), * // SubSegmentsExpected: Number("int"), * // }, * // ], * // }, * // AdBreakMetadata: [ // AdBreakMetadataList * // { // KeyValuePair * // Key: "STRING_VALUE", // required * // Value: "STRING_VALUE", // required * // }, * // ], * // }, * // ], * // Arn: "STRING_VALUE", * // ChannelName: "STRING_VALUE", * // CreationTime: new Date("TIMESTAMP"), * // LiveSourceName: "STRING_VALUE", * // ProgramName: "STRING_VALUE", * // ScheduledStartTime: new Date("TIMESTAMP"), * // SourceLocationName: "STRING_VALUE", * // VodSourceName: "STRING_VALUE", * // ClipRange: { // ClipRange * // EndOffsetMillis: Number("long"), * // StartOffsetMillis: Number("long"), * // }, * // DurationMillis: Number("long"), * // AudienceMedia: [ // __listOfAudienceMedia * // { // AudienceMedia * // Audience: "STRING_VALUE", * // AlternateMedia: [ // __listOfAlternateMedia * // { // AlternateMedia * // SourceLocationName: "STRING_VALUE", * // LiveSourceName: "STRING_VALUE", * // VodSourceName: "STRING_VALUE", * // ClipRange: { * // EndOffsetMillis: Number("long"), * // StartOffsetMillis: Number("long"), * // }, * // ScheduledStartTimeMillis: Number("long"), * // AdBreaks: [ * // { * // MessageType: "SPLICE_INSERT" || "TIME_SIGNAL", * // OffsetMillis: Number("long"), // required * // Slate: { * // SourceLocationName: "STRING_VALUE", * // VodSourceName: "STRING_VALUE", * // }, * // SpliceInsertMessage: { * // AvailNum: Number("int"), * // AvailsExpected: Number("int"), * // SpliceEventId: Number("int"), * // UniqueProgramId: Number("int"), * // }, * // TimeSignalMessage: { * // SegmentationDescriptors: [ * // { * // SegmentationEventId: Number("int"), * // SegmentationUpidType: Number("int"), * // SegmentationUpid: "STRING_VALUE", * // SegmentationTypeId: Number("int"), * // SegmentNum: Number("int"), * // SegmentsExpected: Number("int"), * // SubSegmentNum: Number("int"), * // SubSegmentsExpected: Number("int"), * // }, * // ], * // }, * // AdBreakMetadata: [ * // { * // Key: "STRING_VALUE", // required * // Value: "STRING_VALUE", // required * // }, * // ], * // }, * // ], * // DurationMillis: Number("long"), * // }, * // ], * // }, * // ], * // Tags: { // __mapOf__string * // "": "STRING_VALUE", * // }, * // }; * * ``` * * @param CreateProgramCommandInput - {@link CreateProgramCommandInput} * @returns {@link CreateProgramCommandOutput} * @see {@link CreateProgramCommandInput} for command's `input` shape. * @see {@link CreateProgramCommandOutput} for command's `response` shape. * @see {@link MediaTailorClientResolvedConfig | config} for MediaTailorClient's `config` shape. * * @throws {@link MediaTailorServiceException} *

Base exception class for all service exceptions from MediaTailor service.

* * * @public */ export declare class CreateProgramCommand extends CreateProgramCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateProgramRequest; output: CreateProgramResponse; }; sdk: { input: CreateProgramCommandInput; output: CreateProgramCommandOutput; }; }; }