{"id":3381,"library":"mypy-boto3-timestream-influxdb","title":"Type Annotations for boto3 TimestreamInfluxDB","description":"mypy-boto3-timestream-influxdb provides type annotations for the AWS boto3 TimestreamInfluxDB service, enhancing developer experience with static type checking for improved code quality and autocompletion. It is currently at version 1.42.77 and releases frequently, often in sync with new boto3/botocore versions or updates to the `mypy-boto3-builder`.","status":"active","version":"1.42.77","language":"en","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["boto3","aws","mypy","types","type-annotations","timestream-influxdb","aws-sdk"],"install":[{"cmd":"pip install mypy-boto3-timestream-influxdb","lang":"bash","label":"Install library"}],"dependencies":[],"imports":[{"symbol":"TimestreamInfluxDBClient","correct":"from mypy_boto3_timestream_influxdb import TimestreamInfluxDBClient"},{"note":"Type definitions (like TypedDicts) are typically found in the `type_defs` submodule.","symbol":"TagTypeDef","correct":"from mypy_boto3_timestream_influxdb.type_defs import TagTypeDef"}],"quickstart":{"code":"import boto3\nfrom mypy_boto3_timestream_influxdb import TimestreamInfluxDBClient\nfrom mypy_boto3_timestream_influxdb.type_defs import CreateInfluxDBInstanceInputRequestTypeDef\nimport os\n\n# The actual client is from boto3, mypy-boto3 provides the type hint\nclient: TimestreamInfluxDBClient = boto3.client(\n    \"timestream-influxdb\",\n    region_name=os.environ.get('AWS_REGION', 'us-east-1')\n)\n\n# Example of using a typed client method (hypothetical, as actual calls depend on service API)\ntry:\n    # This is a placeholder call, replace with an actual TimestreamInfluxDB operation\n    # to test type hints, e.g., client.list_influx_db_instances()\n    # We'll use a type definition for demonstration.\n    instance_config: CreateInfluxDBInstanceInputRequestTypeDef = {\n        \"name\": \"my-test-instance\",\n        \"DeploymentType\": \"SINGLE_INSTANCE\",\n        \"LogLevel\": \"INFO\",\n        \"DbInstanceType\": \"db.influx.small\"\n    }\n    print(f\"Example TypeDef: {instance_config}\")\n    \n    # You would typically call a client method here, e.g.:\n    # response = client.create_influx_db_instance(**instance_config)\n    # print(response)\n\n    # Example of a simpler client method call (adjust to actual API)\n    status_response = client.can_do_service_actions() # Placeholder for a simple client method\n    print(f\"Service status check (placeholder): {status_response}\")\n\nexcept Exception as e:\n    print(f\"An error occurred: {e}\")\n    print(\"Note: This quickstart primarily demonstrates type hinting setup. Actual API calls require proper AWS credentials and service specific parameters.\")","lang":"python","description":"Demonstrates how to import the `TimestreamInfluxDBClient` type from `mypy-boto3-timestream-influxdb` and use it to type-hint a `boto3` client instance. It also shows how to import and use a specific TypeDef for clearer data structures."},"warnings":[{"fix":"Upgrade your Python environment to 3.9 or a newer version.","message":"Support for Python 3.8 was removed in `mypy-boto3-builder` version 8.12.0 (and subsequently in generated stub packages like this one). Projects using Python 3.8 will need to upgrade to Python 3.9 or newer.","severity":"breaking","affected_versions":">=8.12.0 (builder), >=1.42.x (stubs)"},{"fix":"`pip install boto3` alongside `mypy-boto3-timestream-influxdb`.","message":"This library provides only type stubs. You must still `pip install boto3` (or `aiobotocore`/`aioboto3` for async variants) separately to use the AWS SDK for Python at runtime. `mypy-boto3` packages do not include the runtime dependencies.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Review and update explicit TypeDef imports and references in your code to match the new naming conventions, typically by removing redundant words or checking for `Extra` postfix shifts.","message":"In `mypy-boto3-builder` version 8.9.0, there were changes to how TypeDef names are generated, specifically for method arguments and when resolving naming conflicts (e.g., `CreateDistributionRequestRequestTypeDef` -> `CreateDistributionRequestTypeDef`). This might cause `NameError` if your code explicitly references these type definitions.","severity":"breaking","affected_versions":">=8.9.0 (builder), corresponding stub package versions"},{"fix":"Check the `mypy-boto3-builder` release notes or AWS documentation for updated service names. Reinstall the correct `mypy-boto3` stub package if the service name has changed.","message":"Service names can change or be deprecated (e.g., `sms-voice` was replaced by `pinpoint-sms-voice` in `mypy-boto3-builder` 8.11.0). If you encounter `ModuleNotFoundError` or type-checking issues after updating, verify the exact service name and availability for the `boto3` client and the `mypy-boto3` stub package.","severity":"gotcha","affected_versions":"All versions, especially across major `mypy-boto3-builder` releases"},{"fix":"Ensure your type checker (e.g., mypy) and build environment are up-to-date. If issues arise, review type checker configuration for module path resolution.","message":"As of `mypy-boto3-builder` 8.12.0, all packages migrated to PEP 561. While this is generally transparent for most users, it might affect custom packaging, build systems, or very specific type checker configurations that rely on older module discovery mechanisms.","severity":"gotcha","affected_versions":">=8.12.0 (builder), corresponding stub package versions"}],"env_vars":null,"last_verified":"2026-04-11T00:00:00.000Z","next_check":"2026-07-10T00:00:00.000Z"}