KinesisVideoMediaClient#
Index > KinesisVideoMedia > KinesisVideoMediaClient
Auto-generated documentation for KinesisVideoMedia type annotations stubs module mypy-boto3-kinesis-video-media.
KinesisVideoMediaClient#
Type annotations and code completion for boto3.client("kinesis-video-media")
.
boto3 documentation
# KinesisVideoMediaClient usage example
from boto3.session import Session
from mypy_boto3_kinesis_video_media.client import KinesisVideoMediaClient
def get_kinesis-video-media_client() -> KinesisVideoMediaClient:
return Session().client("kinesis-video-media")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("kinesis-video-media").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("kinesis-video-media")
try:
do_something(client)
except (
client.exceptions.ClientError,
client.exceptions.ClientLimitExceededException,
client.exceptions.ConnectionLimitExceededException,
client.exceptions.InvalidArgumentException,
client.exceptions.InvalidEndpointException,
client.exceptions.NotAuthorizedException,
client.exceptions.ResourceNotFoundException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_kinesis_video_media.client import Exceptions
def handle_error(exc: Exceptions.ClientError) -> None:
...
Methods#
can_paginate#
Type annotations and code completion for boto3.client("kinesis-video-media").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
generate_presigned_url#
Type annotations and code completion for boto3.client("kinesis-video-media").generate_presigned_url
method.
boto3 documentation
# generate_presigned_url method definition
def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
get_media#
Use this API to retrieve media content from a Kinesis video stream.
Type annotations and code completion for boto3.client("kinesis-video-media").get_media
method.
boto3 documentation
# get_media method definition
def get_media(
self,
*,
StartSelector: StartSelectorTypeDef, # (1)
StreamName: str = ...,
StreamARN: str = ...,
) -> GetMediaOutputTypeDef: # (2)
...
# get_media method usage example with argument unpacking
kwargs: GetMediaInputRequestTypeDef = { # (1)
"StartSelector": ...,
}
parent.get_media(**kwargs)