Skip to content

Examples#

Index > IoTWireless > Examples

Auto-generated documentation for IoTWireless type annotations stubs module types-boto3-iotwireless.

Client#

Implicit type annotations#

Can be used with types-boto3[iotwireless] package installed.

Write your IoTWireless code as usual, type checking and code completion should work out of the box.

# IoTWirelessClient usage example

from boto3.session import Session


session = Session()

client = session.client("iotwireless")  # (1)
result = client.associate_aws_account_with_partner_account()  # (2)
  1. client: IoTWirelessClient
  2. result: AssociateAwsAccountWithPartnerAccountResponseTypeDef

Explicit type annotations#

With types-boto3-lite[iotwireless] or a standalone types_boto3_iotwireless package, you have to explicitly specify client: IoTWirelessClient 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.

# IoTWirelessClient usage example with type annotations

from boto3.session import Session

from types_boto3_iotwireless.client import IoTWirelessClient
from types_boto3_iotwireless.type_defs import AssociateAwsAccountWithPartnerAccountResponseTypeDef
from types_boto3_iotwireless.type_defs import AssociateAwsAccountWithPartnerAccountRequestRequestTypeDef


session = Session()

client: IoTWirelessClient = session.client("iotwireless")

kwargs: AssociateAwsAccountWithPartnerAccountRequestRequestTypeDef = {...}
result: AssociateAwsAccountWithPartnerAccountResponseTypeDef = client.associate_aws_account_with_partner_account(**kwargs)