Under the boto3 docs: https://boto3.readthedocs.io/en/latest/reference/services/kinesis-video-media.html#KinesisVideoMedia.Client.get_media
it says that I need to run the GetDataEndpoint
API first to get an endpoint before I run GetMedia
but it doesn't say how to feed that endpoint in?
So I have tried to run:
import boto3
kinesis_media = boto3.client('kinesis-video-media' region_name='region')
stream = kinesis_media.get_media(StreamARN='my-arn',
StartSelector={'StartSelectorType': 'EARLIEST'}) # this is not the endpoint
and that returns:
ClientError: An error occurred (403) when calling the GetMedia operation: <AccessDeniedException>
<Message>Unable to determine service/operation name to be authorized</Message>
</AccessDeniedException>
I am guessing cause endpoint wasn't specified but the clients of type kinesis-video-media
don't have the get_data_endpoint
method which is required to get the endpoint url?