Skip to content

Examples#

Index > ChimeSDKMeetings > Examples

Auto-generated documentation for ChimeSDKMeetings type annotations stubs module types-aiobotocore-chime-sdk-meetings.

Client#

Implicit type annotations#

Can be used with types-aiobotocore[chime-sdk-meetings] package installed.

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

# ChimeSDKMeetingsClient usage example

from aiobotocore.session import get_session


session = get_session()

async with session.create_client("chime-sdk-meetings") as client:  # (1)
    result = await client.batch_create_attendee()  # (2)
  1. client: ChimeSDKMeetingsClient
  2. result: BatchCreateAttendeeResponseTypeDef

Explicit type annotations#

With types-aiobotocore-lite[chime-sdk-meetings] or a standalone types_aiobotocore_chime_sdk_meetings package, you have to explicitly specify client: ChimeSDKMeetingsClient 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.

# ChimeSDKMeetingsClient usage example with type annotations

from aiobotocore.session import get_session

from types_aiobotocore_chime_sdk_meetings.client import ChimeSDKMeetingsClient
from types_aiobotocore_chime_sdk_meetings.type_defs import BatchCreateAttendeeResponseTypeDef
from types_aiobotocore_chime_sdk_meetings.type_defs import BatchCreateAttendeeRequestRequestTypeDef


session = get_session()

async with session.create_client("chime-sdk-meetings") as client:
    client: ChimeSDKMeetingsClient
    kwargs: BatchCreateAttendeeRequestRequestTypeDef = {...}
    result: BatchCreateAttendeeResponseTypeDef = await client.batch_create_attendee(**kwargs)