Examples#
Index > IoTSecureTunneling > Examples
Auto-generated documentation for IoTSecureTunneling type annotations stubs module types-boto3-iotsecuretunneling.
Client#
Implicit type annotations#
Can be used with types-boto3[iotsecuretunneling]
package installed.
Write your IoTSecureTunneling
code as usual,
type checking and code completion should work out of the box.
# IoTSecureTunnelingClient usage example
from boto3.session import Session
session = Session()
client = session.client("iotsecuretunneling") # (1)
result = client.describe_tunnel() # (2)
- client: IoTSecureTunnelingClient
- result: DescribeTunnelResponseTypeDef
Explicit type annotations#
With types-boto3-lite[iotsecuretunneling]
or a standalone types_boto3_iotsecuretunneling
package, you have to explicitly specify client: IoTSecureTunnelingClient
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.
# IoTSecureTunnelingClient usage example with type annotations
from boto3.session import Session
from types_boto3_iotsecuretunneling.client import IoTSecureTunnelingClient
from types_boto3_iotsecuretunneling.type_defs import DescribeTunnelResponseTypeDef
from types_boto3_iotsecuretunneling.type_defs import DescribeTunnelRequestRequestTypeDef
session = Session()
client: IoTSecureTunnelingClient = session.client("iotsecuretunneling")
kwargs: DescribeTunnelRequestRequestTypeDef = {...}
result: DescribeTunnelResponseTypeDef = client.describe_tunnel(**kwargs)