Skip to content
v2.278.0

Experimental

@aws-cdk/aws-medialive-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

MediaPackageV2OutputGroupBaseProps Struct ​

Common properties shared by the MediaPackage V2 output group variants.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as medialive_alpha from '@aws-cdk/aws-medialive-alpha';
import * as cdk from 'aws-cdk-lib';

declare const encodeConfiguration: medialive_alpha.EncodeConfiguration;
declare const id3Behavior: medialive_alpha.Id3Behavior;
declare const klvBehavior: medialive_alpha.KlvBehavior;
declare const mediaPackageV2Destination: medialive_alpha.MediaPackageV2Destination;
declare const mediaPackageV2HlsSetting: medialive_alpha.MediaPackageV2HlsSetting;
declare const nielsenId3Behavior: medialive_alpha.NielsenId3Behavior;
declare const scte35Type: medialive_alpha.Scte35Type;
declare const segment: medialive_alpha.Segment;
declare const timedMetadataId3Frame: medialive_alpha.TimedMetadataId3Frame;
declare const timedMetadataPassthrough: medialive_alpha.TimedMetadataPassthrough;
const mediaPackageV2OutputGroupBaseProps: medialive_alpha.MediaPackageV2OutputGroupBaseProps = {
  name: 'name',
  outputs: [{
    encode: encodeConfiguration,
    outputName: 'outputName',

    // the properties below are optional
    audioGroupId: 'audioGroupId',
    audioRenditionSets: 'audioRenditionSets',
    captions: [encodeConfiguration],
    hlsAutoSelect: mediaPackageV2HlsSetting,
    hlsDefault: mediaPackageV2HlsSetting,
  }],

  // the properties below are optional
  additionalDestinations: [mediaPackageV2Destination],
  captionLanguageMappings: [{
    captionChannel: 123,
    languageCode: 'languageCode',
    languageDescription: 'languageDescription',
  }],
  id3Behavior: id3Behavior,
  klvBehavior: klvBehavior,
  nielsenId3Behavior: nielsenId3Behavior,
  scte35Type: scte35Type,
  segment: segment,
  timedMetadataId3Frame: timedMetadataId3Frame,
  timedMetadataId3Period: cdk.Duration.minutes(30),
  timedMetadataPassthrough: timedMetadataPassthrough,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_medialive_alpha as medialive_alpha
import aws_cdk as cdk

# encode_configuration: medialive_alpha.EncodeConfiguration
# id3_behavior: medialive_alpha.Id3Behavior
# klv_behavior: medialive_alpha.KlvBehavior
# media_package_v2_destination: medialive_alpha.MediaPackageV2Destination
# media_package_v2_hls_setting: medialive_alpha.MediaPackageV2HlsSetting
# nielsen_id3_behavior: medialive_alpha.NielsenId3Behavior
# scte35_type: medialive_alpha.Scte35Type
# segment: medialive_alpha.Segment
# timed_metadata_id3_frame: medialive_alpha.TimedMetadataId3Frame
# timed_metadata_passthrough: medialive_alpha.TimedMetadataPassthrough

media_package_v2_output_group_base_props = medialive_alpha.MediaPackageV2OutputGroupBaseProps(
    name="name",
    outputs=[medialive_alpha.MediaPackageV2OutputDefinition(
        encode=encode_configuration,
        output_name="outputName",

        # the properties below are optional
        audio_group_id="audioGroupId",
        audio_rendition_sets="audioRenditionSets",
        captions=[encode_configuration],
        hls_auto_select=media_package_v2_hls_setting,
        hls_default=media_package_v2_hls_setting
    )],

    # the properties below are optional
    additional_destinations=[media_package_v2_destination],
    caption_language_mappings=[medialive_alpha.CaptionLanguageMapping(
        caption_channel=123,
        language_code="languageCode",
        language_description="languageDescription"
    )],
    id3_behavior=id3_behavior,
    klv_behavior=klv_behavior,
    nielsen_id3_behavior=nielsen_id3_behavior,
    scte35_type=scte35_type,
    segment=segment,
    timed_metadata_id3_frame=timed_metadata_id3_frame,
    timed_metadata_id3_period=cdk.Duration.minutes(30),
    timed_metadata_passthrough=timed_metadata_passthrough
)
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.medialive.alpha.*;
import software.amazon.awscdk.*;

EncodeConfiguration encodeConfiguration;
Id3Behavior id3Behavior;
KlvBehavior klvBehavior;
MediaPackageV2Destination mediaPackageV2Destination;
MediaPackageV2HlsSetting mediaPackageV2HlsSetting;
NielsenId3Behavior nielsenId3Behavior;
Scte35Type scte35Type;
Segment segment;
TimedMetadataId3Frame timedMetadataId3Frame;
TimedMetadataPassthrough timedMetadataPassthrough;

MediaPackageV2OutputGroupBaseProps mediaPackageV2OutputGroupBaseProps = MediaPackageV2OutputGroupBaseProps.builder()
        .name("name")
        .outputs(List.of(MediaPackageV2OutputDefinition.builder()
                .encode(encodeConfiguration)
                .outputName("outputName")

                // the properties below are optional
                .audioGroupId("audioGroupId")
                .audioRenditionSets("audioRenditionSets")
                .captions(List.of(encodeConfiguration))
                .hlsAutoSelect(mediaPackageV2HlsSetting)
                .hlsDefault(mediaPackageV2HlsSetting)
                .build()))

        // the properties below are optional
        .additionalDestinations(List.of(mediaPackageV2Destination))
        .captionLanguageMappings(List.of(CaptionLanguageMapping.builder()
                .captionChannel(123)
                .languageCode("languageCode")
                .languageDescription("languageDescription")
                .build()))
        .id3Behavior(id3Behavior)
        .klvBehavior(klvBehavior)
        .nielsenId3Behavior(nielsenId3Behavior)
        .scte35Type(scte35Type)
        .segment(segment)
        .timedMetadataId3Frame(timedMetadataId3Frame)
        .timedMetadataId3Period(Duration.minutes(30))
        .timedMetadataPassthrough(timedMetadataPassthrough)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaLive.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaLive.Alpha;
using Amazon.CDK;

EncodeConfiguration encodeConfiguration;
Id3Behavior id3Behavior;
KlvBehavior klvBehavior;
MediaPackageV2Destination mediaPackageV2Destination;
MediaPackageV2HlsSetting mediaPackageV2HlsSetting;
NielsenId3Behavior nielsenId3Behavior;
Scte35Type scte35Type;
Segment segment;
TimedMetadataId3Frame timedMetadataId3Frame;
TimedMetadataPassthrough timedMetadataPassthrough;

var mediaPackageV2OutputGroupBaseProps = new MediaPackageV2OutputGroupBaseProps {
    Name = "name",
    Outputs = new [] { new MediaPackageV2OutputDefinition {
        Encode = encodeConfiguration,
        OutputName = "outputName",

        // the properties below are optional
        AudioGroupId = "audioGroupId",
        AudioRenditionSets = "audioRenditionSets",
        Captions = new [] { encodeConfiguration },
        HlsAutoSelect = mediaPackageV2HlsSetting,
        HlsDefault = mediaPackageV2HlsSetting
    } },

    // the properties below are optional
    AdditionalDestinations = new [] { mediaPackageV2Destination },
    CaptionLanguageMappings = new [] { new CaptionLanguageMapping {
        CaptionChannel = 123,
        LanguageCode = "languageCode",
        LanguageDescription = "languageDescription"
    } },
    Id3Behavior = id3Behavior,
    KlvBehavior = klvBehavior,
    NielsenId3Behavior = nielsenId3Behavior,
    Scte35Type = scte35Type,
    Segment = segment,
    TimedMetadataId3Frame = timedMetadataId3Frame,
    TimedMetadataId3Period = Duration.Minutes(30),
    TimedMetadataPassthrough = timedMetadataPassthrough
};
go
// Install: go get github.com/aws/aws-cdk-go/awsmedialivealpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import medialive_alpha "github.com/aws/aws-cdk-go/awsmedialivealpha"
import cdk "github.com/aws/aws-cdk-go/awscdk"

var encodeConfiguration EncodeConfiguration
var id3Behavior Id3Behavior
var klvBehavior KlvBehavior
var mediaPackageV2Destination MediaPackageV2Destination
var mediaPackageV2HlsSetting MediaPackageV2HlsSetting
var nielsenId3Behavior NielsenId3Behavior
var scte35Type Scte35Type
var segment Segment
var timedMetadataId3Frame TimedMetadataId3Frame
var timedMetadataPassthrough TimedMetadataPassthrough

mediaPackageV2OutputGroupBaseProps := &MediaPackageV2OutputGroupBaseProps{
	Name: jsii.String("name"),
	Outputs: []MediaPackageV2OutputDefinition{
		&MediaPackageV2OutputDefinition{
			Encode: encodeConfiguration,
			OutputName: jsii.String("outputName"),

			// the properties below are optional
			AudioGroupId: jsii.String("audioGroupId"),
			AudioRenditionSets: jsii.String("audioRenditionSets"),
			Captions: []EncodeConfiguration{
				encodeConfiguration,
			},
			HlsAutoSelect: mediaPackageV2HlsSetting,
			HlsDefault: mediaPackageV2HlsSetting,
		},
	},

	// the properties below are optional
	AdditionalDestinations: []MediaPackageV2Destination{
		mediaPackageV2Destination,
	},
	CaptionLanguageMappings: []CaptionLanguageMapping{
		&CaptionLanguageMapping{
			CaptionChannel: jsii.Number(123),
			LanguageCode: jsii.String("languageCode"),
			LanguageDescription: jsii.String("languageDescription"),
		},
	},
	Id3Behavior: id3Behavior,
	KlvBehavior: klvBehavior,
	NielsenId3Behavior: nielsenId3Behavior,
	Scte35Type: scte35Type,
	Segment: segment,
	TimedMetadataId3Frame: timedMetadataId3Frame,
	TimedMetadataId3Period: cdk.Duration_Minutes(jsii.Number(30)),
	TimedMetadataPassthrough: timedMetadataPassthrough,
}

Properties ​

additionalDestinationsoptionalMediaPackageV2Destination[]additional_destinationsoptionaltyping.List[MediaPackageV2Destination]additionalDestinationsoptionalList<MediaPackageV2Destination>AdditionalDestinationsoptionalMediaPackageV2Destination[]AdditionalDestinationsoptional*[]MediaPackageV2Destination #
Configure additional destinations to fan out the output to extra MediaPackage V2 channels, for example for cross-region delivery or backup packaging.

Default: no additional destinations

These correspond to Destination 3/4 in the AWS console. Each additional destination is a single, explicit entry (channel + endpoint), independent of the channel class.

captionLanguageMappingsoptionalCaptionLanguageMapping[]caption_language_mappingsoptionaltyping.List[CaptionLanguageMapping]captionLanguageMappingsoptionalList<CaptionLanguageMapping>CaptionLanguageMappingsoptionalCaptionLanguageMapping[]CaptionLanguageMappingsoptional*[]CaptionLanguageMapping #
Caption language mappings for the MediaPackage V2 output.

Default: no caption language mappings

id3BehavioroptionalId3Behaviorid3_behavioroptionalId3Behaviorid3BehavioroptionalId3BehaviorId3BehavioroptionalId3BehaviorId3BehavioroptionalId3Behavior = Id3Behavior.DISABLED #
The ID3 behavior.
klvBehavioroptionalKlvBehaviorklv_behavioroptionalKlvBehaviorklvBehavioroptionalKlvBehaviorKlvBehavioroptionalKlvBehaviorKlvBehavioroptionalKlvBehavior = KlvBehavior.NO_PASSTHROUGH #
The KLV behavior.
namestringnamestrnameStringNamestringName*string required #
The name of this output group.

Used as the destination reference ID. Underscores are normalised to hyphens internally.

nielsenId3BehavioroptionalNielsenId3Behaviornielsen_id3_behavioroptionalNielsenId3BehaviornielsenId3BehavioroptionalNielsenId3BehaviorNielsenId3BehavioroptionalNielsenId3BehaviorNielsenId3BehavioroptionalNielsenId3Behavior #
The Nielsen ID3 behavior.

Default: NielsenId3Behavior.NO_PASSTHROUGH

The outputs for this output group.
notes

MediaPackage V2 uses CMAF ingest which requires one track per output. Create a separate output for each encode (e.g. one for HD video, one for SD video, one for audio, one for each out-of-band caption). Do NOT put multiple encodes in a single output.

scte35TypeoptionalScte35Typescte35_typeoptionalScte35Typescte35TypeoptionalScte35TypeScte35TypeoptionalScte35TypeScte35TypeoptionalScte35Type #
The SCTE-35 type.

Default: Scte35Type.SCTE_35_WITHOUT_SEGMENTATION

segmentoptionalSegmentsegmentoptionalSegmentsegmentoptionalSegmentSegmentoptionalSegmentSegmentoptionalSegment = Segment.seconds(1) #
The length of each media segment.
timedMetadataId3FrameoptionalTimedMetadataId3Frametimed_metadata_id3_frameoptionalTimedMetadataId3FrametimedMetadataId3FrameoptionalTimedMetadataId3FrameTimedMetadataId3FrameoptionalTimedMetadataId3FrameTimedMetadataId3FrameoptionalTimedMetadataId3Frame = TimedMetadataId3Frame.NONE #
The timed metadata ID3 frame.
timedMetadataId3PeriodoptionalDurationtimed_metadata_id3_periodoptionalDurationtimedMetadataId3PeriodoptionalDurationTimedMetadataId3PeriodoptionalDurationTimedMetadataId3PeriodoptionalDuration = Duration.seconds(10) #
The timed metadata interval.
timedMetadataPassthroughoptionalTimedMetadataPassthroughtimed_metadata_passthroughoptionalTimedMetadataPassthroughtimedMetadataPassthroughoptionalTimedMetadataPassthroughTimedMetadataPassthroughoptionalTimedMetadataPassthroughTimedMetadataPassthroughoptionalTimedMetadataPassthrough #
Whether timed metadata is passed through.

Default: TimedMetadataPassthrough.DISABLED