types-boto3-bedrock-runtime 1.35.74__tar.gz → 1.35.93__tar.gz
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-1.35.74 → types_boto3_bedrock_runtime-1.35.93}/LICENSE +1 -1
- {types_boto3_bedrock_runtime-1.35.74/types_boto3_bedrock_runtime.egg-info → types_boto3_bedrock_runtime-1.35.93}/PKG-INFO +22 -8
- {types_boto3_bedrock_runtime-1.35.74 → types_boto3_bedrock_runtime-1.35.93}/README.md +19 -5
- {types_boto3_bedrock_runtime-1.35.74 → types_boto3_bedrock_runtime-1.35.93}/setup.py +4 -6
- {types_boto3_bedrock_runtime-1.35.74 → types_boto3_bedrock_runtime-1.35.93}/types_boto3_bedrock_runtime/__init__.py +1 -1
- {types_boto3_bedrock_runtime-1.35.74 → types_boto3_bedrock_runtime-1.35.93}/types_boto3_bedrock_runtime/__init__.pyi +1 -1
- {types_boto3_bedrock_runtime-1.35.74 → types_boto3_bedrock_runtime-1.35.93}/types_boto3_bedrock_runtime/__main__.py +9 -8
- types_boto3_bedrock_runtime-1.35.74/types_boto3_bedrock_runtime/client.pyi → types_boto3_bedrock_runtime-1.35.93/types_boto3_bedrock_runtime/client.py +17 -18
- types_boto3_bedrock_runtime-1.35.74/types_boto3_bedrock_runtime/client.py → types_boto3_bedrock_runtime-1.35.93/types_boto3_bedrock_runtime/client.pyi +15 -23
- {types_boto3_bedrock_runtime-1.35.74 → types_boto3_bedrock_runtime-1.35.93}/types_boto3_bedrock_runtime/literals.py +9 -2
- {types_boto3_bedrock_runtime-1.35.74 → types_boto3_bedrock_runtime-1.35.93}/types_boto3_bedrock_runtime/literals.pyi +9 -2
- {types_boto3_bedrock_runtime-1.35.74 → types_boto3_bedrock_runtime-1.35.93}/types_boto3_bedrock_runtime/paginator.py +14 -19
- {types_boto3_bedrock_runtime-1.35.74 → types_boto3_bedrock_runtime-1.35.93}/types_boto3_bedrock_runtime/paginator.pyi +14 -18
- types_boto3_bedrock_runtime-1.35.74/types_boto3_bedrock_runtime/type_defs.pyi → types_boto3_bedrock_runtime-1.35.93/types_boto3_bedrock_runtime/type_defs.py +223 -24
- types_boto3_bedrock_runtime-1.35.74/types_boto3_bedrock_runtime/type_defs.py → types_boto3_bedrock_runtime-1.35.93/types_boto3_bedrock_runtime/type_defs.pyi +103 -132
- types_boto3_bedrock_runtime-1.35.93/types_boto3_bedrock_runtime/version.py +7 -0
- {types_boto3_bedrock_runtime-1.35.74 → types_boto3_bedrock_runtime-1.35.93/types_boto3_bedrock_runtime.egg-info}/PKG-INFO +22 -8
- {types_boto3_bedrock_runtime-1.35.74 → types_boto3_bedrock_runtime-1.35.93}/types_boto3_bedrock_runtime.egg-info/requires.txt +1 -1
- types_boto3_bedrock_runtime-1.35.74/types_boto3_bedrock_runtime/version.py +0 -7
- {types_boto3_bedrock_runtime-1.35.74 → types_boto3_bedrock_runtime-1.35.93}/setup.cfg +0 -0
- {types_boto3_bedrock_runtime-1.35.74 → types_boto3_bedrock_runtime-1.35.93}/types_boto3_bedrock_runtime/py.typed +0 -0
- {types_boto3_bedrock_runtime-1.35.74 → types_boto3_bedrock_runtime-1.35.93}/types_boto3_bedrock_runtime.egg-info/SOURCES.txt +0 -0
- {types_boto3_bedrock_runtime-1.35.74 → types_boto3_bedrock_runtime-1.35.93}/types_boto3_bedrock_runtime.egg-info/dependency_links.txt +0 -0
- {types_boto3_bedrock_runtime-1.35.74 → types_boto3_bedrock_runtime-1.35.93}/types_boto3_bedrock_runtime.egg-info/not-zip-safe +0 -0
- {types_boto3_bedrock_runtime-1.35.74 → types_boto3_bedrock_runtime-1.35.93}/types_boto3_bedrock_runtime.egg-info/top_level.txt +0 -0
|
@@ -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
|
```
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|

|
|
11
11
|
|
|
12
12
|
Type annotations for
|
|
13
|
-
[boto3 BedrockRuntime 1.35.
|
|
13
|
+
[boto3 BedrockRuntime 1.35.93](https://pypi.org/project/boto3/) compatible with
|
|
14
14
|
[VSCode](https://code.visualstudio.com/),
|
|
15
15
|
[PyCharm](https://www.jetbrains.com/pycharm/),
|
|
16
16
|
[Emacs](https://www.gnu.org/software/emacs/),
|
|
@@ -18,8 +18,8 @@ Type annotations for
|
|
|
18
18
|
[mypy](https://github.com/python/mypy),
|
|
19
19
|
[pyright](https://github.com/microsoft/pyright) and other tools.
|
|
20
20
|
|
|
21
|
-
Generated
|
|
22
|
-
[mypy-boto3-builder 8.
|
|
21
|
+
Generated with
|
|
22
|
+
[mypy-boto3-builder 8.8.0](https://github.com/youtype/mypy_boto3_builder).
|
|
23
23
|
|
|
24
24
|
More information can be found on
|
|
25
25
|
[types-boto3](https://pypi.org/project/types-boto3/) page and in
|
|
@@ -31,6 +31,7 @@ See how it helps you find and fix potential bugs:
|
|
|
31
31
|
|
|
32
32
|
- [types-boto3-bedrock-runtime](#types-boto3-bedrock-runtime)
|
|
33
33
|
- [How to install](#how-to-install)
|
|
34
|
+
- [Generate locally (recommended)](<#generate-locally-(recommended)>)
|
|
34
35
|
- [VSCode extension](#vscode-extension)
|
|
35
36
|
- [From PyPI with pip](#from-pypi-with-pip)
|
|
36
37
|
- [How to uninstall](#how-to-uninstall)
|
|
@@ -61,6 +62,21 @@ See how it helps you find and fix potential bugs:
|
|
|
61
62
|
|
|
62
63
|
## How to install
|
|
63
64
|
|
|
65
|
+
<a id="generate-locally-(recommended)"></a>
|
|
66
|
+
|
|
67
|
+
### Generate locally (recommended)
|
|
68
|
+
|
|
69
|
+
You can generate type annotations for `boto3` package locally with
|
|
70
|
+
`mypy_boto3_builder`. Use
|
|
71
|
+
[uv](https://docs.astral.sh/uv/getting-started/installation/) for build
|
|
72
|
+
isolation.
|
|
73
|
+
|
|
74
|
+
1. Run mypy-boto3-builder in your package root directory:
|
|
75
|
+
`uvx --with 'boto3==1.35.93' mypy_boto3_builder`
|
|
76
|
+
2. Select `boto3` AWS SDK.
|
|
77
|
+
3. Add `BedrockRuntime` service.
|
|
78
|
+
4. Use provided commands to install generated packages.
|
|
79
|
+
|
|
64
80
|
<a id="vscode-extension"></a>
|
|
65
81
|
|
|
66
82
|
### VSCode extension
|
|
@@ -81,12 +97,10 @@ Install `types-boto3` for `BedrockRuntime` service.
|
|
|
81
97
|
# install with boto3 type annotations
|
|
82
98
|
python -m pip install 'types-boto3[bedrock-runtime]'
|
|
83
99
|
|
|
84
|
-
|
|
85
100
|
# Lite version does not provide session.client/resource overloads
|
|
86
101
|
# it is more RAM-friendly, but requires explicit type annotations
|
|
87
102
|
python -m pip install 'types-boto3-lite[bedrock-runtime]'
|
|
88
103
|
|
|
89
|
-
|
|
90
104
|
# standalone installation
|
|
91
105
|
python -m pip install types-boto3-bedrock-runtime
|
|
92
106
|
```
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""
|
|
2
2
|
Setup script for types-boto3-bedrock-runtime.
|
|
3
3
|
|
|
4
|
-
Copyright
|
|
4
|
+
Copyright 2025 Vlad Emelianov
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
7
|
from pathlib import Path
|
|
@@ -13,13 +13,13 @@ LONG_DESCRIPTION = (Path(__file__).parent / "README.md").read_text()
|
|
|
13
13
|
|
|
14
14
|
setup(
|
|
15
15
|
name="types-boto3-bedrock-runtime",
|
|
16
|
-
version="1.35.
|
|
16
|
+
version="1.35.93",
|
|
17
17
|
packages=["types_boto3_bedrock_runtime"],
|
|
18
18
|
url="https://github.com/youtype/mypy_boto3_builder",
|
|
19
19
|
license="MIT License",
|
|
20
20
|
author="Vlad Emelianov",
|
|
21
21
|
author_email="vlad.emelianov.nz@gmail.com",
|
|
22
|
-
description="Type annotations for boto3 BedrockRuntime 1.35.
|
|
22
|
+
description="Type annotations for boto3 BedrockRuntime 1.35.93 service generated with mypy-boto3-builder 8.8.0",
|
|
23
23
|
classifiers=[
|
|
24
24
|
"Development Status :: 5 - Production/Stable",
|
|
25
25
|
"Intended Audience :: Developers",
|
|
@@ -49,8 +49,6 @@ setup(
|
|
|
49
49
|
"Source": "https://github.com/youtype/mypy_boto3_builder",
|
|
50
50
|
"Tracker": "https://github.com/youtype/mypy_boto3_builder/issues",
|
|
51
51
|
},
|
|
52
|
-
install_requires=[
|
|
53
|
-
'typing-extensions>=4.1.0; python_version<"3.12"',
|
|
54
|
-
],
|
|
52
|
+
install_requires=['typing-extensions; python_version<"3.12"'],
|
|
55
53
|
zip_safe=False,
|
|
56
54
|
)
|
|
@@ -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,21 +45,21 @@ 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:
|
|
47
56
|
from typing_extensions import Literal, Unpack
|
|
48
57
|
|
|
49
|
-
__all__ = ("BedrockRuntimeClient",)
|
|
50
58
|
|
|
51
|
-
|
|
52
|
-
MSG_TEMPLATE: str
|
|
59
|
+
__all__ = ("BedrockRuntimeClient",)
|
|
53
60
|
|
|
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
61
|
|
|
58
|
-
class Exceptions:
|
|
62
|
+
class Exceptions(BaseClientExceptions):
|
|
59
63
|
AccessDeniedException: Type[BotocoreClientError]
|
|
60
64
|
ClientError: Type[BotocoreClientError]
|
|
61
65
|
ConflictException: Type[BotocoreClientError]
|
|
@@ -70,6 +74,7 @@ class Exceptions:
|
|
|
70
74
|
ThrottlingException: Type[BotocoreClientError]
|
|
71
75
|
ValidationException: Type[BotocoreClientError]
|
|
72
76
|
|
|
77
|
+
|
|
73
78
|
class BedrockRuntimeClient(BaseClient):
|
|
74
79
|
"""
|
|
75
80
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime.html#BedrockRuntime.Client)
|
|
@@ -105,12 +110,6 @@ class BedrockRuntimeClient(BaseClient):
|
|
|
105
110
|
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#generate_presigned_url)
|
|
106
111
|
"""
|
|
107
112
|
|
|
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
113
|
def apply_guardrail(
|
|
115
114
|
self, **kwargs: Unpack[ApplyGuardrailRequestRequestTypeDef]
|
|
116
115
|
) -> ApplyGuardrailResponseTypeDef:
|
|
@@ -192,7 +191,7 @@ class BedrockRuntimeClient(BaseClient):
|
|
|
192
191
|
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#start_async_invoke)
|
|
193
192
|
"""
|
|
194
193
|
|
|
195
|
-
def get_paginator(
|
|
194
|
+
def get_paginator( # type: ignore[override]
|
|
196
195
|
self, operation_name: Literal["list_async_invokes"]
|
|
197
196
|
) -> ListAsyncInvokesPaginator:
|
|
198
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,24 +45,19 @@ 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:
|
|
47
56
|
from typing_extensions import Literal, Unpack
|
|
48
57
|
|
|
49
|
-
|
|
50
58
|
__all__ = ("BedrockRuntimeClient",)
|
|
51
59
|
|
|
52
|
-
|
|
53
|
-
class BotocoreClientError(Exception):
|
|
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:
|
|
60
|
+
class Exceptions(BaseClientExceptions):
|
|
62
61
|
AccessDeniedException: Type[BotocoreClientError]
|
|
63
62
|
ClientError: Type[BotocoreClientError]
|
|
64
63
|
ConflictException: Type[BotocoreClientError]
|
|
@@ -73,7 +72,6 @@ class Exceptions:
|
|
|
73
72
|
ThrottlingException: Type[BotocoreClientError]
|
|
74
73
|
ValidationException: Type[BotocoreClientError]
|
|
75
74
|
|
|
76
|
-
|
|
77
75
|
class BedrockRuntimeClient(BaseClient):
|
|
78
76
|
"""
|
|
79
77
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime.html#BedrockRuntime.Client)
|
|
@@ -109,12 +107,6 @@ class BedrockRuntimeClient(BaseClient):
|
|
|
109
107
|
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#generate_presigned_url)
|
|
110
108
|
"""
|
|
111
109
|
|
|
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
110
|
def apply_guardrail(
|
|
119
111
|
self, **kwargs: Unpack[ApplyGuardrailRequestRequestTypeDef]
|
|
120
112
|
) -> ApplyGuardrailResponseTypeDef:
|
|
@@ -196,7 +188,7 @@ class BedrockRuntimeClient(BaseClient):
|
|
|
196
188
|
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#start_async_invoke)
|
|
197
189
|
"""
|
|
198
190
|
|
|
199
|
-
def get_paginator(
|
|
191
|
+
def get_paginator( # type: ignore[override]
|
|
200
192
|
self, operation_name: Literal["list_async_invokes"]
|
|
201
193
|
) -> ListAsyncInvokesPaginator:
|
|
202
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
|
|
@@ -37,6 +37,8 @@ __all__ = (
|
|
|
37
37
|
"GuardrailContextualGroundingFilterTypeType",
|
|
38
38
|
"GuardrailContextualGroundingPolicyActionType",
|
|
39
39
|
"GuardrailConverseContentQualifierType",
|
|
40
|
+
"GuardrailConverseImageFormatType",
|
|
41
|
+
"GuardrailImageFormatType",
|
|
40
42
|
"GuardrailManagedWordTypeType",
|
|
41
43
|
"GuardrailPiiEntityTypeType",
|
|
42
44
|
"GuardrailSensitiveInformationPolicyActionType",
|
|
@@ -75,6 +77,8 @@ GuardrailContentSourceType = Literal["INPUT", "OUTPUT"]
|
|
|
75
77
|
GuardrailContextualGroundingFilterTypeType = Literal["GROUNDING", "RELEVANCE"]
|
|
76
78
|
GuardrailContextualGroundingPolicyActionType = Literal["BLOCKED", "NONE"]
|
|
77
79
|
GuardrailConverseContentQualifierType = Literal["grounding_source", "guard_content", "query"]
|
|
80
|
+
GuardrailConverseImageFormatType = Literal["jpeg", "png"]
|
|
81
|
+
GuardrailImageFormatType = Literal["jpeg", "png"]
|
|
78
82
|
GuardrailManagedWordTypeType = Literal["PROFANITY"]
|
|
79
83
|
GuardrailPiiEntityTypeType = Literal[
|
|
80
84
|
"ADDRESS",
|
|
@@ -167,12 +171,15 @@ ServiceName = Literal[
|
|
|
167
171
|
"b2bi",
|
|
168
172
|
"backup",
|
|
169
173
|
"backup-gateway",
|
|
174
|
+
"backupsearch",
|
|
170
175
|
"batch",
|
|
171
176
|
"bcm-data-exports",
|
|
172
177
|
"bcm-pricing-calculator",
|
|
173
178
|
"bedrock",
|
|
174
179
|
"bedrock-agent",
|
|
175
180
|
"bedrock-agent-runtime",
|
|
181
|
+
"bedrock-data-automation",
|
|
182
|
+
"bedrock-data-automation-runtime",
|
|
176
183
|
"bedrock-runtime",
|
|
177
184
|
"billing",
|
|
178
185
|
"billingconductor",
|
|
@@ -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
|
|
@@ -36,6 +36,8 @@ __all__ = (
|
|
|
36
36
|
"GuardrailContextualGroundingFilterTypeType",
|
|
37
37
|
"GuardrailContextualGroundingPolicyActionType",
|
|
38
38
|
"GuardrailConverseContentQualifierType",
|
|
39
|
+
"GuardrailConverseImageFormatType",
|
|
40
|
+
"GuardrailImageFormatType",
|
|
39
41
|
"GuardrailManagedWordTypeType",
|
|
40
42
|
"GuardrailPiiEntityTypeType",
|
|
41
43
|
"GuardrailSensitiveInformationPolicyActionType",
|
|
@@ -73,6 +75,8 @@ GuardrailContentSourceType = Literal["INPUT", "OUTPUT"]
|
|
|
73
75
|
GuardrailContextualGroundingFilterTypeType = Literal["GROUNDING", "RELEVANCE"]
|
|
74
76
|
GuardrailContextualGroundingPolicyActionType = Literal["BLOCKED", "NONE"]
|
|
75
77
|
GuardrailConverseContentQualifierType = Literal["grounding_source", "guard_content", "query"]
|
|
78
|
+
GuardrailConverseImageFormatType = Literal["jpeg", "png"]
|
|
79
|
+
GuardrailImageFormatType = Literal["jpeg", "png"]
|
|
76
80
|
GuardrailManagedWordTypeType = Literal["PROFANITY"]
|
|
77
81
|
GuardrailPiiEntityTypeType = Literal[
|
|
78
82
|
"ADDRESS",
|
|
@@ -165,12 +169,15 @@ ServiceName = Literal[
|
|
|
165
169
|
"b2bi",
|
|
166
170
|
"backup",
|
|
167
171
|
"backup-gateway",
|
|
172
|
+
"backupsearch",
|
|
168
173
|
"batch",
|
|
169
174
|
"bcm-data-exports",
|
|
170
175
|
"bcm-pricing-calculator",
|
|
171
176
|
"bedrock",
|
|
172
177
|
"bedrock-agent",
|
|
173
178
|
"bedrock-agent-runtime",
|
|
179
|
+
"bedrock-data-automation",
|
|
180
|
+
"bedrock-data-automation-runtime",
|
|
174
181
|
"bedrock-runtime",
|
|
175
182
|
"billing",
|
|
176
183
|
"billingconductor",
|
|
@@ -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)
|