types-boto3-bedrock-runtime 1.35.73__py3-none-any.whl → 1.35.74__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.
@@ -8,18 +8,22 @@ Usage::
8
8
  from types_boto3_bedrock_runtime import (
9
9
  BedrockRuntimeClient,
10
10
  Client,
11
+ ListAsyncInvokesPaginator,
11
12
  )
12
13
 
13
14
  session = Session()
14
15
  client: BedrockRuntimeClient = session.client("bedrock-runtime")
16
+
17
+ list_async_invokes_paginator: ListAsyncInvokesPaginator = client.get_paginator("list_async_invokes")
15
18
  ```
16
19
 
17
20
  Copyright 2024 Vlad Emelianov
18
21
  """
19
22
 
20
23
  from .client import BedrockRuntimeClient
24
+ from .paginator import ListAsyncInvokesPaginator
21
25
 
22
26
  Client = BedrockRuntimeClient
23
27
 
24
28
 
25
- __all__ = ("BedrockRuntimeClient", "Client")
29
+ __all__ = ("BedrockRuntimeClient", "Client", "ListAsyncInvokesPaginator")
@@ -8,17 +8,21 @@ Usage::
8
8
  from types_boto3_bedrock_runtime import (
9
9
  BedrockRuntimeClient,
10
10
  Client,
11
+ ListAsyncInvokesPaginator,
11
12
  )
12
13
 
13
14
  session = Session()
14
15
  client: BedrockRuntimeClient = session.client("bedrock-runtime")
16
+
17
+ list_async_invokes_paginator: ListAsyncInvokesPaginator = client.get_paginator("list_async_invokes")
15
18
  ```
16
19
 
17
20
  Copyright 2024 Vlad Emelianov
18
21
  """
19
22
 
20
23
  from .client import BedrockRuntimeClient
24
+ from .paginator import ListAsyncInvokesPaginator
21
25
 
22
26
  Client = BedrockRuntimeClient
23
27
 
24
- __all__ = ("BedrockRuntimeClient", "Client")
28
+ __all__ = ("BedrockRuntimeClient", "Client", "ListAsyncInvokesPaginator")
@@ -12,8 +12,8 @@ def print_info() -> None:
12
12
  Print package info to stdout.
13
13
  """
