types-boto3-batch 1.35.71__tar.gz → 1.35.93__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.
- {types_boto3_batch-1.35.71 → types_boto3_batch-1.35.93}/LICENSE +1 -1
- {types_boto3_batch-1.35.71/types_boto3_batch.egg-info → types_boto3_batch-1.35.93}/PKG-INFO +50 -10
- {types_boto3_batch-1.35.71 → types_boto3_batch-1.35.93}/README.md +46 -6
- {types_boto3_batch-1.35.71 → types_boto3_batch-1.35.93}/setup.py +5 -7
- {types_boto3_batch-1.35.71 → types_boto3_batch-1.35.93}/types_boto3_batch/__init__.py +1 -1
- {types_boto3_batch-1.35.71 → types_boto3_batch-1.35.93}/types_boto3_batch/__init__.pyi +1 -1
- {types_boto3_batch-1.35.71 → types_boto3_batch-1.35.93}/types_boto3_batch/__main__.py +9 -8
- {types_boto3_batch-1.35.71 → types_boto3_batch-1.35.93}/types_boto3_batch/client.py +27 -29
- {types_boto3_batch-1.35.71 → types_boto3_batch-1.35.93}/types_boto3_batch/client.pyi +27 -28
- {types_boto3_batch-1.35.71 → types_boto3_batch-1.35.93}/types_boto3_batch/literals.py +10 -2
- {types_boto3_batch-1.35.71 → types_boto3_batch-1.35.93}/types_boto3_batch/literals.pyi +10 -2
- types_boto3_batch-1.35.71/types_boto3_batch/paginator.pyi → types_boto3_batch-1.35.93/types_boto3_batch/paginator.py +71 -37
- types_boto3_batch-1.35.71/types_boto3_batch/paginator.py → types_boto3_batch-1.35.93/types_boto3_batch/paginator.pyi +52 -47
- {types_boto3_batch-1.35.71 → types_boto3_batch-1.35.93}/types_boto3_batch/type_defs.py +33 -13
- {types_boto3_batch-1.35.71 → types_boto3_batch-1.35.93}/types_boto3_batch/type_defs.pyi +32 -13
- types_boto3_batch-1.35.93/types_boto3_batch/version.py +7 -0
- {types_boto3_batch-1.35.71 → types_boto3_batch-1.35.93/types_boto3_batch.egg-info}/PKG-INFO +50 -10
- {types_boto3_batch-1.35.71 → types_boto3_batch-1.35.93}/types_boto3_batch.egg-info/requires.txt +1 -1
- types_boto3_batch-1.35.71/types_boto3_batch/version.py +0 -7
- {types_boto3_batch-1.35.71 → types_boto3_batch-1.35.93}/setup.cfg +0 -0
- {types_boto3_batch-1.35.71 → types_boto3_batch-1.35.93}/types_boto3_batch/py.typed +0 -0
- {types_boto3_batch-1.35.71 → types_boto3_batch-1.35.93}/types_boto3_batch.egg-info/SOURCES.txt +0 -0
- {types_boto3_batch-1.35.71 → types_boto3_batch-1.35.93}/types_boto3_batch.egg-info/dependency_links.txt +0 -0
- {types_boto3_batch-1.35.71 → types_boto3_batch-1.35.93}/types_boto3_batch.egg-info/not-zip-safe +0 -0
- {types_boto3_batch-1.35.71 → types_boto3_batch-1.35.93}/types_boto3_batch.egg-info/top_level.txt +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: types-boto3-batch
|
|
3
|
-
Version: 1.35.
|
|
4
|
-
Summary: Type annotations for boto3 Batch 1.35.
|
|
3
|
+
Version: 1.35.93
|
|
4
|
+
Summary: Type annotations for boto3 Batch 1.35.93 service generated with mypy-boto3-builder 8.8.0
|
|
5
5
|
Home-page: https://github.com/youtype/mypy_boto3_builder
|
|
6
6
|
Author: Vlad Emelianov
|
|
7
7
|
Author-email: vlad.emelianov.nz@gmail.com
|
|
@@ -9,7 +9,7 @@ License: MIT License
|
|
|
9
9
|
Project-URL: Documentation, https://youtype.github.io/types_boto3_docs/types_boto3_batch/
|
|
10
10
|
Project-URL: Source, https://github.com/youtype/mypy_boto3_builder
|
|
11
11
|
Project-URL: Tracker, https://github.com/youtype/mypy_boto3_builder/issues
|
|
12
|
-
Keywords: boto3 batch type-annotations
|
|
12
|
+
Keywords: boto3 batch boto3-stubs type-annotations mypy typeshed autocomplete
|
|
13
13
|
Classifier: Development Status :: 5 - Production/Stable
|
|
14
14
|
Classifier: Intended Audience :: Developers
|
|
15
15
|
Classifier: Environment :: Console
|
|
@@ -30,7 +30,7 @@ Classifier: Typing :: Stubs Only
|
|
|
30
30
|
Requires-Python: >=3.8
|
|
31
31
|
Description-Content-Type: text/markdown
|
|
32
32
|
License-File: LICENSE
|
|
33
|
-
Requires-Dist: typing-extensions
|
|
33
|
+
Requires-Dist: typing-extensions; python_version < "3.12"
|
|
34
34
|
|
|
35
35
|
<a id="types-boto3-batch"></a>
|
|
36
36
|
|
|
@@ -43,7 +43,7 @@ Requires-Dist: typing-extensions>=4.1.0; python_version < "3.12"
|
|
|
43
43
|
|
|
44
44
|

