{"id":5531,"library":"types-aiobotocore-dataexchange","title":"Type annotations for aiobotocore DataExchange","description":"This library provides high-quality type annotations for the `aiobotocore` DataExchange service, generated by `mypy-boto3-builder`. It enables static type checking for `aiobotocore` applications, enhancing code reliability and developer experience. The current version is 3.4.0, and it follows a rapid release cadence aligned with updates to `aiobotocore` and the `mypy-boto3-builder`.","status":"active","version":"3.4.0","language":"en","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["aws","aiobotocore","types","stubs","dataexchange","mypy"],"install":[{"cmd":"pip install types-aiobotocore-dataexchange","lang":"bash","label":"Install library"}],"dependencies":[{"reason":"Provides the actual runtime implementation for AWS services; this package only offers type stubs.","package":"aiobotocore"},{"reason":"Minimum Python version required.","package":"python","version":">=3.9"}],"imports":[{"symbol":"DataExchangeClient","correct":"from types_aiobotocore_dataexchange.client import DataExchangeClient"},{"note":"Commonly used for type-hinting API response objects.","symbol":"ListDataSetsResponseTypeDef","correct":"from types_aiobotocore_dataexchange.type_defs import ListDataSetsResponseTypeDef"},{"symbol":"get_session","correct":"import aiobotocore.session\n# then call aiobotocore.session.get_session()"}],"quickstart":{"code":"import asyncio\nimport aiobotocore.session\nfrom types_aiobotocore_dataexchange.client import DataExchangeClient\nfrom types_aiobotocore_dataexchange.type_defs import ListDataSetsResponseTypeDef\n\nasync def main():\n    session = aiobotocore.session.get_session()\n    # Using 'dataexchange' service name with type annotation\n    async with session.create_client(\"dataexchange\") as client:\n        client: DataExchangeClient  # Type hint for mypy\n        print(f\"Client type: {type(client)}\")\n\n        # Example API call with type-hinted response\n        try:\n            response: ListDataSetsResponseTypeDef = await client.list_data_sets(\n                MaxResults=1\n            )\n            print(\"Successfully listed DataExchange data sets.\")\n            if response.get(\"DataSets\"):\n                print(\"First Data Set ID:\", response[\"DataSets\"][0][\"DataSetId\"])\n            else:\n                print(\"No data sets found.\")\n        except Exception as e:\n            print(f\"Error listing data sets: {e}\")\n\nif __name__ == \"__main__\":\n    asyncio.run(main())","lang":"python","description":"This quickstart demonstrates how to initialize an `aiobotocore` DataExchange client and apply type hints from `types-aiobotocore-dataexchange` for static analysis. It then performs a simple API call to list data sets, showing how response types can also be hinted."},"warnings":[{"fix":"Upgrade your Python environment to 3.9 or newer.","message":"Support for Python 3.8 was officially removed for all packages generated by `mypy-boto3-builder`.","severity":"breaking","affected_versions":"types-aiobotocore-dataexchange 3.4.0 and newer (generated by mypy-boto3-builder 8.12.0+)."},{"fix":"Ensure `aiobotocore` is installed in your environment (e.g., `pip install aiobotocore`).","message":"This package provides only type annotations (stubs) for static analysis. It does not include the runtime `aiobotocore` library. You must install `aiobotocore` separately for your application to function.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Review and update any explicit references to TypeDefs to use the new, shorter names. Consult the `type_defs.pyi` file for the correct names.","message":"TypeDef argument names for packed methods were shortened (e.g., `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`). Code explicitly importing or referencing the old longer names will break.","severity":"breaking","affected_versions":"types-aiobotocore-dataexchange versions generated by mypy-boto3-builder 8.9.0 or newer."},{"fix":"Always verify the exact service name required by consulting `aiobotocore` documentation or the `client.pyi` stub file for the specific client you are trying to instantiate.","message":"AWS service names used in `session.create_client()` are case-sensitive and can occasionally change or vary from common expectations (e.g., `pinpoint-sms-voice` instead of `sms-voice`).","severity":"gotcha","affected_versions":"All versions"}],"env_vars":null,"last_verified":"2026-04-13T00:00:00.000Z","next_check":"2026-07-12T00:00:00.000Z"}