{"id":46707,"library":"types-boto3-logs","title":"types-boto3-logs","description":"Type annotations for boto3 CloudWatchLogs service, generated with mypy-boto3-builder. Provides static type checking support for boto3 CloudWatchLogs client and service model. Version 1.43.9 requires Python >=3.9 and matches boto3 1.43.9.","status":"active","version":"1.43.9","language":"python","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["types","boto3","cloudwatch-logs","type-hints","mypy"],"install":[{"cmd":"pip install types-boto3-logs","lang":"bash","label":"Install"}],"dependencies":[{"reason":"Runtime dependency for CloudWatchLogs client","package":"boto3","optional":false}],"imports":[{"wrong":"from mypy_boto3_logs.client import CloudWatchLogsClient","symbol":"CloudWatchLogsClient","correct":"from types_boto3_logs.client import CloudWatchLogsClient"}],"quickstart":{"code":"import boto3\nfrom mypy_boto3_logs import CloudWatchLogsClient\n\nclient: CloudWatchLogsClient = boto3.client('logs', region_name='us-east-1')\n# Now client calls are fully typed\nfor page in client.get_paginator('describe_log_groups').paginate():\n    for lg in page['logGroups']:\n        print(lg['logGroupName'])","lang":"python","description":"Initialize a typed CloudWatchLogs client and list log groups."},"warnings":[{"fix":"Upgrade Python to 3.9+ and install the latest types-boto3-logs.","message":"types-boto3-logs versions >=1.33.0 dropped support for Python 3.7 and below. Requires Python >=3.9 as of version 1.43.9.","severity":"breaking","affected_versions":">=1.33.0"},{"fix":"Install the specific types package for each service you use, e.g., pip install types-boto3-ec2.","message":"The package 'types-boto3-logs' provides types for CloudWatchLogs only. Each AWS service has its own types package (e.g., types-boto3-ec2). Do not expect cross-service types.","severity":"gotcha","affected_versions":"all"},{"fix":"Always append 'TypeDef' to the resource name when importing from mypy_boto3_logs.type_defs.","message":"Type definitions like 'LogGroupTypeDef' are suffixed with 'TypeDef'. Using bare names like 'LogGroup' will cause import errors.","severity":"gotcha","affected_versions":"all"},{"fix":"Change imports from 'types_boto3_logs' to 'mypy_boto3_logs'.","message":"Importing from 'types_boto3_logs' (with underscore) is deprecated. Use 'mypy_boto3_logs' in imports for consistency with other mypy-boto3 packages.","severity":"deprecated","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'1.43.9':30,37 '3.9':33 'annot':6 'boto3':3,8,15,23,36,39 'builder':16 'check':20 'client':25 'cloudwatch':41 'cloudwatch-log':40 'cloudwatchlog':9,24 'generat':11 'hint':45 'log':4,42 'match':35 'model':28 'mypi':14,46 'mypy-boto3-builder':13 'provid':17 'python':32 'requir':31 'servic':10,27 'static':18 'support':21 'type':2,5,19,38,44 'type-hint':43 'types-boto3-logs':1 'version':29","created_at":"2026-06-07T13:01:13.570354+00:00","updated_at":"2026-06-07T13:01:13.570354+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\n  File \"/tmp/tmpxswpfo0v/venv/lib/python3.12/site-packages/types_boto3_logs/__init__.py\", line 63, in <module>\n    from .client import CloudWatchLogsClient\n  File \"/tmp/tmpxswpfo0v/venv/lib/python3.12/site-packages/types_boto3"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/youtype/mypy_boto3_builder","github":"https://github.com/youtype/mypy_boto3_builder","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}