Examples#
Index > IoTWireless > Examples
Auto-generated documentation for IoTWireless type annotations stubs module types-aiobotocore-iotwireless.
Client#
Implicit type annotations#
Can be used with types-aiobotocore[iotwireless]
package installed.
Write your IoTWireless
code as usual,
type checking and code completion should work out of the box.
# IoTWirelessClient usage example
from aiobotocore.session import get_session
session = get_session()
async with session.create_client("iotwireless") as client: # (1)
result = await client.associate_aws_account_with_partner_account() # (2)
Explicit type annotations#
With types-aiobotocore-lite[iotwireless]
or a standalone types_aiobotocore_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 aiobotocore.session import get_session
from types_aiobotocore_iotwireless.client import IoTWirelessClient
from types_aiobotocore_iotwireless.type_defs import AssociateAwsAccountWithPartnerAccountResponseTypeDef
from types_aiobotocore_iotwireless.type_defs import AssociateAwsAccountWithPartnerAccountRequestRequestTypeDef
session = get_session()
async with session.create_client("iotwireless") as client:
client: IoTWirelessClient
kwargs: AssociateAwsAccountWithPartnerAccountRequestRequestTypeDef = {...}
result: AssociateAwsAccountWithPartnerAccountResponseTypeDef = await client.associate_aws_account_with_partner_account(**kwargs)