botocore-stubs 1.35.86__py3-none-any.whl → 1.35.88__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/awsrequest.pyi +3 -3
- botocore-stubs/compat.pyi +7 -5
- botocore-stubs/configprovider.pyi +21 -13
- botocore-stubs/credentials.pyi +38 -32
- botocore-stubs/discovery.pyi +19 -8
- botocore-stubs/docs/bcdoc/restdoc.pyi +15 -12
- botocore-stubs/docs/example.pyi +12 -9
- botocore-stubs/docs/method.pyi +5 -4
- botocore-stubs/docs/paginator.pyi +3 -2
- botocore-stubs/docs/params.pyi +11 -8
- botocore-stubs/docs/service.pyi +8 -9
- botocore-stubs/docs/shape.pyi +4 -3
- botocore-stubs/docs/sharedexample.pyi +13 -5
- botocore-stubs/docs/utils.pyi +7 -8
- botocore-stubs/docs/waiter.pyi +3 -4
- botocore-stubs/endpoint.pyi +14 -10
- botocore-stubs/handlers.pyi +14 -10
- botocore-stubs/hooks.pyi +15 -13
- botocore-stubs/monitoring.pyi +4 -2
- botocore-stubs/regions.pyi +2 -2
- botocore-stubs/retries/base.pyi +3 -3
- botocore-stubs/retries/bucket.pyi +8 -10
- botocore-stubs/retries/quota.pyi +5 -5
- botocore-stubs/retries/special.pyi +3 -2
- botocore-stubs/retries/standard.pyi +14 -12
- botocore-stubs/serialize.pyi +1 -1
- {botocore_stubs-1.35.86.dist-info → botocore_stubs-1.35.88.dist-info}/METADATA +1 -1
- {botocore_stubs-1.35.86.dist-info → botocore_stubs-1.35.88.dist-info}/RECORD +31 -31
- {botocore_stubs-1.35.86.dist-info → botocore_stubs-1.35.88.dist-info}/LICENSE +0 -0
- {botocore_stubs-1.35.86.dist-info → botocore_stubs-1.35.88.dist-info}/WHEEL +0 -0
- {botocore_stubs-1.35.86.dist-info → botocore_stubs-1.35.88.dist-info}/top_level.txt +0 -0
botocore-stubs/docs/shape.pyi
CHANGED
|
@@ -4,8 +4,9 @@ Type annotations for botocore.docs.shape module.
|
|
|
4
4
|
Copyright 2024 Vlad Emelianov
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
|
-
from typing import Any
|
|
7
|
+
from typing import Any, Mapping
|
|
8
8
|
|
|
9
|
+
from botocore.docs.bcdoc.restdoc import DocumentStructure
|
|
9
10
|
from botocore.hooks import BaseEventHooks
|
|
10
11
|
from botocore.model import Shape
|
|
11
12
|
|
|
@@ -16,11 +17,11 @@ class ShapeDocumenter:
|
|
|
16
17
|
service_name: str,
|
|
17
18
|
operation_name: str,
|
|
18
19
|
event_emitter: BaseEventHooks,
|
|
19
|
-
context: Any = ...,
|
|
20
|
+
context: Mapping[str, Any] | None = ...,
|
|
20
21
|
) -> None: ...
|
|
21
22
|
def traverse_and_document_shape(
|
|
22
23
|
self,
|
|
23
|
-
section:
|
|
24
|
+
section: DocumentStructure,
|
|
24
25
|
shape: Shape,
|
|
25
26
|
history: Any,
|
|
26
27
|
include: Any = ...,
|
|
@@ -4,17 +4,25 @@ Type annotations for botocore.docs.sharedexample module.
|
|
|
4
4
|
Copyright 2024 Vlad Emelianov
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
|
-
from typing import Any
|
|
7
|
+
from typing import Any, Iterable, Mapping
|
|
8
8
|
|
|
9
|
+
from botocore.docs.bcdoc.restdoc import DocumentStructure
|
|
9
10
|
from botocore.model import OperationModel, Shape
|
|
10
11
|
|
|
11
12
|
class SharedExampleDocumenter:
|
|
12
13
|
def document_shared_example(
|
|
13
|
-
self, example: Any, prefix: str, section:
|
|
14
|
+
self, example: Any, prefix: str, section: DocumentStructure, operation_model: OperationModel
|
|
15
|
+
) -> None: ...
|
|
16
|
+
def document_input(
|
|
17
|
+
self, section: DocumentStructure, example: Mapping[str, Any], prefix: str, shape: Shape
|
|
18
|
+
) -> None: ...
|
|
19
|
+
def document_output(
|
|
20
|
+
self, section: DocumentStructure, example: Mapping[str, Any], shape: Shape
|
|
14
21
|
) -> None: ...
|
|
15
|
-
def document_input(self, section: Any, example: Any, prefix: str, shape: Shape) -> None: ...
|
|
16
|
-
def document_output(self, section: Any, example: Any, shape: Shape) -> None: ...
|
|
17
22
|
|
|
18
23
|
def document_shared_examples(
|
|
19
|
-
section:
|
|
24
|
+
section: DocumentStructure,
|
|
25
|
+
operation_model: OperationModel,
|
|
26
|
+
example_prefix: str,
|
|
27
|
+
shared_examples: Iterable[Mapping[str, Any]],
|
|
20
28
|
) -> None: ...
|
botocore-stubs/docs/utils.pyi
CHANGED
|
@@ -4,8 +4,9 @@ Type annotations for botocore.docs.utils module.
|
|
|
4
4
|
Copyright 2024 Vlad Emelianov
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
|
-
from typing import Any
|
|
7
|
+
from typing import Any
|
|
8
8
|
|
|
9
|
+
from botocore.docs.bcdoc.restdoc import DocumentStructure
|
|
9
10
|
from botocore.model import ServiceModel
|
|
10
11
|
|
|
11
12
|
def py_type_name(type_name: str) -> str: ...
|
|
@@ -28,21 +29,19 @@ class DocumentedShape(_DocumentedShape):
|
|
|
28
29
|
class AutoPopulatedParam:
|
|
29
30
|
def __init__(self, name: str, param_description: str | None = ...) -> None: ...
|
|
30
31
|
def document_auto_populated_param(
|
|
31
|
-
self, event_name: str, section:
|
|
32
|
+
self, event_name: str, section: DocumentStructure, **kwargs: Any
|
|
32
33
|
) -> None: ...
|
|
33
34
|
|
|
34
35
|
class HideParamFromOperations:
|
|
35
36
|
def __init__(
|
|
36
37
|
self, service_name: str, parameter_name: str, operation_names: list[str]
|
|
37
38
|
) -> None: ...
|
|
38
|
-
def hide_param(self, event_name: str, section:
|
|
39
|
+
def hide_param(self, event_name: str, section: DocumentStructure, **kwargs: Any) -> None: ...
|
|
39
40
|
|
|
40
41
|
class AppendParamDocumentation:
|
|
41
42
|
def __init__(self, parameter_name: str, doc_string: str) -> None: ...
|
|
42
|
-
def append_documentation(
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
_ESCAPE_CONTROLS_RE: Any = ...
|
|
46
|
-
_CONTROLS_MATCH_HANDLER: Callable[..., str] = ...
|
|
43
|
+
def append_documentation(
|
|
44
|
+
self, event_name: str, section: DocumentStructure, **kwargs: Any
|
|
45
|
+
) -> None: ...
|
|
47
46
|
|
|
48
47
|
def escape_controls(value: str) -> str: ...
|
botocore-stubs/docs/waiter.pyi
CHANGED
|
@@ -4,9 +4,8 @@ Type annotations for botocore.docs.waiter module.
|
|
|
4
4
|
Copyright 2024 Vlad Emelianov
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
|
-
from typing import Any
|
|
8
|
-
|
|
9
7
|
from botocore.client import BaseClient
|
|
8
|
+
from botocore.docs.bcdoc.restdoc import DocumentStructure
|
|
10
9
|
from botocore.hooks import BaseEventHooks
|
|
11
10
|
from botocore.model import ServiceModel
|
|
12
11
|
from botocore.waiter import WaiterModel
|
|
@@ -15,10 +14,10 @@ class WaiterDocumenter:
|
|
|
15
14
|
def __init__(
|
|
16
15
|
self, client: BaseClient, service_waiter_model: WaiterModel, root_docs_path: str
|
|
17
16
|
) -> None: ...
|
|
18
|
-
def document_waiters(self, section:
|
|
17
|
+
def document_waiters(self, section: DocumentStructure) -> None: ...
|
|
19
18
|
|
|
20
19
|
def document_wait_method(
|
|
21
|
-
section:
|
|
20
|
+
section: DocumentStructure,
|
|
22
21
|
waiter_name: str,
|
|
23
22
|
event_emitter: BaseEventHooks,
|
|
24
23
|
service_model: ServiceModel,
|
botocore-stubs/endpoint.pyi
CHANGED
|
@@ -5,8 +5,9 @@ Copyright 2024 Vlad Emelianov
|
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
7
|
from logging import Logger
|
|
8
|
-
from typing import Any, Mapping
|
|
8
|
+
from typing import Any, Mapping, Sequence
|
|
9
9
|
|
|
10
|
+
from botocore.awsrequest import AWSPreparedRequest
|
|
10
11
|
from botocore.awsrequest import create_request_object as create_request_object
|
|
11
12
|
from botocore.exceptions import HTTPClientError as HTTPClientError
|
|
12
13
|
from botocore.history import get_global_history_recorder as get_global_history_recorder
|
|
@@ -14,6 +15,7 @@ from botocore.hooks import BaseEventHooks
|
|
|
14
15
|
from botocore.hooks import first_non_none_response as first_non_none_response
|
|
15
16
|
from botocore.httpsession import URLLib3Session as URLLib3Session
|
|
16
17
|
from botocore.model import OperationModel, ServiceModel
|
|
18
|
+
from botocore.parsers import ResponseParserFactory
|
|
17
19
|
from botocore.response import StreamingBody as StreamingBody
|
|
18
20
|
from botocore.utils import get_environ_proxies as get_environ_proxies
|
|
19
21
|
from botocore.utils import is_valid_endpoint_url as is_valid_endpoint_url
|
|
@@ -39,11 +41,13 @@ class Endpoint:
|
|
|
39
41
|
self.http_session: URLLib3Session
|
|
40
42
|
|
|
41
43
|
def close(self) -> None: ...
|
|
42
|
-
def make_request(
|
|
44
|
+
def make_request(
|
|
45
|
+
self, operation_model: OperationModel, request_dict: Mapping[str, Any]
|
|
46
|
+
) -> Any: ...
|
|
43
47
|
def create_request(
|
|
44
48
|
self, params: Mapping[str, Any], operation_model: OperationModel | None = ...
|
|
45
49
|
) -> Any: ...
|
|
46
|
-
def prepare_request(self, request: Any) ->
|
|
50
|
+
def prepare_request(self, request: Any) -> AWSPreparedRequest: ...
|
|
47
51
|
|
|
48
52
|
class EndpointCreator:
|
|
49
53
|
def __init__(self, event_emitter: BaseEventHooks) -> None: ...
|
|
@@ -52,13 +56,13 @@ class EndpointCreator:
|
|
|
52
56
|
service_model: ServiceModel,
|
|
53
57
|
region_name: str,
|
|
54
58
|
endpoint_url: str,
|
|
55
|
-
verify:
|
|
56
|
-
response_parser_factory:
|
|
59
|
+
verify: bool | None = ...,
|
|
60
|
+
response_parser_factory: ResponseParserFactory | None = ...,
|
|
57
61
|
timeout: float = ...,
|
|
58
|
-
max_pool_connections:
|
|
62
|
+
max_pool_connections: int = ...,
|
|
59
63
|
http_session_cls: type[URLLib3Session] = ...,
|
|
60
|
-
proxies: Any | None = ...,
|
|
61
|
-
socket_options:
|
|
62
|
-
client_cert:
|
|
63
|
-
proxies_config: Any | None = ...,
|
|
64
|
+
proxies: Mapping[str, Any] | None = ...,
|
|
65
|
+
socket_options: Sequence[tuple[int, ...]] | None = ...,
|
|
66
|
+
client_cert: tuple[str, str] | str | None = ...,
|
|
67
|
+
proxies_config: Mapping[str, Any] | None = ...,
|
|
64
68
|
) -> Any: ...
|
botocore-stubs/handlers.pyi
CHANGED
|
@@ -35,8 +35,8 @@ from botocore.utils import switch_host_with_param as switch_host_with_param
|
|
|
35
35
|
|
|
36
36
|
logger: Logger = ...
|
|
37
37
|
|
|
38
|
-
REGISTER_FIRST:
|
|
39
|
-
REGISTER_LAST:
|
|
38
|
+
REGISTER_FIRST: object
|
|
39
|
+
REGISTER_LAST: object
|
|
40
40
|
VALID_BUCKET: Pattern[str]
|
|
41
41
|
VALID_S3_ARN: Pattern[str]
|
|
42
42
|
S3_SIGNING_NAMES: tuple[str, ...]
|
|
@@ -62,9 +62,13 @@ def add_expect_header(model: OperationModel, params: Mapping[str, Any], **kwargs
|
|
|
62
62
|
|
|
63
63
|
class DeprecatedServiceDocumenter:
|
|
64
64
|
def __init__(self, replacement_service_name: str) -> None: ...
|
|
65
|
-
def inject_deprecation_notice(
|
|
65
|
+
def inject_deprecation_notice(
|
|
66
|
+
self, section: DocumentStructure, event_name: str, **kwargs: Any
|
|
67
|
+
) -> None: ...
|
|
66
68
|
|
|
67
|
-
def document_copy_source_form(
|
|
69
|
+
def document_copy_source_form(
|
|
70
|
+
section: DocumentStructure, event_name: str, **kwargs: Any
|
|
71
|
+
) -> None: ...
|
|
68
72
|
def handle_copy_source_param(params: Mapping[str, Any], **kwargs: Any) -> None: ...
|
|
69
73
|
def inject_presigned_url_ec2(
|
|
70
74
|
params: Mapping[str, Any], request_signer: Any, model: OperationModel, **kwargs: Any
|
|
@@ -81,7 +85,7 @@ def parse_get_bucket_location(
|
|
|
81
85
|
def base64_encode_user_data(params: Mapping[str, Any], **kwargs: Any) -> None: ...
|
|
82
86
|
def document_base64_encoding(param: Mapping[str, Any]) -> Any: ...
|
|
83
87
|
def validate_ascii_metadata(params: Mapping[str, Any], **kwargs: Any) -> None: ...
|
|
84
|
-
def fix_route53_ids(params: Mapping[str, Any], model:
|
|
88
|
+
def fix_route53_ids(params: Mapping[str, Any], model: OperationModel, **kwargs: Any) -> None: ...
|
|
85
89
|
def inject_account_id(params: Mapping[str, Any], **kwargs: Any) -> None: ...
|
|
86
90
|
def add_glacier_version(
|
|
87
91
|
model: OperationModel, params: Mapping[str, Any], **kwargs: Any
|
|
@@ -90,7 +94,7 @@ def add_accept_header(model: OperationModel, params: Mapping[str, Any], **kwargs
|
|
|
90
94
|
def add_glacier_checksums(params: Mapping[str, Any], **kwargs: Any) -> None: ...
|
|
91
95
|
def document_glacier_tree_hash_checksum() -> Any: ...
|
|
92
96
|
def document_cloudformation_get_template_return_type(
|
|
93
|
-
section:
|
|
97
|
+
section: DocumentStructure, event_name: str, **kwargs: Any
|
|
94
98
|
) -> None: ...
|
|
95
99
|
def switch_host_machinelearning(request: Any, **kwargs: Any) -> None: ...
|
|
96
100
|
def check_openssl_supports_tls_version_1_2(**kwargs: Any) -> None: ...
|
|
@@ -109,7 +113,7 @@ class ParameterAlias:
|
|
|
109
113
|
self, params: Mapping[str, Any], model: OperationModel, **kwargs: Any
|
|
110
114
|
) -> None: ...
|
|
111
115
|
def alias_parameter_in_documentation(
|
|
112
|
-
self, event_name: str, section:
|
|
116
|
+
self, event_name: str, section: DocumentStructure, **kwargs: Any
|
|
113
117
|
) -> None: ...
|
|
114
118
|
|
|
115
119
|
class ClientMethodAlias:
|
|
@@ -129,17 +133,17 @@ def remove_lex_v2_start_conversation(
|
|
|
129
133
|
def remove_qbusiness_chat(class_attributes: Mapping[str, Any], **kwargs: Any) -> None: ...
|
|
130
134
|
def add_retry_headers(request: Request, **kwargs: Any) -> None: ...
|
|
131
135
|
def remove_bucket_from_url_paths_from_model(
|
|
132
|
-
params: Mapping[str, Any], model: OperationModel, context: Any, **kwargs: Any
|
|
136
|
+
params: Mapping[str, Any], model: OperationModel, context: Mapping[str, Any], **kwargs: Any
|
|
133
137
|
) -> None: ...
|
|
134
138
|
def remove_accid_host_prefix_from_model(
|
|
135
|
-
params: Mapping[str, Any], model: OperationModel, context: Any, **kwargs: Any
|
|
139
|
+
params: Mapping[str, Any], model: OperationModel, context: Mapping[str, Any], **kwargs: Any
|
|
136
140
|
) -> None: ...
|
|
137
141
|
def remove_arn_from_signing_path(request: Request, **kwargs: Any) -> None: ...
|
|
138
142
|
def customize_endpoint_resolver_builtins(
|
|
139
143
|
builtins: Mapping[str, Any],
|
|
140
144
|
model: OperationModel,
|
|
141
145
|
params: Mapping[str, Any],
|
|
142
|
-
context: Any,
|
|
146
|
+
context: Mapping[str, Any],
|
|
143
147
|
**kwargs: Any,
|
|
144
148
|
) -> None: ...
|
|
145
149
|
def remove_content_type_header_for_presigning(request: Request, **kwargs: Any) -> None: ...
|
botocore-stubs/hooks.pyi
CHANGED
|
@@ -5,7 +5,7 @@ Copyright 2024 Vlad Emelianov
|
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
7
|
from logging import Logger
|
|
8
|
-
from typing import Any, NamedTuple, TypeVar
|
|
8
|
+
from typing import Any, Callable, Mapping, NamedTuple, TypeVar
|
|
9
9
|
|
|
10
10
|
from botocore.compat import accepts_kwargs as accepts_kwargs
|
|
11
11
|
from botocore.utils import EVENT_ALIASES as EVENT_ALIASES
|
|
@@ -25,32 +25,32 @@ class NodeList(_NodeList):
|
|
|
25
25
|
def first_non_none_response(responses: Any, default: Any | None = ...) -> Any: ...
|
|
26
26
|
|
|
27
27
|
class BaseEventHooks:
|
|
28
|
-
def emit(self, event_name:
|
|
28
|
+
def emit(self, event_name: str, **kwargs: Any) -> Any: ...
|
|
29
29
|
def register(
|
|
30
30
|
self,
|
|
31
31
|
event_name: str,
|
|
32
|
-
handler:
|
|
32
|
+
handler: Callable[..., None],
|
|
33
33
|
unique_id: str | None = ...,
|
|
34
34
|
unique_id_uses_count: bool = ...,
|
|
35
35
|
) -> None: ...
|
|
36
36
|
def register_first(
|
|
37
37
|
self,
|
|
38
38
|
event_name: str,
|
|
39
|
-
handler:
|
|
39
|
+
handler: Callable[..., None],
|
|
40
40
|
unique_id: str | None = ...,
|
|
41
41
|
unique_id_uses_count: bool = ...,
|
|
42
42
|
) -> None: ...
|
|
43
43
|
def register_last(
|
|
44
44
|
self,
|
|
45
45
|
event_name: str,
|
|
46
|
-
handler:
|
|
46
|
+
handler: Callable[..., None],
|
|
47
47
|
unique_id: str | None = ...,
|
|
48
48
|
unique_id_uses_count: bool = ...,
|
|
49
49
|
) -> None: ...
|
|
50
50
|
def unregister(
|
|
51
51
|
self,
|
|
52
52
|
event_name: str,
|
|
53
|
-
handler:
|
|
53
|
+
handler: Callable[..., None] | None = ...,
|
|
54
54
|
unique_id: str | None = ...,
|
|
55
55
|
unique_id_uses_count: bool = ...,
|
|
56
56
|
) -> None: ...
|
|
@@ -62,41 +62,43 @@ class HierarchicalEmitter(BaseEventHooks):
|
|
|
62
62
|
def unregister(
|
|
63
63
|
self,
|
|
64
64
|
event_name: str,
|
|
65
|
-
handler:
|
|
65
|
+
handler: Callable[..., None] | None = ...,
|
|
66
66
|
unique_id: str | None = ...,
|
|
67
67
|
unique_id_uses_count: bool = ...,
|
|
68
68
|
) -> None: ...
|
|
69
69
|
def __copy__(self: _R) -> _R: ...
|
|
70
70
|
|
|
71
71
|
class EventAliaser(BaseEventHooks):
|
|
72
|
-
def __init__(
|
|
72
|
+
def __init__(
|
|
73
|
+
self, event_emitter: BaseEventHooks, event_aliases: Mapping[str, str] | None = ...
|
|
74
|
+
) -> None: ...
|
|
73
75
|
def emit(self, event_name: str, **kwargs: Any) -> Any: ...
|
|
74
76
|
def emit_until_response(self, event_name: str, **kwargs: Any) -> Any: ...
|
|
75
77
|
def register(
|
|
76
78
|
self,
|
|
77
79
|
event_name: str,
|
|
78
|
-
handler:
|
|
79
|
-
unique_id:
|
|
80
|
+
handler: Callable[..., None],
|
|
81
|
+
unique_id: str | None = ...,
|
|
80
82
|
unique_id_uses_count: bool = ...,
|
|
81
83
|
) -> Any: ...
|
|
82
84
|
def register_first(
|
|
83
85
|
self,
|
|
84
86
|
event_name: str,
|
|
85
|
-
handler:
|
|
87
|
+
handler: Callable[..., None],
|
|
86
88
|
unique_id: str | None = ...,
|
|
87
89
|
unique_id_uses_count: bool = ...,
|
|
88
90
|
) -> Any: ...
|
|
89
91
|
def register_last(
|
|
90
92
|
self,
|
|
91
93
|
event_name: str,
|
|
92
|
-
handler:
|
|
94
|
+
handler: Callable[..., None],
|
|
93
95
|
unique_id: str | None = ...,
|
|
94
96
|
unique_id_uses_count: bool = ...,
|
|
95
97
|
) -> Any: ...
|
|
96
98
|
def unregister(
|
|
97
99
|
self,
|
|
98
100
|
event_name: str,
|
|
99
|
-
handler:
|
|
101
|
+
handler: Callable[..., None] | None = ...,
|
|
100
102
|
unique_id: str | None = ...,
|
|
101
103
|
unique_id_uses_count: bool = ...,
|
|
102
104
|
) -> Any: ...
|
botocore-stubs/monitoring.pyi
CHANGED
|
@@ -17,7 +17,7 @@ from botocore.model import OperationModel
|
|
|
17
17
|
logger: Logger = ...
|
|
18
18
|
|
|
19
19
|
class Monitor:
|
|
20
|
-
def __init__(self, adapter:
|
|
20
|
+
def __init__(self, adapter: MonitorEventAdapter, publisher: SocketPublisher) -> None: ...
|
|
21
21
|
def register(self, event_emitter: BaseEventHooks) -> None: ...
|
|
22
22
|
def capture(self, event_name: str, **payload: Any) -> None: ...
|
|
23
23
|
|
|
@@ -80,5 +80,7 @@ class CSMSerializer:
|
|
|
80
80
|
def serialize(self, event: BaseMonitorEvent) -> bytes: ...
|
|
81
81
|
|
|
82
82
|
class SocketPublisher:
|
|
83
|
-
def __init__(
|
|
83
|
+
def __init__(
|
|
84
|
+
self, socket: socket.socket, host: str, port: int, serializer: CSMSerializer
|
|
85
|
+
) -> None: ...
|
|
84
86
|
def publish(self, event: BaseMonitorEvent) -> None: ...
|
botocore-stubs/regions.pyi
CHANGED
|
@@ -77,7 +77,7 @@ class EndpointRulesetResolver:
|
|
|
77
77
|
partition_data: Mapping[str, Any],
|
|
78
78
|
service_model: ServiceModel,
|
|
79
79
|
builtins: EndpointResolverBuiltins,
|
|
80
|
-
client_context: Any,
|
|
80
|
+
client_context: Mapping[str, Any],
|
|
81
81
|
event_emitter: BaseEventHooks,
|
|
82
82
|
use_ssl: bool = ...,
|
|
83
83
|
requested_auth_scheme: str | None = ...,
|
|
@@ -86,7 +86,7 @@ class EndpointRulesetResolver:
|
|
|
86
86
|
self,
|
|
87
87
|
operation_model: OperationModel,
|
|
88
88
|
call_args: Mapping[str, Any] | None,
|
|
89
|
-
request_context: Any,
|
|
89
|
+
request_context: Mapping[str, Any],
|
|
90
90
|
) -> RuleSetEndpoint: ...
|
|
91
91
|
def auth_schemes_to_signing_ctx(
|
|
92
92
|
self, auth_schemes: list[Mapping[str, Any]]
|
botocore-stubs/retries/base.pyi
CHANGED
|
@@ -4,10 +4,10 @@ Type annotations for botocore.retries.base module.
|
|
|
4
4
|
Copyright 2024 Vlad Emelianov
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
|
-
from
|
|
7
|
+
from botocore.retries.standard import RetryContext
|
|
8
8
|
|
|
9
9
|
class BaseRetryBackoff:
|
|
10
|
-
def delay_amount(self, context:
|
|
10
|
+
def delay_amount(self, context: RetryContext) -> float: ...
|
|
11
11
|
|
|
12
12
|
class BaseRetryableChecker:
|
|
13
|
-
def is_retryable(self, context:
|
|
13
|
+
def is_retryable(self, context: RetryContext) -> bool: ...
|
|
@@ -4,23 +4,21 @@ Type annotations for botocore.retries.bucket module.
|
|
|
4
4
|
Copyright 2024 Vlad Emelianov
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
|
-
from typing import Any
|
|
8
|
-
|
|
9
7
|
from botocore.exceptions import CapacityNotAvailableError as CapacityNotAvailableError
|
|
10
8
|
|
|
11
9
|
class Clock:
|
|
12
10
|
def __init__(self) -> None: ...
|
|
13
|
-
def sleep(self, amount:
|
|
14
|
-
def current_time(self) ->
|
|
11
|
+
def sleep(self, amount: float) -> None: ...
|
|
12
|
+
def current_time(self) -> float: ...
|
|
15
13
|
|
|
16
14
|
class TokenBucket:
|
|
17
|
-
def __init__(self, max_rate:
|
|
15
|
+
def __init__(self, max_rate: float, clock: Clock, min_rate: float = ...) -> None: ...
|
|
18
16
|
@property
|
|
19
|
-
def max_rate(self) ->
|
|
17
|
+
def max_rate(self) -> float: ...
|
|
20
18
|
@max_rate.setter
|
|
21
|
-
def max_rate(self, value:
|
|
19
|
+
def max_rate(self, value: float) -> None: ...
|
|
22
20
|
@property
|
|
23
|
-
def max_capacity(self) ->
|
|
21
|
+
def max_capacity(self) -> int: ...
|
|
24
22
|
@property
|
|
25
|
-
def available_capacity(self) ->
|
|
26
|
-
def acquire(self, amount: int = ..., block: bool = ...) ->
|
|
23
|
+
def available_capacity(self) -> int: ...
|
|
24
|
+
def acquire(self, amount: int = ..., block: bool = ...) -> bool: ...
|
botocore-stubs/retries/quota.pyi
CHANGED
|
@@ -4,12 +4,12 @@ Type annotations for botocore.retries.quota module.
|
|
|
4
4
|
Copyright 2024 Vlad Emelianov
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
|
-
from
|
|
7
|
+
from threading import Lock
|
|
8
8
|
|
|
9
9
|
class RetryQuota:
|
|
10
10
|
INITIAL_CAPACITY: int = ...
|
|
11
|
-
def __init__(self, initial_capacity:
|
|
12
|
-
def acquire(self, capacity_amount:
|
|
13
|
-
def release(self, capacity_amount:
|
|
11
|
+
def __init__(self, initial_capacity: int = ..., lock: Lock | None = ...) -> None: ...
|
|
12
|
+
def acquire(self, capacity_amount: int) -> bool: ...
|
|
13
|
+
def release(self, capacity_amount: int) -> None: ...
|
|
14
14
|
@property
|
|
15
|
-
def available_capacity(self) ->
|
|
15
|
+
def available_capacity(self) -> int: ...
|
|
@@ -8,11 +8,12 @@ from logging import Logger
|
|
|
8
8
|
from typing import Any
|
|
9
9
|
|
|
10
10
|
from botocore.retries.base import BaseRetryableChecker as BaseRetryableChecker
|
|
11
|
+
from botocore.retries.standard import RetryContext
|
|
11
12
|
|
|
12
13
|
logger: Logger = ...
|
|
13
14
|
|
|
14
15
|
class RetryIDPCommunicationError(BaseRetryableChecker):
|
|
15
|
-
def is_retryable(self, context:
|
|
16
|
+
def is_retryable(self, context: RetryContext) -> Any: ...
|
|
16
17
|
|
|
17
18
|
class RetryDDBChecksumError(BaseRetryableChecker):
|
|
18
|
-
def is_retryable(self, context:
|
|
19
|
+
def is_retryable(self, context: RetryContext) -> Any: ...
|
|
@@ -37,7 +37,7 @@ class RetryHandler:
|
|
|
37
37
|
|
|
38
38
|
class RetryEventAdapter:
|
|
39
39
|
def create_retry_context(self, **kwargs: Any) -> Any: ...
|
|
40
|
-
def adapt_retry_response_from_context(self, context:
|
|
40
|
+
def adapt_retry_response_from_context(self, context: RetryContext) -> None: ...
|
|
41
41
|
|
|
42
42
|
class RetryContext:
|
|
43
43
|
def __init__(
|
|
@@ -64,16 +64,16 @@ class RetryPolicy:
|
|
|
64
64
|
def __init__(
|
|
65
65
|
self, retry_checker: BaseRetryableChecker, retry_backoff: BaseRetryBackoff
|
|
66
66
|
) -> None: ...
|
|
67
|
-
def should_retry(self, context:
|
|
67
|
+
def should_retry(self, context: RetryContext) -> Any: ...
|
|
68
68
|
def compute_retry_delay(self, context: Any) -> float: ...
|
|
69
69
|
|
|
70
70
|
class ExponentialBackoff(BaseRetryBackoff):
|
|
71
71
|
def __init__(self, max_backoff: int = ..., random: Callable[[], float] = ...) -> None: ...
|
|
72
|
-
def delay_amount(self, context:
|
|
72
|
+
def delay_amount(self, context: RetryContext) -> float: ...
|
|
73
73
|
|
|
74
74
|
class MaxAttemptsChecker(BaseRetryableChecker):
|
|
75
75
|
def __init__(self, max_attempts: int) -> None: ...
|
|
76
|
-
def is_retryable(self, context:
|
|
76
|
+
def is_retryable(self, context: RetryContext) -> bool: ...
|
|
77
77
|
|
|
78
78
|
class TransientRetryableChecker(BaseRetryableChecker):
|
|
79
79
|
def __init__(
|
|
@@ -82,20 +82,20 @@ class TransientRetryableChecker(BaseRetryableChecker):
|
|
|
82
82
|
transient_status_codes: Sequence[int] | None = ...,
|
|
83
83
|
transient_exception_cls: Sequence[type[BotoCoreError]] | None = ...,
|
|
84
84
|
) -> None: ...
|
|
85
|
-
def is_retryable(self, context:
|
|
85
|
+
def is_retryable(self, context: RetryContext) -> bool: ...
|
|
86
86
|
|
|
87
87
|
class ThrottledRetryableChecker(BaseRetryableChecker):
|
|
88
88
|
def __init__(self, throttled_error_codes: Sequence[str] | None = ...) -> None: ...
|
|
89
|
-
def is_retryable(self, context:
|
|
89
|
+
def is_retryable(self, context: RetryContext) -> bool: ...
|
|
90
90
|
|
|
91
91
|
class ModeledRetryableChecker(BaseRetryableChecker):
|
|
92
92
|
def __init__(self) -> None: ...
|
|
93
|
-
def is_retryable(self, context:
|
|
93
|
+
def is_retryable(self, context: RetryContext) -> Any: ...
|
|
94
94
|
|
|
95
95
|
class ModeledRetryErrorDetector:
|
|
96
96
|
TRANSIENT_ERROR: str = ...
|
|
97
97
|
THROTTLING_ERROR: str = ...
|
|
98
|
-
def detect_error_type(self, context:
|
|
98
|
+
def detect_error_type(self, context: RetryContext) -> Any: ...
|
|
99
99
|
|
|
100
100
|
class ThrottlingErrorDetector:
|
|
101
101
|
def __init__(self, retry_event_adapter: Any) -> None: ...
|
|
@@ -103,13 +103,15 @@ class ThrottlingErrorDetector:
|
|
|
103
103
|
|
|
104
104
|
class StandardRetryConditions(BaseRetryableChecker):
|
|
105
105
|
def __init__(self, max_attempts: Any = ...) -> None: ...
|
|
106
|
-
def is_retryable(self, context:
|
|
106
|
+
def is_retryable(self, context: RetryContext) -> Any: ...
|
|
107
107
|
|
|
108
108
|
class OrRetryChecker(BaseRetryableChecker):
|
|
109
109
|
def __init__(self, checkers: Any) -> None: ...
|
|
110
|
-
def is_retryable(self, context:
|
|
110
|
+
def is_retryable(self, context: RetryContext) -> Any: ...
|
|
111
111
|
|
|
112
112
|
class RetryQuotaChecker:
|
|
113
113
|
def __init__(self, quota: Any) -> None: ... # noqa: F811
|
|
114
|
-
def acquire_retry_quota(self, context:
|
|
115
|
-
def release_retry_quota(
|
|
114
|
+
def acquire_retry_quota(self, context: RetryContext) -> bool: ...
|
|
115
|
+
def release_retry_quota(
|
|
116
|
+
self, context: RetryContext, http_response: Any, **kwargs: Any
|
|
117
|
+
) -> None: ...
|
botocore-stubs/serialize.pyi
CHANGED
|
@@ -44,7 +44,7 @@ class JSONSerializer(Serializer):
|
|
|
44
44
|
class BaseRestSerializer(Serializer):
|
|
45
45
|
QUERY_STRING_TIMESTAMP_FORMAT: str = ...
|
|
46
46
|
HEADER_TIMESTAMP_FORMAT: str = ...
|
|
47
|
-
KNOWN_LOCATIONS:
|
|
47
|
+
KNOWN_LOCATIONS: list[str] = ...
|
|
48
48
|
def serialize_to_request(
|
|
49
49
|
self, parameters: Mapping[str, Any], operation_model: OperationModel
|
|
50
50
|
) -> dict[str, Any]: ...
|