{"id":22490,"library":"types-aiobotocore-logs","title":"types-aiobotocore-logs","description":"Type annotations for aiobotocore CloudWatchLogs 3.5.0 service, generated by mypy-boto3-builder 8.12.0. Used to provide static type checking for aiobotocore's CloudWatch Logs client. Requires Python >=3.9.","status":"active","version":"3.5.0","language":"python","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["types","boto3","aiobotocore","cloudwatch-logs","type-hints"],"install":[{"cmd":"pip install types-aiobotocore-logs","lang":"bash","label":"Standard install"}],"dependencies":[{"reason":"Runtime dependency for CloudWatchLogs client","package":"aiobotocore","optional":false},{"reason":"Required for type annotations in Python <3.11","package":"typing-extensions","optional":true}],"imports":[{"note":"types-aiobotocore-logs is a package but the actual importable module is mypy_boto3_logs","wrong":"from types_aiobotocore_logs import CloudWatchLogsClient","symbol":"CloudWatchLogsClient","correct":"from mypy_boto3_logs import CloudWatchLogsClient"},{"note":"Type definitions are under mypy_boto3_logs.type_defs, not types_aiobotocore_logs","wrong":"from types_aiobotocore_logs.type_defs import LogGroupTypeDef","symbol":"LogGroupTypeDef","correct":"from mypy_boto3_logs.type_defs import LogGroupTypeDef"}],"quickstart":{"code":"import os\nimport aiobotocore.session\nfrom mypy_boto3_logs import CloudWatchLogsClient\n\nasync def main():\n    session = aiobotocore.session.get_session()\n    async with session.create_client('logs', region_name='us-east-1') as client:\n        response: CloudWatchLogsClient.describe_log_groups()\n        print(response)\n","lang":"python","description":"Basic usage of CloudWatch Logs client with type annotations"},"warnings":[{"fix":"Use the shorter TypeDef names (e.g., 'CreateLogGroupRequestTypeDef' instead of 'CreateLogGroupRequestRequestTypeDef').","message":"Version 8.9.0 of mypy-boto3-builder renamed packed TypeDefs by removing redundant 'Request' suffix, which may break existing type imports. types-aiobotocore-logs 3.5.0 is built with builder 8.12.0, so TypeDef names like 'CreateLogGroupRequestRequestTypeDef' became 'CreateLogGroupRequestTypeDef'. Update any hardcoded type references.","severity":"breaking","affected_versions":">=3.5.0"},{"fix":"Use 'from mypy_boto3_logs import ...' for clients and 'from mypy_boto3_logs.type_defs import ...' for type definitions.","message":"Do NOT import directly from 'types_aiobotocore_logs'. The package provides types under the 'mypy_boto3_logs' namespace. Direct imports from 'types_aiobotocore_logs' will fail with ModuleNotFoundError.","severity":"gotcha","affected_versions":"all"},{"fix":"Upgrade to Python 3.9+ to use this version.","message":"Python 3.8 support was removed in builder version 8.12.0. types-aiobotocore-logs 3.5.0 requires Python >=3.9.","severity":"deprecated","affected_versions":">=3.5.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Use 'from mypy_boto3_logs import ...' instead.","cause":"Trying to import from the package name directly instead of the correct module namespace.","error":"ModuleNotFoundError: No module named 'types_aiobotocore_logs'"},{"fix":"Change to 'from mypy_boto3_logs import CloudWatchLogsClient'.","cause":"Incorrect import path; the client class is in mypy_boto3_logs.","error":"ImportError: cannot import name 'CloudWatchLogsClient' from 'types_aiobotocore_logs'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}