mypy-boto3-batch 1.35.0__py3-none-any.whl → 1.35.53__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 +1 -0
- mypy_boto3_batch/__main__.py +4 -4
- mypy_boto3_batch/client.py +70 -144
- mypy_boto3_batch/client.pyi +69 -144
- mypy_boto3_batch/literals.py +10 -3
- mypy_boto3_batch/literals.pyi +8 -3
- mypy_boto3_batch/paginator.py +21 -23
- mypy_boto3_batch/paginator.pyi +19 -28
- mypy_boto3_batch/type_defs.py +241 -444
- mypy_boto3_batch/type_defs.pyi +242 -446
- mypy_boto3_batch/version.py +1 -1
- {mypy_boto3_batch-1.35.0.dist-info → mypy_boto3_batch-1.35.53.dist-info}/METADATA +8 -9
- mypy_boto3_batch-1.35.53.dist-info/RECORD +18 -0
- {mypy_boto3_batch-1.35.0.dist-info → mypy_boto3_batch-1.35.53.dist-info}/WHEEL +1 -1
- mypy_boto3_batch-1.35.0.dist-info/RECORD +0 -18
- {mypy_boto3_batch-1.35.0.dist-info → mypy_boto3_batch-1.35.53.dist-info}/LICENSE +0 -0
- {mypy_boto3_batch-1.35.0.dist-info → mypy_boto3_batch-1.35.53.dist-info}/top_level.txt +0 -0
mypy_boto3_batch/client.pyi
CHANGED
|
@@ -15,18 +15,10 @@ Usage::
|
|
|
15
15
|
"""
|
|
16
16
|
|
|
17
17
|
import sys
|
|
18
|
-
from typing import Any, Dict, Mapping,
|
|
18
|
+
from typing import Any, Dict, Mapping, Type, overload
|
|
19
19
|
|
|
20
20
|
from botocore.client import BaseClient, ClientMeta
|
|
21
21
|
|
|
22
|
-
from .literals import (
|
|
23
|
-
CEStateType,
|
|
24
|
-
CETypeType,
|
|
25
|
-
JobDefinitionTypeType,
|
|
26
|
-
JobStatusType,
|
|
27
|
-
JQStateType,
|
|
28
|
-
PlatformCapabilityType,
|
|
29
|
-
)
|
|
30
22
|
from .paginator import (
|
|
31
23
|
DescribeComputeEnvironmentsPaginator,
|
|
32
24
|
DescribeJobDefinitionsPaginator,
|
|
@@ -35,48 +27,53 @@ from .paginator import (
|
|
|
35
27
|
ListSchedulingPoliciesPaginator,
|
|
36
28
|
)
|
|
37
29
|
from .type_defs import (
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
ComputeResourceUnionTypeDef,
|
|
41
|
-
ComputeResourceUpdateTypeDef,
|
|
42
|
-
ContainerOverridesTypeDef,
|
|
43
|
-
ContainerPropertiesUnionTypeDef,
|
|
30
|
+
CancelJobRequestRequestTypeDef,
|
|
31
|
+
CreateComputeEnvironmentRequestRequestTypeDef,
|
|
44
32
|
CreateComputeEnvironmentResponseTypeDef,
|
|
33
|
+
CreateJobQueueRequestRequestTypeDef,
|
|
45
34
|
CreateJobQueueResponseTypeDef,
|
|
35
|
+
CreateSchedulingPolicyRequestRequestTypeDef,
|
|
46
36
|
CreateSchedulingPolicyResponseTypeDef,
|
|
37
|
+
DeleteComputeEnvironmentRequestRequestTypeDef,
|
|
38
|
+
DeleteJobQueueRequestRequestTypeDef,
|
|
39
|
+
DeleteSchedulingPolicyRequestRequestTypeDef,
|
|
40
|
+
DeregisterJobDefinitionRequestRequestTypeDef,
|
|
41
|
+
DescribeComputeEnvironmentsRequestRequestTypeDef,
|
|
47
42
|
DescribeComputeEnvironmentsResponseTypeDef,
|
|
43
|
+
DescribeJobDefinitionsRequestRequestTypeDef,
|
|
48
44
|
DescribeJobDefinitionsResponseTypeDef,
|
|
45
|
+
DescribeJobQueuesRequestRequestTypeDef,
|
|
49
46
|
DescribeJobQueuesResponseTypeDef,
|
|
47
|
+
DescribeJobsRequestRequestTypeDef,
|
|
50
48
|
DescribeJobsResponseTypeDef,
|
|
49
|
+
DescribeSchedulingPoliciesRequestRequestTypeDef,
|
|
51
50
|
DescribeSchedulingPoliciesResponseTypeDef,
|
|
52
|
-
|
|
53
|
-
EcsPropertiesUnionTypeDef,
|
|
54
|
-
EksConfigurationTypeDef,
|
|
55
|
-
EksPropertiesOverrideTypeDef,
|
|
56
|
-
EksPropertiesUnionTypeDef,
|
|
57
|
-
FairsharePolicyUnionTypeDef,
|
|
51
|
+
GetJobQueueSnapshotRequestRequestTypeDef,
|
|
58
52
|
GetJobQueueSnapshotResponseTypeDef,
|
|
59
|
-
|
|
60
|
-
JobStateTimeLimitActionTypeDef,
|
|
61
|
-
JobTimeoutTypeDef,
|
|
62
|
-
KeyValuesPairTypeDef,
|
|
53
|
+
ListJobsRequestRequestTypeDef,
|
|
63
54
|
ListJobsResponseTypeDef,
|
|
55
|
+
ListSchedulingPoliciesRequestRequestTypeDef,
|
|
64
56
|
ListSchedulingPoliciesResponseTypeDef,
|
|
57
|
+
ListTagsForResourceRequestRequestTypeDef,
|
|
65
58
|
ListTagsForResourceResponseTypeDef,
|
|
66
|
-
|
|
67
|
-
NodePropertiesUnionTypeDef,
|
|
59
|
+
RegisterJobDefinitionRequestRequestTypeDef,
|
|
68
60
|
RegisterJobDefinitionResponseTypeDef,
|
|
69
|
-
|
|
61
|
+
SubmitJobRequestRequestTypeDef,
|
|
70
62
|
SubmitJobResponseTypeDef,
|
|
63
|
+
TagResourceRequestRequestTypeDef,
|
|
64
|
+
TerminateJobRequestRequestTypeDef,
|
|
65
|
+
UntagResourceRequestRequestTypeDef,
|
|
66
|
+
UpdateComputeEnvironmentRequestRequestTypeDef,
|
|
71
67
|
UpdateComputeEnvironmentResponseTypeDef,
|
|
68
|
+
UpdateJobQueueRequestRequestTypeDef,
|
|
72
69
|
UpdateJobQueueResponseTypeDef,
|
|
73
|
-
|
|
70
|
+
UpdateSchedulingPolicyRequestRequestTypeDef,
|
|
74
71
|
)
|
|
75
72
|
|
|
76
73
|
if sys.version_info >= (3, 12):
|
|
77
|
-
from typing import Literal
|
|
74
|
+
from typing import Literal, Unpack
|
|
78
75
|
else:
|
|
79
|
-
from typing_extensions import Literal
|
|
76
|
+
from typing_extensions import Literal, Unpack
|
|
80
77
|
|
|
81
78
|
__all__ = ("BatchClient",)
|
|
82
79
|
|
|
@@ -117,7 +114,7 @@ class BatchClient(BaseClient):
|
|
|
117
114
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#can_paginate)
|
|
118
115
|
"""
|
|
119
116
|
|
|
120
|
-
def cancel_job(self,
|
|
117
|
+
def cancel_job(self, **kwargs: Unpack[CancelJobRequestRequestTypeDef]) -> Dict[str, Any]:
|
|
121
118
|
"""
|
|
122
119
|
Cancels a job in an Batch job queue.
|
|
123
120
|
|
|
@@ -134,17 +131,7 @@ class BatchClient(BaseClient):
|
|
|
134
131
|
"""
|
|
135
132
|
|
|
136
133
|
def create_compute_environment(
|
|
137
|
-
self,
|
|
138
|
-
*,
|
|
139
|
-
computeEnvironmentName: str,
|
|
140
|
-
type: CETypeType,
|
|
141
|
-
state: CEStateType = ...,
|
|
142
|
-
unmanagedvCpus: int = ...,
|
|
143
|
-
computeResources: ComputeResourceUnionTypeDef = ...,
|
|
144
|
-
serviceRole: str = ...,
|
|
145
|
-
tags: Mapping[str, str] = ...,
|
|
146
|
-
eksConfiguration: EksConfigurationTypeDef = ...,
|
|
147
|
-
context: str = ...,
|
|
134
|
+
self, **kwargs: Unpack[CreateComputeEnvironmentRequestRequestTypeDef]
|
|
148
135
|
) -> CreateComputeEnvironmentResponseTypeDef:
|
|
149
136
|
"""
|
|
150
137
|
Creates an Batch compute environment.
|
|
@@ -154,15 +141,7 @@ class BatchClient(BaseClient):
|
|
|
154
141
|
"""
|
|
155
142
|
|
|
156
143
|
def create_job_queue(
|
|
157
|
-
self,
|
|
158
|
-
*,
|
|
159
|
-
jobQueueName: str,
|
|
160
|
-
priority: int,
|
|
161
|
-
computeEnvironmentOrder: Sequence[ComputeEnvironmentOrderTypeDef],
|
|
162
|
-
state: JQStateType = ...,
|
|
163
|
-
schedulingPolicyArn: str = ...,
|
|
164
|
-
tags: Mapping[str, str] = ...,
|
|
165
|
-
jobStateTimeLimitActions: Sequence[JobStateTimeLimitActionTypeDef] = ...,
|
|
144
|
+
self, **kwargs: Unpack[CreateJobQueueRequestRequestTypeDef]
|
|
166
145
|
) -> CreateJobQueueResponseTypeDef:
|
|
167
146
|
"""
|
|
168
147
|
Creates an Batch job queue.
|
|
@@ -172,11 +151,7 @@ class BatchClient(BaseClient):
|
|
|
172
151
|
"""
|
|
173
152
|
|
|
174
153
|
def create_scheduling_policy(
|
|
175
|
-
self,
|
|
176
|
-
*,
|
|
177
|
-
name: str,
|
|
178
|
-
fairsharePolicy: FairsharePolicyUnionTypeDef = ...,
|
|
179
|
-
tags: Mapping[str, str] = ...,
|
|
154
|
+
self, **kwargs: Unpack[CreateSchedulingPolicyRequestRequestTypeDef]
|
|
180
155
|
) -> CreateSchedulingPolicyResponseTypeDef:
|
|
181
156
|
"""
|
|
182
157
|
Creates an Batch scheduling policy.
|
|
@@ -185,7 +160,9 @@ class BatchClient(BaseClient):
|
|
|
185
160
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#create_scheduling_policy)
|
|
186
161
|
"""
|
|
187
162
|
|
|
188
|
-
def delete_compute_environment(
|
|
163
|
+
def delete_compute_environment(
|
|
164
|
+
self, **kwargs: Unpack[DeleteComputeEnvironmentRequestRequestTypeDef]
|
|
165
|
+
) -> Dict[str, Any]:
|
|
189
166
|
"""
|
|
190
167
|
Deletes an Batch compute environment.
|
|
191
168
|
|
|
@@ -193,7 +170,9 @@ class BatchClient(BaseClient):
|
|
|
193
170
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#delete_compute_environment)
|
|
194
171
|
"""
|
|
195
172
|
|
|
196
|
-
def delete_job_queue(
|
|
173
|
+
def delete_job_queue(
|
|
174
|
+
self, **kwargs: Unpack[DeleteJobQueueRequestRequestTypeDef]
|
|
175
|
+
) -> Dict[str, Any]:
|
|
197
176
|
"""
|
|
198
177
|
Deletes the specified job queue.
|
|
199
178
|
|
|
@@ -201,7 +180,9 @@ class BatchClient(BaseClient):
|
|
|
201
180
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#delete_job_queue)
|
|
202
181
|
"""
|
|
203
182
|
|
|
204
|
-
def delete_scheduling_policy(
|
|
183
|
+
def delete_scheduling_policy(
|
|
184
|
+
self, **kwargs: Unpack[DeleteSchedulingPolicyRequestRequestTypeDef]
|
|
185
|
+
) -> Dict[str, Any]:
|
|
205
186
|
"""
|
|
206
187
|
Deletes the specified scheduling policy.
|
|
207
188
|
|
|
@@ -209,7 +190,9 @@ class BatchClient(BaseClient):
|
|
|
209
190
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#delete_scheduling_policy)
|
|
210
191
|
"""
|
|
211
192
|
|
|
212
|
-
def deregister_job_definition(
|
|
193
|
+
def deregister_job_definition(
|
|
194
|
+
self, **kwargs: Unpack[DeregisterJobDefinitionRequestRequestTypeDef]
|
|
195
|
+
) -> Dict[str, Any]:
|
|
213
196
|
"""
|
|
214
197
|
Deregisters an Batch job definition.
|
|
215
198
|
|
|
@@ -218,11 +201,7 @@ class BatchClient(BaseClient):
|
|
|
218
201
|
"""
|
|
219
202
|
|
|
220
203
|
def describe_compute_environments(
|
|
221
|
-
self,
|
|
222
|
-
*,
|
|
223
|
-
computeEnvironments: Sequence[str] = ...,
|
|
224
|
-
maxResults: int = ...,
|
|
225
|
-
nextToken: str = ...,
|
|
204
|
+
self, **kwargs: Unpack[DescribeComputeEnvironmentsRequestRequestTypeDef]
|
|
226
205
|
) -> DescribeComputeEnvironmentsResponseTypeDef:
|
|
227
206
|
"""
|
|
228
207
|
Describes one or more of your compute environments.
|
|
@@ -232,13 +211,7 @@ class BatchClient(BaseClient):
|
|
|
232
211
|
"""
|
|
233
212
|
|
|
234
213
|
def describe_job_definitions(
|
|
235
|
-
self,
|
|
236
|
-
*,
|
|
237
|
-
jobDefinitions: Sequence[str] = ...,
|
|
238
|
-
maxResults: int = ...,
|
|
239
|
-
jobDefinitionName: str = ...,
|
|
240
|
-
status: str = ...,
|
|
241
|
-
nextToken: str = ...,
|
|
214
|
+
self, **kwargs: Unpack[DescribeJobDefinitionsRequestRequestTypeDef]
|
|
242
215
|
) -> DescribeJobDefinitionsResponseTypeDef:
|
|
243
216
|
"""
|
|
244
217
|
Describes a list of job definitions.
|
|
@@ -248,7 +221,7 @@ class BatchClient(BaseClient):
|
|
|
248
221
|
"""
|
|
249
222
|
|
|
250
223
|
def describe_job_queues(
|
|
251
|
-
self,
|
|
224
|
+
self, **kwargs: Unpack[DescribeJobQueuesRequestRequestTypeDef]
|
|
252
225
|
) -> DescribeJobQueuesResponseTypeDef:
|
|
253
226
|
"""
|
|
254
227
|
Describes one or more of your job queues.
|
|
@@ -257,7 +230,9 @@ class BatchClient(BaseClient):
|
|
|
257
230
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#describe_job_queues)
|
|
258
231
|
"""
|
|
259
232
|
|
|
260
|
-
def describe_jobs(
|
|
233
|
+
def describe_jobs(
|
|
234
|
+
self, **kwargs: Unpack[DescribeJobsRequestRequestTypeDef]
|
|
235
|
+
) -> DescribeJobsResponseTypeDef:
|
|
261
236
|
"""
|
|
262
237
|
Describes a list of Batch jobs.
|
|
263
238
|
|
|
@@ -266,7 +241,7 @@ class BatchClient(BaseClient):
|
|
|
266
241
|
"""
|
|
267
242
|
|
|
268
243
|
def describe_scheduling_policies(
|
|
269
|
-
self,
|
|
244
|
+
self, **kwargs: Unpack[DescribeSchedulingPoliciesRequestRequestTypeDef]
|
|
270
245
|
) -> DescribeSchedulingPoliciesResponseTypeDef:
|
|
271
246
|
"""
|
|
272
247
|
Describes one or more of your scheduling policies.
|
|
@@ -289,7 +264,9 @@ class BatchClient(BaseClient):
|
|
|
289
264
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#generate_presigned_url)
|
|
290
265
|
"""
|
|
291
266
|
|
|
292
|
-
def get_job_queue_snapshot(
|
|
267
|
+
def get_job_queue_snapshot(
|
|
268
|
+
self, **kwargs: Unpack[GetJobQueueSnapshotRequestRequestTypeDef]
|
|
269
|
+
) -> GetJobQueueSnapshotResponseTypeDef:
|
|
293
270
|
"""
|
|
294
271
|
Provides a list of the first 100 `RUNNABLE` jobs associated to a single job
|
|
295
272
|
queue.
|
|
@@ -298,17 +275,7 @@ class BatchClient(BaseClient):
|
|
|
298
275
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#get_job_queue_snapshot)
|
|
299
276
|
"""
|
|
300
277
|
|
|
301
|
-
def list_jobs(
|
|
302
|
-
self,
|
|
303
|
-
*,
|
|
304
|
-
jobQueue: str = ...,
|
|
305
|
-
arrayJobId: str = ...,
|
|
306
|
-
multiNodeJobId: str = ...,
|
|
307
|
-
jobStatus: JobStatusType = ...,
|
|
308
|
-
maxResults: int = ...,
|
|
309
|
-
nextToken: str = ...,
|
|
310
|
-
filters: Sequence[KeyValuesPairTypeDef] = ...,
|
|
311
|
-
) -> ListJobsResponseTypeDef:
|
|
278
|
+
def list_jobs(self, **kwargs: Unpack[ListJobsRequestRequestTypeDef]) -> ListJobsResponseTypeDef:
|
|
312
279
|
"""
|
|
313
280
|
Returns a list of Batch jobs.
|
|
314
281
|
|
|
@@ -317,7 +284,7 @@ class BatchClient(BaseClient):
|
|
|
317
284
|
"""
|
|
318
285
|
|
|
319
286
|
def list_scheduling_policies(
|
|
320
|
-
self,
|
|
287
|
+
self, **kwargs: Unpack[ListSchedulingPoliciesRequestRequestTypeDef]
|
|
321
288
|
) -> ListSchedulingPoliciesResponseTypeDef:
|
|
322
289
|
"""
|
|
323
290
|
Returns a list of Batch scheduling policies.
|
|
@@ -326,7 +293,9 @@ class BatchClient(BaseClient):
|
|
|
326
293
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#list_scheduling_policies)
|
|
327
294
|
"""
|
|
328
295
|
|
|
329
|
-
def list_tags_for_resource(
|
|
296
|
+
def list_tags_for_resource(
|
|
297
|
+
self, **kwargs: Unpack[ListTagsForResourceRequestRequestTypeDef]
|
|
298
|
+
) -> ListTagsForResourceResponseTypeDef:
|
|
330
299
|
"""
|
|
331
300
|
Lists the tags for an Batch resource.
|
|
332
301
|
|
|
@@ -335,21 +304,7 @@ class BatchClient(BaseClient):
|
|
|
335
304
|
"""
|
|
336
305
|
|
|
337
306
|
def register_job_definition(
|
|
338
|
-
self,
|
|
339
|
-
*,
|
|
340
|
-
jobDefinitionName: str,
|
|
341
|
-
type: JobDefinitionTypeType,
|
|
342
|
-
parameters: Mapping[str, str] = ...,
|
|
343
|
-
schedulingPriority: int = ...,
|
|
344
|
-
containerProperties: ContainerPropertiesUnionTypeDef = ...,
|
|
345
|
-
nodeProperties: NodePropertiesUnionTypeDef = ...,
|
|
346
|
-
retryStrategy: RetryStrategyUnionTypeDef = ...,
|
|
347
|
-
propagateTags: bool = ...,
|
|
348
|
-
timeout: JobTimeoutTypeDef = ...,
|
|
349
|
-
tags: Mapping[str, str] = ...,
|
|
350
|
-
platformCapabilities: Sequence[PlatformCapabilityType] = ...,
|
|
351
|
-
eksProperties: EksPropertiesUnionTypeDef = ...,
|
|
352
|
-
ecsProperties: EcsPropertiesUnionTypeDef = ...,
|
|
307
|
+
self, **kwargs: Unpack[RegisterJobDefinitionRequestRequestTypeDef]
|
|
353
308
|
) -> RegisterJobDefinitionResponseTypeDef:
|
|
354
309
|
"""
|
|
355
310
|
Registers an Batch job definition.
|
|
@@ -359,24 +314,7 @@ class BatchClient(BaseClient):
|
|
|
359
314
|
"""
|
|
360
315
|
|
|
361
316
|
def submit_job(
|
|
362
|
-
self,
|
|
363
|
-
*,
|
|
364
|
-
jobName: str,
|
|
365
|
-
jobQueue: str,
|
|
366
|
-
jobDefinition: str,
|
|
367
|
-
shareIdentifier: str = ...,
|
|
368
|
-
schedulingPriorityOverride: int = ...,
|
|
369
|
-
arrayProperties: ArrayPropertiesTypeDef = ...,
|
|
370
|
-
dependsOn: Sequence[JobDependencyTypeDef] = ...,
|
|
371
|
-
parameters: Mapping[str, str] = ...,
|
|
372
|
-
containerOverrides: ContainerOverridesTypeDef = ...,
|
|
373
|
-
nodeOverrides: NodeOverridesTypeDef = ...,
|
|
374
|
-
retryStrategy: RetryStrategyUnionTypeDef = ...,
|
|
375
|
-
propagateTags: bool = ...,
|
|
376
|
-
timeout: JobTimeoutTypeDef = ...,
|
|
377
|
-
tags: Mapping[str, str] = ...,
|
|
378
|
-
eksPropertiesOverride: EksPropertiesOverrideTypeDef = ...,
|
|
379
|
-
ecsPropertiesOverride: EcsPropertiesOverrideTypeDef = ...,
|
|
317
|
+
self, **kwargs: Unpack[SubmitJobRequestRequestTypeDef]
|
|
380
318
|
) -> SubmitJobResponseTypeDef:
|
|
381
319
|
"""
|
|
382
320
|
Submits an Batch job from a job definition.
|
|
@@ -385,7 +323,7 @@ class BatchClient(BaseClient):
|
|
|
385
323
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#submit_job)
|
|
386
324
|
"""
|
|
387
325
|
|
|
388
|
-
def tag_resource(self,
|
|
326
|
+
def tag_resource(self, **kwargs: Unpack[TagResourceRequestRequestTypeDef]) -> Dict[str, Any]:
|
|
389
327
|
"""
|
|
390
328
|
Associates the specified tags to a resource with the specified `resourceArn`.
|
|
391
329
|
|
|
@@ -393,7 +331,7 @@ class BatchClient(BaseClient):
|
|
|
393
331
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#tag_resource)
|
|
394
332
|
"""
|
|
395
333
|
|
|
396
|
-
def terminate_job(self,
|
|
334
|
+
def terminate_job(self, **kwargs: Unpack[TerminateJobRequestRequestTypeDef]) -> Dict[str, Any]:
|
|
397
335
|
"""
|
|
398
336
|
Terminates a job in a job queue.
|
|
399
337
|
|
|
@@ -401,7 +339,9 @@ class BatchClient(BaseClient):
|
|
|
401
339
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_batch/client/#terminate_job)
|
|
402
340
|
"""
|
|
403
341
|
|
|
404
|
-
def untag_resource(
|
|
342
|
+
def untag_resource(
|
|
343
|
+
self, **kwargs: Unpack[UntagResourceRequestRequestTypeDef]
|
|
344
|
+
) -> Dict[str, Any]:
|
|
405
345
|
"""
|
|
406
346
|
Deletes specified tags from an Batch resource.
|
|
407
347
|
|
|
@@ -410,15 +350,7 @@ class BatchClient(BaseClient):
|
|
|
410
350
|
"""
|
|
411
351
|
|
|
412
352
|
def update_compute_environment(
|
|
413
|
-
self,
|
|
414
|
-
*,
|
|
415
|
-
computeEnvironment: str,
|
|
416
|
-
state: CEStateType = ...,
|
|
417
|
-
unmanagedvCpus: int = ...,
|
|
418
|
-
computeResources: ComputeResourceUpdateTypeDef = ...,
|
|
419
|
-
serviceRole: str = ...,
|
|
420
|
-
updatePolicy: UpdatePolicyTypeDef = ...,
|
|
421
|
-
context: str = ...,
|
|
353
|
+
self, **kwargs: Unpack[UpdateComputeEnvironmentRequestRequestTypeDef]
|
|
422
354
|
) -> UpdateComputeEnvironmentResponseTypeDef:
|
|
423
355
|
"""
|
|
424
356
|
Updates an Batch compute environment.
|
|
@@ -428,14 +360,7 @@ class BatchClient(BaseClient):
|
|
|
428
360
|
"""
|
|
429
361
|
|
|
430
362
|
def update_job_queue(
|
|
431
|
-
self,
|
|
432
|
-
*,
|
|
433
|
-
jobQueue: str,
|
|
434
|
-
state: JQStateType = ...,
|
|
435
|
-
schedulingPolicyArn: str = ...,
|
|
436
|
-
priority: int = ...,
|
|
437
|
-
computeEnvironmentOrder: Sequence[ComputeEnvironmentOrderTypeDef] = ...,
|
|
438
|
-
jobStateTimeLimitActions: Sequence[JobStateTimeLimitActionTypeDef] = ...,
|
|
363
|
+
self, **kwargs: Unpack[UpdateJobQueueRequestRequestTypeDef]
|
|
439
364
|
) -> UpdateJobQueueResponseTypeDef:
|
|
440
365
|
"""
|
|
441
366
|
Updates a job queue.
|
|
@@ -445,7 +370,7 @@ class BatchClient(BaseClient):
|
|
|
445
370
|
"""
|
|
446
371
|
|
|
447
372
|
def update_scheduling_policy(
|
|
448
|
-
self,
|
|
373
|
+
self, **kwargs: Unpack[UpdateSchedulingPolicyRequestRequestTypeDef]
|
|
449
374
|
) -> Dict[str, Any]:
|
|
450
375
|
"""
|
|
451
376
|
Updates a scheduling policy.
|
mypy_boto3_batch/literals.py
CHANGED
|
@@ -19,6 +19,7 @@ if sys.version_info >= (3, 12):
|
|
|
19
19
|
else:
|
|
20
20
|
from typing_extensions import Literal
|
|
21
21
|
|
|
22
|
+
|
|
22
23
|
__all__ = (
|
|
23
24
|
"ArrayJobDependencyType",
|
|
24
25
|
"AssignPublicIpType",
|
|
@@ -54,6 +55,7 @@ __all__ = (
|
|
|
54
55
|
"RegionName",
|
|
55
56
|
)
|
|
56
57
|
|
|
58
|
+
|
|
57
59
|
ArrayJobDependencyType = Literal["N_TO_N", "SEQUENTIAL"]
|
|
58
60
|
AssignPublicIpType = Literal["DISABLED", "ENABLED"]
|
|
59
61
|
CEStateType = Literal["DISABLED", "ENABLED"]
|
|
@@ -165,7 +167,6 @@ ServiceName = Literal[
|
|
|
165
167
|
"codeguru-security",
|
|
166
168
|
"codeguruprofiler",
|
|
167
169
|
"codepipeline",
|
|
168
|
-
"codestar",
|
|
169
170
|
"codestar-connections",
|
|
170
171
|
"codestar-notifications",
|
|
171
172
|
"cognito-identity",
|
|
@@ -203,6 +204,7 @@ ServiceName = Literal[
|
|
|
203
204
|
"docdb-elastic",
|
|
204
205
|
"drs",
|
|
205
206
|
"ds",
|
|
207
|
+
"ds-data",
|
|
206
208
|
"dynamodb",
|
|
207
209
|
"dynamodbstreams",
|
|
208
210
|
"ebs",
|
|
@@ -238,6 +240,9 @@ ServiceName = Literal[
|
|
|
238
240
|
"freetier",
|
|
239
241
|
"fsx",
|
|
240
242
|
"gamelift",
|
|
243
|
+
"geo-maps",
|
|
244
|
+
"geo-places",
|
|
245
|
+
"geo-routes",
|
|
241
246
|
"glacier",
|
|
242
247
|
"globalaccelerator",
|
|
243
248
|
"glue",
|
|
@@ -315,6 +320,7 @@ ServiceName = Literal[
|
|
|
315
320
|
"marketplace-catalog",
|
|
316
321
|
"marketplace-deployment",
|
|
317
322
|
"marketplace-entitlement",
|
|
323
|
+
"marketplace-reporting",
|
|
318
324
|
"marketplacecommerceanalytics",
|
|
319
325
|
"mediaconnect",
|
|
320
326
|
"mediaconvert",
|
|
@@ -343,7 +349,6 @@ ServiceName = Literal[
|
|
|
343
349
|
"network-firewall",
|
|
344
350
|
"networkmanager",
|
|
345
351
|
"networkmonitor",
|
|
346
|
-
"nimble",
|
|
347
352
|
"oam",
|
|
348
353
|
"omics",
|
|
349
354
|
"opensearch",
|
|
@@ -358,6 +363,7 @@ ServiceName = Literal[
|
|
|
358
363
|
"payment-cryptography-data",
|
|
359
364
|
"pca-connector-ad",
|
|
360
365
|
"pca-connector-scep",
|
|
366
|
+
"pcs",
|
|
361
367
|
"personalize",
|
|
362
368
|
"personalize-events",
|
|
363
369
|
"personalize-runtime",
|
|
@@ -432,6 +438,7 @@ ServiceName = Literal[
|
|
|
432
438
|
"snow-device-management",
|
|
433
439
|
"snowball",
|
|
434
440
|
"sns",
|
|
441
|
+
"socialmessaging",
|
|
435
442
|
"sqs",
|
|
436
443
|
"ssm",
|
|
437
444
|
"ssm-contacts",
|
|
@@ -468,7 +475,6 @@ ServiceName = Literal[
|
|
|
468
475
|
"wellarchitected",
|
|
469
476
|
"wisdom",
|
|
470
477
|
"workdocs",
|
|
471
|
-
"worklink",
|
|
472
478
|
"workmail",
|
|
473
479
|
"workmailmessageflow",
|
|
474
480
|
"workspaces",
|
|
@@ -507,6 +513,7 @@ RegionName = Literal[
|
|
|
507
513
|
"ap-southeast-2",
|
|
508
514
|
"ap-southeast-3",
|
|
509
515
|
"ap-southeast-4",
|
|
516
|
+
"ap-southeast-5",
|
|
510
517
|
"ca-central-1",
|
|
511
518
|
"ca-west-1",
|
|
512
519
|
"eu-central-1",
|
mypy_boto3_batch/literals.pyi
CHANGED
|
@@ -165,7 +165,6 @@ ServiceName = Literal[
|
|
|
165
165
|
"codeguru-security",
|
|
166
166
|
"codeguruprofiler",
|
|
167
167
|
"codepipeline",
|
|
168
|
-
"codestar",
|
|
169
168
|
"codestar-connections",
|
|
170
169
|
"codestar-notifications",
|
|
171
170
|
"cognito-identity",
|
|
@@ -203,6 +202,7 @@ ServiceName = Literal[
|
|
|
203
202
|
"docdb-elastic",
|
|
204
203
|
"drs",
|
|
205
204
|
"ds",
|
|
205
|
+
"ds-data",
|
|
206
206
|
"dynamodb",
|
|
207
207
|
"dynamodbstreams",
|
|
208
208
|
"ebs",
|
|
@@ -238,6 +238,9 @@ ServiceName = Literal[
|
|
|
238
238
|
"freetier",
|
|
239
239
|
"fsx",
|
|
240
240
|
"gamelift",
|
|
241
|
+
"geo-maps",
|
|
242
|
+
"geo-places",
|
|
243
|
+
"geo-routes",
|
|
241
244
|
"glacier",
|
|
242
245
|
"globalaccelerator",
|
|
243
246
|
"glue",
|
|
@@ -315,6 +318,7 @@ ServiceName = Literal[
|
|
|
315
318
|
"marketplace-catalog",
|
|
316
319
|
"marketplace-deployment",
|
|
317
320
|
"marketplace-entitlement",
|
|
321
|
+
"marketplace-reporting",
|
|
318
322
|
"marketplacecommerceanalytics",
|
|
319
323
|
"mediaconnect",
|
|
320
324
|
"mediaconvert",
|
|
@@ -343,7 +347,6 @@ ServiceName = Literal[
|
|
|
343
347
|
"network-firewall",
|
|
344
348
|
"networkmanager",
|
|
345
349
|
"networkmonitor",
|
|
346
|
-
"nimble",
|
|
347
350
|
"oam",
|
|
348
351
|
"omics",
|
|
349
352
|
"opensearch",
|
|
@@ -358,6 +361,7 @@ ServiceName = Literal[
|
|
|
358
361
|
"payment-cryptography-data",
|
|
359
362
|
"pca-connector-ad",
|
|
360
363
|
"pca-connector-scep",
|
|
364
|
+
"pcs",
|
|
361
365
|
"personalize",
|
|
362
366
|
"personalize-events",
|
|
363
367
|
"personalize-runtime",
|
|
@@ -432,6 +436,7 @@ ServiceName = Literal[
|
|
|
432
436
|
"snow-device-management",
|
|
433
437
|
"snowball",
|
|
434
438
|
"sns",
|
|
439
|
+
"socialmessaging",
|
|
435
440
|
"sqs",
|
|
436
441
|
"ssm",
|
|
437
442
|
"ssm-contacts",
|
|
@@ -468,7 +473,6 @@ ServiceName = Literal[
|
|
|
468
473
|
"wellarchitected",
|
|
469
474
|
"wisdom",
|
|
470
475
|
"workdocs",
|
|
471
|
-
"worklink",
|
|
472
476
|
"workmail",
|
|
473
477
|
"workmailmessageflow",
|
|
474
478
|
"workspaces",
|
|
@@ -507,6 +511,7 @@ RegionName = Literal[
|
|
|
507
511
|
"ap-southeast-2",
|
|
508
512
|
"ap-southeast-3",
|
|
509
513
|
"ap-southeast-4",
|
|
514
|
+
"ap-southeast-5",
|
|
510
515
|
"ca-central-1",
|
|
511
516
|
"ca-west-1",
|
|
512
517
|
"eu-central-1",
|
mypy_boto3_batch/paginator.py
CHANGED
|
@@ -28,21 +28,30 @@ Usage::
|
|
|
28
28
|
```
|
|
29
29
|
"""
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
import sys
|
|
32
|
+
from typing import Generic, Iterator, TypeVar
|
|
32
33
|
|
|
33
34
|
from botocore.paginate import PageIterator, Paginator
|
|
34
35
|
|
|
35
|
-
from .literals import JobStatusType
|
|
36
36
|
from .type_defs import (
|
|
37
|
+
DescribeComputeEnvironmentsRequestDescribeComputeEnvironmentsPaginateTypeDef,
|
|
37
38
|
DescribeComputeEnvironmentsResponseTypeDef,
|
|
39
|
+
DescribeJobDefinitionsRequestDescribeJobDefinitionsPaginateTypeDef,
|
|
38
40
|
DescribeJobDefinitionsResponseTypeDef,
|
|
41
|
+
DescribeJobQueuesRequestDescribeJobQueuesPaginateTypeDef,
|
|
39
42
|
DescribeJobQueuesResponseTypeDef,
|
|
40
|
-
|
|
43
|
+
ListJobsRequestListJobsPaginateTypeDef,
|
|
41
44
|
ListJobsResponseTypeDef,
|
|
45
|
+
ListSchedulingPoliciesRequestListSchedulingPoliciesPaginateTypeDef,
|
|
42
46
|
ListSchedulingPoliciesResponseTypeDef,
|
|
43
|
-
PaginatorConfigTypeDef,
|
|
44
47
|
)
|
|
45
48
|
|
|
49
|
+
if sys.version_info >= (3, 12):
|
|
50
|
+
from typing import Unpack
|
|
51
|
+
else:
|
|
52
|
+
from typing_extensions import Unpack
|
|
53
|
+
|
|
54
|
+
|
|
46
55
|
__all__ = (
|
|
47
56
|
"DescribeComputeEnvironmentsPaginator",
|
|
48
57
|
"DescribeJobDefinitionsPaginator",
|
|
@@ -51,6 +60,7 @@ __all__ = (
|
|
|
51
60
|
"ListSchedulingPoliciesPaginator",
|
|
52
61
|
)
|
|
53
62
|
|
|
63
|
+
|
|
54
64
|
_ItemTypeDef = TypeVar("_ItemTypeDef")
|
|
55
65
|
|
|
56
66
|
|
|
@@ -69,9 +79,9 @@ class DescribeComputeEnvironmentsPaginator(Paginator):
|
|
|
69
79
|
|
|
70
80
|
def paginate(
|
|
71
81
|
self,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
82
|
+
**kwargs: Unpack[
|
|
83
|
+
DescribeComputeEnvironmentsRequestDescribeComputeEnvironmentsPaginateTypeDef
|
|
84
|
+
],
|
|
75
85
|
) -> _PageIterator[DescribeComputeEnvironmentsResponseTypeDef]:
|
|
76
86
|
"""
|
|
77
87
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch.html#Batch.Paginator.DescribeComputeEnvironments.paginate)
|
|
@@ -86,12 +96,7 @@ class DescribeJobDefinitionsPaginator(Paginator):
|
|
|
86
96
|
"""
|
|
87
97
|
|
|
88
98
|
def paginate(
|
|
89
|
-
self,
|
|
90
|
-
*,
|
|
91
|
-
jobDefinitions: Sequence[str] = ...,
|
|
92
|
-
jobDefinitionName: str = ...,
|
|
93
|
-
status: str = ...,
|
|
94
|
-
PaginationConfig: PaginatorConfigTypeDef = ...,
|
|
99
|
+
self, **kwargs: Unpack[DescribeJobDefinitionsRequestDescribeJobDefinitionsPaginateTypeDef]
|
|
95
100
|
) -> _PageIterator[DescribeJobDefinitionsResponseTypeDef]:
|
|
96
101
|
"""
|
|
97
102
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch.html#Batch.Paginator.DescribeJobDefinitions.paginate)
|
|
@@ -106,7 +111,7 @@ class DescribeJobQueuesPaginator(Paginator):
|
|
|
106
111
|
"""
|
|
107
112
|
|
|
108
113
|
def paginate(
|
|
109
|
-
self,
|
|
114
|
+
self, **kwargs: Unpack[DescribeJobQueuesRequestDescribeJobQueuesPaginateTypeDef]
|
|
110
115
|
) -> _PageIterator[DescribeJobQueuesResponseTypeDef]:
|
|
111
116
|
"""
|
|
112
117
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch.html#Batch.Paginator.DescribeJobQueues.paginate)
|
|
@@ -121,14 +126,7 @@ class ListJobsPaginator(Paginator):
|
|
|
121
126
|
"""
|
|
122
127
|
|
|
123
128
|
def paginate(
|
|
124
|
-
self,
|
|
125
|
-
*,
|
|
126
|
-
jobQueue: str = ...,
|
|
127
|
-
arrayJobId: str = ...,
|
|
128
|
-
multiNodeJobId: str = ...,
|
|
129
|
-
jobStatus: JobStatusType = ...,
|
|
130
|
-
filters: Sequence[KeyValuesPairTypeDef] = ...,
|
|
131
|
-
PaginationConfig: PaginatorConfigTypeDef = ...,
|
|
129
|
+
self, **kwargs: Unpack[ListJobsRequestListJobsPaginateTypeDef]
|
|
132
130
|
) -> _PageIterator[ListJobsResponseTypeDef]:
|
|
133
131
|
"""
|
|
134
132
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch.html#Batch.Paginator.ListJobs.paginate)
|
|
@@ -143,7 +141,7 @@ class ListSchedulingPoliciesPaginator(Paginator):
|
|
|
143
141
|
"""
|
|
144
142
|
|
|
145
143
|
def paginate(
|
|
146
|
-
self,
|
|
144
|
+
self, **kwargs: Unpack[ListSchedulingPoliciesRequestListSchedulingPoliciesPaginateTypeDef]
|
|
147
145
|
) -> _PageIterator[ListSchedulingPoliciesResponseTypeDef]:
|
|
148
146
|
"""
|
|
149
147
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch.html#Batch.Paginator.ListSchedulingPolicies.paginate)
|