CfnProgramProps Struct
Properties for defining a CfnProgram.
| Source | |
|---|---|
| Type last changed |
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',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_mediatailor as mediatailor
cfn_program_props = mediatailor.CfnProgramProps(
channel_name="channelName",
program_name="programName",
source_location_name="sourceLocationName",
# the properties below are optional
ad_breaks=[mediatailor.CfnProgram.AdBreakProperty(
offset_millis=123,
# the properties below are optional
ad_break_metadata=[mediatailor.CfnProgram.KeyValuePairProperty(
key="key",
value="value"
)],
message_type="messageType",
slate=mediatailor.CfnProgram.SlateSourceProperty(
source_location_name="sourceLocationName",
vod_source_name="vodSourceName"
),
splice_insert_message=mediatailor.CfnProgram.SpliceInsertMessageProperty(
avail_num=123,
avails_expected=123,
splice_event_id=123,
unique_program_id=123
),
time_signal_message=mediatailor.CfnProgram.TimeSignalMessageProperty(
segmentation_descriptors=[mediatailor.CfnProgram.SegmentationDescriptorProperty(
segmentation_event_id=123,
segmentation_type_id=123,
segmentation_upid="segmentationUpid",
segmentation_upid_type=123,
segment_num=123,
segments_expected=123,
sub_segment_num=123,
sub_segments_expected=123
)]
)
)],
audience_media=[mediatailor.CfnProgram.AudienceMediaProperty(
alternate_media=[mediatailor.CfnProgram.AlternateMediaProperty(
ad_breaks=[mediatailor.CfnProgram.AdBreakProperty(
offset_millis=123,
# the properties below are optional
ad_break_metadata=[mediatailor.CfnProgram.KeyValuePairProperty(
key="key",
value="value"
)],
message_type="messageType",
slate=mediatailor.CfnProgram.SlateSourceProperty(
source_location_name="sourceLocationName",
vod_source_name="vodSourceName"
),
splice_insert_message=mediatailor.CfnProgram.SpliceInsertMessageProperty(
avail_num=123,
avails_expected=123,
splice_event_id=123,
unique_program_id=123
),
time_signal_message=mediatailor.CfnProgram.TimeSignalMessageProperty(
segmentation_descriptors=[mediatailor.CfnProgram.SegmentationDescriptorProperty(
segmentation_event_id=123,
segmentation_type_id=123,
segmentation_upid="segmentationUpid",
segmentation_upid_type=123,
segment_num=123,
segments_expected=123,
sub_segment_num=123,
sub_segments_expected=123
)]
)
)],
clip_range=mediatailor.CfnProgram.ClipRangeProperty(
end_offset_millis=123,
start_offset_millis=123
),
duration_millis=123,
live_source_name="liveSourceName",
scheduled_start_time_millis=123,
source_location_name="sourceLocationName",
vod_source_name="vodSourceName"
)],
audience="audience"
)],
live_source_name="liveSourceName",
schedule_configuration=mediatailor.CfnProgram.ScheduleConfigurationProperty(
transition=mediatailor.CfnProgram.TransitionProperty(
relative_position="relativePosition",
type="type",
# the properties below are optional
duration_millis=123,
relative_program="relativeProgram",
scheduled_start_time_millis=123
),
# the properties below are optional
clip_range=mediatailor.CfnProgram.ClipRangeProperty(
end_offset_millis=123,
start_offset_millis=123
)
),
vod_source_name="vodSourceName"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.mediatailor.*;
CfnProgramProps cfnProgramProps = CfnProgramProps.builder()
.channelName("channelName")
.programName("programName")
.sourceLocationName("sourceLocationName")
// the properties below are optional
.adBreaks(List.of(AdBreakProperty.builder()
.offsetMillis(123)
// the properties below are optional
.adBreakMetadata(List.of(KeyValuePairProperty.builder()
.key("key")
.value("value")
.build()))
.messageType("messageType")
.slate(SlateSourceProperty.builder()
.sourceLocationName("sourceLocationName")
.vodSourceName("vodSourceName")
.build())
.spliceInsertMessage(SpliceInsertMessageProperty.builder()
.availNum(123)
.availsExpected(123)
.spliceEventId(123)
.uniqueProgramId(123)
.build())
.timeSignalMessage(TimeSignalMessageProperty.builder()
.segmentationDescriptors(List.of(SegmentationDescriptorProperty.builder()
.segmentationEventId(123)
.segmentationTypeId(123)
.segmentationUpid("segmentationUpid")
.segmentationUpidType(123)
.segmentNum(123)
.segmentsExpected(123)
.subSegmentNum(123)
.subSegmentsExpected(123)
.build()))
.build())
.build()))
.audienceMedia(List.of(AudienceMediaProperty.builder()
.alternateMedia(List.of(AlternateMediaProperty.builder()
.adBreaks(List.of(AdBreakProperty.builder()
.offsetMillis(123)
// the properties below are optional
.adBreakMetadata(List.of(KeyValuePairProperty.builder()
.key("key")
.value("value")
.build()))
.messageType("messageType")
.slate(SlateSourceProperty.builder()
.sourceLocationName("sourceLocationName")
.vodSourceName("vodSourceName")
.build())
.spliceInsertMessage(SpliceInsertMessageProperty.builder()
.availNum(123)
.availsExpected(123)
.spliceEventId(123)
.uniqueProgramId(123)
.build())
.timeSignalMessage(TimeSignalMessageProperty.builder()
.segmentationDescriptors(List.of(SegmentationDescriptorProperty.builder()
.segmentationEventId(123)
.segmentationTypeId(123)
.segmentationUpid("segmentationUpid")
.segmentationUpidType(123)
.segmentNum(123)
.segmentsExpected(123)
.subSegmentNum(123)
.subSegmentsExpected(123)
.build()))
.build())
.build()))
.clipRange(ClipRangeProperty.builder()
.endOffsetMillis(123)
.startOffsetMillis(123)
.build())
.durationMillis(123)
.liveSourceName("liveSourceName")
.scheduledStartTimeMillis(123)
.sourceLocationName("sourceLocationName")
.vodSourceName("vodSourceName")
.build()))
.audience("audience")
.build()))
.liveSourceName("liveSourceName")
.scheduleConfiguration(ScheduleConfigurationProperty.builder()
.transition(TransitionProperty.builder()
.relativePosition("relativePosition")
.type("type")
// the properties below are optional
.durationMillis(123)
.relativeProgram("relativeProgram")
.scheduledStartTimeMillis(123)
.build())
// the properties below are optional
.clipRange(ClipRangeProperty.builder()
.endOffsetMillis(123)
.startOffsetMillis(123)
.build())
.build())
.vodSourceName("vodSourceName")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaTailor;
var cfnProgramProps = new CfnProgramProps {
ChannelName = "channelName",
ProgramName = "programName",
SourceLocationName = "sourceLocationName",
// the properties below are optional
AdBreaks = new [] { new AdBreakProperty {
OffsetMillis = 123,
// the properties below are optional
AdBreakMetadata = new [] { new KeyValuePairProperty {
Key = "key",
Value = "value"
} },
MessageType = "messageType",
Slate = new SlateSourceProperty {
SourceLocationName = "sourceLocationName",
VodSourceName = "vodSourceName"
},
SpliceInsertMessage = new SpliceInsertMessageProperty {
AvailNum = 123,
AvailsExpected = 123,
SpliceEventId = 123,
UniqueProgramId = 123
},
TimeSignalMessage = new TimeSignalMessageProperty {
SegmentationDescriptors = new [] { new SegmentationDescriptorProperty {
SegmentationEventId = 123,
SegmentationTypeId = 123,
SegmentationUpid = "segmentationUpid",
SegmentationUpidType = 123,
SegmentNum = 123,
SegmentsExpected = 123,
SubSegmentNum = 123,
SubSegmentsExpected = 123
} }
}
} },
AudienceMedia = new [] { new AudienceMediaProperty {
AlternateMedia = new [] { new AlternateMediaProperty {
AdBreaks = new [] { new AdBreakProperty {
OffsetMillis = 123,
// the properties below are optional
AdBreakMetadata = new [] { new KeyValuePairProperty {
Key = "key",
Value = "value"
} },
MessageType = "messageType",
Slate = new SlateSourceProperty {
SourceLocationName = "sourceLocationName",
VodSourceName = "vodSourceName"
},
SpliceInsertMessage = new SpliceInsertMessageProperty {
AvailNum = 123,
AvailsExpected = 123,
SpliceEventId = 123,
UniqueProgramId = 123
},
TimeSignalMessage = new TimeSignalMessageProperty {
SegmentationDescriptors = new [] { new SegmentationDescriptorProperty {
SegmentationEventId = 123,
SegmentationTypeId = 123,
SegmentationUpid = "segmentationUpid",
SegmentationUpidType = 123,
SegmentNum = 123,
SegmentsExpected = 123,
SubSegmentNum = 123,
SubSegmentsExpected = 123
} }
}
} },
ClipRange = new ClipRangeProperty {
EndOffsetMillis = 123,
StartOffsetMillis = 123
},
DurationMillis = 123,
LiveSourceName = "liveSourceName",
ScheduledStartTimeMillis = 123,
SourceLocationName = "sourceLocationName",
VodSourceName = "vodSourceName"
} },
Audience = "audience"
} },
LiveSourceName = "liveSourceName",
ScheduleConfiguration = new ScheduleConfigurationProperty {
Transition = new TransitionProperty {
RelativePosition = "relativePosition",
Type = "type",
// the properties below are optional
DurationMillis = 123,
RelativeProgram = "relativeProgram",
ScheduledStartTimeMillis = 123
},
// the properties below are optional
ClipRange = new ClipRangeProperty {
EndOffsetMillis = 123,
StartOffsetMillis = 123
}
},
VodSourceName = "vodSourceName"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnProgramProps := &CfnProgramProps{
ChannelName: jsii.String("channelName"),
ProgramName: jsii.String("programName"),
SourceLocationName: jsii.String("sourceLocationName"),
// the properties below are optional
AdBreaks: []interface{}{
&AdBreakProperty{
OffsetMillis: jsii.Number(123),
// the properties below are optional
AdBreakMetadata: []interface{}{
&KeyValuePairProperty{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
MessageType: jsii.String("messageType"),
Slate: &SlateSourceProperty{
SourceLocationName: jsii.String("sourceLocationName"),
VodSourceName: jsii.String("vodSourceName"),
},
SpliceInsertMessage: &SpliceInsertMessageProperty{
AvailNum: jsii.Number(123),
AvailsExpected: jsii.Number(123),
SpliceEventId: jsii.Number(123),
UniqueProgramId: jsii.Number(123),
},
TimeSignalMessage: &TimeSignalMessageProperty{
SegmentationDescriptors: []interface{}{
&SegmentationDescriptorProperty{
SegmentationEventId: jsii.Number(123),
SegmentationTypeId: jsii.Number(123),
SegmentationUpid: jsii.String("segmentationUpid"),
SegmentationUpidType: jsii.Number(123),
SegmentNum: jsii.Number(123),
SegmentsExpected: jsii.Number(123),
SubSegmentNum: jsii.Number(123),
SubSegmentsExpected: jsii.Number(123),
},
},
},
},
},
AudienceMedia: []interface{}{
&AudienceMediaProperty{
AlternateMedia: []interface{}{
&AlternateMediaProperty{
AdBreaks: []interface{}{
&AdBreakProperty{
OffsetMillis: jsii.Number(123),
// the properties below are optional
AdBreakMetadata: []interface{}{
&KeyValuePairProperty{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
MessageType: jsii.String("messageType"),
Slate: &SlateSourceProperty{
SourceLocationName: jsii.String("sourceLocationName"),
VodSourceName: jsii.String("vodSourceName"),
},
SpliceInsertMessage: &SpliceInsertMessageProperty{
AvailNum: jsii.Number(123),
AvailsExpected: jsii.Number(123),
SpliceEventId: jsii.Number(123),
UniqueProgramId: jsii.Number(123),
},
TimeSignalMessage: &TimeSignalMessageProperty{
SegmentationDescriptors: []interface{}{
&SegmentationDescriptorProperty{
SegmentationEventId: jsii.Number(123),
SegmentationTypeId: jsii.Number(123),
SegmentationUpid: jsii.String("segmentationUpid"),
SegmentationUpidType: jsii.Number(123),
SegmentNum: jsii.Number(123),
SegmentsExpected: jsii.Number(123),
SubSegmentNum: jsii.Number(123),
SubSegmentsExpected: jsii.Number(123),
},
},
},
},
},
ClipRange: &ClipRangeProperty{
EndOffsetMillis: jsii.Number(123),
StartOffsetMillis: jsii.Number(123),
},
DurationMillis: jsii.Number(123),
LiveSourceName: jsii.String("liveSourceName"),
ScheduledStartTimeMillis: jsii.Number(123),
SourceLocationName: jsii.String("sourceLocationName"),
VodSourceName: jsii.String("vodSourceName"),
},
},
Audience: jsii.String("audience"),
},
},
LiveSourceName: jsii.String("liveSourceName"),
ScheduleConfiguration: &ScheduleConfigurationProperty{
Transition: &TransitionProperty{
RelativePosition: jsii.String("relativePosition"),
Type: jsii.String("type"),
// the properties below are optional
DurationMillis: jsii.Number(123),
RelativeProgram: jsii.String("relativeProgram"),
ScheduledStartTimeMillis: jsii.Number(123),
},
// the properties below are optional
ClipRange: &ClipRangeProperty{
EndOffsetMillis: jsii.Number(123),
StartOffsetMillis: jsii.Number(123),
},
},
VodSourceName: jsii.String("vodSourceName"),
}
Properties
adBreaksoptionalIResolvable | IResolvable | CfnProgram.AdBreakProperty[]ad_breaksoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AdBreakProperty]]]adBreaksoptionalIResolvableAdBreaksoptionalIResolvableAdBreaksoptionalinterface{} #The ad break configuration settings.
audienceMediaoptionalIResolvable | IResolvable | CfnProgram.AudienceMediaProperty[]audience_mediaoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AudienceMediaProperty]]]audienceMediaoptionalIResolvableAudienceMediaoptionalIResolvableAudienceMediaoptionalinterface{} #The list of AudienceMedia defined in program.
The name of the channel for this Program.
liveSourceNameoptionalstringlive_source_nameoptionalstrliveSourceNameoptionalStringLiveSourceNameoptionalstringLiveSourceNameoptional*string #The name of the LiveSource for this Program.
The name of the Program.
scheduleConfigurationoptionalIResolvable | CfnProgram.schedule_configurationoptionaltyping.Union[IResolvable, ScheduleConfigurationProperty]scheduleConfigurationoptionalIResolvableScheduleConfigurationoptionalIResolvableScheduleConfigurationoptionalinterface{} #Schedule configuration parameters.
sourceLocationNamestringsource_location_namestrsourceLocationNameStringSourceLocationNamestringSourceLocationName*string required #The name of the source location.
vodSourceNameoptionalstringvod_source_nameoptionalstrvodSourceNameoptionalStringVodSourceNameoptionalstringVodSourceNameoptional*string #The name that's used to refer to a VOD source.