@aws-sdk/client-appstream 3.141.0 → 3.150.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/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +331 -595
- package/dist-es/protocols/Aws_json1_1.js +521 -596
- package/package.json +11 -6
|
@@ -676,7 +676,6 @@ const deserializeAws_json1_1AssociateApplicationFleetCommandError = async (outpu
|
|
|
676
676
|
...output,
|
|
677
677
|
body: await parseBody(output.body, context),
|
|
678
678
|
};
|
|
679
|
-
let response;
|
|
680
679
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
681
680
|
switch (errorCode) {
|
|
682
681
|
case "ConcurrentModificationException":
|
|
@@ -696,14 +695,12 @@ const deserializeAws_json1_1AssociateApplicationFleetCommandError = async (outpu
|
|
|
696
695
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
697
696
|
default:
|
|
698
697
|
const parsedBody = parsedOutput.body;
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
$metadata,
|
|
698
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
699
|
+
output,
|
|
700
|
+
parsedBody,
|
|
701
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
702
|
+
errorCode,
|
|
705
703
|
});
|
|
706
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
707
704
|
}
|
|
708
705
|
};
|
|
709
706
|
const deserializeAws_json1_1AssociateApplicationToEntitlementCommand = async (output, context) => {
|
|
@@ -725,7 +722,6 @@ const deserializeAws_json1_1AssociateApplicationToEntitlementCommandError = asyn
|
|
|
725
722
|
...output,
|
|
726
723
|
body: await parseBody(output.body, context),
|
|
727
724
|
};
|
|
728
|
-
let response;
|
|
729
725
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
730
726
|
switch (errorCode) {
|
|
731
727
|
case "EntitlementNotFoundException":
|
|
@@ -742,14 +738,12 @@ const deserializeAws_json1_1AssociateApplicationToEntitlementCommandError = asyn
|
|
|
742
738
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
743
739
|
default:
|
|
744
740
|
const parsedBody = parsedOutput.body;
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
$metadata,
|
|
741
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
742
|
+
output,
|
|
743
|
+
parsedBody,
|
|
744
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
745
|
+
errorCode,
|
|
751
746
|
});
|
|
752
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
753
747
|
}
|
|
754
748
|
};
|
|
755
749
|
const deserializeAws_json1_1AssociateFleetCommand = async (output, context) => {
|
|
@@ -771,7 +765,6 @@ const deserializeAws_json1_1AssociateFleetCommandError = async (output, context)
|
|
|
771
765
|
...output,
|
|
772
766
|
body: await parseBody(output.body, context),
|
|
773
767
|
};
|
|
774
|
-
let response;
|
|
775
768
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
776
769
|
switch (errorCode) {
|
|
777
770
|
case "ConcurrentModificationException":
|
|
@@ -794,14 +787,12 @@ const deserializeAws_json1_1AssociateFleetCommandError = async (output, context)
|
|
|
794
787
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
795
788
|
default:
|
|
796
789
|
const parsedBody = parsedOutput.body;
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
$metadata,
|
|
790
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
791
|
+
output,
|
|
792
|
+
parsedBody,
|
|
793
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
794
|
+
errorCode,
|
|
803
795
|
});
|
|
804
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
805
796
|
}
|
|
806
797
|
};
|
|
807
798
|
const deserializeAws_json1_1BatchAssociateUserStackCommand = async (output, context) => {
|
|
@@ -823,7 +814,6 @@ const deserializeAws_json1_1BatchAssociateUserStackCommandError = async (output,
|
|
|
823
814
|
...output,
|
|
824
815
|
body: await parseBody(output.body, context),
|
|
825
816
|
};
|
|
826
|
-
let response;
|
|
827
817
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
828
818
|
switch (errorCode) {
|
|
829
819
|
case "InvalidParameterCombinationException":
|
|
@@ -834,14 +824,12 @@ const deserializeAws_json1_1BatchAssociateUserStackCommandError = async (output,
|
|
|
834
824
|
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
835
825
|
default:
|
|
836
826
|
const parsedBody = parsedOutput.body;
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
$metadata,
|
|
827
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
828
|
+
output,
|
|
829
|
+
parsedBody,
|
|
830
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
831
|
+
errorCode,
|
|
843
832
|
});
|
|
844
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
845
833
|
}
|
|
846
834
|
};
|
|
847
835
|
const deserializeAws_json1_1BatchDisassociateUserStackCommand = async (output, context) => {
|
|
@@ -863,7 +851,6 @@ const deserializeAws_json1_1BatchDisassociateUserStackCommandError = async (outp
|
|
|
863
851
|
...output,
|
|
864
852
|
body: await parseBody(output.body, context),
|
|
865
853
|
};
|
|
866
|
-
let response;
|
|
867
854
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
868
855
|
switch (errorCode) {
|
|
869
856
|
case "InvalidParameterCombinationException":
|
|
@@ -874,14 +861,12 @@ const deserializeAws_json1_1BatchDisassociateUserStackCommandError = async (outp
|
|
|
874
861
|
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
875
862
|
default:
|
|
876
863
|
const parsedBody = parsedOutput.body;
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
$metadata,
|
|
864
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
865
|
+
output,
|
|
866
|
+
parsedBody,
|
|
867
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
868
|
+
errorCode,
|
|
883
869
|
});
|
|
884
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
885
870
|
}
|
|
886
871
|
};
|
|
887
872
|
const deserializeAws_json1_1CopyImageCommand = async (output, context) => {
|
|
@@ -903,7 +888,6 @@ const deserializeAws_json1_1CopyImageCommandError = async (output, context) => {
|
|
|
903
888
|
...output,
|
|
904
889
|
body: await parseBody(output.body, context),
|
|
905
890
|
};
|
|
906
|
-
let response;
|
|
907
891
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
908
892
|
switch (errorCode) {
|
|
909
893
|
case "IncompatibleImageException":
|
|
@@ -926,14 +910,12 @@ const deserializeAws_json1_1CopyImageCommandError = async (output, context) => {
|
|
|
926
910
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
927
911
|
default:
|
|
928
912
|
const parsedBody = parsedOutput.body;
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
$metadata,
|
|
913
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
914
|
+
output,
|
|
915
|
+
parsedBody,
|
|
916
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
917
|
+
errorCode,
|
|
935
918
|
});
|
|
936
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
937
919
|
}
|
|
938
920
|
};
|
|
939
921
|
const deserializeAws_json1_1CreateAppBlockCommand = async (output, context) => {
|
|
@@ -955,7 +937,6 @@ const deserializeAws_json1_1CreateAppBlockCommandError = async (output, context)
|
|
|
955
937
|
...output,
|
|
956
938
|
body: await parseBody(output.body, context),
|
|
957
939
|
};
|
|
958
|
-
let response;
|
|
959
940
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
960
941
|
switch (errorCode) {
|
|
961
942
|
case "ConcurrentModificationException":
|
|
@@ -972,14 +953,12 @@ const deserializeAws_json1_1CreateAppBlockCommandError = async (output, context)
|
|
|
972
953
|
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
973
954
|
default:
|
|
974
955
|
const parsedBody = parsedOutput.body;
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
$metadata,
|
|
956
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
957
|
+
output,
|
|
958
|
+
parsedBody,
|
|
959
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
960
|
+
errorCode,
|
|
981
961
|
});
|
|
982
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
983
962
|
}
|
|
984
963
|
};
|
|
985
964
|
const deserializeAws_json1_1CreateApplicationCommand = async (output, context) => {
|
|
@@ -1001,7 +980,6 @@ const deserializeAws_json1_1CreateApplicationCommandError = async (output, conte
|
|
|
1001
980
|
...output,
|
|
1002
981
|
body: await parseBody(output.body, context),
|
|
1003
982
|
};
|
|
1004
|
-
let response;
|
|
1005
983
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1006
984
|
switch (errorCode) {
|
|
1007
985
|
case "ConcurrentModificationException":
|
|
@@ -1021,14 +999,12 @@ const deserializeAws_json1_1CreateApplicationCommandError = async (output, conte
|
|
|
1021
999
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1022
1000
|
default:
|
|
1023
1001
|
const parsedBody = parsedOutput.body;
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
$metadata,
|
|
1002
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1003
|
+
output,
|
|
1004
|
+
parsedBody,
|
|
1005
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
1006
|
+
errorCode,
|
|
1030
1007
|
});
|
|
1031
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1032
1008
|
}
|
|
1033
1009
|
};
|
|
1034
1010
|
const deserializeAws_json1_1CreateDirectoryConfigCommand = async (output, context) => {
|
|
@@ -1050,7 +1026,6 @@ const deserializeAws_json1_1CreateDirectoryConfigCommandError = async (output, c
|
|
|
1050
1026
|
...output,
|
|
1051
1027
|
body: await parseBody(output.body, context),
|
|
1052
1028
|
};
|
|
1053
|
-
let response;
|
|
1054
1029
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1055
1030
|
switch (errorCode) {
|
|
1056
1031
|
case "InvalidAccountStatusException":
|
|
@@ -1073,14 +1048,12 @@ const deserializeAws_json1_1CreateDirectoryConfigCommandError = async (output, c
|
|
|
1073
1048
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1074
1049
|
default:
|
|
1075
1050
|
const parsedBody = parsedOutput.body;
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
$metadata,
|
|
1051
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1052
|
+
output,
|
|
1053
|
+
parsedBody,
|
|
1054
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
1055
|
+
errorCode,
|
|
1082
1056
|
});
|
|
1083
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1084
1057
|
}
|
|
1085
1058
|
};
|
|
1086
1059
|
const deserializeAws_json1_1CreateEntitlementCommand = async (output, context) => {
|
|
@@ -1102,7 +1075,6 @@ const deserializeAws_json1_1CreateEntitlementCommandError = async (output, conte
|
|
|
1102
1075
|
...output,
|
|
1103
1076
|
body: await parseBody(output.body, context),
|
|
1104
1077
|
};
|
|
1105
|
-
let response;
|
|
1106
1078
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1107
1079
|
switch (errorCode) {
|
|
1108
1080
|
case "EntitlementAlreadyExistsException":
|
|
@@ -1119,14 +1091,12 @@ const deserializeAws_json1_1CreateEntitlementCommandError = async (output, conte
|
|
|
1119
1091
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1120
1092
|
default:
|
|
1121
1093
|
const parsedBody = parsedOutput.body;
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
$metadata,
|
|
1094
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1095
|
+
output,
|
|
1096
|
+
parsedBody,
|
|
1097
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
1098
|
+
errorCode,
|
|
1128
1099
|
});
|
|
1129
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1130
1100
|
}
|
|
1131
1101
|
};
|
|
1132
1102
|
const deserializeAws_json1_1CreateFleetCommand = async (output, context) => {
|
|
@@ -1148,7 +1118,6 @@ const deserializeAws_json1_1CreateFleetCommandError = async (output, context) =>
|
|
|
1148
1118
|
...output,
|
|
1149
1119
|
body: await parseBody(output.body, context),
|
|
1150
1120
|
};
|
|
1151
|
-
let response;
|
|
1152
1121
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1153
1122
|
switch (errorCode) {
|
|
1154
1123
|
case "ConcurrentModificationException":
|
|
@@ -1186,14 +1155,12 @@ const deserializeAws_json1_1CreateFleetCommandError = async (output, context) =>
|
|
|
1186
1155
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1187
1156
|
default:
|
|
1188
1157
|
const parsedBody = parsedOutput.body;
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
$metadata,
|
|
1158
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1159
|
+
output,
|
|
1160
|
+
parsedBody,
|
|
1161
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
1162
|
+
errorCode,
|
|
1195
1163
|
});
|
|
1196
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1197
1164
|
}
|
|
1198
1165
|
};
|
|
1199
1166
|
const deserializeAws_json1_1CreateImageBuilderCommand = async (output, context) => {
|
|
@@ -1215,7 +1182,6 @@ const deserializeAws_json1_1CreateImageBuilderCommandError = async (output, cont
|
|
|
1215
1182
|
...output,
|
|
1216
1183
|
body: await parseBody(output.body, context),
|
|
1217
1184
|
};
|
|
1218
|
-
let response;
|
|
1219
1185
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1220
1186
|
switch (errorCode) {
|
|
1221
1187
|
case "ConcurrentModificationException":
|
|
@@ -1253,14 +1219,12 @@ const deserializeAws_json1_1CreateImageBuilderCommandError = async (output, cont
|
|
|
1253
1219
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1254
1220
|
default:
|
|
1255
1221
|
const parsedBody = parsedOutput.body;
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
$metadata,
|
|
1222
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1223
|
+
output,
|
|
1224
|
+
parsedBody,
|
|
1225
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
1226
|
+
errorCode,
|
|
1262
1227
|
});
|
|
1263
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1264
1228
|
}
|
|
1265
1229
|
};
|
|
1266
1230
|
const deserializeAws_json1_1CreateImageBuilderStreamingURLCommand = async (output, context) => {
|
|
@@ -1282,7 +1246,6 @@ const deserializeAws_json1_1CreateImageBuilderStreamingURLCommandError = async (
|
|
|
1282
1246
|
...output,
|
|
1283
1247
|
body: await parseBody(output.body, context),
|
|
1284
1248
|
};
|
|
1285
|
-
let response;
|
|
1286
1249
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1287
1250
|
switch (errorCode) {
|
|
1288
1251
|
case "OperationNotPermittedException":
|
|
@@ -1293,14 +1256,12 @@ const deserializeAws_json1_1CreateImageBuilderStreamingURLCommandError = async (
|
|
|
1293
1256
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1294
1257
|
default:
|
|
1295
1258
|
const parsedBody = parsedOutput.body;
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
$metadata,
|
|
1259
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1260
|
+
output,
|
|
1261
|
+
parsedBody,
|
|
1262
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
1263
|
+
errorCode,
|
|
1302
1264
|
});
|
|
1303
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1304
1265
|
}
|
|
1305
1266
|
};
|
|
1306
1267
|
const deserializeAws_json1_1CreateStackCommand = async (output, context) => {
|
|
@@ -1322,7 +1283,6 @@ const deserializeAws_json1_1CreateStackCommandError = async (output, context) =>
|
|
|
1322
1283
|
...output,
|
|
1323
1284
|
body: await parseBody(output.body, context),
|
|
1324
1285
|
};
|
|
1325
|
-
let response;
|
|
1326
1286
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1327
1287
|
switch (errorCode) {
|
|
1328
1288
|
case "ConcurrentModificationException":
|
|
@@ -1348,14 +1308,12 @@ const deserializeAws_json1_1CreateStackCommandError = async (output, context) =>
|
|
|
1348
1308
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1349
1309
|
default:
|
|
1350
1310
|
const parsedBody = parsedOutput.body;
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
$metadata,
|
|
1311
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1312
|
+
output,
|
|
1313
|
+
parsedBody,
|
|
1314
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
1315
|
+
errorCode,
|
|
1357
1316
|
});
|
|
1358
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1359
1317
|
}
|
|
1360
1318
|
};
|
|
1361
1319
|
const deserializeAws_json1_1CreateStreamingURLCommand = async (output, context) => {
|
|
@@ -1377,7 +1335,6 @@ const deserializeAws_json1_1CreateStreamingURLCommandError = async (output, cont
|
|
|
1377
1335
|
...output,
|
|
1378
1336
|
body: await parseBody(output.body, context),
|
|
1379
1337
|
};
|
|
1380
|
-
let response;
|
|
1381
1338
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1382
1339
|
switch (errorCode) {
|
|
1383
1340
|
case "InvalidParameterCombinationException":
|
|
@@ -1394,14 +1351,12 @@ const deserializeAws_json1_1CreateStreamingURLCommandError = async (output, cont
|
|
|
1394
1351
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1395
1352
|
default:
|
|
1396
1353
|
const parsedBody = parsedOutput.body;
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
$metadata,
|
|
1354
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1355
|
+
output,
|
|
1356
|
+
parsedBody,
|
|
1357
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
1358
|
+
errorCode,
|
|
1403
1359
|
});
|
|
1404
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1405
1360
|
}
|
|
1406
1361
|
};
|
|
1407
1362
|
const deserializeAws_json1_1CreateUpdatedImageCommand = async (output, context) => {
|
|
@@ -1423,7 +1378,6 @@ const deserializeAws_json1_1CreateUpdatedImageCommandError = async (output, cont
|
|
|
1423
1378
|
...output,
|
|
1424
1379
|
body: await parseBody(output.body, context),
|
|
1425
1380
|
};
|
|
1426
|
-
let response;
|
|
1427
1381
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1428
1382
|
switch (errorCode) {
|
|
1429
1383
|
case "ConcurrentModificationException":
|
|
@@ -1449,14 +1403,12 @@ const deserializeAws_json1_1CreateUpdatedImageCommandError = async (output, cont
|
|
|
1449
1403
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1450
1404
|
default:
|
|
1451
1405
|
const parsedBody = parsedOutput.body;
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
$metadata,
|
|
1406
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1407
|
+
output,
|
|
1408
|
+
parsedBody,
|
|
1409
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
1410
|
+
errorCode,
|
|
1458
1411
|
});
|
|
1459
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1460
1412
|
}
|
|
1461
1413
|
};
|
|
1462
1414
|
const deserializeAws_json1_1CreateUsageReportSubscriptionCommand = async (output, context) => {
|
|
@@ -1478,7 +1430,6 @@ const deserializeAws_json1_1CreateUsageReportSubscriptionCommandError = async (o
|
|
|
1478
1430
|
...output,
|
|
1479
1431
|
body: await parseBody(output.body, context),
|
|
1480
1432
|
};
|
|
1481
|
-
let response;
|
|
1482
1433
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1483
1434
|
switch (errorCode) {
|
|
1484
1435
|
case "InvalidAccountStatusException":
|
|
@@ -1492,14 +1443,12 @@ const deserializeAws_json1_1CreateUsageReportSubscriptionCommandError = async (o
|
|
|
1492
1443
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1493
1444
|
default:
|
|
1494
1445
|
const parsedBody = parsedOutput.body;
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
$metadata,
|
|
1446
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1447
|
+
output,
|
|
1448
|
+
parsedBody,
|
|
1449
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
1450
|
+
errorCode,
|
|
1501
1451
|
});
|
|
1502
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1503
1452
|
}
|
|
1504
1453
|
};
|
|
1505
1454
|
const deserializeAws_json1_1CreateUserCommand = async (output, context) => {
|
|
@@ -1521,7 +1470,6 @@ const deserializeAws_json1_1CreateUserCommandError = async (output, context) =>
|
|
|
1521
1470
|
...output,
|
|
1522
1471
|
body: await parseBody(output.body, context),
|
|
1523
1472
|
};
|
|
1524
|
-
let response;
|
|
1525
1473
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1526
1474
|
switch (errorCode) {
|
|
1527
1475
|
case "InvalidAccountStatusException":
|
|
@@ -1541,14 +1489,12 @@ const deserializeAws_json1_1CreateUserCommandError = async (output, context) =>
|
|
|
1541
1489
|
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1542
1490
|
default:
|
|
1543
1491
|
const parsedBody = parsedOutput.body;
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
$metadata,
|
|
1492
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1493
|
+
output,
|
|
1494
|
+
parsedBody,
|
|
1495
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
1496
|
+
errorCode,
|
|
1550
1497
|
});
|
|
1551
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1552
1498
|
}
|
|
1553
1499
|
};
|
|
1554
1500
|
const deserializeAws_json1_1DeleteAppBlockCommand = async (output, context) => {
|
|
@@ -1570,7 +1516,6 @@ const deserializeAws_json1_1DeleteAppBlockCommandError = async (output, context)
|
|
|
1570
1516
|
...output,
|
|
1571
1517
|
body: await parseBody(output.body, context),
|
|
1572
1518
|
};
|
|
1573
|
-
let response;
|
|
1574
1519
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1575
1520
|
switch (errorCode) {
|
|
1576
1521
|
case "ConcurrentModificationException":
|
|
@@ -1584,14 +1529,12 @@ const deserializeAws_json1_1DeleteAppBlockCommandError = async (output, context)
|
|
|
1584
1529
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1585
1530
|
default:
|
|
1586
1531
|
const parsedBody = parsedOutput.body;
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
$metadata,
|
|
1532
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1533
|
+
output,
|
|
1534
|
+
parsedBody,
|
|
1535
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
1536
|
+
errorCode,
|
|
1593
1537
|
});
|
|
1594
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1595
1538
|
}
|
|
1596
1539
|
};
|
|
1597
1540
|
const deserializeAws_json1_1DeleteApplicationCommand = async (output, context) => {
|
|
@@ -1613,7 +1556,6 @@ const deserializeAws_json1_1DeleteApplicationCommandError = async (output, conte
|
|
|
1613
1556
|
...output,
|
|
1614
1557
|
body: await parseBody(output.body, context),
|
|
1615
1558
|
};
|
|
1616
|
-
let response;
|
|
1617
1559
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1618
1560
|
switch (errorCode) {
|
|
1619
1561
|
case "ConcurrentModificationException":
|
|
@@ -1630,14 +1572,12 @@ const deserializeAws_json1_1DeleteApplicationCommandError = async (output, conte
|
|
|
1630
1572
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1631
1573
|
default:
|
|
1632
1574
|
const parsedBody = parsedOutput.body;
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
$metadata,
|
|
1575
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1576
|
+
output,
|
|
1577
|
+
parsedBody,
|
|
1578
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
1579
|
+
errorCode,
|
|
1639
1580
|
});
|
|
1640
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1641
1581
|
}
|
|
1642
1582
|
};
|
|
1643
1583
|
const deserializeAws_json1_1DeleteDirectoryConfigCommand = async (output, context) => {
|
|
@@ -1659,7 +1599,6 @@ const deserializeAws_json1_1DeleteDirectoryConfigCommandError = async (output, c
|
|
|
1659
1599
|
...output,
|
|
1660
1600
|
body: await parseBody(output.body, context),
|
|
1661
1601
|
};
|
|
1662
|
-
let response;
|
|
1663
1602
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1664
1603
|
switch (errorCode) {
|
|
1665
1604
|
case "ResourceInUseException":
|
|
@@ -1670,14 +1609,12 @@ const deserializeAws_json1_1DeleteDirectoryConfigCommandError = async (output, c
|
|
|
1670
1609
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1671
1610
|
default:
|
|
1672
1611
|
const parsedBody = parsedOutput.body;
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
$metadata,
|
|
1612
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1613
|
+
output,
|
|
1614
|
+
parsedBody,
|
|
1615
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
1616
|
+
errorCode,
|
|
1679
1617
|
});
|
|
1680
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1681
1618
|
}
|
|
1682
1619
|
};
|
|
1683
1620
|
const deserializeAws_json1_1DeleteEntitlementCommand = async (output, context) => {
|
|
@@ -1699,7 +1636,6 @@ const deserializeAws_json1_1DeleteEntitlementCommandError = async (output, conte
|
|
|
1699
1636
|
...output,
|
|
1700
1637
|
body: await parseBody(output.body, context),
|
|
1701
1638
|
};
|
|
1702
|
-
let response;
|
|
1703
1639
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1704
1640
|
switch (errorCode) {
|
|
1705
1641
|
case "ConcurrentModificationException":
|
|
@@ -1716,14 +1652,12 @@ const deserializeAws_json1_1DeleteEntitlementCommandError = async (output, conte
|
|
|
1716
1652
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1717
1653
|
default:
|
|
1718
1654
|
const parsedBody = parsedOutput.body;
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
$metadata,
|
|
1655
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1656
|
+
output,
|
|
1657
|
+
parsedBody,
|
|
1658
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
1659
|
+
errorCode,
|
|
1725
1660
|
});
|
|
1726
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1727
1661
|
}
|
|
1728
1662
|
};
|
|
1729
1663
|
const deserializeAws_json1_1DeleteFleetCommand = async (output, context) => {
|
|
@@ -1745,7 +1679,6 @@ const deserializeAws_json1_1DeleteFleetCommandError = async (output, context) =>
|
|
|
1745
1679
|
...output,
|
|
1746
1680
|
body: await parseBody(output.body, context),
|
|
1747
1681
|
};
|
|
1748
|
-
let response;
|
|
1749
1682
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1750
1683
|
switch (errorCode) {
|
|
1751
1684
|
case "ConcurrentModificationException":
|
|
@@ -1759,14 +1692,12 @@ const deserializeAws_json1_1DeleteFleetCommandError = async (output, context) =>
|
|
|
1759
1692
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1760
1693
|
default:
|
|
1761
1694
|
const parsedBody = parsedOutput.body;
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
$metadata,
|
|
1695
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1696
|
+
output,
|
|
1697
|
+
parsedBody,
|
|
1698
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
1699
|
+
errorCode,
|
|
1768
1700
|
});
|
|
1769
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1770
1701
|
}
|
|
1771
1702
|
};
|
|
1772
1703
|
const deserializeAws_json1_1DeleteImageCommand = async (output, context) => {
|
|
@@ -1788,7 +1719,6 @@ const deserializeAws_json1_1DeleteImageCommandError = async (output, context) =>
|
|
|
1788
1719
|
...output,
|
|
1789
1720
|
body: await parseBody(output.body, context),
|
|
1790
1721
|
};
|
|
1791
|
-
let response;
|
|
1792
1722
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1793
1723
|
switch (errorCode) {
|
|
1794
1724
|
case "ConcurrentModificationException":
|
|
@@ -1805,14 +1735,12 @@ const deserializeAws_json1_1DeleteImageCommandError = async (output, context) =>
|
|
|
1805
1735
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1806
1736
|
default:
|
|
1807
1737
|
const parsedBody = parsedOutput.body;
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
$metadata,
|
|
1738
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1739
|
+
output,
|
|
1740
|
+
parsedBody,
|
|
1741
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
1742
|
+
errorCode,
|
|
1814
1743
|
});
|
|
1815
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1816
1744
|
}
|
|
1817
1745
|
};
|
|
1818
1746
|
const deserializeAws_json1_1DeleteImageBuilderCommand = async (output, context) => {
|
|
@@ -1834,7 +1762,6 @@ const deserializeAws_json1_1DeleteImageBuilderCommandError = async (output, cont
|
|
|
1834
1762
|
...output,
|
|
1835
1763
|
body: await parseBody(output.body, context),
|
|
1836
1764
|
};
|
|
1837
|
-
let response;
|
|
1838
1765
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1839
1766
|
switch (errorCode) {
|
|
1840
1767
|
case "ConcurrentModificationException":
|
|
@@ -1848,14 +1775,12 @@ const deserializeAws_json1_1DeleteImageBuilderCommandError = async (output, cont
|
|
|
1848
1775
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1849
1776
|
default:
|
|
1850
1777
|
const parsedBody = parsedOutput.body;
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
$metadata,
|
|
1778
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1779
|
+
output,
|
|
1780
|
+
parsedBody,
|
|
1781
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
1782
|
+
errorCode,
|
|
1857
1783
|
});
|
|
1858
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1859
1784
|
}
|
|
1860
1785
|
};
|
|
1861
1786
|
const deserializeAws_json1_1DeleteImagePermissionsCommand = async (output, context) => {
|
|
@@ -1877,7 +1802,6 @@ const deserializeAws_json1_1DeleteImagePermissionsCommandError = async (output,
|
|
|
1877
1802
|
...output,
|
|
1878
1803
|
body: await parseBody(output.body, context),
|
|
1879
1804
|
};
|
|
1880
|
-
let response;
|
|
1881
1805
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1882
1806
|
switch (errorCode) {
|
|
1883
1807
|
case "ResourceNotAvailableException":
|
|
@@ -1888,14 +1812,12 @@ const deserializeAws_json1_1DeleteImagePermissionsCommandError = async (output,
|
|
|
1888
1812
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1889
1813
|
default:
|
|
1890
1814
|
const parsedBody = parsedOutput.body;
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
$metadata,
|
|
1815
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1816
|
+
output,
|
|
1817
|
+
parsedBody,
|
|
1818
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
1819
|
+
errorCode,
|
|
1897
1820
|
});
|
|
1898
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1899
1821
|
}
|
|
1900
1822
|
};
|
|
1901
1823
|
const deserializeAws_json1_1DeleteStackCommand = async (output, context) => {
|
|
@@ -1917,7 +1839,6 @@ const deserializeAws_json1_1DeleteStackCommandError = async (output, context) =>
|
|
|
1917
1839
|
...output,
|
|
1918
1840
|
body: await parseBody(output.body, context),
|
|
1919
1841
|
};
|
|
1920
|
-
let response;
|
|
1921
1842
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1922
1843
|
switch (errorCode) {
|
|
1923
1844
|
case "ConcurrentModificationException":
|
|
@@ -1934,14 +1855,12 @@ const deserializeAws_json1_1DeleteStackCommandError = async (output, context) =>
|
|
|
1934
1855
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1935
1856
|
default:
|
|
1936
1857
|
const parsedBody = parsedOutput.body;
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
$metadata,
|
|
1858
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1859
|
+
output,
|
|
1860
|
+
parsedBody,
|
|
1861
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
1862
|
+
errorCode,
|
|
1943
1863
|
});
|
|
1944
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1945
1864
|
}
|
|
1946
1865
|
};
|
|
1947
1866
|
const deserializeAws_json1_1DeleteUsageReportSubscriptionCommand = async (output, context) => {
|
|
@@ -1963,7 +1882,6 @@ const deserializeAws_json1_1DeleteUsageReportSubscriptionCommandError = async (o
|
|
|
1963
1882
|
...output,
|
|
1964
1883
|
body: await parseBody(output.body, context),
|
|
1965
1884
|
};
|
|
1966
|
-
let response;
|
|
1967
1885
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1968
1886
|
switch (errorCode) {
|
|
1969
1887
|
case "InvalidAccountStatusException":
|
|
@@ -1974,14 +1892,12 @@ const deserializeAws_json1_1DeleteUsageReportSubscriptionCommandError = async (o
|
|
|
1974
1892
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1975
1893
|
default:
|
|
1976
1894
|
const parsedBody = parsedOutput.body;
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
$metadata,
|
|
1895
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1896
|
+
output,
|
|
1897
|
+
parsedBody,
|
|
1898
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
1899
|
+
errorCode,
|
|
1983
1900
|
});
|
|
1984
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1985
1901
|
}
|
|
1986
1902
|
};
|
|
1987
1903
|
const deserializeAws_json1_1DeleteUserCommand = async (output, context) => {
|
|
@@ -2003,7 +1919,6 @@ const deserializeAws_json1_1DeleteUserCommandError = async (output, context) =>
|
|
|
2003
1919
|
...output,
|
|
2004
1920
|
body: await parseBody(output.body, context),
|
|
2005
1921
|
};
|
|
2006
|
-
let response;
|
|
2007
1922
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2008
1923
|
switch (errorCode) {
|
|
2009
1924
|
case "ResourceNotFoundException":
|
|
@@ -2011,14 +1926,12 @@ const deserializeAws_json1_1DeleteUserCommandError = async (output, context) =>
|
|
|
2011
1926
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2012
1927
|
default:
|
|
2013
1928
|
const parsedBody = parsedOutput.body;
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
$metadata,
|
|
1929
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1930
|
+
output,
|
|
1931
|
+
parsedBody,
|
|
1932
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
1933
|
+
errorCode,
|
|
2020
1934
|
});
|
|
2021
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2022
1935
|
}
|
|
2023
1936
|
};
|
|
2024
1937
|
const deserializeAws_json1_1DescribeAppBlocksCommand = async (output, context) => {
|
|
@@ -2040,7 +1953,6 @@ const deserializeAws_json1_1DescribeAppBlocksCommandError = async (output, conte
|
|
|
2040
1953
|
...output,
|
|
2041
1954
|
body: await parseBody(output.body, context),
|
|
2042
1955
|
};
|
|
2043
|
-
let response;
|
|
2044
1956
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2045
1957
|
switch (errorCode) {
|
|
2046
1958
|
case "OperationNotPermittedException":
|
|
@@ -2051,14 +1963,12 @@ const deserializeAws_json1_1DescribeAppBlocksCommandError = async (output, conte
|
|
|
2051
1963
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2052
1964
|
default:
|
|
2053
1965
|
const parsedBody = parsedOutput.body;
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
$metadata,
|
|
1966
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1967
|
+
output,
|
|
1968
|
+
parsedBody,
|
|
1969
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
1970
|
+
errorCode,
|
|
2060
1971
|
});
|
|
2061
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2062
1972
|
}
|
|
2063
1973
|
};
|
|
2064
1974
|
const deserializeAws_json1_1DescribeApplicationFleetAssociationsCommand = async (output, context) => {
|
|
@@ -2080,7 +1990,6 @@ const deserializeAws_json1_1DescribeApplicationFleetAssociationsCommandError = a
|
|
|
2080
1990
|
...output,
|
|
2081
1991
|
body: await parseBody(output.body, context),
|
|
2082
1992
|
};
|
|
2083
|
-
let response;
|
|
2084
1993
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2085
1994
|
switch (errorCode) {
|
|
2086
1995
|
case "InvalidParameterCombinationException":
|
|
@@ -2091,14 +2000,12 @@ const deserializeAws_json1_1DescribeApplicationFleetAssociationsCommandError = a
|
|
|
2091
2000
|
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
2092
2001
|
default:
|
|
2093
2002
|
const parsedBody = parsedOutput.body;
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
$metadata,
|
|
2003
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2004
|
+
output,
|
|
2005
|
+
parsedBody,
|
|
2006
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
2007
|
+
errorCode,
|
|
2100
2008
|
});
|
|
2101
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2102
2009
|
}
|
|
2103
2010
|
};
|
|
2104
2011
|
const deserializeAws_json1_1DescribeApplicationsCommand = async (output, context) => {
|
|
@@ -2120,7 +2027,6 @@ const deserializeAws_json1_1DescribeApplicationsCommandError = async (output, co
|
|
|
2120
2027
|
...output,
|
|
2121
2028
|
body: await parseBody(output.body, context),
|
|
2122
2029
|
};
|
|
2123
|
-
let response;
|
|
2124
2030
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2125
2031
|
switch (errorCode) {
|
|
2126
2032
|
case "OperationNotPermittedException":
|
|
@@ -2131,14 +2037,12 @@ const deserializeAws_json1_1DescribeApplicationsCommandError = async (output, co
|
|
|
2131
2037
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2132
2038
|
default:
|
|
2133
2039
|
const parsedBody = parsedOutput.body;
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
$metadata,
|
|
2040
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2041
|
+
output,
|
|
2042
|
+
parsedBody,
|
|
2043
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
2044
|
+
errorCode,
|
|
2140
2045
|
});
|
|
2141
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2142
2046
|
}
|
|
2143
2047
|
};
|
|
2144
2048
|
const deserializeAws_json1_1DescribeDirectoryConfigsCommand = async (output, context) => {
|
|
@@ -2160,7 +2064,6 @@ const deserializeAws_json1_1DescribeDirectoryConfigsCommandError = async (output
|
|
|
2160
2064
|
...output,
|
|
2161
2065
|
body: await parseBody(output.body, context),
|
|
2162
2066
|
};
|
|
2163
|
-
let response;
|
|
2164
2067
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2165
2068
|
switch (errorCode) {
|
|
2166
2069
|
case "ResourceNotFoundException":
|
|
@@ -2168,14 +2071,12 @@ const deserializeAws_json1_1DescribeDirectoryConfigsCommandError = async (output
|
|
|
2168
2071
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2169
2072
|
default:
|
|
2170
2073
|
const parsedBody = parsedOutput.body;
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
$metadata,
|
|
2074
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2075
|
+
output,
|
|
2076
|
+
parsedBody,
|
|
2077
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
2078
|
+
errorCode,
|
|
2177
2079
|
});
|
|
2178
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2179
2080
|
}
|
|
2180
2081
|
};
|
|
2181
2082
|
const deserializeAws_json1_1DescribeEntitlementsCommand = async (output, context) => {
|
|
@@ -2197,7 +2098,6 @@ const deserializeAws_json1_1DescribeEntitlementsCommandError = async (output, co
|
|
|
2197
2098
|
...output,
|
|
2198
2099
|
body: await parseBody(output.body, context),
|
|
2199
2100
|
};
|
|
2200
|
-
let response;
|
|
2201
2101
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2202
2102
|
switch (errorCode) {
|
|
2203
2103
|
case "EntitlementNotFoundException":
|
|
@@ -2211,14 +2111,12 @@ const deserializeAws_json1_1DescribeEntitlementsCommandError = async (output, co
|
|
|
2211
2111
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2212
2112
|
default:
|
|
2213
2113
|
const parsedBody = parsedOutput.body;
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
$metadata,
|
|
2114
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2115
|
+
output,
|
|
2116
|
+
parsedBody,
|
|
2117
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
2118
|
+
errorCode,
|
|
2220
2119
|
});
|
|
2221
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2222
2120
|
}
|
|
2223
2121
|
};
|
|
2224
2122
|
const deserializeAws_json1_1DescribeFleetsCommand = async (output, context) => {
|
|
@@ -2240,7 +2138,6 @@ const deserializeAws_json1_1DescribeFleetsCommandError = async (output, context)
|
|
|
2240
2138
|
...output,
|
|
2241
2139
|
body: await parseBody(output.body, context),
|
|
2242
2140
|
};
|
|
2243
|
-
let response;
|
|
2244
2141
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2245
2142
|
switch (errorCode) {
|
|
2246
2143
|
case "ResourceNotFoundException":
|
|
@@ -2248,14 +2145,12 @@ const deserializeAws_json1_1DescribeFleetsCommandError = async (output, context)
|
|
|
2248
2145
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2249
2146
|
default:
|
|
2250
2147
|
const parsedBody = parsedOutput.body;
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
$metadata,
|
|
2148
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2149
|
+
output,
|
|
2150
|
+
parsedBody,
|
|
2151
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
2152
|
+
errorCode,
|
|
2257
2153
|
});
|
|
2258
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2259
2154
|
}
|
|
2260
2155
|
};
|
|
2261
2156
|
const deserializeAws_json1_1DescribeImageBuildersCommand = async (output, context) => {
|
|
@@ -2277,7 +2172,6 @@ const deserializeAws_json1_1DescribeImageBuildersCommandError = async (output, c
|
|
|
2277
2172
|
...output,
|
|
2278
2173
|
body: await parseBody(output.body, context),
|
|
2279
2174
|
};
|
|
2280
|
-
let response;
|
|
2281
2175
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2282
2176
|
switch (errorCode) {
|
|
2283
2177
|
case "ResourceNotFoundException":
|
|
@@ -2285,14 +2179,12 @@ const deserializeAws_json1_1DescribeImageBuildersCommandError = async (output, c
|
|
|
2285
2179
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2286
2180
|
default:
|
|
2287
2181
|
const parsedBody = parsedOutput.body;
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
$metadata,
|
|
2182
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2183
|
+
output,
|
|
2184
|
+
parsedBody,
|
|
2185
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
2186
|
+
errorCode,
|
|
2294
2187
|
});
|
|
2295
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2296
2188
|
}
|
|
2297
2189
|
};
|
|
2298
2190
|
const deserializeAws_json1_1DescribeImagePermissionsCommand = async (output, context) => {
|
|
@@ -2314,7 +2206,6 @@ const deserializeAws_json1_1DescribeImagePermissionsCommandError = async (output
|
|
|
2314
2206
|
...output,
|
|
2315
2207
|
body: await parseBody(output.body, context),
|
|
2316
2208
|
};
|
|
2317
|
-
let response;
|
|
2318
2209
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2319
2210
|
switch (errorCode) {
|
|
2320
2211
|
case "ResourceNotFoundException":
|
|
@@ -2322,14 +2213,12 @@ const deserializeAws_json1_1DescribeImagePermissionsCommandError = async (output
|
|
|
2322
2213
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2323
2214
|
default:
|
|
2324
2215
|
const parsedBody = parsedOutput.body;
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
$metadata,
|
|
2216
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2217
|
+
output,
|
|
2218
|
+
parsedBody,
|
|
2219
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
2220
|
+
errorCode,
|
|
2331
2221
|
});
|
|
2332
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2333
2222
|
}
|
|
2334
2223
|
};
|
|
2335
2224
|
const deserializeAws_json1_1DescribeImagesCommand = async (output, context) => {
|
|
@@ -2351,7 +2240,6 @@ const deserializeAws_json1_1DescribeImagesCommandError = async (output, context)
|
|
|
2351
2240
|
...output,
|
|
2352
2241
|
body: await parseBody(output.body, context),
|
|
2353
2242
|
};
|
|
2354
|
-
let response;
|
|
2355
2243
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2356
2244
|
switch (errorCode) {
|
|
2357
2245
|
case "InvalidParameterCombinationException":
|
|
@@ -2362,14 +2250,12 @@ const deserializeAws_json1_1DescribeImagesCommandError = async (output, context)
|
|
|
2362
2250
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2363
2251
|
default:
|
|
2364
2252
|
const parsedBody = parsedOutput.body;
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
$metadata,
|
|
2253
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2254
|
+
output,
|
|
2255
|
+
parsedBody,
|
|
2256
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
2257
|
+
errorCode,
|
|
2371
2258
|
});
|
|
2372
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2373
2259
|
}
|
|
2374
2260
|
};
|
|
2375
2261
|
const deserializeAws_json1_1DescribeSessionsCommand = async (output, context) => {
|
|
@@ -2391,7 +2277,6 @@ const deserializeAws_json1_1DescribeSessionsCommandError = async (output, contex
|
|
|
2391
2277
|
...output,
|
|
2392
2278
|
body: await parseBody(output.body, context),
|
|
2393
2279
|
};
|
|
2394
|
-
let response;
|
|
2395
2280
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2396
2281
|
switch (errorCode) {
|
|
2397
2282
|
case "InvalidParameterCombinationException":
|
|
@@ -2399,14 +2284,12 @@ const deserializeAws_json1_1DescribeSessionsCommandError = async (output, contex
|
|
|
2399
2284
|
throw await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context);
|
|
2400
2285
|
default:
|
|
2401
2286
|
const parsedBody = parsedOutput.body;
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
$metadata,
|
|
2287
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2288
|
+
output,
|
|
2289
|
+
parsedBody,
|
|
2290
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
2291
|
+
errorCode,
|
|
2408
2292
|
});
|
|
2409
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2410
2293
|
}
|
|
2411
2294
|
};
|
|
2412
2295
|
const deserializeAws_json1_1DescribeStacksCommand = async (output, context) => {
|
|
@@ -2428,7 +2311,6 @@ const deserializeAws_json1_1DescribeStacksCommandError = async (output, context)
|
|
|
2428
2311
|
...output,
|
|
2429
2312
|
body: await parseBody(output.body, context),
|
|
2430
2313
|
};
|
|
2431
|
-
let response;
|
|
2432
2314
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2433
2315
|
switch (errorCode) {
|
|
2434
2316
|
case "ResourceNotFoundException":
|
|
@@ -2436,14 +2318,12 @@ const deserializeAws_json1_1DescribeStacksCommandError = async (output, context)
|
|
|
2436
2318
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2437
2319
|
default:
|
|
2438
2320
|
const parsedBody = parsedOutput.body;
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
$metadata,
|
|
2321
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2322
|
+
output,
|
|
2323
|
+
parsedBody,
|
|
2324
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
2325
|
+
errorCode,
|
|
2445
2326
|
});
|
|
2446
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2447
2327
|
}
|
|
2448
2328
|
};
|
|
2449
2329
|
const deserializeAws_json1_1DescribeUsageReportSubscriptionsCommand = async (output, context) => {
|
|
@@ -2465,7 +2345,6 @@ const deserializeAws_json1_1DescribeUsageReportSubscriptionsCommandError = async
|
|
|
2465
2345
|
...output,
|
|
2466
2346
|
body: await parseBody(output.body, context),
|
|
2467
2347
|
};
|
|
2468
|
-
let response;
|
|
2469
2348
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2470
2349
|
switch (errorCode) {
|
|
2471
2350
|
case "InvalidAccountStatusException":
|
|
@@ -2476,14 +2355,12 @@ const deserializeAws_json1_1DescribeUsageReportSubscriptionsCommandError = async
|
|
|
2476
2355
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2477
2356
|
default:
|
|
2478
2357
|
const parsedBody = parsedOutput.body;
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
$metadata,
|
|
2358
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2359
|
+
output,
|
|
2360
|
+
parsedBody,
|
|
2361
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
2362
|
+
errorCode,
|
|
2485
2363
|
});
|
|
2486
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2487
2364
|
}
|
|
2488
2365
|
};
|
|
2489
2366
|
const deserializeAws_json1_1DescribeUsersCommand = async (output, context) => {
|
|
@@ -2505,7 +2382,6 @@ const deserializeAws_json1_1DescribeUsersCommandError = async (output, context)
|
|
|
2505
2382
|
...output,
|
|
2506
2383
|
body: await parseBody(output.body, context),
|
|
2507
2384
|
};
|
|
2508
|
-
let response;
|
|
2509
2385
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2510
2386
|
switch (errorCode) {
|
|
2511
2387
|
case "InvalidParameterCombinationException":
|
|
@@ -2519,14 +2395,12 @@ const deserializeAws_json1_1DescribeUsersCommandError = async (output, context)
|
|
|
2519
2395
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2520
2396
|
default:
|
|
2521
2397
|
const parsedBody = parsedOutput.body;
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
$metadata,
|
|
2398
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2399
|
+
output,
|
|
2400
|
+
parsedBody,
|
|
2401
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
2402
|
+
errorCode,
|
|
2528
2403
|
});
|
|
2529
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2530
2404
|
}
|
|
2531
2405
|
};
|
|
2532
2406
|
const deserializeAws_json1_1DescribeUserStackAssociationsCommand = async (output, context) => {
|
|
@@ -2548,7 +2422,6 @@ const deserializeAws_json1_1DescribeUserStackAssociationsCommandError = async (o
|
|
|
2548
2422
|
...output,
|
|
2549
2423
|
body: await parseBody(output.body, context),
|
|
2550
2424
|
};
|
|
2551
|
-
let response;
|
|
2552
2425
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2553
2426
|
switch (errorCode) {
|
|
2554
2427
|
case "InvalidParameterCombinationException":
|
|
@@ -2559,14 +2432,12 @@ const deserializeAws_json1_1DescribeUserStackAssociationsCommandError = async (o
|
|
|
2559
2432
|
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
2560
2433
|
default:
|
|
2561
2434
|
const parsedBody = parsedOutput.body;
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
$metadata,
|
|
2435
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2436
|
+
output,
|
|
2437
|
+
parsedBody,
|
|
2438
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
2439
|
+
errorCode,
|
|
2568
2440
|
});
|
|
2569
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2570
2441
|
}
|
|
2571
2442
|
};
|
|
2572
2443
|
const deserializeAws_json1_1DisableUserCommand = async (output, context) => {
|
|
@@ -2588,7 +2459,6 @@ const deserializeAws_json1_1DisableUserCommandError = async (output, context) =>
|
|
|
2588
2459
|
...output,
|
|
2589
2460
|
body: await parseBody(output.body, context),
|
|
2590
2461
|
};
|
|
2591
|
-
let response;
|
|
2592
2462
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2593
2463
|
switch (errorCode) {
|
|
2594
2464
|
case "ResourceNotFoundException":
|
|
@@ -2596,14 +2466,12 @@ const deserializeAws_json1_1DisableUserCommandError = async (output, context) =>
|
|
|
2596
2466
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2597
2467
|
default:
|
|
2598
2468
|
const parsedBody = parsedOutput.body;
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
$metadata,
|
|
2469
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2470
|
+
output,
|
|
2471
|
+
parsedBody,
|
|
2472
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
2473
|
+
errorCode,
|
|
2605
2474
|
});
|
|
2606
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2607
2475
|
}
|
|
2608
2476
|
};
|
|
2609
2477
|
const deserializeAws_json1_1DisassociateApplicationFleetCommand = async (output, context) => {
|
|
@@ -2625,7 +2493,6 @@ const deserializeAws_json1_1DisassociateApplicationFleetCommandError = async (ou
|
|
|
2625
2493
|
...output,
|
|
2626
2494
|
body: await parseBody(output.body, context),
|
|
2627
2495
|
};
|
|
2628
|
-
let response;
|
|
2629
2496
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2630
2497
|
switch (errorCode) {
|
|
2631
2498
|
case "ConcurrentModificationException":
|
|
@@ -2639,14 +2506,12 @@ const deserializeAws_json1_1DisassociateApplicationFleetCommandError = async (ou
|
|
|
2639
2506
|
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
2640
2507
|
default:
|
|
2641
2508
|
const parsedBody = parsedOutput.body;
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
$metadata,
|
|
2509
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2510
|
+
output,
|
|
2511
|
+
parsedBody,
|
|
2512
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
2513
|
+
errorCode,
|
|
2648
2514
|
});
|
|
2649
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2650
2515
|
}
|
|
2651
2516
|
};
|
|
2652
2517
|
const deserializeAws_json1_1DisassociateApplicationFromEntitlementCommand = async (output, context) => {
|
|
@@ -2668,7 +2533,6 @@ const deserializeAws_json1_1DisassociateApplicationFromEntitlementCommandError =
|
|
|
2668
2533
|
...output,
|
|
2669
2534
|
body: await parseBody(output.body, context),
|
|
2670
2535
|
};
|
|
2671
|
-
let response;
|
|
2672
2536
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2673
2537
|
switch (errorCode) {
|
|
2674
2538
|
case "EntitlementNotFoundException":
|
|
@@ -2682,14 +2546,12 @@ const deserializeAws_json1_1DisassociateApplicationFromEntitlementCommandError =
|
|
|
2682
2546
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2683
2547
|
default:
|
|
2684
2548
|
const parsedBody = parsedOutput.body;
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
$metadata,
|
|
2549
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2550
|
+
output,
|
|
2551
|
+
parsedBody,
|
|
2552
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
2553
|
+
errorCode,
|
|
2691
2554
|
});
|
|
2692
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2693
2555
|
}
|
|
2694
2556
|
};
|
|
2695
2557
|
const deserializeAws_json1_1DisassociateFleetCommand = async (output, context) => {
|
|
@@ -2711,7 +2573,6 @@ const deserializeAws_json1_1DisassociateFleetCommandError = async (output, conte
|
|
|
2711
2573
|
...output,
|
|
2712
2574
|
body: await parseBody(output.body, context),
|
|
2713
2575
|
};
|
|
2714
|
-
let response;
|
|
2715
2576
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2716
2577
|
switch (errorCode) {
|
|
2717
2578
|
case "ConcurrentModificationException":
|
|
@@ -2728,14 +2589,12 @@ const deserializeAws_json1_1DisassociateFleetCommandError = async (output, conte
|
|
|
2728
2589
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2729
2590
|
default:
|
|
2730
2591
|
const parsedBody = parsedOutput.body;
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
$metadata,
|
|
2592
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2593
|
+
output,
|
|
2594
|
+
parsedBody,
|
|
2595
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
2596
|
+
errorCode,
|
|
2737
2597
|
});
|
|
2738
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2739
2598
|
}
|
|
2740
2599
|
};
|
|
2741
2600
|
const deserializeAws_json1_1EnableUserCommand = async (output, context) => {
|
|
@@ -2757,7 +2616,6 @@ const deserializeAws_json1_1EnableUserCommandError = async (output, context) =>
|
|
|
2757
2616
|
...output,
|
|
2758
2617
|
body: await parseBody(output.body, context),
|
|
2759
2618
|
};
|
|
2760
|
-
let response;
|
|
2761
2619
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2762
2620
|
switch (errorCode) {
|
|
2763
2621
|
case "InvalidAccountStatusException":
|
|
@@ -2768,14 +2626,12 @@ const deserializeAws_json1_1EnableUserCommandError = async (output, context) =>
|
|
|
2768
2626
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2769
2627
|
default:
|
|
2770
2628
|
const parsedBody = parsedOutput.body;
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
$metadata,
|
|
2629
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2630
|
+
output,
|
|
2631
|
+
parsedBody,
|
|
2632
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
2633
|
+
errorCode,
|
|
2777
2634
|
});
|
|
2778
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2779
2635
|
}
|
|
2780
2636
|
};
|
|
2781
2637
|
const deserializeAws_json1_1ExpireSessionCommand = async (output, context) => {
|
|
@@ -2797,20 +2653,14 @@ const deserializeAws_json1_1ExpireSessionCommandError = async (output, context)
|
|
|
2797
2653
|
...output,
|
|
2798
2654
|
body: await parseBody(output.body, context),
|
|
2799
2655
|
};
|
|
2800
|
-
let response;
|
|
2801
2656
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
$fault: "client",
|
|
2810
|
-
$metadata,
|
|
2811
|
-
});
|
|
2812
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2813
|
-
}
|
|
2657
|
+
const parsedBody = parsedOutput.body;
|
|
2658
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2659
|
+
output,
|
|
2660
|
+
parsedBody,
|
|
2661
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
2662
|
+
errorCode,
|
|
2663
|
+
});
|
|
2814
2664
|
};
|
|
2815
2665
|
const deserializeAws_json1_1ListAssociatedFleetsCommand = async (output, context) => {
|
|
2816
2666
|
if (output.statusCode >= 300) {
|
|
@@ -2831,20 +2681,14 @@ const deserializeAws_json1_1ListAssociatedFleetsCommandError = async (output, co
|
|
|
2831
2681
|
...output,
|
|
2832
2682
|
body: await parseBody(output.body, context),
|
|
2833
2683
|
};
|
|
2834
|
-
let response;
|
|
2835
2684
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
$fault: "client",
|
|
2844
|
-
$metadata,
|
|
2845
|
-
});
|
|
2846
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2847
|
-
}
|
|
2685
|
+
const parsedBody = parsedOutput.body;
|
|
2686
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2687
|
+
output,
|
|
2688
|
+
parsedBody,
|
|
2689
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
2690
|
+
errorCode,
|
|
2691
|
+
});
|
|
2848
2692
|
};
|
|
2849
2693
|
const deserializeAws_json1_1ListAssociatedStacksCommand = async (output, context) => {
|
|
2850
2694
|
if (output.statusCode >= 300) {
|
|
@@ -2865,20 +2709,14 @@ const deserializeAws_json1_1ListAssociatedStacksCommandError = async (output, co
|
|
|
2865
2709
|
...output,
|
|
2866
2710
|
body: await parseBody(output.body, context),
|
|
2867
2711
|
};
|
|
2868
|
-
let response;
|
|
2869
2712
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
$fault: "client",
|
|
2878
|
-
$metadata,
|
|
2879
|
-
});
|
|
2880
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2881
|
-
}
|
|
2713
|
+
const parsedBody = parsedOutput.body;
|
|
2714
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2715
|
+
output,
|
|
2716
|
+
parsedBody,
|
|
2717
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
2718
|
+
errorCode,
|
|
2719
|
+
});
|
|
2882
2720
|
};
|
|
2883
2721
|
const deserializeAws_json1_1ListEntitledApplicationsCommand = async (output, context) => {
|
|
2884
2722
|
if (output.statusCode >= 300) {
|
|
@@ -2899,7 +2737,6 @@ const deserializeAws_json1_1ListEntitledApplicationsCommandError = async (output
|
|
|
2899
2737
|
...output,
|
|
2900
2738
|
body: await parseBody(output.body, context),
|
|
2901
2739
|
};
|
|
2902
|
-
let response;
|
|
2903
2740
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2904
2741
|
switch (errorCode) {
|
|
2905
2742
|
case "EntitlementNotFoundException":
|
|
@@ -2913,14 +2750,12 @@ const deserializeAws_json1_1ListEntitledApplicationsCommandError = async (output
|
|
|
2913
2750
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2914
2751
|
default:
|
|
2915
2752
|
const parsedBody = parsedOutput.body;
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
$metadata,
|
|
2753
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2754
|
+
output,
|
|
2755
|
+
parsedBody,
|
|
2756
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
2757
|
+
errorCode,
|
|
2922
2758
|
});
|
|
2923
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2924
2759
|
}
|
|
2925
2760
|
};
|
|
2926
2761
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -2942,7 +2777,6 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2942
2777
|
...output,
|
|
2943
2778
|
body: await parseBody(output.body, context),
|
|
2944
2779
|
};
|
|
2945
|
-
let response;
|
|
2946
2780
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2947
2781
|
switch (errorCode) {
|
|
2948
2782
|
case "ResourceNotFoundException":
|
|
@@ -2950,14 +2784,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2950
2784
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2951
2785
|
default:
|
|
2952
2786
|
const parsedBody = parsedOutput.body;
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
$metadata,
|
|
2787
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2788
|
+
output,
|
|
2789
|
+
parsedBody,
|
|
2790
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
2791
|
+
errorCode,
|
|
2959
2792
|
});
|
|
2960
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2961
2793
|
}
|
|
2962
2794
|
};
|
|
2963
2795
|
const deserializeAws_json1_1StartFleetCommand = async (output, context) => {
|
|
@@ -2979,7 +2811,6 @@ const deserializeAws_json1_1StartFleetCommandError = async (output, context) =>
|
|
|
2979
2811
|
...output,
|
|
2980
2812
|
body: await parseBody(output.body, context),
|
|
2981
2813
|
};
|
|
2982
|
-
let response;
|
|
2983
2814
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2984
2815
|
switch (errorCode) {
|
|
2985
2816
|
case "ConcurrentModificationException":
|
|
@@ -3008,14 +2839,12 @@ const deserializeAws_json1_1StartFleetCommandError = async (output, context) =>
|
|
|
3008
2839
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3009
2840
|
default:
|
|
3010
2841
|
const parsedBody = parsedOutput.body;
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
$metadata,
|
|
2842
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2843
|
+
output,
|
|
2844
|
+
parsedBody,
|
|
2845
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
2846
|
+
errorCode,
|
|
3017
2847
|
});
|
|
3018
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3019
2848
|
}
|
|
3020
2849
|
};
|
|
3021
2850
|
const deserializeAws_json1_1StartImageBuilderCommand = async (output, context) => {
|
|
@@ -3037,7 +2866,6 @@ const deserializeAws_json1_1StartImageBuilderCommandError = async (output, conte
|
|
|
3037
2866
|
...output,
|
|
3038
2867
|
body: await parseBody(output.body, context),
|
|
3039
2868
|
};
|
|
3040
|
-
let response;
|
|
3041
2869
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3042
2870
|
switch (errorCode) {
|
|
3043
2871
|
case "ConcurrentModificationException":
|
|
@@ -3057,14 +2885,12 @@ const deserializeAws_json1_1StartImageBuilderCommandError = async (output, conte
|
|
|
3057
2885
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3058
2886
|
default:
|
|
3059
2887
|
const parsedBody = parsedOutput.body;
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
$metadata,
|
|
2888
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2889
|
+
output,
|
|
2890
|
+
parsedBody,
|
|
2891
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
2892
|
+
errorCode,
|
|
3066
2893
|
});
|
|
3067
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3068
2894
|
}
|
|
3069
2895
|
};
|
|
3070
2896
|
const deserializeAws_json1_1StopFleetCommand = async (output, context) => {
|
|
@@ -3086,7 +2912,6 @@ const deserializeAws_json1_1StopFleetCommandError = async (output, context) => {
|
|
|
3086
2912
|
...output,
|
|
3087
2913
|
body: await parseBody(output.body, context),
|
|
3088
2914
|
};
|
|
3089
|
-
let response;
|
|
3090
2915
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3091
2916
|
switch (errorCode) {
|
|
3092
2917
|
case "ConcurrentModificationException":
|
|
@@ -3097,14 +2922,12 @@ const deserializeAws_json1_1StopFleetCommandError = async (output, context) => {
|
|
|
3097
2922
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3098
2923
|
default:
|
|
3099
2924
|
const parsedBody = parsedOutput.body;
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
$metadata,
|
|
2925
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2926
|
+
output,
|
|
2927
|
+
parsedBody,
|
|
2928
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
2929
|
+
errorCode,
|
|
3106
2930
|
});
|
|
3107
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3108
2931
|
}
|
|
3109
2932
|
};
|
|
3110
2933
|
const deserializeAws_json1_1StopImageBuilderCommand = async (output, context) => {
|
|
@@ -3126,7 +2949,6 @@ const deserializeAws_json1_1StopImageBuilderCommandError = async (output, contex
|
|
|
3126
2949
|
...output,
|
|
3127
2950
|
body: await parseBody(output.body, context),
|
|
3128
2951
|
};
|
|
3129
|
-
let response;
|
|
3130
2952
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3131
2953
|
switch (errorCode) {
|
|
3132
2954
|
case "ConcurrentModificationException":
|
|
@@ -3140,14 +2962,12 @@ const deserializeAws_json1_1StopImageBuilderCommandError = async (output, contex
|
|
|
3140
2962
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3141
2963
|
default:
|
|
3142
2964
|
const parsedBody = parsedOutput.body;
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
$metadata,
|
|
2965
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2966
|
+
output,
|
|
2967
|
+
parsedBody,
|
|
2968
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
2969
|
+
errorCode,
|
|
3149
2970
|
});
|
|
3150
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3151
2971
|
}
|
|
3152
2972
|
};
|
|
3153
2973
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
@@ -3169,7 +2989,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
3169
2989
|
...output,
|
|
3170
2990
|
body: await parseBody(output.body, context),
|
|
3171
2991
|
};
|
|
3172
|
-
let response;
|
|
3173
2992
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3174
2993
|
switch (errorCode) {
|
|
3175
2994
|
case "InvalidAccountStatusException":
|
|
@@ -3183,14 +3002,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
3183
3002
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3184
3003
|
default:
|
|
3185
3004
|
const parsedBody = parsedOutput.body;
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
$metadata,
|
|
3005
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3006
|
+
output,
|
|
3007
|
+
parsedBody,
|
|
3008
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
3009
|
+
errorCode,
|
|
3192
3010
|
});
|
|
3193
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3194
3011
|
}
|
|
3195
3012
|
};
|
|
3196
3013
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
@@ -3212,7 +3029,6 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3212
3029
|
...output,
|
|
3213
3030
|
body: await parseBody(output.body, context),
|
|
3214
3031
|
};
|
|
3215
|
-
let response;
|
|
3216
3032
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3217
3033
|
switch (errorCode) {
|
|
3218
3034
|
case "ResourceNotFoundException":
|
|
@@ -3220,14 +3036,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3220
3036
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3221
3037
|
default:
|
|
3222
3038
|
const parsedBody = parsedOutput.body;
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
$metadata,
|
|
3039
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3040
|
+
output,
|
|
3041
|
+
parsedBody,
|
|
3042
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
3043
|
+
errorCode,
|
|
3229
3044
|
});
|
|
3230
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3231
3045
|
}
|
|
3232
3046
|
};
|
|
3233
3047
|
const deserializeAws_json1_1UpdateApplicationCommand = async (output, context) => {
|
|
@@ -3249,7 +3063,6 @@ const deserializeAws_json1_1UpdateApplicationCommandError = async (output, conte
|
|
|
3249
3063
|
...output,
|
|
3250
3064
|
body: await parseBody(output.body, context),
|
|
3251
3065
|
};
|
|
3252
|
-
let response;
|
|
3253
3066
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3254
3067
|
switch (errorCode) {
|
|
3255
3068
|
case "ConcurrentModificationException":
|
|
@@ -3263,14 +3076,12 @@ const deserializeAws_json1_1UpdateApplicationCommandError = async (output, conte
|
|
|
3263
3076
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3264
3077
|
default:
|
|
3265
3078
|
const parsedBody = parsedOutput.body;
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
$metadata,
|
|
3079
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3080
|
+
output,
|
|
3081
|
+
parsedBody,
|
|
3082
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
3083
|
+
errorCode,
|
|
3272
3084
|
});
|
|
3273
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3274
3085
|
}
|
|
3275
3086
|
};
|
|
3276
3087
|
const deserializeAws_json1_1UpdateDirectoryConfigCommand = async (output, context) => {
|
|
@@ -3292,7 +3103,6 @@ const deserializeAws_json1_1UpdateDirectoryConfigCommandError = async (output, c
|
|
|
3292
3103
|
...output,
|
|
3293
3104
|
body: await parseBody(output.body, context),
|
|
3294
3105
|
};
|
|
3295
|
-
let response;
|
|
3296
3106
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3297
3107
|
switch (errorCode) {
|
|
3298
3108
|
case "ConcurrentModificationException":
|
|
@@ -3312,14 +3122,12 @@ const deserializeAws_json1_1UpdateDirectoryConfigCommandError = async (output, c
|
|
|
3312
3122
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3313
3123
|
default:
|
|
3314
3124
|
const parsedBody = parsedOutput.body;
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
$metadata,
|
|
3125
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3126
|
+
output,
|
|
3127
|
+
parsedBody,
|
|
3128
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
3129
|
+
errorCode,
|
|
3321
3130
|
});
|
|
3322
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3323
3131
|
}
|
|
3324
3132
|
};
|
|
3325
3133
|
const deserializeAws_json1_1UpdateEntitlementCommand = async (output, context) => {
|
|
@@ -3341,7 +3149,6 @@ const deserializeAws_json1_1UpdateEntitlementCommandError = async (output, conte
|
|
|
3341
3149
|
...output,
|
|
3342
3150
|
body: await parseBody(output.body, context),
|
|
3343
3151
|
};
|
|
3344
|
-
let response;
|
|
3345
3152
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3346
3153
|
switch (errorCode) {
|
|
3347
3154
|
case "ConcurrentModificationException":
|
|
@@ -3358,14 +3165,12 @@ const deserializeAws_json1_1UpdateEntitlementCommandError = async (output, conte
|
|
|
3358
3165
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3359
3166
|
default:
|
|
3360
3167
|
const parsedBody = parsedOutput.body;
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
$metadata,
|
|
3168
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3169
|
+
output,
|
|
3170
|
+
parsedBody,
|
|
3171
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
3172
|
+
errorCode,
|
|
3367
3173
|
});
|
|
3368
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3369
3174
|
}
|
|
3370
3175
|
};
|
|
3371
3176
|
const deserializeAws_json1_1UpdateFleetCommand = async (output, context) => {
|
|
@@ -3387,7 +3192,6 @@ const deserializeAws_json1_1UpdateFleetCommandError = async (output, context) =>
|
|
|
3387
3192
|
...output,
|
|
3388
3193
|
body: await parseBody(output.body, context),
|
|
3389
3194
|
};
|
|
3390
|
-
let response;
|
|
3391
3195
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3392
3196
|
switch (errorCode) {
|
|
3393
3197
|
case "ConcurrentModificationException":
|
|
@@ -3425,14 +3229,12 @@ const deserializeAws_json1_1UpdateFleetCommandError = async (output, context) =>
|
|
|
3425
3229
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3426
3230
|
default:
|
|
3427
3231
|
const parsedBody = parsedOutput.body;
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
$metadata,
|
|
3232
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3233
|
+
output,
|
|
3234
|
+
parsedBody,
|
|
3235
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
3236
|
+
errorCode,
|
|
3434
3237
|
});
|
|
3435
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3436
3238
|
}
|
|
3437
3239
|
};
|
|
3438
3240
|
const deserializeAws_json1_1UpdateImagePermissionsCommand = async (output, context) => {
|
|
@@ -3454,7 +3256,6 @@ const deserializeAws_json1_1UpdateImagePermissionsCommandError = async (output,
|
|
|
3454
3256
|
...output,
|
|
3455
3257
|
body: await parseBody(output.body, context),
|
|
3456
3258
|
};
|
|
3457
|
-
let response;
|
|
3458
3259
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3459
3260
|
switch (errorCode) {
|
|
3460
3261
|
case "LimitExceededException":
|
|
@@ -3468,14 +3269,12 @@ const deserializeAws_json1_1UpdateImagePermissionsCommandError = async (output,
|
|
|
3468
3269
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3469
3270
|
default:
|
|
3470
3271
|
const parsedBody = parsedOutput.body;
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
$metadata,
|
|
3272
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3273
|
+
output,
|
|
3274
|
+
parsedBody,
|
|
3275
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
3276
|
+
errorCode,
|
|
3477
3277
|
});
|
|
3478
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3479
3278
|
}
|
|
3480
3279
|
};
|
|
3481
3280
|
const deserializeAws_json1_1UpdateStackCommand = async (output, context) => {
|
|
@@ -3497,7 +3296,6 @@ const deserializeAws_json1_1UpdateStackCommandError = async (output, context) =>
|
|
|
3497
3296
|
...output,
|
|
3498
3297
|
body: await parseBody(output.body, context),
|
|
3499
3298
|
};
|
|
3500
|
-
let response;
|
|
3501
3299
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3502
3300
|
switch (errorCode) {
|
|
3503
3301
|
case "ConcurrentModificationException":
|
|
@@ -3529,14 +3327,12 @@ const deserializeAws_json1_1UpdateStackCommandError = async (output, context) =>
|
|
|
3529
3327
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3530
3328
|
default:
|
|
3531
3329
|
const parsedBody = parsedOutput.body;
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
$metadata,
|
|
3330
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3331
|
+
output,
|
|
3332
|
+
parsedBody,
|
|
3333
|
+
exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
|
|
3334
|
+
errorCode,
|
|
3538
3335
|
});
|
|
3539
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3540
3336
|
}
|
|
3541
3337
|
};
|
|
3542
3338
|
const deserializeAws_json1_1ConcurrentModificationExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -3675,9 +3471,6 @@ const serializeAws_json1_1AccessEndpointList = (input, context) => {
|
|
|
3675
3471
|
return input
|
|
3676
3472
|
.filter((e) => e != null)
|
|
3677
3473
|
.map((entry) => {
|
|
3678
|
-
if (entry === null) {
|
|
3679
|
-
return null;
|
|
3680
|
-
}
|
|
3681
3474
|
return serializeAws_json1_1AccessEndpoint(entry, context);
|
|
3682
3475
|
});
|
|
3683
3476
|
};
|
|
@@ -3685,9 +3478,6 @@ const serializeAws_json1_1ApplicationAttributes = (input, context) => {
|
|
|
3685
3478
|
return input
|
|
3686
3479
|
.filter((e) => e != null)
|
|
3687
3480
|
.map((entry) => {
|
|
3688
|
-
if (entry === null) {
|
|
3689
|
-
return null;
|
|
3690
|
-
}
|
|
3691
3481
|
return entry;
|
|
3692
3482
|
});
|
|
3693
3483
|
};
|
|
@@ -3701,9 +3491,6 @@ const serializeAws_json1_1ArnList = (input, context) => {
|
|
|
3701
3491
|
return input
|
|
3702
3492
|
.filter((e) => e != null)
|
|
3703
3493
|
.map((entry) => {
|
|
3704
|
-
if (entry === null) {
|
|
3705
|
-
return null;
|
|
3706
|
-
}
|
|
3707
3494
|
return entry;
|
|
3708
3495
|
});
|
|
3709
3496
|
};
|
|
@@ -3730,9 +3517,6 @@ const serializeAws_json1_1AwsAccountIdList = (input, context) => {
|
|
|
3730
3517
|
return input
|
|
3731
3518
|
.filter((e) => e != null)
|
|
3732
3519
|
.map((entry) => {
|
|
3733
|
-
if (entry === null) {
|
|
3734
|
-
return null;
|
|
3735
|
-
}
|
|
3736
3520
|
return entry;
|
|
3737
3521
|
});
|
|
3738
3522
|
};
|
|
@@ -4115,9 +3899,6 @@ const serializeAws_json1_1DirectoryNameList = (input, context) => {
|
|
|
4115
3899
|
return input
|
|
4116
3900
|
.filter((e) => e != null)
|
|
4117
3901
|
.map((entry) => {
|
|
4118
|
-
if (entry === null) {
|
|
4119
|
-
return null;
|
|
4120
|
-
}
|
|
4121
3902
|
return entry;
|
|
4122
3903
|
});
|
|
4123
3904
|
};
|
|
@@ -4158,9 +3939,6 @@ const serializeAws_json1_1DomainList = (input, context) => {
|
|
|
4158
3939
|
return input
|
|
4159
3940
|
.filter((e) => e != null)
|
|
4160
3941
|
.map((entry) => {
|
|
4161
|
-
if (entry === null) {
|
|
4162
|
-
return null;
|
|
4163
|
-
}
|
|
4164
3942
|
return entry;
|
|
4165
3943
|
});
|
|
4166
3944
|
};
|
|
@@ -4168,9 +3946,6 @@ const serializeAws_json1_1EmbedHostDomains = (input, context) => {
|
|
|
4168
3946
|
return input
|
|
4169
3947
|
.filter((e) => e != null)
|
|
4170
3948
|
.map((entry) => {
|
|
4171
|
-
if (entry === null) {
|
|
4172
|
-
return null;
|
|
4173
|
-
}
|
|
4174
3949
|
return entry;
|
|
4175
3950
|
});
|
|
4176
3951
|
};
|
|
@@ -4190,9 +3965,6 @@ const serializeAws_json1_1EntitlementAttributeList = (input, context) => {
|
|
|
4190
3965
|
return input
|
|
4191
3966
|
.filter((e) => e != null)
|
|
4192
3967
|
.map((entry) => {
|
|
4193
|
-
if (entry === null) {
|
|
4194
|
-
return null;
|
|
4195
|
-
}
|
|
4196
3968
|
return serializeAws_json1_1EntitlementAttribute(entry, context);
|
|
4197
3969
|
});
|
|
4198
3970
|
};
|
|
@@ -4205,9 +3977,6 @@ const serializeAws_json1_1FleetAttributes = (input, context) => {
|
|
|
4205
3977
|
return input
|
|
4206
3978
|
.filter((e) => e != null)
|
|
4207
3979
|
.map((entry) => {
|
|
4208
|
-
if (entry === null) {
|
|
4209
|
-
return null;
|
|
4210
|
-
}
|
|
4211
3980
|
return entry;
|
|
4212
3981
|
});
|
|
4213
3982
|
};
|
|
@@ -4246,9 +4015,6 @@ const serializeAws_json1_1OrganizationalUnitDistinguishedNamesList = (input, con
|
|
|
4246
4015
|
return input
|
|
4247
4016
|
.filter((e) => e != null)
|
|
4248
4017
|
.map((entry) => {
|
|
4249
|
-
if (entry === null) {
|
|
4250
|
-
return null;
|
|
4251
|
-
}
|
|
4252
4018
|
return entry;
|
|
4253
4019
|
});
|
|
4254
4020
|
};
|
|
@@ -4256,9 +4022,6 @@ const serializeAws_json1_1Platforms = (input, context) => {
|
|
|
4256
4022
|
return input
|
|
4257
4023
|
.filter((e) => e != null)
|
|
4258
4024
|
.map((entry) => {
|
|
4259
|
-
if (entry === null) {
|
|
4260
|
-
return null;
|
|
4261
|
-
}
|
|
4262
4025
|
return entry;
|
|
4263
4026
|
});
|
|
4264
4027
|
};
|
|
@@ -4282,9 +4045,6 @@ const serializeAws_json1_1SecurityGroupIdList = (input, context) => {
|
|
|
4282
4045
|
return input
|
|
4283
4046
|
.filter((e) => e != null)
|
|
4284
4047
|
.map((entry) => {
|
|
4285
|
-
if (entry === null) {
|
|
4286
|
-
return null;
|
|
4287
|
-
}
|
|
4288
4048
|
return entry;
|
|
4289
4049
|
});
|
|
4290
4050
|
};
|
|
@@ -4298,9 +4058,6 @@ const serializeAws_json1_1StackAttributes = (input, context) => {
|
|
|
4298
4058
|
return input
|
|
4299
4059
|
.filter((e) => e != null)
|
|
4300
4060
|
.map((entry) => {
|
|
4301
|
-
if (entry === null) {
|
|
4302
|
-
return null;
|
|
4303
|
-
}
|
|
4304
4061
|
return entry;
|
|
4305
4062
|
});
|
|
4306
4063
|
};
|
|
@@ -4336,9 +4093,6 @@ const serializeAws_json1_1StorageConnectorList = (input, context) => {
|
|
|
4336
4093
|
return input
|
|
4337
4094
|
.filter((e) => e != null)
|
|
4338
4095
|
.map((entry) => {
|
|
4339
|
-
if (entry === null) {
|
|
4340
|
-
return null;
|
|
4341
|
-
}
|
|
4342
4096
|
return serializeAws_json1_1StorageConnector(entry, context);
|
|
4343
4097
|
});
|
|
4344
4098
|
};
|
|
@@ -4351,9 +4105,6 @@ const serializeAws_json1_1StringList = (input, context) => {
|
|
|
4351
4105
|
return input
|
|
4352
4106
|
.filter((e) => e != null)
|
|
4353
4107
|
.map((entry) => {
|
|
4354
|
-
if (entry === null) {
|
|
4355
|
-
return null;
|
|
4356
|
-
}
|
|
4357
4108
|
return entry;
|
|
4358
4109
|
});
|
|
4359
4110
|
};
|
|
@@ -4361,9 +4112,6 @@ const serializeAws_json1_1SubnetIdList = (input, context) => {
|
|
|
4361
4112
|
return input
|
|
4362
4113
|
.filter((e) => e != null)
|
|
4363
4114
|
.map((entry) => {
|
|
4364
|
-
if (entry === null) {
|
|
4365
|
-
return null;
|
|
4366
|
-
}
|
|
4367
4115
|
return entry;
|
|
4368
4116
|
});
|
|
4369
4117
|
};
|
|
@@ -4371,9 +4119,6 @@ const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
|
4371
4119
|
return input
|
|
4372
4120
|
.filter((e) => e != null)
|
|
4373
4121
|
.map((entry) => {
|
|
4374
|
-
if (entry === null) {
|
|
4375
|
-
return null;
|
|
4376
|
-
}
|
|
4377
4122
|
return entry;
|
|
4378
4123
|
});
|
|
4379
4124
|
};
|
|
@@ -4522,9 +4267,6 @@ const serializeAws_json1_1UsbDeviceFilterStrings = (input, context) => {
|
|
|
4522
4267
|
return input
|
|
4523
4268
|
.filter((e) => e != null)
|
|
4524
4269
|
.map((entry) => {
|
|
4525
|
-
if (entry === null) {
|
|
4526
|
-
return null;
|
|
4527
|
-
}
|
|
4528
4270
|
return entry;
|
|
4529
4271
|
});
|
|
4530
4272
|
};
|
|
@@ -4538,9 +4280,6 @@ const serializeAws_json1_1UserSettingList = (input, context) => {
|
|
|
4538
4280
|
return input
|
|
4539
4281
|
.filter((e) => e != null)
|
|
4540
4282
|
.map((entry) => {
|
|
4541
|
-
if (entry === null) {
|
|
4542
|
-
return null;
|
|
4543
|
-
}
|
|
4544
4283
|
return serializeAws_json1_1UserSetting(entry, context);
|
|
4545
4284
|
});
|
|
4546
4285
|
};
|
|
@@ -4556,9 +4295,6 @@ const serializeAws_json1_1UserStackAssociationList = (input, context) => {
|
|
|
4556
4295
|
return input
|
|
4557
4296
|
.filter((e) => e != null)
|
|
4558
4297
|
.map((entry) => {
|
|
4559
|
-
if (entry === null) {
|
|
4560
|
-
return null;
|
|
4561
|
-
}
|
|
4562
4298
|
return serializeAws_json1_1UserStackAssociation(entry, context);
|
|
4563
4299
|
});
|
|
4564
4300
|
};
|