14
14
  print(
15
- "Type annotations for boto3 BedrockRuntime 1.35.73\n"
16
- "Version: 1.35.73\n"
15
+ "Type annotations for boto3 BedrockRuntime 1.35.74\n"
16
+ "Version: 1.35.74\n"
17
17
  "Builder version: 8.5.0\n"
18
18
  "Docs: https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime//\n"
19
19
  "Boto3 docs: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime.html#bedrockruntime\n"
@@ -26,7 +26,7 @@ def print_version() -> None:
26
26
  """
27
27
  Print package version to stdout.
28
28
  """
29
- print("1.35.73")
29
+ print("1.35.74")
30
30
 
31
31
 
32
32
  def main() -> None:
@@ -21,6 +21,7 @@ from typing import Any, Dict, Mapping, Type
21
21
 
22
22
  from botocore.client import BaseClient, ClientMeta
23
23
 
24
+ from .paginator import ListAsyncInvokesPaginator
24
25
  from .type_defs import (
25
26
  ApplyGuardrailRequestRequestTypeDef,
26
27
  ApplyGuardrailResponseTypeDef,
@@ -28,16 +29,22 @@ from .type_defs import (
28
29
  ConverseResponseTypeDef,
29
30
  ConverseStreamRequestRequestTypeDef,
30
31
  ConverseStreamResponseTypeDef,
32
+ GetAsyncInvokeRequestRequestTypeDef,
33
+ GetAsyncInvokeResponseTypeDef,
31
34
  InvokeModelRequestRequestTypeDef,
32
35
  InvokeModelResponseTypeDef,
33
36
  InvokeModelWithResponseStreamRequestRequestTypeDef,
34
37
  InvokeModelWithResponseStreamResponseTypeDef,
38
+ ListAsyncInvokesRequestRequestTypeDef,
39
+ ListAsyncInvokesResponseTypeDef,
40
+ StartAsyncInvokeRequestRequestTypeDef,
41
+ StartAsyncInvokeResponseTypeDef,
35
42
  )
36
43
 
37
44
  if sys.version_info >= (3, 12):
38
- from typing import Unpack
45
+ from typing import Literal, Unpack
39
46
  else:
40
- from typing_extensions import Unpack
47
+ from typing_extensions import Literal, Unpack
41
48
 
42
49
 
43
50
  __all__ = ("BedrockRuntimeClient",)
@@ -54,6 +61,7 @@ class BotocoreClientError(Exception):
54
61
  class Exceptions:
55
62
  AccessDeniedException: Type[BotocoreClientError]
56
63
  ClientError: Type[BotocoreClientError]
64
+ ConflictException: Type[BotocoreClientError]
57
65
  InternalServerException: Type[BotocoreClientError]
58
66
  ModelErrorException: Type[BotocoreClientError]
59
67
  ModelNotReadyException: Type[BotocoreClientError]
@@ -136,6 +144,16 @@ class BedrockRuntimeClient(BaseClient):
136
144
  [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#converse_stream)
137
145
  """
138
146
 
147
+ def get_async_invoke(
148
+ self, **kwargs: Unpack[GetAsyncInvokeRequestRequestTypeDef]
149
+ ) -> GetAsyncInvokeResponseTypeDef:
150
+ """
151
+ Retrieve information about an asynchronous invocation.
152
+
153
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/get_async_invoke.html)
154
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#get_async_invoke)
155
+ """
156
+
139
157
  def invoke_model(
140
158
  self, **kwargs: Unpack[InvokeModelRequestRequestTypeDef]
141
159
  ) -> InvokeModelResponseTypeDef:
@@ -157,3 +175,33 @@ class BedrockRuntimeClient(BaseClient):
157
175
  [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/invoke_model_with_response_stream.html)
158
176
  [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#invoke_model_with_response_stream)
159
177
  """
178
+
179
+ def list_async_invokes(
180
+ self, **kwargs: Unpack[ListAsyncInvokesRequestRequestTypeDef]
181
+ ) -> ListAsyncInvokesResponseTypeDef:
182
+ """
183
+ Lists asynchronous invocations.
184
+
185
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/list_async_invokes.html)
186
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#list_async_invokes)
187
+ """
188
+
189
+ def start_async_invoke(
190
+ self, **kwargs: Unpack[StartAsyncInvokeRequestRequestTypeDef]
191
+ ) -> StartAsyncInvokeResponseTypeDef:
192
+ """
193
+ Starts an asynchronous invocation.
194
+
195
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/start_async_invoke.html)
196
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#start_async_invoke)
197
+ """
198
+
199
+ def get_paginator(
200
+ self, operation_name: Literal["list_async_invokes"]
201
+ ) -> ListAsyncInvokesPaginator:
202
+ """
203
+ Create a paginator for an operation.
204
+
205
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/get_paginator.html)
206
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#get_paginator)
207
+ """
@@ -21,6 +21,7 @@ from typing import Any, Dict, Mapping, Type
21
21
 
22
22
  from botocore.client import BaseClient, ClientMeta
23
23
 
24
+ from .paginator import ListAsyncInvokesPaginator
24
25
  from .type_defs import (
25
26
  ApplyGuardrailRequestRequestTypeDef,
26
27
  ApplyGuardrailResponseTypeDef,
@@ -28,16 +29,22 @@ from .type_defs import (
28
29
  ConverseResponseTypeDef,
29
30
  ConverseStreamRequestRequestTypeDef,
30
31
  ConverseStreamResponseTypeDef,
32
+ GetAsyncInvokeRequestRequestTypeDef,
33
+ GetAsyncInvokeResponseTypeDef,
31
34
  InvokeModelRequestRequestTypeDef,
32
35
  InvokeModelResponseTypeDef,
33
36
  InvokeModelWithResponseStreamRequestRequestTypeDef,
34
37
  InvokeModelWithResponseStreamResponseTypeDef,
38
+ ListAsyncInvokesRequestRequestTypeDef,
39
+ ListAsyncInvokesResponseTypeDef,
40
+ StartAsyncInvokeRequestRequestTypeDef,
41
+ StartAsyncInvokeResponseTypeDef,
35
42
  )
36
43
 
37
44
  if sys.version_info >= (3, 12):
38
- from typing import Unpack
45
+ from typing import Literal, Unpack
39
46
  else:
40
- from typing_extensions import Unpack
47
+ from typing_extensions import Literal, Unpack
41
48
 
42
49
  __all__ = ("BedrockRuntimeClient",)
43
50
 
@@ -51,6 +58,7 @@ class BotocoreClientError(Exception):
51
58
  class Exceptions:
52
59
  AccessDeniedException: Type[BotocoreClientError]
53
60
  ClientError: Type[BotocoreClientError]
61
+ ConflictException: Type[BotocoreClientError]
54
62
  InternalServerException: Type[BotocoreClientError]
55
63
  ModelErrorException: Type[BotocoreClientError]
56
64
  ModelNotReadyException: Type[BotocoreClientError]
@@ -132,6 +140,16 @@ class BedrockRuntimeClient(BaseClient):
132
140
  [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#converse_stream)
133
141
  """
134
142
 
143
+ def get_async_invoke(
144
+ self, **kwargs: Unpack[GetAsyncInvokeRequestRequestTypeDef]
145
+ ) -> GetAsyncInvokeResponseTypeDef:
146
+ """
147
+ Retrieve information about an asynchronous invocation.
148
+
149
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/get_async_invoke.html)
150
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#get_async_invoke)
151
+ """
152
+
135
153
  def invoke_model(
136
154
  self, **kwargs: Unpack[InvokeModelRequestRequestTypeDef]
137
155
  ) -> InvokeModelResponseTypeDef:
@@ -153,3 +171,33 @@ class BedrockRuntimeClient(BaseClient):
153
171
  [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/invoke_model_with_response_stream.html)
154
172
  [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#invoke_model_with_response_stream)
155
173
  """
174
+
175
+ def list_async_invokes(
176
+ self, **kwargs: Unpack[ListAsyncInvokesRequestRequestTypeDef]
177
+ ) -> ListAsyncInvokesResponseTypeDef:
178
+ """
179
+ Lists asynchronous invocations.
180
+
181
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/list_async_invokes.html)
182
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#list_async_invokes)
183
+ """
184
+
185
+ def start_async_invoke(
186
+ self, **kwargs: Unpack[StartAsyncInvokeRequestRequestTypeDef]
187
+ ) -> StartAsyncInvokeResponseTypeDef:
188
+ """
189
+ Starts an asynchronous invocation.
190
+
191
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/start_async_invoke.html)
192
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#start_async_invoke)
193
+ """
194
+
195
+ def get_paginator(
196
+ self, operation_name: Literal["list_async_invokes"]
197
+ ) -> ListAsyncInvokesPaginator:
198
+ """
199
+ Create a paginator for an operation.
200
+
201
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/get_paginator.html)
202
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#get_paginator)
203
+ """
@@ -6,9 +6,9 @@ Type annotations for bedrock-runtime service literal definitions.
6
6
  Usage::
7
7
 
8
8
  ```python
9
- from types_boto3_bedrock_runtime.literals import ConversationRoleType
9
+ from types_boto3_bedrock_runtime.literals import AsyncInvokeStatusType
10
10
 
11
- data: ConversationRoleType = "assistant"
11
+ data: AsyncInvokeStatusType = "Completed"
12
12
  ```
13
13
 
14
14
  Copyright 2024 Vlad Emelianov
@@ -23,6 +23,7 @@ else:
23
23
 
24
24
 
25
25
  __all__ = (
26
+ "AsyncInvokeStatusType",
26
27
  "BedrockRuntimeServiceName",
27
28
  "ConversationRoleType",
28
29
  "DocumentFormatType",
@@ -45,15 +46,21 @@ __all__ = (
45
46
  "GuardrailTraceType",
46
47
  "GuardrailWordPolicyActionType",
47
48
  "ImageFormatType",
49
+ "ListAsyncInvokesPaginatorName",
50
+ "PaginatorName",
48
51
  "PerformanceConfigLatencyType",
49
52
  "ResourceServiceName",
50
53
  "ServiceName",
54
+ "SortAsyncInvocationByType",
55
+ "SortOrderType",
51
56
  "StopReasonType",
52
57
  "ToolResultStatusType",
53
58
  "TraceType",
59
+ "VideoFormatType",
54
60
  )
55
61
 
56
62
 
63
+ AsyncInvokeStatusType = Literal["Completed", "Failed", "InProgress"]
57
64
  ConversationRoleType = Literal["assistant", "user"]
58
65
  DocumentFormatType = Literal["csv", "doc", "docx", "html", "md", "pdf", "txt", "xls", "xlsx"]
59
66
  GuardrailActionType = Literal["GUARDRAIL_INTERVENED", "NONE"]
@@ -109,7 +116,10 @@ GuardrailTopicTypeType = Literal["DENY"]
109
116
  GuardrailTraceType = Literal["disabled", "enabled"]
110
117
  GuardrailWordPolicyActionType = Literal["BLOCKED"]
111
118
  ImageFormatType = Literal["gif", "jpeg", "png", "webp"]
119
+ ListAsyncInvokesPaginatorName = Literal["list_async_invokes"]
112
120
  PerformanceConfigLatencyType = Literal["optimized", "standard"]
121
+ SortAsyncInvocationByType = Literal["SubmissionTime"]
122
+ SortOrderType = Literal["Ascending", "Descending"]
113
123
  StopReasonType = Literal[
114
124
  "content_filtered",
115
125
  "end_turn",
@@ -120,6 +130,7 @@ StopReasonType = Literal[
120
130
  ]
121
131
  ToolResultStatusType = Literal["error", "success"]
122
132
  TraceType = Literal["DISABLED", "ENABLED"]
133
+ VideoFormatType = Literal["flv", "mkv", "mov", "mp4", "mpeg", "mpg", "three_gp", "webm", "wmv"]
123
134
  BedrockRuntimeServiceName = Literal["bedrock-runtime"]
124
135
  ServiceName = Literal[
125
136
  "accessanalyzer",
@@ -239,6 +250,7 @@ ServiceName = Literal[
239
250
  "drs",
240
251
  "ds",
241
252
  "ds-data",
253
+ "dsql",
242
254
  "dynamodb",
243
255
  "dynamodbstreams",
244
256
  "ebs",
@@ -449,6 +461,7 @@ ServiceName = Literal[
449
461
  "s3",
450
462
  "s3control",
451
463
  "s3outposts",
464
+ "s3tables",
452
465
  "sagemaker",
453
466
  "sagemaker-a2i-runtime",
454
467
  "sagemaker-edge",
@@ -535,3 +548,4 @@ ResourceServiceName = Literal[
535
548
  "sns",
536
549
  "sqs",
537
550
  ]
551
+ PaginatorName = Literal["list_async_invokes"]
@@ -6,9 +6,9 @@ Type annotations for bedrock-runtime service literal definitions.
6
6
  Usage::
7
7
 
8
8
  ```python
9
- from types_boto3_bedrock_runtime.literals import ConversationRoleType
9
+ from types_boto3_bedrock_runtime.literals import AsyncInvokeStatusType
10
10
 
11
- data: ConversationRoleType = "assistant"
11
+ data: AsyncInvokeStatusType = "Completed"
12
12
  ```
13
13
 
14
14
  Copyright 2024 Vlad Emelianov
@@ -22,6 +22,7 @@ else:
22
22
  from typing_extensions import Literal
23
23
 
24
24
  __all__ = (
25
+ "AsyncInvokeStatusType",
25
26
  "BedrockRuntimeServiceName",
26
27
  "ConversationRoleType",
27
28
  "DocumentFormatType",
@@ -44,14 +45,20 @@ __all__ = (
44
45
  "GuardrailTraceType",
45
46
  "GuardrailWordPolicyActionType",
46
47
  "ImageFormatType",
48
+ "ListAsyncInvokesPaginatorName",
49
+ "PaginatorName",
47
50
  "PerformanceConfigLatencyType",
48
51
  "ResourceServiceName",
49
52
  "ServiceName",
53
+ "SortAsyncInvocationByType",
54
+ "SortOrderType",
50
55
  "StopReasonType",
51
56
  "ToolResultStatusType",
52
57
  "TraceType",
58
+ "VideoFormatType",
53
59
  )
54
60
 
61
+ AsyncInvokeStatusType = Literal["Completed", "Failed", "InProgress"]
55
62
  ConversationRoleType = Literal["assistant", "user"]
56
63
  DocumentFormatType = Literal["csv", "doc", "docx", "html", "md", "pdf", "txt", "xls", "xlsx"]
57
64
  GuardrailActionType = Literal["GUARDRAIL_INTERVENED", "NONE"]
@@ -107,7 +114,10 @@ GuardrailTopicTypeType = Literal["DENY"]
107
114
  GuardrailTraceType = Literal["disabled", "enabled"]
108
115
  GuardrailWordPolicyActionType = Literal["BLOCKED"]
109
116
  ImageFormatType = Literal["gif", "jpeg", "png", "webp"]
117
+ ListAsyncInvokesPaginatorName = Literal["list_async_invokes"]
110
118
  PerformanceConfigLatencyType = Literal["optimized", "standard"]
119
+ SortAsyncInvocationByType = Literal["SubmissionTime"]
120
+ SortOrderType = Literal["Ascending", "Descending"]
111
121
  StopReasonType = Literal[
112
122
  "content_filtered",
113
123
  "end_turn",
@@ -118,6 +128,7 @@ StopReasonType = Literal[
118
128
  ]
119
129
  ToolResultStatusType = Literal["error", "success"]
120
130
  TraceType = Literal["DISABLED", "ENABLED"]
131
+ VideoFormatType = Literal["flv", "mkv", "mov", "mp4", "mpeg", "mpg", "three_gp", "webm", "wmv"]
121
132
  BedrockRuntimeServiceName = Literal["bedrock-runtime"]
122
133
  ServiceName = Literal[
123
134
  "accessanalyzer",
@@ -237,6 +248,7 @@ ServiceName = Literal[
237
248
  "drs",
238
249
  "ds",
239
250
  "ds-data",
251
+ "dsql",
240
252
  "dynamodb",
241
253
  "dynamodbstreams",
242
254
  "ebs",
@@ -447,6 +459,7 @@ ServiceName = Literal[
447
459
  "s3",
448
460
  "s3control",
449
461
  "s3outposts",
462
+ "s3tables",
450
463
  "sagemaker",
451
464
  "sagemaker-a2i-runtime",
452
465
  "sagemaker-edge",
@@ -533,3 +546,4 @@ ResourceServiceName = Literal[
533
546
  "sns",
534
547
  "sqs",
535
548
  ]
549
+ PaginatorName = Literal["list_async_invokes"]
@@ -0,0 +1,66 @@
1
+ """
2
+ Type annotations for bedrock-runtime service client paginators.
3
+
4
+ [Open documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/paginators/)
5
+
6
+ Usage::
7
+
8
+ ```python
9
+ from boto3.session import Session
10
+
11
+ from types_boto3_bedrock_runtime.client import BedrockRuntimeClient
12
+ from types_boto3_bedrock_runtime.paginator import (
13
+ ListAsyncInvokesPaginator,
14
+ )
15
+
16
+ session = Session()
17
+ client: BedrockRuntimeClient = session.client("bedrock-runtime")
18
+
19
+ list_async_invokes_paginator: ListAsyncInvokesPaginator = client.get_paginator("list_async_invokes")
20
+ ```
21
+
22
+ Copyright 2024 Vlad Emelianov
23
+ """
24
+
25
+ import sys
26
+ from typing import Generic, Iterator, TypeVar
27
+
28
+ from botocore.paginate import PageIterator, Paginator
29
+
30
+ from .type_defs import (
31
+ ListAsyncInvokesRequestListAsyncInvokesPaginateTypeDef,
32
+ ListAsyncInvokesResponseTypeDef,
33
+ )
34
+
35
+ if sys.version_info >= (3, 12):
36
+ from typing import Unpack
37
+ else:
38
+ from typing_extensions import Unpack
39
+
40
+
41
+ __all__ = ("ListAsyncInvokesPaginator",)
42
+
43
+
44
+ _ItemTypeDef = TypeVar("_ItemTypeDef")
45
+
46
+
47
+ class _PageIterator(PageIterator, Generic[_ItemTypeDef]):
48
+ def __iter__(self) -> Iterator[_ItemTypeDef]:
49
+ """
50
+ Proxy method to specify iterator item type.
51
+ """
52
+
53
+
54
+ class ListAsyncInvokesPaginator(Paginator):
55
+ """
56
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/paginator/ListAsyncInvokes.html#BedrockRuntime.Paginator.ListAsyncInvokes)
57
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/paginators/#listasyncinvokespaginator)
58
+ """
59
+
60
+ def paginate(
61
+ self, **kwargs: Unpack[ListAsyncInvokesRequestListAsyncInvokesPaginateTypeDef]
62
+ ) -> _PageIterator[ListAsyncInvokesResponseTypeDef]:
63
+ """
64
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/paginator/ListAsyncInvokes.html#BedrockRuntime.Paginator.ListAsyncInvokes.paginate)
65
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/paginators/#listasyncinvokespaginator)
66
+ """
@@ -0,0 +1,61 @@
1
+ """
2
+ Type annotations for bedrock-runtime service client paginators.
3
+
4
+ [Open documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/paginators/)
5
+
6
+ Usage::
7
+
8
+ ```python
9
+ from boto3.session import Session
10
+
11
+ from types_boto3_bedrock_runtime.client import BedrockRuntimeClient
12
+ from types_boto3_bedrock_runtime.paginator import (
13
+ ListAsyncInvokesPaginator,
14
+ )
15
+
16
+ session = Session()
17
+ client: BedrockRuntimeClient = session.client("bedrock-runtime")
18
+
19
+ list_async_invokes_paginator: ListAsyncInvokesPaginator = client.get_paginator("list_async_invokes")
20
+ ```
21
+
22
+ Copyright 2024 Vlad Emelianov
23
+ """
24
+
25
+ import sys
26
+ from typing import Generic, Iterator, TypeVar
27
+
28
+ from botocore.paginate import PageIterator, Paginator
29
+
30
+ from .type_defs import (
31
+ ListAsyncInvokesRequestListAsyncInvokesPaginateTypeDef,
32
+ ListAsyncInvokesResponseTypeDef,
33
+ )
34
+
35
+ if sys.version_info >= (3, 12):
36
+ from typing import Unpack
37
+ else:
38
+ from typing_extensions import Unpack
39
+
40
+ __all__ = ("ListAsyncInvokesPaginator",)
41
+
42
+ _ItemTypeDef = TypeVar("_ItemTypeDef")
43
+
44
+ class _PageIterator(PageIterator, Generic[_ItemTypeDef]):
45
+ def __iter__(self) -> Iterator[_ItemTypeDef]:
46
+ """
47
+ Proxy method to specify iterator item type.
48
+ """
49
+
50
+ class ListAsyncInvokesPaginator(Paginator):
51
+ """
52
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/paginator/ListAsyncInvokes.html#BedrockRuntime.Paginator.ListAsyncInvokes)
53
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/paginators/#listasyncinvokespaginator)
54
+ """
55
+ def paginate(
56
+ self, **kwargs: Unpack[ListAsyncInvokesRequestListAsyncInvokesPaginateTypeDef]
57
+ ) -> _PageIterator[ListAsyncInvokesResponseTypeDef]:
58
+ """
59
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/paginator/ListAsyncInvokes.html#BedrockRuntime.Paginator.ListAsyncInvokes.paginate)
60
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/paginators/#listasyncinvokespaginator)
61
+ """