@aws-sdk/client-timestream-write 3.141.0 → 3.150.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.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_0.js +75 -135
- package/dist-es/protocols/Aws_json1_0.js +121 -136
- package/package.json +11 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.150.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.149.0...v3.150.0) (2022-08-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-timestream-write
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.145.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.144.0...v3.145.0) (2022-08-08)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-timestream-write
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.142.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.141.0...v3.142.0) (2022-08-02)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **codegen:** general data mapping function ([#3830](https://github.com/aws/aws-sdk-js-v3/issues/3830)) ([9417eae](https://github.com/aws/aws-sdk-js-v3/commit/9417eae722806799fb4c15c07921574268c1165c))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.141.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.140.0...v3.141.0) (2022-08-01)
|
|
7
34
|
|
|
8
35
|
|
|
@@ -174,7 +174,6 @@ const deserializeAws_json1_0CreateDatabaseCommandError = async (output, context)
|
|
|
174
174
|
...output,
|
|
175
175
|
body: await parseBody(output.body, context),
|
|
176
176
|
};
|
|
177
|
-
let response;
|
|
178
177
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
179
178
|
switch (errorCode) {
|
|
180
179
|
case "AccessDeniedException":
|
|
@@ -200,14 +199,12 @@ const deserializeAws_json1_0CreateDatabaseCommandError = async (output, context)
|
|
|
200
199
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
201
200
|
default:
|
|
202
201
|
const parsedBody = parsedOutput.body;
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
$metadata,
|
|
202
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
203
|
+
output,
|
|
204
|
+
parsedBody,
|
|
205
|
+
exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
|
|
206
|
+
errorCode,
|
|
209
207
|
});
|
|
210
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
211
208
|
}
|
|
212
209
|
};
|
|
213
210
|
const deserializeAws_json1_0CreateTableCommand = async (output, context) => {
|
|
@@ -229,7 +226,6 @@ const deserializeAws_json1_0CreateTableCommandError = async (output, context) =>
|
|
|
229
226
|
...output,
|
|
230
227
|
body: await parseBody(output.body, context),
|
|
231
228
|
};
|
|
232
|
-
let response;
|
|
233
229
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
234
230
|
switch (errorCode) {
|
|
235
231
|
case "AccessDeniedException":
|
|
@@ -258,14 +254,12 @@ const deserializeAws_json1_0CreateTableCommandError = async (output, context) =>
|
|
|
258
254
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
259
255
|
default:
|
|
260
256
|
const parsedBody = parsedOutput.body;
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
$metadata,
|
|
257
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
258
|
+
output,
|
|
259
|
+
parsedBody,
|
|
260
|
+
exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
|
|
261
|
+
errorCode,
|
|
267
262
|
});
|
|
268
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
269
263
|
}
|
|
270
264
|
};
|
|
271
265
|
const deserializeAws_json1_0DeleteDatabaseCommand = async (output, context) => {
|
|
@@ -284,7 +278,6 @@ const deserializeAws_json1_0DeleteDatabaseCommandError = async (output, context)
|
|
|
284
278
|
...output,
|
|
285
279
|
body: await parseBody(output.body, context),
|
|
286
280
|
};
|
|
287
|
-
let response;
|
|
288
281
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
289
282
|
switch (errorCode) {
|
|
290
283
|
case "AccessDeniedException":
|
|
@@ -307,14 +300,12 @@ const deserializeAws_json1_0DeleteDatabaseCommandError = async (output, context)
|
|
|
307
300
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
308
301
|
default:
|
|
309
302
|
const parsedBody = parsedOutput.body;
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
$metadata,
|
|
303
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
304
|
+
output,
|
|
305
|
+
parsedBody,
|
|
306
|
+
exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
|
|
307
|
+
errorCode,
|
|
316
308
|
});
|
|
317
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
318
309
|
}
|
|
319
310
|
};
|
|
320
311
|
const deserializeAws_json1_0DeleteTableCommand = async (output, context) => {
|
|
@@ -333,7 +324,6 @@ const deserializeAws_json1_0DeleteTableCommandError = async (output, context) =>
|
|
|
333
324
|
...output,
|
|
334
325
|
body: await parseBody(output.body, context),
|
|
335
326
|
};
|
|
336
|
-
let response;
|
|
337
327
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
338
328
|
switch (errorCode) {
|
|
339
329
|
case "AccessDeniedException":
|
|
@@ -356,14 +346,12 @@ const deserializeAws_json1_0DeleteTableCommandError = async (output, context) =>
|
|
|
356
346
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
357
347
|
default:
|
|
358
348
|
const parsedBody = parsedOutput.body;
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
$metadata,
|
|
349
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
350
|
+
output,
|
|
351
|
+
parsedBody,
|
|
352
|
+
exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
|
|
353
|
+
errorCode,
|
|
365
354
|
});
|
|
366
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
367
355
|
}
|
|
368
356
|
};
|
|
369
357
|
const deserializeAws_json1_0DescribeDatabaseCommand = async (output, context) => {
|
|
@@ -385,7 +373,6 @@ const deserializeAws_json1_0DescribeDatabaseCommandError = async (output, contex
|
|
|
385
373
|
...output,
|
|
386
374
|
body: await parseBody(output.body, context),
|
|
387
375
|
};
|
|
388
|
-
let response;
|
|
389
376
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
390
377
|
switch (errorCode) {
|
|
391
378
|
case "AccessDeniedException":
|
|
@@ -408,14 +395,12 @@ const deserializeAws_json1_0DescribeDatabaseCommandError = async (output, contex
|
|
|
408
395
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
409
396
|
default:
|
|
410
397
|
const parsedBody = parsedOutput.body;
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
$metadata,
|
|
398
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
399
|
+
output,
|
|
400
|
+
parsedBody,
|
|
401
|
+
exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
|
|
402
|
+
errorCode,
|
|
417
403
|
});
|
|
418
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
419
404
|
}
|
|
420
405
|
};
|
|
421
406
|
const deserializeAws_json1_0DescribeEndpointsCommand = async (output, context) => {
|
|
@@ -437,7 +422,6 @@ const deserializeAws_json1_0DescribeEndpointsCommandError = async (output, conte
|
|
|
437
422
|
...output,
|
|
438
423
|
body: await parseBody(output.body, context),
|
|
439
424
|
};
|
|
440
|
-
let response;
|
|
441
425
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
442
426
|
switch (errorCode) {
|
|
443
427
|
case "InternalServerException":
|
|
@@ -451,14 +435,12 @@ const deserializeAws_json1_0DescribeEndpointsCommandError = async (output, conte
|
|
|
451
435
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
452
436
|
default:
|
|
453
437
|
const parsedBody = parsedOutput.body;
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
$metadata,
|
|
438
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
439
|
+
output,
|
|
440
|
+
parsedBody,
|
|
441
|
+
exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
|
|
442
|
+
errorCode,
|
|
460
443
|
});
|
|
461
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
462
444
|
}
|
|
463
445
|
};
|
|
464
446
|
const deserializeAws_json1_0DescribeTableCommand = async (output, context) => {
|
|
@@ -480,7 +462,6 @@ const deserializeAws_json1_0DescribeTableCommandError = async (output, context)
|
|
|
480
462
|
...output,
|
|
481
463
|
body: await parseBody(output.body, context),
|
|
482
464
|
};
|
|
483
|
-
let response;
|
|
484
465
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
485
466
|
switch (errorCode) {
|
|
486
467
|
case "AccessDeniedException":
|
|
@@ -503,14 +484,12 @@ const deserializeAws_json1_0DescribeTableCommandError = async (output, context)
|
|
|
503
484
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
504
485
|
default:
|
|
505
486
|
const parsedBody = parsedOutput.body;
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
$metadata,
|
|
487
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
488
|
+
output,
|
|
489
|
+
parsedBody,
|
|
490
|
+
exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
|
|
491
|
+
errorCode,
|
|
512
492
|
});
|
|
513
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
514
493
|
}
|
|
515
494
|
};
|
|
516
495
|
const deserializeAws_json1_0ListDatabasesCommand = async (output, context) => {
|
|
@@ -532,7 +511,6 @@ const deserializeAws_json1_0ListDatabasesCommandError = async (output, context)
|
|
|
532
511
|
...output,
|
|
533
512
|
body: await parseBody(output.body, context),
|
|
534
513
|
};
|
|
535
|
-
let response;
|
|
536
514
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
537
515
|
switch (errorCode) {
|
|
538
516
|
case "AccessDeniedException":
|
|
@@ -552,14 +530,12 @@ const deserializeAws_json1_0ListDatabasesCommandError = async (output, context)
|
|
|
552
530
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
553
531
|
default:
|
|
554
532
|
const parsedBody = parsedOutput.body;
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
$metadata,
|
|
533
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
534
|
+
output,
|
|
535
|
+
parsedBody,
|
|
536
|
+
exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
|
|
537
|
+
errorCode,
|
|
561
538
|
});
|
|
562
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
563
539
|
}
|
|
564
540
|
};
|
|
565
541
|
const deserializeAws_json1_0ListTablesCommand = async (output, context) => {
|
|
@@ -581,7 +557,6 @@ const deserializeAws_json1_0ListTablesCommandError = async (output, context) =>
|
|
|
581
557
|
...output,
|
|
582
558
|
body: await parseBody(output.body, context),
|
|
583
559
|
};
|
|
584
|
-
let response;
|
|
585
560
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
586
561
|
switch (errorCode) {
|
|
587
562
|
case "AccessDeniedException":
|
|
@@ -604,14 +579,12 @@ const deserializeAws_json1_0ListTablesCommandError = async (output, context) =>
|
|
|
604
579
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
605
580
|
default:
|
|
606
581
|
const parsedBody = parsedOutput.body;
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
$metadata,
|
|
582
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
583
|
+
output,
|
|
584
|
+
parsedBody,
|
|
585
|
+
exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
|
|
586
|
+
errorCode,
|
|
613
587
|
});
|
|
614
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
615
588
|
}
|
|
616
589
|
};
|
|
617
590
|
const deserializeAws_json1_0ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -633,7 +606,6 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
633
606
|
...output,
|
|
634
607
|
body: await parseBody(output.body, context),
|
|
635
608
|
};
|
|
636
|
-
let response;
|
|
637
609
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
638
610
|
switch (errorCode) {
|
|
639
611
|
case "InvalidEndpointException":
|
|
@@ -650,14 +622,12 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
650
622
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
651
623
|
default:
|
|
652
624
|
const parsedBody = parsedOutput.body;
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
$metadata,
|
|
625
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
626
|
+
output,
|
|
627
|
+
parsedBody,
|
|
628
|
+
exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
|
|
629
|
+
errorCode,
|
|
659
630
|
});
|
|
660
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
661
631
|
}
|
|
662
632
|
};
|
|
663
633
|
const deserializeAws_json1_0TagResourceCommand = async (output, context) => {
|
|
@@ -679,7 +649,6 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
679
649
|
...output,
|
|
680
650
|
body: await parseBody(output.body, context),
|
|
681
651
|
};
|
|
682
|
-
let response;
|
|
683
652
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
684
653
|
switch (errorCode) {
|
|
685
654
|
case "InvalidEndpointException":
|
|
@@ -699,14 +668,12 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
699
668
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
700
669
|
default:
|
|
701
670
|
const parsedBody = parsedOutput.body;
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
$metadata,
|
|
671
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
672
|
+
output,
|
|
673
|
+
parsedBody,
|
|
674
|
+
exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
|
|
675
|
+
errorCode,
|
|
708
676
|
});
|
|
709
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
710
677
|
}
|
|
711
678
|
};
|
|
712
679
|
const deserializeAws_json1_0UntagResourceCommand = async (output, context) => {
|
|
@@ -728,7 +695,6 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
728
695
|
...output,
|
|
729
696
|
body: await parseBody(output.body, context),
|
|
730
697
|
};
|
|
731
|
-
let response;
|
|
732
698
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
733
699
|
switch (errorCode) {
|
|
734
700
|
case "InvalidEndpointException":
|
|
@@ -748,14 +714,12 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
748
714
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
749
715
|
default:
|
|
750
716
|
const parsedBody = parsedOutput.body;
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
$metadata,
|
|
717
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
718
|
+
output,
|
|
719
|
+
parsedBody,
|
|
720
|
+
exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
|
|
721
|
+
errorCode,
|
|
757
722
|
});
|
|
758
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
759
723
|
}
|
|
760
724
|
};
|
|
761
725
|
const deserializeAws_json1_0UpdateDatabaseCommand = async (output, context) => {
|
|
@@ -777,7 +741,6 @@ const deserializeAws_json1_0UpdateDatabaseCommandError = async (output, context)
|
|
|
777
741
|
...output,
|
|
778
742
|
body: await parseBody(output.body, context),
|
|
779
743
|
};
|
|
780
|
-
let response;
|
|
781
744
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
782
745
|
switch (errorCode) {
|
|
783
746
|
case "AccessDeniedException":
|
|
@@ -803,14 +766,12 @@ const deserializeAws_json1_0UpdateDatabaseCommandError = async (output, context)
|
|
|
803
766
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
804
767
|
default:
|
|
805
768
|
const parsedBody = parsedOutput.body;
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
$metadata,
|
|
769
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
770
|
+
output,
|
|
771
|
+
parsedBody,
|
|
772
|
+
exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
|
|
773
|
+
errorCode,
|
|
812
774
|
});
|
|
813
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
814
775
|
}
|
|
815
776
|
};
|
|
816
777
|
const deserializeAws_json1_0UpdateTableCommand = async (output, context) => {
|
|
@@ -832,7 +793,6 @@ const deserializeAws_json1_0UpdateTableCommandError = async (output, context) =>
|
|
|
832
793
|
...output,
|
|
833
794
|
body: await parseBody(output.body, context),
|
|
834
795
|
};
|
|
835
|
-
let response;
|
|
836
796
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
837
797
|
switch (errorCode) {
|
|
838
798
|
case "AccessDeniedException":
|
|
@@ -855,14 +815,12 @@ const deserializeAws_json1_0UpdateTableCommandError = async (output, context) =>
|
|
|
855
815
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
856
816
|
default:
|
|
857
817
|
const parsedBody = parsedOutput.body;
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
$metadata,
|
|
818
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
819
|
+
output,
|
|
820
|
+
parsedBody,
|
|
821
|
+
exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
|
|
822
|
+
errorCode,
|
|
864
823
|
});
|
|
865
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
866
824
|
}
|
|
867
825
|
};
|
|
868
826
|
const deserializeAws_json1_0WriteRecordsCommand = async (output, context) => {
|
|
@@ -884,7 +842,6 @@ const deserializeAws_json1_0WriteRecordsCommandError = async (output, context) =
|
|
|
884
842
|
...output,
|
|
885
843
|
body: await parseBody(output.body, context),
|
|
886
844
|
};
|
|
887
|
-
let response;
|
|
888
845
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
889
846
|
switch (errorCode) {
|
|
890
847
|
case "AccessDeniedException":
|
|
@@ -910,14 +867,12 @@ const deserializeAws_json1_0WriteRecordsCommandError = async (output, context) =
|
|
|
910
867
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
911
868
|
default:
|
|
912
869
|
const parsedBody = parsedOutput.body;
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
$metadata,
|
|
870
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
871
|
+
output,
|
|
872
|
+
parsedBody,
|
|
873
|
+
exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
|
|
874
|
+
errorCode,
|
|
919
875
|
});
|
|
920
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
921
876
|
}
|
|
922
877
|
};
|
|
923
878
|
const deserializeAws_json1_0AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -1057,9 +1012,6 @@ const serializeAws_json1_0Dimensions = (input, context) => {
|
|
|
1057
1012
|
return input
|
|
1058
1013
|
.filter((e) => e != null)
|
|
1059
1014
|
.map((entry) => {
|
|
1060
|
-
if (entry === null) {
|
|
1061
|
-
return null;
|
|
1062
|
-
}
|
|
1063
1015
|
return serializeAws_json1_0Dimension(entry, context);
|
|
1064
1016
|
});
|
|
1065
1017
|
};
|
|
@@ -1107,9 +1059,6 @@ const serializeAws_json1_0MeasureValues = (input, context) => {
|
|
|
1107
1059
|
return input
|
|
1108
1060
|
.filter((e) => e != null)
|
|
1109
1061
|
.map((entry) => {
|
|
1110
|
-
if (entry === null) {
|
|
1111
|
-
return null;
|
|
1112
|
-
}
|
|
1113
1062
|
return serializeAws_json1_0MeasureValue(entry, context);
|
|
1114
1063
|
});
|
|
1115
1064
|
};
|
|
@@ -1131,9 +1080,6 @@ const serializeAws_json1_0Records = (input, context) => {
|
|
|
1131
1080
|
return input
|
|
1132
1081
|
.filter((e) => e != null)
|
|
1133
1082
|
.map((entry) => {
|
|
1134
|
-
if (entry === null) {
|
|
1135
|
-
return null;
|
|
1136
|
-
}
|
|
1137
1083
|
return serializeAws_json1_0_Record(entry, context);
|
|
1138
1084
|
});
|
|
1139
1085
|
};
|
|
@@ -1165,9 +1111,6 @@ const serializeAws_json1_0TagKeyList = (input, context) => {
|
|
|
1165
1111
|
return input
|
|
1166
1112
|
.filter((e) => e != null)
|
|
1167
1113
|
.map((entry) => {
|
|
1168
|
-
if (entry === null) {
|
|
1169
|
-
return null;
|
|
1170
|
-
}
|
|
1171
1114
|
return entry;
|
|
1172
1115
|
});
|
|
1173
1116
|
};
|
|
@@ -1175,9 +1118,6 @@ const serializeAws_json1_0TagList = (input, context) => {
|
|
|
1175
1118
|
return input
|
|
1176
1119
|
.filter((e) => e != null)
|
|
1177
1120
|
.map((entry) => {
|
|
1178
|
-
if (entry === null) {
|
|
1179
|
-
return null;
|
|
1180
|
-
}
|
|
1181
1121
|
return serializeAws_json1_0Tag(entry, context);
|
|
1182
1122
|
});
|
|
1183
1123
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { AccessDeniedException, ConflictException, InternalServerException, InvalidEndpointException, RejectedRecordsException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
5
|
import { TimestreamWriteServiceException as __BaseException } from "../models/TimestreamWriteServiceException";
|
|
6
6
|
export var serializeAws_json1_0CreateDatabaseCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -187,7 +187,7 @@ export var deserializeAws_json1_0CreateDatabaseCommand = function (output, conte
|
|
|
187
187
|
});
|
|
188
188
|
}); };
|
|
189
189
|
var deserializeAws_json1_0CreateDatabaseCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
190
|
-
var parsedOutput, _a,
|
|
190
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
191
191
|
var _c;
|
|
192
192
|
return __generator(this, function (_d) {
|
|
193
193
|
switch (_d.label) {
|
|
@@ -232,14 +232,14 @@ var deserializeAws_json1_0CreateDatabaseCommandError = function (output, context
|
|
|
232
232
|
case 15: throw _d.sent();
|
|
233
233
|
case 16:
|
|
234
234
|
parsedBody = parsedOutput.body;
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
$metadata: $metadata,
|
|
235
|
+
throwDefaultError({
|
|
236
|
+
output: output,
|
|
237
|
+
parsedBody: parsedBody,
|
|
238
|
+
exceptionCtor: __BaseException,
|
|
239
|
+
errorCode: errorCode,
|
|
241
240
|
});
|
|
242
|
-
|
|
241
|
+
_d.label = 17;
|
|
242
|
+
case 17: return [2];
|
|
243
243
|
}
|
|
244
244
|
});
|
|
245
245
|
}); };
|
|
@@ -262,7 +262,7 @@ export var deserializeAws_json1_0CreateTableCommand = function (output, context)
|
|
|
262
262
|
});
|
|
263
263
|
}); };
|
|
264
264
|
var deserializeAws_json1_0CreateTableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
265
|
-
var parsedOutput, _a,
|
|
265
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
266
266
|
var _c;
|
|
267
267
|
return __generator(this, function (_d) {
|
|
268
268
|
switch (_d.label) {
|
|
@@ -311,14 +311,14 @@ var deserializeAws_json1_0CreateTableCommandError = function (output, context) {
|
|
|
311
311
|
case 17: throw _d.sent();
|
|
312
312
|
case 18:
|
|
313
313
|
parsedBody = parsedOutput.body;
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
$metadata: $metadata,
|
|
314
|
+
throwDefaultError({
|
|
315
|
+
output: output,
|
|
316
|
+
parsedBody: parsedBody,
|
|
317
|
+
exceptionCtor: __BaseException,
|
|
318
|
+
errorCode: errorCode,
|
|
320
319
|
});
|
|
321
|
-
|
|
320
|
+
_d.label = 19;
|
|
321
|
+
case 19: return [2];
|
|
322
322
|
}
|
|
323
323
|
});
|
|
324
324
|
}); };
|
|
@@ -341,7 +341,7 @@ export var deserializeAws_json1_0DeleteDatabaseCommand = function (output, conte
|
|
|
341
341
|
});
|
|
342
342
|
}); };
|
|
343
343
|
var deserializeAws_json1_0DeleteDatabaseCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
344
|
-
var parsedOutput, _a,
|
|
344
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
345
345
|
var _c;
|
|
346
346
|
return __generator(this, function (_d) {
|
|
347
347
|
switch (_d.label) {
|
|
@@ -382,14 +382,14 @@ var deserializeAws_json1_0DeleteDatabaseCommandError = function (output, context
|
|
|
382
382
|
case 13: throw _d.sent();
|
|
383
383
|
case 14:
|
|
384
384
|
parsedBody = parsedOutput.body;
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
$metadata: $metadata,
|
|
385
|
+
throwDefaultError({
|
|
386
|
+
output: output,
|
|
387
|
+
parsedBody: parsedBody,
|
|
388
|
+
exceptionCtor: __BaseException,
|
|
389
|
+
errorCode: errorCode,
|
|
391
390
|
});
|
|
392
|
-
|
|
391
|
+
_d.label = 15;
|
|
392
|
+
case 15: return [2];
|
|
393
393
|
}
|
|
394
394
|
});
|
|
395
395
|
}); };
|
|
@@ -412,7 +412,7 @@ export var deserializeAws_json1_0DeleteTableCommand = function (output, context)
|
|
|
412
412
|
});
|
|
413
413
|
}); };
|
|
414
414
|
var deserializeAws_json1_0DeleteTableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
415
|
-
var parsedOutput, _a,
|
|
415
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
416
416
|
var _c;
|
|
417
417
|
return __generator(this, function (_d) {
|
|
418
418
|
switch (_d.label) {
|
|
@@ -453,14 +453,14 @@ var deserializeAws_json1_0DeleteTableCommandError = function (output, context) {
|
|
|
453
453
|
case 13: throw _d.sent();
|
|
454
454
|
case 14:
|
|
455
455
|
parsedBody = parsedOutput.body;
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
$metadata: $metadata,
|
|
456
|
+
throwDefaultError({
|
|
457
|
+
output: output,
|
|
458
|
+
parsedBody: parsedBody,
|
|
459
|
+
exceptionCtor: __BaseException,
|
|
460
|
+
errorCode: errorCode,
|
|
462
461
|
});
|
|
463
|
-
|
|
462
|
+
_d.label = 15;
|
|
463
|
+
case 15: return [2];
|
|
464
464
|
}
|
|
465
465
|
});
|
|
466
466
|
}); };
|
|
@@ -483,7 +483,7 @@ export var deserializeAws_json1_0DescribeDatabaseCommand = function (output, con
|
|
|
483
483
|
});
|
|
484
484
|
}); };
|
|
485
485
|
var deserializeAws_json1_0DescribeDatabaseCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
486
|
-
var parsedOutput, _a,
|
|
486
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
487
487
|
var _c;
|
|
488
488
|
return __generator(this, function (_d) {
|
|
489
489
|
switch (_d.label) {
|
|
@@ -524,14 +524,14 @@ var deserializeAws_json1_0DescribeDatabaseCommandError = function (output, conte
|
|
|
524
524
|
case 13: throw _d.sent();
|
|
525
525
|
case 14:
|
|
526
526
|
parsedBody = parsedOutput.body;
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
$metadata: $metadata,
|
|
527
|
+
throwDefaultError({
|
|
528
|
+
output: output,
|
|
529
|
+
parsedBody: parsedBody,
|
|
530
|
+
exceptionCtor: __BaseException,
|
|
531
|
+
errorCode: errorCode,
|
|
533
532
|
});
|
|
534
|
-
|
|
533
|
+
_d.label = 15;
|
|
534
|
+
case 15: return [2];
|
|
535
535
|
}
|
|
536
536
|
});
|
|
537
537
|
}); };
|
|
@@ -554,7 +554,7 @@ export var deserializeAws_json1_0DescribeEndpointsCommand = function (output, co
|
|
|
554
554
|
});
|
|
555
555
|
}); };
|
|
556
556
|
var deserializeAws_json1_0DescribeEndpointsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
557
|
-
var parsedOutput, _a,
|
|
557
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
558
558
|
var _c;
|
|
559
559
|
return __generator(this, function (_d) {
|
|
560
560
|
switch (_d.label) {
|
|
@@ -583,14 +583,14 @@ var deserializeAws_json1_0DescribeEndpointsCommandError = function (output, cont
|
|
|
583
583
|
case 7: throw _d.sent();
|
|
584
584
|
case 8:
|
|
585
585
|
parsedBody = parsedOutput.body;
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
$metadata: $metadata,
|
|
586
|
+
throwDefaultError({
|
|
587
|
+
output: output,
|
|
588
|
+
parsedBody: parsedBody,
|
|
589
|
+
exceptionCtor: __BaseException,
|
|
590
|
+
errorCode: errorCode,
|
|
592
591
|
});
|
|
593
|
-
|
|
592
|
+
_d.label = 9;
|
|
593
|
+
case 9: return [2];
|
|
594
594
|
}
|
|
595
595
|
});
|
|
596
596
|
}); };
|
|
@@ -613,7 +613,7 @@ export var deserializeAws_json1_0DescribeTableCommand = function (output, contex
|
|
|
613
613
|
});
|
|
614
614
|
}); };
|
|
615
615
|
var deserializeAws_json1_0DescribeTableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
616
|
-
var parsedOutput, _a,
|
|
616
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
617
617
|
var _c;
|
|
618
618
|
return __generator(this, function (_d) {
|
|
619
619
|
switch (_d.label) {
|
|
@@ -654,14 +654,14 @@ var deserializeAws_json1_0DescribeTableCommandError = function (output, context)
|
|
|
654
654
|
case 13: throw _d.sent();
|
|
655
655
|
case 14:
|
|
656
656
|
parsedBody = parsedOutput.body;
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
$metadata: $metadata,
|
|
657
|
+
throwDefaultError({
|
|
658
|
+
output: output,
|
|
659
|
+
parsedBody: parsedBody,
|
|
660
|
+
exceptionCtor: __BaseException,
|
|
661
|
+
errorCode: errorCode,
|
|
663
662
|
});
|
|
664
|
-
|
|
663
|
+
_d.label = 15;
|
|
664
|
+
case 15: return [2];
|
|
665
665
|
}
|
|
666
666
|
});
|
|
667
667
|
}); };
|
|
@@ -684,7 +684,7 @@ export var deserializeAws_json1_0ListDatabasesCommand = function (output, contex
|
|
|
684
684
|
});
|
|
685
685
|
}); };
|
|
686
686
|
var deserializeAws_json1_0ListDatabasesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
687
|
-
var parsedOutput, _a,
|
|
687
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
688
688
|
var _c;
|
|
689
689
|
return __generator(this, function (_d) {
|
|
690
690
|
switch (_d.label) {
|
|
@@ -721,14 +721,14 @@ var deserializeAws_json1_0ListDatabasesCommandError = function (output, context)
|
|
|
721
721
|
case 11: throw _d.sent();
|
|
722
722
|
case 12:
|
|
723
723
|
parsedBody = parsedOutput.body;
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
$metadata: $metadata,
|
|
724
|
+
throwDefaultError({
|
|
725
|
+
output: output,
|
|
726
|
+
parsedBody: parsedBody,
|
|
727
|
+
exceptionCtor: __BaseException,
|
|
728
|
+
errorCode: errorCode,
|
|
730
729
|
});
|
|
731
|
-
|
|
730
|
+
_d.label = 13;
|
|
731
|
+
case 13: return [2];
|
|
732
732
|
}
|
|
733
733
|
});
|
|
734
734
|
}); };
|
|
@@ -751,7 +751,7 @@ export var deserializeAws_json1_0ListTablesCommand = function (output, context)
|
|
|
751
751
|
});
|
|
752
752
|
}); };
|
|
753
753
|
var deserializeAws_json1_0ListTablesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
754
|
-
var parsedOutput, _a,
|
|
754
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
755
755
|
var _c;
|
|
756
756
|
return __generator(this, function (_d) {
|
|
757
757
|
switch (_d.label) {
|
|
@@ -792,14 +792,14 @@ var deserializeAws_json1_0ListTablesCommandError = function (output, context) {
|
|
|
792
792
|
case 13: throw _d.sent();
|
|
793
793
|
case 14:
|
|
794
794
|
parsedBody = parsedOutput.body;
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
$metadata: $metadata,
|
|
795
|
+
throwDefaultError({
|
|
796
|
+
output: output,
|
|
797
|
+
parsedBody: parsedBody,
|
|
798
|
+
exceptionCtor: __BaseException,
|
|
799
|
+
errorCode: errorCode,
|
|
801
800
|
});
|
|
802
|
-
|
|
801
|
+
_d.label = 15;
|
|
802
|
+
case 15: return [2];
|
|
803
803
|
}
|
|
804
804
|
});
|
|
805
805
|
}); };
|
|
@@ -822,7 +822,7 @@ export var deserializeAws_json1_0ListTagsForResourceCommand = function (output,
|
|
|
822
822
|
});
|
|
823
823
|
}); };
|
|
824
824
|
var deserializeAws_json1_0ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
825
|
-
var parsedOutput, _a,
|
|
825
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
826
826
|
var _c;
|
|
827
827
|
return __generator(this, function (_d) {
|
|
828
828
|
switch (_d.label) {
|
|
@@ -855,14 +855,14 @@ var deserializeAws_json1_0ListTagsForResourceCommandError = function (output, co
|
|
|
855
855
|
case 9: throw _d.sent();
|
|
856
856
|
case 10:
|
|
857
857
|
parsedBody = parsedOutput.body;
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
$metadata: $metadata,
|
|
858
|
+
throwDefaultError({
|
|
859
|
+
output: output,
|
|
860
|
+
parsedBody: parsedBody,
|
|
861
|
+
exceptionCtor: __BaseException,
|
|
862
|
+
errorCode: errorCode,
|
|
864
863
|
});
|
|
865
|
-
|
|
864
|
+
_d.label = 11;
|
|
865
|
+
case 11: return [2];
|
|
866
866
|
}
|
|
867
867
|
});
|
|
868
868
|
}); };
|
|
@@ -885,7 +885,7 @@ export var deserializeAws_json1_0TagResourceCommand = function (output, context)
|
|
|
885
885
|
});
|
|
886
886
|
}); };
|
|
887
887
|
var deserializeAws_json1_0TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
888
|
-
var parsedOutput, _a,
|
|
888
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
889
889
|
var _c;
|
|
890
890
|
return __generator(this, function (_d) {
|
|
891
891
|
switch (_d.label) {
|
|
@@ -922,14 +922,14 @@ var deserializeAws_json1_0TagResourceCommandError = function (output, context) {
|
|
|
922
922
|
case 11: throw _d.sent();
|
|
923
923
|
case 12:
|
|
924
924
|
parsedBody = parsedOutput.body;
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
$metadata: $metadata,
|
|
925
|
+
throwDefaultError({
|
|
926
|
+
output: output,
|
|
927
|
+
parsedBody: parsedBody,
|
|
928
|
+
exceptionCtor: __BaseException,
|
|
929
|
+
errorCode: errorCode,
|
|
931
930
|
});
|
|
932
|
-
|
|
931
|
+
_d.label = 13;
|
|
932
|
+
case 13: return [2];
|
|
933
933
|
}
|
|
934
934
|
});
|
|
935
935
|
}); };
|
|
@@ -952,7 +952,7 @@ export var deserializeAws_json1_0UntagResourceCommand = function (output, contex
|
|
|
952
952
|
});
|
|
953
953
|
}); };
|
|
954
954
|
var deserializeAws_json1_0UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
955
|
-
var parsedOutput, _a,
|
|
955
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
956
956
|
var _c;
|
|
957
957
|
return __generator(this, function (_d) {
|
|
958
958
|
switch (_d.label) {
|
|
@@ -989,14 +989,14 @@ var deserializeAws_json1_0UntagResourceCommandError = function (output, context)
|
|
|
989
989
|
case 11: throw _d.sent();
|
|
990
990
|
case 12:
|
|
991
991
|
parsedBody = parsedOutput.body;
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
$metadata: $metadata,
|
|
992
|
+
throwDefaultError({
|
|
993
|
+
output: output,
|
|
994
|
+
parsedBody: parsedBody,
|
|
995
|
+
exceptionCtor: __BaseException,
|
|
996
|
+
errorCode: errorCode,
|
|
998
997
|
});
|
|
999
|
-
|
|
998
|
+
_d.label = 13;
|
|
999
|
+
case 13: return [2];
|
|
1000
1000
|
}
|
|
1001
1001
|
});
|
|
1002
1002
|
}); };
|
|
@@ -1019,7 +1019,7 @@ export var deserializeAws_json1_0UpdateDatabaseCommand = function (output, conte
|
|
|
1019
1019
|
});
|
|
1020
1020
|
}); };
|
|
1021
1021
|
var deserializeAws_json1_0UpdateDatabaseCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1022
|
-
var parsedOutput, _a,
|
|
1022
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1023
1023
|
var _c;
|
|
1024
1024
|
return __generator(this, function (_d) {
|
|
1025
1025
|
switch (_d.label) {
|
|
@@ -1064,14 +1064,14 @@ var deserializeAws_json1_0UpdateDatabaseCommandError = function (output, context
|
|
|
1064
1064
|
case 15: throw _d.sent();
|
|
1065
1065
|
case 16:
|
|
1066
1066
|
parsedBody = parsedOutput.body;
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
$metadata: $metadata,
|
|
1067
|
+
throwDefaultError({
|
|
1068
|
+
output: output,
|
|
1069
|
+
parsedBody: parsedBody,
|
|
1070
|
+
exceptionCtor: __BaseException,
|
|
1071
|
+
errorCode: errorCode,
|
|
1073
1072
|
});
|
|
1074
|
-
|
|
1073
|
+
_d.label = 17;
|
|
1074
|
+
case 17: return [2];
|
|
1075
1075
|
}
|
|
1076
1076
|
});
|
|
1077
1077
|
}); };
|
|
@@ -1094,7 +1094,7 @@ export var deserializeAws_json1_0UpdateTableCommand = function (output, context)
|
|
|
1094
1094
|
});
|
|
1095
1095
|
}); };
|
|
1096
1096
|
var deserializeAws_json1_0UpdateTableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1097
|
-
var parsedOutput, _a,
|
|
1097
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1098
1098
|
var _c;
|
|
1099
1099
|
return __generator(this, function (_d) {
|
|
1100
1100
|
switch (_d.label) {
|
|
@@ -1135,14 +1135,14 @@ var deserializeAws_json1_0UpdateTableCommandError = function (output, context) {
|
|
|
1135
1135
|
case 13: throw _d.sent();
|
|
1136
1136
|
case 14:
|
|
1137
1137
|
parsedBody = parsedOutput.body;
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
$metadata: $metadata,
|
|
1138
|
+
throwDefaultError({
|
|
1139
|
+
output: output,
|
|
1140
|
+
parsedBody: parsedBody,
|
|
1141
|
+
exceptionCtor: __BaseException,
|
|
1142
|
+
errorCode: errorCode,
|
|
1144
1143
|
});
|
|
1145
|
-
|
|
1144
|
+
_d.label = 15;
|
|
1145
|
+
case 15: return [2];
|
|
1146
1146
|
}
|
|
1147
1147
|
});
|
|
1148
1148
|
}); };
|
|
@@ -1165,7 +1165,7 @@ export var deserializeAws_json1_0WriteRecordsCommand = function (output, context
|
|
|
1165
1165
|
});
|
|
1166
1166
|
}); };
|
|
1167
1167
|
var deserializeAws_json1_0WriteRecordsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1168
|
-
var parsedOutput, _a,
|
|
1168
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1169
1169
|
var _c;
|
|
1170
1170
|
return __generator(this, function (_d) {
|
|
1171
1171
|
switch (_d.label) {
|
|
@@ -1210,14 +1210,14 @@ var deserializeAws_json1_0WriteRecordsCommandError = function (output, context)
|
|
|
1210
1210
|
case 15: throw _d.sent();
|
|
1211
1211
|
case 16:
|
|
1212
1212
|
parsedBody = parsedOutput.body;
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
$metadata: $metadata,
|
|
1213
|
+
throwDefaultError({
|
|
1214
|
+
output: output,
|
|
1215
|
+
parsedBody: parsedBody,
|
|
1216
|
+
exceptionCtor: __BaseException,
|
|
1217
|
+
errorCode: errorCode,
|
|
1219
1218
|
});
|
|
1220
|
-
|
|
1219
|
+
_d.label = 17;
|
|
1220
|
+
case 17: return [2];
|
|
1221
1221
|
}
|
|
1222
1222
|
});
|
|
1223
1223
|
}); };
|
|
@@ -1334,9 +1334,6 @@ var serializeAws_json1_0Dimensions = function (input, context) {
|
|
|
1334
1334
|
return input
|
|
1335
1335
|
.filter(function (e) { return e != null; })
|
|
1336
1336
|
.map(function (entry) {
|
|
1337
|
-
if (entry === null) {
|
|
1338
|
-
return null;
|
|
1339
|
-
}
|
|
1340
1337
|
return serializeAws_json1_0Dimension(entry, context);
|
|
1341
1338
|
});
|
|
1342
1339
|
};
|
|
@@ -1366,9 +1363,6 @@ var serializeAws_json1_0MeasureValues = function (input, context) {
|
|
|
1366
1363
|
return input
|
|
1367
1364
|
.filter(function (e) { return e != null; })
|
|
1368
1365
|
.map(function (entry) {
|
|
1369
|
-
if (entry === null) {
|
|
1370
|
-
return null;
|
|
1371
|
-
}
|
|
1372
1366
|
return serializeAws_json1_0MeasureValue(entry, context);
|
|
1373
1367
|
});
|
|
1374
1368
|
};
|
|
@@ -1381,9 +1375,6 @@ var serializeAws_json1_0Records = function (input, context) {
|
|
|
1381
1375
|
return input
|
|
1382
1376
|
.filter(function (e) { return e != null; })
|
|
1383
1377
|
.map(function (entry) {
|
|
1384
|
-
if (entry === null) {
|
|
1385
|
-
return null;
|
|
1386
|
-
}
|
|
1387
1378
|
return serializeAws_json1_0_Record(entry, context);
|
|
1388
1379
|
});
|
|
1389
1380
|
};
|
|
@@ -1404,9 +1395,6 @@ var serializeAws_json1_0TagKeyList = function (input, context) {
|
|
|
1404
1395
|
return input
|
|
1405
1396
|
.filter(function (e) { return e != null; })
|
|
1406
1397
|
.map(function (entry) {
|
|
1407
|
-
if (entry === null) {
|
|
1408
|
-
return null;
|
|
1409
|
-
}
|
|
1410
1398
|
return entry;
|
|
1411
1399
|
});
|
|
1412
1400
|
};
|
|
@@ -1414,9 +1402,6 @@ var serializeAws_json1_0TagList = function (input, context) {
|
|
|
1414
1402
|
return input
|
|
1415
1403
|
.filter(function (e) { return e != null; })
|
|
1416
1404
|
.map(function (entry) {
|
|
1417
|
-
if (entry === null) {
|
|
1418
|
-
return null;
|
|
1419
|
-
}
|
|
1420
1405
|
return serializeAws_json1_0Tag(entry, context);
|
|
1421
1406
|
});
|
|
1422
1407
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-timestream-write",
|
|
3
3
|
"description": "AWS SDK for JavaScript Timestream Write Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.150.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.150.0",
|
|
22
22
|
"@aws-sdk/config-resolver": "3.130.0",
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.150.0",
|
|
24
24
|
"@aws-sdk/fetch-http-handler": "3.131.0",
|
|
25
25
|
"@aws-sdk/hash-node": "3.127.0",
|
|
26
26
|
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
"@aws-sdk/node-config-provider": "3.127.0",
|
|
38
38
|
"@aws-sdk/node-http-handler": "3.127.0",
|
|
39
39
|
"@aws-sdk/protocol-http": "3.127.0",
|
|
40
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
+
"@aws-sdk/smithy-client": "3.142.0",
|
|
41
41
|
"@aws-sdk/types": "3.127.0",
|
|
42
42
|
"@aws-sdk/url-parser": "3.127.0",
|
|
43
43
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
44
44
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
46
46
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
47
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
48
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
47
|
+
"@aws-sdk/util-defaults-mode-browser": "3.142.0",
|
|
48
|
+
"@aws-sdk/util-defaults-mode-node": "3.142.0",
|
|
49
49
|
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
51
51
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
@@ -62,6 +62,11 @@
|
|
|
62
62
|
"typedoc": "0.19.2",
|
|
63
63
|
"typescript": "~4.6.2"
|
|
64
64
|
},
|
|
65
|
+
"overrides": {
|
|
66
|
+
"typedoc": {
|
|
67
|
+
"typescript": "~4.6.2"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
65
70
|
"engines": {
|
|
66
71
|
"node": ">=12.0.0"
|
|
67
72
|
},
|