Skip to content
v2.278.0

AdBreakProperty Struct ​

Ad break configuration parameters.

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 adBreakProperty: mediatailor.CfnProgram.AdBreakProperty = {
  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,
    }],
  },
};
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

ad_break_property = 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
        )]
    )
)
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.*;

AdBreakProperty adBreakProperty = 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();
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 adBreakProperty = 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
        } }
    }
};
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"

adBreakProperty := &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),
			},
		},
	},
}

Properties ​

adBreakMetadataoptionalIResolvable | IResolvable | CfnProgram.KeyValuePairProperty[]ad_break_metadataoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, KeyValuePairProperty]]]adBreakMetadataoptionalIResolvableAdBreakMetadataoptionalIResolvableAdBreakMetadataoptionalinterface{} #
Defines a list of key/value pairs that MediaTailor generates within the EXT-X-ASSET tag for SCTE35_ENHANCED output.
messageTypeoptionalstringmessage_typeoptionalstrmessageTypeoptionalStringMessageTypeoptionalstringMessageTypeoptional*string #
The SCTE-35 ad insertion type.
offsetMillisnumberoffset_millisint | floatoffsetMillisNumberOffsetMillisdoubleOffsetMillis*float64 required #
How long (in milliseconds) after the beginning of the program that an ad starts.
slateoptionalIResolvable | CfnProgram.SlateSourcePropertyslateoptionaltyping.Union[IResolvable, SlateSourceProperty]slateoptionalIResolvableSlateoptionalIResolvableSlateoptionalinterface{} #
Slate VOD source configuration.
spliceInsertMessageoptionalIResolvable | CfnProgram.SpliceInsertMessagePropertysplice_insert_messageoptionaltyping.Union[IResolvable, SpliceInsertMessageProperty]spliceInsertMessageoptionalIResolvableSpliceInsertMessageoptionalIResolvableSpliceInsertMessageoptionalinterface{} #
Splice insert message configuration.
timeSignalMessageoptionalIResolvable | CfnProgram.TimeSignalMessagePropertytime_signal_messageoptionaltyping.Union[IResolvable, TimeSignalMessageProperty]timeSignalMessageoptionalIResolvableTimeSignalMessageoptionalIResolvableTimeSignalMessageoptionalinterface{} #
The SCTE-35 time_signal message configuration.