boto3-stubs-lite 1.28.70__py3-none-any.whl → 1.40.76__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 boto3-stubs-lite might be problematic. Click here for more details.
- boto3-stubs/__init__.pyi +39 -31
- boto3-stubs/compat.pyi +11 -4
- boto3-stubs/crt.pyi +28 -0
- boto3-stubs/docs/__init__.pyi +6 -0
- boto3-stubs/docs/action.pyi +37 -0
- boto3-stubs/docs/attr.pyi +33 -0
- boto3-stubs/docs/base.pyi +19 -0
- boto3-stubs/docs/client.pyi +9 -0
- boto3-stubs/docs/collection.pyi +37 -0
- boto3-stubs/docs/docstring.pyi +18 -0
- boto3-stubs/docs/method.pyi +27 -0
- boto3-stubs/docs/resource.pyi +20 -0
- boto3-stubs/docs/service.pyi +17 -0
- boto3-stubs/docs/subresource.pyi +22 -0
- boto3-stubs/docs/utils.pyi +16 -5
- boto3-stubs/docs/waiter.pyi +33 -0
- boto3-stubs/dynamodb/conditions.pyi +62 -67
- boto3-stubs/dynamodb/table.pyi +15 -9
- boto3-stubs/dynamodb/transform.pyi +18 -12
- boto3-stubs/dynamodb/types.pyi +22 -33
- boto3-stubs/ec2/createtags.pyi +9 -3
- boto3-stubs/ec2/deletetags.pyi +6 -0
- boto3-stubs/exceptions.pyi +6 -0
- boto3-stubs/resources/action.pyi +12 -6
- boto3-stubs/resources/base.pyi +18 -13
- boto3-stubs/resources/collection.pyi +10 -6
- boto3-stubs/resources/factory.pyi +9 -3
- boto3-stubs/resources/model.pyi +57 -53
- boto3-stubs/resources/params.pyi +12 -6
- boto3-stubs/resources/response.pyi +20 -14
- boto3-stubs/s3/constants.pyi +8 -0
- boto3-stubs/s3/inject.pyi +66 -56
- boto3-stubs/s3/transfer.pyi +30 -17
- boto3-stubs/session.pyi +42 -36
- boto3-stubs/utils.pyi +15 -10
- boto3_stubs_lite-1.40.76.dist-info/METADATA +2870 -0
- boto3_stubs_lite-1.40.76.dist-info/RECORD +45 -0
- {boto3_stubs_lite-1.28.70.dist-info → boto3_stubs_lite-1.40.76.dist-info}/WHEEL +1 -1
- {boto3_stubs_lite-1.28.70.dist-info → boto3_stubs_lite-1.40.76.dist-info/licenses}/LICENSE +1 -1
- {boto3_stubs_lite-1.28.70.dist-info → boto3_stubs_lite-1.40.76.dist-info}/top_level.txt +1 -0
- boto3_stubs_lite-1.28.70.dist-info/METADATA +0 -2553
- boto3_stubs_lite-1.28.70.dist-info/RECORD +0 -32
boto3-stubs/__init__.pyi
CHANGED
|
@@ -1,53 +1,61 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Type annotations for boto3 module.
|
|
3
|
+
|
|
4
|
+
Copyright 2024 Vlad Emelianov
|
|
5
|
+
"""
|
|
6
|
+
|
|
1
7
|
import logging
|
|
2
|
-
from typing import Any
|
|
8
|
+
from typing import Any
|
|
3
9
|
|
|
4
10
|
from boto3 import session as session
|
|
5
11
|
from boto3.session import Session as Session
|
|
6
12
|
from botocore.config import Config
|
|
7
13
|
from botocore.session import Session as BotocoreSession
|
|
8
14
|
|
|
9
|
-
__author__: str
|
|
10
|
-
__version__: str
|
|
15
|
+
__author__: str = ...
|
|
16
|
+
__version__: str = ...
|
|
11
17
|
|
|
12
|
-
DEFAULT_SESSION:
|
|
18
|
+
DEFAULT_SESSION: Session | None = ...
|
|
13
19
|
|
|
14
20
|
def setup_default_session(
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
*,
|
|
22
|
+
aws_access_key_id: str | None = ...,
|
|
23
|
+
aws_secret_access_key: str | None = ...,
|
|
24
|
+
aws_session_token: str | None = ...,
|
|
25
|
+
region_name: str | None = ...,
|
|
26
|
+
botocore_session: BotocoreSession | None = ...,
|
|
27
|
+
profile_name: str | None = ...,
|
|
21
28
|
) -> None: ...
|
|
22
29
|
def set_stream_logger(
|
|
23
|
-
name: str = ...,
|
|
30
|
+
name: str = ...,
|
|
31
|
+
level: int = ...,
|
|
32
|
+
format_string: str | None = ...,
|
|
24
33
|
) -> None: ...
|
|
25
34
|
def _get_default_session() -> Session: ...
|
|
26
35
|
|
|
27
|
-
class NullHandler(logging.Handler):
|
|
28
|
-
def emit(self, record: Any) -> Any: ...
|
|
36
|
+
class NullHandler(logging.Handler): ...
|
|
29
37
|
|
|
30
38
|
def client(
|
|
31
39
|
service_name: str,
|
|
32
|
-
region_name:
|
|
33
|
-
api_version:
|
|
34
|
-
use_ssl:
|
|
35
|
-
verify:
|
|
36
|
-
endpoint_url:
|
|
37
|
-
aws_access_key_id:
|
|
38
|
-
aws_secret_access_key:
|
|
39
|
-
aws_session_token:
|
|
40
|
-
config:
|
|
40
|
+
region_name: str | None = ...,
|
|
41
|
+
api_version: str | None = ...,
|
|
42
|
+
use_ssl: bool | None = ...,
|
|
43
|
+
verify: bool | str | None = ...,
|
|
44
|
+
endpoint_url: str | None = ...,
|
|
45
|
+
aws_access_key_id: str | None = ...,
|
|
46
|
+
aws_secret_access_key: str | None = ...,
|
|
47
|
+
aws_session_token: str | None = ...,
|
|
48
|
+
config: Config | None = ...,
|
|
41
49
|
) -> Any: ...
|
|
42
50
|
def resource(
|
|
43
51
|
service_name: str,
|
|
44
|
-
region_name:
|
|
45
|
-
api_version:
|
|
46
|
-
use_ssl:
|
|
47
|
-
verify:
|
|
48
|
-
endpoint_url:
|
|
49
|
-
aws_access_key_id:
|
|
50
|
-
aws_secret_access_key:
|
|
51
|
-
aws_session_token:
|
|
52
|
-
config:
|
|
52
|
+
region_name: str | None = ...,
|
|
53
|
+
api_version: str | None = ...,
|
|
54
|
+
use_ssl: bool | None = ...,
|
|
55
|
+
verify: bool | str | None = ...,
|
|
56
|
+
endpoint_url: str | None = ...,
|
|
57
|
+
aws_access_key_id: str | None = ...,
|
|
58
|
+
aws_secret_access_key: str | None = ...,
|
|
59
|
+
aws_session_token: str | None = ...,
|
|
60
|
+
config: Config | None = ...,
|
|
53
61
|
) -> Any: ...
|
boto3-stubs/compat.pyi
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"""
|
|
2
|
+
Type annotations for boto3.compat module.
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
Copyright 2024 Vlad Emelianov
|
|
5
|
+
"""
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
import os
|
|
8
|
+
from typing import Any
|
|
9
|
+
|
|
10
|
+
SOCKET_ERROR: type[ConnectionError]
|
|
7
11
|
|
|
8
12
|
rename_file = os.rename
|
|
13
|
+
|
|
14
|
+
def filter_python_deprecation_warnings() -> None: ...
|
|
15
|
+
def is_append_mode(fileobj: Any) -> bool: ...
|
boto3-stubs/crt.pyi
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Type annotations for boto3.crt module.
|
|
3
|
+
|
|
4
|
+
Copyright 2024 Vlad Emelianov
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
import threading
|
|
8
|
+
from typing import Any
|
|
9
|
+
|
|
10
|
+
from botocore.client import BaseClient
|
|
11
|
+
from s3transfer.crt import BotocoreCRTRequestSerializer, CRTTransferManager
|
|
12
|
+
|
|
13
|
+
CRT_S3_CLIENT: CRTS3Client | None = ...
|
|
14
|
+
BOTOCORE_CRT_SERIALIZER: BotocoreCRTRequestSerializer | None = ...
|
|
15
|
+
|
|
16
|
+
CLIENT_CREATION_LOCK: threading.Lock = ...
|
|
17
|
+
PROCESS_LOCK_NAME: str = ...
|
|
18
|
+
|
|
19
|
+
def get_crt_s3_client(client: BaseClient, config: Any) -> CRTS3Client: ...
|
|
20
|
+
|
|
21
|
+
class CRTS3Client:
|
|
22
|
+
def __init__(
|
|
23
|
+
self, crt_client: Any, process_lock: Any, region: str, cred_provider: Any
|
|
24
|
+
) -> None: ...
|
|
25
|
+
|
|
26
|
+
def is_crt_compatible_request(client: BaseClient, crt_s3_client: CRTS3Client) -> bool: ...
|
|
27
|
+
def compare_identity(boto3_creds: Any, crt_s3_creds: Any) -> bool: ...
|
|
28
|
+
def create_crt_transfer_manager(client: BaseClient, config: Any) -> CRTTransferManager | None: ...
|
boto3-stubs/docs/__init__.pyi
CHANGED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Type annotations for boto3.docs.action module.
|
|
3
|
+
|
|
4
|
+
Copyright 2024 Vlad Emelianov
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from boto3.resources.model import Action
|
|
8
|
+
from botocore.docs.bcdoc.restdoc import DocumentStructure
|
|
9
|
+
from botocore.hooks import BaseEventHooks
|
|
10
|
+
from botocore.model import ServiceModel
|
|
11
|
+
|
|
12
|
+
from .base import NestedDocumenter
|
|
13
|
+
|
|
14
|
+
PUT_DATA_WARNING_MESSAGE: str
|
|
15
|
+
WARNING_MESSAGES: dict[str, dict[str, str]]
|
|
16
|
+
IGNORE_PARAMS: dict[str, dict[str, list[str]]]
|
|
17
|
+
|
|
18
|
+
class ActionDocumenter(NestedDocumenter):
|
|
19
|
+
def document_actions(self, section: DocumentStructure) -> None: ...
|
|
20
|
+
|
|
21
|
+
def document_action(
|
|
22
|
+
section: DocumentStructure,
|
|
23
|
+
resource_name: str,
|
|
24
|
+
event_emitter: BaseEventHooks,
|
|
25
|
+
action_model: Action,
|
|
26
|
+
service_model: ServiceModel,
|
|
27
|
+
include_signature: bool = ...,
|
|
28
|
+
) -> None: ...
|
|
29
|
+
def document_load_reload_action(
|
|
30
|
+
section: DocumentStructure,
|
|
31
|
+
action_name: str,
|
|
32
|
+
resource_name: str,
|
|
33
|
+
event_emitter: BaseEventHooks,
|
|
34
|
+
load_model: Action,
|
|
35
|
+
service_model: ServiceModel,
|
|
36
|
+
include_signature: bool = ...,
|
|
37
|
+
) -> None: ...
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Type annotations for boto3.docs.attr module.
|
|
3
|
+
|
|
4
|
+
Copyright 2024 Vlad Emelianov
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from boto3.resources.model import Identifier
|
|
8
|
+
from botocore.docs.bcdoc.restdoc import DocumentStructure
|
|
9
|
+
from botocore.docs.params import ResponseParamsDocumenter
|
|
10
|
+
from botocore.hooks import BaseEventHooks
|
|
11
|
+
from botocore.model import Shape
|
|
12
|
+
|
|
13
|
+
class ResourceShapeDocumenter(ResponseParamsDocumenter):
|
|
14
|
+
EVENT_NAME: str
|
|
15
|
+
|
|
16
|
+
def document_attribute(
|
|
17
|
+
section: DocumentStructure,
|
|
18
|
+
service_name: str,
|
|
19
|
+
resource_name: str,
|
|
20
|
+
attr_name: str,
|
|
21
|
+
event_emitter: BaseEventHooks,
|
|
22
|
+
attr_model: Shape,
|
|
23
|
+
include_signature: bool = True,
|
|
24
|
+
) -> None: ...
|
|
25
|
+
def document_identifier(
|
|
26
|
+
section: DocumentStructure,
|
|
27
|
+
resource_name: str,
|
|
28
|
+
identifier_model: Identifier,
|
|
29
|
+
include_signature: bool = ...,
|
|
30
|
+
) -> None: ...
|
|
31
|
+
def document_reference(
|
|
32
|
+
section: DocumentStructure, reference_model: Shape, include_signature: bool = ...
|
|
33
|
+
) -> None: ...
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Type annotations for boto3.docs.base module.
|
|
3
|
+
|
|
4
|
+
Copyright 2024 Vlad Emelianov
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from typing import Any
|
|
8
|
+
|
|
9
|
+
class BaseDocumenter:
|
|
10
|
+
member_map: dict[str, Any]
|
|
11
|
+
represents_service_resource: Any
|
|
12
|
+
def __init__(self, resource: Any) -> None: ...
|
|
13
|
+
@property
|
|
14
|
+
def class_name(self) -> str: ...
|
|
15
|
+
|
|
16
|
+
class NestedDocumenter(BaseDocumenter):
|
|
17
|
+
def __init__(self, resource: Any, root_docs_path: str) -> None: ...
|
|
18
|
+
@property
|
|
19
|
+
def class_name(self) -> str: ...
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Type annotations for boto3.docs.collection module.
|
|
3
|
+
|
|
4
|
+
Copyright 2024 Vlad Emelianov
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from boto3.resources.model import Action, Collection
|
|
8
|
+
from botocore.docs.bcdoc.restdoc import DocumentStructure
|
|
9
|
+
from botocore.hooks import BaseEventHooks
|
|
10
|
+
from botocore.model import ServiceModel
|
|
11
|
+
|
|
12
|
+
from .base import NestedDocumenter
|
|
13
|
+
|
|
14
|
+
class CollectionDocumenter(NestedDocumenter):
|
|
15
|
+
def document_collections(self, section: DocumentStructure) -> None: ...
|
|
16
|
+
|
|
17
|
+
def document_collection_object(
|
|
18
|
+
section: DocumentStructure, collection_model: Collection, include_signature: bool = ...
|
|
19
|
+
) -> None: ...
|
|
20
|
+
def document_batch_action(
|
|
21
|
+
section: DocumentStructure,
|
|
22
|
+
resource_name: str,
|
|
23
|
+
event_emitter: BaseEventHooks,
|
|
24
|
+
batch_action_model: Action,
|
|
25
|
+
service_model: ServiceModel,
|
|
26
|
+
collection_model: Collection,
|
|
27
|
+
include_signature: bool = ...,
|
|
28
|
+
) -> None: ...
|
|
29
|
+
def document_collection_method(
|
|
30
|
+
section: DocumentStructure,
|
|
31
|
+
resource_name: str,
|
|
32
|
+
action_name: str,
|
|
33
|
+
event_emitter: BaseEventHooks,
|
|
34
|
+
collection_model: Collection,
|
|
35
|
+
service_model: ServiceModel,
|
|
36
|
+
include_signature: bool = ...,
|
|
37
|
+
) -> None: ...
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Type annotations for boto3.docs.docstring module.
|
|
3
|
+
|
|
4
|
+
Copyright 2024 Vlad Emelianov
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from botocore.docs.docstring import LazyLoadedDocstring
|
|
8
|
+
|
|
9
|
+
class ActionDocstring(LazyLoadedDocstring): ...
|
|
10
|
+
class LoadReloadDocstring(LazyLoadedDocstring): ...
|
|
11
|
+
class SubResourceDocstring(LazyLoadedDocstring): ...
|
|
12
|
+
class AttributeDocstring(LazyLoadedDocstring): ...
|
|
13
|
+
class IdentifierDocstring(LazyLoadedDocstring): ...
|
|
14
|
+
class ReferenceDocstring(LazyLoadedDocstring): ...
|
|
15
|
+
class CollectionDocstring(LazyLoadedDocstring): ...
|
|
16
|
+
class CollectionMethodDocstring(LazyLoadedDocstring): ...
|
|
17
|
+
class BatchActionDocstring(LazyLoadedDocstring): ...
|
|
18
|
+
class ResourceWaiterDocstring(LazyLoadedDocstring): ...
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Type annotations for boto3.docs.method module.
|
|
3
|
+
|
|
4
|
+
Copyright 2024 Vlad Emelianov
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from typing import Any
|
|
8
|
+
|
|
9
|
+
from boto3.resources.model import Action
|
|
10
|
+
from botocore.docs.bcdoc.restdoc import DocumentStructure
|
|
11
|
+
from botocore.hooks import BaseEventHooks
|
|
12
|
+
|
|
13
|
+
def document_model_driven_resource_method(
|
|
14
|
+
section: DocumentStructure,
|
|
15
|
+
method_name: str,
|
|
16
|
+
operation_model: Any,
|
|
17
|
+
event_emitter: BaseEventHooks,
|
|
18
|
+
method_description: str | None = ...,
|
|
19
|
+
example_prefix: str | None = ...,
|
|
20
|
+
include_input: Any | None = ...,
|
|
21
|
+
include_output: Any | None = ...,
|
|
22
|
+
exclude_input: Any | None = ...,
|
|
23
|
+
exclude_output: Any | None = ...,
|
|
24
|
+
document_output: bool = ...,
|
|
25
|
+
resource_action_model: Action | None = ...,
|
|
26
|
+
include_signature: bool = ...,
|
|
27
|
+
) -> None: ...
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Type annotations for boto3.docs.resource module.
|
|
3
|
+
|
|
4
|
+
Copyright 2024 Vlad Emelianov
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from typing import Any
|
|
8
|
+
|
|
9
|
+
from botocore.docs.bcdoc.restdoc import DocumentStructure
|
|
10
|
+
from botocore.session import Session
|
|
11
|
+
|
|
12
|
+
from .base import BaseDocumenter
|
|
13
|
+
|
|
14
|
+
class ResourceDocumenter(BaseDocumenter):
|
|
15
|
+
def __init__(self, resource: Any, botocore_session: Session, root_docs_path: str) -> None: ...
|
|
16
|
+
def document_resource(self, section: DocumentStructure) -> None: ...
|
|
17
|
+
|
|
18
|
+
class ServiceResourceDocumenter(ResourceDocumenter):
|
|
19
|
+
@property
|
|
20
|
+
def class_name(self) -> str: ...
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Type annotations for boto3.docs.service module.
|
|
3
|
+
|
|
4
|
+
Copyright 2024 Vlad Emelianov
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from botocore.docs.bcdoc.restdoc import DocumentStructure
|
|
8
|
+
from botocore.docs.service import ServiceDocumenter as BaseServiceDocumenter
|
|
9
|
+
from botocore.session import Session
|
|
10
|
+
|
|
11
|
+
class ServiceDocumenter(BaseServiceDocumenter):
|
|
12
|
+
EXAMPLE_PATH: str
|
|
13
|
+
sections: list[str]
|
|
14
|
+
def __init__(self, service_name: str, session: Session, root_docs_path: str) -> None: ...
|
|
15
|
+
def document_service(self) -> bytes: ...
|
|
16
|
+
def client_api(self, section: DocumentStructure) -> None: ...
|
|
17
|
+
def resource_section(self, section: DocumentStructure) -> None: ...
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Type annotations for boto3.docs.subresource module.
|
|
3
|
+
|
|
4
|
+
Copyright 2024 Vlad Emelianov
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from boto3.resources.model import ResourceModel
|
|
8
|
+
from botocore.docs.bcdoc.restdoc import DocumentStructure
|
|
9
|
+
from botocore.model import ServiceModel
|
|
10
|
+
|
|
11
|
+
from .base import NestedDocumenter
|
|
12
|
+
|
|
13
|
+
class SubResourceDocumenter(NestedDocumenter):
|
|
14
|
+
def document_sub_resources(self, section: DocumentStructure) -> None: ...
|
|
15
|
+
|
|
16
|
+
def document_sub_resource(
|
|
17
|
+
section: DocumentStructure,
|
|
18
|
+
resource_name: str,
|
|
19
|
+
sub_resource_model: ResourceModel,
|
|
20
|
+
service_model: ServiceModel,
|
|
21
|
+
include_signature: bool = ...,
|
|
22
|
+
) -> None: ...
|
boto3-stubs/docs/utils.pyi
CHANGED
|
@@ -1,13 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
"""
|
|
2
|
+
Type annotations for boto3.docs.utils module.
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
Copyright 2024 Vlad Emelianov
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from typing import Any, Iterable, Mapping
|
|
8
|
+
|
|
9
|
+
from botocore.docs.bcdoc.restdoc import DocumentStructure
|
|
10
|
+
|
|
11
|
+
def get_resource_ignore_params(params: Mapping[str, Any]) -> list[str]: ...
|
|
4
12
|
def is_resource_action(action_handle: Any) -> bool: ...
|
|
5
|
-
def get_resource_public_actions(resource_class: Any) ->
|
|
13
|
+
def get_resource_public_actions(resource_class: Any) -> list[Any]: ...
|
|
6
14
|
def get_identifier_values_for_example(identifier_names: Iterable[str]) -> str: ...
|
|
7
15
|
def get_identifier_args_for_signature(identifier_names: Iterable[str]) -> str: ...
|
|
8
16
|
def get_identifier_description(resource_name: str, identifier_name: str) -> str: ...
|
|
9
17
|
def add_resource_type_overview(
|
|
10
|
-
section:
|
|
18
|
+
section: DocumentStructure,
|
|
19
|
+
resource_type: str,
|
|
20
|
+
description: str,
|
|
21
|
+
intro_link: str | None = ...,
|
|
11
22
|
) -> None: ...
|
|
12
23
|
|
|
13
24
|
class DocumentModifiedShape:
|
|
@@ -15,5 +26,5 @@ class DocumentModifiedShape:
|
|
|
15
26
|
self, shape_name: str, new_type: str, new_description: str, new_example_value: str
|
|
16
27
|
) -> None: ...
|
|
17
28
|
def replace_documentation_for_matching_shape(
|
|
18
|
-
self, event_name: str, section:
|
|
29
|
+
self, event_name: str, section: DocumentStructure, **kwargs: Any
|
|
19
30
|
) -> None: ...
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Type annotations for boto3.docs.waiter module.
|
|
3
|
+
|
|
4
|
+
Copyright 2024 Vlad Emelianov
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from typing import Any
|
|
8
|
+
|
|
9
|
+
from botocore.docs.bcdoc.restdoc import DocumentStructure
|
|
10
|
+
from botocore.hooks import BaseEventHooks
|
|
11
|
+
from botocore.model import ServiceModel
|
|
12
|
+
from botocore.waiter import WaiterModel
|
|
13
|
+
|
|
14
|
+
from .base import NestedDocumenter
|
|
15
|
+
|
|
16
|
+
class WaiterResourceDocumenter(NestedDocumenter):
|
|
17
|
+
def __init__(
|
|
18
|
+
self,
|
|
19
|
+
resource: Any,
|
|
20
|
+
service_waiter_model: WaiterModel,
|
|
21
|
+
root_docs_path: str,
|
|
22
|
+
) -> None: ...
|
|
23
|
+
def document_resource_waiters(self, section: DocumentStructure) -> None: ...
|
|
24
|
+
|
|
25
|
+
def document_resource_waiter(
|
|
26
|
+
section: DocumentStructure,
|
|
27
|
+
resource_name: str,
|
|
28
|
+
event_emitter: BaseEventHooks,
|
|
29
|
+
service_model: ServiceModel,
|
|
30
|
+
resource_waiter_model: Any,
|
|
31
|
+
service_waiter_model: WaiterModel,
|
|
32
|
+
include_signature: bool = ...,
|
|
33
|
+
) -> None: ...
|
|
@@ -1,117 +1,116 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
if sys.version_info >= (3, 12):
|
|
9
|
-
from typing import TypedDict
|
|
10
|
-
else:
|
|
11
|
-
from typing_extensions import TypedDict
|
|
1
|
+
"""
|
|
2
|
+
Type annotations for boto3.dynamodb.conditions module.
|
|
3
|
+
|
|
4
|
+
Copyright 2024 Vlad Emelianov
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from typing import Any, Literal, NamedTuple, Pattern, TypedDict
|
|
12
8
|
|
|
13
9
|
ATTR_NAME_REGEX: Pattern[str]
|
|
14
10
|
|
|
15
|
-
_ConditionBaseExpressionType
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
class _ConditionBaseExpressionType(TypedDict):
|
|
12
|
+
format: str
|
|
13
|
+
operator: str
|
|
14
|
+
values: list[Any]
|
|
18
15
|
|
|
19
16
|
class ConditionBase:
|
|
20
17
|
expression_format: str
|
|
21
18
|
expression_operator: str
|
|
22
19
|
has_grouped_values: bool
|
|
23
20
|
def __init__(self, *values: Any) -> None: ...
|
|
24
|
-
def __and__(self, other: ConditionBase) ->
|
|
25
|
-
def __or__(self, other: ConditionBase) ->
|
|
26
|
-
def __invert__(self) ->
|
|
21
|
+
def __and__(self, other: ConditionBase) -> And: ...
|
|
22
|
+
def __or__(self, other: ConditionBase) -> Or: ...
|
|
23
|
+
def __invert__(self) -> Not: ...
|
|
27
24
|
def get_expression(self) -> _ConditionBaseExpressionType: ...
|
|
28
|
-
def __eq__(self, other:
|
|
29
|
-
def __ne__(self, other:
|
|
25
|
+
def __eq__(self, other: object) -> bool: ...
|
|
26
|
+
def __ne__(self, other: object) -> bool: ...
|
|
30
27
|
|
|
31
28
|
class AttributeBase:
|
|
32
|
-
def __init__(self, name: str) -> None:
|
|
29
|
+
def __init__(self, name: str) -> None:
|
|
30
|
+
self.name: str = ...
|
|
31
|
+
|
|
33
32
|
def __and__(self, value: Any) -> Any: ...
|
|
34
33
|
def __or__(self, value: Any) -> Any: ...
|
|
35
34
|
def __invert__(self) -> Any: ...
|
|
36
|
-
def eq(self, value: Any) ->
|
|
37
|
-
def lt(self, value: Any) ->
|
|
38
|
-
def lte(self, value: Any) ->
|
|
39
|
-
def gt(self, value: Any) ->
|
|
40
|
-
def gte(self, value: Any) ->
|
|
41
|
-
def begins_with(self, value: Any) ->
|
|
42
|
-
def between(self, low_value: Any, high_value: Any) ->
|
|
43
|
-
def __eq__(self, other:
|
|
44
|
-
def __ne__(self, other:
|
|
35
|
+
def eq(self, value: Any) -> Equals: ...
|
|
36
|
+
def lt(self, value: Any) -> LessThan: ...
|
|
37
|
+
def lte(self, value: Any) -> LessThanEquals: ...
|
|
38
|
+
def gt(self, value: Any) -> GreaterThan: ...
|
|
39
|
+
def gte(self, value: Any) -> GreaterThanEquals: ...
|
|
40
|
+
def begins_with(self, value: Any) -> BeginsWith: ...
|
|
41
|
+
def between(self, low_value: Any, high_value: Any) -> Between: ...
|
|
42
|
+
def __eq__(self, other: object) -> bool: ...
|
|
43
|
+
def __ne__(self, other: object) -> bool: ...
|
|
45
44
|
|
|
46
45
|
class ConditionAttributeBase(ConditionBase, AttributeBase):
|
|
47
46
|
def __init__(self, *values: Any) -> None: ...
|
|
48
|
-
def __eq__(self, other:
|
|
49
|
-
def __ne__(self, other:
|
|
47
|
+
def __eq__(self, other: object) -> bool: ...
|
|
48
|
+
def __ne__(self, other: object) -> bool: ...
|
|
50
49
|
|
|
51
50
|
class ComparisonCondition(ConditionBase):
|
|
52
|
-
expression_format: Literal["{0} {operator} {1}"]
|
|
51
|
+
expression_format: Literal["{0} {operator} {1}"] # type: ignore [override]
|
|
53
52
|
|
|
54
53
|
class Equals(ComparisonCondition):
|
|
55
|
-
expression_operator: Literal["="]
|
|
54
|
+
expression_operator: Literal["="] # type: ignore [override]
|
|
56
55
|
|
|
57
56
|
class NotEquals(ComparisonCondition):
|
|
58
|
-
expression_operator: Literal["<>"]
|
|
57
|
+
expression_operator: Literal["<>"] # type: ignore [override]
|
|
59
58
|
|
|
60
59
|
class LessThan(ComparisonCondition):
|
|
61
|
-
expression_operator: Literal["<"]
|
|
60
|
+
expression_operator: Literal["<"] # type: ignore [override]
|
|
62
61
|
|
|
63
62
|
class LessThanEquals(ComparisonCondition):
|
|
64
|
-
expression_operator: Literal["<="]
|
|
63
|
+
expression_operator: Literal["<="] # type: ignore [override]
|
|
65
64
|
|
|
66
65
|
class GreaterThan(ComparisonCondition):
|
|
67
|
-
expression_operator: Literal[">"]
|
|
66
|
+
expression_operator: Literal[">"] # type: ignore [override]
|
|
68
67
|
|
|
69
68
|
class GreaterThanEquals(ComparisonCondition):
|
|
70
|
-
expression_operator: Literal[">="]
|
|
69
|
+
expression_operator: Literal[">="] # type: ignore [override]
|
|
71
70
|
|
|
72
71
|
class In(ComparisonCondition):
|
|
73
|
-
expression_operator: Literal["IN"]
|
|
72
|
+
expression_operator: Literal["IN"] # type: ignore [override]
|
|
74
73
|
has_grouped_values: bool
|
|
75
74
|
|
|
76
75
|
class Between(ConditionBase):
|
|
77
|
-
expression_operator: Literal["BETWEEN"]
|
|
78
|
-
expression_format: Literal["{0} {operator} {1} AND {2}"]
|
|
76
|
+
expression_operator: Literal["BETWEEN"] # type: ignore [override]
|
|
77
|
+
expression_format: Literal["{0} {operator} {1} AND {2}"] # type: ignore [override]
|
|
79
78
|
|
|
80
79
|
class BeginsWith(ConditionBase):
|
|
81
|
-
expression_operator: Literal["begins_with"]
|
|
82
|
-
expression_format: Literal["{operator}({0}, {1})"]
|
|
80
|
+
expression_operator: Literal["begins_with"] # type: ignore [override]
|
|
81
|
+
expression_format: Literal["{operator}({0}, {1})"] # type: ignore [override]
|
|
83
82
|
|
|
84
83
|
class Contains(ConditionBase):
|
|
85
|
-
expression_operator: Literal["contains"]
|
|
86
|
-
expression_format: Literal["{operator}({0}, {1})"]
|
|
84
|
+
expression_operator: Literal["contains"] # type: ignore [override]
|
|
85
|
+
expression_format: Literal["{operator}({0}, {1})"] # type: ignore [override]
|
|
87
86
|
|
|
88
87
|
class Size(ConditionAttributeBase):
|
|
89
|
-
expression_operator: Literal["size"]
|
|
90
|
-
expression_format: Literal["{operator}({0})"]
|
|
88
|
+
expression_operator: Literal["size"] # type: ignore [override]
|
|
89
|
+
expression_format: Literal["{operator}({0})"] # type: ignore [override]
|
|
91
90
|
|
|
92
91
|
class AttributeType(ConditionBase):
|
|
93
|
-
expression_operator: Literal["attribute_type"]
|
|
94
|
-
expression_format: Literal["{operator}({0}, {1})"]
|
|
92
|
+
expression_operator: Literal["attribute_type"] # type: ignore [override]
|
|
93
|
+
expression_format: Literal["{operator}({0}, {1})"] # type: ignore [override]
|
|
95
94
|
|
|
96
95
|
class AttributeExists(ConditionBase):
|
|
97
|
-
expression_operator: Literal["attribute_exists"]
|
|
98
|
-
expression_format: Literal["{operator}({0})"]
|
|
96
|
+
expression_operator: Literal["attribute_exists"] # type: ignore [override]
|
|
97
|
+
expression_format: Literal["{operator}({0})"] # type: ignore [override]
|
|
99
98
|
|
|
100
99
|
class AttributeNotExists(ConditionBase):
|
|
101
|
-
expression_operator: Literal["attribute_not_exists"]
|
|
102
|
-
expression_format: Literal["{operator}({0})"]
|
|
100
|
+
expression_operator: Literal["attribute_not_exists"] # type: ignore [override]
|
|
101
|
+
expression_format: Literal["{operator}({0})"] # type: ignore [override]
|
|
103
102
|
|
|
104
103
|
class And(ConditionBase):
|
|
105
|
-
expression_operator: Literal["AND"]
|
|
106
|
-
expression_format: Literal["({0} {operator} {1})"]
|
|
104
|
+
expression_operator: Literal["AND"] # type: ignore [override]
|
|
105
|
+
expression_format: Literal["({0} {operator} {1})"] # type: ignore [override]
|
|
107
106
|
|
|
108
107
|
class Or(ConditionBase):
|
|
109
|
-
expression_operator: Literal["OR"]
|
|
110
|
-
expression_format: Literal["({0} {operator} {1})"]
|
|
108
|
+
expression_operator: Literal["OR"] # type: ignore [override]
|
|
109
|
+
expression_format: Literal["({0} {operator} {1})"] # type: ignore [override]
|
|
111
110
|
|
|
112
111
|
class Not(ConditionBase):
|
|
113
|
-
expression_operator: Literal["NOT"]
|
|
114
|
-
expression_format: Literal["({operator} {0})"]
|
|
112
|
+
expression_operator: Literal["NOT"] # type: ignore [override]
|
|
113
|
+
expression_format: Literal["({operator} {0})"] # type: ignore [override]
|
|
115
114
|
|
|
116
115
|
class Key(AttributeBase): ...
|
|
117
116
|
|
|
@@ -124,14 +123,10 @@ class Attr(AttributeBase):
|
|
|
124
123
|
def size(self) -> Size: ...
|
|
125
124
|
def attribute_type(self, value: Any) -> AttributeType: ...
|
|
126
125
|
|
|
127
|
-
BuiltConditionExpression
|
|
128
|
-
|
|
129
|
-
[
|
|
130
|
-
|
|
131
|
-
("attribute_name_placeholders", Dict[str, str]),
|
|
132
|
-
("attribute_value_placeholders", Dict[str, Any]),
|
|
133
|
-
],
|
|
134
|
-
)
|
|
126
|
+
class BuiltConditionExpression(NamedTuple):
|
|
127
|
+
condition_expression: str
|
|
128
|
+
attribute_name_placeholders: dict[str, str]
|
|
129
|
+
attribute_value_placeholders: dict[str, Any]
|
|
135
130
|
|
|
136
131
|
class ConditionExpressionBuilder:
|
|
137
132
|
def __init__(self) -> None: ...
|