botocore-stubs 1.35.85__tar.gz → 1.35.87__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.
Potentially problematic release.
This version of botocore-stubs might be problematic. Click here for more details.
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/PKG-INFO +1 -1
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/awsrequest.pyi +3 -3
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/compat.pyi +7 -5
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/configprovider.pyi +21 -13
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/credentials.pyi +38 -32
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/discovery.pyi +19 -8
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/docs/bcdoc/restdoc.pyi +15 -12
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/docs/example.pyi +12 -9
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/docs/method.pyi +5 -4
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/docs/paginator.pyi +3 -2
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/docs/params.pyi +11 -8
- botocore_stubs-1.35.87/botocore-stubs/docs/service.pyi +20 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/docs/shape.pyi +4 -3
- botocore_stubs-1.35.87/botocore-stubs/docs/sharedexample.pyi +28 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/docs/utils.pyi +7 -8
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/docs/waiter.pyi +3 -4
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/endpoint.pyi +14 -10
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/endpoint_provider.pyi +3 -3
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/handlers.pyi +14 -10
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/hooks.pyi +15 -13
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/monitoring.pyi +4 -2
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/regions.pyi +15 -15
- botocore_stubs-1.35.87/botocore-stubs/retries/base.pyi +13 -0
- botocore_stubs-1.35.87/botocore-stubs/retries/bucket.pyi +24 -0
- botocore_stubs-1.35.87/botocore-stubs/retries/quota.pyi +15 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/retries/special.pyi +3 -2
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/retries/standard.pyi +14 -12
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/serialize.pyi +1 -1
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore_stubs.egg-info/PKG-INFO +1 -1
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/pyproject.toml +5 -2
- botocore_stubs-1.35.85/botocore-stubs/docs/service.pyi +0 -21
- botocore_stubs-1.35.85/botocore-stubs/docs/sharedexample.pyi +0 -20
- botocore_stubs-1.35.85/botocore-stubs/retries/base.pyi +0 -13
- botocore_stubs-1.35.85/botocore-stubs/retries/bucket.pyi +0 -26
- botocore_stubs-1.35.85/botocore-stubs/retries/quota.pyi +0 -15
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/LICENSE +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/MANIFEST.in +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/README.md +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/__init__.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/args.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/auth.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/client.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/compress.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/config.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/configloader.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/crt/__init__.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/crt/auth.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/docs/__init__.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/docs/bcdoc/__init__.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/docs/bcdoc/docstringparser.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/docs/bcdoc/style.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/docs/client.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/docs/docstring.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/docs/translator.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/errorfactory.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/eventstream.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/exceptions.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/history.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/httpchecksum.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/httpsession.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/loaders.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/model.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/paginate.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/parsers.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/py.typed +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/response.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/retries/__init__.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/retries/adaptive.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/retries/throttling.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/retryhandler.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/session.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/signers.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/stub.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/tokens.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/translate.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/useragent.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/utils.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/validate.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore-stubs/waiter.pyi +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore_stubs.egg-info/SOURCES.txt +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore_stubs.egg-info/dependency_links.txt +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore_stubs.egg-info/requires.txt +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/botocore_stubs.egg-info/top_level.txt +0 -0
- {botocore_stubs-1.35.85 → botocore_stubs-1.35.87}/setup.cfg +0 -0
|
@@ -26,14 +26,14 @@ class AWSHTTPResponse(HTTPResponse):
|
|
|
26
26
|
|
|
27
27
|
class AWSConnection:
|
|
28
28
|
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
|
29
|
-
self.response_class:
|
|
29
|
+
self.response_class: type[AWSHTTPResponse]
|
|
30
30
|
|
|
31
31
|
def close(self) -> None: ...
|
|
32
32
|
def request(
|
|
33
33
|
self,
|
|
34
34
|
method: str,
|
|
35
35
|
url: str,
|
|
36
|
-
body:
|
|
36
|
+
body: str | bytes | bytearray | IO[bytes] | IO[str] | None = ...,
|
|
37
37
|
headers: Mapping[str, Any] | None = ...,
|
|
38
38
|
*args: Any,
|
|
39
39
|
**kwargs: Any,
|
|
@@ -53,7 +53,7 @@ class AWSHTTPSConnectionPool(HTTPSConnectionPool):
|
|
|
53
53
|
def prepare_request_dict(
|
|
54
54
|
request_dict: Mapping[str, Any],
|
|
55
55
|
endpoint_url: str,
|
|
56
|
-
context: Any | None = ...,
|
|
56
|
+
context: Mapping[str, Any] | None = ...,
|
|
57
57
|
user_agent: str | None = ...,
|
|
58
58
|
) -> None: ...
|
|
59
59
|
def create_request_object(request_dict: Mapping[str, Any]) -> Any: ...
|
|
@@ -4,9 +4,11 @@ Type annotations for botocore.compat module.
|
|
|
4
4
|
Copyright 2024 Vlad Emelianov
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
|
+
import datetime
|
|
7
8
|
from base64 import encodebytes as encodebytes
|
|
8
9
|
from collections import OrderedDict as OrderedDict
|
|
9
10
|
from email.utils import formatdate as formatdate
|
|
11
|
+
from hashlib import _Hash
|
|
10
12
|
from http.client import HTTPMessage
|
|
11
13
|
from http.client import HTTPResponse as HTTPResponse
|
|
12
14
|
from inspect import FullArgSpec
|
|
@@ -57,14 +59,14 @@ def _from_pairs(cls: type[_R], d: Mapping[str, Any]) -> _R: ...
|
|
|
57
59
|
|
|
58
60
|
from_pairs: Any
|
|
59
61
|
|
|
60
|
-
def copy_kwargs(kwargs:
|
|
61
|
-
def total_seconds(delta:
|
|
62
|
+
def copy_kwargs(kwargs: _R) -> _R: ...
|
|
63
|
+
def total_seconds(delta: datetime.timedelta) -> float: ...
|
|
62
64
|
|
|
63
65
|
MD5_AVAILABLE: bool
|
|
64
66
|
|
|
65
|
-
def get_md5(*args: Any, **kwargs: Any) ->
|
|
66
|
-
def compat_shell_split(s:
|
|
67
|
-
def get_tzinfo_options() -> Any: ...
|
|
67
|
+
def get_md5(*args: Any, **kwargs: Any) -> _Hash: ...
|
|
68
|
+
def compat_shell_split(s: str, platform: str | None = ...) -> list[str]: ...
|
|
69
|
+
def get_tzinfo_options() -> tuple[Any, ...]: ...
|
|
68
70
|
|
|
69
71
|
HAS_CRT: bool
|
|
70
72
|
disabled: str
|
|
@@ -5,8 +5,9 @@ Copyright 2024 Vlad Emelianov
|
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
7
|
from logging import Logger
|
|
8
|
-
from typing import Any, Mapping, TypeVar
|
|
8
|
+
from typing import Any, Callable, Mapping, Sequence, TypeVar
|
|
9
9
|
|
|
10
|
+
from botocore.session import Session
|
|
10
11
|
from botocore.utils import IMDSRegionProvider
|
|
11
12
|
|
|
12
13
|
BOTOCORE_DEFAUT_SESSION_VARIABLES: dict[str, tuple[Any, ...]]
|
|
@@ -28,15 +29,15 @@ class ConfigChainFactory:
|
|
|
28
29
|
def __init__(self, session: Any, environ: Any | None = ...) -> None: ...
|
|
29
30
|
def create_config_chain(
|
|
30
31
|
self,
|
|
31
|
-
instance_name:
|
|
32
|
-
env_var_names:
|
|
33
|
-
config_property_names:
|
|
32
|
+
instance_name: str | None = ...,
|
|
33
|
+
env_var_names: str | list[str] | None = ...,
|
|
34
|
+
config_property_names: str | Sequence[str] | None = ...,
|
|
34
35
|
default: Any | None = ...,
|
|
35
|
-
conversion_func: Any | None = ...,
|
|
36
|
-
) ->
|
|
36
|
+
conversion_func: Callable[..., Any] | None = ...,
|
|
37
|
+
) -> ChainProvider: ...
|
|
37
38
|
|
|
38
39
|
class ConfigValueStore:
|
|
39
|
-
def __init__(self, mapping: Any | None = ...) -> None: ...
|
|
40
|
+
def __init__(self, mapping: Mapping[str, Any] | None = ...) -> None: ...
|
|
40
41
|
def __deepcopy__(self: _R, memo: dict[str, Any]) -> _R: ...
|
|
41
42
|
def __copy__(self: _R) -> _R: ...
|
|
42
43
|
def get_config_variable(self, logical_name: str) -> Any: ...
|
|
@@ -57,32 +58,39 @@ class SmartDefaultsConfigStoreFactory:
|
|
|
57
58
|
def resolve_auto_mode(self, region_name: str) -> str: ...
|
|
58
59
|
|
|
59
60
|
class BaseProvider:
|
|
60
|
-
def provide(self) ->
|
|
61
|
+
def provide(self) -> Any: ...
|
|
61
62
|
|
|
62
63
|
class ChainProvider(BaseProvider):
|
|
63
|
-
def __init__(
|
|
64
|
+
def __init__(
|
|
65
|
+
self,
|
|
66
|
+
providers: Sequence[BaseProvider] | None = ...,
|
|
67
|
+
conversion_func: Callable[..., Any] | None = ...,
|
|
68
|
+
) -> None: ...
|
|
64
69
|
def __deepcopy__(self: _R, memo: dict[str, Any]) -> _R: ...
|
|
65
70
|
def provide(self) -> Any: ...
|
|
66
71
|
def set_default_provider(self, default_provider: BaseProvider) -> None: ...
|
|
67
72
|
|
|
68
73
|
class InstanceVarProvider(BaseProvider):
|
|
69
|
-
def __init__(self, instance_var:
|
|
74
|
+
def __init__(self, instance_var: str, session: Session) -> None: ...
|
|
70
75
|
def __deepcopy__(self: _R, memo: dict[str, Any]) -> _R: ...
|
|
71
76
|
def provide(self) -> Any: ...
|
|
72
77
|
|
|
73
78
|
class ScopedConfigProvider(BaseProvider):
|
|
74
|
-
def __init__(self, config_var_name:
|
|
79
|
+
def __init__(self, config_var_name: str, session: Session) -> None: ...
|
|
75
80
|
def __deepcopy__(self: _R, memo: dict[str, Any]) -> _R: ...
|
|
76
81
|
def provide(self) -> Any: ...
|
|
77
82
|
|
|
78
83
|
class EnvironmentProvider(BaseProvider):
|
|
79
|
-
def __init__(self, name:
|
|
84
|
+
def __init__(self, name: str, env: Mapping[str, str]) -> None: ...
|
|
80
85
|
def __deepcopy__(self: _R, memo: dict[str, Any]) -> _R: ...
|
|
81
86
|
def provide(self) -> Any: ...
|
|
82
87
|
|
|
83
88
|
class SectionConfigProvider(BaseProvider):
|
|
84
89
|
def __init__(
|
|
85
|
-
self,
|
|
90
|
+
self,
|
|
91
|
+
section_name: str,
|
|
92
|
+
session: Session,
|
|
93
|
+
override_providers: dict[str, BaseProvider] | None = ...,
|
|
86
94
|
) -> None: ...
|
|
87
95
|
def __deepcopy__(self: _R, memo: dict[str, Any]) -> _R: ...
|
|
88
96
|
def provide(self) -> Any: ...
|
|
@@ -157,7 +157,7 @@ class AssumeRoleWithWebIdentityCredentialFetcher(BaseAssumeRoleCredentialFetcher
|
|
|
157
157
|
def __init__(
|
|
158
158
|
self,
|
|
159
159
|
client_creator: Callable[[], BaseClient],
|
|
160
|
-
web_identity_token_loader:
|
|
160
|
+
web_identity_token_loader: Callable[[], str],
|
|
161
161
|
role_arn: str,
|
|
162
162
|
extra_args: Any | None = ...,
|
|
163
163
|
cache: dict[str, Any] | None = ...,
|
|
@@ -174,13 +174,15 @@ class CredentialProvider:
|
|
|
174
174
|
|
|
175
175
|
class ProcessProvider(CredentialProvider):
|
|
176
176
|
METHOD: str = ...
|
|
177
|
-
def __init__(
|
|
177
|
+
def __init__(
|
|
178
|
+
self, profile_name: str, load_config: Callable[..., Any], popen: Callable[..., Any] = ...
|
|
179
|
+
) -> None: ...
|
|
178
180
|
def load(self) -> Credentials | None: ...
|
|
179
181
|
|
|
180
182
|
class InstanceMetadataProvider(CredentialProvider):
|
|
181
183
|
METHOD: str = ...
|
|
182
184
|
CANONICAL_NAME: str = ...
|
|
183
|
-
def __init__(self, iam_role_fetcher:
|
|
185
|
+
def __init__(self, iam_role_fetcher: InstanceMetadataFetcher) -> None: ...
|
|
184
186
|
def load(self) -> Credentials | None: ...
|
|
185
187
|
|
|
186
188
|
class EnvProvider(CredentialProvider):
|
|
@@ -188,7 +190,7 @@ class EnvProvider(CredentialProvider):
|
|
|
188
190
|
CANONICAL_NAME: str = ...
|
|
189
191
|
ACCESS_KEY: str = ...
|
|
190
192
|
SECRET_KEY: str = ...
|
|
191
|
-
TOKENS:
|
|
193
|
+
TOKENS: list[str] = ...
|
|
192
194
|
EXPIRY_TIME: str = ...
|
|
193
195
|
def __init__(
|
|
194
196
|
self, environ: Mapping[str, Any] | None = ..., mapping: Mapping[str, Any] | None = ...
|
|
@@ -203,7 +205,9 @@ class OriginalEC2Provider(CredentialProvider):
|
|
|
203
205
|
CRED_FILE_ENV: str = ...
|
|
204
206
|
ACCESS_KEY: str = ...
|
|
205
207
|
SECRET_KEY: str = ...
|
|
206
|
-
def __init__(
|
|
208
|
+
def __init__(
|
|
209
|
+
self, environ: Mapping[str, str] | None = ..., parser: Callable[..., Any] | None = ...
|
|
210
|
+
) -> None: ...
|
|
207
211
|
def load(self) -> Credentials | None: ...
|
|
208
212
|
|
|
209
213
|
class SharedCredentialProvider(CredentialProvider):
|
|
@@ -211,7 +215,7 @@ class SharedCredentialProvider(CredentialProvider):
|
|
|
211
215
|
CANONICAL_NAME: str = ...
|
|
212
216
|
ACCESS_KEY: str = ...
|
|
213
217
|
SECRET_KEY: str = ...
|
|
214
|
-
TOKENS:
|
|
218
|
+
TOKENS: list[str] = ...
|
|
215
219
|
def __init__(
|
|
216
220
|
self,
|
|
217
221
|
creds_filename: str,
|
|
@@ -238,7 +242,7 @@ class BotoProvider(CredentialProvider):
|
|
|
238
242
|
METHOD: str = ...
|
|
239
243
|
CANONICAL_NAME: str = ...
|
|
240
244
|
BOTO_CONFIG_ENV: str = ...
|
|
241
|
-
DEFAULT_CONFIG_FILENAMES:
|
|
245
|
+
DEFAULT_CONFIG_FILENAMES: list[str] = ...
|
|
242
246
|
ACCESS_KEY: str = ...
|
|
243
247
|
SECRET_KEY: str = ...
|
|
244
248
|
def __init__(self, environ: Any | None = ..., ini_parser: Any | None = ...) -> None: ...
|
|
@@ -246,11 +250,10 @@ class BotoProvider(CredentialProvider):
|
|
|
246
250
|
|
|
247
251
|
class AssumeRoleProvider(CredentialProvider):
|
|
248
252
|
METHOD: str = ...
|
|
249
|
-
CANONICAL_NAME:
|
|
253
|
+
CANONICAL_NAME: None = ...
|
|
250
254
|
ROLE_CONFIG_VAR: str = ...
|
|
251
255
|
WEB_IDENTITY_TOKE_FILE_VAR: str = ...
|
|
252
256
|
EXPIRY_WINDOW_SECONDS: Any = ...
|
|
253
|
-
cache: Any = ...
|
|
254
257
|
def __init__(
|
|
255
258
|
self,
|
|
256
259
|
load_config: Callable[[], Mapping[str, Any]],
|
|
@@ -260,22 +263,23 @@ class AssumeRoleProvider(CredentialProvider):
|
|
|
260
263
|
prompter: Callable[..., Any] = ...,
|
|
261
264
|
credential_sourcer: CanonicalNameCredentialSourcer | None = ...,
|
|
262
265
|
profile_provider_builder: Any | None = ...,
|
|
263
|
-
) -> None:
|
|
266
|
+
) -> None:
|
|
267
|
+
self.cache: dict[str, Any] = ...
|
|
264
268
|
def load(self) -> DeferredRefreshableCredentials | None: ...
|
|
265
269
|
|
|
266
270
|
class AssumeRoleWithWebIdentityProvider(CredentialProvider):
|
|
267
271
|
METHOD: str = ...
|
|
268
|
-
CANONICAL_NAME:
|
|
269
|
-
cache: Any = ...
|
|
272
|
+
CANONICAL_NAME: None = ...
|
|
270
273
|
def __init__(
|
|
271
274
|
self,
|
|
272
|
-
load_config: Any,
|
|
273
|
-
client_creator: Any,
|
|
275
|
+
load_config: Callable[[], Mapping[str, Any]],
|
|
276
|
+
client_creator: Callable[..., Any],
|
|
274
277
|
profile_name: str,
|
|
275
|
-
cache: Any | None = ...,
|
|
278
|
+
cache: dict[str, Any] | None = ...,
|
|
276
279
|
disable_env_vars: bool = ...,
|
|
277
|
-
token_loader_cls:
|
|
278
|
-
) -> None:
|
|
280
|
+
token_loader_cls: type[FileWebIdentityTokenLoader] | None = ...,
|
|
281
|
+
) -> None:
|
|
282
|
+
self.cache: dict[str, Any] = ...
|
|
279
283
|
def load(self) -> DeferredRefreshableCredentials | None: ...
|
|
280
284
|
|
|
281
285
|
class CanonicalNameCredentialSourcer:
|
|
@@ -291,7 +295,9 @@ class ContainerProvider(CredentialProvider):
|
|
|
291
295
|
ENV_VAR_AUTH_TOKEN: str = ...
|
|
292
296
|
ENV_VAR_AUTH_TOKEN_FILE: str = ...
|
|
293
297
|
def __init__(
|
|
294
|
-
self,
|
|
298
|
+
self,
|
|
299
|
+
environ: Mapping[str, str] | None = ...,
|
|
300
|
+
fetcher: AssumeRoleCredentialFetcher | None = ...,
|
|
295
301
|
) -> None: ...
|
|
296
302
|
def load(self) -> RefreshableCredentials: ...
|
|
297
303
|
|
|
@@ -307,28 +313,28 @@ class CredentialResolver:
|
|
|
307
313
|
class SSOCredentialFetcher(CachedCredentialFetcher):
|
|
308
314
|
def __init__(
|
|
309
315
|
self,
|
|
310
|
-
start_url:
|
|
311
|
-
sso_region:
|
|
312
|
-
role_name:
|
|
313
|
-
account_id:
|
|
314
|
-
client_creator: Any,
|
|
315
|
-
token_loader:
|
|
316
|
-
cache: Any | None = ...,
|
|
317
|
-
expiry_window_seconds:
|
|
316
|
+
start_url: str,
|
|
317
|
+
sso_region: str,
|
|
318
|
+
role_name: str,
|
|
319
|
+
account_id: str,
|
|
320
|
+
client_creator: Callable[..., Any],
|
|
321
|
+
token_loader: Callable[[], str] | None = ...,
|
|
322
|
+
cache: dict[str, Any] | None = ...,
|
|
323
|
+
expiry_window_seconds: float | None = ...,
|
|
318
324
|
token_provider: SSOTokenProvider | None = ...,
|
|
319
325
|
sso_session_name: str | None = ...,
|
|
320
326
|
) -> None: ...
|
|
321
327
|
|
|
322
328
|
class SSOProvider(CredentialProvider):
|
|
323
329
|
METHOD: str = ...
|
|
324
|
-
cache: Any = ...
|
|
325
330
|
def __init__(
|
|
326
331
|
self,
|
|
327
|
-
load_config: Any,
|
|
328
|
-
client_creator: Any,
|
|
332
|
+
load_config: Callable[[], Any],
|
|
333
|
+
client_creator: Callable[..., Any],
|
|
329
334
|
profile_name: str,
|
|
330
|
-
cache: Any | None = ...,
|
|
331
|
-
token_cache: Any | None = ...,
|
|
335
|
+
cache: dict[str, Any] | None = ...,
|
|
336
|
+
token_cache: dict[str, Any] | None = ...,
|
|
332
337
|
token_provider: SSOTokenProvider | None = ...,
|
|
333
|
-
) -> None:
|
|
338
|
+
) -> None:
|
|
339
|
+
self.cache: dict[str, Any] = ...
|
|
334
340
|
def load(self) -> DeferredRefreshableCredentials: ...
|
|
@@ -5,12 +5,13 @@ Copyright 2024 Vlad Emelianov
|
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
7
|
from logging import Logger
|
|
8
|
-
from typing import Any, Callable
|
|
8
|
+
from typing import Any, Callable, Mapping
|
|
9
9
|
|
|
10
10
|
from botocore.client import BaseClient
|
|
11
11
|
from botocore.exceptions import BotoCoreError as BotoCoreError
|
|
12
12
|
from botocore.exceptions import ConnectionError as ConnectionError
|
|
13
13
|
from botocore.exceptions import HTTPClientError as HTTPClientError
|
|
14
|
+
from botocore.hooks import BaseEventHooks
|
|
14
15
|
from botocore.model import OperationModel, ServiceModel
|
|
15
16
|
from botocore.model import OperationNotFoundError as OperationNotFoundError
|
|
16
17
|
from botocore.utils import CachedProperty as CachedProperty
|
|
@@ -25,7 +26,7 @@ class EndpointDiscoveryRequired(EndpointDiscoveryException):
|
|
|
25
26
|
class EndpointDiscoveryRefreshFailed(EndpointDiscoveryException):
|
|
26
27
|
fmt: str = ...
|
|
27
28
|
|
|
28
|
-
def block_endpoint_discovery_required_operations(model:
|
|
29
|
+
def block_endpoint_discovery_required_operations(model: OperationModel, **kwargs: Any) -> None: ...
|
|
29
30
|
|
|
30
31
|
class EndpointDiscoveryModel:
|
|
31
32
|
def __init__(self, service_model: ServiceModel) -> None: ...
|
|
@@ -35,7 +36,9 @@ class EndpointDiscoveryModel:
|
|
|
35
36
|
def discovery_operation_keys(self) -> list[str]: ...
|
|
36
37
|
def discovery_required_for(self, operation_name: str) -> bool: ...
|
|
37
38
|
def discovery_operation_kwargs(self, **kwargs: Any) -> dict[str, Any]: ...
|
|
38
|
-
def gather_identifiers(
|
|
39
|
+
def gather_identifiers(
|
|
40
|
+
self, operation: OperationModel, params: Mapping[str, Any]
|
|
41
|
+
) -> dict[str, Any]: ...
|
|
39
42
|
|
|
40
43
|
class EndpointDiscoveryManager:
|
|
41
44
|
def __init__(
|
|
@@ -45,17 +48,25 @@ class EndpointDiscoveryManager:
|
|
|
45
48
|
current_time: Callable[[], float] | None = ...,
|
|
46
49
|
always_discover: bool = ...,
|
|
47
50
|
) -> None: ...
|
|
48
|
-
def gather_identifiers(self, operation: OperationModel, params: Any) -> Any: ...
|
|
51
|
+
def gather_identifiers(self, operation: OperationModel, params: Mapping[str, Any]) -> Any: ...
|
|
49
52
|
def delete_endpoints(self, **kwargs: Any) -> None: ...
|
|
50
53
|
def describe_endpoint(self, **kwargs: Any) -> Any: ...
|
|
51
54
|
|
|
52
55
|
class EndpointDiscoveryHandler:
|
|
53
|
-
def __init__(self, manager:
|
|
54
|
-
def register(self, events:
|
|
56
|
+
def __init__(self, manager: EndpointDiscoveryManager) -> None: ...
|
|
57
|
+
def register(self, events: BaseEventHooks, service_id: str) -> None: ...
|
|
55
58
|
def gather_identifiers(
|
|
56
|
-
self,
|
|
59
|
+
self,
|
|
60
|
+
params: Mapping[str, Any],
|
|
61
|
+
model: OperationModel,
|
|
62
|
+
context: Mapping[str, Any],
|
|
63
|
+
**kwargs: Any,
|
|
57
64
|
) -> None: ...
|
|
58
65
|
def discover_endpoint(self, request: Any, operation_name: str, **kwargs: Any) -> None: ...
|
|
59
66
|
def handle_retries(
|
|
60
|
-
self,
|
|
67
|
+
self,
|
|
68
|
+
request_dict: Mapping[str, Any],
|
|
69
|
+
response: Mapping[str, Any],
|
|
70
|
+
operation: OperationModel,
|
|
71
|
+
**kwargs: Any,
|
|
61
72
|
) -> Any: ...
|
|
@@ -4,11 +4,12 @@ Type annotations for botocore.docs.bcdoc.restdoc module.
|
|
|
4
4
|
Copyright 2024 Vlad Emelianov
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
|
+
import re
|
|
7
8
|
from logging import Logger
|
|
8
|
-
from typing import Any
|
|
9
|
+
from typing import Any, Iterable, Mapping
|
|
9
10
|
|
|
10
11
|
DEFAULT_AWS_DOCS_LINK: str = ...
|
|
11
|
-
DOCUMENTATION_LINK_REGEX:
|
|
12
|
+
DOCUMENTATION_LINK_REGEX: re.Pattern[str] = ...
|
|
12
13
|
LARGE_SECTION_MESSAGE: str = ...
|
|
13
14
|
LOG: Logger = ...
|
|
14
15
|
SECTION_LINE_LIMIT_CONFIG: dict[str, Any] = ...
|
|
@@ -22,8 +23,8 @@ class ReSTDocument:
|
|
|
22
23
|
def pop_write(self) -> None: ...
|
|
23
24
|
def push_write(self, s: str) -> None: ...
|
|
24
25
|
def getvalue(self) -> bytes: ...
|
|
25
|
-
def translate_words(self, words:
|
|
26
|
-
def handle_data(self, data:
|
|
26
|
+
def translate_words(self, words: Iterable[str]) -> list[str]: ...
|
|
27
|
+
def handle_data(self, data: str | None) -> None: ...
|
|
27
28
|
def include_doc_string(self, doc_string: str) -> None: ...
|
|
28
29
|
def remove_last_doc_string(self) -> None: ...
|
|
29
30
|
|
|
@@ -32,26 +33,28 @@ class DocumentStructure(ReSTDocument):
|
|
|
32
33
|
self,
|
|
33
34
|
name: str,
|
|
34
35
|
section_names: list[str] | None = ...,
|
|
35
|
-
target:
|
|
36
|
-
context: Any = ...,
|
|
36
|
+
target: str = ...,
|
|
37
|
+
context: Mapping[str, Any] | None = ...,
|
|
37
38
|
) -> None: ...
|
|
38
39
|
@property
|
|
39
40
|
def name(self) -> str: ...
|
|
40
41
|
@property
|
|
41
|
-
def path(self) -> list[
|
|
42
|
+
def path(self) -> list[str]: ...
|
|
42
43
|
@path.setter
|
|
43
|
-
def path(self, value:
|
|
44
|
+
def path(self, value: list[str]) -> None: ...
|
|
44
45
|
@property
|
|
45
|
-
def available_sections(self) -> list[
|
|
46
|
+
def available_sections(self) -> list[str]: ...
|
|
46
47
|
@property
|
|
47
48
|
def context(self) -> dict[str, Any]: ...
|
|
48
|
-
def add_new_section(
|
|
49
|
-
|
|
49
|
+
def add_new_section(
|
|
50
|
+
self, name: str, context: Mapping[str, Any] | None = ...
|
|
51
|
+
) -> DocumentStructure: ...
|
|
52
|
+
def get_section(self, name: str) -> DocumentStructure: ...
|
|
50
53
|
def has_section(self, name: str) -> bool: ...
|
|
51
54
|
def delete_section(self, name: str) -> None: ...
|
|
52
55
|
def flush_structure(self, docs_link: str | None = ...) -> bytes: ...
|
|
53
56
|
def getvalue(self) -> bytes: ...
|
|
54
57
|
def remove_all_sections(self) -> None: ...
|
|
55
58
|
def clear_text(self) -> None: ...
|
|
56
|
-
def add_title_section(self, title: str) ->
|
|
59
|
+
def add_title_section(self, title: str) -> DocumentStructure: ...
|
|
57
60
|
def write_to_file(self, full_path: str, file_name: str) -> None: ...
|
|
@@ -6,22 +6,25 @@ Copyright 2024 Vlad Emelianov
|
|
|
6
6
|
|
|
7
7
|
from typing import Any
|
|
8
8
|
|
|
9
|
+
from botocore.docs.bcdoc.restdoc import DocumentStructure
|
|
9
10
|
from botocore.docs.shape import ShapeDocumenter
|
|
10
11
|
from botocore.model import Shape
|
|
11
12
|
|
|
12
13
|
class BaseExampleDocumenter(ShapeDocumenter):
|
|
13
14
|
def document_example(
|
|
14
15
|
self,
|
|
15
|
-
section:
|
|
16
|
+
section: DocumentStructure,
|
|
16
17
|
shape: Shape,
|
|
17
18
|
prefix: str | None = ...,
|
|
18
19
|
include: list[str] | None = ...,
|
|
19
20
|
exclude: list[str] | None = ...,
|
|
20
21
|
) -> None: ...
|
|
21
|
-
def document_recursive_shape(
|
|
22
|
+
def document_recursive_shape(
|
|
23
|
+
self, section: DocumentStructure, shape: Shape, **kwargs: Any
|
|
24
|
+
) -> None: ...
|
|
22
25
|
def document_shape_default(
|
|
23
26
|
self,
|
|
24
|
-
section:
|
|
27
|
+
section: DocumentStructure,
|
|
25
28
|
shape: Shape,
|
|
26
29
|
history: Any,
|
|
27
30
|
include: list[str] | None = ...,
|
|
@@ -30,7 +33,7 @@ class BaseExampleDocumenter(ShapeDocumenter):
|
|
|
30
33
|
) -> None: ...
|
|
31
34
|
def document_shape_type_string(
|
|
32
35
|
self,
|
|
33
|
-
section:
|
|
36
|
+
section: DocumentStructure,
|
|
34
37
|
shape: Shape,
|
|
35
38
|
history: Any,
|
|
36
39
|
include: list[str] | None = ...,
|
|
@@ -39,7 +42,7 @@ class BaseExampleDocumenter(ShapeDocumenter):
|
|
|
39
42
|
) -> None: ...
|
|
40
43
|
def document_shape_type_list(
|
|
41
44
|
self,
|
|
42
|
-
section:
|
|
45
|
+
section: DocumentStructure,
|
|
43
46
|
shape: Shape,
|
|
44
47
|
history: Any,
|
|
45
48
|
include: list[str] | None = ...,
|
|
@@ -48,7 +51,7 @@ class BaseExampleDocumenter(ShapeDocumenter):
|
|
|
48
51
|
) -> None: ...
|
|
49
52
|
def document_shape_type_structure(
|
|
50
53
|
self,
|
|
51
|
-
section:
|
|
54
|
+
section: DocumentStructure,
|
|
52
55
|
shape: Shape,
|
|
53
56
|
history: Any,
|
|
54
57
|
include: list[str] | None = ...,
|
|
@@ -57,7 +60,7 @@ class BaseExampleDocumenter(ShapeDocumenter):
|
|
|
57
60
|
) -> None: ...
|
|
58
61
|
def document_shape_type_map(
|
|
59
62
|
self,
|
|
60
|
-
section:
|
|
63
|
+
section: DocumentStructure,
|
|
61
64
|
shape: Shape,
|
|
62
65
|
history: Any,
|
|
63
66
|
include: list[str] | None = ...,
|
|
@@ -69,7 +72,7 @@ class ResponseExampleDocumenter(BaseExampleDocumenter):
|
|
|
69
72
|
EVENT_NAME: str = ...
|
|
70
73
|
def document_shape_type_event_stream(
|
|
71
74
|
self,
|
|
72
|
-
section:
|
|
75
|
+
section: DocumentStructure,
|
|
73
76
|
shape: Shape,
|
|
74
77
|
history: Any,
|
|
75
78
|
**kwargs: Any,
|
|
@@ -79,7 +82,7 @@ class RequestExampleDocumenter(BaseExampleDocumenter):
|
|
|
79
82
|
EVENT_NAME: str = ...
|
|
80
83
|
def document_shape_type_structure(
|
|
81
84
|
self,
|
|
82
|
-
section:
|
|
85
|
+
section: DocumentStructure,
|
|
83
86
|
shape: Shape,
|
|
84
87
|
history: Any,
|
|
85
88
|
include: list[str] | None = ...,
|
|
@@ -6,6 +6,7 @@ Copyright 2024 Vlad Emelianov
|
|
|
6
6
|
|
|
7
7
|
from typing import Any, Sequence
|
|
8
8
|
|
|
9
|
+
from botocore.docs.bcdoc.restdoc import DocumentStructure
|
|
9
10
|
from botocore.hooks import BaseEventHooks
|
|
10
11
|
from botocore.model import OperationModel
|
|
11
12
|
|
|
@@ -13,22 +14,22 @@ AWS_DOC_BASE: str = ...
|
|
|
13
14
|
|
|
14
15
|
def get_instance_public_methods(instance: Any) -> dict[str, Any]: ...
|
|
15
16
|
def document_model_driven_signature(
|
|
16
|
-
section:
|
|
17
|
+
section: DocumentStructure,
|
|
17
18
|
name: str,
|
|
18
19
|
operation_model: OperationModel,
|
|
19
20
|
include: Sequence[str] | None = ...,
|
|
20
21
|
exclude: Sequence[str] | None = ...,
|
|
21
22
|
) -> None: ...
|
|
22
23
|
def document_custom_signature(
|
|
23
|
-
section:
|
|
24
|
+
section: DocumentStructure,
|
|
24
25
|
name: str,
|
|
25
26
|
method: Any,
|
|
26
27
|
include: Sequence[str] | None = ...,
|
|
27
28
|
exclude: Sequence[str] | None = ...,
|
|
28
29
|
) -> None: ...
|
|
29
|
-
def document_custom_method(section:
|
|
30
|
+
def document_custom_method(section: DocumentStructure, method_name: str, method: Any) -> None: ...
|
|
30
31
|
def document_model_driven_method(
|
|
31
|
-
section:
|
|
32
|
+
section: DocumentStructure,
|
|
32
33
|
method_name: str,
|
|
33
34
|
operation_model: OperationModel,
|
|
34
35
|
event_emitter: BaseEventHooks,
|
|
@@ -7,6 +7,7 @@ Copyright 2024 Vlad Emelianov
|
|
|
7
7
|
from typing import Any
|
|
8
8
|
|
|
9
9
|
from botocore.client import BaseClient
|
|
10
|
+
from botocore.docs.bcdoc.restdoc import DocumentStructure
|
|
10
11
|
from botocore.hooks import BaseEventHooks
|
|
11
12
|
from botocore.model import ServiceModel
|
|
12
13
|
|
|
@@ -14,10 +15,10 @@ class PaginatorDocumenter:
|
|
|
14
15
|
def __init__(
|
|
15
16
|
self, client: BaseClient, service_paginator_model: ServiceModel, root_docs_path: str
|
|
16
17
|
) -> None: ...
|
|
17
|
-
def document_paginators(self, section:
|
|
18
|
+
def document_paginators(self, section: DocumentStructure) -> None: ...
|
|
18
19
|
|
|
19
20
|
def document_paginate_method(
|
|
20
|
-
section:
|
|
21
|
+
section: DocumentStructure,
|
|
21
22
|
paginator_name: str,
|
|
22
23
|
event_emitter: BaseEventHooks,
|
|
23
24
|
service_model: ServiceModel,
|
|
@@ -6,21 +6,24 @@ Copyright 2024 Vlad Emelianov
|
|
|
6
6
|
|
|
7
7
|
from typing import Any, Sequence
|
|
8
8
|
|
|
9
|
+
from botocore.docs.bcdoc.restdoc import DocumentStructure
|
|
9
10
|
from botocore.docs.shape import ShapeDocumenter
|
|
10
11
|
from botocore.model import Shape
|
|
11
12
|
|
|
12
13
|
class BaseParamsDocumenter(ShapeDocumenter):
|
|
13
14
|
def document_params(
|
|
14
15
|
self,
|
|
15
|
-
section:
|
|
16
|
+
section: DocumentStructure,
|
|
16
17
|
shape: Shape,
|
|
17
18
|
include: Sequence[str] | None = ...,
|
|
18
19
|
exclude: Sequence[str] | None = ...,
|
|
19
20
|
) -> None: ...
|
|
20
|
-
def document_recursive_shape(
|
|
21
|
+
def document_recursive_shape(
|
|
22
|
+
self, section: DocumentStructure, shape: Shape, **kwargs: Any
|
|
23
|
+
) -> None: ...
|
|
21
24
|
def document_shape_default(
|
|
22
25
|
self,
|
|
23
|
-
section:
|
|
26
|
+
section: DocumentStructure,
|
|
24
27
|
shape: Shape,
|
|
25
28
|
history: Any,
|
|
26
29
|
include: Sequence[str] | None = ...,
|
|
@@ -29,7 +32,7 @@ class BaseParamsDocumenter(ShapeDocumenter):
|
|
|
29
32
|
) -> None: ...
|
|
30
33
|
def document_shape_type_list(
|
|
31
34
|
self,
|
|
32
|
-
section:
|
|
35
|
+
section: DocumentStructure,
|
|
33
36
|
shape: Shape,
|
|
34
37
|
history: Any,
|
|
35
38
|
include: Sequence[str] | None = ...,
|
|
@@ -38,7 +41,7 @@ class BaseParamsDocumenter(ShapeDocumenter):
|
|
|
38
41
|
) -> None: ...
|
|
39
42
|
def document_shape_type_map(
|
|
40
43
|
self,
|
|
41
|
-
section:
|
|
44
|
+
section: DocumentStructure,
|
|
42
45
|
shape: Shape,
|
|
43
46
|
history: Any,
|
|
44
47
|
include: Sequence[str] | None = ...,
|
|
@@ -47,7 +50,7 @@ class BaseParamsDocumenter(ShapeDocumenter):
|
|
|
47
50
|
) -> None: ...
|
|
48
51
|
def document_shape_type_structure(
|
|
49
52
|
self,
|
|
50
|
-
section:
|
|
53
|
+
section: DocumentStructure,
|
|
51
54
|
shape: Shape,
|
|
52
55
|
history: Any,
|
|
53
56
|
include: Sequence[str] | None = ...,
|
|
@@ -60,7 +63,7 @@ class ResponseParamsDocumenter(BaseParamsDocumenter):
|
|
|
60
63
|
EVENT_NAME: str = ...
|
|
61
64
|
def document_shape_type_event_stream(
|
|
62
65
|
self,
|
|
63
|
-
section:
|
|
66
|
+
section: DocumentStructure,
|
|
64
67
|
shape: Shape,
|
|
65
68
|
history: Any,
|
|
66
69
|
**kwargs: Any,
|
|
@@ -70,7 +73,7 @@ class RequestParamsDocumenter(BaseParamsDocumenter):
|
|
|
70
73
|
EVENT_NAME: str = ...
|
|
71
74
|
def document_shape_type_structure( # type: ignore[override]
|
|
72
75
|
self,
|
|
73
|
-
section:
|
|
76
|
+
section: DocumentStructure,
|
|
74
77
|
shape: Shape,
|
|
75
78
|
history: Any,
|
|
76
79
|
include: Sequence[str] | None = ...,
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Type annotations for botocore.docs.service module.
|
|
3
|
+
|
|
4
|
+
Copyright 2024 Vlad Emelianov
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from botocore.docs.bcdoc.restdoc import DocumentStructure
|
|
8
|
+
from botocore.session import Session
|
|
9
|
+
|
|
10
|
+
class ServiceDocumenter:
|
|
11
|
+
def __init__(self, service_name: str, session: Session, root_docs_path: str) -> None: ...
|
|
12
|
+
def document_service(self) -> bytes: ...
|
|
13
|
+
def title(self, section: DocumentStructure) -> None: ...
|
|
14
|
+
def table_of_contents(self, section: DocumentStructure) -> None: ...
|
|
15
|
+
def client_api(self, section: DocumentStructure) -> None: ...
|
|
16
|
+
def client_exceptions(self, section: DocumentStructure) -> None: ...
|
|
17
|
+
def paginator_api(self, section: DocumentStructure) -> None: ...
|
|
18
|
+
def waiter_api(self, section: DocumentStructure) -> None: ...
|
|
19
|
+
def get_examples(self, service_name: str, api_version: str | None = ...) -> list[str]: ...
|
|
20
|
+
def client_context_params(self, section: DocumentStructure) -> None: ...
|