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