Skip to content

Examples#

Index > KinesisVideoSignalingChannels > Examples

Auto-generated documentation for KinesisVideoSignalingChannels type annotations stubs module mypy-boto3-kinesis-video-signaling.

Client#

Implicit type annotations#

Can be used with boto3-stubs[kinesis-video-signaling] package installed.

Write your KinesisVideoSignalingChannels code as usual, type checking and code completion should work out of the box.

# KinesisVideoSignalingChannelsClient usage example

from boto3.session import Session


session = Session()

client = session.client("kinesis-video-signaling")  # (1)
result = client.get_ice_server_config()  # (2)
  1. client: KinesisVideoSignalingChannelsClient
  2. result: GetIceServerConfigResponseTypeDef

Explicit type annotations#

With boto3-stubs-lite[kinesis-video-signaling] or a standalone mypy_boto3_kinesis_video_signaling package, you have to explicitly specify client: KinesisVideoSignalingChannelsClient type annotation.

All other type annotations are optional, as types should be discovered automatically. However, these type annotations can be helpful in your functions and methods.

# KinesisVideoSignalingChannelsClient usage example with type annotations

from boto3.session import Session

from mypy_boto3_kinesis_video_signaling.client import KinesisVideoSignalingChannelsClient
from mypy_boto3_kinesis_video_signaling.type_defs import GetIceServerConfigResponseTypeDef
from mypy_boto3_kinesis_video_signaling.type_defs import GetIceServerConfigRequestRequestTypeDef


session = Session()

client: KinesisVideoSignalingChannelsClient = session.client("kinesis-video-signaling")

kwargs: GetIceServerConfigRequestRequestTypeDef = {...}
result: GetIceServerConfigResponseTypeDef = client.get_ice_server_config(**kwargs)