@aws-sdk/client-workspaces 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 +325 -592
- package/dist-es/protocols/Aws_json1_1.js +505 -593
- package/package.json +11 -6
|
@@ -656,7 +656,6 @@ const deserializeAws_json1_1AssociateConnectionAliasCommandError = async (output
|
|
|
656
656
|
...output,
|
|
657
657
|
body: await parseBody(output.body, context),
|
|
658
658
|
};
|
|
659
|
-
let response;
|
|
660
659
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
661
660
|
switch (errorCode) {
|
|
662
661
|
case "AccessDeniedException":
|
|
@@ -679,14 +678,12 @@ const deserializeAws_json1_1AssociateConnectionAliasCommandError = async (output
|
|
|
679
678
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
680
679
|
default:
|
|
681
680
|
const parsedBody = parsedOutput.body;
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
$metadata,
|
|
681
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
682
|
+
output,
|
|
683
|
+
parsedBody,
|
|
684
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
685
|
+
errorCode,
|
|
688
686
|
});
|
|
689
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
690
687
|
}
|
|
691
688
|
};
|
|
692
689
|
const deserializeAws_json1_1AssociateIpGroupsCommand = async (output, context) => {
|
|
@@ -708,7 +705,6 @@ const deserializeAws_json1_1AssociateIpGroupsCommandError = async (output, conte
|
|
|
708
705
|
...output,
|
|
709
706
|
body: await parseBody(output.body, context),
|
|
710
707
|
};
|
|
711
|
-
let response;
|
|
712
708
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
713
709
|
switch (errorCode) {
|
|
714
710
|
case "AccessDeniedException":
|
|
@@ -731,14 +727,12 @@ const deserializeAws_json1_1AssociateIpGroupsCommandError = async (output, conte
|
|
|
731
727
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
732
728
|
default:
|
|
733
729
|
const parsedBody = parsedOutput.body;
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
$metadata,
|
|
730
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
731
|
+
output,
|
|
732
|
+
parsedBody,
|
|
733
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
734
|
+
errorCode,
|
|
740
735
|
});
|
|
741
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
742
736
|
}
|
|
743
737
|
};
|
|
744
738
|
const deserializeAws_json1_1AuthorizeIpRulesCommand = async (output, context) => {
|
|
@@ -760,7 +754,6 @@ const deserializeAws_json1_1AuthorizeIpRulesCommandError = async (output, contex
|
|
|
760
754
|
...output,
|
|
761
755
|
body: await parseBody(output.body, context),
|
|
762
756
|
};
|
|
763
|
-
let response;
|
|
764
757
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
765
758
|
switch (errorCode) {
|
|
766
759
|
case "AccessDeniedException":
|
|
@@ -780,14 +773,12 @@ const deserializeAws_json1_1AuthorizeIpRulesCommandError = async (output, contex
|
|
|
780
773
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
781
774
|
default:
|
|
782
775
|
const parsedBody = parsedOutput.body;
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
$metadata,
|
|
776
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
777
|
+
output,
|
|
778
|
+
parsedBody,
|
|
779
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
780
|
+
errorCode,
|
|
789
781
|
});
|
|
790
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
791
782
|
}
|
|
792
783
|
};
|
|
793
784
|
const deserializeAws_json1_1CopyWorkspaceImageCommand = async (output, context) => {
|
|
@@ -809,7 +800,6 @@ const deserializeAws_json1_1CopyWorkspaceImageCommandError = async (output, cont
|
|
|
809
800
|
...output,
|
|
810
801
|
body: await parseBody(output.body, context),
|
|
811
802
|
};
|
|
812
|
-
let response;
|
|
813
803
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
814
804
|
switch (errorCode) {
|
|
815
805
|
case "AccessDeniedException":
|
|
@@ -835,14 +825,12 @@ const deserializeAws_json1_1CopyWorkspaceImageCommandError = async (output, cont
|
|
|
835
825
|
throw await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context);
|
|
836
826
|
default:
|
|
837
827
|
const parsedBody = parsedOutput.body;
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
$metadata,
|
|
828
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
829
|
+
output,
|
|
830
|
+
parsedBody,
|
|
831
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
832
|
+
errorCode,
|
|
844
833
|
});
|
|
845
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
846
834
|
}
|
|
847
835
|
};
|
|
848
836
|
const deserializeAws_json1_1CreateConnectClientAddInCommand = async (output, context) => {
|
|
@@ -864,7 +852,6 @@ const deserializeAws_json1_1CreateConnectClientAddInCommandError = async (output
|
|
|
864
852
|
...output,
|
|
865
853
|
body: await parseBody(output.body, context),
|
|
866
854
|
};
|
|
867
|
-
let response;
|
|
868
855
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
869
856
|
switch (errorCode) {
|
|
870
857
|
case "AccessDeniedException":
|
|
@@ -884,14 +871,12 @@ const deserializeAws_json1_1CreateConnectClientAddInCommandError = async (output
|
|
|
884
871
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
885
872
|
default:
|
|
886
873
|
const parsedBody = parsedOutput.body;
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
$metadata,
|
|
874
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
875
|
+
output,
|
|
876
|
+
parsedBody,
|
|
877
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
878
|
+
errorCode,
|
|
893
879
|
});
|
|
894
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
895
880
|
}
|
|
896
881
|
};
|
|
897
882
|
const deserializeAws_json1_1CreateConnectionAliasCommand = async (output, context) => {
|
|
@@ -913,7 +898,6 @@ const deserializeAws_json1_1CreateConnectionAliasCommandError = async (output, c
|
|
|
913
898
|
...output,
|
|
914
899
|
body: await parseBody(output.body, context),
|
|
915
900
|
};
|
|
916
|
-
let response;
|
|
917
901
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
918
902
|
switch (errorCode) {
|
|
919
903
|
case "AccessDeniedException":
|
|
@@ -936,14 +920,12 @@ const deserializeAws_json1_1CreateConnectionAliasCommandError = async (output, c
|
|
|
936
920
|
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
937
921
|
default:
|
|
938
922
|
const parsedBody = parsedOutput.body;
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
$metadata,
|
|
923
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
924
|
+
output,
|
|
925
|
+
parsedBody,
|
|
926
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
927
|
+
errorCode,
|
|
945
928
|
});
|
|
946
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
947
929
|
}
|
|
948
930
|
};
|
|
949
931
|
const deserializeAws_json1_1CreateIpGroupCommand = async (output, context) => {
|
|
@@ -965,7 +947,6 @@ const deserializeAws_json1_1CreateIpGroupCommandError = async (output, context)
|
|
|
965
947
|
...output,
|
|
966
948
|
body: await parseBody(output.body, context),
|
|
967
949
|
};
|
|
968
|
-
let response;
|
|
969
950
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
970
951
|
switch (errorCode) {
|
|
971
952
|
case "AccessDeniedException":
|
|
@@ -985,14 +966,12 @@ const deserializeAws_json1_1CreateIpGroupCommandError = async (output, context)
|
|
|
985
966
|
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
986
967
|
default:
|
|
987
968
|
const parsedBody = parsedOutput.body;
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
$metadata,
|
|
969
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
970
|
+
output,
|
|
971
|
+
parsedBody,
|
|
972
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
973
|
+
errorCode,
|
|
994
974
|
});
|
|
995
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
996
975
|
}
|
|
997
976
|
};
|
|
998
977
|
const deserializeAws_json1_1CreateTagsCommand = async (output, context) => {
|
|
@@ -1014,7 +993,6 @@ const deserializeAws_json1_1CreateTagsCommandError = async (output, context) =>
|
|
|
1014
993
|
...output,
|
|
1015
994
|
body: await parseBody(output.body, context),
|
|
1016
995
|
};
|
|
1017
|
-
let response;
|
|
1018
996
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1019
997
|
switch (errorCode) {
|
|
1020
998
|
case "InvalidParameterValuesException":
|
|
@@ -1028,14 +1006,12 @@ const deserializeAws_json1_1CreateTagsCommandError = async (output, context) =>
|
|
|
1028
1006
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1029
1007
|
default:
|
|
1030
1008
|
const parsedBody = parsedOutput.body;
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
$metadata,
|
|
1009
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1010
|
+
output,
|
|
1011
|
+
parsedBody,
|
|
1012
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1013
|
+
errorCode,
|
|
1037
1014
|
});
|
|
1038
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1039
1015
|
}
|
|
1040
1016
|
};
|
|
1041
1017
|
const deserializeAws_json1_1CreateUpdatedWorkspaceImageCommand = async (output, context) => {
|
|
@@ -1057,7 +1033,6 @@ const deserializeAws_json1_1CreateUpdatedWorkspaceImageCommandError = async (out
|
|
|
1057
1033
|
...output,
|
|
1058
1034
|
body: await parseBody(output.body, context),
|
|
1059
1035
|
};
|
|
1060
|
-
let response;
|
|
1061
1036
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1062
1037
|
switch (errorCode) {
|
|
1063
1038
|
case "AccessDeniedException":
|
|
@@ -1083,14 +1058,12 @@ const deserializeAws_json1_1CreateUpdatedWorkspaceImageCommandError = async (out
|
|
|
1083
1058
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1084
1059
|
default:
|
|
1085
1060
|
const parsedBody = parsedOutput.body;
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
$metadata,
|
|
1061
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1062
|
+
output,
|
|
1063
|
+
parsedBody,
|
|
1064
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1065
|
+
errorCode,
|
|
1092
1066
|
});
|
|
1093
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1094
1067
|
}
|
|
1095
1068
|
};
|
|
1096
1069
|
const deserializeAws_json1_1CreateWorkspaceBundleCommand = async (output, context) => {
|
|
@@ -1112,7 +1085,6 @@ const deserializeAws_json1_1CreateWorkspaceBundleCommandError = async (output, c
|
|
|
1112
1085
|
...output,
|
|
1113
1086
|
body: await parseBody(output.body, context),
|
|
1114
1087
|
};
|
|
1115
|
-
let response;
|
|
1116
1088
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1117
1089
|
switch (errorCode) {
|
|
1118
1090
|
case "AccessDeniedException":
|
|
@@ -1135,14 +1107,12 @@ const deserializeAws_json1_1CreateWorkspaceBundleCommandError = async (output, c
|
|
|
1135
1107
|
throw await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context);
|
|
1136
1108
|
default:
|
|
1137
1109
|
const parsedBody = parsedOutput.body;
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
$metadata,
|
|
1110
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1111
|
+
output,
|
|
1112
|
+
parsedBody,
|
|
1113
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1114
|
+
errorCode,
|
|
1144
1115
|
});
|
|
1145
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1146
1116
|
}
|
|
1147
1117
|
};
|
|
1148
1118
|
const deserializeAws_json1_1CreateWorkspaceImageCommand = async (output, context) => {
|
|
@@ -1164,7 +1134,6 @@ const deserializeAws_json1_1CreateWorkspaceImageCommandError = async (output, co
|
|
|
1164
1134
|
...output,
|
|
1165
1135
|
body: await parseBody(output.body, context),
|
|
1166
1136
|
};
|
|
1167
|
-
let response;
|
|
1168
1137
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1169
1138
|
switch (errorCode) {
|
|
1170
1139
|
case "AccessDeniedException":
|
|
@@ -1190,14 +1159,12 @@ const deserializeAws_json1_1CreateWorkspaceImageCommandError = async (output, co
|
|
|
1190
1159
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1191
1160
|
default:
|
|
1192
1161
|
const parsedBody = parsedOutput.body;
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
$metadata,
|
|
1162
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1163
|
+
output,
|
|
1164
|
+
parsedBody,
|
|
1165
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1166
|
+
errorCode,
|
|
1199
1167
|
});
|
|
1200
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1201
1168
|
}
|
|
1202
1169
|
};
|
|
1203
1170
|
const deserializeAws_json1_1CreateWorkspacesCommand = async (output, context) => {
|
|
@@ -1219,7 +1186,6 @@ const deserializeAws_json1_1CreateWorkspacesCommandError = async (output, contex
|
|
|
1219
1186
|
...output,
|
|
1220
1187
|
body: await parseBody(output.body, context),
|
|
1221
1188
|
};
|
|
1222
|
-
let response;
|
|
1223
1189
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1224
1190
|
switch (errorCode) {
|
|
1225
1191
|
case "InvalidParameterValuesException":
|
|
@@ -1230,14 +1196,12 @@ const deserializeAws_json1_1CreateWorkspacesCommandError = async (output, contex
|
|
|
1230
1196
|
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
1231
1197
|
default:
|
|
1232
1198
|
const parsedBody = parsedOutput.body;
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
$metadata,
|
|
1199
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1200
|
+
output,
|
|
1201
|
+
parsedBody,
|
|
1202
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1203
|
+
errorCode,
|
|
1239
1204
|
});
|
|
1240
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1241
1205
|
}
|
|
1242
1206
|
};
|
|
1243
1207
|
const deserializeAws_json1_1DeleteClientBrandingCommand = async (output, context) => {
|
|
@@ -1259,7 +1223,6 @@ const deserializeAws_json1_1DeleteClientBrandingCommandError = async (output, co
|
|
|
1259
1223
|
...output,
|
|
1260
1224
|
body: await parseBody(output.body, context),
|
|
1261
1225
|
};
|
|
1262
|
-
let response;
|
|
1263
1226
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1264
1227
|
switch (errorCode) {
|
|
1265
1228
|
case "AccessDeniedException":
|
|
@@ -1273,14 +1236,12 @@ const deserializeAws_json1_1DeleteClientBrandingCommandError = async (output, co
|
|
|
1273
1236
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1274
1237
|
default:
|
|
1275
1238
|
const parsedBody = parsedOutput.body;
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
$metadata,
|
|
1239
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1240
|
+
output,
|
|
1241
|
+
parsedBody,
|
|
1242
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1243
|
+
errorCode,
|
|
1282
1244
|
});
|
|
1283
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1284
1245
|
}
|
|
1285
1246
|
};
|
|
1286
1247
|
const deserializeAws_json1_1DeleteConnectClientAddInCommand = async (output, context) => {
|
|
@@ -1302,7 +1263,6 @@ const deserializeAws_json1_1DeleteConnectClientAddInCommandError = async (output
|
|
|
1302
1263
|
...output,
|
|
1303
1264
|
body: await parseBody(output.body, context),
|
|
1304
1265
|
};
|
|
1305
|
-
let response;
|
|
1306
1266
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1307
1267
|
switch (errorCode) {
|
|
1308
1268
|
case "AccessDeniedException":
|
|
@@ -1316,14 +1276,12 @@ const deserializeAws_json1_1DeleteConnectClientAddInCommandError = async (output
|
|
|
1316
1276
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1317
1277
|
default:
|
|
1318
1278
|
const parsedBody = parsedOutput.body;
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
$metadata,
|
|
1279
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1280
|
+
output,
|
|
1281
|
+
parsedBody,
|
|
1282
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1283
|
+
errorCode,
|
|
1325
1284
|
});
|
|
1326
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1327
1285
|
}
|
|
1328
1286
|
};
|
|
1329
1287
|
const deserializeAws_json1_1DeleteConnectionAliasCommand = async (output, context) => {
|
|
@@ -1345,7 +1303,6 @@ const deserializeAws_json1_1DeleteConnectionAliasCommandError = async (output, c
|
|
|
1345
1303
|
...output,
|
|
1346
1304
|
body: await parseBody(output.body, context),
|
|
1347
1305
|
};
|
|
1348
|
-
let response;
|
|
1349
1306
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1350
1307
|
switch (errorCode) {
|
|
1351
1308
|
case "AccessDeniedException":
|
|
@@ -1368,14 +1325,12 @@ const deserializeAws_json1_1DeleteConnectionAliasCommandError = async (output, c
|
|
|
1368
1325
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1369
1326
|
default:
|
|
1370
1327
|
const parsedBody = parsedOutput.body;
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
$metadata,
|
|
1328
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1329
|
+
output,
|
|
1330
|
+
parsedBody,
|
|
1331
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1332
|
+
errorCode,
|
|
1377
1333
|
});
|
|
1378
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1379
1334
|
}
|
|
1380
1335
|
};
|
|
1381
1336
|
const deserializeAws_json1_1DeleteIpGroupCommand = async (output, context) => {
|
|
@@ -1397,7 +1352,6 @@ const deserializeAws_json1_1DeleteIpGroupCommandError = async (output, context)
|
|
|
1397
1352
|
...output,
|
|
1398
1353
|
body: await parseBody(output.body, context),
|
|
1399
1354
|
};
|
|
1400
|
-
let response;
|
|
1401
1355
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1402
1356
|
switch (errorCode) {
|
|
1403
1357
|
case "AccessDeniedException":
|
|
@@ -1414,14 +1368,12 @@ const deserializeAws_json1_1DeleteIpGroupCommandError = async (output, context)
|
|
|
1414
1368
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1415
1369
|
default:
|
|
1416
1370
|
const parsedBody = parsedOutput.body;
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
$metadata,
|
|
1371
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1372
|
+
output,
|
|
1373
|
+
parsedBody,
|
|
1374
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1375
|
+
errorCode,
|
|
1423
1376
|
});
|
|
1424
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1425
1377
|
}
|
|
1426
1378
|
};
|
|
1427
1379
|
const deserializeAws_json1_1DeleteTagsCommand = async (output, context) => {
|
|
@@ -1443,7 +1395,6 @@ const deserializeAws_json1_1DeleteTagsCommandError = async (output, context) =>
|
|
|
1443
1395
|
...output,
|
|
1444
1396
|
body: await parseBody(output.body, context),
|
|
1445
1397
|
};
|
|
1446
|
-
let response;
|
|
1447
1398
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1448
1399
|
switch (errorCode) {
|
|
1449
1400
|
case "InvalidParameterValuesException":
|
|
@@ -1454,14 +1405,12 @@ const deserializeAws_json1_1DeleteTagsCommandError = async (output, context) =>
|
|
|
1454
1405
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1455
1406
|
default:
|
|
1456
1407
|
const parsedBody = parsedOutput.body;
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
$metadata,
|
|
1408
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1409
|
+
output,
|
|
1410
|
+
parsedBody,
|
|
1411
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1412
|
+
errorCode,
|
|
1463
1413
|
});
|
|
1464
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1465
1414
|
}
|
|
1466
1415
|
};
|
|
1467
1416
|
const deserializeAws_json1_1DeleteWorkspaceBundleCommand = async (output, context) => {
|
|
@@ -1483,7 +1432,6 @@ const deserializeAws_json1_1DeleteWorkspaceBundleCommandError = async (output, c
|
|
|
1483
1432
|
...output,
|
|
1484
1433
|
body: await parseBody(output.body, context),
|
|
1485
1434
|
};
|
|
1486
|
-
let response;
|
|
1487
1435
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1488
1436
|
switch (errorCode) {
|
|
1489
1437
|
case "AccessDeniedException":
|
|
@@ -1500,14 +1448,12 @@ const deserializeAws_json1_1DeleteWorkspaceBundleCommandError = async (output, c
|
|
|
1500
1448
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1501
1449
|
default:
|
|
1502
1450
|
const parsedBody = parsedOutput.body;
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
$metadata,
|
|
1451
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1452
|
+
output,
|
|
1453
|
+
parsedBody,
|
|
1454
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1455
|
+
errorCode,
|
|
1509
1456
|
});
|
|
1510
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1511
1457
|
}
|
|
1512
1458
|
};
|
|
1513
1459
|
const deserializeAws_json1_1DeleteWorkspaceImageCommand = async (output, context) => {
|
|
@@ -1529,7 +1475,6 @@ const deserializeAws_json1_1DeleteWorkspaceImageCommandError = async (output, co
|
|
|
1529
1475
|
...output,
|
|
1530
1476
|
body: await parseBody(output.body, context),
|
|
1531
1477
|
};
|
|
1532
|
-
let response;
|
|
1533
1478
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1534
1479
|
switch (errorCode) {
|
|
1535
1480
|
case "AccessDeniedException":
|
|
@@ -1543,14 +1488,12 @@ const deserializeAws_json1_1DeleteWorkspaceImageCommandError = async (output, co
|
|
|
1543
1488
|
throw await deserializeAws_json1_1ResourceAssociatedExceptionResponse(parsedOutput, context);
|
|
1544
1489
|
default:
|
|
1545
1490
|
const parsedBody = parsedOutput.body;
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
$metadata,
|
|
1491
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1492
|
+
output,
|
|
1493
|
+
parsedBody,
|
|
1494
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1495
|
+
errorCode,
|
|
1552
1496
|
});
|
|
1553
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1554
1497
|
}
|
|
1555
1498
|
};
|
|
1556
1499
|
const deserializeAws_json1_1DeregisterWorkspaceDirectoryCommand = async (output, context) => {
|
|
@@ -1572,7 +1515,6 @@ const deserializeAws_json1_1DeregisterWorkspaceDirectoryCommandError = async (ou
|
|
|
1572
1515
|
...output,
|
|
1573
1516
|
body: await parseBody(output.body, context),
|
|
1574
1517
|
};
|
|
1575
|
-
let response;
|
|
1576
1518
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1577
1519
|
switch (errorCode) {
|
|
1578
1520
|
case "AccessDeniedException":
|
|
@@ -1592,14 +1534,12 @@ const deserializeAws_json1_1DeregisterWorkspaceDirectoryCommandError = async (ou
|
|
|
1592
1534
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1593
1535
|
default:
|
|
1594
1536
|
const parsedBody = parsedOutput.body;
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
$metadata,
|
|
1537
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1538
|
+
output,
|
|
1539
|
+
parsedBody,
|
|
1540
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1541
|
+
errorCode,
|
|
1601
1542
|
});
|
|
1602
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1603
1543
|
}
|
|
1604
1544
|
};
|
|
1605
1545
|
const deserializeAws_json1_1DescribeAccountCommand = async (output, context) => {
|
|
@@ -1621,7 +1561,6 @@ const deserializeAws_json1_1DescribeAccountCommandError = async (output, context
|
|
|
1621
1561
|
...output,
|
|
1622
1562
|
body: await parseBody(output.body, context),
|
|
1623
1563
|
};
|
|
1624
|
-
let response;
|
|
1625
1564
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1626
1565
|
switch (errorCode) {
|
|
1627
1566
|
case "AccessDeniedException":
|
|
@@ -1629,14 +1568,12 @@ const deserializeAws_json1_1DescribeAccountCommandError = async (output, context
|
|
|
1629
1568
|
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1630
1569
|
default:
|
|
1631
1570
|
const parsedBody = parsedOutput.body;
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
$metadata,
|
|
1571
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1572
|
+
output,
|
|
1573
|
+
parsedBody,
|
|
1574
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1575
|
+
errorCode,
|
|
1638
1576
|
});
|
|
1639
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1640
1577
|
}
|
|
1641
1578
|
};
|
|
1642
1579
|
const deserializeAws_json1_1DescribeAccountModificationsCommand = async (output, context) => {
|
|
@@ -1658,7 +1595,6 @@ const deserializeAws_json1_1DescribeAccountModificationsCommandError = async (ou
|
|
|
1658
1595
|
...output,
|
|
1659
1596
|
body: await parseBody(output.body, context),
|
|
1660
1597
|
};
|
|
1661
|
-
let response;
|
|
1662
1598
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1663
1599
|
switch (errorCode) {
|
|
1664
1600
|
case "AccessDeniedException":
|
|
@@ -1666,14 +1602,12 @@ const deserializeAws_json1_1DescribeAccountModificationsCommandError = async (ou
|
|
|
1666
1602
|
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1667
1603
|
default:
|
|
1668
1604
|
const parsedBody = parsedOutput.body;
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
$metadata,
|
|
1605
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1606
|
+
output,
|
|
1607
|
+
parsedBody,
|
|
1608
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1609
|
+
errorCode,
|
|
1675
1610
|
});
|
|
1676
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1677
1611
|
}
|
|
1678
1612
|
};
|
|
1679
1613
|
const deserializeAws_json1_1DescribeClientBrandingCommand = async (output, context) => {
|
|
@@ -1695,7 +1629,6 @@ const deserializeAws_json1_1DescribeClientBrandingCommandError = async (output,
|
|
|
1695
1629
|
...output,
|
|
1696
1630
|
body: await parseBody(output.body, context),
|
|
1697
1631
|
};
|
|
1698
|
-
let response;
|
|
1699
1632
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1700
1633
|
switch (errorCode) {
|
|
1701
1634
|
case "AccessDeniedException":
|
|
@@ -1709,14 +1642,12 @@ const deserializeAws_json1_1DescribeClientBrandingCommandError = async (output,
|
|
|
1709
1642
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1710
1643
|
default:
|
|
1711
1644
|
const parsedBody = parsedOutput.body;
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
$metadata,
|
|
1645
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1646
|
+
output,
|
|
1647
|
+
parsedBody,
|
|
1648
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1649
|
+
errorCode,
|
|
1718
1650
|
});
|
|
1719
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1720
1651
|
}
|
|
1721
1652
|
};
|
|
1722
1653
|
const deserializeAws_json1_1DescribeClientPropertiesCommand = async (output, context) => {
|
|
@@ -1738,7 +1669,6 @@ const deserializeAws_json1_1DescribeClientPropertiesCommandError = async (output
|
|
|
1738
1669
|
...output,
|
|
1739
1670
|
body: await parseBody(output.body, context),
|
|
1740
1671
|
};
|
|
1741
|
-
let response;
|
|
1742
1672
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1743
1673
|
switch (errorCode) {
|
|
1744
1674
|
case "AccessDeniedException":
|
|
@@ -1752,14 +1682,12 @@ const deserializeAws_json1_1DescribeClientPropertiesCommandError = async (output
|
|
|
1752
1682
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1753
1683
|
default:
|
|
1754
1684
|
const parsedBody = parsedOutput.body;
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
$metadata,
|
|
1685
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1686
|
+
output,
|
|
1687
|
+
parsedBody,
|
|
1688
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1689
|
+
errorCode,
|
|
1761
1690
|
});
|
|
1762
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1763
1691
|
}
|
|
1764
1692
|
};
|
|
1765
1693
|
const deserializeAws_json1_1DescribeConnectClientAddInsCommand = async (output, context) => {
|
|
@@ -1781,7 +1709,6 @@ const deserializeAws_json1_1DescribeConnectClientAddInsCommandError = async (out
|
|
|
1781
1709
|
...output,
|
|
1782
1710
|
body: await parseBody(output.body, context),
|
|
1783
1711
|
};
|
|
1784
|
-
let response;
|
|
1785
1712
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1786
1713
|
switch (errorCode) {
|
|
1787
1714
|
case "AccessDeniedException":
|
|
@@ -1795,14 +1722,12 @@ const deserializeAws_json1_1DescribeConnectClientAddInsCommandError = async (out
|
|
|
1795
1722
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1796
1723
|
default:
|
|
1797
1724
|
const parsedBody = parsedOutput.body;
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
$metadata,
|
|
1725
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1726
|
+
output,
|
|
1727
|
+
parsedBody,
|
|
1728
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1729
|
+
errorCode,
|
|
1804
1730
|
});
|
|
1805
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1806
1731
|
}
|
|
1807
1732
|
};
|
|
1808
1733
|
const deserializeAws_json1_1DescribeConnectionAliasesCommand = async (output, context) => {
|
|
@@ -1824,7 +1749,6 @@ const deserializeAws_json1_1DescribeConnectionAliasesCommandError = async (outpu
|
|
|
1824
1749
|
...output,
|
|
1825
1750
|
body: await parseBody(output.body, context),
|
|
1826
1751
|
};
|
|
1827
|
-
let response;
|
|
1828
1752
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1829
1753
|
switch (errorCode) {
|
|
1830
1754
|
case "AccessDeniedException":
|
|
@@ -1838,14 +1762,12 @@ const deserializeAws_json1_1DescribeConnectionAliasesCommandError = async (outpu
|
|
|
1838
1762
|
throw await deserializeAws_json1_1OperationNotSupportedExceptionResponse(parsedOutput, context);
|
|
1839
1763
|
default:
|
|
1840
1764
|
const parsedBody = parsedOutput.body;
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
$metadata,
|
|
1765
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1766
|
+
output,
|
|
1767
|
+
parsedBody,
|
|
1768
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1769
|
+
errorCode,
|
|
1847
1770
|
});
|
|
1848
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1849
1771
|
}
|
|
1850
1772
|
};
|
|
1851
1773
|
const deserializeAws_json1_1DescribeConnectionAliasPermissionsCommand = async (output, context) => {
|
|
@@ -1867,7 +1789,6 @@ const deserializeAws_json1_1DescribeConnectionAliasPermissionsCommandError = asy
|
|
|
1867
1789
|
...output,
|
|
1868
1790
|
body: await parseBody(output.body, context),
|
|
1869
1791
|
};
|
|
1870
|
-
let response;
|
|
1871
1792
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1872
1793
|
switch (errorCode) {
|
|
1873
1794
|
case "AccessDeniedException":
|
|
@@ -1884,14 +1805,12 @@ const deserializeAws_json1_1DescribeConnectionAliasPermissionsCommandError = asy
|
|
|
1884
1805
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1885
1806
|
default:
|
|
1886
1807
|
const parsedBody = parsedOutput.body;
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
$metadata,
|
|
1808
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1809
|
+
output,
|
|
1810
|
+
parsedBody,
|
|
1811
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1812
|
+
errorCode,
|
|
1893
1813
|
});
|
|
1894
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1895
1814
|
}
|
|
1896
1815
|
};
|
|
1897
1816
|
const deserializeAws_json1_1DescribeIpGroupsCommand = async (output, context) => {
|
|
@@ -1913,7 +1832,6 @@ const deserializeAws_json1_1DescribeIpGroupsCommandError = async (output, contex
|
|
|
1913
1832
|
...output,
|
|
1914
1833
|
body: await parseBody(output.body, context),
|
|
1915
1834
|
};
|
|
1916
|
-
let response;
|
|
1917
1835
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1918
1836
|
switch (errorCode) {
|
|
1919
1837
|
case "AccessDeniedException":
|
|
@@ -1924,14 +1842,12 @@ const deserializeAws_json1_1DescribeIpGroupsCommandError = async (output, contex
|
|
|
1924
1842
|
throw await deserializeAws_json1_1InvalidParameterValuesExceptionResponse(parsedOutput, context);
|
|
1925
1843
|
default:
|
|
1926
1844
|
const parsedBody = parsedOutput.body;
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
$metadata,
|
|
1845
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1846
|
+
output,
|
|
1847
|
+
parsedBody,
|
|
1848
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1849
|
+
errorCode,
|
|
1933
1850
|
});
|
|
1934
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1935
1851
|
}
|
|
1936
1852
|
};
|
|
1937
1853
|
const deserializeAws_json1_1DescribeTagsCommand = async (output, context) => {
|
|
@@ -1953,7 +1869,6 @@ const deserializeAws_json1_1DescribeTagsCommandError = async (output, context) =
|
|
|
1953
1869
|
...output,
|
|
1954
1870
|
body: await parseBody(output.body, context),
|
|
1955
1871
|
};
|
|
1956
|
-
let response;
|
|
1957
1872
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1958
1873
|
switch (errorCode) {
|
|
1959
1874
|
case "ResourceNotFoundException":
|
|
@@ -1961,14 +1876,12 @@ const deserializeAws_json1_1DescribeTagsCommandError = async (output, context) =
|
|
|
1961
1876
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1962
1877
|
default:
|
|
1963
1878
|
const parsedBody = parsedOutput.body;
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
$metadata,
|
|
1879
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1880
|
+
output,
|
|
1881
|
+
parsedBody,
|
|
1882
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1883
|
+
errorCode,
|
|
1970
1884
|
});
|
|
1971
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1972
1885
|
}
|
|
1973
1886
|
};
|
|
1974
1887
|
const deserializeAws_json1_1DescribeWorkspaceBundlesCommand = async (output, context) => {
|
|
@@ -1990,7 +1903,6 @@ const deserializeAws_json1_1DescribeWorkspaceBundlesCommandError = async (output
|
|
|
1990
1903
|
...output,
|
|
1991
1904
|
body: await parseBody(output.body, context),
|
|
1992
1905
|
};
|
|
1993
|
-
let response;
|
|
1994
1906
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1995
1907
|
switch (errorCode) {
|
|
1996
1908
|
case "InvalidParameterValuesException":
|
|
@@ -1998,14 +1910,12 @@ const deserializeAws_json1_1DescribeWorkspaceBundlesCommandError = async (output
|
|
|
1998
1910
|
throw await deserializeAws_json1_1InvalidParameterValuesExceptionResponse(parsedOutput, context);
|
|
1999
1911
|
default:
|
|
2000
1912
|
const parsedBody = parsedOutput.body;
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
$metadata,
|
|
1913
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1914
|
+
output,
|
|
1915
|
+
parsedBody,
|
|
1916
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1917
|
+
errorCode,
|
|
2007
1918
|
});
|
|
2008
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2009
1919
|
}
|
|
2010
1920
|
};
|
|
2011
1921
|
const deserializeAws_json1_1DescribeWorkspaceDirectoriesCommand = async (output, context) => {
|
|
@@ -2027,7 +1937,6 @@ const deserializeAws_json1_1DescribeWorkspaceDirectoriesCommandError = async (ou
|
|
|
2027
1937
|
...output,
|
|
2028
1938
|
body: await parseBody(output.body, context),
|
|
2029
1939
|
};
|
|
2030
|
-
let response;
|
|
2031
1940
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2032
1941
|
switch (errorCode) {
|
|
2033
1942
|
case "InvalidParameterValuesException":
|
|
@@ -2035,14 +1944,12 @@ const deserializeAws_json1_1DescribeWorkspaceDirectoriesCommandError = async (ou
|
|
|
2035
1944
|
throw await deserializeAws_json1_1InvalidParameterValuesExceptionResponse(parsedOutput, context);
|
|
2036
1945
|
default:
|
|
2037
1946
|
const parsedBody = parsedOutput.body;
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
$metadata,
|
|
1947
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1948
|
+
output,
|
|
1949
|
+
parsedBody,
|
|
1950
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1951
|
+
errorCode,
|
|
2044
1952
|
});
|
|
2045
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2046
1953
|
}
|
|
2047
1954
|
};
|
|
2048
1955
|
const deserializeAws_json1_1DescribeWorkspaceImagePermissionsCommand = async (output, context) => {
|
|
@@ -2064,7 +1971,6 @@ const deserializeAws_json1_1DescribeWorkspaceImagePermissionsCommandError = asyn
|
|
|
2064
1971
|
...output,
|
|
2065
1972
|
body: await parseBody(output.body, context),
|
|
2066
1973
|
};
|
|
2067
|
-
let response;
|
|
2068
1974
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2069
1975
|
switch (errorCode) {
|
|
2070
1976
|
case "AccessDeniedException":
|
|
@@ -2078,14 +1984,12 @@ const deserializeAws_json1_1DescribeWorkspaceImagePermissionsCommandError = asyn
|
|
|
2078
1984
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2079
1985
|
default:
|
|
2080
1986
|
const parsedBody = parsedOutput.body;
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
$metadata,
|
|
1987
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1988
|
+
output,
|
|
1989
|
+
parsedBody,
|
|
1990
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1991
|
+
errorCode,
|
|
2087
1992
|
});
|
|
2088
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2089
1993
|
}
|
|
2090
1994
|
};
|
|
2091
1995
|
const deserializeAws_json1_1DescribeWorkspaceImagesCommand = async (output, context) => {
|
|
@@ -2107,7 +2011,6 @@ const deserializeAws_json1_1DescribeWorkspaceImagesCommandError = async (output,
|
|
|
2107
2011
|
...output,
|
|
2108
2012
|
body: await parseBody(output.body, context),
|
|
2109
2013
|
};
|
|
2110
|
-
let response;
|
|
2111
2014
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2112
2015
|
switch (errorCode) {
|
|
2113
2016
|
case "AccessDeniedException":
|
|
@@ -2115,14 +2018,12 @@ const deserializeAws_json1_1DescribeWorkspaceImagesCommandError = async (output,
|
|
|
2115
2018
|
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2116
2019
|
default:
|
|
2117
2020
|
const parsedBody = parsedOutput.body;
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
$metadata,
|
|
2021
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2022
|
+
output,
|
|
2023
|
+
parsedBody,
|
|
2024
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2025
|
+
errorCode,
|
|
2124
2026
|
});
|
|
2125
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2126
2027
|
}
|
|
2127
2028
|
};
|
|
2128
2029
|
const deserializeAws_json1_1DescribeWorkspacesCommand = async (output, context) => {
|
|
@@ -2144,7 +2045,6 @@ const deserializeAws_json1_1DescribeWorkspacesCommandError = async (output, cont
|
|
|
2144
2045
|
...output,
|
|
2145
2046
|
body: await parseBody(output.body, context),
|
|
2146
2047
|
};
|
|
2147
|
-
let response;
|
|
2148
2048
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2149
2049
|
switch (errorCode) {
|
|
2150
2050
|
case "InvalidParameterValuesException":
|
|
@@ -2155,14 +2055,12 @@ const deserializeAws_json1_1DescribeWorkspacesCommandError = async (output, cont
|
|
|
2155
2055
|
throw await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context);
|
|
2156
2056
|
default:
|
|
2157
2057
|
const parsedBody = parsedOutput.body;
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
$metadata,
|
|
2058
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2059
|
+
output,
|
|
2060
|
+
parsedBody,
|
|
2061
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2062
|
+
errorCode,
|
|
2164
2063
|
});
|
|
2165
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2166
2064
|
}
|
|
2167
2065
|
};
|
|
2168
2066
|
const deserializeAws_json1_1DescribeWorkspacesConnectionStatusCommand = async (output, context) => {
|
|
@@ -2184,7 +2082,6 @@ const deserializeAws_json1_1DescribeWorkspacesConnectionStatusCommandError = asy
|
|
|
2184
2082
|
...output,
|
|
2185
2083
|
body: await parseBody(output.body, context),
|
|
2186
2084
|
};
|
|
2187
|
-
let response;
|
|
2188
2085
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2189
2086
|
switch (errorCode) {
|
|
2190
2087
|
case "InvalidParameterValuesException":
|
|
@@ -2192,14 +2089,12 @@ const deserializeAws_json1_1DescribeWorkspacesConnectionStatusCommandError = asy
|
|
|
2192
2089
|
throw await deserializeAws_json1_1InvalidParameterValuesExceptionResponse(parsedOutput, context);
|
|
2193
2090
|
default:
|
|
2194
2091
|
const parsedBody = parsedOutput.body;
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
$metadata,
|
|
2092
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2093
|
+
output,
|
|
2094
|
+
parsedBody,
|
|
2095
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2096
|
+
errorCode,
|
|
2201
2097
|
});
|
|
2202
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2203
2098
|
}
|
|
2204
2099
|
};
|
|
2205
2100
|
const deserializeAws_json1_1DescribeWorkspaceSnapshotsCommand = async (output, context) => {
|
|
@@ -2221,7 +2116,6 @@ const deserializeAws_json1_1DescribeWorkspaceSnapshotsCommandError = async (outp
|
|
|
2221
2116
|
...output,
|
|
2222
2117
|
body: await parseBody(output.body, context),
|
|
2223
2118
|
};
|
|
2224
|
-
let response;
|
|
2225
2119
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2226
2120
|
switch (errorCode) {
|
|
2227
2121
|
case "AccessDeniedException":
|
|
@@ -2235,14 +2129,12 @@ const deserializeAws_json1_1DescribeWorkspaceSnapshotsCommandError = async (outp
|
|
|
2235
2129
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2236
2130
|
default:
|
|
2237
2131
|
const parsedBody = parsedOutput.body;
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
$metadata,
|
|
2132
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2133
|
+
output,
|
|
2134
|
+
parsedBody,
|
|
2135
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2136
|
+
errorCode,
|
|
2244
2137
|
});
|
|
2245
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2246
2138
|
}
|
|
2247
2139
|
};
|
|
2248
2140
|
const deserializeAws_json1_1DisassociateConnectionAliasCommand = async (output, context) => {
|
|
@@ -2264,7 +2156,6 @@ const deserializeAws_json1_1DisassociateConnectionAliasCommandError = async (out
|
|
|
2264
2156
|
...output,
|
|
2265
2157
|
body: await parseBody(output.body, context),
|
|
2266
2158
|
};
|
|
2267
|
-
let response;
|
|
2268
2159
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2269
2160
|
switch (errorCode) {
|
|
2270
2161
|
case "AccessDeniedException":
|
|
@@ -2284,14 +2175,12 @@ const deserializeAws_json1_1DisassociateConnectionAliasCommandError = async (out
|
|
|
2284
2175
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2285
2176
|
default:
|
|
2286
2177
|
const parsedBody = parsedOutput.body;
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
$metadata,
|
|
2178
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2179
|
+
output,
|
|
2180
|
+
parsedBody,
|
|
2181
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2182
|
+
errorCode,
|
|
2293
2183
|
});
|
|
2294
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2295
2184
|
}
|
|
2296
2185
|
};
|
|
2297
2186
|
const deserializeAws_json1_1DisassociateIpGroupsCommand = async (output, context) => {
|
|
@@ -2313,7 +2202,6 @@ const deserializeAws_json1_1DisassociateIpGroupsCommandError = async (output, co
|
|
|
2313
2202
|
...output,
|
|
2314
2203
|
body: await parseBody(output.body, context),
|
|
2315
2204
|
};
|
|
2316
|
-
let response;
|
|
2317
2205
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2318
2206
|
switch (errorCode) {
|
|
2319
2207
|
case "AccessDeniedException":
|
|
@@ -2330,14 +2218,12 @@ const deserializeAws_json1_1DisassociateIpGroupsCommandError = async (output, co
|
|
|
2330
2218
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2331
2219
|
default:
|
|
2332
2220
|
const parsedBody = parsedOutput.body;
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
$metadata,
|
|
2221
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2222
|
+
output,
|
|
2223
|
+
parsedBody,
|
|
2224
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2225
|
+
errorCode,
|
|
2339
2226
|
});
|
|
2340
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2341
2227
|
}
|
|
2342
2228
|
};
|
|
2343
2229
|
const deserializeAws_json1_1ImportClientBrandingCommand = async (output, context) => {
|
|
@@ -2359,7 +2245,6 @@ const deserializeAws_json1_1ImportClientBrandingCommandError = async (output, co
|
|
|
2359
2245
|
...output,
|
|
2360
2246
|
body: await parseBody(output.body, context),
|
|
2361
2247
|
};
|
|
2362
|
-
let response;
|
|
2363
2248
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2364
2249
|
switch (errorCode) {
|
|
2365
2250
|
case "AccessDeniedException":
|
|
@@ -2376,14 +2261,12 @@ const deserializeAws_json1_1ImportClientBrandingCommandError = async (output, co
|
|
|
2376
2261
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2377
2262
|
default:
|
|
2378
2263
|
const parsedBody = parsedOutput.body;
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
$metadata,
|
|
2264
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2265
|
+
output,
|
|
2266
|
+
parsedBody,
|
|
2267
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2268
|
+
errorCode,
|
|
2385
2269
|
});
|
|
2386
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2387
2270
|
}
|
|
2388
2271
|
};
|
|
2389
2272
|
const deserializeAws_json1_1ImportWorkspaceImageCommand = async (output, context) => {
|
|
@@ -2405,7 +2288,6 @@ const deserializeAws_json1_1ImportWorkspaceImageCommandError = async (output, co
|
|
|
2405
2288
|
...output,
|
|
2406
2289
|
body: await parseBody(output.body, context),
|
|
2407
2290
|
};
|
|
2408
|
-
let response;
|
|
2409
2291
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2410
2292
|
switch (errorCode) {
|
|
2411
2293
|
case "AccessDeniedException":
|
|
@@ -2428,14 +2310,12 @@ const deserializeAws_json1_1ImportWorkspaceImageCommandError = async (output, co
|
|
|
2428
2310
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2429
2311
|
default:
|
|
2430
2312
|
const parsedBody = parsedOutput.body;
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
$metadata,
|
|
2313
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2314
|
+
output,
|
|
2315
|
+
parsedBody,
|
|
2316
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2317
|
+
errorCode,
|
|
2437
2318
|
});
|
|
2438
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2439
2319
|
}
|
|
2440
2320
|
};
|
|
2441
2321
|
const deserializeAws_json1_1ListAvailableManagementCidrRangesCommand = async (output, context) => {
|
|
@@ -2457,7 +2337,6 @@ const deserializeAws_json1_1ListAvailableManagementCidrRangesCommandError = asyn
|
|
|
2457
2337
|
...output,
|
|
2458
2338
|
body: await parseBody(output.body, context),
|
|
2459
2339
|
};
|
|
2460
|
-
let response;
|
|
2461
2340
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2462
2341
|
switch (errorCode) {
|
|
2463
2342
|
case "AccessDeniedException":
|
|
@@ -2468,14 +2347,12 @@ const deserializeAws_json1_1ListAvailableManagementCidrRangesCommandError = asyn
|
|
|
2468
2347
|
throw await deserializeAws_json1_1InvalidParameterValuesExceptionResponse(parsedOutput, context);
|
|
2469
2348
|
default:
|
|
2470
2349
|
const parsedBody = parsedOutput.body;
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
$metadata,
|
|
2350
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2351
|
+
output,
|
|
2352
|
+
parsedBody,
|
|
2353
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2354
|
+
errorCode,
|
|
2477
2355
|
});
|
|
2478
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2479
2356
|
}
|
|
2480
2357
|
};
|
|
2481
2358
|
const deserializeAws_json1_1MigrateWorkspaceCommand = async (output, context) => {
|
|
@@ -2497,7 +2374,6 @@ const deserializeAws_json1_1MigrateWorkspaceCommandError = async (output, contex
|
|
|
2497
2374
|
...output,
|
|
2498
2375
|
body: await parseBody(output.body, context),
|
|
2499
2376
|
};
|
|
2500
|
-
let response;
|
|
2501
2377
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2502
2378
|
switch (errorCode) {
|
|
2503
2379
|
case "AccessDeniedException":
|
|
@@ -2520,14 +2396,12 @@ const deserializeAws_json1_1MigrateWorkspaceCommandError = async (output, contex
|
|
|
2520
2396
|
throw await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context);
|
|
2521
2397
|
default:
|
|
2522
2398
|
const parsedBody = parsedOutput.body;
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
$metadata,
|
|
2399
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2400
|
+
output,
|
|
2401
|
+
parsedBody,
|
|
2402
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2403
|
+
errorCode,
|
|
2529
2404
|
});
|
|
2530
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2531
2405
|
}
|
|
2532
2406
|
};
|
|
2533
2407
|
const deserializeAws_json1_1ModifyAccountCommand = async (output, context) => {
|
|
@@ -2549,7 +2423,6 @@ const deserializeAws_json1_1ModifyAccountCommandError = async (output, context)
|
|
|
2549
2423
|
...output,
|
|
2550
2424
|
body: await parseBody(output.body, context),
|
|
2551
2425
|
};
|
|
2552
|
-
let response;
|
|
2553
2426
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2554
2427
|
switch (errorCode) {
|
|
2555
2428
|
case "AccessDeniedException":
|
|
@@ -2569,14 +2442,12 @@ const deserializeAws_json1_1ModifyAccountCommandError = async (output, context)
|
|
|
2569
2442
|
throw await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context);
|
|
2570
2443
|
default:
|
|
2571
2444
|
const parsedBody = parsedOutput.body;
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
$metadata,
|
|
2445
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2446
|
+
output,
|
|
2447
|
+
parsedBody,
|
|
2448
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2449
|
+
errorCode,
|
|
2578
2450
|
});
|
|
2579
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2580
2451
|
}
|
|
2581
2452
|
};
|
|
2582
2453
|
const deserializeAws_json1_1ModifyClientPropertiesCommand = async (output, context) => {
|
|
@@ -2598,7 +2469,6 @@ const deserializeAws_json1_1ModifyClientPropertiesCommandError = async (output,
|
|
|
2598
2469
|
...output,
|
|
2599
2470
|
body: await parseBody(output.body, context),
|
|
2600
2471
|
};
|
|
2601
|
-
let response;
|
|
2602
2472
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2603
2473
|
switch (errorCode) {
|
|
2604
2474
|
case "AccessDeniedException":
|
|
@@ -2612,14 +2482,12 @@ const deserializeAws_json1_1ModifyClientPropertiesCommandError = async (output,
|
|
|
2612
2482
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2613
2483
|
default:
|
|
2614
2484
|
const parsedBody = parsedOutput.body;
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
$metadata,
|
|
2485
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2486
|
+
output,
|
|
2487
|
+
parsedBody,
|
|
2488
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2489
|
+
errorCode,
|
|
2621
2490
|
});
|
|
2622
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2623
2491
|
}
|
|
2624
2492
|
};
|
|
2625
2493
|
const deserializeAws_json1_1ModifySamlPropertiesCommand = async (output, context) => {
|
|
@@ -2641,7 +2509,6 @@ const deserializeAws_json1_1ModifySamlPropertiesCommandError = async (output, co
|
|
|
2641
2509
|
...output,
|
|
2642
2510
|
body: await parseBody(output.body, context),
|
|
2643
2511
|
};
|
|
2644
|
-
let response;
|
|
2645
2512
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2646
2513
|
switch (errorCode) {
|
|
2647
2514
|
case "AccessDeniedException":
|
|
@@ -2658,14 +2525,12 @@ const deserializeAws_json1_1ModifySamlPropertiesCommandError = async (output, co
|
|
|
2658
2525
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2659
2526
|
default:
|
|
2660
2527
|
const parsedBody = parsedOutput.body;
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
$metadata,
|
|
2528
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2529
|
+
output,
|
|
2530
|
+
parsedBody,
|
|
2531
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2532
|
+
errorCode,
|
|
2667
2533
|
});
|
|
2668
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2669
2534
|
}
|
|
2670
2535
|
};
|
|
2671
2536
|
const deserializeAws_json1_1ModifySelfservicePermissionsCommand = async (output, context) => {
|
|
@@ -2687,7 +2552,6 @@ const deserializeAws_json1_1ModifySelfservicePermissionsCommandError = async (ou
|
|
|
2687
2552
|
...output,
|
|
2688
2553
|
body: await parseBody(output.body, context),
|
|
2689
2554
|
};
|
|
2690
|
-
let response;
|
|
2691
2555
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2692
2556
|
switch (errorCode) {
|
|
2693
2557
|
case "AccessDeniedException":
|
|
@@ -2701,14 +2565,12 @@ const deserializeAws_json1_1ModifySelfservicePermissionsCommandError = async (ou
|
|
|
2701
2565
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2702
2566
|
default:
|
|
2703
2567
|
const parsedBody = parsedOutput.body;
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
$metadata,
|
|
2568
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2569
|
+
output,
|
|
2570
|
+
parsedBody,
|
|
2571
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2572
|
+
errorCode,
|
|
2710
2573
|
});
|
|
2711
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2712
2574
|
}
|
|
2713
2575
|
};
|
|
2714
2576
|
const deserializeAws_json1_1ModifyWorkspaceAccessPropertiesCommand = async (output, context) => {
|
|
@@ -2730,7 +2592,6 @@ const deserializeAws_json1_1ModifyWorkspaceAccessPropertiesCommandError = async
|
|
|
2730
2592
|
...output,
|
|
2731
2593
|
body: await parseBody(output.body, context),
|
|
2732
2594
|
};
|
|
2733
|
-
let response;
|
|
2734
2595
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2735
2596
|
switch (errorCode) {
|
|
2736
2597
|
case "AccessDeniedException":
|
|
@@ -2741,14 +2602,12 @@ const deserializeAws_json1_1ModifyWorkspaceAccessPropertiesCommandError = async
|
|
|
2741
2602
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2742
2603
|
default:
|
|
2743
2604
|
const parsedBody = parsedOutput.body;
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
$metadata,
|
|
2605
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2606
|
+
output,
|
|
2607
|
+
parsedBody,
|
|
2608
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2609
|
+
errorCode,
|
|
2750
2610
|
});
|
|
2751
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2752
2611
|
}
|
|
2753
2612
|
};
|
|
2754
2613
|
const deserializeAws_json1_1ModifyWorkspaceCreationPropertiesCommand = async (output, context) => {
|
|
@@ -2770,7 +2629,6 @@ const deserializeAws_json1_1ModifyWorkspaceCreationPropertiesCommandError = asyn
|
|
|
2770
2629
|
...output,
|
|
2771
2630
|
body: await parseBody(output.body, context),
|
|
2772
2631
|
};
|
|
2773
|
-
let response;
|
|
2774
2632
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2775
2633
|
switch (errorCode) {
|
|
2776
2634
|
case "AccessDeniedException":
|
|
@@ -2787,14 +2645,12 @@ const deserializeAws_json1_1ModifyWorkspaceCreationPropertiesCommandError = asyn
|
|
|
2787
2645
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2788
2646
|
default:
|
|
2789
2647
|
const parsedBody = parsedOutput.body;
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
$metadata,
|
|
2648
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2649
|
+
output,
|
|
2650
|
+
parsedBody,
|
|
2651
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2652
|
+
errorCode,
|
|
2796
2653
|
});
|
|
2797
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2798
2654
|
}
|
|
2799
2655
|
};
|
|
2800
2656
|
const deserializeAws_json1_1ModifyWorkspacePropertiesCommand = async (output, context) => {
|
|
@@ -2816,7 +2672,6 @@ const deserializeAws_json1_1ModifyWorkspacePropertiesCommandError = async (outpu
|
|
|
2816
2672
|
...output,
|
|
2817
2673
|
body: await parseBody(output.body, context),
|
|
2818
2674
|
};
|
|
2819
|
-
let response;
|
|
2820
2675
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2821
2676
|
switch (errorCode) {
|
|
2822
2677
|
case "AccessDeniedException":
|
|
@@ -2842,14 +2697,12 @@ const deserializeAws_json1_1ModifyWorkspacePropertiesCommandError = async (outpu
|
|
|
2842
2697
|
throw await deserializeAws_json1_1UnsupportedWorkspaceConfigurationExceptionResponse(parsedOutput, context);
|
|
2843
2698
|
default:
|
|
2844
2699
|
const parsedBody = parsedOutput.body;
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
$metadata,
|
|
2700
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2701
|
+
output,
|
|
2702
|
+
parsedBody,
|
|
2703
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2704
|
+
errorCode,
|
|
2851
2705
|
});
|
|
2852
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2853
2706
|
}
|
|
2854
2707
|
};
|
|
2855
2708
|
const deserializeAws_json1_1ModifyWorkspaceStateCommand = async (output, context) => {
|
|
@@ -2871,7 +2724,6 @@ const deserializeAws_json1_1ModifyWorkspaceStateCommandError = async (output, co
|
|
|
2871
2724
|
...output,
|
|
2872
2725
|
body: await parseBody(output.body, context),
|
|
2873
2726
|
};
|
|
2874
|
-
let response;
|
|
2875
2727
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2876
2728
|
switch (errorCode) {
|
|
2877
2729
|
case "InvalidParameterValuesException":
|
|
@@ -2885,14 +2737,12 @@ const deserializeAws_json1_1ModifyWorkspaceStateCommandError = async (output, co
|
|
|
2885
2737
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2886
2738
|
default:
|
|
2887
2739
|
const parsedBody = parsedOutput.body;
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
$metadata,
|
|
2740
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2741
|
+
output,
|
|
2742
|
+
parsedBody,
|
|
2743
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2744
|
+
errorCode,
|
|
2894
2745
|
});
|
|
2895
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2896
2746
|
}
|
|
2897
2747
|
};
|
|
2898
2748
|
const deserializeAws_json1_1RebootWorkspacesCommand = async (output, context) => {
|
|
@@ -2914,20 +2764,14 @@ const deserializeAws_json1_1RebootWorkspacesCommandError = async (output, contex
|
|
|
2914
2764
|
...output,
|
|
2915
2765
|
body: await parseBody(output.body, context),
|
|
2916
2766
|
};
|
|
2917
|
-
let response;
|
|
2918
2767
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
$fault: "client",
|
|
2927
|
-
$metadata,
|
|
2928
|
-
});
|
|
2929
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2930
|
-
}
|
|
2768
|
+
const parsedBody = parsedOutput.body;
|
|
2769
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2770
|
+
output,
|
|
2771
|
+
parsedBody,
|
|
2772
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2773
|
+
errorCode,
|
|
2774
|
+
});
|
|
2931
2775
|
};
|
|
2932
2776
|
const deserializeAws_json1_1RebuildWorkspacesCommand = async (output, context) => {
|
|
2933
2777
|
if (output.statusCode >= 300) {
|
|
@@ -2948,20 +2792,14 @@ const deserializeAws_json1_1RebuildWorkspacesCommandError = async (output, conte
|
|
|
2948
2792
|
...output,
|
|
2949
2793
|
body: await parseBody(output.body, context),
|
|
2950
2794
|
};
|
|
2951
|
-
let response;
|
|
2952
2795
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
$fault: "client",
|
|
2961
|
-
$metadata,
|
|
2962
|
-
});
|
|
2963
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2964
|
-
}
|
|
2796
|
+
const parsedBody = parsedOutput.body;
|
|
2797
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2798
|
+
output,
|
|
2799
|
+
parsedBody,
|
|
2800
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2801
|
+
errorCode,
|
|
2802
|
+
});
|
|
2965
2803
|
};
|
|
2966
2804
|
const deserializeAws_json1_1RegisterWorkspaceDirectoryCommand = async (output, context) => {
|
|
2967
2805
|
if (output.statusCode >= 300) {
|
|
@@ -2982,7 +2820,6 @@ const deserializeAws_json1_1RegisterWorkspaceDirectoryCommandError = async (outp
|
|
|
2982
2820
|
...output,
|
|
2983
2821
|
body: await parseBody(output.body, context),
|
|
2984
2822
|
};
|
|
2985
|
-
let response;
|
|
2986
2823
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2987
2824
|
switch (errorCode) {
|
|
2988
2825
|
case "AccessDeniedException":
|
|
@@ -3011,14 +2848,12 @@ const deserializeAws_json1_1RegisterWorkspaceDirectoryCommandError = async (outp
|
|
|
3011
2848
|
throw await deserializeAws_json1_1WorkspacesDefaultRoleNotFoundExceptionResponse(parsedOutput, context);
|
|
3012
2849
|
default:
|
|
3013
2850
|
const parsedBody = parsedOutput.body;
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
$metadata,
|
|
2851
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2852
|
+
output,
|
|
2853
|
+
parsedBody,
|
|
2854
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2855
|
+
errorCode,
|
|
3020
2856
|
});
|
|
3021
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3022
2857
|
}
|
|
3023
2858
|
};
|
|
3024
2859
|
const deserializeAws_json1_1RestoreWorkspaceCommand = async (output, context) => {
|
|
@@ -3040,7 +2875,6 @@ const deserializeAws_json1_1RestoreWorkspaceCommandError = async (output, contex
|
|
|
3040
2875
|
...output,
|
|
3041
2876
|
body: await parseBody(output.body, context),
|
|
3042
2877
|
};
|
|
3043
|
-
let response;
|
|
3044
2878
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3045
2879
|
switch (errorCode) {
|
|
3046
2880
|
case "AccessDeniedException":
|
|
@@ -3054,14 +2888,12 @@ const deserializeAws_json1_1RestoreWorkspaceCommandError = async (output, contex
|
|
|
3054
2888
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3055
2889
|
default:
|
|
3056
2890
|
const parsedBody = parsedOutput.body;
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
$metadata,
|
|
2891
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2892
|
+
output,
|
|
2893
|
+
parsedBody,
|
|
2894
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2895
|
+
errorCode,
|
|
3063
2896
|
});
|
|
3064
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3065
2897
|
}
|
|
3066
2898
|
};
|
|
3067
2899
|
const deserializeAws_json1_1RevokeIpRulesCommand = async (output, context) => {
|
|
@@ -3083,7 +2915,6 @@ const deserializeAws_json1_1RevokeIpRulesCommandError = async (output, context)
|
|
|
3083
2915
|
...output,
|
|
3084
2916
|
body: await parseBody(output.body, context),
|
|
3085
2917
|
};
|
|
3086
|
-
let response;
|
|
3087
2918
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3088
2919
|
switch (errorCode) {
|
|
3089
2920
|
case "AccessDeniedException":
|
|
@@ -3100,14 +2931,12 @@ const deserializeAws_json1_1RevokeIpRulesCommandError = async (output, context)
|
|
|
3100
2931
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3101
2932
|
default:
|
|
3102
2933
|
const parsedBody = parsedOutput.body;
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
$metadata,
|
|
2934
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2935
|
+
output,
|
|
2936
|
+
parsedBody,
|
|
2937
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2938
|
+
errorCode,
|
|
3109
2939
|
});
|
|
3110
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3111
2940
|
}
|
|
3112
2941
|
};
|
|
3113
2942
|
const deserializeAws_json1_1StartWorkspacesCommand = async (output, context) => {
|
|
@@ -3129,20 +2958,14 @@ const deserializeAws_json1_1StartWorkspacesCommandError = async (output, context
|
|
|
3129
2958
|
...output,
|
|
3130
2959
|
body: await parseBody(output.body, context),
|
|
3131
2960
|
};
|
|
3132
|
-
let response;
|
|
3133
2961
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
$fault: "client",
|
|
3142
|
-
$metadata,
|
|
3143
|
-
});
|
|
3144
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3145
|
-
}
|
|
2962
|
+
const parsedBody = parsedOutput.body;
|
|
2963
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2964
|
+
output,
|
|
2965
|
+
parsedBody,
|
|
2966
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2967
|
+
errorCode,
|
|
2968
|
+
});
|
|
3146
2969
|
};
|
|
3147
2970
|
const deserializeAws_json1_1StopWorkspacesCommand = async (output, context) => {
|
|
3148
2971
|
if (output.statusCode >= 300) {
|
|
@@ -3163,20 +2986,14 @@ const deserializeAws_json1_1StopWorkspacesCommandError = async (output, context)
|
|
|
3163
2986
|
...output,
|
|
3164
2987
|
body: await parseBody(output.body, context),
|
|
3165
2988
|
};
|
|
3166
|
-
let response;
|
|
3167
2989
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
$fault: "client",
|
|
3176
|
-
$metadata,
|
|
3177
|
-
});
|
|
3178
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3179
|
-
}
|
|
2990
|
+
const parsedBody = parsedOutput.body;
|
|
2991
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2992
|
+
output,
|
|
2993
|
+
parsedBody,
|
|
2994
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2995
|
+
errorCode,
|
|
2996
|
+
});
|
|
3180
2997
|
};
|
|
3181
2998
|
const deserializeAws_json1_1TerminateWorkspacesCommand = async (output, context) => {
|
|
3182
2999
|
if (output.statusCode >= 300) {
|
|
@@ -3197,20 +3014,14 @@ const deserializeAws_json1_1TerminateWorkspacesCommandError = async (output, con
|
|
|
3197
3014
|
...output,
|
|
3198
3015
|
body: await parseBody(output.body, context),
|
|
3199
3016
|
};
|
|
3200
|
-
let response;
|
|
3201
3017
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
$fault: "client",
|
|
3210
|
-
$metadata,
|
|
3211
|
-
});
|
|
3212
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3213
|
-
}
|
|
3018
|
+
const parsedBody = parsedOutput.body;
|
|
3019
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3020
|
+
output,
|
|
3021
|
+
parsedBody,
|
|
3022
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
3023
|
+
errorCode,
|
|
3024
|
+
});
|
|
3214
3025
|
};
|
|
3215
3026
|
const deserializeAws_json1_1UpdateConnectClientAddInCommand = async (output, context) => {
|
|
3216
3027
|
if (output.statusCode >= 300) {
|
|
@@ -3231,7 +3042,6 @@ const deserializeAws_json1_1UpdateConnectClientAddInCommandError = async (output
|
|
|
3231
3042
|
...output,
|
|
3232
3043
|
body: await parseBody(output.body, context),
|
|
3233
3044
|
};
|
|
3234
|
-
let response;
|
|
3235
3045
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3236
3046
|
switch (errorCode) {
|
|
3237
3047
|
case "AccessDeniedException":
|
|
@@ -3245,14 +3055,12 @@ const deserializeAws_json1_1UpdateConnectClientAddInCommandError = async (output
|
|
|
3245
3055
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3246
3056
|
default:
|
|
3247
3057
|
const parsedBody = parsedOutput.body;
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
$metadata,
|
|
3058
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3059
|
+
output,
|
|
3060
|
+
parsedBody,
|
|
3061
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
3062
|
+
errorCode,
|
|
3254
3063
|
});
|
|
3255
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3256
3064
|
}
|
|
3257
3065
|
};
|
|
3258
3066
|
const deserializeAws_json1_1UpdateConnectionAliasPermissionCommand = async (output, context) => {
|
|
@@ -3274,7 +3082,6 @@ const deserializeAws_json1_1UpdateConnectionAliasPermissionCommandError = async
|
|
|
3274
3082
|
...output,
|
|
3275
3083
|
body: await parseBody(output.body, context),
|
|
3276
3084
|
};
|
|
3277
|
-
let response;
|
|
3278
3085
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3279
3086
|
switch (errorCode) {
|
|
3280
3087
|
case "AccessDeniedException":
|
|
@@ -3300,14 +3107,12 @@ const deserializeAws_json1_1UpdateConnectionAliasPermissionCommandError = async
|
|
|
3300
3107
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3301
3108
|
default:
|
|
3302
3109
|
const parsedBody = parsedOutput.body;
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
$metadata,
|
|
3110
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3111
|
+
output,
|
|
3112
|
+
parsedBody,
|
|
3113
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
3114
|
+
errorCode,
|
|
3309
3115
|
});
|
|
3310
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3311
3116
|
}
|
|
3312
3117
|
};
|
|
3313
3118
|
const deserializeAws_json1_1UpdateRulesOfIpGroupCommand = async (output, context) => {
|
|
@@ -3329,7 +3134,6 @@ const deserializeAws_json1_1UpdateRulesOfIpGroupCommandError = async (output, co
|
|
|
3329
3134
|
...output,
|
|
3330
3135
|
body: await parseBody(output.body, context),
|
|
3331
3136
|
};
|
|
3332
|
-
let response;
|
|
3333
3137
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3334
3138
|
switch (errorCode) {
|
|
3335
3139
|
case "AccessDeniedException":
|
|
@@ -3349,14 +3153,12 @@ const deserializeAws_json1_1UpdateRulesOfIpGroupCommandError = async (output, co
|
|
|
3349
3153
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3350
3154
|
default:
|
|
3351
3155
|
const parsedBody = parsedOutput.body;
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
$metadata,
|
|
3156
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3157
|
+
output,
|
|
3158
|
+
parsedBody,
|
|
3159
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
3160
|
+
errorCode,
|
|
3358
3161
|
});
|
|
3359
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3360
3162
|
}
|
|
3361
3163
|
};
|
|
3362
3164
|
const deserializeAws_json1_1UpdateWorkspaceBundleCommand = async (output, context) => {
|
|
@@ -3378,7 +3180,6 @@ const deserializeAws_json1_1UpdateWorkspaceBundleCommandError = async (output, c
|
|
|
3378
3180
|
...output,
|
|
3379
3181
|
body: await parseBody(output.body, context),
|
|
3380
3182
|
};
|
|
3381
|
-
let response;
|
|
3382
3183
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3383
3184
|
switch (errorCode) {
|
|
3384
3185
|
case "AccessDeniedException":
|
|
@@ -3395,14 +3196,12 @@ const deserializeAws_json1_1UpdateWorkspaceBundleCommandError = async (output, c
|
|
|
3395
3196
|
throw await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context);
|
|
3396
3197
|
default:
|
|
3397
3198
|
const parsedBody = parsedOutput.body;
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
$metadata,
|
|
3199
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3200
|
+
output,
|
|
3201
|
+
parsedBody,
|
|
3202
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
3203
|
+
errorCode,
|
|
3404
3204
|
});
|
|
3405
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3406
3205
|
}
|
|
3407
3206
|
};
|
|
3408
3207
|
const deserializeAws_json1_1UpdateWorkspaceImagePermissionCommand = async (output, context) => {
|
|
@@ -3424,7 +3223,6 @@ const deserializeAws_json1_1UpdateWorkspaceImagePermissionCommandError = async (
|
|
|
3424
3223
|
...output,
|
|
3425
3224
|
body: await parseBody(output.body, context),
|
|
3426
3225
|
};
|
|
3427
|
-
let response;
|
|
3428
3226
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3429
3227
|
switch (errorCode) {
|
|
3430
3228
|
case "AccessDeniedException":
|
|
@@ -3444,14 +3242,12 @@ const deserializeAws_json1_1UpdateWorkspaceImagePermissionCommandError = async (
|
|
|
3444
3242
|
throw await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context);
|
|
3445
3243
|
default:
|
|
3446
3244
|
const parsedBody = parsedOutput.body;
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
$metadata,
|
|
3245
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3246
|
+
output,
|
|
3247
|
+
parsedBody,
|
|
3248
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
3249
|
+
errorCode,
|
|
3453
3250
|
});
|
|
3454
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3455
3251
|
}
|
|
3456
3252
|
};
|
|
3457
3253
|
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -3584,9 +3380,6 @@ const serializeAws_json1_1ApplicationList = (input, context) => {
|
|
|
3584
3380
|
return input
|
|
3585
3381
|
.filter((e) => e != null)
|
|
3586
3382
|
.map((entry) => {
|
|
3587
|
-
if (entry === null) {
|
|
3588
|
-
return null;
|
|
3589
|
-
}
|
|
3590
3383
|
return entry;
|
|
3591
3384
|
});
|
|
3592
3385
|
};
|
|
@@ -3612,9 +3405,6 @@ const serializeAws_json1_1BundleIdList = (input, context) => {
|
|
|
3612
3405
|
return input
|
|
3613
3406
|
.filter((e) => e != null)
|
|
3614
3407
|
.map((entry) => {
|
|
3615
|
-
if (entry === null) {
|
|
3616
|
-
return null;
|
|
3617
|
-
}
|
|
3618
3408
|
return entry;
|
|
3619
3409
|
});
|
|
3620
3410
|
};
|
|
@@ -3622,9 +3412,6 @@ const serializeAws_json1_1ClientDeviceTypeList = (input, context) => {
|
|
|
3622
3412
|
return input
|
|
3623
3413
|
.filter((e) => e != null)
|
|
3624
3414
|
.map((entry) => {
|
|
3625
|
-
if (entry === null) {
|
|
3626
|
-
return null;
|
|
3627
|
-
}
|
|
3628
3415
|
return entry;
|
|
3629
3416
|
});
|
|
3630
3417
|
};
|
|
@@ -3642,9 +3429,6 @@ const serializeAws_json1_1ConnectionAliasIdList = (input, context) => {
|
|
|
3642
3429
|
return input
|
|
3643
3430
|
.filter((e) => e != null)
|
|
3644
3431
|
.map((entry) => {
|
|
3645
|
-
if (entry === null) {
|
|
3646
|
-
return null;
|
|
3647
|
-
}
|
|
3648
3432
|
return entry;
|
|
3649
3433
|
});
|
|
3650
3434
|
};
|
|
@@ -3737,9 +3521,6 @@ const serializeAws_json1_1DeletableSamlPropertiesList = (input, context) => {
|
|
|
3737
3521
|
return input
|
|
3738
3522
|
.filter((e) => e != null)
|
|
3739
3523
|
.map((entry) => {
|
|
3740
|
-
if (entry === null) {
|
|
3741
|
-
return null;
|
|
3742
|
-
}
|
|
3743
3524
|
return entry;
|
|
3744
3525
|
});
|
|
3745
3526
|
};
|
|
@@ -3898,9 +3679,6 @@ const serializeAws_json1_1DirectoryIdList = (input, context) => {
|
|
|
3898
3679
|
return input
|
|
3899
3680
|
.filter((e) => e != null)
|
|
3900
3681
|
.map((entry) => {
|
|
3901
|
-
if (entry === null) {
|
|
3902
|
-
return null;
|
|
3903
|
-
}
|
|
3904
3682
|
return entry;
|
|
3905
3683
|
});
|
|
3906
3684
|
};
|
|
@@ -3965,9 +3743,6 @@ const serializeAws_json1_1IpGroupIdList = (input, context) => {
|
|
|
3965
3743
|
return input
|
|
3966
3744
|
.filter((e) => e != null)
|
|
3967
3745
|
.map((entry) => {
|
|
3968
|
-
if (entry === null) {
|
|
3969
|
-
return null;
|
|
3970
|
-
}
|
|
3971
3746
|
return entry;
|
|
3972
3747
|
});
|
|
3973
3748
|
};
|
|
@@ -3975,9 +3750,6 @@ const serializeAws_json1_1IpRevokedRuleList = (input, context) => {
|
|
|
3975
3750
|
return input
|
|
3976
3751
|
.filter((e) => e != null)
|
|
3977
3752
|
.map((entry) => {
|
|
3978
|
-
if (entry === null) {
|
|
3979
|
-
return null;
|
|
3980
|
-
}
|
|
3981
3753
|
return entry;
|
|
3982
3754
|
});
|
|
3983
3755
|
};
|
|
@@ -3991,9 +3763,6 @@ const serializeAws_json1_1IpRuleList = (input, context) => {
|
|
|
3991
3763
|
return input
|
|
3992
3764
|
.filter((e) => e != null)
|
|
3993
3765
|
.map((entry) => {
|
|
3994
|
-
if (entry === null) {
|
|
3995
|
-
return null;
|
|
3996
|
-
}
|
|
3997
3766
|
return serializeAws_json1_1IpRuleItem(entry, context);
|
|
3998
3767
|
});
|
|
3999
3768
|
};
|
|
@@ -4097,9 +3866,6 @@ const serializeAws_json1_1RebootWorkspaceRequests = (input, context) => {
|
|
|
4097
3866
|
return input
|
|
4098
3867
|
.filter((e) => e != null)
|
|
4099
3868
|
.map((entry) => {
|
|
4100
|
-
if (entry === null) {
|
|
4101
|
-
return null;
|
|
4102
|
-
}
|
|
4103
3869
|
return serializeAws_json1_1RebootRequest(entry, context);
|
|
4104
3870
|
});
|
|
4105
3871
|
};
|
|
@@ -4119,9 +3885,6 @@ const serializeAws_json1_1RebuildWorkspaceRequests = (input, context) => {
|
|
|
4119
3885
|
return input
|
|
4120
3886
|
.filter((e) => e != null)
|
|
4121
3887
|
.map((entry) => {
|
|
4122
|
-
if (entry === null) {
|
|
4123
|
-
return null;
|
|
4124
|
-
}
|
|
4125
3888
|
return serializeAws_json1_1RebuildRequest(entry, context);
|
|
4126
3889
|
});
|
|
4127
3890
|
};
|
|
@@ -4146,9 +3909,6 @@ const serializeAws_json1_1ResourceIdList = (input, context) => {
|
|
|
4146
3909
|
return input
|
|
4147
3910
|
.filter((e) => e != null)
|
|
4148
3911
|
.map((entry) => {
|
|
4149
|
-
if (entry === null) {
|
|
4150
|
-
return null;
|
|
4151
|
-
}
|
|
4152
3912
|
return entry;
|
|
4153
3913
|
});
|
|
4154
3914
|
};
|
|
@@ -4193,9 +3953,6 @@ const serializeAws_json1_1StartWorkspaceRequests = (input, context) => {
|
|
|
4193
3953
|
return input
|
|
4194
3954
|
.filter((e) => e != null)
|
|
4195
3955
|
.map((entry) => {
|
|
4196
|
-
if (entry === null) {
|
|
4197
|
-
return null;
|
|
4198
|
-
}
|
|
4199
3956
|
return serializeAws_json1_1StartRequest(entry, context);
|
|
4200
3957
|
});
|
|
4201
3958
|
};
|
|
@@ -4215,9 +3972,6 @@ const serializeAws_json1_1StopWorkspaceRequests = (input, context) => {
|
|
|
4215
3972
|
return input
|
|
4216
3973
|
.filter((e) => e != null)
|
|
4217
3974
|
.map((entry) => {
|
|
4218
|
-
if (entry === null) {
|
|
4219
|
-
return null;
|
|
4220
|
-
}
|
|
4221
3975
|
return serializeAws_json1_1StopRequest(entry, context);
|
|
4222
3976
|
});
|
|
4223
3977
|
};
|
|
@@ -4232,9 +3986,6 @@ const serializeAws_json1_1SubnetIds = (input, context) => {
|
|
|
4232
3986
|
return input
|
|
4233
3987
|
.filter((e) => e != null)
|
|
4234
3988
|
.map((entry) => {
|
|
4235
|
-
if (entry === null) {
|
|
4236
|
-
return null;
|
|
4237
|
-
}
|
|
4238
3989
|
return entry;
|
|
4239
3990
|
});
|
|
4240
3991
|
};
|
|
@@ -4248,9 +3999,6 @@ const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
|
4248
3999
|
return input
|
|
4249
4000
|
.filter((e) => e != null)
|
|
4250
4001
|
.map((entry) => {
|
|
4251
|
-
if (entry === null) {
|
|
4252
|
-
return null;
|
|
4253
|
-
}
|
|
4254
4002
|
return entry;
|
|
4255
4003
|
});
|
|
4256
4004
|
};
|
|
@@ -4258,9 +4006,6 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
4258
4006
|
return input
|
|
4259
4007
|
.filter((e) => e != null)
|
|
4260
4008
|
.map((entry) => {
|
|
4261
|
-
if (entry === null) {
|
|
4262
|
-
return null;
|
|
4263
|
-
}
|
|
4264
4009
|
return serializeAws_json1_1Tag(entry, context);
|
|
4265
4010
|
});
|
|
4266
4011
|
};
|
|
@@ -4273,9 +4018,6 @@ const serializeAws_json1_1TerminateWorkspaceRequests = (input, context) => {
|
|
|
4273
4018
|
return input
|
|
4274
4019
|
.filter((e) => e != null)
|
|
4275
4020
|
.map((entry) => {
|
|
4276
|
-
if (entry === null) {
|
|
4277
|
-
return null;
|
|
4278
|
-
}
|
|
4279
4021
|
return serializeAws_json1_1TerminateRequest(entry, context);
|
|
4280
4022
|
});
|
|
4281
4023
|
};
|
|
@@ -4354,9 +4096,6 @@ const serializeAws_json1_1WorkspaceIdList = (input, context) => {
|
|
|
4354
4096
|
return input
|
|
4355
4097
|
.filter((e) => e != null)
|
|
4356
4098
|
.map((entry) => {
|
|
4357
|
-
if (entry === null) {
|
|
4358
|
-
return null;
|
|
4359
|
-
}
|
|
4360
4099
|
return entry;
|
|
4361
4100
|
});
|
|
4362
4101
|
};
|
|
@@ -4364,9 +4103,6 @@ const serializeAws_json1_1WorkspaceImageIdList = (input, context) => {
|
|
|
4364
4103
|
return input
|
|
4365
4104
|
.filter((e) => e != null)
|
|
4366
4105
|
.map((entry) => {
|
|
4367
|
-
if (entry === null) {
|
|
4368
|
-
return null;
|
|
4369
|
-
}
|
|
4370
4106
|
return entry;
|
|
4371
4107
|
});
|
|
4372
4108
|
};
|
|
@@ -4403,9 +4139,6 @@ const serializeAws_json1_1WorkspaceRequestList = (input, context) => {
|
|
|
4403
4139
|
return input
|
|
4404
4140
|
.filter((e) => e != null)
|
|
4405
4141
|
.map((entry) => {
|
|
4406
|
-
if (entry === null) {
|
|
4407
|
-
return null;
|
|
4408
|
-
}
|
|
4409
4142
|
return serializeAws_json1_1WorkspaceRequest(entry, context);
|
|
4410
4143
|
});
|
|
4411
4144
|
};
|