{"id":3607,"library":"mypy-boto3-kinesis-video-archived-media","title":"Type Annotations for boto3 Kinesis Video Archived Media","description":"This library provides precise type hints for `boto3`'s `KinesisVideoArchivedMedia` client, enabling static analysis tools like MyPy. It's an integral part of the `mypy-boto3` ecosystem, which generates stubs for all AWS services. The package is frequently updated, typically aligning with `boto3` and `botocore` releases, with the current version being `1.42.3`.","status":"active","version":"1.42.3","language":"en","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["boto3","aws","mypy","type-hints","kinesis-video","archived-media","static-analysis"],"install":[{"cmd":"pip install mypy-boto3-kinesis-video-archived-media boto3","lang":"bash","label":"Install library and boto3"}],"dependencies":[{"reason":"Core dependency for AWS service definitions, required by mypy-boto3 builder.","package":"botocore","optional":false},{"reason":"Provides backports of standard library typing features, used by mypy-boto3 packages for broader compatibility.","package":"typing-extensions","optional":false}],"imports":[{"note":"The direct `boto3` import does not provide static type hints; `mypy-boto3` provides the typed client.","wrong":"from boto3.kinesis_video_archived_media import KinesisVideoArchivedMediaClient","symbol":"KinesisVideoArchivedMediaClient","correct":"from mypy_boto3_kinesis_video_archived_media import KinesisVideoArchivedMediaClient"},{"note":"Type definitions for service requests and responses are found in the `type_defs` submodule.","symbol":"GetHLSStreamingSessionURLRequestRequestTypeDef","correct":"from mypy_boto3_kinesis_video_archived_media.type_defs import GetHLSStreamingSessionURLRequestRequestTypeDef"}],"quickstart":{"code":"import boto3\nfrom mypy_boto3_kinesis_video_archived_media import KinesisVideoArchivedMediaClient\n\n# Instantiate the boto3 client normally.\n# Mypy-boto3 provides the static type annotations at type-checking time.\nclient: KinesisVideoArchivedMediaClient = boto3.client(\n    \"kinesis-video-archived-media\",\n    region_name=\"us-east-1\" # Ensure AWS credentials are configured (e.g., via env vars or ~/.aws/credentials)\n)\n\n# Now 'client' is statically typed as KinesisVideoArchivedMediaClient.\n# MyPy will validate method calls and arguments, providing autocompletion and error checking.\n# Example (uncomment to run, requires valid AWS credentials and Kinesis Video Stream):\n# from mypy_boto3_kinesis_video_archived_media.type_defs import GetHLSStreamingSessionURLRequestRequestTypeDef\n# request: GetHLSStreamingSessionURLRequestRequestTypeDef = {\n#     \"StreamName\": \"your-stream-name\",\n#     \"PlaybackMode\": \"LIVE\"\n# }\n# response = client.get_hls_streaming_session_url(**request)\n# print(f\"HLS Session URL: {response['HLSStreamingSessionURL']}\")\n\nprint(f\"Successfully created a typed Kinesis Video Archived Media client: {type(client)}\")\nprint(\"MyPy will now provide type-checking for 'client' methods and arguments.\")","lang":"python","description":"This quickstart demonstrates how to instantiate a `boto3` client and leverage `mypy-boto3-kinesis-video-archived-media` to provide static type hints for it. The type annotations are applied at type-checking time, while the runtime behavior remains identical to standard `boto3`."},"warnings":[{"fix":"Upgrade your Python environment to 3.9 or higher. For Python 3.8, use an older `mypy-boto3` builder version, but it's recommended to upgrade Python.","message":"Python 3.8 support was removed from `mypy-boto3` packages (including this one) starting from version 8.12.0. This package now requires Python 3.9 or newer.","severity":"breaking","affected_versions":">=8.12.0 (mypy-boto3 builder), >=1.42.0 (service stubs)"},{"fix":"Update explicit TypeDef imports and usages in your codebase to match the new naming conventions. Refer to the `mypy-boto3` documentation or generated stubs for the exact names.","message":"TypeDef naming conventions changed in version 8.9.0. Some TypeDefs for method arguments might have shorter names (e.g., `*RequestRequestTypeDef` -> `*RequestTypeDef`) or have `Extra` postfixes moved. This could break explicit type annotations in existing code.","severity":"breaking","affected_versions":">=8.9.0 (mypy-boto3 builder), >=1.42.0 (service stubs)"},{"fix":"Ensure `boto3` is installed in your environment alongside the `mypy-boto3` stub package (e.g., `pip install boto3 mypy-boto3-kinesis-video-archived-media`).","message":"You must install the `boto3` runtime library separately. `mypy-boto3-kinesis-video-archived-media` only provides type stubs (.pyi files) for `boto3`, not the actual runtime implementation.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Always install `boto3` and its corresponding `mypy-boto3` stub package at compatible versions. It's often best to update both simultaneously. The stub package's version number usually corresponds to the `boto3` version it types.","message":"A version mismatch between `mypy-boto3-*` stub packages and your installed `boto3`/`botocore` runtime can lead to incorrect type hints or MyPy errors. Stubs are generated for specific `boto3` versions.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Double-check the service string against the `boto3` documentation and the `mypy-boto3` package name (e.g., `mypy_boto3_kinesis_video_archived_media` for `\"kinesis-video-archived-media\"`).","message":"The service name passed to `boto3.client()` (e.g., `\"kinesis-video-archived-media\"`) must exactly match the service stub package's internal naming convention for correct type application. Misspellings or using an old service name will result in untyped clients.","severity":"gotcha","affected_versions":"All versions"}],"env_vars":null,"last_verified":"2026-04-11T00:00:00.000Z","next_check":"2026-07-10T00:00:00.000Z"}