Examples#
Auto-generated documentation for Ivschat type annotations stubs module types-aiobotocore-ivschat.
Client#
Implicit type annotations#
Can be used with types-aiobotocore[ivschat]
package installed.
Write your Ivschat
code as usual,
type checking and code completion should work out of the box.
Client method usage example#
# IvschatClient usage example
from aiobotocore.session import get_session
session = get_session()
async with session.create_client("ivschat") as client: # (1)
result = await client.create_chat_token() # (2)
- client: IvschatClient
- result: CreateChatTokenResponseTypeDef
Explicit type annotations#
With types-aiobotocore-lite[ivschat]
or a standalone types_aiobotocore_ivschat
package, you have to explicitly specify
client: IvschatClient
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.
Client method usage example#
# IvschatClient usage example with type annotations
from aiobotocore.session import get_session
from types_aiobotocore_ivschat.client import IvschatClient
from types_aiobotocore_ivschat.type_defs import CreateChatTokenResponseTypeDef
from types_aiobotocore_ivschat.type_defs import CreateChatTokenRequestTypeDef
session = get_session()
async with session.create_client("ivschat") as client:
client: IvschatClient
kwargs: CreateChatTokenRequestTypeDef = {...}
result: CreateChatTokenResponseTypeDef = await client.create_chat_token(**kwargs)