@aws-sdk/client-b2bi 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 +38 -829
- package/dist-es/protocols/Aws_json1_0.js +28 -819
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -607,7 +607,7 @@ var se_UpdateTransformerCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
607
607
|
}, "se_UpdateTransformerCommand");
|
|
608
608
|
var de_CreateCapabilityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
609
609
|
if (output.statusCode >= 300) {
|
|
610
|
-
return
|
|
610
|
+
return de_CommandError(output, context);
|
|
611
611
|
}
|
|
612
612
|
const data = await parseBody(output.body, context);
|
|
613
613
|
let contents = {};
|
|
@@ -618,46 +618,9 @@ var de_CreateCapabilityCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
618
618
|
};
|
|
619
619
|
return response;
|
|
620
620
|
}, "de_CreateCapabilityCommand");
|
|
621
|
-
var de_CreateCapabilityCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
622
|
-
const parsedOutput = {
|
|
623
|
-
...output,
|
|
624
|
-
body: await parseErrorBody(output.body, context)
|
|
625
|
-
};
|
|
626
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
627
|
-
switch (errorCode) {
|
|
628
|
-
case "AccessDeniedException":
|
|
629
|
-
case "com.amazonaws.b2bi#AccessDeniedException":
|
|
630
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
631
|
-
case "ConflictException":
|
|
632
|
-
case "com.amazonaws.b2bi#ConflictException":
|
|
633
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
634
|
-
case "InternalServerException":
|
|
635
|
-
case "com.amazonaws.b2bi#InternalServerException":
|
|
636
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
637
|
-
case "ResourceNotFoundException":
|
|
638
|
-
case "com.amazonaws.b2bi#ResourceNotFoundException":
|
|
639
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
640
|
-
case "ServiceQuotaExceededException":
|
|
641
|
-
case "com.amazonaws.b2bi#ServiceQuotaExceededException":
|
|
642
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
643
|
-
case "ThrottlingException":
|
|
644
|
-
case "com.amazonaws.b2bi#ThrottlingException":
|
|
645
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
646
|
-
case "ValidationException":
|
|
647
|
-
case "com.amazonaws.b2bi#ValidationException":
|
|
648
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
649
|
-
default:
|
|
650
|
-
const parsedBody = parsedOutput.body;
|
|
651
|
-
return throwDefaultError({
|
|
652
|
-
output,
|
|
653
|
-
parsedBody,
|
|
654
|
-
errorCode
|
|
655
|
-
});
|
|
656
|
-
}
|
|
657
|
-
}, "de_CreateCapabilityCommandError");
|
|
658
621
|
var de_CreatePartnershipCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
659
622
|
if (output.statusCode >= 300) {
|
|
660
|
-
return
|
|
623
|
+
return de_CommandError(output, context);
|
|
661
624
|
}
|
|
662
625
|
const data = await parseBody(output.body, context);
|
|
663
626
|
let contents = {};
|
|
@@ -668,46 +631,9 @@ var de_CreatePartnershipCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
668
631
|
};
|
|
669
632
|
return response;
|
|
670
633
|
}, "de_CreatePartnershipCommand");
|
|
671
|
-
var de_CreatePartnershipCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
672
|
-
const parsedOutput = {
|
|
673
|
-
...output,
|
|
674
|
-
body: await parseErrorBody(output.body, context)
|
|
675
|
-
};
|
|
676
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
677
|
-
switch (errorCode) {
|
|
678
|
-
case "AccessDeniedException":
|
|
679
|
-
case "com.amazonaws.b2bi#AccessDeniedException":
|
|
680
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
681
|
-
case "ConflictException":
|
|
682
|
-
case "com.amazonaws.b2bi#ConflictException":
|
|
683
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
684
|
-
case "InternalServerException":
|
|
685
|
-
case "com.amazonaws.b2bi#InternalServerException":
|
|
686
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
687
|
-
case "ResourceNotFoundException":
|
|
688
|
-
case "com.amazonaws.b2bi#ResourceNotFoundException":
|
|
689
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
690
|
-
case "ServiceQuotaExceededException":
|
|
691
|
-
case "com.amazonaws.b2bi#ServiceQuotaExceededException":
|
|
692
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
693
|
-
case "ThrottlingException":
|
|
694
|
-
case "com.amazonaws.b2bi#ThrottlingException":
|
|
695
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
696
|
-
case "ValidationException":
|
|
697
|
-
case "com.amazonaws.b2bi#ValidationException":
|
|
698
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
699
|
-
default:
|
|
700
|
-
const parsedBody = parsedOutput.body;
|
|
701
|
-
return throwDefaultError({
|
|
702
|
-
output,
|
|
703
|
-
parsedBody,
|
|
704
|
-
errorCode
|
|
705
|
-
});
|
|
706
|
-
}
|
|
707
|
-
}, "de_CreatePartnershipCommandError");
|
|
708
634
|
var de_CreateProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
709
635
|
if (output.statusCode >= 300) {
|
|
710
|
-
return
|
|
636
|
+
return de_CommandError(output, context);
|
|
711
637
|
}
|
|
712
638
|
const data = await parseBody(output.body, context);
|
|
713
639
|
let contents = {};
|
|
@@ -718,46 +644,9 @@ var de_CreateProfileCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
718
644
|
};
|
|
719
645
|
return response;
|
|
720
646
|
}, "de_CreateProfileCommand");
|
|
721
|
-
var de_CreateProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
722
|
-
const parsedOutput = {
|
|
723
|
-
...output,
|
|
724
|
-
body: await parseErrorBody(output.body, context)
|
|
725
|
-
};
|
|
726
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
727
|
-
switch (errorCode) {
|
|
728
|
-
case "AccessDeniedException":
|
|
729
|
-
case "com.amazonaws.b2bi#AccessDeniedException":
|
|
730
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
731
|
-
case "ConflictException":
|
|
732
|
-
case "com.amazonaws.b2bi#ConflictException":
|
|
733
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
734
|
-
case "InternalServerException":
|
|
735
|
-
case "com.amazonaws.b2bi#InternalServerException":
|
|
736
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
737
|
-
case "ResourceNotFoundException":
|
|
738
|
-
case "com.amazonaws.b2bi#ResourceNotFoundException":
|
|
739
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
740
|
-
case "ServiceQuotaExceededException":
|
|
741
|
-
case "com.amazonaws.b2bi#ServiceQuotaExceededException":
|
|
742
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
743
|
-
case "ThrottlingException":
|
|
744
|
-
case "com.amazonaws.b2bi#ThrottlingException":
|
|
745
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
746
|
-
case "ValidationException":
|
|
747
|
-
case "com.amazonaws.b2bi#ValidationException":
|
|
748
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
749
|
-
default:
|
|
750
|
-
const parsedBody = parsedOutput.body;
|
|
751
|
-
return throwDefaultError({
|
|
752
|
-
output,
|
|
753
|
-
parsedBody,
|
|
754
|
-
errorCode
|
|
755
|
-
});
|
|
756
|
-
}
|
|
757
|
-
}, "de_CreateProfileCommandError");
|
|
758
647
|
var de_CreateTransformerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
759
648
|
if (output.statusCode >= 300) {
|
|
760
|
-
return
|
|
649
|
+
return de_CommandError(output, context);
|
|
761
650
|
}
|
|
762
651
|
const data = await parseBody(output.body, context);
|
|
763
652
|
let contents = {};
|
|
@@ -768,46 +657,9 @@ var de_CreateTransformerCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
768
657
|
};
|
|
769
658
|
return response;
|
|
770
659
|
}, "de_CreateTransformerCommand");
|
|
771
|
-
var de_CreateTransformerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
772
|
-
const parsedOutput = {
|
|
773
|
-
...output,
|
|
774
|
-
body: await parseErrorBody(output.body, context)
|
|
775
|
-
};
|
|
776
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
777
|
-
switch (errorCode) {
|
|
778
|
-
case "AccessDeniedException":
|
|
779
|
-
case "com.amazonaws.b2bi#AccessDeniedException":
|
|
780
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
781
|
-
case "ConflictException":
|
|
782
|
-
case "com.amazonaws.b2bi#ConflictException":
|
|
783
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
784
|
-
case "InternalServerException":
|
|
785
|
-
case "com.amazonaws.b2bi#InternalServerException":
|
|
786
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
787
|
-
case "ResourceNotFoundException":
|
|
788
|
-
case "com.amazonaws.b2bi#ResourceNotFoundException":
|
|
789
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
790
|
-
case "ServiceQuotaExceededException":
|
|
791
|
-
case "com.amazonaws.b2bi#ServiceQuotaExceededException":
|
|
792
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
793
|
-
case "ThrottlingException":
|
|
794
|
-
case "com.amazonaws.b2bi#ThrottlingException":
|
|
795
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
796
|
-
case "ValidationException":
|
|
797
|
-
case "com.amazonaws.b2bi#ValidationException":
|
|
798
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
799
|
-
default:
|
|
800
|
-
const parsedBody = parsedOutput.body;
|
|
801
|
-
return throwDefaultError({
|
|
802
|
-
output,
|
|
803
|
-
parsedBody,
|
|
804
|
-
errorCode
|
|
805
|
-
});
|
|
806
|
-
}
|
|
807
|
-
}, "de_CreateTransformerCommandError");
|
|
808
660
|
var de_DeleteCapabilityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
809
661
|
if (output.statusCode >= 300) {
|
|
810
|
-
return
|
|
662
|
+
return de_CommandError(output, context);
|
|
811
663
|
}
|
|
812
664
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
813
665
|
const response = {
|
|
@@ -815,43 +667,9 @@ var de_DeleteCapabilityCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
815
667
|
};
|
|
816
668
|
return response;
|
|
817
669
|
}, "de_DeleteCapabilityCommand");
|
|
818
|
-
var de_DeleteCapabilityCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
819
|
-
const parsedOutput = {
|
|
820
|
-
...output,
|
|
821
|
-
body: await parseErrorBody(output.body, context)
|
|
822
|
-
};
|
|
823
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
824
|
-
switch (errorCode) {
|
|
825
|
-
case "AccessDeniedException":
|
|
826
|
-
case "com.amazonaws.b2bi#AccessDeniedException":
|
|
827
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
828
|
-
case "ConflictException":
|
|
829
|
-
case "com.amazonaws.b2bi#ConflictException":
|
|
830
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
831
|
-
case "InternalServerException":
|
|
832
|
-
case "com.amazonaws.b2bi#InternalServerException":
|
|
833
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
834
|
-
case "ResourceNotFoundException":
|
|
835
|
-
case "com.amazonaws.b2bi#ResourceNotFoundException":
|
|
836
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
837
|
-
case "ThrottlingException":
|
|
838
|
-
case "com.amazonaws.b2bi#ThrottlingException":
|
|
839
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
840
|
-
case "ValidationException":
|
|
841
|
-
case "com.amazonaws.b2bi#ValidationException":
|
|
842
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
843
|
-
default:
|
|
844
|
-
const parsedBody = parsedOutput.body;
|
|
845
|
-
return throwDefaultError({
|
|
846
|
-
output,
|
|
847
|
-
parsedBody,
|
|
848
|
-
errorCode
|
|
849
|
-
});
|
|
850
|
-
}
|
|
851
|
-
}, "de_DeleteCapabilityCommandError");
|
|
852
670
|
var de_DeletePartnershipCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
853
671
|
if (output.statusCode >= 300) {
|
|
854
|
-
return
|
|
672
|
+
return de_CommandError(output, context);
|
|
855
673
|
}
|
|
856
674
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
857
675
|
const response = {
|
|
@@ -859,43 +677,9 @@ var de_DeletePartnershipCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
859
677
|
};
|
|
860
678
|
return response;
|
|
861
679
|
}, "de_DeletePartnershipCommand");
|
|
862
|
-
var de_DeletePartnershipCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
863
|
-
const parsedOutput = {
|
|
864
|
-
...output,
|
|
865
|
-
body: await parseErrorBody(output.body, context)
|
|
866
|
-
};
|
|
867
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
868
|
-
switch (errorCode) {
|
|
869
|
-
case "AccessDeniedException":
|
|
870
|
-
case "com.amazonaws.b2bi#AccessDeniedException":
|
|
871
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
872
|
-
case "ConflictException":
|
|
873
|
-
case "com.amazonaws.b2bi#ConflictException":
|
|
874
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
875
|
-
case "InternalServerException":
|
|
876
|
-
case "com.amazonaws.b2bi#InternalServerException":
|
|
877
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
878
|
-
case "ResourceNotFoundException":
|
|
879
|
-
case "com.amazonaws.b2bi#ResourceNotFoundException":
|
|
880
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
881
|
-
case "ThrottlingException":
|
|
882
|
-
case "com.amazonaws.b2bi#ThrottlingException":
|
|
883
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
884
|
-
case "ValidationException":
|
|
885
|
-
case "com.amazonaws.b2bi#ValidationException":
|
|
886
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
887
|
-
default:
|
|
888
|
-
const parsedBody = parsedOutput.body;
|
|
889
|
-
return throwDefaultError({
|
|
890
|
-
output,
|
|
891
|
-
parsedBody,
|
|
892
|
-
errorCode
|
|
893
|
-
});
|
|
894
|
-
}
|
|
895
|
-
}, "de_DeletePartnershipCommandError");
|
|
896
680
|
var de_DeleteProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
897
681
|
if (output.statusCode >= 300) {
|
|
898
|
-
return
|
|
682
|
+
return de_CommandError(output, context);
|
|
899
683
|
}
|
|
900
684
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
901
685
|
const response = {
|
|
@@ -903,43 +687,9 @@ var de_DeleteProfileCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
903
687
|
};
|
|
904
688
|
return response;
|
|
905
689
|
}, "de_DeleteProfileCommand");
|
|
906
|
-
var de_DeleteProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
907
|
-
const parsedOutput = {
|
|
908
|
-
...output,
|
|
909
|
-
body: await parseErrorBody(output.body, context)
|
|
910
|
-
};
|
|
911
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
912
|
-
switch (errorCode) {
|
|
913
|
-
case "AccessDeniedException":
|
|
914
|
-
case "com.amazonaws.b2bi#AccessDeniedException":
|
|
915
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
916
|
-
case "ConflictException":
|
|
917
|
-
case "com.amazonaws.b2bi#ConflictException":
|
|
918
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
919
|
-
case "InternalServerException":
|
|
920
|
-
case "com.amazonaws.b2bi#InternalServerException":
|
|
921
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
922
|
-
case "ResourceNotFoundException":
|
|
923
|
-
case "com.amazonaws.b2bi#ResourceNotFoundException":
|
|
924
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
925
|
-
case "ThrottlingException":
|
|
926
|
-
case "com.amazonaws.b2bi#ThrottlingException":
|
|
927
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
928
|
-
case "ValidationException":
|
|
929
|
-
case "com.amazonaws.b2bi#ValidationException":
|
|
930
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
931
|
-
default:
|
|
932
|
-
const parsedBody = parsedOutput.body;
|
|
933
|
-
return throwDefaultError({
|
|
934
|
-
output,
|
|
935
|
-
parsedBody,
|
|
936
|
-
errorCode
|
|
937
|
-
});
|
|
938
|
-
}
|
|
939
|
-
}, "de_DeleteProfileCommandError");
|
|
940
690
|
var de_DeleteTransformerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
941
691
|
if (output.statusCode >= 300) {
|
|
942
|
-
return
|
|
692
|
+
return de_CommandError(output, context);
|
|
943
693
|
}
|
|
944
694
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
945
695
|
const response = {
|
|
@@ -947,43 +697,9 @@ var de_DeleteTransformerCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
947
697
|
};
|
|
948
698
|
return response;
|
|
949
699
|
}, "de_DeleteTransformerCommand");
|
|
950
|
-
var de_DeleteTransformerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
951
|
-
const parsedOutput = {
|
|
952
|
-
...output,
|
|
953
|
-
body: await parseErrorBody(output.body, context)
|
|
954
|
-
};
|
|
955
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
956
|
-
switch (errorCode) {
|
|
957
|
-
case "AccessDeniedException":
|
|
958
|
-
case "com.amazonaws.b2bi#AccessDeniedException":
|
|
959
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
960
|
-
case "ConflictException":
|
|
961
|
-
case "com.amazonaws.b2bi#ConflictException":
|
|
962
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
963
|
-
case "InternalServerException":
|
|
964
|
-
case "com.amazonaws.b2bi#InternalServerException":
|
|
965
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
966
|
-
case "ResourceNotFoundException":
|
|
967
|
-
case "com.amazonaws.b2bi#ResourceNotFoundException":
|
|
968
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
969
|
-
case "ThrottlingException":
|
|
970
|
-
case "com.amazonaws.b2bi#ThrottlingException":
|
|
971
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
972
|
-
case "ValidationException":
|
|
973
|
-
case "com.amazonaws.b2bi#ValidationException":
|
|
974
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
975
|
-
default:
|
|
976
|
-
const parsedBody = parsedOutput.body;
|
|
977
|
-
return throwDefaultError({
|
|
978
|
-
output,
|
|
979
|
-
parsedBody,
|
|
980
|
-
errorCode
|
|
981
|
-
});
|
|
982
|
-
}
|
|
983
|
-
}, "de_DeleteTransformerCommandError");
|
|
984
700
|
var de_GetCapabilityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
985
701
|
if (output.statusCode >= 300) {
|
|
986
|
-
return
|
|
702
|
+
return de_CommandError(output, context);
|
|
987
703
|
}
|
|
988
704
|
const data = await parseBody(output.body, context);
|
|
989
705
|
let contents = {};
|
|
@@ -994,40 +710,9 @@ var de_GetCapabilityCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
994
710
|
};
|
|
995
711
|
return response;
|
|
996
712
|
}, "de_GetCapabilityCommand");
|
|
997
|
-
var de_GetCapabilityCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
998
|
-
const parsedOutput = {
|
|
999
|
-
...output,
|
|
1000
|
-
body: await parseErrorBody(output.body, context)
|
|
1001
|
-
};
|
|
1002
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1003
|
-
switch (errorCode) {
|
|
1004
|
-
case "AccessDeniedException":
|
|
1005
|
-
case "com.amazonaws.b2bi#AccessDeniedException":
|
|
1006
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1007
|
-
case "InternalServerException":
|
|
1008
|
-
case "com.amazonaws.b2bi#InternalServerException":
|
|
1009
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1010
|
-
case "ResourceNotFoundException":
|
|
1011
|
-
case "com.amazonaws.b2bi#ResourceNotFoundException":
|
|
1012
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1013
|
-
case "ThrottlingException":
|
|
1014
|
-
case "com.amazonaws.b2bi#ThrottlingException":
|
|
1015
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1016
|
-
case "ValidationException":
|
|
1017
|
-
case "com.amazonaws.b2bi#ValidationException":
|
|
1018
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1019
|
-
default:
|
|
1020
|
-
const parsedBody = parsedOutput.body;
|
|
1021
|
-
return throwDefaultError({
|
|
1022
|
-
output,
|
|
1023
|
-
parsedBody,
|
|
1024
|
-
errorCode
|
|
1025
|
-
});
|
|
1026
|
-
}
|
|
1027
|
-
}, "de_GetCapabilityCommandError");
|
|
1028
713
|
var de_GetPartnershipCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1029
714
|
if (output.statusCode >= 300) {
|
|
1030
|
-
return
|
|
715
|
+
return de_CommandError(output, context);
|
|
1031
716
|
}
|
|
1032
717
|
const data = await parseBody(output.body, context);
|
|
1033
718
|
let contents = {};
|
|
@@ -1038,40 +723,9 @@ var de_GetPartnershipCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1038
723
|
};
|
|
1039
724
|
return response;
|
|
1040
725
|
}, "de_GetPartnershipCommand");
|
|
1041
|
-
var de_GetPartnershipCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1042
|
-
const parsedOutput = {
|
|
1043
|
-
...output,
|
|
1044
|
-
body: await parseErrorBody(output.body, context)
|
|
1045
|
-
};
|
|
1046
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1047
|
-
switch (errorCode) {
|
|
1048
|
-
case "AccessDeniedException":
|
|
1049
|
-
case "com.amazonaws.b2bi#AccessDeniedException":
|
|
1050
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1051
|
-
case "InternalServerException":
|
|
1052
|
-
case "com.amazonaws.b2bi#InternalServerException":
|
|
1053
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1054
|
-
case "ResourceNotFoundException":
|
|
1055
|
-
case "com.amazonaws.b2bi#ResourceNotFoundException":
|
|
1056
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1057
|
-
case "ThrottlingException":
|
|
1058
|
-
case "com.amazonaws.b2bi#ThrottlingException":
|
|
1059
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1060
|
-
case "ValidationException":
|
|
1061
|
-
case "com.amazonaws.b2bi#ValidationException":
|
|
1062
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1063
|
-
default:
|
|
1064
|
-
const parsedBody = parsedOutput.body;
|
|
1065
|
-
return throwDefaultError({
|
|
1066
|
-
output,
|
|
1067
|
-
parsedBody,
|
|
1068
|
-
errorCode
|
|
1069
|
-
});
|
|
1070
|
-
}
|
|
1071
|
-
}, "de_GetPartnershipCommandError");
|
|
1072
726
|
var de_GetProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1073
727
|
if (output.statusCode >= 300) {
|
|
1074
|
-
return
|
|
728
|
+
return de_CommandError(output, context);
|
|
1075
729
|
}
|
|
1076
730
|
const data = await parseBody(output.body, context);
|
|
1077
731
|
let contents = {};
|
|
@@ -1082,40 +736,9 @@ var de_GetProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1082
736
|
};
|
|
1083
737
|
return response;
|
|
1084
738
|
}, "de_GetProfileCommand");
|
|
1085
|
-
var de_GetProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1086
|
-
const parsedOutput = {
|
|
1087
|
-
...output,
|
|
1088
|
-
body: await parseErrorBody(output.body, context)
|
|
1089
|
-
};
|
|
1090
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1091
|
-
switch (errorCode) {
|
|
1092
|
-
case "AccessDeniedException":
|
|
1093
|
-
case "com.amazonaws.b2bi#AccessDeniedException":
|
|
1094
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1095
|
-
case "InternalServerException":
|
|
1096
|
-
case "com.amazonaws.b2bi#InternalServerException":
|
|
1097
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1098
|
-
case "ResourceNotFoundException":
|
|
1099
|
-
case "com.amazonaws.b2bi#ResourceNotFoundException":
|
|
1100
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1101
|
-
case "ThrottlingException":
|
|
1102
|
-
case "com.amazonaws.b2bi#ThrottlingException":
|
|
1103
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1104
|
-
case "ValidationException":
|
|
1105
|
-
case "com.amazonaws.b2bi#ValidationException":
|
|
1106
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1107
|
-
default:
|
|
1108
|
-
const parsedBody = parsedOutput.body;
|
|
1109
|
-
return throwDefaultError({
|
|
1110
|
-
output,
|
|
1111
|
-
parsedBody,
|
|
1112
|
-
errorCode
|
|
1113
|
-
});
|
|
1114
|
-
}
|
|
1115
|
-
}, "de_GetProfileCommandError");
|
|
1116
739
|
var de_GetTransformerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1117
740
|
if (output.statusCode >= 300) {
|
|
1118
|
-
return
|
|
741
|
+
return de_CommandError(output, context);
|
|
1119
742
|
}
|
|
1120
743
|
const data = await parseBody(output.body, context);
|
|
1121
744
|
let contents = {};
|
|
@@ -1126,40 +749,9 @@ var de_GetTransformerCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1126
749
|
};
|
|
1127
750
|
return response;
|
|
1128
751
|
}, "de_GetTransformerCommand");
|
|
1129
|
-
var de_GetTransformerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1130
|
-
const parsedOutput = {
|
|
1131
|
-
...output,
|
|
1132
|
-
body: await parseErrorBody(output.body, context)
|
|
1133
|
-
};
|
|
1134
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1135
|
-
switch (errorCode) {
|
|
1136
|
-
case "AccessDeniedException":
|
|
1137
|
-
case "com.amazonaws.b2bi#AccessDeniedException":
|
|
1138
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1139
|
-
case "InternalServerException":
|
|
1140
|
-
case "com.amazonaws.b2bi#InternalServerException":
|
|
1141
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1142
|
-
case "ResourceNotFoundException":
|
|
1143
|
-
case "com.amazonaws.b2bi#ResourceNotFoundException":
|
|
1144
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1145
|
-
case "ThrottlingException":
|
|
1146
|
-
case "com.amazonaws.b2bi#ThrottlingException":
|
|
1147
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1148
|
-
case "ValidationException":
|
|
1149
|
-
case "com.amazonaws.b2bi#ValidationException":
|
|
1150
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1151
|
-
default:
|
|
1152
|
-
const parsedBody = parsedOutput.body;
|
|
1153
|
-
return throwDefaultError({
|
|
1154
|
-
output,
|
|
1155
|
-
parsedBody,
|
|
1156
|
-
errorCode
|
|
1157
|
-
});
|
|
1158
|
-
}
|
|
1159
|
-
}, "de_GetTransformerCommandError");
|
|
1160
752
|
var de_GetTransformerJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1161
753
|
if (output.statusCode >= 300) {
|
|
1162
|
-
return
|
|
754
|
+
return de_CommandError(output, context);
|
|
1163
755
|
}
|
|
1164
756
|
const data = await parseBody(output.body, context);
|
|
1165
757
|
let contents = {};
|
|
@@ -1170,40 +762,9 @@ var de_GetTransformerJobCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1170
762
|
};
|
|
1171
763
|
return response;
|
|
1172
764
|
}, "de_GetTransformerJobCommand");
|
|
1173
|
-
var de_GetTransformerJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1174
|
-
const parsedOutput = {
|
|
1175
|
-
...output,
|
|
1176
|
-
body: await parseErrorBody(output.body, context)
|
|
1177
|
-
};
|
|
1178
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1179
|
-
switch (errorCode) {
|
|
1180
|
-
case "AccessDeniedException":
|
|
1181
|
-
case "com.amazonaws.b2bi#AccessDeniedException":
|
|
1182
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1183
|
-
case "InternalServerException":
|
|
1184
|
-
case "com.amazonaws.b2bi#InternalServerException":
|
|
1185
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1186
|
-
case "ResourceNotFoundException":
|
|
1187
|
-
case "com.amazonaws.b2bi#ResourceNotFoundException":
|
|
1188
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1189
|
-
case "ThrottlingException":
|
|
1190
|
-
case "com.amazonaws.b2bi#ThrottlingException":
|
|
1191
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1192
|
-
case "ValidationException":
|
|
1193
|
-
case "com.amazonaws.b2bi#ValidationException":
|
|
1194
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1195
|
-
default:
|
|
1196
|
-
const parsedBody = parsedOutput.body;
|
|
1197
|
-
return throwDefaultError({
|
|
1198
|
-
output,
|
|
1199
|
-
parsedBody,
|
|
1200
|
-
errorCode
|
|
1201
|
-
});
|
|
1202
|
-
}
|
|
1203
|
-
}, "de_GetTransformerJobCommandError");
|
|
1204
765
|
var de_ListCapabilitiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1205
766
|
if (output.statusCode >= 300) {
|
|
1206
|
-
return
|
|
767
|
+
return de_CommandError(output, context);
|
|
1207
768
|
}
|
|
1208
769
|
const data = await parseBody(output.body, context);
|
|
1209
770
|
let contents = {};
|
|
@@ -1214,22 +775,9 @@ var de_ListCapabilitiesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1214
775
|
};
|
|
1215
776
|
return response;
|
|
1216
777
|
}, "de_ListCapabilitiesCommand");
|
|
1217
|
-
var de_ListCapabilitiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1218
|
-
const parsedOutput = {
|
|
1219
|
-
...output,
|
|
1220
|
-
body: await parseErrorBody(output.body, context)
|
|
1221
|
-
};
|
|
1222
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1223
|
-
const parsedBody = parsedOutput.body;
|
|
1224
|
-
return throwDefaultError({
|
|
1225
|
-
output,
|
|
1226
|
-
parsedBody,
|
|
1227
|
-
errorCode
|
|
1228
|
-
});
|
|
1229
|
-
}, "de_ListCapabilitiesCommandError");
|
|
1230
778
|
var de_ListPartnershipsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1231
779
|
if (output.statusCode >= 300) {
|
|
1232
|
-
return
|
|
780
|
+
return de_CommandError(output, context);
|
|
1233
781
|
}
|
|
1234
782
|
const data = await parseBody(output.body, context);
|
|
1235
783
|
let contents = {};
|
|
@@ -1240,40 +788,9 @@ var de_ListPartnershipsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1240
788
|
};
|
|
1241
789
|
return response;
|
|
1242
790
|
}, "de_ListPartnershipsCommand");
|
|
1243
|
-
var de_ListPartnershipsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1244
|
-
const parsedOutput = {
|
|
1245
|
-
...output,
|
|
1246
|
-
body: await parseErrorBody(output.body, context)
|
|
1247
|
-
};
|
|
1248
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1249
|
-
switch (errorCode) {
|
|
1250
|
-
case "AccessDeniedException":
|
|
1251
|
-
case "com.amazonaws.b2bi#AccessDeniedException":
|
|
1252
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1253
|
-
case "InternalServerException":
|
|
1254
|
-
case "com.amazonaws.b2bi#InternalServerException":
|
|
1255
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1256
|
-
case "ResourceNotFoundException":
|
|
1257
|
-
case "com.amazonaws.b2bi#ResourceNotFoundException":
|
|
1258
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1259
|
-
case "ThrottlingException":
|
|
1260
|
-
case "com.amazonaws.b2bi#ThrottlingException":
|
|
1261
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1262
|
-
case "ValidationException":
|
|
1263
|
-
case "com.amazonaws.b2bi#ValidationException":
|
|
1264
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1265
|
-
default:
|
|
1266
|
-
const parsedBody = parsedOutput.body;
|
|
1267
|
-
return throwDefaultError({
|
|
1268
|
-
output,
|
|
1269
|
-
parsedBody,
|
|
1270
|
-
errorCode
|
|
1271
|
-
});
|
|
1272
|
-
}
|
|
1273
|
-
}, "de_ListPartnershipsCommandError");
|
|
1274
791
|
var de_ListProfilesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1275
792
|
if (output.statusCode >= 300) {
|
|
1276
|
-
return
|
|
793
|
+
return de_CommandError(output, context);
|
|
1277
794
|
}
|
|
1278
795
|
const data = await parseBody(output.body, context);
|
|
1279
796
|
let contents = {};
|
|
@@ -1284,60 +801,22 @@ var de_ListProfilesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1284
801
|
};
|
|
1285
802
|
return response;
|
|
1286
803
|
}, "de_ListProfilesCommand");
|
|
1287
|
-
var de_ListProfilesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1288
|
-
const parsedOutput = {
|
|
1289
|
-
...output,
|
|
1290
|
-
body: await parseErrorBody(output.body, context)
|
|
1291
|
-
};
|
|
1292
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1293
|
-
const parsedBody = parsedOutput.body;
|
|
1294
|
-
return throwDefaultError({
|
|
1295
|
-
output,
|
|
1296
|
-
parsedBody,
|
|
1297
|
-
errorCode
|
|
1298
|
-
});
|
|
1299
|
-
}, "de_ListProfilesCommandError");
|
|
1300
804
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1301
805
|
if (output.statusCode >= 300) {
|
|
1302
|
-
return
|
|
1303
|
-
}
|
|
1304
|
-
const data = await parseBody(output.body, context);
|
|
1305
|
-
let contents = {};
|
|
1306
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1307
|
-
const response = {
|
|
1308
|
-
$metadata: deserializeMetadata(output),
|
|
1309
|
-
...contents
|
|
1310
|
-
};
|
|
1311
|
-
return response;
|
|
1312
|
-
}, "de_ListTagsForResourceCommand");
|
|
1313
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1314
|
-
const parsedOutput = {
|
|
1315
|
-
...output,
|
|
1316
|
-
body: await parseErrorBody(output.body, context)
|
|
1317
|
-
};
|
|
1318
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1319
|
-
switch (errorCode) {
|
|
1320
|
-
case "InternalServerException":
|
|
1321
|
-
case "com.amazonaws.b2bi#InternalServerException":
|
|
1322
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1323
|
-
case "ResourceNotFoundException":
|
|
1324
|
-
case "com.amazonaws.b2bi#ResourceNotFoundException":
|
|
1325
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1326
|
-
case "ValidationException":
|
|
1327
|
-
case "com.amazonaws.b2bi#ValidationException":
|
|
1328
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1329
|
-
default:
|
|
1330
|
-
const parsedBody = parsedOutput.body;
|
|
1331
|
-
return throwDefaultError({
|
|
1332
|
-
output,
|
|
1333
|
-
parsedBody,
|
|
1334
|
-
errorCode
|
|
1335
|
-
});
|
|
806
|
+
return de_CommandError(output, context);
|
|
1336
807
|
}
|
|
1337
|
-
|
|
808
|
+
const data = await parseBody(output.body, context);
|
|
809
|
+
let contents = {};
|
|
810
|
+
contents = (0, import_smithy_client._json)(data);
|
|
811
|
+
const response = {
|
|
812
|
+
$metadata: deserializeMetadata(output),
|
|
813
|
+
...contents
|
|
814
|
+
};
|
|
815
|
+
return response;
|
|
816
|
+
}, "de_ListTagsForResourceCommand");
|
|
1338
817
|
var de_ListTransformersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1339
818
|
if (output.statusCode >= 300) {
|
|
1340
|
-
return
|
|
819
|
+
return de_CommandError(output, context);
|
|
1341
820
|
}
|
|
1342
821
|
const data = await parseBody(output.body, context);
|
|
1343
822
|
let contents = {};
|
|
@@ -1348,22 +827,9 @@ var de_ListTransformersCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1348
827
|
};
|
|
1349
828
|
return response;
|
|
1350
829
|
}, "de_ListTransformersCommand");
|
|
1351
|
-
var de_ListTransformersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1352
|
-
const parsedOutput = {
|
|
1353
|
-
...output,
|
|
1354
|
-
body: await parseErrorBody(output.body, context)
|
|
1355
|
-
};
|
|
1356
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1357
|
-
const parsedBody = parsedOutput.body;
|
|
1358
|
-
return throwDefaultError({
|
|
1359
|
-
output,
|
|
1360
|
-
parsedBody,
|
|
1361
|
-
errorCode
|
|
1362
|
-
});
|
|
1363
|
-
}, "de_ListTransformersCommandError");
|
|
1364
830
|
var de_StartTransformerJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1365
831
|
if (output.statusCode >= 300) {
|
|
1366
|
-
return
|
|
832
|
+
return de_CommandError(output, context);
|
|
1367
833
|
}
|
|
1368
834
|
const data = await parseBody(output.body, context);
|
|
1369
835
|
let contents = {};
|
|
@@ -1374,40 +840,9 @@ var de_StartTransformerJobCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1374
840
|
};
|
|
1375
841
|
return response;
|
|
1376
842
|
}, "de_StartTransformerJobCommand");
|
|
1377
|
-
var de_StartTransformerJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1378
|
-
const parsedOutput = {
|
|
1379
|
-
...output,
|
|
1380
|
-
body: await parseErrorBody(output.body, context)
|
|
1381
|
-
};
|
|
1382
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1383
|
-
switch (errorCode) {
|
|
1384
|
-
case "AccessDeniedException":
|
|
1385
|
-
case "com.amazonaws.b2bi#AccessDeniedException":
|
|
1386
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1387
|
-
case "InternalServerException":
|
|
1388
|
-
case "com.amazonaws.b2bi#InternalServerException":
|
|
1389
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1390
|
-
case "ResourceNotFoundException":
|
|
1391
|
-
case "com.amazonaws.b2bi#ResourceNotFoundException":
|
|
1392
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1393
|
-
case "ThrottlingException":
|
|
1394
|
-
case "com.amazonaws.b2bi#ThrottlingException":
|
|
1395
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1396
|
-
case "ValidationException":
|
|
1397
|
-
case "com.amazonaws.b2bi#ValidationException":
|
|
1398
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1399
|
-
default:
|
|
1400
|
-
const parsedBody = parsedOutput.body;
|
|
1401
|
-
return throwDefaultError({
|
|
1402
|
-
output,
|
|
1403
|
-
parsedBody,
|
|
1404
|
-
errorCode
|
|
1405
|
-
});
|
|
1406
|
-
}
|
|
1407
|
-
}, "de_StartTransformerJobCommandError");
|
|
1408
843
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1409
844
|
if (output.statusCode >= 300) {
|
|
1410
|
-
return
|
|
845
|
+
return de_CommandError(output, context);
|
|
1411
846
|
}
|
|
1412
847
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1413
848
|
const response = {
|
|
@@ -1415,37 +850,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1415
850
|
};
|
|
1416
851
|
return response;
|
|
1417
852
|
}, "de_TagResourceCommand");
|
|
1418
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1419
|
-
const parsedOutput = {
|
|
1420
|
-
...output,
|
|
1421
|
-
body: await parseErrorBody(output.body, context)
|
|
1422
|
-
};
|
|
1423
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1424
|
-
switch (errorCode) {
|
|
1425
|
-
case "InternalServerException":
|
|
1426
|
-
case "com.amazonaws.b2bi#InternalServerException":
|
|
1427
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1428
|
-
case "ResourceNotFoundException":
|
|
1429
|
-
case "com.amazonaws.b2bi#ResourceNotFoundException":
|
|
1430
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1431
|
-
case "ThrottlingException":
|
|
1432
|
-
case "com.amazonaws.b2bi#ThrottlingException":
|
|
1433
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1434
|
-
case "ValidationException":
|
|
1435
|
-
case "com.amazonaws.b2bi#ValidationException":
|
|
1436
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1437
|
-
default:
|
|
1438
|
-
const parsedBody = parsedOutput.body;
|
|
1439
|
-
return throwDefaultError({
|
|
1440
|
-
output,
|
|
1441
|
-
parsedBody,
|
|
1442
|
-
errorCode
|
|
1443
|
-
});
|
|
1444
|
-
}
|
|
1445
|
-
}, "de_TagResourceCommandError");
|
|
1446
853
|
var de_TestMappingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1447
854
|
if (output.statusCode >= 300) {
|
|
1448
|
-
return
|
|
855
|
+
return de_CommandError(output, context);
|
|
1449
856
|
}
|
|
1450
857
|
const data = await parseBody(output.body, context);
|
|
1451
858
|
let contents = {};
|
|
@@ -1456,40 +863,9 @@ var de_TestMappingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1456
863
|
};
|
|
1457
864
|
return response;
|
|
1458
865
|
}, "de_TestMappingCommand");
|
|
1459
|
-
var de_TestMappingCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1460
|
-
const parsedOutput = {
|
|
1461
|
-
...output,
|
|
1462
|
-
body: await parseErrorBody(output.body, context)
|
|
1463
|
-
};
|
|
1464
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1465
|
-
switch (errorCode) {
|
|
1466
|
-
case "AccessDeniedException":
|
|
1467
|
-
case "com.amazonaws.b2bi#AccessDeniedException":
|
|
1468
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1469
|
-
case "InternalServerException":
|
|
1470
|
-
case "com.amazonaws.b2bi#InternalServerException":
|
|
1471
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1472
|
-
case "ResourceNotFoundException":
|
|
1473
|
-
case "com.amazonaws.b2bi#ResourceNotFoundException":
|
|
1474
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1475
|
-
case "ThrottlingException":
|
|
1476
|
-
case "com.amazonaws.b2bi#ThrottlingException":
|
|
1477
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1478
|
-
case "ValidationException":
|
|
1479
|
-
case "com.amazonaws.b2bi#ValidationException":
|
|
1480
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1481
|
-
default:
|
|
1482
|
-
const parsedBody = parsedOutput.body;
|
|
1483
|
-
return throwDefaultError({
|
|
1484
|
-
output,
|
|
1485
|
-
parsedBody,
|
|
1486
|
-
errorCode
|
|
1487
|
-
});
|
|
1488
|
-
}
|
|
1489
|
-
}, "de_TestMappingCommandError");
|
|
1490
866
|
var de_TestParsingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1491
867
|
if (output.statusCode >= 300) {
|
|
1492
|
-
return
|
|
868
|
+
return de_CommandError(output, context);
|
|
1493
869
|
}
|
|
1494
870
|
const data = await parseBody(output.body, context);
|
|
1495
871
|
let contents = {};
|
|
@@ -1500,40 +876,9 @@ var de_TestParsingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1500
876
|
};
|
|
1501
877
|
return response;
|
|
1502
878
|
}, "de_TestParsingCommand");
|
|
1503
|
-
var de_TestParsingCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1504
|
-
const parsedOutput = {
|
|
1505
|
-
...output,
|
|
1506
|
-
body: await parseErrorBody(output.body, context)
|
|
1507
|
-
};
|
|
1508
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1509
|
-
switch (errorCode) {
|
|
1510
|
-
case "AccessDeniedException":
|
|
1511
|
-
case "com.amazonaws.b2bi#AccessDeniedException":
|
|
1512
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1513
|
-
case "InternalServerException":
|
|
1514
|
-
case "com.amazonaws.b2bi#InternalServerException":
|
|
1515
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1516
|
-
case "ResourceNotFoundException":
|
|
1517
|
-
case "com.amazonaws.b2bi#ResourceNotFoundException":
|
|
1518
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1519
|
-
case "ThrottlingException":
|
|
1520
|
-
case "com.amazonaws.b2bi#ThrottlingException":
|
|
1521
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1522
|
-
case "ValidationException":
|
|
1523
|
-
case "com.amazonaws.b2bi#ValidationException":
|
|
1524
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1525
|
-
default:
|
|
1526
|
-
const parsedBody = parsedOutput.body;
|
|
1527
|
-
return throwDefaultError({
|
|
1528
|
-
output,
|
|
1529
|
-
parsedBody,
|
|
1530
|
-
errorCode
|
|
1531
|
-
});
|
|
1532
|
-
}
|
|
1533
|
-
}, "de_TestParsingCommandError");
|
|
1534
879
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1535
880
|
if (output.statusCode >= 300) {
|
|
1536
|
-
return
|
|
881
|
+
return de_CommandError(output, context);
|
|
1537
882
|
}
|
|
1538
883
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1539
884
|
const response = {
|
|
@@ -1541,34 +886,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1541
886
|
};
|
|
1542
887
|
return response;
|
|
1543
888
|
}, "de_UntagResourceCommand");
|
|
1544
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1545
|
-
const parsedOutput = {
|
|
1546
|
-
...output,
|
|
1547
|
-
body: await parseErrorBody(output.body, context)
|
|
1548
|
-
};
|
|
1549
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1550
|
-
switch (errorCode) {
|
|
1551
|
-
case "InternalServerException":
|
|
1552
|
-
case "com.amazonaws.b2bi#InternalServerException":
|
|
1553
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1554
|
-
case "ResourceNotFoundException":
|
|
1555
|
-
case "com.amazonaws.b2bi#ResourceNotFoundException":
|
|
1556
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1557
|
-
case "ValidationException":
|
|
1558
|
-
case "com.amazonaws.b2bi#ValidationException":
|
|
1559
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1560
|
-
default:
|
|
1561
|
-
const parsedBody = parsedOutput.body;
|
|
1562
|
-
return throwDefaultError({
|
|
1563
|
-
output,
|
|
1564
|
-
parsedBody,
|
|
1565
|
-
errorCode
|
|
1566
|
-
});
|
|
1567
|
-
}
|
|
1568
|
-
}, "de_UntagResourceCommandError");
|
|
1569
889
|
var de_UpdateCapabilityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1570
890
|
if (output.statusCode >= 300) {
|
|
1571
|
-
return
|
|
891
|
+
return de_CommandError(output, context);
|
|
1572
892
|
}
|
|
1573
893
|
const data = await parseBody(output.body, context);
|
|
1574
894
|
let contents = {};
|
|
@@ -1579,46 +899,9 @@ var de_UpdateCapabilityCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1579
899
|
};
|
|
1580
900
|
return response;
|
|
1581
901
|
}, "de_UpdateCapabilityCommand");
|
|
1582
|
-
var de_UpdateCapabilityCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1583
|
-
const parsedOutput = {
|
|
1584
|
-
...output,
|
|
1585
|
-
body: await parseErrorBody(output.body, context)
|
|
1586
|
-
};
|
|
1587
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1588
|
-
switch (errorCode) {
|
|
1589
|
-
case "AccessDeniedException":
|
|
1590
|
-
case "com.amazonaws.b2bi#AccessDeniedException":
|
|
1591
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1592
|
-
case "ConflictException":
|
|
1593
|
-
case "com.amazonaws.b2bi#ConflictException":
|
|
1594
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1595
|
-
case "InternalServerException":
|
|
1596
|
-
case "com.amazonaws.b2bi#InternalServerException":
|
|
1597
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1598
|
-
case "ResourceNotFoundException":
|
|
1599
|
-
case "com.amazonaws.b2bi#ResourceNotFoundException":
|
|
1600
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1601
|
-
case "ServiceQuotaExceededException":
|
|
1602
|
-
case "com.amazonaws.b2bi#ServiceQuotaExceededException":
|
|
1603
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1604
|
-
case "ThrottlingException":
|
|
1605
|
-
case "com.amazonaws.b2bi#ThrottlingException":
|
|
1606
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1607
|
-
case "ValidationException":
|
|
1608
|
-
case "com.amazonaws.b2bi#ValidationException":
|
|
1609
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1610
|
-
default:
|
|
1611
|
-
const parsedBody = parsedOutput.body;
|
|
1612
|
-
return throwDefaultError({
|
|
1613
|
-
output,
|
|
1614
|
-
parsedBody,
|
|
1615
|
-
errorCode
|
|
1616
|
-
});
|
|
1617
|
-
}
|
|
1618
|
-
}, "de_UpdateCapabilityCommandError");
|
|
1619
902
|
var de_UpdatePartnershipCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1620
903
|
if (output.statusCode >= 300) {
|
|
1621
|
-
return
|
|
904
|
+
return de_CommandError(output, context);
|
|
1622
905
|
}
|
|
1623
906
|
const data = await parseBody(output.body, context);
|
|
1624
907
|
let contents = {};
|
|
@@ -1629,46 +912,9 @@ var de_UpdatePartnershipCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1629
912
|
};
|
|
1630
913
|
return response;
|
|
1631
914
|
}, "de_UpdatePartnershipCommand");
|
|
1632
|
-
var de_UpdatePartnershipCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1633
|
-
const parsedOutput = {
|
|
1634
|
-
...output,
|
|
1635
|
-
body: await parseErrorBody(output.body, context)
|
|
1636
|
-
};
|
|
1637
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1638
|
-
switch (errorCode) {
|
|
1639
|
-
case "AccessDeniedException":
|
|
1640
|
-
case "com.amazonaws.b2bi#AccessDeniedException":
|
|
1641
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1642
|
-
case "ConflictException":
|
|
1643
|
-
case "com.amazonaws.b2bi#ConflictException":
|
|
1644
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1645
|
-
case "InternalServerException":
|
|
1646
|
-
case "com.amazonaws.b2bi#InternalServerException":
|
|
1647
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1648
|
-
case "ResourceNotFoundException":
|
|
1649
|
-
case "com.amazonaws.b2bi#ResourceNotFoundException":
|
|
1650
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1651
|
-
case "ServiceQuotaExceededException":
|
|
1652
|
-
case "com.amazonaws.b2bi#ServiceQuotaExceededException":
|
|
1653
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1654
|
-
case "ThrottlingException":
|
|
1655
|
-
case "com.amazonaws.b2bi#ThrottlingException":
|
|
1656
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1657
|
-
case "ValidationException":
|
|
1658
|
-
case "com.amazonaws.b2bi#ValidationException":
|
|
1659
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1660
|
-
default:
|
|
1661
|
-
const parsedBody = parsedOutput.body;
|
|
1662
|
-
return throwDefaultError({
|
|
1663
|
-
output,
|
|
1664
|
-
parsedBody,
|
|
1665
|
-
errorCode
|
|
1666
|
-
});
|
|
1667
|
-
}
|
|
1668
|
-
}, "de_UpdatePartnershipCommandError");
|
|
1669
915
|
var de_UpdateProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1670
916
|
if (output.statusCode >= 300) {
|
|
1671
|
-
return
|
|
917
|
+
return de_CommandError(output, context);
|
|
1672
918
|
}
|
|
1673
919
|
const data = await parseBody(output.body, context);
|
|
1674
920
|
let contents = {};
|
|
@@ -1679,46 +925,9 @@ var de_UpdateProfileCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1679
925
|
};
|
|
1680
926
|
return response;
|
|
1681
927
|
}, "de_UpdateProfileCommand");
|
|
1682
|
-
var de_UpdateProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1683
|
-
const parsedOutput = {
|
|
1684
|
-
...output,
|
|
1685
|
-
body: await parseErrorBody(output.body, context)
|
|
1686
|
-
};
|
|
1687
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1688
|
-
switch (errorCode) {
|
|
1689
|
-
case "AccessDeniedException":
|
|
1690
|
-
case "com.amazonaws.b2bi#AccessDeniedException":
|
|
1691
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1692
|
-
case "ConflictException":
|
|
1693
|
-
case "com.amazonaws.b2bi#ConflictException":
|
|
1694
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1695
|
-
case "InternalServerException":
|
|
1696
|
-
case "com.amazonaws.b2bi#InternalServerException":
|
|
1697
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1698
|
-
case "ResourceNotFoundException":
|
|
1699
|
-
case "com.amazonaws.b2bi#ResourceNotFoundException":
|
|
1700
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1701
|
-
case "ServiceQuotaExceededException":
|
|
1702
|
-
case "com.amazonaws.b2bi#ServiceQuotaExceededException":
|
|
1703
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1704
|
-
case "ThrottlingException":
|
|
1705
|
-
case "com.amazonaws.b2bi#ThrottlingException":
|
|
1706
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1707
|
-
case "ValidationException":
|
|
1708
|
-
case "com.amazonaws.b2bi#ValidationException":
|
|
1709
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1710
|
-
default:
|
|
1711
|
-
const parsedBody = parsedOutput.body;
|
|
1712
|
-
return throwDefaultError({
|
|
1713
|
-
output,
|
|
1714
|
-
parsedBody,
|
|
1715
|
-
errorCode
|
|
1716
|
-
});
|
|
1717
|
-
}
|
|
1718
|
-
}, "de_UpdateProfileCommandError");
|
|
1719
928
|
var de_UpdateTransformerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1720
929
|
if (output.statusCode >= 300) {
|
|
1721
|
-
return
|
|
930
|
+
return de_CommandError(output, context);
|
|
1722
931
|
}
|
|
1723
932
|
const data = await parseBody(output.body, context);
|
|
1724
933
|
let contents = {};
|
|
@@ -1729,7 +938,7 @@ var de_UpdateTransformerCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1729
938
|
};
|
|
1730
939
|
return response;
|
|
1731
940
|
}, "de_UpdateTransformerCommand");
|
|
1732
|
-
var
|
|
941
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1733
942
|
const parsedOutput = {
|
|
1734
943
|
...output,
|
|
1735
944
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1765,7 +974,7 @@ var de_UpdateTransformerCommandError = /* @__PURE__ */ __name(async (output, con
|
|
|
1765
974
|
errorCode
|
|
1766
975
|
});
|
|
1767
976
|
}
|
|
1768
|
-
}, "
|
|
977
|
+
}, "de_CommandError");
|
|
1769
978
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1770
979
|
const body = parsedOutput.body;
|
|
1771
980
|
const deserialized = (0, import_smithy_client._json)(body);
|