Registry / devops / types-boto3-logs

types-boto3-logs

JSON →
library1.43.9pypypiunverified

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.

pip install types-boto3-logs
INSTALL
IMPORT
SIG · TYPES-BOTO3-LOGS
T
types-boto3-logs
devopspythonv1.43.9
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CloudWatchLogsClient
from types_boto3_logs.client import CloudWatchLogsClient
from mypy_boto3_logs.client import CloudWatchLogsClient

Initialize a typed CloudWatchLogs client and list log groups.

import boto3 from mypy_boto3_logs import CloudWatchLogsClient client: CloudWatchLogsClient = boto3.client('logs', region_name='us-east-1') # Now client calls are fully typed for page in client.get_paginator('describe_log_groups').paginate(): for lg in page['logGroups']: print(lg['logGroupName'])
Debug
Known issues
breakingtypes-boto3-logs versions >=1.33.0 dropped support for Python 3.7 and below. Requires Python >=3.9 as of version 1.43.9.
fix
Upgrade Python to 3.9+ and install the latest types-boto3-logs.
affects: >=1.33.0
gotchaThe 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.
fix
Install the specific types package for each service you use, e.g., pip install types-boto3-ec2.
affects: all
gotchaType definitions like 'LogGroupTypeDef' are suffixed with 'TypeDef'. Using bare names like 'LogGroup' will cause import errors.
fix
Always append 'TypeDef' to the resource name when importing from mypy_boto3_logs.type_defs.
affects: all
deprecatedImporting from 'types_boto3_logs' (with underscore) is deprecated. Use 'mypy_boto3_logs' in imports for consistency with other mypy-boto3 packages.
fix
Change imports from 'types_boto3_logs' to 'mypy_boto3_logs'.
affects: >=1.0.0
Upgrade
Version history
1.43.9latest on PyPI · released May 15, 2026
Audit
Dependencies
boto3requiredRuntime dependency for CloudWatchLogs client
Agent activity
8 hits · last 30 days
node
8
Resources
types-boto3-logs — pip install types-boto3-logs · libregistry