@aws-sdk/client-cloudcontrol 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 +16 -344
- package/dist-es/protocols/Aws_json1_0.js +15 -343
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -712,7 +712,7 @@ var se_UpdateResourceCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
712
712
|
}, "se_UpdateResourceCommand");
|
|
713
713
|
var de_CancelResourceRequestCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
714
714
|
if (output.statusCode >= 300) {
|
|
715
|
-
return
|
|
715
|
+
return de_CommandError(output, context);
|
|
716
716
|
}
|
|
717
717
|
const data = await parseBody(output.body, context);
|
|
718
718
|
let contents = {};
|
|
@@ -723,31 +723,9 @@ var de_CancelResourceRequestCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
723
723
|
};
|
|
724
724
|
return response;
|
|
725
725
|
}, "de_CancelResourceRequestCommand");
|
|
726
|
-
var de_CancelResourceRequestCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
727
|
-
const parsedOutput = {
|
|
728
|
-
...output,
|
|
729
|
-
body: await parseErrorBody(output.body, context)
|
|
730
|
-
};
|
|
731
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
732
|
-
switch (errorCode) {
|
|
733
|
-
case "ConcurrentModificationException":
|
|
734
|
-
case "com.amazonaws.cloudcontrol#ConcurrentModificationException":
|
|
735
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
736
|
-
case "RequestTokenNotFoundException":
|
|
737
|
-
case "com.amazonaws.cloudcontrol#RequestTokenNotFoundException":
|
|
738
|
-
throw await de_RequestTokenNotFoundExceptionRes(parsedOutput, context);
|
|
739
|
-
default:
|
|
740
|
-
const parsedBody = parsedOutput.body;
|
|
741
|
-
return throwDefaultError({
|
|
742
|
-
output,
|
|
743
|
-
parsedBody,
|
|
744
|
-
errorCode
|
|
745
|
-
});
|
|
746
|
-
}
|
|
747
|
-
}, "de_CancelResourceRequestCommandError");
|
|
748
726
|
var de_CreateResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
749
727
|
if (output.statusCode >= 300) {
|
|
750
|
-
return
|
|
728
|
+
return de_CommandError(output, context);
|
|
751
729
|
}
|
|
752
730
|
const data = await parseBody(output.body, context);
|
|
753
731
|
let contents = {};
|
|
@@ -758,82 +736,9 @@ var de_CreateResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
758
736
|
};
|
|
759
737
|
return response;
|
|
760
738
|
}, "de_CreateResourceCommand");
|
|
761
|
-
var de_CreateResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
762
|
-
const parsedOutput = {
|
|
763
|
-
...output,
|
|
764
|
-
body: await parseErrorBody(output.body, context)
|
|
765
|
-
};
|
|
766
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
767
|
-
switch (errorCode) {
|
|
768
|
-
case "AlreadyExistsException":
|
|
769
|
-
case "com.amazonaws.cloudcontrol#AlreadyExistsException":
|
|
770
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
771
|
-
case "ClientTokenConflictException":
|
|
772
|
-
case "com.amazonaws.cloudcontrol#ClientTokenConflictException":
|
|
773
|
-
throw await de_ClientTokenConflictExceptionRes(parsedOutput, context);
|
|
774
|
-
case "ConcurrentOperationException":
|
|
775
|
-
case "com.amazonaws.cloudcontrol#ConcurrentOperationException":
|
|
776
|
-
throw await de_ConcurrentOperationExceptionRes(parsedOutput, context);
|
|
777
|
-
case "GeneralServiceException":
|
|
778
|
-
case "com.amazonaws.cloudcontrol#GeneralServiceException":
|
|
779
|
-
throw await de_GeneralServiceExceptionRes(parsedOutput, context);
|
|
780
|
-
case "HandlerFailureException":
|
|
781
|
-
case "com.amazonaws.cloudcontrol#HandlerFailureException":
|
|
782
|
-
throw await de_HandlerFailureExceptionRes(parsedOutput, context);
|
|
783
|
-
case "HandlerInternalFailureException":
|
|
784
|
-
case "com.amazonaws.cloudcontrol#HandlerInternalFailureException":
|
|
785
|
-
throw await de_HandlerInternalFailureExceptionRes(parsedOutput, context);
|
|
786
|
-
case "InvalidCredentialsException":
|
|
787
|
-
case "com.amazonaws.cloudcontrol#InvalidCredentialsException":
|
|
788
|
-
throw await de_InvalidCredentialsExceptionRes(parsedOutput, context);
|
|
789
|
-
case "InvalidRequestException":
|
|
790
|
-
case "com.amazonaws.cloudcontrol#InvalidRequestException":
|
|
791
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
792
|
-
case "NetworkFailureException":
|
|
793
|
-
case "com.amazonaws.cloudcontrol#NetworkFailureException":
|
|
794
|
-
throw await de_NetworkFailureExceptionRes(parsedOutput, context);
|
|
795
|
-
case "NotStabilizedException":
|
|
796
|
-
case "com.amazonaws.cloudcontrol#NotStabilizedException":
|
|
797
|
-
throw await de_NotStabilizedExceptionRes(parsedOutput, context);
|
|
798
|
-
case "NotUpdatableException":
|
|
799
|
-
case "com.amazonaws.cloudcontrol#NotUpdatableException":
|
|
800
|
-
throw await de_NotUpdatableExceptionRes(parsedOutput, context);
|
|
801
|
-
case "PrivateTypeException":
|
|
802
|
-
case "com.amazonaws.cloudcontrol#PrivateTypeException":
|
|
803
|
-
throw await de_PrivateTypeExceptionRes(parsedOutput, context);
|
|
804
|
-
case "ResourceConflictException":
|
|
805
|
-
case "com.amazonaws.cloudcontrol#ResourceConflictException":
|
|
806
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
807
|
-
case "ResourceNotFoundException":
|
|
808
|
-
case "com.amazonaws.cloudcontrol#ResourceNotFoundException":
|
|
809
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
810
|
-
case "ServiceInternalErrorException":
|
|
811
|
-
case "com.amazonaws.cloudcontrol#ServiceInternalErrorException":
|
|
812
|
-
throw await de_ServiceInternalErrorExceptionRes(parsedOutput, context);
|
|
813
|
-
case "ServiceLimitExceededException":
|
|
814
|
-
case "com.amazonaws.cloudcontrol#ServiceLimitExceededException":
|
|
815
|
-
throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
|
|
816
|
-
case "ThrottlingException":
|
|
817
|
-
case "com.amazonaws.cloudcontrol#ThrottlingException":
|
|
818
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
819
|
-
case "TypeNotFoundException":
|
|
820
|
-
case "com.amazonaws.cloudcontrol#TypeNotFoundException":
|
|
821
|
-
throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
|
|
822
|
-
case "UnsupportedActionException":
|
|
823
|
-
case "com.amazonaws.cloudcontrol#UnsupportedActionException":
|
|
824
|
-
throw await de_UnsupportedActionExceptionRes(parsedOutput, context);
|
|
825
|
-
default:
|
|
826
|
-
const parsedBody = parsedOutput.body;
|
|
827
|
-
return throwDefaultError({
|
|
828
|
-
output,
|
|
829
|
-
parsedBody,
|
|
830
|
-
errorCode
|
|
831
|
-
});
|
|
832
|
-
}
|
|
833
|
-
}, "de_CreateResourceCommandError");
|
|
834
739
|
var de_DeleteResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
835
740
|
if (output.statusCode >= 300) {
|
|
836
|
-
return
|
|
741
|
+
return de_CommandError(output, context);
|
|
837
742
|
}
|
|
838
743
|
const data = await parseBody(output.body, context);
|
|
839
744
|
let contents = {};
|
|
@@ -844,82 +749,9 @@ var de_DeleteResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
844
749
|
};
|
|
845
750
|
return response;
|
|
846
751
|
}, "de_DeleteResourceCommand");
|
|
847
|
-
var de_DeleteResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
848
|
-
const parsedOutput = {
|
|
849
|
-
...output,
|
|
850
|
-
body: await parseErrorBody(output.body, context)
|
|
851
|
-
};
|
|
852
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
853
|
-
switch (errorCode) {
|
|
854
|
-
case "AlreadyExistsException":
|
|
855
|
-
case "com.amazonaws.cloudcontrol#AlreadyExistsException":
|
|
856
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
857
|
-
case "ClientTokenConflictException":
|
|
858
|
-
case "com.amazonaws.cloudcontrol#ClientTokenConflictException":
|
|
859
|
-
throw await de_ClientTokenConflictExceptionRes(parsedOutput, context);
|
|
860
|
-
case "ConcurrentOperationException":
|
|
861
|
-
case "com.amazonaws.cloudcontrol#ConcurrentOperationException":
|
|
862
|
-
throw await de_ConcurrentOperationExceptionRes(parsedOutput, context);
|
|
863
|
-
case "GeneralServiceException":
|
|
864
|
-
case "com.amazonaws.cloudcontrol#GeneralServiceException":
|
|
865
|
-
throw await de_GeneralServiceExceptionRes(parsedOutput, context);
|
|
866
|
-
case "HandlerFailureException":
|
|
867
|
-
case "com.amazonaws.cloudcontrol#HandlerFailureException":
|
|
868
|
-
throw await de_HandlerFailureExceptionRes(parsedOutput, context);
|
|
869
|
-
case "HandlerInternalFailureException":
|
|
870
|
-
case "com.amazonaws.cloudcontrol#HandlerInternalFailureException":
|
|
871
|
-
throw await de_HandlerInternalFailureExceptionRes(parsedOutput, context);
|
|
872
|
-
case "InvalidCredentialsException":
|
|
873
|
-
case "com.amazonaws.cloudcontrol#InvalidCredentialsException":
|
|
874
|
-
throw await de_InvalidCredentialsExceptionRes(parsedOutput, context);
|
|
875
|
-
case "InvalidRequestException":
|
|
876
|
-
case "com.amazonaws.cloudcontrol#InvalidRequestException":
|
|
877
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
878
|
-
case "NetworkFailureException":
|
|
879
|
-
case "com.amazonaws.cloudcontrol#NetworkFailureException":
|
|
880
|
-
throw await de_NetworkFailureExceptionRes(parsedOutput, context);
|
|
881
|
-
case "NotStabilizedException":
|
|
882
|
-
case "com.amazonaws.cloudcontrol#NotStabilizedException":
|
|
883
|
-
throw await de_NotStabilizedExceptionRes(parsedOutput, context);
|
|
884
|
-
case "NotUpdatableException":
|
|
885
|
-
case "com.amazonaws.cloudcontrol#NotUpdatableException":
|
|
886
|
-
throw await de_NotUpdatableExceptionRes(parsedOutput, context);
|
|
887
|
-
case "PrivateTypeException":
|
|
888
|
-
case "com.amazonaws.cloudcontrol#PrivateTypeException":
|
|
889
|
-
throw await de_PrivateTypeExceptionRes(parsedOutput, context);
|
|
890
|
-
case "ResourceConflictException":
|
|
891
|
-
case "com.amazonaws.cloudcontrol#ResourceConflictException":
|
|
892
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
893
|
-
case "ResourceNotFoundException":
|
|
894
|
-
case "com.amazonaws.cloudcontrol#ResourceNotFoundException":
|
|
895
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
896
|
-
case "ServiceInternalErrorException":
|
|
897
|
-
case "com.amazonaws.cloudcontrol#ServiceInternalErrorException":
|
|
898
|
-
throw await de_ServiceInternalErrorExceptionRes(parsedOutput, context);
|
|
899
|
-
case "ServiceLimitExceededException":
|
|
900
|
-
case "com.amazonaws.cloudcontrol#ServiceLimitExceededException":
|
|
901
|
-
throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
|
|
902
|
-
case "ThrottlingException":
|
|
903
|
-
case "com.amazonaws.cloudcontrol#ThrottlingException":
|
|
904
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
905
|
-
case "TypeNotFoundException":
|
|
906
|
-
case "com.amazonaws.cloudcontrol#TypeNotFoundException":
|
|
907
|
-
throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
|
|
908
|
-
case "UnsupportedActionException":
|
|
909
|
-
case "com.amazonaws.cloudcontrol#UnsupportedActionException":
|
|
910
|
-
throw await de_UnsupportedActionExceptionRes(parsedOutput, context);
|
|
911
|
-
default:
|
|
912
|
-
const parsedBody = parsedOutput.body;
|
|
913
|
-
return throwDefaultError({
|
|
914
|
-
output,
|
|
915
|
-
parsedBody,
|
|
916
|
-
errorCode
|
|
917
|
-
});
|
|
918
|
-
}
|
|
919
|
-
}, "de_DeleteResourceCommandError");
|
|
920
752
|
var de_GetResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
921
753
|
if (output.statusCode >= 300) {
|
|
922
|
-
return
|
|
754
|
+
return de_CommandError(output, context);
|
|
923
755
|
}
|
|
924
756
|
const data = await parseBody(output.body, context);
|
|
925
757
|
let contents = {};
|
|
@@ -930,76 +762,9 @@ var de_GetResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
930
762
|
};
|
|
931
763
|
return response;
|
|
932
764
|
}, "de_GetResourceCommand");
|
|
933
|
-
var de_GetResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
934
|
-
const parsedOutput = {
|
|
935
|
-
...output,
|
|
936
|
-
body: await parseErrorBody(output.body, context)
|
|
937
|
-
};
|
|
938
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
939
|
-
switch (errorCode) {
|
|
940
|
-
case "AlreadyExistsException":
|
|
941
|
-
case "com.amazonaws.cloudcontrol#AlreadyExistsException":
|
|
942
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
943
|
-
case "GeneralServiceException":
|
|
944
|
-
case "com.amazonaws.cloudcontrol#GeneralServiceException":
|
|
945
|
-
throw await de_GeneralServiceExceptionRes(parsedOutput, context);
|
|
946
|
-
case "HandlerFailureException":
|
|
947
|
-
case "com.amazonaws.cloudcontrol#HandlerFailureException":
|
|
948
|
-
throw await de_HandlerFailureExceptionRes(parsedOutput, context);
|
|
949
|
-
case "HandlerInternalFailureException":
|
|
950
|
-
case "com.amazonaws.cloudcontrol#HandlerInternalFailureException":
|
|
951
|
-
throw await de_HandlerInternalFailureExceptionRes(parsedOutput, context);
|
|
952
|
-
case "InvalidCredentialsException":
|
|
953
|
-
case "com.amazonaws.cloudcontrol#InvalidCredentialsException":
|
|
954
|
-
throw await de_InvalidCredentialsExceptionRes(parsedOutput, context);
|
|
955
|
-
case "InvalidRequestException":
|
|
956
|
-
case "com.amazonaws.cloudcontrol#InvalidRequestException":
|
|
957
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
958
|
-
case "NetworkFailureException":
|
|
959
|
-
case "com.amazonaws.cloudcontrol#NetworkFailureException":
|
|
960
|
-
throw await de_NetworkFailureExceptionRes(parsedOutput, context);
|
|
961
|
-
case "NotStabilizedException":
|
|
962
|
-
case "com.amazonaws.cloudcontrol#NotStabilizedException":
|
|
963
|
-
throw await de_NotStabilizedExceptionRes(parsedOutput, context);
|
|
964
|
-
case "NotUpdatableException":
|
|
965
|
-
case "com.amazonaws.cloudcontrol#NotUpdatableException":
|
|
966
|
-
throw await de_NotUpdatableExceptionRes(parsedOutput, context);
|
|
967
|
-
case "PrivateTypeException":
|
|
968
|
-
case "com.amazonaws.cloudcontrol#PrivateTypeException":
|
|
969
|
-
throw await de_PrivateTypeExceptionRes(parsedOutput, context);
|
|
970
|
-
case "ResourceConflictException":
|
|
971
|
-
case "com.amazonaws.cloudcontrol#ResourceConflictException":
|
|
972
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
973
|
-
case "ResourceNotFoundException":
|
|
974
|
-
case "com.amazonaws.cloudcontrol#ResourceNotFoundException":
|
|
975
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
976
|
-
case "ServiceInternalErrorException":
|
|
977
|
-
case "com.amazonaws.cloudcontrol#ServiceInternalErrorException":
|
|
978
|
-
throw await de_ServiceInternalErrorExceptionRes(parsedOutput, context);
|
|
979
|
-
case "ServiceLimitExceededException":
|
|
980
|
-
case "com.amazonaws.cloudcontrol#ServiceLimitExceededException":
|
|
981
|
-
throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
|
|
982
|
-
case "ThrottlingException":
|
|
983
|
-
case "com.amazonaws.cloudcontrol#ThrottlingException":
|
|
984
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
985
|
-
case "TypeNotFoundException":
|
|
986
|
-
case "com.amazonaws.cloudcontrol#TypeNotFoundException":
|
|
987
|
-
throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
|
|
988
|
-
case "UnsupportedActionException":
|
|
989
|
-
case "com.amazonaws.cloudcontrol#UnsupportedActionException":
|
|
990
|
-
throw await de_UnsupportedActionExceptionRes(parsedOutput, context);
|
|
991
|
-
default:
|
|
992
|
-
const parsedBody = parsedOutput.body;
|
|
993
|
-
return throwDefaultError({
|
|
994
|
-
output,
|
|
995
|
-
parsedBody,
|
|
996
|
-
errorCode
|
|
997
|
-
});
|
|
998
|
-
}
|
|
999
|
-
}, "de_GetResourceCommandError");
|
|
1000
765
|
var de_GetResourceRequestStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1001
766
|
if (output.statusCode >= 300) {
|
|
1002
|
-
return
|
|
767
|
+
return de_CommandError(output, context);
|
|
1003
768
|
}
|
|
1004
769
|
const data = await parseBody(output.body, context);
|
|
1005
770
|
let contents = {};
|
|
@@ -1010,28 +775,9 @@ var de_GetResourceRequestStatusCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1010
775
|
};
|
|
1011
776
|
return response;
|
|
1012
777
|
}, "de_GetResourceRequestStatusCommand");
|
|
1013
|
-
var de_GetResourceRequestStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1014
|
-
const parsedOutput = {
|
|
1015
|
-
...output,
|
|
1016
|
-
body: await parseErrorBody(output.body, context)
|
|
1017
|
-
};
|
|
1018
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1019
|
-
switch (errorCode) {
|
|
1020
|
-
case "RequestTokenNotFoundException":
|
|
1021
|
-
case "com.amazonaws.cloudcontrol#RequestTokenNotFoundException":
|
|
1022
|
-
throw await de_RequestTokenNotFoundExceptionRes(parsedOutput, context);
|
|
1023
|
-
default:
|
|
1024
|
-
const parsedBody = parsedOutput.body;
|
|
1025
|
-
return throwDefaultError({
|
|
1026
|
-
output,
|
|
1027
|
-
parsedBody,
|
|
1028
|
-
errorCode
|
|
1029
|
-
});
|
|
1030
|
-
}
|
|
1031
|
-
}, "de_GetResourceRequestStatusCommandError");
|
|
1032
778
|
var de_ListResourceRequestsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1033
779
|
if (output.statusCode >= 300) {
|
|
1034
|
-
return
|
|
780
|
+
return de_CommandError(output, context);
|
|
1035
781
|
}
|
|
1036
782
|
const data = await parseBody(output.body, context);
|
|
1037
783
|
let contents = {};
|
|
@@ -1042,22 +788,9 @@ var de_ListResourceRequestsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1042
788
|
};
|
|
1043
789
|
return response;
|
|
1044
790
|
}, "de_ListResourceRequestsCommand");
|
|
1045
|
-
var de_ListResourceRequestsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1046
|
-
const parsedOutput = {
|
|
1047
|
-
...output,
|
|
1048
|
-
body: await parseErrorBody(output.body, context)
|
|
1049
|
-
};
|
|
1050
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1051
|
-
const parsedBody = parsedOutput.body;
|
|
1052
|
-
return throwDefaultError({
|
|
1053
|
-
output,
|
|
1054
|
-
parsedBody,
|
|
1055
|
-
errorCode
|
|
1056
|
-
});
|
|
1057
|
-
}, "de_ListResourceRequestsCommandError");
|
|
1058
791
|
var de_ListResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1059
792
|
if (output.statusCode >= 300) {
|
|
1060
|
-
return
|
|
793
|
+
return de_CommandError(output, context);
|
|
1061
794
|
}
|
|
1062
795
|
const data = await parseBody(output.body, context);
|
|
1063
796
|
let contents = {};
|
|
@@ -1068,76 +801,9 @@ var de_ListResourcesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1068
801
|
};
|
|
1069
802
|
return response;
|
|
1070
803
|
}, "de_ListResourcesCommand");
|
|
1071
|
-
var de_ListResourcesCommandError = /* @__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 "AlreadyExistsException":
|
|
1079
|
-
case "com.amazonaws.cloudcontrol#AlreadyExistsException":
|
|
1080
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
1081
|
-
case "GeneralServiceException":
|
|
1082
|
-
case "com.amazonaws.cloudcontrol#GeneralServiceException":
|
|
1083
|
-
throw await de_GeneralServiceExceptionRes(parsedOutput, context);
|
|
1084
|
-
case "HandlerFailureException":
|
|
1085
|
-
case "com.amazonaws.cloudcontrol#HandlerFailureException":
|
|
1086
|
-
throw await de_HandlerFailureExceptionRes(parsedOutput, context);
|
|
1087
|
-
case "HandlerInternalFailureException":
|
|
1088
|
-
case "com.amazonaws.cloudcontrol#HandlerInternalFailureException":
|
|
1089
|
-
throw await de_HandlerInternalFailureExceptionRes(parsedOutput, context);
|
|
1090
|
-
case "InvalidCredentialsException":
|
|
1091
|
-
case "com.amazonaws.cloudcontrol#InvalidCredentialsException":
|
|
1092
|
-
throw await de_InvalidCredentialsExceptionRes(parsedOutput, context);
|
|
1093
|
-
case "InvalidRequestException":
|
|
1094
|
-
case "com.amazonaws.cloudcontrol#InvalidRequestException":
|
|
1095
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1096
|
-
case "NetworkFailureException":
|
|
1097
|
-
case "com.amazonaws.cloudcontrol#NetworkFailureException":
|
|
1098
|
-
throw await de_NetworkFailureExceptionRes(parsedOutput, context);
|
|
1099
|
-
case "NotStabilizedException":
|
|
1100
|
-
case "com.amazonaws.cloudcontrol#NotStabilizedException":
|
|
1101
|
-
throw await de_NotStabilizedExceptionRes(parsedOutput, context);
|
|
1102
|
-
case "NotUpdatableException":
|
|
1103
|
-
case "com.amazonaws.cloudcontrol#NotUpdatableException":
|
|
1104
|
-
throw await de_NotUpdatableExceptionRes(parsedOutput, context);
|
|
1105
|
-
case "PrivateTypeException":
|
|
1106
|
-
case "com.amazonaws.cloudcontrol#PrivateTypeException":
|
|
1107
|
-
throw await de_PrivateTypeExceptionRes(parsedOutput, context);
|
|
1108
|
-
case "ResourceConflictException":
|
|
1109
|
-
case "com.amazonaws.cloudcontrol#ResourceConflictException":
|
|
1110
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
1111
|
-
case "ResourceNotFoundException":
|
|
1112
|
-
case "com.amazonaws.cloudcontrol#ResourceNotFoundException":
|
|
1113
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1114
|
-
case "ServiceInternalErrorException":
|
|
1115
|
-
case "com.amazonaws.cloudcontrol#ServiceInternalErrorException":
|
|
1116
|
-
throw await de_ServiceInternalErrorExceptionRes(parsedOutput, context);
|
|
1117
|
-
case "ServiceLimitExceededException":
|
|
1118
|
-
case "com.amazonaws.cloudcontrol#ServiceLimitExceededException":
|
|
1119
|
-
throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
|
|
1120
|
-
case "ThrottlingException":
|
|
1121
|
-
case "com.amazonaws.cloudcontrol#ThrottlingException":
|
|
1122
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1123
|
-
case "TypeNotFoundException":
|
|
1124
|
-
case "com.amazonaws.cloudcontrol#TypeNotFoundException":
|
|
1125
|
-
throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
|
|
1126
|
-
case "UnsupportedActionException":
|
|
1127
|
-
case "com.amazonaws.cloudcontrol#UnsupportedActionException":
|
|
1128
|
-
throw await de_UnsupportedActionExceptionRes(parsedOutput, context);
|
|
1129
|
-
default:
|
|
1130
|
-
const parsedBody = parsedOutput.body;
|
|
1131
|
-
return throwDefaultError({
|
|
1132
|
-
output,
|
|
1133
|
-
parsedBody,
|
|
1134
|
-
errorCode
|
|
1135
|
-
});
|
|
1136
|
-
}
|
|
1137
|
-
}, "de_ListResourcesCommandError");
|
|
1138
804
|
var de_UpdateResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1139
805
|
if (output.statusCode >= 300) {
|
|
1140
|
-
return
|
|
806
|
+
return de_CommandError(output, context);
|
|
1141
807
|
}
|
|
1142
808
|
const data = await parseBody(output.body, context);
|
|
1143
809
|
let contents = {};
|
|
@@ -1148,13 +814,19 @@ var de_UpdateResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1148
814
|
};
|
|
1149
815
|
return response;
|
|
1150
816
|
}, "de_UpdateResourceCommand");
|
|
1151
|
-
var
|
|
817
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1152
818
|
const parsedOutput = {
|
|
1153
819
|
...output,
|
|
1154
820
|
body: await parseErrorBody(output.body, context)
|
|
1155
821
|
};
|
|
1156
822
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1157
823
|
switch (errorCode) {
|
|
824
|
+
case "ConcurrentModificationException":
|
|
825
|
+
case "com.amazonaws.cloudcontrol#ConcurrentModificationException":
|
|
826
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
827
|
+
case "RequestTokenNotFoundException":
|
|
828
|
+
case "com.amazonaws.cloudcontrol#RequestTokenNotFoundException":
|
|
829
|
+
throw await de_RequestTokenNotFoundExceptionRes(parsedOutput, context);
|
|
1158
830
|
case "AlreadyExistsException":
|
|
1159
831
|
case "com.amazonaws.cloudcontrol#AlreadyExistsException":
|
|
1160
832
|
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
@@ -1220,7 +892,7 @@ var de_UpdateResourceCommandError = /* @__PURE__ */ __name(async (output, contex
|
|
|
1220
892
|
errorCode
|
|
1221
893
|
});
|
|
1222
894
|
}
|
|
1223
|
-
}, "
|
|
895
|
+
}, "de_CommandError");
|
|
1224
896
|
var de_AlreadyExistsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1225
897
|
const body = parsedOutput.body;
|
|
1226
898
|
const deserialized = (0, import_smithy_client._json)(body);
|
|
@@ -53,7 +53,7 @@ export const se_UpdateResourceCommand = async (input, context) => {
|
|
|
53
53
|
};
|
|
54
54
|
export const de_CancelResourceRequestCommand = async (output, context) => {
|
|
55
55
|
if (output.statusCode >= 300) {
|
|
56
|
-
return
|
|
56
|
+
return de_CommandError(output, context);
|
|
57
57
|
}
|
|
58
58
|
const data = await parseBody(output.body, context);
|
|
59
59
|
let contents = {};
|
|
@@ -64,31 +64,9 @@ export const de_CancelResourceRequestCommand = async (output, context) => {
|
|
|
64
64
|
};
|
|
65
65
|
return response;
|
|
66
66
|
};
|
|
67
|
-
const de_CancelResourceRequestCommandError = async (output, context) => {
|
|
68
|
-
const parsedOutput = {
|
|
69
|
-
...output,
|
|
70
|
-
body: await parseErrorBody(output.body, context),
|
|
71
|
-
};
|
|
72
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
73
|
-
switch (errorCode) {
|
|
74
|
-
case "ConcurrentModificationException":
|
|
75
|
-
case "com.amazonaws.cloudcontrol#ConcurrentModificationException":
|
|
76
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
77
|
-
case "RequestTokenNotFoundException":
|
|
78
|
-
case "com.amazonaws.cloudcontrol#RequestTokenNotFoundException":
|
|
79
|
-
throw await de_RequestTokenNotFoundExceptionRes(parsedOutput, context);
|
|
80
|
-
default:
|
|
81
|
-
const parsedBody = parsedOutput.body;
|
|
82
|
-
return throwDefaultError({
|
|
83
|
-
output,
|
|
84
|
-
parsedBody,
|
|
85
|
-
errorCode,
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
67
|
export const de_CreateResourceCommand = async (output, context) => {
|
|
90
68
|
if (output.statusCode >= 300) {
|
|
91
|
-
return
|
|
69
|
+
return de_CommandError(output, context);
|
|
92
70
|
}
|
|
93
71
|
const data = await parseBody(output.body, context);
|
|
94
72
|
let contents = {};
|
|
@@ -99,82 +77,9 @@ export const de_CreateResourceCommand = async (output, context) => {
|
|
|
99
77
|
};
|
|
100
78
|
return response;
|
|
101
79
|
};
|
|
102
|
-
const de_CreateResourceCommandError = async (output, context) => {
|
|
103
|
-
const parsedOutput = {
|
|
104
|
-
...output,
|
|
105
|
-
body: await parseErrorBody(output.body, context),
|
|
106
|
-
};
|
|
107
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
108
|
-
switch (errorCode) {
|
|
109
|
-
case "AlreadyExistsException":
|
|
110
|
-
case "com.amazonaws.cloudcontrol#AlreadyExistsException":
|
|
111
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
112
|
-
case "ClientTokenConflictException":
|
|
113
|
-
case "com.amazonaws.cloudcontrol#ClientTokenConflictException":
|
|
114
|
-
throw await de_ClientTokenConflictExceptionRes(parsedOutput, context);
|
|
115
|
-
case "ConcurrentOperationException":
|
|
116
|
-
case "com.amazonaws.cloudcontrol#ConcurrentOperationException":
|
|
117
|
-
throw await de_ConcurrentOperationExceptionRes(parsedOutput, context);
|
|
118
|
-
case "GeneralServiceException":
|
|
119
|
-
case "com.amazonaws.cloudcontrol#GeneralServiceException":
|
|
120
|
-
throw await de_GeneralServiceExceptionRes(parsedOutput, context);
|
|
121
|
-
case "HandlerFailureException":
|
|
122
|
-
case "com.amazonaws.cloudcontrol#HandlerFailureException":
|
|
123
|
-
throw await de_HandlerFailureExceptionRes(parsedOutput, context);
|
|
124
|
-
case "HandlerInternalFailureException":
|
|
125
|
-
case "com.amazonaws.cloudcontrol#HandlerInternalFailureException":
|
|
126
|
-
throw await de_HandlerInternalFailureExceptionRes(parsedOutput, context);
|
|
127
|
-
case "InvalidCredentialsException":
|
|
128
|
-
case "com.amazonaws.cloudcontrol#InvalidCredentialsException":
|
|
129
|
-
throw await de_InvalidCredentialsExceptionRes(parsedOutput, context);
|
|
130
|
-
case "InvalidRequestException":
|
|
131
|
-
case "com.amazonaws.cloudcontrol#InvalidRequestException":
|
|
132
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
133
|
-
case "NetworkFailureException":
|
|
134
|
-
case "com.amazonaws.cloudcontrol#NetworkFailureException":
|
|
135
|
-
throw await de_NetworkFailureExceptionRes(parsedOutput, context);
|
|
136
|
-
case "NotStabilizedException":
|
|
137
|
-
case "com.amazonaws.cloudcontrol#NotStabilizedException":
|
|
138
|
-
throw await de_NotStabilizedExceptionRes(parsedOutput, context);
|
|
139
|
-
case "NotUpdatableException":
|
|
140
|
-
case "com.amazonaws.cloudcontrol#NotUpdatableException":
|
|
141
|
-
throw await de_NotUpdatableExceptionRes(parsedOutput, context);
|
|
142
|
-
case "PrivateTypeException":
|
|
143
|
-
case "com.amazonaws.cloudcontrol#PrivateTypeException":
|
|
144
|
-
throw await de_PrivateTypeExceptionRes(parsedOutput, context);
|
|
145
|
-
case "ResourceConflictException":
|
|
146
|
-
case "com.amazonaws.cloudcontrol#ResourceConflictException":
|
|
147
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
148
|
-
case "ResourceNotFoundException":
|
|
149
|
-
case "com.amazonaws.cloudcontrol#ResourceNotFoundException":
|
|
150
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
151
|
-
case "ServiceInternalErrorException":
|
|
152
|
-
case "com.amazonaws.cloudcontrol#ServiceInternalErrorException":
|
|
153
|
-
throw await de_ServiceInternalErrorExceptionRes(parsedOutput, context);
|
|
154
|
-
case "ServiceLimitExceededException":
|
|
155
|
-
case "com.amazonaws.cloudcontrol#ServiceLimitExceededException":
|
|
156
|
-
throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
|
|
157
|
-
case "ThrottlingException":
|
|
158
|
-
case "com.amazonaws.cloudcontrol#ThrottlingException":
|
|
159
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
160
|
-
case "TypeNotFoundException":
|
|
161
|
-
case "com.amazonaws.cloudcontrol#TypeNotFoundException":
|
|
162
|
-
throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
|
|
163
|
-
case "UnsupportedActionException":
|
|
164
|
-
case "com.amazonaws.cloudcontrol#UnsupportedActionException":
|
|
165
|
-
throw await de_UnsupportedActionExceptionRes(parsedOutput, context);
|
|
166
|
-
default:
|
|
167
|
-
const parsedBody = parsedOutput.body;
|
|
168
|
-
return throwDefaultError({
|
|
169
|
-
output,
|
|
170
|
-
parsedBody,
|
|
171
|
-
errorCode,
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
};
|
|
175
80
|
export const de_DeleteResourceCommand = async (output, context) => {
|
|
176
81
|
if (output.statusCode >= 300) {
|
|
177
|
-
return
|
|
82
|
+
return de_CommandError(output, context);
|
|
178
83
|
}
|
|
179
84
|
const data = await parseBody(output.body, context);
|
|
180
85
|
let contents = {};
|
|
@@ -185,82 +90,9 @@ export const de_DeleteResourceCommand = async (output, context) => {
|
|
|
185
90
|
};
|
|
186
91
|
return response;
|
|
187
92
|
};
|
|
188
|
-
const de_DeleteResourceCommandError = async (output, context) => {
|
|
189
|
-
const parsedOutput = {
|
|
190
|
-
...output,
|
|
191
|
-
body: await parseErrorBody(output.body, context),
|
|
192
|
-
};
|
|
193
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
194
|
-
switch (errorCode) {
|
|
195
|
-
case "AlreadyExistsException":
|
|
196
|
-
case "com.amazonaws.cloudcontrol#AlreadyExistsException":
|
|
197
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
198
|
-
case "ClientTokenConflictException":
|
|
199
|
-
case "com.amazonaws.cloudcontrol#ClientTokenConflictException":
|
|
200
|
-
throw await de_ClientTokenConflictExceptionRes(parsedOutput, context);
|
|
201
|
-
case "ConcurrentOperationException":
|
|
202
|
-
case "com.amazonaws.cloudcontrol#ConcurrentOperationException":
|
|
203
|
-
throw await de_ConcurrentOperationExceptionRes(parsedOutput, context);
|
|
204
|
-
case "GeneralServiceException":
|
|
205
|
-
case "com.amazonaws.cloudcontrol#GeneralServiceException":
|
|
206
|
-
throw await de_GeneralServiceExceptionRes(parsedOutput, context);
|
|
207
|
-
case "HandlerFailureException":
|
|
208
|
-
case "com.amazonaws.cloudcontrol#HandlerFailureException":
|
|
209
|
-
throw await de_HandlerFailureExceptionRes(parsedOutput, context);
|
|
210
|
-
case "HandlerInternalFailureException":
|
|
211
|
-
case "com.amazonaws.cloudcontrol#HandlerInternalFailureException":
|
|
212
|
-
throw await de_HandlerInternalFailureExceptionRes(parsedOutput, context);
|
|
213
|
-
case "InvalidCredentialsException":
|
|
214
|
-
case "com.amazonaws.cloudcontrol#InvalidCredentialsException":
|
|
215
|
-
throw await de_InvalidCredentialsExceptionRes(parsedOutput, context);
|
|
216
|
-
case "InvalidRequestException":
|
|
217
|
-
case "com.amazonaws.cloudcontrol#InvalidRequestException":
|
|
218
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
219
|
-
case "NetworkFailureException":
|
|
220
|
-
case "com.amazonaws.cloudcontrol#NetworkFailureException":
|
|
221
|
-
throw await de_NetworkFailureExceptionRes(parsedOutput, context);
|
|
222
|
-
case "NotStabilizedException":
|
|
223
|
-
case "com.amazonaws.cloudcontrol#NotStabilizedException":
|
|
224
|
-
throw await de_NotStabilizedExceptionRes(parsedOutput, context);
|
|
225
|
-
case "NotUpdatableException":
|
|
226
|
-
case "com.amazonaws.cloudcontrol#NotUpdatableException":
|
|
227
|
-
throw await de_NotUpdatableExceptionRes(parsedOutput, context);
|
|
228
|
-
case "PrivateTypeException":
|
|
229
|
-
case "com.amazonaws.cloudcontrol#PrivateTypeException":
|
|
230
|
-
throw await de_PrivateTypeExceptionRes(parsedOutput, context);
|
|
231
|
-
case "ResourceConflictException":
|
|
232
|
-
case "com.amazonaws.cloudcontrol#ResourceConflictException":
|
|
233
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
234
|
-
case "ResourceNotFoundException":
|
|
235
|
-
case "com.amazonaws.cloudcontrol#ResourceNotFoundException":
|
|
236
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
237
|
-
case "ServiceInternalErrorException":
|
|
238
|
-
case "com.amazonaws.cloudcontrol#ServiceInternalErrorException":
|
|
239
|
-
throw await de_ServiceInternalErrorExceptionRes(parsedOutput, context);
|
|
240
|
-
case "ServiceLimitExceededException":
|
|
241
|
-
case "com.amazonaws.cloudcontrol#ServiceLimitExceededException":
|
|
242
|
-
throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
|
|
243
|
-
case "ThrottlingException":
|
|
244
|
-
case "com.amazonaws.cloudcontrol#ThrottlingException":
|
|
245
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
246
|
-
case "TypeNotFoundException":
|
|
247
|
-
case "com.amazonaws.cloudcontrol#TypeNotFoundException":
|
|
248
|
-
throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
|
|
249
|
-
case "UnsupportedActionException":
|
|
250
|
-
case "com.amazonaws.cloudcontrol#UnsupportedActionException":
|
|
251
|
-
throw await de_UnsupportedActionExceptionRes(parsedOutput, context);
|
|
252
|
-
default:
|
|
253
|
-
const parsedBody = parsedOutput.body;
|
|
254
|
-
return throwDefaultError({
|
|
255
|
-
output,
|
|
256
|
-
parsedBody,
|
|
257
|
-
errorCode,
|
|
258
|
-
});
|
|
259
|
-
}
|
|
260
|
-
};
|
|
261
93
|
export const de_GetResourceCommand = async (output, context) => {
|
|
262
94
|
if (output.statusCode >= 300) {
|
|
263
|
-
return
|
|
95
|
+
return de_CommandError(output, context);
|
|
264
96
|
}
|
|
265
97
|
const data = await parseBody(output.body, context);
|
|
266
98
|
let contents = {};
|
|
@@ -271,76 +103,9 @@ export const de_GetResourceCommand = async (output, context) => {
|
|
|
271
103
|
};
|
|
272
104
|
return response;
|
|
273
105
|
};
|
|
274
|
-
const de_GetResourceCommandError = async (output, context) => {
|
|
275
|
-
const parsedOutput = {
|
|
276
|
-
...output,
|
|
277
|
-
body: await parseErrorBody(output.body, context),
|
|
278
|
-
};
|
|
279
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
280
|
-
switch (errorCode) {
|
|
281
|
-
case "AlreadyExistsException":
|
|
282
|
-
case "com.amazonaws.cloudcontrol#AlreadyExistsException":
|
|
283
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
284
|
-
case "GeneralServiceException":
|
|
285
|
-
case "com.amazonaws.cloudcontrol#GeneralServiceException":
|
|
286
|
-
throw await de_GeneralServiceExceptionRes(parsedOutput, context);
|
|
287
|
-
case "HandlerFailureException":
|
|
288
|
-
case "com.amazonaws.cloudcontrol#HandlerFailureException":
|
|
289
|
-
throw await de_HandlerFailureExceptionRes(parsedOutput, context);
|
|
290
|
-
case "HandlerInternalFailureException":
|
|
291
|
-
case "com.amazonaws.cloudcontrol#HandlerInternalFailureException":
|
|
292
|
-
throw await de_HandlerInternalFailureExceptionRes(parsedOutput, context);
|
|
293
|
-
case "InvalidCredentialsException":
|
|
294
|
-
case "com.amazonaws.cloudcontrol#InvalidCredentialsException":
|
|
295
|
-
throw await de_InvalidCredentialsExceptionRes(parsedOutput, context);
|
|
296
|
-
case "InvalidRequestException":
|
|
297
|
-
case "com.amazonaws.cloudcontrol#InvalidRequestException":
|
|
298
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
299
|
-
case "NetworkFailureException":
|
|
300
|
-
case "com.amazonaws.cloudcontrol#NetworkFailureException":
|
|
301
|
-
throw await de_NetworkFailureExceptionRes(parsedOutput, context);
|
|
302
|
-
case "NotStabilizedException":
|
|
303
|
-
case "com.amazonaws.cloudcontrol#NotStabilizedException":
|
|
304
|
-
throw await de_NotStabilizedExceptionRes(parsedOutput, context);
|
|
305
|
-
case "NotUpdatableException":
|
|
306
|
-
case "com.amazonaws.cloudcontrol#NotUpdatableException":
|
|
307
|
-
throw await de_NotUpdatableExceptionRes(parsedOutput, context);
|
|
308
|
-
case "PrivateTypeException":
|
|
309
|
-
case "com.amazonaws.cloudcontrol#PrivateTypeException":
|
|
310
|
-
throw await de_PrivateTypeExceptionRes(parsedOutput, context);
|
|
311
|
-
case "ResourceConflictException":
|
|
312
|
-
case "com.amazonaws.cloudcontrol#ResourceConflictException":
|
|
313
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
314
|
-
case "ResourceNotFoundException":
|
|
315
|
-
case "com.amazonaws.cloudcontrol#ResourceNotFoundException":
|
|
316
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
317
|
-
case "ServiceInternalErrorException":
|
|
318
|
-
case "com.amazonaws.cloudcontrol#ServiceInternalErrorException":
|
|
319
|
-
throw await de_ServiceInternalErrorExceptionRes(parsedOutput, context);
|
|
320
|
-
case "ServiceLimitExceededException":
|
|
321
|
-
case "com.amazonaws.cloudcontrol#ServiceLimitExceededException":
|
|
322
|
-
throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
|
|
323
|
-
case "ThrottlingException":
|
|
324
|
-
case "com.amazonaws.cloudcontrol#ThrottlingException":
|
|
325
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
326
|
-
case "TypeNotFoundException":
|
|
327
|
-
case "com.amazonaws.cloudcontrol#TypeNotFoundException":
|
|
328
|
-
throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
|
|
329
|
-
case "UnsupportedActionException":
|
|
330
|
-
case "com.amazonaws.cloudcontrol#UnsupportedActionException":
|
|
331
|
-
throw await de_UnsupportedActionExceptionRes(parsedOutput, context);
|
|
332
|
-
default:
|
|
333
|
-
const parsedBody = parsedOutput.body;
|
|
334
|
-
return throwDefaultError({
|
|
335
|
-
output,
|
|
336
|
-
parsedBody,
|
|
337
|
-
errorCode,
|
|
338
|
-
});
|
|
339
|
-
}
|
|
340
|
-
};
|
|
341
106
|
export const de_GetResourceRequestStatusCommand = async (output, context) => {
|
|
342
107
|
if (output.statusCode >= 300) {
|
|
343
|
-
return
|
|
108
|
+
return de_CommandError(output, context);
|
|
344
109
|
}
|
|
345
110
|
const data = await parseBody(output.body, context);
|
|
346
111
|
let contents = {};
|
|
@@ -351,28 +116,9 @@ export const de_GetResourceRequestStatusCommand = async (output, context) => {
|
|
|
351
116
|
};
|
|
352
117
|
return response;
|
|
353
118
|
};
|
|
354
|
-
const de_GetResourceRequestStatusCommandError = async (output, context) => {
|
|
355
|
-
const parsedOutput = {
|
|
356
|
-
...output,
|
|
357
|
-
body: await parseErrorBody(output.body, context),
|
|
358
|
-
};
|
|
359
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
360
|
-
switch (errorCode) {
|
|
361
|
-
case "RequestTokenNotFoundException":
|
|
362
|
-
case "com.amazonaws.cloudcontrol#RequestTokenNotFoundException":
|
|
363
|
-
throw await de_RequestTokenNotFoundExceptionRes(parsedOutput, context);
|
|
364
|
-
default:
|
|
365
|
-
const parsedBody = parsedOutput.body;
|
|
366
|
-
return throwDefaultError({
|
|
367
|
-
output,
|
|
368
|
-
parsedBody,
|
|
369
|
-
errorCode,
|
|
370
|
-
});
|
|
371
|
-
}
|
|
372
|
-
};
|
|
373
119
|
export const de_ListResourceRequestsCommand = async (output, context) => {
|
|
374
120
|
if (output.statusCode >= 300) {
|
|
375
|
-
return
|
|
121
|
+
return de_CommandError(output, context);
|
|
376
122
|
}
|
|
377
123
|
const data = await parseBody(output.body, context);
|
|
378
124
|
let contents = {};
|
|
@@ -383,22 +129,9 @@ export const de_ListResourceRequestsCommand = async (output, context) => {
|
|
|
383
129
|
};
|
|
384
130
|
return response;
|
|
385
131
|
};
|
|
386
|
-
const de_ListResourceRequestsCommandError = async (output, context) => {
|
|
387
|
-
const parsedOutput = {
|
|
388
|
-
...output,
|
|
389
|
-
body: await parseErrorBody(output.body, context),
|
|
390
|
-
};
|
|
391
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
392
|
-
const parsedBody = parsedOutput.body;
|
|
393
|
-
return throwDefaultError({
|
|
394
|
-
output,
|
|
395
|
-
parsedBody,
|
|
396
|
-
errorCode,
|
|
397
|
-
});
|
|
398
|
-
};
|
|
399
132
|
export const de_ListResourcesCommand = async (output, context) => {
|
|
400
133
|
if (output.statusCode >= 300) {
|
|
401
|
-
return
|
|
134
|
+
return de_CommandError(output, context);
|
|
402
135
|
}
|
|
403
136
|
const data = await parseBody(output.body, context);
|
|
404
137
|
let contents = {};
|
|
@@ -409,76 +142,9 @@ export const de_ListResourcesCommand = async (output, context) => {
|
|
|
409
142
|
};
|
|
410
143
|
return response;
|
|
411
144
|
};
|
|
412
|
-
const de_ListResourcesCommandError = async (output, context) => {
|
|
413
|
-
const parsedOutput = {
|
|
414
|
-
...output,
|
|
415
|
-
body: await parseErrorBody(output.body, context),
|
|
416
|
-
};
|
|
417
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
418
|
-
switch (errorCode) {
|
|
419
|
-
case "AlreadyExistsException":
|
|
420
|
-
case "com.amazonaws.cloudcontrol#AlreadyExistsException":
|
|
421
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
422
|
-
case "GeneralServiceException":
|
|
423
|
-
case "com.amazonaws.cloudcontrol#GeneralServiceException":
|
|
424
|
-
throw await de_GeneralServiceExceptionRes(parsedOutput, context);
|
|
425
|
-
case "HandlerFailureException":
|
|
426
|
-
case "com.amazonaws.cloudcontrol#HandlerFailureException":
|
|
427
|
-
throw await de_HandlerFailureExceptionRes(parsedOutput, context);
|
|
428
|
-
case "HandlerInternalFailureException":
|
|
429
|
-
case "com.amazonaws.cloudcontrol#HandlerInternalFailureException":
|
|
430
|
-
throw await de_HandlerInternalFailureExceptionRes(parsedOutput, context);
|
|
431
|
-
case "InvalidCredentialsException":
|
|
432
|
-
case "com.amazonaws.cloudcontrol#InvalidCredentialsException":
|
|
433
|
-
throw await de_InvalidCredentialsExceptionRes(parsedOutput, context);
|
|
434
|
-
case "InvalidRequestException":
|
|
435
|
-
case "com.amazonaws.cloudcontrol#InvalidRequestException":
|
|
436
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
437
|
-
case "NetworkFailureException":
|
|
438
|
-
case "com.amazonaws.cloudcontrol#NetworkFailureException":
|
|
439
|
-
throw await de_NetworkFailureExceptionRes(parsedOutput, context);
|
|
440
|
-
case "NotStabilizedException":
|
|
441
|
-
case "com.amazonaws.cloudcontrol#NotStabilizedException":
|
|
442
|
-
throw await de_NotStabilizedExceptionRes(parsedOutput, context);
|
|
443
|
-
case "NotUpdatableException":
|
|
444
|
-
case "com.amazonaws.cloudcontrol#NotUpdatableException":
|
|
445
|
-
throw await de_NotUpdatableExceptionRes(parsedOutput, context);
|
|
446
|
-
case "PrivateTypeException":
|
|
447
|
-
case "com.amazonaws.cloudcontrol#PrivateTypeException":
|
|
448
|
-
throw await de_PrivateTypeExceptionRes(parsedOutput, context);
|
|
449
|
-
case "ResourceConflictException":
|
|
450
|
-
case "com.amazonaws.cloudcontrol#ResourceConflictException":
|
|
451
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
452
|
-
case "ResourceNotFoundException":
|
|
453
|
-
case "com.amazonaws.cloudcontrol#ResourceNotFoundException":
|
|
454
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
455
|
-
case "ServiceInternalErrorException":
|
|
456
|
-
case "com.amazonaws.cloudcontrol#ServiceInternalErrorException":
|
|
457
|
-
throw await de_ServiceInternalErrorExceptionRes(parsedOutput, context);
|
|
458
|
-
case "ServiceLimitExceededException":
|
|
459
|
-
case "com.amazonaws.cloudcontrol#ServiceLimitExceededException":
|
|
460
|
-
throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
|
|
461
|
-
case "ThrottlingException":
|
|
462
|
-
case "com.amazonaws.cloudcontrol#ThrottlingException":
|
|
463
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
464
|
-
case "TypeNotFoundException":
|
|
465
|
-
case "com.amazonaws.cloudcontrol#TypeNotFoundException":
|
|
466
|
-
throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
|
|
467
|
-
case "UnsupportedActionException":
|
|
468
|
-
case "com.amazonaws.cloudcontrol#UnsupportedActionException":
|
|
469
|
-
throw await de_UnsupportedActionExceptionRes(parsedOutput, context);
|
|
470
|
-
default:
|
|
471
|
-
const parsedBody = parsedOutput.body;
|
|
472
|
-
return throwDefaultError({
|
|
473
|
-
output,
|
|
474
|
-
parsedBody,
|
|
475
|
-
errorCode,
|
|
476
|
-
});
|
|
477
|
-
}
|
|
478
|
-
};
|
|
479
145
|
export const de_UpdateResourceCommand = async (output, context) => {
|
|
480
146
|
if (output.statusCode >= 300) {
|
|
481
|
-
return
|
|
147
|
+
return de_CommandError(output, context);
|
|
482
148
|
}
|
|
483
149
|
const data = await parseBody(output.body, context);
|
|
484
150
|
let contents = {};
|
|
@@ -489,13 +155,19 @@ export const de_UpdateResourceCommand = async (output, context) => {
|
|
|
489
155
|
};
|
|
490
156
|
return response;
|
|
491
157
|
};
|
|
492
|
-
const
|
|
158
|
+
const de_CommandError = async (output, context) => {
|
|
493
159
|
const parsedOutput = {
|
|
494
160
|
...output,
|
|
495
161
|
body: await parseErrorBody(output.body, context),
|
|
496
162
|
};
|
|
497
163
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
498
164
|
switch (errorCode) {
|
|
165
|
+
case "ConcurrentModificationException":
|
|
166
|
+
case "com.amazonaws.cloudcontrol#ConcurrentModificationException":
|
|
167
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
168
|
+
case "RequestTokenNotFoundException":
|
|
169
|
+
case "com.amazonaws.cloudcontrol#RequestTokenNotFoundException":
|
|
170
|
+
throw await de_RequestTokenNotFoundExceptionRes(parsedOutput, context);
|
|
499
171
|
case "AlreadyExistsException":
|
|
500
172
|
case "com.amazonaws.cloudcontrol#AlreadyExistsException":
|
|
501
173
|
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cloudcontrol",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cloudcontrol Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.507.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-cloudcontrol",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.507.0",
|
|
24
24
|
"@aws-sdk/core": "3.496.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.507.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.502.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.502.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.502.0",
|