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.
@@ -1,7 +1,7 @@
1
1
  """
2
2
  Type annotations for dynamodb service type definitions.
3
3
 
4
- [Open documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/type_defs/)
4
+ [Documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/type_defs/)
5
5
 
6
6
  Usage::
7
7
 
@@ -10,12 +10,16 @@ Usage::
10
10
 
11
11
  data: ArchivalSummaryTypeDef = ...
12
12
  ```
13
+
14
+ Copyright 2025 Vlad Emelianov
13
15
  """
14
16
 
17
+ from __future__ import annotations
18
+
15
19
  import sys
16
20
  from datetime import datetime
17
21
  from decimal import Decimal
18
- from typing import Any, Dict, List, Mapping, Sequence, Set, Union
22
+ from typing import Any, Union
19
23
 
20
24
  from boto3.dynamodb.conditions import ConditionBase
21
25
 
@@ -43,6 +47,7 @@ from .literals import (
43
47
  InputCompressionTypeType,
44
48
  InputFormatType,
45
49
  KeyTypeType,
50
+ MultiRegionConsistencyType,
46
51
  PointInTimeRecoveryStatusType,
47
52
  ProjectionTypeType,
48
53
  ReplicaStatusType,
@@ -61,6 +66,13 @@ from .literals import (
61
66
  TimeToLiveStatusType,
62
67
  )
63
68
 
69
+ if sys.version_info >= (3, 9):
70
+ from builtins import dict as Dict
71
+ from builtins import list as List
72
+ from builtins import set as Set
73
+ from collections.abc import Mapping, Sequence
74
+ else:
75
+ from typing import Dict, List, Mapping, Sequence, Set
64
76
  if sys.version_info >= (3, 12):
65
77
  from typing import NotRequired, TypedDict
66
78
  else:
@@ -156,8 +168,7 @@ __all__ = (
156
168
  "DescribeKinesisStreamingDestinationOutputTypeDef",
157
169
  "DescribeLimitsOutputTypeDef",
158
170
  "DescribeTableInputRequestTypeDef",
159
- "DescribeTableInputTableExistsWaitTypeDef",
160
- "DescribeTableInputTableNotExistsWaitTypeDef",
171
+ "DescribeTableInputWaitTypeDef",
161
172
  "DescribeTableOutputTypeDef",
162
173
  "DescribeTableReplicaAutoScalingInputRequestTypeDef",
163
174
  "DescribeTableReplicaAutoScalingOutputTypeDef",
@@ -189,7 +200,6 @@ __all__ = (
189
200
  "GlobalSecondaryIndexInfoTypeDef",
190
201
  "GlobalSecondaryIndexOutputTypeDef",
191
202
  "GlobalSecondaryIndexTypeDef",
192
- "GlobalSecondaryIndexUnionTypeDef",
193
203
  "GlobalSecondaryIndexUpdateTypeDef",
194
204
  "GlobalSecondaryIndexWarmThroughputDescriptionTypeDef",
195
205
  "GlobalTableDescriptionTypeDef",
@@ -217,7 +227,7 @@ __all__ = (
217
227
  "KinesisDataStreamDestinationTypeDef",
218
228
  "KinesisStreamingDestinationInputRequestTypeDef",
219
229
  "KinesisStreamingDestinationOutputTypeDef",
220
- "ListBackupsInputListBackupsPaginateTypeDef",
230
+ "ListBackupsInputPaginateTypeDef",
221
231
  "ListBackupsInputRequestTypeDef",
222
232
  "ListBackupsOutputTypeDef",
223
233
  "ListContributorInsightsInputRequestTypeDef",
@@ -228,10 +238,10 @@ __all__ = (
228
238
  "ListGlobalTablesOutputTypeDef",
229
239
  "ListImportsInputRequestTypeDef",
230
240
  "ListImportsOutputTypeDef",
231
- "ListTablesInputListTablesPaginateTypeDef",
241
+ "ListTablesInputPaginateTypeDef",
232
242
  "ListTablesInputRequestTypeDef",
233
243
  "ListTablesOutputTypeDef",
234
- "ListTagsOfResourceInputListTagsOfResourcePaginateTypeDef",
244
+ "ListTagsOfResourceInputPaginateTypeDef",
235
245
  "ListTagsOfResourceInputRequestTypeDef",
236
246
  "ListTagsOfResourceOutputTypeDef",
237
247
  "LocalSecondaryIndexDescriptionTypeDef",
@@ -262,7 +272,7 @@ __all__ = (
262
272
  "PutResourcePolicyInputRequestTypeDef",
263
273
  "PutResourcePolicyOutputTypeDef",
264
274
  "PutTypeDef",
265
- "QueryInputQueryPaginateTypeDef",
275
+ "QueryInputPaginateTypeDef",
266
276
  "QueryInputRequestTypeDef",
267
277
  "QueryInputTableQueryTypeDef",
268
278
  "QueryOutputTableTypeDef",
@@ -290,8 +300,8 @@ __all__ = (
290
300
  "S3BucketSourceTypeDef",
291
301
  "SSEDescriptionTypeDef",
292
302
  "SSESpecificationTypeDef",
303
+ "ScanInputPaginateTypeDef",
293
304
  "ScanInputRequestTypeDef",
294
- "ScanInputScanPaginateTypeDef",
295
305
  "ScanInputTableScanTypeDef",
296
306
  "ScanOutputTableTypeDef",
297
307
  "ScanOutputTypeDef",
@@ -686,11 +696,6 @@ class ProvisionedThroughputDescriptionTypeDef(TypedDict):
686
696
  WriteCapacityUnits: NotRequired[int]
687
697
 
688
698
 
689
- class ProjectionTypeDef(TypedDict):
690
- ProjectionType: NotRequired[ProjectionTypeType]
691
- NonKeyAttributes: NotRequired[Sequence[str]]
692
-
693
-
694
699
  class S3BucketSourceTypeDef(TypedDict):
695
700
  S3Bucket: str
696
701
  S3BucketOwner: NotRequired[str]
@@ -745,6 +750,11 @@ class PointInTimeRecoverySpecificationTypeDef(TypedDict):
745
750
  PointInTimeRecoveryEnabled: bool
746
751
 
747
752
 
753
+ class ProjectionTypeDef(TypedDict):
754
+ ProjectionType: NotRequired[ProjectionTypeType]
755
+ NonKeyAttributes: NotRequired[Sequence[str]]
756
+
757
+
748
758
  class PutResourcePolicyInputRequestTypeDef(TypedDict):
749
759
  ResourceArn: str
750
760
  Policy: str
@@ -1086,12 +1096,7 @@ class DescribeKinesisStreamingDestinationOutputTypeDef(TypedDict):
1086
1096
  ResponseMetadata: ResponseMetadataTypeDef
1087
1097
 
1088
1098
 
1089
- class DescribeTableInputTableExistsWaitTypeDef(TypedDict):
1090
- TableName: str
1091
- WaiterConfig: NotRequired[WaiterConfigTypeDef]
1092
-
1093
-
1094
- class DescribeTableInputTableNotExistsWaitTypeDef(TypedDict):
1099
+ class DescribeTableInputWaitTypeDef(TypedDict):
1095
1100
  TableName: str
1096
1101
  WaiterConfig: NotRequired[WaiterConfigTypeDef]
1097
1102
 
@@ -1213,18 +1218,6 @@ class GlobalSecondaryIndexDescriptionTypeDef(TypedDict):
1213
1218
  WarmThroughput: NotRequired[GlobalSecondaryIndexWarmThroughputDescriptionTypeDef]
1214
1219
 
1215
1220
 
1216
- class GlobalSecondaryIndexTypeDef(TypedDict):
1217
- IndexName: str
1218
- KeySchema: Sequence[KeySchemaElementTypeDef]
1219
- Projection: ProjectionTypeDef
1220
- ProvisionedThroughput: NotRequired[ProvisionedThroughputTypeDef]
1221
- OnDemandThroughput: NotRequired[OnDemandThroughputTypeDef]
1222
- WarmThroughput: NotRequired[WarmThroughputTypeDef]
1223
-
1224
-
1225
- ProjectionUnionTypeDef = Union[ProjectionTypeDef, ProjectionOutputTypeDef]
1226
-
1227
-
1228
1221
  class ImportSummaryTypeDef(TypedDict):
1229
1222
  ImportArn: NotRequired[str]
1230
1223
  ImportStatus: NotRequired[ImportStatusType]
@@ -1236,7 +1229,7 @@ class ImportSummaryTypeDef(TypedDict):
1236
1229
  EndTime: NotRequired[datetime]
1237
1230
 
1238
1231
 
1239
- class ListBackupsInputListBackupsPaginateTypeDef(TypedDict):
1232
+ class ListBackupsInputPaginateTypeDef(TypedDict):
1240
1233
  TableName: NotRequired[str]
1241
1234
  TimeRangeLowerBound: NotRequired[TimestampTypeDef]
1242
1235
  TimeRangeUpperBound: NotRequired[TimestampTypeDef]
@@ -1244,11 +1237,11 @@ class ListBackupsInputListBackupsPaginateTypeDef(TypedDict):
1244
1237
  PaginationConfig: NotRequired[PaginatorConfigTypeDef]
1245
1238
 
1246
1239
 
1247
- class ListTablesInputListTablesPaginateTypeDef(TypedDict):
1240
+ class ListTablesInputPaginateTypeDef(TypedDict):
1248
1241
  PaginationConfig: NotRequired[PaginatorConfigTypeDef]
1249
1242
 
1250
1243
 
1251
- class ListTagsOfResourceInputListTagsOfResourcePaginateTypeDef(TypedDict):
1244
+ class ListTagsOfResourceInputPaginateTypeDef(TypedDict):
1252
1245
  ResourceArn: str
1253
1246
  PaginationConfig: NotRequired[PaginatorConfigTypeDef]
1254
1247
 
@@ -1258,6 +1251,9 @@ class UpdateContinuousBackupsInputRequestTypeDef(TypedDict):
1258
1251
  PointInTimeRecoverySpecification: PointInTimeRecoverySpecificationTypeDef
1259
1252
 
1260
1253
 
1254
+ ProjectionUnionTypeDef = Union[ProjectionTypeDef, ProjectionOutputTypeDef]
1255
+
1256
+
1261
1257
  class UpdateTimeToLiveInputRequestTypeDef(TypedDict):
1262
1258
  TableName: str
1263
1259
  TimeToLiveSpecification: TimeToLiveSpecificationTypeDef
@@ -1757,9 +1753,10 @@ class SourceTableFeatureDetailsTypeDef(TypedDict):
1757
1753
  SSEDescription: NotRequired[SSEDescriptionTypeDef]
1758
1754
 
1759
1755
 
1760
- GlobalSecondaryIndexUnionTypeDef = Union[
1761
- GlobalSecondaryIndexTypeDef, GlobalSecondaryIndexOutputTypeDef
1762
- ]
1756
+ class ListImportsOutputTypeDef(TypedDict):
1757
+ ImportSummaryList: List[ImportSummaryTypeDef]
1758
+ ResponseMetadata: ResponseMetadataTypeDef
1759
+ NextToken: NotRequired[str]
1763
1760
 
1764
1761
 
1765
1762
  class CreateGlobalSecondaryIndexActionTypeDef(TypedDict):
@@ -1771,16 +1768,19 @@ class CreateGlobalSecondaryIndexActionTypeDef(TypedDict):
1771
1768
  WarmThroughput: NotRequired[WarmThroughputTypeDef]
1772
1769
 
1773
1770
 
1774
- class LocalSecondaryIndexTypeDef(TypedDict):
1771
+ class GlobalSecondaryIndexTypeDef(TypedDict):
1775
1772
  IndexName: str
1776
1773
  KeySchema: Sequence[KeySchemaElementTypeDef]
1777
1774
  Projection: ProjectionUnionTypeDef
1775
+ ProvisionedThroughput: NotRequired[ProvisionedThroughputTypeDef]
1776
+ OnDemandThroughput: NotRequired[OnDemandThroughputTypeDef]
1777
+ WarmThroughput: NotRequired[WarmThroughputTypeDef]
1778
1778
 
1779
1779
 
1780
- class ListImportsOutputTypeDef(TypedDict):
1781
- ImportSummaryList: List[ImportSummaryTypeDef]
1782
- ResponseMetadata: ResponseMetadataTypeDef
1783
- NextToken: NotRequired[str]
1780
+ class LocalSecondaryIndexTypeDef(TypedDict):
1781
+ IndexName: str
1782
+ KeySchema: Sequence[KeySchemaElementTypeDef]
1783
+ Projection: ProjectionUnionTypeDef
1784
1784
 
1785
1785
 
1786
1786
  class BatchExecuteStatementOutputTypeDef(TypedDict):
@@ -1801,7 +1801,7 @@ class BatchExecuteStatementInputRequestTypeDef(TypedDict):
1801
1801
  ReturnConsumedCapacity: NotRequired[ReturnConsumedCapacityType]
1802
1802
 
1803
1803
 
1804
- class QueryInputQueryPaginateTypeDef(TypedDict):
1804
+ class QueryInputPaginateTypeDef(TypedDict):
1805
1805
  TableName: str
1806
1806
  IndexName: NotRequired[str]
1807
1807
  Select: NotRequired[SelectType]
@@ -1840,15 +1840,13 @@ class QueryInputRequestTypeDef(TypedDict):
1840
1840
  ExpressionAttributeValues: NotRequired[Mapping[str, UniversalAttributeValueTypeDef]]
1841
1841
 
1842
1842
 
1843
- class ScanInputRequestTypeDef(TypedDict):
1843
+ class ScanInputPaginateTypeDef(TypedDict):
1844
1844
  TableName: str
1845
1845
  IndexName: NotRequired[str]
1846
1846
  AttributesToGet: NotRequired[Sequence[str]]
1847
- Limit: NotRequired[int]
1848
1847
  Select: NotRequired[SelectType]
1849
1848
  ScanFilter: NotRequired[Mapping[str, ConditionTypeDef]]
1850
1849
  ConditionalOperator: NotRequired[ConditionalOperatorType]
1851
- ExclusiveStartKey: NotRequired[Mapping[str, UniversalAttributeValueTypeDef]]
1852
1850
  ReturnConsumedCapacity: NotRequired[ReturnConsumedCapacityType]
1853
1851
  TotalSegments: NotRequired[int]
1854
1852
  Segment: NotRequired[int]
@@ -1857,15 +1855,18 @@ class ScanInputRequestTypeDef(TypedDict):
1857
1855
  ExpressionAttributeNames: NotRequired[Mapping[str, str]]
1858
1856
  ExpressionAttributeValues: NotRequired[Mapping[str, UniversalAttributeValueTypeDef]]
1859
1857
  ConsistentRead: NotRequired[bool]
1858
+ PaginationConfig: NotRequired[PaginatorConfigTypeDef]
1860
1859
 
1861
1860
 
1862
- class ScanInputScanPaginateTypeDef(TypedDict):
1861
+ class ScanInputRequestTypeDef(TypedDict):
1863
1862
  TableName: str
1864
1863
  IndexName: NotRequired[str]
1865
1864
  AttributesToGet: NotRequired[Sequence[str]]
1865
+ Limit: NotRequired[int]
1866
1866
  Select: NotRequired[SelectType]
1867
1867
  ScanFilter: NotRequired[Mapping[str, ConditionTypeDef]]
1868
1868
  ConditionalOperator: NotRequired[ConditionalOperatorType]
1869
+ ExclusiveStartKey: NotRequired[Mapping[str, UniversalAttributeValueTypeDef]]
1869
1870
  ReturnConsumedCapacity: NotRequired[ReturnConsumedCapacityType]
1870
1871
  TotalSegments: NotRequired[int]
1871
1872
  Segment: NotRequired[int]
@@ -1874,7 +1875,6 @@ class ScanInputScanPaginateTypeDef(TypedDict):
1874
1875
  ExpressionAttributeNames: NotRequired[Mapping[str, str]]
1875
1876
  ExpressionAttributeValues: NotRequired[Mapping[str, UniversalAttributeValueTypeDef]]
1876
1877
  ConsistentRead: NotRequired[bool]
1877
- PaginationConfig: NotRequired[PaginatorConfigTypeDef]
1878
1878
 
1879
1879
 
1880
1880
  DeleteRequestUnionTypeDef = Union[DeleteRequestTypeDef, DeleteRequestOutputTypeDef]
@@ -2042,6 +2042,7 @@ class TableDescriptionTypeDef(TypedDict):
2042
2042
  DeletionProtectionEnabled: NotRequired[bool]
2043
2043
  OnDemandThroughput: NotRequired[OnDemandThroughputTypeDef]
2044
2044
  WarmThroughput: NotRequired[TableWarmThroughputDescriptionTypeDef]
2045
+ MultiRegionConsistency: NotRequired[MultiRegionConsistencyType]
2045
2046
 
2046
2047
 
2047
2048
  class ImportTableDescriptionTypeDef(TypedDict):
@@ -2072,6 +2073,12 @@ class BackupDescriptionTypeDef(TypedDict):
2072
2073
  SourceTableFeatureDetails: NotRequired[SourceTableFeatureDetailsTypeDef]
2073
2074
 
2074
2075
 
2076
+ class GlobalSecondaryIndexUpdateTypeDef(TypedDict):
2077
+ Update: NotRequired[UpdateGlobalSecondaryIndexActionTypeDef]
2078
+ Create: NotRequired[CreateGlobalSecondaryIndexActionTypeDef]
2079
+ Delete: NotRequired[DeleteGlobalSecondaryIndexActionTypeDef]
2080
+
2081
+
2075
2082
  class TableCreationParametersTypeDef(TypedDict):
2076
2083
  TableName: str
2077
2084
  AttributeDefinitions: Sequence[AttributeDefinitionTypeDef]
@@ -2080,13 +2087,7 @@ class TableCreationParametersTypeDef(TypedDict):
2080
2087
  ProvisionedThroughput: NotRequired[ProvisionedThroughputTypeDef]
2081
2088
  OnDemandThroughput: NotRequired[OnDemandThroughputTypeDef]
2082
2089
  SSESpecification: NotRequired[SSESpecificationTypeDef]
2083
- GlobalSecondaryIndexes: NotRequired[Sequence[GlobalSecondaryIndexUnionTypeDef]]
2084
-
2085
-
2086
- class GlobalSecondaryIndexUpdateTypeDef(TypedDict):
2087
- Update: NotRequired[UpdateGlobalSecondaryIndexActionTypeDef]
2088
- Create: NotRequired[CreateGlobalSecondaryIndexActionTypeDef]
2089
- Delete: NotRequired[DeleteGlobalSecondaryIndexActionTypeDef]
2090
+ GlobalSecondaryIndexes: NotRequired[Sequence[GlobalSecondaryIndexTypeDef]]
2090
2091
 
2091
2092
 
2092
2093
  class CreateTableInputRequestTypeDef(TypedDict):
@@ -2094,7 +2095,7 @@ class CreateTableInputRequestTypeDef(TypedDict):
2094
2095
  TableName: str
2095
2096
  KeySchema: Sequence[KeySchemaElementTypeDef]
2096
2097
  LocalSecondaryIndexes: NotRequired[Sequence[LocalSecondaryIndexTypeDef]]
2097
- GlobalSecondaryIndexes: NotRequired[Sequence[GlobalSecondaryIndexUnionTypeDef]]
2098
+ GlobalSecondaryIndexes: NotRequired[Sequence[GlobalSecondaryIndexTypeDef]]
2098
2099
  BillingMode: NotRequired[BillingModeType]
2099
2100
  ProvisionedThroughput: NotRequired[ProvisionedThroughputTypeDef]
2100
2101
  StreamSpecification: NotRequired[StreamSpecificationTypeDef]
@@ -2304,15 +2305,6 @@ class DescribeBackupOutputTypeDef(TypedDict):
2304
2305
  ResponseMetadata: ResponseMetadataTypeDef
2305
2306
 
2306
2307
 
2307
- class ImportTableInputRequestTypeDef(TypedDict):
2308
- S3BucketSource: S3BucketSourceTypeDef
2309
- InputFormat: InputFormatType
2310
- TableCreationParameters: TableCreationParametersTypeDef
2311
- ClientToken: NotRequired[str]
2312
- InputFormatOptions: NotRequired[InputFormatOptionsTypeDef]
2313
- InputCompressionType: NotRequired[InputCompressionTypeType]
2314
-
2315
-
2316
2308
  class UpdateTableInputRequestTypeDef(TypedDict):
2317
2309
  TableName: str
2318
2310
  AttributeDefinitions: NotRequired[Sequence[AttributeDefinitionTypeDef]]
@@ -2324,6 +2316,7 @@ class UpdateTableInputRequestTypeDef(TypedDict):
2324
2316
  ReplicaUpdates: NotRequired[Sequence[ReplicationGroupUpdateTypeDef]]
2325
2317
  TableClass: NotRequired[TableClassType]
2326
2318
  DeletionProtectionEnabled: NotRequired[bool]
2319
+ MultiRegionConsistency: NotRequired[MultiRegionConsistencyType]
2327
2320
  OnDemandThroughput: NotRequired[OnDemandThroughputTypeDef]
2328
2321
  WarmThroughput: NotRequired[WarmThroughputTypeDef]
2329
2322
 
@@ -2338,10 +2331,20 @@ class UpdateTableInputTableUpdateTypeDef(TypedDict):
2338
2331
  ReplicaUpdates: NotRequired[Sequence[ReplicationGroupUpdateTypeDef]]
2339
2332
  TableClass: NotRequired[TableClassType]
2340
2333
  DeletionProtectionEnabled: NotRequired[bool]
2334
+ MultiRegionConsistency: NotRequired[MultiRegionConsistencyType]
2341
2335
  OnDemandThroughput: NotRequired[OnDemandThroughputTypeDef]
2342
2336
  WarmThroughput: NotRequired[WarmThroughputTypeDef]
2343
2337
 
2344
2338
 
2339
+ class ImportTableInputRequestTypeDef(TypedDict):
2340
+ S3BucketSource: S3BucketSourceTypeDef
2341
+ InputFormat: InputFormatType
2342
+ TableCreationParameters: TableCreationParametersTypeDef
2343
+ ClientToken: NotRequired[str]
2344
+ InputFormatOptions: NotRequired[InputFormatOptionsTypeDef]
2345
+ InputCompressionType: NotRequired[InputCompressionTypeType]
2346
+
2347
+
2345
2348
  WriteRequestUnionTypeDef = Union[WriteRequestTypeDef, WriteRequestOutputTypeDef]
2346
2349
 
2347
2350