BadRequestException in MediaLive Input Update

0

I'm getting "An error occurred (BadRequestException) when calling the UpdateInput operation: You must specify a MediaConnect Flow Arn." while updating mediaLive inputs using boto3.

lalani
asked 4 years ago348 views
3 Answers
0

Can you please provide more information on what actions you are doing when you see this? Are you editing an existing MediaLive input, or trying to create a new MediaLive input? What Input Type?
Can you share your a snippet of your code?

answered 4 years ago
0

import json
import boto3

client = boto3.client('medialive',
region_name="eu-central-1",
aws_access_key_id="XXXX",
aws_secret_access_key="XXXXXXXXX")
response = client.update_input(
Destinations=[
{ },
],
InputId='xxxxx',
InputSecurityGroups=[
],
MediaConnectFlows=[
{},
],
Name='vod',
RoleArn='arn:aws:medialive:eu-central-1:XXXXX:input:XXXX',
Sources=[
{
'Url': 'https://xxxxx/xxxxxxx_TVC_16x9.mp4'
},
]
)

i want to change input source in medialive. type is MP4_FILE.

lalani
answered 4 years ago
0

solved

I removed all unwanted fields like MediaConnectFlow,RoleArn

Thanks

lalani
answered 4 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions