mypy-boto3-iotdeviceadvisor
mypy-boto3-iotdeviceadvisor provides type annotations for the `boto3` AWS SDK's `IoTDeviceAdvisor` service. It is automatically generated by `mypy-boto3-builder`, ensuring up-to-date and comprehensive type hints for clients, paginators, waiters, and typed dictionaries. The current version is 1.42.3, typically following `boto3`'s release cadence, with updates also tied to `mypy-boto3-builder`'s own release cycle.
Warnings
- breaking Python 3.8 support has been removed across all `mypy-boto3` packages, including `mypy-boto3-iotdeviceadvisor`, as of `mypy-boto3-builder` version 8.12.0.
- breaking The `mypy-boto3-builder` (version 8.9.0) introduced breaking changes to `TypeDef` naming conventions, simplifying names like `CreateDistributionRequestRequestTypeDef` to `CreateDistributionRequestTypeDef`.
- gotcha While standalone `mypy-boto3-iotdeviceadvisor` provides specific service stubs, for full `boto3` type coverage and to leverage features like automatic client/resource type discovery, it's generally recommended to install the broader `boto3-stubs` package with the service extra (e.g., `pip install 'boto3-stubs[iotdeviceadvisor]'`). This provides stubs for all of boto3's API.
- gotcha Users of PyCharm may experience slow performance when dealing with Literal overloads within `mypy-boto3` stubs. For such cases, `boto3-stubs-lite` is suggested as a more RAM-friendly alternative.
Install
-
pip install mypy-boto3-iotdeviceadvisor -
pip install 'boto3-stubs[iotdeviceadvisor]'
Imports
- IoTDeviceAdvisorClient
from mypy_boto3_iotdeviceadvisor.client import IoTDeviceAdvisorClient
- ListSuiteDefinitionsPaginator
from mypy_boto3_iotdeviceadvisor.paginator import ListSuiteDefinitionsPaginator
- SuiteDefinitionSummaryTypeDef
from mypy_boto3_iotdeviceadvisor.type_defs import SuiteDefinitionSummaryTypeDef
Quickstart
import boto3
from boto3.session import Session
from mypy_boto3_iotdeviceadvisor.client import IoTDeviceAdvisorClient
from mypy_boto3_iotdeviceadvisor.type_defs import ListSuiteDefinitionsResponseTypeDef
def get_iotdeviceadvisor_client() -> IoTDeviceAdvisorClient:
"""Initializes and returns an IoTDeviceAdvisor client with type hints."""
session: Session = boto3.Session(region_name='us-east-1')
client: IoTDeviceAdvisorClient = session.client('iotdeviceadvisor')
return client
# Example usage
client = get_iotdeviceadvisor_client()
response: ListSuiteDefinitionsResponseTypeDef = client.list_suite_definitions()
for suite in response.get('suiteDefinitionInformationList', []):
print(f"Suite Definition ID: {suite.get('suiteDefinitionId')}, Name: {suite.get('suiteDefinitionName')}")