types-boto3-batch 1.35.71__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.
- types_boto3_batch/__init__.py +51 -0
- types_boto3_batch/__init__.pyi +50 -0
- types_boto3_batch/__main__.py +42 -0
- types_boto3_batch/client.py +434 -0
- types_boto3_batch/client.pyi +430 -0
- types_boto3_batch/literals.py +544 -0
- types_boto3_batch/literals.pyi +542 -0
- types_boto3_batch/paginator.py +151 -0
- types_boto3_batch/paginator.pyi +138 -0
- types_boto3_batch/py.typed +0 -0
- types_boto3_batch/type_defs.py +1554 -0
- types_boto3_batch/type_defs.pyi +1383 -0
- types_boto3_batch/version.py +7 -0
- types_boto3_batch-1.35.71.dist-info/LICENSE +21 -0
- types_boto3_batch-1.35.71.dist-info/METADATA +445 -0
- types_boto3_batch-1.35.71.dist-info/RECORD +18 -0
- types_boto3_batch-1.35.71.dist-info/WHEEL +5 -0
- types_boto3_batch-1.35.71.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Type annotations for batch service client paginators.
|
|
3
|
+
|
|
4
|
+
[Open documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/paginators/)
|
|
5
|
+
|
|
6
|
+
Usage::
|
|
7
|
+
|
|
8
|
+
```python
|
|
9
|
+
from boto3.session import Session
|
|
10
|
+
|
|
11
|
+
from types_boto3_batch.client import BatchClient
|
|
12
|
+
from types_boto3_batch.paginator import (
|
|
13
|
+
DescribeComputeEnvironmentsPaginator,
|
|
14
|
+
DescribeJobDefinitionsPaginator,
|
|
15
|
+
DescribeJobQueuesPaginator,
|
|
16
|
+
ListJobsPaginator,
|
|
17
|
+
ListSchedulingPoliciesPaginator,
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
session = Session()
|
|
21
|
+
client: BatchClient = session.client("batch")
|
|
22
|
+
|
|
23
|
+
describe_compute_environments_paginator: DescribeComputeEnvironmentsPaginator = client.get_paginator("describe_compute_environments")
|
|
24
|
+
describe_job_definitions_paginator: DescribeJobDefinitionsPaginator = client.get_paginator("describe_job_definitions")
|
|
25
|
+
describe_job_queues_paginator: DescribeJobQueuesPaginator = client.get_paginator("describe_job_queues")
|
|
26
|
+
list_jobs_paginator: ListJobsPaginator = client.get_paginator("list_jobs")
|
|
27
|
+
list_scheduling_policies_paginator: ListSchedulingPoliciesPaginator = client.get_paginator("list_scheduling_policies")
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Copyright 2024 Vlad Emelianov
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
import sys
|
|
34
|
+
from typing import Generic, Iterator, TypeVar
|
|
35
|
+
|
|
36
|
+
from botocore.paginate import PageIterator, Paginator
|
|
37
|
+
|
|
38
|
+
from .type_defs import (
|
|
39
|
+
DescribeComputeEnvironmentsRequestDescribeComputeEnvironmentsPaginateTypeDef,
|
|
40
|
+
DescribeComputeEnvironmentsResponseTypeDef,
|
|
41
|
+
DescribeJobDefinitionsRequestDescribeJobDefinitionsPaginateTypeDef,
|
|
42
|
+
DescribeJobDefinitionsResponseTypeDef,
|
|
43
|
+
DescribeJobQueuesRequestDescribeJobQueuesPaginateTypeDef,
|
|
44
|
+
DescribeJobQueuesResponseTypeDef,
|
|
45
|
+
ListJobsRequestListJobsPaginateTypeDef,
|
|
46
|
+
ListJobsResponseTypeDef,
|
|
47
|
+
ListSchedulingPoliciesRequestListSchedulingPoliciesPaginateTypeDef,
|
|
48
|
+
ListSchedulingPoliciesResponseTypeDef,
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
if sys.version_info >= (3, 12):
|
|
52
|
+
from typing import Unpack
|
|
53
|
+
else:
|
|
54
|
+
from typing_extensions import Unpack
|
|
55
|
+
|
|
56
|
+
__all__ = (
|
|
57
|
+
"DescribeComputeEnvironmentsPaginator",
|
|
58
|
+
"DescribeJobDefinitionsPaginator",
|
|
59
|
+
"DescribeJobQueuesPaginator",
|
|
60
|
+
"ListJobsPaginator",
|
|
61
|
+
"ListSchedulingPoliciesPaginator",
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
_ItemTypeDef = TypeVar("_ItemTypeDef")
|
|
65
|
+
|
|
66
|
+
class _PageIterator(PageIterator, Generic[_ItemTypeDef]):
|
|
67
|
+
def __iter__(self) -> Iterator[_ItemTypeDef]:
|
|
68
|
+
"""
|
|
69
|
+
Proxy method to specify iterator item type.
|
|
70
|
+
"""
|
|
71
|
+
|
|
72
|
+
class DescribeComputeEnvironmentsPaginator(Paginator):
|
|
73
|
+
"""
|
|
74
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/paginator/DescribeComputeEnvironments.html#Batch.Paginator.DescribeComputeEnvironments)
|
|
75
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/paginators/#describecomputeenvironmentspaginator)
|
|
76
|
+
"""
|
|
77
|
+
def paginate(
|
|
78
|
+
self,
|
|
79
|
+
**kwargs: Unpack[
|
|
80
|
+
DescribeComputeEnvironmentsRequestDescribeComputeEnvironmentsPaginateTypeDef
|
|
81
|
+
],
|
|
82
|
+
) -> _PageIterator[DescribeComputeEnvironmentsResponseTypeDef]:
|
|
83
|
+
"""
|
|
84
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/paginator/DescribeComputeEnvironments.html#Batch.Paginator.DescribeComputeEnvironments.paginate)
|
|
85
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/paginators/#describecomputeenvironmentspaginator)
|
|
86
|
+
"""
|
|
87
|
+
|
|
88
|
+
class DescribeJobDefinitionsPaginator(Paginator):
|
|
89
|
+
"""
|
|
90
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/paginator/DescribeJobDefinitions.html#Batch.Paginator.DescribeJobDefinitions)
|
|
91
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/paginators/#describejobdefinitionspaginator)
|
|
92
|
+
"""
|
|
93
|
+
def paginate(
|
|
94
|
+
self, **kwargs: Unpack[DescribeJobDefinitionsRequestDescribeJobDefinitionsPaginateTypeDef]
|
|
95
|
+
) -> _PageIterator[DescribeJobDefinitionsResponseTypeDef]:
|
|
96
|
+
"""
|
|
97
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/paginator/DescribeJobDefinitions.html#Batch.Paginator.DescribeJobDefinitions.paginate)
|
|
98
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/paginators/#describejobdefinitionspaginator)
|
|
99
|
+
"""
|
|
100
|
+
|
|
101
|
+
class DescribeJobQueuesPaginator(Paginator):
|
|
102
|
+
"""
|
|
103
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/paginator/DescribeJobQueues.html#Batch.Paginator.DescribeJobQueues)
|
|
104
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/paginators/#describejobqueuespaginator)
|
|
105
|
+
"""
|
|
106
|
+
def paginate(
|
|
107
|
+
self, **kwargs: Unpack[DescribeJobQueuesRequestDescribeJobQueuesPaginateTypeDef]
|
|
108
|
+
) -> _PageIterator[DescribeJobQueuesResponseTypeDef]:
|
|
109
|
+
"""
|
|
110
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/paginator/DescribeJobQueues.html#Batch.Paginator.DescribeJobQueues.paginate)
|
|
111
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/paginators/#describejobqueuespaginator)
|
|
112
|
+
"""
|
|
113
|
+
|
|
114
|
+
class ListJobsPaginator(Paginator):
|
|
115
|
+
"""
|
|
116
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/paginator/ListJobs.html#Batch.Paginator.ListJobs)
|
|
117
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/paginators/#listjobspaginator)
|
|
118
|
+
"""
|
|
119
|
+
def paginate(
|
|
120
|
+
self, **kwargs: Unpack[ListJobsRequestListJobsPaginateTypeDef]
|
|
121
|
+
) -> _PageIterator[ListJobsResponseTypeDef]:
|
|
122
|
+
"""
|
|
123
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/paginator/ListJobs.html#Batch.Paginator.ListJobs.paginate)
|
|
124
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/paginators/#listjobspaginator)
|
|
125
|
+
"""
|
|
126
|
+
|
|
127
|
+
class ListSchedulingPoliciesPaginator(Paginator):
|
|
128
|
+
"""
|
|
129
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/paginator/ListSchedulingPolicies.html#Batch.Paginator.ListSchedulingPolicies)
|
|
130
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/paginators/#listschedulingpoliciespaginator)
|
|
131
|
+
"""
|
|
132
|
+
def paginate(
|
|
133
|
+
self, **kwargs: Unpack[ListSchedulingPoliciesRequestListSchedulingPoliciesPaginateTypeDef]
|
|
134
|
+
) -> _PageIterator[ListSchedulingPoliciesResponseTypeDef]:
|
|
135
|
+
"""
|
|
136
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/paginator/ListSchedulingPolicies.html#Batch.Paginator.ListSchedulingPolicies.paginate)
|
|
137
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/paginators/#listschedulingpoliciespaginator)
|
|
138
|
+
"""
|
|
File without changes
|