botocore-stubs 1.35.68__py3-none-any.whl → 1.35.70__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of botocore-stubs might be problematic. Click here for more details.
- botocore-stubs/__init__.pyi +6 -2
- botocore-stubs/args.pyi +22 -24
- botocore-stubs/auth.pyi +34 -30
- botocore-stubs/awsrequest.pyi +25 -21
- botocore-stubs/client.pyi +31 -27
- botocore-stubs/compat.pyi +14 -9
- botocore-stubs/compress.pyi +6 -3
- botocore-stubs/config.pyi +27 -29
- botocore-stubs/configloader.pyi +9 -5
- botocore-stubs/configprovider.pyi +27 -25
- botocore-stubs/credentials.pyi +73 -69
- botocore-stubs/crt/__init__.pyi +1 -3
- botocore-stubs/crt/auth.pyi +4 -2
- botocore-stubs/discovery.pyi +11 -8
- botocore-stubs/docs/__init__.pyi +1 -3
- botocore-stubs/docs/bcdoc/docstringparser.pyi +11 -7
- botocore-stubs/docs/bcdoc/restdoc.pyi +10 -6
- botocore-stubs/docs/bcdoc/style.pyi +11 -7
- botocore-stubs/docs/client.pyi +8 -4
- botocore-stubs/docs/docstring.pyi +4 -2
- botocore-stubs/docs/example.pyi +20 -16
- botocore-stubs/docs/method.pyi +16 -12
- botocore-stubs/docs/paginator.pyi +4 -0
- botocore-stubs/docs/params.pyi +18 -14
- botocore-stubs/docs/service.pyi +6 -2
- botocore-stubs/docs/shape.pyi +6 -2
- botocore-stubs/docs/sharedexample.pyi +4 -0
- botocore-stubs/docs/translator.pyi +6 -2
- botocore-stubs/docs/utils.pyi +8 -4
- botocore-stubs/docs/waiter.pyi +4 -0
- botocore-stubs/endpoint.pyi +15 -11
- botocore-stubs/endpoint_provider.pyi +38 -39
- botocore-stubs/errorfactory.pyi +7 -3
- botocore-stubs/eventstream.pyi +20 -16
- botocore-stubs/exceptions.pyi +8 -10
- botocore-stubs/handlers.pyi +10 -6
- botocore-stubs/history.pyi +6 -2
- botocore-stubs/hooks.pyi +19 -17
- botocore-stubs/httpchecksum.pyi +13 -10
- botocore-stubs/httpsession.pyi +21 -17
- botocore-stubs/loaders.pyi +17 -13
- botocore-stubs/model.pyi +50 -46
- botocore-stubs/monitoring.pyi +23 -20
- botocore-stubs/paginate.pyi +7 -3
- botocore-stubs/parsers.pyi +11 -7
- botocore-stubs/regions.pyi +18 -14
- botocore-stubs/response.pyi +8 -4
- botocore-stubs/retries/adaptive.pyi +5 -1
- botocore-stubs/retries/bucket.pyi +4 -0
- botocore-stubs/retries/quota.pyi +6 -2
- botocore-stubs/retries/special.pyi +4 -0
- botocore-stubs/retries/standard.pyi +16 -12
- botocore-stubs/retries/throttling.pyi +4 -0
- botocore-stubs/retryhandler.pyi +10 -6
- botocore-stubs/serialize.pyi +11 -7
- botocore-stubs/session.pyi +43 -49
- botocore-stubs/signers.pyi +26 -24
- botocore-stubs/stub.pyi +13 -15
- botocore-stubs/tokens.pyi +10 -6
- botocore-stubs/translate.pyi +6 -2
- botocore-stubs/useragent.pyi +9 -5
- botocore-stubs/utils.pyi +57 -58
- botocore-stubs/validate.pyi +5 -1
- botocore-stubs/waiter.pyi +9 -5
- {botocore_stubs-1.35.68.dist-info → botocore_stubs-1.35.70.dist-info}/METADATA +1 -2
- botocore_stubs-1.35.70.dist-info/RECORD +73 -0
- botocore_stubs-1.35.68.dist-info/RECORD +0 -73
- {botocore_stubs-1.35.68.dist-info → botocore_stubs-1.35.70.dist-info}/LICENSE +0 -0
- {botocore_stubs-1.35.68.dist-info → botocore_stubs-1.35.70.dist-info}/WHEEL +0 -0
- {botocore_stubs-1.35.68.dist-info → botocore_stubs-1.35.70.dist-info}/top_level.txt +0 -0
botocore-stubs/configloader.pyi
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
"""
|
|
2
|
+
Copyright 2024 Vlad Emelianov
|
|
3
|
+
"""
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
def
|
|
6
|
-
def
|
|
5
|
+
from typing import Any
|
|
6
|
+
|
|
7
|
+
def multi_file_load_config(*filenames: str) -> dict[str, Any]: ...
|
|
8
|
+
def load_config(config_filename: str) -> dict[str, Any]: ...
|
|
9
|
+
def raw_config_parse(config_filename: str, parse_subsections: bool = ...) -> dict[str, Any]: ...
|
|
10
|
+
def build_profile_map(parsed_ini_config: dict[str, Any]) -> dict[str, Any]: ...
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Copyright 2024 Vlad Emelianov
|
|
3
|
+
"""
|
|
4
|
+
|
|
1
5
|
from logging import Logger
|
|
2
|
-
from typing import Any,
|
|
6
|
+
from typing import Any, Mapping, TypeVar
|
|
3
7
|
|
|
4
8
|
from botocore.utils import IMDSRegionProvider
|
|
5
9
|
|
|
6
|
-
BOTOCORE_DEFAUT_SESSION_VARIABLES:
|
|
7
|
-
DEFAULT_S3_CONFIG_VARS:
|
|
8
|
-
DEFAULT_PROXIES_CONFIG_VARS:
|
|
10
|
+
BOTOCORE_DEFAUT_SESSION_VARIABLES: dict[str, tuple[Any, ...]]
|
|
11
|
+
DEFAULT_S3_CONFIG_VARS: dict[str, tuple[Any, ...]]
|
|
12
|
+
DEFAULT_PROXIES_CONFIG_VARS: dict[str, tuple[Any, ...]]
|
|
9
13
|
|
|
10
14
|
logger: Logger = ...
|
|
11
15
|
|
|
@@ -15,26 +19,26 @@ def create_botocore_default_config_mapping(session: Any) -> Any: ...
|
|
|
15
19
|
|
|
16
20
|
class DefaultConfigResolver:
|
|
17
21
|
def __init__(self, default_config_data: Mapping[str, Any]) -> None: ...
|
|
18
|
-
def get_default_modes(self) ->
|
|
22
|
+
def get_default_modes(self) -> list[str]: ...
|
|
19
23
|
def get_default_config_values(self, mode: str) -> Any: ...
|
|
20
24
|
|
|
21
25
|
class ConfigChainFactory:
|
|
22
|
-
def __init__(self, session: Any, environ:
|
|
26
|
+
def __init__(self, session: Any, environ: Any | None = ...) -> None: ...
|
|
23
27
|
def create_config_chain(
|
|
24
28
|
self,
|
|
25
|
-
instance_name:
|
|
26
|
-
env_var_names:
|
|
27
|
-
config_property_names:
|
|
28
|
-
default:
|
|
29
|
-
conversion_func:
|
|
29
|
+
instance_name: Any | None = ...,
|
|
30
|
+
env_var_names: Any | None = ...,
|
|
31
|
+
config_property_names: Any | None = ...,
|
|
32
|
+
default: Any | None = ...,
|
|
33
|
+
conversion_func: Any | None = ...,
|
|
30
34
|
) -> Any: ...
|
|
31
35
|
|
|
32
36
|
class ConfigValueStore:
|
|
33
|
-
def __init__(self, mapping:
|
|
34
|
-
def __deepcopy__(self: _R, memo:
|
|
37
|
+
def __init__(self, mapping: Any | None = ...) -> None: ...
|
|
38
|
+
def __deepcopy__(self: _R, memo: dict[str, Any]) -> _R: ...
|
|
35
39
|
def __copy__(self: _R) -> _R: ...
|
|
36
40
|
def get_config_variable(self, logical_name: str) -> Any: ...
|
|
37
|
-
def get_config_provider(self, logical_name: str) ->
|
|
41
|
+
def get_config_provider(self, logical_name: str) -> BaseProvider: ...
|
|
38
42
|
def set_config_variable(self, logical_name: str, value: Any) -> None: ...
|
|
39
43
|
def clear_config_variable(self, logical_name: str) -> None: ...
|
|
40
44
|
def set_config_provider(self, logical_name: str, provider: Any) -> None: ...
|
|
@@ -54,39 +58,37 @@ class BaseProvider:
|
|
|
54
58
|
def provide(self) -> None: ...
|
|
55
59
|
|
|
56
60
|
class ChainProvider(BaseProvider):
|
|
57
|
-
def __init__(
|
|
58
|
-
|
|
59
|
-
) -> None: ...
|
|
60
|
-
def __deepcopy__(self: _R, memo: Dict[str, Any]) -> _R: ...
|
|
61
|
+
def __init__(self, providers: Any | None = ..., conversion_func: Any | None = ...) -> None: ...
|
|
62
|
+
def __deepcopy__(self: _R, memo: dict[str, Any]) -> _R: ...
|
|
61
63
|
def provide(self) -> Any: ...
|
|
62
64
|
def set_default_provider(self, default_provider: BaseProvider) -> None: ...
|
|
63
65
|
|
|
64
66
|
class InstanceVarProvider(BaseProvider):
|
|
65
67
|
def __init__(self, instance_var: Any, session: Any) -> None: ...
|
|
66
|
-
def __deepcopy__(self: _R, memo:
|
|
68
|
+
def __deepcopy__(self: _R, memo: dict[str, Any]) -> _R: ...
|
|
67
69
|
def provide(self) -> Any: ...
|
|
68
70
|
|
|
69
71
|
class ScopedConfigProvider(BaseProvider):
|
|
70
72
|
def __init__(self, config_var_name: Any, session: Any) -> None: ...
|
|
71
|
-
def __deepcopy__(self: _R, memo:
|
|
73
|
+
def __deepcopy__(self: _R, memo: dict[str, Any]) -> _R: ...
|
|
72
74
|
def provide(self) -> Any: ...
|
|
73
75
|
|
|
74
76
|
class EnvironmentProvider(BaseProvider):
|
|
75
77
|
def __init__(self, name: Any, env: Any) -> None: ...
|
|
76
|
-
def __deepcopy__(self: _R, memo:
|
|
78
|
+
def __deepcopy__(self: _R, memo: dict[str, Any]) -> _R: ...
|
|
77
79
|
def provide(self) -> Any: ...
|
|
78
80
|
|
|
79
81
|
class SectionConfigProvider(BaseProvider):
|
|
80
82
|
def __init__(
|
|
81
|
-
self, section_name: Any, session: Any, override_providers:
|
|
83
|
+
self, section_name: Any, session: Any, override_providers: Any | None = ...
|
|
82
84
|
) -> None: ...
|
|
83
|
-
def __deepcopy__(self: _R, memo:
|
|
85
|
+
def __deepcopy__(self: _R, memo: dict[str, Any]) -> _R: ...
|
|
84
86
|
def provide(self) -> Any: ...
|
|
85
87
|
def set_default_provider(self, key: str, default_provider: BaseProvider) -> None: ...
|
|
86
88
|
|
|
87
89
|
class ConstantProvider(BaseProvider):
|
|
88
90
|
def __init__(self, value: Any) -> None: ...
|
|
89
|
-
def __deepcopy__(self: _R, memo:
|
|
91
|
+
def __deepcopy__(self: _R, memo: dict[str, Any]) -> _R: ...
|
|
90
92
|
def provide(self) -> Any: ...
|
|
91
93
|
|
|
92
94
|
class ConfiguredEndpointProvider(BaseProvider):
|
|
@@ -95,6 +97,6 @@ class ConfiguredEndpointProvider(BaseProvider):
|
|
|
95
97
|
full_config: Mapping[str, Any],
|
|
96
98
|
scoped_config: Mapping[str, Any],
|
|
97
99
|
client_name: str,
|
|
98
|
-
environ:
|
|
100
|
+
environ: Mapping[str, str] | None = ...,
|
|
99
101
|
) -> None: ...
|
|
100
102
|
def provide(self) -> Any: ...
|
botocore-stubs/credentials.pyi
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Copyright 2024 Vlad Emelianov
|
|
3
|
+
"""
|
|
4
|
+
|
|
1
5
|
import datetime
|
|
2
6
|
from logging import Logger
|
|
3
|
-
from typing import Any, Callable,
|
|
7
|
+
from typing import Any, Callable, Mapping, NamedTuple, TypeVar
|
|
4
8
|
|
|
5
9
|
from botocore.client import BaseClient
|
|
6
10
|
from botocore.compat import compat_shell_split as compat_shell_split
|
|
@@ -34,21 +38,21 @@ class ReadOnlyCredentials(NamedTuple):
|
|
|
34
38
|
|
|
35
39
|
def create_credential_resolver(
|
|
36
40
|
session: Session,
|
|
37
|
-
cache:
|
|
38
|
-
region_name:
|
|
41
|
+
cache: dict[str, Any] | None = ...,
|
|
42
|
+
region_name: str | None = ...,
|
|
39
43
|
) -> CredentialResolver: ...
|
|
40
44
|
|
|
41
45
|
class ProfileProviderBuilder:
|
|
42
46
|
def __init__(
|
|
43
47
|
self,
|
|
44
48
|
session: Session,
|
|
45
|
-
cache:
|
|
46
|
-
region_name:
|
|
47
|
-
sso_token_cache:
|
|
49
|
+
cache: dict[str, Any] | None = ...,
|
|
50
|
+
region_name: str | None = ...,
|
|
51
|
+
sso_token_cache: dict[str, Any] | None = ...,
|
|
48
52
|
) -> None: ...
|
|
49
53
|
def providers(
|
|
50
54
|
self, profile_name: str, disable_env_vars: bool = ...
|
|
51
|
-
) ->
|
|
55
|
+
) -> list[CredentialProvider]: ...
|
|
52
56
|
|
|
53
57
|
def get_credentials(session: Session) -> Any: ...
|
|
54
58
|
def create_assume_role_refresher(client: BaseClient, params: Any) -> Any: ...
|
|
@@ -59,12 +63,12 @@ class Credentials:
|
|
|
59
63
|
self,
|
|
60
64
|
access_key: str,
|
|
61
65
|
secret_key: str,
|
|
62
|
-
token:
|
|
63
|
-
method:
|
|
66
|
+
token: str | None = ...,
|
|
67
|
+
method: str | None = ...,
|
|
64
68
|
) -> None:
|
|
65
69
|
self.access_key: str = ...
|
|
66
70
|
self.secret_key: str = ...
|
|
67
|
-
self.token:
|
|
71
|
+
self.token: str | None = ...
|
|
68
72
|
self.method: str = ...
|
|
69
73
|
|
|
70
74
|
def get_frozen_credentials(self) -> ReadOnlyCredentials: ...
|
|
@@ -79,18 +83,18 @@ class RefreshableCredentials(Credentials):
|
|
|
79
83
|
expiry_time: datetime.datetime,
|
|
80
84
|
refresh_using: Callable[[], Any],
|
|
81
85
|
method: str,
|
|
82
|
-
time_fetcher:
|
|
83
|
-
advisory_timeout:
|
|
84
|
-
mandatory_timeout:
|
|
86
|
+
time_fetcher: Callable[[], datetime.datetime] | None = ...,
|
|
87
|
+
advisory_timeout: int | None = ...,
|
|
88
|
+
mandatory_timeout: int | None = ...,
|
|
85
89
|
) -> None: ...
|
|
86
90
|
@classmethod
|
|
87
91
|
def create_from_metadata(
|
|
88
|
-
cls:
|
|
89
|
-
metadata:
|
|
92
|
+
cls: type[_R],
|
|
93
|
+
metadata: dict[str, Any],
|
|
90
94
|
refresh_using: Callable[[], Any],
|
|
91
95
|
method: Any,
|
|
92
|
-
advisory_timeout:
|
|
93
|
-
mandatory_timeout:
|
|
96
|
+
advisory_timeout: int | None = ...,
|
|
97
|
+
mandatory_timeout: int | None = ...,
|
|
94
98
|
) -> _R: ...
|
|
95
99
|
@property # type: ignore [override]
|
|
96
100
|
def access_key(self) -> str: ... # type: ignore [override]
|
|
@@ -104,7 +108,7 @@ class RefreshableCredentials(Credentials):
|
|
|
104
108
|
def token(self) -> str: ... # type: ignore [override]
|
|
105
109
|
@token.setter
|
|
106
110
|
def token(self, value: str) -> None: ...
|
|
107
|
-
def refresh_needed(self, refresh_in:
|
|
111
|
+
def refresh_needed(self, refresh_in: int | None = ...) -> bool: ...
|
|
108
112
|
def get_frozen_credentials(self) -> ReadOnlyCredentials: ...
|
|
109
113
|
|
|
110
114
|
class DeferredRefreshableCredentials(RefreshableCredentials):
|
|
@@ -112,27 +116,27 @@ class DeferredRefreshableCredentials(RefreshableCredentials):
|
|
|
112
116
|
self,
|
|
113
117
|
refresh_using: Callable[[], Any],
|
|
114
118
|
method: Any,
|
|
115
|
-
time_fetcher:
|
|
119
|
+
time_fetcher: Callable[[], datetime.datetime] | None = ...,
|
|
116
120
|
) -> None:
|
|
117
121
|
self.method: Any = ...
|
|
118
122
|
|
|
119
|
-
def refresh_needed(self, refresh_in:
|
|
123
|
+
def refresh_needed(self, refresh_in: int | None = ...) -> bool: ...
|
|
120
124
|
|
|
121
125
|
class CachedCredentialFetcher:
|
|
122
126
|
DEFAULT_EXPIRY_WINDOW_SECONDS: int = ...
|
|
123
127
|
def __init__(
|
|
124
|
-
self, cache:
|
|
128
|
+
self, cache: Any | None = ..., expiry_window_seconds: int | None = ...
|
|
125
129
|
) -> None: ...
|
|
126
|
-
def fetch_credentials(self) ->
|
|
130
|
+
def fetch_credentials(self) -> dict[str, Any]: ...
|
|
127
131
|
|
|
128
132
|
class BaseAssumeRoleCredentialFetcher(CachedCredentialFetcher):
|
|
129
133
|
def __init__(
|
|
130
134
|
self,
|
|
131
135
|
client_creator: Callable[[], BaseClient],
|
|
132
136
|
role_arn: str,
|
|
133
|
-
extra_args:
|
|
134
|
-
cache:
|
|
135
|
-
expiry_window_seconds:
|
|
137
|
+
extra_args: Any | None = ...,
|
|
138
|
+
cache: Any | None = ...,
|
|
139
|
+
expiry_window_seconds: Any | None = ...,
|
|
136
140
|
) -> None: ...
|
|
137
141
|
|
|
138
142
|
class AssumeRoleCredentialFetcher(BaseAssumeRoleCredentialFetcher):
|
|
@@ -141,10 +145,10 @@ class AssumeRoleCredentialFetcher(BaseAssumeRoleCredentialFetcher):
|
|
|
141
145
|
client_creator: Callable[[], BaseClient],
|
|
142
146
|
source_credentials: Any,
|
|
143
147
|
role_arn: str,
|
|
144
|
-
extra_args:
|
|
145
|
-
mfa_prompter:
|
|
146
|
-
cache:
|
|
147
|
-
expiry_window_seconds:
|
|
148
|
+
extra_args: dict[str, Any] | None = ...,
|
|
149
|
+
mfa_prompter: Callable[..., Any] | None = ...,
|
|
150
|
+
cache: dict[str, Any] | None = ...,
|
|
151
|
+
expiry_window_seconds: int | None = ...,
|
|
148
152
|
) -> None: ...
|
|
149
153
|
|
|
150
154
|
class AssumeRoleWithWebIdentityCredentialFetcher(BaseAssumeRoleCredentialFetcher):
|
|
@@ -153,15 +157,15 @@ class AssumeRoleWithWebIdentityCredentialFetcher(BaseAssumeRoleCredentialFetcher
|
|
|
153
157
|
client_creator: Callable[[], BaseClient],
|
|
154
158
|
web_identity_token_loader: Any,
|
|
155
159
|
role_arn: str,
|
|
156
|
-
extra_args:
|
|
157
|
-
cache:
|
|
158
|
-
expiry_window_seconds:
|
|
160
|
+
extra_args: Any | None = ...,
|
|
161
|
+
cache: dict[str, Any] | None = ...,
|
|
162
|
+
expiry_window_seconds: int | None = ...,
|
|
159
163
|
) -> None: ...
|
|
160
164
|
|
|
161
165
|
class CredentialProvider:
|
|
162
|
-
METHOD:
|
|
163
|
-
CANONICAL_NAME:
|
|
164
|
-
def __init__(self, session:
|
|
166
|
+
METHOD: str | None = ...
|
|
167
|
+
CANONICAL_NAME: str | None = ...
|
|
168
|
+
def __init__(self, session: Session | None = ...) -> None:
|
|
165
169
|
self.session: Session = ...
|
|
166
170
|
|
|
167
171
|
def load(self) -> Any: ...
|
|
@@ -169,13 +173,13 @@ class CredentialProvider:
|
|
|
169
173
|
class ProcessProvider(CredentialProvider):
|
|
170
174
|
METHOD: str = ...
|
|
171
175
|
def __init__(self, profile_name: str, load_config: Any, popen: Any = ...) -> None: ...
|
|
172
|
-
def load(self) ->
|
|
176
|
+
def load(self) -> Credentials | None: ...
|
|
173
177
|
|
|
174
178
|
class InstanceMetadataProvider(CredentialProvider):
|
|
175
179
|
METHOD: str = ...
|
|
176
180
|
CANONICAL_NAME: str = ...
|
|
177
181
|
def __init__(self, iam_role_fetcher: Any) -> None: ...
|
|
178
|
-
def load(self) ->
|
|
182
|
+
def load(self) -> Credentials | None: ...
|
|
179
183
|
|
|
180
184
|
class EnvProvider(CredentialProvider):
|
|
181
185
|
METHOD: str = ...
|
|
@@ -185,11 +189,11 @@ class EnvProvider(CredentialProvider):
|
|
|
185
189
|
TOKENS: Any = ...
|
|
186
190
|
EXPIRY_TIME: str = ...
|
|
187
191
|
def __init__(
|
|
188
|
-
self, environ:
|
|
192
|
+
self, environ: Mapping[str, Any] | None = ..., mapping: Mapping[str, Any] | None = ...
|
|
189
193
|
) -> None:
|
|
190
194
|
self.environ: Mapping[str, Any] = ...
|
|
191
195
|
|
|
192
|
-
def load(self) ->
|
|
196
|
+
def load(self) -> Credentials | None: ...
|
|
193
197
|
|
|
194
198
|
class OriginalEC2Provider(CredentialProvider):
|
|
195
199
|
METHOD: str = ...
|
|
@@ -197,8 +201,8 @@ class OriginalEC2Provider(CredentialProvider):
|
|
|
197
201
|
CRED_FILE_ENV: str = ...
|
|
198
202
|
ACCESS_KEY: str = ...
|
|
199
203
|
SECRET_KEY: str = ...
|
|
200
|
-
def __init__(self, environ:
|
|
201
|
-
def load(self) ->
|
|
204
|
+
def __init__(self, environ: Any | None = ..., parser: Any | None = ...) -> None: ...
|
|
205
|
+
def load(self) -> Credentials | None: ...
|
|
202
206
|
|
|
203
207
|
class SharedCredentialProvider(CredentialProvider):
|
|
204
208
|
METHOD: str = ...
|
|
@@ -209,24 +213,24 @@ class SharedCredentialProvider(CredentialProvider):
|
|
|
209
213
|
def __init__(
|
|
210
214
|
self,
|
|
211
215
|
creds_filename: str,
|
|
212
|
-
profile_name:
|
|
213
|
-
ini_parser:
|
|
216
|
+
profile_name: str | None = ...,
|
|
217
|
+
ini_parser: Any | None = ...,
|
|
214
218
|
) -> None: ...
|
|
215
|
-
def load(self) ->
|
|
219
|
+
def load(self) -> Credentials | None: ...
|
|
216
220
|
|
|
217
221
|
class ConfigProvider(CredentialProvider):
|
|
218
222
|
METHOD: str = ...
|
|
219
223
|
CANONICAL_NAME: str = ...
|
|
220
224
|
ACCESS_KEY: str = ...
|
|
221
225
|
SECRET_KEY: str = ...
|
|
222
|
-
TOKENS:
|
|
226
|
+
TOKENS: list[str] = ...
|
|
223
227
|
def __init__(
|
|
224
228
|
self,
|
|
225
229
|
config_filename: str,
|
|
226
230
|
profile_name: str,
|
|
227
|
-
config_parser:
|
|
231
|
+
config_parser: Any | None = ...,
|
|
228
232
|
) -> None: ...
|
|
229
|
-
def load(self) ->
|
|
233
|
+
def load(self) -> Credentials | None: ...
|
|
230
234
|
|
|
231
235
|
class BotoProvider(CredentialProvider):
|
|
232
236
|
METHOD: str = ...
|
|
@@ -235,8 +239,8 @@ class BotoProvider(CredentialProvider):
|
|
|
235
239
|
DEFAULT_CONFIG_FILENAMES: Any = ...
|
|
236
240
|
ACCESS_KEY: str = ...
|
|
237
241
|
SECRET_KEY: str = ...
|
|
238
|
-
def __init__(self, environ:
|
|
239
|
-
def load(self) ->
|
|
242
|
+
def __init__(self, environ: Any | None = ..., ini_parser: Any | None = ...) -> None: ...
|
|
243
|
+
def load(self) -> Credentials | None: ...
|
|
240
244
|
|
|
241
245
|
class AssumeRoleProvider(CredentialProvider):
|
|
242
246
|
METHOD: str = ...
|
|
@@ -249,13 +253,13 @@ class AssumeRoleProvider(CredentialProvider):
|
|
|
249
253
|
self,
|
|
250
254
|
load_config: Callable[[], Mapping[str, Any]],
|
|
251
255
|
client_creator: Callable[..., Any],
|
|
252
|
-
cache:
|
|
256
|
+
cache: dict[str, Any],
|
|
253
257
|
profile_name: str,
|
|
254
258
|
prompter: Callable[..., Any] = ...,
|
|
255
|
-
credential_sourcer:
|
|
256
|
-
profile_provider_builder:
|
|
259
|
+
credential_sourcer: CanonicalNameCredentialSourcer | None = ...,
|
|
260
|
+
profile_provider_builder: Any | None = ...,
|
|
257
261
|
) -> None: ...
|
|
258
|
-
def load(self) ->
|
|
262
|
+
def load(self) -> DeferredRefreshableCredentials | None: ...
|
|
259
263
|
|
|
260
264
|
class AssumeRoleWithWebIdentityProvider(CredentialProvider):
|
|
261
265
|
METHOD: str = ...
|
|
@@ -266,14 +270,14 @@ class AssumeRoleWithWebIdentityProvider(CredentialProvider):
|
|
|
266
270
|
load_config: Any,
|
|
267
271
|
client_creator: Any,
|
|
268
272
|
profile_name: str,
|
|
269
|
-
cache:
|
|
273
|
+
cache: Any | None = ...,
|
|
270
274
|
disable_env_vars: bool = ...,
|
|
271
|
-
token_loader_cls:
|
|
275
|
+
token_loader_cls: Any | None = ...,
|
|
272
276
|
) -> None: ...
|
|
273
|
-
def load(self) ->
|
|
277
|
+
def load(self) -> DeferredRefreshableCredentials | None: ...
|
|
274
278
|
|
|
275
279
|
class CanonicalNameCredentialSourcer:
|
|
276
|
-
def __init__(self, providers:
|
|
280
|
+
def __init__(self, providers: list[CredentialProvider]) -> None: ...
|
|
277
281
|
def is_supported(self, source_name: str) -> bool: ...
|
|
278
282
|
def source_credentials(self, source_name: str) -> Credentials: ...
|
|
279
283
|
|
|
@@ -285,18 +289,18 @@ class ContainerProvider(CredentialProvider):
|
|
|
285
289
|
ENV_VAR_AUTH_TOKEN: str = ...
|
|
286
290
|
ENV_VAR_AUTH_TOKEN_FILE: str = ...
|
|
287
291
|
def __init__(
|
|
288
|
-
self, environ:
|
|
292
|
+
self, environ: Mapping[str, str] | None = ..., fetcher: Any | None = ...
|
|
289
293
|
) -> None: ...
|
|
290
294
|
def load(self) -> RefreshableCredentials: ...
|
|
291
295
|
|
|
292
296
|
class CredentialResolver:
|
|
293
|
-
providers:
|
|
294
|
-
def __init__(self, providers:
|
|
297
|
+
providers: list[CredentialProvider]
|
|
298
|
+
def __init__(self, providers: list[CredentialProvider]) -> None: ...
|
|
295
299
|
def insert_before(self, name: str, credential_provider: CredentialProvider) -> None: ...
|
|
296
300
|
def insert_after(self, name: str, credential_provider: CredentialProvider) -> None: ...
|
|
297
301
|
def remove(self, name: str) -> None: ...
|
|
298
302
|
def get_provider(self, name: str) -> CredentialProvider: ...
|
|
299
|
-
def load_credentials(self) ->
|
|
303
|
+
def load_credentials(self) -> Credentials | None: ...
|
|
300
304
|
|
|
301
305
|
class SSOCredentialFetcher(CachedCredentialFetcher):
|
|
302
306
|
def __init__(
|
|
@@ -306,11 +310,11 @@ class SSOCredentialFetcher(CachedCredentialFetcher):
|
|
|
306
310
|
role_name: Any,
|
|
307
311
|
account_id: Any,
|
|
308
312
|
client_creator: Any,
|
|
309
|
-
token_loader:
|
|
310
|
-
cache:
|
|
311
|
-
expiry_window_seconds:
|
|
312
|
-
token_provider:
|
|
313
|
-
sso_session_name:
|
|
313
|
+
token_loader: Any | None = ...,
|
|
314
|
+
cache: Any | None = ...,
|
|
315
|
+
expiry_window_seconds: Any | None = ...,
|
|
316
|
+
token_provider: SSOTokenProvider | None = ...,
|
|
317
|
+
sso_session_name: str | None = ...,
|
|
314
318
|
) -> None: ...
|
|
315
319
|
|
|
316
320
|
class SSOProvider(CredentialProvider):
|
|
@@ -321,8 +325,8 @@ class SSOProvider(CredentialProvider):
|
|
|
321
325
|
load_config: Any,
|
|
322
326
|
client_creator: Any,
|
|
323
327
|
profile_name: str,
|
|
324
|
-
cache:
|
|
325
|
-
token_cache:
|
|
326
|
-
token_provider:
|
|
328
|
+
cache: Any | None = ...,
|
|
329
|
+
token_cache: Any | None = ...,
|
|
330
|
+
token_provider: SSOTokenProvider | None = ...,
|
|
327
331
|
) -> None: ...
|
|
328
332
|
def load(self) -> DeferredRefreshableCredentials: ...
|
botocore-stubs/crt/__init__.pyi
CHANGED
botocore-stubs/crt/auth.pyi
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
"""
|
|
2
|
+
Copyright 2024 Vlad Emelianov
|
|
3
|
+
"""
|
|
2
4
|
|
|
3
5
|
from awscrt.auth import AwsCredentials
|
|
4
6
|
from botocore.auth import SIGNED_HEADERS_BLACKLIST as SIGNED_HEADERS_BLACKLIST
|
|
@@ -68,4 +70,4 @@ class CrtSigV4QueryAuth(CrtSigV4Auth):
|
|
|
68
70
|
|
|
69
71
|
class CrtS3SigV4QueryAuth(CrtSigV4QueryAuth): ...
|
|
70
72
|
|
|
71
|
-
CRT_AUTH_TYPE_MAPS:
|
|
73
|
+
CRT_AUTH_TYPE_MAPS: dict[str, type[BaseSigner]] = ...
|
botocore-stubs/discovery.pyi
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Copyright 2024 Vlad Emelianov
|
|
3
|
+
"""
|
|
4
|
+
|
|
1
5
|
from logging import Logger
|
|
2
|
-
from typing import Any, Callable
|
|
6
|
+
from typing import Any, Callable
|
|
3
7
|
|
|
4
8
|
from botocore.client import BaseClient
|
|
5
9
|
from botocore.exceptions import BotoCoreError as BotoCoreError
|
|
6
10
|
from botocore.exceptions import ConnectionError as ConnectionError
|
|
7
11
|
from botocore.exceptions import HTTPClientError as HTTPClientError
|
|
8
|
-
from botocore.model import OperationModel
|
|
12
|
+
from botocore.model import OperationModel, ServiceModel
|
|
9
13
|
from botocore.model import OperationNotFoundError as OperationNotFoundError
|
|
10
|
-
from botocore.model import ServiceModel
|
|
11
14
|
from botocore.utils import CachedProperty as CachedProperty
|
|
12
15
|
|
|
13
16
|
logger: Logger = ...
|
|
@@ -27,17 +30,17 @@ class EndpointDiscoveryModel:
|
|
|
27
30
|
@CachedProperty
|
|
28
31
|
def discovery_operation_name(self) -> str: ...
|
|
29
32
|
@CachedProperty
|
|
30
|
-
def discovery_operation_keys(self) ->
|
|
33
|
+
def discovery_operation_keys(self) -> list[str]: ...
|
|
31
34
|
def discovery_required_for(self, operation_name: str) -> bool: ...
|
|
32
|
-
def discovery_operation_kwargs(self, **kwargs: Any) ->
|
|
33
|
-
def gather_identifiers(self, operation: OperationModel, params: Any) ->
|
|
35
|
+
def discovery_operation_kwargs(self, **kwargs: Any) -> dict[str, Any]: ...
|
|
36
|
+
def gather_identifiers(self, operation: OperationModel, params: Any) -> dict[str, Any]: ...
|
|
34
37
|
|
|
35
38
|
class EndpointDiscoveryManager:
|
|
36
39
|
def __init__(
|
|
37
40
|
self,
|
|
38
41
|
client: BaseClient,
|
|
39
|
-
cache:
|
|
40
|
-
current_time:
|
|
42
|
+
cache: Any | None = ...,
|
|
43
|
+
current_time: Callable[[], float] | None = ...,
|
|
41
44
|
always_discover: bool = ...,
|
|
42
45
|
) -> None: ...
|
|
43
46
|
def gather_identifiers(self, operation: OperationModel, params: Any) -> Any: ...
|
botocore-stubs/docs/__init__.pyi
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Copyright 2024 Vlad Emelianov
|
|
3
|
+
"""
|
|
4
|
+
|
|
1
5
|
from html.parser import HTMLParser
|
|
2
|
-
from typing import Any
|
|
6
|
+
from typing import Any
|
|
3
7
|
|
|
4
8
|
from botocore.docs.bcdoc.restdoc import ReSTDocument
|
|
5
9
|
|
|
6
|
-
PRIORITY_PARENT_TAGS:
|
|
7
|
-
OMIT_NESTED_TAGS:
|
|
8
|
-
OMIT_SELF_TAGS:
|
|
9
|
-
HTML_BLOCK_DISPLAY_TAGS:
|
|
10
|
+
PRIORITY_PARENT_TAGS: tuple[str, ...] = ...
|
|
11
|
+
OMIT_NESTED_TAGS: tuple[str, ...] = ...
|
|
12
|
+
OMIT_SELF_TAGS: tuple[str, ...] = ...
|
|
13
|
+
HTML_BLOCK_DISPLAY_TAGS: tuple[str, ...] = ...
|
|
10
14
|
|
|
11
15
|
class DocStringParser(HTMLParser):
|
|
12
16
|
def __init__(self, doc: Any) -> None: ...
|
|
@@ -32,8 +36,8 @@ class StemNode(Node):
|
|
|
32
36
|
def add_child(self, child: Any) -> None: ...
|
|
33
37
|
def write(self, doc: ReSTDocument) -> None: ...
|
|
34
38
|
def is_whitespace(self) -> bool: ...
|
|
35
|
-
def startswith_whitespace(self) ->
|
|
36
|
-
def endswith_whitespace(self) ->
|
|
39
|
+
def startswith_whitespace(self) -> list[Any]: ...
|
|
40
|
+
def endswith_whitespace(self) -> list[Any]: ...
|
|
37
41
|
def lstrip(self) -> None: ...
|
|
38
42
|
def rstrip(self) -> None: ...
|
|
39
43
|
def collapse_whitespace(self) -> None: ...
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Copyright 2024 Vlad Emelianov
|
|
3
|
+
"""
|
|
4
|
+
|
|
1
5
|
from logging import Logger
|
|
2
|
-
from typing import Any
|
|
6
|
+
from typing import Any
|
|
3
7
|
|
|
4
8
|
DEFAULT_AWS_DOCS_LINK: str = ...
|
|
5
9
|
DOCUMENTATION_LINK_REGEX: Any = ...
|
|
6
10
|
LARGE_SECTION_MESSAGE: str = ...
|
|
7
11
|
LOG: Logger = ...
|
|
8
|
-
SECTION_LINE_LIMIT_CONFIG:
|
|
9
|
-
SECTION_METHOD_PATH_DEPTH:
|
|
12
|
+
SECTION_LINE_LIMIT_CONFIG: dict[str, Any] = ...
|
|
13
|
+
SECTION_METHOD_PATH_DEPTH: dict[str, int] = ...
|
|
10
14
|
|
|
11
15
|
class ReSTDocument:
|
|
12
16
|
def __init__(self, target: str = ...) -> None: ...
|
|
@@ -25,7 +29,7 @@ class DocumentStructure(ReSTDocument):
|
|
|
25
29
|
def __init__(
|
|
26
30
|
self,
|
|
27
31
|
name: str,
|
|
28
|
-
section_names:
|
|
32
|
+
section_names: list[str] | None = ...,
|
|
29
33
|
target: Any = ...,
|
|
30
34
|
context: Any = ...,
|
|
31
35
|
) -> None: ...
|
|
@@ -38,12 +42,12 @@ class DocumentStructure(ReSTDocument):
|
|
|
38
42
|
@property
|
|
39
43
|
def available_sections(self) -> list[Any]: ...
|
|
40
44
|
@property
|
|
41
|
-
def context(self) ->
|
|
45
|
+
def context(self) -> dict[str, Any]: ...
|
|
42
46
|
def add_new_section(self, name: str, context: Any = ...) -> Any: ...
|
|
43
47
|
def get_section(self, name: str) -> Any: ...
|
|
44
48
|
def has_section(self, name: str) -> bool: ...
|
|
45
49
|
def delete_section(self, name: str) -> None: ...
|
|
46
|
-
def flush_structure(self, docs_link:
|
|
50
|
+
def flush_structure(self, docs_link: str | None = ...) -> bytes: ...
|
|
47
51
|
def getvalue(self) -> bytes: ...
|
|
48
52
|
def remove_all_sections(self) -> None: ...
|
|
49
53
|
def clear_text(self) -> None: ...
|