Mypy-Boto3 IoT Managed Integrations Stubs
This package provides type annotations for the `boto3` AWS IoT Managed Integrations service. It enables static type checking with tools like MyPy and enhances IDE auto-completion for `boto3` clients and resources. It is generated by the `mypy-boto3-builder` project, which releases frequently to stay in sync with `boto3` updates, currently at version 1.42.44, compatible with `boto3` 1.42.x.
Warnings
- breaking The `mypy-boto3-builder` (which generates this stub package) removed support for Python 3.8 in version 8.12.0. This stub package now explicitly requires Python 3.9 or higher.
- gotcha This package provides only type annotations. You must install the `boto3` library separately for your code to run at runtime.
- breaking All `mypy-boto3` packages, including this one, migrated to PEP 561 packaging (flat layout) with `mypy-boto3-builder` 8.12.0. This changes the internal package structure and might affect tooling or custom build processes that rely on older layouts.
- breaking The `mypy-boto3-builder` (from version 8.9.0) introduced changes in how TypeDef names are generated, specifically making them shorter (e.g., `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`) and moving `Extra` postfixes. While this service might not use these exact TypeDefs, it indicates a general change in TypeDef naming conventions that could affect custom imports of TypeDef objects.
- gotcha For the best type-checking accuracy and IDE auto-completion, it is recommended to keep your `mypy-boto3-iot-managed-integrations` stub package version aligned with your `boto3` runtime library version.
- gotcha Explicit type annotations for `boto3.session.Session().client('service_name')` and `get_waiter()`/`get_paginator()` calls are often necessary to leverage full type inference and auto-completion in IDEs like VSCode or PyCharm.
Install
-
pip install mypy-boto3-iot-managed-integrations boto3
Imports
- ManagedintegrationsforIoTDeviceManagementClient
from mypy_boto3_iot_managed_integrations.client import ManagedintegrationsforIoTDeviceManagementClient
- Session
from boto3.session import Session
Quickstart
import boto3
from boto3.session import Session
from mypy_boto3_iot_managed_integrations.client import ManagedintegrationsforIoTDeviceManagementClient
def get_iot_managed_integrations_client() -> ManagedintegrationsforIoTDeviceManagementClient:
session: Session = boto3.session.Session()
client: ManagedintegrationsforIoTDeviceManagementClient = session.client("iot-managed-integrations")
return client
# Example usage (requires AWS credentials configured)
if __name__ == "__main__":
try:
client = get_iot_managed_integrations_client()
# Replace with an actual API call relevant to your use case
# For quickstart, we'll try a generic paginator call if available
# Or a simple descriptive call if no paginator for list_cloud_connectors
response = client.list_cloud_connectors() # Example API call
print("Successfully retrieved cloud connectors (or similar data).")
print(f"Response Keys: {response.keys()}")
except Exception as e:
print(f"An error occurred: {e}")