mypy-boto3-waf-regional 1.42.3__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.
Files changed (21) hide show
  1. mypy_boto3_waf_regional-1.42.3/LICENSE +21 -0
  2. mypy_boto3_waf_regional-1.42.3/PKG-INFO +451 -0
  3. mypy_boto3_waf_regional-1.42.3/README.md +418 -0
  4. mypy_boto3_waf_regional-1.42.3/mypy_boto3_waf_regional/__init__.py +27 -0
  5. mypy_boto3_waf_regional-1.42.3/mypy_boto3_waf_regional/__init__.pyi +26 -0
  6. mypy_boto3_waf_regional-1.42.3/mypy_boto3_waf_regional/__main__.py +43 -0
  7. mypy_boto3_waf_regional-1.42.3/mypy_boto3_waf_regional/client.py +1039 -0
  8. mypy_boto3_waf_regional-1.42.3/mypy_boto3_waf_regional/client.pyi +1036 -0
  9. mypy_boto3_waf_regional-1.42.3/mypy_boto3_waf_regional/literals.py +776 -0
  10. mypy_boto3_waf_regional-1.42.3/mypy_boto3_waf_regional/literals.pyi +774 -0
  11. mypy_boto3_waf_regional-1.42.3/mypy_boto3_waf_regional/py.typed +0 -0
  12. mypy_boto3_waf_regional-1.42.3/mypy_boto3_waf_regional/type_defs.py +1473 -0
  13. mypy_boto3_waf_regional-1.42.3/mypy_boto3_waf_regional/type_defs.pyi +1254 -0
  14. mypy_boto3_waf_regional-1.42.3/mypy_boto3_waf_regional/version.py +7 -0
  15. mypy_boto3_waf_regional-1.42.3/mypy_boto3_waf_regional.egg-info/PKG-INFO +451 -0
  16. mypy_boto3_waf_regional-1.42.3/mypy_boto3_waf_regional.egg-info/SOURCES.txt +19 -0
  17. mypy_boto3_waf_regional-1.42.3/mypy_boto3_waf_regional.egg-info/dependency_links.txt +1 -0
  18. mypy_boto3_waf_regional-1.42.3/mypy_boto3_waf_regional.egg-info/requires.txt +3 -0
  19. mypy_boto3_waf_regional-1.42.3/mypy_boto3_waf_regional.egg-info/top_level.txt +1 -0
  20. mypy_boto3_waf_regional-1.42.3/pyproject.toml +61 -0
  21. mypy_boto3_waf_regional-1.42.3/setup.cfg +4 -0
