mypy-boto3-workspaces-web 1.35.66__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.
- {mypy_boto3_workspaces_web-1.35.66 → mypy_boto3_workspaces_web-1.35.93}/LICENSE +1 -1
- {mypy_boto3_workspaces_web-1.35.66 → mypy_boto3_workspaces_web-1.35.93}/PKG-INFO +50 -10
- {mypy_boto3_workspaces_web-1.35.66 → mypy_boto3_workspaces_web-1.35.93}/README.md +46 -6
- {mypy_boto3_workspaces_web-1.35.66 → mypy_boto3_workspaces_web-1.35.93}/mypy_boto3_workspaces_web/__init__.py +1 -1
- {mypy_boto3_workspaces_web-1.35.66 → mypy_boto3_workspaces_web-1.35.93}/mypy_boto3_workspaces_web/__init__.pyi +1 -1
- {mypy_boto3_workspaces_web-1.35.66 → mypy_boto3_workspaces_web-1.35.93}/mypy_boto3_workspaces_web/__main__.py +9 -8
- mypy_boto3_workspaces_web-1.35.66/mypy_boto3_workspaces_web/client.pyi → mypy_boto3_workspaces_web-1.35.93/mypy_boto3_workspaces_web/client.py +45 -45
- mypy_boto3_workspaces_web-1.35.66/mypy_boto3_workspaces_web/client.py → mypy_boto3_workspaces_web-1.35.93/mypy_boto3_workspaces_web/client.pyi +43 -50
- {mypy_boto3_workspaces_web-1.35.66 → mypy_boto3_workspaces_web-1.35.93}/mypy_boto3_workspaces_web/literals.py +14 -2
- {mypy_boto3_workspaces_web-1.35.66 → mypy_boto3_workspaces_web-1.35.93}/mypy_boto3_workspaces_web/literals.pyi +14 -2
- {mypy_boto3_workspaces_web-1.35.66 → mypy_boto3_workspaces_web-1.35.93}/mypy_boto3_workspaces_web/paginator.py +25 -24
- {mypy_boto3_workspaces_web-1.35.66 → mypy_boto3_workspaces_web-1.35.93}/mypy_boto3_workspaces_web/paginator.pyi +24 -23
- {mypy_boto3_workspaces_web-1.35.66 → mypy_boto3_workspaces_web-1.35.93}/mypy_boto3_workspaces_web/type_defs.py +15 -7
- {mypy_boto3_workspaces_web-1.35.66 → mypy_boto3_workspaces_web-1.35.93}/mypy_boto3_workspaces_web/type_defs.pyi +15 -7
- mypy_boto3_workspaces_web-1.35.93/mypy_boto3_workspaces_web/version.py +7 -0
- {mypy_boto3_workspaces_web-1.35.66 → mypy_boto3_workspaces_web-1.35.93}/mypy_boto3_workspaces_web.egg-info/PKG-INFO +50 -10
- {mypy_boto3_workspaces_web-1.35.66 → mypy_boto3_workspaces_web-1.35.93}/mypy_boto3_workspaces_web.egg-info/requires.txt +1 -1
- {mypy_boto3_workspaces_web-1.35.66 → mypy_boto3_workspaces_web-1.35.93}/setup.py +5 -7
- mypy_boto3_workspaces_web-1.35.66/mypy_boto3_workspaces_web/version.py +0 -7
- {mypy_boto3_workspaces_web-1.35.66 → mypy_boto3_workspaces_web-1.35.93}/mypy_boto3_workspaces_web/py.typed +0 -0
- {mypy_boto3_workspaces_web-1.35.66 → mypy_boto3_workspaces_web-1.35.93}/mypy_boto3_workspaces_web.egg-info/SOURCES.txt +0 -0
- {mypy_boto3_workspaces_web-1.35.66 → mypy_boto3_workspaces_web-1.35.93}/mypy_boto3_workspaces_web.egg-info/dependency_links.txt +0 -0
- {mypy_boto3_workspaces_web-1.35.66 → mypy_boto3_workspaces_web-1.35.93}/mypy_boto3_workspaces_web.egg-info/not-zip-safe +0 -0
- {mypy_boto3_workspaces_web-1.35.66 → mypy_boto3_workspaces_web-1.35.93}/mypy_boto3_workspaces_web.egg-info/top_level.txt +0 -0
- {mypy_boto3_workspaces_web-1.35.66 → mypy_boto3_workspaces_web-1.35.93}/setup.cfg +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mypy-boto3-workspaces-web
|
|
3
|
-
Version: 1.35.
|
|
4
|
-
Summary: Type annotations for boto3 WorkSpacesWeb 1.35.
|
|
3
|
+
Version: 1.35.93
|
|
4
|
+
Summary: Type annotations for boto3 WorkSpacesWeb 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
|
|
@@ -9,7 +9,7 @@ License: MIT License
|
|
|
9
9
|
Project-URL: Documentation, https://youtype.github.io/boto3_stubs_docs/mypy_boto3_workspaces_web/
|
|
10
10
|
Project-URL: Source, https://github.com/youtype/mypy_boto3_builder
|
|
11
11
|
Project-URL: Tracker, https://github.com/youtype/mypy_boto3_builder/issues
|
|
12
|
-
Keywords: boto3 workspaces-web type-annotations
|
|
12
|
+
Keywords: boto3 workspaces-web boto3-stubs type-annotations mypy typeshed autocomplete
|
|
13
13
|
Classifier: Development Status :: 5 - Production/Stable
|
|
14
14
|
Classifier: Intended Audience :: Developers
|
|
15
15
|
Classifier: Environment :: Console
|
|
@@ -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="mypy-boto3-workspaces-web"></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 WorkSpacesWeb 1.35.
|
|
47
|
+
[boto3 WorkSpacesWeb 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
|
[boto3-stubs](https://pypi.org/project/boto3-stubs/) page and in
|
|
@@ -61,10 +61,11 @@ More information can be found on
|
|
|
61
61
|
|
|
62
62
|
See how it helps you find and fix potential bugs:
|
|
63
63
|
|
|
64
|
-

|
|
65
65
|
|
|
66
66
|
- [mypy-boto3-workspaces-web](#mypy-boto3-workspaces-web)
|
|
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)
|
|
@@ -76,6 +77,7 @@ See how it helps you find and fix potential bugs:
|
|
|
76
77
|
- [Other IDEs](#other-ides)
|
|
77
78
|
- [mypy](#mypy)
|
|
78
79
|
- [pyright](#pyright)
|
|
80
|
+
- [Pylint compatibility](#pylint-compatibility)
|
|
79
81
|
- [Explicit type annotations](#explicit-type-annotations)
|
|
80
82
|
- [Client annotations](#client-annotations)
|
|
81
83
|
- [Paginators annotations](#paginators-annotations)
|
|
@@ -94,6 +96,21 @@ See how it helps you find and fix potential bugs:
|
|
|
94
96
|
|
|
95
97
|
## How to install
|
|
96
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-stubs` AWS SDK.
|
|
111
|
+
3. Add `WorkSpacesWeb` service.
|
|
112
|
+
4. Use provided commands to install generated packages.
|
|
113
|
+
|
|
97
114
|
<a id="vscode-extension"></a>
|
|
98
115
|
|
|
99
116
|
### VSCode extension
|
|
@@ -114,12 +131,10 @@ Install `boto3-stubs` for `WorkSpacesWeb` service.
|
|
|
114
131
|
# install with boto3 type annotations
|
|
115
132
|
python -m pip install 'boto3-stubs[workspaces-web]'
|
|
116
133
|
|
|
117
|
-
|
|
118
134
|
# Lite version does not provide session.client/resource overloads
|
|
119
135
|
# it is more RAM-friendly, but requires explicit type annotations
|
|
120
136
|
python -m pip install 'boto3-stubs-lite[workspaces-web]'
|
|
121
137
|
|
|
122
|
-
|
|
123
138
|
# standalone installation
|
|
124
139
|
python -m pip install mypy-boto3-workspaces-web
|
|
125
140
|
```
|
|
@@ -269,6 +284,31 @@ Optionally, you can install `boto3-stubs` to `typings` directory.
|
|
|
269
284
|
Type checking should now work. No explicit type annotations required, write
|
|
270
285
|
your `boto3` code as usual.
|
|
271
286
|
|
|
287
|
+
<a id="pylint-compatibility"></a>
|
|
288
|
+
|
|
289
|
+
### Pylint compatibility
|
|
290
|
+
|
|
291
|
+
It is totally safe to use `TYPE_CHECKING` flag in order to avoid
|
|
292
|
+
`mypy-boto3-workspaces-web` dependency in production. However, there is an
|
|
293
|
+
issue in `pylint` that it complains about undefined variables. To fix it, set
|
|
294
|
+
all types to `object` in non-`TYPE_CHECKING` mode.
|
|
295
|
+
|
|
296
|
+
```python
|
|
297
|
+
from typing import TYPE_CHECKING
|
|
298
|
+
|
|
299
|
+
if TYPE_CHECKING:
|
|
300
|
+
from mypy_boto3_ec2 import EC2Client, EC2ServiceResource
|
|
301
|
+
from mypy_boto3_ec2.waiters import BundleTaskCompleteWaiter
|
|
302
|
+
from mypy_boto3_ec2.paginators import DescribeVolumesPaginator
|
|
303
|
+
else:
|
|
304
|
+
EC2Client = object
|
|
305
|
+
EC2ServiceResource = object
|
|
306
|
+
BundleTaskCompleteWaiter = object
|
|
307
|
+
DescribeVolumesPaginator = object
|
|
308
|
+
|
|
309
|
+
...
|
|
310
|
+
```
|
|
311
|
+
|
|
272
312
|
<a id="explicit-type-annotations"></a>
|
|
273
313
|
|
|
274
314
|
## Explicit type annotations
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|

|
|
11
11
|
|
|
12
12
|
Type annotations for
|
|
13
|
-
[boto3 WorkSpacesWeb 1.35.
|
|
13
|
+
[boto3 WorkSpacesWeb 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
|
[boto3-stubs](https://pypi.org/project/boto3-stubs/) page and in
|
|
@@ -27,10 +27,11 @@ More information can be found on
|
|
|
27
27
|
|
|
28
28
|
See how it helps you find and fix potential bugs:
|
|
29
29
|
|
|
30
|
-

|
|
31
31
|
|
|
32
32
|
- [mypy-boto3-workspaces-web](#mypy-boto3-workspaces-web)
|
|
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)
|
|
@@ -42,6 +43,7 @@ See how it helps you find and fix potential bugs:
|
|
|
42
43
|
- [Other IDEs](#other-ides)
|
|
43
44
|
- [mypy](#mypy)
|
|
44
45
|
- [pyright](#pyright)
|
|
46
|
+
- [Pylint compatibility](#pylint-compatibility)
|
|
45
47
|
- [Explicit type annotations](#explicit-type-annotations)
|
|
46
48
|
- [Client annotations](#client-annotations)
|
|
47
49
|
- [Paginators annotations](#paginators-annotations)
|
|
@@ -60,6 +62,21 @@ See how it helps you find and fix potential bugs:
|
|
|
60
62
|
|
|
61
63
|
## How to install
|
|
62
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-stubs` AWS SDK.
|
|
77
|
+
3. Add `WorkSpacesWeb` service.
|
|
78
|
+
4. Use provided commands to install generated packages.
|
|
79
|
+
|
|
63
80
|
<a id="vscode-extension"></a>
|
|
64
81
|
|
|
65
82
|
### VSCode extension
|
|
@@ -80,12 +97,10 @@ Install `boto3-stubs` for `WorkSpacesWeb` service.
|
|
|
80
97
|
# install with boto3 type annotations
|
|
81
98
|
python -m pip install 'boto3-stubs[workspaces-web]'
|
|
82
99
|
|
|
83
|
-
|
|
84
100
|
# Lite version does not provide session.client/resource overloads
|
|
85
101
|
# it is more RAM-friendly, but requires explicit type annotations
|
|
86
102
|
python -m pip install 'boto3-stubs-lite[workspaces-web]'
|
|
87
103
|
|
|
88
|
-
|
|
89
104
|
# standalone installation
|
|
90
105
|
python -m pip install mypy-boto3-workspaces-web
|
|
91
106
|
```
|
|
@@ -235,6 +250,31 @@ Optionally, you can install `boto3-stubs` to `typings` directory.
|
|
|
235
250
|
Type checking should now work. No explicit type annotations required, write
|
|
236
251
|
your `boto3` code as usual.
|
|
237
252
|
|
|
253
|
+
<a id="pylint-compatibility"></a>
|
|
254
|
+
|
|
255
|
+
### Pylint compatibility
|
|
256
|
+
|
|
257
|
+
It is totally safe to use `TYPE_CHECKING` flag in order to avoid
|
|
258
|
+
`mypy-boto3-workspaces-web` dependency in production. However, there is an
|
|
259
|
+
issue in `pylint` that it complains about undefined variables. To fix it, set
|
|
260
|
+
all types to `object` in non-`TYPE_CHECKING` mode.
|
|
261
|
+
|
|
262
|
+
```python
|
|
263
|
+
from typing import TYPE_CHECKING
|
|
264
|
+
|
|
265
|
+
if TYPE_CHECKING:
|
|
266
|
+
from mypy_boto3_ec2 import EC2Client, EC2ServiceResource
|
|
267
|
+
from mypy_boto3_ec2.waiters import BundleTaskCompleteWaiter
|
|
268
|
+
from mypy_boto3_ec2.paginators import DescribeVolumesPaginator
|
|
269
|
+
else:
|
|
270
|
+
EC2Client = object
|
|
271
|
+
EC2ServiceResource = object
|
|
272
|
+
BundleTaskCompleteWaiter = object
|
|
273
|
+
DescribeVolumesPaginator = object
|
|
274
|
+
|
|
275
|
+
...
|
|
276
|
+
```
|
|
277
|
+
|
|
238
278
|
<a id="explicit-type-annotations"></a>
|
|
239
279
|
|
|
240
280
|
## Explicit type annotations
|
|
@@ -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 WorkSpacesWeb 1.35.
|
|
16
|
-
"Version: 1.35.
|
|
17
|
-
"Builder version: 8.
|
|
14
|
+
sys.stdout.write(
|
|
15
|
+
"Type annotations for boto3 WorkSpacesWeb 1.35.93\n"
|
|
16
|
+
"Version: 1.35.93\n"
|
|
17
|
+
"Builder version: 8.8.0\n"
|
|
18
18
|
"Docs: https://youtype.github.io/boto3_stubs_docs/mypy_boto3_workspaces_web//\n"
|
|
19
19
|
"Boto3 docs: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/workspaces-web.html#workspacesweb\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 workspaces-web service
|
|
2
|
+
Type annotations for workspaces-web service Client.
|
|
3
3
|
|
|
4
|
-
[
|
|
4
|
+
[Documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_workspaces_web/client/)
|
|
5
5
|
|
|
6
6
|
Usage::
|
|
7
7
|
|
|
@@ -13,13 +13,17 @@ Usage::
|
|
|
13
13
|
client: WorkSpacesWebClient = session.client("workspaces-web")
|
|
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, overload
|
|
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 ListDataProtectionSettingsPaginator, ListSessionsPaginator
|
|
25
29
|
from .type_defs import (
|
|
@@ -142,21 +146,22 @@ from .type_defs import (
|
|
|
142
146
|
UpdateUserSettingsResponseTypeDef,
|
|
143
147
|
)
|
|
144
148
|
|
|
149
|
+
if sys.version_info >= (3, 9):
|
|
150
|
+
from builtins import dict as Dict
|
|
151
|
+
from builtins import type as Type
|
|
152
|
+
from collections.abc import Mapping
|
|
153
|
+
else:
|
|
154
|
+
from typing import Dict, Mapping, Type
|
|
145
155
|
if sys.version_info >= (3, 12):
|
|
146
156
|
from typing import Literal, Unpack
|
|
147
157
|
else:
|
|
148
158
|
from typing_extensions import Literal, Unpack
|
|
149
159
|
|
|
150
|
-
__all__ = ("WorkSpacesWebClient",)
|
|
151
160
|
|
|
152
|
-
|
|
153
|
-
MSG_TEMPLATE: str
|
|
161
|
+
__all__ = ("WorkSpacesWebClient",)
|
|
154
162
|
|
|
155
|
-
def __init__(self, error_response: Mapping[str, Any], operation_name: str) -> None:
|
|
156
|
-
self.response: Dict[str, Any]
|
|
157
|
-
self.operation_name: str
|
|
158
163
|
|
|
159
|
-
class Exceptions:
|
|
164
|
+
class Exceptions(BaseClientExceptions):
|
|
160
165
|
AccessDeniedException: Type[BotocoreClientError]
|
|
161
166
|
ClientError: Type[BotocoreClientError]
|
|
162
167
|
ConflictException: Type[BotocoreClientError]
|
|
@@ -167,6 +172,7 @@ class Exceptions:
|
|
|
167
172
|
TooManyTagsException: Type[BotocoreClientError]
|
|
168
173
|
ValidationException: Type[BotocoreClientError]
|
|
169
174
|
|
|
175
|
+
|
|
170
176
|
class WorkSpacesWebClient(BaseClient):
|
|
171
177
|
"""
|
|
172
178
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/workspaces-web.html#WorkSpacesWeb.Client)
|
|
@@ -184,6 +190,24 @@ class WorkSpacesWebClient(BaseClient):
|
|
|
184
190
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_workspaces_web/client/#exceptions)
|
|
185
191
|
"""
|
|
186
192
|
|
|
193
|
+
def can_paginate(self, operation_name: str) -> bool:
|
|
194
|
+
"""
|
|
195
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/workspaces-web/client/can_paginate.html)
|
|
196
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_workspaces_web/client/#can_paginate)
|
|
197
|
+
"""
|
|
198
|
+
|
|
199
|
+
def generate_presigned_url(
|
|
200
|
+
self,
|
|
201
|
+
ClientMethod: str,
|
|
202
|
+
Params: Mapping[str, Any] = ...,
|
|
203
|
+
ExpiresIn: int = 3600,
|
|
204
|
+
HttpMethod: str = ...,
|
|
205
|
+
) -> str:
|
|
206
|
+
"""
|
|
207
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/workspaces-web/client/generate_presigned_url.html)
|
|
208
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_workspaces_web/client/#generate_presigned_url)
|
|
209
|
+
"""
|
|
210
|
+
|
|
187
211
|
def associate_browser_settings(
|
|
188
212
|
self, **kwargs: Unpack[AssociateBrowserSettingsRequestRequestTypeDef]
|
|
189
213
|
) -> AssociateBrowserSettingsResponseTypeDef:
|
|
@@ -254,22 +278,6 @@ class WorkSpacesWebClient(BaseClient):
|
|
|
254
278
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_workspaces_web/client/#associate_user_settings)
|
|
255
279
|
"""
|
|
256
280
|
|
|
257
|
-
def can_paginate(self, operation_name: str) -> bool:
|
|
258
|
-
"""
|
|
259
|
-
Check if an operation can be paginated.
|
|
260
|
-
|
|
261
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/workspaces-web/client/can_paginate.html)
|
|
262
|
-
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_workspaces_web/client/#can_paginate)
|
|
263
|
-
"""
|
|
264
|
-
|
|
265
|
-
def close(self) -> None:
|
|
266
|
-
"""
|
|
267
|
-
Closes underlying endpoint connections.
|
|
268
|
-
|
|
269
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/workspaces-web/client/close.html)
|
|
270
|
-
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_workspaces_web/client/#close)
|
|
271
|
-
"""
|
|
272
|
-
|
|
273
281
|
def create_browser_settings(
|
|
274
282
|
self, **kwargs: Unpack[CreateBrowserSettingsRequestRequestTypeDef]
|
|
275
283
|
) -> CreateBrowserSettingsResponseTypeDef:
|
|
@@ -530,20 +538,6 @@ class WorkSpacesWebClient(BaseClient):
|
|
|
530
538
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_workspaces_web/client/#expire_session)
|
|
531
539
|
"""
|
|
532
540
|
|
|
533
|
-
def generate_presigned_url(
|
|
534
|
-
self,
|
|
535
|
-
ClientMethod: str,
|
|
536
|
-
Params: Mapping[str, Any] = ...,
|
|
537
|
-
ExpiresIn: int = 3600,
|
|
538
|
-
HttpMethod: str = ...,
|
|
539
|
-
) -> str:
|
|
540
|
-
"""
|
|
541
|
-
Generate a presigned url given a client, its method, and arguments.
|
|
542
|
-
|
|
543
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/workspaces-web/client/generate_presigned_url.html)
|
|
544
|
-
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_workspaces_web/client/#generate_presigned_url)
|
|
545
|
-
"""
|
|
546
|
-
|
|
547
541
|
def get_browser_settings(
|
|
548
542
|
self, **kwargs: Unpack[GetBrowserSettingsRequestRequestTypeDef]
|
|
549
543
|
) -> GetBrowserSettingsResponseTypeDef:
|
|
@@ -892,18 +886,24 @@ class WorkSpacesWebClient(BaseClient):
|
|
|
892
886
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_workspaces_web/client/#update_user_settings)
|
|
893
887
|
"""
|
|
894
888
|
|
|
895
|
-
@overload
|
|
896
|
-
def get_paginator(
|
|
889
|
+
@overload # type: ignore[override]
|
|
890
|
+
def get_paginator( # type: ignore[override]
|
|
897
891
|
self, operation_name: Literal["list_data_protection_settings"]
|
|
898
892
|
) -> ListDataProtectionSettingsPaginator:
|
|
899
893
|
"""
|
|
894
|
+
Create a paginator for an operation.
|
|
895
|
+
|
|
900
896
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/workspaces-web/client/get_paginator.html)
|
|
901
897
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_workspaces_web/client/#get_paginator)
|
|
902
898
|
"""
|
|
903
899
|
|
|
904
|
-
@overload
|
|
905
|
-
def get_paginator(
|
|
900
|
+
@overload # type: ignore[override]
|
|
901
|
+
def get_paginator( # type: ignore[override]
|
|
902
|
+
self, operation_name: Literal["list_sessions"]
|
|
903
|
+
) -> ListSessionsPaginator:
|
|
906
904
|
"""
|
|
905
|
+
Create a paginator for an operation.
|
|
906
|
+
|
|
907
907
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/workspaces-web/client/get_paginator.html)
|
|
908
908
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_workspaces_web/client/#get_paginator)
|
|
909
909
|
"""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""
|
|
2
|
-
Type annotations for workspaces-web service
|
|
2
|
+
Type annotations for workspaces-web service Client.
|
|
3
3
|
|
|
4
|
-
[
|
|
4
|
+
[Documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_workspaces_web/client/)
|
|
5
5
|
|
|
6
6
|
Usage::
|
|
7
7
|
|
|
@@ -13,13 +13,17 @@ Usage::
|
|
|
13
13
|
client: WorkSpacesWebClient = session.client("workspaces-web")
|
|
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, overload
|
|
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 ListDataProtectionSettingsPaginator, ListSessionsPaginator
|
|
25
29
|
from .type_defs import (
|
|
@@ -142,24 +146,20 @@ from .type_defs import (
|
|
|
142
146
|
UpdateUserSettingsResponseTypeDef,
|
|
143
147
|
)
|
|
144
148
|
|
|
149
|
+
if sys.version_info >= (3, 9):
|
|
150
|
+
from builtins import dict as Dict
|
|
151
|
+
from builtins import type as Type
|
|
152
|
+
from collections.abc import Mapping
|
|
153
|
+
else:
|
|
154
|
+
from typing import Dict, Mapping, Type
|
|
145
155
|
if sys.version_info >= (3, 12):
|
|
146
156
|
from typing import Literal, Unpack
|
|
147
157
|
else:
|
|
148
158
|
from typing_extensions import Literal, Unpack
|
|
149
159
|
|
|
150
|
-
|
|
151
160
|
__all__ = ("WorkSpacesWebClient",)
|
|
152
161
|
|
|
153
|
-
|
|
154
|
-
class BotocoreClientError(Exception):
|
|
155
|
-
MSG_TEMPLATE: str
|
|
156
|
-
|
|
157
|
-
def __init__(self, error_response: Mapping[str, Any], operation_name: str) -> None:
|
|
158
|
-
self.response: Dict[str, Any]
|
|
159
|
-
self.operation_name: str
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
class Exceptions:
|
|
162
|
+
class Exceptions(BaseClientExceptions):
|
|
163
163
|
AccessDeniedException: Type[BotocoreClientError]
|
|
164
164
|
ClientError: Type[BotocoreClientError]
|
|
165
165
|
ConflictException: Type[BotocoreClientError]
|
|
@@ -170,7 +170,6 @@ class Exceptions:
|
|
|
170
170
|
TooManyTagsException: Type[BotocoreClientError]
|
|
171
171
|
ValidationException: Type[BotocoreClientError]
|
|
172
172
|
|
|
173
|
-
|
|
174
173
|
class WorkSpacesWebClient(BaseClient):
|
|
175
174
|
"""
|
|
176
175
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/workspaces-web.html#WorkSpacesWeb.Client)
|
|
@@ -188,6 +187,24 @@ class WorkSpacesWebClient(BaseClient):
|
|
|
188
187
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_workspaces_web/client/#exceptions)
|
|
189
188
|
"""
|
|
190
189
|
|
|
190
|
+
def can_paginate(self, operation_name: str) -> bool:
|
|
191
|
+
"""
|
|
192
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/workspaces-web/client/can_paginate.html)
|
|
193
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_workspaces_web/client/#can_paginate)
|
|
194
|
+
"""
|
|
195
|
+
|
|
196
|
+
def generate_presigned_url(
|
|
197
|
+
self,
|
|
198
|
+
ClientMethod: str,
|
|
199
|
+
Params: Mapping[str, Any] = ...,
|
|
200
|
+
ExpiresIn: int = 3600,
|
|
201
|
+
HttpMethod: str = ...,
|
|
202
|
+
) -> str:
|
|
203
|
+
"""
|
|
204
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/workspaces-web/client/generate_presigned_url.html)
|
|
205
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_workspaces_web/client/#generate_presigned_url)
|
|
206
|
+
"""
|
|
207
|
+
|
|
191
208
|
def associate_browser_settings(
|
|
192
209
|
self, **kwargs: Unpack[AssociateBrowserSettingsRequestRequestTypeDef]
|
|
193
210
|
) -> AssociateBrowserSettingsResponseTypeDef:
|
|
@@ -258,22 +275,6 @@ class WorkSpacesWebClient(BaseClient):
|
|
|
258
275
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_workspaces_web/client/#associate_user_settings)
|
|
259
276
|
"""
|
|
260
277
|
|
|
261
|
-
def can_paginate(self, operation_name: str) -> bool:
|
|
262
|
-
"""
|
|
263
|
-
Check if an operation can be paginated.
|
|
264
|
-
|
|
265
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/workspaces-web/client/can_paginate.html)
|
|
266
|
-
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_workspaces_web/client/#can_paginate)
|
|
267
|
-
"""
|
|
268
|
-
|
|
269
|
-
def close(self) -> None:
|
|
270
|
-
"""
|
|
271
|
-
Closes underlying endpoint connections.
|
|
272
|
-
|
|
273
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/workspaces-web/client/close.html)
|
|
274
|
-
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_workspaces_web/client/#close)
|
|
275
|
-
"""
|
|
276
|
-
|
|
277
278
|
def create_browser_settings(
|
|
278
279
|
self, **kwargs: Unpack[CreateBrowserSettingsRequestRequestTypeDef]
|
|
279
280
|
) -> CreateBrowserSettingsResponseTypeDef:
|
|
@@ -534,20 +535,6 @@ class WorkSpacesWebClient(BaseClient):
|
|
|
534
535
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_workspaces_web/client/#expire_session)
|
|
535
536
|
"""
|
|
536
537
|
|
|
537
|
-
def generate_presigned_url(
|
|
538
|
-
self,
|
|
539
|
-
ClientMethod: str,
|
|
540
|
-
Params: Mapping[str, Any] = ...,
|
|
541
|
-
ExpiresIn: int = 3600,
|
|
542
|
-
HttpMethod: str = ...,
|
|
543
|
-
) -> str:
|
|
544
|
-
"""
|
|
545
|
-
Generate a presigned url given a client, its method, and arguments.
|
|
546
|
-
|
|
547
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/workspaces-web/client/generate_presigned_url.html)
|
|
548
|
-
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_workspaces_web/client/#generate_presigned_url)
|
|
549
|
-
"""
|
|
550
|
-
|
|
551
538
|
def get_browser_settings(
|
|
552
539
|
self, **kwargs: Unpack[GetBrowserSettingsRequestRequestTypeDef]
|
|
553
540
|
) -> GetBrowserSettingsResponseTypeDef:
|
|
@@ -896,18 +883,24 @@ class WorkSpacesWebClient(BaseClient):
|
|
|
896
883
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_workspaces_web/client/#update_user_settings)
|
|
897
884
|
"""
|
|
898
885
|
|
|
899
|
-
@overload
|
|
900
|
-
def get_paginator(
|
|
886
|
+
@overload # type: ignore[override]
|
|
887
|
+
def get_paginator( # type: ignore[override]
|
|
901
888
|
self, operation_name: Literal["list_data_protection_settings"]
|
|
902
889
|
) -> ListDataProtectionSettingsPaginator:
|
|
903
890
|
"""
|
|
891
|
+
Create a paginator for an operation.
|
|
892
|
+
|
|
904
893
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/workspaces-web/client/get_paginator.html)
|
|
905
894
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_workspaces_web/client/#get_paginator)
|
|
906
895
|
"""
|
|
907
896
|
|
|
908
|
-
@overload
|
|
909
|
-
def get_paginator(
|
|
897
|
+
@overload # type: ignore[override]
|
|
898
|
+
def get_paginator( # type: ignore[override]
|
|
899
|
+
self, operation_name: Literal["list_sessions"]
|
|
900
|
+
) -> ListSessionsPaginator:
|
|
910
901
|
"""
|
|
902
|
+
Create a paginator for an operation.
|
|
903
|
+
|
|
911
904
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/workspaces-web/client/get_paginator.html)
|
|
912
905
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_workspaces_web/client/#get_paginator)
|
|
913
906
|
"""
|