types-aiobotocore-iot-data

raw JSON →
3.5.0 verified Fri May 01 auth: no python

Type annotations for aiobotocore IoTDataPlane 3.5.0 service generated with mypy-boto3-builder 8.12.0. Provides static type checking support for the AWS IoT Data Plane service using aiobotocore. Current version: 3.5.0. Release cadence: follows aiobotocore releases, updated automatically.

pip install types-aiobotocore[iot-data]
error ModuleNotFoundError: No module named 'types_aiobotocore_iot_data'
cause The standalone package is not installed, or the wrong import path is used.
fix
Install the package with 'pip install types-aiobotocore-iot-data' and import via aiobotocore; do not import directly from types_aiobotocore_iot_data.
error Cannot find reference 'IoTDataPlaneClient' in '__init__.py'
cause IDEs may not resolve the type hints if the types package is not installed or if imports are done incorrectly.
fix
Ensure the types package is installed and use the client factory from aiobotocore; type hints are automatically picked up.
error AttributeError: 'IoTDataPlaneClient' object has no attribute 'get_thing_shadow'
cause The client may be created with a wrong service name or the method is called on an untyped object.
fix
Use the correct service name 'iot-data' and ensure the client is properly typed by installing the types package.
breaking Version 8.9.0 renamed TypeDefs to shorter names, e.g., 'CreateDistributionRequestRequestTypeDef' -> 'CreateDistributionRequestTypeDef'. This may break existing imports.
fix Update imports to use shorter TypeDef names.
breaking Version 8.12.0 removed support for Python 3.8. Requires Python >= 3.9.
fix Upgrade to Python 3.9 or later.
deprecated The 'sms-voice' service was removed in version 8.11.0; use 'pinpoint-sms-voice' instead.
fix Replace 'sms-voice' with 'pinpoint-sms-voice' in client creation.
gotcha TypeDefs for paginated operations may have 'PaginationToken' marked as 'NotRequired' since version 8.10.1. Access it safely with .get().
fix Use response.get('PaginationToken') instead of direct key access.
pip install types-aiobotocore-iot-data

Basic usage of the IoT Data Plane client with aiobotocore. Type hints are automatically available when the types package is installed.

import asyncio
from aiobotocore.session import get_session

async def main():
    session = get_session()
    async with session.create_client('iot-data', region_name='us-east-1') as client:
        # For type hints, use the client's methods directly
        response = await client.get_thing_shadow(thingName='MyThing')
        print(response)

asyncio.run(main())