@@ -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,451 @@
1
+ Metadata-Version: 2.4
2
+ Name: mypy-boto3-waf-regional
3
+ Version: 1.42.3
4
+ Summary: Type annotations for boto3 WAFRegional 1.42.3 service generated with mypy-boto3-builder 8.12.0
5
+ Author-email: Vlad Emelianov <vlad.emelianov.nz@gmail.com>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/youtype/mypy_boto3_builder
8
+ Project-URL: Documentation, https://youtype.github.io/boto3_stubs_docs/mypy_boto3_waf_regional/
9
+ Project-URL: Source, https://github.com/youtype/mypy_boto3_builder
10
+ Project-URL: Tracker, https://github.com/youtype/mypy_boto3_builder/issues
11
+ Keywords: boto3,waf-regional,boto3-stubs,type-annotations,mypy,typeshed,autocomplete
12
+ Platform: any
13
+ Classifier: Development Status :: 5 - Production/Stable
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Environment :: Console
16
+ Classifier: Natural Language :: English
17
+ Classifier: Operating System :: OS Independent
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.9
20
+ Classifier: Programming Language :: Python :: 3.10
21
+ Classifier: Programming Language :: Python :: 3.11
22
+ Classifier: Programming Language :: Python :: 3.12
23
+ Classifier: Programming Language :: Python :: 3.13
24
+ Classifier: Programming Language :: Python :: 3.14
25
+ Classifier: Programming Language :: Python :: 3 :: Only
26
+ Classifier: Programming Language :: Python :: Implementation :: CPython
27
+ Classifier: Typing :: Stubs Only
28
+ Requires-Python: >=3.9
29
+ Description-Content-Type: text/markdown
30
+ License-File: LICENSE
31
+ Requires-Dist: typing-extensions; python_version < "3.12"
32
+ Dynamic: license-file
33
+
34
+ <a id="mypy-boto3-waf-regional"></a>
35
+
36
+ # mypy-boto3-waf-regional
37
+
38
+ [![PyPI - mypy-boto3-waf-regional](https://img.shields.io/pypi/v/mypy-boto3-waf-regional.svg?color=blue)](https://pypi.org/project/mypy-boto3-waf-regional/)
39
+ [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/mypy-boto3-waf-regional.svg?color=blue)](https://pypi.org/project/mypy-boto3-waf-regional/)
40
+ [![Docs](https://img.shields.io/readthedocs/boto3-stubs.svg?color=blue)](https://youtype.github.io/boto3_stubs_docs/)
41
+ [![PyPI - Downloads](https://static.pepy.tech/badge/mypy-boto3-waf-regional)](https://pypistats.org/packages/mypy-boto3-waf-regional)
42
+
43
+ ![boto3.typed](https://github.com/youtype/mypy_boto3_builder/raw/main/logo.png)
44
+
45
+ Type annotations for
46
+ [boto3 WAFRegional 1.42.3](https://pypi.org/project/boto3/) compatible with
47
+ [VSCode](https://code.visualstudio.com/),
48
+ [PyCharm](https://www.jetbrains.com/pycharm/),
49
+ [Emacs](https://www.gnu.org/software/emacs/),
50
+ [Sublime Text](https://www.sublimetext.com/),
51
+ [mypy](https://github.com/python/mypy),
52
+ [pyright](https://github.com/microsoft/pyright) and other tools.
53
+
54
+ Generated with
55
+ [mypy-boto3-builder 8.12.0](https://github.com/youtype/mypy_boto3_builder).
56
+
57
+ More information can be found on
58
+ [boto3-stubs](https://pypi.org/project/boto3-stubs/) page and in
59
+ [mypy-boto3-waf-regional docs](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_waf_regional/).
60
+
61
+ See how it helps you find and fix potential bugs:
62
+
63
+ ![types-boto3 demo](https://github.com/youtype/mypy_boto3_builder/raw/main/demo.gif)
64
+
65
+ - [mypy-boto3-waf-regional](#mypy-boto3-waf-regional)
66
+ - [How to install](#how-to-install)
67
+ - [Generate locally (recommended)](<#generate-locally-(recommended)>)
68
+ - [VSCode extension](#vscode-extension)
69
+ - [From PyPI with pip](#from-pypi-with-pip)
70
+ - [How to uninstall](#how-to-uninstall)
71
+ - [Usage](#usage)
72
+ - [VSCode](#vscode)
73
+ - [PyCharm](#pycharm)
74
+ - [Emacs](#emacs)
75
+ - [Sublime Text](#sublime-text)
76
+ - [Other IDEs](#other-ides)
77
+ - [mypy](#mypy)
78
+ - [pyright](#pyright)
79
+ - [Pylint compatibility](#pylint-compatibility)
80
+ - [Explicit type annotations](#explicit-type-annotations)
81
+ - [Client annotations](#client-annotations)
82
+ - [Literals](#literals)
83
+ - [Type definitions](#type-definitions)
84
+ - [How it works](#how-it-works)
85
+ - [What's new](#what's-new)
86
+ - [Implemented features](#implemented-features)
87
+ - [Latest changes](#latest-changes)
88
+ - [Versioning](#versioning)
89
+ - [Thank you](#thank-you)
90
+ - [Documentation](#documentation)
91
+ - [Support and contributing](#support-and-contributing)
92
+
93
+ <a id="how-to-install"></a>
94
+
95
+ ## How to install
96
+
97
+ <a id="generate-locally-(recommended)"></a>
98
+
99
+ ### Generate locally (recommended)
100
+
101
+ You can generate type annotations for `boto3` package locally with
102
+ `mypy-boto3-builder`. Use
103
+ [uv](https://docs.astral.sh/uv/getting-started/installation/) for build
104
+ isolation.
105
+
106
+ 1. Run mypy-boto3-builder in your package root directory:
107
+ `uvx --with 'boto3==1.42.3' mypy-boto3-builder`
108
+ 2. Select `boto3-stubs` AWS SDK.
109
+ 3. Add `WAFRegional` service.
110
+ 4. Use provided commands to install generated packages.
111
+
112
+ <a id="vscode-extension"></a>
113
+
114
+ ### VSCode extension
115
+
116
+ Add
117
+ [AWS Boto3](https://marketplace.visualstudio.com/items?itemName=Boto3typed.boto3-ide)
118
+ extension to your VSCode and run `AWS boto3: Quick Start` command.
119
+
120
+ Click `Modify` and select `boto3 common` and `WAFRegional`.
121
+
122
+ <a id="from-pypi-with-pip"></a>
123
+
124
+ ### From PyPI with pip
125
+
126
+ Install `boto3-stubs` for `WAFRegional` service.
127
+
128
+ ```bash
129
+ # install with boto3 type annotations
130
+ python -m pip install 'boto3-stubs[waf-regional]'
131
+
132
+ # Lite version does not provide session.client/resource overloads
133
+ # it is more RAM-friendly, but requires explicit type annotations
134
+ python -m pip install 'boto3-stubs-lite[waf-regional]'
135
+
136
+ # standalone installation
137
+ python -m pip install mypy-boto3-waf-regional
138
+ ```
139
+
140
+ <a id="how-to-uninstall"></a>
141
+
142
+ ## How to uninstall
143
+
144
+ ```bash
145
+ python -m pip uninstall -y mypy-boto3-waf-regional
146
+ ```
147
+
148
+ <a id="usage"></a>
149
+
150
+ ## Usage
151
+
152
+ <a id="vscode"></a>
153
+
154
+ ### VSCode
155
+
156
+ - Install
157
+ [Python extension](https://marketplace.visualstudio.com/items?itemName=ms-python.python)
158
+ - Install
159
+ [Pylance extension](https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance)
160
+ - Set `Pylance` as your Python Language Server
161
+ - Install `boto3-stubs[waf-regional]` in your environment:
162
+
163
+ ```bash
164
+ python -m pip install 'boto3-stubs[waf-regional]'
165
+ ```
166
+
167
+ Both type checking and code completion should now work. No explicit type
168
+ annotations required, write your `boto3` code as usual.
169
+
170
+ <a id="pycharm"></a>
171
+
172
+ ### PyCharm
173
+
174
+ > ⚠️ Due to slow PyCharm performance on `Literal` overloads (issue
175
+ > [PY-40997](https://youtrack.jetbrains.com/issue/PY-40997)), it is recommended
176
+ > to use [boto3-stubs-lite](https://pypi.org/project/boto3-stubs-lite/) until
177
+ > the issue is resolved.
178
+
179
+ > ⚠️ If you experience slow performance and high CPU usage, try to disable
180
+ > `PyCharm` type checker and use [mypy](https://github.com/python/mypy) or
181
+ > [pyright](https://github.com/microsoft/pyright) instead.
182
+
183
+ > ⚠️ To continue using `PyCharm` type checker, you can try to replace
184
+ > `boto3-stubs` with
185
+ > [boto3-stubs-lite](https://pypi.org/project/boto3-stubs-lite/):
186
+
187
+ ```bash
188
+ pip uninstall boto3-stubs
189
+ pip install boto3-stubs-lite
190
+ ```
191
+
192
+ Install `boto3-stubs[waf-regional]` in your environment:
193
+
194
+ ```bash
195
+ python -m pip install 'boto3-stubs[waf-regional]'
196
+ ```
197
+
198
+ Both type checking and code completion should now work.
199
+
200
+ <a id="emacs"></a>
201
+
202
+ ### Emacs
203
+
204
+ - Install `boto3-stubs` with services you use in your environment:
205
+
206
+ ```bash
207
+ python -m pip install 'boto3-stubs[waf-regional]'
208
+ ```
209
+
210
+ - Install [use-package](https://github.com/jwiegley/use-package),
211
+ [lsp](https://github.com/emacs-lsp/lsp-mode/),
212
+ [company](https://github.com/company-mode/company-mode) and
213
+ [flycheck](https://github.com/flycheck/flycheck) packages
214
+ - Install [lsp-pyright](https://github.com/emacs-lsp/lsp-pyright) package
215
+
216
+ ```elisp
217
+ (use-package lsp-pyright
218
+ :ensure t
219
+ :hook (python-mode . (lambda ()
220
+ (require 'lsp-pyright)
221
+ (lsp))) ; or lsp-deferred
222
+ :init (when (executable-find "python3")
223
+ (setq lsp-pyright-python-executable-cmd "python3"))
224
+ )
225
+ ```
226
+
227
+ - Make sure emacs uses the environment where you have installed `boto3-stubs`
228
+
229
+ Type checking should now work. No explicit type annotations required, write
230
+ your `boto3` code as usual.
231
+
232
+ <a id="sublime-text"></a>
233
+
234
+ ### Sublime Text
235
+
236
+ - Install `boto3-stubs[waf-regional]` with services you use in your
237
+ environment:
238
+
239
+ ```bash
240
+ python -m pip install 'boto3-stubs[waf-regional]'
241
+ ```
242
+
243
+ - Install [LSP-pyright](https://github.com/sublimelsp/LSP-pyright) package
244
+
245
+ Type checking should now work. No explicit type annotations required, write
246
+ your `boto3` code as usual.
247
+
248
+ <a id="other-ides"></a>
249
+
250
+ ### Other IDEs
251
+
252
+ Not tested, but as long as your IDE supports `mypy` or `pyright`, everything
253
+ should work.
254
+
255
+ <a id="mypy"></a>
256
+
257
+ ### mypy
258
+
259
+ - Install `mypy`: `python -m pip install mypy`
260
+ - Install `boto3-stubs[waf-regional]` in your environment:
261
+
262
+ ```bash
263
+ python -m pip install 'boto3-stubs[waf-regional]'
264
+ ```
265
+
266
+ Type checking should now work. No explicit type annotations required, write
267
+ your `boto3` code as usual.
268
+
269
+ <a id="pyright"></a>
270
+
271
+ ### pyright
272
+
273
+ - Install `pyright`: `npm i -g pyright`
274
+ - Install `boto3-stubs[waf-regional]` in your environment:
275
+
276
+ ```bash
277
+ python -m pip install 'boto3-stubs[waf-regional]'
278
+ ```
279
+
280
+ Optionally, you can install `boto3-stubs` to `typings` directory.
281
+
282
+ Type checking should now work. No explicit type annotations required, write
283
+ your `boto3` code as usual.
284
+
285
+ <a id="pylint-compatibility"></a>
286
+
287
+ ### Pylint compatibility
288
+
289
+ It is totally safe to use `TYPE_CHECKING` flag in order to avoid
290
+ `mypy-boto3-waf-regional` dependency in production. However, there is an issue
291
+ in `pylint` that it complains about undefined variables. To fix it, set all
292
+ types to `object` in non-`TYPE_CHECKING` mode.
293
+
294
+ ```python
295
+ from typing import TYPE_CHECKING
296
+
297
+ if TYPE_CHECKING:
298
+ from mypy_boto3_ec2 import EC2Client, EC2ServiceResource
299
+ from mypy_boto3_ec2.waiters import BundleTaskCompleteWaiter
300
+ from mypy_boto3_ec2.paginators import DescribeVolumesPaginator
301
+ else:
302
+ EC2Client = object
303
+ EC2ServiceResource = object
304
+ BundleTaskCompleteWaiter = object
305
+ DescribeVolumesPaginator = object
306
+
307
+ ...
308
+ ```
309
+
310
+ <a id="explicit-type-annotations"></a>
311
+
312
+ ## Explicit type annotations
313
+
314
+ <a id="client-annotations"></a>
315
+
316
+ ### Client annotations
317
+
318
+ `WAFRegionalClient` provides annotations for `boto3.client("waf-regional")`.
319
+
320
+ ```python
321
+ from boto3.session import Session
322
+
323
+ from mypy_boto3_waf_regional import WAFRegionalClient
324
+
325
+ client: WAFRegionalClient = Session().client("waf-regional")
326
+
327
+ # now client usage is checked by mypy and IDE should provide code completion
328
+ ```
329
+
330
+ <a id="literals"></a>
331
+
332
+ ### Literals
333
+
334
+ `mypy_boto3_waf_regional.literals` module contains literals extracted from
335
+ shapes that can be used in user code for type checking.
336
+
337
+ Full list of `WAFRegional` Literals can be found in
338
+ [docs](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_waf_regional/literals/).
339
+
340
+ ```python
341
+ from mypy_boto3_waf_regional.literals import ChangeActionType
342
+
343
+
344
+ def check_value(value: ChangeActionType) -> bool: ...
345
+ ```
346
+
347
+ <a id="type-definitions"></a>
348
+
349
+ ### Type definitions
350
+
351
+ `mypy_boto3_waf_regional.type_defs` module contains structures and shapes
352
+ assembled to typed dictionaries and unions for additional type checking.
353
+
354
+ Full list of `WAFRegional` TypeDefs can be found in
355
+ [docs](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_waf_regional/type_defs/).
356
+
357
+ ```python
358
+ # TypedDict usage example
359
+ from mypy_boto3_waf_regional.type_defs import ExcludedRuleTypeDef
360
+
361
+
362
+ def get_value() -> ExcludedRuleTypeDef:
363
+ return {
364
+ "RuleId": ...,
365
+ }
366
+ ```
367
+
368
+ <a id="how-it-works"></a>
369
+
370
+ ## How it works
371
+
372
+ Fully automated
373
+ [mypy-boto3-builder](https://github.com/youtype/mypy_boto3_builder) carefully
374
+ generates type annotations for each service, patiently waiting for `boto3`
375
+ updates. It delivers drop-in type annotations for you and makes sure that:
376
+
377
+ - All available `boto3` services are covered.
378
+ - Each public class and method of every `boto3` service gets valid type
379
+ annotations extracted from `botocore` schemas.
380
+ - Type annotations include up-to-date documentation.
381
+ - Link to documentation is provided for every method.
382
+ - Code is processed by [ruff](https://docs.astral.sh/ruff/) for readability.
383
+
384
+ <a id="what's-new"></a>
385
+
386
+ ## What's new
387
+
388
+ <a id="implemented-features"></a>
389
+
390
+ ### Implemented features
391
+
392
+ - Fully type annotated `boto3`, `botocore`, `aiobotocore` and `aioboto3`
393
+ libraries
394
+ - `mypy`, `pyright`, `VSCode`, `PyCharm`, `Sublime Text` and `Emacs`
395
+ compatibility
396
+ - `Client`, `ServiceResource`, `Resource`, `Waiter` `Paginator` type
397
+ annotations for each service
398
+ - Generated `TypeDefs` for each service
399
+ - Generated `Literals` for each service
400
+ - Auto discovery of types for `boto3.client` and `boto3.resource` calls
401
+ - Auto discovery of types for `session.client` and `session.resource` calls
402
+ - Auto discovery of types for `client.get_waiter` and `client.get_paginator`
403
+ calls
404
+ - Auto discovery of types for `ServiceResource` and `Resource` collections
405
+ - Auto discovery of types for `aiobotocore.Session.create_client` calls
406
+
407
+ <a id="latest-changes"></a>
408
+
409
+ ### Latest changes
410
+
411
+ Builder changelog can be found in
412
+ [Releases](https://github.com/youtype/mypy_boto3_builder/releases).
413
+
414
+ <a id="versioning"></a>
415
+
416
+ ## Versioning
417
+
418
+ `mypy-boto3-waf-regional` version is the same as related `boto3` version and
419
+ follows
420
+ [Python Packaging version specifiers](https://packaging.python.org/en/latest/specifications/version-specifiers/).
421
+
422
+ <a id="thank-you"></a>
423
+
424
+ ## Thank you
425
+
426
+ - [Allie Fitter](https://github.com/alliefitter) for
427
+ [boto3-type-annotations](https://pypi.org/project/boto3-type-annotations/),
428
+ this package is based on top of his work
429
+ - [black](https://github.com/psf/black) developers for an awesome formatting
430
+ tool
431
+ - [Timothy Edmund Crosley](https://github.com/timothycrosley) for
432
+ [isort](https://github.com/PyCQA/isort) and how flexible it is
433
+ - [mypy](https://github.com/python/mypy) developers for doing all dirty work
434
+ for us
435
+ - [pyright](https://github.com/microsoft/pyright) team for the new era of typed
436
+ Python
437
+
438
+ <a id="documentation"></a>
439
+
440
+ ## Documentation
441
+
442
+ All services type annotations can be found in
443
+ [boto3 docs](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_waf_regional/)
444
+
445
+ <a id="support-and-contributing"></a>
446
+
447
+ ## Support and contributing
448
+
449
+ This package is auto-generated. Please reports any bugs or request new features
450
+ in [mypy-boto3-builder](https://github.com/youtype/mypy_boto3_builder/issues/)
451
+ repository.