@aws-sdk/client-osis 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 +31 -401
- package/dist-es/protocols/Aws_restJson1.js +30 -400
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -518,7 +518,7 @@ var se_ValidatePipelineCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
518
518
|
}, "se_ValidatePipelineCommand");
|
|
519
519
|
var de_CreatePipelineCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
520
520
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
521
|
-
return
|
|
521
|
+
return de_CommandError(output, context);
|
|
522
522
|
}
|
|
523
523
|
const contents = (0, import_smithy_client.map)({
|
|
524
524
|
$metadata: deserializeMetadata(output)
|
|
@@ -530,43 +530,9 @@ var de_CreatePipelineCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
530
530
|
Object.assign(contents, doc);
|
|
531
531
|
return contents;
|
|
532
532
|
}, "de_CreatePipelineCommand");
|
|
533
|
-
var de_CreatePipelineCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
534
|
-
const parsedOutput = {
|
|
535
|
-
...output,
|
|
536
|
-
body: await parseErrorBody(output.body, context)
|
|
537
|
-
};
|
|
538
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
539
|
-
switch (errorCode) {
|
|
540
|
-
case "AccessDeniedException":
|
|
541
|
-
case "com.amazonaws.osis#AccessDeniedException":
|
|
542
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
543
|
-
case "InternalException":
|
|
544
|
-
case "com.amazonaws.osis#InternalException":
|
|
545
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
546
|
-
case "LimitExceededException":
|
|
547
|
-
case "com.amazonaws.osis#LimitExceededException":
|
|
548
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
549
|
-
case "ResourceAlreadyExistsException":
|
|
550
|
-
case "com.amazonaws.osis#ResourceAlreadyExistsException":
|
|
551
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
552
|
-
case "ResourceNotFoundException":
|
|
553
|
-
case "com.amazonaws.osis#ResourceNotFoundException":
|
|
554
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
555
|
-
case "ValidationException":
|
|
556
|
-
case "com.amazonaws.osis#ValidationException":
|
|
557
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
558
|
-
default:
|
|
559
|
-
const parsedBody = parsedOutput.body;
|
|
560
|
-
return throwDefaultError({
|
|
561
|
-
output,
|
|
562
|
-
parsedBody,
|
|
563
|
-
errorCode
|
|
564
|
-
});
|
|
565
|
-
}
|
|
566
|
-
}, "de_CreatePipelineCommandError");
|
|
567
533
|
var de_DeletePipelineCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
568
534
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
569
|
-
return
|
|
535
|
+
return de_CommandError(output, context);
|
|
570
536
|
}
|
|
571
537
|
const contents = (0, import_smithy_client.map)({
|
|
572
538
|
$metadata: deserializeMetadata(output)
|
|
@@ -574,40 +540,9 @@ var de_DeletePipelineCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
574
540
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
575
541
|
return contents;
|
|
576
542
|
}, "de_DeletePipelineCommand");
|
|
577
|
-
var de_DeletePipelineCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
578
|
-
const parsedOutput = {
|
|
579
|
-
...output,
|
|
580
|
-
body: await parseErrorBody(output.body, context)
|
|
581
|
-
};
|
|
582
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
583
|
-
switch (errorCode) {
|
|
584
|
-
case "AccessDeniedException":
|
|
585
|
-
case "com.amazonaws.osis#AccessDeniedException":
|
|
586
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
587
|
-
case "ConflictException":
|
|
588
|
-
case "com.amazonaws.osis#ConflictException":
|
|
589
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
590
|
-
case "InternalException":
|
|
591
|
-
case "com.amazonaws.osis#InternalException":
|
|
592
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
593
|
-
case "ResourceNotFoundException":
|
|
594
|
-
case "com.amazonaws.osis#ResourceNotFoundException":
|
|
595
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
596
|
-
case "ValidationException":
|
|
597
|
-
case "com.amazonaws.osis#ValidationException":
|
|
598
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
599
|
-
default:
|
|
600
|
-
const parsedBody = parsedOutput.body;
|
|
601
|
-
return throwDefaultError({
|
|
602
|
-
output,
|
|
603
|
-
parsedBody,
|
|
604
|
-
errorCode
|
|
605
|
-
});
|
|
606
|
-
}
|
|
607
|
-
}, "de_DeletePipelineCommandError");
|
|
608
543
|
var de_GetPipelineCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
609
544
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
610
|
-
return
|
|
545
|
+
return de_CommandError(output, context);
|
|
611
546
|
}
|
|
612
547
|
const contents = (0, import_smithy_client.map)({
|
|
613
548
|
$metadata: deserializeMetadata(output)
|
|
@@ -619,37 +554,9 @@ var de_GetPipelineCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
619
554
|
Object.assign(contents, doc);
|
|
620
555
|
return contents;
|
|
621
556
|
}, "de_GetPipelineCommand");
|
|
622
|
-
var de_GetPipelineCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
623
|
-
const parsedOutput = {
|
|
624
|
-
...output,
|
|
625
|
-
body: await parseErrorBody(output.body, context)
|
|
626
|
-
};
|
|
627
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
628
|
-
switch (errorCode) {
|
|
629
|
-
case "AccessDeniedException":
|
|
630
|
-
case "com.amazonaws.osis#AccessDeniedException":
|
|
631
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
632
|
-
case "InternalException":
|
|
633
|
-
case "com.amazonaws.osis#InternalException":
|
|
634
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
635
|
-
case "ResourceNotFoundException":
|
|
636
|
-
case "com.amazonaws.osis#ResourceNotFoundException":
|
|
637
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
638
|
-
case "ValidationException":
|
|
639
|
-
case "com.amazonaws.osis#ValidationException":
|
|
640
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
641
|
-
default:
|
|
642
|
-
const parsedBody = parsedOutput.body;
|
|
643
|
-
return throwDefaultError({
|
|
644
|
-
output,
|
|
645
|
-
parsedBody,
|
|
646
|
-
errorCode
|
|
647
|
-
});
|
|
648
|
-
}
|
|
649
|
-
}, "de_GetPipelineCommandError");
|
|
650
557
|
var de_GetPipelineBlueprintCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
651
558
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
652
|
-
return
|
|
559
|
+
return de_CommandError(output, context);
|
|
653
560
|
}
|
|
654
561
|
const contents = (0, import_smithy_client.map)({
|
|
655
562
|
$metadata: deserializeMetadata(output)
|
|
@@ -661,37 +568,9 @@ var de_GetPipelineBlueprintCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
661
568
|
Object.assign(contents, doc);
|
|
662
569
|
return contents;
|
|
663
570
|
}, "de_GetPipelineBlueprintCommand");
|
|
664
|
-
var de_GetPipelineBlueprintCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
665
|
-
const parsedOutput = {
|
|
666
|
-
...output,
|
|
667
|
-
body: await parseErrorBody(output.body, context)
|
|
668
|
-
};
|
|
669
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
670
|
-
switch (errorCode) {
|
|
671
|
-
case "AccessDeniedException":
|
|
672
|
-
case "com.amazonaws.osis#AccessDeniedException":
|
|
673
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
674
|
-
case "InternalException":
|
|
675
|
-
case "com.amazonaws.osis#InternalException":
|
|
676
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
677
|
-
case "ResourceNotFoundException":
|
|
678
|
-
case "com.amazonaws.osis#ResourceNotFoundException":
|
|
679
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
680
|
-
case "ValidationException":
|
|
681
|
-
case "com.amazonaws.osis#ValidationException":
|
|
682
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
683
|
-
default:
|
|
684
|
-
const parsedBody = parsedOutput.body;
|
|
685
|
-
return throwDefaultError({
|
|
686
|
-
output,
|
|
687
|
-
parsedBody,
|
|
688
|
-
errorCode
|
|
689
|
-
});
|
|
690
|
-
}
|
|
691
|
-
}, "de_GetPipelineBlueprintCommandError");
|
|
692
571
|
var de_GetPipelineChangeProgressCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
693
572
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
694
|
-
return
|
|
573
|
+
return de_CommandError(output, context);
|
|
695
574
|
}
|
|
696
575
|
const contents = (0, import_smithy_client.map)({
|
|
697
576
|
$metadata: deserializeMetadata(output)
|
|
@@ -703,37 +582,9 @@ var de_GetPipelineChangeProgressCommand = /* @__PURE__ */ __name(async (output,
|
|
|
703
582
|
Object.assign(contents, doc);
|
|
704
583
|
return contents;
|
|
705
584
|
}, "de_GetPipelineChangeProgressCommand");
|
|
706
|
-
var de_GetPipelineChangeProgressCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
707
|
-
const parsedOutput = {
|
|
708
|
-
...output,
|
|
709
|
-
body: await parseErrorBody(output.body, context)
|
|
710
|
-
};
|
|
711
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
712
|
-
switch (errorCode) {
|
|
713
|
-
case "AccessDeniedException":
|
|
714
|
-
case "com.amazonaws.osis#AccessDeniedException":
|
|
715
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
716
|
-
case "InternalException":
|
|
717
|
-
case "com.amazonaws.osis#InternalException":
|
|
718
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
719
|
-
case "ResourceNotFoundException":
|
|
720
|
-
case "com.amazonaws.osis#ResourceNotFoundException":
|
|
721
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
722
|
-
case "ValidationException":
|
|
723
|
-
case "com.amazonaws.osis#ValidationException":
|
|
724
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
725
|
-
default:
|
|
726
|
-
const parsedBody = parsedOutput.body;
|
|
727
|
-
return throwDefaultError({
|
|
728
|
-
output,
|
|
729
|
-
parsedBody,
|
|
730
|
-
errorCode
|
|
731
|
-
});
|
|
732
|
-
}
|
|
733
|
-
}, "de_GetPipelineChangeProgressCommandError");
|
|
734
585
|
var de_ListPipelineBlueprintsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
735
586
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
736
|
-
return
|
|
587
|
+
return de_CommandError(output, context);
|
|
737
588
|
}
|
|
738
589
|
const contents = (0, import_smithy_client.map)({
|
|
739
590
|
$metadata: deserializeMetadata(output)
|
|
@@ -745,37 +596,9 @@ var de_ListPipelineBlueprintsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
745
596
|
Object.assign(contents, doc);
|
|
746
597
|
return contents;
|
|
747
598
|
}, "de_ListPipelineBlueprintsCommand");
|
|
748
|
-
var de_ListPipelineBlueprintsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
749
|
-
const parsedOutput = {
|
|
750
|
-
...output,
|
|
751
|
-
body: await parseErrorBody(output.body, context)
|
|
752
|
-
};
|
|
753
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
754
|
-
switch (errorCode) {
|
|
755
|
-
case "AccessDeniedException":
|
|
756
|
-
case "com.amazonaws.osis#AccessDeniedException":
|
|
757
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
758
|
-
case "InternalException":
|
|
759
|
-
case "com.amazonaws.osis#InternalException":
|
|
760
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
761
|
-
case "InvalidPaginationTokenException":
|
|
762
|
-
case "com.amazonaws.osis#InvalidPaginationTokenException":
|
|
763
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
764
|
-
case "ValidationException":
|
|
765
|
-
case "com.amazonaws.osis#ValidationException":
|
|
766
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
767
|
-
default:
|
|
768
|
-
const parsedBody = parsedOutput.body;
|
|
769
|
-
return throwDefaultError({
|
|
770
|
-
output,
|
|
771
|
-
parsedBody,
|
|
772
|
-
errorCode
|
|
773
|
-
});
|
|
774
|
-
}
|
|
775
|
-
}, "de_ListPipelineBlueprintsCommandError");
|
|
776
599
|
var de_ListPipelinesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
777
600
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
778
|
-
return
|
|
601
|
+
return de_CommandError(output, context);
|
|
779
602
|
}
|
|
780
603
|
const contents = (0, import_smithy_client.map)({
|
|
781
604
|
$metadata: deserializeMetadata(output)
|
|
@@ -788,37 +611,9 @@ var de_ListPipelinesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
788
611
|
Object.assign(contents, doc);
|
|
789
612
|
return contents;
|
|
790
613
|
}, "de_ListPipelinesCommand");
|
|
791
|
-
var de_ListPipelinesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
792
|
-
const parsedOutput = {
|
|
793
|
-
...output,
|
|
794
|
-
body: await parseErrorBody(output.body, context)
|
|
795
|
-
};
|
|
796
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
797
|
-
switch (errorCode) {
|
|
798
|
-
case "AccessDeniedException":
|
|
799
|
-
case "com.amazonaws.osis#AccessDeniedException":
|
|
800
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
801
|
-
case "InternalException":
|
|
802
|
-
case "com.amazonaws.osis#InternalException":
|
|
803
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
804
|
-
case "InvalidPaginationTokenException":
|
|
805
|
-
case "com.amazonaws.osis#InvalidPaginationTokenException":
|
|
806
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
807
|
-
case "ValidationException":
|
|
808
|
-
case "com.amazonaws.osis#ValidationException":
|
|
809
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
810
|
-
default:
|
|
811
|
-
const parsedBody = parsedOutput.body;
|
|
812
|
-
return throwDefaultError({
|
|
813
|
-
output,
|
|
814
|
-
parsedBody,
|
|
815
|
-
errorCode
|
|
816
|
-
});
|
|
817
|
-
}
|
|
818
|
-
}, "de_ListPipelinesCommandError");
|
|
819
614
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
820
615
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
821
|
-
return
|
|
616
|
+
return de_CommandError(output, context);
|
|
822
617
|
}
|
|
823
618
|
const contents = (0, import_smithy_client.map)({
|
|
824
619
|
$metadata: deserializeMetadata(output)
|
|
@@ -830,37 +625,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
830
625
|
Object.assign(contents, doc);
|
|
831
626
|
return contents;
|
|
832
627
|
}, "de_ListTagsForResourceCommand");
|
|
833
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
834
|
-
const parsedOutput = {
|
|
835
|
-
...output,
|
|
836
|
-
body: await parseErrorBody(output.body, context)
|
|
837
|
-
};
|
|
838
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
839
|
-
switch (errorCode) {
|
|
840
|
-
case "AccessDeniedException":
|
|
841
|
-
case "com.amazonaws.osis#AccessDeniedException":
|
|
842
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
843
|
-
case "InternalException":
|
|
844
|
-
case "com.amazonaws.osis#InternalException":
|
|
845
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
846
|
-
case "ResourceNotFoundException":
|
|
847
|
-
case "com.amazonaws.osis#ResourceNotFoundException":
|
|
848
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
849
|
-
case "ValidationException":
|
|
850
|
-
case "com.amazonaws.osis#ValidationException":
|
|
851
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
852
|
-
default:
|
|
853
|
-
const parsedBody = parsedOutput.body;
|
|
854
|
-
return throwDefaultError({
|
|
855
|
-
output,
|
|
856
|
-
parsedBody,
|
|
857
|
-
errorCode
|
|
858
|
-
});
|
|
859
|
-
}
|
|
860
|
-
}, "de_ListTagsForResourceCommandError");
|
|
861
628
|
var de_StartPipelineCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
862
629
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
863
|
-
return
|
|
630
|
+
return de_CommandError(output, context);
|
|
864
631
|
}
|
|
865
632
|
const contents = (0, import_smithy_client.map)({
|
|
866
633
|
$metadata: deserializeMetadata(output)
|
|
@@ -872,40 +639,9 @@ var de_StartPipelineCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
872
639
|
Object.assign(contents, doc);
|
|
873
640
|
return contents;
|
|
874
641
|
}, "de_StartPipelineCommand");
|
|
875
|
-
var de_StartPipelineCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
876
|
-
const parsedOutput = {
|
|
877
|
-
...output,
|
|
878
|
-
body: await parseErrorBody(output.body, context)
|
|
879
|
-
};
|
|
880
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
881
|
-
switch (errorCode) {
|
|
882
|
-
case "AccessDeniedException":
|
|
883
|
-
case "com.amazonaws.osis#AccessDeniedException":
|
|
884
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
885
|
-
case "ConflictException":
|
|
886
|
-
case "com.amazonaws.osis#ConflictException":
|
|
887
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
888
|
-
case "InternalException":
|
|
889
|
-
case "com.amazonaws.osis#InternalException":
|
|
890
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
891
|
-
case "ResourceNotFoundException":
|
|
892
|
-
case "com.amazonaws.osis#ResourceNotFoundException":
|
|
893
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
894
|
-
case "ValidationException":
|
|
895
|
-
case "com.amazonaws.osis#ValidationException":
|
|
896
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
897
|
-
default:
|
|
898
|
-
const parsedBody = parsedOutput.body;
|
|
899
|
-
return throwDefaultError({
|
|
900
|
-
output,
|
|
901
|
-
parsedBody,
|
|
902
|
-
errorCode
|
|
903
|
-
});
|
|
904
|
-
}
|
|
905
|
-
}, "de_StartPipelineCommandError");
|
|
906
642
|
var de_StopPipelineCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
907
643
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
908
|
-
return
|
|
644
|
+
return de_CommandError(output, context);
|
|
909
645
|
}
|
|
910
646
|
const contents = (0, import_smithy_client.map)({
|
|
911
647
|
$metadata: deserializeMetadata(output)
|
|
@@ -917,40 +653,9 @@ var de_StopPipelineCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
917
653
|
Object.assign(contents, doc);
|
|
918
654
|
return contents;
|
|
919
655
|
}, "de_StopPipelineCommand");
|
|
920
|
-
var de_StopPipelineCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
921
|
-
const parsedOutput = {
|
|
922
|
-
...output,
|
|
923
|
-
body: await parseErrorBody(output.body, context)
|
|
924
|
-
};
|
|
925
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
926
|
-
switch (errorCode) {
|
|
927
|
-
case "AccessDeniedException":
|
|
928
|
-
case "com.amazonaws.osis#AccessDeniedException":
|
|
929
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
930
|
-
case "ConflictException":
|
|
931
|
-
case "com.amazonaws.osis#ConflictException":
|
|
932
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
933
|
-
case "InternalException":
|
|
934
|
-
case "com.amazonaws.osis#InternalException":
|
|
935
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
936
|
-
case "ResourceNotFoundException":
|
|
937
|
-
case "com.amazonaws.osis#ResourceNotFoundException":
|
|
938
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
939
|
-
case "ValidationException":
|
|
940
|
-
case "com.amazonaws.osis#ValidationException":
|
|
941
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
942
|
-
default:
|
|
943
|
-
const parsedBody = parsedOutput.body;
|
|
944
|
-
return throwDefaultError({
|
|
945
|
-
output,
|
|
946
|
-
parsedBody,
|
|
947
|
-
errorCode
|
|
948
|
-
});
|
|
949
|
-
}
|
|
950
|
-
}, "de_StopPipelineCommandError");
|
|
951
656
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
952
657
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
953
|
-
return
|
|
658
|
+
return de_CommandError(output, context);
|
|
954
659
|
}
|
|
955
660
|
const contents = (0, import_smithy_client.map)({
|
|
956
661
|
$metadata: deserializeMetadata(output)
|
|
@@ -958,40 +663,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
958
663
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
959
664
|
return contents;
|
|
960
665
|
}, "de_TagResourceCommand");
|
|
961
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
962
|
-
const parsedOutput = {
|
|
963
|
-
...output,
|
|
964
|
-
body: await parseErrorBody(output.body, context)
|
|
965
|
-
};
|
|
966
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
967
|
-
switch (errorCode) {
|
|
968
|
-
case "AccessDeniedException":
|
|
969
|
-
case "com.amazonaws.osis#AccessDeniedException":
|
|
970
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
971
|
-
case "InternalException":
|
|
972
|
-
case "com.amazonaws.osis#InternalException":
|
|
973
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
974
|
-
case "LimitExceededException":
|
|
975
|
-
case "com.amazonaws.osis#LimitExceededException":
|
|
976
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
977
|
-
case "ResourceNotFoundException":
|
|
978
|
-
case "com.amazonaws.osis#ResourceNotFoundException":
|
|
979
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
980
|
-
case "ValidationException":
|
|
981
|
-
case "com.amazonaws.osis#ValidationException":
|
|
982
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
983
|
-
default:
|
|
984
|
-
const parsedBody = parsedOutput.body;
|
|
985
|
-
return throwDefaultError({
|
|
986
|
-
output,
|
|
987
|
-
parsedBody,
|
|
988
|
-
errorCode
|
|
989
|
-
});
|
|
990
|
-
}
|
|
991
|
-
}, "de_TagResourceCommandError");
|
|
992
666
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
993
667
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
994
|
-
return
|
|
668
|
+
return de_CommandError(output, context);
|
|
995
669
|
}
|
|
996
670
|
const contents = (0, import_smithy_client.map)({
|
|
997
671
|
$metadata: deserializeMetadata(output)
|
|
@@ -999,37 +673,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
999
673
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1000
674
|
return contents;
|
|
1001
675
|
}, "de_UntagResourceCommand");
|
|
1002
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1003
|
-
const parsedOutput = {
|
|
1004
|
-
...output,
|
|
1005
|
-
body: await parseErrorBody(output.body, context)
|
|
1006
|
-
};
|
|
1007
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1008
|
-
switch (errorCode) {
|
|
1009
|
-
case "AccessDeniedException":
|
|
1010
|
-
case "com.amazonaws.osis#AccessDeniedException":
|
|
1011
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1012
|
-
case "InternalException":
|
|
1013
|
-
case "com.amazonaws.osis#InternalException":
|
|
1014
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1015
|
-
case "ResourceNotFoundException":
|
|
1016
|
-
case "com.amazonaws.osis#ResourceNotFoundException":
|
|
1017
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1018
|
-
case "ValidationException":
|
|
1019
|
-
case "com.amazonaws.osis#ValidationException":
|
|
1020
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1021
|
-
default:
|
|
1022
|
-
const parsedBody = parsedOutput.body;
|
|
1023
|
-
return throwDefaultError({
|
|
1024
|
-
output,
|
|
1025
|
-
parsedBody,
|
|
1026
|
-
errorCode
|
|
1027
|
-
});
|
|
1028
|
-
}
|
|
1029
|
-
}, "de_UntagResourceCommandError");
|
|
1030
676
|
var de_UpdatePipelineCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1031
677
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1032
|
-
return
|
|
678
|
+
return de_CommandError(output, context);
|
|
1033
679
|
}
|
|
1034
680
|
const contents = (0, import_smithy_client.map)({
|
|
1035
681
|
$metadata: deserializeMetadata(output)
|
|
@@ -1041,40 +687,9 @@ var de_UpdatePipelineCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1041
687
|
Object.assign(contents, doc);
|
|
1042
688
|
return contents;
|
|
1043
689
|
}, "de_UpdatePipelineCommand");
|
|
1044
|
-
var de_UpdatePipelineCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1045
|
-
const parsedOutput = {
|
|
1046
|
-
...output,
|
|
1047
|
-
body: await parseErrorBody(output.body, context)
|
|
1048
|
-
};
|
|
1049
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1050
|
-
switch (errorCode) {
|
|
1051
|
-
case "AccessDeniedException":
|
|
1052
|
-
case "com.amazonaws.osis#AccessDeniedException":
|
|
1053
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1054
|
-
case "ConflictException":
|
|
1055
|
-
case "com.amazonaws.osis#ConflictException":
|
|
1056
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1057
|
-
case "InternalException":
|
|
1058
|
-
case "com.amazonaws.osis#InternalException":
|
|
1059
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1060
|
-
case "ResourceNotFoundException":
|
|
1061
|
-
case "com.amazonaws.osis#ResourceNotFoundException":
|
|
1062
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1063
|
-
case "ValidationException":
|
|
1064
|
-
case "com.amazonaws.osis#ValidationException":
|
|
1065
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1066
|
-
default:
|
|
1067
|
-
const parsedBody = parsedOutput.body;
|
|
1068
|
-
return throwDefaultError({
|
|
1069
|
-
output,
|
|
1070
|
-
parsedBody,
|
|
1071
|
-
errorCode
|
|
1072
|
-
});
|
|
1073
|
-
}
|
|
1074
|
-
}, "de_UpdatePipelineCommandError");
|
|
1075
690
|
var de_ValidatePipelineCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1076
691
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1077
|
-
return
|
|
692
|
+
return de_CommandError(output, context);
|
|
1078
693
|
}
|
|
1079
694
|
const contents = (0, import_smithy_client.map)({
|
|
1080
695
|
$metadata: deserializeMetadata(output)
|
|
@@ -1087,7 +702,7 @@ var de_ValidatePipelineCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1087
702
|
Object.assign(contents, doc);
|
|
1088
703
|
return contents;
|
|
1089
704
|
}, "de_ValidatePipelineCommand");
|
|
1090
|
-
var
|
|
705
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1091
706
|
const parsedOutput = {
|
|
1092
707
|
...output,
|
|
1093
708
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1100,9 +715,24 @@ var de_ValidatePipelineCommandError = /* @__PURE__ */ __name(async (output, cont
|
|
|
1100
715
|
case "InternalException":
|
|
1101
716
|
case "com.amazonaws.osis#InternalException":
|
|
1102
717
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
718
|
+
case "LimitExceededException":
|
|
719
|
+
case "com.amazonaws.osis#LimitExceededException":
|
|
720
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
721
|
+
case "ResourceAlreadyExistsException":
|
|
722
|
+
case "com.amazonaws.osis#ResourceAlreadyExistsException":
|
|
723
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
724
|
+
case "ResourceNotFoundException":
|
|
725
|
+
case "com.amazonaws.osis#ResourceNotFoundException":
|
|
726
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1103
727
|
case "ValidationException":
|
|
1104
728
|
case "com.amazonaws.osis#ValidationException":
|
|
1105
729
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
730
|
+
case "ConflictException":
|
|
731
|
+
case "com.amazonaws.osis#ConflictException":
|
|
732
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
733
|
+
case "InvalidPaginationTokenException":
|
|
734
|
+
case "com.amazonaws.osis#InvalidPaginationTokenException":
|
|
735
|
+
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
1106
736
|
default:
|
|
1107
737
|
const parsedBody = parsedOutput.body;
|
|
1108
738
|
return throwDefaultError({
|
|
@@ -1111,7 +741,7 @@ var de_ValidatePipelineCommandError = /* @__PURE__ */ __name(async (output, cont
|
|
|
1111
741
|
errorCode
|
|
1112
742
|
});
|
|
1113
743
|
}
|
|
1114
|
-
}, "
|
|
744
|
+
}, "de_CommandError");
|
|
1115
745
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(OSISServiceException);
|
|
1116
746
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1117
747
|
const contents = (0, import_smithy_client.map)({});
|
|
@@ -177,7 +177,7 @@ export const se_ValidatePipelineCommand = async (input, context) => {
|
|
|
177
177
|
};
|
|
178
178
|
export const de_CreatePipelineCommand = async (output, context) => {
|
|
179
179
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
180
|
-
return
|
|
180
|
+
return de_CommandError(output, context);
|
|
181
181
|
}
|
|
182
182
|
const contents = map({
|
|
183
183
|
$metadata: deserializeMetadata(output),
|
|
@@ -189,43 +189,9 @@ export const de_CreatePipelineCommand = async (output, context) => {
|
|
|
189
189
|
Object.assign(contents, doc);
|
|
190
190
|
return contents;
|
|
191
191
|
};
|
|
192
|
-
const de_CreatePipelineCommandError = async (output, context) => {
|
|
193
|
-
const parsedOutput = {
|
|
194
|
-
...output,
|
|
195
|
-
body: await parseErrorBody(output.body, context),
|
|
196
|
-
};
|
|
197
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
198
|
-
switch (errorCode) {
|
|
199
|
-
case "AccessDeniedException":
|
|
200
|
-
case "com.amazonaws.osis#AccessDeniedException":
|
|
201
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
202
|
-
case "InternalException":
|
|
203
|
-
case "com.amazonaws.osis#InternalException":
|
|
204
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
205
|
-
case "LimitExceededException":
|
|
206
|
-
case "com.amazonaws.osis#LimitExceededException":
|
|
207
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
208
|
-
case "ResourceAlreadyExistsException":
|
|
209
|
-
case "com.amazonaws.osis#ResourceAlreadyExistsException":
|
|
210
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
211
|
-
case "ResourceNotFoundException":
|
|
212
|
-
case "com.amazonaws.osis#ResourceNotFoundException":
|
|
213
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
214
|
-
case "ValidationException":
|
|
215
|
-
case "com.amazonaws.osis#ValidationException":
|
|
216
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
217
|
-
default:
|
|
218
|
-
const parsedBody = parsedOutput.body;
|
|
219
|
-
return throwDefaultError({
|
|
220
|
-
output,
|
|
221
|
-
parsedBody,
|
|
222
|
-
errorCode,
|
|
223
|
-
});
|
|
224
|
-
}
|
|
225
|
-
};
|
|
226
192
|
export const de_DeletePipelineCommand = async (output, context) => {
|
|
227
193
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
228
|
-
return
|
|
194
|
+
return de_CommandError(output, context);
|
|
229
195
|
}
|
|
230
196
|
const contents = map({
|
|
231
197
|
$metadata: deserializeMetadata(output),
|
|
@@ -233,40 +199,9 @@ export const de_DeletePipelineCommand = async (output, context) => {
|
|
|
233
199
|
await collectBody(output.body, context);
|
|
234
200
|
return contents;
|
|
235
201
|
};
|
|
236
|
-
const de_DeletePipelineCommandError = async (output, context) => {
|
|
237
|
-
const parsedOutput = {
|
|
238
|
-
...output,
|
|
239
|
-
body: await parseErrorBody(output.body, context),
|
|
240
|
-
};
|
|
241
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
242
|
-
switch (errorCode) {
|
|
243
|
-
case "AccessDeniedException":
|
|
244
|
-
case "com.amazonaws.osis#AccessDeniedException":
|
|
245
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
246
|
-
case "ConflictException":
|
|
247
|
-
case "com.amazonaws.osis#ConflictException":
|
|
248
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
249
|
-
case "InternalException":
|
|
250
|
-
case "com.amazonaws.osis#InternalException":
|
|
251
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
252
|
-
case "ResourceNotFoundException":
|
|
253
|
-
case "com.amazonaws.osis#ResourceNotFoundException":
|
|
254
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
255
|
-
case "ValidationException":
|
|
256
|
-
case "com.amazonaws.osis#ValidationException":
|
|
257
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
258
|
-
default:
|
|
259
|
-
const parsedBody = parsedOutput.body;
|
|
260
|
-
return throwDefaultError({
|
|
261
|
-
output,
|
|
262
|
-
parsedBody,
|
|
263
|
-
errorCode,
|
|
264
|
-
});
|
|
265
|
-
}
|
|
266
|
-
};
|
|
267
202
|
export const de_GetPipelineCommand = async (output, context) => {
|
|
268
203
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
269
|
-
return
|
|
204
|
+
return de_CommandError(output, context);
|
|
270
205
|
}
|
|
271
206
|
const contents = map({
|
|
272
207
|
$metadata: deserializeMetadata(output),
|
|
@@ -278,37 +213,9 @@ export const de_GetPipelineCommand = async (output, context) => {
|
|
|
278
213
|
Object.assign(contents, doc);
|
|
279
214
|
return contents;
|
|
280
215
|
};
|
|
281
|
-
const de_GetPipelineCommandError = async (output, context) => {
|
|
282
|
-
const parsedOutput = {
|
|
283
|
-
...output,
|
|
284
|
-
body: await parseErrorBody(output.body, context),
|
|
285
|
-
};
|
|
286
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
287
|
-
switch (errorCode) {
|
|
288
|
-
case "AccessDeniedException":
|
|
289
|
-
case "com.amazonaws.osis#AccessDeniedException":
|
|
290
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
291
|
-
case "InternalException":
|
|
292
|
-
case "com.amazonaws.osis#InternalException":
|
|
293
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
294
|
-
case "ResourceNotFoundException":
|
|
295
|
-
case "com.amazonaws.osis#ResourceNotFoundException":
|
|
296
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
297
|
-
case "ValidationException":
|
|
298
|
-
case "com.amazonaws.osis#ValidationException":
|
|
299
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
300
|
-
default:
|
|
301
|
-
const parsedBody = parsedOutput.body;
|
|
302
|
-
return throwDefaultError({
|
|
303
|
-
output,
|
|
304
|
-
parsedBody,
|
|
305
|
-
errorCode,
|
|
306
|
-
});
|
|
307
|
-
}
|
|
308
|
-
};
|
|
309
216
|
export const de_GetPipelineBlueprintCommand = async (output, context) => {
|
|
310
217
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
311
|
-
return
|
|
218
|
+
return de_CommandError(output, context);
|
|
312
219
|
}
|
|
313
220
|
const contents = map({
|
|
314
221
|
$metadata: deserializeMetadata(output),
|
|
@@ -320,37 +227,9 @@ export const de_GetPipelineBlueprintCommand = async (output, context) => {
|
|
|
320
227
|
Object.assign(contents, doc);
|
|
321
228
|
return contents;
|
|
322
229
|
};
|
|
323
|
-
const de_GetPipelineBlueprintCommandError = async (output, context) => {
|
|
324
|
-
const parsedOutput = {
|
|
325
|
-
...output,
|
|
326
|
-
body: await parseErrorBody(output.body, context),
|
|
327
|
-
};
|
|
328
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
329
|
-
switch (errorCode) {
|
|
330
|
-
case "AccessDeniedException":
|
|
331
|
-
case "com.amazonaws.osis#AccessDeniedException":
|
|
332
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
333
|
-
case "InternalException":
|
|
334
|
-
case "com.amazonaws.osis#InternalException":
|
|
335
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
336
|
-
case "ResourceNotFoundException":
|
|
337
|
-
case "com.amazonaws.osis#ResourceNotFoundException":
|
|
338
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
339
|
-
case "ValidationException":
|
|
340
|
-
case "com.amazonaws.osis#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
230
|
export const de_GetPipelineChangeProgressCommand = async (output, context) => {
|
|
352
231
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
353
|
-
return
|
|
232
|
+
return de_CommandError(output, context);
|
|
354
233
|
}
|
|
355
234
|
const contents = map({
|
|
356
235
|
$metadata: deserializeMetadata(output),
|
|
@@ -362,37 +241,9 @@ export const de_GetPipelineChangeProgressCommand = async (output, context) => {
|
|
|
362
241
|
Object.assign(contents, doc);
|
|
363
242
|
return contents;
|
|
364
243
|
};
|
|
365
|
-
const de_GetPipelineChangeProgressCommandError = async (output, context) => {
|
|
366
|
-
const parsedOutput = {
|
|
367
|
-
...output,
|
|
368
|
-
body: await parseErrorBody(output.body, context),
|
|
369
|
-
};
|
|
370
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
371
|
-
switch (errorCode) {
|
|
372
|
-
case "AccessDeniedException":
|
|
373
|
-
case "com.amazonaws.osis#AccessDeniedException":
|
|
374
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
375
|
-
case "InternalException":
|
|
376
|
-
case "com.amazonaws.osis#InternalException":
|
|
377
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
378
|
-
case "ResourceNotFoundException":
|
|
379
|
-
case "com.amazonaws.osis#ResourceNotFoundException":
|
|
380
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
381
|
-
case "ValidationException":
|
|
382
|
-
case "com.amazonaws.osis#ValidationException":
|
|
383
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
384
|
-
default:
|
|
385
|
-
const parsedBody = parsedOutput.body;
|
|
386
|
-
return throwDefaultError({
|
|
387
|
-
output,
|
|
388
|
-
parsedBody,
|
|
389
|
-
errorCode,
|
|
390
|
-
});
|
|
391
|
-
}
|
|
392
|
-
};
|
|
393
244
|
export const de_ListPipelineBlueprintsCommand = async (output, context) => {
|
|
394
245
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
395
|
-
return
|
|
246
|
+
return de_CommandError(output, context);
|
|
396
247
|
}
|
|
397
248
|
const contents = map({
|
|
398
249
|
$metadata: deserializeMetadata(output),
|
|
@@ -404,37 +255,9 @@ export const de_ListPipelineBlueprintsCommand = async (output, context) => {
|
|
|
404
255
|
Object.assign(contents, doc);
|
|
405
256
|
return contents;
|
|
406
257
|
};
|
|
407
|
-
const de_ListPipelineBlueprintsCommandError = async (output, context) => {
|
|
408
|
-
const parsedOutput = {
|
|
409
|
-
...output,
|
|
410
|
-
body: await parseErrorBody(output.body, context),
|
|
411
|
-
};
|
|
412
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
413
|
-
switch (errorCode) {
|
|
414
|
-
case "AccessDeniedException":
|
|
415
|
-
case "com.amazonaws.osis#AccessDeniedException":
|
|
416
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
417
|
-
case "InternalException":
|
|
418
|
-
case "com.amazonaws.osis#InternalException":
|
|
419
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
420
|
-
case "InvalidPaginationTokenException":
|
|
421
|
-
case "com.amazonaws.osis#InvalidPaginationTokenException":
|
|
422
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
423
|
-
case "ValidationException":
|
|
424
|
-
case "com.amazonaws.osis#ValidationException":
|
|
425
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
426
|
-
default:
|
|
427
|
-
const parsedBody = parsedOutput.body;
|
|
428
|
-
return throwDefaultError({
|
|
429
|
-
output,
|
|
430
|
-
parsedBody,
|
|
431
|
-
errorCode,
|
|
432
|
-
});
|
|
433
|
-
}
|
|
434
|
-
};
|
|
435
258
|
export const de_ListPipelinesCommand = async (output, context) => {
|
|
436
259
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
437
|
-
return
|
|
260
|
+
return de_CommandError(output, context);
|
|
438
261
|
}
|
|
439
262
|
const contents = map({
|
|
440
263
|
$metadata: deserializeMetadata(output),
|
|
@@ -447,37 +270,9 @@ export const de_ListPipelinesCommand = async (output, context) => {
|
|
|
447
270
|
Object.assign(contents, doc);
|
|
448
271
|
return contents;
|
|
449
272
|
};
|
|
450
|
-
const de_ListPipelinesCommandError = async (output, context) => {
|
|
451
|
-
const parsedOutput = {
|
|
452
|
-
...output,
|
|
453
|
-
body: await parseErrorBody(output.body, context),
|
|
454
|
-
};
|
|
455
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
456
|
-
switch (errorCode) {
|
|
457
|
-
case "AccessDeniedException":
|
|
458
|
-
case "com.amazonaws.osis#AccessDeniedException":
|
|
459
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
460
|
-
case "InternalException":
|
|
461
|
-
case "com.amazonaws.osis#InternalException":
|
|
462
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
463
|
-
case "InvalidPaginationTokenException":
|
|
464
|
-
case "com.amazonaws.osis#InvalidPaginationTokenException":
|
|
465
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
466
|
-
case "ValidationException":
|
|
467
|
-
case "com.amazonaws.osis#ValidationException":
|
|
468
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
469
|
-
default:
|
|
470
|
-
const parsedBody = parsedOutput.body;
|
|
471
|
-
return throwDefaultError({
|
|
472
|
-
output,
|
|
473
|
-
parsedBody,
|
|
474
|
-
errorCode,
|
|
475
|
-
});
|
|
476
|
-
}
|
|
477
|
-
};
|
|
478
273
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
479
274
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
480
|
-
return
|
|
275
|
+
return de_CommandError(output, context);
|
|
481
276
|
}
|
|
482
277
|
const contents = map({
|
|
483
278
|
$metadata: deserializeMetadata(output),
|
|
@@ -489,37 +284,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
489
284
|
Object.assign(contents, doc);
|
|
490
285
|
return contents;
|
|
491
286
|
};
|
|
492
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
493
|
-
const parsedOutput = {
|
|
494
|
-
...output,
|
|
495
|
-
body: await parseErrorBody(output.body, context),
|
|
496
|
-
};
|
|
497
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
498
|
-
switch (errorCode) {
|
|
499
|
-
case "AccessDeniedException":
|
|
500
|
-
case "com.amazonaws.osis#AccessDeniedException":
|
|
501
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
502
|
-
case "InternalException":
|
|
503
|
-
case "com.amazonaws.osis#InternalException":
|
|
504
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
505
|
-
case "ResourceNotFoundException":
|
|
506
|
-
case "com.amazonaws.osis#ResourceNotFoundException":
|
|
507
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
508
|
-
case "ValidationException":
|
|
509
|
-
case "com.amazonaws.osis#ValidationException":
|
|
510
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
511
|
-
default:
|
|
512
|
-
const parsedBody = parsedOutput.body;
|
|
513
|
-
return throwDefaultError({
|
|
514
|
-
output,
|
|
515
|
-
parsedBody,
|
|
516
|
-
errorCode,
|
|
517
|
-
});
|
|
518
|
-
}
|
|
519
|
-
};
|
|
520
287
|
export const de_StartPipelineCommand = async (output, context) => {
|
|
521
288
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
522
|
-
return
|
|
289
|
+
return de_CommandError(output, context);
|
|
523
290
|
}
|
|
524
291
|
const contents = map({
|
|
525
292
|
$metadata: deserializeMetadata(output),
|
|
@@ -531,40 +298,9 @@ export const de_StartPipelineCommand = async (output, context) => {
|
|
|
531
298
|
Object.assign(contents, doc);
|
|
532
299
|
return contents;
|
|
533
300
|
};
|
|
534
|
-
const de_StartPipelineCommandError = async (output, context) => {
|
|
535
|
-
const parsedOutput = {
|
|
536
|
-
...output,
|
|
537
|
-
body: await parseErrorBody(output.body, context),
|
|
538
|
-
};
|
|
539
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
540
|
-
switch (errorCode) {
|
|
541
|
-
case "AccessDeniedException":
|
|
542
|
-
case "com.amazonaws.osis#AccessDeniedException":
|
|
543
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
544
|
-
case "ConflictException":
|
|
545
|
-
case "com.amazonaws.osis#ConflictException":
|
|
546
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
547
|
-
case "InternalException":
|
|
548
|
-
case "com.amazonaws.osis#InternalException":
|
|
549
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
550
|
-
case "ResourceNotFoundException":
|
|
551
|
-
case "com.amazonaws.osis#ResourceNotFoundException":
|
|
552
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
553
|
-
case "ValidationException":
|
|
554
|
-
case "com.amazonaws.osis#ValidationException":
|
|
555
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
556
|
-
default:
|
|
557
|
-
const parsedBody = parsedOutput.body;
|
|
558
|
-
return throwDefaultError({
|
|
559
|
-
output,
|
|
560
|
-
parsedBody,
|
|
561
|
-
errorCode,
|
|
562
|
-
});
|
|
563
|
-
}
|
|
564
|
-
};
|
|
565
301
|
export const de_StopPipelineCommand = async (output, context) => {
|
|
566
302
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
567
|
-
return
|
|
303
|
+
return de_CommandError(output, context);
|
|
568
304
|
}
|
|
569
305
|
const contents = map({
|
|
570
306
|
$metadata: deserializeMetadata(output),
|
|
@@ -576,40 +312,9 @@ export const de_StopPipelineCommand = async (output, context) => {
|
|
|
576
312
|
Object.assign(contents, doc);
|
|
577
313
|
return contents;
|
|
578
314
|
};
|
|
579
|
-
const de_StopPipelineCommandError = async (output, context) => {
|
|
580
|
-
const parsedOutput = {
|
|
581
|
-
...output,
|
|
582
|
-
body: await parseErrorBody(output.body, context),
|
|
583
|
-
};
|
|
584
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
585
|
-
switch (errorCode) {
|
|
586
|
-
case "AccessDeniedException":
|
|
587
|
-
case "com.amazonaws.osis#AccessDeniedException":
|
|
588
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
589
|
-
case "ConflictException":
|
|
590
|
-
case "com.amazonaws.osis#ConflictException":
|
|
591
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
592
|
-
case "InternalException":
|
|
593
|
-
case "com.amazonaws.osis#InternalException":
|
|
594
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
595
|
-
case "ResourceNotFoundException":
|
|
596
|
-
case "com.amazonaws.osis#ResourceNotFoundException":
|
|
597
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
598
|
-
case "ValidationException":
|
|
599
|
-
case "com.amazonaws.osis#ValidationException":
|
|
600
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
601
|
-
default:
|
|
602
|
-
const parsedBody = parsedOutput.body;
|
|
603
|
-
return throwDefaultError({
|
|
604
|
-
output,
|
|
605
|
-
parsedBody,
|
|
606
|
-
errorCode,
|
|
607
|
-
});
|
|
608
|
-
}
|
|
609
|
-
};
|
|
610
315
|
export const de_TagResourceCommand = async (output, context) => {
|
|
611
316
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
612
|
-
return
|
|
317
|
+
return de_CommandError(output, context);
|
|
613
318
|
}
|
|
614
319
|
const contents = map({
|
|
615
320
|
$metadata: deserializeMetadata(output),
|
|
@@ -617,40 +322,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
617
322
|
await collectBody(output.body, context);
|
|
618
323
|
return contents;
|
|
619
324
|
};
|
|
620
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
621
|
-
const parsedOutput = {
|
|
622
|
-
...output,
|
|
623
|
-
body: await parseErrorBody(output.body, context),
|
|
624
|
-
};
|
|
625
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
626
|
-
switch (errorCode) {
|
|
627
|
-
case "AccessDeniedException":
|
|
628
|
-
case "com.amazonaws.osis#AccessDeniedException":
|
|
629
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
630
|
-
case "InternalException":
|
|
631
|
-
case "com.amazonaws.osis#InternalException":
|
|
632
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
633
|
-
case "LimitExceededException":
|
|
634
|
-
case "com.amazonaws.osis#LimitExceededException":
|
|
635
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
636
|
-
case "ResourceNotFoundException":
|
|
637
|
-
case "com.amazonaws.osis#ResourceNotFoundException":
|
|
638
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
639
|
-
case "ValidationException":
|
|
640
|
-
case "com.amazonaws.osis#ValidationException":
|
|
641
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
642
|
-
default:
|
|
643
|
-
const parsedBody = parsedOutput.body;
|
|
644
|
-
return throwDefaultError({
|
|
645
|
-
output,
|
|
646
|
-
parsedBody,
|
|
647
|
-
errorCode,
|
|
648
|
-
});
|
|
649
|
-
}
|
|
650
|
-
};
|
|
651
325
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
652
326
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
653
|
-
return
|
|
327
|
+
return de_CommandError(output, context);
|
|
654
328
|
}
|
|
655
329
|
const contents = map({
|
|
656
330
|
$metadata: deserializeMetadata(output),
|
|
@@ -658,37 +332,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
658
332
|
await collectBody(output.body, context);
|
|
659
333
|
return contents;
|
|
660
334
|
};
|
|
661
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
662
|
-
const parsedOutput = {
|
|
663
|
-
...output,
|
|
664
|
-
body: await parseErrorBody(output.body, context),
|
|
665
|
-
};
|
|
666
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
667
|
-
switch (errorCode) {
|
|
668
|
-
case "AccessDeniedException":
|
|
669
|
-
case "com.amazonaws.osis#AccessDeniedException":
|
|
670
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
671
|
-
case "InternalException":
|
|
672
|
-
case "com.amazonaws.osis#InternalException":
|
|
673
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
674
|
-
case "ResourceNotFoundException":
|
|
675
|
-
case "com.amazonaws.osis#ResourceNotFoundException":
|
|
676
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
677
|
-
case "ValidationException":
|
|
678
|
-
case "com.amazonaws.osis#ValidationException":
|
|
679
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
680
|
-
default:
|
|
681
|
-
const parsedBody = parsedOutput.body;
|
|
682
|
-
return throwDefaultError({
|
|
683
|
-
output,
|
|
684
|
-
parsedBody,
|
|
685
|
-
errorCode,
|
|
686
|
-
});
|
|
687
|
-
}
|
|
688
|
-
};
|
|
689
335
|
export const de_UpdatePipelineCommand = async (output, context) => {
|
|
690
336
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
691
|
-
return
|
|
337
|
+
return de_CommandError(output, context);
|
|
692
338
|
}
|
|
693
339
|
const contents = map({
|
|
694
340
|
$metadata: deserializeMetadata(output),
|
|
@@ -700,40 +346,9 @@ export const de_UpdatePipelineCommand = async (output, context) => {
|
|
|
700
346
|
Object.assign(contents, doc);
|
|
701
347
|
return contents;
|
|
702
348
|
};
|
|
703
|
-
const de_UpdatePipelineCommandError = async (output, context) => {
|
|
704
|
-
const parsedOutput = {
|
|
705
|
-
...output,
|
|
706
|
-
body: await parseErrorBody(output.body, context),
|
|
707
|
-
};
|
|
708
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
709
|
-
switch (errorCode) {
|
|
710
|
-
case "AccessDeniedException":
|
|
711
|
-
case "com.amazonaws.osis#AccessDeniedException":
|
|
712
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
713
|
-
case "ConflictException":
|
|
714
|
-
case "com.amazonaws.osis#ConflictException":
|
|
715
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
716
|
-
case "InternalException":
|
|
717
|
-
case "com.amazonaws.osis#InternalException":
|
|
718
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
719
|
-
case "ResourceNotFoundException":
|
|
720
|
-
case "com.amazonaws.osis#ResourceNotFoundException":
|
|
721
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
722
|
-
case "ValidationException":
|
|
723
|
-
case "com.amazonaws.osis#ValidationException":
|
|
724
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
725
|
-
default:
|
|
726
|
-
const parsedBody = parsedOutput.body;
|
|
727
|
-
return throwDefaultError({
|
|
728
|
-
output,
|
|
729
|
-
parsedBody,
|
|
730
|
-
errorCode,
|
|
731
|
-
});
|
|
732
|
-
}
|
|
733
|
-
};
|
|
734
349
|
export const de_ValidatePipelineCommand = async (output, context) => {
|
|
735
350
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
736
|
-
return
|
|
351
|
+
return de_CommandError(output, context);
|
|
737
352
|
}
|
|
738
353
|
const contents = map({
|
|
739
354
|
$metadata: deserializeMetadata(output),
|
|
@@ -746,7 +361,7 @@ export const de_ValidatePipelineCommand = async (output, context) => {
|
|
|
746
361
|
Object.assign(contents, doc);
|
|
747
362
|
return contents;
|
|
748
363
|
};
|
|
749
|
-
const
|
|
364
|
+
const de_CommandError = async (output, context) => {
|
|
750
365
|
const parsedOutput = {
|
|
751
366
|
...output,
|
|
752
367
|
body: await parseErrorBody(output.body, context),
|
|
@@ -759,9 +374,24 @@ const de_ValidatePipelineCommandError = async (output, context) => {
|
|
|
759
374
|
case "InternalException":
|
|
760
375
|
case "com.amazonaws.osis#InternalException":
|
|
761
376
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
377
|
+
case "LimitExceededException":
|
|
378
|
+
case "com.amazonaws.osis#LimitExceededException":
|
|
379
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
380
|
+
case "ResourceAlreadyExistsException":
|
|
381
|
+
case "com.amazonaws.osis#ResourceAlreadyExistsException":
|
|
382
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
383
|
+
case "ResourceNotFoundException":
|
|
384
|
+
case "com.amazonaws.osis#ResourceNotFoundException":
|
|
385
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
762
386
|
case "ValidationException":
|
|
763
387
|
case "com.amazonaws.osis#ValidationException":
|
|
764
388
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
389
|
+
case "ConflictException":
|
|
390
|
+
case "com.amazonaws.osis#ConflictException":
|
|
391
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
392
|
+
case "InvalidPaginationTokenException":
|
|
393
|
+
case "com.amazonaws.osis#InvalidPaginationTokenException":
|
|
394
|
+
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
765
395
|
default:
|
|
766
396
|
const parsedBody = parsedOutput.body;
|
|
767
397
|
return throwDefaultError({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-osis",
|
|
3
3
|
"description": "AWS SDK for JavaScript Osis 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-osis",
|
|
@@ -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-host-header": "3.502.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.502.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.502.0",
|