mypy-boto3-dynamodb 1.28.36__py3-none-any.whl → 1.28.66__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 +1 -0
- mypy_boto3_dynamodb/__init__.pyi +1 -0
- mypy_boto3_dynamodb/__main__.py +4 -3
- mypy_boto3_dynamodb/client.py +50 -23
- mypy_boto3_dynamodb/client.pyi +113 -23
- mypy_boto3_dynamodb/literals.py +10 -0
- mypy_boto3_dynamodb/literals.pyi +10 -0
- mypy_boto3_dynamodb/paginator.py +1 -0
- mypy_boto3_dynamodb/paginator.pyi +1 -0
- mypy_boto3_dynamodb/service_resource.py +17 -8
- mypy_boto3_dynamodb/service_resource.pyi +39 -8
- mypy_boto3_dynamodb/type_defs.py +62 -44
- mypy_boto3_dynamodb/type_defs.pyi +62 -44
- mypy_boto3_dynamodb/version.py +2 -1
- mypy_boto3_dynamodb/waiter.py +1 -0
- mypy_boto3_dynamodb/waiter.pyi +1 -0
- {mypy_boto3_dynamodb-1.28.36.dist-info → mypy_boto3_dynamodb-1.28.66.dist-info}/METADATA +5 -6
- mypy_boto3_dynamodb-1.28.66.dist-info/RECORD +22 -0
- mypy_boto3_dynamodb-1.28.36.dist-info/RECORD +0 -22
- {mypy_boto3_dynamodb-1.28.36.dist-info → mypy_boto3_dynamodb-1.28.66.dist-info}/LICENSE +0 -0
- {mypy_boto3_dynamodb-1.28.36.dist-info → mypy_boto3_dynamodb-1.28.66.dist-info}/WHEEL +0 -0
- {mypy_boto3_dynamodb-1.28.36.dist-info → mypy_boto3_dynamodb-1.28.66.dist-info}/top_level.txt +0 -0
mypy_boto3_dynamodb/literals.py
CHANGED
|
@@ -11,6 +11,7 @@ Usage::
|
|
|
11
11
|
data: AttributeActionType = "ADD"
|
|
12
12
|
```
|
|
13
13
|
"""
|
|
14
|
+
|
|
14
15
|
import sys
|
|
15
16
|
|
|
16
17
|
if sys.version_info >= (3, 12):
|
|
@@ -34,6 +35,8 @@ __all__ = (
|
|
|
34
35
|
"DestinationStatusType",
|
|
35
36
|
"ExportFormatType",
|
|
36
37
|
"ExportStatusType",
|
|
38
|
+
"ExportTypeType",
|
|
39
|
+
"ExportViewTypeType",
|
|
37
40
|
"GlobalTableStatusType",
|
|
38
41
|
"ImportStatusType",
|
|
39
42
|
"IndexStatusType",
|
|
@@ -112,6 +115,8 @@ ContributorInsightsStatusType = Literal["DISABLED", "DISABLING", "ENABLED", "ENA
|
|
|
112
115
|
DestinationStatusType = Literal["ACTIVE", "DISABLED", "DISABLING", "ENABLE_FAILED", "ENABLING"]
|
|
113
116
|
ExportFormatType = Literal["DYNAMODB_JSON", "ION"]
|
|
114
117
|
ExportStatusType = Literal["COMPLETED", "FAILED", "IN_PROGRESS"]
|
|
118
|
+
ExportTypeType = Literal["FULL_EXPORT", "INCREMENTAL_EXPORT"]
|
|
119
|
+
ExportViewTypeType = Literal["NEW_AND_OLD_IMAGES", "NEW_IMAGE"]
|
|
115
120
|
GlobalTableStatusType = Literal["ACTIVE", "CREATING", "DELETING", "UPDATING"]
|
|
116
121
|
ImportStatusType = Literal["CANCELLED", "CANCELLING", "COMPLETED", "FAILED", "IN_PROGRESS"]
|
|
117
122
|
IndexStatusType = Literal["ACTIVE", "CREATING", "DELETING", "UPDATING"]
|
|
@@ -192,6 +197,8 @@ ServiceName = Literal[
|
|
|
192
197
|
"backup-gateway",
|
|
193
198
|
"backupstorage",
|
|
194
199
|
"batch",
|
|
200
|
+
"bedrock",
|
|
201
|
+
"bedrock-runtime",
|
|
195
202
|
"billingconductor",
|
|
196
203
|
"braket",
|
|
197
204
|
"budgets",
|
|
@@ -246,6 +253,7 @@ ServiceName = Literal[
|
|
|
246
253
|
"dataexchange",
|
|
247
254
|
"datapipeline",
|
|
248
255
|
"datasync",
|
|
256
|
+
"datazone",
|
|
249
257
|
"dax",
|
|
250
258
|
"detective",
|
|
251
259
|
"devicefarm",
|
|
@@ -391,6 +399,7 @@ ServiceName = Literal[
|
|
|
391
399
|
"mturk",
|
|
392
400
|
"mwaa",
|
|
393
401
|
"neptune",
|
|
402
|
+
"neptunedata",
|
|
394
403
|
"network-firewall",
|
|
395
404
|
"networkmanager",
|
|
396
405
|
"nimble",
|
|
@@ -406,6 +415,7 @@ ServiceName = Literal[
|
|
|
406
415
|
"panorama",
|
|
407
416
|
"payment-cryptography",
|
|
408
417
|
"payment-cryptography-data",
|
|
418
|
+
"pca-connector-ad",
|
|
409
419
|
"personalize",
|
|
410
420
|
"personalize-events",
|
|
411
421
|
"personalize-runtime",
|
mypy_boto3_dynamodb/literals.pyi
CHANGED
|
@@ -11,6 +11,7 @@ Usage::
|
|
|
11
11
|
data: AttributeActionType = "ADD"
|
|
12
12
|
```
|
|
13
13
|
"""
|
|
14
|
+
|
|
14
15
|
import sys
|
|
15
16
|
|
|
16
17
|
if sys.version_info >= (3, 12):
|
|
@@ -33,6 +34,8 @@ __all__ = (
|
|
|
33
34
|
"DestinationStatusType",
|
|
34
35
|
"ExportFormatType",
|
|
35
36
|
"ExportStatusType",
|
|
37
|
+
"ExportTypeType",
|
|
38
|
+
"ExportViewTypeType",
|
|
36
39
|
"GlobalTableStatusType",
|
|
37
40
|
"ImportStatusType",
|
|
38
41
|
"IndexStatusType",
|
|
@@ -110,6 +113,8 @@ ContributorInsightsStatusType = Literal["DISABLED", "DISABLING", "ENABLED", "ENA
|
|
|
110
113
|
DestinationStatusType = Literal["ACTIVE", "DISABLED", "DISABLING", "ENABLE_FAILED", "ENABLING"]
|
|
111
114
|
ExportFormatType = Literal["DYNAMODB_JSON", "ION"]
|
|
112
115
|
ExportStatusType = Literal["COMPLETED", "FAILED", "IN_PROGRESS"]
|
|
116
|
+
ExportTypeType = Literal["FULL_EXPORT", "INCREMENTAL_EXPORT"]
|
|
117
|
+
ExportViewTypeType = Literal["NEW_AND_OLD_IMAGES", "NEW_IMAGE"]
|
|
113
118
|
GlobalTableStatusType = Literal["ACTIVE", "CREATING", "DELETING", "UPDATING"]
|
|
114
119
|
ImportStatusType = Literal["CANCELLED", "CANCELLING", "COMPLETED", "FAILED", "IN_PROGRESS"]
|
|
115
120
|
IndexStatusType = Literal["ACTIVE", "CREATING", "DELETING", "UPDATING"]
|
|
@@ -190,6 +195,8 @@ ServiceName = Literal[
|
|
|
190
195
|
"backup-gateway",
|
|
191
196
|
"backupstorage",
|
|
192
197
|
"batch",
|
|
198
|
+
"bedrock",
|
|
199
|
+
"bedrock-runtime",
|
|
193
200
|
"billingconductor",
|
|
194
201
|
"braket",
|
|
195
202
|
"budgets",
|
|
@@ -244,6 +251,7 @@ ServiceName = Literal[
|
|
|
244
251
|
"dataexchange",
|
|
245
252
|
"datapipeline",
|
|
246
253
|
"datasync",
|
|
254
|
+
"datazone",
|
|
247
255
|
"dax",
|
|
248
256
|
"detective",
|
|
249
257
|
"devicefarm",
|
|
@@ -389,6 +397,7 @@ ServiceName = Literal[
|
|
|
389
397
|
"mturk",
|
|
390
398
|
"mwaa",
|
|
391
399
|
"neptune",
|
|
400
|
+
"neptunedata",
|
|
392
401
|
"network-firewall",
|
|
393
402
|
"networkmanager",
|
|
394
403
|
"nimble",
|
|
@@ -404,6 +413,7 @@ ServiceName = Literal[
|
|
|
404
413
|
"panorama",
|
|
405
414
|
"payment-cryptography",
|
|
406
415
|
"payment-cryptography-data",
|
|
416
|
+
"pca-connector-ad",
|
|
407
417
|
"personalize",
|
|
408
418
|
"personalize-events",
|
|
409
419
|
"personalize-runtime",
|
mypy_boto3_dynamodb/paginator.py
CHANGED
|
@@ -17,6 +17,7 @@ Usage::
|
|
|
17
17
|
my_table: dynamodb_resources.Table = resource.Table(...)
|
|
18
18
|
```
|
|
19
19
|
"""
|
|
20
|
+
|
|
20
21
|
from datetime import datetime
|
|
21
22
|
from typing import Iterator, List, Mapping, Sequence
|
|
22
23
|
|
|
@@ -223,7 +224,8 @@ class Table(ServiceResource):
|
|
|
223
224
|
) -> GetItemOutputTableTypeDef:
|
|
224
225
|
"""
|
|
225
226
|
The `GetItem` operation returns a set of attributes for the item with the given
|
|
226
|
-
primary
|
|
227
|
+
primary
|
|
228
|
+
key.
|
|
227
229
|
|
|
228
230
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.get_item)
|
|
229
231
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tableget_item-method)
|
|
@@ -232,7 +234,8 @@ class Table(ServiceResource):
|
|
|
232
234
|
def load(self) -> None:
|
|
233
235
|
"""
|
|
234
236
|
Calls :py:meth:`DynamoDB.Client.describe_table` to update the attributes of the
|
|
235
|
-
Table
|
|
237
|
+
Table
|
|
238
|
+
resource.
|
|
236
239
|
|
|
237
240
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.load)
|
|
238
241
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tableload-method)
|
|
@@ -281,7 +284,8 @@ class Table(ServiceResource):
|
|
|
281
284
|
) -> QueryOutputTableTypeDef:
|
|
282
285
|
"""
|
|
283
286
|
You must provide the name of the partition key attribute and a single value for
|
|
284
|
-
that
|
|
287
|
+
that
|
|
288
|
+
attribute.
|
|
285
289
|
|
|
286
290
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.query)
|
|
287
291
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tablequery-method)
|
|
@@ -290,7 +294,8 @@ class Table(ServiceResource):
|
|
|
290
294
|
def reload(self) -> None:
|
|
291
295
|
"""
|
|
292
296
|
Calls :py:meth:`DynamoDB.Client.describe_table` to update the attributes of the
|
|
293
|
-
Table
|
|
297
|
+
Table
|
|
298
|
+
resource.
|
|
294
299
|
|
|
295
300
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.reload)
|
|
296
301
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tablereload-method)
|
|
@@ -317,7 +322,8 @@ class Table(ServiceResource):
|
|
|
317
322
|
) -> ScanOutputTableTypeDef:
|
|
318
323
|
"""
|
|
319
324
|
The `Scan` operation returns one or more items and item attributes by accessing
|
|
320
|
-
every item in a table or a secondary
|
|
325
|
+
every item in a table or a secondary
|
|
326
|
+
index.
|
|
321
327
|
|
|
322
328
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.scan)
|
|
323
329
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tablescan-method)
|
|
@@ -338,7 +344,8 @@ class Table(ServiceResource):
|
|
|
338
344
|
) -> "_Table":
|
|
339
345
|
"""
|
|
340
346
|
Modifies the provisioned throughput settings, global secondary indexes, or
|
|
341
|
-
DynamoDB Streams settings for a given
|
|
347
|
+
DynamoDB Streams settings for a given
|
|
348
|
+
table.
|
|
342
349
|
|
|
343
350
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.update)
|
|
344
351
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tableupdate-method)
|
|
@@ -362,7 +369,8 @@ class Table(ServiceResource):
|
|
|
362
369
|
) -> UpdateItemOutputTableTypeDef:
|
|
363
370
|
"""
|
|
364
371
|
Edits an existing item's attributes, or adds a new item to the table if it does
|
|
365
|
-
not already
|
|
372
|
+
not already
|
|
373
|
+
exist.
|
|
366
374
|
|
|
367
375
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.update_item)
|
|
368
376
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tableupdate_item-method)
|
|
@@ -417,7 +425,8 @@ class DynamoDBServiceResource(ServiceResource):
|
|
|
417
425
|
) -> BatchGetItemOutputServiceResourceTypeDef:
|
|
418
426
|
"""
|
|
419
427
|
The `BatchGetItem` operation returns the attributes of one or more items from
|
|
420
|
-
one or more
|
|
428
|
+
one or more
|
|
429
|
+
tables.
|
|
421
430
|
|
|
422
431
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.ServiceResource.batch_get_item)
|
|
423
432
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#dynamodbserviceresourcebatch_get_item-method)
|
|
@@ -17,6 +17,7 @@ Usage::
|
|
|
17
17
|
my_table: dynamodb_resources.Table = resource.Table(...)
|
|
18
18
|
```
|
|
19
19
|
"""
|
|
20
|
+
|
|
20
21
|
from datetime import datetime
|
|
21
22
|
from typing import Iterator, List, Mapping, Sequence
|
|
22
23
|
|
|
@@ -90,6 +91,7 @@ class ServiceResourceTablesCollection(ResourceCollection):
|
|
|
90
91
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.ServiceResource.tables)
|
|
91
92
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#serviceresourcetablescollection)
|
|
92
93
|
"""
|
|
94
|
+
|
|
93
95
|
def filter( # type: ignore
|
|
94
96
|
self, *, ExclusiveStartTableName: str = ..., Limit: int = ...
|
|
95
97
|
) -> "ServiceResourceTablesCollection":
|
|
@@ -99,6 +101,7 @@ class ServiceResourceTablesCollection(ResourceCollection):
|
|
|
99
101
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.ServiceResource.tables)
|
|
100
102
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#serviceresourcetablescollection)
|
|
101
103
|
"""
|
|
104
|
+
|
|
102
105
|
def limit(self, count: int) -> "ServiceResourceTablesCollection":
|
|
103
106
|
"""
|
|
104
107
|
Return at most this many Tables.
|
|
@@ -106,6 +109,7 @@ class ServiceResourceTablesCollection(ResourceCollection):
|
|
|
106
109
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.ServiceResource.tables)
|
|
107
110
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#serviceresourcetablescollection)
|
|
108
111
|
"""
|
|
112
|
+
|
|
109
113
|
def page_size(self, count: int) -> "ServiceResourceTablesCollection":
|
|
110
114
|
"""
|
|
111
115
|
Fetch at most this many Tables per service request.
|
|
@@ -113,6 +117,7 @@ class ServiceResourceTablesCollection(ResourceCollection):
|
|
|
113
117
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.ServiceResource.tables)
|
|
114
118
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#serviceresourcetablescollection)
|
|
115
119
|
"""
|
|
120
|
+
|
|
116
121
|
def pages(self) -> Iterator[List["Table"]]:
|
|
117
122
|
"""
|
|
118
123
|
A generator which yields pages of Tables.
|
|
@@ -120,6 +125,7 @@ class ServiceResourceTablesCollection(ResourceCollection):
|
|
|
120
125
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.ServiceResource.tables)
|
|
121
126
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#serviceresourcetablescollection)
|
|
122
127
|
"""
|
|
128
|
+
|
|
123
129
|
def __iter__(self) -> Iterator["Table"]:
|
|
124
130
|
"""
|
|
125
131
|
A generator which yields Tables.
|
|
@@ -166,6 +172,7 @@ class Table(ServiceResource):
|
|
|
166
172
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.batch_writer)
|
|
167
173
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tablebatch_writer-method)
|
|
168
174
|
"""
|
|
175
|
+
|
|
169
176
|
def delete(self) -> DeleteTableOutputTableTypeDef:
|
|
170
177
|
"""
|
|
171
178
|
The `DeleteTable` operation deletes a table and all of its items.
|
|
@@ -173,6 +180,7 @@ class Table(ServiceResource):
|
|
|
173
180
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.delete)
|
|
174
181
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tabledelete-method)
|
|
175
182
|
"""
|
|
183
|
+
|
|
176
184
|
def delete_item(
|
|
177
185
|
self,
|
|
178
186
|
*,
|
|
@@ -193,6 +201,7 @@ class Table(ServiceResource):
|
|
|
193
201
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.delete_item)
|
|
194
202
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tabledelete_item-method)
|
|
195
203
|
"""
|
|
204
|
+
|
|
196
205
|
def get_available_subresources(self) -> Sequence[str]:
|
|
197
206
|
"""
|
|
198
207
|
Returns a list of all the available sub-resources for this Resource.
|
|
@@ -200,6 +209,7 @@ class Table(ServiceResource):
|
|
|
200
209
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.get_available_subresources)
|
|
201
210
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tableget_available_subresources-method)
|
|
202
211
|
"""
|
|
212
|
+
|
|
203
213
|
def get_item(
|
|
204
214
|
self,
|
|
205
215
|
*,
|
|
@@ -212,19 +222,23 @@ class Table(ServiceResource):
|
|
|
212
222
|
) -> GetItemOutputTableTypeDef:
|
|
213
223
|
"""
|
|
214
224
|
The `GetItem` operation returns a set of attributes for the item with the given
|
|
215
|
-
primary
|
|
225
|
+
primary
|
|
226
|
+
key.
|
|
216
227
|
|
|
217
228
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.get_item)
|
|
218
229
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tableget_item-method)
|
|
219
230
|
"""
|
|
231
|
+
|
|
220
232
|
def load(self) -> None:
|
|
221
233
|
"""
|
|
222
234
|
Calls :py:meth:`DynamoDB.Client.describe_table` to update the attributes of the
|
|
223
|
-
Table
|
|
235
|
+
Table
|
|
236
|
+
resource.
|
|
224
237
|
|
|
225
238
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.load)
|
|
226
239
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tableload-method)
|
|
227
240
|
"""
|
|
241
|
+
|
|
228
242
|
def put_item(
|
|
229
243
|
self,
|
|
230
244
|
*,
|
|
@@ -245,6 +259,7 @@ class Table(ServiceResource):
|
|
|
245
259
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.put_item)
|
|
246
260
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tableput_item-method)
|
|
247
261
|
"""
|
|
262
|
+
|
|
248
263
|
def query(
|
|
249
264
|
self,
|
|
250
265
|
*,
|
|
@@ -267,19 +282,23 @@ class Table(ServiceResource):
|
|
|
267
282
|
) -> QueryOutputTableTypeDef:
|
|
268
283
|
"""
|
|
269
284
|
You must provide the name of the partition key attribute and a single value for
|
|
270
|
-
that
|
|
285
|
+
that
|
|
286
|
+
attribute.
|
|
271
287
|
|
|
272
288
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.query)
|
|
273
289
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tablequery-method)
|
|
274
290
|
"""
|
|
291
|
+
|
|
275
292
|
def reload(self) -> None:
|
|
276
293
|
"""
|
|
277
294
|
Calls :py:meth:`DynamoDB.Client.describe_table` to update the attributes of the
|
|
278
|
-
Table
|
|
295
|
+
Table
|
|
296
|
+
resource.
|
|
279
297
|
|
|
280
298
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.reload)
|
|
281
299
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tablereload-method)
|
|
282
300
|
"""
|
|
301
|
+
|
|
283
302
|
def scan(
|
|
284
303
|
self,
|
|
285
304
|
*,
|
|
@@ -301,11 +320,13 @@ class Table(ServiceResource):
|
|
|
301
320
|
) -> ScanOutputTableTypeDef:
|
|
302
321
|
"""
|
|
303
322
|
The `Scan` operation returns one or more items and item attributes by accessing
|
|
304
|
-
every item in a table or a secondary
|
|
323
|
+
every item in a table or a secondary
|
|
324
|
+
index.
|
|
305
325
|
|
|
306
326
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.scan)
|
|
307
327
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tablescan-method)
|
|
308
328
|
"""
|
|
329
|
+
|
|
309
330
|
def update(
|
|
310
331
|
self,
|
|
311
332
|
*,
|
|
@@ -321,11 +342,13 @@ class Table(ServiceResource):
|
|
|
321
342
|
) -> "_Table":
|
|
322
343
|
"""
|
|
323
344
|
Modifies the provisioned throughput settings, global secondary indexes, or
|
|
324
|
-
DynamoDB Streams settings for a given
|
|
345
|
+
DynamoDB Streams settings for a given
|
|
346
|
+
table.
|
|
325
347
|
|
|
326
348
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.update)
|
|
327
349
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tableupdate-method)
|
|
328
350
|
"""
|
|
351
|
+
|
|
329
352
|
def update_item(
|
|
330
353
|
self,
|
|
331
354
|
*,
|
|
@@ -344,11 +367,13 @@ class Table(ServiceResource):
|
|
|
344
367
|
) -> UpdateItemOutputTableTypeDef:
|
|
345
368
|
"""
|
|
346
369
|
Edits an existing item's attributes, or adds a new item to the table if it does
|
|
347
|
-
not already
|
|
370
|
+
not already
|
|
371
|
+
exist.
|
|
348
372
|
|
|
349
373
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.update_item)
|
|
350
374
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tableupdate_item-method)
|
|
351
375
|
"""
|
|
376
|
+
|
|
352
377
|
def wait_until_exists(self) -> None:
|
|
353
378
|
"""
|
|
354
379
|
Waits until this Table is exists.
|
|
@@ -356,6 +381,7 @@ class Table(ServiceResource):
|
|
|
356
381
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.wait_until_exists)
|
|
357
382
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tablewait_until_exists-method)
|
|
358
383
|
"""
|
|
384
|
+
|
|
359
385
|
def wait_until_not_exists(self) -> None:
|
|
360
386
|
"""
|
|
361
387
|
Waits until this Table is not exists.
|
|
@@ -385,6 +411,7 @@ class DynamoDBServiceResource(ServiceResource):
|
|
|
385
411
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.ServiceResource.Table)
|
|
386
412
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#dynamodbserviceresourcetable-method)
|
|
387
413
|
"""
|
|
414
|
+
|
|
388
415
|
def batch_get_item(
|
|
389
416
|
self,
|
|
390
417
|
*,
|
|
@@ -393,11 +420,13 @@ class DynamoDBServiceResource(ServiceResource):
|
|
|
393
420
|
) -> BatchGetItemOutputServiceResourceTypeDef:
|
|
394
421
|
"""
|
|
395
422
|
The `BatchGetItem` operation returns the attributes of one or more items from
|
|
396
|
-
one or more
|
|
423
|
+
one or more
|
|
424
|
+
tables.
|
|
397
425
|
|
|
398
426
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.ServiceResource.batch_get_item)
|
|
399
427
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#dynamodbserviceresourcebatch_get_item-method)
|
|
400
428
|
"""
|
|
429
|
+
|
|
401
430
|
def batch_write_item(
|
|
402
431
|
self,
|
|
403
432
|
*,
|
|
@@ -412,6 +441,7 @@ class DynamoDBServiceResource(ServiceResource):
|
|
|
412
441
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.ServiceResource.batch_write_item)
|
|
413
442
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#dynamodbserviceresourcebatch_write_item-method)
|
|
414
443
|
"""
|
|
444
|
+
|
|
415
445
|
def create_table(
|
|
416
446
|
self,
|
|
417
447
|
*,
|
|
@@ -434,6 +464,7 @@ class DynamoDBServiceResource(ServiceResource):
|
|
|
434
464
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.ServiceResource.create_table)
|
|
435
465
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#dynamodbserviceresourcecreate_table-method)
|
|
436
466
|
"""
|
|
467
|
+
|
|
437
468
|
def get_available_subresources(self) -> Sequence[str]:
|
|
438
469
|
"""
|
|
439
470
|
Returns a list of all the available sub-resources for this Resource.
|
mypy_boto3_dynamodb/type_defs.py
CHANGED
|
@@ -11,6 +11,7 @@ Usage::
|
|
|
11
11
|
data: ResponseMetadataTypeDef = ...
|
|
12
12
|
```
|
|
13
13
|
"""
|
|
14
|
+
|
|
14
15
|
import sys
|
|
15
16
|
from datetime import datetime
|
|
16
17
|
from decimal import Decimal
|
|
@@ -33,6 +34,8 @@ from .literals import (
|
|
|
33
34
|
DestinationStatusType,
|
|
34
35
|
ExportFormatType,
|
|
35
36
|
ExportStatusType,
|
|
37
|
+
ExportTypeType,
|
|
38
|
+
ExportViewTypeType,
|
|
36
39
|
GlobalTableStatusType,
|
|
37
40
|
ImportStatusType,
|
|
38
41
|
IndexStatusType,
|
|
@@ -105,7 +108,6 @@ __all__ = (
|
|
|
105
108
|
"FailureExceptionTypeDef",
|
|
106
109
|
"EndpointTypeDef",
|
|
107
110
|
"DescribeExportInputRequestTypeDef",
|
|
108
|
-
"ExportDescriptionTypeDef",
|
|
109
111
|
"DescribeGlobalTableInputRequestTypeDef",
|
|
110
112
|
"DescribeGlobalTableSettingsInputRequestTypeDef",
|
|
111
113
|
"DescribeImportInputRequestTypeDef",
|
|
@@ -116,6 +118,7 @@ __all__ = (
|
|
|
116
118
|
"DescribeTableReplicaAutoScalingInputRequestTypeDef",
|
|
117
119
|
"DescribeTimeToLiveInputRequestTypeDef",
|
|
118
120
|
"TimeToLiveDescriptionTypeDef",
|
|
121
|
+
"IncrementalExportSpecificationTypeDef",
|
|
119
122
|
"ExportSummaryTypeDef",
|
|
120
123
|
"TimestampTypeDef",
|
|
121
124
|
"ProvisionedThroughputDescriptionTypeDef",
|
|
@@ -188,12 +191,11 @@ __all__ = (
|
|
|
188
191
|
"ReplicaUpdateTypeDef",
|
|
189
192
|
"DescribeContributorInsightsOutputTypeDef",
|
|
190
193
|
"DescribeEndpointsResponseTypeDef",
|
|
191
|
-
"DescribeExportOutputTypeDef",
|
|
192
|
-
"ExportTableToPointInTimeOutputTypeDef",
|
|
193
194
|
"DescribeKinesisStreamingDestinationOutputTypeDef",
|
|
194
195
|
"DescribeTableInputTableExistsWaitTypeDef",
|
|
195
196
|
"DescribeTableInputTableNotExistsWaitTypeDef",
|
|
196
197
|
"DescribeTimeToLiveOutputTypeDef",
|
|
198
|
+
"ExportDescriptionTypeDef",
|
|
197
199
|
"ListExportsOutputTypeDef",
|
|
198
200
|
"ExportTableToPointInTimeInputRequestTypeDef",
|
|
199
201
|
"ListBackupsInputRequestTypeDef",
|
|
@@ -263,6 +265,8 @@ __all__ = (
|
|
|
263
265
|
"CreateReplicationGroupMemberActionTypeDef",
|
|
264
266
|
"UpdateReplicationGroupMemberActionTypeDef",
|
|
265
267
|
"UpdateGlobalTableInputRequestTypeDef",
|
|
268
|
+
"DescribeExportOutputTypeDef",
|
|
269
|
+
"ExportTableToPointInTimeOutputTypeDef",
|
|
266
270
|
"ListImportsOutputTypeDef",
|
|
267
271
|
"BatchExecuteStatementOutputTypeDef",
|
|
268
272
|
"BatchExecuteStatementInputRequestTypeDef",
|
|
@@ -646,31 +650,6 @@ DescribeExportInputRequestTypeDef = TypedDict(
|
|
|
646
650
|
},
|
|
647
651
|
)
|
|
648
652
|
|
|
649
|
-
ExportDescriptionTypeDef = TypedDict(
|
|
650
|
-
"ExportDescriptionTypeDef",
|
|
651
|
-
{
|
|
652
|
-
"ExportArn": NotRequired[str],
|
|
653
|
-
"ExportStatus": NotRequired[ExportStatusType],
|
|
654
|
-
"StartTime": NotRequired[datetime],
|
|
655
|
-
"EndTime": NotRequired[datetime],
|
|
656
|
-
"ExportManifest": NotRequired[str],
|
|
657
|
-
"TableArn": NotRequired[str],
|
|
658
|
-
"TableId": NotRequired[str],
|
|
659
|
-
"ExportTime": NotRequired[datetime],
|
|
660
|
-
"ClientToken": NotRequired[str],
|
|
661
|
-
"S3Bucket": NotRequired[str],
|
|
662
|
-
"S3BucketOwner": NotRequired[str],
|
|
663
|
-
"S3Prefix": NotRequired[str],
|
|
664
|
-
"S3SseAlgorithm": NotRequired[S3SseAlgorithmType],
|
|
665
|
-
"S3SseKmsKeyId": NotRequired[str],
|
|
666
|
-
"FailureCode": NotRequired[str],
|
|
667
|
-
"FailureMessage": NotRequired[str],
|
|
668
|
-
"ExportFormat": NotRequired[ExportFormatType],
|
|
669
|
-
"BilledSizeBytes": NotRequired[int],
|
|
670
|
-
"ItemCount": NotRequired[int],
|
|
671
|
-
},
|
|
672
|
-
)
|
|
673
|
-
|
|
674
653
|
DescribeGlobalTableInputRequestTypeDef = TypedDict(
|
|
675
654
|
"DescribeGlobalTableInputRequestTypeDef",
|
|
676
655
|
{
|
|
@@ -745,11 +724,21 @@ TimeToLiveDescriptionTypeDef = TypedDict(
|
|
|
745
724
|
},
|
|
746
725
|
)
|
|
747
726
|
|
|
727
|
+
IncrementalExportSpecificationTypeDef = TypedDict(
|
|
728
|
+
"IncrementalExportSpecificationTypeDef",
|
|
729
|
+
{
|
|
730
|
+
"ExportFromTime": NotRequired[datetime],
|
|
731
|
+
"ExportToTime": NotRequired[datetime],
|
|
732
|
+
"ExportViewType": NotRequired[ExportViewTypeType],
|
|
733
|
+
},
|
|
734
|
+
)
|
|
735
|
+
|
|
748
736
|
ExportSummaryTypeDef = TypedDict(
|
|
749
737
|
"ExportSummaryTypeDef",
|
|
750
738
|
{
|
|
751
739
|
"ExportArn": NotRequired[str],
|
|
752
740
|
"ExportStatus": NotRequired[ExportStatusType],
|
|
741
|
+
"ExportType": NotRequired[ExportTypeType],
|
|
753
742
|
},
|
|
754
743
|
)
|
|
755
744
|
|
|
@@ -1405,22 +1394,6 @@ DescribeEndpointsResponseTypeDef = TypedDict(
|
|
|
1405
1394
|
},
|
|
1406
1395
|
)
|
|
1407
1396
|
|
|
1408
|
-
DescribeExportOutputTypeDef = TypedDict(
|
|
1409
|
-
"DescribeExportOutputTypeDef",
|
|
1410
|
-
{
|
|
1411
|
-
"ExportDescription": ExportDescriptionTypeDef,
|
|
1412
|
-
"ResponseMetadata": ResponseMetadataTypeDef,
|
|
1413
|
-
},
|
|
1414
|
-
)
|
|
1415
|
-
|
|
1416
|
-
ExportTableToPointInTimeOutputTypeDef = TypedDict(
|
|
1417
|
-
"ExportTableToPointInTimeOutputTypeDef",
|
|
1418
|
-
{
|
|
1419
|
-
"ExportDescription": ExportDescriptionTypeDef,
|
|
1420
|
-
"ResponseMetadata": ResponseMetadataTypeDef,
|
|
1421
|
-
},
|
|
1422
|
-
)
|
|
1423
|
-
|
|
1424
1397
|
DescribeKinesisStreamingDestinationOutputTypeDef = TypedDict(
|
|
1425
1398
|
"DescribeKinesisStreamingDestinationOutputTypeDef",
|
|
1426
1399
|
{
|
|
@@ -1454,6 +1427,33 @@ DescribeTimeToLiveOutputTypeDef = TypedDict(
|
|
|
1454
1427
|
},
|
|
1455
1428
|
)
|
|
1456
1429
|
|
|
1430
|
+
ExportDescriptionTypeDef = TypedDict(
|
|
1431
|
+
"ExportDescriptionTypeDef",
|
|
1432
|
+
{
|
|
1433
|
+
"ExportArn": NotRequired[str],
|
|
1434
|
+
"ExportStatus": NotRequired[ExportStatusType],
|
|
1435
|
+
"StartTime": NotRequired[datetime],
|
|
1436
|
+
"EndTime": NotRequired[datetime],
|
|
1437
|
+
"ExportManifest": NotRequired[str],
|
|
1438
|
+
"TableArn": NotRequired[str],
|
|
1439
|
+
"TableId": NotRequired[str],
|
|
1440
|
+
"ExportTime": NotRequired[datetime],
|
|
1441
|
+
"ClientToken": NotRequired[str],
|
|
1442
|
+
"S3Bucket": NotRequired[str],
|
|
1443
|
+
"S3BucketOwner": NotRequired[str],
|
|
1444
|
+
"S3Prefix": NotRequired[str],
|
|
1445
|
+
"S3SseAlgorithm": NotRequired[S3SseAlgorithmType],
|
|
1446
|
+
"S3SseKmsKeyId": NotRequired[str],
|
|
1447
|
+
"FailureCode": NotRequired[str],
|
|
1448
|
+
"FailureMessage": NotRequired[str],
|
|
1449
|
+
"ExportFormat": NotRequired[ExportFormatType],
|
|
1450
|
+
"BilledSizeBytes": NotRequired[int],
|
|
1451
|
+
"ItemCount": NotRequired[int],
|
|
1452
|
+
"ExportType": NotRequired[ExportTypeType],
|
|
1453
|
+
"IncrementalExportSpecification": NotRequired[IncrementalExportSpecificationTypeDef],
|
|
1454
|
+
},
|
|
1455
|
+
)
|
|
1456
|
+
|
|
1457
1457
|
ListExportsOutputTypeDef = TypedDict(
|
|
1458
1458
|
"ListExportsOutputTypeDef",
|
|
1459
1459
|
{
|
|
@@ -1475,6 +1475,8 @@ ExportTableToPointInTimeInputRequestTypeDef = TypedDict(
|
|
|
1475
1475
|
"S3SseAlgorithm": NotRequired[S3SseAlgorithmType],
|
|
1476
1476
|
"S3SseKmsKeyId": NotRequired[str],
|
|
1477
1477
|
"ExportFormat": NotRequired[ExportFormatType],
|
|
1478
|
+
"ExportType": NotRequired[ExportTypeType],
|
|
1479
|
+
"IncrementalExportSpecification": NotRequired[IncrementalExportSpecificationTypeDef],
|
|
1478
1480
|
},
|
|
1479
1481
|
)
|
|
1480
1482
|
|
|
@@ -2230,6 +2232,22 @@ UpdateGlobalTableInputRequestTypeDef = TypedDict(
|
|
|
2230
2232
|
},
|
|
2231
2233
|
)
|
|
2232
2234
|
|
|
2235
|
+
DescribeExportOutputTypeDef = TypedDict(
|
|
2236
|
+
"DescribeExportOutputTypeDef",
|
|
2237
|
+
{
|
|
2238
|
+
"ExportDescription": ExportDescriptionTypeDef,
|
|
2239
|
+
"ResponseMetadata": ResponseMetadataTypeDef,
|
|
2240
|
+
},
|
|
2241
|
+
)
|
|
2242
|
+
|
|
2243
|
+
ExportTableToPointInTimeOutputTypeDef = TypedDict(
|
|
2244
|
+
"ExportTableToPointInTimeOutputTypeDef",
|
|
2245
|
+
{
|
|
2246
|
+
"ExportDescription": ExportDescriptionTypeDef,
|
|
2247
|
+
"ResponseMetadata": ResponseMetadataTypeDef,
|
|
2248
|
+
},
|
|
2249
|
+
)
|
|
2250
|
+
|
|
2233
2251
|
ListImportsOutputTypeDef = TypedDict(
|
|
2234
2252
|
"ListImportsOutputTypeDef",
|
|
2235
2253
|
{
|