Skip to content

IoTThingsGraph module#

Index > IoTThingsGraph

Auto-generated documentation for IoTThingsGraph type annotations stubs module mypy-boto3-iotthingsgraph.

How to install#

VSCode extension#

Add AWS Boto3 extension to your VSCode and run AWS boto3: Quick Start command.

Click Modify and select boto3 common and IoTThingsGraph.

From PyPI with pip#

Install boto3-stubs for IoTThingsGraph service.

# install with boto3 type annotations
python -m pip install 'boto3-stubs[iotthingsgraph]'

# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'boto3-stubs-lite[iotthingsgraph]'

# standalone installation
python -m pip install mypy-boto3-iotthingsgraph

How to uninstall#

python -m pip uninstall -y mypy-boto3-iotthingsgraph


Code samples can be found in Examples.


Type annotations and code completion for boto3.client("iotthingsgraph") as IoTThingsGraphClient boto3 documentation

# IoTThingsGraphClient usage example

from boto3.session import Session

from mypy_boto3_iotthingsgraph.client import IoTThingsGraphClient

def get_client() -> IoTThingsGraphClient:
    return Session().client("iotthingsgraph")


Type annotations and code completion for paginators from boto3.client("iotthingsgraph").get_paginator("...").

# GetFlowTemplateRevisionsPaginator usage example

from boto3.session import Session

from mypy_boto3_iotthingsgraph.paginator import GetFlowTemplateRevisionsPaginator

def get_get_flow_template_revisions_paginator() -> GetFlowTemplateRevisionsPaginator:
    return Session().client("iotthingsgraph").get_paginator("get_flow_template_revisions"))


Type annotations for literals used in methods and schemas.

# DefinitionLanguageType usage example

from mypy_boto3_iotthingsgraph.literals import DefinitionLanguageType

def get_value() -> DefinitionLanguageType:
    return "GRAPHQL"

Typed dictionaries#

Type annotations for typed dictionaries used in methods and schema.

# AssociateEntityToThingRequestRequestTypeDef usage example

from mypy_boto3_iotthingsgraph.type_defs import AssociateEntityToThingRequestRequestTypeDef

def get_value() -> AssociateEntityToThingRequestRequestTypeDef:
    return {
        "thingName": ...,
        "entityId": ...,