Registry / type-stubs / mypy-boto3-iotsecuretunneling

mypy-boto3-iotsecuretunneling

JSON →
library1.43.0pypypi✓ verified 22d ago

mypy-boto3-iotsecuretunneling provides type annotations (type stubs) for the `boto3` client for AWS IoTSecureTunneling service. It enhances static analysis for `boto3` usage, allowing tools like MyPy to catch type-related errors before runtime. The current version is 1.42.3, generated by `mypy-boto3-builder` and generally follows the release cadence of new `boto3` features or builder updates.

pip install mypy-boto3-iotsecuretunneling
INSTALL
IMPORT
SIG · MYPY-BOTO3-IOTSECU
M
mypy-boto3-iotsecuretunneling
type-stubspythonv1.43.0
Install
1.7s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
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
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.2MB
glibc
py 3.103.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.
fix
Upgrade 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.
fix
Ensure `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.
fix
Install `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.
Agent activity
22 hits · last 30 days
node
20
OpenAI (training)
1
Resources
mypy-boto3-iotsecuretunneling — pip install mypy-boto3-iotsecuretunneling · libregistry