types-boto3-logs 1.36.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Vlad Emelianov
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,538 @@
1
+ Metadata-Version: 2.2
2
+ Name: types-boto3-logs
3
+ Version: 1.36.0
4
+ Summary: Type annotations for boto3 CloudWatchLogs 1.36.0 service generated with mypy-boto3-builder 8.8.0
5
+ Home-page: https://github.com/youtype/mypy_boto3_builder
6
+ Author: Vlad Emelianov
7
+ Author-email: vlad.emelianov.nz@gmail.com
8
+ License: MIT License
9
+ Project-URL: Documentation, https://youtype.github.io/types_boto3_docs/types_boto3_logs/
10
+ Project-URL: Source, https://github.com/youtype/mypy_boto3_builder
11
+ Project-URL: Tracker, https://github.com/youtype/mypy_boto3_builder/issues
12
+ Keywords: boto3 logs boto3-stubs type-annotations mypy typeshed autocomplete
13
+ Classifier: Development Status :: 5 - Production/Stable
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Environment :: Console
16
+ Classifier: License :: OSI Approved :: MIT License
17
+ Classifier: Natural Language :: English
18
+ Classifier: Operating System :: OS Independent
19
+ Classifier: Programming Language :: Python :: 3
20
+ Classifier: Programming Language :: Python :: 3.8
21
+ Classifier: Programming Language :: Python :: 3.9
22
+ Classifier: Programming Language :: Python :: 3.10
23
+ Classifier: Programming Language :: Python :: 3.11
24
+ Classifier: Programming Language :: Python :: 3.12
25
+ Classifier: Programming Language :: Python :: 3.13
26
+ Classifier: Programming Language :: Python :: 3.14
27
+ Classifier: Programming Language :: Python :: 3 :: Only
28
+ Classifier: Programming Language :: Python :: Implementation :: CPython
29
+ Classifier: Typing :: Stubs Only
30
+ Requires-Python: >=3.8
31
+ Description-Content-Type: text/markdown
32
+ License-File: LICENSE
33
+ Requires-Dist: typing-extensions; python_version < "3.12"
34
+ Dynamic: author
35
+ Dynamic: author-email
36
+ Dynamic: classifier
37
+ Dynamic: description
38
+ Dynamic: description-content-type
39
+ Dynamic: home-page
40
+ Dynamic: keywords
41
+ Dynamic: license
42
+ Dynamic: project-url
43
+ Dynamic: requires-dist
44
+ Dynamic: requires-python
45
+ Dynamic: summary
46
+
47
+ <a id="types-boto3-logs"></a>
48
+
49
+ # types-boto3-logs
50
+
51
+ [![PyPI - types-boto3-logs](https://img.shields.io/pypi/v/types-boto3-logs.svg?color=blue)](https://pypi.org/project/types-boto3-logs/)
52
+ [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/types-boto3-logs.svg?color=blue)](https://pypi.org/project/types-boto3-logs/)
53
+ [![Docs](https://img.shields.io/readthedocs/boto3-stubs.svg?color=blue)](https://youtype.github.io/types_boto3_docs/)
54
+ [![PyPI - Downloads](https://static.pepy.tech/badge/types-boto3-logs)](https://pypistats.org/packages/types-boto3-logs)
55
+
56
+ ![boto3.typed](https://github.com/youtype/mypy_boto3_builder/raw/main/logo.png)
57
+
58
+ Type annotations for
59
+ [boto3 CloudWatchLogs 1.36.0](https://pypi.org/project/boto3/) compatible with
60
+ [VSCode](https://code.visualstudio.com/),
61
+ [PyCharm](https://www.jetbrains.com/pycharm/),
62
+ [Emacs](https://www.gnu.org/software/emacs/),
63
+ [Sublime Text](https://www.sublimetext.com/),
64
+ [mypy](https://github.com/python/mypy),
65
+ [pyright](https://github.com/microsoft/pyright) and other tools.
66
+
67
+ Generated with
68
+ [mypy-boto3-builder 8.8.0](https://github.com/youtype/mypy_boto3_builder).
69
+
70
+ More information can be found on
71
+ [types-boto3](https://pypi.org/project/types-boto3/) page and in
72
+ [types-boto3-logs docs](https://youtype.github.io/types_boto3_docs/types_boto3_logs/).
73
+
74
+ See how it helps you find and fix potential bugs:
75
+
76
+ ![types-boto3 demo](https://github.com/youtype/mypy_boto3_builder/raw/main/demo.gif)
77
+
78
+ - [types-boto3-logs](#types-boto3-logs)
79
+ - [How to install](#how-to-install)
80
+ - [Generate locally (recommended)](<#generate-locally-(recommended)>)
81
+ - [VSCode extension](#vscode-extension)
82
+ - [From PyPI with pip](#from-pypi-with-pip)
83
+ - [How to uninstall](#how-to-uninstall)
84
+ - [Usage](#usage)
85
+ - [VSCode](#vscode)
86
+ - [PyCharm](#pycharm)
87
+ - [Emacs](#emacs)
88
+ - [Sublime Text](#sublime-text)
89
+ - [Other IDEs](#other-ides)
90
+ - [mypy](#mypy)
91
+ - [pyright](#pyright)
92
+ - [Pylint compatibility](#pylint-compatibility)
93
+ - [Explicit type annotations](#explicit-type-annotations)
94
+ - [Client annotations](#client-annotations)
95
+ - [Paginators annotations](#paginators-annotations)
96
+ - [Literals](#literals)
97
+ - [Type definitions](#type-definitions)
98
+ - [How it works](#how-it-works)
99
+ - [What's new](#what's-new)
100
+ - [Implemented features](#implemented-features)
101
+ - [Latest changes](#latest-changes)
102
+ - [Versioning](#versioning)
103
+ - [Thank you](#thank-you)
104
+ - [Documentation](#documentation)
105
+ - [Support and contributing](#support-and-contributing)
106
+
107
+ <a id="how-to-install"></a>
108
+
109
+ ## How to install
110
+
111
+ <a id="generate-locally-(recommended)"></a>
112
+
113
+ ### Generate locally (recommended)
114
+
115
+ You can generate type annotations for `boto3` package locally with
116
+ `mypy_boto3_builder`. Use
117
+ [uv](https://docs.astral.sh/uv/getting-started/installation/) for build
118
+ isolation.
119
+
120
+ 1. Run mypy-boto3-builder in your package root directory:
121
+ `uvx --with 'boto3==1.36.0' mypy_boto3_builder`
122
+ 2. Select `boto3` AWS SDK.
123
+ 3. Add `CloudWatchLogs` service.
124
+ 4. Use provided commands to install generated packages.
125
+
126
+ <a id="vscode-extension"></a>
127
+
128
+ ### VSCode extension
129
+
130
+ Add
131
+ [AWS Boto3](https://marketplace.visualstudio.com/items?itemName=Boto3typed.boto3-ide)
132
+ extension to your VSCode and run `AWS boto3: Quick Start` command.
133
+
134
+ Click `Modify` and select `boto3 common` and `CloudWatchLogs`.
135
+
136
+ <a id="from-pypi-with-pip"></a>
137
+
138
+ ### From PyPI with pip
139
+
140
+ Install `types-boto3` for `CloudWatchLogs` service.
141
+
142
+ ```bash
143
+ # install with boto3 type annotations
144
+ python -m pip install 'types-boto3[logs]'
145
+
146
+ # Lite version does not provide session.client/resource overloads
147
+ # it is more RAM-friendly, but requires explicit type annotations
148
+ python -m pip install 'types-boto3-lite[logs]'
149
+
150
+ # standalone installation
151
+ python -m pip install types-boto3-logs
152
+ ```
153
+
154
+ <a id="how-to-uninstall"></a>
155
+
156
+ ## How to uninstall
157
+
158
+ ```bash
159
+ python -m pip uninstall -y types-boto3-logs
160
+ ```
161
+
162
+ <a id="usage"></a>
163
+
164
+ ## Usage
165
+
166
+ <a id="vscode"></a>
167
+
168
+ ### VSCode
169
+
170
+ - Install
171
+ [Python extension](https://marketplace.visualstudio.com/items?itemName=ms-python.python)
172
+ - Install
173
+ [Pylance extension](https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance)
174
+ - Set `Pylance` as your Python Language Server
175
+ - Install `types-boto3[logs]` in your environment:
176
+
177
+ ```bash
178
+ python -m pip install 'types-boto3[logs]'
179
+ ```
180
+
181
+ Both type checking and code completion should now work. No explicit type
182
+ annotations required, write your `boto3` code as usual.
183
+
184
+ <a id="pycharm"></a>
185
+
186
+ ### PyCharm
187
+
188
+ > ⚠️ Due to slow PyCharm performance on `Literal` overloads (issue
189
+ > [PY-40997](https://youtrack.jetbrains.com/issue/PY-40997)), it is recommended
190
+ > to use [types-boto3-lite](https://pypi.org/project/types-boto3-lite/) until
191
+ > the issue is resolved.
192
+
193
+ > ⚠️ If you experience slow performance and high CPU usage, try to disable
194
+ > `PyCharm` type checker and use [mypy](https://github.com/python/mypy) or
195
+ > [pyright](https://github.com/microsoft/pyright) instead.
196
+
197
+ > ⚠️ To continue using `PyCharm` type checker, you can try to replace
198
+ > `types-boto3` with
199
+ > [types-boto3-lite](https://pypi.org/project/types-boto3-lite/):
200
+
201
+ ```bash
202
+ pip uninstall types-boto3
203
+ pip install types-boto3-lite
204
+ ```
205
+
206
+ Install `types-boto3[logs]` in your environment:
207
+
208
+ ```bash
209
+ python -m pip install 'types-boto3[logs]'
210
+ ```
211
+
212
+ Both type checking and code completion should now work.
213
+
214
+ <a id="emacs"></a>
215
+
216
+ ### Emacs
217
+
218
+ - Install `types-boto3` with services you use in your environment:
219
+
220
+ ```bash
221
+ python -m pip install 'types-boto3[logs]'
222
+ ```
223
+
224
+ - Install [use-package](https://github.com/jwiegley/use-package),
225
+ [lsp](https://github.com/emacs-lsp/lsp-mode/),
226
+ [company](https://github.com/company-mode/company-mode) and
227
+ [flycheck](https://github.com/flycheck/flycheck) packages
228
+ - Install [lsp-pyright](https://github.com/emacs-lsp/lsp-pyright) package
229
+
230
+ ```elisp
231
+ (use-package lsp-pyright
232
+ :ensure t
233
+ :hook (python-mode . (lambda ()
234
+ (require 'lsp-pyright)
235
+ (lsp))) ; or lsp-deferred
236
+ :init (when (executable-find "python3")
237
+ (setq lsp-pyright-python-executable-cmd "python3"))
238
+ )
239
+ ```
240
+
241
+ - Make sure emacs uses the environment where you have installed `types-boto3`
242
+
243
+ Type checking should now work. No explicit type annotations required, write
244
+ your `boto3` code as usual.
245
+
246
+ <a id="sublime-text"></a>
247
+
248
+ ### Sublime Text
249
+
250
+ - Install `types-boto3[logs]` with services you use in your environment:
251
+
252
+ ```bash
253
+ python -m pip install 'types-boto3[logs]'
254
+ ```
255
+
256
+ - Install [LSP-pyright](https://github.com/sublimelsp/LSP-pyright) package
257
+
258
+ Type checking should now work. No explicit type annotations required, write
259
+ your `boto3` code as usual.
260
+
261
+ <a id="other-ides"></a>
262
+
263
+ ### Other IDEs
264
+
265
+ Not tested, but as long as your IDE supports `mypy` or `pyright`, everything
266
+ should work.
267
+
268
+ <a id="mypy"></a>
269
+
270
+ ### mypy
271
+
272
+ - Install `mypy`: `python -m pip install mypy`
273
+ - Install `types-boto3[logs]` in your environment:
274
+
275
+ ```bash
276
+ python -m pip install 'types-boto3[logs]'
277
+ ```
278
+
279
+ Type checking should now work. No explicit type annotations required, write
280
+ your `boto3` code as usual.
281
+
282
+ <a id="pyright"></a>
283
+
284
+ ### pyright
285
+
286
+ - Install `pyright`: `npm i -g pyright`
287
+ - Install `types-boto3[logs]` in your environment:
288
+
289
+ ```bash
290
+ python -m pip install 'types-boto3[logs]'
291
+ ```
292
+
293
+ Optionally, you can install `types-boto3` to `typings` directory.
294
+
295
+ Type checking should now work. No explicit type annotations required, write
296
+ your `boto3` code as usual.
297
+
298
+ <a id="pylint-compatibility"></a>
299
+
300
+ ### Pylint compatibility
301
+
302
+ It is totally safe to use `TYPE_CHECKING` flag in order to avoid
303
+ `types-boto3-logs` dependency in production. However, there is an issue in
304
+ `pylint` that it complains about undefined variables. To fix it, set all types
305
+ to `object` in non-`TYPE_CHECKING` mode.
306
+
307
+ ```python
308
+ from typing import TYPE_CHECKING
309
+
310
+ if TYPE_CHECKING:
311
+ from types_boto3_ec2 import EC2Client, EC2ServiceResource
312
+ from types_boto3_ec2.waiters import BundleTaskCompleteWaiter
313
+ from types_boto3_ec2.paginators import DescribeVolumesPaginator
314
+ else:
315
+ EC2Client = object
316
+ EC2ServiceResource = object
317
+ BundleTaskCompleteWaiter = object
318
+ DescribeVolumesPaginator = object
319
+
320
+ ...
321
+ ```
322
+
323
+ <a id="explicit-type-annotations"></a>
324
+
325
+ ## Explicit type annotations
326
+
327
+ <a id="client-annotations"></a>
328
+
329
+ ### Client annotations
330
+
331
+ `CloudWatchLogsClient` provides annotations for `boto3.client("logs")`.
332
+
333
+ ```python
334
+ from boto3.session import Session
335
+
336
+ from types_boto3_logs import CloudWatchLogsClient
337
+
338
+ client: CloudWatchLogsClient = Session().client("logs")
339
+
340
+ # now client usage is checked by mypy and IDE should provide code completion
341
+ ```
342
+
343
+ <a id="paginators-annotations"></a>
344
+
345
+ ### Paginators annotations
346
+
347
+ `types_boto3_logs.paginator` module contains type annotations for all
348
+ paginators.
349
+
350
+ ```python
351
+ from boto3.session import Session
352
+
353
+ from types_boto3_logs import CloudWatchLogsClient
354
+ from types_boto3_logs.paginator import (
355
+ DescribeConfigurationTemplatesPaginator,
356
+ DescribeDeliveriesPaginator,
357
+ DescribeDeliveryDestinationsPaginator,
358
+ DescribeDeliverySourcesPaginator,
359
+ DescribeDestinationsPaginator,
360
+ DescribeExportTasksPaginator,
361
+ DescribeLogGroupsPaginator,
362
+ DescribeLogStreamsPaginator,
363
+ DescribeMetricFiltersPaginator,
364
+ DescribeQueriesPaginator,
365
+ DescribeResourcePoliciesPaginator,
366
+ DescribeSubscriptionFiltersPaginator,
367
+ FilterLogEventsPaginator,
368
+ ListAnomaliesPaginator,
369
+ ListLogAnomalyDetectorsPaginator,
370
+ ListLogGroupsForQueryPaginator,
371
+ )
372
+
373
+ client: CloudWatchLogsClient = Session().client("logs")
374
+
375
+ # Explicit type annotations are optional here
376
+ # Types should be correctly discovered by mypy and IDEs
377
+ describe_configuration_templates_paginator: DescribeConfigurationTemplatesPaginator = (
378
+ client.get_paginator("describe_configuration_templates")
379
+ )
380
+ describe_deliveries_paginator: DescribeDeliveriesPaginator = client.get_paginator(
381
+ "describe_deliveries"
382
+ )
383
+ describe_delivery_destinations_paginator: DescribeDeliveryDestinationsPaginator = (
384
+ client.get_paginator("describe_delivery_destinations")
385
+ )
386
+ describe_delivery_sources_paginator: DescribeDeliverySourcesPaginator = client.get_paginator(
387
+ "describe_delivery_sources"
388
+ )
389
+ describe_destinations_paginator: DescribeDestinationsPaginator = client.get_paginator(
390
+ "describe_destinations"
391
+ )
392
+ describe_export_tasks_paginator: DescribeExportTasksPaginator = client.get_paginator(
393
+ "describe_export_tasks"
394
+ )
395
+ describe_log_groups_paginator: DescribeLogGroupsPaginator = client.get_paginator(
396
+ "describe_log_groups"
397
+ )
398
+ describe_log_streams_paginator: DescribeLogStreamsPaginator = client.get_paginator(
399
+ "describe_log_streams"
400
+ )
401
+ describe_metric_filters_paginator: DescribeMetricFiltersPaginator = client.get_paginator(
402
+ "describe_metric_filters"
403
+ )
404
+ describe_queries_paginator: DescribeQueriesPaginator = client.get_paginator("describe_queries")
405
+ describe_resource_policies_paginator: DescribeResourcePoliciesPaginator = client.get_paginator(
406
+ "describe_resource_policies"
407
+ )
408
+ describe_subscription_filters_paginator: DescribeSubscriptionFiltersPaginator = (
409
+ client.get_paginator("describe_subscription_filters")
410
+ )
411
+ filter_log_events_paginator: FilterLogEventsPaginator = client.get_paginator("filter_log_events")
412
+ list_anomalies_paginator: ListAnomaliesPaginator = client.get_paginator("list_anomalies")
413
+ list_log_anomaly_detectors_paginator: ListLogAnomalyDetectorsPaginator = client.get_paginator(
414
+ "list_log_anomaly_detectors"
415
+ )
416
+ list_log_groups_for_query_paginator: ListLogGroupsForQueryPaginator = client.get_paginator(
417
+ "list_log_groups_for_query"
418
+ )
419
+ ```
420
+
421
+ <a id="literals"></a>
422
+
423
+ ### Literals
424
+
425
+ `types_boto3_logs.literals` module contains literals extracted from shapes that
426
+ can be used in user code for type checking.
427
+
428
+ Full list of `CloudWatchLogs` Literals can be found in
429
+ [docs](https://youtype.github.io/types_boto3_docs/types_boto3_logs/literals/).
430
+
431
+ ```python
432
+ from types_boto3_logs.literals import AnomalyDetectorStatusType
433
+
434
+
435
+ def check_value(value: AnomalyDetectorStatusType) -> bool: ...
436
+ ```
437
+
438
+ <a id="type-definitions"></a>
439
+
440
+ ### Type definitions
441
+
442
+ `types_boto3_logs.type_defs` module contains structures and shapes assembled to
443
+ typed dictionaries and unions for additional type checking.
444
+
445
+ Full list of `CloudWatchLogs` TypeDefs can be found in
446
+ [docs](https://youtype.github.io/types_boto3_docs/types_boto3_logs/type_defs/).
447
+
448
+ ```python
449
+ from types_boto3_logs.type_defs import AccountPolicyTypeDef
450
+
451
+
452
+ def get_value() -> AccountPolicyTypeDef:
453
+ return {...}
454
+ ```
455
+
456
+ <a id="how-it-works"></a>
457
+
458
+ ## How it works
459
+
460
+ Fully automated
461
+ [mypy-boto3-builder](https://github.com/youtype/mypy_boto3_builder) carefully
462
+ generates type annotations for each service, patiently waiting for `boto3`
463
+ updates. It delivers drop-in type annotations for you and makes sure that:
464
+
465
+ - All available `boto3` services are covered.
466
+ - Each public class and method of every `boto3` service gets valid type
467
+ annotations extracted from `botocore` schemas.
468
+ - Type annotations include up-to-date documentation.
469
+ - Link to documentation is provided for every method.
470
+ - Code is processed by [ruff](https://docs.astral.sh/ruff/) for readability.
471
+
472
+ <a id="what's-new"></a>
473
+
474
+ ## What's new
475
+
476
+ <a id="implemented-features"></a>
477
+
478
+ ### Implemented features
479
+
480
+ - Fully type annotated `boto3`, `botocore`, `aiobotocore` and `aioboto3`
481
+ libraries
482
+ - `mypy`, `pyright`, `VSCode`, `PyCharm`, `Sublime Text` and `Emacs`
483
+ compatibility
484
+ - `Client`, `ServiceResource`, `Resource`, `Waiter` `Paginator` type
485
+ annotations for each service
486
+ - Generated `TypeDefs` for each service
487
+ - Generated `Literals` for each service
488
+ - Auto discovery of types for `boto3.client` and `boto3.resource` calls
489
+ - Auto discovery of types for `session.client` and `session.resource` calls
490
+ - Auto discovery of types for `client.get_waiter` and `client.get_paginator`
491
+ calls
492
+ - Auto discovery of types for `ServiceResource` and `Resource` collections
493
+ - Auto discovery of types for `aiobotocore.Session.create_client` calls
494
+
495
+ <a id="latest-changes"></a>
496
+
497
+ ### Latest changes
498
+
499
+ Builder changelog can be found in
500
+ [Releases](https://github.com/youtype/mypy_boto3_builder/releases).
501
+
502
+ <a id="versioning"></a>
503
+
504
+ ## Versioning
505
+
506
+ `types-boto3-logs` version is the same as related `boto3` version and follows
507
+ [PEP 440](https://www.python.org/dev/peps/pep-0440/) format.
508
+
509
+ <a id="thank-you"></a>
510
+
511
+ ## Thank you
512
+
513
+ - [Allie Fitter](https://github.com/alliefitter) for
514
+ [boto3-type-annotations](https://pypi.org/project/boto3-type-annotations/),
515
+ this package is based on top of his work
516
+ - [black](https://github.com/psf/black) developers for an awesome formatting
517
+ tool
518
+ - [Timothy Edmund Crosley](https://github.com/timothycrosley) for
519
+ [isort](https://github.com/PyCQA/isort) and how flexible it is
520
+ - [mypy](https://github.com/python/mypy) developers for doing all dirty work
521
+ for us
522
+ - [pyright](https://github.com/microsoft/pyright) team for the new era of typed
523
+ Python
524
+
525
+ <a id="documentation"></a>
526
+
527
+ ## Documentation
528
+
529
+ All services type annotations can be found in
530
+ [boto3 docs](https://youtype.github.io/types_boto3_docs/types_boto3_logs/)
531
+
532
+ <a id="support-and-contributing"></a>
533
+
534
+ ## Support and contributing
535
+
536
+ This package is auto-generated. Please reports any bugs or request new features
537
+ in [mypy-boto3-builder](https://github.com/youtype/mypy_boto3_builder/issues/)
538
+ repository.