mypy-boto3-batch 1.37.0__py3-none-any.whl → 1.37.2__py3-none-any.whl
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.
- mypy_boto3_batch/__init__.py +8 -0
- mypy_boto3_batch/__init__.pyi +8 -0
- mypy_boto3_batch/__main__.py +3 -3
- mypy_boto3_batch/client.py +95 -0
- mypy_boto3_batch/client.pyi +95 -0
- mypy_boto3_batch/literals.py +6 -0
- mypy_boto3_batch/literals.pyi +6 -0
- mypy_boto3_batch/paginator.py +54 -0
- mypy_boto3_batch/paginator.pyi +48 -0
- mypy_boto3_batch/type_defs.py +149 -0
- mypy_boto3_batch/type_defs.pyi +130 -0
- mypy_boto3_batch/version.py +1 -1
- {mypy_boto3_batch-1.37.0.dist-info → mypy_boto3_batch-1.37.2.dist-info}/METADATA +12 -4
- mypy_boto3_batch-1.37.2.dist-info/RECORD +18 -0
- {mypy_boto3_batch-1.37.0.dist-info → mypy_boto3_batch-1.37.2.dist-info}/WHEEL +1 -1
- mypy_boto3_batch-1.37.0.dist-info/RECORD +0 -18
- {mypy_boto3_batch-1.37.0.dist-info → mypy_boto3_batch-1.37.2.dist-info}/LICENSE +0 -0
- {mypy_boto3_batch-1.37.0.dist-info → mypy_boto3_batch-1.37.2.dist-info}/top_level.txt +0 -0
mypy_boto3_batch/__init__.py
CHANGED
|
@@ -15,6 +15,8 @@ Usage::
|
|
|
15
15
|
DescribeComputeEnvironmentsPaginator,
|
|
16
16
|
DescribeJobDefinitionsPaginator,
|
|
17
17
|
DescribeJobQueuesPaginator,
|
|
18
|
+
ListConsumableResourcesPaginator,
|
|
19
|
+
ListJobsByConsumableResourcePaginator,
|
|
18
20
|
ListJobsPaginator,
|
|
19
21
|
ListSchedulingPoliciesPaginator,
|
|
20
22
|
)
|
|
@@ -25,6 +27,8 @@ Usage::
|
|
|
25
27
|
describe_compute_environments_paginator: DescribeComputeEnvironmentsPaginator = client.get_paginator("describe_compute_environments")
|
|
26
28
|
describe_job_definitions_paginator: DescribeJobDefinitionsPaginator = client.get_paginator("describe_job_definitions")
|
|
27
29
|
describe_job_queues_paginator: DescribeJobQueuesPaginator = client.get_paginator("describe_job_queues")
|
|
30
|
+
list_consumable_resources_paginator: ListConsumableResourcesPaginator = client.get_paginator("list_consumable_resources")
|
|
31
|
+
list_jobs_by_consumable_resource_paginator: ListJobsByConsumableResourcePaginator = client.get_paginator("list_jobs_by_consumable_resource")
|
|
28
32
|
list_jobs_paginator: ListJobsPaginator = client.get_paginator("list_jobs")
|
|
29
33
|
list_scheduling_policies_paginator: ListSchedulingPoliciesPaginator = client.get_paginator("list_scheduling_policies")
|
|
30
34
|
```
|
|
@@ -35,6 +39,8 @@ from .paginator import (
|
|
|
35
39
|
DescribeComputeEnvironmentsPaginator,
|
|
36
40
|
DescribeJobDefinitionsPaginator,
|
|
37
41
|
DescribeJobQueuesPaginator,
|
|
42
|
+
ListConsumableResourcesPaginator,
|
|
43
|
+
ListJobsByConsumableResourcePaginator,
|
|
38
44
|
ListJobsPaginator,
|
|
39
45
|
ListSchedulingPoliciesPaginator,
|
|
40
46
|
)
|
|
@@ -48,6 +54,8 @@ __all__ = (
|
|
|
48
54
|
"DescribeComputeEnvironmentsPaginator",
|
|
49
55
|
"DescribeJobDefinitionsPaginator",
|
|
50
56
|
"DescribeJobQueuesPaginator",
|
|
57
|
+
"ListConsumableResourcesPaginator",
|
|
58
|
+
"ListJobsByConsumableResourcePaginator",
|
|
51
59
|
"ListJobsPaginator",
|
|
52
60
|
"ListSchedulingPoliciesPaginator",
|
|
53
61
|
)
|
mypy_boto3_batch/__init__.pyi
CHANGED
|
@@ -15,6 +15,8 @@ Usage::
|
|
|
15
15
|
DescribeComputeEnvironmentsPaginator,
|
|
16
16
|
DescribeJobDefinitionsPaginator,
|
|
17
17
|
DescribeJobQueuesPaginator,
|
|
18
|
+
ListConsumableResourcesPaginator,
|
|
19
|
+
ListJobsByConsumableResourcePaginator,
|
|
18
20
|
ListJobsPaginator,
|
|
19
21
|
ListSchedulingPoliciesPaginator,
|
|
20
22
|
)
|
|
@@ -25,6 +27,8 @@ Usage::
|
|
|
25
27
|
describe_compute_environments_paginator: DescribeComputeEnvironmentsPaginator = client.get_paginator("describe_compute_environments")
|
|
26
28
|
describe_job_definitions_paginator: DescribeJobDefinitionsPaginator = client.get_paginator("describe_job_definitions")
|
|
27
29
|
describe_job_queues_paginator: DescribeJobQueuesPaginator = client.get_paginator("describe_job_queues")
|
|
30
|
+
list_consumable_resources_paginator: ListConsumableResourcesPaginator = client.get_paginator("list_consumable_resources")
|
|
31
|
+
list_jobs_by_consumable_resource_paginator: ListJobsByConsumableResourcePaginator = client.get_paginator("list_jobs_by_consumable_resource")
|
|
28
32
|
list_jobs_paginator: ListJobsPaginator = client.get_paginator("list_jobs")
|
|
29
33
|
list_scheduling_policies_paginator: ListSchedulingPoliciesPaginator = client.get_paginator("list_scheduling_policies")
|
|
30
34
|
```
|
|
@@ -35,6 +39,8 @@ from .paginator import (
|
|
|
35
39
|
DescribeComputeEnvironmentsPaginator,
|
|
36
40
|
DescribeJobDefinitionsPaginator,
|
|
37
41
|
DescribeJobQueuesPaginator,
|
|
42
|
+
ListConsumableResourcesPaginator,
|
|
43
|
+
ListJobsByConsumableResourcePaginator,
|
|
38
44
|
ListJobsPaginator,
|
|
39
45
|
ListSchedulingPoliciesPaginator,
|
|
40
46
|
)
|
|
@@ -47,6 +53,8 @@ __all__ = (
|
|
|
47
53
|
"DescribeComputeEnvironmentsPaginator",
|
|
48
54
|
"DescribeJobDefinitionsPaginator",
|
|
49
55
|
"DescribeJobQueuesPaginator",
|
|
56
|
+
"ListConsumableResourcesPaginator",
|
|
57
|
+
"ListJobsByConsumableResourcePaginator",
|
|
50
58
|
"ListJobsPaginator",
|
|
51
59
|
"ListSchedulingPoliciesPaginator",
|
|
52
60
|
)
|
mypy_boto3_batch/__main__.py
CHANGED
|
@@ -12,8 +12,8 @@ def print_info() -> None:
|
|
|
12
12
|
Print package info to stdout.
|
|
13
13
|
"""
|
|
14
14
|
sys.stdout.write(
|
|
15
|
-
"Type annotations for boto3 Batch 1.37.
|
|
16
|
-
"Version: 1.37.
|
|
15
|
+
"Type annotations for boto3 Batch 1.37.2\n"
|
|
16
|
+
"Version: 1.37.2\n"
|
|
17
17
|
"Builder version: 8.9.2\n"
|
|
18
18
|
"Docs: https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch//\n"
|
|
19
19
|
"Boto3 docs: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch.html#batch\n"
|
|
@@ -26,7 +26,7 @@ def print_version() -> None:
|
|
|
26
26
|
"""
|
|
27
27
|
Print package version to stdout.
|
|
28
28
|
"""
|
|
29
|
-
sys.stdout.write("1.37.
|
|
29
|
+
sys.stdout.write("1.37.2\n")
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
def main() -> None:
|
mypy_boto3_batch/client.py
CHANGED
|
@@ -29,6 +29,8 @@ from .paginator import (
|
|
|
29
29
|
DescribeComputeEnvironmentsPaginator,
|
|
30
30
|
DescribeJobDefinitionsPaginator,
|
|
31
31
|
DescribeJobQueuesPaginator,
|
|
32
|
+
ListConsumableResourcesPaginator,
|
|
33
|
+
ListJobsByConsumableResourcePaginator,
|
|
32
34
|
ListJobsPaginator,
|
|
33
35
|
ListSchedulingPoliciesPaginator,
|
|
34
36
|
)
|
|
@@ -36,16 +38,21 @@ from .type_defs import (
|
|
|
36
38
|
CancelJobRequestTypeDef,
|
|
37
39
|
CreateComputeEnvironmentRequestTypeDef,
|
|
38
40
|
CreateComputeEnvironmentResponseTypeDef,
|
|
41
|
+
CreateConsumableResourceRequestTypeDef,
|
|
42
|
+
CreateConsumableResourceResponseTypeDef,
|
|
39
43
|
CreateJobQueueRequestTypeDef,
|
|
40
44
|
CreateJobQueueResponseTypeDef,
|
|
41
45
|
CreateSchedulingPolicyRequestTypeDef,
|
|
42
46
|
CreateSchedulingPolicyResponseTypeDef,
|
|
43
47
|
DeleteComputeEnvironmentRequestTypeDef,
|
|
48
|
+
DeleteConsumableResourceRequestTypeDef,
|
|
44
49
|
DeleteJobQueueRequestTypeDef,
|
|
45
50
|
DeleteSchedulingPolicyRequestTypeDef,
|
|
46
51
|
DeregisterJobDefinitionRequestTypeDef,
|
|
47
52
|
DescribeComputeEnvironmentsRequestTypeDef,
|
|
48
53
|
DescribeComputeEnvironmentsResponseTypeDef,
|
|
54
|
+
DescribeConsumableResourceRequestTypeDef,
|
|
55
|
+
DescribeConsumableResourceResponseTypeDef,
|
|
49
56
|
DescribeJobDefinitionsRequestTypeDef,
|
|
50
57
|
DescribeJobDefinitionsResponseTypeDef,
|
|
51
58
|
DescribeJobQueuesRequestTypeDef,
|
|
@@ -56,6 +63,10 @@ from .type_defs import (
|
|
|
56
63
|
DescribeSchedulingPoliciesResponseTypeDef,
|
|
57
64
|
GetJobQueueSnapshotRequestTypeDef,
|
|
58
65
|
GetJobQueueSnapshotResponseTypeDef,
|
|
66
|
+
ListConsumableResourcesRequestTypeDef,
|
|
67
|
+
ListConsumableResourcesResponseTypeDef,
|
|
68
|
+
ListJobsByConsumableResourceRequestTypeDef,
|
|
69
|
+
ListJobsByConsumableResourceResponseTypeDef,
|
|
59
70
|
ListJobsRequestTypeDef,
|
|
60
71
|
ListJobsResponseTypeDef,
|
|
61
72
|
ListSchedulingPoliciesRequestTypeDef,
|
|
@@ -71,6 +82,8 @@ from .type_defs import (
|
|
|
71
82
|
UntagResourceRequestTypeDef,
|
|
72
83
|
UpdateComputeEnvironmentRequestTypeDef,
|
|
73
84
|
UpdateComputeEnvironmentResponseTypeDef,
|
|
85
|
+
UpdateConsumableResourceRequestTypeDef,
|
|
86
|
+
UpdateConsumableResourceResponseTypeDef,
|
|
74
87
|
UpdateJobQueueRequestTypeDef,
|
|
75
88
|
UpdateJobQueueResponseTypeDef,
|
|
76
89
|
UpdateSchedulingPolicyRequestTypeDef,
|
|
@@ -150,6 +163,16 @@ class BatchClient(BaseClient):
|
|
|
150
163
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#create_compute_environment)
|
|
151
164
|
"""
|
|
152
165
|
|
|
166
|
+
def create_consumable_resource(
|
|
167
|
+
self, **kwargs: Unpack[CreateConsumableResourceRequestTypeDef]
|
|
168
|
+
) -> CreateConsumableResourceResponseTypeDef:
|
|
169
|
+
"""
|
|
170
|
+
Creates an Batch consumable resource.
|
|
171
|
+
|
|
172
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/client/create_consumable_resource.html)
|
|
173
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#create_consumable_resource)
|
|
174
|
+
"""
|
|
175
|
+
|
|
153
176
|
def create_job_queue(
|
|
154
177
|
self, **kwargs: Unpack[CreateJobQueueRequestTypeDef]
|
|
155
178
|
) -> CreateJobQueueResponseTypeDef:
|
|
@@ -180,6 +203,16 @@ class BatchClient(BaseClient):
|
|
|
180
203
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#delete_compute_environment)
|
|
181
204
|
"""
|
|
182
205
|
|
|
206
|
+
def delete_consumable_resource(
|
|
207
|
+
self, **kwargs: Unpack[DeleteConsumableResourceRequestTypeDef]
|
|
208
|
+
) -> Dict[str, Any]:
|
|
209
|
+
"""
|
|
210
|
+
Deletes the specified consumable resource.
|
|
211
|
+
|
|
212
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/client/delete_consumable_resource.html)
|
|
213
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#delete_consumable_resource)
|
|
214
|
+
"""
|
|
215
|
+
|
|
183
216
|
def delete_job_queue(self, **kwargs: Unpack[DeleteJobQueueRequestTypeDef]) -> Dict[str, Any]:
|
|
184
217
|
"""
|
|
185
218
|
Deletes the specified job queue.
|
|
@@ -218,6 +251,16 @@ class BatchClient(BaseClient):
|
|
|
218
251
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#describe_compute_environments)
|
|
219
252
|
"""
|
|
220
253
|
|
|
254
|
+
def describe_consumable_resource(
|
|
255
|
+
self, **kwargs: Unpack[DescribeConsumableResourceRequestTypeDef]
|
|
256
|
+
) -> DescribeConsumableResourceResponseTypeDef:
|
|
257
|
+
"""
|
|
258
|
+
Returns a description of the specified consumable resource.
|
|
259
|
+
|
|
260
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/client/describe_consumable_resource.html)
|
|
261
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#describe_consumable_resource)
|
|
262
|
+
"""
|
|
263
|
+
|
|
221
264
|
def describe_job_definitions(
|
|
222
265
|
self, **kwargs: Unpack[DescribeJobDefinitionsRequestTypeDef]
|
|
223
266
|
) -> DescribeJobDefinitionsResponseTypeDef:
|
|
@@ -269,6 +312,16 @@ class BatchClient(BaseClient):
|
|
|
269
312
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#get_job_queue_snapshot)
|
|
270
313
|
"""
|
|
271
314
|
|
|
315
|
+
def list_consumable_resources(
|
|
316
|
+
self, **kwargs: Unpack[ListConsumableResourcesRequestTypeDef]
|
|
317
|
+
) -> ListConsumableResourcesResponseTypeDef:
|
|
318
|
+
"""
|
|
319
|
+
Returns a list of Batch consumable resources.
|
|
320
|
+
|
|
321
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/client/list_consumable_resources.html)
|
|
322
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#list_consumable_resources)
|
|
323
|
+
"""
|
|
324
|
+
|
|
272
325
|
def list_jobs(self, **kwargs: Unpack[ListJobsRequestTypeDef]) -> ListJobsResponseTypeDef:
|
|
273
326
|
"""
|
|
274
327
|
Returns a list of Batch jobs.
|
|
@@ -277,6 +330,16 @@ class BatchClient(BaseClient):
|
|
|
277
330
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#list_jobs)
|
|
278
331
|
"""
|
|
279
332
|
|
|
333
|
+
def list_jobs_by_consumable_resource(
|
|
334
|
+
self, **kwargs: Unpack[ListJobsByConsumableResourceRequestTypeDef]
|
|
335
|
+
) -> ListJobsByConsumableResourceResponseTypeDef:
|
|
336
|
+
"""
|
|
337
|
+
Returns a list of Batch jobs that require a specific consumable resource.
|
|
338
|
+
|
|
339
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/client/list_jobs_by_consumable_resource.html)
|
|
340
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#list_jobs_by_consumable_resource)
|
|
341
|
+
"""
|
|
342
|
+
|
|
280
343
|
def list_scheduling_policies(
|
|
281
344
|
self, **kwargs: Unpack[ListSchedulingPoliciesRequestTypeDef]
|
|
282
345
|
) -> ListSchedulingPoliciesResponseTypeDef:
|
|
@@ -350,6 +413,16 @@ class BatchClient(BaseClient):
|
|
|
350
413
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#update_compute_environment)
|
|
351
414
|
"""
|
|
352
415
|
|
|
416
|
+
def update_consumable_resource(
|
|
417
|
+
self, **kwargs: Unpack[UpdateConsumableResourceRequestTypeDef]
|
|
418
|
+
) -> UpdateConsumableResourceResponseTypeDef:
|
|
419
|
+
"""
|
|
420
|
+
Updates a consumable resource.
|
|
421
|
+
|
|
422
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/client/update_consumable_resource.html)
|
|
423
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#update_consumable_resource)
|
|
424
|
+
"""
|
|
425
|
+
|
|
353
426
|
def update_job_queue(
|
|
354
427
|
self, **kwargs: Unpack[UpdateJobQueueRequestTypeDef]
|
|
355
428
|
) -> UpdateJobQueueResponseTypeDef:
|
|
@@ -403,6 +476,28 @@ class BatchClient(BaseClient):
|
|
|
403
476
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#get_paginator)
|
|
404
477
|
"""
|
|
405
478
|
|
|
479
|
+
@overload # type: ignore[override]
|
|
480
|
+
def get_paginator( # type: ignore[override]
|
|
481
|
+
self, operation_name: Literal["list_consumable_resources"]
|
|
482
|
+
) -> ListConsumableResourcesPaginator:
|
|
483
|
+
"""
|
|
484
|
+
Create a paginator for an operation.
|
|
485
|
+
|
|
486
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/client/get_paginator.html)
|
|
487
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#get_paginator)
|
|
488
|
+
"""
|
|
489
|
+
|
|
490
|
+
@overload # type: ignore[override]
|
|
491
|
+
def get_paginator( # type: ignore[override]
|
|
492
|
+
self, operation_name: Literal["list_jobs_by_consumable_resource"]
|
|
493
|
+
) -> ListJobsByConsumableResourcePaginator:
|
|
494
|
+
"""
|
|
495
|
+
Create a paginator for an operation.
|
|
496
|
+
|
|
497
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/client/get_paginator.html)
|
|
498
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#get_paginator)
|
|
499
|
+
"""
|
|
500
|
+
|
|
406
501
|
@overload # type: ignore[override]
|
|
407
502
|
def get_paginator( # type: ignore[override]
|
|
408
503
|
self, operation_name: Literal["list_jobs"]
|
mypy_boto3_batch/client.pyi
CHANGED
|
@@ -29,6 +29,8 @@ from .paginator import (
|
|
|
29
29
|
DescribeComputeEnvironmentsPaginator,
|
|
30
30
|
DescribeJobDefinitionsPaginator,
|
|
31
31
|
DescribeJobQueuesPaginator,
|
|
32
|
+
ListConsumableResourcesPaginator,
|
|
33
|
+
ListJobsByConsumableResourcePaginator,
|
|
32
34
|
ListJobsPaginator,
|
|
33
35
|
ListSchedulingPoliciesPaginator,
|
|
34
36
|
)
|
|
@@ -36,16 +38,21 @@ from .type_defs import (
|
|
|
36
38
|
CancelJobRequestTypeDef,
|
|
37
39
|
CreateComputeEnvironmentRequestTypeDef,
|
|
38
40
|
CreateComputeEnvironmentResponseTypeDef,
|
|
41
|
+
CreateConsumableResourceRequestTypeDef,
|
|
42
|
+
CreateConsumableResourceResponseTypeDef,
|
|
39
43
|
CreateJobQueueRequestTypeDef,
|
|
40
44
|
CreateJobQueueResponseTypeDef,
|
|
41
45
|
CreateSchedulingPolicyRequestTypeDef,
|
|
42
46
|
CreateSchedulingPolicyResponseTypeDef,
|
|
43
47
|
DeleteComputeEnvironmentRequestTypeDef,
|
|
48
|
+
DeleteConsumableResourceRequestTypeDef,
|
|
44
49
|
DeleteJobQueueRequestTypeDef,
|
|
45
50
|
DeleteSchedulingPolicyRequestTypeDef,
|
|
46
51
|
DeregisterJobDefinitionRequestTypeDef,
|
|
47
52
|
DescribeComputeEnvironmentsRequestTypeDef,
|
|
48
53
|
DescribeComputeEnvironmentsResponseTypeDef,
|
|
54
|
+
DescribeConsumableResourceRequestTypeDef,
|
|
55
|
+
DescribeConsumableResourceResponseTypeDef,
|
|
49
56
|
DescribeJobDefinitionsRequestTypeDef,
|
|
50
57
|
DescribeJobDefinitionsResponseTypeDef,
|
|
51
58
|
DescribeJobQueuesRequestTypeDef,
|
|
@@ -56,6 +63,10 @@ from .type_defs import (
|
|
|
56
63
|
DescribeSchedulingPoliciesResponseTypeDef,
|
|
57
64
|
GetJobQueueSnapshotRequestTypeDef,
|
|
58
65
|
GetJobQueueSnapshotResponseTypeDef,
|
|
66
|
+
ListConsumableResourcesRequestTypeDef,
|
|
67
|
+
ListConsumableResourcesResponseTypeDef,
|
|
68
|
+
ListJobsByConsumableResourceRequestTypeDef,
|
|
69
|
+
ListJobsByConsumableResourceResponseTypeDef,
|
|
59
70
|
ListJobsRequestTypeDef,
|
|
60
71
|
ListJobsResponseTypeDef,
|
|
61
72
|
ListSchedulingPoliciesRequestTypeDef,
|
|
@@ -71,6 +82,8 @@ from .type_defs import (
|
|
|
71
82
|
UntagResourceRequestTypeDef,
|
|
72
83
|
UpdateComputeEnvironmentRequestTypeDef,
|
|
73
84
|
UpdateComputeEnvironmentResponseTypeDef,
|
|
85
|
+
UpdateConsumableResourceRequestTypeDef,
|
|
86
|
+
UpdateConsumableResourceResponseTypeDef,
|
|
74
87
|
UpdateJobQueueRequestTypeDef,
|
|
75
88
|
UpdateJobQueueResponseTypeDef,
|
|
76
89
|
UpdateSchedulingPolicyRequestTypeDef,
|
|
@@ -147,6 +160,16 @@ class BatchClient(BaseClient):
|
|
|
147
160
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#create_compute_environment)
|
|
148
161
|
"""
|
|
149
162
|
|
|
163
|
+
def create_consumable_resource(
|
|
164
|
+
self, **kwargs: Unpack[CreateConsumableResourceRequestTypeDef]
|
|
165
|
+
) -> CreateConsumableResourceResponseTypeDef:
|
|
166
|
+
"""
|
|
167
|
+
Creates an Batch consumable resource.
|
|
168
|
+
|
|
169
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/client/create_consumable_resource.html)
|
|
170
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#create_consumable_resource)
|
|
171
|
+
"""
|
|
172
|
+
|
|
150
173
|
def create_job_queue(
|
|
151
174
|
self, **kwargs: Unpack[CreateJobQueueRequestTypeDef]
|
|
152
175
|
) -> CreateJobQueueResponseTypeDef:
|
|
@@ -177,6 +200,16 @@ class BatchClient(BaseClient):
|
|
|
177
200
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#delete_compute_environment)
|
|
178
201
|
"""
|
|
179
202
|
|
|
203
|
+
def delete_consumable_resource(
|
|
204
|
+
self, **kwargs: Unpack[DeleteConsumableResourceRequestTypeDef]
|
|
205
|
+
) -> Dict[str, Any]:
|
|
206
|
+
"""
|
|
207
|
+
Deletes the specified consumable resource.
|
|
208
|
+
|
|
209
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/client/delete_consumable_resource.html)
|
|
210
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#delete_consumable_resource)
|
|
211
|
+
"""
|
|
212
|
+
|
|
180
213
|
def delete_job_queue(self, **kwargs: Unpack[DeleteJobQueueRequestTypeDef]) -> Dict[str, Any]:
|
|
181
214
|
"""
|
|
182
215
|
Deletes the specified job queue.
|
|
@@ -215,6 +248,16 @@ class BatchClient(BaseClient):
|
|
|
215
248
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#describe_compute_environments)
|
|
216
249
|
"""
|
|
217
250
|
|
|
251
|
+
def describe_consumable_resource(
|
|
252
|
+
self, **kwargs: Unpack[DescribeConsumableResourceRequestTypeDef]
|
|
253
|
+
) -> DescribeConsumableResourceResponseTypeDef:
|
|
254
|
+
"""
|
|
255
|
+
Returns a description of the specified consumable resource.
|
|
256
|
+
|
|
257
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/client/describe_consumable_resource.html)
|
|
258
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#describe_consumable_resource)
|
|
259
|
+
"""
|
|
260
|
+
|
|
218
261
|
def describe_job_definitions(
|
|
219
262
|
self, **kwargs: Unpack[DescribeJobDefinitionsRequestTypeDef]
|
|
220
263
|
) -> DescribeJobDefinitionsResponseTypeDef:
|
|
@@ -266,6 +309,16 @@ class BatchClient(BaseClient):
|
|
|
266
309
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#get_job_queue_snapshot)
|
|
267
310
|
"""
|
|
268
311
|
|
|
312
|
+
def list_consumable_resources(
|
|
313
|
+
self, **kwargs: Unpack[ListConsumableResourcesRequestTypeDef]
|
|
314
|
+
) -> ListConsumableResourcesResponseTypeDef:
|
|
315
|
+
"""
|
|
316
|
+
Returns a list of Batch consumable resources.
|
|
317
|
+
|
|
318
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/client/list_consumable_resources.html)
|
|
319
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#list_consumable_resources)
|
|
320
|
+
"""
|
|
321
|
+
|
|
269
322
|
def list_jobs(self, **kwargs: Unpack[ListJobsRequestTypeDef]) -> ListJobsResponseTypeDef:
|
|
270
323
|
"""
|
|
271
324
|
Returns a list of Batch jobs.
|
|
@@ -274,6 +327,16 @@ class BatchClient(BaseClient):
|
|
|
274
327
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#list_jobs)
|
|
275
328
|
"""
|
|
276
329
|
|
|
330
|
+
def list_jobs_by_consumable_resource(
|
|
331
|
+
self, **kwargs: Unpack[ListJobsByConsumableResourceRequestTypeDef]
|
|
332
|
+
) -> ListJobsByConsumableResourceResponseTypeDef:
|
|
333
|
+
"""
|
|
334
|
+
Returns a list of Batch jobs that require a specific consumable resource.
|
|
335
|
+
|
|
336
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/client/list_jobs_by_consumable_resource.html)
|
|
337
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#list_jobs_by_consumable_resource)
|
|
338
|
+
"""
|
|
339
|
+
|
|
277
340
|
def list_scheduling_policies(
|
|
278
341
|
self, **kwargs: Unpack[ListSchedulingPoliciesRequestTypeDef]
|
|
279
342
|
) -> ListSchedulingPoliciesResponseTypeDef:
|
|
@@ -347,6 +410,16 @@ class BatchClient(BaseClient):
|
|
|
347
410
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#update_compute_environment)
|
|
348
411
|
"""
|
|
349
412
|
|
|
413
|
+
def update_consumable_resource(
|
|
414
|
+
self, **kwargs: Unpack[UpdateConsumableResourceRequestTypeDef]
|
|
415
|
+
) -> UpdateConsumableResourceResponseTypeDef:
|
|
416
|
+
"""
|
|
417
|
+
Updates a consumable resource.
|
|
418
|
+
|
|
419
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/client/update_consumable_resource.html)
|
|
420
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#update_consumable_resource)
|
|
421
|
+
"""
|
|
422
|
+
|
|
350
423
|
def update_job_queue(
|
|
351
424
|
self, **kwargs: Unpack[UpdateJobQueueRequestTypeDef]
|
|
352
425
|
) -> UpdateJobQueueResponseTypeDef:
|
|
@@ -400,6 +473,28 @@ class BatchClient(BaseClient):
|
|
|
400
473
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#get_paginator)
|
|
401
474
|
"""
|
|
402
475
|
|
|
476
|
+
@overload # type: ignore[override]
|
|
477
|
+
def get_paginator( # type: ignore[override]
|
|
478
|
+
self, operation_name: Literal["list_consumable_resources"]
|
|
479
|
+
) -> ListConsumableResourcesPaginator:
|
|
480
|
+
"""
|
|
481
|
+
Create a paginator for an operation.
|
|
482
|
+
|
|
483
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/client/get_paginator.html)
|
|
484
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#get_paginator)
|
|
485
|
+
"""
|
|
486
|
+
|
|
487
|
+
@overload # type: ignore[override]
|
|
488
|
+
def get_paginator( # type: ignore[override]
|
|
489
|
+
self, operation_name: Literal["list_jobs_by_consumable_resource"]
|
|
490
|
+
) -> ListJobsByConsumableResourcePaginator:
|
|
491
|
+
"""
|
|
492
|
+
Create a paginator for an operation.
|
|
493
|
+
|
|
494
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/client/get_paginator.html)
|
|
495
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#get_paginator)
|
|
496
|
+
"""
|
|
497
|
+
|
|
403
498
|
@overload # type: ignore[override]
|
|
404
499
|
def get_paginator( # type: ignore[override]
|
|
405
500
|
self, operation_name: Literal["list_jobs"]
|
mypy_boto3_batch/literals.py
CHANGED
|
@@ -44,6 +44,8 @@ __all__ = (
|
|
|
44
44
|
"JobStateTimeLimitActionsActionType",
|
|
45
45
|
"JobStateTimeLimitActionsStateType",
|
|
46
46
|
"JobStatusType",
|
|
47
|
+
"ListConsumableResourcesPaginatorName",
|
|
48
|
+
"ListJobsByConsumableResourcePaginatorName",
|
|
47
49
|
"ListJobsPaginatorName",
|
|
48
50
|
"ListSchedulingPoliciesPaginatorName",
|
|
49
51
|
"LogDriverType",
|
|
@@ -84,6 +86,8 @@ JobStateTimeLimitActionsStateType = Literal["RUNNABLE"]
|
|
|
84
86
|
JobStatusType = Literal[
|
|
85
87
|
"FAILED", "PENDING", "RUNNABLE", "RUNNING", "STARTING", "SUBMITTED", "SUCCEEDED"
|
|
86
88
|
]
|
|
89
|
+
ListConsumableResourcesPaginatorName = Literal["list_consumable_resources"]
|
|
90
|
+
ListJobsByConsumableResourcePaginatorName = Literal["list_jobs_by_consumable_resource"]
|
|
87
91
|
ListJobsPaginatorName = Literal["list_jobs"]
|
|
88
92
|
ListSchedulingPoliciesPaginatorName = Literal["list_scheduling_policies"]
|
|
89
93
|
LogDriverType = Literal["awslogs", "fluentd", "gelf", "journald", "json-file", "splunk", "syslog"]
|
|
@@ -512,7 +516,9 @@ PaginatorName = Literal[
|
|
|
512
516
|
"describe_compute_environments",
|
|
513
517
|
"describe_job_definitions",
|
|
514
518
|
"describe_job_queues",
|
|
519
|
+
"list_consumable_resources",
|
|
515
520
|
"list_jobs",
|
|
521
|
+
"list_jobs_by_consumable_resource",
|
|
516
522
|
"list_scheduling_policies",
|
|
517
523
|
]
|
|
518
524
|
RegionName = Literal[
|
mypy_boto3_batch/literals.pyi
CHANGED
|
@@ -43,6 +43,8 @@ __all__ = (
|
|
|
43
43
|
"JobStateTimeLimitActionsActionType",
|
|
44
44
|
"JobStateTimeLimitActionsStateType",
|
|
45
45
|
"JobStatusType",
|
|
46
|
+
"ListConsumableResourcesPaginatorName",
|
|
47
|
+
"ListJobsByConsumableResourcePaginatorName",
|
|
46
48
|
"ListJobsPaginatorName",
|
|
47
49
|
"ListSchedulingPoliciesPaginatorName",
|
|
48
50
|
"LogDriverType",
|
|
@@ -82,6 +84,8 @@ JobStateTimeLimitActionsStateType = Literal["RUNNABLE"]
|
|
|
82
84
|
JobStatusType = Literal[
|
|
83
85
|
"FAILED", "PENDING", "RUNNABLE", "RUNNING", "STARTING", "SUBMITTED", "SUCCEEDED"
|
|
84
86
|
]
|
|
87
|
+
ListConsumableResourcesPaginatorName = Literal["list_consumable_resources"]
|
|
88
|
+
ListJobsByConsumableResourcePaginatorName = Literal["list_jobs_by_consumable_resource"]
|
|
85
89
|
ListJobsPaginatorName = Literal["list_jobs"]
|
|
86
90
|
ListSchedulingPoliciesPaginatorName = Literal["list_scheduling_policies"]
|
|
87
91
|
LogDriverType = Literal["awslogs", "fluentd", "gelf", "journald", "json-file", "splunk", "syslog"]
|
|
@@ -510,7 +514,9 @@ PaginatorName = Literal[
|
|
|
510
514
|
"describe_compute_environments",
|
|
511
515
|
"describe_job_definitions",
|
|
512
516
|
"describe_job_queues",
|
|
517
|
+
"list_consumable_resources",
|
|
513
518
|
"list_jobs",
|
|
519
|
+
"list_jobs_by_consumable_resource",
|
|
514
520
|
"list_scheduling_policies",
|
|
515
521
|
]
|
|
516
522
|
RegionName = Literal[
|
mypy_boto3_batch/paginator.py
CHANGED
|
@@ -15,6 +15,8 @@ Usage::
|
|
|
15
15
|
DescribeComputeEnvironmentsPaginator,
|
|
16
16
|
DescribeJobDefinitionsPaginator,
|
|
17
17
|
DescribeJobQueuesPaginator,
|
|
18
|
+
ListConsumableResourcesPaginator,
|
|
19
|
+
ListJobsByConsumableResourcePaginator,
|
|
18
20
|
ListJobsPaginator,
|
|
19
21
|
ListSchedulingPoliciesPaginator,
|
|
20
22
|
)
|
|
@@ -25,6 +27,8 @@ Usage::
|
|
|
25
27
|
describe_compute_environments_paginator: DescribeComputeEnvironmentsPaginator = client.get_paginator("describe_compute_environments")
|
|
26
28
|
describe_job_definitions_paginator: DescribeJobDefinitionsPaginator = client.get_paginator("describe_job_definitions")
|
|
27
29
|
describe_job_queues_paginator: DescribeJobQueuesPaginator = client.get_paginator("describe_job_queues")
|
|
30
|
+
list_consumable_resources_paginator: ListConsumableResourcesPaginator = client.get_paginator("list_consumable_resources")
|
|
31
|
+
list_jobs_by_consumable_resource_paginator: ListJobsByConsumableResourcePaginator = client.get_paginator("list_jobs_by_consumable_resource")
|
|
28
32
|
list_jobs_paginator: ListJobsPaginator = client.get_paginator("list_jobs")
|
|
29
33
|
list_scheduling_policies_paginator: ListSchedulingPoliciesPaginator = client.get_paginator("list_scheduling_policies")
|
|
30
34
|
```
|
|
@@ -44,6 +48,10 @@ from .type_defs import (
|
|
|
44
48
|
DescribeJobDefinitionsResponseTypeDef,
|
|
45
49
|
DescribeJobQueuesRequestPaginateTypeDef,
|
|
46
50
|
DescribeJobQueuesResponseTypeDef,
|
|
51
|
+
ListConsumableResourcesRequestPaginateTypeDef,
|
|
52
|
+
ListConsumableResourcesResponseTypeDef,
|
|
53
|
+
ListJobsByConsumableResourceRequestPaginateTypeDef,
|
|
54
|
+
ListJobsByConsumableResourceResponseTypeDef,
|
|
47
55
|
ListJobsRequestPaginateTypeDef,
|
|
48
56
|
ListJobsResponseTypeDef,
|
|
49
57
|
ListSchedulingPoliciesRequestPaginateTypeDef,
|
|
@@ -60,6 +68,8 @@ __all__ = (
|
|
|
60
68
|
"DescribeComputeEnvironmentsPaginator",
|
|
61
69
|
"DescribeJobDefinitionsPaginator",
|
|
62
70
|
"DescribeJobQueuesPaginator",
|
|
71
|
+
"ListConsumableResourcesPaginator",
|
|
72
|
+
"ListJobsByConsumableResourcePaginator",
|
|
63
73
|
"ListJobsPaginator",
|
|
64
74
|
"ListSchedulingPoliciesPaginator",
|
|
65
75
|
)
|
|
@@ -130,6 +140,50 @@ class DescribeJobQueuesPaginator(_DescribeJobQueuesPaginatorBase):
|
|
|
130
140
|
"""
|
|
131
141
|
|
|
132
142
|
|
|
143
|
+
if TYPE_CHECKING:
|
|
144
|
+
_ListConsumableResourcesPaginatorBase = Paginator[ListConsumableResourcesResponseTypeDef]
|
|
145
|
+
else:
|
|
146
|
+
_ListConsumableResourcesPaginatorBase = Paginator # type: ignore[assignment]
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
class ListConsumableResourcesPaginator(_ListConsumableResourcesPaginatorBase):
|
|
150
|
+
"""
|
|
151
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/paginator/ListConsumableResources.html#Batch.Paginator.ListConsumableResources)
|
|
152
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/paginators/#listconsumableresourcespaginator)
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
def paginate( # type: ignore[override]
|
|
156
|
+
self, **kwargs: Unpack[ListConsumableResourcesRequestPaginateTypeDef]
|
|
157
|
+
) -> PageIterator[ListConsumableResourcesResponseTypeDef]:
|
|
158
|
+
"""
|
|
159
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/paginator/ListConsumableResources.html#Batch.Paginator.ListConsumableResources.paginate)
|
|
160
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/paginators/#listconsumableresourcespaginator)
|
|
161
|
+
"""
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
if TYPE_CHECKING:
|
|
165
|
+
_ListJobsByConsumableResourcePaginatorBase = Paginator[
|
|
166
|
+
ListJobsByConsumableResourceResponseTypeDef
|
|
167
|
+
]
|
|
168
|
+
else:
|
|
169
|
+
_ListJobsByConsumableResourcePaginatorBase = Paginator # type: ignore[assignment]
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
class ListJobsByConsumableResourcePaginator(_ListJobsByConsumableResourcePaginatorBase):
|
|
173
|
+
"""
|
|
174
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/paginator/ListJobsByConsumableResource.html#Batch.Paginator.ListJobsByConsumableResource)
|
|
175
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/paginators/#listjobsbyconsumableresourcepaginator)
|
|
176
|
+
"""
|
|
177
|
+
|
|
178
|
+
def paginate( # type: ignore[override]
|
|
179
|
+
self, **kwargs: Unpack[ListJobsByConsumableResourceRequestPaginateTypeDef]
|
|
180
|
+
) -> PageIterator[ListJobsByConsumableResourceResponseTypeDef]:
|
|
181
|
+
"""
|
|
182
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/paginator/ListJobsByConsumableResource.html#Batch.Paginator.ListJobsByConsumableResource.paginate)
|
|
183
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/paginators/#listjobsbyconsumableresourcepaginator)
|
|
184
|
+
"""
|
|
185
|
+
|
|
186
|
+
|
|
133
187
|
if TYPE_CHECKING:
|
|
134
188
|
_ListJobsPaginatorBase = Paginator[ListJobsResponseTypeDef]
|
|
135
189
|
else:
|