Registry /
type-stubs / mypy-boto3-iotsecuretunneling
Install & Compatibility
Where this runs
tested against v1.43.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.2MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 1.7s · import 0.000s · 19MB
16MB installed
● package 16MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
IoTSecureTunnelingClient
✓ from mypy_boto3_iotsecuretunneling import IoTSecureTunnelingClient
✗ from mypy_boto3_iotsecuretunneling import IoTSecureTunnelingClient
This quickstart demonstrates how to use `mypy-boto3-iotsecuretunneling` to get full type hints for a `boto3` IoTSecureTunneling client. The `TYPE_CHECKING` block ensures that the explicit type hint is only considered by static analysis tools like MyPy, without affecting runtime behavior. This allows for autocompletion and error detection for all client methods and response structures.
import boto3
from mypy_boto3_iotsecuretunneling.client import IoTSecureTunnelingClient
from typing import TYPE_CHECKING
# In a real application, you'd configure AWS credentials
# e.g., via environment variables, ~/.aws/credentials, etc.
# Using TYPE_CHECKING to ensure the type hint is only active during static analysis
if TYPE_CHECKING:
# This line ensures 'client' gets the correct type for static analysis
client: IoTSecureTunnelingClient = boto3.client("iotsecuretunneling")
else:
# This line runs at runtime, creating the actual boto3 client
client = boto3.client("iotsecuretunneling")
# Now, 'client' will have methods and attributes type-hinted by mypy-boto3-iotsecuretunneling
# For example, calling open_tunnel:
try:
response = client.open_tunnel(
Description="MyTestTunnel",
Tags=[
{"key": "Project", "value": "MyApplication"},
{"key": "Environment", "value": "Development"}
]
)
print(f"Successfully opened tunnel. ARN: {response['tunnelArn']}")
print(f"Source Access Token: {response['sourceAccessToken']}")
print(f"Destination Access Token: {response['destinationAccessToken']}")
# Example of a type-hinted response structure
# if TYPE_CHECKING:
# tunnel_arn: str = response['tunnelArn']
except client.exceptions.ResourceNotFoundException as e:
print(f"Error: {e}")
except Exception as e:
print(f"An unexpected error occurred: {e}")
Debug
Known issues
breakingSupport for Python 3.8 was officially removed with `mypy-boto3-builder` version 8.12.0 (and subsequent `mypy-boto3-*` package releases). If you are using Python 3.8, you must upgrade to Python 3.9 or newer to receive the latest type stubs.fixUpgrade your Python environment to 3.9 or newer.
affects: mypy-boto3-builder >= 8.12.0, mypy-boto3-iotsecuretunneling >= 1.42.x
gotchaType stubs are version-locked to the `boto3` library. Mismatched versions between `mypy-boto3-iotsecuretunneling` and `boto3` can lead to incorrect type hints or unresolved attributes, as the AWS API might have changed. Always ensure your `boto3` version broadly aligns with your `mypy-boto3-*` stub version.fixEnsure `boto3` and `mypy-boto3-iotsecuretunneling` are updated together, ideally within the same major version range if possible, or by regularly updating both. Check the `mypy-boto3-builder` repository for version compatibility information.
affects: All versions
gotcha`mypy-boto3-iotsecuretunneling` is a *type stub* package, not a runtime dependency. It should be installed as a development dependency or for type checking environments only. Installing it directly in your production runtime environment unnecessarily increases the package count and has no runtime effect.fixInstall `mypy-boto3-iotsecuretunneling` in your development dependencies (e.g., `requirements-dev.txt`) or using `pip install --only-binary :all: mypy-boto3-iotsecuretunneling` in environments where type checking is performed, but not in your main production `requirements.txt`.
affects: All versions
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredRuntime library it provides type hints for; a matching version is crucial for correctness.