Skip to content

Examples#

Index > KinesisVideoWebRTCStorage > Examples

Auto-generated documentation for KinesisVideoWebRTCStorage type annotations stubs module types-aiobotocore-kinesis-video-webrtc-storage.

Client#

Implicit type annotations#

Can be used with types-aiobotocore[kinesis-video-webrtc-storage] package installed.

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

# KinesisVideoWebRTCStorageClient usage example

from aiobotocore.session import get_session


session = get_session()

async with session.create_client("kinesis-video-webrtc-storage") as client:  # (1)
    result = await client.join_storage_session()  # (2)
  1. client: KinesisVideoWebRTCStorageClient
  2. result: EmptyResponseMetadataTypeDef

Explicit type annotations#

With types-aiobotocore-lite[kinesis-video-webrtc-storage] or a standalone types_aiobotocore_kinesis_video_webrtc_storage package, you have to explicitly specify client: KinesisVideoWebRTCStorageClient 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.

# KinesisVideoWebRTCStorageClient usage example with type annotations

from aiobotocore.session import get_session

from types_aiobotocore_kinesis_video_webrtc_storage.client import KinesisVideoWebRTCStorageClient
from types_aiobotocore_kinesis_video_webrtc_storage.type_defs import EmptyResponseMetadataTypeDef
from types_aiobotocore_kinesis_video_webrtc_storage.type_defs import JoinStorageSessionInputRequestTypeDef


session = get_session()

async with session.create_client("kinesis-video-webrtc-storage") as client:
    client: KinesisVideoWebRTCStorageClient
    kwargs: JoinStorageSessionInputRequestTypeDef = {...}
    result: EmptyResponseMetadataTypeDef = await client.join_storage_session(**kwargs)