mypy-boto3-kinesis-video-signaling Type Stubs

1.42.3 · active · verified Sat Apr 11

This library provides type annotations for the `boto3` Kinesis Video Signaling Channels service (version 1.42.3). It is generated by `mypy-boto3-builder` (version 8.12.0) and offers type checking compatibility with tools like mypy, Pyright, VSCode, and PyCharm. The project maintains frequent updates, often in sync with `boto3` and `botocore` releases, ensuring up-to-date type hints for AWS SDK usage.

Warnings

Install

Imports

Quickstart

This example demonstrates how to create a type-hinted `KinesisVideoSignalingChannelsClient` and use it to call a service method, leveraging the provided type stubs for static analysis.

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

def get_ice_server_config(channel_arn: str) -> GetIceServerConfigResponseTypeDef:
    # boto3_session = boto3.Session(region_name="us-west-2", 
    #                               aws_access_key_id=os.environ.get('AWS_ACCESS_KEY_ID', ''),
    #                               aws_secret_access_key=os.environ.get('AWS_SECRET_ACCESS_KEY', ''))
    # client: KinesisVideoSignalingChannelsClient = boto3_session.client(
    #     "kinesis-video-signaling"
    # )
    
    # For a quickstart without explicit session configuration for brevity:
    client: KinesisVideoSignalingChannelsClient = boto3.client("kinesis-video-signaling")
    
    response: GetIceServerConfigResponseTypeDef = client.get_ice_server_config(
        ChannelARN=channel_arn
    )
    return response

# Example usage (will fail without a real AWS environment):
# try:
#     # Replace with a valid Kinesis Video Signaling Channel ARN
#     channel_arn = "arn:aws:kinesisvideo:us-west-2:123456789012:channel/my-signaling-channel/1234567890123"
#     config = get_ice_server_config(channel_arn)
#     print(f"ICE Server Config: {config}")
# except Exception as e:
#     print(f"Error: {e}")

view raw JSON →