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