@aws-sdk/client-workspaces-thin-client 3.504.0 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +27 -471
- package/dist-es/protocols/Aws_restJson1.js +26 -470
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -856,7 +856,7 @@ var se_UpdateSoftwareSetCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
856
856
|
}, "se_UpdateSoftwareSetCommand");
|
|
857
857
|
var de_CreateEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
858
858
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
859
|
-
return
|
|
859
|
+
return de_CommandError(output, context);
|
|
860
860
|
}
|
|
861
861
|
const contents = (0, import_smithy_client.map)({
|
|
862
862
|
$metadata: deserializeMetadata(output)
|
|
@@ -868,46 +868,9 @@ var de_CreateEnvironmentCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
868
868
|
Object.assign(contents, doc);
|
|
869
869
|
return contents;
|
|
870
870
|
}, "de_CreateEnvironmentCommand");
|
|
871
|
-
var de_CreateEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
872
|
-
const parsedOutput = {
|
|
873
|
-
...output,
|
|
874
|
-
body: await parseErrorBody(output.body, context)
|
|
875
|
-
};
|
|
876
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
877
|
-
switch (errorCode) {
|
|
878
|
-
case "AccessDeniedException":
|
|
879
|
-
case "com.amazonaws.workspacesthinclient#AccessDeniedException":
|
|
880
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
881
|
-
case "ConflictException":
|
|
882
|
-
case "com.amazonaws.workspacesthinclient#ConflictException":
|
|
883
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
884
|
-
case "InternalServerException":
|
|
885
|
-
case "com.amazonaws.workspacesthinclient#InternalServerException":
|
|
886
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
887
|
-
case "ResourceNotFoundException":
|
|
888
|
-
case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
|
|
889
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
890
|
-
case "ServiceQuotaExceededException":
|
|
891
|
-
case "com.amazonaws.workspacesthinclient#ServiceQuotaExceededException":
|
|
892
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
893
|
-
case "ThrottlingException":
|
|
894
|
-
case "com.amazonaws.workspacesthinclient#ThrottlingException":
|
|
895
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
896
|
-
case "ValidationException":
|
|
897
|
-
case "com.amazonaws.workspacesthinclient#ValidationException":
|
|
898
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
899
|
-
default:
|
|
900
|
-
const parsedBody = parsedOutput.body;
|
|
901
|
-
return throwDefaultError({
|
|
902
|
-
output,
|
|
903
|
-
parsedBody,
|
|
904
|
-
errorCode
|
|
905
|
-
});
|
|
906
|
-
}
|
|
907
|
-
}, "de_CreateEnvironmentCommandError");
|
|
908
871
|
var de_DeleteDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
909
872
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
910
|
-
return
|
|
873
|
+
return de_CommandError(output, context);
|
|
911
874
|
}
|
|
912
875
|
const contents = (0, import_smithy_client.map)({
|
|
913
876
|
$metadata: deserializeMetadata(output)
|
|
@@ -915,43 +878,9 @@ var de_DeleteDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
915
878
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
916
879
|
return contents;
|
|
917
880
|
}, "de_DeleteDeviceCommand");
|
|
918
|
-
var de_DeleteDeviceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
919
|
-
const parsedOutput = {
|
|
920
|
-
...output,
|
|
921
|
-
body: await parseErrorBody(output.body, context)
|
|
922
|
-
};
|
|
923
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
924
|
-
switch (errorCode) {
|
|
925
|
-
case "AccessDeniedException":
|
|
926
|
-
case "com.amazonaws.workspacesthinclient#AccessDeniedException":
|
|
927
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
928
|
-
case "ConflictException":
|
|
929
|
-
case "com.amazonaws.workspacesthinclient#ConflictException":
|
|
930
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
931
|
-
case "InternalServerException":
|
|
932
|
-
case "com.amazonaws.workspacesthinclient#InternalServerException":
|
|
933
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
934
|
-
case "ResourceNotFoundException":
|
|
935
|
-
case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
|
|
936
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
937
|
-
case "ThrottlingException":
|
|
938
|
-
case "com.amazonaws.workspacesthinclient#ThrottlingException":
|
|
939
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
940
|
-
case "ValidationException":
|
|
941
|
-
case "com.amazonaws.workspacesthinclient#ValidationException":
|
|
942
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
943
|
-
default:
|
|
944
|
-
const parsedBody = parsedOutput.body;
|
|
945
|
-
return throwDefaultError({
|
|
946
|
-
output,
|
|
947
|
-
parsedBody,
|
|
948
|
-
errorCode
|
|
949
|
-
});
|
|
950
|
-
}
|
|
951
|
-
}, "de_DeleteDeviceCommandError");
|
|
952
881
|
var de_DeleteEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
953
882
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
954
|
-
return
|
|
883
|
+
return de_CommandError(output, context);
|
|
955
884
|
}
|
|
956
885
|
const contents = (0, import_smithy_client.map)({
|
|
957
886
|
$metadata: deserializeMetadata(output)
|
|
@@ -959,43 +888,9 @@ var de_DeleteEnvironmentCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
959
888
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
960
889
|
return contents;
|
|
961
890
|
}, "de_DeleteEnvironmentCommand");
|
|
962
|
-
var de_DeleteEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
963
|
-
const parsedOutput = {
|
|
964
|
-
...output,
|
|
965
|
-
body: await parseErrorBody(output.body, context)
|
|
966
|
-
};
|
|
967
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
968
|
-
switch (errorCode) {
|
|
969
|
-
case "AccessDeniedException":
|
|
970
|
-
case "com.amazonaws.workspacesthinclient#AccessDeniedException":
|
|
971
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
972
|
-
case "ConflictException":
|
|
973
|
-
case "com.amazonaws.workspacesthinclient#ConflictException":
|
|
974
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
975
|
-
case "InternalServerException":
|
|
976
|
-
case "com.amazonaws.workspacesthinclient#InternalServerException":
|
|
977
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
978
|
-
case "ResourceNotFoundException":
|
|
979
|
-
case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
|
|
980
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
981
|
-
case "ThrottlingException":
|
|
982
|
-
case "com.amazonaws.workspacesthinclient#ThrottlingException":
|
|
983
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
984
|
-
case "ValidationException":
|
|
985
|
-
case "com.amazonaws.workspacesthinclient#ValidationException":
|
|
986
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
987
|
-
default:
|
|
988
|
-
const parsedBody = parsedOutput.body;
|
|
989
|
-
return throwDefaultError({
|
|
990
|
-
output,
|
|
991
|
-
parsedBody,
|
|
992
|
-
errorCode
|
|
993
|
-
});
|
|
994
|
-
}
|
|
995
|
-
}, "de_DeleteEnvironmentCommandError");
|
|
996
891
|
var de_DeregisterDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
997
892
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
998
|
-
return
|
|
893
|
+
return de_CommandError(output, context);
|
|
999
894
|
}
|
|
1000
895
|
const contents = (0, import_smithy_client.map)({
|
|
1001
896
|
$metadata: deserializeMetadata(output)
|
|
@@ -1003,43 +898,9 @@ var de_DeregisterDeviceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1003
898
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1004
899
|
return contents;
|
|
1005
900
|
}, "de_DeregisterDeviceCommand");
|
|
1006
|
-
var de_DeregisterDeviceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1007
|
-
const parsedOutput = {
|
|
1008
|
-
...output,
|
|
1009
|
-
body: await parseErrorBody(output.body, context)
|
|
1010
|
-
};
|
|
1011
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1012
|
-
switch (errorCode) {
|
|
1013
|
-
case "AccessDeniedException":
|
|
1014
|
-
case "com.amazonaws.workspacesthinclient#AccessDeniedException":
|
|
1015
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1016
|
-
case "ConflictException":
|
|
1017
|
-
case "com.amazonaws.workspacesthinclient#ConflictException":
|
|
1018
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1019
|
-
case "InternalServerException":
|
|
1020
|
-
case "com.amazonaws.workspacesthinclient#InternalServerException":
|
|
1021
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1022
|
-
case "ResourceNotFoundException":
|
|
1023
|
-
case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
|
|
1024
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1025
|
-
case "ThrottlingException":
|
|
1026
|
-
case "com.amazonaws.workspacesthinclient#ThrottlingException":
|
|
1027
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1028
|
-
case "ValidationException":
|
|
1029
|
-
case "com.amazonaws.workspacesthinclient#ValidationException":
|
|
1030
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1031
|
-
default:
|
|
1032
|
-
const parsedBody = parsedOutput.body;
|
|
1033
|
-
return throwDefaultError({
|
|
1034
|
-
output,
|
|
1035
|
-
parsedBody,
|
|
1036
|
-
errorCode
|
|
1037
|
-
});
|
|
1038
|
-
}
|
|
1039
|
-
}, "de_DeregisterDeviceCommandError");
|
|
1040
901
|
var de_GetDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1041
902
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1042
|
-
return
|
|
903
|
+
return de_CommandError(output, context);
|
|
1043
904
|
}
|
|
1044
905
|
const contents = (0, import_smithy_client.map)({
|
|
1045
906
|
$metadata: deserializeMetadata(output)
|
|
@@ -1051,40 +912,9 @@ var de_GetDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1051
912
|
Object.assign(contents, doc);
|
|
1052
913
|
return contents;
|
|
1053
914
|
}, "de_GetDeviceCommand");
|
|
1054
|
-
var de_GetDeviceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1055
|
-
const parsedOutput = {
|
|
1056
|
-
...output,
|
|
1057
|
-
body: await parseErrorBody(output.body, context)
|
|
1058
|
-
};
|
|
1059
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1060
|
-
switch (errorCode) {
|
|
1061
|
-
case "AccessDeniedException":
|
|
1062
|
-
case "com.amazonaws.workspacesthinclient#AccessDeniedException":
|
|
1063
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1064
|
-
case "InternalServerException":
|
|
1065
|
-
case "com.amazonaws.workspacesthinclient#InternalServerException":
|
|
1066
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1067
|
-
case "ResourceNotFoundException":
|
|
1068
|
-
case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
|
|
1069
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1070
|
-
case "ThrottlingException":
|
|
1071
|
-
case "com.amazonaws.workspacesthinclient#ThrottlingException":
|
|
1072
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1073
|
-
case "ValidationException":
|
|
1074
|
-
case "com.amazonaws.workspacesthinclient#ValidationException":
|
|
1075
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1076
|
-
default:
|
|
1077
|
-
const parsedBody = parsedOutput.body;
|
|
1078
|
-
return throwDefaultError({
|
|
1079
|
-
output,
|
|
1080
|
-
parsedBody,
|
|
1081
|
-
errorCode
|
|
1082
|
-
});
|
|
1083
|
-
}
|
|
1084
|
-
}, "de_GetDeviceCommandError");
|
|
1085
915
|
var de_GetEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1086
916
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1087
|
-
return
|
|
917
|
+
return de_CommandError(output, context);
|
|
1088
918
|
}
|
|
1089
919
|
const contents = (0, import_smithy_client.map)({
|
|
1090
920
|
$metadata: deserializeMetadata(output)
|
|
@@ -1096,40 +926,9 @@ var de_GetEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1096
926
|
Object.assign(contents, doc);
|
|
1097
927
|
return contents;
|
|
1098
928
|
}, "de_GetEnvironmentCommand");
|
|
1099
|
-
var de_GetEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1100
|
-
const parsedOutput = {
|
|
1101
|
-
...output,
|
|
1102
|
-
body: await parseErrorBody(output.body, context)
|
|
1103
|
-
};
|
|
1104
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1105
|
-
switch (errorCode) {
|
|
1106
|
-
case "AccessDeniedException":
|
|
1107
|
-
case "com.amazonaws.workspacesthinclient#AccessDeniedException":
|
|
1108
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1109
|
-
case "InternalServerException":
|
|
1110
|
-
case "com.amazonaws.workspacesthinclient#InternalServerException":
|
|
1111
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1112
|
-
case "ResourceNotFoundException":
|
|
1113
|
-
case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
|
|
1114
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1115
|
-
case "ThrottlingException":
|
|
1116
|
-
case "com.amazonaws.workspacesthinclient#ThrottlingException":
|
|
1117
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1118
|
-
case "ValidationException":
|
|
1119
|
-
case "com.amazonaws.workspacesthinclient#ValidationException":
|
|
1120
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1121
|
-
default:
|
|
1122
|
-
const parsedBody = parsedOutput.body;
|
|
1123
|
-
return throwDefaultError({
|
|
1124
|
-
output,
|
|
1125
|
-
parsedBody,
|
|
1126
|
-
errorCode
|
|
1127
|
-
});
|
|
1128
|
-
}
|
|
1129
|
-
}, "de_GetEnvironmentCommandError");
|
|
1130
929
|
var de_GetSoftwareSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1131
930
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1132
|
-
return
|
|
931
|
+
return de_CommandError(output, context);
|
|
1133
932
|
}
|
|
1134
933
|
const contents = (0, import_smithy_client.map)({
|
|
1135
934
|
$metadata: deserializeMetadata(output)
|
|
@@ -1141,40 +940,9 @@ var de_GetSoftwareSetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1141
940
|
Object.assign(contents, doc);
|
|
1142
941
|
return contents;
|
|
1143
942
|
}, "de_GetSoftwareSetCommand");
|
|
1144
|
-
var de_GetSoftwareSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1145
|
-
const parsedOutput = {
|
|
1146
|
-
...output,
|
|
1147
|
-
body: await parseErrorBody(output.body, context)
|
|
1148
|
-
};
|
|
1149
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1150
|
-
switch (errorCode) {
|
|
1151
|
-
case "AccessDeniedException":
|
|
1152
|
-
case "com.amazonaws.workspacesthinclient#AccessDeniedException":
|
|
1153
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1154
|
-
case "InternalServerException":
|
|
1155
|
-
case "com.amazonaws.workspacesthinclient#InternalServerException":
|
|
1156
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1157
|
-
case "ResourceNotFoundException":
|
|
1158
|
-
case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
|
|
1159
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1160
|
-
case "ThrottlingException":
|
|
1161
|
-
case "com.amazonaws.workspacesthinclient#ThrottlingException":
|
|
1162
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1163
|
-
case "ValidationException":
|
|
1164
|
-
case "com.amazonaws.workspacesthinclient#ValidationException":
|
|
1165
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1166
|
-
default:
|
|
1167
|
-
const parsedBody = parsedOutput.body;
|
|
1168
|
-
return throwDefaultError({
|
|
1169
|
-
output,
|
|
1170
|
-
parsedBody,
|
|
1171
|
-
errorCode
|
|
1172
|
-
});
|
|
1173
|
-
}
|
|
1174
|
-
}, "de_GetSoftwareSetCommandError");
|
|
1175
943
|
var de_ListDevicesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1176
944
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1177
|
-
return
|
|
945
|
+
return de_CommandError(output, context);
|
|
1178
946
|
}
|
|
1179
947
|
const contents = (0, import_smithy_client.map)({
|
|
1180
948
|
$metadata: deserializeMetadata(output)
|
|
@@ -1187,37 +955,9 @@ var de_ListDevicesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1187
955
|
Object.assign(contents, doc);
|
|
1188
956
|
return contents;
|
|
1189
957
|
}, "de_ListDevicesCommand");
|
|
1190
|
-
var de_ListDevicesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1191
|
-
const parsedOutput = {
|
|
1192
|
-
...output,
|
|
1193
|
-
body: await parseErrorBody(output.body, context)
|
|
1194
|
-
};
|
|
1195
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1196
|
-
switch (errorCode) {
|
|
1197
|
-
case "AccessDeniedException":
|
|
1198
|
-
case "com.amazonaws.workspacesthinclient#AccessDeniedException":
|
|
1199
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1200
|
-
case "InternalServerException":
|
|
1201
|
-
case "com.amazonaws.workspacesthinclient#InternalServerException":
|
|
1202
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1203
|
-
case "ThrottlingException":
|
|
1204
|
-
case "com.amazonaws.workspacesthinclient#ThrottlingException":
|
|
1205
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1206
|
-
case "ValidationException":
|
|
1207
|
-
case "com.amazonaws.workspacesthinclient#ValidationException":
|
|
1208
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1209
|
-
default:
|
|
1210
|
-
const parsedBody = parsedOutput.body;
|
|
1211
|
-
return throwDefaultError({
|
|
1212
|
-
output,
|
|
1213
|
-
parsedBody,
|
|
1214
|
-
errorCode
|
|
1215
|
-
});
|
|
1216
|
-
}
|
|
1217
|
-
}, "de_ListDevicesCommandError");
|
|
1218
958
|
var de_ListEnvironmentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1219
959
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1220
|
-
return
|
|
960
|
+
return de_CommandError(output, context);
|
|
1221
961
|
}
|
|
1222
962
|
const contents = (0, import_smithy_client.map)({
|
|
1223
963
|
$metadata: deserializeMetadata(output)
|
|
@@ -1230,37 +970,9 @@ var de_ListEnvironmentsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1230
970
|
Object.assign(contents, doc);
|
|
1231
971
|
return contents;
|
|
1232
972
|
}, "de_ListEnvironmentsCommand");
|
|
1233
|
-
var de_ListEnvironmentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1234
|
-
const parsedOutput = {
|
|
1235
|
-
...output,
|
|
1236
|
-
body: await parseErrorBody(output.body, context)
|
|
1237
|
-
};
|
|
1238
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1239
|
-
switch (errorCode) {
|
|
1240
|
-
case "AccessDeniedException":
|
|
1241
|
-
case "com.amazonaws.workspacesthinclient#AccessDeniedException":
|
|
1242
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1243
|
-
case "InternalServerException":
|
|
1244
|
-
case "com.amazonaws.workspacesthinclient#InternalServerException":
|
|
1245
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1246
|
-
case "ThrottlingException":
|
|
1247
|
-
case "com.amazonaws.workspacesthinclient#ThrottlingException":
|
|
1248
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1249
|
-
case "ValidationException":
|
|
1250
|
-
case "com.amazonaws.workspacesthinclient#ValidationException":
|
|
1251
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1252
|
-
default:
|
|
1253
|
-
const parsedBody = parsedOutput.body;
|
|
1254
|
-
return throwDefaultError({
|
|
1255
|
-
output,
|
|
1256
|
-
parsedBody,
|
|
1257
|
-
errorCode
|
|
1258
|
-
});
|
|
1259
|
-
}
|
|
1260
|
-
}, "de_ListEnvironmentsCommandError");
|
|
1261
973
|
var de_ListSoftwareSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1262
974
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1263
|
-
return
|
|
975
|
+
return de_CommandError(output, context);
|
|
1264
976
|
}
|
|
1265
977
|
const contents = (0, import_smithy_client.map)({
|
|
1266
978
|
$metadata: deserializeMetadata(output)
|
|
@@ -1273,37 +985,9 @@ var de_ListSoftwareSetsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1273
985
|
Object.assign(contents, doc);
|
|
1274
986
|
return contents;
|
|
1275
987
|
}, "de_ListSoftwareSetsCommand");
|
|
1276
|
-
var de_ListSoftwareSetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1277
|
-
const parsedOutput = {
|
|
1278
|
-
...output,
|
|
1279
|
-
body: await parseErrorBody(output.body, context)
|
|
1280
|
-
};
|
|
1281
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1282
|
-
switch (errorCode) {
|
|
1283
|
-
case "AccessDeniedException":
|
|
1284
|
-
case "com.amazonaws.workspacesthinclient#AccessDeniedException":
|
|
1285
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1286
|
-
case "InternalServerException":
|
|
1287
|
-
case "com.amazonaws.workspacesthinclient#InternalServerException":
|
|
1288
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1289
|
-
case "ThrottlingException":
|
|
1290
|
-
case "com.amazonaws.workspacesthinclient#ThrottlingException":
|
|
1291
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1292
|
-
case "ValidationException":
|
|
1293
|
-
case "com.amazonaws.workspacesthinclient#ValidationException":
|
|
1294
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1295
|
-
default:
|
|
1296
|
-
const parsedBody = parsedOutput.body;
|
|
1297
|
-
return throwDefaultError({
|
|
1298
|
-
output,
|
|
1299
|
-
parsedBody,
|
|
1300
|
-
errorCode
|
|
1301
|
-
});
|
|
1302
|
-
}
|
|
1303
|
-
}, "de_ListSoftwareSetsCommandError");
|
|
1304
988
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1305
989
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1306
|
-
return
|
|
990
|
+
return de_CommandError(output, context);
|
|
1307
991
|
}
|
|
1308
992
|
const contents = (0, import_smithy_client.map)({
|
|
1309
993
|
$metadata: deserializeMetadata(output)
|
|
@@ -1315,34 +999,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1315
999
|
Object.assign(contents, doc);
|
|
1316
1000
|
return contents;
|
|
1317
1001
|
}, "de_ListTagsForResourceCommand");
|
|
1318
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1319
|
-
const parsedOutput = {
|
|
1320
|
-
...output,
|
|
1321
|
-
body: await parseErrorBody(output.body, context)
|
|
1322
|
-
};
|
|
1323
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1324
|
-
switch (errorCode) {
|
|
1325
|
-
case "InternalServiceException":
|
|
1326
|
-
case "com.amazonaws.workspacesthinclient#InternalServiceException":
|
|
1327
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1328
|
-
case "ResourceNotFoundException":
|
|
1329
|
-
case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
|
|
1330
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1331
|
-
case "ValidationException":
|
|
1332
|
-
case "com.amazonaws.workspacesthinclient#ValidationException":
|
|
1333
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1334
|
-
default:
|
|
1335
|
-
const parsedBody = parsedOutput.body;
|
|
1336
|
-
return throwDefaultError({
|
|
1337
|
-
output,
|
|
1338
|
-
parsedBody,
|
|
1339
|
-
errorCode
|
|
1340
|
-
});
|
|
1341
|
-
}
|
|
1342
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1343
1002
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1344
1003
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1345
|
-
return
|
|
1004
|
+
return de_CommandError(output, context);
|
|
1346
1005
|
}
|
|
1347
1006
|
const contents = (0, import_smithy_client.map)({
|
|
1348
1007
|
$metadata: deserializeMetadata(output)
|
|
@@ -1350,34 +1009,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1350
1009
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1351
1010
|
return contents;
|
|
1352
1011
|
}, "de_TagResourceCommand");
|
|
1353
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1354
|
-
const parsedOutput = {
|
|
1355
|
-
...output,
|
|
1356
|
-
body: await parseErrorBody(output.body, context)
|
|
1357
|
-
};
|
|
1358
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1359
|
-
switch (errorCode) {
|
|
1360
|
-
case "InternalServiceException":
|
|
1361
|
-
case "com.amazonaws.workspacesthinclient#InternalServiceException":
|
|
1362
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1363
|
-
case "ResourceNotFoundException":
|
|
1364
|
-
case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
|
|
1365
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1366
|
-
case "ValidationException":
|
|
1367
|
-
case "com.amazonaws.workspacesthinclient#ValidationException":
|
|
1368
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1369
|
-
default:
|
|
1370
|
-
const parsedBody = parsedOutput.body;
|
|
1371
|
-
return throwDefaultError({
|
|
1372
|
-
output,
|
|
1373
|
-
parsedBody,
|
|
1374
|
-
errorCode
|
|
1375
|
-
});
|
|
1376
|
-
}
|
|
1377
|
-
}, "de_TagResourceCommandError");
|
|
1378
1012
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1379
1013
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1380
|
-
return
|
|
1014
|
+
return de_CommandError(output, context);
|
|
1381
1015
|
}
|
|
1382
1016
|
const contents = (0, import_smithy_client.map)({
|
|
1383
1017
|
$metadata: deserializeMetadata(output)
|
|
@@ -1385,34 +1019,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1385
1019
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1386
1020
|
return contents;
|
|
1387
1021
|
}, "de_UntagResourceCommand");
|
|
1388
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1389
|
-
const parsedOutput = {
|
|
1390
|
-
...output,
|
|
1391
|
-
body: await parseErrorBody(output.body, context)
|
|
1392
|
-
};
|
|
1393
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1394
|
-
switch (errorCode) {
|
|
1395
|
-
case "InternalServiceException":
|
|
1396
|
-
case "com.amazonaws.workspacesthinclient#InternalServiceException":
|
|
1397
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1398
|
-
case "ResourceNotFoundException":
|
|
1399
|
-
case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
|
|
1400
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1401
|
-
case "ValidationException":
|
|
1402
|
-
case "com.amazonaws.workspacesthinclient#ValidationException":
|
|
1403
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1404
|
-
default:
|
|
1405
|
-
const parsedBody = parsedOutput.body;
|
|
1406
|
-
return throwDefaultError({
|
|
1407
|
-
output,
|
|
1408
|
-
parsedBody,
|
|
1409
|
-
errorCode
|
|
1410
|
-
});
|
|
1411
|
-
}
|
|
1412
|
-
}, "de_UntagResourceCommandError");
|
|
1413
1022
|
var de_UpdateDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1414
1023
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1415
|
-
return
|
|
1024
|
+
return de_CommandError(output, context);
|
|
1416
1025
|
}
|
|
1417
1026
|
const contents = (0, import_smithy_client.map)({
|
|
1418
1027
|
$metadata: deserializeMetadata(output)
|
|
@@ -1424,40 +1033,9 @@ var de_UpdateDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1424
1033
|
Object.assign(contents, doc);
|
|
1425
1034
|
return contents;
|
|
1426
1035
|
}, "de_UpdateDeviceCommand");
|
|
1427
|
-
var de_UpdateDeviceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1428
|
-
const parsedOutput = {
|
|
1429
|
-
...output,
|
|
1430
|
-
body: await parseErrorBody(output.body, context)
|
|
1431
|
-
};
|
|
1432
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1433
|
-
switch (errorCode) {
|
|
1434
|
-
case "AccessDeniedException":
|
|
1435
|
-
case "com.amazonaws.workspacesthinclient#AccessDeniedException":
|
|
1436
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1437
|
-
case "InternalServerException":
|
|
1438
|
-
case "com.amazonaws.workspacesthinclient#InternalServerException":
|
|
1439
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1440
|
-
case "ResourceNotFoundException":
|
|
1441
|
-
case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
|
|
1442
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1443
|
-
case "ThrottlingException":
|
|
1444
|
-
case "com.amazonaws.workspacesthinclient#ThrottlingException":
|
|
1445
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1446
|
-
case "ValidationException":
|
|
1447
|
-
case "com.amazonaws.workspacesthinclient#ValidationException":
|
|
1448
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1449
|
-
default:
|
|
1450
|
-
const parsedBody = parsedOutput.body;
|
|
1451
|
-
return throwDefaultError({
|
|
1452
|
-
output,
|
|
1453
|
-
parsedBody,
|
|
1454
|
-
errorCode
|
|
1455
|
-
});
|
|
1456
|
-
}
|
|
1457
|
-
}, "de_UpdateDeviceCommandError");
|
|
1458
1036
|
var de_UpdateEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1459
1037
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1460
|
-
return
|
|
1038
|
+
return de_CommandError(output, context);
|
|
1461
1039
|
}
|
|
1462
1040
|
const contents = (0, import_smithy_client.map)({
|
|
1463
1041
|
$metadata: deserializeMetadata(output)
|
|
@@ -1469,40 +1047,9 @@ var de_UpdateEnvironmentCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1469
1047
|
Object.assign(contents, doc);
|
|
1470
1048
|
return contents;
|
|
1471
1049
|
}, "de_UpdateEnvironmentCommand");
|
|
1472
|
-
var de_UpdateEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1473
|
-
const parsedOutput = {
|
|
1474
|
-
...output,
|
|
1475
|
-
body: await parseErrorBody(output.body, context)
|
|
1476
|
-
};
|
|
1477
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1478
|
-
switch (errorCode) {
|
|
1479
|
-
case "AccessDeniedException":
|
|
1480
|
-
case "com.amazonaws.workspacesthinclient#AccessDeniedException":
|
|
1481
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1482
|
-
case "InternalServerException":
|
|
1483
|
-
case "com.amazonaws.workspacesthinclient#InternalServerException":
|
|
1484
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1485
|
-
case "ResourceNotFoundException":
|
|
1486
|
-
case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
|
|
1487
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1488
|
-
case "ThrottlingException":
|
|
1489
|
-
case "com.amazonaws.workspacesthinclient#ThrottlingException":
|
|
1490
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1491
|
-
case "ValidationException":
|
|
1492
|
-
case "com.amazonaws.workspacesthinclient#ValidationException":
|
|
1493
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1494
|
-
default:
|
|
1495
|
-
const parsedBody = parsedOutput.body;
|
|
1496
|
-
return throwDefaultError({
|
|
1497
|
-
output,
|
|
1498
|
-
parsedBody,
|
|
1499
|
-
errorCode
|
|
1500
|
-
});
|
|
1501
|
-
}
|
|
1502
|
-
}, "de_UpdateEnvironmentCommandError");
|
|
1503
1050
|
var de_UpdateSoftwareSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1504
1051
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1505
|
-
return
|
|
1052
|
+
return de_CommandError(output, context);
|
|
1506
1053
|
}
|
|
1507
1054
|
const contents = (0, import_smithy_client.map)({
|
|
1508
1055
|
$metadata: deserializeMetadata(output)
|
|
@@ -1510,7 +1057,7 @@ var de_UpdateSoftwareSetCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1510
1057
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1511
1058
|
return contents;
|
|
1512
1059
|
}, "de_UpdateSoftwareSetCommand");
|
|
1513
|
-
var
|
|
1060
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1514
1061
|
const parsedOutput = {
|
|
1515
1062
|
...output,
|
|
1516
1063
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1520,18 +1067,27 @@ var de_UpdateSoftwareSetCommandError = /* @__PURE__ */ __name(async (output, con
|
|
|
1520
1067
|
case "AccessDeniedException":
|
|
1521
1068
|
case "com.amazonaws.workspacesthinclient#AccessDeniedException":
|
|
1522
1069
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1070
|
+
case "ConflictException":
|
|
1071
|
+
case "com.amazonaws.workspacesthinclient#ConflictException":
|
|
1072
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1523
1073
|
case "InternalServerException":
|
|
1524
1074
|
case "com.amazonaws.workspacesthinclient#InternalServerException":
|
|
1525
1075
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1526
1076
|
case "ResourceNotFoundException":
|
|
1527
1077
|
case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
|
|
1528
1078
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1079
|
+
case "ServiceQuotaExceededException":
|
|
1080
|
+
case "com.amazonaws.workspacesthinclient#ServiceQuotaExceededException":
|
|
1081
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1529
1082
|
case "ThrottlingException":
|
|
1530
1083
|
case "com.amazonaws.workspacesthinclient#ThrottlingException":
|
|
1531
1084
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1532
1085
|
case "ValidationException":
|
|
1533
1086
|
case "com.amazonaws.workspacesthinclient#ValidationException":
|
|
1534
1087
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1088
|
+
case "InternalServiceException":
|
|
1089
|
+
case "com.amazonaws.workspacesthinclient#InternalServiceException":
|
|
1090
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1535
1091
|
default:
|
|
1536
1092
|
const parsedBody = parsedOutput.body;
|
|
1537
1093
|
return throwDefaultError({
|
|
@@ -1540,7 +1096,7 @@ var de_UpdateSoftwareSetCommandError = /* @__PURE__ */ __name(async (output, con
|
|
|
1540
1096
|
errorCode
|
|
1541
1097
|
});
|
|
1542
1098
|
}
|
|
1543
|
-
}, "
|
|
1099
|
+
}, "de_CommandError");
|
|
1544
1100
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(WorkSpacesThinClientServiceException);
|
|
1545
1101
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1546
1102
|
const contents = (0, import_smithy_client.map)({});
|
|
@@ -347,7 +347,7 @@ export const se_UpdateSoftwareSetCommand = async (input, context) => {
|
|
|
347
347
|
};
|
|
348
348
|
export const de_CreateEnvironmentCommand = async (output, context) => {
|
|
349
349
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
350
|
-
return
|
|
350
|
+
return de_CommandError(output, context);
|
|
351
351
|
}
|
|
352
352
|
const contents = map({
|
|
353
353
|
$metadata: deserializeMetadata(output),
|
|
@@ -359,46 +359,9 @@ export const de_CreateEnvironmentCommand = async (output, context) => {
|
|
|
359
359
|
Object.assign(contents, doc);
|
|
360
360
|
return contents;
|
|
361
361
|
};
|
|
362
|
-
const de_CreateEnvironmentCommandError = async (output, context) => {
|
|
363
|
-
const parsedOutput = {
|
|
364
|
-
...output,
|
|
365
|
-
body: await parseErrorBody(output.body, context),
|
|
366
|
-
};
|
|
367
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
368
|
-
switch (errorCode) {
|
|
369
|
-
case "AccessDeniedException":
|
|
370
|
-
case "com.amazonaws.workspacesthinclient#AccessDeniedException":
|
|
371
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
372
|
-
case "ConflictException":
|
|
373
|
-
case "com.amazonaws.workspacesthinclient#ConflictException":
|
|
374
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
375
|
-
case "InternalServerException":
|
|
376
|
-
case "com.amazonaws.workspacesthinclient#InternalServerException":
|
|
377
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
378
|
-
case "ResourceNotFoundException":
|
|
379
|
-
case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
|
|
380
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
381
|
-
case "ServiceQuotaExceededException":
|
|
382
|
-
case "com.amazonaws.workspacesthinclient#ServiceQuotaExceededException":
|
|
383
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
384
|
-
case "ThrottlingException":
|
|
385
|
-
case "com.amazonaws.workspacesthinclient#ThrottlingException":
|
|
386
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
387
|
-
case "ValidationException":
|
|
388
|
-
case "com.amazonaws.workspacesthinclient#ValidationException":
|
|
389
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
390
|
-
default:
|
|
391
|
-
const parsedBody = parsedOutput.body;
|
|
392
|
-
return throwDefaultError({
|
|
393
|
-
output,
|
|
394
|
-
parsedBody,
|
|
395
|
-
errorCode,
|
|
396
|
-
});
|
|
397
|
-
}
|
|
398
|
-
};
|
|
399
362
|
export const de_DeleteDeviceCommand = async (output, context) => {
|
|
400
363
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
401
|
-
return
|
|
364
|
+
return de_CommandError(output, context);
|
|
402
365
|
}
|
|
403
366
|
const contents = map({
|
|
404
367
|
$metadata: deserializeMetadata(output),
|
|
@@ -406,43 +369,9 @@ export const de_DeleteDeviceCommand = async (output, context) => {
|
|
|
406
369
|
await collectBody(output.body, context);
|
|
407
370
|
return contents;
|
|
408
371
|
};
|
|
409
|
-
const de_DeleteDeviceCommandError = async (output, context) => {
|
|
410
|
-
const parsedOutput = {
|
|
411
|
-
...output,
|
|
412
|
-
body: await parseErrorBody(output.body, context),
|
|
413
|
-
};
|
|
414
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
415
|
-
switch (errorCode) {
|
|
416
|
-
case "AccessDeniedException":
|
|
417
|
-
case "com.amazonaws.workspacesthinclient#AccessDeniedException":
|
|
418
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
419
|
-
case "ConflictException":
|
|
420
|
-
case "com.amazonaws.workspacesthinclient#ConflictException":
|
|
421
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
422
|
-
case "InternalServerException":
|
|
423
|
-
case "com.amazonaws.workspacesthinclient#InternalServerException":
|
|
424
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
425
|
-
case "ResourceNotFoundException":
|
|
426
|
-
case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
|
|
427
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
428
|
-
case "ThrottlingException":
|
|
429
|
-
case "com.amazonaws.workspacesthinclient#ThrottlingException":
|
|
430
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
431
|
-
case "ValidationException":
|
|
432
|
-
case "com.amazonaws.workspacesthinclient#ValidationException":
|
|
433
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
434
|
-
default:
|
|
435
|
-
const parsedBody = parsedOutput.body;
|
|
436
|
-
return throwDefaultError({
|
|
437
|
-
output,
|
|
438
|
-
parsedBody,
|
|
439
|
-
errorCode,
|
|
440
|
-
});
|
|
441
|
-
}
|
|
442
|
-
};
|
|
443
372
|
export const de_DeleteEnvironmentCommand = async (output, context) => {
|
|
444
373
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
445
|
-
return
|
|
374
|
+
return de_CommandError(output, context);
|
|
446
375
|
}
|
|
447
376
|
const contents = map({
|
|
448
377
|
$metadata: deserializeMetadata(output),
|
|
@@ -450,43 +379,9 @@ export const de_DeleteEnvironmentCommand = async (output, context) => {
|
|
|
450
379
|
await collectBody(output.body, context);
|
|
451
380
|
return contents;
|
|
452
381
|
};
|
|
453
|
-
const de_DeleteEnvironmentCommandError = async (output, context) => {
|
|
454
|
-
const parsedOutput = {
|
|
455
|
-
...output,
|
|
456
|
-
body: await parseErrorBody(output.body, context),
|
|
457
|
-
};
|
|
458
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
459
|
-
switch (errorCode) {
|
|
460
|
-
case "AccessDeniedException":
|
|
461
|
-
case "com.amazonaws.workspacesthinclient#AccessDeniedException":
|
|
462
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
463
|
-
case "ConflictException":
|
|
464
|
-
case "com.amazonaws.workspacesthinclient#ConflictException":
|
|
465
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
466
|
-
case "InternalServerException":
|
|
467
|
-
case "com.amazonaws.workspacesthinclient#InternalServerException":
|
|
468
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
469
|
-
case "ResourceNotFoundException":
|
|
470
|
-
case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
|
|
471
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
472
|
-
case "ThrottlingException":
|
|
473
|
-
case "com.amazonaws.workspacesthinclient#ThrottlingException":
|
|
474
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
475
|
-
case "ValidationException":
|
|
476
|
-
case "com.amazonaws.workspacesthinclient#ValidationException":
|
|
477
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
478
|
-
default:
|
|
479
|
-
const parsedBody = parsedOutput.body;
|
|
480
|
-
return throwDefaultError({
|
|
481
|
-
output,
|
|
482
|
-
parsedBody,
|
|
483
|
-
errorCode,
|
|
484
|
-
});
|
|
485
|
-
}
|
|
486
|
-
};
|
|
487
382
|
export const de_DeregisterDeviceCommand = async (output, context) => {
|
|
488
383
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
489
|
-
return
|
|
384
|
+
return de_CommandError(output, context);
|
|
490
385
|
}
|
|
491
386
|
const contents = map({
|
|
492
387
|
$metadata: deserializeMetadata(output),
|
|
@@ -494,43 +389,9 @@ export const de_DeregisterDeviceCommand = async (output, context) => {
|
|
|
494
389
|
await collectBody(output.body, context);
|
|
495
390
|
return contents;
|
|
496
391
|
};
|
|
497
|
-
const de_DeregisterDeviceCommandError = async (output, context) => {
|
|
498
|
-
const parsedOutput = {
|
|
499
|
-
...output,
|
|
500
|
-
body: await parseErrorBody(output.body, context),
|
|
501
|
-
};
|
|
502
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
503
|
-
switch (errorCode) {
|
|
504
|
-
case "AccessDeniedException":
|
|
505
|
-
case "com.amazonaws.workspacesthinclient#AccessDeniedException":
|
|
506
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
507
|
-
case "ConflictException":
|
|
508
|
-
case "com.amazonaws.workspacesthinclient#ConflictException":
|
|
509
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
510
|
-
case "InternalServerException":
|
|
511
|
-
case "com.amazonaws.workspacesthinclient#InternalServerException":
|
|
512
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
513
|
-
case "ResourceNotFoundException":
|
|
514
|
-
case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
|
|
515
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
516
|
-
case "ThrottlingException":
|
|
517
|
-
case "com.amazonaws.workspacesthinclient#ThrottlingException":
|
|
518
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
519
|
-
case "ValidationException":
|
|
520
|
-
case "com.amazonaws.workspacesthinclient#ValidationException":
|
|
521
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
522
|
-
default:
|
|
523
|
-
const parsedBody = parsedOutput.body;
|
|
524
|
-
return throwDefaultError({
|
|
525
|
-
output,
|
|
526
|
-
parsedBody,
|
|
527
|
-
errorCode,
|
|
528
|
-
});
|
|
529
|
-
}
|
|
530
|
-
};
|
|
531
392
|
export const de_GetDeviceCommand = async (output, context) => {
|
|
532
393
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
533
|
-
return
|
|
394
|
+
return de_CommandError(output, context);
|
|
534
395
|
}
|
|
535
396
|
const contents = map({
|
|
536
397
|
$metadata: deserializeMetadata(output),
|
|
@@ -542,40 +403,9 @@ export const de_GetDeviceCommand = async (output, context) => {
|
|
|
542
403
|
Object.assign(contents, doc);
|
|
543
404
|
return contents;
|
|
544
405
|
};
|
|
545
|
-
const de_GetDeviceCommandError = async (output, context) => {
|
|
546
|
-
const parsedOutput = {
|
|
547
|
-
...output,
|
|
548
|
-
body: await parseErrorBody(output.body, context),
|
|
549
|
-
};
|
|
550
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
551
|
-
switch (errorCode) {
|
|
552
|
-
case "AccessDeniedException":
|
|
553
|
-
case "com.amazonaws.workspacesthinclient#AccessDeniedException":
|
|
554
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
555
|
-
case "InternalServerException":
|
|
556
|
-
case "com.amazonaws.workspacesthinclient#InternalServerException":
|
|
557
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
558
|
-
case "ResourceNotFoundException":
|
|
559
|
-
case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
|
|
560
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
561
|
-
case "ThrottlingException":
|
|
562
|
-
case "com.amazonaws.workspacesthinclient#ThrottlingException":
|
|
563
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
564
|
-
case "ValidationException":
|
|
565
|
-
case "com.amazonaws.workspacesthinclient#ValidationException":
|
|
566
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
567
|
-
default:
|
|
568
|
-
const parsedBody = parsedOutput.body;
|
|
569
|
-
return throwDefaultError({
|
|
570
|
-
output,
|
|
571
|
-
parsedBody,
|
|
572
|
-
errorCode,
|
|
573
|
-
});
|
|
574
|
-
}
|
|
575
|
-
};
|
|
576
406
|
export const de_GetEnvironmentCommand = async (output, context) => {
|
|
577
407
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
578
|
-
return
|
|
408
|
+
return de_CommandError(output, context);
|
|
579
409
|
}
|
|
580
410
|
const contents = map({
|
|
581
411
|
$metadata: deserializeMetadata(output),
|
|
@@ -587,40 +417,9 @@ export const de_GetEnvironmentCommand = async (output, context) => {
|
|
|
587
417
|
Object.assign(contents, doc);
|
|
588
418
|
return contents;
|
|
589
419
|
};
|
|
590
|
-
const de_GetEnvironmentCommandError = async (output, context) => {
|
|
591
|
-
const parsedOutput = {
|
|
592
|
-
...output,
|
|
593
|
-
body: await parseErrorBody(output.body, context),
|
|
594
|
-
};
|
|
595
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
596
|
-
switch (errorCode) {
|
|
597
|
-
case "AccessDeniedException":
|
|
598
|
-
case "com.amazonaws.workspacesthinclient#AccessDeniedException":
|
|
599
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
600
|
-
case "InternalServerException":
|
|
601
|
-
case "com.amazonaws.workspacesthinclient#InternalServerException":
|
|
602
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
603
|
-
case "ResourceNotFoundException":
|
|
604
|
-
case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
|
|
605
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
606
|
-
case "ThrottlingException":
|
|
607
|
-
case "com.amazonaws.workspacesthinclient#ThrottlingException":
|
|
608
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
609
|
-
case "ValidationException":
|
|
610
|
-
case "com.amazonaws.workspacesthinclient#ValidationException":
|
|
611
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
612
|
-
default:
|
|
613
|
-
const parsedBody = parsedOutput.body;
|
|
614
|
-
return throwDefaultError({
|
|
615
|
-
output,
|
|
616
|
-
parsedBody,
|
|
617
|
-
errorCode,
|
|
618
|
-
});
|
|
619
|
-
}
|
|
620
|
-
};
|
|
621
420
|
export const de_GetSoftwareSetCommand = async (output, context) => {
|
|
622
421
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
623
|
-
return
|
|
422
|
+
return de_CommandError(output, context);
|
|
624
423
|
}
|
|
625
424
|
const contents = map({
|
|
626
425
|
$metadata: deserializeMetadata(output),
|
|
@@ -632,40 +431,9 @@ export const de_GetSoftwareSetCommand = async (output, context) => {
|
|
|
632
431
|
Object.assign(contents, doc);
|
|
633
432
|
return contents;
|
|
634
433
|
};
|
|
635
|
-
const de_GetSoftwareSetCommandError = async (output, context) => {
|
|
636
|
-
const parsedOutput = {
|
|
637
|
-
...output,
|
|
638
|
-
body: await parseErrorBody(output.body, context),
|
|
639
|
-
};
|
|
640
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
641
|
-
switch (errorCode) {
|
|
642
|
-
case "AccessDeniedException":
|
|
643
|
-
case "com.amazonaws.workspacesthinclient#AccessDeniedException":
|
|
644
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
645
|
-
case "InternalServerException":
|
|
646
|
-
case "com.amazonaws.workspacesthinclient#InternalServerException":
|
|
647
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
648
|
-
case "ResourceNotFoundException":
|
|
649
|
-
case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
|
|
650
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
651
|
-
case "ThrottlingException":
|
|
652
|
-
case "com.amazonaws.workspacesthinclient#ThrottlingException":
|
|
653
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
654
|
-
case "ValidationException":
|
|
655
|
-
case "com.amazonaws.workspacesthinclient#ValidationException":
|
|
656
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
657
|
-
default:
|
|
658
|
-
const parsedBody = parsedOutput.body;
|
|
659
|
-
return throwDefaultError({
|
|
660
|
-
output,
|
|
661
|
-
parsedBody,
|
|
662
|
-
errorCode,
|
|
663
|
-
});
|
|
664
|
-
}
|
|
665
|
-
};
|
|
666
434
|
export const de_ListDevicesCommand = async (output, context) => {
|
|
667
435
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
668
|
-
return
|
|
436
|
+
return de_CommandError(output, context);
|
|
669
437
|
}
|
|
670
438
|
const contents = map({
|
|
671
439
|
$metadata: deserializeMetadata(output),
|
|
@@ -678,37 +446,9 @@ export const de_ListDevicesCommand = async (output, context) => {
|
|
|
678
446
|
Object.assign(contents, doc);
|
|
679
447
|
return contents;
|
|
680
448
|
};
|
|
681
|
-
const de_ListDevicesCommandError = async (output, context) => {
|
|
682
|
-
const parsedOutput = {
|
|
683
|
-
...output,
|
|
684
|
-
body: await parseErrorBody(output.body, context),
|
|
685
|
-
};
|
|
686
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
687
|
-
switch (errorCode) {
|
|
688
|
-
case "AccessDeniedException":
|
|
689
|
-
case "com.amazonaws.workspacesthinclient#AccessDeniedException":
|
|
690
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
691
|
-
case "InternalServerException":
|
|
692
|
-
case "com.amazonaws.workspacesthinclient#InternalServerException":
|
|
693
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
694
|
-
case "ThrottlingException":
|
|
695
|
-
case "com.amazonaws.workspacesthinclient#ThrottlingException":
|
|
696
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
697
|
-
case "ValidationException":
|
|
698
|
-
case "com.amazonaws.workspacesthinclient#ValidationException":
|
|
699
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
700
|
-
default:
|
|
701
|
-
const parsedBody = parsedOutput.body;
|
|
702
|
-
return throwDefaultError({
|
|
703
|
-
output,
|
|
704
|
-
parsedBody,
|
|
705
|
-
errorCode,
|
|
706
|
-
});
|
|
707
|
-
}
|
|
708
|
-
};
|
|
709
449
|
export const de_ListEnvironmentsCommand = async (output, context) => {
|
|
710
450
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
711
|
-
return
|
|
451
|
+
return de_CommandError(output, context);
|
|
712
452
|
}
|
|
713
453
|
const contents = map({
|
|
714
454
|
$metadata: deserializeMetadata(output),
|
|
@@ -721,37 +461,9 @@ export const de_ListEnvironmentsCommand = async (output, context) => {
|
|
|
721
461
|
Object.assign(contents, doc);
|
|
722
462
|
return contents;
|
|
723
463
|
};
|
|
724
|
-
const de_ListEnvironmentsCommandError = async (output, context) => {
|
|
725
|
-
const parsedOutput = {
|
|
726
|
-
...output,
|
|
727
|
-
body: await parseErrorBody(output.body, context),
|
|
728
|
-
};
|
|
729
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
730
|
-
switch (errorCode) {
|
|
731
|
-
case "AccessDeniedException":
|
|
732
|
-
case "com.amazonaws.workspacesthinclient#AccessDeniedException":
|
|
733
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
734
|
-
case "InternalServerException":
|
|
735
|
-
case "com.amazonaws.workspacesthinclient#InternalServerException":
|
|
736
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
737
|
-
case "ThrottlingException":
|
|
738
|
-
case "com.amazonaws.workspacesthinclient#ThrottlingException":
|
|
739
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
740
|
-
case "ValidationException":
|
|
741
|
-
case "com.amazonaws.workspacesthinclient#ValidationException":
|
|
742
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
743
|
-
default:
|
|
744
|
-
const parsedBody = parsedOutput.body;
|
|
745
|
-
return throwDefaultError({
|
|
746
|
-
output,
|
|
747
|
-
parsedBody,
|
|
748
|
-
errorCode,
|
|
749
|
-
});
|
|
750
|
-
}
|
|
751
|
-
};
|
|
752
464
|
export const de_ListSoftwareSetsCommand = async (output, context) => {
|
|
753
465
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
754
|
-
return
|
|
466
|
+
return de_CommandError(output, context);
|
|
755
467
|
}
|
|
756
468
|
const contents = map({
|
|
757
469
|
$metadata: deserializeMetadata(output),
|
|
@@ -764,37 +476,9 @@ export const de_ListSoftwareSetsCommand = async (output, context) => {
|
|
|
764
476
|
Object.assign(contents, doc);
|
|
765
477
|
return contents;
|
|
766
478
|
};
|
|
767
|
-
const de_ListSoftwareSetsCommandError = async (output, context) => {
|
|
768
|
-
const parsedOutput = {
|
|
769
|
-
...output,
|
|
770
|
-
body: await parseErrorBody(output.body, context),
|
|
771
|
-
};
|
|
772
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
773
|
-
switch (errorCode) {
|
|
774
|
-
case "AccessDeniedException":
|
|
775
|
-
case "com.amazonaws.workspacesthinclient#AccessDeniedException":
|
|
776
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
777
|
-
case "InternalServerException":
|
|
778
|
-
case "com.amazonaws.workspacesthinclient#InternalServerException":
|
|
779
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
780
|
-
case "ThrottlingException":
|
|
781
|
-
case "com.amazonaws.workspacesthinclient#ThrottlingException":
|
|
782
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
783
|
-
case "ValidationException":
|
|
784
|
-
case "com.amazonaws.workspacesthinclient#ValidationException":
|
|
785
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
786
|
-
default:
|
|
787
|
-
const parsedBody = parsedOutput.body;
|
|
788
|
-
return throwDefaultError({
|
|
789
|
-
output,
|
|
790
|
-
parsedBody,
|
|
791
|
-
errorCode,
|
|
792
|
-
});
|
|
793
|
-
}
|
|
794
|
-
};
|
|
795
479
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
796
480
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
797
|
-
return
|
|
481
|
+
return de_CommandError(output, context);
|
|
798
482
|
}
|
|
799
483
|
const contents = map({
|
|
800
484
|
$metadata: deserializeMetadata(output),
|
|
@@ -806,34 +490,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
806
490
|
Object.assign(contents, doc);
|
|
807
491
|
return contents;
|
|
808
492
|
};
|
|
809
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
810
|
-
const parsedOutput = {
|
|
811
|
-
...output,
|
|
812
|
-
body: await parseErrorBody(output.body, context),
|
|
813
|
-
};
|
|
814
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
815
|
-
switch (errorCode) {
|
|
816
|
-
case "InternalServiceException":
|
|
817
|
-
case "com.amazonaws.workspacesthinclient#InternalServiceException":
|
|
818
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
819
|
-
case "ResourceNotFoundException":
|
|
820
|
-
case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
|
|
821
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
822
|
-
case "ValidationException":
|
|
823
|
-
case "com.amazonaws.workspacesthinclient#ValidationException":
|
|
824
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
825
|
-
default:
|
|
826
|
-
const parsedBody = parsedOutput.body;
|
|
827
|
-
return throwDefaultError({
|
|
828
|
-
output,
|
|
829
|
-
parsedBody,
|
|
830
|
-
errorCode,
|
|
831
|
-
});
|
|
832
|
-
}
|
|
833
|
-
};
|
|
834
493
|
export const de_TagResourceCommand = async (output, context) => {
|
|
835
494
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
836
|
-
return
|
|
495
|
+
return de_CommandError(output, context);
|
|
837
496
|
}
|
|
838
497
|
const contents = map({
|
|
839
498
|
$metadata: deserializeMetadata(output),
|
|
@@ -841,34 +500,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
841
500
|
await collectBody(output.body, context);
|
|
842
501
|
return contents;
|
|
843
502
|
};
|
|
844
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
845
|
-
const parsedOutput = {
|
|
846
|
-
...output,
|
|
847
|
-
body: await parseErrorBody(output.body, context),
|
|
848
|
-
};
|
|
849
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
850
|
-
switch (errorCode) {
|
|
851
|
-
case "InternalServiceException":
|
|
852
|
-
case "com.amazonaws.workspacesthinclient#InternalServiceException":
|
|
853
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
854
|
-
case "ResourceNotFoundException":
|
|
855
|
-
case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
|
|
856
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
857
|
-
case "ValidationException":
|
|
858
|
-
case "com.amazonaws.workspacesthinclient#ValidationException":
|
|
859
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
860
|
-
default:
|
|
861
|
-
const parsedBody = parsedOutput.body;
|
|
862
|
-
return throwDefaultError({
|
|
863
|
-
output,
|
|
864
|
-
parsedBody,
|
|
865
|
-
errorCode,
|
|
866
|
-
});
|
|
867
|
-
}
|
|
868
|
-
};
|
|
869
503
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
870
504
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
871
|
-
return
|
|
505
|
+
return de_CommandError(output, context);
|
|
872
506
|
}
|
|
873
507
|
const contents = map({
|
|
874
508
|
$metadata: deserializeMetadata(output),
|
|
@@ -876,34 +510,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
876
510
|
await collectBody(output.body, context);
|
|
877
511
|
return contents;
|
|
878
512
|
};
|
|
879
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
880
|
-
const parsedOutput = {
|
|
881
|
-
...output,
|
|
882
|
-
body: await parseErrorBody(output.body, context),
|
|
883
|
-
};
|
|
884
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
885
|
-
switch (errorCode) {
|
|
886
|
-
case "InternalServiceException":
|
|
887
|
-
case "com.amazonaws.workspacesthinclient#InternalServiceException":
|
|
888
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
889
|
-
case "ResourceNotFoundException":
|
|
890
|
-
case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
|
|
891
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
892
|
-
case "ValidationException":
|
|
893
|
-
case "com.amazonaws.workspacesthinclient#ValidationException":
|
|
894
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
895
|
-
default:
|
|
896
|
-
const parsedBody = parsedOutput.body;
|
|
897
|
-
return throwDefaultError({
|
|
898
|
-
output,
|
|
899
|
-
parsedBody,
|
|
900
|
-
errorCode,
|
|
901
|
-
});
|
|
902
|
-
}
|
|
903
|
-
};
|
|
904
513
|
export const de_UpdateDeviceCommand = async (output, context) => {
|
|
905
514
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
906
|
-
return
|
|
515
|
+
return de_CommandError(output, context);
|
|
907
516
|
}
|
|
908
517
|
const contents = map({
|
|
909
518
|
$metadata: deserializeMetadata(output),
|
|
@@ -915,40 +524,9 @@ export const de_UpdateDeviceCommand = async (output, context) => {
|
|
|
915
524
|
Object.assign(contents, doc);
|
|
916
525
|
return contents;
|
|
917
526
|
};
|
|
918
|
-
const de_UpdateDeviceCommandError = async (output, context) => {
|
|
919
|
-
const parsedOutput = {
|
|
920
|
-
...output,
|
|
921
|
-
body: await parseErrorBody(output.body, context),
|
|
922
|
-
};
|
|
923
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
924
|
-
switch (errorCode) {
|
|
925
|
-
case "AccessDeniedException":
|
|
926
|
-
case "com.amazonaws.workspacesthinclient#AccessDeniedException":
|
|
927
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
928
|
-
case "InternalServerException":
|
|
929
|
-
case "com.amazonaws.workspacesthinclient#InternalServerException":
|
|
930
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
931
|
-
case "ResourceNotFoundException":
|
|
932
|
-
case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
|
|
933
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
934
|
-
case "ThrottlingException":
|
|
935
|
-
case "com.amazonaws.workspacesthinclient#ThrottlingException":
|
|
936
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
937
|
-
case "ValidationException":
|
|
938
|
-
case "com.amazonaws.workspacesthinclient#ValidationException":
|
|
939
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
940
|
-
default:
|
|
941
|
-
const parsedBody = parsedOutput.body;
|
|
942
|
-
return throwDefaultError({
|
|
943
|
-
output,
|
|
944
|
-
parsedBody,
|
|
945
|
-
errorCode,
|
|
946
|
-
});
|
|
947
|
-
}
|
|
948
|
-
};
|
|
949
527
|
export const de_UpdateEnvironmentCommand = async (output, context) => {
|
|
950
528
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
951
|
-
return
|
|
529
|
+
return de_CommandError(output, context);
|
|
952
530
|
}
|
|
953
531
|
const contents = map({
|
|
954
532
|
$metadata: deserializeMetadata(output),
|
|
@@ -960,40 +538,9 @@ export const de_UpdateEnvironmentCommand = async (output, context) => {
|
|
|
960
538
|
Object.assign(contents, doc);
|
|
961
539
|
return contents;
|
|
962
540
|
};
|
|
963
|
-
const de_UpdateEnvironmentCommandError = async (output, context) => {
|
|
964
|
-
const parsedOutput = {
|
|
965
|
-
...output,
|
|
966
|
-
body: await parseErrorBody(output.body, context),
|
|
967
|
-
};
|
|
968
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
969
|
-
switch (errorCode) {
|
|
970
|
-
case "AccessDeniedException":
|
|
971
|
-
case "com.amazonaws.workspacesthinclient#AccessDeniedException":
|
|
972
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
973
|
-
case "InternalServerException":
|
|
974
|
-
case "com.amazonaws.workspacesthinclient#InternalServerException":
|
|
975
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
976
|
-
case "ResourceNotFoundException":
|
|
977
|
-
case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
|
|
978
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
979
|
-
case "ThrottlingException":
|
|
980
|
-
case "com.amazonaws.workspacesthinclient#ThrottlingException":
|
|
981
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
982
|
-
case "ValidationException":
|
|
983
|
-
case "com.amazonaws.workspacesthinclient#ValidationException":
|
|
984
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
985
|
-
default:
|
|
986
|
-
const parsedBody = parsedOutput.body;
|
|
987
|
-
return throwDefaultError({
|
|
988
|
-
output,
|
|
989
|
-
parsedBody,
|
|
990
|
-
errorCode,
|
|
991
|
-
});
|
|
992
|
-
}
|
|
993
|
-
};
|
|
994
541
|
export const de_UpdateSoftwareSetCommand = async (output, context) => {
|
|
995
542
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
996
|
-
return
|
|
543
|
+
return de_CommandError(output, context);
|
|
997
544
|
}
|
|
998
545
|
const contents = map({
|
|
999
546
|
$metadata: deserializeMetadata(output),
|
|
@@ -1001,7 +548,7 @@ export const de_UpdateSoftwareSetCommand = async (output, context) => {
|
|
|
1001
548
|
await collectBody(output.body, context);
|
|
1002
549
|
return contents;
|
|
1003
550
|
};
|
|
1004
|
-
const
|
|
551
|
+
const de_CommandError = async (output, context) => {
|
|
1005
552
|
const parsedOutput = {
|
|
1006
553
|
...output,
|
|
1007
554
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1011,18 +558,27 @@ const de_UpdateSoftwareSetCommandError = async (output, context) => {
|
|
|
1011
558
|
case "AccessDeniedException":
|
|
1012
559
|
case "com.amazonaws.workspacesthinclient#AccessDeniedException":
|
|
1013
560
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
561
|
+
case "ConflictException":
|
|
562
|
+
case "com.amazonaws.workspacesthinclient#ConflictException":
|
|
563
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1014
564
|
case "InternalServerException":
|
|
1015
565
|
case "com.amazonaws.workspacesthinclient#InternalServerException":
|
|
1016
566
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1017
567
|
case "ResourceNotFoundException":
|
|
1018
568
|
case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
|
|
1019
569
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
570
|
+
case "ServiceQuotaExceededException":
|
|
571
|
+
case "com.amazonaws.workspacesthinclient#ServiceQuotaExceededException":
|
|
572
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1020
573
|
case "ThrottlingException":
|
|
1021
574
|
case "com.amazonaws.workspacesthinclient#ThrottlingException":
|
|
1022
575
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1023
576
|
case "ValidationException":
|
|
1024
577
|
case "com.amazonaws.workspacesthinclient#ValidationException":
|
|
1025
578
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
579
|
+
case "InternalServiceException":
|
|
580
|
+
case "com.amazonaws.workspacesthinclient#InternalServiceException":
|
|
581
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1026
582
|
default:
|
|
1027
583
|
const parsedBody = parsedOutput.body;
|
|
1028
584
|
return throwDefaultError({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-workspaces-thin-client",
|
|
3
3
|
"description": "AWS SDK for JavaScript Workspaces Thin Client Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.507.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-workspaces-thin-client",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.507.0",
|
|
24
24
|
"@aws-sdk/core": "3.496.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.507.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.502.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.502.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.502.0",
|