@aws-sdk/client-drs 3.504.0 → 3.509.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 +90 -1636
- package/dist-es/protocols/Aws_restJson1.js +111 -1657
- package/package.json +3 -3
|
@@ -766,7 +766,7 @@ export const se_UpdateReplicationConfigurationTemplateCommand = async (input, co
|
|
|
766
766
|
};
|
|
767
767
|
export const de_AssociateSourceNetworkStackCommand = async (output, context) => {
|
|
768
768
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
769
|
-
return
|
|
769
|
+
return de_CommandError(output, context);
|
|
770
770
|
}
|
|
771
771
|
const contents = map({
|
|
772
772
|
$metadata: deserializeMetadata(output),
|
|
@@ -778,46 +778,9 @@ export const de_AssociateSourceNetworkStackCommand = async (output, context) =>
|
|
|
778
778
|
Object.assign(contents, doc);
|
|
779
779
|
return contents;
|
|
780
780
|
};
|
|
781
|
-
const de_AssociateSourceNetworkStackCommandError = async (output, context) => {
|
|
782
|
-
const parsedOutput = {
|
|
783
|
-
...output,
|
|
784
|
-
body: await parseErrorBody(output.body, context),
|
|
785
|
-
};
|
|
786
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
787
|
-
switch (errorCode) {
|
|
788
|
-
case "ConflictException":
|
|
789
|
-
case "com.amazonaws.drs#ConflictException":
|
|
790
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
791
|
-
case "InternalServerException":
|
|
792
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
793
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
794
|
-
case "ResourceNotFoundException":
|
|
795
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
796
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
797
|
-
case "ServiceQuotaExceededException":
|
|
798
|
-
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
799
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
800
|
-
case "ThrottlingException":
|
|
801
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
802
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
803
|
-
case "UninitializedAccountException":
|
|
804
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
805
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
806
|
-
case "ValidationException":
|
|
807
|
-
case "com.amazonaws.drs#ValidationException":
|
|
808
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
809
|
-
default:
|
|
810
|
-
const parsedBody = parsedOutput.body;
|
|
811
|
-
return throwDefaultError({
|
|
812
|
-
output,
|
|
813
|
-
parsedBody,
|
|
814
|
-
errorCode,
|
|
815
|
-
});
|
|
816
|
-
}
|
|
817
|
-
};
|
|
818
781
|
export const de_CreateExtendedSourceServerCommand = async (output, context) => {
|
|
819
782
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
820
|
-
return
|
|
783
|
+
return de_CommandError(output, context);
|
|
821
784
|
}
|
|
822
785
|
const contents = map({
|
|
823
786
|
$metadata: deserializeMetadata(output),
|
|
@@ -829,46 +792,9 @@ export const de_CreateExtendedSourceServerCommand = async (output, context) => {
|
|
|
829
792
|
Object.assign(contents, doc);
|
|
830
793
|
return contents;
|
|
831
794
|
};
|
|
832
|
-
const de_CreateExtendedSourceServerCommandError = async (output, context) => {
|
|
833
|
-
const parsedOutput = {
|
|
834
|
-
...output,
|
|
835
|
-
body: await parseErrorBody(output.body, context),
|
|
836
|
-
};
|
|
837
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
838
|
-
switch (errorCode) {
|
|
839
|
-
case "AccessDeniedException":
|
|
840
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
841
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
842
|
-
case "InternalServerException":
|
|
843
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
844
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
845
|
-
case "ResourceNotFoundException":
|
|
846
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
847
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
848
|
-
case "ServiceQuotaExceededException":
|
|
849
|
-
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
850
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
851
|
-
case "ThrottlingException":
|
|
852
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
853
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
854
|
-
case "UninitializedAccountException":
|
|
855
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
856
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
857
|
-
case "ValidationException":
|
|
858
|
-
case "com.amazonaws.drs#ValidationException":
|
|
859
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
860
|
-
default:
|
|
861
|
-
const parsedBody = parsedOutput.body;
|
|
862
|
-
return throwDefaultError({
|
|
863
|
-
output,
|
|
864
|
-
parsedBody,
|
|
865
|
-
errorCode,
|
|
866
|
-
});
|
|
867
|
-
}
|
|
868
|
-
};
|
|
869
795
|
export const de_CreateLaunchConfigurationTemplateCommand = async (output, context) => {
|
|
870
796
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
871
|
-
return
|
|
797
|
+
return de_CommandError(output, context);
|
|
872
798
|
}
|
|
873
799
|
const contents = map({
|
|
874
800
|
$metadata: deserializeMetadata(output),
|
|
@@ -880,43 +806,9 @@ export const de_CreateLaunchConfigurationTemplateCommand = async (output, contex
|
|
|
880
806
|
Object.assign(contents, doc);
|
|
881
807
|
return contents;
|
|
882
808
|
};
|
|
883
|
-
const de_CreateLaunchConfigurationTemplateCommandError = async (output, context) => {
|
|
884
|
-
const parsedOutput = {
|
|
885
|
-
...output,
|
|
886
|
-
body: await parseErrorBody(output.body, context),
|
|
887
|
-
};
|
|
888
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
889
|
-
switch (errorCode) {
|
|
890
|
-
case "AccessDeniedException":
|
|
891
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
892
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
893
|
-
case "InternalServerException":
|
|
894
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
895
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
896
|
-
case "ServiceQuotaExceededException":
|
|
897
|
-
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
898
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
899
|
-
case "ThrottlingException":
|
|
900
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
901
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
902
|
-
case "UninitializedAccountException":
|
|
903
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
904
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
905
|
-
case "ValidationException":
|
|
906
|
-
case "com.amazonaws.drs#ValidationException":
|
|
907
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
908
|
-
default:
|
|
909
|
-
const parsedBody = parsedOutput.body;
|
|
910
|
-
return throwDefaultError({
|
|
911
|
-
output,
|
|
912
|
-
parsedBody,
|
|
913
|
-
errorCode,
|
|
914
|
-
});
|
|
915
|
-
}
|
|
916
|
-
};
|
|
917
809
|
export const de_CreateReplicationConfigurationTemplateCommand = async (output, context) => {
|
|
918
810
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
919
|
-
return
|
|
811
|
+
return de_CommandError(output, context);
|
|
920
812
|
}
|
|
921
813
|
const contents = map({
|
|
922
814
|
$metadata: deserializeMetadata(output),
|
|
@@ -944,43 +836,9 @@ export const de_CreateReplicationConfigurationTemplateCommand = async (output, c
|
|
|
944
836
|
Object.assign(contents, doc);
|
|
945
837
|
return contents;
|
|
946
838
|
};
|
|
947
|
-
const de_CreateReplicationConfigurationTemplateCommandError = async (output, context) => {
|
|
948
|
-
const parsedOutput = {
|
|
949
|
-
...output,
|
|
950
|
-
body: await parseErrorBody(output.body, context),
|
|
951
|
-
};
|
|
952
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
953
|
-
switch (errorCode) {
|
|
954
|
-
case "AccessDeniedException":
|
|
955
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
956
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
957
|
-
case "InternalServerException":
|
|
958
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
959
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
960
|
-
case "ServiceQuotaExceededException":
|
|
961
|
-
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
962
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
963
|
-
case "ThrottlingException":
|
|
964
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
965
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
966
|
-
case "UninitializedAccountException":
|
|
967
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
968
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
969
|
-
case "ValidationException":
|
|
970
|
-
case "com.amazonaws.drs#ValidationException":
|
|
971
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
972
|
-
default:
|
|
973
|
-
const parsedBody = parsedOutput.body;
|
|
974
|
-
return throwDefaultError({
|
|
975
|
-
output,
|
|
976
|
-
parsedBody,
|
|
977
|
-
errorCode,
|
|
978
|
-
});
|
|
979
|
-
}
|
|
980
|
-
};
|
|
981
839
|
export const de_CreateSourceNetworkCommand = async (output, context) => {
|
|
982
840
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
983
|
-
return
|
|
841
|
+
return de_CommandError(output, context);
|
|
984
842
|
}
|
|
985
843
|
const contents = map({
|
|
986
844
|
$metadata: deserializeMetadata(output),
|
|
@@ -992,46 +850,9 @@ export const de_CreateSourceNetworkCommand = async (output, context) => {
|
|
|
992
850
|
Object.assign(contents, doc);
|
|
993
851
|
return contents;
|
|
994
852
|
};
|
|
995
|
-
const de_CreateSourceNetworkCommandError = async (output, context) => {
|
|
996
|
-
const parsedOutput = {
|
|
997
|
-
...output,
|
|
998
|
-
body: await parseErrorBody(output.body, context),
|
|
999
|
-
};
|
|
1000
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1001
|
-
switch (errorCode) {
|
|
1002
|
-
case "ConflictException":
|
|
1003
|
-
case "com.amazonaws.drs#ConflictException":
|
|
1004
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1005
|
-
case "InternalServerException":
|
|
1006
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1007
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1008
|
-
case "ResourceNotFoundException":
|
|
1009
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1010
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1011
|
-
case "ServiceQuotaExceededException":
|
|
1012
|
-
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
1013
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1014
|
-
case "ThrottlingException":
|
|
1015
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1016
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1017
|
-
case "UninitializedAccountException":
|
|
1018
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1019
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1020
|
-
case "ValidationException":
|
|
1021
|
-
case "com.amazonaws.drs#ValidationException":
|
|
1022
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1023
|
-
default:
|
|
1024
|
-
const parsedBody = parsedOutput.body;
|
|
1025
|
-
return throwDefaultError({
|
|
1026
|
-
output,
|
|
1027
|
-
parsedBody,
|
|
1028
|
-
errorCode,
|
|
1029
|
-
});
|
|
1030
|
-
}
|
|
1031
|
-
};
|
|
1032
853
|
export const de_DeleteJobCommand = async (output, context) => {
|
|
1033
854
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1034
|
-
return
|
|
855
|
+
return de_CommandError(output, context);
|
|
1035
856
|
}
|
|
1036
857
|
const contents = map({
|
|
1037
858
|
$metadata: deserializeMetadata(output),
|
|
@@ -1039,40 +860,19 @@ export const de_DeleteJobCommand = async (output, context) => {
|
|
|
1039
860
|
await collectBody(output.body, context);
|
|
1040
861
|
return contents;
|
|
1041
862
|
};
|
|
1042
|
-
const
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
body: await parseErrorBody(output.body, context),
|
|
1046
|
-
};
|
|
1047
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1048
|
-
switch (errorCode) {
|
|
1049
|
-
case "ConflictException":
|
|
1050
|
-
case "com.amazonaws.drs#ConflictException":
|
|
1051
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1052
|
-
case "InternalServerException":
|
|
1053
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1054
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1055
|
-
case "ResourceNotFoundException":
|
|
1056
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1057
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1058
|
-
case "ThrottlingException":
|
|
1059
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1060
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1061
|
-
case "UninitializedAccountException":
|
|
1062
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1063
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1064
|
-
default:
|
|
1065
|
-
const parsedBody = parsedOutput.body;
|
|
1066
|
-
return throwDefaultError({
|
|
1067
|
-
output,
|
|
1068
|
-
parsedBody,
|
|
1069
|
-
errorCode,
|
|
1070
|
-
});
|
|
863
|
+
export const de_DeleteLaunchActionCommand = async (output, context) => {
|
|
864
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
865
|
+
return de_CommandError(output, context);
|
|
1071
866
|
}
|
|
867
|
+
const contents = map({
|
|
868
|
+
$metadata: deserializeMetadata(output),
|
|
869
|
+
});
|
|
870
|
+
await collectBody(output.body, context);
|
|
871
|
+
return contents;
|
|
1072
872
|
};
|
|
1073
|
-
export const
|
|
873
|
+
export const de_DeleteLaunchConfigurationTemplateCommand = async (output, context) => {
|
|
1074
874
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1075
|
-
return
|
|
875
|
+
return de_CommandError(output, context);
|
|
1076
876
|
}
|
|
1077
877
|
const contents = map({
|
|
1078
878
|
$metadata: deserializeMetadata(output),
|
|
@@ -1080,40 +880,19 @@ export const de_DeleteLaunchActionCommand = async (output, context) => {
|
|
|
1080
880
|
await collectBody(output.body, context);
|
|
1081
881
|
return contents;
|
|
1082
882
|
};
|
|
1083
|
-
const
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
body: await parseErrorBody(output.body, context),
|
|
1087
|
-
};
|
|
1088
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1089
|
-
switch (errorCode) {
|
|
1090
|
-
case "InternalServerException":
|
|
1091
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1092
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1093
|
-
case "ResourceNotFoundException":
|
|
1094
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1095
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1096
|
-
case "ThrottlingException":
|
|
1097
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1098
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1099
|
-
case "UninitializedAccountException":
|
|
1100
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1101
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1102
|
-
case "ValidationException":
|
|
1103
|
-
case "com.amazonaws.drs#ValidationException":
|
|
1104
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1105
|
-
default:
|
|
1106
|
-
const parsedBody = parsedOutput.body;
|
|
1107
|
-
return throwDefaultError({
|
|
1108
|
-
output,
|
|
1109
|
-
parsedBody,
|
|
1110
|
-
errorCode,
|
|
1111
|
-
});
|
|
883
|
+
export const de_DeleteRecoveryInstanceCommand = async (output, context) => {
|
|
884
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
885
|
+
return de_CommandError(output, context);
|
|
1112
886
|
}
|
|
887
|
+
const contents = map({
|
|
888
|
+
$metadata: deserializeMetadata(output),
|
|
889
|
+
});
|
|
890
|
+
await collectBody(output.body, context);
|
|
891
|
+
return contents;
|
|
1113
892
|
};
|
|
1114
|
-
export const
|
|
893
|
+
export const de_DeleteReplicationConfigurationTemplateCommand = async (output, context) => {
|
|
1115
894
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1116
|
-
return
|
|
895
|
+
return de_CommandError(output, context);
|
|
1117
896
|
}
|
|
1118
897
|
const contents = map({
|
|
1119
898
|
$metadata: deserializeMetadata(output),
|
|
@@ -1121,122 +900,9 @@ export const de_DeleteLaunchConfigurationTemplateCommand = async (output, contex
|
|
|
1121
900
|
await collectBody(output.body, context);
|
|
1122
901
|
return contents;
|
|
1123
902
|
};
|
|
1124
|
-
const de_DeleteLaunchConfigurationTemplateCommandError = async (output, context) => {
|
|
1125
|
-
const parsedOutput = {
|
|
1126
|
-
...output,
|
|
1127
|
-
body: await parseErrorBody(output.body, context),
|
|
1128
|
-
};
|
|
1129
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1130
|
-
switch (errorCode) {
|
|
1131
|
-
case "ConflictException":
|
|
1132
|
-
case "com.amazonaws.drs#ConflictException":
|
|
1133
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1134
|
-
case "InternalServerException":
|
|
1135
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1136
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1137
|
-
case "ResourceNotFoundException":
|
|
1138
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1139
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1140
|
-
case "ThrottlingException":
|
|
1141
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1142
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1143
|
-
case "UninitializedAccountException":
|
|
1144
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1145
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1146
|
-
default:
|
|
1147
|
-
const parsedBody = parsedOutput.body;
|
|
1148
|
-
return throwDefaultError({
|
|
1149
|
-
output,
|
|
1150
|
-
parsedBody,
|
|
1151
|
-
errorCode,
|
|
1152
|
-
});
|
|
1153
|
-
}
|
|
1154
|
-
};
|
|
1155
|
-
export const de_DeleteRecoveryInstanceCommand = async (output, context) => {
|
|
1156
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1157
|
-
return de_DeleteRecoveryInstanceCommandError(output, context);
|
|
1158
|
-
}
|
|
1159
|
-
const contents = map({
|
|
1160
|
-
$metadata: deserializeMetadata(output),
|
|
1161
|
-
});
|
|
1162
|
-
await collectBody(output.body, context);
|
|
1163
|
-
return contents;
|
|
1164
|
-
};
|
|
1165
|
-
const de_DeleteRecoveryInstanceCommandError = async (output, context) => {
|
|
1166
|
-
const parsedOutput = {
|
|
1167
|
-
...output,
|
|
1168
|
-
body: await parseErrorBody(output.body, context),
|
|
1169
|
-
};
|
|
1170
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1171
|
-
switch (errorCode) {
|
|
1172
|
-
case "AccessDeniedException":
|
|
1173
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
1174
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1175
|
-
case "ConflictException":
|
|
1176
|
-
case "com.amazonaws.drs#ConflictException":
|
|
1177
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1178
|
-
case "InternalServerException":
|
|
1179
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1180
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1181
|
-
case "ThrottlingException":
|
|
1182
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1183
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1184
|
-
case "UninitializedAccountException":
|
|
1185
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1186
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1187
|
-
default:
|
|
1188
|
-
const parsedBody = parsedOutput.body;
|
|
1189
|
-
return throwDefaultError({
|
|
1190
|
-
output,
|
|
1191
|
-
parsedBody,
|
|
1192
|
-
errorCode,
|
|
1193
|
-
});
|
|
1194
|
-
}
|
|
1195
|
-
};
|
|
1196
|
-
export const de_DeleteReplicationConfigurationTemplateCommand = async (output, context) => {
|
|
1197
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1198
|
-
return de_DeleteReplicationConfigurationTemplateCommandError(output, context);
|
|
1199
|
-
}
|
|
1200
|
-
const contents = map({
|
|
1201
|
-
$metadata: deserializeMetadata(output),
|
|
1202
|
-
});
|
|
1203
|
-
await collectBody(output.body, context);
|
|
1204
|
-
return contents;
|
|
1205
|
-
};
|
|
1206
|
-
const de_DeleteReplicationConfigurationTemplateCommandError = 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 "ConflictException":
|
|
1214
|
-
case "com.amazonaws.drs#ConflictException":
|
|
1215
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1216
|
-
case "InternalServerException":
|
|
1217
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1218
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1219
|
-
case "ResourceNotFoundException":
|
|
1220
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1221
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1222
|
-
case "ThrottlingException":
|
|
1223
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1224
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1225
|
-
case "UninitializedAccountException":
|
|
1226
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1227
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1228
|
-
default:
|
|
1229
|
-
const parsedBody = parsedOutput.body;
|
|
1230
|
-
return throwDefaultError({
|
|
1231
|
-
output,
|
|
1232
|
-
parsedBody,
|
|
1233
|
-
errorCode,
|
|
1234
|
-
});
|
|
1235
|
-
}
|
|
1236
|
-
};
|
|
1237
903
|
export const de_DeleteSourceNetworkCommand = async (output, context) => {
|
|
1238
904
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1239
|
-
return
|
|
905
|
+
return de_CommandError(output, context);
|
|
1240
906
|
}
|
|
1241
907
|
const contents = map({
|
|
1242
908
|
$metadata: deserializeMetadata(output),
|
|
@@ -1244,40 +910,9 @@ export const de_DeleteSourceNetworkCommand = async (output, context) => {
|
|
|
1244
910
|
await collectBody(output.body, context);
|
|
1245
911
|
return contents;
|
|
1246
912
|
};
|
|
1247
|
-
const de_DeleteSourceNetworkCommandError = async (output, context) => {
|
|
1248
|
-
const parsedOutput = {
|
|
1249
|
-
...output,
|
|
1250
|
-
body: await parseErrorBody(output.body, context),
|
|
1251
|
-
};
|
|
1252
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1253
|
-
switch (errorCode) {
|
|
1254
|
-
case "ConflictException":
|
|
1255
|
-
case "com.amazonaws.drs#ConflictException":
|
|
1256
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1257
|
-
case "InternalServerException":
|
|
1258
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1259
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1260
|
-
case "ResourceNotFoundException":
|
|
1261
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1262
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1263
|
-
case "ThrottlingException":
|
|
1264
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1265
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1266
|
-
case "UninitializedAccountException":
|
|
1267
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1268
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1269
|
-
default:
|
|
1270
|
-
const parsedBody = parsedOutput.body;
|
|
1271
|
-
return throwDefaultError({
|
|
1272
|
-
output,
|
|
1273
|
-
parsedBody,
|
|
1274
|
-
errorCode,
|
|
1275
|
-
});
|
|
1276
|
-
}
|
|
1277
|
-
};
|
|
1278
913
|
export const de_DeleteSourceServerCommand = async (output, context) => {
|
|
1279
914
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1280
|
-
return
|
|
915
|
+
return de_CommandError(output, context);
|
|
1281
916
|
}
|
|
1282
917
|
const contents = map({
|
|
1283
918
|
$metadata: deserializeMetadata(output),
|
|
@@ -1285,40 +920,9 @@ export const de_DeleteSourceServerCommand = async (output, context) => {
|
|
|
1285
920
|
await collectBody(output.body, context);
|
|
1286
921
|
return contents;
|
|
1287
922
|
};
|
|
1288
|
-
const de_DeleteSourceServerCommandError = async (output, context) => {
|
|
1289
|
-
const parsedOutput = {
|
|
1290
|
-
...output,
|
|
1291
|
-
body: await parseErrorBody(output.body, context),
|
|
1292
|
-
};
|
|
1293
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1294
|
-
switch (errorCode) {
|
|
1295
|
-
case "ConflictException":
|
|
1296
|
-
case "com.amazonaws.drs#ConflictException":
|
|
1297
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1298
|
-
case "InternalServerException":
|
|
1299
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1300
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1301
|
-
case "ResourceNotFoundException":
|
|
1302
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1303
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1304
|
-
case "ThrottlingException":
|
|
1305
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1306
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1307
|
-
case "UninitializedAccountException":
|
|
1308
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1309
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1310
|
-
default:
|
|
1311
|
-
const parsedBody = parsedOutput.body;
|
|
1312
|
-
return throwDefaultError({
|
|
1313
|
-
output,
|
|
1314
|
-
parsedBody,
|
|
1315
|
-
errorCode,
|
|
1316
|
-
});
|
|
1317
|
-
}
|
|
1318
|
-
};
|
|
1319
923
|
export const de_DescribeJobLogItemsCommand = async (output, context) => {
|
|
1320
924
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1321
|
-
return
|
|
925
|
+
return de_CommandError(output, context);
|
|
1322
926
|
}
|
|
1323
927
|
const contents = map({
|
|
1324
928
|
$metadata: deserializeMetadata(output),
|
|
@@ -1331,37 +935,9 @@ export const de_DescribeJobLogItemsCommand = async (output, context) => {
|
|
|
1331
935
|
Object.assign(contents, doc);
|
|
1332
936
|
return contents;
|
|
1333
937
|
};
|
|
1334
|
-
const de_DescribeJobLogItemsCommandError = async (output, context) => {
|
|
1335
|
-
const parsedOutput = {
|
|
1336
|
-
...output,
|
|
1337
|
-
body: await parseErrorBody(output.body, context),
|
|
1338
|
-
};
|
|
1339
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1340
|
-
switch (errorCode) {
|
|
1341
|
-
case "InternalServerException":
|
|
1342
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1343
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1344
|
-
case "ThrottlingException":
|
|
1345
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1346
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1347
|
-
case "UninitializedAccountException":
|
|
1348
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1349
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1350
|
-
case "ValidationException":
|
|
1351
|
-
case "com.amazonaws.drs#ValidationException":
|
|
1352
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1353
|
-
default:
|
|
1354
|
-
const parsedBody = parsedOutput.body;
|
|
1355
|
-
return throwDefaultError({
|
|
1356
|
-
output,
|
|
1357
|
-
parsedBody,
|
|
1358
|
-
errorCode,
|
|
1359
|
-
});
|
|
1360
|
-
}
|
|
1361
|
-
};
|
|
1362
938
|
export const de_DescribeJobsCommand = async (output, context) => {
|
|
1363
939
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1364
|
-
return
|
|
940
|
+
return de_CommandError(output, context);
|
|
1365
941
|
}
|
|
1366
942
|
const contents = map({
|
|
1367
943
|
$metadata: deserializeMetadata(output),
|
|
@@ -1374,37 +950,9 @@ export const de_DescribeJobsCommand = async (output, context) => {
|
|
|
1374
950
|
Object.assign(contents, doc);
|
|
1375
951
|
return contents;
|
|
1376
952
|
};
|
|
1377
|
-
const de_DescribeJobsCommandError = async (output, context) => {
|
|
1378
|
-
const parsedOutput = {
|
|
1379
|
-
...output,
|
|
1380
|
-
body: await parseErrorBody(output.body, context),
|
|
1381
|
-
};
|
|
1382
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1383
|
-
switch (errorCode) {
|
|
1384
|
-
case "InternalServerException":
|
|
1385
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1386
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1387
|
-
case "ThrottlingException":
|
|
1388
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1389
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1390
|
-
case "UninitializedAccountException":
|
|
1391
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1392
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1393
|
-
case "ValidationException":
|
|
1394
|
-
case "com.amazonaws.drs#ValidationException":
|
|
1395
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1396
|
-
default:
|
|
1397
|
-
const parsedBody = parsedOutput.body;
|
|
1398
|
-
return throwDefaultError({
|
|
1399
|
-
output,
|
|
1400
|
-
parsedBody,
|
|
1401
|
-
errorCode,
|
|
1402
|
-
});
|
|
1403
|
-
}
|
|
1404
|
-
};
|
|
1405
953
|
export const de_DescribeLaunchConfigurationTemplatesCommand = async (output, context) => {
|
|
1406
954
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1407
|
-
return
|
|
955
|
+
return de_CommandError(output, context);
|
|
1408
956
|
}
|
|
1409
957
|
const contents = map({
|
|
1410
958
|
$metadata: deserializeMetadata(output),
|
|
@@ -1417,40 +965,24 @@ export const de_DescribeLaunchConfigurationTemplatesCommand = async (output, con
|
|
|
1417
965
|
Object.assign(contents, doc);
|
|
1418
966
|
return contents;
|
|
1419
967
|
};
|
|
1420
|
-
const
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
body: await parseErrorBody(output.body, context),
|
|
1424
|
-
};
|
|
1425
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1426
|
-
switch (errorCode) {
|
|
1427
|
-
case "InternalServerException":
|
|
1428
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1429
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1430
|
-
case "ResourceNotFoundException":
|
|
1431
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1432
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1433
|
-
case "ThrottlingException":
|
|
1434
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1435
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1436
|
-
case "UninitializedAccountException":
|
|
1437
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1438
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1439
|
-
case "ValidationException":
|
|
1440
|
-
case "com.amazonaws.drs#ValidationException":
|
|
1441
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1442
|
-
default:
|
|
1443
|
-
const parsedBody = parsedOutput.body;
|
|
1444
|
-
return throwDefaultError({
|
|
1445
|
-
output,
|
|
1446
|
-
parsedBody,
|
|
1447
|
-
errorCode,
|
|
1448
|
-
});
|
|
968
|
+
export const de_DescribeRecoveryInstancesCommand = async (output, context) => {
|
|
969
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
970
|
+
return de_CommandError(output, context);
|
|
1449
971
|
}
|
|
972
|
+
const contents = map({
|
|
973
|
+
$metadata: deserializeMetadata(output),
|
|
974
|
+
});
|
|
975
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
976
|
+
const doc = take(data, {
|
|
977
|
+
items: _json,
|
|
978
|
+
nextToken: __expectString,
|
|
979
|
+
});
|
|
980
|
+
Object.assign(contents, doc);
|
|
981
|
+
return contents;
|
|
1450
982
|
};
|
|
1451
|
-
export const
|
|
983
|
+
export const de_DescribeRecoverySnapshotsCommand = async (output, context) => {
|
|
1452
984
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1453
|
-
return
|
|
985
|
+
return de_CommandError(output, context);
|
|
1454
986
|
}
|
|
1455
987
|
const contents = map({
|
|
1456
988
|
$metadata: deserializeMetadata(output),
|
|
@@ -1463,83 +995,9 @@ export const de_DescribeRecoveryInstancesCommand = async (output, context) => {
|
|
|
1463
995
|
Object.assign(contents, doc);
|
|
1464
996
|
return contents;
|
|
1465
997
|
};
|
|
1466
|
-
const de_DescribeRecoveryInstancesCommandError = async (output, context) => {
|
|
1467
|
-
const parsedOutput = {
|
|
1468
|
-
...output,
|
|
1469
|
-
body: await parseErrorBody(output.body, context),
|
|
1470
|
-
};
|
|
1471
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1472
|
-
switch (errorCode) {
|
|
1473
|
-
case "AccessDeniedException":
|
|
1474
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
1475
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1476
|
-
case "InternalServerException":
|
|
1477
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1478
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1479
|
-
case "ThrottlingException":
|
|
1480
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1481
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1482
|
-
case "UninitializedAccountException":
|
|
1483
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1484
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1485
|
-
default:
|
|
1486
|
-
const parsedBody = parsedOutput.body;
|
|
1487
|
-
return throwDefaultError({
|
|
1488
|
-
output,
|
|
1489
|
-
parsedBody,
|
|
1490
|
-
errorCode,
|
|
1491
|
-
});
|
|
1492
|
-
}
|
|
1493
|
-
};
|
|
1494
|
-
export const de_DescribeRecoverySnapshotsCommand = async (output, context) => {
|
|
1495
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1496
|
-
return de_DescribeRecoverySnapshotsCommandError(output, context);
|
|
1497
|
-
}
|
|
1498
|
-
const contents = map({
|
|
1499
|
-
$metadata: deserializeMetadata(output),
|
|
1500
|
-
});
|
|
1501
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1502
|
-
const doc = take(data, {
|
|
1503
|
-
items: _json,
|
|
1504
|
-
nextToken: __expectString,
|
|
1505
|
-
});
|
|
1506
|
-
Object.assign(contents, doc);
|
|
1507
|
-
return contents;
|
|
1508
|
-
};
|
|
1509
|
-
const de_DescribeRecoverySnapshotsCommandError = async (output, context) => {
|
|
1510
|
-
const parsedOutput = {
|
|
1511
|
-
...output,
|
|
1512
|
-
body: await parseErrorBody(output.body, context),
|
|
1513
|
-
};
|
|
1514
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1515
|
-
switch (errorCode) {
|
|
1516
|
-
case "AccessDeniedException":
|
|
1517
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
1518
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1519
|
-
case "InternalServerException":
|
|
1520
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1521
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1522
|
-
case "ThrottlingException":
|
|
1523
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1524
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1525
|
-
case "UninitializedAccountException":
|
|
1526
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1527
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1528
|
-
case "ValidationException":
|
|
1529
|
-
case "com.amazonaws.drs#ValidationException":
|
|
1530
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1531
|
-
default:
|
|
1532
|
-
const parsedBody = parsedOutput.body;
|
|
1533
|
-
return throwDefaultError({
|
|
1534
|
-
output,
|
|
1535
|
-
parsedBody,
|
|
1536
|
-
errorCode,
|
|
1537
|
-
});
|
|
1538
|
-
}
|
|
1539
|
-
};
|
|
1540
998
|
export const de_DescribeReplicationConfigurationTemplatesCommand = async (output, context) => {
|
|
1541
999
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1542
|
-
return
|
|
1000
|
+
return de_CommandError(output, context);
|
|
1543
1001
|
}
|
|
1544
1002
|
const contents = map({
|
|
1545
1003
|
$metadata: deserializeMetadata(output),
|
|
@@ -1552,40 +1010,9 @@ export const de_DescribeReplicationConfigurationTemplatesCommand = async (output
|
|
|
1552
1010
|
Object.assign(contents, doc);
|
|
1553
1011
|
return contents;
|
|
1554
1012
|
};
|
|
1555
|
-
const de_DescribeReplicationConfigurationTemplatesCommandError = async (output, context) => {
|
|
1556
|
-
const parsedOutput = {
|
|
1557
|
-
...output,
|
|
1558
|
-
body: await parseErrorBody(output.body, context),
|
|
1559
|
-
};
|
|
1560
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1561
|
-
switch (errorCode) {
|
|
1562
|
-
case "InternalServerException":
|
|
1563
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1564
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1565
|
-
case "ResourceNotFoundException":
|
|
1566
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1567
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1568
|
-
case "ThrottlingException":
|
|
1569
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1570
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1571
|
-
case "UninitializedAccountException":
|
|
1572
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1573
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1574
|
-
case "ValidationException":
|
|
1575
|
-
case "com.amazonaws.drs#ValidationException":
|
|
1576
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1577
|
-
default:
|
|
1578
|
-
const parsedBody = parsedOutput.body;
|
|
1579
|
-
return throwDefaultError({
|
|
1580
|
-
output,
|
|
1581
|
-
parsedBody,
|
|
1582
|
-
errorCode,
|
|
1583
|
-
});
|
|
1584
|
-
}
|
|
1585
|
-
};
|
|
1586
1013
|
export const de_DescribeSourceNetworksCommand = async (output, context) => {
|
|
1587
1014
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1588
|
-
return
|
|
1015
|
+
return de_CommandError(output, context);
|
|
1589
1016
|
}
|
|
1590
1017
|
const contents = map({
|
|
1591
1018
|
$metadata: deserializeMetadata(output),
|
|
@@ -1598,37 +1025,9 @@ export const de_DescribeSourceNetworksCommand = async (output, context) => {
|
|
|
1598
1025
|
Object.assign(contents, doc);
|
|
1599
1026
|
return contents;
|
|
1600
1027
|
};
|
|
1601
|
-
const de_DescribeSourceNetworksCommandError = async (output, context) => {
|
|
1602
|
-
const parsedOutput = {
|
|
1603
|
-
...output,
|
|
1604
|
-
body: await parseErrorBody(output.body, context),
|
|
1605
|
-
};
|
|
1606
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1607
|
-
switch (errorCode) {
|
|
1608
|
-
case "InternalServerException":
|
|
1609
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1610
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1611
|
-
case "ThrottlingException":
|
|
1612
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1613
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1614
|
-
case "UninitializedAccountException":
|
|
1615
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1616
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1617
|
-
case "ValidationException":
|
|
1618
|
-
case "com.amazonaws.drs#ValidationException":
|
|
1619
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1620
|
-
default:
|
|
1621
|
-
const parsedBody = parsedOutput.body;
|
|
1622
|
-
return throwDefaultError({
|
|
1623
|
-
output,
|
|
1624
|
-
parsedBody,
|
|
1625
|
-
errorCode,
|
|
1626
|
-
});
|
|
1627
|
-
}
|
|
1628
|
-
};
|
|
1629
1028
|
export const de_DescribeSourceServersCommand = async (output, context) => {
|
|
1630
1029
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1631
|
-
return
|
|
1030
|
+
return de_CommandError(output, context);
|
|
1632
1031
|
}
|
|
1633
1032
|
const contents = map({
|
|
1634
1033
|
$metadata: deserializeMetadata(output),
|
|
@@ -1641,37 +1040,9 @@ export const de_DescribeSourceServersCommand = async (output, context) => {
|
|
|
1641
1040
|
Object.assign(contents, doc);
|
|
1642
1041
|
return contents;
|
|
1643
1042
|
};
|
|
1644
|
-
const de_DescribeSourceServersCommandError = async (output, context) => {
|
|
1645
|
-
const parsedOutput = {
|
|
1646
|
-
...output,
|
|
1647
|
-
body: await parseErrorBody(output.body, context),
|
|
1648
|
-
};
|
|
1649
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1650
|
-
switch (errorCode) {
|
|
1651
|
-
case "InternalServerException":
|
|
1652
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1653
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1654
|
-
case "ThrottlingException":
|
|
1655
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1656
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1657
|
-
case "UninitializedAccountException":
|
|
1658
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1659
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1660
|
-
case "ValidationException":
|
|
1661
|
-
case "com.amazonaws.drs#ValidationException":
|
|
1662
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1663
|
-
default:
|
|
1664
|
-
const parsedBody = parsedOutput.body;
|
|
1665
|
-
return throwDefaultError({
|
|
1666
|
-
output,
|
|
1667
|
-
parsedBody,
|
|
1668
|
-
errorCode,
|
|
1669
|
-
});
|
|
1670
|
-
}
|
|
1671
|
-
};
|
|
1672
1043
|
export const de_DisconnectRecoveryInstanceCommand = async (output, context) => {
|
|
1673
1044
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1674
|
-
return
|
|
1045
|
+
return de_CommandError(output, context);
|
|
1675
1046
|
}
|
|
1676
1047
|
const contents = map({
|
|
1677
1048
|
$metadata: deserializeMetadata(output),
|
|
@@ -1679,43 +1050,9 @@ export const de_DisconnectRecoveryInstanceCommand = async (output, context) => {
|
|
|
1679
1050
|
await collectBody(output.body, context);
|
|
1680
1051
|
return contents;
|
|
1681
1052
|
};
|
|
1682
|
-
const de_DisconnectRecoveryInstanceCommandError = async (output, context) => {
|
|
1683
|
-
const parsedOutput = {
|
|
1684
|
-
...output,
|
|
1685
|
-
body: await parseErrorBody(output.body, context),
|
|
1686
|
-
};
|
|
1687
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1688
|
-
switch (errorCode) {
|
|
1689
|
-
case "AccessDeniedException":
|
|
1690
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
1691
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1692
|
-
case "ConflictException":
|
|
1693
|
-
case "com.amazonaws.drs#ConflictException":
|
|
1694
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1695
|
-
case "InternalServerException":
|
|
1696
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1697
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1698
|
-
case "ResourceNotFoundException":
|
|
1699
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1700
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1701
|
-
case "ThrottlingException":
|
|
1702
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1703
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1704
|
-
case "UninitializedAccountException":
|
|
1705
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1706
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1707
|
-
default:
|
|
1708
|
-
const parsedBody = parsedOutput.body;
|
|
1709
|
-
return throwDefaultError({
|
|
1710
|
-
output,
|
|
1711
|
-
parsedBody,
|
|
1712
|
-
errorCode,
|
|
1713
|
-
});
|
|
1714
|
-
}
|
|
1715
|
-
};
|
|
1716
1053
|
export const de_DisconnectSourceServerCommand = async (output, context) => {
|
|
1717
1054
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1718
|
-
return
|
|
1055
|
+
return de_CommandError(output, context);
|
|
1719
1056
|
}
|
|
1720
1057
|
const contents = map({
|
|
1721
1058
|
$metadata: deserializeMetadata(output),
|
|
@@ -1740,40 +1077,9 @@ export const de_DisconnectSourceServerCommand = async (output, context) => {
|
|
|
1740
1077
|
Object.assign(contents, doc);
|
|
1741
1078
|
return contents;
|
|
1742
1079
|
};
|
|
1743
|
-
const de_DisconnectSourceServerCommandError = async (output, context) => {
|
|
1744
|
-
const parsedOutput = {
|
|
1745
|
-
...output,
|
|
1746
|
-
body: await parseErrorBody(output.body, context),
|
|
1747
|
-
};
|
|
1748
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1749
|
-
switch (errorCode) {
|
|
1750
|
-
case "ConflictException":
|
|
1751
|
-
case "com.amazonaws.drs#ConflictException":
|
|
1752
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1753
|
-
case "InternalServerException":
|
|
1754
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1755
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1756
|
-
case "ResourceNotFoundException":
|
|
1757
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1758
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1759
|
-
case "ThrottlingException":
|
|
1760
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1761
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1762
|
-
case "UninitializedAccountException":
|
|
1763
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1764
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1765
|
-
default:
|
|
1766
|
-
const parsedBody = parsedOutput.body;
|
|
1767
|
-
return throwDefaultError({
|
|
1768
|
-
output,
|
|
1769
|
-
parsedBody,
|
|
1770
|
-
errorCode,
|
|
1771
|
-
});
|
|
1772
|
-
}
|
|
1773
|
-
};
|
|
1774
1080
|
export const de_ExportSourceNetworkCfnTemplateCommand = async (output, context) => {
|
|
1775
1081
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1776
|
-
return
|
|
1082
|
+
return de_CommandError(output, context);
|
|
1777
1083
|
}
|
|
1778
1084
|
const contents = map({
|
|
1779
1085
|
$metadata: deserializeMetadata(output),
|
|
@@ -1785,43 +1091,9 @@ export const de_ExportSourceNetworkCfnTemplateCommand = async (output, context)
|
|
|
1785
1091
|
Object.assign(contents, doc);
|
|
1786
1092
|
return contents;
|
|
1787
1093
|
};
|
|
1788
|
-
const de_ExportSourceNetworkCfnTemplateCommandError = async (output, context) => {
|
|
1789
|
-
const parsedOutput = {
|
|
1790
|
-
...output,
|
|
1791
|
-
body: await parseErrorBody(output.body, context),
|
|
1792
|
-
};
|
|
1793
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1794
|
-
switch (errorCode) {
|
|
1795
|
-
case "ConflictException":
|
|
1796
|
-
case "com.amazonaws.drs#ConflictException":
|
|
1797
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1798
|
-
case "InternalServerException":
|
|
1799
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1800
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1801
|
-
case "ResourceNotFoundException":
|
|
1802
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1803
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1804
|
-
case "ThrottlingException":
|
|
1805
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1806
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1807
|
-
case "UninitializedAccountException":
|
|
1808
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1809
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1810
|
-
case "ValidationException":
|
|
1811
|
-
case "com.amazonaws.drs#ValidationException":
|
|
1812
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1813
|
-
default:
|
|
1814
|
-
const parsedBody = parsedOutput.body;
|
|
1815
|
-
return throwDefaultError({
|
|
1816
|
-
output,
|
|
1817
|
-
parsedBody,
|
|
1818
|
-
errorCode,
|
|
1819
|
-
});
|
|
1820
|
-
}
|
|
1821
|
-
};
|
|
1822
1094
|
export const de_GetFailbackReplicationConfigurationCommand = async (output, context) => {
|
|
1823
1095
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1824
|
-
return
|
|
1096
|
+
return de_CommandError(output, context);
|
|
1825
1097
|
}
|
|
1826
1098
|
const contents = map({
|
|
1827
1099
|
$metadata: deserializeMetadata(output),
|
|
@@ -1836,37 +1108,9 @@ export const de_GetFailbackReplicationConfigurationCommand = async (output, cont
|
|
|
1836
1108
|
Object.assign(contents, doc);
|
|
1837
1109
|
return contents;
|
|
1838
1110
|
};
|
|
1839
|
-
const de_GetFailbackReplicationConfigurationCommandError = async (output, context) => {
|
|
1840
|
-
const parsedOutput = {
|
|
1841
|
-
...output,
|
|
1842
|
-
body: await parseErrorBody(output.body, context),
|
|
1843
|
-
};
|
|
1844
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1845
|
-
switch (errorCode) {
|
|
1846
|
-
case "InternalServerException":
|
|
1847
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1848
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1849
|
-
case "ResourceNotFoundException":
|
|
1850
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1851
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1852
|
-
case "ThrottlingException":
|
|
1853
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1854
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1855
|
-
case "UninitializedAccountException":
|
|
1856
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1857
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1858
|
-
default:
|
|
1859
|
-
const parsedBody = parsedOutput.body;
|
|
1860
|
-
return throwDefaultError({
|
|
1861
|
-
output,
|
|
1862
|
-
parsedBody,
|
|
1863
|
-
errorCode,
|
|
1864
|
-
});
|
|
1865
|
-
}
|
|
1866
|
-
};
|
|
1867
1111
|
export const de_GetLaunchConfigurationCommand = async (output, context) => {
|
|
1868
1112
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1869
|
-
return
|
|
1113
|
+
return de_CommandError(output, context);
|
|
1870
1114
|
}
|
|
1871
1115
|
const contents = map({
|
|
1872
1116
|
$metadata: deserializeMetadata(output),
|
|
@@ -1887,37 +1131,9 @@ export const de_GetLaunchConfigurationCommand = async (output, context) => {
|
|
|
1887
1131
|
Object.assign(contents, doc);
|
|
1888
1132
|
return contents;
|
|
1889
1133
|
};
|
|
1890
|
-
const de_GetLaunchConfigurationCommandError = async (output, context) => {
|
|
1891
|
-
const parsedOutput = {
|
|
1892
|
-
...output,
|
|
1893
|
-
body: await parseErrorBody(output.body, context),
|
|
1894
|
-
};
|
|
1895
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1896
|
-
switch (errorCode) {
|
|
1897
|
-
case "InternalServerException":
|
|
1898
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1899
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1900
|
-
case "ResourceNotFoundException":
|
|
1901
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1902
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1903
|
-
case "ThrottlingException":
|
|
1904
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1905
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1906
|
-
case "UninitializedAccountException":
|
|
1907
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1908
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1909
|
-
default:
|
|
1910
|
-
const parsedBody = parsedOutput.body;
|
|
1911
|
-
return throwDefaultError({
|
|
1912
|
-
output,
|
|
1913
|
-
parsedBody,
|
|
1914
|
-
errorCode,
|
|
1915
|
-
});
|
|
1916
|
-
}
|
|
1917
|
-
};
|
|
1918
1134
|
export const de_GetReplicationConfigurationCommand = async (output, context) => {
|
|
1919
1135
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1920
|
-
return
|
|
1136
|
+
return de_CommandError(output, context);
|
|
1921
1137
|
}
|
|
1922
1138
|
const contents = map({
|
|
1923
1139
|
$metadata: deserializeMetadata(output),
|
|
@@ -1945,40 +1161,9 @@ export const de_GetReplicationConfigurationCommand = async (output, context) =>
|
|
|
1945
1161
|
Object.assign(contents, doc);
|
|
1946
1162
|
return contents;
|
|
1947
1163
|
};
|
|
1948
|
-
const de_GetReplicationConfigurationCommandError = async (output, context) => {
|
|
1949
|
-
const parsedOutput = {
|
|
1950
|
-
...output,
|
|
1951
|
-
body: await parseErrorBody(output.body, context),
|
|
1952
|
-
};
|
|
1953
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1954
|
-
switch (errorCode) {
|
|
1955
|
-
case "AccessDeniedException":
|
|
1956
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
1957
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1958
|
-
case "InternalServerException":
|
|
1959
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1960
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1961
|
-
case "ResourceNotFoundException":
|
|
1962
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1963
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1964
|
-
case "ThrottlingException":
|
|
1965
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1966
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1967
|
-
case "UninitializedAccountException":
|
|
1968
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1969
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1970
|
-
default:
|
|
1971
|
-
const parsedBody = parsedOutput.body;
|
|
1972
|
-
return throwDefaultError({
|
|
1973
|
-
output,
|
|
1974
|
-
parsedBody,
|
|
1975
|
-
errorCode,
|
|
1976
|
-
});
|
|
1977
|
-
}
|
|
1978
|
-
};
|
|
1979
1164
|
export const de_InitializeServiceCommand = async (output, context) => {
|
|
1980
1165
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1981
|
-
return
|
|
1166
|
+
return de_CommandError(output, context);
|
|
1982
1167
|
}
|
|
1983
1168
|
const contents = map({
|
|
1984
1169
|
$metadata: deserializeMetadata(output),
|
|
@@ -1986,37 +1171,9 @@ export const de_InitializeServiceCommand = async (output, context) => {
|
|
|
1986
1171
|
await collectBody(output.body, context);
|
|
1987
1172
|
return contents;
|
|
1988
1173
|
};
|
|
1989
|
-
const de_InitializeServiceCommandError = async (output, context) => {
|
|
1990
|
-
const parsedOutput = {
|
|
1991
|
-
...output,
|
|
1992
|
-
body: await parseErrorBody(output.body, context),
|
|
1993
|
-
};
|
|
1994
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1995
|
-
switch (errorCode) {
|
|
1996
|
-
case "AccessDeniedException":
|
|
1997
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
1998
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1999
|
-
case "InternalServerException":
|
|
2000
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2001
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2002
|
-
case "ThrottlingException":
|
|
2003
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2004
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2005
|
-
case "ValidationException":
|
|
2006
|
-
case "com.amazonaws.drs#ValidationException":
|
|
2007
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2008
|
-
default:
|
|
2009
|
-
const parsedBody = parsedOutput.body;
|
|
2010
|
-
return throwDefaultError({
|
|
2011
|
-
output,
|
|
2012
|
-
parsedBody,
|
|
2013
|
-
errorCode,
|
|
2014
|
-
});
|
|
2015
|
-
}
|
|
2016
|
-
};
|
|
2017
1174
|
export const de_ListExtensibleSourceServersCommand = async (output, context) => {
|
|
2018
1175
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2019
|
-
return
|
|
1176
|
+
return de_CommandError(output, context);
|
|
2020
1177
|
}
|
|
2021
1178
|
const contents = map({
|
|
2022
1179
|
$metadata: deserializeMetadata(output),
|
|
@@ -2029,40 +1186,9 @@ export const de_ListExtensibleSourceServersCommand = async (output, context) =>
|
|
|
2029
1186
|
Object.assign(contents, doc);
|
|
2030
1187
|
return contents;
|
|
2031
1188
|
};
|
|
2032
|
-
const de_ListExtensibleSourceServersCommandError = async (output, context) => {
|
|
2033
|
-
const parsedOutput = {
|
|
2034
|
-
...output,
|
|
2035
|
-
body: await parseErrorBody(output.body, context),
|
|
2036
|
-
};
|
|
2037
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2038
|
-
switch (errorCode) {
|
|
2039
|
-
case "AccessDeniedException":
|
|
2040
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
2041
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2042
|
-
case "InternalServerException":
|
|
2043
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2044
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2045
|
-
case "ThrottlingException":
|
|
2046
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2047
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2048
|
-
case "UninitializedAccountException":
|
|
2049
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2050
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2051
|
-
case "ValidationException":
|
|
2052
|
-
case "com.amazonaws.drs#ValidationException":
|
|
2053
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2054
|
-
default:
|
|
2055
|
-
const parsedBody = parsedOutput.body;
|
|
2056
|
-
return throwDefaultError({
|
|
2057
|
-
output,
|
|
2058
|
-
parsedBody,
|
|
2059
|
-
errorCode,
|
|
2060
|
-
});
|
|
2061
|
-
}
|
|
2062
|
-
};
|
|
2063
1189
|
export const de_ListLaunchActionsCommand = async (output, context) => {
|
|
2064
1190
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2065
|
-
return
|
|
1191
|
+
return de_CommandError(output, context);
|
|
2066
1192
|
}
|
|
2067
1193
|
const contents = map({
|
|
2068
1194
|
$metadata: deserializeMetadata(output),
|
|
@@ -2075,40 +1201,9 @@ export const de_ListLaunchActionsCommand = async (output, context) => {
|
|
|
2075
1201
|
Object.assign(contents, doc);
|
|
2076
1202
|
return contents;
|
|
2077
1203
|
};
|
|
2078
|
-
const de_ListLaunchActionsCommandError = async (output, context) => {
|
|
2079
|
-
const parsedOutput = {
|
|
2080
|
-
...output,
|
|
2081
|
-
body: await parseErrorBody(output.body, context),
|
|
2082
|
-
};
|
|
2083
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2084
|
-
switch (errorCode) {
|
|
2085
|
-
case "InternalServerException":
|
|
2086
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2087
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2088
|
-
case "ResourceNotFoundException":
|
|
2089
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2090
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2091
|
-
case "ServiceQuotaExceededException":
|
|
2092
|
-
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
2093
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2094
|
-
case "ThrottlingException":
|
|
2095
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2096
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2097
|
-
case "UninitializedAccountException":
|
|
2098
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2099
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2100
|
-
default:
|
|
2101
|
-
const parsedBody = parsedOutput.body;
|
|
2102
|
-
return throwDefaultError({
|
|
2103
|
-
output,
|
|
2104
|
-
parsedBody,
|
|
2105
|
-
errorCode,
|
|
2106
|
-
});
|
|
2107
|
-
}
|
|
2108
|
-
};
|
|
2109
1204
|
export const de_ListStagingAccountsCommand = async (output, context) => {
|
|
2110
1205
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2111
|
-
return
|
|
1206
|
+
return de_CommandError(output, context);
|
|
2112
1207
|
}
|
|
2113
1208
|
const contents = map({
|
|
2114
1209
|
$metadata: deserializeMetadata(output),
|
|
@@ -2121,40 +1216,9 @@ export const de_ListStagingAccountsCommand = async (output, context) => {
|
|
|
2121
1216
|
Object.assign(contents, doc);
|
|
2122
1217
|
return contents;
|
|
2123
1218
|
};
|
|
2124
|
-
const de_ListStagingAccountsCommandError = async (output, context) => {
|
|
2125
|
-
const parsedOutput = {
|
|
2126
|
-
...output,
|
|
2127
|
-
body: await parseErrorBody(output.body, context),
|
|
2128
|
-
};
|
|
2129
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2130
|
-
switch (errorCode) {
|
|
2131
|
-
case "AccessDeniedException":
|
|
2132
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
2133
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2134
|
-
case "InternalServerException":
|
|
2135
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2136
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2137
|
-
case "ThrottlingException":
|
|
2138
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2139
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2140
|
-
case "UninitializedAccountException":
|
|
2141
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2142
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2143
|
-
case "ValidationException":
|
|
2144
|
-
case "com.amazonaws.drs#ValidationException":
|
|
2145
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2146
|
-
default:
|
|
2147
|
-
const parsedBody = parsedOutput.body;
|
|
2148
|
-
return throwDefaultError({
|
|
2149
|
-
output,
|
|
2150
|
-
parsedBody,
|
|
2151
|
-
errorCode,
|
|
2152
|
-
});
|
|
2153
|
-
}
|
|
2154
|
-
};
|
|
2155
1219
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2156
1220
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2157
|
-
return
|
|
1221
|
+
return de_CommandError(output, context);
|
|
2158
1222
|
}
|
|
2159
1223
|
const contents = map({
|
|
2160
1224
|
$metadata: deserializeMetadata(output),
|
|
@@ -2166,40 +1230,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
2166
1230
|
Object.assign(contents, doc);
|
|
2167
1231
|
return contents;
|
|
2168
1232
|
};
|
|
2169
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2170
|
-
const parsedOutput = {
|
|
2171
|
-
...output,
|
|
2172
|
-
body: await parseErrorBody(output.body, context),
|
|
2173
|
-
};
|
|
2174
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2175
|
-
switch (errorCode) {
|
|
2176
|
-
case "AccessDeniedException":
|
|
2177
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
2178
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2179
|
-
case "InternalServerException":
|
|
2180
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2181
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2182
|
-
case "ResourceNotFoundException":
|
|
2183
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2184
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2185
|
-
case "ThrottlingException":
|
|
2186
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2187
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2188
|
-
case "ValidationException":
|
|
2189
|
-
case "com.amazonaws.drs#ValidationException":
|
|
2190
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2191
|
-
default:
|
|
2192
|
-
const parsedBody = parsedOutput.body;
|
|
2193
|
-
return throwDefaultError({
|
|
2194
|
-
output,
|
|
2195
|
-
parsedBody,
|
|
2196
|
-
errorCode,
|
|
2197
|
-
});
|
|
2198
|
-
}
|
|
2199
|
-
};
|
|
2200
1233
|
export const de_PutLaunchActionCommand = async (output, context) => {
|
|
2201
1234
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2202
|
-
return
|
|
1235
|
+
return de_CommandError(output, context);
|
|
2203
1236
|
}
|
|
2204
1237
|
const contents = map({
|
|
2205
1238
|
$metadata: deserializeMetadata(output),
|
|
@@ -2222,43 +1255,9 @@ export const de_PutLaunchActionCommand = async (output, context) => {
|
|
|
2222
1255
|
Object.assign(contents, doc);
|
|
2223
1256
|
return contents;
|
|
2224
1257
|
};
|
|
2225
|
-
const de_PutLaunchActionCommandError = async (output, context) => {
|
|
2226
|
-
const parsedOutput = {
|
|
2227
|
-
...output,
|
|
2228
|
-
body: await parseErrorBody(output.body, context),
|
|
2229
|
-
};
|
|
2230
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2231
|
-
switch (errorCode) {
|
|
2232
|
-
case "ConflictException":
|
|
2233
|
-
case "com.amazonaws.drs#ConflictException":
|
|
2234
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2235
|
-
case "InternalServerException":
|
|
2236
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2237
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2238
|
-
case "ResourceNotFoundException":
|
|
2239
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2240
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2241
|
-
case "ThrottlingException":
|
|
2242
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2243
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2244
|
-
case "UninitializedAccountException":
|
|
2245
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2246
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2247
|
-
case "ValidationException":
|
|
2248
|
-
case "com.amazonaws.drs#ValidationException":
|
|
2249
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2250
|
-
default:
|
|
2251
|
-
const parsedBody = parsedOutput.body;
|
|
2252
|
-
return throwDefaultError({
|
|
2253
|
-
output,
|
|
2254
|
-
parsedBody,
|
|
2255
|
-
errorCode,
|
|
2256
|
-
});
|
|
2257
|
-
}
|
|
2258
|
-
};
|
|
2259
1258
|
export const de_RetryDataReplicationCommand = async (output, context) => {
|
|
2260
1259
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2261
|
-
return
|
|
1260
|
+
return de_CommandError(output, context);
|
|
2262
1261
|
}
|
|
2263
1262
|
const contents = map({
|
|
2264
1263
|
$metadata: deserializeMetadata(output),
|
|
@@ -2283,40 +1282,9 @@ export const de_RetryDataReplicationCommand = async (output, context) => {
|
|
|
2283
1282
|
Object.assign(contents, doc);
|
|
2284
1283
|
return contents;
|
|
2285
1284
|
};
|
|
2286
|
-
const de_RetryDataReplicationCommandError = async (output, context) => {
|
|
2287
|
-
const parsedOutput = {
|
|
2288
|
-
...output,
|
|
2289
|
-
body: await parseErrorBody(output.body, context),
|
|
2290
|
-
};
|
|
2291
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2292
|
-
switch (errorCode) {
|
|
2293
|
-
case "InternalServerException":
|
|
2294
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2295
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2296
|
-
case "ResourceNotFoundException":
|
|
2297
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2298
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2299
|
-
case "ThrottlingException":
|
|
2300
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2301
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2302
|
-
case "UninitializedAccountException":
|
|
2303
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2304
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2305
|
-
case "ValidationException":
|
|
2306
|
-
case "com.amazonaws.drs#ValidationException":
|
|
2307
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2308
|
-
default:
|
|
2309
|
-
const parsedBody = parsedOutput.body;
|
|
2310
|
-
return throwDefaultError({
|
|
2311
|
-
output,
|
|
2312
|
-
parsedBody,
|
|
2313
|
-
errorCode,
|
|
2314
|
-
});
|
|
2315
|
-
}
|
|
2316
|
-
};
|
|
2317
1285
|
export const de_ReverseReplicationCommand = async (output, context) => {
|
|
2318
1286
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2319
|
-
return
|
|
1287
|
+
return de_CommandError(output, context);
|
|
2320
1288
|
}
|
|
2321
1289
|
const contents = map({
|
|
2322
1290
|
$metadata: deserializeMetadata(output),
|
|
@@ -2328,46 +1296,9 @@ export const de_ReverseReplicationCommand = async (output, context) => {
|
|
|
2328
1296
|
Object.assign(contents, doc);
|
|
2329
1297
|
return contents;
|
|
2330
1298
|
};
|
|
2331
|
-
const de_ReverseReplicationCommandError = async (output, context) => {
|
|
2332
|
-
const parsedOutput = {
|
|
2333
|
-
...output,
|
|
2334
|
-
body: await parseErrorBody(output.body, context),
|
|
2335
|
-
};
|
|
2336
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2337
|
-
switch (errorCode) {
|
|
2338
|
-
case "AccessDeniedException":
|
|
2339
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
2340
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2341
|
-
case "ConflictException":
|
|
2342
|
-
case "com.amazonaws.drs#ConflictException":
|
|
2343
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2344
|
-
case "InternalServerException":
|
|
2345
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2346
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2347
|
-
case "ResourceNotFoundException":
|
|
2348
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2349
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2350
|
-
case "ThrottlingException":
|
|
2351
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2352
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2353
|
-
case "UninitializedAccountException":
|
|
2354
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2355
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2356
|
-
case "ValidationException":
|
|
2357
|
-
case "com.amazonaws.drs#ValidationException":
|
|
2358
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2359
|
-
default:
|
|
2360
|
-
const parsedBody = parsedOutput.body;
|
|
2361
|
-
return throwDefaultError({
|
|
2362
|
-
output,
|
|
2363
|
-
parsedBody,
|
|
2364
|
-
errorCode,
|
|
2365
|
-
});
|
|
2366
|
-
}
|
|
2367
|
-
};
|
|
2368
1299
|
export const de_StartFailbackLaunchCommand = async (output, context) => {
|
|
2369
1300
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2370
|
-
return
|
|
1301
|
+
return de_CommandError(output, context);
|
|
2371
1302
|
}
|
|
2372
1303
|
const contents = map({
|
|
2373
1304
|
$metadata: deserializeMetadata(output),
|
|
@@ -2379,43 +1310,9 @@ export const de_StartFailbackLaunchCommand = async (output, context) => {
|
|
|
2379
1310
|
Object.assign(contents, doc);
|
|
2380
1311
|
return contents;
|
|
2381
1312
|
};
|
|
2382
|
-
const de_StartFailbackLaunchCommandError = async (output, context) => {
|
|
2383
|
-
const parsedOutput = {
|
|
2384
|
-
...output,
|
|
2385
|
-
body: await parseErrorBody(output.body, context),
|
|
2386
|
-
};
|
|
2387
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2388
|
-
switch (errorCode) {
|
|
2389
|
-
case "ConflictException":
|
|
2390
|
-
case "com.amazonaws.drs#ConflictException":
|
|
2391
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2392
|
-
case "InternalServerException":
|
|
2393
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2394
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2395
|
-
case "ServiceQuotaExceededException":
|
|
2396
|
-
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
2397
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2398
|
-
case "ThrottlingException":
|
|
2399
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2400
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2401
|
-
case "UninitializedAccountException":
|
|
2402
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2403
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2404
|
-
case "ValidationException":
|
|
2405
|
-
case "com.amazonaws.drs#ValidationException":
|
|
2406
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2407
|
-
default:
|
|
2408
|
-
const parsedBody = parsedOutput.body;
|
|
2409
|
-
return throwDefaultError({
|
|
2410
|
-
output,
|
|
2411
|
-
parsedBody,
|
|
2412
|
-
errorCode,
|
|
2413
|
-
});
|
|
2414
|
-
}
|
|
2415
|
-
};
|
|
2416
1313
|
export const de_StartRecoveryCommand = async (output, context) => {
|
|
2417
1314
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2418
|
-
return
|
|
1315
|
+
return de_CommandError(output, context);
|
|
2419
1316
|
}
|
|
2420
1317
|
const contents = map({
|
|
2421
1318
|
$metadata: deserializeMetadata(output),
|
|
@@ -2427,40 +1324,9 @@ export const de_StartRecoveryCommand = async (output, context) => {
|
|
|
2427
1324
|
Object.assign(contents, doc);
|
|
2428
1325
|
return contents;
|
|
2429
1326
|
};
|
|
2430
|
-
const de_StartRecoveryCommandError = async (output, context) => {
|
|
2431
|
-
const parsedOutput = {
|
|
2432
|
-
...output,
|
|
2433
|
-
body: await parseErrorBody(output.body, context),
|
|
2434
|
-
};
|
|
2435
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2436
|
-
switch (errorCode) {
|
|
2437
|
-
case "ConflictException":
|
|
2438
|
-
case "com.amazonaws.drs#ConflictException":
|
|
2439
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2440
|
-
case "InternalServerException":
|
|
2441
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2442
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2443
|
-
case "ServiceQuotaExceededException":
|
|
2444
|
-
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
2445
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2446
|
-
case "ThrottlingException":
|
|
2447
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2448
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2449
|
-
case "UninitializedAccountException":
|
|
2450
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2451
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2452
|
-
default:
|
|
2453
|
-
const parsedBody = parsedOutput.body;
|
|
2454
|
-
return throwDefaultError({
|
|
2455
|
-
output,
|
|
2456
|
-
parsedBody,
|
|
2457
|
-
errorCode,
|
|
2458
|
-
});
|
|
2459
|
-
}
|
|
2460
|
-
};
|
|
2461
1327
|
export const de_StartReplicationCommand = async (output, context) => {
|
|
2462
1328
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2463
|
-
return
|
|
1329
|
+
return de_CommandError(output, context);
|
|
2464
1330
|
}
|
|
2465
1331
|
const contents = map({
|
|
2466
1332
|
$metadata: deserializeMetadata(output),
|
|
@@ -2472,40 +1338,9 @@ export const de_StartReplicationCommand = async (output, context) => {
|
|
|
2472
1338
|
Object.assign(contents, doc);
|
|
2473
1339
|
return contents;
|
|
2474
1340
|
};
|
|
2475
|
-
const de_StartReplicationCommandError = async (output, context) => {
|
|
2476
|
-
const parsedOutput = {
|
|
2477
|
-
...output,
|
|
2478
|
-
body: await parseErrorBody(output.body, context),
|
|
2479
|
-
};
|
|
2480
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2481
|
-
switch (errorCode) {
|
|
2482
|
-
case "ConflictException":
|
|
2483
|
-
case "com.amazonaws.drs#ConflictException":
|
|
2484
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2485
|
-
case "InternalServerException":
|
|
2486
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2487
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2488
|
-
case "ResourceNotFoundException":
|
|
2489
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2490
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2491
|
-
case "ThrottlingException":
|
|
2492
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2493
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2494
|
-
case "UninitializedAccountException":
|
|
2495
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2496
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2497
|
-
default:
|
|
2498
|
-
const parsedBody = parsedOutput.body;
|
|
2499
|
-
return throwDefaultError({
|
|
2500
|
-
output,
|
|
2501
|
-
parsedBody,
|
|
2502
|
-
errorCode,
|
|
2503
|
-
});
|
|
2504
|
-
}
|
|
2505
|
-
};
|
|
2506
1341
|
export const de_StartSourceNetworkRecoveryCommand = async (output, context) => {
|
|
2507
1342
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2508
|
-
return
|
|
1343
|
+
return de_CommandError(output, context);
|
|
2509
1344
|
}
|
|
2510
1345
|
const contents = map({
|
|
2511
1346
|
$metadata: deserializeMetadata(output),
|
|
@@ -2517,43 +1352,9 @@ export const de_StartSourceNetworkRecoveryCommand = async (output, context) => {
|
|
|
2517
1352
|
Object.assign(contents, doc);
|
|
2518
1353
|
return contents;
|
|
2519
1354
|
};
|
|
2520
|
-
const de_StartSourceNetworkRecoveryCommandError = async (output, context) => {
|
|
2521
|
-
const parsedOutput = {
|
|
2522
|
-
...output,
|
|
2523
|
-
body: await parseErrorBody(output.body, context),
|
|
2524
|
-
};
|
|
2525
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2526
|
-
switch (errorCode) {
|
|
2527
|
-
case "ConflictException":
|
|
2528
|
-
case "com.amazonaws.drs#ConflictException":
|
|
2529
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2530
|
-
case "InternalServerException":
|
|
2531
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2532
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2533
|
-
case "ServiceQuotaExceededException":
|
|
2534
|
-
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
2535
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2536
|
-
case "ThrottlingException":
|
|
2537
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2538
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2539
|
-
case "UninitializedAccountException":
|
|
2540
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2541
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2542
|
-
case "ValidationException":
|
|
2543
|
-
case "com.amazonaws.drs#ValidationException":
|
|
2544
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2545
|
-
default:
|
|
2546
|
-
const parsedBody = parsedOutput.body;
|
|
2547
|
-
return throwDefaultError({
|
|
2548
|
-
output,
|
|
2549
|
-
parsedBody,
|
|
2550
|
-
errorCode,
|
|
2551
|
-
});
|
|
2552
|
-
}
|
|
2553
|
-
};
|
|
2554
1355
|
export const de_StartSourceNetworkReplicationCommand = async (output, context) => {
|
|
2555
1356
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2556
|
-
return
|
|
1357
|
+
return de_CommandError(output, context);
|
|
2557
1358
|
}
|
|
2558
1359
|
const contents = map({
|
|
2559
1360
|
$metadata: deserializeMetadata(output),
|
|
@@ -2565,40 +1366,9 @@ export const de_StartSourceNetworkReplicationCommand = async (output, context) =
|
|
|
2565
1366
|
Object.assign(contents, doc);
|
|
2566
1367
|
return contents;
|
|
2567
1368
|
};
|
|
2568
|
-
const de_StartSourceNetworkReplicationCommandError = async (output, context) => {
|
|
2569
|
-
const parsedOutput = {
|
|
2570
|
-
...output,
|
|
2571
|
-
body: await parseErrorBody(output.body, context),
|
|
2572
|
-
};
|
|
2573
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2574
|
-
switch (errorCode) {
|
|
2575
|
-
case "ConflictException":
|
|
2576
|
-
case "com.amazonaws.drs#ConflictException":
|
|
2577
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2578
|
-
case "InternalServerException":
|
|
2579
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2580
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2581
|
-
case "ResourceNotFoundException":
|
|
2582
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2583
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2584
|
-
case "ThrottlingException":
|
|
2585
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2586
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2587
|
-
case "UninitializedAccountException":
|
|
2588
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2589
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2590
|
-
default:
|
|
2591
|
-
const parsedBody = parsedOutput.body;
|
|
2592
|
-
return throwDefaultError({
|
|
2593
|
-
output,
|
|
2594
|
-
parsedBody,
|
|
2595
|
-
errorCode,
|
|
2596
|
-
});
|
|
2597
|
-
}
|
|
2598
|
-
};
|
|
2599
1369
|
export const de_StopFailbackCommand = async (output, context) => {
|
|
2600
1370
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2601
|
-
return
|
|
1371
|
+
return de_CommandError(output, context);
|
|
2602
1372
|
}
|
|
2603
1373
|
const contents = map({
|
|
2604
1374
|
$metadata: deserializeMetadata(output),
|
|
@@ -2606,171 +1376,47 @@ export const de_StopFailbackCommand = async (output, context) => {
|
|
|
2606
1376
|
await collectBody(output.body, context);
|
|
2607
1377
|
return contents;
|
|
2608
1378
|
};
|
|
2609
|
-
const de_StopFailbackCommandError = async (output, context) => {
|
|
2610
|
-
const parsedOutput = {
|
|
2611
|
-
...output,
|
|
2612
|
-
body: await parseErrorBody(output.body, context),
|
|
2613
|
-
};
|
|
2614
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2615
|
-
switch (errorCode) {
|
|
2616
|
-
case "InternalServerException":
|
|
2617
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2618
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2619
|
-
case "ResourceNotFoundException":
|
|
2620
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2621
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2622
|
-
case "ThrottlingException":
|
|
2623
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2624
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2625
|
-
case "UninitializedAccountException":
|
|
2626
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2627
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2628
|
-
default:
|
|
2629
|
-
const parsedBody = parsedOutput.body;
|
|
2630
|
-
return throwDefaultError({
|
|
2631
|
-
output,
|
|
2632
|
-
parsedBody,
|
|
2633
|
-
errorCode,
|
|
2634
|
-
});
|
|
2635
|
-
}
|
|
2636
|
-
};
|
|
2637
1379
|
export const de_StopReplicationCommand = async (output, context) => {
|
|
2638
1380
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2639
|
-
return
|
|
2640
|
-
}
|
|
2641
|
-
const contents = map({
|
|
2642
|
-
$metadata: deserializeMetadata(output),
|
|
2643
|
-
});
|
|
2644
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2645
|
-
const doc = take(data, {
|
|
2646
|
-
sourceServer: _json,
|
|
2647
|
-
});
|
|
2648
|
-
Object.assign(contents, doc);
|
|
2649
|
-
return contents;
|
|
2650
|
-
};
|
|
2651
|
-
const de_StopReplicationCommandError = async (output, context) => {
|
|
2652
|
-
const parsedOutput = {
|
|
2653
|
-
...output,
|
|
2654
|
-
body: await parseErrorBody(output.body, context),
|
|
2655
|
-
};
|
|
2656
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2657
|
-
switch (errorCode) {
|
|
2658
|
-
case "ConflictException":
|
|
2659
|
-
case "com.amazonaws.drs#ConflictException":
|
|
2660
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2661
|
-
case "InternalServerException":
|
|
2662
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2663
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2664
|
-
case "ResourceNotFoundException":
|
|
2665
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2666
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2667
|
-
case "ThrottlingException":
|
|
2668
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2669
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2670
|
-
case "UninitializedAccountException":
|
|
2671
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2672
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2673
|
-
default:
|
|
2674
|
-
const parsedBody = parsedOutput.body;
|
|
2675
|
-
return throwDefaultError({
|
|
2676
|
-
output,
|
|
2677
|
-
parsedBody,
|
|
2678
|
-
errorCode,
|
|
2679
|
-
});
|
|
2680
|
-
}
|
|
2681
|
-
};
|
|
2682
|
-
export const de_StopSourceNetworkReplicationCommand = async (output, context) => {
|
|
2683
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2684
|
-
return de_StopSourceNetworkReplicationCommandError(output, context);
|
|
2685
|
-
}
|
|
2686
|
-
const contents = map({
|
|
2687
|
-
$metadata: deserializeMetadata(output),
|
|
2688
|
-
});
|
|
2689
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2690
|
-
const doc = take(data, {
|
|
2691
|
-
sourceNetwork: (_) => de_SourceNetwork(_, context),
|
|
2692
|
-
});
|
|
2693
|
-
Object.assign(contents, doc);
|
|
2694
|
-
return contents;
|
|
2695
|
-
};
|
|
2696
|
-
const de_StopSourceNetworkReplicationCommandError = async (output, context) => {
|
|
2697
|
-
const parsedOutput = {
|
|
2698
|
-
...output,
|
|
2699
|
-
body: await parseErrorBody(output.body, context),
|
|
2700
|
-
};
|
|
2701
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2702
|
-
switch (errorCode) {
|
|
2703
|
-
case "ConflictException":
|
|
2704
|
-
case "com.amazonaws.drs#ConflictException":
|
|
2705
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2706
|
-
case "InternalServerException":
|
|
2707
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2708
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2709
|
-
case "ResourceNotFoundException":
|
|
2710
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2711
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2712
|
-
case "ThrottlingException":
|
|
2713
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2714
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2715
|
-
case "UninitializedAccountException":
|
|
2716
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2717
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2718
|
-
case "ValidationException":
|
|
2719
|
-
case "com.amazonaws.drs#ValidationException":
|
|
2720
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2721
|
-
default:
|
|
2722
|
-
const parsedBody = parsedOutput.body;
|
|
2723
|
-
return throwDefaultError({
|
|
2724
|
-
output,
|
|
2725
|
-
parsedBody,
|
|
2726
|
-
errorCode,
|
|
2727
|
-
});
|
|
1381
|
+
return de_CommandError(output, context);
|
|
2728
1382
|
}
|
|
1383
|
+
const contents = map({
|
|
1384
|
+
$metadata: deserializeMetadata(output),
|
|
1385
|
+
});
|
|
1386
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1387
|
+
const doc = take(data, {
|
|
1388
|
+
sourceServer: _json,
|
|
1389
|
+
});
|
|
1390
|
+
Object.assign(contents, doc);
|
|
1391
|
+
return contents;
|
|
2729
1392
|
};
|
|
2730
|
-
export const
|
|
1393
|
+
export const de_StopSourceNetworkReplicationCommand = async (output, context) => {
|
|
2731
1394
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2732
|
-
return
|
|
1395
|
+
return de_CommandError(output, context);
|
|
2733
1396
|
}
|
|
2734
1397
|
const contents = map({
|
|
2735
1398
|
$metadata: deserializeMetadata(output),
|
|
2736
1399
|
});
|
|
2737
|
-
await
|
|
1400
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1401
|
+
const doc = take(data, {
|
|
1402
|
+
sourceNetwork: (_) => de_SourceNetwork(_, context),
|
|
1403
|
+
});
|
|
1404
|
+
Object.assign(contents, doc);
|
|
2738
1405
|
return contents;
|
|
2739
1406
|
};
|
|
2740
|
-
const
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
body: await parseErrorBody(output.body, context),
|
|
2744
|
-
};
|
|
2745
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2746
|
-
switch (errorCode) {
|
|
2747
|
-
case "AccessDeniedException":
|
|
2748
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
2749
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2750
|
-
case "InternalServerException":
|
|
2751
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2752
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2753
|
-
case "ResourceNotFoundException":
|
|
2754
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2755
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2756
|
-
case "ThrottlingException":
|
|
2757
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2758
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2759
|
-
case "ValidationException":
|
|
2760
|
-
case "com.amazonaws.drs#ValidationException":
|
|
2761
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2762
|
-
default:
|
|
2763
|
-
const parsedBody = parsedOutput.body;
|
|
2764
|
-
return throwDefaultError({
|
|
2765
|
-
output,
|
|
2766
|
-
parsedBody,
|
|
2767
|
-
errorCode,
|
|
2768
|
-
});
|
|
1407
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
1408
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1409
|
+
return de_CommandError(output, context);
|
|
2769
1410
|
}
|
|
1411
|
+
const contents = map({
|
|
1412
|
+
$metadata: deserializeMetadata(output),
|
|
1413
|
+
});
|
|
1414
|
+
await collectBody(output.body, context);
|
|
1415
|
+
return contents;
|
|
2770
1416
|
};
|
|
2771
1417
|
export const de_TerminateRecoveryInstancesCommand = async (output, context) => {
|
|
2772
1418
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2773
|
-
return
|
|
1419
|
+
return de_CommandError(output, context);
|
|
2774
1420
|
}
|
|
2775
1421
|
const contents = map({
|
|
2776
1422
|
$metadata: deserializeMetadata(output),
|
|
@@ -2782,40 +1428,9 @@ export const de_TerminateRecoveryInstancesCommand = async (output, context) => {
|
|
|
2782
1428
|
Object.assign(contents, doc);
|
|
2783
1429
|
return contents;
|
|
2784
1430
|
};
|
|
2785
|
-
const de_TerminateRecoveryInstancesCommandError = async (output, context) => {
|
|
2786
|
-
const parsedOutput = {
|
|
2787
|
-
...output,
|
|
2788
|
-
body: await parseErrorBody(output.body, context),
|
|
2789
|
-
};
|
|
2790
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2791
|
-
switch (errorCode) {
|
|
2792
|
-
case "ConflictException":
|
|
2793
|
-
case "com.amazonaws.drs#ConflictException":
|
|
2794
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2795
|
-
case "InternalServerException":
|
|
2796
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2797
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2798
|
-
case "ServiceQuotaExceededException":
|
|
2799
|
-
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
2800
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2801
|
-
case "ThrottlingException":
|
|
2802
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2803
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2804
|
-
case "UninitializedAccountException":
|
|
2805
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2806
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2807
|
-
default:
|
|
2808
|
-
const parsedBody = parsedOutput.body;
|
|
2809
|
-
return throwDefaultError({
|
|
2810
|
-
output,
|
|
2811
|
-
parsedBody,
|
|
2812
|
-
errorCode,
|
|
2813
|
-
});
|
|
2814
|
-
}
|
|
2815
|
-
};
|
|
2816
1431
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
2817
1432
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2818
|
-
return
|
|
1433
|
+
return de_CommandError(output, context);
|
|
2819
1434
|
}
|
|
2820
1435
|
const contents = map({
|
|
2821
1436
|
$metadata: deserializeMetadata(output),
|
|
@@ -2823,40 +1438,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
2823
1438
|
await collectBody(output.body, context);
|
|
2824
1439
|
return contents;
|
|
2825
1440
|
};
|
|
2826
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
2827
|
-
const parsedOutput = {
|
|
2828
|
-
...output,
|
|
2829
|
-
body: await parseErrorBody(output.body, context),
|
|
2830
|
-
};
|
|
2831
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2832
|
-
switch (errorCode) {
|
|
2833
|
-
case "AccessDeniedException":
|
|
2834
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
2835
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2836
|
-
case "InternalServerException":
|
|
2837
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2838
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2839
|
-
case "ResourceNotFoundException":
|
|
2840
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2841
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2842
|
-
case "ThrottlingException":
|
|
2843
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2844
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2845
|
-
case "ValidationException":
|
|
2846
|
-
case "com.amazonaws.drs#ValidationException":
|
|
2847
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2848
|
-
default:
|
|
2849
|
-
const parsedBody = parsedOutput.body;
|
|
2850
|
-
return throwDefaultError({
|
|
2851
|
-
output,
|
|
2852
|
-
parsedBody,
|
|
2853
|
-
errorCode,
|
|
2854
|
-
});
|
|
2855
|
-
}
|
|
2856
|
-
};
|
|
2857
1441
|
export const de_UpdateFailbackReplicationConfigurationCommand = async (output, context) => {
|
|
2858
1442
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2859
|
-
return
|
|
1443
|
+
return de_CommandError(output, context);
|
|
2860
1444
|
}
|
|
2861
1445
|
const contents = map({
|
|
2862
1446
|
$metadata: deserializeMetadata(output),
|
|
@@ -2864,40 +1448,9 @@ export const de_UpdateFailbackReplicationConfigurationCommand = async (output, c
|
|
|
2864
1448
|
await collectBody(output.body, context);
|
|
2865
1449
|
return contents;
|
|
2866
1450
|
};
|
|
2867
|
-
const de_UpdateFailbackReplicationConfigurationCommandError = async (output, context) => {
|
|
2868
|
-
const parsedOutput = {
|
|
2869
|
-
...output,
|
|
2870
|
-
body: await parseErrorBody(output.body, context),
|
|
2871
|
-
};
|
|
2872
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2873
|
-
switch (errorCode) {
|
|
2874
|
-
case "AccessDeniedException":
|
|
2875
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
2876
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2877
|
-
case "InternalServerException":
|
|
2878
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2879
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2880
|
-
case "ResourceNotFoundException":
|
|
2881
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2882
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2883
|
-
case "ThrottlingException":
|
|
2884
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2885
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2886
|
-
case "UninitializedAccountException":
|
|
2887
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2888
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2889
|
-
default:
|
|
2890
|
-
const parsedBody = parsedOutput.body;
|
|
2891
|
-
return throwDefaultError({
|
|
2892
|
-
output,
|
|
2893
|
-
parsedBody,
|
|
2894
|
-
errorCode,
|
|
2895
|
-
});
|
|
2896
|
-
}
|
|
2897
|
-
};
|
|
2898
1451
|
export const de_UpdateLaunchConfigurationCommand = async (output, context) => {
|
|
2899
1452
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2900
|
-
return
|
|
1453
|
+
return de_CommandError(output, context);
|
|
2901
1454
|
}
|
|
2902
1455
|
const contents = map({
|
|
2903
1456
|
$metadata: deserializeMetadata(output),
|
|
@@ -2918,43 +1471,9 @@ export const de_UpdateLaunchConfigurationCommand = async (output, context) => {
|
|
|
2918
1471
|
Object.assign(contents, doc);
|
|
2919
1472
|
return contents;
|
|
2920
1473
|
};
|
|
2921
|
-
const de_UpdateLaunchConfigurationCommandError = async (output, context) => {
|
|
2922
|
-
const parsedOutput = {
|
|
2923
|
-
...output,
|
|
2924
|
-
body: await parseErrorBody(output.body, context),
|
|
2925
|
-
};
|
|
2926
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2927
|
-
switch (errorCode) {
|
|
2928
|
-
case "ConflictException":
|
|
2929
|
-
case "com.amazonaws.drs#ConflictException":
|
|
2930
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2931
|
-
case "InternalServerException":
|
|
2932
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2933
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2934
|
-
case "ResourceNotFoundException":
|
|
2935
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2936
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2937
|
-
case "ThrottlingException":
|
|
2938
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2939
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2940
|
-
case "UninitializedAccountException":
|
|
2941
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2942
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2943
|
-
case "ValidationException":
|
|
2944
|
-
case "com.amazonaws.drs#ValidationException":
|
|
2945
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2946
|
-
default:
|
|
2947
|
-
const parsedBody = parsedOutput.body;
|
|
2948
|
-
return throwDefaultError({
|
|
2949
|
-
output,
|
|
2950
|
-
parsedBody,
|
|
2951
|
-
errorCode,
|
|
2952
|
-
});
|
|
2953
|
-
}
|
|
2954
|
-
};
|
|
2955
1474
|
export const de_UpdateLaunchConfigurationTemplateCommand = async (output, context) => {
|
|
2956
1475
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2957
|
-
return
|
|
1476
|
+
return de_CommandError(output, context);
|
|
2958
1477
|
}
|
|
2959
1478
|
const contents = map({
|
|
2960
1479
|
$metadata: deserializeMetadata(output),
|
|
@@ -2966,43 +1485,9 @@ export const de_UpdateLaunchConfigurationTemplateCommand = async (output, contex
|
|
|
2966
1485
|
Object.assign(contents, doc);
|
|
2967
1486
|
return contents;
|
|
2968
1487
|
};
|
|
2969
|
-
const de_UpdateLaunchConfigurationTemplateCommandError = async (output, context) => {
|
|
2970
|
-
const parsedOutput = {
|
|
2971
|
-
...output,
|
|
2972
|
-
body: await parseErrorBody(output.body, context),
|
|
2973
|
-
};
|
|
2974
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2975
|
-
switch (errorCode) {
|
|
2976
|
-
case "AccessDeniedException":
|
|
2977
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
2978
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2979
|
-
case "InternalServerException":
|
|
2980
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2981
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2982
|
-
case "ResourceNotFoundException":
|
|
2983
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2984
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2985
|
-
case "ThrottlingException":
|
|
2986
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2987
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2988
|
-
case "UninitializedAccountException":
|
|
2989
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2990
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2991
|
-
case "ValidationException":
|
|
2992
|
-
case "com.amazonaws.drs#ValidationException":
|
|
2993
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2994
|
-
default:
|
|
2995
|
-
const parsedBody = parsedOutput.body;
|
|
2996
|
-
return throwDefaultError({
|
|
2997
|
-
output,
|
|
2998
|
-
parsedBody,
|
|
2999
|
-
errorCode,
|
|
3000
|
-
});
|
|
3001
|
-
}
|
|
3002
|
-
};
|
|
3003
1488
|
export const de_UpdateReplicationConfigurationCommand = async (output, context) => {
|
|
3004
1489
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3005
|
-
return
|
|
1490
|
+
return de_CommandError(output, context);
|
|
3006
1491
|
}
|
|
3007
1492
|
const contents = map({
|
|
3008
1493
|
$metadata: deserializeMetadata(output),
|
|
@@ -3030,46 +1515,9 @@ export const de_UpdateReplicationConfigurationCommand = async (output, context)
|
|
|
3030
1515
|
Object.assign(contents, doc);
|
|
3031
1516
|
return contents;
|
|
3032
1517
|
};
|
|
3033
|
-
const de_UpdateReplicationConfigurationCommandError = async (output, context) => {
|
|
3034
|
-
const parsedOutput = {
|
|
3035
|
-
...output,
|
|
3036
|
-
body: await parseErrorBody(output.body, context),
|
|
3037
|
-
};
|
|
3038
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3039
|
-
switch (errorCode) {
|
|
3040
|
-
case "AccessDeniedException":
|
|
3041
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
3042
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3043
|
-
case "ConflictException":
|
|
3044
|
-
case "com.amazonaws.drs#ConflictException":
|
|
3045
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3046
|
-
case "InternalServerException":
|
|
3047
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
3048
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3049
|
-
case "ResourceNotFoundException":
|
|
3050
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
3051
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3052
|
-
case "ThrottlingException":
|
|
3053
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
3054
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3055
|
-
case "UninitializedAccountException":
|
|
3056
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
3057
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3058
|
-
case "ValidationException":
|
|
3059
|
-
case "com.amazonaws.drs#ValidationException":
|
|
3060
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3061
|
-
default:
|
|
3062
|
-
const parsedBody = parsedOutput.body;
|
|
3063
|
-
return throwDefaultError({
|
|
3064
|
-
output,
|
|
3065
|
-
parsedBody,
|
|
3066
|
-
errorCode,
|
|
3067
|
-
});
|
|
3068
|
-
}
|
|
3069
|
-
};
|
|
3070
1518
|
export const de_UpdateReplicationConfigurationTemplateCommand = async (output, context) => {
|
|
3071
1519
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3072
|
-
return
|
|
1520
|
+
return de_CommandError(output, context);
|
|
3073
1521
|
}
|
|
3074
1522
|
const contents = map({
|
|
3075
1523
|
$metadata: deserializeMetadata(output),
|
|
@@ -3097,22 +1545,25 @@ export const de_UpdateReplicationConfigurationTemplateCommand = async (output, c
|
|
|
3097
1545
|
Object.assign(contents, doc);
|
|
3098
1546
|
return contents;
|
|
3099
1547
|
};
|
|
3100
|
-
const
|
|
1548
|
+
const de_CommandError = async (output, context) => {
|
|
3101
1549
|
const parsedOutput = {
|
|
3102
1550
|
...output,
|
|
3103
1551
|
body: await parseErrorBody(output.body, context),
|
|
3104
1552
|
};
|
|
3105
1553
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3106
1554
|
switch (errorCode) {
|
|
3107
|
-
case "
|
|
3108
|
-
case "com.amazonaws.drs#
|
|
3109
|
-
throw await
|
|
1555
|
+
case "ConflictException":
|
|
1556
|
+
case "com.amazonaws.drs#ConflictException":
|
|
1557
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3110
1558
|
case "InternalServerException":
|
|
3111
1559
|
case "com.amazonaws.drs#InternalServerException":
|
|
3112
1560
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3113
1561
|
case "ResourceNotFoundException":
|
|
3114
1562
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
3115
1563
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1564
|
+
case "ServiceQuotaExceededException":
|
|
1565
|
+
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
1566
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3116
1567
|
case "ThrottlingException":
|
|
3117
1568
|
case "com.amazonaws.drs#ThrottlingException":
|
|
3118
1569
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -3122,6 +1573,9 @@ const de_UpdateReplicationConfigurationTemplateCommandError = async (output, con
|
|
|
3122
1573
|
case "ValidationException":
|
|
3123
1574
|
case "com.amazonaws.drs#ValidationException":
|
|
3124
1575
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1576
|
+
case "AccessDeniedException":
|
|
1577
|
+
case "com.amazonaws.drs#AccessDeniedException":
|
|
1578
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3125
1579
|
default:
|
|
3126
1580
|
const parsedBody = parsedOutput.body;
|
|
3127
1581
|
return throwDefaultError({
|