class MediaPackageV2Destination
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaLive.Alpha.MediaPackageV2Destination |
Go | github.com/aws/aws-cdk-go/awsmedialivealpha/v2#MediaPackageV2Destination |
Java | software.amazon.awscdk.services.medialive.alpha.MediaPackageV2Destination |
Python | aws_cdk.aws_medialive_alpha.MediaPackageV2Destination |
TypeScript (source) | @aws-cdk/aws-medialive-alpha ยป MediaPackageV2Destination |
A MediaPackage V2 destination for a MediaLive output group.
Use the static factory method to create.
Example
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
new MediaPackageV2Destination()
Methods
| Name | Description |
|---|---|
| static channel(channel, endpointId?) | Create a MediaPackage V2 destination. |
static channel(channel, endpointId?)
public static channel(channel: IChannel, endpointId?: MediaPackageV2EndpointId): MediaPackageV2Destination
Parameters
- channel
IChannelโ The MediaPackage V2 channel to send output to. - endpointId
Mediaโ The pipeline endpoint to send to.Package V2 Endpoint Id
Returns
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.

.NET
Go
Java
Python
TypeScript (