mypy-boto3-dynamodb 1.35.60__py3-none-any.whl → 1.35.93__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.
- mypy_boto3_dynamodb/__init__.py +8 -1
- mypy_boto3_dynamodb/__init__.pyi +7 -1
- mypy_boto3_dynamodb/__main__.py +11 -8
- mypy_boto3_dynamodb/client.py +176 -181
- mypy_boto3_dynamodb/client.pyi +176 -180
- mypy_boto3_dynamodb/literals.py +19 -1
- mypy_boto3_dynamodb/literals.pyi +19 -1
- mypy_boto3_dynamodb/paginator.py +69 -45
- mypy_boto3_dynamodb/paginator.pyi +65 -44
- mypy_boto3_dynamodb/service_resource.py +100 -102
- mypy_boto3_dynamodb/service_resource.pyi +100 -102
- mypy_boto3_dynamodb/type_defs.py +70 -67
- mypy_boto3_dynamodb/type_defs.pyi +66 -61
- mypy_boto3_dynamodb/version.py +3 -1
- mypy_boto3_dynamodb/waiter.py +16 -11
- mypy_boto3_dynamodb/waiter.pyi +16 -11
- {mypy_boto3_dynamodb-1.35.60.dist-info → mypy_boto3_dynamodb-1.35.93.dist-info}/LICENSE +1 -1
- {mypy_boto3_dynamodb-1.35.60.dist-info → mypy_boto3_dynamodb-1.35.93.dist-info}/METADATA +79 -26
- mypy_boto3_dynamodb-1.35.93.dist-info/RECORD +22 -0
- {mypy_boto3_dynamodb-1.35.60.dist-info → mypy_boto3_dynamodb-1.35.93.dist-info}/WHEEL +1 -1
- mypy_boto3_dynamodb-1.35.60.dist-info/RECORD +0 -22
- {mypy_boto3_dynamodb-1.35.60.dist-info → mypy_boto3_dynamodb-1.35.93.dist-info}/top_level.txt +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""
|
|
2
|
-
Type annotations for dynamodb service ServiceResource
|
|
2
|
+
Type annotations for dynamodb service ServiceResource.
|
|
3
3
|
|
|
4
|
-
[
|
|
4
|
+
[Documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/)
|
|
5
5
|
|
|
6
6
|
Usage::
|
|
7
7
|
|
|
@@ -16,18 +16,21 @@ Usage::
|
|
|
16
16
|
|
|
17
17
|
my_table: dynamodb_resources.Table = resource.Table(...)
|
|
18
18
|
```
|
|
19
|
+
|
|
20
|
+
Copyright 2025 Vlad Emelianov
|
|
19
21
|
"""
|
|
20
22
|
|
|
23
|
+
from __future__ import annotations
|
|
24
|
+
|
|
21
25
|
import sys
|
|
22
26
|
from datetime import datetime
|
|
23
|
-
from typing import Iterator, List, Sequence
|
|
24
27
|
|
|
25
28
|
from boto3.dynamodb.table import BatchWriter
|
|
26
29
|
from boto3.resources.base import ResourceMeta, ServiceResource
|
|
27
30
|
from boto3.resources.collection import ResourceCollection
|
|
28
31
|
|
|
29
32
|
from .client import DynamoDBClient
|
|
30
|
-
from .literals import TableStatusType
|
|
33
|
+
from .literals import MultiRegionConsistencyType, TableStatusType
|
|
31
34
|
from .type_defs import (
|
|
32
35
|
ArchivalSummaryTypeDef,
|
|
33
36
|
AttributeDefinitionTypeDef,
|
|
@@ -64,6 +67,11 @@ from .type_defs import (
|
|
|
64
67
|
UpdateTableInputTableUpdateTypeDef,
|
|
65
68
|
)
|
|
66
69
|
|
|
70
|
+
if sys.version_info >= (3, 9):
|
|
71
|
+
from builtins import list as List
|
|
72
|
+
from collections.abc import Iterator, Sequence
|
|
73
|
+
else:
|
|
74
|
+
from typing import Iterator, List, Sequence
|
|
67
75
|
if sys.version_info >= (3, 12):
|
|
68
76
|
from typing import Unpack
|
|
69
77
|
else:
|
|
@@ -73,65 +81,69 @@ __all__ = ("DynamoDBServiceResource", "ServiceResourceTablesCollection", "Table"
|
|
|
73
81
|
|
|
74
82
|
class ServiceResourceTablesCollection(ResourceCollection):
|
|
75
83
|
"""
|
|
76
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.ServiceResource.tables)
|
|
84
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/tables.html#DynamoDB.ServiceResource.tables)
|
|
77
85
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#serviceresourcetablescollection)
|
|
78
86
|
"""
|
|
79
|
-
def all(self) ->
|
|
87
|
+
def all(self) -> ServiceResourceTablesCollection:
|
|
80
88
|
"""
|
|
81
|
-
Get all items from the collection, optionally with a custom page size and item
|
|
89
|
+
Get all items from the collection, optionally with a custom page size and item
|
|
90
|
+
count limit.
|
|
82
91
|
|
|
83
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.ServiceResource.
|
|
92
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/tables.html#DynamoDB.ServiceResource.all)
|
|
84
93
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#serviceresourcetablescollection)
|
|
85
94
|
"""
|
|
86
95
|
|
|
87
|
-
def filter( # type: ignore
|
|
96
|
+
def filter( # type: ignore[override]
|
|
88
97
|
self, *, ExclusiveStartTableName: str = ..., Limit: int = ...
|
|
89
|
-
) ->
|
|
98
|
+
) -> ServiceResourceTablesCollection:
|
|
90
99
|
"""
|
|
91
|
-
Get items from the collection, passing keyword arguments along as parameters to
|
|
100
|
+
Get items from the collection, passing keyword arguments along as parameters to
|
|
101
|
+
the underlying service operation, which are typically used to filter the
|
|
102
|
+
results.
|
|
92
103
|
|
|
93
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#
|
|
104
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/tables.html#filter)
|
|
94
105
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#serviceresourcetablescollection)
|
|
95
106
|
"""
|
|
96
107
|
|
|
97
|
-
def limit(self, count: int) ->
|
|
108
|
+
def limit(self, count: int) -> ServiceResourceTablesCollection:
|
|
98
109
|
"""
|
|
99
110
|
Return at most this many Tables.
|
|
100
111
|
|
|
101
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#
|
|
112
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/tables.html#limit)
|
|
102
113
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#serviceresourcetablescollection)
|
|
103
114
|
"""
|
|
104
115
|
|
|
105
|
-
def page_size(self, count: int) ->
|
|
116
|
+
def page_size(self, count: int) -> ServiceResourceTablesCollection:
|
|
106
117
|
"""
|
|
107
118
|
Fetch at most this many Tables per service request.
|
|
108
119
|
|
|
109
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#
|
|
120
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/tables.html#page_size)
|
|
110
121
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#serviceresourcetablescollection)
|
|
111
122
|
"""
|
|
112
123
|
|
|
113
|
-
def pages(self) -> Iterator[List[
|
|
124
|
+
def pages(self) -> Iterator[List[Table]]:
|
|
114
125
|
"""
|
|
115
126
|
A generator which yields pages of Tables.
|
|
116
127
|
|
|
117
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#
|
|
128
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/tables.html#pages)
|
|
118
129
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#serviceresourcetablescollection)
|
|
119
130
|
"""
|
|
120
131
|
|
|
121
|
-
def __iter__(self) -> Iterator[
|
|
132
|
+
def __iter__(self) -> Iterator[Table]:
|
|
122
133
|
"""
|
|
123
134
|
A generator which yields Tables.
|
|
124
135
|
|
|
125
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#
|
|
136
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/tables.html#__iter__)
|
|
126
137
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#serviceresourcetablescollection)
|
|
127
138
|
"""
|
|
128
139
|
|
|
129
140
|
class Table(ServiceResource):
|
|
130
141
|
"""
|
|
131
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.
|
|
142
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/index.html#DynamoDB.Table)
|
|
132
143
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#table)
|
|
133
144
|
"""
|
|
134
145
|
|
|
146
|
+
name: str
|
|
135
147
|
attribute_definitions: List[AttributeDefinitionTypeDef]
|
|
136
148
|
table_name: str
|
|
137
149
|
key_schema: List[KeySchemaElementTypeDef]
|
|
@@ -157,22 +169,22 @@ class Table(ServiceResource):
|
|
|
157
169
|
deletion_protection_enabled: bool
|
|
158
170
|
on_demand_throughput: OnDemandThroughputTypeDef
|
|
159
171
|
warm_throughput: TableWarmThroughputDescriptionTypeDef
|
|
160
|
-
|
|
161
|
-
meta:
|
|
172
|
+
multi_region_consistency: MultiRegionConsistencyType
|
|
173
|
+
meta: DynamoDBResourceMeta # type: ignore[override]
|
|
162
174
|
|
|
163
|
-
def
|
|
175
|
+
def get_available_subresources(self) -> Sequence[str]:
|
|
164
176
|
"""
|
|
165
|
-
|
|
177
|
+
Returns a list of all the available sub-resources for this Table.
|
|
166
178
|
|
|
167
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html
|
|
168
|
-
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#
|
|
179
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/get_available_subresources.html)
|
|
180
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tableget_available_subresources-method)
|
|
169
181
|
"""
|
|
170
182
|
|
|
171
183
|
def delete(self) -> DeleteTableOutputTypeDef:
|
|
172
184
|
"""
|
|
173
|
-
The
|
|
185
|
+
The <code>DeleteTable</code> operation deletes a table and all of its items.
|
|
174
186
|
|
|
175
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html
|
|
187
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/delete.html)
|
|
176
188
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tabledelete-method)
|
|
177
189
|
"""
|
|
178
190
|
|
|
@@ -182,87 +194,55 @@ class Table(ServiceResource):
|
|
|
182
194
|
"""
|
|
183
195
|
Deletes a single item in a table by primary key.
|
|
184
196
|
|
|
185
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html
|
|
197
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/delete_item.html)
|
|
186
198
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tabledelete_item-method)
|
|
187
199
|
"""
|
|
188
200
|
|
|
189
|
-
def get_available_subresources(self) -> Sequence[str]:
|
|
190
|
-
"""
|
|
191
|
-
Returns a list of all the available sub-resources for this Resource.
|
|
192
|
-
|
|
193
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.get_available_subresources)
|
|
194
|
-
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tableget_available_subresources-method)
|
|
195
|
-
"""
|
|
196
|
-
|
|
197
201
|
def get_item(
|
|
198
202
|
self, **kwargs: Unpack[GetItemInputTableGetItemTypeDef]
|
|
199
203
|
) -> GetItemOutputTableTypeDef:
|
|
200
204
|
"""
|
|
201
|
-
The
|
|
202
|
-
primary
|
|
203
|
-
key.
|
|
205
|
+
The <code>GetItem</code> operation returns a set of attributes for the item
|
|
206
|
+
with the given primary key.
|
|
204
207
|
|
|
205
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html
|
|
208
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/get_item.html)
|
|
206
209
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tableget_item-method)
|
|
207
210
|
"""
|
|
208
211
|
|
|
209
|
-
def load(self) -> None:
|
|
210
|
-
"""
|
|
211
|
-
Calls :py:meth:`DynamoDB.Client.describe_table` to update the attributes of the
|
|
212
|
-
Table
|
|
213
|
-
resource.
|
|
214
|
-
|
|
215
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.load)
|
|
216
|
-
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tableload-method)
|
|
217
|
-
"""
|
|
218
|
-
|
|
219
212
|
def put_item(
|
|
220
213
|
self, **kwargs: Unpack[PutItemInputTablePutItemTypeDef]
|
|
221
214
|
) -> PutItemOutputTableTypeDef:
|
|
222
215
|
"""
|
|
223
216
|
Creates a new item, or replaces an old item with a new item.
|
|
224
217
|
|
|
225
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html
|
|
218
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/put_item.html)
|
|
226
219
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tableput_item-method)
|
|
227
220
|
"""
|
|
228
221
|
|
|
229
222
|
def query(self, **kwargs: Unpack[QueryInputTableQueryTypeDef]) -> QueryOutputTableTypeDef:
|
|
230
223
|
"""
|
|
231
224
|
You must provide the name of the partition key attribute and a single value for
|
|
232
|
-
that
|
|
233
|
-
attribute.
|
|
225
|
+
that attribute.
|
|
234
226
|
|
|
235
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html
|
|
227
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/query.html)
|
|
236
228
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tablequery-method)
|
|
237
229
|
"""
|
|
238
230
|
|
|
239
|
-
def reload(self) -> None:
|
|
240
|
-
"""
|
|
241
|
-
Calls :py:meth:`DynamoDB.Client.describe_table` to update the attributes of the
|
|
242
|
-
Table
|
|
243
|
-
resource.
|
|
244
|
-
|
|
245
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.reload)
|
|
246
|
-
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tablereload-method)
|
|
247
|
-
"""
|
|
248
|
-
|
|
249
231
|
def scan(self, **kwargs: Unpack[ScanInputTableScanTypeDef]) -> ScanOutputTableTypeDef:
|
|
250
232
|
"""
|
|
251
|
-
The
|
|
252
|
-
every item in a table or a secondary
|
|
253
|
-
index.
|
|
233
|
+
The <code>Scan</code> operation returns one or more items and item attributes
|
|
234
|
+
by accessing every item in a table or a secondary index.
|
|
254
235
|
|
|
255
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html
|
|
236
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/scan.html)
|
|
256
237
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tablescan-method)
|
|
257
238
|
"""
|
|
258
239
|
|
|
259
|
-
def update(self, **kwargs: Unpack[UpdateTableInputTableUpdateTypeDef]) ->
|
|
240
|
+
def update(self, **kwargs: Unpack[UpdateTableInputTableUpdateTypeDef]) -> _Table:
|
|
260
241
|
"""
|
|
261
242
|
Modifies the provisioned throughput settings, global secondary indexes, or
|
|
262
|
-
DynamoDB Streams settings for a given
|
|
263
|
-
table.
|
|
243
|
+
DynamoDB Streams settings for a given table.
|
|
264
244
|
|
|
265
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html
|
|
245
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/update.html)
|
|
266
246
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tableupdate-method)
|
|
267
247
|
"""
|
|
268
248
|
|
|
@@ -271,60 +251,78 @@ class Table(ServiceResource):
|
|
|
271
251
|
) -> UpdateItemOutputTableTypeDef:
|
|
272
252
|
"""
|
|
273
253
|
Edits an existing item's attributes, or adds a new item to the table if it does
|
|
274
|
-
not already
|
|
275
|
-
exist.
|
|
254
|
+
not already exist.
|
|
276
255
|
|
|
277
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html
|
|
256
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/update_item.html)
|
|
278
257
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tableupdate_item-method)
|
|
279
258
|
"""
|
|
280
259
|
|
|
281
260
|
def wait_until_exists(self) -> None:
|
|
282
261
|
"""
|
|
283
|
-
Waits until
|
|
262
|
+
Waits until Table is exists.
|
|
284
263
|
|
|
285
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html
|
|
264
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/wait_until_exists.html)
|
|
286
265
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tablewait_until_exists-method)
|
|
287
266
|
"""
|
|
288
267
|
|
|
289
268
|
def wait_until_not_exists(self) -> None:
|
|
290
269
|
"""
|
|
291
|
-
Waits until
|
|
270
|
+
Waits until Table is not_exists.
|
|
292
271
|
|
|
293
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html
|
|
272
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/wait_until_not_exists.html)
|
|
294
273
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tablewait_until_not_exists-method)
|
|
295
274
|
"""
|
|
296
275
|
|
|
276
|
+
def batch_writer(self, overwrite_by_pkeys: List[str] = ...) -> BatchWriter:
|
|
277
|
+
"""
|
|
278
|
+
Create a batch writer object.
|
|
279
|
+
|
|
280
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/batch_writer.html)
|
|
281
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tablebatch_writer-method)
|
|
282
|
+
"""
|
|
283
|
+
|
|
284
|
+
def load(self) -> None:
|
|
285
|
+
"""
|
|
286
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/load.html)
|
|
287
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tableload-method)
|
|
288
|
+
"""
|
|
289
|
+
|
|
290
|
+
def reload(self) -> None:
|
|
291
|
+
"""
|
|
292
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/reload.html)
|
|
293
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tablereload-method)
|
|
294
|
+
"""
|
|
295
|
+
|
|
297
296
|
_Table = Table
|
|
298
297
|
|
|
299
298
|
class DynamoDBResourceMeta(ResourceMeta):
|
|
300
|
-
client: DynamoDBClient
|
|
299
|
+
client: DynamoDBClient # type: ignore[override]
|
|
301
300
|
|
|
302
301
|
class DynamoDBServiceResource(ServiceResource):
|
|
303
302
|
"""
|
|
304
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html
|
|
303
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/index.html)
|
|
305
304
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/)
|
|
306
305
|
"""
|
|
307
306
|
|
|
308
|
-
meta:
|
|
307
|
+
meta: DynamoDBResourceMeta # type: ignore[override]
|
|
309
308
|
tables: ServiceResourceTablesCollection
|
|
310
309
|
|
|
311
|
-
def
|
|
310
|
+
def get_available_subresources(self) -> Sequence[str]:
|
|
312
311
|
"""
|
|
313
|
-
|
|
312
|
+
Returns a list of all the available sub-resources for this resource.
|
|
314
313
|
|
|
315
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html
|
|
316
|
-
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#
|
|
314
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/get_available_subresources.html)
|
|
315
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#dynamodbserviceresourceget_available_subresources-method)
|
|
317
316
|
"""
|
|
318
317
|
|
|
319
318
|
def batch_get_item(
|
|
320
319
|
self, **kwargs: Unpack[BatchGetItemInputServiceResourceBatchGetItemTypeDef]
|
|
321
320
|
) -> BatchGetItemOutputServiceResourceTypeDef:
|
|
322
321
|
"""
|
|
323
|
-
The
|
|
324
|
-
one or more
|
|
325
|
-
tables.
|
|
322
|
+
The <code>BatchGetItem</code> operation returns the attributes of one or more
|
|
323
|
+
items from one or more tables.
|
|
326
324
|
|
|
327
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html
|
|
325
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/batch_get_item.html)
|
|
328
326
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#dynamodbserviceresourcebatch_get_item-method)
|
|
329
327
|
"""
|
|
330
328
|
|
|
@@ -332,27 +330,27 @@ class DynamoDBServiceResource(ServiceResource):
|
|
|
332
330
|
self, **kwargs: Unpack[BatchWriteItemInputServiceResourceBatchWriteItemTypeDef]
|
|
333
331
|
) -> BatchWriteItemOutputServiceResourceTypeDef:
|
|
334
332
|
"""
|
|
335
|
-
The
|
|
336
|
-
tables.
|
|
333
|
+
The <code>BatchWriteItem</code> operation puts or deletes multiple items in one
|
|
334
|
+
or more tables.
|
|
337
335
|
|
|
338
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html
|
|
336
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/batch_write_item.html)
|
|
339
337
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#dynamodbserviceresourcebatch_write_item-method)
|
|
340
338
|
"""
|
|
341
339
|
|
|
342
340
|
def create_table(
|
|
343
341
|
self, **kwargs: Unpack[CreateTableInputServiceResourceCreateTableTypeDef]
|
|
344
|
-
) ->
|
|
342
|
+
) -> _Table:
|
|
345
343
|
"""
|
|
346
|
-
The
|
|
344
|
+
The <code>CreateTable</code> operation adds a new table to your account.
|
|
347
345
|
|
|
348
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html
|
|
346
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/create_table.html)
|
|
349
347
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#dynamodbserviceresourcecreate_table-method)
|
|
350
348
|
"""
|
|
351
349
|
|
|
352
|
-
def
|
|
350
|
+
def Table(self, name: str) -> _Table:
|
|
353
351
|
"""
|
|
354
|
-
|
|
352
|
+
Creates a Table resource.
|
|
355
353
|
|
|
356
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html
|
|
357
|
-
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#
|
|
354
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/service-resource/Table.html)
|
|
355
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#dynamodbserviceresourcetable-method)
|
|
358
356
|
"""
|