Skip to content
v2.274.0

Experimental

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

MediaPackageV2Destination Class ​

A MediaPackage V2 destination for a MediaLive output group.

Use the static factory method to create.

Example ​

ts
declare const primary: mediapackagev2.IChannel;
declare const hdVideo: medialive.EncodeConfiguration;

medialive.OutputGroupConfiguration.mediaPackageV2PerPipeline({
  name: 'emp',
  destinations: [
    // destinations[0] → Pipeline 0, destinations[1] → Pipeline 1
    medialive.MediaPackageV2Destination.channel(primary, medialive.MediaPackageV2EndpointId.ENDPOINT_2),
    medialive.MediaPackageV2Destination.channel(primary, medialive.MediaPackageV2EndpointId.ENDPOINT_1),
  ],
  outputs: [
    { encode: hdVideo, outputName: 'hd' },
  ],
});

Initializer ​

ts
new MediaPackageV2Destination()
python
MediaPackageV2Destination()
java
new MediaPackageV2Destination()
csharp
new MediaPackageV2Destination()
go
NewMediaPackageV2Destination()

Methods ​

channel(channel: IChannel, endpointId?: MediaPackageV2EndpointId): MediaPackageV2Destination // chainable@staticmethod def channel(channel: IChannel, endpoint_id: typing.Optional[MediaPackageV2EndpointId] = None) -> MediaPackageV2Destinationpublic static MediaPackageV2Destination channel(IChannel channel, MediaPackageV2EndpointId endpointId)public static MediaPackageV2Destination Channel(IChannel channel, MediaPackageV2EndpointId? endpointId = null)func Channel(Channel IChannel, EndpointId MediaPackageV2EndpointId) MediaPackageV2Destinationstatic#
Create a MediaPackage V2 destination.

The region is resolved from the channel's region property. Import the MediaPackage V2 channel with its region (e.g. via fromChannelAttributes) for cross-region delivery.

2 parameters

Parameters

  • channelchannelchannelchannelChannel — The MediaPackage V2 channel to send output to.
  • endpointIdendpoint_idendpointIdendpointIdEndpointId — The pipeline endpoint to send to.