mypy-boto3-dynamodb 1.35.0__py3-none-any.whl → 1.35.24__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.
@@ -18,64 +18,56 @@ Usage::
18
18
  ```
19
19
  """
20
20
 
21
+ import sys
21
22
  from datetime import datetime
22
- from typing import Iterator, List, Mapping, Sequence
23
+ from typing import Iterator, List, Sequence
23
24
 
24
25
  from boto3.dynamodb.table import BatchWriter
25
26
  from boto3.resources.base import ResourceMeta, ServiceResource
26
27
  from boto3.resources.collection import ResourceCollection
27
28
 
28
29
  from .client import DynamoDBClient
29
- from .literals import (
30
- BillingModeType,
31
- ConditionalOperatorType,
32
- ReturnConsumedCapacityType,
33
- ReturnItemCollectionMetricsType,
34
- ReturnValuesOnConditionCheckFailureType,
35
- ReturnValueType,
36
- SelectType,
37
- TableClassType,
38
- TableStatusType,
39
- )
30
+ from .literals import TableStatusType
40
31
  from .type_defs import (
41
32
  ArchivalSummaryTypeDef,
42
33
  AttributeDefinitionTypeDef,
43
- AttributeValueUpdateTableTypeDef,
34
+ BatchGetItemInputServiceResourceBatchGetItemTypeDef,
44
35
  BatchGetItemOutputServiceResourceTypeDef,
36
+ BatchWriteItemInputServiceResourceBatchWriteItemTypeDef,
45
37
  BatchWriteItemOutputServiceResourceTypeDef,
46
38
  BillingModeSummaryTypeDef,
47
- ConditionBaseImportTypeDef,
48
- ConditionTableTypeDef,
39
+ CreateTableInputServiceResourceCreateTableTypeDef,
40
+ DeleteItemInputTableDeleteItemTypeDef,
49
41
  DeleteItemOutputTableTypeDef,
50
42
  DeleteTableOutputTypeDef,
51
- ExpectedAttributeValueTableTypeDef,
43
+ GetItemInputTableGetItemTypeDef,
52
44
  GetItemOutputTableTypeDef,
53
45
  GlobalSecondaryIndexDescriptionTypeDef,
54
- GlobalSecondaryIndexUnionTypeDef,
55
- GlobalSecondaryIndexUpdateTypeDef,
56
- KeysAndAttributesServiceResourceUnionTypeDef,
57
46
  KeySchemaElementTypeDef,
58
47
  LocalSecondaryIndexDescriptionTypeDef,
59
- LocalSecondaryIndexTypeDef,
60
48
  OnDemandThroughputTypeDef,
61
49
  ProvisionedThroughputDescriptionTypeDef,
62
- ProvisionedThroughputTypeDef,
50
+ PutItemInputTablePutItemTypeDef,
63
51
  PutItemOutputTableTypeDef,
52
+ QueryInputTableQueryTypeDef,
64
53
  QueryOutputTableTypeDef,
65
54
  ReplicaDescriptionTypeDef,
66
- ReplicationGroupUpdateTypeDef,
67
55
  RestoreSummaryTypeDef,
56
+ ScanInputTableScanTypeDef,
68
57
  ScanOutputTableTypeDef,
69
58
  SSEDescriptionTypeDef,
70
- SSESpecificationTypeDef,
71
59
  StreamSpecificationTypeDef,
72
- TableAttributeValueTypeDef,
73
60
  TableClassSummaryTypeDef,
74
- TagTypeDef,
61
+ UpdateItemInputTableUpdateItemTypeDef,
75
62
  UpdateItemOutputTableTypeDef,
76
- WriteRequestServiceResourceUnionTypeDef,
63
+ UpdateTableInputTableUpdateTypeDef,
77
64
  )
78
65
 
66
+ if sys.version_info >= (3, 12):
67
+ from typing import Unpack
68
+ else:
69
+ from typing_extensions import Unpack
70
+
79
71
  __all__ = ("DynamoDBServiceResource", "Table", "ServiceResourceTablesCollection")
80
72
 
81
73
  class ServiceResourceTablesCollection(ResourceCollection):
@@ -83,7 +75,6 @@ class ServiceResourceTablesCollection(ResourceCollection):
83
75
  [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.ServiceResource.tables)
84
76
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#serviceresourcetablescollection)
85
77
  """
86
-
87
78
  def all(self) -> "ServiceResourceTablesCollection":
88
79
  """
89
80
  Get all items from the collection, optionally with a custom page size and item count limit.
@@ -165,7 +156,7 @@ class Table(ServiceResource):
165
156
  deletion_protection_enabled: bool
166
157
  on_demand_throughput: OnDemandThroughputTypeDef
167
158
  name: str
168
- meta: "DynamoDBResourceMeta"
159
+ meta: "DynamoDBResourceMeta" # type: ignore
169
160
 
170
161
  def batch_writer(self, overwrite_by_pkeys: List[str] = ...) -> BatchWriter:
171
162
  """
@@ -184,18 +175,7 @@ class Table(ServiceResource):
184
175
  """
185
176
 
186
177
  def delete_item(
187
- self,
188
- *,
189
- Key: Mapping[str, TableAttributeValueTypeDef],
190
- Expected: Mapping[str, ExpectedAttributeValueTableTypeDef] = ...,
191
- ConditionalOperator: ConditionalOperatorType = ...,
192
- ReturnValues: ReturnValueType = ...,
193
- ReturnConsumedCapacity: ReturnConsumedCapacityType = ...,
194
- ReturnItemCollectionMetrics: ReturnItemCollectionMetricsType = ...,
195
- ConditionExpression: ConditionBaseImportTypeDef = ...,
196
- ExpressionAttributeNames: Mapping[str, str] = ...,
197
- ExpressionAttributeValues: Mapping[str, TableAttributeValueTypeDef] = ...,
198
- ReturnValuesOnConditionCheckFailure: ReturnValuesOnConditionCheckFailureType = ...,
178
+ self, **kwargs: Unpack[DeleteItemInputTableDeleteItemTypeDef]
199
179
  ) -> DeleteItemOutputTableTypeDef:
200
180
  """
201
181
  Deletes a single item in a table by primary key.
@@ -213,14 +193,7 @@ class Table(ServiceResource):
213
193
  """
214
194
 
215
195
  def get_item(
216
- self,
217
- *,
218
- Key: Mapping[str, TableAttributeValueTypeDef],
219
- AttributesToGet: Sequence[str] = ...,
220
- ConsistentRead: bool = ...,
221
- ReturnConsumedCapacity: ReturnConsumedCapacityType = ...,
222
- ProjectionExpression: str = ...,
223
- ExpressionAttributeNames: Mapping[str, str] = ...,
196
+ self, **kwargs: Unpack[GetItemInputTableGetItemTypeDef]
224
197
  ) -> GetItemOutputTableTypeDef:
225
198
  """
226
199
  The `GetItem` operation returns a set of attributes for the item with the given
@@ -242,18 +215,7 @@ class Table(ServiceResource):
242
215
  """
243
216
 
244
217
  def put_item(
245
- self,
246
- *,
247
- Item: Mapping[str, TableAttributeValueTypeDef],
248
- Expected: Mapping[str, ExpectedAttributeValueTableTypeDef] = ...,
249
- ReturnValues: ReturnValueType = ...,
250
- ReturnConsumedCapacity: ReturnConsumedCapacityType = ...,
251
- ReturnItemCollectionMetrics: ReturnItemCollectionMetricsType = ...,
252
- ConditionalOperator: ConditionalOperatorType = ...,
253
- ConditionExpression: ConditionBaseImportTypeDef = ...,
254
- ExpressionAttributeNames: Mapping[str, str] = ...,
255
- ExpressionAttributeValues: Mapping[str, TableAttributeValueTypeDef] = ...,
256
- ReturnValuesOnConditionCheckFailure: ReturnValuesOnConditionCheckFailureType = ...,
218
+ self, **kwargs: Unpack[PutItemInputTablePutItemTypeDef]
257
219
  ) -> PutItemOutputTableTypeDef:
258
220
  """
259
221
  Creates a new item, or replaces an old item with a new item.
@@ -262,26 +224,7 @@ class Table(ServiceResource):
262
224
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tableput_item-method)
263
225
  """
264
226
 
265
- def query(
266
- self,
267
- *,
268
- IndexName: str = ...,
269
- Select: SelectType = ...,
270
- AttributesToGet: Sequence[str] = ...,
271
- Limit: int = ...,
272
- ConsistentRead: bool = ...,
273
- KeyConditions: Mapping[str, ConditionTableTypeDef] = ...,
274
- QueryFilter: Mapping[str, ConditionTableTypeDef] = ...,
275
- ConditionalOperator: ConditionalOperatorType = ...,
276
- ScanIndexForward: bool = ...,
277
- ExclusiveStartKey: Mapping[str, TableAttributeValueTypeDef] = ...,
278
- ReturnConsumedCapacity: ReturnConsumedCapacityType = ...,
279
- ProjectionExpression: str = ...,
280
- FilterExpression: ConditionBaseImportTypeDef = ...,
281
- KeyConditionExpression: ConditionBaseImportTypeDef = ...,
282
- ExpressionAttributeNames: Mapping[str, str] = ...,
283
- ExpressionAttributeValues: Mapping[str, TableAttributeValueTypeDef] = ...,
284
- ) -> QueryOutputTableTypeDef:
227
+ def query(self, **kwargs: Unpack[QueryInputTableQueryTypeDef]) -> QueryOutputTableTypeDef:
285
228
  """
286
229
  You must provide the name of the partition key attribute and a single value for
287
230
  that
@@ -301,25 +244,7 @@ class Table(ServiceResource):
301
244
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tablereload-method)
302
245
  """
303
246
 
304
- def scan(
305
- self,
306
- *,
307
- IndexName: str = ...,
308
- AttributesToGet: Sequence[str] = ...,
309
- Limit: int = ...,
310
- Select: SelectType = ...,
311
- ScanFilter: Mapping[str, ConditionTableTypeDef] = ...,
312
- ConditionalOperator: ConditionalOperatorType = ...,
313
- ExclusiveStartKey: Mapping[str, TableAttributeValueTypeDef] = ...,
314
- ReturnConsumedCapacity: ReturnConsumedCapacityType = ...,
315
- TotalSegments: int = ...,
316
- Segment: int = ...,
317
- ProjectionExpression: str = ...,
318
- FilterExpression: ConditionBaseImportTypeDef = ...,
319
- ExpressionAttributeNames: Mapping[str, str] = ...,
320
- ExpressionAttributeValues: Mapping[str, TableAttributeValueTypeDef] = ...,
321
- ConsistentRead: bool = ...,
322
- ) -> ScanOutputTableTypeDef:
247
+ def scan(self, **kwargs: Unpack[ScanInputTableScanTypeDef]) -> ScanOutputTableTypeDef:
323
248
  """
324
249
  The `Scan` operation returns one or more items and item attributes by accessing
325
250
  every item in a table or a secondary
@@ -329,20 +254,7 @@ class Table(ServiceResource):
329
254
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/#tablescan-method)
330
255
  """
331
256
 
332
- def update(
333
- self,
334
- *,
335
- AttributeDefinitions: Sequence[AttributeDefinitionTypeDef] = ...,
336
- BillingMode: BillingModeType = ...,
337
- ProvisionedThroughput: ProvisionedThroughputTypeDef = ...,
338
- GlobalSecondaryIndexUpdates: Sequence[GlobalSecondaryIndexUpdateTypeDef] = ...,
339
- StreamSpecification: StreamSpecificationTypeDef = ...,
340
- SSESpecification: SSESpecificationTypeDef = ...,
341
- ReplicaUpdates: Sequence[ReplicationGroupUpdateTypeDef] = ...,
342
- TableClass: TableClassType = ...,
343
- DeletionProtectionEnabled: bool = ...,
344
- OnDemandThroughput: OnDemandThroughputTypeDef = ...,
345
- ) -> "_Table":
257
+ def update(self, **kwargs: Unpack[UpdateTableInputTableUpdateTypeDef]) -> "_Table":
346
258
  """
347
259
  Modifies the provisioned throughput settings, global secondary indexes, or
348
260
  DynamoDB Streams settings for a given
@@ -353,20 +265,7 @@ class Table(ServiceResource):
353
265
  """
354
266
 
355
267
  def update_item(
356
- self,
357
- *,
358
- Key: Mapping[str, TableAttributeValueTypeDef],
359
- AttributeUpdates: Mapping[str, AttributeValueUpdateTableTypeDef] = ...,
360
- Expected: Mapping[str, ExpectedAttributeValueTableTypeDef] = ...,
361
- ConditionalOperator: ConditionalOperatorType = ...,
362
- ReturnValues: ReturnValueType = ...,
363
- ReturnConsumedCapacity: ReturnConsumedCapacityType = ...,
364
- ReturnItemCollectionMetrics: ReturnItemCollectionMetricsType = ...,
365
- UpdateExpression: str = ...,
366
- ConditionExpression: ConditionBaseImportTypeDef = ...,
367
- ExpressionAttributeNames: Mapping[str, str] = ...,
368
- ExpressionAttributeValues: Mapping[str, TableAttributeValueTypeDef] = ...,
369
- ReturnValuesOnConditionCheckFailure: ReturnValuesOnConditionCheckFailureType = ...,
268
+ self, **kwargs: Unpack[UpdateItemInputTableUpdateItemTypeDef]
370
269
  ) -> UpdateItemOutputTableTypeDef:
371
270
  """
372
271
  Edits an existing item's attributes, or adds a new item to the table if it does
@@ -404,7 +303,7 @@ class DynamoDBServiceResource(ServiceResource):
404
303
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/service_resource/)
405
304
  """
406
305
 
407
- meta: "DynamoDBResourceMeta"
306
+ meta: "DynamoDBResourceMeta" # type: ignore
408
307
  tables: ServiceResourceTablesCollection
409
308
 
410
309
  def Table(self, name: str) -> "_Table":
@@ -416,10 +315,7 @@ class DynamoDBServiceResource(ServiceResource):
416
315
  """
417
316
 
418
317
  def batch_get_item(
419
- self,
420
- *,
421
- RequestItems: Mapping[str, KeysAndAttributesServiceResourceUnionTypeDef],
422
- ReturnConsumedCapacity: ReturnConsumedCapacityType = ...,
318
+ self, **kwargs: Unpack[BatchGetItemInputServiceResourceBatchGetItemTypeDef]
423
319
  ) -> BatchGetItemOutputServiceResourceTypeDef:
424
320
  """
425
321
  The `BatchGetItem` operation returns the attributes of one or more items from
@@ -431,11 +327,7 @@ class DynamoDBServiceResource(ServiceResource):
431
327
  """
432
328
 
433
329
  def batch_write_item(
434
- self,
435
- *,
436
- RequestItems: Mapping[str, Sequence[WriteRequestServiceResourceUnionTypeDef]],
437
- ReturnConsumedCapacity: ReturnConsumedCapacityType = ...,
438
- ReturnItemCollectionMetrics: ReturnItemCollectionMetricsType = ...,
330
+ self, **kwargs: Unpack[BatchWriteItemInputServiceResourceBatchWriteItemTypeDef]
439
331
  ) -> BatchWriteItemOutputServiceResourceTypeDef:
440
332
  """
441
333
  The `BatchWriteItem` operation puts or deletes multiple items in one or more
@@ -446,22 +338,7 @@ class DynamoDBServiceResource(ServiceResource):
446
338
  """
447
339
 
448
340
  def create_table(
449
- self,
450
- *,
451
- AttributeDefinitions: Sequence[AttributeDefinitionTypeDef],
452
- TableName: str,
453
- KeySchema: Sequence[KeySchemaElementTypeDef],
454
- LocalSecondaryIndexes: Sequence[LocalSecondaryIndexTypeDef] = ...,
455
- GlobalSecondaryIndexes: Sequence[GlobalSecondaryIndexUnionTypeDef] = ...,
456
- BillingMode: BillingModeType = ...,
457
- ProvisionedThroughput: ProvisionedThroughputTypeDef = ...,
458
- StreamSpecification: StreamSpecificationTypeDef = ...,
459
- SSESpecification: SSESpecificationTypeDef = ...,
460
- Tags: Sequence[TagTypeDef] = ...,
461
- TableClass: TableClassType = ...,
462
- DeletionProtectionEnabled: bool = ...,
463
- ResourcePolicy: str = ...,
464
- OnDemandThroughput: OnDemandThroughputTypeDef = ...,
341
+ self, **kwargs: Unpack[CreateTableInputServiceResourceCreateTableTypeDef]
465
342
  ) -> "_Table":
466
343
  """
467
344
  The `CreateTable` operation adds a new table to your account.
@@ -62,13 +62,10 @@ from .literals import (
62
62
  )
63
63
 
64
64
  if sys.version_info >= (3, 12):
65
- from typing import NotRequired
65
+ from typing import NotRequired, TypedDict
66
66
  else:
67
- from typing_extensions import NotRequired
68
- if sys.version_info >= (3, 12):
69
- from typing import TypedDict
70
- else:
71
- from typing_extensions import TypedDict
67
+ from typing_extensions import NotRequired, TypedDict
68
+
72
69
 
73
70
  __all__ = (
74
71
  "ArchivalSummaryTypeDef",
@@ -126,9 +123,8 @@ __all__ = (
126
123
  "ExportSummaryTypeDef",
127
124
  "TimestampTypeDef",
128
125
  "GetResourcePolicyInputRequestTypeDef",
129
- "ProjectionExtraOutputTypeDef",
130
- "ProvisionedThroughputDescriptionTypeDef",
131
126
  "ProjectionOutputTypeDef",
127
+ "ProvisionedThroughputDescriptionTypeDef",
132
128
  "S3BucketSourceTypeDef",
133
129
  "PaginatorConfigTypeDef",
134
130
  "ListContributorInsightsInputRequestTypeDef",
@@ -206,11 +202,11 @@ __all__ = (
206
202
  "ListExportsOutputTypeDef",
207
203
  "IncrementalExportSpecificationTypeDef",
208
204
  "ListBackupsInputRequestTypeDef",
209
- "LocalSecondaryIndexDescriptionTypeDef",
210
- "GlobalSecondaryIndexDescriptionTypeDef",
211
205
  "GlobalSecondaryIndexInfoTypeDef",
212
206
  "GlobalSecondaryIndexOutputTypeDef",
207
+ "LocalSecondaryIndexDescriptionTypeDef",
213
208
  "LocalSecondaryIndexInfoTypeDef",
209
+ "GlobalSecondaryIndexDescriptionTypeDef",
214
210
  "ImportSummaryTypeDef",
215
211
  "ListBackupsInputListBackupsPaginateTypeDef",
216
212
  "ListTablesInputListTablesPaginateTypeDef",
@@ -273,12 +269,10 @@ __all__ = (
273
269
  "ReplicaDescriptionTypeDef",
274
270
  "CreateReplicationGroupMemberActionTypeDef",
275
271
  "UpdateReplicationGroupMemberActionTypeDef",
276
- "InputFormatOptionsUnionTypeDef",
277
272
  "UpdateGlobalTableInputRequestTypeDef",
278
273
  "DescribeExportOutputTypeDef",
279
274
  "ExportTableToPointInTimeOutputTypeDef",
280
275
  "ExportTableToPointInTimeInputRequestTypeDef",
281
- "IncrementalExportSpecificationUnionTypeDef",
282
276
  "GlobalSecondaryIndexUnionTypeDef",
283
277
  "TableCreationParametersOutputTypeDef",
284
278
  "SourceTableFeatureDetailsTypeDef",
@@ -316,7 +310,6 @@ __all__ = (
316
310
  "RestoreTableFromBackupInputRequestTypeDef",
317
311
  "RestoreTableToPointInTimeInputRequestTypeDef",
318
312
  "ImportTableDescriptionTypeDef",
319
- "TableCreationParametersUnionTypeDef",
320
313
  "BackupDescriptionTypeDef",
321
314
  "TransactGetItemsInputRequestTypeDef",
322
315
  "BatchGetItemInputRequestTypeDef",
@@ -754,8 +747,8 @@ GetResourcePolicyInputRequestTypeDef = TypedDict(
754
747
  "ResourceArn": str,
755
748
  },
756
749
  )
757
- ProjectionExtraOutputTypeDef = TypedDict(
758
- "ProjectionExtraOutputTypeDef",
750
+ ProjectionOutputTypeDef = TypedDict(
751
+ "ProjectionOutputTypeDef",
759
752
  {
760
753
  "ProjectionType": NotRequired[ProjectionTypeType],
761
754
  "NonKeyAttributes": NotRequired[List[str]],
@@ -771,13 +764,6 @@ ProvisionedThroughputDescriptionTypeDef = TypedDict(
771
764
  "WriteCapacityUnits": NotRequired[int],
772
765
  },
773
766
  )
774
- ProjectionOutputTypeDef = TypedDict(
775
- "ProjectionOutputTypeDef",
776
- {
777
- "ProjectionType": NotRequired[ProjectionTypeType],
778
- "NonKeyAttributes": NotRequired[List[str]],
779
- },
780
- )
781
767
  S3BucketSourceTypeDef = TypedDict(
782
768
  "S3BucketSourceTypeDef",
783
769
  {
@@ -1417,32 +1403,6 @@ ListBackupsInputRequestTypeDef = TypedDict(
1417
1403
  "BackupType": NotRequired[BackupTypeFilterType],
1418
1404
  },
1419
1405
  )
1420
- LocalSecondaryIndexDescriptionTypeDef = TypedDict(
1421
- "LocalSecondaryIndexDescriptionTypeDef",
1422
- {
1423
- "IndexName": NotRequired[str],
1424
- "KeySchema": NotRequired[List[KeySchemaElementTypeDef]],
1425
- "Projection": NotRequired[ProjectionExtraOutputTypeDef],
1426
- "IndexSizeBytes": NotRequired[int],
1427
- "ItemCount": NotRequired[int],
1428
- "IndexArn": NotRequired[str],
1429
- },
1430
- )
1431
- GlobalSecondaryIndexDescriptionTypeDef = TypedDict(
1432
- "GlobalSecondaryIndexDescriptionTypeDef",
1433
- {
1434
- "IndexName": NotRequired[str],
1435
- "KeySchema": NotRequired[List[KeySchemaElementTypeDef]],
1436
- "Projection": NotRequired[ProjectionExtraOutputTypeDef],
1437
- "IndexStatus": NotRequired[IndexStatusType],
1438
- "Backfilling": NotRequired[bool],
1439
- "ProvisionedThroughput": NotRequired[ProvisionedThroughputDescriptionTypeDef],
1440
- "IndexSizeBytes": NotRequired[int],
1441
- "ItemCount": NotRequired[int],
1442
- "IndexArn": NotRequired[str],
1443
- "OnDemandThroughput": NotRequired[OnDemandThroughputTypeDef],
1444
- },
1445
- )
1446
1406
  GlobalSecondaryIndexInfoTypeDef = TypedDict(
1447
1407
  "GlobalSecondaryIndexInfoTypeDef",
1448
1408
  {
@@ -1463,6 +1423,17 @@ GlobalSecondaryIndexOutputTypeDef = TypedDict(
1463
1423
  "OnDemandThroughput": NotRequired[OnDemandThroughputTypeDef],
1464
1424
  },
1465
1425
  )
1426
+ LocalSecondaryIndexDescriptionTypeDef = TypedDict(
1427
+ "LocalSecondaryIndexDescriptionTypeDef",
1428
+ {
1429
+ "IndexName": NotRequired[str],
1430
+ "KeySchema": NotRequired[List[KeySchemaElementTypeDef]],
1431
+ "Projection": NotRequired[ProjectionOutputTypeDef],
1432
+ "IndexSizeBytes": NotRequired[int],
1433
+ "ItemCount": NotRequired[int],
1434
+ "IndexArn": NotRequired[str],
1435
+ },
1436
+ )
1466
1437
  LocalSecondaryIndexInfoTypeDef = TypedDict(
1467
1438
  "LocalSecondaryIndexInfoTypeDef",
1468
1439
  {
@@ -1471,6 +1442,21 @@ LocalSecondaryIndexInfoTypeDef = TypedDict(
1471
1442
  "Projection": NotRequired[ProjectionOutputTypeDef],
1472
1443
  },
1473
1444
  )
1445
+ GlobalSecondaryIndexDescriptionTypeDef = TypedDict(
1446
+ "GlobalSecondaryIndexDescriptionTypeDef",
1447
+ {
1448
+ "IndexName": NotRequired[str],
1449
+ "KeySchema": NotRequired[List[KeySchemaElementTypeDef]],
1450
+ "Projection": NotRequired[ProjectionOutputTypeDef],
1451
+ "IndexStatus": NotRequired[IndexStatusType],
1452
+ "Backfilling": NotRequired[bool],
1453
+ "ProvisionedThroughput": NotRequired[ProvisionedThroughputDescriptionTypeDef],
1454
+ "IndexSizeBytes": NotRequired[int],
1455
+ "ItemCount": NotRequired[int],
1456
+ "IndexArn": NotRequired[str],
1457
+ "OnDemandThroughput": NotRequired[OnDemandThroughputTypeDef],
1458
+ },
1459
+ )
1474
1460
  ImportSummaryTypeDef = TypedDict(
1475
1461
  "ImportSummaryTypeDef",
1476
1462
  {
@@ -2074,7 +2060,6 @@ UpdateReplicationGroupMemberActionTypeDef = TypedDict(
2074
2060
  "TableClassOverride": NotRequired[TableClassType],
2075
2061
  },
2076
2062
  )
2077
- InputFormatOptionsUnionTypeDef = Union[InputFormatOptionsTypeDef, InputFormatOptionsOutputTypeDef]
2078
2063
  UpdateGlobalTableInputRequestTypeDef = TypedDict(
2079
2064
  "UpdateGlobalTableInputRequestTypeDef",
2080
2065
  {
@@ -2112,9 +2097,6 @@ ExportTableToPointInTimeInputRequestTypeDef = TypedDict(
2112
2097
  "IncrementalExportSpecification": NotRequired[IncrementalExportSpecificationTypeDef],
2113
2098
  },
2114
2099
  )
2115
- IncrementalExportSpecificationUnionTypeDef = Union[
2116
- IncrementalExportSpecificationTypeDef, IncrementalExportSpecificationOutputTypeDef
2117
- ]
2118
2100
  GlobalSecondaryIndexUnionTypeDef = Union[
2119
2101
  GlobalSecondaryIndexTypeDef, GlobalSecondaryIndexOutputTypeDef
2120
2102
  ]
@@ -2568,9 +2550,6 @@ ImportTableDescriptionTypeDef = TypedDict(
2568
2550
  "FailureMessage": NotRequired[str],
2569
2551
  },
2570
2552
  )
2571
- TableCreationParametersUnionTypeDef = Union[
2572
- TableCreationParametersTypeDef, TableCreationParametersOutputTypeDef
2573
- ]
2574
2553
  BackupDescriptionTypeDef = TypedDict(
2575
2554
  "BackupDescriptionTypeDef",
2576
2555
  {
@@ -62,13 +62,9 @@ from .literals import (
62
62
  )
63
63
 
64
64
  if sys.version_info >= (3, 12):
65
- from typing import NotRequired
65
+ from typing import NotRequired, TypedDict
66
66
  else:
67
- from typing_extensions import NotRequired
68
- if sys.version_info >= (3, 12):
69
- from typing import TypedDict
70
- else:
71
- from typing_extensions import TypedDict
67
+ from typing_extensions import NotRequired, TypedDict
72
68
 
73
69
  __all__ = (
74
70
  "ArchivalSummaryTypeDef",
@@ -126,9 +122,8 @@ __all__ = (
126
122
  "ExportSummaryTypeDef",
127
123
  "TimestampTypeDef",
128
124
  "GetResourcePolicyInputRequestTypeDef",
129
- "ProjectionExtraOutputTypeDef",
130
- "ProvisionedThroughputDescriptionTypeDef",
131
125
  "ProjectionOutputTypeDef",
126
+ "ProvisionedThroughputDescriptionTypeDef",
132
127
  "S3BucketSourceTypeDef",
133
128
  "PaginatorConfigTypeDef",
134
129
  "ListContributorInsightsInputRequestTypeDef",
@@ -206,11 +201,11 @@ __all__ = (
206
201
  "ListExportsOutputTypeDef",
207
202
  "IncrementalExportSpecificationTypeDef",
208
203
  "ListBackupsInputRequestTypeDef",
209
- "LocalSecondaryIndexDescriptionTypeDef",
210
- "GlobalSecondaryIndexDescriptionTypeDef",
211
204
  "GlobalSecondaryIndexInfoTypeDef",
212
205
  "GlobalSecondaryIndexOutputTypeDef",
206
+ "LocalSecondaryIndexDescriptionTypeDef",
213
207
  "LocalSecondaryIndexInfoTypeDef",
208
+ "GlobalSecondaryIndexDescriptionTypeDef",
214
209
  "ImportSummaryTypeDef",
215
210
  "ListBackupsInputListBackupsPaginateTypeDef",
216
211
  "ListTablesInputListTablesPaginateTypeDef",
@@ -273,12 +268,10 @@ __all__ = (
273
268
  "ReplicaDescriptionTypeDef",
274
269
  "CreateReplicationGroupMemberActionTypeDef",
275
270
  "UpdateReplicationGroupMemberActionTypeDef",
276
- "InputFormatOptionsUnionTypeDef",
277
271
  "UpdateGlobalTableInputRequestTypeDef",
278
272
  "DescribeExportOutputTypeDef",
279
273
  "ExportTableToPointInTimeOutputTypeDef",
280
274
  "ExportTableToPointInTimeInputRequestTypeDef",
281
- "IncrementalExportSpecificationUnionTypeDef",
282
275
  "GlobalSecondaryIndexUnionTypeDef",
283
276
  "TableCreationParametersOutputTypeDef",
284
277
  "SourceTableFeatureDetailsTypeDef",
@@ -316,7 +309,6 @@ __all__ = (
316
309
  "RestoreTableFromBackupInputRequestTypeDef",
317
310
  "RestoreTableToPointInTimeInputRequestTypeDef",
318
311
  "ImportTableDescriptionTypeDef",
319
- "TableCreationParametersUnionTypeDef",
320
312
  "BackupDescriptionTypeDef",
321
313
  "TransactGetItemsInputRequestTypeDef",
322
314
  "BatchGetItemInputRequestTypeDef",
@@ -754,8 +746,8 @@ GetResourcePolicyInputRequestTypeDef = TypedDict(
754
746
  "ResourceArn": str,
755
747
  },
756
748
  )
757
- ProjectionExtraOutputTypeDef = TypedDict(
758
- "ProjectionExtraOutputTypeDef",
749
+ ProjectionOutputTypeDef = TypedDict(
750
+ "ProjectionOutputTypeDef",
759
751
  {
760
752
  "ProjectionType": NotRequired[ProjectionTypeType],
761
753
  "NonKeyAttributes": NotRequired[List[str]],
@@ -771,13 +763,6 @@ ProvisionedThroughputDescriptionTypeDef = TypedDict(
771
763
  "WriteCapacityUnits": NotRequired[int],
772
764
  },
773
765
  )
774
- ProjectionOutputTypeDef = TypedDict(
775
- "ProjectionOutputTypeDef",
776
- {
777
- "ProjectionType": NotRequired[ProjectionTypeType],
778
- "NonKeyAttributes": NotRequired[List[str]],
779
- },
780
- )
781
766
  S3BucketSourceTypeDef = TypedDict(
782
767
  "S3BucketSourceTypeDef",
783
768
  {
@@ -1417,32 +1402,6 @@ ListBackupsInputRequestTypeDef = TypedDict(
1417
1402
  "BackupType": NotRequired[BackupTypeFilterType],
1418
1403
  },
1419
1404
  )
1420
- LocalSecondaryIndexDescriptionTypeDef = TypedDict(
1421
- "LocalSecondaryIndexDescriptionTypeDef",
1422
- {
1423
- "IndexName": NotRequired[str],
1424
- "KeySchema": NotRequired[List[KeySchemaElementTypeDef]],
1425
- "Projection": NotRequired[ProjectionExtraOutputTypeDef],
1426
- "IndexSizeBytes": NotRequired[int],
1427
- "ItemCount": NotRequired[int],
1428
- "IndexArn": NotRequired[str],
1429
- },
1430
- )
1431
- GlobalSecondaryIndexDescriptionTypeDef = TypedDict(
1432
- "GlobalSecondaryIndexDescriptionTypeDef",
1433
- {
1434
- "IndexName": NotRequired[str],
1435
- "KeySchema": NotRequired[List[KeySchemaElementTypeDef]],
1436
- "Projection": NotRequired[ProjectionExtraOutputTypeDef],
1437
- "IndexStatus": NotRequired[IndexStatusType],
1438
- "Backfilling": NotRequired[bool],
1439
- "ProvisionedThroughput": NotRequired[ProvisionedThroughputDescriptionTypeDef],
1440
- "IndexSizeBytes": NotRequired[int],
1441
- "ItemCount": NotRequired[int],
1442
- "IndexArn": NotRequired[str],
1443
- "OnDemandThroughput": NotRequired[OnDemandThroughputTypeDef],
1444
- },
1445
- )
1446
1405
  GlobalSecondaryIndexInfoTypeDef = TypedDict(
1447
1406
  "GlobalSecondaryIndexInfoTypeDef",
1448
1407
  {
@@ -1463,6 +1422,17 @@ GlobalSecondaryIndexOutputTypeDef = TypedDict(
1463
1422
  "OnDemandThroughput": NotRequired[OnDemandThroughputTypeDef],
1464
1423
  },
1465
1424
  )
1425
+ LocalSecondaryIndexDescriptionTypeDef = TypedDict(
1426
+ "LocalSecondaryIndexDescriptionTypeDef",
1427
+ {
1428
+ "IndexName": NotRequired[str],
1429
+ "KeySchema": NotRequired[List[KeySchemaElementTypeDef]],
1430
+ "Projection": NotRequired[ProjectionOutputTypeDef],
1431
+ "IndexSizeBytes": NotRequired[int],
1432
+ "ItemCount": NotRequired[int],
1433
+ "IndexArn": NotRequired[str],
1434
+ },
1435
+ )
1466
1436
  LocalSecondaryIndexInfoTypeDef = TypedDict(
1467
1437
  "LocalSecondaryIndexInfoTypeDef",
1468
1438
  {
@@ -1471,6 +1441,21 @@ LocalSecondaryIndexInfoTypeDef = TypedDict(
1471
1441
  "Projection": NotRequired[ProjectionOutputTypeDef],
1472
1442
  },
1473
1443
  )
1444
+ GlobalSecondaryIndexDescriptionTypeDef = TypedDict(
1445
+ "GlobalSecondaryIndexDescriptionTypeDef",
1446
+ {
1447
+ "IndexName": NotRequired[str],
1448
+ "KeySchema": NotRequired[List[KeySchemaElementTypeDef]],
1449
+ "Projection": NotRequired[ProjectionOutputTypeDef],
1450
+ "IndexStatus": NotRequired[IndexStatusType],
1451
+ "Backfilling": NotRequired[bool],
1452
+ "ProvisionedThroughput": NotRequired[ProvisionedThroughputDescriptionTypeDef],
1453
+ "IndexSizeBytes": NotRequired[int],
1454
+ "ItemCount": NotRequired[int],
1455
+ "IndexArn": NotRequired[str],
1456
+ "OnDemandThroughput": NotRequired[OnDemandThroughputTypeDef],
1457
+ },
1458
+ )
1474
1459
  ImportSummaryTypeDef = TypedDict(
1475
1460
  "ImportSummaryTypeDef",
1476
1461
  {
@@ -2074,7 +2059,6 @@ UpdateReplicationGroupMemberActionTypeDef = TypedDict(
2074
2059
  "TableClassOverride": NotRequired[TableClassType],
2075
2060
  },
2076
2061
  )
2077
- InputFormatOptionsUnionTypeDef = Union[InputFormatOptionsTypeDef, InputFormatOptionsOutputTypeDef]
2078
2062
  UpdateGlobalTableInputRequestTypeDef = TypedDict(
2079
2063
  "UpdateGlobalTableInputRequestTypeDef",
2080
2064
  {
@@ -2112,9 +2096,6 @@ ExportTableToPointInTimeInputRequestTypeDef = TypedDict(
2112
2096
  "IncrementalExportSpecification": NotRequired[IncrementalExportSpecificationTypeDef],
2113
2097
  },
2114
2098
  )
2115
- IncrementalExportSpecificationUnionTypeDef = Union[
2116
- IncrementalExportSpecificationTypeDef, IncrementalExportSpecificationOutputTypeDef
2117
- ]
2118
2099
  GlobalSecondaryIndexUnionTypeDef = Union[
2119
2100
  GlobalSecondaryIndexTypeDef, GlobalSecondaryIndexOutputTypeDef
2120
2101
  ]
@@ -2568,9 +2549,6 @@ ImportTableDescriptionTypeDef = TypedDict(
2568
2549
  "FailureMessage": NotRequired[str],
2569
2550
  },
2570
2551
  )
2571
- TableCreationParametersUnionTypeDef = Union[
2572
- TableCreationParametersTypeDef, TableCreationParametersOutputTypeDef
2573
- ]
2574
2552
  BackupDescriptionTypeDef = TypedDict(
2575
2553
  "BackupDescriptionTypeDef",
2576
2554
  {
@@ -2,4 +2,4 @@
2
2
  Source of truth for version.
3
3
  """
4
4
 
5
- __version__ = "1.35.0"
5
+ __version__ = "1.35.24"