|
|
45
45
|
|
|
46
|
-
Type annotations for [boto3 Batch 1.35.
|
|
46
|
+
Type annotations for [boto3 Batch 1.35.93](https://pypi.org/project/boto3/)
|
|
47
47
|
compatible with [VSCode](https://code.visualstudio.com/),
|
|
48
48
|
[PyCharm](https://www.jetbrains.com/pycharm/),
|
|
49
49
|
[Emacs](https://www.gnu.org/software/emacs/),
|
|
@@ -51,8 +51,8 @@ compatible with [VSCode](https://code.visualstudio.com/),
|
|
|
51
51
|
[mypy](https://github.com/python/mypy),
|
|
52
52
|
[pyright](https://github.com/microsoft/pyright) and other tools.
|
|
53
53
|
|
|
54
|
-
Generated
|
|
55
|
-
[mypy-boto3-builder 8.
|
|
54
|
+
Generated with
|
|
55
|
+
[mypy-boto3-builder 8.8.0](https://github.com/youtype/mypy_boto3_builder).
|
|
56
56
|
|
|
57
57
|
More information can be found on
|
|
58
58
|
[types-boto3](https://pypi.org/project/types-boto3/) page and in
|
|
@@ -60,10 +60,11 @@ More information can be found on
|
|
|
60
60
|
|
|
61
61
|
See how it helps you find and fix potential bugs:
|
|
62
62
|
|
|
63
|
-

|
|
64
64
|
|
|
65
65
|
- [types-boto3-batch](#types-boto3-batch)
|
|
66
66
|
- [How to install](#how-to-install)
|
|
67
|
+
- [Generate locally (recommended)](<#generate-locally-(recommended)>)
|
|
67
68
|
- [VSCode extension](#vscode-extension)
|
|
68
69
|
- [From PyPI with pip](#from-pypi-with-pip)
|
|
69
70
|
- [How to uninstall](#how-to-uninstall)
|
|
@@ -75,6 +76,7 @@ See how it helps you find and fix potential bugs:
|
|
|
75
76
|
- [Other IDEs](#other-ides)
|
|
76
77
|
- [mypy](#mypy)
|
|
77
78
|
- [pyright](#pyright)
|
|
79
|
+
- [Pylint compatibility](#pylint-compatibility)
|
|
78
80
|
- [Explicit type annotations](#explicit-type-annotations)
|
|
79
81
|
- [Client annotations](#client-annotations)
|
|
80
82
|
- [Paginators annotations](#paginators-annotations)
|
|
@@ -93,6 +95,21 @@ See how it helps you find and fix potential bugs:
|
|
|
93
95
|
|
|
94
96
|
## How to install
|
|
95
97
|
|
|
98
|
+
<a id="generate-locally-(recommended)"></a>
|
|
99
|
+
|
|
100
|
+
### Generate locally (recommended)
|
|
101
|
+
|
|
102
|
+
You can generate type annotations for `boto3` package locally with
|
|
103
|
+
`mypy_boto3_builder`. Use
|
|
104
|
+
[uv](https://docs.astral.sh/uv/getting-started/installation/) for build
|
|
105
|
+
isolation.
|
|
106
|
+
|
|
107
|
+
1. Run mypy-boto3-builder in your package root directory:
|
|
108
|
+
`uvx --with 'boto3==1.35.93' mypy_boto3_builder`
|
|
109
|
+
2. Select `boto3` AWS SDK.
|
|
110
|
+
3. Add `Batch` service.
|
|
111
|
+
4. Use provided commands to install generated packages.
|
|
112
|
+
|
|
96
113
|
<a id="vscode-extension"></a>
|
|
97
114
|
|
|
98
115
|
### VSCode extension
|
|
@@ -113,12 +130,10 @@ Install `types-boto3` for `Batch` service.
|
|
|
113
130
|
# install with boto3 type annotations
|
|
114
131
|
python -m pip install 'types-boto3[batch]'
|
|
115
132
|
|
|
116
|
-
|
|
117
133
|
# Lite version does not provide session.client/resource overloads
|
|
118
134
|
# it is more RAM-friendly, but requires explicit type annotations
|
|
119
135
|
python -m pip install 'types-boto3-lite[batch]'
|
|
120
136
|
|
|
121
|
-
|
|
122
137
|
# standalone installation
|
|
123
138
|
python -m pip install types-boto3-batch
|
|
124
139
|
```
|
|
@@ -267,6 +282,31 @@ Optionally, you can install `types-boto3` to `typings` directory.
|
|
|
267
282
|
Type checking should now work. No explicit type annotations required, write
|
|
268
283
|
your `boto3` code as usual.
|
|
269
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
|
+
`types-boto3-batch` dependency in production. However, there is an issue in
|
|
291
|
+
`pylint` that it complains about undefined variables. To fix it, set all types
|
|
292
|
+
to `object` in non-`TYPE_CHECKING` mode.
|
|
293
|
+
|
|
294
|
+
```python
|
|
295
|
+
from typing import TYPE_CHECKING
|
|
296
|
+
|
|
297
|
+
if TYPE_CHECKING:
|
|
298
|
+
from types_boto3_ec2 import EC2Client, EC2ServiceResource
|
|
299
|
+
from types_boto3_ec2.waiters import BundleTaskCompleteWaiter
|
|
300
|
+
from types_boto3_ec2.paginators import DescribeVolumesPaginator
|
|
301
|
+
else:
|
|
302
|
+
EC2Client = object
|
|
303
|
+
EC2ServiceResource = object
|
|
304
|
+
BundleTaskCompleteWaiter = object
|
|
305
|
+
DescribeVolumesPaginator = object
|
|
306
|
+
|
|
307
|
+
...
|
|
308
|
+
```
|
|
309
|
+
|
|
270
310
|
<a id="explicit-type-annotations"></a>
|
|
271
311
|
|
|
272
312
|
## Explicit type annotations
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|

|
|
11
11
|
|
|
12
|
-
Type annotations for [boto3 Batch 1.35.
|
|
12
|
+
Type annotations for [boto3 Batch 1.35.93](https://pypi.org/project/boto3/)
|
|
13
13
|
compatible with [VSCode](https://code.visualstudio.com/),
|
|
14
14
|
[PyCharm](https://www.jetbrains.com/pycharm/),
|
|
15
15
|
[Emacs](https://www.gnu.org/software/emacs/),
|
|
@@ -17,8 +17,8 @@ compatible with [VSCode](https://code.visualstudio.com/),
|
|
|
17
17
|
[mypy](https://github.com/python/mypy),
|
|
18
18
|
[pyright](https://github.com/microsoft/pyright) and other tools.
|
|
19
19
|
|
|
20
|
-
Generated
|
|
21
|
-
[mypy-boto3-builder 8.
|
|
20
|
+
Generated with
|
|
21
|
+
[mypy-boto3-builder 8.8.0](https://github.com/youtype/mypy_boto3_builder).
|
|
22
22
|
|
|
23
23
|
More information can be found on
|
|
24
24
|
[types-boto3](https://pypi.org/project/types-boto3/) page and in
|
|
@@ -26,10 +26,11 @@ More information can be found on
|
|
|
26
26
|
|
|
27
27
|
See how it helps you find and fix potential bugs:
|
|
28
28
|
|
|
29
|
-

|
|
30
30
|
|
|
31
31
|
- [types-boto3-batch](#types-boto3-batch)
|
|
32
32
|
- [How to install](#how-to-install)
|
|
33
|
+
- [Generate locally (recommended)](<#generate-locally-(recommended)>)
|
|
33
34
|
- [VSCode extension](#vscode-extension)
|
|
34
35
|
- [From PyPI with pip](#from-pypi-with-pip)
|
|
35
36
|
- [How to uninstall](#how-to-uninstall)
|
|
@@ -41,6 +42,7 @@ See how it helps you find and fix potential bugs:
|
|
|
41
42
|
- [Other IDEs](#other-ides)
|
|
42
43
|
- [mypy](#mypy)
|
|
43
44
|
- [pyright](#pyright)
|
|
45
|
+
- [Pylint compatibility](#pylint-compatibility)
|
|
44
46
|
- [Explicit type annotations](#explicit-type-annotations)
|
|
45
47
|
- [Client annotations](#client-annotations)
|
|
46
48
|
- [Paginators annotations](#paginators-annotations)
|
|
@@ -59,6 +61,21 @@ See how it helps you find and fix potential bugs:
|
|
|
59
61
|
|
|
60
62
|
## How to install
|
|
61
63
|
|
|
64
|
+
<a id="generate-locally-(recommended)"></a>
|
|
65
|
+
|
|
66
|
+
### Generate locally (recommended)
|
|
67
|
+
|
|
68
|
+
You can generate type annotations for `boto3` package locally with
|
|
69
|
+
`mypy_boto3_builder`. Use
|
|
70
|
+
[uv](https://docs.astral.sh/uv/getting-started/installation/) for build
|
|
71
|
+
isolation.
|
|
72
|
+
|
|
73
|
+
1. Run mypy-boto3-builder in your package root directory:
|
|
74
|
+
`uvx --with 'boto3==1.35.93' mypy_boto3_builder`
|
|
75
|
+
2. Select `boto3` AWS SDK.
|
|
76
|
+
3. Add `Batch` service.
|
|
77
|
+
4. Use provided commands to install generated packages.
|
|
78
|
+
|
|
62
79
|
<a id="vscode-extension"></a>
|
|
63
80
|
|
|
64
81
|
### VSCode extension
|
|
@@ -79,12 +96,10 @@ Install `types-boto3` for `Batch` service.
|
|
|
79
96
|
# install with boto3 type annotations
|
|
80
97
|
python -m pip install 'types-boto3[batch]'
|
|
81
98
|
|
|
82
|
-
|
|
83
99
|
# Lite version does not provide session.client/resource overloads
|
|
84
100
|
# it is more RAM-friendly, but requires explicit type annotations
|
|
85
101
|
python -m pip install 'types-boto3-lite[batch]'
|
|
86
102
|
|
|
87
|
-
|
|
88
103
|
# standalone installation
|
|
89
104
|
python -m pip install types-boto3-batch
|
|
90
105
|
```
|
|
@@ -233,6 +248,31 @@ Optionally, you can install `types-boto3` to `typings` directory.
|
|
|
233
248
|
Type checking should now work. No explicit type annotations required, write
|
|
234
249
|
your `boto3` code as usual.
|
|
235
250
|
|
|
251
|
+
<a id="pylint-compatibility"></a>
|
|
252
|
+
|
|
253
|
+
### Pylint compatibility
|
|
254
|
+
|
|
255
|
+
It is totally safe to use `TYPE_CHECKING` flag in order to avoid
|
|
256
|
+
`types-boto3-batch` dependency in production. However, there is an issue in
|
|
257
|
+
`pylint` that it complains about undefined variables. To fix it, set all types
|
|
258
|
+
to `object` in non-`TYPE_CHECKING` mode.
|
|
259
|
+
|
|
260
|
+
```python
|
|
261
|
+
from typing import TYPE_CHECKING
|
|
262
|
+
|
|
263
|
+
if TYPE_CHECKING:
|
|
264
|
+
from types_boto3_ec2 import EC2Client, EC2ServiceResource
|
|
265
|
+
from types_boto3_ec2.waiters import BundleTaskCompleteWaiter
|
|
266
|
+
from types_boto3_ec2.paginators import DescribeVolumesPaginator
|
|
267
|
+
else:
|
|
268
|
+
EC2Client = object
|
|
269
|
+
EC2ServiceResource = object
|
|
270
|
+
BundleTaskCompleteWaiter = object
|
|
271
|
+
DescribeVolumesPaginator = object
|
|
272
|
+
|
|
273
|
+
...
|
|
274
|
+
```
|
|
275
|
+
|
|
236
276
|
<a id="explicit-type-annotations"></a>
|
|
237
277
|
|
|
238
278
|
## Explicit type annotations
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""
|
|
2
2
|
Setup script for types-boto3-batch.
|
|
3
3
|
|
|
4
|
-
Copyright
|
|
4
|
+
Copyright 2025 Vlad Emelianov
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
7
|
from pathlib import Path
|
|
@@ -13,13 +13,13 @@ LONG_DESCRIPTION = (Path(__file__).parent / "README.md").read_text()
|
|
|
13
13
|
|
|
14
14
|
setup(
|
|
15
15
|
name="types-boto3-batch",
|
|
16
|
-
version="1.35.
|
|
16
|
+
version="1.35.93",
|
|
17
17
|
packages=["types_boto3_batch"],
|
|
18
18
|
url="https://github.com/youtype/mypy_boto3_builder",
|
|
19
19
|
license="MIT License",
|
|
20
20
|
author="Vlad Emelianov",
|
|
21
21
|
author_email="vlad.emelianov.nz@gmail.com",
|
|
22
|
-
description="Type annotations for boto3 Batch 1.35.
|
|
22
|
+
description="Type annotations for boto3 Batch 1.35.93 service generated with mypy-boto3-builder 8.8.0",
|
|
23
23
|
classifiers=[
|
|
24
24
|
"Development Status :: 5 - Production/Stable",
|
|
25
25
|
"Intended Audience :: Developers",
|
|
@@ -39,7 +39,7 @@ setup(
|
|
|
39
39
|
"Programming Language :: Python :: Implementation :: CPython",
|
|
40
40
|
"Typing :: Stubs Only",
|
|
41
41
|
],
|
|
42
|
-
keywords="boto3 batch type-annotations
|
|
42
|
+
keywords="boto3 batch boto3-stubs type-annotations mypy typeshed autocomplete",
|
|
43
43
|
long_description=LONG_DESCRIPTION,
|
|
44
44
|
long_description_content_type="text/markdown",
|
|
45
45
|
package_data={"types_boto3_batch": ["py.typed", "*.pyi"]},
|
|
@@ -49,8 +49,6 @@ setup(
|
|
|
49
49
|
"Source": "https://github.com/youtype/mypy_boto3_builder",
|
|
50
50
|
"Tracker": "https://github.com/youtype/mypy_boto3_builder/issues",
|
|
51
51
|
},
|
|
52
|
-
install_requires=[
|
|
53
|
-
'typing-extensions>=4.1.0; python_version<"3.12"',
|
|
54
|
-
],
|
|
52
|
+
install_requires=['typing-extensions; python_version<"3.12"'],
|
|
55
53
|
zip_safe=False,
|
|
56
54
|
)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""
|
|
2
2
|
Main CLI entrypoint.
|
|
3
3
|
|
|
4
|
-
Copyright
|
|
4
|
+
Copyright 2025 Vlad Emelianov
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
7
|
import sys
|
|
@@ -11,14 +11,14 @@ def print_info() -> None:
|
|
|
11
11
|
"""
|
|
12
12
|
Print package info to stdout.
|
|
13
13
|
"""
|
|
14
|
-
|
|
15
|
-
"Type annotations for boto3 Batch 1.35.
|
|
16
|
-
"Version: 1.35.
|
|
17
|
-
"Builder version: 8.
|
|
14
|
+
sys.stdout.write(
|
|
15
|
+
"Type annotations for boto3 Batch 1.35.93\n"
|
|
16
|
+
"Version: 1.35.93\n"
|
|
17
|
+
"Builder version: 8.8.0\n"
|
|
18
18
|
"Docs: https://youtype.github.io/types_boto3_docs/types_boto3_batch//\n"
|
|
19
19
|
"Boto3 docs: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch.html#batch\n"
|
|
20
20
|
"Other services: https://pypi.org/project/boto3-stubs/\n"
|
|
21
|
-
"Changelog: https://github.com/youtype/mypy_boto3_builder/releases"
|
|
21
|
+
"Changelog: https://github.com/youtype/mypy_boto3_builder/releases\n"
|
|
22
22
|
)
|
|
23
23
|
|
|
24
24
|
|
|
@@ -26,7 +26,7 @@ def print_version() -> None:
|
|
|
26
26
|
"""
|
|
27
27
|
Print package version to stdout.
|
|
28
28
|
"""
|
|
29
|
-
|
|
29
|
+
sys.stdout.write("1.35.93\n")
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
def main() -> None:
|
|
@@ -34,7 +34,8 @@ def main() -> None:
|
|
|
34
34
|
Main CLI entrypoint.
|
|
35
35
|
"""
|
|
36
36
|
if "--version" in sys.argv:
|
|
37
|
-
|
|
37
|
+
print_version()
|
|
38
|
+
return
|
|
38
39
|
print_info()
|
|
39
40
|
|
|
40
41
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""
|
|
2
|
-
Type annotations for batch service
|
|
2
|
+
Type annotations for batch service Client.
|
|
3
3
|
|
|
4
|
-
[
|
|
4
|
+
[Documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/client/)
|
|
5
5
|
|
|
6
6
|
Usage::
|
|
7
7
|
|
|
@@ -13,13 +13,17 @@ Usage::
|
|
|
13
13
|
client: BatchClient = session.client("batch")
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
-
Copyright
|
|
16
|
+
Copyright 2025 Vlad Emelianov
|
|
17
17
|
"""
|
|
18
18
|
|
|
19
|
+
from __future__ import annotations
|
|
20
|
+
|
|
19
21
|
import sys
|
|
20
|
-
from typing import Any,
|
|
22
|
+
from typing import Any, overload
|
|
21
23
|
|
|
22
24
|
from botocore.client import BaseClient, ClientMeta
|
|
25
|
+
from botocore.errorfactory import BaseClientExceptions
|
|
26
|
+
from botocore.exceptions import ClientError as BotocoreClientError
|
|
23
27
|
|
|
24
28
|
from .paginator import (
|
|
25
29
|
DescribeComputeEnvironmentsPaginator,
|
|
@@ -72,6 +76,12 @@ from .type_defs import (
|
|
|
72
76
|
UpdateSchedulingPolicyRequestRequestTypeDef,
|
|
73
77
|
)
|
|
74
78
|
|
|
79
|
+
if sys.version_info >= (3, 9):
|
|
80
|
+
from builtins import dict as Dict
|
|
81
|
+
from builtins import type as Type
|
|
82
|
+
from collections.abc import Mapping
|
|
83
|
+
else:
|
|
84
|
+
from typing import Dict, Mapping, Type
|
|
75
85
|
if sys.version_info >= (3, 12):
|
|
76
86
|
from typing import Literal, Unpack
|
|
77
87
|
else:
|
|
@@ -81,15 +91,7 @@ else:
|
|
|
81
91
|
__all__ = ("BatchClient",)
|
|
82
92
|
|
|
83
93
|
|
|
84
|
-
class
|
|
85
|
-
MSG_TEMPLATE: str
|
|
86
|
-
|
|
87
|
-
def __init__(self, error_response: Mapping[str, Any], operation_name: str) -> None:
|
|
88
|
-
self.response: Dict[str, Any]
|
|
89
|
-
self.operation_name: str
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
class Exceptions:
|
|
94
|
+
class Exceptions(BaseClientExceptions):
|
|
93
95
|
ClientError: Type[BotocoreClientError]
|
|
94
96
|
ClientException: Type[BotocoreClientError]
|
|
95
97
|
ServerException: Type[BotocoreClientError]
|
|
@@ -130,12 +132,6 @@ class BatchClient(BaseClient):
|
|
|
130
132
|
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/client/#generate_presigned_url)
|
|
131
133
|
"""
|
|
132
134
|
|
|
133
|
-
def close(self) -> None:
|
|
134
|
-
"""
|
|
135
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/client/close.html)
|
|
136
|
-
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/client/#close)
|
|
137
|
-
"""
|
|
138
|
-
|
|
139
135
|
def cancel_job(self, **kwargs: Unpack[CancelJobRequestRequestTypeDef]) -> Dict[str, Any]:
|
|
140
136
|
"""
|
|
141
137
|
Cancels a job in an Batch job queue.
|
|
@@ -380,8 +376,8 @@ class BatchClient(BaseClient):
|
|
|
380
376
|
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/client/#update_scheduling_policy)
|
|
381
377
|
"""
|
|
382
378
|
|
|
383
|
-
@overload
|
|
384
|
-
def get_paginator(
|
|
379
|
+
@overload # type: ignore[override]
|
|
380
|
+
def get_paginator( # type: ignore[override]
|
|
385
381
|
self, operation_name: Literal["describe_compute_environments"]
|
|
386
382
|
) -> DescribeComputeEnvironmentsPaginator:
|
|
387
383
|
"""
|
|
@@ -391,8 +387,8 @@ class BatchClient(BaseClient):
|
|
|
391
387
|
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/client/#get_paginator)
|
|
392
388
|
"""
|
|
393
389
|
|
|
394
|
-
@overload
|
|
395
|
-
def get_paginator(
|
|
390
|
+
@overload # type: ignore[override]
|
|
391
|
+
def get_paginator( # type: ignore[override]
|
|
396
392
|
self, operation_name: Literal["describe_job_definitions"]
|
|
397
393
|
) -> DescribeJobDefinitionsPaginator:
|
|
398
394
|
"""
|
|
@@ -402,8 +398,8 @@ class BatchClient(BaseClient):
|
|
|
402
398
|
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/client/#get_paginator)
|
|
403
399
|
"""
|
|
404
400
|
|
|
405
|
-
@overload
|
|
406
|
-
def get_paginator(
|
|
401
|
+
@overload # type: ignore[override]
|
|
402
|
+
def get_paginator( # type: ignore[override]
|
|
407
403
|
self, operation_name: Literal["describe_job_queues"]
|
|
408
404
|
) -> DescribeJobQueuesPaginator:
|
|
409
405
|
"""
|
|
@@ -413,8 +409,10 @@ class BatchClient(BaseClient):
|
|
|
413
409
|
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/client/#get_paginator)
|
|
414
410
|
"""
|
|
415
411
|
|
|
416
|
-
@overload
|
|
417
|
-
def get_paginator(
|
|
412
|
+
@overload # type: ignore[override]
|
|
413
|
+
def get_paginator( # type: ignore[override]
|
|
414
|
+
self, operation_name: Literal["list_jobs"]
|
|
415
|
+
) -> ListJobsPaginator:
|
|
418
416
|
"""
|
|
419
417
|
Create a paginator for an operation.
|
|
420
418
|
|
|
@@ -422,8 +420,8 @@ class BatchClient(BaseClient):
|
|
|
422
420
|
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/client/#get_paginator)
|
|
423
421
|
"""
|
|
424
422
|
|
|
425
|
-
@overload
|
|
426
|
-
def get_paginator(
|
|
423
|
+
@overload # type: ignore[override]
|
|
424
|
+
def get_paginator( # type: ignore[override]
|
|
427
425
|
self, operation_name: Literal["list_scheduling_policies"]
|
|
428
426
|
) -> ListSchedulingPoliciesPaginator:
|
|
429
427
|
"""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""
|
|
2
|
-
Type annotations for batch service
|
|
2
|
+
Type annotations for batch service Client.
|
|
3
3
|
|
|
4
|
-
[
|
|
4
|
+
[Documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/client/)
|
|
5
5
|
|
|
6
6
|
Usage::
|
|
7
7
|
|
|
@@ -13,13 +13,17 @@ Usage::
|
|
|
13
13
|
client: BatchClient = session.client("batch")
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
-
Copyright
|
|
16
|
+
Copyright 2025 Vlad Emelianov
|
|
17
17
|
"""
|
|
18
18
|
|
|
19
|
+
from __future__ import annotations
|
|
20
|
+
|
|
19
21
|
import sys
|
|
20
|
-
from typing import Any,
|
|
22
|
+
from typing import Any, overload
|
|
21
23
|
|
|
22
24
|
from botocore.client import BaseClient, ClientMeta
|
|
25
|
+
from botocore.errorfactory import BaseClientExceptions
|
|
26
|
+
from botocore.exceptions import ClientError as BotocoreClientError
|
|
23
27
|
|
|
24
28
|
from .paginator import (
|
|
25
29
|
DescribeComputeEnvironmentsPaginator,
|
|
@@ -72,6 +76,12 @@ from .type_defs import (
|
|
|
72
76
|
UpdateSchedulingPolicyRequestRequestTypeDef,
|
|
73
77
|
)
|
|
74
78
|
|
|
79
|
+
if sys.version_info >= (3, 9):
|
|
80
|
+
from builtins import dict as Dict
|
|
81
|
+
from builtins import type as Type
|
|
82
|
+
from collections.abc import Mapping
|
|
83
|
+
else:
|
|
84
|
+
from typing import Dict, Mapping, Type
|
|
75
85
|
if sys.version_info >= (3, 12):
|
|
76
86
|
from typing import Literal, Unpack
|
|
77
87
|
else:
|
|
@@ -79,14 +89,7 @@ else:
|
|
|
79
89
|
|
|
80
90
|
__all__ = ("BatchClient",)
|
|
81
91
|
|
|
82
|
-
class
|
|
83
|
-
MSG_TEMPLATE: str
|
|
84
|
-
|
|
85
|
-
def __init__(self, error_response: Mapping[str, Any], operation_name: str) -> None:
|
|
86
|
-
self.response: Dict[str, Any]
|
|
87
|
-
self.operation_name: str
|
|
88
|
-
|
|
89
|
-
class Exceptions:
|
|
92
|
+
class Exceptions(BaseClientExceptions):
|
|
90
93
|
ClientError: Type[BotocoreClientError]
|
|
91
94
|
ClientException: Type[BotocoreClientError]
|
|
92
95
|
ServerException: Type[BotocoreClientError]
|
|
@@ -126,12 +129,6 @@ class BatchClient(BaseClient):
|
|
|
126
129
|
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/client/#generate_presigned_url)
|
|
127
130
|
"""
|
|
128
131
|
|
|
129
|
-
def close(self) -> None:
|
|
130
|
-
"""
|
|
131
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/client/close.html)
|
|
132
|
-
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/client/#close)
|
|
133
|
-
"""
|
|
134
|
-
|
|
135
132
|
def cancel_job(self, **kwargs: Unpack[CancelJobRequestRequestTypeDef]) -> Dict[str, Any]:
|
|
136
133
|
"""
|
|
137
134
|
Cancels a job in an Batch job queue.
|
|
@@ -376,8 +373,8 @@ class BatchClient(BaseClient):
|
|
|
376
373
|
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/client/#update_scheduling_policy)
|
|
377
374
|
"""
|
|
378
375
|
|
|
379
|
-
@overload
|
|
380
|
-
def get_paginator(
|
|
376
|
+
@overload # type: ignore[override]
|
|
377
|
+
def get_paginator( # type: ignore[override]
|
|
381
378
|
self, operation_name: Literal["describe_compute_environments"]
|
|
382
379
|
) -> DescribeComputeEnvironmentsPaginator:
|
|
383
380
|
"""
|
|
@@ -387,8 +384,8 @@ class BatchClient(BaseClient):
|
|
|
387
384
|
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/client/#get_paginator)
|
|
388
385
|
"""
|
|
389
386
|
|
|
390
|
-
@overload
|
|
391
|
-
def get_paginator(
|
|
387
|
+
@overload # type: ignore[override]
|
|
388
|
+
def get_paginator( # type: ignore[override]
|
|
392
389
|
self, operation_name: Literal["describe_job_definitions"]
|
|
393
390
|
) -> DescribeJobDefinitionsPaginator:
|
|
394
391
|
"""
|
|
@@ -398,8 +395,8 @@ class BatchClient(BaseClient):
|
|
|
398
395
|
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/client/#get_paginator)
|
|
399
396
|
"""
|
|
400
397
|
|
|
401
|
-
@overload
|
|
402
|
-
def get_paginator(
|
|
398
|
+
@overload # type: ignore[override]
|
|
399
|
+
def get_paginator( # type: ignore[override]
|
|
403
400
|
self, operation_name: Literal["describe_job_queues"]
|
|
404
401
|
) -> DescribeJobQueuesPaginator:
|
|
405
402
|
"""
|
|
@@ -409,8 +406,10 @@ class BatchClient(BaseClient):
|
|
|
409
406
|
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/client/#get_paginator)
|
|
410
407
|
"""
|
|
411
408
|
|
|
412
|
-
@overload
|
|
413
|
-
def get_paginator(
|
|
409
|
+
@overload # type: ignore[override]
|
|
410
|
+
def get_paginator( # type: ignore[override]
|
|
411
|
+
self, operation_name: Literal["list_jobs"]
|
|
412
|
+
) -> ListJobsPaginator:
|
|
414
413
|
"""
|
|
415
414
|
Create a paginator for an operation.
|
|
416
415
|
|
|
@@ -418,8 +417,8 @@ class BatchClient(BaseClient):
|
|
|
418
417
|
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/client/#get_paginator)
|
|
419
418
|
"""
|
|
420
419
|
|
|
421
|
-
@overload
|
|
422
|
-
def get_paginator(
|
|
420
|
+
@overload # type: ignore[override]
|
|
421
|
+
def get_paginator( # type: ignore[override]
|
|
423
422
|
self, operation_name: Literal["list_scheduling_policies"]
|
|
424
423
|
) -> ListSchedulingPoliciesPaginator:
|
|
425
424
|
"""
|