@aws-sdk/client-timestream-write 3.312.0 → 3.315.0

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.
@@ -16,126 +16,126 @@ exports.se_CreateBatchLoadTaskCommand = se_CreateBatchLoadTaskCommand;
16
16
  const se_CreateDatabaseCommand = async (input, context) => {
17
17
  const headers = sharedHeaders("CreateDatabase");
18
18
  let body;
19
- body = JSON.stringify(se_CreateDatabaseRequest(input, context));
19
+ body = JSON.stringify((0, smithy_client_1._json)(input));
20
20
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
21
21
  };
22
22
  exports.se_CreateDatabaseCommand = se_CreateDatabaseCommand;
23
23
  const se_CreateTableCommand = async (input, context) => {
24
24
  const headers = sharedHeaders("CreateTable");
25
25
  let body;
26
- body = JSON.stringify(se_CreateTableRequest(input, context));
26
+ body = JSON.stringify((0, smithy_client_1._json)(input));
27
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
28
28
  };
29
29
  exports.se_CreateTableCommand = se_CreateTableCommand;
30
30
  const se_DeleteDatabaseCommand = async (input, context) => {
31
31
  const headers = sharedHeaders("DeleteDatabase");
32
32
  let body;
33
- body = JSON.stringify(se_DeleteDatabaseRequest(input, context));
33
+ body = JSON.stringify((0, smithy_client_1._json)(input));
34
34
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
35
35
  };
36
36
  exports.se_DeleteDatabaseCommand = se_DeleteDatabaseCommand;
37
37
  const se_DeleteTableCommand = async (input, context) => {
38
38
  const headers = sharedHeaders("DeleteTable");
39
39
  let body;
40
- body = JSON.stringify(se_DeleteTableRequest(input, context));
40
+ body = JSON.stringify((0, smithy_client_1._json)(input));
41
41
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
42
42
  };
43
43
  exports.se_DeleteTableCommand = se_DeleteTableCommand;
44
44
  const se_DescribeBatchLoadTaskCommand = async (input, context) => {
45
45
  const headers = sharedHeaders("DescribeBatchLoadTask");
46
46
  let body;
47
- body = JSON.stringify(se_DescribeBatchLoadTaskRequest(input, context));
47
+ body = JSON.stringify((0, smithy_client_1._json)(input));
48
48
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
49
49
  };
50
50
  exports.se_DescribeBatchLoadTaskCommand = se_DescribeBatchLoadTaskCommand;
51
51
  const se_DescribeDatabaseCommand = async (input, context) => {
52
52
  const headers = sharedHeaders("DescribeDatabase");
53
53
  let body;
54
- body = JSON.stringify(se_DescribeDatabaseRequest(input, context));
54
+ body = JSON.stringify((0, smithy_client_1._json)(input));
55
55
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
56
56
  };
57
57
  exports.se_DescribeDatabaseCommand = se_DescribeDatabaseCommand;
58
58
  const se_DescribeEndpointsCommand = async (input, context) => {
59
59
  const headers = sharedHeaders("DescribeEndpoints");
60
60
  let body;
61
- body = JSON.stringify(se_DescribeEndpointsRequest(input, context));
61
+ body = JSON.stringify((0, smithy_client_1._json)(input));
62
62
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
63
63
  };
64
64
  exports.se_DescribeEndpointsCommand = se_DescribeEndpointsCommand;
65
65
  const se_DescribeTableCommand = async (input, context) => {
66
66
  const headers = sharedHeaders("DescribeTable");
67
67
  let body;
68
- body = JSON.stringify(se_DescribeTableRequest(input, context));
68
+ body = JSON.stringify((0, smithy_client_1._json)(input));
69
69
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
70
70
  };
71
71
  exports.se_DescribeTableCommand = se_DescribeTableCommand;
72
72
  const se_ListBatchLoadTasksCommand = async (input, context) => {
73
73
  const headers = sharedHeaders("ListBatchLoadTasks");
74
74
  let body;
75
- body = JSON.stringify(se_ListBatchLoadTasksRequest(input, context));
75
+ body = JSON.stringify((0, smithy_client_1._json)(input));
76
76
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
77
  };
78
78
  exports.se_ListBatchLoadTasksCommand = se_ListBatchLoadTasksCommand;
79
79
  const se_ListDatabasesCommand = async (input, context) => {
80
80
  const headers = sharedHeaders("ListDatabases");
81
81
  let body;
82
- body = JSON.stringify(se_ListDatabasesRequest(input, context));
82
+ body = JSON.stringify((0, smithy_client_1._json)(input));
83
83
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
84
84
  };
85
85
  exports.se_ListDatabasesCommand = se_ListDatabasesCommand;
86
86
  const se_ListTablesCommand = async (input, context) => {
87
87
  const headers = sharedHeaders("ListTables");
88
88
  let body;
89
- body = JSON.stringify(se_ListTablesRequest(input, context));
89
+ body = JSON.stringify((0, smithy_client_1._json)(input));
90
90
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
91
91
  };
92
92
  exports.se_ListTablesCommand = se_ListTablesCommand;
93
93
  const se_ListTagsForResourceCommand = async (input, context) => {
94
94
  const headers = sharedHeaders("ListTagsForResource");
95
95
  let body;
96
- body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
96
+ body = JSON.stringify((0, smithy_client_1._json)(input));
97
97
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
98
98
  };
99
99
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
100
100
  const se_ResumeBatchLoadTaskCommand = async (input, context) => {
101
101
  const headers = sharedHeaders("ResumeBatchLoadTask");
102
102
  let body;
103
- body = JSON.stringify(se_ResumeBatchLoadTaskRequest(input, context));
103
+ body = JSON.stringify((0, smithy_client_1._json)(input));
104
104
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
105
105
  };
106
106
  exports.se_ResumeBatchLoadTaskCommand = se_ResumeBatchLoadTaskCommand;
107
107
  const se_TagResourceCommand = async (input, context) => {
108
108
  const headers = sharedHeaders("TagResource");
109
109
  let body;
110
- body = JSON.stringify(se_TagResourceRequest(input, context));
110
+ body = JSON.stringify((0, smithy_client_1._json)(input));
111
111
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
112
112
  };
113
113
  exports.se_TagResourceCommand = se_TagResourceCommand;
114
114
  const se_UntagResourceCommand = async (input, context) => {
115
115
  const headers = sharedHeaders("UntagResource");
116
116
  let body;
117
- body = JSON.stringify(se_UntagResourceRequest(input, context));
117
+ body = JSON.stringify((0, smithy_client_1._json)(input));
118
118
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
119
119
  };
120
120
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
121
121
  const se_UpdateDatabaseCommand = async (input, context) => {
122
122
  const headers = sharedHeaders("UpdateDatabase");
123
123
  let body;
124
- body = JSON.stringify(se_UpdateDatabaseRequest(input, context));
124
+ body = JSON.stringify((0, smithy_client_1._json)(input));
125
125
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
126
126
  };
127
127
  exports.se_UpdateDatabaseCommand = se_UpdateDatabaseCommand;
128
128
  const se_UpdateTableCommand = async (input, context) => {
129
129
  const headers = sharedHeaders("UpdateTable");
130
130
  let body;
131
- body = JSON.stringify(se_UpdateTableRequest(input, context));
131
+ body = JSON.stringify((0, smithy_client_1._json)(input));
132
132
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
133
133
  };
134
134
  exports.se_UpdateTableCommand = se_UpdateTableCommand;
135
135
  const se_WriteRecordsCommand = async (input, context) => {
136
136
  const headers = sharedHeaders("WriteRecords");
137
137
  let body;
138
- body = JSON.stringify(se_WriteRecordsRequest(input, context));
138
+ body = JSON.stringify((0, smithy_client_1._json)(input));
139
139
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
140
140
  };
141
141
  exports.se_WriteRecordsCommand = se_WriteRecordsCommand;
@@ -145,12 +145,12 @@ const de_CreateBatchLoadTaskCommand = async (output, context) => {
145
145
  }
146
146
  const data = await parseBody(output.body, context);
147
147
  let contents = {};
148
- contents = de_CreateBatchLoadTaskResponse(data, context);
148
+ contents = (0, smithy_client_1._json)(data);
149
149
  const response = {
150
150
  $metadata: deserializeMetadata(output),
151
151
  ...contents,
152
152
  };
153
- return Promise.resolve(response);
153
+ return response;
154
154
  };
155
155
  exports.de_CreateBatchLoadTaskCommand = de_CreateBatchLoadTaskCommand;
