@aws-sdk/client-iottwinmaker 3.503.1 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +81 -1281
- package/dist-es/protocols/Aws_restJson1.js +72 -1272
- package/package.json +3 -3
|
@@ -925,7 +925,7 @@ export const se_UpdateWorkspaceCommand = async (input, context) => {
|
|
|
925
925
|
};
|
|
926
926
|
export const de_BatchPutPropertyValuesCommand = async (output, context) => {
|
|
927
927
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
928
|
-
return
|
|
928
|
+
return de_CommandError(output, context);
|
|
929
929
|
}
|
|
930
930
|
const contents = map({
|
|
931
931
|
$metadata: deserializeMetadata(output),
|
|
@@ -937,37 +937,9 @@ export const de_BatchPutPropertyValuesCommand = async (output, context) => {
|
|
|
937
937
|
Object.assign(contents, doc);
|
|
938
938
|
return contents;
|
|
939
939
|
};
|
|
940
|
-
const de_BatchPutPropertyValuesCommandError = async (output, context) => {
|
|
941
|
-
const parsedOutput = {
|
|
942
|
-
...output,
|
|
943
|
-
body: await parseErrorBody(output.body, context),
|
|
944
|
-
};
|
|
945
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
946
|
-
switch (errorCode) {
|
|
947
|
-
case "InternalServerException":
|
|
948
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
949
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
950
|
-
case "ResourceNotFoundException":
|
|
951
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
952
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
953
|
-
case "ThrottlingException":
|
|
954
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
955
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
956
|
-
case "ValidationException":
|
|
957
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
958
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
959
|
-
default:
|
|
960
|
-
const parsedBody = parsedOutput.body;
|
|
961
|
-
return throwDefaultError({
|
|
962
|
-
output,
|
|
963
|
-
parsedBody,
|
|
964
|
-
errorCode,
|
|
965
|
-
});
|
|
966
|
-
}
|
|
967
|
-
};
|
|
968
940
|
export const de_CancelMetadataTransferJobCommand = async (output, context) => {
|
|
969
941
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
970
|
-
return
|
|
942
|
+
return de_CommandError(output, context);
|
|
971
943
|
}
|
|
972
944
|
const contents = map({
|
|
973
945
|
$metadata: deserializeMetadata(output),
|
|
@@ -983,43 +955,9 @@ export const de_CancelMetadataTransferJobCommand = async (output, context) => {
|
|
|
983
955
|
Object.assign(contents, doc);
|
|
984
956
|
return contents;
|
|
985
957
|
};
|
|
986
|
-
const de_CancelMetadataTransferJobCommandError = async (output, context) => {
|
|
987
|
-
const parsedOutput = {
|
|
988
|
-
...output,
|
|
989
|
-
body: await parseErrorBody(output.body, context),
|
|
990
|
-
};
|
|
991
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
992
|
-
switch (errorCode) {
|
|
993
|
-
case "AccessDeniedException":
|
|
994
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
995
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
996
|
-
case "ConflictException":
|
|
997
|
-
case "com.amazonaws.iottwinmaker#ConflictException":
|
|
998
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
999
|
-
case "InternalServerException":
|
|
1000
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1001
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1002
|
-
case "ResourceNotFoundException":
|
|
1003
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
1004
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1005
|
-
case "ThrottlingException":
|
|
1006
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1007
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1008
|
-
case "ValidationException":
|
|
1009
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1010
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1011
|
-
default:
|
|
1012
|
-
const parsedBody = parsedOutput.body;
|
|
1013
|
-
return throwDefaultError({
|
|
1014
|
-
output,
|
|
1015
|
-
parsedBody,
|
|
1016
|
-
errorCode,
|
|
1017
|
-
});
|
|
1018
|
-
}
|
|
1019
|
-
};
|
|
1020
958
|
export const de_CreateComponentTypeCommand = async (output, context) => {
|
|
1021
959
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1022
|
-
return
|
|
960
|
+
return de_CommandError(output, context);
|
|
1023
961
|
}
|
|
1024
962
|
const contents = map({
|
|
1025
963
|
$metadata: deserializeMetadata(output),
|
|
@@ -1033,43 +971,9 @@ export const de_CreateComponentTypeCommand = async (output, context) => {
|
|
|
1033
971
|
Object.assign(contents, doc);
|
|
1034
972
|
return contents;
|
|
1035
973
|
};
|
|
1036
|
-
const de_CreateComponentTypeCommandError = async (output, context) => {
|
|
1037
|
-
const parsedOutput = {
|
|
1038
|
-
...output,
|
|
1039
|
-
body: await parseErrorBody(output.body, context),
|
|
1040
|
-
};
|
|
1041
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1042
|
-
switch (errorCode) {
|
|
1043
|
-
case "AccessDeniedException":
|
|
1044
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1045
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1046
|
-
case "ConflictException":
|
|
1047
|
-
case "com.amazonaws.iottwinmaker#ConflictException":
|
|
1048
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1049
|
-
case "InternalServerException":
|
|
1050
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1051
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1052
|
-
case "ServiceQuotaExceededException":
|
|
1053
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
1054
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1055
|
-
case "ThrottlingException":
|
|
1056
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1057
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1058
|
-
case "ValidationException":
|
|
1059
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1060
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1061
|
-
default:
|
|
1062
|
-
const parsedBody = parsedOutput.body;
|
|
1063
|
-
return throwDefaultError({
|
|
1064
|
-
output,
|
|
1065
|
-
parsedBody,
|
|
1066
|
-
errorCode,
|
|
1067
|
-
});
|
|
1068
|
-
}
|
|
1069
|
-
};
|
|
1070
974
|
export const de_CreateEntityCommand = async (output, context) => {
|
|
1071
975
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1072
|
-
return
|
|
976
|
+
return de_CommandError(output, context);
|
|
1073
977
|
}
|
|
1074
978
|
const contents = map({
|
|
1075
979
|
$metadata: deserializeMetadata(output),
|
|
@@ -1084,43 +988,9 @@ export const de_CreateEntityCommand = async (output, context) => {
|
|
|
1084
988
|
Object.assign(contents, doc);
|
|
1085
989
|
return contents;
|
|
1086
990
|
};
|
|
1087
|
-
const de_CreateEntityCommandError = async (output, context) => {
|
|
1088
|
-
const parsedOutput = {
|
|
1089
|
-
...output,
|
|
1090
|
-
body: await parseErrorBody(output.body, context),
|
|
1091
|
-
};
|
|
1092
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1093
|
-
switch (errorCode) {
|
|
1094
|
-
case "AccessDeniedException":
|
|
1095
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1096
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1097
|
-
case "ConflictException":
|
|
1098
|
-
case "com.amazonaws.iottwinmaker#ConflictException":
|
|
1099
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1100
|
-
case "InternalServerException":
|
|
1101
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1102
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1103
|
-
case "ServiceQuotaExceededException":
|
|
1104
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
1105
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1106
|
-
case "ThrottlingException":
|
|
1107
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1108
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1109
|
-
case "ValidationException":
|
|
1110
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1111
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1112
|
-
default:
|
|
1113
|
-
const parsedBody = parsedOutput.body;
|
|
1114
|
-
return throwDefaultError({
|
|
1115
|
-
output,
|
|
1116
|
-
parsedBody,
|
|
1117
|
-
errorCode,
|
|
1118
|
-
});
|
|
1119
|
-
}
|
|
1120
|
-
};
|
|
1121
991
|
export const de_CreateMetadataTransferJobCommand = async (output, context) => {
|
|
1122
992
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1123
|
-
return
|
|
993
|
+
return de_CommandError(output, context);
|
|
1124
994
|
}
|
|
1125
995
|
const contents = map({
|
|
1126
996
|
$metadata: deserializeMetadata(output),
|
|
@@ -1135,46 +1005,9 @@ export const de_CreateMetadataTransferJobCommand = async (output, context) => {
|
|
|
1135
1005
|
Object.assign(contents, doc);
|
|
1136
1006
|
return contents;
|
|
1137
1007
|
};
|
|
1138
|
-
const de_CreateMetadataTransferJobCommandError = async (output, context) => {
|
|
1139
|
-
const parsedOutput = {
|
|
1140
|
-
...output,
|
|
1141
|
-
body: await parseErrorBody(output.body, context),
|
|
1142
|
-
};
|
|
1143
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1144
|
-
switch (errorCode) {
|
|
1145
|
-
case "AccessDeniedException":
|
|
1146
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1147
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1148
|
-
case "ConflictException":
|
|
1149
|
-
case "com.amazonaws.iottwinmaker#ConflictException":
|
|
1150
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1151
|
-
case "InternalServerException":
|
|
1152
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1153
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1154
|
-
case "ResourceNotFoundException":
|
|
1155
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
1156
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1157
|
-
case "ServiceQuotaExceededException":
|
|
1158
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
1159
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1160
|
-
case "ThrottlingException":
|
|
1161
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1162
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1163
|
-
case "ValidationException":
|
|
1164
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1165
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1166
|
-
default:
|
|
1167
|
-
const parsedBody = parsedOutput.body;
|
|
1168
|
-
return throwDefaultError({
|
|
1169
|
-
output,
|
|
1170
|
-
parsedBody,
|
|
1171
|
-
errorCode,
|
|
1172
|
-
});
|
|
1173
|
-
}
|
|
1174
|
-
};
|
|
1175
1008
|
export const de_CreateSceneCommand = async (output, context) => {
|
|
1176
1009
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1177
|
-
return
|
|
1010
|
+
return de_CommandError(output, context);
|
|
1178
1011
|
}
|
|
1179
1012
|
const contents = map({
|
|
1180
1013
|
$metadata: deserializeMetadata(output),
|
|
@@ -1187,43 +1020,9 @@ export const de_CreateSceneCommand = async (output, context) => {
|
|
|
1187
1020
|
Object.assign(contents, doc);
|
|
1188
1021
|
return contents;
|
|
1189
1022
|
};
|
|
1190
|
-
const de_CreateSceneCommandError = async (output, context) => {
|
|
1191
|
-
const parsedOutput = {
|
|
1192
|
-
...output,
|
|
1193
|
-
body: await parseErrorBody(output.body, context),
|
|
1194
|
-
};
|
|
1195
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1196
|
-
switch (errorCode) {
|
|
1197
|
-
case "AccessDeniedException":
|
|
1198
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1199
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1200
|
-
case "ConflictException":
|
|
1201
|
-
case "com.amazonaws.iottwinmaker#ConflictException":
|
|
1202
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1203
|
-
case "InternalServerException":
|
|
1204
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1205
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1206
|
-
case "ServiceQuotaExceededException":
|
|
1207
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
1208
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1209
|
-
case "ThrottlingException":
|
|
1210
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1211
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1212
|
-
case "ValidationException":
|
|
1213
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1214
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1215
|
-
default:
|
|
1216
|
-
const parsedBody = parsedOutput.body;
|
|
1217
|
-
return throwDefaultError({
|
|
1218
|
-
output,
|
|
1219
|
-
parsedBody,
|
|
1220
|
-
errorCode,
|
|
1221
|
-
});
|
|
1222
|
-
}
|
|
1223
|
-
};
|
|
1224
1023
|
export const de_CreateSyncJobCommand = async (output, context) => {
|
|
1225
1024
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1226
|
-
return
|
|
1025
|
+
return de_CommandError(output, context);
|
|
1227
1026
|
}
|
|
1228
1027
|
const contents = map({
|
|
1229
1028
|
$metadata: deserializeMetadata(output),
|
|
@@ -1237,43 +1036,9 @@ export const de_CreateSyncJobCommand = async (output, context) => {
|
|
|
1237
1036
|
Object.assign(contents, doc);
|
|
1238
1037
|
return contents;
|
|
1239
1038
|
};
|
|
1240
|
-
const de_CreateSyncJobCommandError = async (output, context) => {
|
|
1241
|
-
const parsedOutput = {
|
|
1242
|
-
...output,
|
|
1243
|
-
body: await parseErrorBody(output.body, context),
|
|
1244
|
-
};
|
|
1245
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1246
|
-
switch (errorCode) {
|
|
1247
|
-
case "AccessDeniedException":
|
|
1248
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1249
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1250
|
-
case "ConflictException":
|
|
1251
|
-
case "com.amazonaws.iottwinmaker#ConflictException":
|
|
1252
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1253
|
-
case "InternalServerException":
|
|
1254
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1255
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1256
|
-
case "ServiceQuotaExceededException":
|
|
1257
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
1258
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1259
|
-
case "ThrottlingException":
|
|
1260
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1261
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1262
|
-
case "ValidationException":
|
|
1263
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1264
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1265
|
-
default:
|
|
1266
|
-
const parsedBody = parsedOutput.body;
|
|
1267
|
-
return throwDefaultError({
|
|
1268
|
-
output,
|
|
1269
|
-
parsedBody,
|
|
1270
|
-
errorCode,
|
|
1271
|
-
});
|
|
1272
|
-
}
|
|
1273
|
-
};
|
|
1274
1039
|
export const de_CreateWorkspaceCommand = async (output, context) => {
|
|
1275
1040
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1276
|
-
return
|
|
1041
|
+
return de_CommandError(output, context);
|
|
1277
1042
|
}
|
|
1278
1043
|
const contents = map({
|
|
1279
1044
|
$metadata: deserializeMetadata(output),
|
|
@@ -1286,43 +1051,9 @@ export const de_CreateWorkspaceCommand = async (output, context) => {
|
|
|
1286
1051
|
Object.assign(contents, doc);
|
|
1287
1052
|
return contents;
|
|
1288
1053
|
};
|
|
1289
|
-
const de_CreateWorkspaceCommandError = async (output, context) => {
|
|
1290
|
-
const parsedOutput = {
|
|
1291
|
-
...output,
|
|
1292
|
-
body: await parseErrorBody(output.body, context),
|
|
1293
|
-
};
|
|
1294
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1295
|
-
switch (errorCode) {
|
|
1296
|
-
case "AccessDeniedException":
|
|
1297
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1298
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1299
|
-
case "ConflictException":
|
|
1300
|
-
case "com.amazonaws.iottwinmaker#ConflictException":
|
|
1301
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1302
|
-
case "InternalServerException":
|
|
1303
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1304
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1305
|
-
case "ServiceQuotaExceededException":
|
|
1306
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
1307
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1308
|
-
case "ThrottlingException":
|
|
1309
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1310
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1311
|
-
case "ValidationException":
|
|
1312
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1313
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1314
|
-
default:
|
|
1315
|
-
const parsedBody = parsedOutput.body;
|
|
1316
|
-
return throwDefaultError({
|
|
1317
|
-
output,
|
|
1318
|
-
parsedBody,
|
|
1319
|
-
errorCode,
|
|
1320
|
-
});
|
|
1321
|
-
}
|
|
1322
|
-
};
|
|
1323
1054
|
export const de_DeleteComponentTypeCommand = async (output, context) => {
|
|
1324
1055
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1325
|
-
return
|
|
1056
|
+
return de_CommandError(output, context);
|
|
1326
1057
|
}
|
|
1327
1058
|
const contents = map({
|
|
1328
1059
|
$metadata: deserializeMetadata(output),
|
|
@@ -1334,40 +1065,9 @@ export const de_DeleteComponentTypeCommand = async (output, context) => {
|
|
|
1334
1065
|
Object.assign(contents, doc);
|
|
1335
1066
|
return contents;
|
|
1336
1067
|
};
|
|
1337
|
-
const de_DeleteComponentTypeCommandError = async (output, context) => {
|
|
1338
|
-
const parsedOutput = {
|
|
1339
|
-
...output,
|
|
1340
|
-
body: await parseErrorBody(output.body, context),
|
|
1341
|
-
};
|
|
1342
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1343
|
-
switch (errorCode) {
|
|
1344
|
-
case "AccessDeniedException":
|
|
1345
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1346
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1347
|
-
case "InternalServerException":
|
|
1348
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1349
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1350
|
-
case "ResourceNotFoundException":
|
|
1351
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
1352
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1353
|
-
case "ThrottlingException":
|
|
1354
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1355
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1356
|
-
case "ValidationException":
|
|
1357
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1358
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1359
|
-
default:
|
|
1360
|
-
const parsedBody = parsedOutput.body;
|
|
1361
|
-
return throwDefaultError({
|
|
1362
|
-
output,
|
|
1363
|
-
parsedBody,
|
|
1364
|
-
errorCode,
|
|
1365
|
-
});
|
|
1366
|
-
}
|
|
1367
|
-
};
|
|
1368
1068
|
export const de_DeleteEntityCommand = async (output, context) => {
|
|
1369
1069
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1370
|
-
return
|
|
1070
|
+
return de_CommandError(output, context);
|
|
1371
1071
|
}
|
|
1372
1072
|
const contents = map({
|
|
1373
1073
|
$metadata: deserializeMetadata(output),
|
|
@@ -1379,40 +1079,9 @@ export const de_DeleteEntityCommand = async (output, context) => {
|
|
|
1379
1079
|
Object.assign(contents, doc);
|
|
1380
1080
|
return contents;
|
|
1381
1081
|
};
|
|
1382
|
-
const de_DeleteEntityCommandError = async (output, context) => {
|
|
1383
|
-
const parsedOutput = {
|
|
1384
|
-
...output,
|
|
1385
|
-
body: await parseErrorBody(output.body, context),
|
|
1386
|
-
};
|
|
1387
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1388
|
-
switch (errorCode) {
|
|
1389
|
-
case "InternalServerException":
|
|
1390
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1391
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1392
|
-
case "ResourceNotFoundException":
|
|
1393
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
1394
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1395
|
-
case "ServiceQuotaExceededException":
|
|
1396
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
1397
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1398
|
-
case "ThrottlingException":
|
|
1399
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1400
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1401
|
-
case "ValidationException":
|
|
1402
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1403
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1404
|
-
default:
|
|
1405
|
-
const parsedBody = parsedOutput.body;
|
|
1406
|
-
return throwDefaultError({
|
|
1407
|
-
output,
|
|
1408
|
-
parsedBody,
|
|
1409
|
-
errorCode,
|
|
1410
|
-
});
|
|
1411
|
-
}
|
|
1412
|
-
};
|
|
1413
1082
|
export const de_DeleteSceneCommand = async (output, context) => {
|
|
1414
1083
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1415
|
-
return
|
|
1084
|
+
return de_CommandError(output, context);
|
|
1416
1085
|
}
|
|
1417
1086
|
const contents = map({
|
|
1418
1087
|
$metadata: deserializeMetadata(output),
|
|
@@ -1420,40 +1089,9 @@ export const de_DeleteSceneCommand = async (output, context) => {
|
|
|
1420
1089
|
await collectBody(output.body, context);
|
|
1421
1090
|
return contents;
|
|
1422
1091
|
};
|
|
1423
|
-
const de_DeleteSceneCommandError = async (output, context) => {
|
|
1424
|
-
const parsedOutput = {
|
|
1425
|
-
...output,
|
|
1426
|
-
body: await parseErrorBody(output.body, context),
|
|
1427
|
-
};
|
|
1428
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1429
|
-
switch (errorCode) {
|
|
1430
|
-
case "AccessDeniedException":
|
|
1431
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1432
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1433
|
-
case "InternalServerException":
|
|
1434
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1435
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1436
|
-
case "ResourceNotFoundException":
|
|
1437
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
1438
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1439
|
-
case "ThrottlingException":
|
|
1440
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1441
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1442
|
-
case "ValidationException":
|
|
1443
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1444
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1445
|
-
default:
|
|
1446
|
-
const parsedBody = parsedOutput.body;
|
|
1447
|
-
return throwDefaultError({
|
|
1448
|
-
output,
|
|
1449
|
-
parsedBody,
|
|
1450
|
-
errorCode,
|
|
1451
|
-
});
|
|
1452
|
-
}
|
|
1453
|
-
};
|
|
1454
1092
|
export const de_DeleteSyncJobCommand = async (output, context) => {
|
|
1455
1093
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1456
|
-
return
|
|
1094
|
+
return de_CommandError(output, context);
|
|
1457
1095
|
}
|
|
1458
1096
|
const contents = map({
|
|
1459
1097
|
$metadata: deserializeMetadata(output),
|
|
@@ -1465,43 +1103,9 @@ export const de_DeleteSyncJobCommand = async (output, context) => {
|
|
|
1465
1103
|
Object.assign(contents, doc);
|
|
1466
1104
|
return contents;
|
|
1467
1105
|
};
|
|
1468
|
-
const de_DeleteSyncJobCommandError = async (output, context) => {
|
|
1469
|
-
const parsedOutput = {
|
|
1470
|
-
...output,
|
|
1471
|
-
body: await parseErrorBody(output.body, context),
|
|
1472
|
-
};
|
|
1473
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1474
|
-
switch (errorCode) {
|
|
1475
|
-
case "AccessDeniedException":
|
|
1476
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1477
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1478
|
-
case "InternalServerException":
|
|
1479
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1480
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1481
|
-
case "ResourceNotFoundException":
|
|
1482
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
1483
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1484
|
-
case "ServiceQuotaExceededException":
|
|
1485
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
1486
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1487
|
-
case "ThrottlingException":
|
|
1488
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1489
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1490
|
-
case "ValidationException":
|
|
1491
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1492
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1493
|
-
default:
|
|
1494
|
-
const parsedBody = parsedOutput.body;
|
|
1495
|
-
return throwDefaultError({
|
|
1496
|
-
output,
|
|
1497
|
-
parsedBody,
|
|
1498
|
-
errorCode,
|
|
1499
|
-
});
|
|
1500
|
-
}
|
|
1501
|
-
};
|
|
1502
1106
|
export const de_DeleteWorkspaceCommand = async (output, context) => {
|
|
1503
1107
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1504
|
-
return
|
|
1108
|
+
return de_CommandError(output, context);
|
|
1505
1109
|
}
|
|
1506
1110
|
const contents = map({
|
|
1507
1111
|
$metadata: deserializeMetadata(output),
|
|
@@ -1513,40 +1117,9 @@ export const de_DeleteWorkspaceCommand = async (output, context) => {
|
|
|
1513
1117
|
Object.assign(contents, doc);
|
|
1514
1118
|
return contents;
|
|
1515
1119
|
};
|
|
1516
|
-
const de_DeleteWorkspaceCommandError = async (output, context) => {
|
|
1517
|
-
const parsedOutput = {
|
|
1518
|
-
...output,
|
|
1519
|
-
body: await parseErrorBody(output.body, context),
|
|
1520
|
-
};
|
|
1521
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1522
|
-
switch (errorCode) {
|
|
1523
|
-
case "AccessDeniedException":
|
|
1524
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1525
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1526
|
-
case "InternalServerException":
|
|
1527
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1528
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1529
|
-
case "ResourceNotFoundException":
|
|
1530
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
1531
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1532
|
-
case "ThrottlingException":
|
|
1533
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1534
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1535
|
-
case "ValidationException":
|
|
1536
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1537
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1538
|
-
default:
|
|
1539
|
-
const parsedBody = parsedOutput.body;
|
|
1540
|
-
return throwDefaultError({
|
|
1541
|
-
output,
|
|
1542
|
-
parsedBody,
|
|
1543
|
-
errorCode,
|
|
1544
|
-
});
|
|
1545
|
-
}
|
|
1546
|
-
};
|
|
1547
1120
|
export const de_ExecuteQueryCommand = async (output, context) => {
|
|
1548
1121
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1549
|
-
return
|
|
1122
|
+
return de_CommandError(output, context);
|
|
1550
1123
|
}
|
|
1551
1124
|
const contents = map({
|
|
1552
1125
|
$metadata: deserializeMetadata(output),
|
|
@@ -1560,43 +1133,9 @@ export const de_ExecuteQueryCommand = async (output, context) => {
|
|
|
1560
1133
|
Object.assign(contents, doc);
|
|
1561
1134
|
return contents;
|
|
1562
1135
|
};
|
|
1563
|
-
const de_ExecuteQueryCommandError = async (output, context) => {
|
|
1564
|
-
const parsedOutput = {
|
|
1565
|
-
...output,
|
|
1566
|
-
body: await parseErrorBody(output.body, context),
|
|
1567
|
-
};
|
|
1568
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1569
|
-
switch (errorCode) {
|
|
1570
|
-
case "AccessDeniedException":
|
|
1571
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1572
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1573
|
-
case "InternalServerException":
|
|
1574
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1575
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1576
|
-
case "QueryTimeoutException":
|
|
1577
|
-
case "com.amazonaws.iottwinmaker#QueryTimeoutException":
|
|
1578
|
-
throw await de_QueryTimeoutExceptionRes(parsedOutput, context);
|
|
1579
|
-
case "ServiceQuotaExceededException":
|
|
1580
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
1581
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1582
|
-
case "ThrottlingException":
|
|
1583
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1584
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1585
|
-
case "ValidationException":
|
|
1586
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1587
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1588
|
-
default:
|
|
1589
|
-
const parsedBody = parsedOutput.body;
|
|
1590
|
-
return throwDefaultError({
|
|
1591
|
-
output,
|
|
1592
|
-
parsedBody,
|
|
1593
|
-
errorCode,
|
|
1594
|
-
});
|
|
1595
|
-
}
|
|
1596
|
-
};
|
|
1597
1136
|
export const de_GetComponentTypeCommand = async (output, context) => {
|
|
1598
1137
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1599
|
-
return
|
|
1138
|
+
return de_CommandError(output, context);
|
|
1600
1139
|
}
|
|
1601
1140
|
const contents = map({
|
|
1602
1141
|
$metadata: deserializeMetadata(output),
|
|
@@ -1624,40 +1163,9 @@ export const de_GetComponentTypeCommand = async (output, context) => {
|
|
|
1624
1163
|
Object.assign(contents, doc);
|
|
1625
1164
|
return contents;
|
|
1626
1165
|
};
|
|
1627
|
-
const de_GetComponentTypeCommandError = async (output, context) => {
|
|
1628
|
-
const parsedOutput = {
|
|
1629
|
-
...output,
|
|
1630
|
-
body: await parseErrorBody(output.body, context),
|
|
1631
|
-
};
|
|
1632
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1633
|
-
switch (errorCode) {
|
|
1634
|
-
case "AccessDeniedException":
|
|
1635
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1636
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1637
|
-
case "InternalServerException":
|
|
1638
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1639
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1640
|
-
case "ResourceNotFoundException":
|
|
1641
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
1642
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1643
|
-
case "ThrottlingException":
|
|
1644
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1645
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1646
|
-
case "ValidationException":
|
|
1647
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1648
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1649
|
-
default:
|
|
1650
|
-
const parsedBody = parsedOutput.body;
|
|
1651
|
-
return throwDefaultError({
|
|
1652
|
-
output,
|
|
1653
|
-
parsedBody,
|
|
1654
|
-
errorCode,
|
|
1655
|
-
});
|
|
1656
|
-
}
|
|
1657
|
-
};
|
|
1658
1166
|
export const de_GetEntityCommand = async (output, context) => {
|
|
1659
1167
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1660
|
-
return
|
|
1168
|
+
return de_CommandError(output, context);
|
|
1661
1169
|
}
|
|
1662
1170
|
const contents = map({
|
|
1663
1171
|
$metadata: deserializeMetadata(output),
|
|
@@ -1681,40 +1189,9 @@ export const de_GetEntityCommand = async (output, context) => {
|
|
|
1681
1189
|
Object.assign(contents, doc);
|
|
1682
1190
|
return contents;
|
|
1683
1191
|
};
|
|
1684
|
-
const de_GetEntityCommandError = async (output, context) => {
|
|
1685
|
-
const parsedOutput = {
|
|
1686
|
-
...output,
|
|
1687
|
-
body: await parseErrorBody(output.body, context),
|
|
1688
|
-
};
|
|
1689
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1690
|
-
switch (errorCode) {
|
|
1691
|
-
case "InternalServerException":
|
|
1692
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1693
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1694
|
-
case "ResourceNotFoundException":
|
|
1695
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
1696
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1697
|
-
case "ServiceQuotaExceededException":
|
|
1698
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
1699
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1700
|
-
case "ThrottlingException":
|
|
1701
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1702
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1703
|
-
case "ValidationException":
|
|
1704
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1705
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1706
|
-
default:
|
|
1707
|
-
const parsedBody = parsedOutput.body;
|
|
1708
|
-
return throwDefaultError({
|
|
1709
|
-
output,
|
|
1710
|
-
parsedBody,
|
|
1711
|
-
errorCode,
|
|
1712
|
-
});
|
|
1713
|
-
}
|
|
1714
|
-
};
|
|
1715
1192
|
export const de_GetMetadataTransferJobCommand = async (output, context) => {
|
|
1716
1193
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1717
|
-
return
|
|
1194
|
+
return de_CommandError(output, context);
|
|
1718
1195
|
}
|
|
1719
1196
|
const contents = map({
|
|
1720
1197
|
$metadata: deserializeMetadata(output),
|
|
@@ -1736,40 +1213,9 @@ export const de_GetMetadataTransferJobCommand = async (output, context) => {
|
|
|
1736
1213
|
Object.assign(contents, doc);
|
|
1737
1214
|
return contents;
|
|
1738
1215
|
};
|
|
1739
|
-
const de_GetMetadataTransferJobCommandError = async (output, context) => {
|
|
1740
|
-
const parsedOutput = {
|
|
1741
|
-
...output,
|
|
1742
|
-
body: await parseErrorBody(output.body, context),
|
|
1743
|
-
};
|
|
1744
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1745
|
-
switch (errorCode) {
|
|
1746
|
-
case "AccessDeniedException":
|
|
1747
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1748
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1749
|
-
case "InternalServerException":
|
|
1750
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1751
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1752
|
-
case "ResourceNotFoundException":
|
|
1753
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
1754
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1755
|
-
case "ThrottlingException":
|
|
1756
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1757
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1758
|
-
case "ValidationException":
|
|
1759
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1760
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1761
|
-
default:
|
|
1762
|
-
const parsedBody = parsedOutput.body;
|
|
1763
|
-
return throwDefaultError({
|
|
1764
|
-
output,
|
|
1765
|
-
parsedBody,
|
|
1766
|
-
errorCode,
|
|
1767
|
-
});
|
|
1768
|
-
}
|
|
1769
|
-
};
|
|
1770
1216
|
export const de_GetPricingPlanCommand = async (output, context) => {
|
|
1771
1217
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1772
|
-
return
|
|
1218
|
+
return de_CommandError(output, context);
|
|
1773
1219
|
}
|
|
1774
1220
|
const contents = map({
|
|
1775
1221
|
$metadata: deserializeMetadata(output),
|
|
@@ -1782,37 +1228,9 @@ export const de_GetPricingPlanCommand = async (output, context) => {
|
|
|
1782
1228
|
Object.assign(contents, doc);
|
|
1783
1229
|
return contents;
|
|
1784
1230
|
};
|
|
1785
|
-
const de_GetPricingPlanCommandError = async (output, context) => {
|
|
1786
|
-
const parsedOutput = {
|
|
1787
|
-
...output,
|
|
1788
|
-
body: await parseErrorBody(output.body, context),
|
|
1789
|
-
};
|
|
1790
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1791
|
-
switch (errorCode) {
|
|
1792
|
-
case "AccessDeniedException":
|
|
1793
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1794
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1795
|
-
case "InternalServerException":
|
|
1796
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1797
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1798
|
-
case "ThrottlingException":
|
|
1799
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1800
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1801
|
-
case "ValidationException":
|
|
1802
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1803
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1804
|
-
default:
|
|
1805
|
-
const parsedBody = parsedOutput.body;
|
|
1806
|
-
return throwDefaultError({
|
|
1807
|
-
output,
|
|
1808
|
-
parsedBody,
|
|
1809
|
-
errorCode,
|
|
1810
|
-
});
|
|
1811
|
-
}
|
|
1812
|
-
};
|
|
1813
1231
|
export const de_GetPropertyValueCommand = async (output, context) => {
|
|
1814
1232
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1815
|
-
return
|
|
1233
|
+
return de_CommandError(output, context);
|
|
1816
1234
|
}
|
|
1817
1235
|
const contents = map({
|
|
1818
1236
|
$metadata: deserializeMetadata(output),
|
|
@@ -1826,46 +1244,9 @@ export const de_GetPropertyValueCommand = async (output, context) => {
|
|
|
1826
1244
|
Object.assign(contents, doc);
|
|
1827
1245
|
return contents;
|
|
1828
1246
|
};
|
|
1829
|
-
const de_GetPropertyValueCommandError = async (output, context) => {
|
|
1830
|
-
const parsedOutput = {
|
|
1831
|
-
...output,
|
|
1832
|
-
body: await parseErrorBody(output.body, context),
|
|
1833
|
-
};
|
|
1834
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1835
|
-
switch (errorCode) {
|
|
1836
|
-
case "AccessDeniedException":
|
|
1837
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1838
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1839
|
-
case "ConnectorFailureException":
|
|
1840
|
-
case "com.amazonaws.iottwinmaker#ConnectorFailureException":
|
|
1841
|
-
throw await de_ConnectorFailureExceptionRes(parsedOutput, context);
|
|
1842
|
-
case "ConnectorTimeoutException":
|
|
1843
|
-
case "com.amazonaws.iottwinmaker#ConnectorTimeoutException":
|
|
1844
|
-
throw await de_ConnectorTimeoutExceptionRes(parsedOutput, context);
|
|
1845
|
-
case "InternalServerException":
|
|
1846
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1847
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1848
|
-
case "ResourceNotFoundException":
|
|
1849
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
1850
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1851
|
-
case "ThrottlingException":
|
|
1852
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1853
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1854
|
-
case "ValidationException":
|
|
1855
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1856
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1857
|
-
default:
|
|
1858
|
-
const parsedBody = parsedOutput.body;
|
|
1859
|
-
return throwDefaultError({
|
|
1860
|
-
output,
|
|
1861
|
-
parsedBody,
|
|
1862
|
-
errorCode,
|
|
1863
|
-
});
|
|
1864
|
-
}
|
|
1865
|
-
};
|
|
1866
1247
|
export const de_GetPropertyValueHistoryCommand = async (output, context) => {
|
|
1867
1248
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1868
|
-
return
|
|
1249
|
+
return de_CommandError(output, context);
|
|
1869
1250
|
}
|
|
1870
1251
|
const contents = map({
|
|
1871
1252
|
$metadata: deserializeMetadata(output),
|
|
@@ -1878,46 +1259,9 @@ export const de_GetPropertyValueHistoryCommand = async (output, context) => {
|
|
|
1878
1259
|
Object.assign(contents, doc);
|
|
1879
1260
|
return contents;
|
|
1880
1261
|
};
|
|
1881
|
-
const de_GetPropertyValueHistoryCommandError = async (output, context) => {
|
|
1882
|
-
const parsedOutput = {
|
|
1883
|
-
...output,
|
|
1884
|
-
body: await parseErrorBody(output.body, context),
|
|
1885
|
-
};
|
|
1886
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1887
|
-
switch (errorCode) {
|
|
1888
|
-
case "AccessDeniedException":
|
|
1889
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1890
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1891
|
-
case "ConnectorFailureException":
|
|
1892
|
-
case "com.amazonaws.iottwinmaker#ConnectorFailureException":
|
|
1893
|
-
throw await de_ConnectorFailureExceptionRes(parsedOutput, context);
|
|
1894
|
-
case "ConnectorTimeoutException":
|
|
1895
|
-
case "com.amazonaws.iottwinmaker#ConnectorTimeoutException":
|
|
1896
|
-
throw await de_ConnectorTimeoutExceptionRes(parsedOutput, context);
|
|
1897
|
-
case "InternalServerException":
|
|
1898
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1899
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1900
|
-
case "ResourceNotFoundException":
|
|
1901
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
1902
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1903
|
-
case "ThrottlingException":
|
|
1904
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1905
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1906
|
-
case "ValidationException":
|
|
1907
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1908
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1909
|
-
default:
|
|
1910
|
-
const parsedBody = parsedOutput.body;
|
|
1911
|
-
return throwDefaultError({
|
|
1912
|
-
output,
|
|
1913
|
-
parsedBody,
|
|
1914
|
-
errorCode,
|
|
1915
|
-
});
|
|
1916
|
-
}
|
|
1917
|
-
};
|
|
1918
1262
|
export const de_GetSceneCommand = async (output, context) => {
|
|
1919
1263
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1920
|
-
return
|
|
1264
|
+
return de_CommandError(output, context);
|
|
1921
1265
|
}
|
|
1922
1266
|
const contents = map({
|
|
1923
1267
|
$metadata: deserializeMetadata(output),
|
|
@@ -1939,40 +1283,9 @@ export const de_GetSceneCommand = async (output, context) => {
|
|
|
1939
1283
|
Object.assign(contents, doc);
|
|
1940
1284
|
return contents;
|
|
1941
1285
|
};
|
|
1942
|
-
const de_GetSceneCommandError = async (output, context) => {
|
|
1943
|
-
const parsedOutput = {
|
|
1944
|
-
...output,
|
|
1945
|
-
body: await parseErrorBody(output.body, context),
|
|
1946
|
-
};
|
|
1947
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1948
|
-
switch (errorCode) {
|
|
1949
|
-
case "AccessDeniedException":
|
|
1950
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1951
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1952
|
-
case "InternalServerException":
|
|
1953
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1954
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1955
|
-
case "ResourceNotFoundException":
|
|
1956
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
1957
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1958
|
-
case "ThrottlingException":
|
|
1959
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1960
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1961
|
-
case "ValidationException":
|
|
1962
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1963
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1964
|
-
default:
|
|
1965
|
-
const parsedBody = parsedOutput.body;
|
|
1966
|
-
return throwDefaultError({
|
|
1967
|
-
output,
|
|
1968
|
-
parsedBody,
|
|
1969
|
-
errorCode,
|
|
1970
|
-
});
|
|
1971
|
-
}
|
|
1972
|
-
};
|
|
1973
1286
|
export const de_GetSyncJobCommand = async (output, context) => {
|
|
1974
1287
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1975
|
-
return
|
|
1288
|
+
return de_CommandError(output, context);
|
|
1976
1289
|
}
|
|
1977
1290
|
const contents = map({
|
|
1978
1291
|
$metadata: deserializeMetadata(output),
|
|
@@ -1990,43 +1303,9 @@ export const de_GetSyncJobCommand = async (output, context) => {
|
|
|
1990
1303
|
Object.assign(contents, doc);
|
|
1991
1304
|
return contents;
|
|
1992
1305
|
};
|
|
1993
|
-
const de_GetSyncJobCommandError = async (output, context) => {
|
|
1994
|
-
const parsedOutput = {
|
|
1995
|
-
...output,
|
|
1996
|
-
body: await parseErrorBody(output.body, context),
|
|
1997
|
-
};
|
|
1998
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1999
|
-
switch (errorCode) {
|
|
2000
|
-
case "AccessDeniedException":
|
|
2001
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2002
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2003
|
-
case "InternalServerException":
|
|
2004
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2005
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2006
|
-
case "ResourceNotFoundException":
|
|
2007
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2008
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2009
|
-
case "ServiceQuotaExceededException":
|
|
2010
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
2011
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2012
|
-
case "ThrottlingException":
|
|
2013
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2014
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2015
|
-
case "ValidationException":
|
|
2016
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2017
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2018
|
-
default:
|
|
2019
|
-
const parsedBody = parsedOutput.body;
|
|
2020
|
-
return throwDefaultError({
|
|
2021
|
-
output,
|
|
2022
|
-
parsedBody,
|
|
2023
|
-
errorCode,
|
|
2024
|
-
});
|
|
2025
|
-
}
|
|
2026
|
-
};
|
|
2027
1306
|
export const de_GetWorkspaceCommand = async (output, context) => {
|
|
2028
1307
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2029
|
-
return
|
|
1308
|
+
return de_CommandError(output, context);
|
|
2030
1309
|
}
|
|
2031
1310
|
const contents = map({
|
|
2032
1311
|
$metadata: deserializeMetadata(output),
|
|
@@ -2045,40 +1324,9 @@ export const de_GetWorkspaceCommand = async (output, context) => {
|
|
|
2045
1324
|
Object.assign(contents, doc);
|
|
2046
1325
|
return contents;
|
|
2047
1326
|
};
|
|
2048
|
-
const de_GetWorkspaceCommandError = async (output, context) => {
|
|
2049
|
-
const parsedOutput = {
|
|
2050
|
-
...output,
|
|
2051
|
-
body: await parseErrorBody(output.body, context),
|
|
2052
|
-
};
|
|
2053
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2054
|
-
switch (errorCode) {
|
|
2055
|
-
case "InternalServerException":
|
|
2056
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2057
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2058
|
-
case "ResourceNotFoundException":
|
|
2059
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2060
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2061
|
-
case "ServiceQuotaExceededException":
|
|
2062
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
2063
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2064
|
-
case "ThrottlingException":
|
|
2065
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2066
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2067
|
-
case "ValidationException":
|
|
2068
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2069
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2070
|
-
default:
|
|
2071
|
-
const parsedBody = parsedOutput.body;
|
|
2072
|
-
return throwDefaultError({
|
|
2073
|
-
output,
|
|
2074
|
-
parsedBody,
|
|
2075
|
-
errorCode,
|
|
2076
|
-
});
|
|
2077
|
-
}
|
|
2078
|
-
};
|
|
2079
1327
|
export const de_ListComponentsCommand = async (output, context) => {
|
|
2080
1328
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2081
|
-
return
|
|
1329
|
+
return de_CommandError(output, context);
|
|
2082
1330
|
}
|
|
2083
1331
|
const contents = map({
|
|
2084
1332
|
$metadata: deserializeMetadata(output),
|
|
@@ -2091,40 +1339,9 @@ export const de_ListComponentsCommand = async (output, context) => {
|
|
|
2091
1339
|
Object.assign(contents, doc);
|
|
2092
1340
|
return contents;
|
|
2093
1341
|
};
|
|
2094
|
-
const de_ListComponentsCommandError = async (output, context) => {
|
|
2095
|
-
const parsedOutput = {
|
|
2096
|
-
...output,
|
|
2097
|
-
body: await parseErrorBody(output.body, context),
|
|
2098
|
-
};
|
|
2099
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2100
|
-
switch (errorCode) {
|
|
2101
|
-
case "AccessDeniedException":
|
|
2102
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2103
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2104
|
-
case "InternalServerException":
|
|
2105
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2106
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2107
|
-
case "ResourceNotFoundException":
|
|
2108
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2109
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2110
|
-
case "ThrottlingException":
|
|
2111
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2112
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2113
|
-
case "ValidationException":
|
|
2114
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2115
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2116
|
-
default:
|
|
2117
|
-
const parsedBody = parsedOutput.body;
|
|
2118
|
-
return throwDefaultError({
|
|
2119
|
-
output,
|
|
2120
|
-
parsedBody,
|
|
2121
|
-
errorCode,
|
|
2122
|
-
});
|
|
2123
|
-
}
|
|
2124
|
-
};
|
|
2125
1342
|
export const de_ListComponentTypesCommand = async (output, context) => {
|
|
2126
1343
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2127
|
-
return
|
|
1344
|
+
return de_CommandError(output, context);
|
|
2128
1345
|
}
|
|
2129
1346
|
const contents = map({
|
|
2130
1347
|
$metadata: deserializeMetadata(output),
|
|
@@ -2139,37 +1356,9 @@ export const de_ListComponentTypesCommand = async (output, context) => {
|
|
|
2139
1356
|
Object.assign(contents, doc);
|
|
2140
1357
|
return contents;
|
|
2141
1358
|
};
|
|
2142
|
-
const de_ListComponentTypesCommandError = async (output, context) => {
|
|
2143
|
-
const parsedOutput = {
|
|
2144
|
-
...output,
|
|
2145
|
-
body: await parseErrorBody(output.body, context),
|
|
2146
|
-
};
|
|
2147
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2148
|
-
switch (errorCode) {
|
|
2149
|
-
case "AccessDeniedException":
|
|
2150
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2151
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2152
|
-
case "InternalServerException":
|
|
2153
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2154
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2155
|
-
case "ThrottlingException":
|
|
2156
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2157
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2158
|
-
case "ValidationException":
|
|
2159
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2160
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2161
|
-
default:
|
|
2162
|
-
const parsedBody = parsedOutput.body;
|
|
2163
|
-
return throwDefaultError({
|
|
2164
|
-
output,
|
|
2165
|
-
parsedBody,
|
|
2166
|
-
errorCode,
|
|
2167
|
-
});
|
|
2168
|
-
}
|
|
2169
|
-
};
|
|
2170
1359
|
export const de_ListEntitiesCommand = async (output, context) => {
|
|
2171
1360
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2172
|
-
return
|
|
1361
|
+
return de_CommandError(output, context);
|
|
2173
1362
|
}
|
|
2174
1363
|
const contents = map({
|
|
2175
1364
|
$metadata: deserializeMetadata(output),
|
|
@@ -2182,37 +1371,9 @@ export const de_ListEntitiesCommand = async (output, context) => {
|
|
|
2182
1371
|
Object.assign(contents, doc);
|
|
2183
1372
|
return contents;
|
|
2184
1373
|
};
|
|
2185
|
-
const de_ListEntitiesCommandError = async (output, context) => {
|
|
2186
|
-
const parsedOutput = {
|
|
2187
|
-
...output,
|
|
2188
|
-
body: await parseErrorBody(output.body, context),
|
|
2189
|
-
};
|
|
2190
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2191
|
-
switch (errorCode) {
|
|
2192
|
-
case "InternalServerException":
|
|
2193
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2194
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2195
|
-
case "ServiceQuotaExceededException":
|
|
2196
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
2197
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2198
|
-
case "ThrottlingException":
|
|
2199
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2200
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2201
|
-
case "ValidationException":
|
|
2202
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2203
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2204
|
-
default:
|
|
2205
|
-
const parsedBody = parsedOutput.body;
|
|
2206
|
-
return throwDefaultError({
|
|
2207
|
-
output,
|
|
2208
|
-
parsedBody,
|
|
2209
|
-
errorCode,
|
|
2210
|
-
});
|
|
2211
|
-
}
|
|
2212
|
-
};
|
|
2213
1374
|
export const de_ListMetadataTransferJobsCommand = async (output, context) => {
|
|
2214
1375
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2215
|
-
return
|
|
1376
|
+
return de_CommandError(output, context);
|
|
2216
1377
|
}
|
|
2217
1378
|
const contents = map({
|
|
2218
1379
|
$metadata: deserializeMetadata(output),
|
|
@@ -2225,37 +1386,9 @@ export const de_ListMetadataTransferJobsCommand = async (output, context) => {
|
|
|
2225
1386
|
Object.assign(contents, doc);
|
|
2226
1387
|
return contents;
|
|
2227
1388
|
};
|
|
2228
|
-
const de_ListMetadataTransferJobsCommandError = async (output, context) => {
|
|
2229
|
-
const parsedOutput = {
|
|
2230
|
-
...output,
|
|
2231
|
-
body: await parseErrorBody(output.body, context),
|
|
2232
|
-
};
|
|
2233
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2234
|
-
switch (errorCode) {
|
|
2235
|
-
case "AccessDeniedException":
|
|
2236
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2237
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2238
|
-
case "InternalServerException":
|
|
2239
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2240
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2241
|
-
case "ThrottlingException":
|
|
2242
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2243
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2244
|
-
case "ValidationException":
|
|
2245
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2246
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2247
|
-
default:
|
|
2248
|
-
const parsedBody = parsedOutput.body;
|
|
2249
|
-
return throwDefaultError({
|
|
2250
|
-
output,
|
|
2251
|
-
parsedBody,
|
|
2252
|
-
errorCode,
|
|
2253
|
-
});
|
|
2254
|
-
}
|
|
2255
|
-
};
|
|
2256
1389
|
export const de_ListPropertiesCommand = async (output, context) => {
|
|
2257
1390
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2258
|
-
return
|
|
1391
|
+
return de_CommandError(output, context);
|
|
2259
1392
|
}
|
|
2260
1393
|
const contents = map({
|
|
2261
1394
|
$metadata: deserializeMetadata(output),
|
|
@@ -2268,40 +1401,9 @@ export const de_ListPropertiesCommand = async (output, context) => {
|
|
|
2268
1401
|
Object.assign(contents, doc);
|
|
2269
1402
|
return contents;
|
|
2270
1403
|
};
|
|
2271
|
-
const de_ListPropertiesCommandError = async (output, context) => {
|
|
2272
|
-
const parsedOutput = {
|
|
2273
|
-
...output,
|
|
2274
|
-
body: await parseErrorBody(output.body, context),
|
|
2275
|
-
};
|
|
2276
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2277
|
-
switch (errorCode) {
|
|
2278
|
-
case "AccessDeniedException":
|
|
2279
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2280
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2281
|
-
case "InternalServerException":
|
|
2282
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2283
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2284
|
-
case "ResourceNotFoundException":
|
|
2285
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2286
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2287
|
-
case "ThrottlingException":
|
|
2288
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2289
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2290
|
-
case "ValidationException":
|
|
2291
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2292
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2293
|
-
default:
|
|
2294
|
-
const parsedBody = parsedOutput.body;
|
|
2295
|
-
return throwDefaultError({
|
|
2296
|
-
output,
|
|
2297
|
-
parsedBody,
|
|
2298
|
-
errorCode,
|
|
2299
|
-
});
|
|
2300
|
-
}
|
|
2301
|
-
};
|
|
2302
1404
|
export const de_ListScenesCommand = async (output, context) => {
|
|
2303
1405
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2304
|
-
return
|
|
1406
|
+
return de_CommandError(output, context);
|
|
2305
1407
|
}
|
|
2306
1408
|
const contents = map({
|
|
2307
1409
|
$metadata: deserializeMetadata(output),
|
|
@@ -2314,37 +1416,9 @@ export const de_ListScenesCommand = async (output, context) => {
|
|
|
2314
1416
|
Object.assign(contents, doc);
|
|
2315
1417
|
return contents;
|
|
2316
1418
|
};
|
|
2317
|
-
const de_ListScenesCommandError = async (output, context) => {
|
|
2318
|
-
const parsedOutput = {
|
|
2319
|
-
...output,
|
|
2320
|
-
body: await parseErrorBody(output.body, context),
|
|
2321
|
-
};
|
|
2322
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2323
|
-
switch (errorCode) {
|
|
2324
|
-
case "AccessDeniedException":
|
|
2325
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2326
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2327
|
-
case "InternalServerException":
|
|
2328
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2329
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2330
|
-
case "ThrottlingException":
|
|
2331
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2332
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2333
|
-
case "ValidationException":
|
|
2334
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2335
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2336
|
-
default:
|
|
2337
|
-
const parsedBody = parsedOutput.body;
|
|
2338
|
-
return throwDefaultError({
|
|
2339
|
-
output,
|
|
2340
|
-
parsedBody,
|
|
2341
|
-
errorCode,
|
|
2342
|
-
});
|
|
2343
|
-
}
|
|
2344
|
-
};
|
|
2345
1419
|
export const de_ListSyncJobsCommand = async (output, context) => {
|
|
2346
1420
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2347
|
-
return
|
|
1421
|
+
return de_CommandError(output, context);
|
|
2348
1422
|
}
|
|
2349
1423
|
const contents = map({
|
|
2350
1424
|
$metadata: deserializeMetadata(output),
|
|
@@ -2357,86 +1431,24 @@ export const de_ListSyncJobsCommand = async (output, context) => {
|
|
|
2357
1431
|
Object.assign(contents, doc);
|
|
2358
1432
|
return contents;
|
|
2359
1433
|
};
|
|
2360
|
-
const de_ListSyncJobsCommandError = async (output, context) => {
|
|
2361
|
-
const parsedOutput = {
|
|
2362
|
-
...output,
|
|
2363
|
-
body: await parseErrorBody(output.body, context),
|
|
2364
|
-
};
|
|
2365
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2366
|
-
switch (errorCode) {
|
|
2367
|
-
case "AccessDeniedException":
|
|
2368
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2369
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2370
|
-
case "InternalServerException":
|
|
2371
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2372
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2373
|
-
case "ServiceQuotaExceededException":
|
|
2374
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
2375
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2376
|
-
case "ThrottlingException":
|
|
2377
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2378
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2379
|
-
case "ValidationException":
|
|
2380
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2381
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2382
|
-
default:
|
|
2383
|
-
const parsedBody = parsedOutput.body;
|
|
2384
|
-
return throwDefaultError({
|
|
2385
|
-
output,
|
|
2386
|
-
parsedBody,
|
|
2387
|
-
errorCode,
|
|
2388
|
-
});
|
|
2389
|
-
}
|
|
2390
|
-
};
|
|
2391
1434
|
export const de_ListSyncResourcesCommand = async (output, context) => {
|
|
2392
1435
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2393
|
-
return
|
|
2394
|
-
}
|
|
2395
|
-
const contents = map({
|
|
2396
|
-
$metadata: deserializeMetadata(output),
|
|
2397
|
-
});
|
|
2398
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2399
|
-
const doc = take(data, {
|
|
2400
|
-
nextToken: __expectString,
|
|
2401
|
-
syncResources: (_) => de_SyncResourceSummaries(_, context),
|
|
2402
|
-
});
|
|
2403
|
-
Object.assign(contents, doc);
|
|
2404
|
-
return contents;
|
|
2405
|
-
};
|
|
2406
|
-
const de_ListSyncResourcesCommandError = async (output, context) => {
|
|
2407
|
-
const parsedOutput = {
|
|
2408
|
-
...output,
|
|
2409
|
-
body: await parseErrorBody(output.body, context),
|
|
2410
|
-
};
|
|
2411
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2412
|
-
switch (errorCode) {
|
|
2413
|
-
case "AccessDeniedException":
|
|
2414
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2415
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2416
|
-
case "InternalServerException":
|
|
2417
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2418
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2419
|
-
case "ServiceQuotaExceededException":
|
|
2420
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
2421
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2422
|
-
case "ThrottlingException":
|
|
2423
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2424
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2425
|
-
case "ValidationException":
|
|
2426
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2427
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2428
|
-
default:
|
|
2429
|
-
const parsedBody = parsedOutput.body;
|
|
2430
|
-
return throwDefaultError({
|
|
2431
|
-
output,
|
|
2432
|
-
parsedBody,
|
|
2433
|
-
errorCode,
|
|
2434
|
-
});
|
|
1436
|
+
return de_CommandError(output, context);
|
|
2435
1437
|
}
|
|
1438
|
+
const contents = map({
|
|
1439
|
+
$metadata: deserializeMetadata(output),
|
|
1440
|
+
});
|
|
1441
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1442
|
+
const doc = take(data, {
|
|
1443
|
+
nextToken: __expectString,
|
|
1444
|
+
syncResources: (_) => de_SyncResourceSummaries(_, context),
|
|
1445
|
+
});
|
|
1446
|
+
Object.assign(contents, doc);
|
|
1447
|
+
return contents;
|
|
2436
1448
|
};
|
|
2437
1449
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2438
1450
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2439
|
-
return
|
|
1451
|
+
return de_CommandError(output, context);
|
|
2440
1452
|
}
|
|
2441
1453
|
const contents = map({
|
|
2442
1454
|
$metadata: deserializeMetadata(output),
|
|
@@ -2449,31 +1461,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
2449
1461
|
Object.assign(contents, doc);
|
|
2450
1462
|
return contents;
|
|
2451
1463
|
};
|
|
2452
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2453
|
-
const parsedOutput = {
|
|
2454
|
-
...output,
|
|
2455
|
-
body: await parseErrorBody(output.body, context),
|
|
2456
|
-
};
|
|
2457
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2458
|
-
switch (errorCode) {
|
|
2459
|
-
case "AccessDeniedException":
|
|
2460
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2461
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2462
|
-
case "ResourceNotFoundException":
|
|
2463
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2464
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2465
|
-
default:
|
|
2466
|
-
const parsedBody = parsedOutput.body;
|
|
2467
|
-
return throwDefaultError({
|
|
2468
|
-
output,
|
|
2469
|
-
parsedBody,
|
|
2470
|
-
errorCode,
|
|
2471
|
-
});
|
|
2472
|
-
}
|
|
2473
|
-
};
|
|
2474
1464
|
export const de_ListWorkspacesCommand = async (output, context) => {
|
|
2475
1465
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2476
|
-
return
|
|
1466
|
+
return de_CommandError(output, context);
|
|
2477
1467
|
}
|
|
2478
1468
|
const contents = map({
|
|
2479
1469
|
$metadata: deserializeMetadata(output),
|
|
@@ -2486,37 +1476,9 @@ export const de_ListWorkspacesCommand = async (output, context) => {
|
|
|
2486
1476
|
Object.assign(contents, doc);
|
|
2487
1477
|
return contents;
|
|
2488
1478
|
};
|
|
2489
|
-
const de_ListWorkspacesCommandError = async (output, context) => {
|
|
2490
|
-
const parsedOutput = {
|
|
2491
|
-
...output,
|
|
2492
|
-
body: await parseErrorBody(output.body, context),
|
|
2493
|
-
};
|
|
2494
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2495
|
-
switch (errorCode) {
|
|
2496
|
-
case "InternalServerException":
|
|
2497
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2498
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2499
|
-
case "ServiceQuotaExceededException":
|
|
2500
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
2501
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2502
|
-
case "ThrottlingException":
|
|
2503
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2504
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2505
|
-
case "ValidationException":
|
|
2506
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2507
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2508
|
-
default:
|
|
2509
|
-
const parsedBody = parsedOutput.body;
|
|
2510
|
-
return throwDefaultError({
|
|
2511
|
-
output,
|
|
2512
|
-
parsedBody,
|
|
2513
|
-
errorCode,
|
|
2514
|
-
});
|
|
2515
|
-
}
|
|
2516
|
-
};
|
|
2517
1479
|
export const de_TagResourceCommand = async (output, context) => {
|
|
2518
1480
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2519
|
-
return
|
|
1481
|
+
return de_CommandError(output, context);
|
|
2520
1482
|
}
|
|
2521
1483
|
const contents = map({
|
|
2522
1484
|
$metadata: deserializeMetadata(output),
|
|
@@ -2524,34 +1486,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
2524
1486
|
await collectBody(output.body, context);
|
|
2525
1487
|
return contents;
|
|
2526
1488
|
};
|
|
2527
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
2528
|
-
const parsedOutput = {
|
|
2529
|
-
...output,
|
|
2530
|
-
body: await parseErrorBody(output.body, context),
|
|
2531
|
-
};
|
|
2532
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2533
|
-
switch (errorCode) {
|
|
2534
|
-
case "AccessDeniedException":
|
|
2535
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2536
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2537
|
-
case "ResourceNotFoundException":
|
|
2538
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2539
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2540
|
-
case "TooManyTagsException":
|
|
2541
|
-
case "com.amazonaws.iottwinmaker#TooManyTagsException":
|
|
2542
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
2543
|
-
default:
|
|
2544
|
-
const parsedBody = parsedOutput.body;
|
|
2545
|
-
return throwDefaultError({
|
|
2546
|
-
output,
|
|
2547
|
-
parsedBody,
|
|
2548
|
-
errorCode,
|
|
2549
|
-
});
|
|
2550
|
-
}
|
|
2551
|
-
};
|
|
2552
1489
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
2553
1490
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2554
|
-
return
|
|
1491
|
+
return de_CommandError(output, context);
|
|
2555
1492
|
}
|
|
2556
1493
|
const contents = map({
|
|
2557
1494
|
$metadata: deserializeMetadata(output),
|
|
@@ -2559,31 +1496,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
2559
1496
|
await collectBody(output.body, context);
|
|
2560
1497
|
return contents;
|
|
2561
1498
|
};
|
|
2562
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
2563
|
-
const parsedOutput = {
|
|
2564
|
-
...output,
|
|
2565
|
-
body: await parseErrorBody(output.body, context),
|
|
2566
|
-
};
|
|
2567
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2568
|
-
switch (errorCode) {
|
|
2569
|
-
case "AccessDeniedException":
|
|
2570
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2571
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2572
|
-
case "ResourceNotFoundException":
|
|
2573
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2574
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2575
|
-
default:
|
|
2576
|
-
const parsedBody = parsedOutput.body;
|
|
2577
|
-
return throwDefaultError({
|
|
2578
|
-
output,
|
|
2579
|
-
parsedBody,
|
|
2580
|
-
errorCode,
|
|
2581
|
-
});
|
|
2582
|
-
}
|
|
2583
|
-
};
|
|
2584
1499
|
export const de_UpdateComponentTypeCommand = async (output, context) => {
|
|
2585
1500
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2586
|
-
return
|
|
1501
|
+
return de_CommandError(output, context);
|
|
2587
1502
|
}
|
|
2588
1503
|
const contents = map({
|
|
2589
1504
|
$metadata: deserializeMetadata(output),
|
|
@@ -2598,43 +1513,9 @@ export const de_UpdateComponentTypeCommand = async (output, context) => {
|
|
|
2598
1513
|
Object.assign(contents, doc);
|
|
2599
1514
|
return contents;
|
|
2600
1515
|
};
|
|
2601
|
-
const de_UpdateComponentTypeCommandError = async (output, context) => {
|
|
2602
|
-
const parsedOutput = {
|
|
2603
|
-
...output,
|
|
2604
|
-
body: await parseErrorBody(output.body, context),
|
|
2605
|
-
};
|
|
2606
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2607
|
-
switch (errorCode) {
|
|
2608
|
-
case "AccessDeniedException":
|
|
2609
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2610
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2611
|
-
case "InternalServerException":
|
|
2612
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2613
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2614
|
-
case "ResourceNotFoundException":
|
|
2615
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2616
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2617
|
-
case "ServiceQuotaExceededException":
|
|
2618
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
2619
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2620
|
-
case "ThrottlingException":
|
|
2621
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2622
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2623
|
-
case "ValidationException":
|
|
2624
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2625
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2626
|
-
default:
|
|
2627
|
-
const parsedBody = parsedOutput.body;
|
|
2628
|
-
return throwDefaultError({
|
|
2629
|
-
output,
|
|
2630
|
-
parsedBody,
|
|
2631
|
-
errorCode,
|
|
2632
|
-
});
|
|
2633
|
-
}
|
|
2634
|
-
};
|
|
2635
1516
|
export const de_UpdateEntityCommand = async (output, context) => {
|
|
2636
1517
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2637
|
-
return
|
|
1518
|
+
return de_CommandError(output, context);
|
|
2638
1519
|
}
|
|
2639
1520
|
const contents = map({
|
|
2640
1521
|
$metadata: deserializeMetadata(output),
|
|
@@ -2647,46 +1528,9 @@ export const de_UpdateEntityCommand = async (output, context) => {
|
|
|
2647
1528
|
Object.assign(contents, doc);
|
|
2648
1529
|
return contents;
|
|
2649
1530
|
};
|
|
2650
|
-
const de_UpdateEntityCommandError = async (output, context) => {
|
|
2651
|
-
const parsedOutput = {
|
|
2652
|
-
...output,
|
|
2653
|
-
body: await parseErrorBody(output.body, context),
|
|
2654
|
-
};
|
|
2655
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2656
|
-
switch (errorCode) {
|
|
2657
|
-
case "AccessDeniedException":
|
|
2658
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2659
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2660
|
-
case "ConflictException":
|
|
2661
|
-
case "com.amazonaws.iottwinmaker#ConflictException":
|
|
2662
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2663
|
-
case "InternalServerException":
|
|
2664
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2665
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2666
|
-
case "ResourceNotFoundException":
|
|
2667
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2668
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2669
|
-
case "ServiceQuotaExceededException":
|
|
2670
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
2671
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2672
|
-
case "ThrottlingException":
|
|
2673
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2674
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2675
|
-
case "ValidationException":
|
|
2676
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2677
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2678
|
-
default:
|
|
2679
|
-
const parsedBody = parsedOutput.body;
|
|
2680
|
-
return throwDefaultError({
|
|
2681
|
-
output,
|
|
2682
|
-
parsedBody,
|
|
2683
|
-
errorCode,
|
|
2684
|
-
});
|
|
2685
|
-
}
|
|
2686
|
-
};
|
|
2687
1531
|
export const de_UpdatePricingPlanCommand = async (output, context) => {
|
|
2688
1532
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2689
|
-
return
|
|
1533
|
+
return de_CommandError(output, context);
|
|
2690
1534
|
}
|
|
2691
1535
|
const contents = map({
|
|
2692
1536
|
$metadata: deserializeMetadata(output),
|
|
@@ -2699,37 +1543,9 @@ export const de_UpdatePricingPlanCommand = async (output, context) => {
|
|
|
2699
1543
|
Object.assign(contents, doc);
|
|
2700
1544
|
return contents;
|
|
2701
1545
|
};
|
|
2702
|
-
const de_UpdatePricingPlanCommandError = async (output, context) => {
|
|
2703
|
-
const parsedOutput = {
|
|
2704
|
-
...output,
|
|
2705
|
-
body: await parseErrorBody(output.body, context),
|
|
2706
|
-
};
|
|
2707
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2708
|
-
switch (errorCode) {
|
|
2709
|
-
case "AccessDeniedException":
|
|
2710
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2711
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2712
|
-
case "InternalServerException":
|
|
2713
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2714
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2715
|
-
case "ThrottlingException":
|
|
2716
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2717
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2718
|
-
case "ValidationException":
|
|
2719
|
-
case "com.amazonaws.iottwinmaker#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
|
-
});
|
|
2728
|
-
}
|
|
2729
|
-
};
|
|
2730
1546
|
export const de_UpdateSceneCommand = async (output, context) => {
|
|
2731
1547
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2732
|
-
return
|
|
1548
|
+
return de_CommandError(output, context);
|
|
2733
1549
|
}
|
|
2734
1550
|
const contents = map({
|
|
2735
1551
|
$metadata: deserializeMetadata(output),
|
|
@@ -2741,40 +1557,9 @@ export const de_UpdateSceneCommand = async (output, context) => {
|
|
|
2741
1557
|
Object.assign(contents, doc);
|
|
2742
1558
|
return contents;
|
|
2743
1559
|
};
|
|
2744
|
-
const de_UpdateSceneCommandError = async (output, context) => {
|
|
2745
|
-
const parsedOutput = {
|
|
2746
|
-
...output,
|
|
2747
|
-
body: await parseErrorBody(output.body, context),
|
|
2748
|
-
};
|
|
2749
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2750
|
-
switch (errorCode) {
|
|
2751
|
-
case "AccessDeniedException":
|
|
2752
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2753
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2754
|
-
case "InternalServerException":
|
|
2755
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2756
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2757
|
-
case "ResourceNotFoundException":
|
|
2758
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2759
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2760
|
-
case "ThrottlingException":
|
|
2761
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2762
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2763
|
-
case "ValidationException":
|
|
2764
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2765
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2766
|
-
default:
|
|
2767
|
-
const parsedBody = parsedOutput.body;
|
|
2768
|
-
return throwDefaultError({
|
|
2769
|
-
output,
|
|
2770
|
-
parsedBody,
|
|
2771
|
-
errorCode,
|
|
2772
|
-
});
|
|
2773
|
-
}
|
|
2774
|
-
};
|
|
2775
1560
|
export const de_UpdateWorkspaceCommand = async (output, context) => {
|
|
2776
1561
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2777
|
-
return
|
|
1562
|
+
return de_CommandError(output, context);
|
|
2778
1563
|
}
|
|
2779
1564
|
const contents = map({
|
|
2780
1565
|
$metadata: deserializeMetadata(output),
|
|
@@ -2786,31 +1571,46 @@ export const de_UpdateWorkspaceCommand = async (output, context) => {
|
|
|
2786
1571
|
Object.assign(contents, doc);
|
|
2787
1572
|
return contents;
|
|
2788
1573
|
};
|
|
2789
|
-
const
|
|
1574
|
+
const de_CommandError = async (output, context) => {
|
|
2790
1575
|
const parsedOutput = {
|
|
2791
1576
|
...output,
|
|
2792
1577
|
body: await parseErrorBody(output.body, context),
|
|
2793
1578
|
};
|
|
2794
1579
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2795
1580
|
switch (errorCode) {
|
|
2796
|
-
case "AccessDeniedException":
|
|
2797
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2798
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2799
1581
|
case "InternalServerException":
|
|
2800
1582
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2801
1583
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2802
1584
|
case "ResourceNotFoundException":
|
|
2803
1585
|
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2804
1586
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2805
|
-
case "ServiceQuotaExceededException":
|
|
2806
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
2807
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2808
1587
|
case "ThrottlingException":
|
|
2809
1588
|
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2810
1589
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2811
1590
|
case "ValidationException":
|
|
2812
1591
|
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2813
1592
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1593
|
+
case "AccessDeniedException":
|
|
1594
|
+
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1595
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1596
|
+
case "ConflictException":
|
|
1597
|
+
case "com.amazonaws.iottwinmaker#ConflictException":
|
|
1598
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1599
|
+
case "ServiceQuotaExceededException":
|
|
1600
|
+
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
1601
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1602
|
+
case "QueryTimeoutException":
|
|
1603
|
+
case "com.amazonaws.iottwinmaker#QueryTimeoutException":
|
|
1604
|
+
throw await de_QueryTimeoutExceptionRes(parsedOutput, context);
|
|
1605
|
+
case "ConnectorFailureException":
|
|
1606
|
+
case "com.amazonaws.iottwinmaker#ConnectorFailureException":
|
|
1607
|
+
throw await de_ConnectorFailureExceptionRes(parsedOutput, context);
|
|
1608
|
+
case "ConnectorTimeoutException":
|
|
1609
|
+
case "com.amazonaws.iottwinmaker#ConnectorTimeoutException":
|
|
1610
|
+
throw await de_ConnectorTimeoutExceptionRes(parsedOutput, context);
|
|
1611
|
+
case "TooManyTagsException":
|
|
1612
|
+
case "com.amazonaws.iottwinmaker#TooManyTagsException":
|
|
1613
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
2814
1614
|
default:
|
|
2815
1615
|
const parsedBody = parsedOutput.body;
|
|
2816
1616
|
return throwDefaultError({
|