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.
Client method usage example#
# 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.
Client method usage example#
# 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 DescribeTunnelRequestTypeDef
session = Session()
client: IoTSecureTunnelingClient = session.client("iotsecuretunneling")
kwargs: DescribeTunnelRequestTypeDef = {...}
result: DescribeTunnelResponseTypeDef = client.describe_tunnel(**kwargs)