mypy-boto3-timestream-write 1.28.16__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.

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