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-aioboto3[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 aioboto3.session import Session


session = Session()

async with session.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-aioboto3-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 aioboto3.session import 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 = Session()

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