@aws-sdk/client-timestream-query 3.503.1 → 3.507.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/dist-cjs/index.js +27 -399
- package/dist-es/protocols/Aws_json1_0.js +26 -398
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -444,7 +444,7 @@ var se_UpdateScheduledQueryCommand = /* @__PURE__ */ __name(async (input, contex
|
|
|
444
444
|
}, "se_UpdateScheduledQueryCommand");
|
|
445
445
|
var de_CancelQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
446
446
|
if (output.statusCode >= 300) {
|
|
447
|
-
return
|
|
447
|
+
return de_CommandError(output, context);
|
|
448
448
|
}
|
|
449
449
|
const data = await parseBody(output.body, context);
|
|
450
450
|
let contents = {};
|
|
@@ -455,40 +455,9 @@ var de_CancelQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
455
455
|
};
|
|
456
456
|
return response;
|
|
457
457
|
}, "de_CancelQueryCommand");
|
|
458
|
-
var de_CancelQueryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
459
|
-
const parsedOutput = {
|
|
460
|
-
...output,
|
|
461
|
-
body: await parseErrorBody(output.body, context)
|
|
462
|
-
};
|
|
463
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
464
|
-
switch (errorCode) {
|
|
465
|
-
case "AccessDeniedException":
|
|
466
|
-
case "com.amazonaws.timestreamquery#AccessDeniedException":
|
|
467
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
468
|
-
case "InternalServerException":
|
|
469
|
-
case "com.amazonaws.timestreamquery#InternalServerException":
|
|
470
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
471
|
-
case "InvalidEndpointException":
|
|
472
|
-
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
473
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
474
|
-
case "ThrottlingException":
|
|
475
|
-
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
476
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
477
|
-
case "ValidationException":
|
|
478
|
-
case "com.amazonaws.timestreamquery#ValidationException":
|
|
479
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
480
|
-
default:
|
|
481
|
-
const parsedBody = parsedOutput.body;
|
|
482
|
-
return throwDefaultError({
|
|
483
|
-
output,
|
|
484
|
-
parsedBody,
|
|
485
|
-
errorCode
|
|
486
|
-
});
|
|
487
|
-
}
|
|
488
|
-
}, "de_CancelQueryCommandError");
|
|
489
458
|
var de_CreateScheduledQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
490
459
|
if (output.statusCode >= 300) {
|
|
491
|
-
return
|
|
460
|
+
return de_CommandError(output, context);
|
|
492
461
|
}
|
|
493
462
|
const data = await parseBody(output.body, context);
|
|
494
463
|
let contents = {};
|
|
@@ -499,46 +468,9 @@ var de_CreateScheduledQueryCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
499
468
|
};
|
|
500
469
|
return response;
|
|
501
470
|
}, "de_CreateScheduledQueryCommand");
|
|
502
|
-
var de_CreateScheduledQueryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
503
|
-
const parsedOutput = {
|
|
504
|
-
...output,
|
|
505
|
-
body: await parseErrorBody(output.body, context)
|
|
506
|
-
};
|
|
507
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
508
|
-
switch (errorCode) {
|
|
509
|
-
case "AccessDeniedException":
|
|
510
|
-
case "com.amazonaws.timestreamquery#AccessDeniedException":
|
|
511
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
512
|
-
case "ConflictException":
|
|
513
|
-
case "com.amazonaws.timestreamquery#ConflictException":
|
|
514
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
515
|
-
case "InternalServerException":
|
|
516
|
-
case "com.amazonaws.timestreamquery#InternalServerException":
|
|
517
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
518
|
-
case "InvalidEndpointException":
|
|
519
|
-
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
520
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
521
|
-
case "ServiceQuotaExceededException":
|
|
522
|
-
case "com.amazonaws.timestreamquery#ServiceQuotaExceededException":
|
|
523
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
524
|
-
case "ThrottlingException":
|
|
525
|
-
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
526
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
527
|
-
case "ValidationException":
|
|
528
|
-
case "com.amazonaws.timestreamquery#ValidationException":
|
|
529
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
530
|
-
default:
|
|
531
|
-
const parsedBody = parsedOutput.body;
|
|
532
|
-
return throwDefaultError({
|
|
533
|
-
output,
|
|
534
|
-
parsedBody,
|
|
535
|
-
errorCode
|
|
536
|
-
});
|
|
537
|
-
}
|
|
538
|
-
}, "de_CreateScheduledQueryCommandError");
|
|
539
471
|
var de_DeleteScheduledQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
540
472
|
if (output.statusCode >= 300) {
|
|
541
|
-
return
|
|
473
|
+
return de_CommandError(output, context);
|
|
542
474
|
}
|
|
543
475
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
544
476
|
const response = {
|
|
@@ -546,43 +478,9 @@ var de_DeleteScheduledQueryCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
546
478
|
};
|
|
547
479
|
return response;
|
|
548
480
|
}, "de_DeleteScheduledQueryCommand");
|
|
549
|
-
var de_DeleteScheduledQueryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
550
|
-
const parsedOutput = {
|
|
551
|
-
...output,
|
|
552
|
-
body: await parseErrorBody(output.body, context)
|
|
553
|
-
};
|
|
554
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
555
|
-
switch (errorCode) {
|
|
556
|
-
case "AccessDeniedException":
|
|
557
|
-
case "com.amazonaws.timestreamquery#AccessDeniedException":
|
|
558
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
559
|
-
case "InternalServerException":
|
|
560
|
-
case "com.amazonaws.timestreamquery#InternalServerException":
|
|
561
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
562
|
-
case "InvalidEndpointException":
|
|
563
|
-
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
564
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
565
|
-
case "ResourceNotFoundException":
|
|
566
|
-
case "com.amazonaws.timestreamquery#ResourceNotFoundException":
|
|
567
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
568
|
-
case "ThrottlingException":
|
|
569
|
-
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
570
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
571
|
-
case "ValidationException":
|
|
572
|
-
case "com.amazonaws.timestreamquery#ValidationException":
|
|
573
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
574
|
-
default:
|
|
575
|
-
const parsedBody = parsedOutput.body;
|
|
576
|
-
return throwDefaultError({
|
|
577
|
-
output,
|
|
578
|
-
parsedBody,
|
|
579
|
-
errorCode
|
|
580
|
-
});
|
|
581
|
-
}
|
|
582
|
-
}, "de_DeleteScheduledQueryCommandError");
|
|
583
481
|
var de_DescribeEndpointsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
584
482
|
if (output.statusCode >= 300) {
|
|
585
|
-
return
|
|
483
|
+
return de_CommandError(output, context);
|
|
586
484
|
}
|
|
587
485
|
const data = await parseBody(output.body, context);
|
|
588
486
|
let contents = {};
|
|
@@ -593,34 +491,9 @@ var de_DescribeEndpointsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
593
491
|
};
|
|
594
492
|
return response;
|
|
595
493
|
}, "de_DescribeEndpointsCommand");
|
|
596
|
-
var de_DescribeEndpointsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
597
|
-
const parsedOutput = {
|
|
598
|
-
...output,
|
|
599
|
-
body: await parseErrorBody(output.body, context)
|
|
600
|
-
};
|
|
601
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
602
|
-
switch (errorCode) {
|
|
603
|
-
case "InternalServerException":
|
|
604
|
-
case "com.amazonaws.timestreamquery#InternalServerException":
|
|
605
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
606
|
-
case "ThrottlingException":
|
|
607
|
-
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
608
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
609
|
-
case "ValidationException":
|
|
610
|
-
case "com.amazonaws.timestreamquery#ValidationException":
|
|
611
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
612
|
-
default:
|
|
613
|
-
const parsedBody = parsedOutput.body;
|
|
614
|
-
return throwDefaultError({
|
|
615
|
-
output,
|
|
616
|
-
parsedBody,
|
|
617
|
-
errorCode
|
|
618
|
-
});
|
|
619
|
-
}
|
|
620
|
-
}, "de_DescribeEndpointsCommandError");
|
|
621
494
|
var de_DescribeScheduledQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
622
495
|
if (output.statusCode >= 300) {
|
|
623
|
-
return
|
|
496
|
+
return de_CommandError(output, context);
|
|
624
497
|
}
|
|
625
498
|
const data = await parseBody(output.body, context);
|
|
626
499
|
let contents = {};
|
|
@@ -631,43 +504,9 @@ var de_DescribeScheduledQueryCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
631
504
|
};
|
|
632
505
|
return response;
|
|
633
506
|
}, "de_DescribeScheduledQueryCommand");
|
|
634
|
-
var de_DescribeScheduledQueryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
635
|
-
const parsedOutput = {
|
|
636
|
-
...output,
|
|
637
|
-
body: await parseErrorBody(output.body, context)
|
|
638
|
-
};
|
|
639
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
640
|
-
switch (errorCode) {
|
|
641
|
-
case "AccessDeniedException":
|
|
642
|
-
case "com.amazonaws.timestreamquery#AccessDeniedException":
|
|
643
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
644
|
-
case "InternalServerException":
|
|
645
|
-
case "com.amazonaws.timestreamquery#InternalServerException":
|
|
646
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
647
|
-
case "InvalidEndpointException":
|
|
648
|
-
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
649
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
650
|
-
case "ResourceNotFoundException":
|
|
651
|
-
case "com.amazonaws.timestreamquery#ResourceNotFoundException":
|
|
652
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
653
|
-
case "ThrottlingException":
|
|
654
|
-
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
655
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
656
|
-
case "ValidationException":
|
|
657
|
-
case "com.amazonaws.timestreamquery#ValidationException":
|
|
658
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
659
|
-
default:
|
|
660
|
-
const parsedBody = parsedOutput.body;
|
|
661
|
-
return throwDefaultError({
|
|
662
|
-
output,
|
|
663
|
-
parsedBody,
|
|
664
|
-
errorCode
|
|
665
|
-
});
|
|
666
|
-
}
|
|
667
|
-
}, "de_DescribeScheduledQueryCommandError");
|
|
668
507
|
var de_ExecuteScheduledQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
669
508
|
if (output.statusCode >= 300) {
|
|
670
|
-
return
|
|
509
|
+
return de_CommandError(output, context);
|
|
671
510
|
}
|
|
672
511
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
673
512
|
const response = {
|
|
@@ -675,43 +514,9 @@ var de_ExecuteScheduledQueryCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
675
514
|
};
|
|
676
515
|
return response;
|
|
677
516
|
}, "de_ExecuteScheduledQueryCommand");
|
|
678
|
-
var de_ExecuteScheduledQueryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
679
|
-
const parsedOutput = {
|
|
680
|
-
...output,
|
|
681
|
-
body: await parseErrorBody(output.body, context)
|
|
682
|
-
};
|
|
683
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
684
|
-
switch (errorCode) {
|
|
685
|
-
case "AccessDeniedException":
|
|
686
|
-
case "com.amazonaws.timestreamquery#AccessDeniedException":
|
|
687
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
688
|
-
case "InternalServerException":
|
|
689
|
-
case "com.amazonaws.timestreamquery#InternalServerException":
|
|
690
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
691
|
-
case "InvalidEndpointException":
|
|
692
|
-
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
693
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
694
|
-
case "ResourceNotFoundException":
|
|
695
|
-
case "com.amazonaws.timestreamquery#ResourceNotFoundException":
|
|
696
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
697
|
-
case "ThrottlingException":
|
|
698
|
-
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
699
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
700
|
-
case "ValidationException":
|
|
701
|
-
case "com.amazonaws.timestreamquery#ValidationException":
|
|
702
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
703
|
-
default:
|
|
704
|
-
const parsedBody = parsedOutput.body;
|
|
705
|
-
return throwDefaultError({
|
|
706
|
-
output,
|
|
707
|
-
parsedBody,
|
|
708
|
-
errorCode
|
|
709
|
-
});
|
|
710
|
-
}
|
|
711
|
-
}, "de_ExecuteScheduledQueryCommandError");
|
|
712
517
|
var de_ListScheduledQueriesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
713
518
|
if (output.statusCode >= 300) {
|
|
714
|
-
return
|
|
519
|
+
return de_CommandError(output, context);
|
|
715
520
|
}
|
|
716
521
|
const data = await parseBody(output.body, context);
|
|
717
522
|
let contents = {};
|
|
@@ -722,40 +527,9 @@ var de_ListScheduledQueriesCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
722
527
|
};
|
|
723
528
|
return response;
|
|
724
529
|
}, "de_ListScheduledQueriesCommand");
|
|
725
|
-
var de_ListScheduledQueriesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
726
|
-
const parsedOutput = {
|
|
727
|
-
...output,
|
|
728
|
-
body: await parseErrorBody(output.body, context)
|
|
729
|
-
};
|
|
730
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
731
|
-
switch (errorCode) {
|
|
732
|
-
case "AccessDeniedException":
|
|
733
|
-
case "com.amazonaws.timestreamquery#AccessDeniedException":
|
|
734
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
735
|
-
case "InternalServerException":
|
|
736
|
-
case "com.amazonaws.timestreamquery#InternalServerException":
|
|
737
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
738
|
-
case "InvalidEndpointException":
|
|
739
|
-
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
740
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
741
|
-
case "ThrottlingException":
|
|
742
|
-
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
743
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
744
|
-
case "ValidationException":
|
|
745
|
-
case "com.amazonaws.timestreamquery#ValidationException":
|
|
746
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
747
|
-
default:
|
|
748
|
-
const parsedBody = parsedOutput.body;
|
|
749
|
-
return throwDefaultError({
|
|
750
|
-
output,
|
|
751
|
-
parsedBody,
|
|
752
|
-
errorCode
|
|
753
|
-
});
|
|
754
|
-
}
|
|
755
|
-
}, "de_ListScheduledQueriesCommandError");
|
|
756
530
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
757
531
|
if (output.statusCode >= 300) {
|
|
758
|
-
return
|
|
532
|
+
return de_CommandError(output, context);
|
|
759
533
|
}
|
|
760
534
|
const data = await parseBody(output.body, context);
|
|
761
535
|
let contents = {};
|
|
@@ -766,37 +540,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
766
540
|
};
|
|
767
541
|
return response;
|
|
768
542
|
}, "de_ListTagsForResourceCommand");
|
|
769
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
770
|
-
const parsedOutput = {
|
|
771
|
-
...output,
|
|
772
|
-
body: await parseErrorBody(output.body, context)
|
|
773
|
-
};
|
|
774
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
775
|
-
switch (errorCode) {
|
|
776
|
-
case "InvalidEndpointException":
|
|
777
|
-
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
778
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
779
|
-
case "ResourceNotFoundException":
|
|
780
|
-
case "com.amazonaws.timestreamquery#ResourceNotFoundException":
|
|
781
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
782
|
-
case "ThrottlingException":
|
|
783
|
-
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
784
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
785
|
-
case "ValidationException":
|
|
786
|
-
case "com.amazonaws.timestreamquery#ValidationException":
|
|
787
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
788
|
-
default:
|
|
789
|
-
const parsedBody = parsedOutput.body;
|
|
790
|
-
return throwDefaultError({
|
|
791
|
-
output,
|
|
792
|
-
parsedBody,
|
|
793
|
-
errorCode
|
|
794
|
-
});
|
|
795
|
-
}
|
|
796
|
-
}, "de_ListTagsForResourceCommandError");
|
|
797
543
|
var de_PrepareQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
798
544
|
if (output.statusCode >= 300) {
|
|
799
|
-
return
|
|
545
|
+
return de_CommandError(output, context);
|
|
800
546
|
}
|
|
801
547
|
const data = await parseBody(output.body, context);
|
|
802
548
|
let contents = {};
|
|
@@ -807,40 +553,9 @@ var de_PrepareQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
807
553
|
};
|
|
808
554
|
return response;
|
|
809
555
|
}, "de_PrepareQueryCommand");
|
|
810
|
-
var de_PrepareQueryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
811
|
-
const parsedOutput = {
|
|
812
|
-
...output,
|
|
813
|
-
body: await parseErrorBody(output.body, context)
|
|
814
|
-
};
|
|
815
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
816
|
-
switch (errorCode) {
|
|
817
|
-
case "AccessDeniedException":
|
|
818
|
-
case "com.amazonaws.timestreamquery#AccessDeniedException":
|
|
819
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
820
|
-
case "InternalServerException":
|
|
821
|
-
case "com.amazonaws.timestreamquery#InternalServerException":
|
|
822
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
823
|
-
case "InvalidEndpointException":
|
|
824
|
-
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
825
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
826
|
-
case "ThrottlingException":
|
|
827
|
-
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
828
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
829
|
-
case "ValidationException":
|
|
830
|
-
case "com.amazonaws.timestreamquery#ValidationException":
|
|
831
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
832
|
-
default:
|
|
833
|
-
const parsedBody = parsedOutput.body;
|
|
834
|
-
return throwDefaultError({
|
|
835
|
-
output,
|
|
836
|
-
parsedBody,
|
|
837
|
-
errorCode
|
|
838
|
-
});
|
|
839
|
-
}
|
|
840
|
-
}, "de_PrepareQueryCommandError");
|
|
841
556
|
var de_QueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
842
557
|
if (output.statusCode >= 300) {
|
|
843
|
-
return
|
|
558
|
+
return de_CommandError(output, context);
|
|
844
559
|
}
|
|
845
560
|
const data = await parseBody(output.body, context);
|
|
846
561
|
let contents = {};
|
|
@@ -851,46 +566,9 @@ var de_QueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
851
566
|
};
|
|
852
567
|
return response;
|
|
853
568
|
}, "de_QueryCommand");
|
|
854
|
-
var de_QueryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
855
|
-
const parsedOutput = {
|
|
856
|
-
...output,
|
|
857
|
-
body: await parseErrorBody(output.body, context)
|
|
858
|
-
};
|
|
859
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
860
|
-
switch (errorCode) {
|
|
861
|
-
case "AccessDeniedException":
|
|
862
|
-
case "com.amazonaws.timestreamquery#AccessDeniedException":
|
|
863
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
864
|
-
case "ConflictException":
|
|
865
|
-
case "com.amazonaws.timestreamquery#ConflictException":
|
|
866
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
867
|
-
case "InternalServerException":
|
|
868
|
-
case "com.amazonaws.timestreamquery#InternalServerException":
|
|
869
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
870
|
-
case "InvalidEndpointException":
|
|
871
|
-
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
872
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
873
|
-
case "QueryExecutionException":
|
|
874
|
-
case "com.amazonaws.timestreamquery#QueryExecutionException":
|
|
875
|
-
throw await de_QueryExecutionExceptionRes(parsedOutput, context);
|
|
876
|
-
case "ThrottlingException":
|
|
877
|
-
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
878
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
879
|
-
case "ValidationException":
|
|
880
|
-
case "com.amazonaws.timestreamquery#ValidationException":
|
|
881
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
882
|
-
default:
|
|
883
|
-
const parsedBody = parsedOutput.body;
|
|
884
|
-
return throwDefaultError({
|
|
885
|
-
output,
|
|
886
|
-
parsedBody,
|
|
887
|
-
errorCode
|
|
888
|
-
});
|
|
889
|
-
}
|
|
890
|
-
}, "de_QueryCommandError");
|
|
891
569
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
892
570
|
if (output.statusCode >= 300) {
|
|
893
|
-
return
|
|
571
|
+
return de_CommandError(output, context);
|
|
894
572
|
}
|
|
895
573
|
const data = await parseBody(output.body, context);
|
|
896
574
|
let contents = {};
|
|
@@ -901,40 +579,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
901
579
|
};
|
|
902
580
|
return response;
|
|
903
581
|
}, "de_TagResourceCommand");
|
|
904
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
905
|
-
const parsedOutput = {
|
|
906
|
-
...output,
|
|
907
|
-
body: await parseErrorBody(output.body, context)
|
|
908
|
-
};
|
|
909
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
910
|
-
switch (errorCode) {
|
|
911
|
-
case "InvalidEndpointException":
|
|
912
|
-
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
913
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
914
|
-
case "ResourceNotFoundException":
|
|
915
|
-
case "com.amazonaws.timestreamquery#ResourceNotFoundException":
|
|
916
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
917
|
-
case "ServiceQuotaExceededException":
|
|
918
|
-
case "com.amazonaws.timestreamquery#ServiceQuotaExceededException":
|
|
919
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
920
|
-
case "ThrottlingException":
|
|
921
|
-
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
922
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
923
|
-
case "ValidationException":
|
|
924
|
-
case "com.amazonaws.timestreamquery#ValidationException":
|
|
925
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
926
|
-
default:
|
|
927
|
-
const parsedBody = parsedOutput.body;
|
|
928
|
-
return throwDefaultError({
|
|
929
|
-
output,
|
|
930
|
-
parsedBody,
|
|
931
|
-
errorCode
|
|
932
|
-
});
|
|
933
|
-
}
|
|
934
|
-
}, "de_TagResourceCommandError");
|
|
935
582
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
936
583
|
if (output.statusCode >= 300) {
|
|
937
|
-
return
|
|
584
|
+
return de_CommandError(output, context);
|
|
938
585
|
}
|
|
939
586
|
const data = await parseBody(output.body, context);
|
|
940
587
|
let contents = {};
|
|
@@ -945,37 +592,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
945
592
|
};
|
|
946
593
|
return response;
|
|
947
594
|
}, "de_UntagResourceCommand");
|
|
948
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
949
|
-
const parsedOutput = {
|
|
950
|
-
...output,
|
|
951
|
-
body: await parseErrorBody(output.body, context)
|
|
952
|
-
};
|
|
953
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
954
|
-
switch (errorCode) {
|
|
955
|
-
case "InvalidEndpointException":
|
|
956
|
-
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
957
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
958
|
-
case "ResourceNotFoundException":
|
|
959
|
-
case "com.amazonaws.timestreamquery#ResourceNotFoundException":
|
|
960
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
961
|
-
case "ThrottlingException":
|
|
962
|
-
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
963
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
964
|
-
case "ValidationException":
|
|
965
|
-
case "com.amazonaws.timestreamquery#ValidationException":
|
|
966
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
967
|
-
default:
|
|
968
|
-
const parsedBody = parsedOutput.body;
|
|
969
|
-
return throwDefaultError({
|
|
970
|
-
output,
|
|
971
|
-
parsedBody,
|
|
972
|
-
errorCode
|
|
973
|
-
});
|
|
974
|
-
}
|
|
975
|
-
}, "de_UntagResourceCommandError");
|
|
976
595
|
var de_UpdateScheduledQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
977
596
|
if (output.statusCode >= 300) {
|
|
978
|
-
return
|
|
597
|
+
return de_CommandError(output, context);
|
|
979
598
|
}
|
|
980
599
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
981
600
|
const response = {
|
|
@@ -983,7 +602,7 @@ var de_UpdateScheduledQueryCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
983
602
|
};
|
|
984
603
|
return response;
|
|
985
604
|
}, "de_UpdateScheduledQueryCommand");
|
|
986
|
-
var
|
|
605
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
987
606
|
const parsedOutput = {
|
|
988
607
|
...output,
|
|
989
608
|
body: await parseErrorBody(output.body, context)
|
|
@@ -999,15 +618,24 @@ var de_UpdateScheduledQueryCommandError = /* @__PURE__ */ __name(async (output,
|
|
|
999
618
|
case "InvalidEndpointException":
|
|
1000
619
|
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
1001
620
|
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
1002
|
-
case "ResourceNotFoundException":
|
|
1003
|
-
case "com.amazonaws.timestreamquery#ResourceNotFoundException":
|
|
1004
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1005
621
|
case "ThrottlingException":
|
|
1006
622
|
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
1007
623
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1008
624
|
case "ValidationException":
|
|
1009
625
|
case "com.amazonaws.timestreamquery#ValidationException":
|
|
1010
626
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
627
|
+
case "ConflictException":
|
|
628
|
+
case "com.amazonaws.timestreamquery#ConflictException":
|
|
629
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
630
|
+
case "ServiceQuotaExceededException":
|
|
631
|
+
case "com.amazonaws.timestreamquery#ServiceQuotaExceededException":
|
|
632
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
633
|
+
case "ResourceNotFoundException":
|
|
634
|
+
case "com.amazonaws.timestreamquery#ResourceNotFoundException":
|
|
635
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
636
|
+
case "QueryExecutionException":
|
|
637
|
+
case "com.amazonaws.timestreamquery#QueryExecutionException":
|
|
638
|
+
throw await de_QueryExecutionExceptionRes(parsedOutput, context);
|
|
1011
639
|
default:
|
|
1012
640
|
const parsedBody = parsedOutput.body;
|
|
1013
641
|
return throwDefaultError({
|
|
@@ -1016,7 +644,7 @@ var de_UpdateScheduledQueryCommandError = /* @__PURE__ */ __name(async (output,
|
|
|
1016
644
|
errorCode
|
|
1017
645
|
});
|
|
1018
646
|
}
|
|
1019
|
-
}, "
|
|
647
|
+
}, "de_CommandError");
|
|
1020
648
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1021
649
|
const body = parsedOutput.body;
|
|
1022
650
|
const deserialized = (0, import_smithy_client._json)(body);
|
|
@@ -83,7 +83,7 @@ export const se_UpdateScheduledQueryCommand = async (input, context) => {
|
|
|
83
83
|
};
|
|
84
84
|
export const de_CancelQueryCommand = async (output, context) => {
|
|
85
85
|
if (output.statusCode >= 300) {
|
|
86
|
-
return
|
|
86
|
+
return de_CommandError(output, context);
|
|
87
87
|
}
|
|
88
88
|
const data = await parseBody(output.body, context);
|
|
89
89
|
let contents = {};
|
|
@@ -94,40 +94,9 @@ export const de_CancelQueryCommand = async (output, context) => {
|
|
|
94
94
|
};
|
|
95
95
|
return response;
|
|
96
96
|
};
|
|
97
|
-
const de_CancelQueryCommandError = async (output, context) => {
|
|
98
|
-
const parsedOutput = {
|
|
99
|
-
...output,
|
|
100
|
-
body: await parseErrorBody(output.body, context),
|
|
101
|
-
};
|
|
102
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
103
|
-
switch (errorCode) {
|
|
104
|
-
case "AccessDeniedException":
|
|
105
|
-
case "com.amazonaws.timestreamquery#AccessDeniedException":
|
|
106
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
107
|
-
case "InternalServerException":
|
|
108
|
-
case "com.amazonaws.timestreamquery#InternalServerException":
|
|
109
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
110
|
-
case "InvalidEndpointException":
|
|
111
|
-
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
112
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
113
|
-
case "ThrottlingException":
|
|
114
|
-
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
115
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
116
|
-
case "ValidationException":
|
|
117
|
-
case "com.amazonaws.timestreamquery#ValidationException":
|
|
118
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
119
|
-
default:
|
|
120
|
-
const parsedBody = parsedOutput.body;
|
|
121
|
-
return throwDefaultError({
|
|
122
|
-
output,
|
|
123
|
-
parsedBody,
|
|
124
|
-
errorCode,
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
};
|
|
128
97
|
export const de_CreateScheduledQueryCommand = async (output, context) => {
|
|
129
98
|
if (output.statusCode >= 300) {
|
|
130
|
-
return
|
|
99
|
+
return de_CommandError(output, context);
|
|
131
100
|
}
|
|
132
101
|
const data = await parseBody(output.body, context);
|
|
133
102
|
let contents = {};
|
|
@@ -138,46 +107,9 @@ export const de_CreateScheduledQueryCommand = async (output, context) => {
|
|
|
138
107
|
};
|
|
139
108
|
return response;
|
|
140
109
|
};
|
|
141
|
-
const de_CreateScheduledQueryCommandError = async (output, context) => {
|
|
142
|
-
const parsedOutput = {
|
|
143
|
-
...output,
|
|
144
|
-
body: await parseErrorBody(output.body, context),
|
|
145
|
-
};
|
|
146
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
147
|
-
switch (errorCode) {
|
|
148
|
-
case "AccessDeniedException":
|
|
149
|
-
case "com.amazonaws.timestreamquery#AccessDeniedException":
|
|
150
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
151
|
-
case "ConflictException":
|
|
152
|
-
case "com.amazonaws.timestreamquery#ConflictException":
|
|
153
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
154
|
-
case "InternalServerException":
|
|
155
|
-
case "com.amazonaws.timestreamquery#InternalServerException":
|
|
156
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
157
|
-
case "InvalidEndpointException":
|
|
158
|
-
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
159
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
160
|
-
case "ServiceQuotaExceededException":
|
|
161
|
-
case "com.amazonaws.timestreamquery#ServiceQuotaExceededException":
|
|
162
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
163
|
-
case "ThrottlingException":
|
|
164
|
-
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
165
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
166
|
-
case "ValidationException":
|
|
167
|
-
case "com.amazonaws.timestreamquery#ValidationException":
|
|
168
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
169
|
-
default:
|
|
170
|
-
const parsedBody = parsedOutput.body;
|
|
171
|
-
return throwDefaultError({
|
|
172
|
-
output,
|
|
173
|
-
parsedBody,
|
|
174
|
-
errorCode,
|
|
175
|
-
});
|
|
176
|
-
}
|
|
177
|
-
};
|
|
178
110
|
export const de_DeleteScheduledQueryCommand = async (output, context) => {
|
|
179
111
|
if (output.statusCode >= 300) {
|
|
180
|
-
return
|
|
112
|
+
return de_CommandError(output, context);
|
|
181
113
|
}
|
|
182
114
|
await collectBody(output.body, context);
|
|
183
115
|
const response = {
|
|
@@ -185,43 +117,9 @@ export const de_DeleteScheduledQueryCommand = async (output, context) => {
|
|
|
185
117
|
};
|
|
186
118
|
return response;
|
|
187
119
|
};
|
|
188
|
-
const de_DeleteScheduledQueryCommandError = async (output, context) => {
|
|
189
|
-
const parsedOutput = {
|
|
190
|
-
...output,
|
|
191
|
-
body: await parseErrorBody(output.body, context),
|
|
192
|
-
};
|
|
193
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
194
|
-
switch (errorCode) {
|
|
195
|
-
case "AccessDeniedException":
|
|
196
|
-
case "com.amazonaws.timestreamquery#AccessDeniedException":
|
|
197
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
198
|
-
case "InternalServerException":
|
|
199
|
-
case "com.amazonaws.timestreamquery#InternalServerException":
|
|
200
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
201
|
-
case "InvalidEndpointException":
|
|
202
|
-
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
203
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
204
|
-
case "ResourceNotFoundException":
|
|
205
|
-
case "com.amazonaws.timestreamquery#ResourceNotFoundException":
|
|
206
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
207
|
-
case "ThrottlingException":
|
|
208
|
-
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
209
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
210
|
-
case "ValidationException":
|
|
211
|
-
case "com.amazonaws.timestreamquery#ValidationException":
|
|
212
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
213
|
-
default:
|
|
214
|
-
const parsedBody = parsedOutput.body;
|
|
215
|
-
return throwDefaultError({
|
|
216
|
-
output,
|
|
217
|
-
parsedBody,
|
|
218
|
-
errorCode,
|
|
219
|
-
});
|
|
220
|
-
}
|
|
221
|
-
};
|
|
222
120
|
export const de_DescribeEndpointsCommand = async (output, context) => {
|
|
223
121
|
if (output.statusCode >= 300) {
|
|
224
|
-
return
|
|
122
|
+
return de_CommandError(output, context);
|
|
225
123
|
}
|
|
226
124
|
const data = await parseBody(output.body, context);
|
|
227
125
|
let contents = {};
|
|
@@ -232,34 +130,9 @@ export const de_DescribeEndpointsCommand = async (output, context) => {
|
|
|
232
130
|
};
|
|
233
131
|
return response;
|
|
234
132
|
};
|
|
235
|
-
const de_DescribeEndpointsCommandError = async (output, context) => {
|
|
236
|
-
const parsedOutput = {
|
|
237
|
-
...output,
|
|
238
|
-
body: await parseErrorBody(output.body, context),
|
|
239
|
-
};
|
|
240
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
241
|
-
switch (errorCode) {
|
|
242
|
-
case "InternalServerException":
|
|
243
|
-
case "com.amazonaws.timestreamquery#InternalServerException":
|
|
244
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
245
|
-
case "ThrottlingException":
|
|
246
|
-
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
247
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
248
|
-
case "ValidationException":
|
|
249
|
-
case "com.amazonaws.timestreamquery#ValidationException":
|
|
250
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
251
|
-
default:
|
|
252
|
-
const parsedBody = parsedOutput.body;
|
|
253
|
-
return throwDefaultError({
|
|
254
|
-
output,
|
|
255
|
-
parsedBody,
|
|
256
|
-
errorCode,
|
|
257
|
-
});
|
|
258
|
-
}
|
|
259
|
-
};
|
|
260
133
|
export const de_DescribeScheduledQueryCommand = async (output, context) => {
|
|
261
134
|
if (output.statusCode >= 300) {
|
|
262
|
-
return
|
|
135
|
+
return de_CommandError(output, context);
|
|
263
136
|
}
|
|
264
137
|
const data = await parseBody(output.body, context);
|
|
265
138
|
let contents = {};
|
|
@@ -270,43 +143,9 @@ export const de_DescribeScheduledQueryCommand = async (output, context) => {
|
|
|
270
143
|
};
|
|
271
144
|
return response;
|
|
272
145
|
};
|
|
273
|
-
const de_DescribeScheduledQueryCommandError = async (output, context) => {
|
|
274
|
-
const parsedOutput = {
|
|
275
|
-
...output,
|
|
276
|
-
body: await parseErrorBody(output.body, context),
|
|
277
|
-
};
|
|
278
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
279
|
-
switch (errorCode) {
|
|
280
|
-
case "AccessDeniedException":
|
|
281
|
-
case "com.amazonaws.timestreamquery#AccessDeniedException":
|
|
282
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
283
|
-
case "InternalServerException":
|
|
284
|
-
case "com.amazonaws.timestreamquery#InternalServerException":
|
|
285
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
286
|
-
case "InvalidEndpointException":
|
|
287
|
-
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
288
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
289
|
-
case "ResourceNotFoundException":
|
|
290
|
-
case "com.amazonaws.timestreamquery#ResourceNotFoundException":
|
|
291
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
292
|
-
case "ThrottlingException":
|
|
293
|
-
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
294
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
295
|
-
case "ValidationException":
|
|
296
|
-
case "com.amazonaws.timestreamquery#ValidationException":
|
|
297
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
298
|
-
default:
|
|
299
|
-
const parsedBody = parsedOutput.body;
|
|
300
|
-
return throwDefaultError({
|
|
301
|
-
output,
|
|
302
|
-
parsedBody,
|
|
303
|
-
errorCode,
|
|
304
|
-
});
|
|
305
|
-
}
|
|
306
|
-
};
|
|
307
146
|
export const de_ExecuteScheduledQueryCommand = async (output, context) => {
|
|
308
147
|
if (output.statusCode >= 300) {
|
|
309
|
-
return
|
|
148
|
+
return de_CommandError(output, context);
|
|
310
149
|
}
|
|
311
150
|
await collectBody(output.body, context);
|
|
312
151
|
const response = {
|
|
@@ -314,43 +153,9 @@ export const de_ExecuteScheduledQueryCommand = async (output, context) => {
|
|
|
314
153
|
};
|
|
315
154
|
return response;
|
|
316
155
|
};
|
|
317
|
-
const de_ExecuteScheduledQueryCommandError = async (output, context) => {
|
|
318
|
-
const parsedOutput = {
|
|
319
|
-
...output,
|
|
320
|
-
body: await parseErrorBody(output.body, context),
|
|
321
|
-
};
|
|
322
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
323
|
-
switch (errorCode) {
|
|
324
|
-
case "AccessDeniedException":
|
|
325
|
-
case "com.amazonaws.timestreamquery#AccessDeniedException":
|
|
326
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
327
|
-
case "InternalServerException":
|
|
328
|
-
case "com.amazonaws.timestreamquery#InternalServerException":
|
|
329
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
330
|
-
case "InvalidEndpointException":
|
|
331
|
-
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
332
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
333
|
-
case "ResourceNotFoundException":
|
|
334
|
-
case "com.amazonaws.timestreamquery#ResourceNotFoundException":
|
|
335
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
336
|
-
case "ThrottlingException":
|
|
337
|
-
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
338
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
339
|
-
case "ValidationException":
|
|
340
|
-
case "com.amazonaws.timestreamquery#ValidationException":
|
|
341
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
342
|
-
default:
|
|
343
|
-
const parsedBody = parsedOutput.body;
|
|
344
|
-
return throwDefaultError({
|
|
345
|
-
output,
|
|
346
|
-
parsedBody,
|
|
347
|
-
errorCode,
|
|
348
|
-
});
|
|
349
|
-
}
|
|
350
|
-
};
|
|
351
156
|
export const de_ListScheduledQueriesCommand = async (output, context) => {
|
|
352
157
|
if (output.statusCode >= 300) {
|
|
353
|
-
return
|
|
158
|
+
return de_CommandError(output, context);
|
|
354
159
|
}
|
|
355
160
|
const data = await parseBody(output.body, context);
|
|
356
161
|
let contents = {};
|
|
@@ -361,40 +166,9 @@ export const de_ListScheduledQueriesCommand = async (output, context) => {
|
|
|
361
166
|
};
|
|
362
167
|
return response;
|
|
363
168
|
};
|
|
364
|
-
const de_ListScheduledQueriesCommandError = async (output, context) => {
|
|
365
|
-
const parsedOutput = {
|
|
366
|
-
...output,
|
|
367
|
-
body: await parseErrorBody(output.body, context),
|
|
368
|
-
};
|
|
369
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
370
|
-
switch (errorCode) {
|
|
371
|
-
case "AccessDeniedException":
|
|
372
|
-
case "com.amazonaws.timestreamquery#AccessDeniedException":
|
|
373
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
374
|
-
case "InternalServerException":
|
|
375
|
-
case "com.amazonaws.timestreamquery#InternalServerException":
|
|
376
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
377
|
-
case "InvalidEndpointException":
|
|
378
|
-
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
379
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
380
|
-
case "ThrottlingException":
|
|
381
|
-
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
382
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
383
|
-
case "ValidationException":
|
|
384
|
-
case "com.amazonaws.timestreamquery#ValidationException":
|
|
385
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
386
|
-
default:
|
|
387
|
-
const parsedBody = parsedOutput.body;
|
|
388
|
-
return throwDefaultError({
|
|
389
|
-
output,
|
|
390
|
-
parsedBody,
|
|
391
|
-
errorCode,
|
|
392
|
-
});
|
|
393
|
-
}
|
|
394
|
-
};
|
|
395
169
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
396
170
|
if (output.statusCode >= 300) {
|
|
397
|
-
return
|
|
171
|
+
return de_CommandError(output, context);
|
|
398
172
|
}
|
|
399
173
|
const data = await parseBody(output.body, context);
|
|
400
174
|
let contents = {};
|
|
@@ -405,37 +179,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
405
179
|
};
|
|
406
180
|
return response;
|
|
407
181
|
};
|
|
408
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
409
|
-
const parsedOutput = {
|
|
410
|
-
...output,
|
|
411
|
-
body: await parseErrorBody(output.body, context),
|
|
412
|
-
};
|
|
413
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
414
|
-
switch (errorCode) {
|
|
415
|
-
case "InvalidEndpointException":
|
|
416
|
-
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
417
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
418
|
-
case "ResourceNotFoundException":
|
|
419
|
-
case "com.amazonaws.timestreamquery#ResourceNotFoundException":
|
|
420
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
421
|
-
case "ThrottlingException":
|
|
422
|
-
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
423
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
424
|
-
case "ValidationException":
|
|
425
|
-
case "com.amazonaws.timestreamquery#ValidationException":
|
|
426
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
427
|
-
default:
|
|
428
|
-
const parsedBody = parsedOutput.body;
|
|
429
|
-
return throwDefaultError({
|
|
430
|
-
output,
|
|
431
|
-
parsedBody,
|
|
432
|
-
errorCode,
|
|
433
|
-
});
|
|
434
|
-
}
|
|
435
|
-
};
|
|
436
182
|
export const de_PrepareQueryCommand = async (output, context) => {
|
|
437
183
|
if (output.statusCode >= 300) {
|
|
438
|
-
return
|
|
184
|
+
return de_CommandError(output, context);
|
|
439
185
|
}
|
|
440
186
|
const data = await parseBody(output.body, context);
|
|
441
187
|
let contents = {};
|
|
@@ -446,40 +192,9 @@ export const de_PrepareQueryCommand = async (output, context) => {
|
|
|
446
192
|
};
|
|
447
193
|
return response;
|
|
448
194
|
};
|
|
449
|
-
const de_PrepareQueryCommandError = async (output, context) => {
|
|
450
|
-
const parsedOutput = {
|
|
451
|
-
...output,
|
|
452
|
-
body: await parseErrorBody(output.body, context),
|
|
453
|
-
};
|
|
454
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
455
|
-
switch (errorCode) {
|
|
456
|
-
case "AccessDeniedException":
|
|
457
|
-
case "com.amazonaws.timestreamquery#AccessDeniedException":
|
|
458
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
459
|
-
case "InternalServerException":
|
|
460
|
-
case "com.amazonaws.timestreamquery#InternalServerException":
|
|
461
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
462
|
-
case "InvalidEndpointException":
|
|
463
|
-
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
464
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
465
|
-
case "ThrottlingException":
|
|
466
|
-
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
467
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
468
|
-
case "ValidationException":
|
|
469
|
-
case "com.amazonaws.timestreamquery#ValidationException":
|
|
470
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
471
|
-
default:
|
|
472
|
-
const parsedBody = parsedOutput.body;
|
|
473
|
-
return throwDefaultError({
|
|
474
|
-
output,
|
|
475
|
-
parsedBody,
|
|
476
|
-
errorCode,
|
|
477
|
-
});
|
|
478
|
-
}
|
|
479
|
-
};
|
|
480
195
|
export const de_QueryCommand = async (output, context) => {
|
|
481
196
|
if (output.statusCode >= 300) {
|
|
482
|
-
return
|
|
197
|
+
return de_CommandError(output, context);
|
|
483
198
|
}
|
|
484
199
|
const data = await parseBody(output.body, context);
|
|
485
200
|
let contents = {};
|
|
@@ -490,46 +205,9 @@ export const de_QueryCommand = async (output, context) => {
|
|
|
490
205
|
};
|
|
491
206
|
return response;
|
|
492
207
|
};
|
|
493
|
-
const de_QueryCommandError = async (output, context) => {
|
|
494
|
-
const parsedOutput = {
|
|
495
|
-
...output,
|
|
496
|
-
body: await parseErrorBody(output.body, context),
|
|
497
|
-
};
|
|
498
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
499
|
-
switch (errorCode) {
|
|
500
|
-
case "AccessDeniedException":
|
|
501
|
-
case "com.amazonaws.timestreamquery#AccessDeniedException":
|
|
502
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
503
|
-
case "ConflictException":
|
|
504
|
-
case "com.amazonaws.timestreamquery#ConflictException":
|
|
505
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
506
|
-
case "InternalServerException":
|
|
507
|
-
case "com.amazonaws.timestreamquery#InternalServerException":
|
|
508
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
509
|
-
case "InvalidEndpointException":
|
|
510
|
-
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
511
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
512
|
-
case "QueryExecutionException":
|
|
513
|
-
case "com.amazonaws.timestreamquery#QueryExecutionException":
|
|
514
|
-
throw await de_QueryExecutionExceptionRes(parsedOutput, context);
|
|
515
|
-
case "ThrottlingException":
|
|
516
|
-
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
517
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
518
|
-
case "ValidationException":
|
|
519
|
-
case "com.amazonaws.timestreamquery#ValidationException":
|
|
520
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
521
|
-
default:
|
|
522
|
-
const parsedBody = parsedOutput.body;
|
|
523
|
-
return throwDefaultError({
|
|
524
|
-
output,
|
|
525
|
-
parsedBody,
|
|
526
|
-
errorCode,
|
|
527
|
-
});
|
|
528
|
-
}
|
|
529
|
-
};
|
|
530
208
|
export const de_TagResourceCommand = async (output, context) => {
|
|
531
209
|
if (output.statusCode >= 300) {
|
|
532
|
-
return
|
|
210
|
+
return de_CommandError(output, context);
|
|
533
211
|
}
|
|
534
212
|
const data = await parseBody(output.body, context);
|
|
535
213
|
let contents = {};
|
|
@@ -540,40 +218,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
540
218
|
};
|
|
541
219
|
return response;
|
|
542
220
|
};
|
|
543
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
544
|
-
const parsedOutput = {
|
|
545
|
-
...output,
|
|
546
|
-
body: await parseErrorBody(output.body, context),
|
|
547
|
-
};
|
|
548
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
549
|
-
switch (errorCode) {
|
|
550
|
-
case "InvalidEndpointException":
|
|
551
|
-
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
552
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
553
|
-
case "ResourceNotFoundException":
|
|
554
|
-
case "com.amazonaws.timestreamquery#ResourceNotFoundException":
|
|
555
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
556
|
-
case "ServiceQuotaExceededException":
|
|
557
|
-
case "com.amazonaws.timestreamquery#ServiceQuotaExceededException":
|
|
558
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
559
|
-
case "ThrottlingException":
|
|
560
|
-
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
561
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
562
|
-
case "ValidationException":
|
|
563
|
-
case "com.amazonaws.timestreamquery#ValidationException":
|
|
564
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
565
|
-
default:
|
|
566
|
-
const parsedBody = parsedOutput.body;
|
|
567
|
-
return throwDefaultError({
|
|
568
|
-
output,
|
|
569
|
-
parsedBody,
|
|
570
|
-
errorCode,
|
|
571
|
-
});
|
|
572
|
-
}
|
|
573
|
-
};
|
|
574
221
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
575
222
|
if (output.statusCode >= 300) {
|
|
576
|
-
return
|
|
223
|
+
return de_CommandError(output, context);
|
|
577
224
|
}
|
|
578
225
|
const data = await parseBody(output.body, context);
|
|
579
226
|
let contents = {};
|
|
@@ -584,37 +231,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
584
231
|
};
|
|
585
232
|
return response;
|
|
586
233
|
};
|
|
587
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
588
|
-
const parsedOutput = {
|
|
589
|
-
...output,
|
|
590
|
-
body: await parseErrorBody(output.body, context),
|
|
591
|
-
};
|
|
592
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
593
|
-
switch (errorCode) {
|
|
594
|
-
case "InvalidEndpointException":
|
|
595
|
-
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
596
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
597
|
-
case "ResourceNotFoundException":
|
|
598
|
-
case "com.amazonaws.timestreamquery#ResourceNotFoundException":
|
|
599
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
600
|
-
case "ThrottlingException":
|
|
601
|
-
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
602
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
603
|
-
case "ValidationException":
|
|
604
|
-
case "com.amazonaws.timestreamquery#ValidationException":
|
|
605
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
606
|
-
default:
|
|
607
|
-
const parsedBody = parsedOutput.body;
|
|
608
|
-
return throwDefaultError({
|
|
609
|
-
output,
|
|
610
|
-
parsedBody,
|
|
611
|
-
errorCode,
|
|
612
|
-
});
|
|
613
|
-
}
|
|
614
|
-
};
|
|
615
234
|
export const de_UpdateScheduledQueryCommand = async (output, context) => {
|
|
616
235
|
if (output.statusCode >= 300) {
|
|
617
|
-
return
|
|
236
|
+
return de_CommandError(output, context);
|
|
618
237
|
}
|
|
619
238
|
await collectBody(output.body, context);
|
|
620
239
|
const response = {
|
|
@@ -622,7 +241,7 @@ export const de_UpdateScheduledQueryCommand = async (output, context) => {
|
|
|
622
241
|
};
|
|
623
242
|
return response;
|
|
624
243
|
};
|
|
625
|
-
const
|
|
244
|
+
const de_CommandError = async (output, context) => {
|
|
626
245
|
const parsedOutput = {
|
|
627
246
|
...output,
|
|
628
247
|
body: await parseErrorBody(output.body, context),
|
|
@@ -638,15 +257,24 @@ const de_UpdateScheduledQueryCommandError = async (output, context) => {
|
|
|
638
257
|
case "InvalidEndpointException":
|
|
639
258
|
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
640
259
|
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
641
|
-
case "ResourceNotFoundException":
|
|
642
|
-
case "com.amazonaws.timestreamquery#ResourceNotFoundException":
|
|
643
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
644
260
|
case "ThrottlingException":
|
|
645
261
|
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
646
262
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
647
263
|
case "ValidationException":
|
|
648
264
|
case "com.amazonaws.timestreamquery#ValidationException":
|
|
649
265
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
266
|
+
case "ConflictException":
|
|
267
|
+
case "com.amazonaws.timestreamquery#ConflictException":
|
|
268
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
269
|
+
case "ServiceQuotaExceededException":
|
|
270
|
+
case "com.amazonaws.timestreamquery#ServiceQuotaExceededException":
|
|
271
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
272
|
+
case "ResourceNotFoundException":
|
|
273
|
+
case "com.amazonaws.timestreamquery#ResourceNotFoundException":
|
|
274
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
275
|
+
case "QueryExecutionException":
|
|
276
|
+
case "com.amazonaws.timestreamquery#QueryExecutionException":
|
|
277
|
+
throw await de_QueryExecutionExceptionRes(parsedOutput, context);
|
|
650
278
|
default:
|
|
651
279
|
const parsedBody = parsedOutput.body;
|
|
652
280
|
return throwDefaultError({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-timestream-query",
|
|
3
3
|
"description": "AWS SDK for JavaScript Timestream Query Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.507.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-timestream-query",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.507.0",
|
|
24
24
|
"@aws-sdk/core": "3.496.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.507.0",
|
|
26
26
|
"@aws-sdk/middleware-endpoint-discovery": "3.502.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.502.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.502.0",
|