types-boto3-bedrock-runtime 1.35.75__py3-none-any.whl → 1.35.93__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_bedrock_runtime/__init__.py +1 -1
- types_boto3_bedrock_runtime/__init__.pyi +1 -1
- types_boto3_bedrock_runtime/__main__.py +9 -8
- types_boto3_bedrock_runtime/client.py +15 -20
- types_boto3_bedrock_runtime/client.pyi +15 -19
- types_boto3_bedrock_runtime/literals.py +3 -2
- types_boto3_bedrock_runtime/literals.pyi +3 -2
- types_boto3_bedrock_runtime/paginator.py +14 -19
- types_boto3_bedrock_runtime/paginator.pyi +14 -18
- types_boto3_bedrock_runtime/type_defs.py +15 -7
- types_boto3_bedrock_runtime/type_defs.pyi +15 -7
- types_boto3_bedrock_runtime/version.py +2 -2
- {types_boto3_bedrock_runtime-1.35.75.dist-info → types_boto3_bedrock_runtime-1.35.93.dist-info}/LICENSE +1 -1
- {types_boto3_bedrock_runtime-1.35.75.dist-info → types_boto3_bedrock_runtime-1.35.93.dist-info}/METADATA +22 -8
- types_boto3_bedrock_runtime-1.35.93.dist-info/RECORD +18 -0
- {types_boto3_bedrock_runtime-1.35.75.dist-info → types_boto3_bedrock_runtime-1.35.93.dist-info}/WHEEL +1 -1
- types_boto3_bedrock_runtime-1.35.75.dist-info/RECORD +0 -18
- {types_boto3_bedrock_runtime-1.35.75.dist-info → types_boto3_bedrock_runtime-1.35.93.dist-info}/top_level.txt +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""
|
|
2
2
|
Main CLI entrypoint.
|
|
3
3
|
|
|
4
|
-
Copyright
|
|
4
|
+
Copyright 2025 Vlad Emelianov
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
7
|
import sys
|
|
@@ -11,14 +11,14 @@ def print_info() -> None:
|
|
|
11
11
|
"""
|
|
12
12
|
Print package info to stdout.
|
|
13
13
|
"""
|
|
14
|
-
|
|
15
|
-
"Type annotations for boto3 BedrockRuntime 1.35.
|
|
16
|
-
"Version: 1.35.
|
|
17
|
-
"Builder version: 8.
|
|
14
|
+
sys.stdout.write(
|
|
15
|
+
"Type annotations for boto3 BedrockRuntime 1.35.93\n"
|
|
16
|
+
"Version: 1.35.93\n"
|
|
17
|
+
"Builder version: 8.8.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"
|
|
20
20
|
"Other services: https://pypi.org/project/boto3-stubs/\n"
|
|
21
|
-
"Changelog: https://github.com/youtype/mypy_boto3_builder/releases"
|
|
21
|
+
"Changelog: https://github.com/youtype/mypy_boto3_builder/releases\n"
|
|
22
22
|
)
|
|
23
23
|
|
|
24
24
|
|
|
@@ -26,7 +26,7 @@ def print_version() -> None:
|
|
|
26
26
|
"""
|
|
27
27
|
Print package version to stdout.
|
|
28
28
|
"""
|
|
29
|
-
|
|
29
|
+
sys.stdout.write("1.35.93\n")
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
def main() -> None:
|
|
@@ -34,7 +34,8 @@ def main() -> None:
|
|
|
34
34
|
Main CLI entrypoint.
|
|
35
35
|
"""
|
|
36
36
|
if "--version" in sys.argv:
|
|
37
|
-
|
|
37
|
+
print_version()
|
|
38
|
+
return
|
|
38
39
|
print_info()
|
|
39
40
|
|
|
40
41
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""
|
|
2
|
-
Type annotations for bedrock-runtime service
|
|
2
|
+
Type annotations for bedrock-runtime service Client.
|
|
3
3
|
|
|
4
|
-
[
|
|
4
|
+
[Documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/)
|
|
5
5
|
|
|
6
6
|
Usage::
|
|
7
7
|
|
|
@@ -13,13 +13,17 @@ Usage::
|
|
|
13
13
|
client: BedrockRuntimeClient = session.client("bedrock-runtime")
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
-
Copyright
|
|
16
|
+
Copyright 2025 Vlad Emelianov
|
|
17
17
|
"""
|
|
18
18
|
|
|
19
|
+
from __future__ import annotations
|
|
20
|
+
|
|
19
21
|
import sys
|
|
20
|
-
from typing import Any
|
|
22
|
+
from typing import Any
|
|
21
23
|
|
|
22
24
|
from botocore.client import BaseClient, ClientMeta
|
|
25
|
+
from botocore.errorfactory import BaseClientExceptions
|
|
26
|
+
from botocore.exceptions import ClientError as BotocoreClientError
|
|
23
27
|
|
|
24
28
|
from .paginator import ListAsyncInvokesPaginator
|
|
25
29
|
from .type_defs import (
|
|
@@ -41,6 +45,11 @@ from .type_defs import (
|
|
|
41
45
|
StartAsyncInvokeResponseTypeDef,
|
|
42
46
|
)
|
|
43
47
|
|
|
48
|
+
if sys.version_info >= (3, 9):
|
|
49
|
+
from builtins import type as Type
|
|
50
|
+
from collections.abc import Mapping
|
|
51
|
+
else:
|
|
52
|
+
from typing import Mapping, Type
|
|
44
53
|
if sys.version_info >= (3, 12):
|
|
45
54
|
from typing import Literal, Unpack
|
|
46
55
|
else:
|
|
@@ -50,15 +59,7 @@ else:
|
|
|
50
59
|
__all__ = ("BedrockRuntimeClient",)
|
|
51
60
|
|
|
52
61
|
|
|
53
|
-
class
|
|
54
|
-
MSG_TEMPLATE: str
|
|
55
|
-
|
|
56
|
-
def __init__(self, error_response: Mapping[str, Any], operation_name: str) -> None:
|
|
57
|
-
self.response: Dict[str, Any]
|
|
58
|
-
self.operation_name: str
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
class Exceptions:
|
|
62
|
+
class Exceptions(BaseClientExceptions):
|
|
62
63
|
AccessDeniedException: Type[BotocoreClientError]
|
|
63
64
|
ClientError: Type[BotocoreClientError]
|
|
64
65
|
ConflictException: Type[BotocoreClientError]
|
|
@@ -109,12 +110,6 @@ class BedrockRuntimeClient(BaseClient):
|
|
|
109
110
|
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#generate_presigned_url)
|
|
110
111
|
"""
|
|
111
112
|
|
|
112
|
-
def close(self) -> None:
|
|
113
|
-
"""
|
|
114
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/close.html)
|
|
115
|
-
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#close)
|
|
116
|
-
"""
|
|
117
|
-
|
|
118
113
|
def apply_guardrail(
|
|
119
114
|
self, **kwargs: Unpack[ApplyGuardrailRequestRequestTypeDef]
|
|
120
115
|
) -> ApplyGuardrailResponseTypeDef:
|
|
@@ -196,7 +191,7 @@ class BedrockRuntimeClient(BaseClient):
|
|
|
196
191
|
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#start_async_invoke)
|
|
197
192
|
"""
|
|
198
193
|
|
|
199
|
-
def get_paginator(
|
|
194
|
+
def get_paginator( # type: ignore[override]
|
|
200
195
|
self, operation_name: Literal["list_async_invokes"]
|
|
201
196
|
) -> ListAsyncInvokesPaginator:
|
|
202
197
|
"""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""
|
|
2
|
-
Type annotations for bedrock-runtime service
|
|
2
|
+
Type annotations for bedrock-runtime service Client.
|
|
3
3
|
|
|
4
|
-
[
|
|
4
|
+
[Documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/)
|
|
5
5
|
|
|
6
6
|
Usage::
|
|
7
7
|
|
|
@@ -13,13 +13,17 @@ Usage::
|
|
|
13
13
|
client: BedrockRuntimeClient = session.client("bedrock-runtime")
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
-
Copyright
|
|
16
|
+
Copyright 2025 Vlad Emelianov
|
|
17
17
|
"""
|
|
18
18
|
|
|
19
|
+
from __future__ import annotations
|
|
20
|
+
|
|
19
21
|
import sys
|
|
20
|
-
from typing import Any
|
|
22
|
+
from typing import Any
|
|
21
23
|
|
|
22
24
|
from botocore.client import BaseClient, ClientMeta
|
|
25
|
+
from botocore.errorfactory import BaseClientExceptions
|
|
26
|
+
from botocore.exceptions import ClientError as BotocoreClientError
|
|
23
27
|
|
|
24
28
|
from .paginator import ListAsyncInvokesPaginator
|
|
25
29
|
from .type_defs import (
|
|
@@ -41,6 +45,11 @@ from .type_defs import (
|
|
|
41
45
|
StartAsyncInvokeResponseTypeDef,
|
|
42
46
|
)
|
|
43
47
|
|
|
48
|
+
if sys.version_info >= (3, 9):
|
|
49
|
+
from builtins import type as Type
|
|
50
|
+
from collections.abc import Mapping
|
|
51
|
+
else:
|
|
52
|
+
from typing import Mapping, Type
|
|
44
53
|
if sys.version_info >= (3, 12):
|
|
45
54
|
from typing import Literal, Unpack
|
|
46
55
|
else:
|
|
@@ -48,14 +57,7 @@ else:
|
|
|
48
57
|
|
|
49
58
|
__all__ = ("BedrockRuntimeClient",)
|
|
50
59
|
|
|
51
|
-
class
|
|
52
|
-
MSG_TEMPLATE: str
|
|
53
|
-
|
|
54
|
-
def __init__(self, error_response: Mapping[str, Any], operation_name: str) -> None:
|
|
55
|
-
self.response: Dict[str, Any]
|
|
56
|
-
self.operation_name: str
|
|
57
|
-
|
|
58
|
-
class Exceptions:
|
|
60
|
+
class Exceptions(BaseClientExceptions):
|
|
59
61
|
AccessDeniedException: Type[BotocoreClientError]
|
|
60
62
|
ClientError: Type[BotocoreClientError]
|
|
61
63
|
ConflictException: Type[BotocoreClientError]
|
|
@@ -105,12 +107,6 @@ class BedrockRuntimeClient(BaseClient):
|
|
|
105
107
|
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#generate_presigned_url)
|
|
106
108
|
"""
|
|
107
109
|
|
|
108
|
-
def close(self) -> None:
|
|
109
|
-
"""
|
|
110
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/close.html)
|
|
111
|
-
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#close)
|
|
112
|
-
"""
|
|
113
|
-
|
|
114
110
|
def apply_guardrail(
|
|
115
111
|
self, **kwargs: Unpack[ApplyGuardrailRequestRequestTypeDef]
|
|
116
112
|
) -> ApplyGuardrailResponseTypeDef:
|
|
@@ -192,7 +188,7 @@ class BedrockRuntimeClient(BaseClient):
|
|
|
192
188
|
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#start_async_invoke)
|
|
193
189
|
"""
|
|
194
190
|
|
|
195
|
-
def get_paginator(
|
|
191
|
+
def get_paginator( # type: ignore[override]
|
|
196
192
|
self, operation_name: Literal["list_async_invokes"]
|
|
197
193
|
) -> ListAsyncInvokesPaginator:
|
|
198
194
|
"""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""
|
|
2
2
|
Type annotations for bedrock-runtime service literal definitions.
|
|
3
3
|
|
|
4
|
-
[
|
|
4
|
+
[Documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/literals/)
|
|
5
5
|
|
|
6
6
|
Usage::
|
|
7
7
|
|
|
@@ -11,7 +11,7 @@ Usage::
|
|
|
11
11
|
data: AsyncInvokeStatusType = "Completed"
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Copyright
|
|
14
|
+
Copyright 2025 Vlad Emelianov
|
|
15
15
|
"""
|
|
16
16
|
|
|
17
17
|
import sys
|
|
@@ -171,6 +171,7 @@ ServiceName = Literal[
|
|
|
171
171
|
"b2bi",
|
|
172
172
|
"backup",
|
|
173
173
|
"backup-gateway",
|
|
174
|
+
"backupsearch",
|
|
174
175
|
"batch",
|
|
175
176
|
"bcm-data-exports",
|
|
176
177
|
"bcm-pricing-calculator",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""
|
|
2
2
|
Type annotations for bedrock-runtime service literal definitions.
|
|
3
3
|
|
|
4
|
-
[
|
|
4
|
+
[Documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/literals/)
|
|
5
5
|
|
|
6
6
|
Usage::
|
|
7
7
|
|
|
@@ -11,7 +11,7 @@ Usage::
|
|
|
11
11
|
data: AsyncInvokeStatusType = "Completed"
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Copyright
|
|
14
|
+
Copyright 2025 Vlad Emelianov
|
|
15
15
|
"""
|
|
16
16
|
|
|
17
17
|
import sys
|
|
@@ -169,6 +169,7 @@ ServiceName = Literal[
|
|
|
169
169
|
"b2bi",
|
|
170
170
|
"backup",
|
|
171
171
|
"backup-gateway",
|
|
172
|
+
"backupsearch",
|
|
172
173
|
"batch",
|
|
173
174
|
"bcm-data-exports",
|
|
174
175
|
"bcm-pricing-calculator",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""
|
|
2
2
|
Type annotations for bedrock-runtime service client paginators.
|
|
3
3
|
|
|
4
|
-
[
|
|
4
|
+
[Documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/paginators/)
|
|
5
5
|
|
|
6
6
|
Usage::
|
|
7
7
|
|
|
@@ -19,18 +19,17 @@ Usage::
|
|
|
19
19
|
list_async_invokes_paginator: ListAsyncInvokesPaginator = client.get_paginator("list_async_invokes")
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
Copyright
|
|
22
|
+
Copyright 2025 Vlad Emelianov
|
|
23
23
|
"""
|
|
24
24
|
|
|
25
|
+
from __future__ import annotations
|
|
26
|
+
|
|
25
27
|
import sys
|
|
26
|
-
from typing import
|
|
28
|
+
from typing import TYPE_CHECKING
|
|
27
29
|
|
|
28
30
|
from botocore.paginate import PageIterator, Paginator
|
|
29
31
|
|
|
30
|
-
from .type_defs import
|
|
31
|
-
ListAsyncInvokesRequestListAsyncInvokesPaginateTypeDef,
|
|
32
|
-
ListAsyncInvokesResponseTypeDef,
|
|
33
|
-
)
|
|
32
|
+
from .type_defs import ListAsyncInvokesRequestPaginateTypeDef, ListAsyncInvokesResponseTypeDef
|
|
34
33
|
|
|
35
34
|
if sys.version_info >= (3, 12):
|
|
36
35
|
from typing import Unpack
|
|
@@ -41,25 +40,21 @@ else:
|
|
|
41
40
|
__all__ = ("ListAsyncInvokesPaginator",)
|
|
42
41
|
|
|
43
42
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
def __iter__(self) -> Iterator[_ItemTypeDef]:
|
|
49
|
-
"""
|
|
50
|
-
Proxy method to specify iterator item type.
|
|
51
|
-
"""
|
|
43
|
+
if TYPE_CHECKING:
|
|
44
|
+
_ListAsyncInvokesPaginatorBase = Paginator[ListAsyncInvokesResponseTypeDef]
|
|
45
|
+
else:
|
|
46
|
+
_ListAsyncInvokesPaginatorBase = Paginator # type: ignore[assignment]
|
|
52
47
|
|
|
53
48
|
|
|
54
|
-
class ListAsyncInvokesPaginator(
|
|
49
|
+
class ListAsyncInvokesPaginator(_ListAsyncInvokesPaginatorBase):
|
|
55
50
|
"""
|
|
56
51
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/paginator/ListAsyncInvokes.html#BedrockRuntime.Paginator.ListAsyncInvokes)
|
|
57
52
|
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/paginators/#listasyncinvokespaginator)
|
|
58
53
|
"""
|
|
59
54
|
|
|
60
|
-
def paginate(
|
|
61
|
-
self, **kwargs: Unpack[
|
|
62
|
-
) ->
|
|
55
|
+
def paginate( # type: ignore[override]
|
|
56
|
+
self, **kwargs: Unpack[ListAsyncInvokesRequestPaginateTypeDef]
|
|
57
|
+
) -> PageIterator[ListAsyncInvokesResponseTypeDef]:
|
|
63
58
|
"""
|
|
64
59
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/paginator/ListAsyncInvokes.html#BedrockRuntime.Paginator.ListAsyncInvokes.paginate)
|
|
65
60
|
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/paginators/#listasyncinvokespaginator)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""
|
|
2
2
|
Type annotations for bedrock-runtime service client paginators.
|
|
3
3
|
|
|
4
|
-
[
|
|
4
|
+
[Documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/paginators/)
|
|
5
5
|
|
|
6
6
|
Usage::
|
|
7
7
|
|
|
@@ -19,18 +19,17 @@ Usage::
|
|
|
19
19
|
list_async_invokes_paginator: ListAsyncInvokesPaginator = client.get_paginator("list_async_invokes")
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
Copyright
|
|
22
|
+
Copyright 2025 Vlad Emelianov
|
|
23
23
|
"""
|
|
24
24
|
|
|
25
|
+
from __future__ import annotations
|
|
26
|
+
|
|
25
27
|
import sys
|
|
26
|
-
from typing import
|
|
28
|
+
from typing import TYPE_CHECKING
|
|
27
29
|
|
|
28
30
|
from botocore.paginate import PageIterator, Paginator
|
|
29
31
|
|
|
30
|
-
from .type_defs import
|
|
31
|
-
ListAsyncInvokesRequestListAsyncInvokesPaginateTypeDef,
|
|
32
|
-
ListAsyncInvokesResponseTypeDef,
|
|
33
|
-
)
|
|
32
|
+
from .type_defs import ListAsyncInvokesRequestPaginateTypeDef, ListAsyncInvokesResponseTypeDef
|
|
34
33
|
|
|
35
34
|
if sys.version_info >= (3, 12):
|
|
36
35
|
from typing import Unpack
|
|
@@ -39,22 +38,19 @@ else:
|
|
|
39
38
|
|
|
40
39
|
__all__ = ("ListAsyncInvokesPaginator",)
|
|
41
40
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"""
|
|
47
|
-
Proxy method to specify iterator item type.
|
|
48
|
-
"""
|
|
41
|
+
if TYPE_CHECKING:
|
|
42
|
+
_ListAsyncInvokesPaginatorBase = Paginator[ListAsyncInvokesResponseTypeDef]
|
|
43
|
+
else:
|
|
44
|
+
_ListAsyncInvokesPaginatorBase = Paginator # type: ignore[assignment]
|
|
49
45
|
|
|
50
|
-
class ListAsyncInvokesPaginator(
|
|
46
|
+
class ListAsyncInvokesPaginator(_ListAsyncInvokesPaginatorBase):
|
|
51
47
|
"""
|
|
52
48
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/paginator/ListAsyncInvokes.html#BedrockRuntime.Paginator.ListAsyncInvokes)
|
|
53
49
|
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/paginators/#listasyncinvokespaginator)
|
|
54
50
|
"""
|
|
55
|
-
def paginate(
|
|
56
|
-
self, **kwargs: Unpack[
|
|
57
|
-
) ->
|
|
51
|
+
def paginate( # type: ignore[override]
|
|
52
|
+
self, **kwargs: Unpack[ListAsyncInvokesRequestPaginateTypeDef]
|
|
53
|
+
) -> PageIterator[ListAsyncInvokesResponseTypeDef]:
|
|
58
54
|
"""
|
|
59
55
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/paginator/ListAsyncInvokes.html#BedrockRuntime.Paginator.ListAsyncInvokes.paginate)
|
|
60
56
|
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/paginators/#listasyncinvokespaginator)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""
|
|
2
2
|
Type annotations for bedrock-runtime service type definitions.
|
|
3
3
|
|
|
4
|
-
[
|
|
4
|
+
[Documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/type_defs/)
|
|
5
5
|
|
|
6
6
|
Usage::
|
|
7
7
|
|
|
@@ -11,12 +11,14 @@ Usage::
|
|
|
11
11
|
data: GuardrailOutputContentTypeDef = ...
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Copyright
|
|
14
|
+
Copyright 2025 Vlad Emelianov
|
|
15
15
|
"""
|
|
16
16
|
|
|
17
|
+
from __future__ import annotations
|
|
18
|
+
|
|
17
19
|
import sys
|
|
18
20
|
from datetime import datetime
|
|
19
|
-
from typing import IO, Any,
|
|
21
|
+
from typing import IO, Any, Union
|
|
20
22
|
|
|
21
23
|
from botocore.eventstream import EventStream
|
|
22
24
|
from botocore.response import StreamingBody
|
|
@@ -49,6 +51,12 @@ from .literals import (
|
|
|
49
51
|
VideoFormatType,
|
|
50
52
|
)
|
|
51
53
|
|
|
54
|
+
if sys.version_info >= (3, 9):
|
|
55
|
+
from builtins import dict as Dict
|
|
56
|
+
from builtins import list as List
|
|
57
|
+
from collections.abc import Mapping, Sequence
|
|
58
|
+
else:
|
|
59
|
+
from typing import Dict, List, Mapping, Sequence
|
|
52
60
|
if sys.version_info >= (3, 12):
|
|
53
61
|
from typing import Literal, NotRequired, TypedDict
|
|
54
62
|
else:
|
|
@@ -139,7 +147,7 @@ __all__ = (
|
|
|
139
147
|
"InvokeModelResponseTypeDef",
|
|
140
148
|
"InvokeModelWithResponseStreamRequestRequestTypeDef",
|
|
141
149
|
"InvokeModelWithResponseStreamResponseTypeDef",
|
|
142
|
-
"
|
|
150
|
+
"ListAsyncInvokesRequestPaginateTypeDef",
|
|
143
151
|
"ListAsyncInvokesRequestRequestTypeDef",
|
|
144
152
|
"ListAsyncInvokesResponseTypeDef",
|
|
145
153
|
"MessageOutputTypeDef",
|
|
@@ -613,7 +621,7 @@ ImageBlockOutputTypeDef = TypedDict(
|
|
|
613
621
|
)
|
|
614
622
|
|
|
615
623
|
|
|
616
|
-
class
|
|
624
|
+
class ListAsyncInvokesRequestPaginateTypeDef(TypedDict):
|
|
617
625
|
submitTimeAfter: NotRequired[TimestampTypeDef]
|
|
618
626
|
submitTimeBefore: NotRequired[TimestampTypeDef]
|
|
619
627
|
statusEquals: NotRequired[AsyncInvokeStatusType]
|
|
@@ -744,7 +752,7 @@ class GuardrailInvocationMetricsTypeDef(TypedDict):
|
|
|
744
752
|
|
|
745
753
|
|
|
746
754
|
class InvokeModelWithResponseStreamResponseTypeDef(TypedDict):
|
|
747
|
-
body:
|
|
755
|
+
body: EventStream[ResponseStreamTypeDef]
|
|
748
756
|
contentType: str
|
|
749
757
|
performanceConfigLatency: PerformanceConfigLatencyType
|
|
750
758
|
ResponseMetadata: ResponseMetadataTypeDef
|
|
@@ -957,7 +965,7 @@ class ToolResultBlockTypeDef(TypedDict):
|
|
|
957
965
|
|
|
958
966
|
|
|
959
967
|
class ConverseStreamResponseTypeDef(TypedDict):
|
|
960
|
-
stream:
|
|
968
|
+
stream: EventStream[ConverseStreamOutputTypeDef]
|
|
961
969
|
ResponseMetadata: ResponseMetadataTypeDef
|
|
962
970
|
|
|
963
971
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""
|
|
2
2
|
Type annotations for bedrock-runtime service type definitions.
|
|
3
3
|
|
|
4
|
-
[
|
|
4
|
+
[Documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/type_defs/)
|
|
5
5
|
|
|
6
6
|
Usage::
|
|
7
7
|
|
|
@@ -11,12 +11,14 @@ Usage::
|
|
|
11
11
|
data: GuardrailOutputContentTypeDef = ...
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Copyright
|
|
14
|
+
Copyright 2025 Vlad Emelianov
|
|
15
15
|
"""
|
|
16
16
|
|
|
17
|
+
from __future__ import annotations
|
|
18
|
+
|
|
17
19
|
import sys
|
|
18
20
|
from datetime import datetime
|
|
19
|
-
from typing import IO, Any,
|
|
21
|
+
from typing import IO, Any, Union
|
|
20
22
|
|
|
21
23
|
from botocore.eventstream import EventStream
|
|
22
24
|
from botocore.response import StreamingBody
|
|
@@ -49,6 +51,12 @@ from .literals import (
|
|
|
49
51
|
VideoFormatType,
|
|
50
52
|
)
|
|
51
53
|
|
|
54
|
+
if sys.version_info >= (3, 9):
|
|
55
|
+
from builtins import dict as Dict
|
|
56
|
+
from builtins import list as List
|
|
57
|
+
from collections.abc import Mapping, Sequence
|
|
58
|
+
else:
|
|
59
|
+
from typing import Dict, List, Mapping, Sequence
|
|
52
60
|
if sys.version_info >= (3, 12):
|
|
53
61
|
from typing import Literal, NotRequired, TypedDict
|
|
54
62
|
else:
|
|
@@ -138,7 +146,7 @@ __all__ = (
|
|
|
138
146
|
"InvokeModelResponseTypeDef",
|
|
139
147
|
"InvokeModelWithResponseStreamRequestRequestTypeDef",
|
|
140
148
|
"InvokeModelWithResponseStreamResponseTypeDef",
|
|
141
|
-
"
|
|
149
|
+
"ListAsyncInvokesRequestPaginateTypeDef",
|
|
142
150
|
"ListAsyncInvokesRequestRequestTypeDef",
|
|
143
151
|
"ListAsyncInvokesResponseTypeDef",
|
|
144
152
|
"MessageOutputTypeDef",
|
|
@@ -549,7 +557,7 @@ ImageBlockOutputTypeDef = TypedDict(
|
|
|
549
557
|
},
|
|
550
558
|
)
|
|
551
559
|
|
|
552
|
-
class
|
|
560
|
+
class ListAsyncInvokesRequestPaginateTypeDef(TypedDict):
|
|
553
561
|
submitTimeAfter: NotRequired[TimestampTypeDef]
|
|
554
562
|
submitTimeBefore: NotRequired[TimestampTypeDef]
|
|
555
563
|
statusEquals: NotRequired[AsyncInvokeStatusType]
|
|
@@ -666,7 +674,7 @@ class GuardrailInvocationMetricsTypeDef(TypedDict):
|
|
|
666
674
|
guardrailCoverage: NotRequired[GuardrailCoverageTypeDef]
|
|
667
675
|
|
|
668
676
|
class InvokeModelWithResponseStreamResponseTypeDef(TypedDict):
|
|
669
|
-
body:
|
|
677
|
+
body: EventStream[ResponseStreamTypeDef]
|
|
670
678
|
contentType: str
|
|
671
679
|
performanceConfigLatency: PerformanceConfigLatencyType
|
|
672
680
|
ResponseMetadata: ResponseMetadataTypeDef
|
|
@@ -848,7 +856,7 @@ class ToolResultBlockTypeDef(TypedDict):
|
|
|
848
856
|
status: NotRequired[ToolResultStatusType]
|
|
849
857
|
|
|
850
858
|
class ConverseStreamResponseTypeDef(TypedDict):
|
|
851
|
-
stream:
|
|
859
|
+
stream: EventStream[ConverseStreamOutputTypeDef]
|
|
852
860
|
ResponseMetadata: ResponseMetadataTypeDef
|
|
853
861
|
|
|
854
862
|
class ConverseResponseTypeDef(TypedDict):
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: types-boto3-bedrock-runtime
|
|
3
|
-
Version: 1.35.
|
|
4
|
-
Summary: Type annotations for boto3 BedrockRuntime 1.35.
|
|
3
|
+
Version: 1.35.93
|
|
4
|
+
Summary: Type annotations for boto3 BedrockRuntime 1.35.93 service generated with mypy-boto3-builder 8.8.0
|
|
5
5
|
Home-page: https://github.com/youtype/mypy_boto3_builder
|
|
6
6
|
Author: Vlad Emelianov
|
|
7
7
|
Author-email: vlad.emelianov.nz@gmail.com
|
|
@@ -30,7 +30,7 @@ Classifier: Typing :: Stubs Only
|
|
|
30
30
|
Requires-Python: >=3.8
|
|
31
31
|
Description-Content-Type: text/markdown
|
|
32
32
|
License-File: LICENSE
|
|
33
|
-
Requires-Dist: typing-extensions
|
|
33
|
+
Requires-Dist: typing-extensions; python_version < "3.12"
|
|
34
34
|
|
|
35
35
|
<a id="types-boto3-bedrock-runtime"></a>
|
|
36
36
|
|
|
@@ -44,7 +44,7 @@ Requires-Dist: typing-extensions>=4.1.0; python_version < "3.12"
|
|
|
44
44
|

|
|
45
45
|
|
|
46
46
|
Type annotations for
|
|
47
|
-
[boto3 BedrockRuntime 1.35.
|
|
47
|
+
[boto3 BedrockRuntime 1.35.93](https://pypi.org/project/boto3/) compatible with
|
|
48
48
|
[VSCode](https://code.visualstudio.com/),
|
|
49
49
|
[PyCharm](https://www.jetbrains.com/pycharm/),
|
|
50
50
|
[Emacs](https://www.gnu.org/software/emacs/),
|
|
@@ -52,8 +52,8 @@ Type annotations for
|
|
|
52
52
|
[mypy](https://github.com/python/mypy),
|
|
53
53
|
[pyright](https://github.com/microsoft/pyright) and other tools.
|
|
54
54
|
|
|
55
|
-
Generated
|
|
56
|
-
[mypy-boto3-builder 8.
|
|
55
|
+
Generated with
|
|
56
|
+
[mypy-boto3-builder 8.8.0](https://github.com/youtype/mypy_boto3_builder).
|
|
57
57
|
|
|
58
58
|
More information can be found on
|
|
59
59
|
[types-boto3](https://pypi.org/project/types-boto3/) page and in
|
|
@@ -65,6 +65,7 @@ See how it helps you find and fix potential bugs:
|
|
|
65
65
|
|
|
66
66
|
- [types-boto3-bedrock-runtime](#types-boto3-bedrock-runtime)
|
|
67
67
|
- [How to install](#how-to-install)
|
|
68
|
+
- [Generate locally (recommended)](<#generate-locally-(recommended)>)
|
|
68
69
|
- [VSCode extension](#vscode-extension)
|
|
69
70
|
- [From PyPI with pip](#from-pypi-with-pip)
|
|
70
71
|
- [How to uninstall](#how-to-uninstall)
|
|
@@ -95,6 +96,21 @@ See how it helps you find and fix potential bugs:
|
|
|
95
96
|
|
|
96
97
|
## How to install
|
|
97
98
|
|
|
99
|
+
<a id="generate-locally-(recommended)"></a>
|
|
100
|
+
|
|
101
|
+
### Generate locally (recommended)
|
|
102
|
+
|
|
103
|
+
You can generate type annotations for `boto3` package locally with
|
|
104
|
+
`mypy_boto3_builder`. Use
|
|
105
|
+
[uv](https://docs.astral.sh/uv/getting-started/installation/) for build
|
|
106
|
+
isolation.
|
|
107
|
+
|
|
108
|
+
1. Run mypy-boto3-builder in your package root directory:
|
|
109
|
+
`uvx --with 'boto3==1.35.93' mypy_boto3_builder`
|
|
110
|
+
2. Select `boto3` AWS SDK.
|
|
111
|
+
3. Add `BedrockRuntime` service.
|
|
112
|
+
4. Use provided commands to install generated packages.
|
|
113
|
+
|
|
98
114
|
<a id="vscode-extension"></a>
|
|
99
115
|
|
|
100
116
|
### VSCode extension
|
|
@@ -115,12 +131,10 @@ Install `types-boto3` for `BedrockRuntime` service.
|
|
|
115
131
|
# install with boto3 type annotations
|
|
116
132
|
python -m pip install 'types-boto3[bedrock-runtime]'
|
|
117
133
|
|
|
118
|
-
|
|
119
134
|
# Lite version does not provide session.client/resource overloads
|
|
120
135
|
# it is more RAM-friendly, but requires explicit type annotations
|
|
121
136
|
python -m pip install 'types-boto3-lite[bedrock-runtime]'
|
|
122
137
|
|
|
123
|
-
|
|
124
138
|
# standalone installation
|
|
125
139
|
python -m pip install types-boto3-bedrock-runtime
|
|
126
140
|
```
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
types_boto3_bedrock_runtime/__init__.py,sha256=AHhFbjXk1-kUePImPUxjoe1vkUROt8ftuxFKzz2GjiI,684
|
|
2
|
+
types_boto3_bedrock_runtime/__init__.pyi,sha256=l99Jdcg6QoWVrt2zpwdVIqxLHNFmPqw3wjgLQD949rM,683
|
|
3
|
+
types_boto3_bedrock_runtime/__main__.py,sha256=X-YjPQRNJhdmwzVZ6IpxDtcxeLRW7BKvB_xiAU5MrUA,1014
|
|
4
|
+
types_boto3_bedrock_runtime/client.py,sha256=Rce9XV-po0oxiCHK0qObVONHA8IYbFM6rgsi01tb3x8,8886
|
|
5
|
+
types_boto3_bedrock_runtime/client.pyi,sha256=TvFZfkztjDI21s6xKp8hwK-X-rtiOFMC2YABbxneZB8,8883
|
|
6
|
+
types_boto3_bedrock_runtime/literals.py,sha256=j-v12PMYaOIytV4wXLdwzazsyrKBCUyQtKeWEsEGjO0,12937
|
|
7
|
+
types_boto3_bedrock_runtime/literals.pyi,sha256=5Nnb2BiRunUREMgG-OOiLW2N2lcYWuXByGSL63qSmZU,12935
|
|
8
|
+
types_boto3_bedrock_runtime/paginator.py,sha256=DaxJdvvG0VrOy6rkKQ52_G-97zK-0m9zIU2ZbKsaydI,2194
|
|
9
|
+
types_boto3_bedrock_runtime/paginator.pyi,sha256=nyT02Krz7ZTx3EK75sQYURKqOugV5g-JhxRv6lG3N1w,2190
|
|
10
|
+
types_boto3_bedrock_runtime/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
|
+
types_boto3_bedrock_runtime/type_defs.py,sha256=vFMMWsM6HpK1DcYd_0zXDiC7vtMrKN_GJNhv5y2bzdg,29943
|
|
12
|
+
types_boto3_bedrock_runtime/type_defs.pyi,sha256=PEOIhdJDf27BsLEuOfttlDyxCbvSQ1h62iCWT8-IpcI,29826
|
|
13
|
+
types_boto3_bedrock_runtime/version.py,sha256=n6wyMBvI3Tp0INYol4fUJ84y0BqM9ti-SkLRGfsif5s,93
|
|
14
|
+
types_boto3_bedrock_runtime-1.35.93.dist-info/LICENSE,sha256=4jNgB8jJbXtUVJkeygwhUQi--6lAG8DIisfE-h_RiUU,1070
|
|
15
|
+
types_boto3_bedrock_runtime-1.35.93.dist-info/METADATA,sha256=9_16FFU7LMH7sWnF8sHD4pFvBYLJW2zhuQ9hHHSEHy4,15021
|
|
16
|
+
types_boto3_bedrock_runtime-1.35.93.dist-info/WHEEL,sha256=A3WOREP4zgxI0fKrHUG8DC8013e3dK3n7a6HDbcEIwE,91
|
|
17
|
+
types_boto3_bedrock_runtime-1.35.93.dist-info/top_level.txt,sha256=vs95SHzu94rM38mmauihzrtfinMIBV-tKDaYSV0eMww,28
|
|
18
|
+
types_boto3_bedrock_runtime-1.35.93.dist-info/RECORD,,
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
types_boto3_bedrock_runtime/__init__.py,sha256=Mwpd9xKG3liMABQUjeJqrcCbwBgLo_Sz__t48x--KYY,684
|
|
2
|
-
types_boto3_bedrock_runtime/__init__.pyi,sha256=z3ZSV0fLVUZGq5g1mUjy-4IXEM_h2S05W0MTMQaUG78,683
|
|
3
|
-
types_boto3_bedrock_runtime/__main__.py,sha256=pOE7ilNAocy9y2vsOcxhSAnZiUWWI5RNjVEagd_qQK0,980
|
|
4
|
-
types_boto3_bedrock_runtime/client.py,sha256=4Yo8rPiMrICJIifwj1qlEc4oWvmmkGJC2_YCq5f-zBU,9102
|
|
5
|
-
types_boto3_bedrock_runtime/client.pyi,sha256=RqTf0hyQkig2Cg1NdgezhVLeNgb3PE-WUYbx-TvpE2s,9098
|
|
6
|
-
types_boto3_bedrock_runtime/literals.py,sha256=pEHo0PsWMaLPmUpYOGPWef6oymDgoECD3NE8-j8I9Yo,12922
|
|
7
|
-
types_boto3_bedrock_runtime/literals.pyi,sha256=7jwEumw_k0d90wN7jG6enrZ6cogB6qdTz1iCLTjavSo,12920
|
|
8
|
-
types_boto3_bedrock_runtime/paginator.py,sha256=kO2rc014ZBXybo7hHNZPhuFekfDiaG83JcvOKPqWhGQ,2221
|
|
9
|
-
types_boto3_bedrock_runtime/paginator.pyi,sha256=cHJiRKWIvQlRoxuf8VBCDYCbRzaITMOJ_ovFNICjavo,2216
|
|
10
|
-
types_boto3_bedrock_runtime/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
|
-
types_boto3_bedrock_runtime/type_defs.py,sha256=suCzSWyFer7PQxrTzC1b3od-nQ0OCNluU4yLQ_q--0o,29763
|
|
12
|
-
types_boto3_bedrock_runtime/type_defs.pyi,sha256=m8hhebRaJtE9eBn40G8RkT9LlhWAlOO7gCQqtMaQgis,29646
|
|
13
|
-
types_boto3_bedrock_runtime/version.py,sha256=FzmLtS1ahLBp0wT2VFjMUO6bFICA23-GBxxyVwGf7Oo,93
|
|
14
|
-
types_boto3_bedrock_runtime-1.35.75.dist-info/LICENSE,sha256=eQDadZQZ3vRCiNF510ZT4yJV2zgo4000AOBoDRZyvKg,1070
|
|
15
|
-
types_boto3_bedrock_runtime-1.35.75.dist-info/METADATA,sha256=cSXeaxAwgSGlENb8YA3aKXOtG4tf7Q19Oe65p8OSTz0,14469
|
|
16
|
-
types_boto3_bedrock_runtime-1.35.75.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
17
|
-
types_boto3_bedrock_runtime-1.35.75.dist-info/top_level.txt,sha256=vs95SHzu94rM38mmauihzrtfinMIBV-tKDaYSV0eMww,28
|
|
18
|
-
types_boto3_bedrock_runtime-1.35.75.dist-info/RECORD,,
|
|
File without changes
|