boto3-stubs 1.35.70__py3-none-any.whl → 1.35.72__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.
- boto3-stubs/__init__.pyi +56 -0
- boto3-stubs/compat.pyi +7 -2
- boto3-stubs/crt.pyi +10 -6
- boto3-stubs/docs/__init__.pyi +6 -0
- boto3-stubs/docs/action.pyi +7 -3
- boto3-stubs/docs/attr.pyi +6 -0
- boto3-stubs/docs/base.pyi +8 -2
- boto3-stubs/docs/client.pyi +6 -0
- boto3-stubs/docs/collection.pyi +6 -0
- boto3-stubs/docs/docstring.pyi +6 -0
- boto3-stubs/docs/method.pyi +14 -8
- boto3-stubs/docs/resource.pyi +6 -0
- boto3-stubs/docs/service.pyi +6 -2
- boto3-stubs/docs/subresource.pyi +6 -0
- boto3-stubs/docs/utils.pyi +10 -4
- boto3-stubs/docs/waiter.pyi +6 -0
- boto3-stubs/dynamodb/conditions.pyi +31 -38
- 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 +16 -12
- boto3-stubs/resources/collection.pyi +10 -6
- boto3-stubs/resources/factory.pyi +9 -3
- boto3-stubs/resources/model.pyi +55 -53
- boto3-stubs/resources/params.pyi +12 -6
- boto3-stubs/resources/response.pyi +20 -14
- boto3-stubs/s3/constants.pyi +6 -0
- boto3-stubs/s3/inject.pyi +62 -56
- boto3-stubs/s3/transfer.pyi +23 -17
- boto3-stubs/session.pyi +60 -0
- boto3-stubs/utils.pyi +10 -4
- {boto3_stubs-1.35.70.dist-info → boto3_stubs-1.35.72.dist-info}/METADATA +60 -37
- boto3_stubs-1.35.72.dist-info/RECORD +45 -0
- boto3_stubs-1.35.70.dist-info/RECORD +0 -45
- {boto3_stubs-1.35.70.dist-info → boto3_stubs-1.35.72.dist-info}/LICENSE +0 -0
- {boto3_stubs-1.35.70.dist-info → boto3_stubs-1.35.72.dist-info}/WHEEL +0 -0
- {boto3_stubs-1.35.70.dist-info → boto3_stubs-1.35.72.dist-info}/top_level.txt +0 -0
boto3-stubs/__init__.pyi
CHANGED
@@ -191,6 +191,7 @@ from mypy_boto3_inspector.client import InspectorClient
|
|
191
191
|
from mypy_boto3_inspector2.client import Inspector2Client
|
192
192
|
from mypy_boto3_inspector_scan.client import InspectorscanClient
|
193
193
|
from mypy_boto3_internetmonitor.client import CloudWatchInternetMonitorClient
|
194
|
+
from mypy_boto3_invoicing.client import InvoicingClient
|
194
195
|
from mypy_boto3_iot.client import IoTClient
|
195
196
|
from mypy_boto3_iot1click_devices.client import IoT1ClickDevicesServiceClient
|
196
197
|
from mypy_boto3_iot1click_projects.client import IoT1ClickProjectsClient
|
@@ -281,11 +282,13 @@ from mypy_boto3_neptune.client import NeptuneClient
|
|
281
282
|
from mypy_boto3_neptune_graph.client import NeptuneGraphClient
|
282
283
|
from mypy_boto3_neptunedata.client import NeptuneDataClient
|
283
284
|
from mypy_boto3_network_firewall.client import NetworkFirewallClient
|
285
|
+
from mypy_boto3_networkflowmonitor.client import NetworkFlowMonitorClient
|
284
286
|
from mypy_boto3_networkmanager.client import NetworkManagerClient
|
285
287
|
from mypy_boto3_networkmonitor.client import CloudWatchNetworkMonitorClient
|
286
288
|
from mypy_boto3_notifications.client import UserNotificationsClient
|
287
289
|
from mypy_boto3_notificationscontacts.client import UserNotificationsContactsClient
|
288
290
|
from mypy_boto3_oam.client import CloudWatchObservabilityAccessManagerClient
|
291
|
+
from mypy_boto3_observabilityadmin.client import CloudWatchObservabilityAdminServiceClient
|
289
292
|
from mypy_boto3_omics.client import OmicsClient
|
290
293
|
from mypy_boto3_opensearch.client import OpenSearchServiceClient
|
291
294
|
from mypy_boto3_opensearchserverless.client import OpenSearchServiceServerlessClient
|
@@ -360,6 +363,7 @@ from mypy_boto3_scheduler.client import EventBridgeSchedulerClient
|
|
360
363
|
from mypy_boto3_schemas.client import SchemasClient
|
361
364
|
from mypy_boto3_sdb.client import SimpleDBClient
|
362
365
|
from mypy_boto3_secretsmanager.client import SecretsManagerClient
|
366
|
+
from mypy_boto3_security_ir.client import SecurityIncidentResponseClient
|
363
367
|
from mypy_boto3_securityhub.client import SecurityHubClient
|
364
368
|
from mypy_boto3_securitylake.client import SecurityLakeClient
|
365
369
|
from mypy_boto3_serverlessrepo.client import ServerlessApplicationRepositoryClient
|
@@ -2699,6 +2703,19 @@ def client(
|
|
2699
2703
|
config: Optional[Config] = ...,
|
2700
2704
|
) -> CloudWatchInternetMonitorClient: ...
|
2701
2705
|
@overload
|
2706
|
+
def client(
|
2707
|
+
service_name: Literal["invoicing"],
|
2708
|
+
region_name: Optional[str] = ...,
|
2709
|
+
api_version: Optional[str] = ...,
|
2710
|
+
use_ssl: Optional[bool] = ...,
|
2711
|
+
verify: Union[bool, str, None] = ...,
|
2712
|
+
endpoint_url: Optional[str] = ...,
|
2713
|
+
aws_access_key_id: Optional[str] = ...,
|
2714
|
+
aws_secret_access_key: Optional[str] = ...,
|
2715
|
+
aws_session_token: Optional[str] = ...,
|
2716
|
+
config: Optional[Config] = ...,
|
2717
|
+
) -> InvoicingClient: ...
|
2718
|
+
@overload
|
2702
2719
|
def client(
|
2703
2720
|
service_name: Literal["iot"],
|
2704
2721
|
region_name: Optional[str] = ...,
|
@@ -3817,6 +3834,19 @@ def client(
|
|
3817
3834
|
config: Optional[Config] = ...,
|
3818
3835
|
) -> NetworkFirewallClient: ...
|
3819
3836
|
@overload
|
3837
|
+
def client(
|
3838
|
+
service_name: Literal["networkflowmonitor"],
|
3839
|
+
region_name: Optional[str] = ...,
|
3840
|
+
api_version: Optional[str] = ...,
|
3841
|
+
use_ssl: Optional[bool] = ...,
|
3842
|
+
verify: Union[bool, str, None] = ...,
|
3843
|
+
endpoint_url: Optional[str] = ...,
|
3844
|
+
aws_access_key_id: Optional[str] = ...,
|
3845
|
+
aws_secret_access_key: Optional[str] = ...,
|
3846
|
+
aws_session_token: Optional[str] = ...,
|
3847
|
+
config: Optional[Config] = ...,
|
3848
|
+
) -> NetworkFlowMonitorClient: ...
|
3849
|
+
@overload
|
3820
3850
|
def client(
|
3821
3851
|
service_name: Literal["networkmanager"],
|
3822
3852
|
region_name: Optional[str] = ...,
|
@@ -3882,6 +3912,19 @@ def client(
|
|
3882
3912
|
config: Optional[Config] = ...,
|
3883
3913
|
) -> CloudWatchObservabilityAccessManagerClient: ...
|
3884
3914
|
@overload
|
3915
|
+
def client(
|
3916
|
+
service_name: Literal["observabilityadmin"],
|
3917
|
+
region_name: Optional[str] = ...,
|
3918
|
+
api_version: Optional[str] = ...,
|
3919
|
+
use_ssl: Optional[bool] = ...,
|
3920
|
+
verify: Union[bool, str, None] = ...,
|
3921
|
+
endpoint_url: Optional[str] = ...,
|
3922
|
+
aws_access_key_id: Optional[str] = ...,
|
3923
|
+
aws_secret_access_key: Optional[str] = ...,
|
3924
|
+
aws_session_token: Optional[str] = ...,
|
3925
|
+
config: Optional[Config] = ...,
|
3926
|
+
) -> CloudWatchObservabilityAdminServiceClient: ...
|
3927
|
+
@overload
|
3885
3928
|
def client(
|
3886
3929
|
service_name: Literal["omics"],
|
3887
3930
|
region_name: Optional[str] = ...,
|
@@ -4818,6 +4861,19 @@ def client(
|
|
4818
4861
|
config: Optional[Config] = ...,
|
4819
4862
|
) -> SecretsManagerClient: ...
|
4820
4863
|
@overload
|
4864
|
+
def client(
|
4865
|
+
service_name: Literal["security-ir"],
|
4866
|
+
region_name: Optional[str] = ...,
|
4867
|
+
api_version: Optional[str] = ...,
|
4868
|
+
use_ssl: Optional[bool] = ...,
|
4869
|
+
verify: Union[bool, str, None] = ...,
|
4870
|
+
endpoint_url: Optional[str] = ...,
|
4871
|
+
aws_access_key_id: Optional[str] = ...,
|
4872
|
+
aws_secret_access_key: Optional[str] = ...,
|
4873
|
+
aws_session_token: Optional[str] = ...,
|
4874
|
+
config: Optional[Config] = ...,
|
4875
|
+
) -> SecurityIncidentResponseClient: ...
|
4876
|
+
@overload
|
4821
4877
|
def client(
|
4822
4878
|
service_name: Literal["securityhub"],
|
4823
4879
|
region_name: Optional[str] = ...,
|
boto3-stubs/compat.pyi
CHANGED
@@ -1,7 +1,12 @@
|
|
1
|
+
"""
|
2
|
+
Type annotations for boto3.compat module.
|
3
|
+
|
4
|
+
Copyright 2024 Vlad Emelianov
|
5
|
+
"""
|
6
|
+
|
1
7
|
import os
|
2
|
-
from typing import Type
|
3
8
|
|
4
|
-
SOCKET_ERROR:
|
9
|
+
SOCKET_ERROR: type[ConnectionError]
|
5
10
|
|
6
11
|
def filter_python_deprecation_warnings() -> None: ...
|
7
12
|
|
boto3-stubs/crt.pyi
CHANGED
@@ -1,11 +1,17 @@
|
|
1
|
+
"""
|
2
|
+
Type annotations for boto3.crt module.
|
3
|
+
|
4
|
+
Copyright 2024 Vlad Emelianov
|
5
|
+
"""
|
6
|
+
|
1
7
|
import threading
|
2
|
-
from typing import Any
|
8
|
+
from typing import Any
|
3
9
|
|
4
10
|
from botocore.client import BaseClient
|
5
11
|
from s3transfer.crt import BotocoreCRTRequestSerializer, CRTTransferManager
|
6
12
|
|
7
|
-
CRT_S3_CLIENT:
|
8
|
-
BOTOCORE_CRT_SERIALIZER:
|
13
|
+
CRT_S3_CLIENT: CRTS3Client | None = ...
|
14
|
+
BOTOCORE_CRT_SERIALIZER: BotocoreCRTRequestSerializer | None = ...
|
9
15
|
|
10
16
|
CLIENT_CREATION_LOCK: threading.Lock = ...
|
11
17
|
PROCESS_LOCK_NAME: str = ...
|
@@ -19,6 +25,4 @@ class CRTS3Client:
|
|
19
25
|
|
20
26
|
def is_crt_compatible_request(client: BaseClient, crt_s3_client: CRTS3Client) -> bool: ...
|
21
27
|
def compare_identity(boto3_creds: Any, crt_s3_creds: Any) -> bool: ...
|
22
|
-
def create_crt_transfer_manager(
|
23
|
-
client: BaseClient, config: Any
|
24
|
-
) -> Optional[CRTTransferManager]: ...
|
28
|
+
def create_crt_transfer_manager(client: BaseClient, config: Any) -> CRTTransferManager | None: ...
|
boto3-stubs/docs/__init__.pyi
CHANGED
boto3-stubs/docs/action.pyi
CHANGED
@@ -1,4 +1,8 @@
|
|
1
|
-
|
1
|
+
"""
|
2
|
+
Type annotations for boto3.docs.action module.
|
3
|
+
|
4
|
+
Copyright 2024 Vlad Emelianov
|
5
|
+
"""
|
2
6
|
|
3
7
|
from boto3.resources.model import Action
|
4
8
|
from botocore.docs.bcdoc.restdoc import DocumentStructure
|
@@ -8,8 +12,8 @@ from botocore.model import ServiceModel
|
|
8
12
|
from .base import NestedDocumenter
|
9
13
|
|
10
14
|
PUT_DATA_WARNING_MESSAGE: str
|
11
|
-
WARNING_MESSAGES:
|
12
|
-
IGNORE_PARAMS:
|
15
|
+
WARNING_MESSAGES: dict[str, dict[str, str]]
|
16
|
+
IGNORE_PARAMS: dict[str, dict[str, list[str]]]
|
13
17
|
|
14
18
|
class ActionDocumenter(NestedDocumenter):
|
15
19
|
def document_actions(self, section: DocumentStructure) -> None: ...
|
boto3-stubs/docs/attr.pyi
CHANGED
boto3-stubs/docs/base.pyi
CHANGED
@@ -1,7 +1,13 @@
|
|
1
|
-
|
1
|
+
"""
|
2
|
+
Type annotations for boto3.docs.base module.
|
3
|
+
|
4
|
+
Copyright 2024 Vlad Emelianov
|
5
|
+
"""
|
6
|
+
|
7
|
+
from typing import Any
|
2
8
|
|
3
9
|
class BaseDocumenter:
|
4
|
-
member_map:
|
10
|
+
member_map: dict[str, Any]
|
5
11
|
represents_service_resource: Any
|
6
12
|
def __init__(self, resource: Any) -> None: ...
|
7
13
|
@property
|
boto3-stubs/docs/client.pyi
CHANGED
boto3-stubs/docs/collection.pyi
CHANGED
boto3-stubs/docs/docstring.pyi
CHANGED
boto3-stubs/docs/method.pyi
CHANGED
@@ -1,4 +1,10 @@
|
|
1
|
-
|
1
|
+
"""
|
2
|
+
Type annotations for boto3.docs.method module.
|
3
|
+
|
4
|
+
Copyright 2024 Vlad Emelianov
|
5
|
+
"""
|
6
|
+
|
7
|
+
from typing import Any
|
2
8
|
|
3
9
|
from boto3.resources.model import Action
|
4
10
|
from botocore.docs.bcdoc.restdoc import DocumentStructure
|
@@ -9,13 +15,13 @@ def document_model_driven_resource_method(
|
|
9
15
|
method_name: str,
|
10
16
|
operation_model: Any,
|
11
17
|
event_emitter: BaseEventHooks,
|
12
|
-
method_description:
|
13
|
-
example_prefix:
|
14
|
-
include_input:
|
15
|
-
include_output:
|
16
|
-
exclude_input:
|
17
|
-
exclude_output:
|
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 = ...,
|
18
24
|
document_output: bool = ...,
|
19
|
-
resource_action_model:
|
25
|
+
resource_action_model: Action | None = ...,
|
20
26
|
include_signature: bool = ...,
|
21
27
|
) -> None: ...
|
boto3-stubs/docs/resource.pyi
CHANGED
boto3-stubs/docs/service.pyi
CHANGED
@@ -1,4 +1,8 @@
|
|
1
|
-
|
1
|
+
"""
|
2
|
+
Type annotations for boto3.docs.service module.
|
3
|
+
|
4
|
+
Copyright 2024 Vlad Emelianov
|
5
|
+
"""
|
2
6
|
|
3
7
|
from botocore.docs.bcdoc.restdoc import DocumentStructure
|
4
8
|
from botocore.docs.service import ServiceDocumenter as BaseServiceDocumenter
|
@@ -6,7 +10,7 @@ from botocore.session import Session
|
|
6
10
|
|
7
11
|
class ServiceDocumenter(BaseServiceDocumenter):
|
8
12
|
EXAMPLE_PATH: str
|
9
|
-
sections:
|
13
|
+
sections: list[str]
|
10
14
|
def __init__(self, service_name: str, session: Session, root_docs_path: str) -> None: ...
|
11
15
|
def document_service(self) -> bytes: ...
|
12
16
|
def client_api(self, section: DocumentStructure) -> None: ...
|
boto3-stubs/docs/subresource.pyi
CHANGED
boto3-stubs/docs/utils.pyi
CHANGED
@@ -1,10 +1,16 @@
|
|
1
|
-
|
1
|
+
"""
|
2
|
+
Type annotations for boto3.docs.utils module.
|
3
|
+
|
4
|
+
Copyright 2024 Vlad Emelianov
|
5
|
+
"""
|
6
|
+
|
7
|
+
from typing import Any, Iterable, Mapping
|
2
8
|
|
3
9
|
from botocore.docs.bcdoc.restdoc import DocumentStructure
|
4
10
|
|
5
|
-
def get_resource_ignore_params(params: Mapping[str, Any]) ->
|
11
|
+
def get_resource_ignore_params(params: Mapping[str, Any]) -> list[str]: ...
|
6
12
|
def is_resource_action(action_handle: Any) -> bool: ...
|
7
|
-
def get_resource_public_actions(resource_class: Any) ->
|
13
|
+
def get_resource_public_actions(resource_class: Any) -> list[Any]: ...
|
8
14
|
def get_identifier_values_for_example(identifier_names: Iterable[str]) -> str: ...
|
9
15
|
def get_identifier_args_for_signature(identifier_names: Iterable[str]) -> str: ...
|
10
16
|
def get_identifier_description(resource_name: str, identifier_name: str) -> str: ...
|
@@ -12,7 +18,7 @@ def add_resource_type_overview(
|
|
12
18
|
section: DocumentStructure,
|
13
19
|
resource_type: str,
|
14
20
|
description: str,
|
15
|
-
intro_link:
|
21
|
+
intro_link: str | None = ...,
|
16
22
|
) -> None: ...
|
17
23
|
|
18
24
|
class DocumentModifiedShape:
|
boto3-stubs/docs/waiter.pyi
CHANGED
@@ -1,32 +1,29 @@
|
|
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
29
|
def __init__(self, name: str) -> None:
|
@@ -35,20 +32,20 @@ class AttributeBase:
|
|
35
32
|
def __and__(self, value: Any) -> Any: ...
|
36
33
|
def __or__(self, value: Any) -> Any: ...
|
37
34
|
def __invert__(self) -> Any: ...
|
38
|
-
def eq(self, value: Any) ->
|
39
|
-
def lt(self, value: Any) ->
|
40
|
-
def lte(self, value: Any) ->
|
41
|
-
def gt(self, value: Any) ->
|
42
|
-
def gte(self, value: Any) ->
|
43
|
-
def begins_with(self, value: Any) ->
|
44
|
-
def between(self, low_value: Any, high_value: Any) ->
|
45
|
-
def __eq__(self, other:
|
46
|
-
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: ...
|
47
44
|
|
48
45
|
class ConditionAttributeBase(ConditionBase, AttributeBase):
|
49
46
|
def __init__(self, *values: Any) -> None: ...
|
50
|
-
def __eq__(self, other:
|
51
|
-
def __ne__(self, other:
|
47
|
+
def __eq__(self, other: object) -> bool: ...
|
48
|
+
def __ne__(self, other: object) -> bool: ...
|
52
49
|
|
53
50
|
class ComparisonCondition(ConditionBase):
|
54
51
|
expression_format: Literal["{0} {operator} {1}"] # type: ignore [override]
|
@@ -126,14 +123,10 @@ class Attr(AttributeBase):
|
|
126
123
|
def size(self) -> Size: ...
|
127
124
|
def attribute_type(self, value: Any) -> AttributeType: ...
|
128
125
|
|
129
|
-
BuiltConditionExpression
|
130
|
-
|
131
|
-
[
|
132
|
-
|
133
|
-
("attribute_name_placeholders", Dict[str, str]),
|
134
|
-
("attribute_value_placeholders", Dict[str, Any]),
|
135
|
-
],
|
136
|
-
)
|
126
|
+
class BuiltConditionExpression(NamedTuple):
|
127
|
+
condition_expression: str
|
128
|
+
attribute_name_placeholders: dict[str, str]
|
129
|
+
attribute_value_placeholders: dict[str, Any]
|
137
130
|
|
138
131
|
class ConditionExpressionBuilder:
|
139
132
|
def __init__(self) -> None: ...
|
boto3-stubs/dynamodb/table.pyi
CHANGED
@@ -1,16 +1,22 @@
|
|
1
|
+
"""
|
2
|
+
Type annotations for boto3.dynamodb.table module.
|
3
|
+
|
4
|
+
Copyright 2024 Vlad Emelianov
|
5
|
+
"""
|
6
|
+
|
1
7
|
import logging
|
2
8
|
from types import TracebackType
|
3
|
-
from typing import Any,
|
9
|
+
from typing import Any, TypeVar
|
4
10
|
|
5
11
|
from botocore.client import BaseClient
|
6
12
|
|
7
13
|
logger: logging.Logger
|
8
14
|
|
9
|
-
def register_table_methods(base_classes:
|
15
|
+
def register_table_methods(base_classes: list[Any], **kwargs: Any) -> None: ...
|
10
16
|
|
11
17
|
class TableResource:
|
12
18
|
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
13
|
-
def batch_writer(self, overwrite_by_pkeys:
|
19
|
+
def batch_writer(self, overwrite_by_pkeys: list[str] | None = ...) -> BatchWriter: ...
|
14
20
|
|
15
21
|
_R = TypeVar("_R")
|
16
22
|
|
@@ -20,14 +26,14 @@ class BatchWriter:
|
|
20
26
|
table_name: str,
|
21
27
|
client: BaseClient,
|
22
28
|
flush_amount: int = ...,
|
23
|
-
overwrite_by_pkeys:
|
29
|
+
overwrite_by_pkeys: list[str] | None = ...,
|
24
30
|
) -> None: ...
|
25
|
-
def put_item(self, Item:
|
26
|
-
def delete_item(self, Key:
|
31
|
+
def put_item(self, Item: dict[str, Any]) -> None: ...
|
32
|
+
def delete_item(self, Key: dict[str, Any]) -> None: ...
|
27
33
|
def __enter__(self: _R) -> _R: ...
|
28
34
|
def __exit__(
|
29
35
|
self,
|
30
|
-
exc_type:
|
31
|
-
exc_value:
|
32
|
-
tb:
|
36
|
+
exc_type: type[BaseException] | None,
|
37
|
+
exc_value: BaseException | None,
|
38
|
+
tb: TracebackType | None,
|
33
39
|
) -> None: ...
|
@@ -1,11 +1,17 @@
|
|
1
|
-
|
1
|
+
"""
|
2
|
+
Type annotations for boto3.dynamodb.transform module.
|
3
|
+
|
4
|
+
Copyright 2024 Vlad Emelianov
|
5
|
+
"""
|
6
|
+
|
7
|
+
from typing import Any, Callable
|
2
8
|
|
3
9
|
from boto3.dynamodb.conditions import ConditionExpressionBuilder
|
4
10
|
from boto3.dynamodb.types import TypeDeserializer, TypeSerializer
|
5
11
|
from boto3.resources.model import ResourceModel
|
6
12
|
from botocore.model import Shape
|
7
13
|
|
8
|
-
def register_high_level_interface(base_classes:
|
14
|
+
def register_high_level_interface(base_classes: list[Any], **kwargs: Any) -> None: ...
|
9
15
|
def copy_dynamodb_params(params: Any, **kwargs: Any) -> Any: ...
|
10
16
|
|
11
17
|
class DynamoDBHighLevelResource:
|
@@ -14,27 +20,27 @@ class DynamoDBHighLevelResource:
|
|
14
20
|
class TransformationInjector:
|
15
21
|
def __init__(
|
16
22
|
self,
|
17
|
-
transformer:
|
18
|
-
condition_builder:
|
19
|
-
serializer:
|
20
|
-
deserializer:
|
23
|
+
transformer: ParameterTransformer | None = ...,
|
24
|
+
condition_builder: ConditionExpressionBuilder | None = ...,
|
25
|
+
serializer: TypeSerializer | None = ...,
|
26
|
+
deserializer: TypeDeserializer | None = ...,
|
21
27
|
) -> None: ...
|
22
28
|
def inject_condition_expressions(
|
23
|
-
self, params:
|
29
|
+
self, params: dict[str, Any], model: ResourceModel
|
24
30
|
) -> None: ...
|
25
31
|
def inject_attribute_value_input(
|
26
|
-
self, params:
|
32
|
+
self, params: dict[str, Any], model: ResourceModel
|
27
33
|
) -> None: ...
|
28
34
|
def inject_attribute_value_output(
|
29
|
-
self, parsed:
|
35
|
+
self, parsed: dict[str, Any], model: ResourceModel
|
30
36
|
) -> None: ...
|
31
37
|
|
32
38
|
class ConditionExpressionTransformation:
|
33
39
|
def __init__(
|
34
40
|
self,
|
35
41
|
condition_builder: ConditionExpressionBuilder,
|
36
|
-
placeholder_names:
|
37
|
-
placeholder_values:
|
42
|
+
placeholder_names: list[str],
|
43
|
+
placeholder_values: list[str],
|
38
44
|
is_key_condition: bool = ...,
|
39
45
|
) -> None: ...
|
40
46
|
def __call__(self, value: Any) -> Any: ...
|
@@ -42,7 +48,7 @@ class ConditionExpressionTransformation:
|
|
42
48
|
class ParameterTransformer:
|
43
49
|
def transform(
|
44
50
|
self,
|
45
|
-
params:
|
51
|
+
params: dict[str, Any],
|
46
52
|
model: Shape,
|
47
53
|
transformation: Callable[[Any], Any],
|
48
54
|
target_shape: str,
|
boto3-stubs/dynamodb/types.pyi
CHANGED
@@ -1,32 +1,23 @@
|
|
1
|
-
|
1
|
+
"""
|
2
|
+
Type annotations for boto3.dynamodb.types module.
|
3
|
+
|
4
|
+
Copyright 2024 Vlad Emelianov
|
5
|
+
"""
|
6
|
+
|
2
7
|
from decimal import Context
|
3
|
-
from typing import Any, Mapping, Sequence,
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
{
|
17
|
-
"S": str,
|
18
|
-
"N": str,
|
19
|
-
"B": bytes,
|
20
|
-
"SS": Sequence[str],
|
21
|
-
"NS": Sequence[str],
|
22
|
-
"BS": Sequence[bytes],
|
23
|
-
"M": Mapping[str, Any],
|
24
|
-
"L": Sequence[Any],
|
25
|
-
"NULL": bool,
|
26
|
-
"BOOL": bool,
|
27
|
-
},
|
28
|
-
total=False,
|
29
|
-
)
|
8
|
+
from typing import Any, Literal, Mapping, Sequence, TypedDict
|
9
|
+
|
10
|
+
class _AttributeValueTypeDef(TypedDict, total=False):
|
11
|
+
S: str
|
12
|
+
N: str
|
13
|
+
B: bytes
|
14
|
+
SS: Sequence[str]
|
15
|
+
NS: Sequence[str]
|
16
|
+
BS: Sequence[bytes]
|
17
|
+
M: Mapping[str, Any]
|
18
|
+
L: Sequence[Any]
|
19
|
+
NULL: bool
|
20
|
+
BOOL: bool
|
30
21
|
|
31
22
|
STRING: Literal["S"]
|
32
23
|
NUMBER: Literal["N"]
|
@@ -41,14 +32,12 @@ LIST: Literal["L"]
|
|
41
32
|
|
42
33
|
DYNAMODB_CONTEXT: Context
|
43
34
|
|
44
|
-
BINARY_TYPES:
|
35
|
+
BINARY_TYPES: tuple[Any, ...]
|
45
36
|
|
46
37
|
class Binary:
|
47
38
|
def __init__(self, value: Any) -> None: ...
|
48
|
-
def __eq__(self, other:
|
49
|
-
def __ne__(self, other:
|
50
|
-
def __repr__(self) -> str: ...
|
51
|
-
def __str__(self) -> str: ...
|
39
|
+
def __eq__(self, other: object) -> bool: ...
|
40
|
+
def __ne__(self, other: object) -> bool: ...
|
52
41
|
def __bytes__(self) -> str: ...
|
53
42
|
def __hash__(self) -> int: ...
|
54
43
|
|
boto3-stubs/ec2/createtags.pyi
CHANGED
@@ -1,6 +1,12 @@
|
|
1
|
-
|
1
|
+
"""
|
2
|
+
Type annotations for boto3.ec2.createtags module.
|
3
|
+
|
4
|
+
Copyright 2024 Vlad Emelianov
|
5
|
+
"""
|
6
|
+
|
7
|
+
from typing import Any, Iterable
|
2
8
|
|
3
9
|
def inject_create_tags(
|
4
|
-
event_name: str, class_attributes:
|
10
|
+
event_name: str, class_attributes: dict[str, Any], **kwargs: Any
|
5
11
|
) -> None: ...
|
6
|
-
def create_tags(self: Any, **kwargs: Iterable[Any]) ->
|
12
|
+
def create_tags(self: Any, **kwargs: Iterable[Any]) -> list[dict[str, Any]]: ...
|