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