Examples#
Index > IoTJobsDataPlane > Examples
Auto-generated documentation for IoTJobsDataPlane type annotations stubs module types-aiobotocore-iot-jobs-data.
Client#
Implicit type annotations#
Can be used with types-aioboto3[iot-jobs-data]
package installed.
Write your IoTJobsDataPlane
code as usual,
type checking and code completion should work out of the box.
# IoTJobsDataPlaneClient usage example
from aioboto3.session import Session
session = Session()
async with session.client("iot-jobs-data") as client: # (1)
result = await client.describe_job_execution() # (2)
- client: IoTJobsDataPlaneClient
- result: DescribeJobExecutionResponseTypeDef
Explicit type annotations#
With types-aioboto3-lite[iot-jobs-data]
or a standalone types_aiobotocore_iot_jobs_data
package, you have to explicitly specify
client: IoTJobsDataPlaneClient
type annotation.
All other type annotations are optional, as types should be discovered automatically. However, these type annotations can be helpful in your functions and methods.
# IoTJobsDataPlaneClient usage example with type annotations
from aioboto3.session import Session
from types_aiobotocore_iot_jobs_data.client import IoTJobsDataPlaneClient
from types_aiobotocore_iot_jobs_data.type_defs import DescribeJobExecutionResponseTypeDef
from types_aiobotocore_iot_jobs_data.type_defs import DescribeJobExecutionRequestRequestTypeDef
session = Session()
client: IoTJobsDataPlaneClient
async with session.client("iot-jobs-data") as client: # (1)
kwargs: DescribeJobExecutionRequestRequestTypeDef = {...} # (2)
result: DescribeJobExecutionResponseTypeDef = await client.describe_job_execution(**kwargs) # (3)
- client: IoTJobsDataPlaneClient
- kwargs: DescribeJobExecutionRequestRequestTypeDef
- result: DescribeJobExecutionResponseTypeDef