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