Skip to content

Examples#

Index > IoTTwinMaker > Examples

Auto-generated documentation for IoTTwinMaker type annotations stubs module types-aiobotocore-iottwinmaker.

Client#

Implicit type annotations#

Can be used with types-aiobotocore[iottwinmaker] package installed.

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

# IoTTwinMakerClient usage example

from aiobotocore.session import get_session


session = get_session()

async with session.create_client("iottwinmaker") as client:  # (1)
    result = await client.batch_put_property_values()  # (2)
  1. client: IoTTwinMakerClient
  2. result: BatchPutPropertyValuesResponseTypeDef

Explicit type annotations#

With types-aiobotocore-lite[iottwinmaker] or a standalone types_aiobotocore_iottwinmaker package, you have to explicitly specify client: IoTTwinMakerClient 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.

# IoTTwinMakerClient usage example with type annotations

from aiobotocore.session import get_session

from types_aiobotocore_iottwinmaker.client import IoTTwinMakerClient
from types_aiobotocore_iottwinmaker.type_defs import BatchPutPropertyValuesResponseTypeDef
from types_aiobotocore_iottwinmaker.type_defs import BatchPutPropertyValuesRequestRequestTypeDef


session = get_session()

async with session.create_client("iottwinmaker") as client:
    client: IoTTwinMakerClient
    kwargs: BatchPutPropertyValuesRequestRequestTypeDef = {...}
    result: BatchPutPropertyValuesResponseTypeDef = await client.batch_put_property_values(**kwargs)