Type definitions#
Index > KinesisVideoMedia > Type definitions
Auto-generated documentation for KinesisVideoMedia type annotations stubs module mypy-boto3-kinesis-video-media.
TimestampTypeDef#
# TimestampTypeDef Union usage example
from mypy_boto3_kinesis_video_media.type_defs import TimestampTypeDef
def get_value() -> TimestampTypeDef:
return ...
# TimestampTypeDef definition
TimestampTypeDef = Union[
datetime.datetime,
str,
]
ResponseMetadataTypeDef#
# ResponseMetadataTypeDef TypedDict usage example
from mypy_boto3_kinesis_video_media.type_defs import ResponseMetadataTypeDef
def get_value() -> ResponseMetadataTypeDef:
return {
"RequestId": ...,
}
# ResponseMetadataTypeDef definition
class ResponseMetadataTypeDef(TypedDict):
RequestId: str,
HTTPStatusCode: int,
HTTPHeaders: Dict[str, str],
RetryAttempts: int,
HostId: NotRequired[str],
GetMediaOutputTypeDef#
# GetMediaOutputTypeDef TypedDict usage example
from mypy_boto3_kinesis_video_media.type_defs import GetMediaOutputTypeDef
def get_value() -> GetMediaOutputTypeDef:
return {
"ContentType": ...,
}
# GetMediaOutputTypeDef definition
class GetMediaOutputTypeDef(TypedDict):
ContentType: str,
Payload: botocore.response.StreamingBody,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
StartSelectorTypeDef#
# StartSelectorTypeDef TypedDict usage example
from mypy_boto3_kinesis_video_media.type_defs import StartSelectorTypeDef
def get_value() -> StartSelectorTypeDef:
return {
"StartSelectorType": ...,
}
# StartSelectorTypeDef definition
class StartSelectorTypeDef(TypedDict):
StartSelectorType: StartSelectorTypeType, # (1)
AfterFragmentNumber: NotRequired[str],
StartTimestamp: NotRequired[TimestampTypeDef],
ContinuationToken: NotRequired[str],
GetMediaInputTypeDef#
# GetMediaInputTypeDef TypedDict usage example
from mypy_boto3_kinesis_video_media.type_defs import GetMediaInputTypeDef
def get_value() -> GetMediaInputTypeDef:
return {
"StartSelector": ...,
}
# GetMediaInputTypeDef definition
class GetMediaInputTypeDef(TypedDict):
StartSelector: StartSelectorTypeDef, # (1)
StreamName: NotRequired[str],
StreamARN: NotRequired[str],