{"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":"python","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,"search_vec":"'1.42.3':61 'align':50 'analysi':22,76 'annot':2 'archiv':7,72 'archived-media':71 'aw':42,63 'boto3':4,16,35,52,62 'botocor':54 'client':19 'current':58 'ecosystem':36 'enabl':20 'frequent':47 'generat':38 'hint':14,67 'integr':29 'kinesi':5,69 'kinesis-video':68 'kinesisvideoarchivedmedia':18 'librari':10 'like':24 'media':8,73 'mypi':25,34,64 'mypy-boto3':33 'packag':45 'part':30 'precis':12 'provid':11 'releas':55 'servic':43 'static':21,75 'static-analysi':74 'stub':39 'tool':23 'type':1,13,66 'type-hint':65 'typic':49 'updat':48 'version':59 'video':6,70","created_at":"2026-04-11T17:36:53.105510+00:00","updated_at":"2026-04-16T17:01:05.468778+00:00","problems":{"verify_error":"error: Failed to parse: `mypy-boto3-kinesis-video-archived-media boto3`\n  Caused by: Expected one of `@`, `(`, `<`, `=`, `>`, `~`, `!`, `;`, found `b`\nmypy-boto3-kinesis-video-archived-media boto3\n                                        ^"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"1.43.0","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/youtype/mypy_boto3_builder","docs":"https://youtype.github.io/boto3_stubs_docs/mypy_boto3_kinesis_video_archived_media/","changelog":null,"pypi":"https://pypi.org/project/mypy-boto3-kinesis-video-archived-media/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["type-stubs","aws"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-28","last_verified":"2026-08-29","next_check":"2026-07-05","install_tag":null}}