156
156
  const de_CreateBatchLoadTaskCommandError = async (output, context) => {
@@ -186,10 +186,9 @@ const de_CreateBatchLoadTaskCommandError = async (output, context) => {
186
186
  throw await de_ValidationExceptionRes(parsedOutput, context);
187
187
  default:
188
188
  const parsedBody = parsedOutput.body;
189
- (0, smithy_client_1.throwDefaultError)({
189
+ return throwDefaultError({
190
190
  output,
191
191
  parsedBody,
192
- exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
193
192
  errorCode,
194
193
  });
195
194
  }
@@ -205,7 +204,7 @@ const de_CreateDatabaseCommand = async (output, context) => {
205
204
  $metadata: deserializeMetadata(output),
206
205
  ...contents,
207
206
  };
208
- return Promise.resolve(response);
207
+ return response;
209
208
  };
210
209
  exports.de_CreateDatabaseCommand = de_CreateDatabaseCommand;
211
210
  const de_CreateDatabaseCommandError = async (output, context) => {
@@ -238,10 +237,9 @@ const de_CreateDatabaseCommandError = async (output, context) => {
238
237
  throw await de_ValidationExceptionRes(parsedOutput, context);
239
238
  default:
240
239
  const parsedBody = parsedOutput.body;
241
- (0, smithy_client_1.throwDefaultError)({
240
+ return throwDefaultError({
242
241
  output,
243
242
  parsedBody,
244
- exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
245
243
  errorCode,
246
244
  });
247
245
  }
@@ -257,7 +255,7 @@ const de_CreateTableCommand = async (output, context) => {
257
255
  $metadata: deserializeMetadata(output),
258
256
  ...contents,
259
257
  };
260
- return Promise.resolve(response);
258
+ return response;
261
259
  };
262
260
  exports.de_CreateTableCommand = de_CreateTableCommand;
263
261
  const de_CreateTableCommandError = async (output, context) => {
@@ -293,10 +291,9 @@ const de_CreateTableCommandError = async (output, context) => {
293
291
  throw await de_ValidationExceptionRes(parsedOutput, context);
294
292
  default:
295
293
  const parsedBody = parsedOutput.body;
296
- (0, smithy_client_1.throwDefaultError)({
294
+ return throwDefaultError({
297
295
  output,
298
296
  parsedBody,
299
- exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
300
297
  errorCode,
301
298
  });
302
299
  }
@@ -309,7 +306,7 @@ const de_DeleteDatabaseCommand = async (output, context) => {
309
306
  const response = {
310
307
  $metadata: deserializeMetadata(output),
311
308
  };
312
- return Promise.resolve(response);
309
+ return response;
313
310
  };
314
311
  exports.de_DeleteDatabaseCommand = de_DeleteDatabaseCommand;
315
312
  const de_DeleteDatabaseCommandError = async (output, context) => {
@@ -339,10 +336,9 @@ const de_DeleteDatabaseCommandError = async (output, context) => {
339
336
  throw await de_ValidationExceptionRes(parsedOutput, context);
340
337
  default:
341
338
  const parsedBody = parsedOutput.body;
342
- (0, smithy_client_1.throwDefaultError)({
339
+ return throwDefaultError({
343
340
  output,
344
341
  parsedBody,
345
- exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
346
342
  errorCode,
347
343
  });
348
344
  }
@@ -355,7 +351,7 @@ const de_DeleteTableCommand = async (output, context) => {
355
351
  const response = {
356
352
  $metadata: deserializeMetadata(output),
357
353
  };
358
- return Promise.resolve(response);
354
+ return response;
359
355
  };
360
356
  exports.de_DeleteTableCommand = de_DeleteTableCommand;
361
357
  const de_DeleteTableCommandError = async (output, context) => {
@@ -385,10 +381,9 @@ const de_DeleteTableCommandError = async (output, context) => {
385
381
  throw await de_ValidationExceptionRes(parsedOutput, context);
386
382
  default:
387
383
  const parsedBody = parsedOutput.body;
388
- (0, smithy_client_1.throwDefaultError)({
384
+ return throwDefaultError({
389
385
  output,
390
386
  parsedBody,
391
- exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
392
387
  errorCode,
393
388
  });
394
389
  }
@@ -404,7 +399,7 @@ const de_DescribeBatchLoadTaskCommand = async (output, context) => {
404
399
  $metadata: deserializeMetadata(output),
405
400
  ...contents,
406
401
  };
407
- return Promise.resolve(response);
402
+ return response;
408
403
  };
409
404
  exports.de_DescribeBatchLoadTaskCommand = de_DescribeBatchLoadTaskCommand;
410
405
  const de_DescribeBatchLoadTaskCommandError = async (output, context) => {
@@ -431,10 +426,9 @@ const de_DescribeBatchLoadTaskCommandError = async (output, context) => {
431
426
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
432
427
  default:
433
428
  const parsedBody = parsedOutput.body;
434
- (0, smithy_client_1.throwDefaultError)({
429
+ return throwDefaultError({
435
430
  output,
436
431
  parsedBody,
437
- exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
438
432
  errorCode,
439
433
  });
440
434
  }
@@ -450,7 +444,7 @@ const de_DescribeDatabaseCommand = async (output, context) => {
450
444
  $metadata: deserializeMetadata(output),
451
445
  ...contents,
452
446
  };
453
- return Promise.resolve(response);
447
+ return response;
454
448
  };
455
449
  exports.de_DescribeDatabaseCommand = de_DescribeDatabaseCommand;
456
450
  const de_DescribeDatabaseCommandError = async (output, context) => {
@@ -480,10 +474,9 @@ const de_DescribeDatabaseCommandError = async (output, context) => {
480
474
  throw await de_ValidationExceptionRes(parsedOutput, context);
481
475
  default:
482
476
  const parsedBody = parsedOutput.body;
483
- (0, smithy_client_1.throwDefaultError)({
477
+ return throwDefaultError({
484
478
  output,
485
479
  parsedBody,
486
- exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
487
480
  errorCode,
488
481
  });
489
482
  }
@@ -494,12 +487,12 @@ const de_DescribeEndpointsCommand = async (output, context) => {
494
487
  }
495
488
  const data = await parseBody(output.body, context);
496
489
  let contents = {};
497
- contents = de_DescribeEndpointsResponse(data, context);
490
+ contents = (0, smithy_client_1._json)(data);
498
491
  const response = {
499
492
  $metadata: deserializeMetadata(output),
500
493
  ...contents,
501
494
  };
502
- return Promise.resolve(response);
495
+ return response;
503
496
  };
504
497
  exports.de_DescribeEndpointsCommand = de_DescribeEndpointsCommand;
505
498
  const de_DescribeEndpointsCommandError = async (output, context) => {
@@ -520,10 +513,9 @@ const de_DescribeEndpointsCommandError = async (output, context) => {
520
513
  throw await de_ValidationExceptionRes(parsedOutput, context);
521
514
  default:
522
515
  const parsedBody = parsedOutput.body;
523
- (0, smithy_client_1.throwDefaultError)({
516
+ return throwDefaultError({
524
517
  output,
525
518
  parsedBody,
526
- exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
527
519
  errorCode,
528
520
  });
529
521
  }
@@ -539,7 +531,7 @@ const de_DescribeTableCommand = async (output, context) => {
539
531
  $metadata: deserializeMetadata(output),
540
532
  ...contents,
541
533
  };
542
- return Promise.resolve(response);
534
+ return response;
543
535
  };
544
536
  exports.de_DescribeTableCommand = de_DescribeTableCommand;
545
537
  const de_DescribeTableCommandError = async (output, context) => {
@@ -569,10 +561,9 @@ const de_DescribeTableCommandError = async (output, context) => {
569
561
  throw await de_ValidationExceptionRes(parsedOutput, context);
570
562
  default:
571
563
  const parsedBody = parsedOutput.body;
572
- (0, smithy_client_1.throwDefaultError)({
564
+ return throwDefaultError({
573
565
  output,
574
566
  parsedBody,
575
- exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
576
567
  errorCode,
577
568
  });
578
569
  }
@@ -588,7 +579,7 @@ const de_ListBatchLoadTasksCommand = async (output, context) => {
588
579
  $metadata: deserializeMetadata(output),
589
580
  ...contents,
590
581
  };
591
- return Promise.resolve(response);
582
+ return response;
592
583
  };
593
584
  exports.de_ListBatchLoadTasksCommand = de_ListBatchLoadTasksCommand;
594
585
  const de_ListBatchLoadTasksCommandError = async (output, context) => {
@@ -615,10 +606,9 @@ const de_ListBatchLoadTasksCommandError = async (output, context) => {
615
606
  throw await de_ValidationExceptionRes(parsedOutput, context);
616
607
  default:
617
608
  const parsedBody = parsedOutput.body;
618
- (0, smithy_client_1.throwDefaultError)({
609
+ return throwDefaultError({
619
610
  output,
620
611
  parsedBody,
621
- exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
622
612
  errorCode,
623
613
  });
624
614
  }
@@ -634,7 +624,7 @@ const de_ListDatabasesCommand = async (output, context) => {
634
624
  $metadata: deserializeMetadata(output),
635
625
  ...contents,
636
626
  };
637
- return Promise.resolve(response);
627
+ return response;
638
628
  };
639
629
  exports.de_ListDatabasesCommand = de_ListDatabasesCommand;
640
630
  const de_ListDatabasesCommandError = async (output, context) => {
@@ -661,10 +651,9 @@ const de_ListDatabasesCommandError = async (output, context) => {
661
651
  throw await de_ValidationExceptionRes(parsedOutput, context);
662
652
  default:
663
653
  const parsedBody = parsedOutput.body;
664
- (0, smithy_client_1.throwDefaultError)({
654
+ return throwDefaultError({
665
655
  output,
666
656
  parsedBody,
667
- exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
668
657
  errorCode,
669
658
  });
670
659
  }
@@ -680,7 +669,7 @@ const de_ListTablesCommand = async (output, context) => {
680
669
  $metadata: deserializeMetadata(output),
681
670
  ...contents,
682
671
  };
683
- return Promise.resolve(response);
672
+ return response;
684
673
  };
685
674
  exports.de_ListTablesCommand = de_ListTablesCommand;
686
675
  const de_ListTablesCommandError = async (output, context) => {
@@ -710,10 +699,9 @@ const de_ListTablesCommandError = async (output, context) => {
710
699
  throw await de_ValidationExceptionRes(parsedOutput, context);
711
700
  default:
712
701
  const parsedBody = parsedOutput.body;
713
- (0, smithy_client_1.throwDefaultError)({
702
+ return throwDefaultError({
714
703
  output,
715
704
  parsedBody,
716
- exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
717
705
  errorCode,
718
706
  });
719
707
  }
@@ -724,12 +712,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
724
712
  }
725
713
  const data = await parseBody(output.body, context);
726
714
  let contents = {};
727
- contents = de_ListTagsForResourceResponse(data, context);
715
+ contents = (0, smithy_client_1._json)(data);
728
716
  const response = {
729
717
  $metadata: deserializeMetadata(output),
730
718
  ...contents,
731
719
  };
732
- return Promise.resolve(response);
720
+ return response;
733
721
  };
734
722
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
735
723
  const de_ListTagsForResourceCommandError = async (output, context) => {
@@ -753,10 +741,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
753
741
  throw await de_ValidationExceptionRes(parsedOutput, context);
754
742
  default:
755
743
  const parsedBody = parsedOutput.body;
756
- (0, smithy_client_1.throwDefaultError)({
744
+ return throwDefaultError({
757
745
  output,
758
746
  parsedBody,
759
- exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
760
747
  errorCode,
761
748
  });
762
749
  }
@@ -767,12 +754,12 @@ const de_ResumeBatchLoadTaskCommand = async (output, context) => {
767
754
  }
768
755
  const data = await parseBody(output.body, context);
769
756
  let contents = {};
770
- contents = de_ResumeBatchLoadTaskResponse(data, context);
757
+ contents = (0, smithy_client_1._json)(data);
771
758
  const response = {
772
759
  $metadata: deserializeMetadata(output),
773
760
  ...contents,
774
761
  };
775
- return Promise.resolve(response);
762
+ return response;
776
763
  };
777
764
  exports.de_ResumeBatchLoadTaskCommand = de_ResumeBatchLoadTaskCommand;
778
765
  const de_ResumeBatchLoadTaskCommandError = async (output, context) => {
@@ -802,10 +789,9 @@ const de_ResumeBatchLoadTaskCommandError = async (output, context) => {
802
789
  throw await de_ValidationExceptionRes(parsedOutput, context);
803
790
  default:
804
791
  const parsedBody = parsedOutput.body;
805
- (0, smithy_client_1.throwDefaultError)({
792
+ return throwDefaultError({
806
793
  output,
807
794
  parsedBody,
808
- exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
809
795
  errorCode,
810
796
  });
811
797
  }
@@ -816,12 +802,12 @@ const de_TagResourceCommand = async (output, context) => {
816
802
  }
817
803
  const data = await parseBody(output.body, context);
818
804
  let contents = {};
819
- contents = de_TagResourceResponse(data, context);
805
+ contents = (0, smithy_client_1._json)(data);
820
806
  const response = {
821
807
  $metadata: deserializeMetadata(output),
822
808
  ...contents,
823
809
  };
824
- return Promise.resolve(response);
810
+ return response;
825
811
  };
826
812
  exports.de_TagResourceCommand = de_TagResourceCommand;
827
813
  const de_TagResourceCommandError = async (output, context) => {
@@ -848,10 +834,9 @@ const de_TagResourceCommandError = async (output, context) => {
848
834
  throw await de_ValidationExceptionRes(parsedOutput, context);
849
835
  default:
850
836
  const parsedBody = parsedOutput.body;
851
- (0, smithy_client_1.throwDefaultError)({
837
+ return throwDefaultError({
852
838
  output,
853
839
  parsedBody,
854
- exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
855
840
  errorCode,
856
841
  });
857
842
  }
@@ -862,12 +847,12 @@ const de_UntagResourceCommand = async (output, context) => {
862
847
  }
863
848
  const data = await parseBody(output.body, context);
864
849
  let contents = {};
865
- contents = de_UntagResourceResponse(data, context);
850
+ contents = (0, smithy_client_1._json)(data);
866
851
  const response = {
867
852
  $metadata: deserializeMetadata(output),
868
853
  ...contents,
869
854
  };
870
- return Promise.resolve(response);
855
+ return response;
871
856
  };
872
857
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
873
858
  const de_UntagResourceCommandError = async (output, context) => {
@@ -894,10 +879,9 @@ const de_UntagResourceCommandError = async (output, context) => {
894
879
  throw await de_ValidationExceptionRes(parsedOutput, context);
895
880
  default:
896
881
  const parsedBody = parsedOutput.body;
897
- (0, smithy_client_1.throwDefaultError)({
882
+ return throwDefaultError({
898
883
  output,
899
884
  parsedBody,
900
- exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
901
885
  errorCode,
902
886
  });
903
887
  }
@@ -913,7 +897,7 @@ const de_UpdateDatabaseCommand = async (output, context) => {
913
897
  $metadata: deserializeMetadata(output),
914
898
  ...contents,
915
899
  };
916
- return Promise.resolve(response);
900
+ return response;
917
901
  };
918
902
  exports.de_UpdateDatabaseCommand = de_UpdateDatabaseCommand;
919
903
  const de_UpdateDatabaseCommandError = async (output, context) => {
@@ -946,10 +930,9 @@ const de_UpdateDatabaseCommandError = async (output, context) => {
946
930
  throw await de_ValidationExceptionRes(parsedOutput, context);
947
931
  default:
948
932
  const parsedBody = parsedOutput.body;
949
- (0, smithy_client_1.throwDefaultError)({
933
+ return throwDefaultError({
950
934
  output,
951
935
  parsedBody,
952
- exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
953
936
  errorCode,
954
937
  });
955
938
  }
@@ -965,7 +948,7 @@ const de_UpdateTableCommand = async (output, context) => {
965
948
  $metadata: deserializeMetadata(output),
966
949
  ...contents,
967
950
  };
968
- return Promise.resolve(response);
951
+ return response;
969
952
  };
970
953
  exports.de_UpdateTableCommand = de_UpdateTableCommand;
971
954
  const de_UpdateTableCommandError = async (output, context) => {
@@ -995,10 +978,9 @@ const de_UpdateTableCommandError = async (output, context) => {
995
978
  throw await de_ValidationExceptionRes(parsedOutput, context);
996
979
  default:
997
980
  const parsedBody = parsedOutput.body;
998
- (0, smithy_client_1.throwDefaultError)({
981
+ return throwDefaultError({
999
982
  output,
1000
983
  parsedBody,
1001
- exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
1002
984
  errorCode,
1003
985
  });
1004
986
  }
@@ -1009,12 +991,12 @@ const de_WriteRecordsCommand = async (output, context) => {
1009
991
  }
1010
992
  const data = await parseBody(output.body, context);
1011
993
  let contents = {};
1012
- contents = de_WriteRecordsResponse(data, context);
994
+ contents = (0, smithy_client_1._json)(data);
1013
995
  const response = {
1014
996
  $metadata: deserializeMetadata(output),
1015
997
  ...contents,
1016
998
  };
1017
- return Promise.resolve(response);
999
+ return response;
1018
1000
  };
1019
1001
  exports.de_WriteRecordsCommand = de_WriteRecordsCommand;
1020
1002
  const de_WriteRecordsCommandError = async (output, context) => {
@@ -1047,17 +1029,16 @@ const de_WriteRecordsCommandError = async (output, context) => {
1047
1029
  throw await de_ValidationExceptionRes(parsedOutput, context);
1048
1030
  default:
1049
1031
  const parsedBody = parsedOutput.body;
1050
- (0, smithy_client_1.throwDefaultError)({
1032
+ return throwDefaultError({
1051
1033
  output,
1052
1034
  parsedBody,
1053
- exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
1054
1035
  errorCode,
1055
1036
  });
1056
1037
  }
1057
1038
  };
1058
1039
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1059
1040
  const body = parsedOutput.body;
1060
- const deserialized = de_AccessDeniedException(body, context);
1041
+ const deserialized = (0, smithy_client_1._json)(body);
1061
1042
  const exception = new models_0_1.AccessDeniedException({
1062
1043
  $metadata: deserializeMetadata(parsedOutput),
1063
1044
  ...deserialized,
@@ -1066,7 +1047,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1066
1047
  };
1067
1048
  const de_ConflictExceptionRes = async (parsedOutput, context) => {
1068
1049
  const body = parsedOutput.body;
1069
- const deserialized = de_ConflictException(body, context);
1050
+ const deserialized = (0, smithy_client_1._json)(body);
1070
1051
  const exception = new models_0_1.ConflictException({
1071
1052
  $metadata: deserializeMetadata(parsedOutput),
1072
1053
  ...deserialized,
@@ -1075,7 +1056,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
1075
1056
  };
1076
1057
  const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1077
1058
  const body = parsedOutput.body;
1078
- const deserialized = de_InternalServerException(body, context);
1059
+ const deserialized = (0, smithy_client_1._json)(body);
1079
1060
  const exception = new models_0_1.InternalServerException({
1080
1061
  $metadata: deserializeMetadata(parsedOutput),
1081
1062
  ...deserialized,
@@ -1084,7 +1065,7 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1084
1065
  };
1085
1066
  const de_InvalidEndpointExceptionRes = async (parsedOutput, context) => {
1086
1067
  const body = parsedOutput.body;
1087
- const deserialized = de_InvalidEndpointException(body, context);
1068
+ const deserialized = (0, smithy_client_1._json)(body);
1088
1069
  const exception = new models_0_1.InvalidEndpointException({
1089
1070
  $metadata: deserializeMetadata(parsedOutput),
1090
1071
  ...deserialized,
@@ -1093,7 +1074,7 @@ const de_InvalidEndpointExceptionRes = async (parsedOutput, context) => {
1093
1074
  };
1094
1075
  const de_RejectedRecordsExceptionRes = async (parsedOutput, context) => {
1095
1076
  const body = parsedOutput.body;
1096
- const deserialized = de_RejectedRecordsException(body, context);
1077
+ const deserialized = (0, smithy_client_1._json)(body);
1097
1078
  const exception = new models_0_1.RejectedRecordsException({
1098
1079
  $metadata: deserializeMetadata(parsedOutput),
1099
1080
  ...deserialized,
@@ -1102,7 +1083,7 @@ const de_RejectedRecordsExceptionRes = async (parsedOutput, context) => {
1102
1083
  };
1103
1084
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1104
1085
  const body = parsedOutput.body;
1105
- const deserialized = de_ResourceNotFoundException(body, context);
1086
+ const deserialized = (0, smithy_client_1._json)(body);
1106
1087
  const exception = new models_0_1.ResourceNotFoundException({
1107
1088
  $metadata: deserializeMetadata(parsedOutput),
1108
1089
  ...deserialized,
@@ -1111,7 +1092,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1111
1092
  };
1112
1093
  const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1113
1094
  const body = parsedOutput.body;
1114
- const deserialized = de_ServiceQuotaExceededException(body, context);
1095
+ const deserialized = (0, smithy_client_1._json)(body);
1115
1096
  const exception = new models_0_1.ServiceQuotaExceededException({
1116
1097
  $metadata: deserializeMetadata(parsedOutput),
1117
1098
  ...deserialized,
@@ -1120,7 +1101,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1120
1101
  };
1121
1102
  const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1122
1103
  const body = parsedOutput.body;
1123
- const deserialized = de_ThrottlingException(body, context);
1104
+ const deserialized = (0, smithy_client_1._json)(body);
1124
1105
  const exception = new models_0_1.ThrottlingException({
1125
1106
  $metadata: deserializeMetadata(parsedOutput),
1126
1107
  ...deserialized,
@@ -1129,7 +1110,7 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1129
1110
  };
1130
1111
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
1131
1112
  const body = parsedOutput.body;
1132
- const deserialized = de_ValidationException(body, context);
1113
+ const deserialized = (0, smithy_client_1._json)(body);
1133
1114
  const exception = new models_0_1.ValidationException({
1134
1115
  $metadata: deserializeMetadata(parsedOutput),
1135
1116
  ...deserialized,
@@ -1137,826 +1118,142 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1137
1118
  return (0, smithy_client_1.decorateServiceException)(exception, body);
1138
1119
  };
1139
1120
  const se_CreateBatchLoadTaskRequest = (input, context) => {
1140
- return {
1141
- ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
1142
- ...(input.DataModelConfiguration != null && {
1143
- DataModelConfiguration: se_DataModelConfiguration(input.DataModelConfiguration, context),
1144
- }),
1145
- ...(input.DataSourceConfiguration != null && {
1146
- DataSourceConfiguration: se_DataSourceConfiguration(input.DataSourceConfiguration, context),
1147
- }),
1148
- ...(input.RecordVersion != null && { RecordVersion: input.RecordVersion }),
1149
- ...(input.ReportConfiguration != null && {
1150
- ReportConfiguration: se_ReportConfiguration(input.ReportConfiguration, context),
1151
- }),
1152
- ...(input.TargetDatabaseName != null && { TargetDatabaseName: input.TargetDatabaseName }),
1153
- ...(input.TargetTableName != null && { TargetTableName: input.TargetTableName }),
1154
- };
1155
- };
1156
- const se_CreateDatabaseRequest = (input, context) => {
1157
- return {
1158
- ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
1159
- ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
1160
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
1161
- };
1162
- };
1163
- const se_CreateTableRequest = (input, context) => {
1164
- return {
1165
- ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
1166
- ...(input.MagneticStoreWriteProperties != null && {
1167
- MagneticStoreWriteProperties: se_MagneticStoreWriteProperties(input.MagneticStoreWriteProperties, context),
1168
- }),
1169
- ...(input.RetentionProperties != null && {
1170
- RetentionProperties: se_RetentionProperties(input.RetentionProperties, context),
1171
- }),
1172
- ...(input.TableName != null && { TableName: input.TableName }),
1173
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
1174
- };
1175
- };
1176
- const se_CsvConfiguration = (input, context) => {
1177
- return {
1178
- ...(input.ColumnSeparator != null && { ColumnSeparator: input.ColumnSeparator }),
1179
- ...(input.EscapeChar != null && { EscapeChar: input.EscapeChar }),
1180
- ...(input.NullValue != null && { NullValue: input.NullValue }),
1181
- ...(input.QuoteChar != null && { QuoteChar: input.QuoteChar }),
1182
- ...(input.TrimWhiteSpace != null && { TrimWhiteSpace: input.TrimWhiteSpace }),
1183
- };
1184
- };
1185
- const se_DataModel = (input, context) => {
1186
- return {
1187
- ...(input.DimensionMappings != null && {
1188
- DimensionMappings: se_DimensionMappings(input.DimensionMappings, context),
1189
- }),
1190
- ...(input.MeasureNameColumn != null && { MeasureNameColumn: input.MeasureNameColumn }),
1191
- ...(input.MixedMeasureMappings != null && {
1192
- MixedMeasureMappings: se_MixedMeasureMappingList(input.MixedMeasureMappings, context),
1193
- }),
1194
- ...(input.MultiMeasureMappings != null && {
1195
- MultiMeasureMappings: se_MultiMeasureMappings(input.MultiMeasureMappings, context),
1196
- }),
1197
- ...(input.TimeColumn != null && { TimeColumn: input.TimeColumn }),
1198
- ...(input.TimeUnit != null && { TimeUnit: input.TimeUnit }),
1199
- };
1200
- };
1201
- const se_DataModelConfiguration = (input, context) => {
1202
- return {
1203
- ...(input.DataModel != null && { DataModel: se_DataModel(input.DataModel, context) }),
1204
- ...(input.DataModelS3Configuration != null && {
1205
- DataModelS3Configuration: se_DataModelS3Configuration(input.DataModelS3Configuration, context),
1206
- }),
1207
- };
1208
- };
1209
- const se_DataModelS3Configuration = (input, context) => {
1210
- return {
1211
- ...(input.BucketName != null && { BucketName: input.BucketName }),
1212
- ...(input.ObjectKey != null && { ObjectKey: input.ObjectKey }),
1213
- };
1214
- };
1215
- const se_DataSourceConfiguration = (input, context) => {
1216
- return {
1217
- ...(input.CsvConfiguration != null && { CsvConfiguration: se_CsvConfiguration(input.CsvConfiguration, context) }),
1218
- ...(input.DataFormat != null && { DataFormat: input.DataFormat }),
1219
- ...(input.DataSourceS3Configuration != null && {
1220
- DataSourceS3Configuration: se_DataSourceS3Configuration(input.DataSourceS3Configuration, context),
1221
- }),
1222
- };
1223
- };
1224
- const se_DataSourceS3Configuration = (input, context) => {
1225
- return {
1226
- ...(input.BucketName != null && { BucketName: input.BucketName }),
1227
- ...(input.ObjectKeyPrefix != null && { ObjectKeyPrefix: input.ObjectKeyPrefix }),
1228
- };
1229
- };
1230
- const se_DeleteDatabaseRequest = (input, context) => {
1231
- return {
1232
- ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
1233
- };
1234
- };
1235
- const se_DeleteTableRequest = (input, context) => {
1236
- return {
1237
- ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
1238
- ...(input.TableName != null && { TableName: input.TableName }),
1239
- };
1240
- };
1241
- const se_DescribeBatchLoadTaskRequest = (input, context) => {
1242
- return {
1243
- ...(input.TaskId != null && { TaskId: input.TaskId }),
1244
- };
1245
- };
1246
- const se_DescribeDatabaseRequest = (input, context) => {
1247
- return {
1248
- ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
1249
- };
1250
- };
1251
- const se_DescribeEndpointsRequest = (input, context) => {
1252
- return {};
1253
- };
1254
- const se_DescribeTableRequest = (input, context) => {
1255
- return {
1256
- ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
1257
- ...(input.TableName != null && { TableName: input.TableName }),
1258
- };
1259
- };
1260
- const se_Dimension = (input, context) => {
1261
- return {
1262
- ...(input.DimensionValueType != null && { DimensionValueType: input.DimensionValueType }),
1263
- ...(input.Name != null && { Name: input.Name }),
1264
- ...(input.Value != null && { Value: input.Value }),
1265
- };
1266
- };
1267
- const se_DimensionMapping = (input, context) => {
1268
- return {
1269
- ...(input.DestinationColumn != null && { DestinationColumn: input.DestinationColumn }),
1270
- ...(input.SourceColumn != null && { SourceColumn: input.SourceColumn }),
1271
- };
1272
- };
1273
- const se_DimensionMappings = (input, context) => {
1274
- return input
1275
- .filter((e) => e != null)
1276
- .map((entry) => {
1277
- return se_DimensionMapping(entry, context);
1278
- });
1279
- };
1280
- const se_Dimensions = (input, context) => {
1281
- return input
1282
- .filter((e) => e != null)
1283
- .map((entry) => {
1284
- return se_Dimension(entry, context);
1285
- });
1286
- };
1287
- const se_ListBatchLoadTasksRequest = (input, context) => {
1288
- return {
1289
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1290
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1291
- ...(input.TaskStatus != null && { TaskStatus: input.TaskStatus }),
1292
- };
1293
- };
1294
- const se_ListDatabasesRequest = (input, context) => {
1295
- return {
1296
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1297
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1298
- };
1299
- };
1300
- const se_ListTablesRequest = (input, context) => {
1301
- return {
1302
- ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
1303
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1304
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1305
- };
1306
- };
1307
- const se_ListTagsForResourceRequest = (input, context) => {
1308
- return {
1309
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
1310
- };
1311
- };
1312
- const se_MagneticStoreRejectedDataLocation = (input, context) => {
1313
- return {
1314
- ...(input.S3Configuration != null && { S3Configuration: se_S3Configuration(input.S3Configuration, context) }),
1315
- };
1316
- };
1317
- const se_MagneticStoreWriteProperties = (input, context) => {
1318
- return {
1319
- ...(input.EnableMagneticStoreWrites != null && { EnableMagneticStoreWrites: input.EnableMagneticStoreWrites }),
1320
- ...(input.MagneticStoreRejectedDataLocation != null && {
1321
- MagneticStoreRejectedDataLocation: se_MagneticStoreRejectedDataLocation(input.MagneticStoreRejectedDataLocation, context),
1322
- }),
1323
- };
1324
- };
1325
- const se_MeasureValue = (input, context) => {
1326
- return {
1327
- ...(input.Name != null && { Name: input.Name }),
1328
- ...(input.Type != null && { Type: input.Type }),
1329
- ...(input.Value != null && { Value: input.Value }),
1330
- };
1331
- };
1332
- const se_MeasureValues = (input, context) => {
1333
- return input
1334
- .filter((e) => e != null)
1335
- .map((entry) => {
1336
- return se_MeasureValue(entry, context);
1121
+ return (0, smithy_client_1.take)(input, {
1122
+ ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
1123
+ DataModelConfiguration: smithy_client_1._json,
1124
+ DataSourceConfiguration: smithy_client_1._json,
1125
+ RecordVersion: [],
1126
+ ReportConfiguration: smithy_client_1._json,
1127
+ TargetDatabaseName: [],
1128
+ TargetTableName: [],
1337
1129
  });
1338
1130
  };
1339
- const se_MixedMeasureMapping = (input, context) => {
1340
- return {
1341
- ...(input.MeasureName != null && { MeasureName: input.MeasureName }),
1342
- ...(input.MeasureValueType != null && { MeasureValueType: input.MeasureValueType }),
1343
- ...(input.MultiMeasureAttributeMappings != null && {
1344
- MultiMeasureAttributeMappings: se_MultiMeasureAttributeMappingList(input.MultiMeasureAttributeMappings, context),
1345
- }),
1346
- ...(input.SourceColumn != null && { SourceColumn: input.SourceColumn }),
1347
- ...(input.TargetMeasureName != null && { TargetMeasureName: input.TargetMeasureName }),
1348
- };
1349
- };
1350
- const se_MixedMeasureMappingList = (input, context) => {
1351
- return input
1352
- .filter((e) => e != null)
1353
- .map((entry) => {
1354
- return se_MixedMeasureMapping(entry, context);
1355
- });
1356
- };
1357
- const se_MultiMeasureAttributeMapping = (input, context) => {
1358
- return {
1359
- ...(input.MeasureValueType != null && { MeasureValueType: input.MeasureValueType }),
1360
- ...(input.SourceColumn != null && { SourceColumn: input.SourceColumn }),
1361
- ...(input.TargetMultiMeasureAttributeName != null && {
1362
- TargetMultiMeasureAttributeName: input.TargetMultiMeasureAttributeName,
1363
- }),
1364
- };
1365
- };
1366
- const se_MultiMeasureAttributeMappingList = (input, context) => {
1367
- return input
1368
- .filter((e) => e != null)
1369
- .map((entry) => {
1370
- return se_MultiMeasureAttributeMapping(entry, context);
1371
- });
1372
- };
1373
- const se_MultiMeasureMappings = (input, context) => {
1374
- return {
1375
- ...(input.MultiMeasureAttributeMappings != null && {
1376
- MultiMeasureAttributeMappings: se_MultiMeasureAttributeMappingList(input.MultiMeasureAttributeMappings, context),
1377
- }),
1378
- ...(input.TargetMultiMeasureName != null && { TargetMultiMeasureName: input.TargetMultiMeasureName }),
1379
- };
1380
- };
1381
- const se__Record = (input, context) => {
1382
- return {
1383
- ...(input.Dimensions != null && { Dimensions: se_Dimensions(input.Dimensions, context) }),
1384
- ...(input.MeasureName != null && { MeasureName: input.MeasureName }),
1385
- ...(input.MeasureValue != null && { MeasureValue: input.MeasureValue }),
1386
- ...(input.MeasureValueType != null && { MeasureValueType: input.MeasureValueType }),
1387
- ...(input.MeasureValues != null && { MeasureValues: se_MeasureValues(input.MeasureValues, context) }),
1388
- ...(input.Time != null && { Time: input.Time }),
1389
- ...(input.TimeUnit != null && { TimeUnit: input.TimeUnit }),
1390
- ...(input.Version != null && { Version: input.Version }),
1391
- };
1392
- };
1393
- const se_Records = (input, context) => {
1394
- return input
1395
- .filter((e) => e != null)
1396
- .map((entry) => {
1397
- return se__Record(entry, context);
1398
- });
1399
- };
1400
- const se_ReportConfiguration = (input, context) => {
1401
- return {
1402
- ...(input.ReportS3Configuration != null && {
1403
- ReportS3Configuration: se_ReportS3Configuration(input.ReportS3Configuration, context),
1404
- }),
1405
- };
1406
- };
1407
- const se_ReportS3Configuration = (input, context) => {
1408
- return {
1409
- ...(input.BucketName != null && { BucketName: input.BucketName }),
1410
- ...(input.EncryptionOption != null && { EncryptionOption: input.EncryptionOption }),
1411
- ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
1412
- ...(input.ObjectKeyPrefix != null && { ObjectKeyPrefix: input.ObjectKeyPrefix }),
1413
- };
1414
- };
1415
- const se_ResumeBatchLoadTaskRequest = (input, context) => {
1416
- return {
1417
- ...(input.TaskId != null && { TaskId: input.TaskId }),
1418
- };
1419
- };
1420
- const se_RetentionProperties = (input, context) => {
1421
- return {
1422
- ...(input.MagneticStoreRetentionPeriodInDays != null && {
1423
- MagneticStoreRetentionPeriodInDays: input.MagneticStoreRetentionPeriodInDays,
1424
- }),
1425
- ...(input.MemoryStoreRetentionPeriodInHours != null && {
1426
- MemoryStoreRetentionPeriodInHours: input.MemoryStoreRetentionPeriodInHours,
1427
- }),
1428
- };
1429
- };
1430
- const se_S3Configuration = (input, context) => {
1431
- return {
1432
- ...(input.BucketName != null && { BucketName: input.BucketName }),
1433
- ...(input.EncryptionOption != null && { EncryptionOption: input.EncryptionOption }),
1434
- ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
1435
- ...(input.ObjectKeyPrefix != null && { ObjectKeyPrefix: input.ObjectKeyPrefix }),
1436
- };
1437
- };
1438
- const se_Tag = (input, context) => {
1439
- return {
1440
- ...(input.Key != null && { Key: input.Key }),
1441
- ...(input.Value != null && { Value: input.Value }),
1442
- };
1443
- };
1444
- const se_TagKeyList = (input, context) => {
1445
- return input
1446
- .filter((e) => e != null)
1447
- .map((entry) => {
1448
- return entry;
1449
- });
1450
- };
1451
- const se_TagList = (input, context) => {
1452
- return input
1453
- .filter((e) => e != null)
1454
- .map((entry) => {
1455
- return se_Tag(entry, context);
1456
- });
1457
- };
1458
- const se_TagResourceRequest = (input, context) => {
1459
- return {
1460
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
1461
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
1462
- };
1463
- };
1464
- const se_UntagResourceRequest = (input, context) => {
1465
- return {
1466
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
1467
- ...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
1468
- };
1469
- };
1470
- const se_UpdateDatabaseRequest = (input, context) => {
1471
- return {
1472
- ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
1473
- ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
1474
- };
1475
- };
1476
- const se_UpdateTableRequest = (input, context) => {
1477
- return {
1478
- ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
1479
- ...(input.MagneticStoreWriteProperties != null && {
1480
- MagneticStoreWriteProperties: se_MagneticStoreWriteProperties(input.MagneticStoreWriteProperties, context),
1481
- }),
1482
- ...(input.RetentionProperties != null && {
1483
- RetentionProperties: se_RetentionProperties(input.RetentionProperties, context),
1484
- }),
1485
- ...(input.TableName != null && { TableName: input.TableName }),
1486
- };
1487
- };
1488
- const se_WriteRecordsRequest = (input, context) => {
1489
- return {
1490
- ...(input.CommonAttributes != null && { CommonAttributes: se__Record(input.CommonAttributes, context) }),
1491
- ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
1492
- ...(input.Records != null && { Records: se_Records(input.Records, context) }),
1493
- ...(input.TableName != null && { TableName: input.TableName }),
1494
- };
1495
- };
1496
- const de_AccessDeniedException = (output, context) => {
1497
- return {
1498
- Message: (0, smithy_client_1.expectString)(output.Message),
1499
- };
1500
- };
1501
- const de_BatchLoadProgressReport = (output, context) => {
1502
- return {
1503
- BytesMetered: (0, smithy_client_1.expectLong)(output.BytesMetered),
1504
- FileFailures: (0, smithy_client_1.expectLong)(output.FileFailures),
1505
- ParseFailures: (0, smithy_client_1.expectLong)(output.ParseFailures),
1506
- RecordIngestionFailures: (0, smithy_client_1.expectLong)(output.RecordIngestionFailures),
1507
- RecordsIngested: (0, smithy_client_1.expectLong)(output.RecordsIngested),
1508
- RecordsProcessed: (0, smithy_client_1.expectLong)(output.RecordsProcessed),
1509
- };
1510
- };
1511
1131
  const de_BatchLoadTask = (output, context) => {
1512
- return {
1513
- CreationTime: output.CreationTime != null
1514
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
1515
- : undefined,
1516
- DatabaseName: (0, smithy_client_1.expectString)(output.DatabaseName),
1517
- LastUpdatedTime: output.LastUpdatedTime != null
1518
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTime)))
1519
- : undefined,
1520
- ResumableUntil: output.ResumableUntil != null
1521
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ResumableUntil)))
1522
- : undefined,
1523
- TableName: (0, smithy_client_1.expectString)(output.TableName),
1524
- TaskId: (0, smithy_client_1.expectString)(output.TaskId),
1525
- TaskStatus: (0, smithy_client_1.expectString)(output.TaskStatus),
1526
- };
1132
+ return (0, smithy_client_1.take)(output, {
1133
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1134
+ DatabaseName: smithy_client_1.expectString,
1135
+ LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1136
+ ResumableUntil: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1137
+ TableName: smithy_client_1.expectString,
1138
+ TaskId: smithy_client_1.expectString,
1139
+ TaskStatus: smithy_client_1.expectString,
1140
+ });
1527
1141
  };
1528
1142
  const de_BatchLoadTaskDescription = (output, context) => {
1529
- return {
1530
- CreationTime: output.CreationTime != null
1531
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
1532
- : undefined,
1533
- DataModelConfiguration: output.DataModelConfiguration != null
1534
- ? de_DataModelConfiguration(output.DataModelConfiguration, context)
1535
- : undefined,
1536
- DataSourceConfiguration: output.DataSourceConfiguration != null
1537
- ? de_DataSourceConfiguration(output.DataSourceConfiguration, context)
1538
- : undefined,
1539
- ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
1540
- LastUpdatedTime: output.LastUpdatedTime != null
1541
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTime)))
1542
- : undefined,
1543
- ProgressReport: output.ProgressReport != null ? de_BatchLoadProgressReport(output.ProgressReport, context) : undefined,
1544
- RecordVersion: (0, smithy_client_1.expectLong)(output.RecordVersion),
1545
- ReportConfiguration: output.ReportConfiguration != null ? de_ReportConfiguration(output.ReportConfiguration, context) : undefined,
1546
- ResumableUntil: output.ResumableUntil != null
1547
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ResumableUntil)))
1548
- : undefined,
1549
- TargetDatabaseName: (0, smithy_client_1.expectString)(output.TargetDatabaseName),
1550
- TargetTableName: (0, smithy_client_1.expectString)(output.TargetTableName),
1551
- TaskId: (0, smithy_client_1.expectString)(output.TaskId),
1552
- TaskStatus: (0, smithy_client_1.expectString)(output.TaskStatus),
1553
- };
1143
+ return (0, smithy_client_1.take)(output, {
1144
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1145
+ DataModelConfiguration: smithy_client_1._json,
1146
+ DataSourceConfiguration: smithy_client_1._json,
1147
+ ErrorMessage: smithy_client_1.expectString,
1148
+ LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1149
+ ProgressReport: smithy_client_1._json,
1150
+ RecordVersion: smithy_client_1.expectLong,
1151
+ ReportConfiguration: smithy_client_1._json,
1152
+ ResumableUntil: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1153
+ TargetDatabaseName: smithy_client_1.expectString,
1154
+ TargetTableName: smithy_client_1.expectString,
1155
+ TaskId: smithy_client_1.expectString,
1156
+ TaskStatus: smithy_client_1.expectString,
1157
+ });
1554
1158
  };
1555
1159
  const de_BatchLoadTaskList = (output, context) => {
1556
1160
  const retVal = (output || [])
1557
1161
  .filter((e) => e != null)
1558
1162
  .map((entry) => {
1559
- if (entry === null) {
1560
- return null;
1561
- }
1562
1163
  return de_BatchLoadTask(entry, context);
1563
1164
  });
1564
1165
  return retVal;
1565
1166
  };
1566
- const de_ConflictException = (output, context) => {
1567
- return {
1568
- Message: (0, smithy_client_1.expectString)(output.Message),
1569
- };
1570
- };
1571
- const de_CreateBatchLoadTaskResponse = (output, context) => {
1572
- return {
1573
- TaskId: (0, smithy_client_1.expectString)(output.TaskId),
1574
- };
1575
- };
1576
1167
  const de_CreateDatabaseResponse = (output, context) => {
1577
- return {
1578
- Database: output.Database != null ? de_Database(output.Database, context) : undefined,
1579
- };
1168
+ return (0, smithy_client_1.take)(output, {
1169
+ Database: (_) => de_Database(_, context),
1170
+ });
1580
1171
  };
1581
1172
  const de_CreateTableResponse = (output, context) => {
1582
- return {
1583
- Table: output.Table != null ? de_Table(output.Table, context) : undefined,
1584
- };
1585
- };
1586
- const de_CsvConfiguration = (output, context) => {
1587
- return {
1588
- ColumnSeparator: (0, smithy_client_1.expectString)(output.ColumnSeparator),
1589
- EscapeChar: (0, smithy_client_1.expectString)(output.EscapeChar),
1590
- NullValue: (0, smithy_client_1.expectString)(output.NullValue),
1591
- QuoteChar: (0, smithy_client_1.expectString)(output.QuoteChar),
1592
- TrimWhiteSpace: (0, smithy_client_1.expectBoolean)(output.TrimWhiteSpace),
1593
- };
1173
+ return (0, smithy_client_1.take)(output, {
1174
+ Table: (_) => de_Table(_, context),
1175
+ });
1594
1176
  };
1595
1177
  const de_Database = (output, context) => {
1596
- return {
1597
- Arn: (0, smithy_client_1.expectString)(output.Arn),
1598
- CreationTime: output.CreationTime != null
1599
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
1600
- : undefined,
1601
- DatabaseName: (0, smithy_client_1.expectString)(output.DatabaseName),
1602
- KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
1603
- LastUpdatedTime: output.LastUpdatedTime != null
1604
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTime)))
1605
- : undefined,
1606
- TableCount: (0, smithy_client_1.expectLong)(output.TableCount),
1607
- };
1178
+ return (0, smithy_client_1.take)(output, {
1179
+ Arn: smithy_client_1.expectString,
1180
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1181
+ DatabaseName: smithy_client_1.expectString,
1182
+ KmsKeyId: smithy_client_1.expectString,
1183
+ LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1184
+ TableCount: smithy_client_1.expectLong,
1185
+ });
1608
1186
  };
1609
1187
  const de_DatabaseList = (output, context) => {
1610
1188
  const retVal = (output || [])
1611
1189
  .filter((e) => e != null)
1612
1190
  .map((entry) => {
1613
- if (entry === null) {
1614
- return null;
1615
- }
1616
1191
  return de_Database(entry, context);
1617
1192
  });
1618
1193
  return retVal;
1619
1194
  };
1620
- const de_DataModel = (output, context) => {
1621
- return {
1622
- DimensionMappings: output.DimensionMappings != null ? de_DimensionMappings(output.DimensionMappings, context) : undefined,
1623
- MeasureNameColumn: (0, smithy_client_1.expectString)(output.MeasureNameColumn),
1624
- MixedMeasureMappings: output.MixedMeasureMappings != null
1625
- ? de_MixedMeasureMappingList(output.MixedMeasureMappings, context)
1626
- : undefined,
1627
- MultiMeasureMappings: output.MultiMeasureMappings != null ? de_MultiMeasureMappings(output.MultiMeasureMappings, context) : undefined,
1628
- TimeColumn: (0, smithy_client_1.expectString)(output.TimeColumn),
1629
- TimeUnit: (0, smithy_client_1.expectString)(output.TimeUnit),
1630
- };
1631
- };
1632
- const de_DataModelConfiguration = (output, context) => {
1633
- return {
1634
- DataModel: output.DataModel != null ? de_DataModel(output.DataModel, context) : undefined,
1635
- DataModelS3Configuration: output.DataModelS3Configuration != null
1636
- ? de_DataModelS3Configuration(output.DataModelS3Configuration, context)
1637
- : undefined,
1638
- };
1639
- };
1640
- const de_DataModelS3Configuration = (output, context) => {
1641
- return {
1642
- BucketName: (0, smithy_client_1.expectString)(output.BucketName),
1643
- ObjectKey: (0, smithy_client_1.expectString)(output.ObjectKey),
1644
- };
1645
- };
1646
- const de_DataSourceConfiguration = (output, context) => {
1647
- return {
1648
- CsvConfiguration: output.CsvConfiguration != null ? de_CsvConfiguration(output.CsvConfiguration, context) : undefined,
1649
- DataFormat: (0, smithy_client_1.expectString)(output.DataFormat),
1650
- DataSourceS3Configuration: output.DataSourceS3Configuration != null
1651
- ? de_DataSourceS3Configuration(output.DataSourceS3Configuration, context)
1652
- : undefined,
1653
- };
1654
- };
1655
- const de_DataSourceS3Configuration = (output, context) => {
1656
- return {
1657
- BucketName: (0, smithy_client_1.expectString)(output.BucketName),
1658
- ObjectKeyPrefix: (0, smithy_client_1.expectString)(output.ObjectKeyPrefix),
1659
- };
1660
- };
1661
1195
  const de_DescribeBatchLoadTaskResponse = (output, context) => {
1662
- return {
1663
- BatchLoadTaskDescription: output.BatchLoadTaskDescription != null
1664
- ? de_BatchLoadTaskDescription(output.BatchLoadTaskDescription, context)
1665
- : undefined,
1666
- };
1196
+ return (0, smithy_client_1.take)(output, {
1197
+ BatchLoadTaskDescription: (_) => de_BatchLoadTaskDescription(_, context),
1198
+ });
1667
1199
  };
1668
1200
  const de_DescribeDatabaseResponse = (output, context) => {
1669
- return {
1670
- Database: output.Database != null ? de_Database(output.Database, context) : undefined,
1671
- };
1672
- };
1673
- const de_DescribeEndpointsResponse = (output, context) => {
1674
- return {
1675
- Endpoints: output.Endpoints != null ? de_Endpoints(output.Endpoints, context) : undefined,
1676
- };
1677
- };
1678
- const de_DescribeTableResponse = (output, context) => {
1679
- return {
1680
- Table: output.Table != null ? de_Table(output.Table, context) : undefined,
1681
- };
1682
- };
1683
- const de_DimensionMapping = (output, context) => {
1684
- return {
1685
- DestinationColumn: (0, smithy_client_1.expectString)(output.DestinationColumn),
1686
- SourceColumn: (0, smithy_client_1.expectString)(output.SourceColumn),
1687
- };
1688
- };
1689
- const de_DimensionMappings = (output, context) => {
1690
- const retVal = (output || [])
1691
- .filter((e) => e != null)
1692
- .map((entry) => {
1693
- if (entry === null) {
1694
- return null;
1695
- }
1696
- return de_DimensionMapping(entry, context);
1201
+ return (0, smithy_client_1.take)(output, {
1202
+ Database: (_) => de_Database(_, context),
1697
1203
  });
1698
- return retVal;
1699
- };
1700
- const de_Endpoint = (output, context) => {
1701
- return {
1702
- Address: (0, smithy_client_1.expectString)(output.Address),
1703
- CachePeriodInMinutes: (0, smithy_client_1.expectLong)(output.CachePeriodInMinutes),
1704
- };
1705
1204
  };
1706
- const de_Endpoints = (output, context) => {
1707
- const retVal = (output || [])
1708
- .filter((e) => e != null)
1709
- .map((entry) => {
1710
- if (entry === null) {
1711
- return null;
1712
- }
1713
- return de_Endpoint(entry, context);
1205
+ const de_DescribeTableResponse = (output, context) => {
1206
+ return (0, smithy_client_1.take)(output, {
1207
+ Table: (_) => de_Table(_, context),
1714
1208
  });
1715
- return retVal;
1716
- };
1717
- const de_InternalServerException = (output, context) => {
1718
- return {
1719
- Message: (0, smithy_client_1.expectString)(output.Message),
1720
- };
1721
- };
1722
- const de_InvalidEndpointException = (output, context) => {
1723
- return {
1724
- Message: (0, smithy_client_1.expectString)(output.Message),
1725
- };
1726
1209
  };
1727
1210
  const de_ListBatchLoadTasksResponse = (output, context) => {
1728
- return {
1729
- BatchLoadTasks: output.BatchLoadTasks != null ? de_BatchLoadTaskList(output.BatchLoadTasks, context) : undefined,
1730
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1731
- };
1732
- };
1733
- const de_ListDatabasesResponse = (output, context) => {
1734
- return {
1735
- Databases: output.Databases != null ? de_DatabaseList(output.Databases, context) : undefined,
1736
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1737
- };
1738
- };
1739
- const de_ListTablesResponse = (output, context) => {
1740
- return {
1741
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1742
- Tables: output.Tables != null ? de_TableList(output.Tables, context) : undefined,
1743
- };
1744
- };
1745
- const de_ListTagsForResourceResponse = (output, context) => {
1746
- return {
1747
- Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
1748
- };
1749
- };
1750
- const de_MagneticStoreRejectedDataLocation = (output, context) => {
1751
- return {
1752
- S3Configuration: output.S3Configuration != null ? de_S3Configuration(output.S3Configuration, context) : undefined,
1753
- };
1754
- };
1755
- const de_MagneticStoreWriteProperties = (output, context) => {
1756
- return {
1757
- EnableMagneticStoreWrites: (0, smithy_client_1.expectBoolean)(output.EnableMagneticStoreWrites),
1758
- MagneticStoreRejectedDataLocation: output.MagneticStoreRejectedDataLocation != null
1759
- ? de_MagneticStoreRejectedDataLocation(output.MagneticStoreRejectedDataLocation, context)
1760
- : undefined,
1761
- };
1762
- };
1763
- const de_MixedMeasureMapping = (output, context) => {
1764
- return {
1765
- MeasureName: (0, smithy_client_1.expectString)(output.MeasureName),
1766
- MeasureValueType: (0, smithy_client_1.expectString)(output.MeasureValueType),
1767
- MultiMeasureAttributeMappings: output.MultiMeasureAttributeMappings != null
1768
- ? de_MultiMeasureAttributeMappingList(output.MultiMeasureAttributeMappings, context)
1769
- : undefined,
1770
- SourceColumn: (0, smithy_client_1.expectString)(output.SourceColumn),
1771
- TargetMeasureName: (0, smithy_client_1.expectString)(output.TargetMeasureName),
1772
- };
1773
- };
1774
- const de_MixedMeasureMappingList = (output, context) => {
1775
- const retVal = (output || [])
1776
- .filter((e) => e != null)
1777
- .map((entry) => {
1778
- if (entry === null) {
1779
- return null;
1780
- }
1781
- return de_MixedMeasureMapping(entry, context);
1211
+ return (0, smithy_client_1.take)(output, {
1212
+ BatchLoadTasks: (_) => de_BatchLoadTaskList(_, context),
1213
+ NextToken: smithy_client_1.expectString,
1782
1214
  });
1783
- return retVal;
1784
1215
  };
1785
- const de_MultiMeasureAttributeMapping = (output, context) => {
1786
- return {
1787
- MeasureValueType: (0, smithy_client_1.expectString)(output.MeasureValueType),
1788
- SourceColumn: (0, smithy_client_1.expectString)(output.SourceColumn),
1789
- TargetMultiMeasureAttributeName: (0, smithy_client_1.expectString)(output.TargetMultiMeasureAttributeName),
1790
- };
1791
- };
1792
- const de_MultiMeasureAttributeMappingList = (output, context) => {
1793
- const retVal = (output || [])
1794
- .filter((e) => e != null)
1795
- .map((entry) => {
1796
- if (entry === null) {
1797
- return null;
1798
- }
1799
- return de_MultiMeasureAttributeMapping(entry, context);
1216
+ const de_ListDatabasesResponse = (output, context) => {
1217
+ return (0, smithy_client_1.take)(output, {
1218
+ Databases: (_) => de_DatabaseList(_, context),
1219
+ NextToken: smithy_client_1.expectString,
1800
1220
  });
1801
- return retVal;
1802
- };
1803
- const de_MultiMeasureMappings = (output, context) => {
1804
- return {
1805
- MultiMeasureAttributeMappings: output.MultiMeasureAttributeMappings != null
1806
- ? de_MultiMeasureAttributeMappingList(output.MultiMeasureAttributeMappings, context)
1807
- : undefined,
1808
- TargetMultiMeasureName: (0, smithy_client_1.expectString)(output.TargetMultiMeasureName),
1809
- };
1810
- };
1811
- const de_RecordsIngested = (output, context) => {
1812
- return {
1813
- MagneticStore: (0, smithy_client_1.expectInt32)(output.MagneticStore),
1814
- MemoryStore: (0, smithy_client_1.expectInt32)(output.MemoryStore),
1815
- Total: (0, smithy_client_1.expectInt32)(output.Total),
1816
- };
1817
- };
1818
- const de_RejectedRecord = (output, context) => {
1819
- return {
1820
- ExistingVersion: (0, smithy_client_1.expectLong)(output.ExistingVersion),
1821
- Reason: (0, smithy_client_1.expectString)(output.Reason),
1822
- RecordIndex: (0, smithy_client_1.expectInt32)(output.RecordIndex),
1823
- };
1824
1221
  };
1825
- const de_RejectedRecords = (output, context) => {
1826
- const retVal = (output || [])
1827
- .filter((e) => e != null)
1828
- .map((entry) => {
1829
- if (entry === null) {
1830
- return null;
1831
- }
1832
- return de_RejectedRecord(entry, context);
1222
+ const de_ListTablesResponse = (output, context) => {
1223
+ return (0, smithy_client_1.take)(output, {
1224
+ NextToken: smithy_client_1.expectString,
1225
+ Tables: (_) => de_TableList(_, context),
1833
1226
  });
1834
- return retVal;
1835
- };
1836
- const de_RejectedRecordsException = (output, context) => {
1837
- return {
1838
- Message: (0, smithy_client_1.expectString)(output.Message),
1839
- RejectedRecords: output.RejectedRecords != null ? de_RejectedRecords(output.RejectedRecords, context) : undefined,
1840
- };
1841
- };
1842
- const de_ReportConfiguration = (output, context) => {
1843
- return {
1844
- ReportS3Configuration: output.ReportS3Configuration != null
1845
- ? de_ReportS3Configuration(output.ReportS3Configuration, context)
1846
- : undefined,
1847
- };
1848
- };
1849
- const de_ReportS3Configuration = (output, context) => {
1850
- return {
1851
- BucketName: (0, smithy_client_1.expectString)(output.BucketName),
1852
- EncryptionOption: (0, smithy_client_1.expectString)(output.EncryptionOption),
1853
- KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
1854
- ObjectKeyPrefix: (0, smithy_client_1.expectString)(output.ObjectKeyPrefix),
1855
- };
1856
- };
1857
- const de_ResourceNotFoundException = (output, context) => {
1858
- return {
1859
- Message: (0, smithy_client_1.expectString)(output.Message),
1860
- };
1861
- };
1862
- const de_ResumeBatchLoadTaskResponse = (output, context) => {
1863
- return {};
1864
- };
1865
- const de_RetentionProperties = (output, context) => {
1866
- return {
1867
- MagneticStoreRetentionPeriodInDays: (0, smithy_client_1.expectLong)(output.MagneticStoreRetentionPeriodInDays),
1868
- MemoryStoreRetentionPeriodInHours: (0, smithy_client_1.expectLong)(output.MemoryStoreRetentionPeriodInHours),
1869
- };
1870
- };
1871
- const de_S3Configuration = (output, context) => {
1872
- return {
1873
- BucketName: (0, smithy_client_1.expectString)(output.BucketName),
1874
- EncryptionOption: (0, smithy_client_1.expectString)(output.EncryptionOption),
1875
- KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
1876
- ObjectKeyPrefix: (0, smithy_client_1.expectString)(output.ObjectKeyPrefix),
1877
- };
1878
- };
1879
- const de_ServiceQuotaExceededException = (output, context) => {
1880
- return {
1881
- Message: (0, smithy_client_1.expectString)(output.Message),
1882
- };
1883
1227
  };
1884
1228
  const de_Table = (output, context) => {
1885
- return {
1886
- Arn: (0, smithy_client_1.expectString)(output.Arn),
1887
- CreationTime: output.CreationTime != null
1888
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
1889
- : undefined,
1890
- DatabaseName: (0, smithy_client_1.expectString)(output.DatabaseName),
1891
- LastUpdatedTime: output.LastUpdatedTime != null
1892
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTime)))
1893
- : undefined,
1894
- MagneticStoreWriteProperties: output.MagneticStoreWriteProperties != null
1895
- ? de_MagneticStoreWriteProperties(output.MagneticStoreWriteProperties, context)
1896
- : undefined,
1897
- RetentionProperties: output.RetentionProperties != null ? de_RetentionProperties(output.RetentionProperties, context) : undefined,
1898
- TableName: (0, smithy_client_1.expectString)(output.TableName),
1899
- TableStatus: (0, smithy_client_1.expectString)(output.TableStatus),
1900
- };
1229
+ return (0, smithy_client_1.take)(output, {
1230
+ Arn: smithy_client_1.expectString,
1231
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1232
+ DatabaseName: smithy_client_1.expectString,
1233
+ LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1234
+ MagneticStoreWriteProperties: smithy_client_1._json,
1235
+ RetentionProperties: smithy_client_1._json,
1236
+ TableName: smithy_client_1.expectString,
1237
+ TableStatus: smithy_client_1.expectString,
1238
+ });
1901
1239
  };
1902
1240
  const de_TableList = (output, context) => {
1903
1241
  const retVal = (output || [])
1904
1242
  .filter((e) => e != null)
1905
1243
  .map((entry) => {
1906
- if (entry === null) {
1907
- return null;
1908
- }
1909
1244
  return de_Table(entry, context);
1910
1245
  });
1911
1246
  return retVal;
1912
1247
  };
1913
- const de_Tag = (output, context) => {
1914
- return {
1915
- Key: (0, smithy_client_1.expectString)(output.Key),
1916
- Value: (0, smithy_client_1.expectString)(output.Value),
1917
- };
1918
- };
1919
- const de_TagList = (output, context) => {
1920
- const retVal = (output || [])
1921
- .filter((e) => e != null)
1922
- .map((entry) => {
1923
- if (entry === null) {
1924
- return null;
1925
- }
1926
- return de_Tag(entry, context);
1927
- });
1928
- return retVal;
1929
- };
1930
- const de_TagResourceResponse = (output, context) => {
1931
- return {};
1932
- };
1933
- const de_ThrottlingException = (output, context) => {
1934
- return {
1935
- Message: (0, smithy_client_1.expectString)(output.Message),
1936
- };
1937
- };
1938
- const de_UntagResourceResponse = (output, context) => {
1939
- return {};
1940
- };
1941
1248
  const de_UpdateDatabaseResponse = (output, context) => {
1942
- return {
1943
- Database: output.Database != null ? de_Database(output.Database, context) : undefined,
1944
- };
1249
+ return (0, smithy_client_1.take)(output, {
1250
+ Database: (_) => de_Database(_, context),
1251
+ });
1945
1252
  };
1946
1253
  const de_UpdateTableResponse = (output, context) => {
1947
- return {
1948
- Table: output.Table != null ? de_Table(output.Table, context) : undefined,
1949
- };
1950
- };
1951
- const de_ValidationException = (output, context) => {
1952
- return {
1953
- Message: (0, smithy_client_1.expectString)(output.Message),
1954
- };
1955
- };
1956
- const de_WriteRecordsResponse = (output, context) => {
1957
- return {
1958
- RecordsIngested: output.RecordsIngested != null ? de_RecordsIngested(output.RecordsIngested, context) : undefined,
1959
- };
1254
+ return (0, smithy_client_1.take)(output, {
1255
+ Table: (_) => de_Table(_, context),
1256
+ });
1960
1257
  };
1961
1258
  const deserializeMetadata = (output) => ({
1962
1259
  httpStatusCode: output.statusCode,
@@ -1971,6 +1268,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
1971
1268
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
1972
1269
  };
1973
1270
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1271
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(TimestreamWriteServiceException_1.TimestreamWriteServiceException);
1974
1272
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1975
1273
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1976
1274
  const contents = {