@aws-sdk/client-appintegrations 3.504.0 → 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 +35 -643
- package/dist-es/protocols/Aws_restJson1.js +34 -642
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -614,7 +614,7 @@ var se_UpdateEventIntegrationCommand = /* @__PURE__ */ __name(async (input, cont
|
|
|
614
614
|
}, "se_UpdateEventIntegrationCommand");
|
|
615
615
|
var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
616
616
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
617
|
-
return
|
|
617
|
+
return de_CommandError(output, context);
|
|
618
618
|
}
|
|
619
619
|
const contents = (0, import_smithy_client.map)({
|
|
620
620
|
$metadata: deserializeMetadata(output)
|
|
@@ -627,46 +627,9 @@ var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
627
627
|
Object.assign(contents, doc);
|
|
628
628
|
return contents;
|
|
629
629
|
}, "de_CreateApplicationCommand");
|
|
630
|
-
var de_CreateApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
631
|
-
const parsedOutput = {
|
|
632
|
-
...output,
|
|
633
|
-
body: await parseErrorBody(output.body, context)
|
|
634
|
-
};
|
|
635
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
636
|
-
switch (errorCode) {
|
|
637
|
-
case "AccessDeniedException":
|
|
638
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
639
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
640
|
-
case "DuplicateResourceException":
|
|
641
|
-
case "com.amazonaws.appintegrations#DuplicateResourceException":
|
|
642
|
-
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
643
|
-
case "InternalServiceError":
|
|
644
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
645
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
646
|
-
case "InvalidRequestException":
|
|
647
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
648
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
649
|
-
case "ResourceQuotaExceededException":
|
|
650
|
-
case "com.amazonaws.appintegrations#ResourceQuotaExceededException":
|
|
651
|
-
throw await de_ResourceQuotaExceededExceptionRes(parsedOutput, context);
|
|
652
|
-
case "ThrottlingException":
|
|
653
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
654
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
655
|
-
case "UnsupportedOperationException":
|
|
656
|
-
case "com.amazonaws.appintegrations#UnsupportedOperationException":
|
|
657
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
658
|
-
default:
|
|
659
|
-
const parsedBody = parsedOutput.body;
|
|
660
|
-
return throwDefaultError({
|
|
661
|
-
output,
|
|
662
|
-
parsedBody,
|
|
663
|
-
errorCode
|
|
664
|
-
});
|
|
665
|
-
}
|
|
666
|
-
}, "de_CreateApplicationCommandError");
|
|
667
630
|
var de_CreateDataIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
668
631
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
669
|
-
return
|
|
632
|
+
return de_CommandError(output, context);
|
|
670
633
|
}
|
|
671
634
|
const contents = (0, import_smithy_client.map)({
|
|
672
635
|
$metadata: deserializeMetadata(output)
|
|
@@ -688,43 +651,9 @@ var de_CreateDataIntegrationCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
688
651
|
Object.assign(contents, doc);
|
|
689
652
|
return contents;
|
|
690
653
|
}, "de_CreateDataIntegrationCommand");
|
|
691
|
-
var de_CreateDataIntegrationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
692
|
-
const parsedOutput = {
|
|
693
|
-
...output,
|
|
694
|
-
body: await parseErrorBody(output.body, context)
|
|
695
|
-
};
|
|
696
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
697
|
-
switch (errorCode) {
|
|
698
|
-
case "AccessDeniedException":
|
|
699
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
700
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
701
|
-
case "DuplicateResourceException":
|
|
702
|
-
case "com.amazonaws.appintegrations#DuplicateResourceException":
|
|
703
|
-
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
704
|
-
case "InternalServiceError":
|
|
705
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
706
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
707
|
-
case "InvalidRequestException":
|
|
708
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
709
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
710
|
-
case "ResourceQuotaExceededException":
|
|
711
|
-
case "com.amazonaws.appintegrations#ResourceQuotaExceededException":
|
|
712
|
-
throw await de_ResourceQuotaExceededExceptionRes(parsedOutput, context);
|
|
713
|
-
case "ThrottlingException":
|
|
714
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
715
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
716
|
-
default:
|
|
717
|
-
const parsedBody = parsedOutput.body;
|
|
718
|
-
return throwDefaultError({
|
|
719
|
-
output,
|
|
720
|
-
parsedBody,
|
|
721
|
-
errorCode
|
|
722
|
-
});
|
|
723
|
-
}
|
|
724
|
-
}, "de_CreateDataIntegrationCommandError");
|
|
725
654
|
var de_CreateEventIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
726
655
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
727
|
-
return
|
|
656
|
+
return de_CommandError(output, context);
|
|
728
657
|
}
|
|
729
658
|
const contents = (0, import_smithy_client.map)({
|
|
730
659
|
$metadata: deserializeMetadata(output)
|
|
@@ -736,43 +665,9 @@ var de_CreateEventIntegrationCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
736
665
|
Object.assign(contents, doc);
|
|
737
666
|
return contents;
|
|
738
667
|
}, "de_CreateEventIntegrationCommand");
|
|
739
|
-
var de_CreateEventIntegrationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
740
|
-
const parsedOutput = {
|
|
741
|
-
...output,
|
|
742
|
-
body: await parseErrorBody(output.body, context)
|
|
743
|
-
};
|
|
744
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
745
|
-
switch (errorCode) {
|
|
746
|
-
case "AccessDeniedException":
|
|
747
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
748
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
749
|
-
case "DuplicateResourceException":
|
|
750
|
-
case "com.amazonaws.appintegrations#DuplicateResourceException":
|
|
751
|
-
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
752
|
-
case "InternalServiceError":
|
|
753
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
754
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
755
|
-
case "InvalidRequestException":
|
|
756
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
757
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
758
|
-
case "ResourceQuotaExceededException":
|
|
759
|
-
case "com.amazonaws.appintegrations#ResourceQuotaExceededException":
|
|
760
|
-
throw await de_ResourceQuotaExceededExceptionRes(parsedOutput, context);
|
|
761
|
-
case "ThrottlingException":
|
|
762
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
763
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
764
|
-
default:
|
|
765
|
-
const parsedBody = parsedOutput.body;
|
|
766
|
-
return throwDefaultError({
|
|
767
|
-
output,
|
|
768
|
-
parsedBody,
|
|
769
|
-
errorCode
|
|
770
|
-
});
|
|
771
|
-
}
|
|
772
|
-
}, "de_CreateEventIntegrationCommandError");
|
|
773
668
|
var de_DeleteApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
774
669
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
775
|
-
return
|
|
670
|
+
return de_CommandError(output, context);
|
|
776
671
|
}
|
|
777
672
|
const contents = (0, import_smithy_client.map)({
|
|
778
673
|
$metadata: deserializeMetadata(output)
|
|
@@ -780,40 +675,9 @@ var de_DeleteApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
780
675
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
781
676
|
return contents;
|
|
782
677
|
}, "de_DeleteApplicationCommand");
|
|
783
|
-
var de_DeleteApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
784
|
-
const parsedOutput = {
|
|
785
|
-
...output,
|
|
786
|
-
body: await parseErrorBody(output.body, context)
|
|
787
|
-
};
|
|
788
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
789
|
-
switch (errorCode) {
|
|
790
|
-
case "AccessDeniedException":
|
|
791
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
792
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
793
|
-
case "InternalServiceError":
|
|
794
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
795
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
796
|
-
case "InvalidRequestException":
|
|
797
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
798
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
799
|
-
case "ResourceNotFoundException":
|
|
800
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
801
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
802
|
-
case "ThrottlingException":
|
|
803
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
804
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
805
|
-
default:
|
|
806
|
-
const parsedBody = parsedOutput.body;
|
|
807
|
-
return throwDefaultError({
|
|
808
|
-
output,
|
|
809
|
-
parsedBody,
|
|
810
|
-
errorCode
|
|
811
|
-
});
|
|
812
|
-
}
|
|
813
|
-
}, "de_DeleteApplicationCommandError");
|
|
814
678
|
var de_DeleteDataIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
815
679
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
816
|
-
return
|
|
680
|
+
return de_CommandError(output, context);
|
|
817
681
|
}
|
|
818
682
|
const contents = (0, import_smithy_client.map)({
|
|
819
683
|
$metadata: deserializeMetadata(output)
|
|
@@ -821,40 +685,9 @@ var de_DeleteDataIntegrationCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
821
685
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
822
686
|
return contents;
|
|
823
687
|
}, "de_DeleteDataIntegrationCommand");
|
|
824
|
-
var de_DeleteDataIntegrationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
825
|
-
const parsedOutput = {
|
|
826
|
-
...output,
|
|
827
|
-
body: await parseErrorBody(output.body, context)
|
|
828
|
-
};
|
|
829
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
830
|
-
switch (errorCode) {
|
|
831
|
-
case "AccessDeniedException":
|
|
832
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
833
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
834
|
-
case "InternalServiceError":
|
|
835
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
836
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
837
|
-
case "InvalidRequestException":
|
|
838
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
839
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
840
|
-
case "ResourceNotFoundException":
|
|
841
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
842
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
843
|
-
case "ThrottlingException":
|
|
844
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
845
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
846
|
-
default:
|
|
847
|
-
const parsedBody = parsedOutput.body;
|
|
848
|
-
return throwDefaultError({
|
|
849
|
-
output,
|
|
850
|
-
parsedBody,
|
|
851
|
-
errorCode
|
|
852
|
-
});
|
|
853
|
-
}
|
|
854
|
-
}, "de_DeleteDataIntegrationCommandError");
|
|
855
688
|
var de_DeleteEventIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
856
689
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
857
|
-
return
|
|
690
|
+
return de_CommandError(output, context);
|
|
858
691
|
}
|
|
859
692
|
const contents = (0, import_smithy_client.map)({
|
|
860
693
|
$metadata: deserializeMetadata(output)
|
|
@@ -862,40 +695,9 @@ var de_DeleteEventIntegrationCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
862
695
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
863
696
|
return contents;
|
|
864
697
|
}, "de_DeleteEventIntegrationCommand");
|
|
865
|
-
var de_DeleteEventIntegrationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
866
|
-
const parsedOutput = {
|
|
867
|
-
...output,
|
|
868
|
-
body: await parseErrorBody(output.body, context)
|
|
869
|
-
};
|
|
870
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
871
|
-
switch (errorCode) {
|
|
872
|
-
case "AccessDeniedException":
|
|
873
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
874
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
875
|
-
case "InternalServiceError":
|
|
876
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
877
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
878
|
-
case "InvalidRequestException":
|
|
879
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
880
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
881
|
-
case "ResourceNotFoundException":
|
|
882
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
883
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
884
|
-
case "ThrottlingException":
|
|
885
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
886
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
887
|
-
default:
|
|
888
|
-
const parsedBody = parsedOutput.body;
|
|
889
|
-
return throwDefaultError({
|
|
890
|
-
output,
|
|
891
|
-
parsedBody,
|
|
892
|
-
errorCode
|
|
893
|
-
});
|
|
894
|
-
}
|
|
895
|
-
}, "de_DeleteEventIntegrationCommandError");
|
|
896
698
|
var de_GetApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
897
699
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
898
|
-
return
|
|
700
|
+
return de_CommandError(output, context);
|
|
899
701
|
}
|
|
900
702
|
const contents = (0, import_smithy_client.map)({
|
|
901
703
|
$metadata: deserializeMetadata(output)
|
|
@@ -918,40 +720,9 @@ var de_GetApplicationCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
918
720
|
Object.assign(contents, doc);
|
|
919
721
|
return contents;
|
|
920
722
|
}, "de_GetApplicationCommand");
|
|
921
|
-
var de_GetApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
922
|
-
const parsedOutput = {
|
|
923
|
-
...output,
|
|
924
|
-
body: await parseErrorBody(output.body, context)
|
|
925
|
-
};
|
|
926
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
927
|
-
switch (errorCode) {
|
|
928
|
-
case "AccessDeniedException":
|
|
929
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
930
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
931
|
-
case "InternalServiceError":
|
|
932
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
933
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
934
|
-
case "InvalidRequestException":
|
|
935
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
936
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
937
|
-
case "ResourceNotFoundException":
|
|
938
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
939
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
940
|
-
case "ThrottlingException":
|
|
941
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
942
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
943
|
-
default:
|
|
944
|
-
const parsedBody = parsedOutput.body;
|
|
945
|
-
return throwDefaultError({
|
|
946
|
-
output,
|
|
947
|
-
parsedBody,
|
|
948
|
-
errorCode
|
|
949
|
-
});
|
|
950
|
-
}
|
|
951
|
-
}, "de_GetApplicationCommandError");
|
|
952
723
|
var de_GetDataIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
953
724
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
954
|
-
return
|
|
725
|
+
return de_CommandError(output, context);
|
|
955
726
|
}
|
|
956
727
|
const contents = (0, import_smithy_client.map)({
|
|
957
728
|
$metadata: deserializeMetadata(output)
|
|
@@ -972,40 +743,9 @@ var de_GetDataIntegrationCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
972
743
|
Object.assign(contents, doc);
|
|
973
744
|
return contents;
|
|
974
745
|
}, "de_GetDataIntegrationCommand");
|
|
975
|
-
var de_GetDataIntegrationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
976
|
-
const parsedOutput = {
|
|
977
|
-
...output,
|
|
978
|
-
body: await parseErrorBody(output.body, context)
|
|
979
|
-
};
|
|
980
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
981
|
-
switch (errorCode) {
|
|
982
|
-
case "AccessDeniedException":
|
|
983
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
984
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
985
|
-
case "InternalServiceError":
|
|
986
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
987
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
988
|
-
case "InvalidRequestException":
|
|
989
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
990
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
991
|
-
case "ResourceNotFoundException":
|
|
992
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
993
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
994
|
-
case "ThrottlingException":
|
|
995
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
996
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
997
|
-
default:
|
|
998
|
-
const parsedBody = parsedOutput.body;
|
|
999
|
-
return throwDefaultError({
|
|
1000
|
-
output,
|
|
1001
|
-
parsedBody,
|
|
1002
|
-
errorCode
|
|
1003
|
-
});
|
|
1004
|
-
}
|
|
1005
|
-
}, "de_GetDataIntegrationCommandError");
|
|
1006
746
|
var de_GetEventIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1007
747
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1008
|
-
return
|
|
748
|
+
return de_CommandError(output, context);
|
|
1009
749
|
}
|
|
1010
750
|
const contents = (0, import_smithy_client.map)({
|
|
1011
751
|
$metadata: deserializeMetadata(output)
|
|
@@ -1022,40 +762,9 @@ var de_GetEventIntegrationCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1022
762
|
Object.assign(contents, doc);
|
|
1023
763
|
return contents;
|
|
1024
764
|
}, "de_GetEventIntegrationCommand");
|
|
1025
|
-
var de_GetEventIntegrationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1026
|
-
const parsedOutput = {
|
|
1027
|
-
...output,
|
|
1028
|
-
body: await parseErrorBody(output.body, context)
|
|
1029
|
-
};
|
|
1030
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1031
|
-
switch (errorCode) {
|
|
1032
|
-
case "AccessDeniedException":
|
|
1033
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
1034
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1035
|
-
case "InternalServiceError":
|
|
1036
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
1037
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1038
|
-
case "InvalidRequestException":
|
|
1039
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
1040
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1041
|
-
case "ResourceNotFoundException":
|
|
1042
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
1043
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1044
|
-
case "ThrottlingException":
|
|
1045
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
1046
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1047
|
-
default:
|
|
1048
|
-
const parsedBody = parsedOutput.body;
|
|
1049
|
-
return throwDefaultError({
|
|
1050
|
-
output,
|
|
1051
|
-
parsedBody,
|
|
1052
|
-
errorCode
|
|
1053
|
-
});
|
|
1054
|
-
}
|
|
1055
|
-
}, "de_GetEventIntegrationCommandError");
|
|
1056
765
|
var de_ListApplicationAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1057
766
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1058
|
-
return
|
|
767
|
+
return de_CommandError(output, context);
|
|
1059
768
|
}
|
|
1060
769
|
const contents = (0, import_smithy_client.map)({
|
|
1061
770
|
$metadata: deserializeMetadata(output)
|
|
@@ -1068,40 +777,9 @@ var de_ListApplicationAssociationsCommand = /* @__PURE__ */ __name(async (output
|
|
|
1068
777
|
Object.assign(contents, doc);
|
|
1069
778
|
return contents;
|
|
1070
779
|
}, "de_ListApplicationAssociationsCommand");
|
|
1071
|
-
var de_ListApplicationAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1072
|
-
const parsedOutput = {
|
|
1073
|
-
...output,
|
|
1074
|
-
body: await parseErrorBody(output.body, context)
|
|
1075
|
-
};
|
|
1076
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1077
|
-
switch (errorCode) {
|
|
1078
|
-
case "AccessDeniedException":
|
|
1079
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
1080
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1081
|
-
case "InternalServiceError":
|
|
1082
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
1083
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1084
|
-
case "InvalidRequestException":
|
|
1085
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
1086
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1087
|
-
case "ResourceNotFoundException":
|
|
1088
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
1089
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1090
|
-
case "ThrottlingException":
|
|
1091
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
1092
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1093
|
-
default:
|
|
1094
|
-
const parsedBody = parsedOutput.body;
|
|
1095
|
-
return throwDefaultError({
|
|
1096
|
-
output,
|
|
1097
|
-
parsedBody,
|
|
1098
|
-
errorCode
|
|
1099
|
-
});
|
|
1100
|
-
}
|
|
1101
|
-
}, "de_ListApplicationAssociationsCommandError");
|
|
1102
780
|
var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1103
781
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1104
|
-
return
|
|
782
|
+
return de_CommandError(output, context);
|
|
1105
783
|
}
|
|
1106
784
|
const contents = (0, import_smithy_client.map)({
|
|
1107
785
|
$metadata: deserializeMetadata(output)
|
|
@@ -1114,37 +792,9 @@ var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1114
792
|
Object.assign(contents, doc);
|
|
1115
793
|
return contents;
|
|
1116
794
|
}, "de_ListApplicationsCommand");
|
|
1117
|
-
var de_ListApplicationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1118
|
-
const parsedOutput = {
|
|
1119
|
-
...output,
|
|
1120
|
-
body: await parseErrorBody(output.body, context)
|
|
1121
|
-
};
|
|
1122
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1123
|
-
switch (errorCode) {
|
|
1124
|
-
case "AccessDeniedException":
|
|
1125
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
1126
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1127
|
-
case "InternalServiceError":
|
|
1128
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
1129
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1130
|
-
case "InvalidRequestException":
|
|
1131
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
1132
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1133
|
-
case "ThrottlingException":
|
|
1134
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
1135
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1136
|
-
default:
|
|
1137
|
-
const parsedBody = parsedOutput.body;
|
|
1138
|
-
return throwDefaultError({
|
|
1139
|
-
output,
|
|
1140
|
-
parsedBody,
|
|
1141
|
-
errorCode
|
|
1142
|
-
});
|
|
1143
|
-
}
|
|
1144
|
-
}, "de_ListApplicationsCommandError");
|
|
1145
795
|
var de_ListDataIntegrationAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1146
796
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1147
|
-
return
|
|
797
|
+
return de_CommandError(output, context);
|
|
1148
798
|
}
|
|
1149
799
|
const contents = (0, import_smithy_client.map)({
|
|
1150
800
|
$metadata: deserializeMetadata(output)
|
|
@@ -1157,40 +807,9 @@ var de_ListDataIntegrationAssociationsCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1157
807
|
Object.assign(contents, doc);
|
|
1158
808
|
return contents;
|
|
1159
809
|
}, "de_ListDataIntegrationAssociationsCommand");
|
|
1160
|
-
var de_ListDataIntegrationAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1161
|
-
const parsedOutput = {
|
|
1162
|
-
...output,
|
|
1163
|
-
body: await parseErrorBody(output.body, context)
|
|
1164
|
-
};
|
|
1165
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1166
|
-
switch (errorCode) {
|
|
1167
|
-
case "AccessDeniedException":
|
|
1168
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
1169
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1170
|
-
case "InternalServiceError":
|
|
1171
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
1172
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1173
|
-
case "InvalidRequestException":
|
|
1174
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
1175
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1176
|
-
case "ResourceNotFoundException":
|
|
1177
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
1178
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1179
|
-
case "ThrottlingException":
|
|
1180
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
1181
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1182
|
-
default:
|
|
1183
|
-
const parsedBody = parsedOutput.body;
|
|
1184
|
-
return throwDefaultError({
|
|
1185
|
-
output,
|
|
1186
|
-
parsedBody,
|
|
1187
|
-
errorCode
|
|
1188
|
-
});
|
|
1189
|
-
}
|
|
1190
|
-
}, "de_ListDataIntegrationAssociationsCommandError");
|
|
1191
810
|
var de_ListDataIntegrationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1192
811
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1193
|
-
return
|
|
812
|
+
return de_CommandError(output, context);
|
|
1194
813
|
}
|
|
1195
814
|
const contents = (0, import_smithy_client.map)({
|
|
1196
815
|
$metadata: deserializeMetadata(output)
|
|
@@ -1203,37 +822,9 @@ var de_ListDataIntegrationsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1203
822
|
Object.assign(contents, doc);
|
|
1204
823
|
return contents;
|
|
1205
824
|
}, "de_ListDataIntegrationsCommand");
|
|
1206
|
-
var de_ListDataIntegrationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1207
|
-
const parsedOutput = {
|
|
1208
|
-
...output,
|
|
1209
|
-
body: await parseErrorBody(output.body, context)
|
|
1210
|
-
};
|
|
1211
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1212
|
-
switch (errorCode) {
|
|
1213
|
-
case "AccessDeniedException":
|
|
1214
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
1215
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1216
|
-
case "InternalServiceError":
|
|
1217
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
1218
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1219
|
-
case "InvalidRequestException":
|
|
1220
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
1221
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1222
|
-
case "ThrottlingException":
|
|
1223
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
1224
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1225
|
-
default:
|
|
1226
|
-
const parsedBody = parsedOutput.body;
|
|
1227
|
-
return throwDefaultError({
|
|
1228
|
-
output,
|
|
1229
|
-
parsedBody,
|
|
1230
|
-
errorCode
|
|
1231
|
-
});
|
|
1232
|
-
}
|
|
1233
|
-
}, "de_ListDataIntegrationsCommandError");
|
|
1234
825
|
var de_ListEventIntegrationAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1235
826
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1236
|
-
return
|
|
827
|
+
return de_CommandError(output, context);
|
|
1237
828
|
}
|
|
1238
829
|
const contents = (0, import_smithy_client.map)({
|
|
1239
830
|
$metadata: deserializeMetadata(output)
|
|
@@ -1246,40 +837,9 @@ var de_ListEventIntegrationAssociationsCommand = /* @__PURE__ */ __name(async (o
|
|
|
1246
837
|
Object.assign(contents, doc);
|
|
1247
838
|
return contents;
|
|
1248
839
|
}, "de_ListEventIntegrationAssociationsCommand");
|
|
1249
|
-
var de_ListEventIntegrationAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1250
|
-
const parsedOutput = {
|
|
1251
|
-
...output,
|
|
1252
|
-
body: await parseErrorBody(output.body, context)
|
|
1253
|
-
};
|
|
1254
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1255
|
-
switch (errorCode) {
|
|
1256
|
-
case "AccessDeniedException":
|
|
1257
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
1258
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1259
|
-
case "InternalServiceError":
|
|
1260
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
1261
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1262
|
-
case "InvalidRequestException":
|
|
1263
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
1264
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1265
|
-
case "ResourceNotFoundException":
|
|
1266
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
1267
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1268
|
-
case "ThrottlingException":
|
|
1269
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
1270
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1271
|
-
default:
|
|
1272
|
-
const parsedBody = parsedOutput.body;
|
|
1273
|
-
return throwDefaultError({
|
|
1274
|
-
output,
|
|
1275
|
-
parsedBody,
|
|
1276
|
-
errorCode
|
|
1277
|
-
});
|
|
1278
|
-
}
|
|
1279
|
-
}, "de_ListEventIntegrationAssociationsCommandError");
|
|
1280
840
|
var de_ListEventIntegrationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1281
841
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1282
|
-
return
|
|
842
|
+
return de_CommandError(output, context);
|
|
1283
843
|
}
|
|
1284
844
|
const contents = (0, import_smithy_client.map)({
|
|
1285
845
|
$metadata: deserializeMetadata(output)
|
|
@@ -1292,37 +852,9 @@ var de_ListEventIntegrationsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1292
852
|
Object.assign(contents, doc);
|
|
1293
853
|
return contents;
|
|
1294
854
|
}, "de_ListEventIntegrationsCommand");
|
|
1295
|
-
var de_ListEventIntegrationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1296
|
-
const parsedOutput = {
|
|
1297
|
-
...output,
|
|
1298
|
-
body: await parseErrorBody(output.body, context)
|
|
1299
|
-
};
|
|
1300
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1301
|
-
switch (errorCode) {
|
|
1302
|
-
case "AccessDeniedException":
|
|
1303
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
1304
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1305
|
-
case "InternalServiceError":
|
|
1306
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
1307
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1308
|
-
case "InvalidRequestException":
|
|
1309
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
1310
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1311
|
-
case "ThrottlingException":
|
|
1312
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
1313
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1314
|
-
default:
|
|
1315
|
-
const parsedBody = parsedOutput.body;
|
|
1316
|
-
return throwDefaultError({
|
|
1317
|
-
output,
|
|
1318
|
-
parsedBody,
|
|
1319
|
-
errorCode
|
|
1320
|
-
});
|
|
1321
|
-
}
|
|
1322
|
-
}, "de_ListEventIntegrationsCommandError");
|
|
1323
855
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1324
856
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1325
|
-
return
|
|
857
|
+
return de_CommandError(output, context);
|
|
1326
858
|
}
|
|
1327
859
|
const contents = (0, import_smithy_client.map)({
|
|
1328
860
|
$metadata: deserializeMetadata(output)
|
|
@@ -1334,37 +866,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1334
866
|
Object.assign(contents, doc);
|
|
1335
867
|
return contents;
|
|
1336
868
|
}, "de_ListTagsForResourceCommand");
|
|
1337
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1338
|
-
const parsedOutput = {
|
|
1339
|
-
...output,
|
|
1340
|
-
body: await parseErrorBody(output.body, context)
|
|
1341
|
-
};
|
|
1342
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1343
|
-
switch (errorCode) {
|
|
1344
|
-
case "InternalServiceError":
|
|
1345
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
1346
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1347
|
-
case "InvalidRequestException":
|
|
1348
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
1349
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1350
|
-
case "ResourceNotFoundException":
|
|
1351
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
1352
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1353
|
-
case "ThrottlingException":
|
|
1354
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
1355
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1356
|
-
default:
|
|
1357
|
-
const parsedBody = parsedOutput.body;
|
|
1358
|
-
return throwDefaultError({
|
|
1359
|
-
output,
|
|
1360
|
-
parsedBody,
|
|
1361
|
-
errorCode
|
|
1362
|
-
});
|
|
1363
|
-
}
|
|
1364
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1365
869
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1366
870
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1367
|
-
return
|
|
871
|
+
return de_CommandError(output, context);
|
|
1368
872
|
}
|
|
1369
873
|
const contents = (0, import_smithy_client.map)({
|
|
1370
874
|
$metadata: deserializeMetadata(output)
|
|
@@ -1372,37 +876,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1372
876
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1373
877
|
return contents;
|
|
1374
878
|
}, "de_TagResourceCommand");
|
|
1375
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1376
|
-
const parsedOutput = {
|
|
1377
|
-
...output,
|
|
1378
|
-
body: await parseErrorBody(output.body, context)
|
|
1379
|
-
};
|
|
1380
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1381
|
-
switch (errorCode) {
|
|
1382
|
-
case "InternalServiceError":
|
|
1383
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
1384
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1385
|
-
case "InvalidRequestException":
|
|
1386
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
1387
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1388
|
-
case "ResourceNotFoundException":
|
|
1389
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
1390
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1391
|
-
case "ThrottlingException":
|
|
1392
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
1393
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1394
|
-
default:
|
|
1395
|
-
const parsedBody = parsedOutput.body;
|
|
1396
|
-
return throwDefaultError({
|
|
1397
|
-
output,
|
|
1398
|
-
parsedBody,
|
|
1399
|
-
errorCode
|
|
1400
|
-
});
|
|
1401
|
-
}
|
|
1402
|
-
}, "de_TagResourceCommandError");
|
|
1403
879
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1404
880
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1405
|
-
return
|
|
881
|
+
return de_CommandError(output, context);
|
|
1406
882
|
}
|
|
1407
883
|
const contents = (0, import_smithy_client.map)({
|
|
1408
884
|
$metadata: deserializeMetadata(output)
|
|
@@ -1410,37 +886,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1410
886
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1411
887
|
return contents;
|
|
1412
888
|
}, "de_UntagResourceCommand");
|
|
1413
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1414
|
-
const parsedOutput = {
|
|
1415
|
-
...output,
|
|
1416
|
-
body: await parseErrorBody(output.body, context)
|
|
1417
|
-
};
|
|
1418
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1419
|
-
switch (errorCode) {
|
|
1420
|
-
case "InternalServiceError":
|
|
1421
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
1422
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1423
|
-
case "InvalidRequestException":
|
|
1424
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
1425
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1426
|
-
case "ResourceNotFoundException":
|
|
1427
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
1428
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1429
|
-
case "ThrottlingException":
|
|
1430
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
1431
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1432
|
-
default:
|
|
1433
|
-
const parsedBody = parsedOutput.body;
|
|
1434
|
-
return throwDefaultError({
|
|
1435
|
-
output,
|
|
1436
|
-
parsedBody,
|
|
1437
|
-
errorCode
|
|
1438
|
-
});
|
|
1439
|
-
}
|
|
1440
|
-
}, "de_UntagResourceCommandError");
|
|
1441
889
|
var de_UpdateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1442
890
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1443
|
-
return
|
|
891
|
+
return de_CommandError(output, context);
|
|
1444
892
|
}
|
|
1445
893
|
const contents = (0, import_smithy_client.map)({
|
|
1446
894
|
$metadata: deserializeMetadata(output)
|
|
@@ -1448,43 +896,9 @@ var de_UpdateApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1448
896
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1449
897
|
return contents;
|
|
1450
898
|
}, "de_UpdateApplicationCommand");
|
|
1451
|
-
var de_UpdateApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1452
|
-
const parsedOutput = {
|
|
1453
|
-
...output,
|
|
1454
|
-
body: await parseErrorBody(output.body, context)
|
|
1455
|
-
};
|
|
1456
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1457
|
-
switch (errorCode) {
|
|
1458
|
-
case "AccessDeniedException":
|
|
1459
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
1460
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1461
|
-
case "InternalServiceError":
|
|
1462
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
1463
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1464
|
-
case "InvalidRequestException":
|
|
1465
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
1466
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1467
|
-
case "ResourceNotFoundException":
|
|
1468
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
1469
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1470
|
-
case "ThrottlingException":
|
|
1471
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
1472
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1473
|
-
case "UnsupportedOperationException":
|
|
1474
|
-
case "com.amazonaws.appintegrations#UnsupportedOperationException":
|
|
1475
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1476
|
-
default:
|
|
1477
|
-
const parsedBody = parsedOutput.body;
|
|
1478
|
-
return throwDefaultError({
|
|
1479
|
-
output,
|
|
1480
|
-
parsedBody,
|
|
1481
|
-
errorCode
|
|
1482
|
-
});
|
|
1483
|
-
}
|
|
1484
|
-
}, "de_UpdateApplicationCommandError");
|
|
1485
899
|
var de_UpdateDataIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1486
900
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1487
|
-
return
|
|
901
|
+
return de_CommandError(output, context);
|
|
1488
902
|
}
|
|
1489
903
|
const contents = (0, import_smithy_client.map)({
|
|
1490
904
|
$metadata: deserializeMetadata(output)
|
|
@@ -1492,40 +906,9 @@ var de_UpdateDataIntegrationCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1492
906
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1493
907
|
return contents;
|
|
1494
908
|
}, "de_UpdateDataIntegrationCommand");
|
|
1495
|
-
var de_UpdateDataIntegrationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1496
|
-
const parsedOutput = {
|
|
1497
|
-
...output,
|
|
1498
|
-
body: await parseErrorBody(output.body, context)
|
|
1499
|
-
};
|
|
1500
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1501
|
-
switch (errorCode) {
|
|
1502
|
-
case "AccessDeniedException":
|
|
1503
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
1504
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1505
|
-
case "InternalServiceError":
|
|
1506
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
1507
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1508
|
-
case "InvalidRequestException":
|
|
1509
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
1510
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1511
|
-
case "ResourceNotFoundException":
|
|
1512
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
1513
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1514
|
-
case "ThrottlingException":
|
|
1515
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
1516
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1517
|
-
default:
|
|
1518
|
-
const parsedBody = parsedOutput.body;
|
|
1519
|
-
return throwDefaultError({
|
|
1520
|
-
output,
|
|
1521
|
-
parsedBody,
|
|
1522
|
-
errorCode
|
|
1523
|
-
});
|
|
1524
|
-
}
|
|
1525
|
-
}, "de_UpdateDataIntegrationCommandError");
|
|
1526
909
|
var de_UpdateEventIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1527
910
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1528
|
-
return
|
|
911
|
+
return de_CommandError(output, context);
|
|
1529
912
|
}
|
|
1530
913
|
const contents = (0, import_smithy_client.map)({
|
|
1531
914
|
$metadata: deserializeMetadata(output)
|
|
@@ -1533,7 +916,7 @@ var de_UpdateEventIntegrationCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1533
916
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1534
917
|
return contents;
|
|
1535
918
|
}, "de_UpdateEventIntegrationCommand");
|
|
1536
|
-
var
|
|
919
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1537
920
|
const parsedOutput = {
|
|
1538
921
|
...output,
|
|
1539
922
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1543,18 +926,27 @@ var de_UpdateEventIntegrationCommandError = /* @__PURE__ */ __name(async (output
|
|
|
1543
926
|
case "AccessDeniedException":
|
|
1544
927
|
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
1545
928
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
929
|
+
case "DuplicateResourceException":
|
|
930
|
+
case "com.amazonaws.appintegrations#DuplicateResourceException":
|
|
931
|
+
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
1546
932
|
case "InternalServiceError":
|
|
1547
933
|
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
1548
934
|
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1549
935
|
case "InvalidRequestException":
|
|
1550
936
|
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
1551
937
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1552
|
-
case "
|
|
1553
|
-
case "com.amazonaws.appintegrations#
|
|
1554
|
-
throw await
|
|
938
|
+
case "ResourceQuotaExceededException":
|
|
939
|
+
case "com.amazonaws.appintegrations#ResourceQuotaExceededException":
|
|
940
|
+
throw await de_ResourceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1555
941
|
case "ThrottlingException":
|
|
1556
942
|
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
1557
943
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
944
|
+
case "UnsupportedOperationException":
|
|
945
|
+
case "com.amazonaws.appintegrations#UnsupportedOperationException":
|
|
946
|
+
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
947
|
+
case "ResourceNotFoundException":
|
|
948
|
+
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
949
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1558
950
|
default:
|
|
1559
951
|
const parsedBody = parsedOutput.body;
|
|
1560
952
|
return throwDefaultError({
|
|
@@ -1563,7 +955,7 @@ var de_UpdateEventIntegrationCommandError = /* @__PURE__ */ __name(async (output
|
|
|
1563
955
|
errorCode
|
|
1564
956
|
});
|
|
1565
957
|
}
|
|
1566
|
-
}, "
|
|
958
|
+
}, "de_CommandError");
|
|
1567
959
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(AppIntegrationsServiceException);
|
|
1568
960
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1569
961
|
const contents = (0, import_smithy_client.map)({});
|