ErrorMessage: 'Destination ..... is not referenced

0

Hi,

I'm trying to manage MediaLive with AWS SDK(node.js).

I have managed create MediaPackage Channel, MediaLive Input.

But now I get weird error 'ErrorMessage: 'Destination "..." is not referenced' when I try to create MediaLive channel.

here's my parameters passing to CreateChannelCommand.

(I don't know how to make a code block so please forgive me about poor indented code.)


const params = {
Name: channelName || "TestChannel",
ChannelClass: "SINGLE_PIPELINE",
InputAttachments: [
{
InputId: mediaLiveInputId, // MediaList Input Id
InputAttachmentName:"Default Input"
}
],
InputSpecification: {
Codec: "AVC",
Resolution: "HD",
MaximumBitrate: "MAX_10_MBPS"
},
Destinations: [
{
Id: output-${mediaPackageChannelId},
MediaPackageSettings: [
{
ChannelId: mediaPackageChannelId || "TestMediaPackageChannel"
}
]
}
],
EncoderSettings: {},
OutputGroups: [
{
OutputGroupSettings: {
Settings: [

            ],  
            MediaPackageGroupSettings: {  
                Destination: {  
                    DestinationRefId: `output-${mediaPackageChannelId}`  
                }  
            }  
        },  
        Name: "MediaPackage-group",  
        Outputs: \[  
            {  
                OutputSettings: {  
                    MediaPackageOutputSettings: {  
                        Destination: {  
                            DestinationRefId: `output-${mediaPackageChannelId}`  
                        }  
                    }  
                }  
            }  
        ]  
    }  
]  

I think I'm definitely referencing output-${mediaPackageChannelId} in MediaPackageOutputSettings under OutputGroupSettings and OutputSettings attributes.

I can't figure out what am I missing.

Please shed some light on me!

Thank you for reading this! :)

Edited by: netscout on May 4, 2021 12:34 AM

Edited by: netscout on May 4, 2021 12:36 AM

Edited by: netscout on May 4, 2021 12:41 AM

gefragt vor 3 Jahren262 Aufrufe
1 Antwort
0

it was purely my mistake, I misplaced properties. :)

beantwortet vor 3 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen