types-boto3-batch 1.36.0__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.
@@ -0,0 +1,172 @@
1
+ """
2
+ Type annotations for batch service client paginators.
3
+
4
+ [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 2025 Vlad Emelianov
31
+ """
32
+
33
+ from __future__ import annotations
34
+
35
+ import sys
36
+ from typing import TYPE_CHECKING
37
+
38
+ from botocore.paginate import PageIterator, Paginator
39
+
40
+ from .type_defs import (
41
+ DescribeComputeEnvironmentsRequestPaginateTypeDef,
42
+ DescribeComputeEnvironmentsResponseTypeDef,
43
+ DescribeJobDefinitionsRequestPaginateTypeDef,
44
+ DescribeJobDefinitionsResponseTypeDef,
45
+ DescribeJobQueuesRequestPaginateTypeDef,
46
+ DescribeJobQueuesResponseTypeDef,
47
+ ListJobsRequestPaginateTypeDef,
48
+ ListJobsResponseTypeDef,
49
+ ListSchedulingPoliciesRequestPaginateTypeDef,
50
+ ListSchedulingPoliciesResponseTypeDef,
51
+ )
52
+
53
+ if sys.version_info >= (3, 12):
54
+ from typing import Unpack
55
+ else:
56
+ from typing_extensions import Unpack
57
+
58
+
59
+ __all__ = (
60
+ "DescribeComputeEnvironmentsPaginator",
61
+ "DescribeJobDefinitionsPaginator",
62
+ "DescribeJobQueuesPaginator",
63
+ "ListJobsPaginator",
64
+ "ListSchedulingPoliciesPaginator",
65
+ )
66
+
67
+
68
+ if TYPE_CHECKING:
69
+ _DescribeComputeEnvironmentsPaginatorBase = Paginator[
70
+ DescribeComputeEnvironmentsResponseTypeDef
71
+ ]
72
+ else:
73
+ _DescribeComputeEnvironmentsPaginatorBase = Paginator # type: ignore[assignment]
74
+
75
+
76
+ class DescribeComputeEnvironmentsPaginator(_DescribeComputeEnvironmentsPaginatorBase):
77
+ """
78
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/paginator/DescribeComputeEnvironments.html#Batch.Paginator.DescribeComputeEnvironments)
79
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/paginators/#describecomputeenvironmentspaginator)
80
+ """
81
+
82
+ def paginate( # type: ignore[override]
83
+ self, **kwargs: Unpack[DescribeComputeEnvironmentsRequestPaginateTypeDef]
84
+ ) -> PageIterator[DescribeComputeEnvironmentsResponseTypeDef]:
85
+ """
86
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/paginator/DescribeComputeEnvironments.html#Batch.Paginator.DescribeComputeEnvironments.paginate)
87
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/paginators/#describecomputeenvironmentspaginator)
88
+ """
89
+
90
+
91
+ if TYPE_CHECKING:
92
+ _DescribeJobDefinitionsPaginatorBase = Paginator[DescribeJobDefinitionsResponseTypeDef]
93
+ else:
94
+ _DescribeJobDefinitionsPaginatorBase = Paginator # type: ignore[assignment]
95
+
96
+
97
+ class DescribeJobDefinitionsPaginator(_DescribeJobDefinitionsPaginatorBase):
98
+ """
99
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/paginator/DescribeJobDefinitions.html#Batch.Paginator.DescribeJobDefinitions)
100
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/paginators/#describejobdefinitionspaginator)
101
+ """
102
+
103
+ def paginate( # type: ignore[override]
104
+ self, **kwargs: Unpack[DescribeJobDefinitionsRequestPaginateTypeDef]
105
+ ) -> PageIterator[DescribeJobDefinitionsResponseTypeDef]:
106
+ """
107
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/paginator/DescribeJobDefinitions.html#Batch.Paginator.DescribeJobDefinitions.paginate)
108
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/paginators/#describejobdefinitionspaginator)
109
+ """
110
+
111
+
112
+ if TYPE_CHECKING:
113
+ _DescribeJobQueuesPaginatorBase = Paginator[DescribeJobQueuesResponseTypeDef]
114
+ else:
115
+ _DescribeJobQueuesPaginatorBase = Paginator # type: ignore[assignment]
116
+
117
+
118
+ class DescribeJobQueuesPaginator(_DescribeJobQueuesPaginatorBase):
119
+ """
120
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/paginator/DescribeJobQueues.html#Batch.Paginator.DescribeJobQueues)
121
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/paginators/#describejobqueuespaginator)
122
+ """
123
+
124
+ def paginate( # type: ignore[override]
125
+ self, **kwargs: Unpack[DescribeJobQueuesRequestPaginateTypeDef]
126
+ ) -> PageIterator[DescribeJobQueuesResponseTypeDef]:
127
+ """
128
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/paginator/DescribeJobQueues.html#Batch.Paginator.DescribeJobQueues.paginate)
129
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/paginators/#describejobqueuespaginator)
130
+ """
131
+
132
+
133
+ if TYPE_CHECKING:
134
+ _ListJobsPaginatorBase = Paginator[ListJobsResponseTypeDef]
135
+ else:
136
+ _ListJobsPaginatorBase = Paginator # type: ignore[assignment]
137
+
138
+
139
+ class ListJobsPaginator(_ListJobsPaginatorBase):
140
+ """
141
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/paginator/ListJobs.html#Batch.Paginator.ListJobs)
142
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/paginators/#listjobspaginator)
143
+ """
144
+
145
+ def paginate( # type: ignore[override]
146
+ self, **kwargs: Unpack[ListJobsRequestPaginateTypeDef]
147
+ ) -> PageIterator[ListJobsResponseTypeDef]:
148
+ """
149
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/paginator/ListJobs.html#Batch.Paginator.ListJobs.paginate)
150
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/paginators/#listjobspaginator)
151
+ """
152
+
153
+
154
+ if TYPE_CHECKING:
155
+ _ListSchedulingPoliciesPaginatorBase = Paginator[ListSchedulingPoliciesResponseTypeDef]
156
+ else:
157
+ _ListSchedulingPoliciesPaginatorBase = Paginator # type: ignore[assignment]
158
+
159
+
160
+ class ListSchedulingPoliciesPaginator(_ListSchedulingPoliciesPaginatorBase):
161
+ """
162
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/paginator/ListSchedulingPolicies.html#Batch.Paginator.ListSchedulingPolicies)
163
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/paginators/#listschedulingpoliciespaginator)
164
+ """
165
+
166
+ def paginate( # type: ignore[override]
167
+ self, **kwargs: Unpack[ListSchedulingPoliciesRequestPaginateTypeDef]
168
+ ) -> PageIterator[ListSchedulingPoliciesResponseTypeDef]:
169
+ """
170
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/paginator/ListSchedulingPolicies.html#Batch.Paginator.ListSchedulingPolicies.paginate)
171
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/paginators/#listschedulingpoliciespaginator)
172
+ """
@@ -0,0 +1,156 @@
1
+ """
2
+ Type annotations for batch service client paginators.
3
+
4
+ [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 2025 Vlad Emelianov
31
+ """
32
+
33
+ from __future__ import annotations
34
+
35
+ import sys
36
+ from typing import TYPE_CHECKING
37
+
38
+ from botocore.paginate import PageIterator, Paginator
39
+
40
+ from .type_defs import (
41
+ DescribeComputeEnvironmentsRequestPaginateTypeDef,
42
+ DescribeComputeEnvironmentsResponseTypeDef,
43
+ DescribeJobDefinitionsRequestPaginateTypeDef,
44
+ DescribeJobDefinitionsResponseTypeDef,
45
+ DescribeJobQueuesRequestPaginateTypeDef,
46
+ DescribeJobQueuesResponseTypeDef,
47
+ ListJobsRequestPaginateTypeDef,
48
+ ListJobsResponseTypeDef,
49
+ ListSchedulingPoliciesRequestPaginateTypeDef,
50
+ ListSchedulingPoliciesResponseTypeDef,
51
+ )
52
+
53
+ if sys.version_info >= (3, 12):
54
+ from typing import Unpack
55
+ else:
56
+ from typing_extensions import Unpack
57
+
58
+ __all__ = (
59
+ "DescribeComputeEnvironmentsPaginator",
60
+ "DescribeJobDefinitionsPaginator",
61
+ "DescribeJobQueuesPaginator",
62
+ "ListJobsPaginator",
63
+ "ListSchedulingPoliciesPaginator",
64
+ )
65
+
66
+ if TYPE_CHECKING:
67
+ _DescribeComputeEnvironmentsPaginatorBase = Paginator[
68
+ DescribeComputeEnvironmentsResponseTypeDef
69
+ ]
70
+ else:
71
+ _DescribeComputeEnvironmentsPaginatorBase = Paginator # type: ignore[assignment]
72
+
73
+ class DescribeComputeEnvironmentsPaginator(_DescribeComputeEnvironmentsPaginatorBase):
74
+ """
75
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/paginator/DescribeComputeEnvironments.html#Batch.Paginator.DescribeComputeEnvironments)
76
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/paginators/#describecomputeenvironmentspaginator)
77
+ """
78
+ def paginate( # type: ignore[override]
79
+ self, **kwargs: Unpack[DescribeComputeEnvironmentsRequestPaginateTypeDef]
80
+ ) -> PageIterator[DescribeComputeEnvironmentsResponseTypeDef]:
81
+ """
82
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/paginator/DescribeComputeEnvironments.html#Batch.Paginator.DescribeComputeEnvironments.paginate)
83
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/paginators/#describecomputeenvironmentspaginator)
84
+ """
85
+
86
+ if TYPE_CHECKING:
87
+ _DescribeJobDefinitionsPaginatorBase = Paginator[DescribeJobDefinitionsResponseTypeDef]
88
+ else:
89
+ _DescribeJobDefinitionsPaginatorBase = Paginator # type: ignore[assignment]
90
+
91
+ class DescribeJobDefinitionsPaginator(_DescribeJobDefinitionsPaginatorBase):
92
+ """
93
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/paginator/DescribeJobDefinitions.html#Batch.Paginator.DescribeJobDefinitions)
94
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/paginators/#describejobdefinitionspaginator)
95
+ """
96
+ def paginate( # type: ignore[override]
97
+ self, **kwargs: Unpack[DescribeJobDefinitionsRequestPaginateTypeDef]
98
+ ) -> PageIterator[DescribeJobDefinitionsResponseTypeDef]:
99
+ """
100
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/paginator/DescribeJobDefinitions.html#Batch.Paginator.DescribeJobDefinitions.paginate)
101
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/paginators/#describejobdefinitionspaginator)
102
+ """
103
+
104
+ if TYPE_CHECKING:
105
+ _DescribeJobQueuesPaginatorBase = Paginator[DescribeJobQueuesResponseTypeDef]
106
+ else:
107
+ _DescribeJobQueuesPaginatorBase = Paginator # type: ignore[assignment]
108
+
109
+ class DescribeJobQueuesPaginator(_DescribeJobQueuesPaginatorBase):
110
+ """
111
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/paginator/DescribeJobQueues.html#Batch.Paginator.DescribeJobQueues)
112
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/paginators/#describejobqueuespaginator)
113
+ """
114
+ def paginate( # type: ignore[override]
115
+ self, **kwargs: Unpack[DescribeJobQueuesRequestPaginateTypeDef]
116
+ ) -> PageIterator[DescribeJobQueuesResponseTypeDef]:
117
+ """
118
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/paginator/DescribeJobQueues.html#Batch.Paginator.DescribeJobQueues.paginate)
119
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/paginators/#describejobqueuespaginator)
120
+ """
121
+
122
+ if TYPE_CHECKING:
123
+ _ListJobsPaginatorBase = Paginator[ListJobsResponseTypeDef]
124
+ else:
125
+ _ListJobsPaginatorBase = Paginator # type: ignore[assignment]
126
+
127
+ class ListJobsPaginator(_ListJobsPaginatorBase):
128
+ """
129
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/paginator/ListJobs.html#Batch.Paginator.ListJobs)
130
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/paginators/#listjobspaginator)
131
+ """
132
+ def paginate( # type: ignore[override]
133
+ self, **kwargs: Unpack[ListJobsRequestPaginateTypeDef]
134
+ ) -> PageIterator[ListJobsResponseTypeDef]:
135
+ """
136
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/paginator/ListJobs.html#Batch.Paginator.ListJobs.paginate)
137
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/paginators/#listjobspaginator)
138
+ """
139
+
140
+ if TYPE_CHECKING:
141
+ _ListSchedulingPoliciesPaginatorBase = Paginator[ListSchedulingPoliciesResponseTypeDef]
142
+ else:
143
+ _ListSchedulingPoliciesPaginatorBase = Paginator # type: ignore[assignment]
144
+
145
+ class ListSchedulingPoliciesPaginator(_ListSchedulingPoliciesPaginatorBase):
146
+ """
147
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/paginator/ListSchedulingPolicies.html#Batch.Paginator.ListSchedulingPolicies)
148
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/paginators/#listschedulingpoliciespaginator)
149
+ """
150
+ def paginate( # type: ignore[override]
151
+ self, **kwargs: Unpack[ListSchedulingPoliciesRequestPaginateTypeDef]
152
+ ) -> PageIterator[ListSchedulingPoliciesResponseTypeDef]:
153
+ """
154
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/paginator/ListSchedulingPolicies.html#Batch.Paginator.ListSchedulingPolicies.paginate)
155
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_batch/paginators/#listschedulingpoliciespaginator)
156
+ """
File without changes