mypy-boto3-timestream-write 1.28.15.post1__py3-none-any.whl → 1.28.36__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.

Potentially problematic release.


This version of mypy-boto3-timestream-write might be problematic. Click here for more details.

@@ -8,7 +8,7 @@ Usage::
8
8
  ```python
9
9
  from mypy_boto3_timestream_write.type_defs import BatchLoadProgressReportTypeDef
10
10
 
11
- data: BatchLoadProgressReportTypeDef = {...}
11
+ data: BatchLoadProgressReportTypeDef = ...
12
12
  ```
13
13
  """
14
14
  import sys
@@ -26,11 +26,15 @@ from .literals import (
26
26
  TimeUnitType,
27
27
  )
28
28
 
29
- if sys.version_info >= (3, 9):
29
+ if sys.version_info >= (3, 12):
30
30
  from typing import Literal
31
31
  else:
32
32
  from typing_extensions import Literal
33
- if sys.version_info >= (3, 9):
33
+ if sys.version_info >= (3, 12):
34
+ from typing import NotRequired
35
+ else:
36
+ from typing_extensions import NotRequired
37
+ if sys.version_info >= (3, 12):
34
38
  from typing import TypedDict
35
39
  else:
36
40
  from typing_extensions import TypedDict
@@ -81,22 +85,17 @@ __all__ = (
81
85
  "DescribeEndpointsResponseTypeDef",
82
86
  "MagneticStoreRejectedDataLocationTypeDef",
83
87
  "RecordTypeDef",
84
- "MixedMeasureMappingOutputTypeDef",
85
88
  "MixedMeasureMappingTypeDef",
86
- "MultiMeasureMappingsOutputTypeDef",
87
89
  "MultiMeasureMappingsTypeDef",
88
- "SchemaOutputTypeDef",
89
90
  "SchemaTypeDef",
90
91
  "WriteRecordsResponseTypeDef",
91
92
  "ReportConfigurationTypeDef",
92
93
  "MagneticStoreWritePropertiesTypeDef",
93
94
  "WriteRecordsRequestRequestTypeDef",
94
- "DataModelOutputTypeDef",
95
95
  "DataModelTypeDef",
96
96
  "CreateTableRequestRequestTypeDef",
97
97
  "TableTypeDef",
98
98
  "UpdateTableRequestRequestTypeDef",
99
- "DataModelConfigurationOutputTypeDef",
100
99
  "DataModelConfigurationTypeDef",
101
100
  "CreateTableResponseTypeDef",
102
101
  "DescribeTableResponseTypeDef",
@@ -110,28 +109,26 @@ __all__ = (
110
109
  BatchLoadProgressReportTypeDef = TypedDict(
111
110
  "BatchLoadProgressReportTypeDef",
112
111
  {
113
- "RecordsProcessed": int,
114
- "RecordsIngested": int,
115
- "ParseFailures": int,
116
- "RecordIngestionFailures": int,
117
- "FileFailures": int,
118
- "BytesMetered": int,
112
+ "RecordsProcessed": NotRequired[int],
113
+ "RecordsIngested": NotRequired[int],
114
+ "ParseFailures": NotRequired[int],
115
+ "RecordIngestionFailures": NotRequired[int],
116
+ "FileFailures": NotRequired[int],
117
+ "BytesMetered": NotRequired[int],
119
118
  },
120
- total=False,
121
119
  )
122
120
 
123
121
  BatchLoadTaskTypeDef = TypedDict(
124
122
  "BatchLoadTaskTypeDef",
125
123
  {
126
- "TaskId": str,
127
- "TaskStatus": BatchLoadStatusType,
128
- "DatabaseName": str,
129
- "TableName": str,
130
- "CreationTime": datetime,
131
- "LastUpdatedTime": datetime,
132
- "ResumableUntil": datetime,
124
+ "TaskId": NotRequired[str],
125
+ "TaskStatus": NotRequired[BatchLoadStatusType],
126
+ "DatabaseName": NotRequired[str],
127
+ "TableName": NotRequired[str],
128
+ "CreationTime": NotRequired[datetime],
129
+ "LastUpdatedTime": NotRequired[datetime],
130
+ "ResumableUntil": NotRequired[datetime],
133
131
  },
134
- total=False,
135
132
  )
136
133
 
137
134
  ResponseMetadataTypeDef = TypedDict(
@@ -156,14 +153,13 @@ TagTypeDef = TypedDict(
156
153
  DatabaseTypeDef = TypedDict(
157
154
  "DatabaseTypeDef",
158
155
  {
159
- "Arn": str,
160
- "DatabaseName": str,
161
- "TableCount": int,
162
- "KmsKeyId": str,
163
- "CreationTime": datetime,
164
- "LastUpdatedTime": datetime,
156
+ "Arn": NotRequired[str],
157
+ "DatabaseName": NotRequired[str],
158
+ "TableCount": NotRequired[int],
159
+ "KmsKeyId": NotRequired[str],
160
+ "CreationTime": NotRequired[datetime],
161
+ "LastUpdatedTime": NotRequired[datetime],
165
162
  },
166
- total=False,
167
163
  )
168
164
 
169
165
  RetentionPropertiesTypeDef = TypedDict(
@@ -177,53 +173,37 @@ RetentionPropertiesTypeDef = TypedDict(
177
173
  CsvConfigurationTypeDef = TypedDict(
178
174
  "CsvConfigurationTypeDef",
179
175
  {
180
- "ColumnSeparator": str,
181
- "EscapeChar": str,
182
- "QuoteChar": str,
183
- "NullValue": str,
184
- "TrimWhiteSpace": bool,
176
+ "ColumnSeparator": NotRequired[str],
177
+ "EscapeChar": NotRequired[str],
178
+ "QuoteChar": NotRequired[str],
179
+ "NullValue": NotRequired[str],
180
+ "TrimWhiteSpace": NotRequired[bool],
185
181
  },
186
- total=False,
187
182
  )
188
183
 
189
184
  DataModelS3ConfigurationTypeDef = TypedDict(
190
185
  "DataModelS3ConfigurationTypeDef",
191
186
  {
192
- "BucketName": str,
193
- "ObjectKey": str,
187
+ "BucketName": NotRequired[str],
188
+ "ObjectKey": NotRequired[str],
194
189
  },
195
- total=False,
196
190
  )
197
191
 
198
192
  DimensionMappingTypeDef = TypedDict(
199
193
  "DimensionMappingTypeDef",
200
194
  {
201
- "SourceColumn": str,
202
- "DestinationColumn": str,
195
+ "SourceColumn": NotRequired[str],
196
+ "DestinationColumn": NotRequired[str],
203
197
  },
204
- total=False,
205
198
  )
206
199
 
207
- _RequiredDataSourceS3ConfigurationTypeDef = TypedDict(
208
- "_RequiredDataSourceS3ConfigurationTypeDef",
200
+ DataSourceS3ConfigurationTypeDef = TypedDict(
201
+ "DataSourceS3ConfigurationTypeDef",
209
202
  {
210
203
  "BucketName": str,
204
+ "ObjectKeyPrefix": NotRequired[str],
211
205
  },
212
206
  )
213
- _OptionalDataSourceS3ConfigurationTypeDef = TypedDict(
214
- "_OptionalDataSourceS3ConfigurationTypeDef",
215
- {
216
- "ObjectKeyPrefix": str,
217
- },
218
- total=False,
219
- )
220
-
221
-
222
- class DataSourceS3ConfigurationTypeDef(
223
- _RequiredDataSourceS3ConfigurationTypeDef, _OptionalDataSourceS3ConfigurationTypeDef
224
- ):
225
- pass
226
-
227
207
 
228
208
  DeleteDatabaseRequestRequestTypeDef = TypedDict(
229
209
  "DeleteDatabaseRequestRequestTypeDef",
@@ -270,53 +250,39 @@ DescribeTableRequestRequestTypeDef = TypedDict(
270
250
  },
271
251
  )
272
252
 
273
- _RequiredDimensionTypeDef = TypedDict(
274
- "_RequiredDimensionTypeDef",
253
+ DimensionTypeDef = TypedDict(
254
+ "DimensionTypeDef",
275
255
  {
276
256
  "Name": str,
277
257
  "Value": str,
258
+ "DimensionValueType": NotRequired[Literal["VARCHAR"]],
278
259
  },
279
260
  )
280
- _OptionalDimensionTypeDef = TypedDict(
281
- "_OptionalDimensionTypeDef",
282
- {
283
- "DimensionValueType": Literal["VARCHAR"],
284
- },
285
- total=False,
286
- )
287
-
288
-
289
- class DimensionTypeDef(_RequiredDimensionTypeDef, _OptionalDimensionTypeDef):
290
- pass
291
-
292
261
 
293
262
  ListBatchLoadTasksRequestRequestTypeDef = TypedDict(
294
263
  "ListBatchLoadTasksRequestRequestTypeDef",
295
264
  {
296
- "NextToken": str,
297
- "MaxResults": int,
298
- "TaskStatus": BatchLoadStatusType,
265
+ "NextToken": NotRequired[str],
266
+ "MaxResults": NotRequired[int],
267
+ "TaskStatus": NotRequired[BatchLoadStatusType],
299
268
  },
300
- total=False,
301
269
  )
302
270
 
303
271
  ListDatabasesRequestRequestTypeDef = TypedDict(
304
272
  "ListDatabasesRequestRequestTypeDef",
305
273
  {
306
- "NextToken": str,
307
- "MaxResults": int,
274
+ "NextToken": NotRequired[str],
275
+ "MaxResults": NotRequired[int],
308
276
  },
309
- total=False,
310
277
  )
311
278
 
312
279
  ListTablesRequestRequestTypeDef = TypedDict(
313
280
  "ListTablesRequestRequestTypeDef",
314
281
  {
315
- "DatabaseName": str,
316
- "NextToken": str,
317
- "MaxResults": int,
282
+ "DatabaseName": NotRequired[str],
283
+ "NextToken": NotRequired[str],
284
+ "MaxResults": NotRequired[int],
318
285
  },
319
- total=False,
320
286
  )
321
287
 
322
288
  ListTagsForResourceRequestRequestTypeDef = TypedDict(
@@ -329,12 +295,11 @@ ListTagsForResourceRequestRequestTypeDef = TypedDict(
329
295
  S3ConfigurationTypeDef = TypedDict(
330
296
  "S3ConfigurationTypeDef",
331
297
  {
332
- "BucketName": str,
333
- "ObjectKeyPrefix": str,
334
- "EncryptionOption": S3EncryptionOptionType,
335
- "KmsKeyId": str,
298
+ "BucketName": NotRequired[str],
299
+ "ObjectKeyPrefix": NotRequired[str],
300
+ "EncryptionOption": NotRequired[S3EncryptionOptionType],
301
+ "KmsKeyId": NotRequired[str],
336
302
  },
337
- total=False,
338
303
  )
339
304
 
340
305
  MeasureValueTypeDef = TypedDict(
@@ -346,80 +311,42 @@ MeasureValueTypeDef = TypedDict(
346
311
  },
347
312
  )
348
313
 
349
- _RequiredMultiMeasureAttributeMappingTypeDef = TypedDict(
350
- "_RequiredMultiMeasureAttributeMappingTypeDef",
314
+ MultiMeasureAttributeMappingTypeDef = TypedDict(
315
+ "MultiMeasureAttributeMappingTypeDef",
351
316
  {
352
317
  "SourceColumn": str,
318
+ "TargetMultiMeasureAttributeName": NotRequired[str],
319
+ "MeasureValueType": NotRequired[ScalarMeasureValueTypeType],
353
320
  },
354
321
  )
355
- _OptionalMultiMeasureAttributeMappingTypeDef = TypedDict(
356
- "_OptionalMultiMeasureAttributeMappingTypeDef",
357
- {
358
- "TargetMultiMeasureAttributeName": str,
359
- "MeasureValueType": ScalarMeasureValueTypeType,
360
- },
361
- total=False,
362
- )
363
-
364
322
 
365
- class MultiMeasureAttributeMappingTypeDef(
366
- _RequiredMultiMeasureAttributeMappingTypeDef, _OptionalMultiMeasureAttributeMappingTypeDef
367
- ):
368
- pass
369
-
370
-
371
- _RequiredPartitionKeyTypeDef = TypedDict(
372
- "_RequiredPartitionKeyTypeDef",
323
+ PartitionKeyTypeDef = TypedDict(
324
+ "PartitionKeyTypeDef",
373
325
  {
374
326
  "Type": PartitionKeyTypeType,
327
+ "Name": NotRequired[str],
328
+ "EnforcementInRecord": NotRequired[PartitionKeyEnforcementLevelType],
375
329
  },
376
330
  )
377
- _OptionalPartitionKeyTypeDef = TypedDict(
378
- "_OptionalPartitionKeyTypeDef",
379
- {
380
- "Name": str,
381
- "EnforcementInRecord": PartitionKeyEnforcementLevelType,
382
- },
383
- total=False,
384
- )
385
-
386
-
387
- class PartitionKeyTypeDef(_RequiredPartitionKeyTypeDef, _OptionalPartitionKeyTypeDef):
388
- pass
389
-
390
331
 
391
332
  RecordsIngestedTypeDef = TypedDict(
392
333
  "RecordsIngestedTypeDef",
393
334
  {
394
- "Total": int,
395
- "MemoryStore": int,
396
- "MagneticStore": int,
335
+ "Total": NotRequired[int],
336
+ "MemoryStore": NotRequired[int],
337
+ "MagneticStore": NotRequired[int],
397
338
  },
398
- total=False,
399
339
  )
400
340
 
401
- _RequiredReportS3ConfigurationTypeDef = TypedDict(
402
- "_RequiredReportS3ConfigurationTypeDef",
341
+ ReportS3ConfigurationTypeDef = TypedDict(
342
+ "ReportS3ConfigurationTypeDef",
403
343
  {
404
344
  "BucketName": str,
345
+ "ObjectKeyPrefix": NotRequired[str],
346
+ "EncryptionOption": NotRequired[S3EncryptionOptionType],
347
+ "KmsKeyId": NotRequired[str],
405
348
  },
406
349
  )
407
- _OptionalReportS3ConfigurationTypeDef = TypedDict(
408
- "_OptionalReportS3ConfigurationTypeDef",
409
- {
410
- "ObjectKeyPrefix": str,
411
- "EncryptionOption": S3EncryptionOptionType,
412
- "KmsKeyId": str,
413
- },
414
- total=False,
415
- )
416
-
417
-
418
- class ReportS3ConfigurationTypeDef(
419
- _RequiredReportS3ConfigurationTypeDef, _OptionalReportS3ConfigurationTypeDef
420
- ):
421
- pass
422
-
423
350
 
424
351
  ResumeBatchLoadTaskRequestRequestTypeDef = TypedDict(
425
352
  "ResumeBatchLoadTaskRequestRequestTypeDef",
@@ -468,27 +395,14 @@ ListBatchLoadTasksResponseTypeDef = TypedDict(
468
395
  },
469
396
  )
470
397
 
471
- _RequiredCreateDatabaseRequestRequestTypeDef = TypedDict(
472
- "_RequiredCreateDatabaseRequestRequestTypeDef",
398
+ CreateDatabaseRequestRequestTypeDef = TypedDict(
399
+ "CreateDatabaseRequestRequestTypeDef",
473
400
  {
474
401
  "DatabaseName": str,
402
+ "KmsKeyId": NotRequired[str],
403
+ "Tags": NotRequired[Sequence[TagTypeDef]],
475
404
  },
476
405
  )
477
- _OptionalCreateDatabaseRequestRequestTypeDef = TypedDict(
478
- "_OptionalCreateDatabaseRequestRequestTypeDef",
479
- {
480
- "KmsKeyId": str,
481
- "Tags": Sequence[TagTypeDef],
482
- },
483
- total=False,
484
- )
485
-
486
-
487
- class CreateDatabaseRequestRequestTypeDef(
488
- _RequiredCreateDatabaseRequestRequestTypeDef, _OptionalCreateDatabaseRequestRequestTypeDef
489
- ):
490
- pass
491
-
492
406
 
493
407
  ListTagsForResourceResponseTypeDef = TypedDict(
494
408
  "ListTagsForResourceResponseTypeDef",
@@ -539,27 +453,14 @@ UpdateDatabaseResponseTypeDef = TypedDict(
539
453
  },
540
454
  )
541
455
 
542
- _RequiredDataSourceConfigurationTypeDef = TypedDict(
543
- "_RequiredDataSourceConfigurationTypeDef",
456
+ DataSourceConfigurationTypeDef = TypedDict(
457
+ "DataSourceConfigurationTypeDef",
544
458
  {
545
459
  "DataSourceS3Configuration": DataSourceS3ConfigurationTypeDef,
546
460
  "DataFormat": Literal["CSV"],
461
+ "CsvConfiguration": NotRequired[CsvConfigurationTypeDef],
547
462
  },
548
463
  )
549
- _OptionalDataSourceConfigurationTypeDef = TypedDict(
550
- "_OptionalDataSourceConfigurationTypeDef",
551
- {
552
- "CsvConfiguration": CsvConfigurationTypeDef,
553
- },
554
- total=False,
555
- )
556
-
557
-
558
- class DataSourceConfigurationTypeDef(
559
- _RequiredDataSourceConfigurationTypeDef, _OptionalDataSourceConfigurationTypeDef
560
- ):
561
- pass
562
-
563
464
 
564
465
  DescribeEndpointsResponseTypeDef = TypedDict(
565
466
  "DescribeEndpointsResponseTypeDef",
@@ -572,130 +473,48 @@ DescribeEndpointsResponseTypeDef = TypedDict(
572
473
  MagneticStoreRejectedDataLocationTypeDef = TypedDict(
573
474
  "MagneticStoreRejectedDataLocationTypeDef",
574
475
  {
575
- "S3Configuration": S3ConfigurationTypeDef,
476
+ "S3Configuration": NotRequired[S3ConfigurationTypeDef],
576
477
  },
577
- total=False,
578
478
  )
579
479
 
580
480
  RecordTypeDef = TypedDict(
581
481
  "RecordTypeDef",
582
482
  {
583
- "Dimensions": Sequence[DimensionTypeDef],
584
- "MeasureName": str,
585
- "MeasureValue": str,
586
- "MeasureValueType": MeasureValueTypeType,
587
- "Time": str,
588
- "TimeUnit": TimeUnitType,
589
- "Version": int,
590
- "MeasureValues": Sequence[MeasureValueTypeDef],
591
- },
592
- total=False,
593
- )
594
-
595
- _RequiredMixedMeasureMappingOutputTypeDef = TypedDict(
596
- "_RequiredMixedMeasureMappingOutputTypeDef",
597
- {
598
- "MeasureValueType": MeasureValueTypeType,
599
- },
600
- )
601
- _OptionalMixedMeasureMappingOutputTypeDef = TypedDict(
602
- "_OptionalMixedMeasureMappingOutputTypeDef",
603
- {
604
- "MeasureName": str,
605
- "SourceColumn": str,
606
- "TargetMeasureName": str,
607
- "MultiMeasureAttributeMappings": List[MultiMeasureAttributeMappingTypeDef],
483
+ "Dimensions": NotRequired[Sequence[DimensionTypeDef]],
484
+ "MeasureName": NotRequired[str],
485
+ "MeasureValue": NotRequired[str],
486
+ "MeasureValueType": NotRequired[MeasureValueTypeType],
487
+ "Time": NotRequired[str],
488
+ "TimeUnit": NotRequired[TimeUnitType],
489
+ "Version": NotRequired[int],
490
+ "MeasureValues": NotRequired[Sequence[MeasureValueTypeDef]],
608
491
  },
609
- total=False,
610
492
  )
611
493
 
612
-
613
- class MixedMeasureMappingOutputTypeDef(
614
- _RequiredMixedMeasureMappingOutputTypeDef, _OptionalMixedMeasureMappingOutputTypeDef
615
- ):
616
- pass
617
-
618
-
619
- _RequiredMixedMeasureMappingTypeDef = TypedDict(
620
- "_RequiredMixedMeasureMappingTypeDef",
494
+ MixedMeasureMappingTypeDef = TypedDict(
495
+ "MixedMeasureMappingTypeDef",
621
496
  {
622
497
  "MeasureValueType": MeasureValueTypeType,
498
+ "MeasureName": NotRequired[str],
499
+ "SourceColumn": NotRequired[str],
500
+ "TargetMeasureName": NotRequired[str],
501
+ "MultiMeasureAttributeMappings": NotRequired[Sequence[MultiMeasureAttributeMappingTypeDef]],
623
502
  },
624
503
  )
625
- _OptionalMixedMeasureMappingTypeDef = TypedDict(
626
- "_OptionalMixedMeasureMappingTypeDef",
627
- {
628
- "MeasureName": str,
629
- "SourceColumn": str,
630
- "TargetMeasureName": str,
631
- "MultiMeasureAttributeMappings": Sequence[MultiMeasureAttributeMappingTypeDef],
632
- },
633
- total=False,
634
- )
635
-
636
-
637
- class MixedMeasureMappingTypeDef(
638
- _RequiredMixedMeasureMappingTypeDef, _OptionalMixedMeasureMappingTypeDef
639
- ):
640
- pass
641
-
642
-
643
- _RequiredMultiMeasureMappingsOutputTypeDef = TypedDict(
644
- "_RequiredMultiMeasureMappingsOutputTypeDef",
645
- {
646
- "MultiMeasureAttributeMappings": List[MultiMeasureAttributeMappingTypeDef],
647
- },
648
- )
649
- _OptionalMultiMeasureMappingsOutputTypeDef = TypedDict(
650
- "_OptionalMultiMeasureMappingsOutputTypeDef",
651
- {
652
- "TargetMultiMeasureName": str,
653
- },
654
- total=False,
655
- )
656
-
657
-
658
- class MultiMeasureMappingsOutputTypeDef(
659
- _RequiredMultiMeasureMappingsOutputTypeDef, _OptionalMultiMeasureMappingsOutputTypeDef
660
- ):
661
- pass
662
504
 
663
-
664
- _RequiredMultiMeasureMappingsTypeDef = TypedDict(
665
- "_RequiredMultiMeasureMappingsTypeDef",
505
+ MultiMeasureMappingsTypeDef = TypedDict(
506
+ "MultiMeasureMappingsTypeDef",
666
507
  {
667
508
  "MultiMeasureAttributeMappings": Sequence[MultiMeasureAttributeMappingTypeDef],
509
+ "TargetMultiMeasureName": NotRequired[str],
668
510
  },
669
511
  )
670
- _OptionalMultiMeasureMappingsTypeDef = TypedDict(
671
- "_OptionalMultiMeasureMappingsTypeDef",
672
- {
673
- "TargetMultiMeasureName": str,
674
- },
675
- total=False,
676
- )
677
-
678
-
679
- class MultiMeasureMappingsTypeDef(
680
- _RequiredMultiMeasureMappingsTypeDef, _OptionalMultiMeasureMappingsTypeDef
681
- ):
682
- pass
683
-
684
-
685
- SchemaOutputTypeDef = TypedDict(
686
- "SchemaOutputTypeDef",
687
- {
688
- "CompositePartitionKey": List[PartitionKeyTypeDef],
689
- },
690
- total=False,
691
- )
692
512
 
693
513
  SchemaTypeDef = TypedDict(
694
514
  "SchemaTypeDef",
695
515
  {
696
- "CompositePartitionKey": Sequence[PartitionKeyTypeDef],
516
+ "CompositePartitionKey": NotRequired[Sequence[PartitionKeyTypeDef]],
697
517
  },
698
- total=False,
699
518
  )
700
519
 
701
520
  WriteRecordsResponseTypeDef = TypedDict(
@@ -709,182 +528,84 @@ WriteRecordsResponseTypeDef = TypedDict(
709
528
  ReportConfigurationTypeDef = TypedDict(
710
529
  "ReportConfigurationTypeDef",
711
530
  {
712
- "ReportS3Configuration": ReportS3ConfigurationTypeDef,
531
+ "ReportS3Configuration": NotRequired[ReportS3ConfigurationTypeDef],
713
532
  },
714
- total=False,
715
533
  )
716
534
 
717
- _RequiredMagneticStoreWritePropertiesTypeDef = TypedDict(
718
- "_RequiredMagneticStoreWritePropertiesTypeDef",
535
+ MagneticStoreWritePropertiesTypeDef = TypedDict(
536
+ "MagneticStoreWritePropertiesTypeDef",
719
537
  {
720
538
  "EnableMagneticStoreWrites": bool,
539
+ "MagneticStoreRejectedDataLocation": NotRequired[MagneticStoreRejectedDataLocationTypeDef],
721
540
  },
722
541
  )
723
- _OptionalMagneticStoreWritePropertiesTypeDef = TypedDict(
724
- "_OptionalMagneticStoreWritePropertiesTypeDef",
725
- {
726
- "MagneticStoreRejectedDataLocation": MagneticStoreRejectedDataLocationTypeDef,
727
- },
728
- total=False,
729
- )
730
-
731
542
 
732
- class MagneticStoreWritePropertiesTypeDef(
733
- _RequiredMagneticStoreWritePropertiesTypeDef, _OptionalMagneticStoreWritePropertiesTypeDef
734
- ):
735
- pass
736
-
737
-
738
- _RequiredWriteRecordsRequestRequestTypeDef = TypedDict(
739
- "_RequiredWriteRecordsRequestRequestTypeDef",
543
+ WriteRecordsRequestRequestTypeDef = TypedDict(
544
+ "WriteRecordsRequestRequestTypeDef",
740
545
  {
741
546
  "DatabaseName": str,
742
547
  "TableName": str,
743
548
  "Records": Sequence[RecordTypeDef],
549
+ "CommonAttributes": NotRequired[RecordTypeDef],
744
550
  },
745
551
  )
746
- _OptionalWriteRecordsRequestRequestTypeDef = TypedDict(
747
- "_OptionalWriteRecordsRequestRequestTypeDef",
748
- {
749
- "CommonAttributes": RecordTypeDef,
750
- },
751
- total=False,
752
- )
753
-
754
-
755
- class WriteRecordsRequestRequestTypeDef(
756
- _RequiredWriteRecordsRequestRequestTypeDef, _OptionalWriteRecordsRequestRequestTypeDef
757
- ):
758
- pass
759
-
760
-
761
- _RequiredDataModelOutputTypeDef = TypedDict(
762
- "_RequiredDataModelOutputTypeDef",
763
- {
764
- "DimensionMappings": List[DimensionMappingTypeDef],
765
- },
766
- )
767
- _OptionalDataModelOutputTypeDef = TypedDict(
768
- "_OptionalDataModelOutputTypeDef",
769
- {
770
- "TimeColumn": str,
771
- "TimeUnit": TimeUnitType,
772
- "MultiMeasureMappings": MultiMeasureMappingsOutputTypeDef,
773
- "MixedMeasureMappings": List[MixedMeasureMappingOutputTypeDef],
774
- "MeasureNameColumn": str,
775
- },
776
- total=False,
777
- )
778
552
 
779
-
780
- class DataModelOutputTypeDef(_RequiredDataModelOutputTypeDef, _OptionalDataModelOutputTypeDef):
781
- pass
782
-
783
-
784
- _RequiredDataModelTypeDef = TypedDict(
785
- "_RequiredDataModelTypeDef",
553
+ DataModelTypeDef = TypedDict(
554
+ "DataModelTypeDef",
786
555
  {
787
556
  "DimensionMappings": Sequence[DimensionMappingTypeDef],
557
+ "TimeColumn": NotRequired[str],
558
+ "TimeUnit": NotRequired[TimeUnitType],
559
+ "MultiMeasureMappings": NotRequired[MultiMeasureMappingsTypeDef],
560
+ "MixedMeasureMappings": NotRequired[Sequence[MixedMeasureMappingTypeDef]],
561
+ "MeasureNameColumn": NotRequired[str],
788
562
  },
789
563
  )
790
- _OptionalDataModelTypeDef = TypedDict(
791
- "_OptionalDataModelTypeDef",
792
- {
793
- "TimeColumn": str,
794
- "TimeUnit": TimeUnitType,
795
- "MultiMeasureMappings": MultiMeasureMappingsTypeDef,
796
- "MixedMeasureMappings": Sequence[MixedMeasureMappingTypeDef],
797
- "MeasureNameColumn": str,
798
- },
799
- total=False,
800
- )
801
-
802
-
803
- class DataModelTypeDef(_RequiredDataModelTypeDef, _OptionalDataModelTypeDef):
804
- pass
805
564
 
806
-
807
- _RequiredCreateTableRequestRequestTypeDef = TypedDict(
808
- "_RequiredCreateTableRequestRequestTypeDef",
565
+ CreateTableRequestRequestTypeDef = TypedDict(
566
+ "CreateTableRequestRequestTypeDef",
809
567
  {
810
568
  "DatabaseName": str,
811
569
  "TableName": str,
570
+ "RetentionProperties": NotRequired[RetentionPropertiesTypeDef],
571
+ "Tags": NotRequired[Sequence[TagTypeDef]],
572
+ "MagneticStoreWriteProperties": NotRequired[MagneticStoreWritePropertiesTypeDef],
573
+ "Schema": NotRequired[SchemaTypeDef],
812
574
  },
813
575
  )
814
- _OptionalCreateTableRequestRequestTypeDef = TypedDict(
815
- "_OptionalCreateTableRequestRequestTypeDef",
816
- {
817
- "RetentionProperties": RetentionPropertiesTypeDef,
818
- "Tags": Sequence[TagTypeDef],
819
- "MagneticStoreWriteProperties": MagneticStoreWritePropertiesTypeDef,
820
- "Schema": SchemaTypeDef,
821
- },
822
- total=False,
823
- )
824
-
825
-
826
- class CreateTableRequestRequestTypeDef(
827
- _RequiredCreateTableRequestRequestTypeDef, _OptionalCreateTableRequestRequestTypeDef
828
- ):
829
- pass
830
-
831
576
 
832
577
  TableTypeDef = TypedDict(
833
578
  "TableTypeDef",
834
579
  {
835
- "Arn": str,
836
- "TableName": str,
837
- "DatabaseName": str,
838
- "TableStatus": TableStatusType,
839
- "RetentionProperties": RetentionPropertiesTypeDef,
840
- "CreationTime": datetime,
841
- "LastUpdatedTime": datetime,
842
- "MagneticStoreWriteProperties": MagneticStoreWritePropertiesTypeDef,
843
- "Schema": SchemaOutputTypeDef,
580
+ "Arn": NotRequired[str],
581
+ "TableName": NotRequired[str],
582
+ "DatabaseName": NotRequired[str],
583
+ "TableStatus": NotRequired[TableStatusType],
584
+ "RetentionProperties": NotRequired[RetentionPropertiesTypeDef],
585
+ "CreationTime": NotRequired[datetime],
586
+ "LastUpdatedTime": NotRequired[datetime],
587
+ "MagneticStoreWriteProperties": NotRequired[MagneticStoreWritePropertiesTypeDef],
588
+ "Schema": NotRequired[SchemaTypeDef],
844
589
  },
845
- total=False,
846
590
  )
847
591
 
848
- _RequiredUpdateTableRequestRequestTypeDef = TypedDict(
849
- "_RequiredUpdateTableRequestRequestTypeDef",
592
+ UpdateTableRequestRequestTypeDef = TypedDict(
593
+ "UpdateTableRequestRequestTypeDef",
850
594
  {
851
595
  "DatabaseName": str,
852
596
  "TableName": str,
597
+ "RetentionProperties": NotRequired[RetentionPropertiesTypeDef],
598
+ "MagneticStoreWriteProperties": NotRequired[MagneticStoreWritePropertiesTypeDef],
599
+ "Schema": NotRequired[SchemaTypeDef],
853
600
  },
854
601
  )
855
- _OptionalUpdateTableRequestRequestTypeDef = TypedDict(
856
- "_OptionalUpdateTableRequestRequestTypeDef",
857
- {
858
- "RetentionProperties": RetentionPropertiesTypeDef,
859
- "MagneticStoreWriteProperties": MagneticStoreWritePropertiesTypeDef,
860
- "Schema": SchemaTypeDef,
861
- },
862
- total=False,
863
- )
864
-
865
-
866
- class UpdateTableRequestRequestTypeDef(
867
- _RequiredUpdateTableRequestRequestTypeDef, _OptionalUpdateTableRequestRequestTypeDef
868
- ):
869
- pass
870
-
871
-
872
- DataModelConfigurationOutputTypeDef = TypedDict(
873
- "DataModelConfigurationOutputTypeDef",
874
- {
875
- "DataModel": DataModelOutputTypeDef,
876
- "DataModelS3Configuration": DataModelS3ConfigurationTypeDef,
877
- },
878
- total=False,
879
- )
880
602
 
881
603
  DataModelConfigurationTypeDef = TypedDict(
882
604
  "DataModelConfigurationTypeDef",
883
605
  {
884
- "DataModel": DataModelTypeDef,
885
- "DataModelS3Configuration": DataModelS3ConfigurationTypeDef,
606
+ "DataModel": NotRequired[DataModelTypeDef],
607
+ "DataModelS3Configuration": NotRequired[DataModelS3ConfigurationTypeDef],
886
608
  },
887
- total=False,
888
609
  )
889
610
 
890
611
  CreateTableResponseTypeDef = TypedDict(
@@ -923,49 +644,34 @@ UpdateTableResponseTypeDef = TypedDict(
923
644
  BatchLoadTaskDescriptionTypeDef = TypedDict(
924
645
  "BatchLoadTaskDescriptionTypeDef",
925
646
  {
926
- "TaskId": str,
927
- "ErrorMessage": str,
928
- "DataSourceConfiguration": DataSourceConfigurationTypeDef,
929
- "ProgressReport": BatchLoadProgressReportTypeDef,
930
- "ReportConfiguration": ReportConfigurationTypeDef,
931
- "DataModelConfiguration": DataModelConfigurationOutputTypeDef,
932
- "TargetDatabaseName": str,
933
- "TargetTableName": str,
934
- "TaskStatus": BatchLoadStatusType,
935
- "RecordVersion": int,
936
- "CreationTime": datetime,
937
- "LastUpdatedTime": datetime,
938
- "ResumableUntil": datetime,
647
+ "TaskId": NotRequired[str],
648
+ "ErrorMessage": NotRequired[str],
649
+ "DataSourceConfiguration": NotRequired[DataSourceConfigurationTypeDef],
650
+ "ProgressReport": NotRequired[BatchLoadProgressReportTypeDef],
651
+ "ReportConfiguration": NotRequired[ReportConfigurationTypeDef],
652
+ "DataModelConfiguration": NotRequired[DataModelConfigurationTypeDef],
653
+ "TargetDatabaseName": NotRequired[str],
654
+ "TargetTableName": NotRequired[str],
655
+ "TaskStatus": NotRequired[BatchLoadStatusType],
656
+ "RecordVersion": NotRequired[int],
657
+ "CreationTime": NotRequired[datetime],
658
+ "LastUpdatedTime": NotRequired[datetime],
659
+ "ResumableUntil": NotRequired[datetime],
939
660
  },
940
- total=False,
941
661
  )
942
662
 
943
- _RequiredCreateBatchLoadTaskRequestRequestTypeDef = TypedDict(
944
- "_RequiredCreateBatchLoadTaskRequestRequestTypeDef",
663
+ CreateBatchLoadTaskRequestRequestTypeDef = TypedDict(
664
+ "CreateBatchLoadTaskRequestRequestTypeDef",
945
665
  {
946
666
  "DataSourceConfiguration": DataSourceConfigurationTypeDef,
947
667
  "ReportConfiguration": ReportConfigurationTypeDef,
948
668
  "TargetDatabaseName": str,
949
669
  "TargetTableName": str,
670
+ "ClientToken": NotRequired[str],
671
+ "DataModelConfiguration": NotRequired[DataModelConfigurationTypeDef],
672
+ "RecordVersion": NotRequired[int],
950
673
  },
951
674
  )
952
- _OptionalCreateBatchLoadTaskRequestRequestTypeDef = TypedDict(
953
- "_OptionalCreateBatchLoadTaskRequestRequestTypeDef",
954
- {
955
- "ClientToken": str,
956
- "DataModelConfiguration": DataModelConfigurationTypeDef,
957
- "RecordVersion": int,
958
- },
959
- total=False,
960
- )
961
-
962
-
963
- class CreateBatchLoadTaskRequestRequestTypeDef(
964
- _RequiredCreateBatchLoadTaskRequestRequestTypeDef,
965
- _OptionalCreateBatchLoadTaskRequestRequestTypeDef,
966
- ):
967
- pass
968
-
969
675
 
970
676
  DescribeBatchLoadTaskResponseTypeDef = TypedDict(
971
677
  "DescribeBatchLoadTaskResponseTypeDef",