@aws-sdk/client-workspaces 3.118.1 → 3.128.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 +580 -638
- package/dist-es/protocols/Aws_json1_1.js +466 -524
- package/package.json +26 -26
|
@@ -637,8 +637,7 @@ const deserializeAws_json1_1AssociateConnectionAliasCommandError = async (output
|
|
|
637
637
|
body: await parseBody(output.body, context),
|
|
638
638
|
};
|
|
639
639
|
let response;
|
|
640
|
-
|
|
641
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
640
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
642
641
|
switch (errorCode) {
|
|
643
642
|
case "AccessDeniedException":
|
|
644
643
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -660,10 +659,12 @@ const deserializeAws_json1_1AssociateConnectionAliasCommandError = async (output
|
|
|
660
659
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
661
660
|
default:
|
|
662
661
|
const parsedBody = parsedOutput.body;
|
|
662
|
+
const $metadata = deserializeMetadata(output);
|
|
663
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
663
664
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
664
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
665
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
665
666
|
$fault: "client",
|
|
666
|
-
$metadata
|
|
667
|
+
$metadata,
|
|
667
668
|
});
|
|
668
669
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
669
670
|
}
|
|
@@ -688,8 +689,7 @@ const deserializeAws_json1_1AssociateIpGroupsCommandError = async (output, conte
|
|
|
688
689
|
body: await parseBody(output.body, context),
|
|
689
690
|
};
|
|
690
691
|
let response;
|
|
691
|
-
|
|
692
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
692
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
693
693
|
switch (errorCode) {
|
|
694
694
|
case "AccessDeniedException":
|
|
695
695
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -711,10 +711,12 @@ const deserializeAws_json1_1AssociateIpGroupsCommandError = async (output, conte
|
|
|
711
711
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
712
712
|
default:
|
|
713
713
|
const parsedBody = parsedOutput.body;
|
|
714
|
+
const $metadata = deserializeMetadata(output);
|
|
715
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
714
716
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
715
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
717
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
716
718
|
$fault: "client",
|
|
717
|
-
$metadata
|
|
719
|
+
$metadata,
|
|
718
720
|
});
|
|
719
721
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
720
722
|
}
|
|
@@ -739,8 +741,7 @@ const deserializeAws_json1_1AuthorizeIpRulesCommandError = async (output, contex
|
|
|
739
741
|
body: await parseBody(output.body, context),
|
|
740
742
|
};
|
|
741
743
|
let response;
|
|
742
|
-
|
|
743
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
744
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
744
745
|
switch (errorCode) {
|
|
745
746
|
case "AccessDeniedException":
|
|
746
747
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -759,10 +760,12 @@ const deserializeAws_json1_1AuthorizeIpRulesCommandError = async (output, contex
|
|
|
759
760
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
760
761
|
default:
|
|
761
762
|
const parsedBody = parsedOutput.body;
|
|
763
|
+
const $metadata = deserializeMetadata(output);
|
|
764
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
762
765
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
763
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
766
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
764
767
|
$fault: "client",
|
|
765
|
-
$metadata
|
|
768
|
+
$metadata,
|
|
766
769
|
});
|
|
767
770
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
768
771
|
}
|
|
@@ -787,8 +790,7 @@ const deserializeAws_json1_1CopyWorkspaceImageCommandError = async (output, cont
|
|
|
787
790
|
body: await parseBody(output.body, context),
|
|
788
791
|
};
|
|
789
792
|
let response;
|
|
790
|
-
|
|
791
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
793
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
792
794
|
switch (errorCode) {
|
|
793
795
|
case "AccessDeniedException":
|
|
794
796
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -813,10 +815,12 @@ const deserializeAws_json1_1CopyWorkspaceImageCommandError = async (output, cont
|
|
|
813
815
|
throw await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context);
|
|
814
816
|
default:
|
|
815
817
|
const parsedBody = parsedOutput.body;
|
|
818
|
+
const $metadata = deserializeMetadata(output);
|
|
819
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
816
820
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
817
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
821
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
818
822
|
$fault: "client",
|
|
819
|
-
$metadata
|
|
823
|
+
$metadata,
|
|
820
824
|
});
|
|
821
825
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
822
826
|
}
|
|
@@ -841,8 +845,7 @@ const deserializeAws_json1_1CreateConnectClientAddInCommandError = async (output
|
|
|
841
845
|
body: await parseBody(output.body, context),
|
|
842
846
|
};
|
|
843
847
|
let response;
|
|
844
|
-
|
|
845
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
848
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
846
849
|
switch (errorCode) {
|
|
847
850
|
case "AccessDeniedException":
|
|
848
851
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -861,10 +864,12 @@ const deserializeAws_json1_1CreateConnectClientAddInCommandError = async (output
|
|
|
861
864
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
862
865
|
default:
|
|
863
866
|
const parsedBody = parsedOutput.body;
|
|
867
|
+
const $metadata = deserializeMetadata(output);
|
|
868
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
864
869
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
865
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
870
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
866
871
|
$fault: "client",
|
|
867
|
-
$metadata
|
|
872
|
+
$metadata,
|
|
868
873
|
});
|
|
869
874
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
870
875
|
}
|
|
@@ -889,8 +894,7 @@ const deserializeAws_json1_1CreateConnectionAliasCommandError = async (output, c
|
|
|
889
894
|
body: await parseBody(output.body, context),
|
|
890
895
|
};
|
|
891
896
|
let response;
|
|
892
|
-
|
|
893
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
897
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
894
898
|
switch (errorCode) {
|
|
895
899
|
case "AccessDeniedException":
|
|
896
900
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -912,10 +916,12 @@ const deserializeAws_json1_1CreateConnectionAliasCommandError = async (output, c
|
|
|
912
916
|
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
913
917
|
default:
|
|
914
918
|
const parsedBody = parsedOutput.body;
|
|
919
|
+
const $metadata = deserializeMetadata(output);
|
|
920
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
915
921
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
916
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
922
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
917
923
|
$fault: "client",
|
|
918
|
-
$metadata
|
|
924
|
+
$metadata,
|
|
919
925
|
});
|
|
920
926
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
921
927
|
}
|
|
@@ -940,8 +946,7 @@ const deserializeAws_json1_1CreateIpGroupCommandError = async (output, context)
|
|
|
940
946
|
body: await parseBody(output.body, context),
|
|
941
947
|
};
|
|
942
948
|
let response;
|
|
943
|
-
|
|
944
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
949
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
945
950
|
switch (errorCode) {
|
|
946
951
|
case "AccessDeniedException":
|
|
947
952
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -960,10 +965,12 @@ const deserializeAws_json1_1CreateIpGroupCommandError = async (output, context)
|
|
|
960
965
|
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
961
966
|
default:
|
|
962
967
|
const parsedBody = parsedOutput.body;
|
|
968
|
+
const $metadata = deserializeMetadata(output);
|
|
969
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
963
970
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
964
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
971
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
965
972
|
$fault: "client",
|
|
966
|
-
$metadata
|
|
973
|
+
$metadata,
|
|
967
974
|
});
|
|
968
975
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
969
976
|
}
|
|
@@ -988,8 +995,7 @@ const deserializeAws_json1_1CreateTagsCommandError = async (output, context) =>
|
|
|
988
995
|
body: await parseBody(output.body, context),
|
|
989
996
|
};
|
|
990
997
|
let response;
|
|
991
|
-
|
|
992
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
998
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
993
999
|
switch (errorCode) {
|
|
994
1000
|
case "InvalidParameterValuesException":
|
|
995
1001
|
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
@@ -1002,10 +1008,12 @@ const deserializeAws_json1_1CreateTagsCommandError = async (output, context) =>
|
|
|
1002
1008
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1003
1009
|
default:
|
|
1004
1010
|
const parsedBody = parsedOutput.body;
|
|
1011
|
+
const $metadata = deserializeMetadata(output);
|
|
1012
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1005
1013
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
1006
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1014
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1007
1015
|
$fault: "client",
|
|
1008
|
-
$metadata
|
|
1016
|
+
$metadata,
|
|
1009
1017
|
});
|
|
1010
1018
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1011
1019
|
}
|
|
@@ -1030,8 +1038,7 @@ const deserializeAws_json1_1CreateUpdatedWorkspaceImageCommandError = async (out
|
|
|
1030
1038
|
body: await parseBody(output.body, context),
|
|
1031
1039
|
};
|
|
1032
1040
|
let response;
|
|
1033
|
-
|
|
1034
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1041
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1035
1042
|
switch (errorCode) {
|
|
1036
1043
|
case "AccessDeniedException":
|
|
1037
1044
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -1056,10 +1063,12 @@ const deserializeAws_json1_1CreateUpdatedWorkspaceImageCommandError = async (out
|
|
|
1056
1063
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1057
1064
|
default:
|
|
1058
1065
|
const parsedBody = parsedOutput.body;
|
|
1066
|
+
const $metadata = deserializeMetadata(output);
|
|
1067
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1059
1068
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
1060
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1069
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1061
1070
|
$fault: "client",
|
|
1062
|
-
$metadata
|
|
1071
|
+
$metadata,
|
|
1063
1072
|
});
|
|
1064
1073
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1065
1074
|
}
|
|
@@ -1084,8 +1093,7 @@ const deserializeAws_json1_1CreateWorkspaceBundleCommandError = async (output, c
|
|
|
1084
1093
|
body: await parseBody(output.body, context),
|
|
1085
1094
|
};
|
|
1086
1095
|
let response;
|
|
1087
|
-
|
|
1088
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1096
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1089
1097
|
switch (errorCode) {
|
|
1090
1098
|
case "AccessDeniedException":
|
|
1091
1099
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -1107,10 +1115,12 @@ const deserializeAws_json1_1CreateWorkspaceBundleCommandError = async (output, c
|
|
|
1107
1115
|
throw await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context);
|
|
1108
1116
|
default:
|
|
1109
1117
|
const parsedBody = parsedOutput.body;
|
|
1118
|
+
const $metadata = deserializeMetadata(output);
|
|
1119
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1110
1120
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
1111
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1121
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1112
1122
|
$fault: "client",
|
|
1113
|
-
$metadata
|
|
1123
|
+
$metadata,
|
|
1114
1124
|
});
|
|
1115
1125
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1116
1126
|
}
|
|
@@ -1135,8 +1145,7 @@ const deserializeAws_json1_1CreateWorkspacesCommandError = async (output, contex
|
|
|
1135
1145
|
body: await parseBody(output.body, context),
|
|
1136
1146
|
};
|
|
1137
1147
|
let response;
|
|
1138
|
-
|
|
1139
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1148
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1140
1149
|
switch (errorCode) {
|
|
1141
1150
|
case "InvalidParameterValuesException":
|
|
1142
1151
|
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
@@ -1146,10 +1155,12 @@ const deserializeAws_json1_1CreateWorkspacesCommandError = async (output, contex
|
|
|
1146
1155
|
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
1147
1156
|
default:
|
|
1148
1157
|
const parsedBody = parsedOutput.body;
|
|
1158
|
+
const $metadata = deserializeMetadata(output);
|
|
1159
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1149
1160
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
1150
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1161
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1151
1162
|
$fault: "client",
|
|
1152
|
-
$metadata
|
|
1163
|
+
$metadata,
|
|
1153
1164
|
});
|
|
1154
1165
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1155
1166
|
}
|
|
@@ -1174,8 +1185,7 @@ const deserializeAws_json1_1DeleteClientBrandingCommandError = async (output, co
|
|
|
1174
1185
|
body: await parseBody(output.body, context),
|
|
1175
1186
|
};
|
|
1176
1187
|
let response;
|
|
1177
|
-
|
|
1178
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1188
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1179
1189
|
switch (errorCode) {
|
|
1180
1190
|
case "AccessDeniedException":
|
|
1181
1191
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -1188,10 +1198,12 @@ const deserializeAws_json1_1DeleteClientBrandingCommandError = async (output, co
|
|
|
1188
1198
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1189
1199
|
default:
|
|
1190
1200
|
const parsedBody = parsedOutput.body;
|
|
1201
|
+
const $metadata = deserializeMetadata(output);
|
|
1202
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1191
1203
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
1192
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1204
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1193
1205
|
$fault: "client",
|
|
1194
|
-
$metadata
|
|
1206
|
+
$metadata,
|
|
1195
1207
|
});
|
|
1196
1208
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1197
1209
|
}
|
|
@@ -1216,8 +1228,7 @@ const deserializeAws_json1_1DeleteConnectClientAddInCommandError = async (output
|
|
|
1216
1228
|
body: await parseBody(output.body, context),
|
|
1217
1229
|
};
|
|
1218
1230
|
let response;
|
|
1219
|
-
|
|
1220
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1231
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1221
1232
|
switch (errorCode) {
|
|
1222
1233
|
case "AccessDeniedException":
|
|
1223
1234
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -1230,10 +1241,12 @@ const deserializeAws_json1_1DeleteConnectClientAddInCommandError = async (output
|
|
|
1230
1241
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1231
1242
|
default:
|
|
1232
1243
|
const parsedBody = parsedOutput.body;
|
|
1244
|
+
const $metadata = deserializeMetadata(output);
|
|
1245
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1233
1246
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
1234
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1247
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1235
1248
|
$fault: "client",
|
|
1236
|
-
$metadata
|
|
1249
|
+
$metadata,
|
|
1237
1250
|
});
|
|
1238
1251
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1239
1252
|
}
|
|
@@ -1258,8 +1271,7 @@ const deserializeAws_json1_1DeleteConnectionAliasCommandError = async (output, c
|
|
|
1258
1271
|
body: await parseBody(output.body, context),
|
|
1259
1272
|
};
|
|
1260
1273
|
let response;
|
|
1261
|
-
|
|
1262
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1274
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1263
1275
|
switch (errorCode) {
|
|
1264
1276
|
case "AccessDeniedException":
|
|
1265
1277
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -1281,10 +1293,12 @@ const deserializeAws_json1_1DeleteConnectionAliasCommandError = async (output, c
|
|
|
1281
1293
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1282
1294
|
default:
|
|
1283
1295
|
const parsedBody = parsedOutput.body;
|
|
1296
|
+
const $metadata = deserializeMetadata(output);
|
|
1297
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1284
1298
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
1285
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1299
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1286
1300
|
$fault: "client",
|
|
1287
|
-
$metadata
|
|
1301
|
+
$metadata,
|
|
1288
1302
|
});
|
|
1289
1303
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1290
1304
|
}
|
|
@@ -1309,8 +1323,7 @@ const deserializeAws_json1_1DeleteIpGroupCommandError = async (output, context)
|
|
|
1309
1323
|
body: await parseBody(output.body, context),
|
|
1310
1324
|
};
|
|
1311
1325
|
let response;
|
|
1312
|
-
|
|
1313
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1326
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1314
1327
|
switch (errorCode) {
|
|
1315
1328
|
case "AccessDeniedException":
|
|
1316
1329
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -1326,10 +1339,12 @@ const deserializeAws_json1_1DeleteIpGroupCommandError = async (output, context)
|
|
|
1326
1339
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1327
1340
|
default:
|
|
1328
1341
|
const parsedBody = parsedOutput.body;
|
|
1342
|
+
const $metadata = deserializeMetadata(output);
|
|
1343
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1329
1344
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
1330
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1345
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1331
1346
|
$fault: "client",
|
|
1332
|
-
$metadata
|
|
1347
|
+
$metadata,
|
|
1333
1348
|
});
|
|
1334
1349
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1335
1350
|
}
|
|
@@ -1354,8 +1369,7 @@ const deserializeAws_json1_1DeleteTagsCommandError = async (output, context) =>
|
|
|
1354
1369
|
body: await parseBody(output.body, context),
|
|
1355
1370
|
};
|
|
1356
1371
|
let response;
|
|
1357
|
-
|
|
1358
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1372
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1359
1373
|
switch (errorCode) {
|
|
1360
1374
|
case "InvalidParameterValuesException":
|
|
1361
1375
|
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
@@ -1365,10 +1379,12 @@ const deserializeAws_json1_1DeleteTagsCommandError = async (output, context) =>
|
|
|
1365
1379
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1366
1380
|
default:
|
|
1367
1381
|
const parsedBody = parsedOutput.body;
|
|
1382
|
+
const $metadata = deserializeMetadata(output);
|
|
1383
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1368
1384
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
1369
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1385
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1370
1386
|
$fault: "client",
|
|
1371
|
-
$metadata
|
|
1387
|
+
$metadata,
|
|
1372
1388
|
});
|
|
1373
1389
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1374
1390
|
}
|
|
@@ -1393,8 +1409,7 @@ const deserializeAws_json1_1DeleteWorkspaceBundleCommandError = async (output, c
|
|
|
1393
1409
|
body: await parseBody(output.body, context),
|
|
1394
1410
|
};
|
|
1395
1411
|
let response;
|
|
1396
|
-
|
|
1397
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1412
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1398
1413
|
switch (errorCode) {
|
|
1399
1414
|
case "AccessDeniedException":
|
|
1400
1415
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -1410,10 +1425,12 @@ const deserializeAws_json1_1DeleteWorkspaceBundleCommandError = async (output, c
|
|
|
1410
1425
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1411
1426
|
default:
|
|
1412
1427
|
const parsedBody = parsedOutput.body;
|
|
1428
|
+
const $metadata = deserializeMetadata(output);
|
|
1429
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1413
1430
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
1414
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1431
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1415
1432
|
$fault: "client",
|
|
1416
|
-
$metadata
|
|
1433
|
+
$metadata,
|
|
1417
1434
|
});
|
|
1418
1435
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1419
1436
|
}
|
|
@@ -1438,8 +1455,7 @@ const deserializeAws_json1_1DeleteWorkspaceImageCommandError = async (output, co
|
|
|
1438
1455
|
body: await parseBody(output.body, context),
|
|
1439
1456
|
};
|
|
1440
1457
|
let response;
|
|
1441
|
-
|
|
1442
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1458
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1443
1459
|
switch (errorCode) {
|
|
1444
1460
|
case "AccessDeniedException":
|
|
1445
1461
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -1452,10 +1468,12 @@ const deserializeAws_json1_1DeleteWorkspaceImageCommandError = async (output, co
|
|
|
1452
1468
|
throw await deserializeAws_json1_1ResourceAssociatedExceptionResponse(parsedOutput, context);
|
|
1453
1469
|
default:
|
|
1454
1470
|
const parsedBody = parsedOutput.body;
|
|
1471
|
+
const $metadata = deserializeMetadata(output);
|
|
1472
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1455
1473
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
1456
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1474
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1457
1475
|
$fault: "client",
|
|
1458
|
-
$metadata
|
|
1476
|
+
$metadata,
|
|
1459
1477
|
});
|
|
1460
1478
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1461
1479
|
}
|
|
@@ -1480,8 +1498,7 @@ const deserializeAws_json1_1DeregisterWorkspaceDirectoryCommandError = async (ou
|
|
|
1480
1498
|
body: await parseBody(output.body, context),
|
|
1481
1499
|
};
|
|
1482
1500
|
let response;
|
|
1483
|
-
|
|
1484
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1501
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1485
1502
|
switch (errorCode) {
|
|
1486
1503
|
case "AccessDeniedException":
|
|
1487
1504
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -1500,10 +1517,12 @@ const deserializeAws_json1_1DeregisterWorkspaceDirectoryCommandError = async (ou
|
|
|
1500
1517
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1501
1518
|
default:
|
|
1502
1519
|
const parsedBody = parsedOutput.body;
|
|
1520
|
+
const $metadata = deserializeMetadata(output);
|
|
1521
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1503
1522
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
1504
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1523
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1505
1524
|
$fault: "client",
|
|
1506
|
-
$metadata
|
|
1525
|
+
$metadata,
|
|
1507
1526
|
});
|
|
1508
1527
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1509
1528
|
}
|
|
@@ -1528,18 +1547,19 @@ const deserializeAws_json1_1DescribeAccountCommandError = async (output, context
|
|
|
1528
1547
|
body: await parseBody(output.body, context),
|
|
1529
1548
|
};
|
|
1530
1549
|
let response;
|
|
1531
|
-
|
|
1532
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1550
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1533
1551
|
switch (errorCode) {
|
|
1534
1552
|
case "AccessDeniedException":
|
|
1535
1553
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1536
1554
|
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1537
1555
|
default:
|
|
1538
1556
|
const parsedBody = parsedOutput.body;
|
|
1557
|
+
const $metadata = deserializeMetadata(output);
|
|
1558
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1539
1559
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
1540
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1560
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1541
1561
|
$fault: "client",
|
|
1542
|
-
$metadata
|
|
1562
|
+
$metadata,
|
|
1543
1563
|
});
|
|
1544
1564
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1545
1565
|
}
|
|
@@ -1564,18 +1584,19 @@ const deserializeAws_json1_1DescribeAccountModificationsCommandError = async (ou
|
|
|
1564
1584
|
body: await parseBody(output.body, context),
|
|
1565
1585
|
};
|
|
1566
1586
|
let response;
|
|
1567
|
-
|
|
1568
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1587
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1569
1588
|
switch (errorCode) {
|
|
1570
1589
|
case "AccessDeniedException":
|
|
1571
1590
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1572
1591
|
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1573
1592
|
default:
|
|
1574
1593
|
const parsedBody = parsedOutput.body;
|
|
1594
|
+
const $metadata = deserializeMetadata(output);
|
|
1595
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1575
1596
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
1576
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1597
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1577
1598
|
$fault: "client",
|
|
1578
|
-
$metadata
|
|
1599
|
+
$metadata,
|
|
1579
1600
|
});
|
|
1580
1601
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1581
1602
|
}
|
|
@@ -1600,8 +1621,7 @@ const deserializeAws_json1_1DescribeClientBrandingCommandError = async (output,
|
|
|
1600
1621
|
body: await parseBody(output.body, context),
|
|
1601
1622
|
};
|
|
1602
1623
|
let response;
|
|
1603
|
-
|
|
1604
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1624
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1605
1625
|
switch (errorCode) {
|
|
1606
1626
|
case "AccessDeniedException":
|
|
1607
1627
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -1614,10 +1634,12 @@ const deserializeAws_json1_1DescribeClientBrandingCommandError = async (output,
|
|
|
1614
1634
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1615
1635
|
default:
|
|
1616
1636
|
const parsedBody = parsedOutput.body;
|
|
1637
|
+
const $metadata = deserializeMetadata(output);
|
|
1638
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1617
1639
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
1618
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1640
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1619
1641
|
$fault: "client",
|
|
1620
|
-
$metadata
|
|
1642
|
+
$metadata,
|
|
1621
1643
|
});
|
|
1622
1644
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1623
1645
|
}
|
|
@@ -1642,8 +1664,7 @@ const deserializeAws_json1_1DescribeClientPropertiesCommandError = async (output
|
|
|
1642
1664
|
body: await parseBody(output.body, context),
|
|
1643
1665
|
};
|
|
1644
1666
|
let response;
|
|
1645
|
-
|
|
1646
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1667
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1647
1668
|
switch (errorCode) {
|
|
1648
1669
|
case "AccessDeniedException":
|
|
1649
1670
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -1656,10 +1677,12 @@ const deserializeAws_json1_1DescribeClientPropertiesCommandError = async (output
|
|
|
1656
1677
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1657
1678
|
default:
|
|
1658
1679
|
const parsedBody = parsedOutput.body;
|
|
1680
|
+
const $metadata = deserializeMetadata(output);
|
|
1681
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1659
1682
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
1660
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1683
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1661
1684
|
$fault: "client",
|
|
1662
|
-
$metadata
|
|
1685
|
+
$metadata,
|
|
1663
1686
|
});
|
|
1664
1687
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1665
1688
|
}
|
|
@@ -1684,8 +1707,7 @@ const deserializeAws_json1_1DescribeConnectClientAddInsCommandError = async (out
|
|
|
1684
1707
|
body: await parseBody(output.body, context),
|
|
1685
1708
|
};
|
|
1686
1709
|
let response;
|
|
1687
|
-
|
|
1688
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1710
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1689
1711
|
switch (errorCode) {
|
|
1690
1712
|
case "AccessDeniedException":
|
|
1691
1713
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -1698,10 +1720,12 @@ const deserializeAws_json1_1DescribeConnectClientAddInsCommandError = async (out
|
|
|
1698
1720
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1699
1721
|
default:
|
|
1700
1722
|
const parsedBody = parsedOutput.body;
|
|
1723
|
+
const $metadata = deserializeMetadata(output);
|
|
1724
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1701
1725
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
1702
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1726
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1703
1727
|
$fault: "client",
|
|
1704
|
-
$metadata
|
|
1728
|
+
$metadata,
|
|
1705
1729
|
});
|
|
1706
1730
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1707
1731
|
}
|
|
@@ -1726,8 +1750,7 @@ const deserializeAws_json1_1DescribeConnectionAliasesCommandError = async (outpu
|
|
|
1726
1750
|
body: await parseBody(output.body, context),
|
|
1727
1751
|
};
|
|
1728
1752
|
let response;
|
|
1729
|
-
|
|
1730
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1753
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1731
1754
|
switch (errorCode) {
|
|
1732
1755
|
case "AccessDeniedException":
|
|
1733
1756
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -1740,10 +1763,12 @@ const deserializeAws_json1_1DescribeConnectionAliasesCommandError = async (outpu
|
|
|
1740
1763
|
throw await deserializeAws_json1_1OperationNotSupportedExceptionResponse(parsedOutput, context);
|
|
1741
1764
|
default:
|
|
1742
1765
|
const parsedBody = parsedOutput.body;
|
|
1766
|
+
const $metadata = deserializeMetadata(output);
|
|
1767
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1743
1768
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
1744
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1769
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1745
1770
|
$fault: "client",
|
|
1746
|
-
$metadata
|
|
1771
|
+
$metadata,
|
|
1747
1772
|
});
|
|
1748
1773
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1749
1774
|
}
|
|
@@ -1768,8 +1793,7 @@ const deserializeAws_json1_1DescribeConnectionAliasPermissionsCommandError = asy
|
|
|
1768
1793
|
body: await parseBody(output.body, context),
|
|
1769
1794
|
};
|
|
1770
1795
|
let response;
|
|
1771
|
-
|
|
1772
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1796
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1773
1797
|
switch (errorCode) {
|
|
1774
1798
|
case "AccessDeniedException":
|
|
1775
1799
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -1785,10 +1809,12 @@ const deserializeAws_json1_1DescribeConnectionAliasPermissionsCommandError = asy
|
|
|
1785
1809
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1786
1810
|
default:
|
|
1787
1811
|
const parsedBody = parsedOutput.body;
|
|
1812
|
+
const $metadata = deserializeMetadata(output);
|
|
1813
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1788
1814
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
1789
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1815
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1790
1816
|
$fault: "client",
|
|
1791
|
-
$metadata
|
|
1817
|
+
$metadata,
|
|
1792
1818
|
});
|
|
1793
1819
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1794
1820
|
}
|
|
@@ -1813,8 +1839,7 @@ const deserializeAws_json1_1DescribeIpGroupsCommandError = async (output, contex
|
|
|
1813
1839
|
body: await parseBody(output.body, context),
|
|
1814
1840
|
};
|
|
1815
1841
|
let response;
|
|
1816
|
-
|
|
1817
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1842
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1818
1843
|
switch (errorCode) {
|
|
1819
1844
|
case "AccessDeniedException":
|
|
1820
1845
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -1824,10 +1849,12 @@ const deserializeAws_json1_1DescribeIpGroupsCommandError = async (output, contex
|
|
|
1824
1849
|
throw await deserializeAws_json1_1InvalidParameterValuesExceptionResponse(parsedOutput, context);
|
|
1825
1850
|
default:
|
|
1826
1851
|
const parsedBody = parsedOutput.body;
|
|
1852
|
+
const $metadata = deserializeMetadata(output);
|
|
1853
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1827
1854
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
1828
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1855
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1829
1856
|
$fault: "client",
|
|
1830
|
-
$metadata
|
|
1857
|
+
$metadata,
|
|
1831
1858
|
});
|
|
1832
1859
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1833
1860
|
}
|
|
@@ -1852,18 +1879,19 @@ const deserializeAws_json1_1DescribeTagsCommandError = async (output, context) =
|
|
|
1852
1879
|
body: await parseBody(output.body, context),
|
|
1853
1880
|
};
|
|
1854
1881
|
let response;
|
|
1855
|
-
|
|
1856
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1882
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1857
1883
|
switch (errorCode) {
|
|
1858
1884
|
case "ResourceNotFoundException":
|
|
1859
1885
|
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1860
1886
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1861
1887
|
default:
|
|
1862
1888
|
const parsedBody = parsedOutput.body;
|
|
1889
|
+
const $metadata = deserializeMetadata(output);
|
|
1890
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1863
1891
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
1864
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1892
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1865
1893
|
$fault: "client",
|
|
1866
|
-
$metadata
|
|
1894
|
+
$metadata,
|
|
1867
1895
|
});
|
|
1868
1896
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1869
1897
|
}
|
|
@@ -1888,18 +1916,19 @@ const deserializeAws_json1_1DescribeWorkspaceBundlesCommandError = async (output
|
|
|
1888
1916
|
body: await parseBody(output.body, context),
|
|
1889
1917
|
};
|
|
1890
1918
|
let response;
|
|
1891
|
-
|
|
1892
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1919
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1893
1920
|
switch (errorCode) {
|
|
1894
1921
|
case "InvalidParameterValuesException":
|
|
1895
1922
|
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1896
1923
|
throw await deserializeAws_json1_1InvalidParameterValuesExceptionResponse(parsedOutput, context);
|
|
1897
1924
|
default:
|
|
1898
1925
|
const parsedBody = parsedOutput.body;
|
|
1926
|
+
const $metadata = deserializeMetadata(output);
|
|
1927
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1899
1928
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
1900
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1929
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1901
1930
|
$fault: "client",
|
|
1902
|
-
$metadata
|
|
1931
|
+
$metadata,
|
|
1903
1932
|
});
|
|
1904
1933
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1905
1934
|
}
|
|
@@ -1924,18 +1953,19 @@ const deserializeAws_json1_1DescribeWorkspaceDirectoriesCommandError = async (ou
|
|
|
1924
1953
|
body: await parseBody(output.body, context),
|
|
1925
1954
|
};
|
|
1926
1955
|
let response;
|
|
1927
|
-
|
|
1928
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1956
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1929
1957
|
switch (errorCode) {
|
|
1930
1958
|
case "InvalidParameterValuesException":
|
|
1931
1959
|
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1932
1960
|
throw await deserializeAws_json1_1InvalidParameterValuesExceptionResponse(parsedOutput, context);
|
|
1933
1961
|
default:
|
|
1934
1962
|
const parsedBody = parsedOutput.body;
|
|
1963
|
+
const $metadata = deserializeMetadata(output);
|
|
1964
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1935
1965
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
1936
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1966
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1937
1967
|
$fault: "client",
|
|
1938
|
-
$metadata
|
|
1968
|
+
$metadata,
|
|
1939
1969
|
});
|
|
1940
1970
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1941
1971
|
}
|
|
@@ -1960,8 +1990,7 @@ const deserializeAws_json1_1DescribeWorkspaceImagePermissionsCommandError = asyn
|
|
|
1960
1990
|
body: await parseBody(output.body, context),
|
|
1961
1991
|
};
|
|
1962
1992
|
let response;
|
|
1963
|
-
|
|
1964
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1993
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1965
1994
|
switch (errorCode) {
|
|
1966
1995
|
case "AccessDeniedException":
|
|
1967
1996
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -1974,10 +2003,12 @@ const deserializeAws_json1_1DescribeWorkspaceImagePermissionsCommandError = asyn
|
|
|
1974
2003
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1975
2004
|
default:
|
|
1976
2005
|
const parsedBody = parsedOutput.body;
|
|
2006
|
+
const $metadata = deserializeMetadata(output);
|
|
2007
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1977
2008
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
1978
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2009
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1979
2010
|
$fault: "client",
|
|
1980
|
-
$metadata
|
|
2011
|
+
$metadata,
|
|
1981
2012
|
});
|
|
1982
2013
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1983
2014
|
}
|
|
@@ -2002,18 +2033,19 @@ const deserializeAws_json1_1DescribeWorkspaceImagesCommandError = async (output,
|
|
|
2002
2033
|
body: await parseBody(output.body, context),
|
|
2003
2034
|
};
|
|
2004
2035
|
let response;
|
|
2005
|
-
|
|
2006
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2036
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2007
2037
|
switch (errorCode) {
|
|
2008
2038
|
case "AccessDeniedException":
|
|
2009
2039
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2010
2040
|
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2011
2041
|
default:
|
|
2012
2042
|
const parsedBody = parsedOutput.body;
|
|
2043
|
+
const $metadata = deserializeMetadata(output);
|
|
2044
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2013
2045
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
2014
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2046
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2015
2047
|
$fault: "client",
|
|
2016
|
-
$metadata
|
|
2048
|
+
$metadata,
|
|
2017
2049
|
});
|
|
2018
2050
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2019
2051
|
}
|
|
@@ -2038,8 +2070,7 @@ const deserializeAws_json1_1DescribeWorkspacesCommandError = async (output, cont
|
|
|
2038
2070
|
body: await parseBody(output.body, context),
|
|
2039
2071
|
};
|
|
2040
2072
|
let response;
|
|
2041
|
-
|
|
2042
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2073
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2043
2074
|
switch (errorCode) {
|
|
2044
2075
|
case "InvalidParameterValuesException":
|
|
2045
2076
|
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
@@ -2049,10 +2080,12 @@ const deserializeAws_json1_1DescribeWorkspacesCommandError = async (output, cont
|
|
|
2049
2080
|
throw await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context);
|
|
2050
2081
|
default:
|
|
2051
2082
|
const parsedBody = parsedOutput.body;
|
|
2083
|
+
const $metadata = deserializeMetadata(output);
|
|
2084
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2052
2085
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
2053
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2086
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2054
2087
|
$fault: "client",
|
|
2055
|
-
$metadata
|
|
2088
|
+
$metadata,
|
|
2056
2089
|
});
|
|
2057
2090
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2058
2091
|
}
|
|
@@ -2077,18 +2110,19 @@ const deserializeAws_json1_1DescribeWorkspacesConnectionStatusCommandError = asy
|
|
|
2077
2110
|
body: await parseBody(output.body, context),
|
|
2078
2111
|
};
|
|
2079
2112
|
let response;
|
|
2080
|
-
|
|
2081
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2113
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2082
2114
|
switch (errorCode) {
|
|
2083
2115
|
case "InvalidParameterValuesException":
|
|
2084
2116
|
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2085
2117
|
throw await deserializeAws_json1_1InvalidParameterValuesExceptionResponse(parsedOutput, context);
|
|
2086
2118
|
default:
|
|
2087
2119
|
const parsedBody = parsedOutput.body;
|
|
2120
|
+
const $metadata = deserializeMetadata(output);
|
|
2121
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2088
2122
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
2089
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2123
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2090
2124
|
$fault: "client",
|
|
2091
|
-
$metadata
|
|
2125
|
+
$metadata,
|
|
2092
2126
|
});
|
|
2093
2127
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2094
2128
|
}
|
|
@@ -2113,8 +2147,7 @@ const deserializeAws_json1_1DescribeWorkspaceSnapshotsCommandError = async (outp
|
|
|
2113
2147
|
body: await parseBody(output.body, context),
|
|
2114
2148
|
};
|
|
2115
2149
|
let response;
|
|
2116
|
-
|
|
2117
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2150
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2118
2151
|
switch (errorCode) {
|
|
2119
2152
|
case "AccessDeniedException":
|
|
2120
2153
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -2127,10 +2160,12 @@ const deserializeAws_json1_1DescribeWorkspaceSnapshotsCommandError = async (outp
|
|
|
2127
2160
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2128
2161
|
default:
|
|
2129
2162
|
const parsedBody = parsedOutput.body;
|
|
2163
|
+
const $metadata = deserializeMetadata(output);
|
|
2164
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2130
2165
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
2131
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2166
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2132
2167
|
$fault: "client",
|
|
2133
|
-
$metadata
|
|
2168
|
+
$metadata,
|
|
2134
2169
|
});
|
|
2135
2170
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2136
2171
|
}
|
|
@@ -2155,8 +2190,7 @@ const deserializeAws_json1_1DisassociateConnectionAliasCommandError = async (out
|
|
|
2155
2190
|
body: await parseBody(output.body, context),
|
|
2156
2191
|
};
|
|
2157
2192
|
let response;
|
|
2158
|
-
|
|
2159
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2193
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2160
2194
|
switch (errorCode) {
|
|
2161
2195
|
case "AccessDeniedException":
|
|
2162
2196
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -2175,10 +2209,12 @@ const deserializeAws_json1_1DisassociateConnectionAliasCommandError = async (out
|
|
|
2175
2209
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2176
2210
|
default:
|
|
2177
2211
|
const parsedBody = parsedOutput.body;
|
|
2212
|
+
const $metadata = deserializeMetadata(output);
|
|
2213
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2178
2214
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
2179
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2215
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2180
2216
|
$fault: "client",
|
|
2181
|
-
$metadata
|
|
2217
|
+
$metadata,
|
|
2182
2218
|
});
|
|
2183
2219
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2184
2220
|
}
|
|
@@ -2203,8 +2239,7 @@ const deserializeAws_json1_1DisassociateIpGroupsCommandError = async (output, co
|
|
|
2203
2239
|
body: await parseBody(output.body, context),
|
|
2204
2240
|
};
|
|
2205
2241
|
let response;
|
|
2206
|
-
|
|
2207
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2242
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2208
2243
|
switch (errorCode) {
|
|
2209
2244
|
case "AccessDeniedException":
|
|
2210
2245
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -2220,10 +2255,12 @@ const deserializeAws_json1_1DisassociateIpGroupsCommandError = async (output, co
|
|
|
2220
2255
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2221
2256
|
default:
|
|
2222
2257
|
const parsedBody = parsedOutput.body;
|
|
2258
|
+
const $metadata = deserializeMetadata(output);
|
|
2259
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2223
2260
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
2224
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2261
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2225
2262
|
$fault: "client",
|
|
2226
|
-
$metadata
|
|
2263
|
+
$metadata,
|
|
2227
2264
|
});
|
|
2228
2265
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2229
2266
|
}
|
|
@@ -2248,8 +2285,7 @@ const deserializeAws_json1_1ImportClientBrandingCommandError = async (output, co
|
|
|
2248
2285
|
body: await parseBody(output.body, context),
|
|
2249
2286
|
};
|
|
2250
2287
|
let response;
|
|
2251
|
-
|
|
2252
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2288
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2253
2289
|
switch (errorCode) {
|
|
2254
2290
|
case "AccessDeniedException":
|
|
2255
2291
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -2262,10 +2298,12 @@ const deserializeAws_json1_1ImportClientBrandingCommandError = async (output, co
|
|
|
2262
2298
|
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
2263
2299
|
default:
|
|
2264
2300
|
const parsedBody = parsedOutput.body;
|
|
2301
|
+
const $metadata = deserializeMetadata(output);
|
|
2302
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2265
2303
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
2266
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2304
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2267
2305
|
$fault: "client",
|
|
2268
|
-
$metadata
|
|
2306
|
+
$metadata,
|
|
2269
2307
|
});
|
|
2270
2308
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2271
2309
|
}
|
|
@@ -2290,8 +2328,7 @@ const deserializeAws_json1_1ImportWorkspaceImageCommandError = async (output, co
|
|
|
2290
2328
|
body: await parseBody(output.body, context),
|
|
2291
2329
|
};
|
|
2292
2330
|
let response;
|
|
2293
|
-
|
|
2294
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2331
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2295
2332
|
switch (errorCode) {
|
|
2296
2333
|
case "AccessDeniedException":
|
|
2297
2334
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -2313,10 +2350,12 @@ const deserializeAws_json1_1ImportWorkspaceImageCommandError = async (output, co
|
|
|
2313
2350
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2314
2351
|
default:
|
|
2315
2352
|
const parsedBody = parsedOutput.body;
|
|
2353
|
+
const $metadata = deserializeMetadata(output);
|
|
2354
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2316
2355
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
2317
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2356
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2318
2357
|
$fault: "client",
|
|
2319
|
-
$metadata
|
|
2358
|
+
$metadata,
|
|
2320
2359
|
});
|
|
2321
2360
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2322
2361
|
}
|
|
@@ -2341,8 +2380,7 @@ const deserializeAws_json1_1ListAvailableManagementCidrRangesCommandError = asyn
|
|
|
2341
2380
|
body: await parseBody(output.body, context),
|
|
2342
2381
|
};
|
|
2343
2382
|
let response;
|
|
2344
|
-
|
|
2345
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2383
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2346
2384
|
switch (errorCode) {
|
|
2347
2385
|
case "AccessDeniedException":
|
|
2348
2386
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -2352,10 +2390,12 @@ const deserializeAws_json1_1ListAvailableManagementCidrRangesCommandError = asyn
|
|
|
2352
2390
|
throw await deserializeAws_json1_1InvalidParameterValuesExceptionResponse(parsedOutput, context);
|
|
2353
2391
|
default:
|
|
2354
2392
|
const parsedBody = parsedOutput.body;
|
|
2393
|
+
const $metadata = deserializeMetadata(output);
|
|
2394
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2355
2395
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
2356
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2396
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2357
2397
|
$fault: "client",
|
|
2358
|
-
$metadata
|
|
2398
|
+
$metadata,
|
|
2359
2399
|
});
|
|
2360
2400
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2361
2401
|
}
|
|
@@ -2380,8 +2420,7 @@ const deserializeAws_json1_1MigrateWorkspaceCommandError = async (output, contex
|
|
|
2380
2420
|
body: await parseBody(output.body, context),
|
|
2381
2421
|
};
|
|
2382
2422
|
let response;
|
|
2383
|
-
|
|
2384
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2423
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2385
2424
|
switch (errorCode) {
|
|
2386
2425
|
case "AccessDeniedException":
|
|
2387
2426
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -2403,10 +2442,12 @@ const deserializeAws_json1_1MigrateWorkspaceCommandError = async (output, contex
|
|
|
2403
2442
|
throw await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context);
|
|
2404
2443
|
default:
|
|
2405
2444
|
const parsedBody = parsedOutput.body;
|
|
2445
|
+
const $metadata = deserializeMetadata(output);
|
|
2446
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2406
2447
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
2407
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2448
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2408
2449
|
$fault: "client",
|
|
2409
|
-
$metadata
|
|
2450
|
+
$metadata,
|
|
2410
2451
|
});
|
|
2411
2452
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2412
2453
|
}
|
|
@@ -2431,8 +2472,7 @@ const deserializeAws_json1_1ModifyAccountCommandError = async (output, context)
|
|
|
2431
2472
|
body: await parseBody(output.body, context),
|
|
2432
2473
|
};
|
|
2433
2474
|
let response;
|
|
2434
|
-
|
|
2435
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2475
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2436
2476
|
switch (errorCode) {
|
|
2437
2477
|
case "AccessDeniedException":
|
|
2438
2478
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -2451,10 +2491,12 @@ const deserializeAws_json1_1ModifyAccountCommandError = async (output, context)
|
|
|
2451
2491
|
throw await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context);
|
|
2452
2492
|
default:
|
|
2453
2493
|
const parsedBody = parsedOutput.body;
|
|
2494
|
+
const $metadata = deserializeMetadata(output);
|
|
2495
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2454
2496
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
2455
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2497
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2456
2498
|
$fault: "client",
|
|
2457
|
-
$metadata
|
|
2499
|
+
$metadata,
|
|
2458
2500
|
});
|
|
2459
2501
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2460
2502
|
}
|
|
@@ -2479,8 +2521,7 @@ const deserializeAws_json1_1ModifyClientPropertiesCommandError = async (output,
|
|
|
2479
2521
|
body: await parseBody(output.body, context),
|
|
2480
2522
|
};
|
|
2481
2523
|
let response;
|
|
2482
|
-
|
|
2483
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2524
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2484
2525
|
switch (errorCode) {
|
|
2485
2526
|
case "AccessDeniedException":
|
|
2486
2527
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -2493,10 +2534,12 @@ const deserializeAws_json1_1ModifyClientPropertiesCommandError = async (output,
|
|
|
2493
2534
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2494
2535
|
default:
|
|
2495
2536
|
const parsedBody = parsedOutput.body;
|
|
2537
|
+
const $metadata = deserializeMetadata(output);
|
|
2538
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2496
2539
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
2497
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2540
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2498
2541
|
$fault: "client",
|
|
2499
|
-
$metadata
|
|
2542
|
+
$metadata,
|
|
2500
2543
|
});
|
|
2501
2544
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2502
2545
|
}
|
|
@@ -2521,8 +2564,7 @@ const deserializeAws_json1_1ModifySelfservicePermissionsCommandError = async (ou
|
|
|
2521
2564
|
body: await parseBody(output.body, context),
|
|
2522
2565
|
};
|
|
2523
2566
|
let response;
|
|
2524
|
-
|
|
2525
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2567
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2526
2568
|
switch (errorCode) {
|
|
2527
2569
|
case "AccessDeniedException":
|
|
2528
2570
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -2535,10 +2577,12 @@ const deserializeAws_json1_1ModifySelfservicePermissionsCommandError = async (ou
|
|
|
2535
2577
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2536
2578
|
default:
|
|
2537
2579
|
const parsedBody = parsedOutput.body;
|
|
2580
|
+
const $metadata = deserializeMetadata(output);
|
|
2581
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2538
2582
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
2539
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2583
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2540
2584
|
$fault: "client",
|
|
2541
|
-
$metadata
|
|
2585
|
+
$metadata,
|
|
2542
2586
|
});
|
|
2543
2587
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2544
2588
|
}
|
|
@@ -2563,8 +2607,7 @@ const deserializeAws_json1_1ModifyWorkspaceAccessPropertiesCommandError = async
|
|
|
2563
2607
|
body: await parseBody(output.body, context),
|
|
2564
2608
|
};
|
|
2565
2609
|
let response;
|
|
2566
|
-
|
|
2567
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2610
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2568
2611
|
switch (errorCode) {
|
|
2569
2612
|
case "AccessDeniedException":
|
|
2570
2613
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -2574,10 +2617,12 @@ const deserializeAws_json1_1ModifyWorkspaceAccessPropertiesCommandError = async
|
|
|
2574
2617
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2575
2618
|
default:
|
|
2576
2619
|
const parsedBody = parsedOutput.body;
|
|
2620
|
+
const $metadata = deserializeMetadata(output);
|
|
2621
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2577
2622
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
2578
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2623
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2579
2624
|
$fault: "client",
|
|
2580
|
-
$metadata
|
|
2625
|
+
$metadata,
|
|
2581
2626
|
});
|
|
2582
2627
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2583
2628
|
}
|
|
@@ -2602,8 +2647,7 @@ const deserializeAws_json1_1ModifyWorkspaceCreationPropertiesCommandError = asyn
|
|
|
2602
2647
|
body: await parseBody(output.body, context),
|
|
2603
2648
|
};
|
|
2604
2649
|
let response;
|
|
2605
|
-
|
|
2606
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2650
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2607
2651
|
switch (errorCode) {
|
|
2608
2652
|
case "AccessDeniedException":
|
|
2609
2653
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -2619,10 +2663,12 @@ const deserializeAws_json1_1ModifyWorkspaceCreationPropertiesCommandError = asyn
|
|
|
2619
2663
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2620
2664
|
default:
|
|
2621
2665
|
const parsedBody = parsedOutput.body;
|
|
2666
|
+
const $metadata = deserializeMetadata(output);
|
|
2667
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2622
2668
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
2623
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2669
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2624
2670
|
$fault: "client",
|
|
2625
|
-
$metadata
|
|
2671
|
+
$metadata,
|
|
2626
2672
|
});
|
|
2627
2673
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2628
2674
|
}
|
|
@@ -2647,8 +2693,7 @@ const deserializeAws_json1_1ModifyWorkspacePropertiesCommandError = async (outpu
|
|
|
2647
2693
|
body: await parseBody(output.body, context),
|
|
2648
2694
|
};
|
|
2649
2695
|
let response;
|
|
2650
|
-
|
|
2651
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2696
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2652
2697
|
switch (errorCode) {
|
|
2653
2698
|
case "AccessDeniedException":
|
|
2654
2699
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -2673,10 +2718,12 @@ const deserializeAws_json1_1ModifyWorkspacePropertiesCommandError = async (outpu
|
|
|
2673
2718
|
throw await deserializeAws_json1_1UnsupportedWorkspaceConfigurationExceptionResponse(parsedOutput, context);
|
|
2674
2719
|
default:
|
|
2675
2720
|
const parsedBody = parsedOutput.body;
|
|
2721
|
+
const $metadata = deserializeMetadata(output);
|
|
2722
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2676
2723
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
2677
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2724
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2678
2725
|
$fault: "client",
|
|
2679
|
-
$metadata
|
|
2726
|
+
$metadata,
|
|
2680
2727
|
});
|
|
2681
2728
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2682
2729
|
}
|
|
@@ -2701,8 +2748,7 @@ const deserializeAws_json1_1ModifyWorkspaceStateCommandError = async (output, co
|
|
|
2701
2748
|
body: await parseBody(output.body, context),
|
|
2702
2749
|
};
|
|
2703
2750
|
let response;
|
|
2704
|
-
|
|
2705
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2751
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2706
2752
|
switch (errorCode) {
|
|
2707
2753
|
case "InvalidParameterValuesException":
|
|
2708
2754
|
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
@@ -2715,10 +2761,12 @@ const deserializeAws_json1_1ModifyWorkspaceStateCommandError = async (output, co
|
|
|
2715
2761
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2716
2762
|
default:
|
|
2717
2763
|
const parsedBody = parsedOutput.body;
|
|
2764
|
+
const $metadata = deserializeMetadata(output);
|
|
2765
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2718
2766
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
2719
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2767
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2720
2768
|
$fault: "client",
|
|
2721
|
-
$metadata
|
|
2769
|
+
$metadata,
|
|
2722
2770
|
});
|
|
2723
2771
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2724
2772
|
}
|
|
@@ -2743,15 +2791,16 @@ const deserializeAws_json1_1RebootWorkspacesCommandError = async (output, contex
|
|
|
2743
2791
|
body: await parseBody(output.body, context),
|
|
2744
2792
|
};
|
|
2745
2793
|
let response;
|
|
2746
|
-
|
|
2747
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2794
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2748
2795
|
switch (errorCode) {
|
|
2749
2796
|
default:
|
|
2750
2797
|
const parsedBody = parsedOutput.body;
|
|
2798
|
+
const $metadata = deserializeMetadata(output);
|
|
2799
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2751
2800
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
2752
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2801
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2753
2802
|
$fault: "client",
|
|
2754
|
-
$metadata
|
|
2803
|
+
$metadata,
|
|
2755
2804
|
});
|
|
2756
2805
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2757
2806
|
}
|
|
@@ -2776,15 +2825,16 @@ const deserializeAws_json1_1RebuildWorkspacesCommandError = async (output, conte
|
|
|
2776
2825
|
body: await parseBody(output.body, context),
|
|
2777
2826
|
};
|
|
2778
2827
|
let response;
|
|
2779
|
-
|
|
2780
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2828
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2781
2829
|
switch (errorCode) {
|
|
2782
2830
|
default:
|
|
2783
2831
|
const parsedBody = parsedOutput.body;
|
|
2832
|
+
const $metadata = deserializeMetadata(output);
|
|
2833
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2784
2834
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
2785
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2835
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2786
2836
|
$fault: "client",
|
|
2787
|
-
$metadata
|
|
2837
|
+
$metadata,
|
|
2788
2838
|
});
|
|
2789
2839
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2790
2840
|
}
|
|
@@ -2809,8 +2859,7 @@ const deserializeAws_json1_1RegisterWorkspaceDirectoryCommandError = async (outp
|
|
|
2809
2859
|
body: await parseBody(output.body, context),
|
|
2810
2860
|
};
|
|
2811
2861
|
let response;
|
|
2812
|
-
|
|
2813
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2862
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2814
2863
|
switch (errorCode) {
|
|
2815
2864
|
case "AccessDeniedException":
|
|
2816
2865
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -2838,10 +2887,12 @@ const deserializeAws_json1_1RegisterWorkspaceDirectoryCommandError = async (outp
|
|
|
2838
2887
|
throw await deserializeAws_json1_1WorkspacesDefaultRoleNotFoundExceptionResponse(parsedOutput, context);
|
|
2839
2888
|
default:
|
|
2840
2889
|
const parsedBody = parsedOutput.body;
|
|
2890
|
+
const $metadata = deserializeMetadata(output);
|
|
2891
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2841
2892
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
2842
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2893
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2843
2894
|
$fault: "client",
|
|
2844
|
-
$metadata
|
|
2895
|
+
$metadata,
|
|
2845
2896
|
});
|
|
2846
2897
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2847
2898
|
}
|
|
@@ -2866,8 +2917,7 @@ const deserializeAws_json1_1RestoreWorkspaceCommandError = async (output, contex
|
|
|
2866
2917
|
body: await parseBody(output.body, context),
|
|
2867
2918
|
};
|
|
2868
2919
|
let response;
|
|
2869
|
-
|
|
2870
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2920
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2871
2921
|
switch (errorCode) {
|
|
2872
2922
|
case "AccessDeniedException":
|
|
2873
2923
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -2880,10 +2930,12 @@ const deserializeAws_json1_1RestoreWorkspaceCommandError = async (output, contex
|
|
|
2880
2930
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2881
2931
|
default:
|
|
2882
2932
|
const parsedBody = parsedOutput.body;
|
|
2933
|
+
const $metadata = deserializeMetadata(output);
|
|
2934
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2883
2935
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
2884
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2936
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2885
2937
|
$fault: "client",
|
|
2886
|
-
$metadata
|
|
2938
|
+
$metadata,
|
|
2887
2939
|
});
|
|
2888
2940
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2889
2941
|
}
|
|
@@ -2908,8 +2960,7 @@ const deserializeAws_json1_1RevokeIpRulesCommandError = async (output, context)
|
|
|
2908
2960
|
body: await parseBody(output.body, context),
|
|
2909
2961
|
};
|
|
2910
2962
|
let response;
|
|
2911
|
-
|
|
2912
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2963
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2913
2964
|
switch (errorCode) {
|
|
2914
2965
|
case "AccessDeniedException":
|
|
2915
2966
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -2925,10 +2976,12 @@ const deserializeAws_json1_1RevokeIpRulesCommandError = async (output, context)
|
|
|
2925
2976
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2926
2977
|
default:
|
|
2927
2978
|
const parsedBody = parsedOutput.body;
|
|
2979
|
+
const $metadata = deserializeMetadata(output);
|
|
2980
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2928
2981
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
2929
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2982
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2930
2983
|
$fault: "client",
|
|
2931
|
-
$metadata
|
|
2984
|
+
$metadata,
|
|
2932
2985
|
});
|
|
2933
2986
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2934
2987
|
}
|
|
@@ -2953,15 +3006,16 @@ const deserializeAws_json1_1StartWorkspacesCommandError = async (output, context
|
|
|
2953
3006
|
body: await parseBody(output.body, context),
|
|
2954
3007
|
};
|
|
2955
3008
|
let response;
|
|
2956
|
-
|
|
2957
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3009
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2958
3010
|
switch (errorCode) {
|
|
2959
3011
|
default:
|
|
2960
3012
|
const parsedBody = parsedOutput.body;
|
|
3013
|
+
const $metadata = deserializeMetadata(output);
|
|
3014
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2961
3015
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
2962
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3016
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2963
3017
|
$fault: "client",
|
|
2964
|
-
$metadata
|
|
3018
|
+
$metadata,
|
|
2965
3019
|
});
|
|
2966
3020
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2967
3021
|
}
|
|
@@ -2986,15 +3040,16 @@ const deserializeAws_json1_1StopWorkspacesCommandError = async (output, context)
|
|
|
2986
3040
|
body: await parseBody(output.body, context),
|
|
2987
3041
|
};
|
|
2988
3042
|
let response;
|
|
2989
|
-
|
|
2990
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3043
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2991
3044
|
switch (errorCode) {
|
|
2992
3045
|
default:
|
|
2993
3046
|
const parsedBody = parsedOutput.body;
|
|
3047
|
+
const $metadata = deserializeMetadata(output);
|
|
3048
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2994
3049
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
2995
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3050
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2996
3051
|
$fault: "client",
|
|
2997
|
-
$metadata
|
|
3052
|
+
$metadata,
|
|
2998
3053
|
});
|
|
2999
3054
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3000
3055
|
}
|
|
@@ -3019,15 +3074,16 @@ const deserializeAws_json1_1TerminateWorkspacesCommandError = async (output, con
|
|
|
3019
3074
|
body: await parseBody(output.body, context),
|
|
3020
3075
|
};
|
|
3021
3076
|
let response;
|
|
3022
|
-
|
|
3023
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3077
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3024
3078
|
switch (errorCode) {
|
|
3025
3079
|
default:
|
|
3026
3080
|
const parsedBody = parsedOutput.body;
|
|
3081
|
+
const $metadata = deserializeMetadata(output);
|
|
3082
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3027
3083
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
3028
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3084
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3029
3085
|
$fault: "client",
|
|
3030
|
-
$metadata
|
|
3086
|
+
$metadata,
|
|
3031
3087
|
});
|
|
3032
3088
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3033
3089
|
}
|
|
@@ -3052,8 +3108,7 @@ const deserializeAws_json1_1UpdateConnectClientAddInCommandError = async (output
|
|
|
3052
3108
|
body: await parseBody(output.body, context),
|
|
3053
3109
|
};
|
|
3054
3110
|
let response;
|
|
3055
|
-
|
|
3056
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3111
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3057
3112
|
switch (errorCode) {
|
|
3058
3113
|
case "AccessDeniedException":
|
|
3059
3114
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -3066,10 +3121,12 @@ const deserializeAws_json1_1UpdateConnectClientAddInCommandError = async (output
|
|
|
3066
3121
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3067
3122
|
default:
|
|
3068
3123
|
const parsedBody = parsedOutput.body;
|
|
3124
|
+
const $metadata = deserializeMetadata(output);
|
|
3125
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3069
3126
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
3070
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3127
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3071
3128
|
$fault: "client",
|
|
3072
|
-
$metadata
|
|
3129
|
+
$metadata,
|
|
3073
3130
|
});
|
|
3074
3131
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3075
3132
|
}
|
|
@@ -3094,8 +3151,7 @@ const deserializeAws_json1_1UpdateConnectionAliasPermissionCommandError = async
|
|
|
3094
3151
|
body: await parseBody(output.body, context),
|
|
3095
3152
|
};
|
|
3096
3153
|
let response;
|
|
3097
|
-
|
|
3098
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3154
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3099
3155
|
switch (errorCode) {
|
|
3100
3156
|
case "AccessDeniedException":
|
|
3101
3157
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -3120,10 +3176,12 @@ const deserializeAws_json1_1UpdateConnectionAliasPermissionCommandError = async
|
|
|
3120
3176
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3121
3177
|
default:
|
|
3122
3178
|
const parsedBody = parsedOutput.body;
|
|
3179
|
+
const $metadata = deserializeMetadata(output);
|
|
3180
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3123
3181
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
3124
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3182
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3125
3183
|
$fault: "client",
|
|
3126
|
-
$metadata
|
|
3184
|
+
$metadata,
|
|
3127
3185
|
});
|
|
3128
3186
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3129
3187
|
}
|
|
@@ -3148,8 +3206,7 @@ const deserializeAws_json1_1UpdateRulesOfIpGroupCommandError = async (output, co
|
|
|
3148
3206
|
body: await parseBody(output.body, context),
|
|
3149
3207
|
};
|
|
3150
3208
|
let response;
|
|
3151
|
-
|
|
3152
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3209
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3153
3210
|
switch (errorCode) {
|
|
3154
3211
|
case "AccessDeniedException":
|
|
3155
3212
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -3168,10 +3225,12 @@ const deserializeAws_json1_1UpdateRulesOfIpGroupCommandError = async (output, co
|
|
|
3168
3225
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3169
3226
|
default:
|
|
3170
3227
|
const parsedBody = parsedOutput.body;
|
|
3228
|
+
const $metadata = deserializeMetadata(output);
|
|
3229
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3171
3230
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
3172
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3231
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3173
3232
|
$fault: "client",
|
|
3174
|
-
$metadata
|
|
3233
|
+
$metadata,
|
|
3175
3234
|
});
|
|
3176
3235
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3177
3236
|
}
|
|
@@ -3196,8 +3255,7 @@ const deserializeAws_json1_1UpdateWorkspaceBundleCommandError = async (output, c
|
|
|
3196
3255
|
body: await parseBody(output.body, context),
|
|
3197
3256
|
};
|
|
3198
3257
|
let response;
|
|
3199
|
-
|
|
3200
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3258
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3201
3259
|
switch (errorCode) {
|
|
3202
3260
|
case "AccessDeniedException":
|
|
3203
3261
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -3213,10 +3271,12 @@ const deserializeAws_json1_1UpdateWorkspaceBundleCommandError = async (output, c
|
|
|
3213
3271
|
throw await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context);
|
|
3214
3272
|
default:
|
|
3215
3273
|
const parsedBody = parsedOutput.body;
|
|
3274
|
+
const $metadata = deserializeMetadata(output);
|
|
3275
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3216
3276
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
3217
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3277
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3218
3278
|
$fault: "client",
|
|
3219
|
-
$metadata
|
|
3279
|
+
$metadata,
|
|
3220
3280
|
});
|
|
3221
3281
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3222
3282
|
}
|
|
@@ -3241,8 +3301,7 @@ const deserializeAws_json1_1UpdateWorkspaceImagePermissionCommandError = async (
|
|
|
3241
3301
|
body: await parseBody(output.body, context),
|
|
3242
3302
|
};
|
|
3243
3303
|
let response;
|
|
3244
|
-
|
|
3245
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3304
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3246
3305
|
switch (errorCode) {
|
|
3247
3306
|
case "AccessDeniedException":
|
|
3248
3307
|
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
@@ -3261,10 +3320,12 @@ const deserializeAws_json1_1UpdateWorkspaceImagePermissionCommandError = async (
|
|
|
3261
3320
|
throw await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context);
|
|
3262
3321
|
default:
|
|
3263
3322
|
const parsedBody = parsedOutput.body;
|
|
3323
|
+
const $metadata = deserializeMetadata(output);
|
|
3324
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3264
3325
|
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
3265
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3326
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3266
3327
|
$fault: "client",
|
|
3267
|
-
$metadata
|
|
3328
|
+
$metadata,
|
|
3268
3329
|
});
|
|
3269
3330
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3270
3331
|
}
|
|
@@ -3407,22 +3468,20 @@ const serializeAws_json1_1ApplicationList = (input, context) => {
|
|
|
3407
3468
|
};
|
|
3408
3469
|
const serializeAws_json1_1AssociateConnectionAliasRequest = (input, context) => {
|
|
3409
3470
|
return {
|
|
3410
|
-
...(input.AliasId
|
|
3411
|
-
...(input.ResourceId
|
|
3471
|
+
...(input.AliasId != null && { AliasId: input.AliasId }),
|
|
3472
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
3412
3473
|
};
|
|
3413
3474
|
};
|
|
3414
3475
|
const serializeAws_json1_1AssociateIpGroupsRequest = (input, context) => {
|
|
3415
3476
|
return {
|
|
3416
|
-
...(input.DirectoryId
|
|
3417
|
-
...(input.GroupIds
|
|
3418
|
-
input.GroupIds !== null && { GroupIds: serializeAws_json1_1IpGroupIdList(input.GroupIds, context) }),
|
|
3477
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
3478
|
+
...(input.GroupIds != null && { GroupIds: serializeAws_json1_1IpGroupIdList(input.GroupIds, context) }),
|
|
3419
3479
|
};
|
|
3420
3480
|
};
|
|
3421
3481
|
const serializeAws_json1_1AuthorizeIpRulesRequest = (input, context) => {
|
|
3422
3482
|
return {
|
|
3423
|
-
...(input.GroupId
|
|
3424
|
-
...(input.UserRules
|
|
3425
|
-
input.UserRules !== null && { UserRules: serializeAws_json1_1IpRuleList(input.UserRules, context) }),
|
|
3483
|
+
...(input.GroupId != null && { GroupId: input.GroupId }),
|
|
3484
|
+
...(input.UserRules != null && { UserRules: serializeAws_json1_1IpRuleList(input.UserRules, context) }),
|
|
3426
3485
|
};
|
|
3427
3486
|
};
|
|
3428
3487
|
const serializeAws_json1_1BundleIdList = (input, context) => {
|
|
@@ -3447,13 +3506,12 @@ const serializeAws_json1_1ClientDeviceTypeList = (input, context) => {
|
|
|
3447
3506
|
};
|
|
3448
3507
|
const serializeAws_json1_1ClientProperties = (input, context) => {
|
|
3449
3508
|
return {
|
|
3450
|
-
...(input.ReconnectEnabled
|
|
3451
|
-
input.ReconnectEnabled !== null && { ReconnectEnabled: input.ReconnectEnabled }),
|
|
3509
|
+
...(input.ReconnectEnabled != null && { ReconnectEnabled: input.ReconnectEnabled }),
|
|
3452
3510
|
};
|
|
3453
3511
|
};
|
|
3454
3512
|
const serializeAws_json1_1ComputeType = (input, context) => {
|
|
3455
3513
|
return {
|
|
3456
|
-
...(input.Name
|
|
3514
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3457
3515
|
};
|
|
3458
3516
|
};
|
|
3459
3517
|
const serializeAws_json1_1ConnectionAliasIdList = (input, context) => {
|
|
@@ -3468,138 +3526,127 @@ const serializeAws_json1_1ConnectionAliasIdList = (input, context) => {
|
|
|
3468
3526
|
};
|
|
3469
3527
|
const serializeAws_json1_1ConnectionAliasPermission = (input, context) => {
|
|
3470
3528
|
return {
|
|
3471
|
-
...(input.AllowAssociation
|
|
3472
|
-
|
|
3473
|
-
...(input.SharedAccountId !== undefined &&
|
|
3474
|
-
input.SharedAccountId !== null && { SharedAccountId: input.SharedAccountId }),
|
|
3529
|
+
...(input.AllowAssociation != null && { AllowAssociation: input.AllowAssociation }),
|
|
3530
|
+
...(input.SharedAccountId != null && { SharedAccountId: input.SharedAccountId }),
|
|
3475
3531
|
};
|
|
3476
3532
|
};
|
|
3477
3533
|
const serializeAws_json1_1CopyWorkspaceImageRequest = (input, context) => {
|
|
3478
3534
|
return {
|
|
3479
|
-
...(input.Description
|
|
3480
|
-
...(input.Name
|
|
3481
|
-
...(input.SourceImageId
|
|
3482
|
-
...(input.SourceRegion
|
|
3483
|
-
...(input.Tags
|
|
3535
|
+
...(input.Description != null && { Description: input.Description }),
|
|
3536
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3537
|
+
...(input.SourceImageId != null && { SourceImageId: input.SourceImageId }),
|
|
3538
|
+
...(input.SourceRegion != null && { SourceRegion: input.SourceRegion }),
|
|
3539
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
3484
3540
|
};
|
|
3485
3541
|
};
|
|
3486
3542
|
const serializeAws_json1_1CreateConnectClientAddInRequest = (input, context) => {
|
|
3487
3543
|
return {
|
|
3488
|
-
...(input.Name
|
|
3489
|
-
...(input.ResourceId
|
|
3490
|
-
...(input.URL
|
|
3544
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3545
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
3546
|
+
...(input.URL != null && { URL: input.URL }),
|
|
3491
3547
|
};
|
|
3492
3548
|
};
|
|
3493
3549
|
const serializeAws_json1_1CreateConnectionAliasRequest = (input, context) => {
|
|
3494
3550
|
return {
|
|
3495
|
-
...(input.ConnectionString
|
|
3496
|
-
|
|
3497
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
3551
|
+
...(input.ConnectionString != null && { ConnectionString: input.ConnectionString }),
|
|
3552
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
3498
3553
|
};
|
|
3499
3554
|
};
|
|
3500
3555
|
const serializeAws_json1_1CreateIpGroupRequest = (input, context) => {
|
|
3501
3556
|
return {
|
|
3502
|
-
...(input.GroupDesc
|
|
3503
|
-
...(input.GroupName
|
|
3504
|
-
...(input.Tags
|
|
3505
|
-
...(input.UserRules
|
|
3506
|
-
input.UserRules !== null && { UserRules: serializeAws_json1_1IpRuleList(input.UserRules, context) }),
|
|
3557
|
+
...(input.GroupDesc != null && { GroupDesc: input.GroupDesc }),
|
|
3558
|
+
...(input.GroupName != null && { GroupName: input.GroupName }),
|
|
3559
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
3560
|
+
...(input.UserRules != null && { UserRules: serializeAws_json1_1IpRuleList(input.UserRules, context) }),
|
|
3507
3561
|
};
|
|
3508
3562
|
};
|
|
3509
3563
|
const serializeAws_json1_1CreateTagsRequest = (input, context) => {
|
|
3510
3564
|
return {
|
|
3511
|
-
...(input.ResourceId
|
|
3512
|
-
...(input.Tags
|
|
3565
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
3566
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
3513
3567
|
};
|
|
3514
3568
|
};
|
|
3515
3569
|
const serializeAws_json1_1CreateUpdatedWorkspaceImageRequest = (input, context) => {
|
|
3516
3570
|
return {
|
|
3517
|
-
...(input.Description
|
|
3518
|
-
...(input.Name
|
|
3519
|
-
...(input.SourceImageId
|
|
3520
|
-
...(input.Tags
|
|
3571
|
+
...(input.Description != null && { Description: input.Description }),
|
|
3572
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3573
|
+
...(input.SourceImageId != null && { SourceImageId: input.SourceImageId }),
|
|
3574
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
3521
3575
|
};
|
|
3522
3576
|
};
|
|
3523
3577
|
const serializeAws_json1_1CreateWorkspaceBundleRequest = (input, context) => {
|
|
3524
3578
|
return {
|
|
3525
|
-
...(input.BundleDescription
|
|
3526
|
-
|
|
3527
|
-
...(input.
|
|
3528
|
-
...(input.
|
|
3529
|
-
|
|
3530
|
-
...(input.
|
|
3531
|
-
...(input.
|
|
3532
|
-
input.RootStorage !== null && { RootStorage: serializeAws_json1_1RootStorage(input.RootStorage, context) }),
|
|
3533
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
3534
|
-
...(input.UserStorage !== undefined &&
|
|
3535
|
-
input.UserStorage !== null && { UserStorage: serializeAws_json1_1UserStorage(input.UserStorage, context) }),
|
|
3579
|
+
...(input.BundleDescription != null && { BundleDescription: input.BundleDescription }),
|
|
3580
|
+
...(input.BundleName != null && { BundleName: input.BundleName }),
|
|
3581
|
+
...(input.ComputeType != null && { ComputeType: serializeAws_json1_1ComputeType(input.ComputeType, context) }),
|
|
3582
|
+
...(input.ImageId != null && { ImageId: input.ImageId }),
|
|
3583
|
+
...(input.RootStorage != null && { RootStorage: serializeAws_json1_1RootStorage(input.RootStorage, context) }),
|
|
3584
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
3585
|
+
...(input.UserStorage != null && { UserStorage: serializeAws_json1_1UserStorage(input.UserStorage, context) }),
|
|
3536
3586
|
};
|
|
3537
3587
|
};
|
|
3538
3588
|
const serializeAws_json1_1CreateWorkspacesRequest = (input, context) => {
|
|
3539
3589
|
return {
|
|
3540
|
-
...(input.Workspaces
|
|
3541
|
-
|
|
3590
|
+
...(input.Workspaces != null && {
|
|
3591
|
+
Workspaces: serializeAws_json1_1WorkspaceRequestList(input.Workspaces, context),
|
|
3592
|
+
}),
|
|
3542
3593
|
};
|
|
3543
3594
|
};
|
|
3544
3595
|
const serializeAws_json1_1DefaultImportClientBrandingAttributes = (input, context) => {
|
|
3545
3596
|
return {
|
|
3546
|
-
...(input.ForgotPasswordLink
|
|
3547
|
-
|
|
3548
|
-
...(input.
|
|
3549
|
-
|
|
3550
|
-
...(input.
|
|
3551
|
-
...(input.SupportEmail !== undefined && input.SupportEmail !== null && { SupportEmail: input.SupportEmail }),
|
|
3552
|
-
...(input.SupportLink !== undefined && input.SupportLink !== null && { SupportLink: input.SupportLink }),
|
|
3597
|
+
...(input.ForgotPasswordLink != null && { ForgotPasswordLink: input.ForgotPasswordLink }),
|
|
3598
|
+
...(input.LoginMessage != null && { LoginMessage: serializeAws_json1_1LoginMessage(input.LoginMessage, context) }),
|
|
3599
|
+
...(input.Logo != null && { Logo: context.base64Encoder(input.Logo) }),
|
|
3600
|
+
...(input.SupportEmail != null && { SupportEmail: input.SupportEmail }),
|
|
3601
|
+
...(input.SupportLink != null && { SupportLink: input.SupportLink }),
|
|
3553
3602
|
};
|
|
3554
3603
|
};
|
|
3555
3604
|
const serializeAws_json1_1DeleteClientBrandingRequest = (input, context) => {
|
|
3556
3605
|
return {
|
|
3557
|
-
...(input.Platforms
|
|
3558
|
-
|
|
3559
|
-
...(input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId }),
|
|
3606
|
+
...(input.Platforms != null && { Platforms: serializeAws_json1_1ClientDeviceTypeList(input.Platforms, context) }),
|
|
3607
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
3560
3608
|
};
|
|
3561
3609
|
};
|
|
3562
3610
|
const serializeAws_json1_1DeleteConnectClientAddInRequest = (input, context) => {
|
|
3563
3611
|
return {
|
|
3564
|
-
...(input.AddInId
|
|
3565
|
-
...(input.ResourceId
|
|
3612
|
+
...(input.AddInId != null && { AddInId: input.AddInId }),
|
|
3613
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
3566
3614
|
};
|
|
3567
3615
|
};
|
|
3568
3616
|
const serializeAws_json1_1DeleteConnectionAliasRequest = (input, context) => {
|
|
3569
3617
|
return {
|
|
3570
|
-
...(input.AliasId
|
|
3618
|
+
...(input.AliasId != null && { AliasId: input.AliasId }),
|
|
3571
3619
|
};
|
|
3572
3620
|
};
|
|
3573
3621
|
const serializeAws_json1_1DeleteIpGroupRequest = (input, context) => {
|
|
3574
3622
|
return {
|
|
3575
|
-
...(input.GroupId
|
|
3623
|
+
...(input.GroupId != null && { GroupId: input.GroupId }),
|
|
3576
3624
|
};
|
|
3577
3625
|
};
|
|
3578
3626
|
const serializeAws_json1_1DeleteTagsRequest = (input, context) => {
|
|
3579
3627
|
return {
|
|
3580
|
-
...(input.ResourceId
|
|
3581
|
-
...(input.TagKeys
|
|
3582
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
3628
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
3629
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
3583
3630
|
};
|
|
3584
3631
|
};
|
|
3585
3632
|
const serializeAws_json1_1DeleteWorkspaceBundleRequest = (input, context) => {
|
|
3586
3633
|
return {
|
|
3587
|
-
...(input.BundleId
|
|
3634
|
+
...(input.BundleId != null && { BundleId: input.BundleId }),
|
|
3588
3635
|
};
|
|
3589
3636
|
};
|
|
3590
3637
|
const serializeAws_json1_1DeleteWorkspaceImageRequest = (input, context) => {
|
|
3591
3638
|
return {
|
|
3592
|
-
...(input.ImageId
|
|
3639
|
+
...(input.ImageId != null && { ImageId: input.ImageId }),
|
|
3593
3640
|
};
|
|
3594
3641
|
};
|
|
3595
3642
|
const serializeAws_json1_1DeregisterWorkspaceDirectoryRequest = (input, context) => {
|
|
3596
3643
|
return {
|
|
3597
|
-
...(input.DirectoryId
|
|
3644
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
3598
3645
|
};
|
|
3599
3646
|
};
|
|
3600
3647
|
const serializeAws_json1_1DescribeAccountModificationsRequest = (input, context) => {
|
|
3601
3648
|
return {
|
|
3602
|
-
...(input.NextToken
|
|
3649
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3603
3650
|
};
|
|
3604
3651
|
};
|
|
3605
3652
|
const serializeAws_json1_1DescribeAccountRequest = (input, context) => {
|
|
@@ -3607,108 +3654,100 @@ const serializeAws_json1_1DescribeAccountRequest = (input, context) => {
|
|
|
3607
3654
|
};
|
|
3608
3655
|
const serializeAws_json1_1DescribeClientBrandingRequest = (input, context) => {
|
|
3609
3656
|
return {
|
|
3610
|
-
...(input.ResourceId
|
|
3657
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
3611
3658
|
};
|
|
3612
3659
|
};
|
|
3613
3660
|
const serializeAws_json1_1DescribeClientPropertiesRequest = (input, context) => {
|
|
3614
3661
|
return {
|
|
3615
|
-
...(input.ResourceIds
|
|
3616
|
-
input.ResourceIds !== null && { ResourceIds: serializeAws_json1_1ResourceIdList(input.ResourceIds, context) }),
|
|
3662
|
+
...(input.ResourceIds != null && { ResourceIds: serializeAws_json1_1ResourceIdList(input.ResourceIds, context) }),
|
|
3617
3663
|
};
|
|
3618
3664
|
};
|
|
3619
3665
|
const serializeAws_json1_1DescribeConnectClientAddInsRequest = (input, context) => {
|
|
3620
3666
|
return {
|
|
3621
|
-
...(input.MaxResults
|
|
3622
|
-
...(input.NextToken
|
|
3623
|
-
...(input.ResourceId
|
|
3667
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3668
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3669
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
3624
3670
|
};
|
|
3625
3671
|
};
|
|
3626
3672
|
const serializeAws_json1_1DescribeConnectionAliasesRequest = (input, context) => {
|
|
3627
3673
|
return {
|
|
3628
|
-
...(input.AliasIds
|
|
3629
|
-
|
|
3630
|
-
...(input.
|
|
3631
|
-
...(input.
|
|
3632
|
-
...(input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId }),
|
|
3674
|
+
...(input.AliasIds != null && { AliasIds: serializeAws_json1_1ConnectionAliasIdList(input.AliasIds, context) }),
|
|
3675
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
3676
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3677
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
3633
3678
|
};
|
|
3634
3679
|
};
|
|
3635
3680
|
const serializeAws_json1_1DescribeConnectionAliasPermissionsRequest = (input, context) => {
|
|
3636
3681
|
return {
|
|
3637
|
-
...(input.AliasId
|
|
3638
|
-
...(input.MaxResults
|
|
3639
|
-
...(input.NextToken
|
|
3682
|
+
...(input.AliasId != null && { AliasId: input.AliasId }),
|
|
3683
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3684
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3640
3685
|
};
|
|
3641
3686
|
};
|
|
3642
3687
|
const serializeAws_json1_1DescribeIpGroupsRequest = (input, context) => {
|
|
3643
3688
|
return {
|
|
3644
|
-
...(input.GroupIds
|
|
3645
|
-
|
|
3646
|
-
...(input.
|
|
3647
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
3689
|
+
...(input.GroupIds != null && { GroupIds: serializeAws_json1_1IpGroupIdList(input.GroupIds, context) }),
|
|
3690
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3691
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3648
3692
|
};
|
|
3649
3693
|
};
|
|
3650
3694
|
const serializeAws_json1_1DescribeTagsRequest = (input, context) => {
|
|
3651
3695
|
return {
|
|
3652
|
-
...(input.ResourceId
|
|
3696
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
3653
3697
|
};
|
|
3654
3698
|
};
|
|
3655
3699
|
const serializeAws_json1_1DescribeWorkspaceBundlesRequest = (input, context) => {
|
|
3656
3700
|
return {
|
|
3657
|
-
...(input.BundleIds
|
|
3658
|
-
|
|
3659
|
-
...(input.
|
|
3660
|
-
...(input.Owner !== undefined && input.Owner !== null && { Owner: input.Owner }),
|
|
3701
|
+
...(input.BundleIds != null && { BundleIds: serializeAws_json1_1BundleIdList(input.BundleIds, context) }),
|
|
3702
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3703
|
+
...(input.Owner != null && { Owner: input.Owner }),
|
|
3661
3704
|
};
|
|
3662
3705
|
};
|
|
3663
3706
|
const serializeAws_json1_1DescribeWorkspaceDirectoriesRequest = (input, context) => {
|
|
3664
3707
|
return {
|
|
3665
|
-
...(input.DirectoryIds
|
|
3666
|
-
input.DirectoryIds !== null && {
|
|
3708
|
+
...(input.DirectoryIds != null && {
|
|
3667
3709
|
DirectoryIds: serializeAws_json1_1DirectoryIdList(input.DirectoryIds, context),
|
|
3668
3710
|
}),
|
|
3669
|
-
...(input.Limit
|
|
3670
|
-
...(input.NextToken
|
|
3711
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
3712
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3671
3713
|
};
|
|
3672
3714
|
};
|
|
3673
3715
|
const serializeAws_json1_1DescribeWorkspaceImagePermissionsRequest = (input, context) => {
|
|
3674
3716
|
return {
|
|
3675
|
-
...(input.ImageId
|
|
3676
|
-
...(input.MaxResults
|
|
3677
|
-
...(input.NextToken
|
|
3717
|
+
...(input.ImageId != null && { ImageId: input.ImageId }),
|
|
3718
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3719
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3678
3720
|
};
|
|
3679
3721
|
};
|
|
3680
3722
|
const serializeAws_json1_1DescribeWorkspaceImagesRequest = (input, context) => {
|
|
3681
3723
|
return {
|
|
3682
|
-
...(input.ImageIds
|
|
3683
|
-
|
|
3684
|
-
...(input.
|
|
3685
|
-
...(input.
|
|
3686
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
3724
|
+
...(input.ImageIds != null && { ImageIds: serializeAws_json1_1WorkspaceImageIdList(input.ImageIds, context) }),
|
|
3725
|
+
...(input.ImageType != null && { ImageType: input.ImageType }),
|
|
3726
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3727
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3687
3728
|
};
|
|
3688
3729
|
};
|
|
3689
3730
|
const serializeAws_json1_1DescribeWorkspacesConnectionStatusRequest = (input, context) => {
|
|
3690
3731
|
return {
|
|
3691
|
-
...(input.NextToken
|
|
3692
|
-
...(input.WorkspaceIds
|
|
3693
|
-
input.WorkspaceIds !== null && {
|
|
3732
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3733
|
+
...(input.WorkspaceIds != null && {
|
|
3694
3734
|
WorkspaceIds: serializeAws_json1_1WorkspaceIdList(input.WorkspaceIds, context),
|
|
3695
3735
|
}),
|
|
3696
3736
|
};
|
|
3697
3737
|
};
|
|
3698
3738
|
const serializeAws_json1_1DescribeWorkspaceSnapshotsRequest = (input, context) => {
|
|
3699
3739
|
return {
|
|
3700
|
-
...(input.WorkspaceId
|
|
3740
|
+
...(input.WorkspaceId != null && { WorkspaceId: input.WorkspaceId }),
|
|
3701
3741
|
};
|
|
3702
3742
|
};
|
|
3703
3743
|
const serializeAws_json1_1DescribeWorkspacesRequest = (input, context) => {
|
|
3704
3744
|
return {
|
|
3705
|
-
...(input.BundleId
|
|
3706
|
-
...(input.DirectoryId
|
|
3707
|
-
...(input.Limit
|
|
3708
|
-
...(input.NextToken
|
|
3709
|
-
...(input.UserName
|
|
3710
|
-
...(input.WorkspaceIds
|
|
3711
|
-
input.WorkspaceIds !== null && {
|
|
3745
|
+
...(input.BundleId != null && { BundleId: input.BundleId }),
|
|
3746
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
3747
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
3748
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3749
|
+
...(input.UserName != null && { UserName: input.UserName }),
|
|
3750
|
+
...(input.WorkspaceIds != null && {
|
|
3712
3751
|
WorkspaceIds: serializeAws_json1_1WorkspaceIdList(input.WorkspaceIds, context),
|
|
3713
3752
|
}),
|
|
3714
3753
|
};
|
|
@@ -3725,71 +3764,59 @@ const serializeAws_json1_1DirectoryIdList = (input, context) => {
|
|
|
3725
3764
|
};
|
|
3726
3765
|
const serializeAws_json1_1DisassociateConnectionAliasRequest = (input, context) => {
|
|
3727
3766
|
return {
|
|
3728
|
-
...(input.AliasId
|
|
3767
|
+
...(input.AliasId != null && { AliasId: input.AliasId }),
|
|
3729
3768
|
};
|
|
3730
3769
|
};
|
|
3731
3770
|
const serializeAws_json1_1DisassociateIpGroupsRequest = (input, context) => {
|
|
3732
3771
|
return {
|
|
3733
|
-
...(input.DirectoryId
|
|
3734
|
-
...(input.GroupIds
|
|
3735
|
-
input.GroupIds !== null && { GroupIds: serializeAws_json1_1IpGroupIdList(input.GroupIds, context) }),
|
|
3772
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
3773
|
+
...(input.GroupIds != null && { GroupIds: serializeAws_json1_1IpGroupIdList(input.GroupIds, context) }),
|
|
3736
3774
|
};
|
|
3737
3775
|
};
|
|
3738
3776
|
const serializeAws_json1_1ImportClientBrandingRequest = (input, context) => {
|
|
3739
3777
|
return {
|
|
3740
|
-
...(input.DeviceTypeAndroid
|
|
3741
|
-
input.DeviceTypeAndroid !== null && {
|
|
3778
|
+
...(input.DeviceTypeAndroid != null && {
|
|
3742
3779
|
DeviceTypeAndroid: serializeAws_json1_1DefaultImportClientBrandingAttributes(input.DeviceTypeAndroid, context),
|
|
3743
3780
|
}),
|
|
3744
|
-
...(input.DeviceTypeIos
|
|
3745
|
-
input.DeviceTypeIos !== null && {
|
|
3781
|
+
...(input.DeviceTypeIos != null && {
|
|
3746
3782
|
DeviceTypeIos: serializeAws_json1_1IosImportClientBrandingAttributes(input.DeviceTypeIos, context),
|
|
3747
3783
|
}),
|
|
3748
|
-
...(input.DeviceTypeLinux
|
|
3749
|
-
input.DeviceTypeLinux !== null && {
|
|
3784
|
+
...(input.DeviceTypeLinux != null && {
|
|
3750
3785
|
DeviceTypeLinux: serializeAws_json1_1DefaultImportClientBrandingAttributes(input.DeviceTypeLinux, context),
|
|
3751
3786
|
}),
|
|
3752
|
-
...(input.DeviceTypeOsx
|
|
3753
|
-
input.DeviceTypeOsx !== null && {
|
|
3787
|
+
...(input.DeviceTypeOsx != null && {
|
|
3754
3788
|
DeviceTypeOsx: serializeAws_json1_1DefaultImportClientBrandingAttributes(input.DeviceTypeOsx, context),
|
|
3755
3789
|
}),
|
|
3756
|
-
...(input.DeviceTypeWeb
|
|
3757
|
-
input.DeviceTypeWeb !== null && {
|
|
3790
|
+
...(input.DeviceTypeWeb != null && {
|
|
3758
3791
|
DeviceTypeWeb: serializeAws_json1_1DefaultImportClientBrandingAttributes(input.DeviceTypeWeb, context),
|
|
3759
3792
|
}),
|
|
3760
|
-
...(input.DeviceTypeWindows
|
|
3761
|
-
input.DeviceTypeWindows !== null && {
|
|
3793
|
+
...(input.DeviceTypeWindows != null && {
|
|
3762
3794
|
DeviceTypeWindows: serializeAws_json1_1DefaultImportClientBrandingAttributes(input.DeviceTypeWindows, context),
|
|
3763
3795
|
}),
|
|
3764
|
-
...(input.ResourceId
|
|
3796
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
3765
3797
|
};
|
|
3766
3798
|
};
|
|
3767
3799
|
const serializeAws_json1_1ImportWorkspaceImageRequest = (input, context) => {
|
|
3768
3800
|
return {
|
|
3769
|
-
...(input.Applications
|
|
3770
|
-
input.Applications !== null && {
|
|
3801
|
+
...(input.Applications != null && {
|
|
3771
3802
|
Applications: serializeAws_json1_1ApplicationList(input.Applications, context),
|
|
3772
3803
|
}),
|
|
3773
|
-
...(input.Ec2ImageId
|
|
3774
|
-
...(input.ImageDescription
|
|
3775
|
-
|
|
3776
|
-
...(input.
|
|
3777
|
-
...(input.
|
|
3778
|
-
input.IngestionProcess !== null && { IngestionProcess: input.IngestionProcess }),
|
|
3779
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
3804
|
+
...(input.Ec2ImageId != null && { Ec2ImageId: input.Ec2ImageId }),
|
|
3805
|
+
...(input.ImageDescription != null && { ImageDescription: input.ImageDescription }),
|
|
3806
|
+
...(input.ImageName != null && { ImageName: input.ImageName }),
|
|
3807
|
+
...(input.IngestionProcess != null && { IngestionProcess: input.IngestionProcess }),
|
|
3808
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
3780
3809
|
};
|
|
3781
3810
|
};
|
|
3782
3811
|
const serializeAws_json1_1IosImportClientBrandingAttributes = (input, context) => {
|
|
3783
3812
|
return {
|
|
3784
|
-
...(input.ForgotPasswordLink
|
|
3785
|
-
|
|
3786
|
-
...(input.
|
|
3787
|
-
|
|
3788
|
-
...(input.
|
|
3789
|
-
...(input.
|
|
3790
|
-
...(input.
|
|
3791
|
-
...(input.SupportEmail !== undefined && input.SupportEmail !== null && { SupportEmail: input.SupportEmail }),
|
|
3792
|
-
...(input.SupportLink !== undefined && input.SupportLink !== null && { SupportLink: input.SupportLink }),
|
|
3813
|
+
...(input.ForgotPasswordLink != null && { ForgotPasswordLink: input.ForgotPasswordLink }),
|
|
3814
|
+
...(input.LoginMessage != null && { LoginMessage: serializeAws_json1_1LoginMessage(input.LoginMessage, context) }),
|
|
3815
|
+
...(input.Logo != null && { Logo: context.base64Encoder(input.Logo) }),
|
|
3816
|
+
...(input.Logo2x != null && { Logo2x: context.base64Encoder(input.Logo2x) }),
|
|
3817
|
+
...(input.Logo3x != null && { Logo3x: context.base64Encoder(input.Logo3x) }),
|
|
3818
|
+
...(input.SupportEmail != null && { SupportEmail: input.SupportEmail }),
|
|
3819
|
+
...(input.SupportLink != null && { SupportLink: input.SupportLink }),
|
|
3793
3820
|
};
|
|
3794
3821
|
};
|
|
3795
3822
|
const serializeAws_json1_1IpGroupIdList = (input, context) => {
|
|
@@ -3814,8 +3841,8 @@ const serializeAws_json1_1IpRevokedRuleList = (input, context) => {
|
|
|
3814
3841
|
};
|
|
3815
3842
|
const serializeAws_json1_1IpRuleItem = (input, context) => {
|
|
3816
3843
|
return {
|
|
3817
|
-
...(input.ipRule
|
|
3818
|
-
...(input.ruleDesc
|
|
3844
|
+
...(input.ipRule != null && { ipRule: input.ipRule }),
|
|
3845
|
+
...(input.ruleDesc != null && { ruleDesc: input.ruleDesc }),
|
|
3819
3846
|
};
|
|
3820
3847
|
};
|
|
3821
3848
|
const serializeAws_json1_1IpRuleList = (input, context) => {
|
|
@@ -3830,12 +3857,11 @@ const serializeAws_json1_1IpRuleList = (input, context) => {
|
|
|
3830
3857
|
};
|
|
3831
3858
|
const serializeAws_json1_1ListAvailableManagementCidrRangesRequest = (input, context) => {
|
|
3832
3859
|
return {
|
|
3833
|
-
...(input.ManagementCidrRangeConstraint
|
|
3834
|
-
input.ManagementCidrRangeConstraint !== null && {
|
|
3860
|
+
...(input.ManagementCidrRangeConstraint != null && {
|
|
3835
3861
|
ManagementCidrRangeConstraint: input.ManagementCidrRangeConstraint,
|
|
3836
3862
|
}),
|
|
3837
|
-
...(input.MaxResults
|
|
3838
|
-
...(input.NextToken
|
|
3863
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3864
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3839
3865
|
};
|
|
3840
3866
|
};
|
|
3841
3867
|
const serializeAws_json1_1LoginMessage = (input, context) => {
|
|
@@ -3851,76 +3877,67 @@ const serializeAws_json1_1LoginMessage = (input, context) => {
|
|
|
3851
3877
|
};
|
|
3852
3878
|
const serializeAws_json1_1MigrateWorkspaceRequest = (input, context) => {
|
|
3853
3879
|
return {
|
|
3854
|
-
...(input.BundleId
|
|
3855
|
-
...(input.SourceWorkspaceId
|
|
3856
|
-
input.SourceWorkspaceId !== null && { SourceWorkspaceId: input.SourceWorkspaceId }),
|
|
3880
|
+
...(input.BundleId != null && { BundleId: input.BundleId }),
|
|
3881
|
+
...(input.SourceWorkspaceId != null && { SourceWorkspaceId: input.SourceWorkspaceId }),
|
|
3857
3882
|
};
|
|
3858
3883
|
};
|
|
3859
3884
|
const serializeAws_json1_1ModifyAccountRequest = (input, context) => {
|
|
3860
3885
|
return {
|
|
3861
|
-
...(input.DedicatedTenancyManagementCidrRange
|
|
3862
|
-
input.DedicatedTenancyManagementCidrRange !== null && {
|
|
3886
|
+
...(input.DedicatedTenancyManagementCidrRange != null && {
|
|
3863
3887
|
DedicatedTenancyManagementCidrRange: input.DedicatedTenancyManagementCidrRange,
|
|
3864
3888
|
}),
|
|
3865
|
-
...(input.DedicatedTenancySupport
|
|
3866
|
-
input.DedicatedTenancySupport !== null && { DedicatedTenancySupport: input.DedicatedTenancySupport }),
|
|
3889
|
+
...(input.DedicatedTenancySupport != null && { DedicatedTenancySupport: input.DedicatedTenancySupport }),
|
|
3867
3890
|
};
|
|
3868
3891
|
};
|
|
3869
3892
|
const serializeAws_json1_1ModifyClientPropertiesRequest = (input, context) => {
|
|
3870
3893
|
return {
|
|
3871
|
-
...(input.ClientProperties
|
|
3872
|
-
input.ClientProperties !== null && {
|
|
3894
|
+
...(input.ClientProperties != null && {
|
|
3873
3895
|
ClientProperties: serializeAws_json1_1ClientProperties(input.ClientProperties, context),
|
|
3874
3896
|
}),
|
|
3875
|
-
...(input.ResourceId
|
|
3897
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
3876
3898
|
};
|
|
3877
3899
|
};
|
|
3878
3900
|
const serializeAws_json1_1ModifySelfservicePermissionsRequest = (input, context) => {
|
|
3879
3901
|
return {
|
|
3880
|
-
...(input.ResourceId
|
|
3881
|
-
...(input.SelfservicePermissions
|
|
3882
|
-
input.SelfservicePermissions !== null && {
|
|
3902
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
3903
|
+
...(input.SelfservicePermissions != null && {
|
|
3883
3904
|
SelfservicePermissions: serializeAws_json1_1SelfservicePermissions(input.SelfservicePermissions, context),
|
|
3884
3905
|
}),
|
|
3885
3906
|
};
|
|
3886
3907
|
};
|
|
3887
3908
|
const serializeAws_json1_1ModifyWorkspaceAccessPropertiesRequest = (input, context) => {
|
|
3888
3909
|
return {
|
|
3889
|
-
...(input.ResourceId
|
|
3890
|
-
...(input.WorkspaceAccessProperties
|
|
3891
|
-
input.WorkspaceAccessProperties !== null && {
|
|
3910
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
3911
|
+
...(input.WorkspaceAccessProperties != null && {
|
|
3892
3912
|
WorkspaceAccessProperties: serializeAws_json1_1WorkspaceAccessProperties(input.WorkspaceAccessProperties, context),
|
|
3893
3913
|
}),
|
|
3894
3914
|
};
|
|
3895
3915
|
};
|
|
3896
3916
|
const serializeAws_json1_1ModifyWorkspaceCreationPropertiesRequest = (input, context) => {
|
|
3897
3917
|
return {
|
|
3898
|
-
...(input.ResourceId
|
|
3899
|
-
...(input.WorkspaceCreationProperties
|
|
3900
|
-
input.WorkspaceCreationProperties !== null && {
|
|
3918
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
3919
|
+
...(input.WorkspaceCreationProperties != null && {
|
|
3901
3920
|
WorkspaceCreationProperties: serializeAws_json1_1WorkspaceCreationProperties(input.WorkspaceCreationProperties, context),
|
|
3902
3921
|
}),
|
|
3903
3922
|
};
|
|
3904
3923
|
};
|
|
3905
3924
|
const serializeAws_json1_1ModifyWorkspacePropertiesRequest = (input, context) => {
|
|
3906
3925
|
return {
|
|
3907
|
-
...(input.WorkspaceId
|
|
3908
|
-
...(input.WorkspaceProperties
|
|
3909
|
-
input.WorkspaceProperties !== null && {
|
|
3926
|
+
...(input.WorkspaceId != null && { WorkspaceId: input.WorkspaceId }),
|
|
3927
|
+
...(input.WorkspaceProperties != null && {
|
|
3910
3928
|
WorkspaceProperties: serializeAws_json1_1WorkspaceProperties(input.WorkspaceProperties, context),
|
|
3911
3929
|
}),
|
|
3912
3930
|
};
|
|
3913
3931
|
};
|
|
3914
3932
|
const serializeAws_json1_1ModifyWorkspaceStateRequest = (input, context) => {
|
|
3915
3933
|
return {
|
|
3916
|
-
...(input.WorkspaceId
|
|
3917
|
-
...(input.WorkspaceState
|
|
3918
|
-
input.WorkspaceState !== null && { WorkspaceState: input.WorkspaceState }),
|
|
3934
|
+
...(input.WorkspaceId != null && { WorkspaceId: input.WorkspaceId }),
|
|
3935
|
+
...(input.WorkspaceState != null && { WorkspaceState: input.WorkspaceState }),
|
|
3919
3936
|
};
|
|
3920
3937
|
};
|
|
3921
3938
|
const serializeAws_json1_1RebootRequest = (input, context) => {
|
|
3922
3939
|
return {
|
|
3923
|
-
...(input.WorkspaceId
|
|
3940
|
+
...(input.WorkspaceId != null && { WorkspaceId: input.WorkspaceId }),
|
|
3924
3941
|
};
|
|
3925
3942
|
};
|
|
3926
3943
|
const serializeAws_json1_1RebootWorkspaceRequests = (input, context) => {
|
|
@@ -3935,15 +3952,14 @@ const serializeAws_json1_1RebootWorkspaceRequests = (input, context) => {
|
|
|
3935
3952
|
};
|
|
3936
3953
|
const serializeAws_json1_1RebootWorkspacesRequest = (input, context) => {
|
|
3937
3954
|
return {
|
|
3938
|
-
...(input.RebootWorkspaceRequests
|
|
3939
|
-
input.RebootWorkspaceRequests !== null && {
|
|
3955
|
+
...(input.RebootWorkspaceRequests != null && {
|
|
3940
3956
|
RebootWorkspaceRequests: serializeAws_json1_1RebootWorkspaceRequests(input.RebootWorkspaceRequests, context),
|
|
3941
3957
|
}),
|
|
3942
3958
|
};
|
|
3943
3959
|
};
|
|
3944
3960
|
const serializeAws_json1_1RebuildRequest = (input, context) => {
|
|
3945
3961
|
return {
|
|
3946
|
-
...(input.WorkspaceId
|
|
3962
|
+
...(input.WorkspaceId != null && { WorkspaceId: input.WorkspaceId }),
|
|
3947
3963
|
};
|
|
3948
3964
|
};
|
|
3949
3965
|
const serializeAws_json1_1RebuildWorkspaceRequests = (input, context) => {
|
|
@@ -3958,23 +3974,19 @@ const serializeAws_json1_1RebuildWorkspaceRequests = (input, context) => {
|
|
|
3958
3974
|
};
|
|
3959
3975
|
const serializeAws_json1_1RebuildWorkspacesRequest = (input, context) => {
|
|
3960
3976
|
return {
|
|
3961
|
-
...(input.RebuildWorkspaceRequests
|
|
3962
|
-
input.RebuildWorkspaceRequests !== null && {
|
|
3977
|
+
...(input.RebuildWorkspaceRequests != null && {
|
|
3963
3978
|
RebuildWorkspaceRequests: serializeAws_json1_1RebuildWorkspaceRequests(input.RebuildWorkspaceRequests, context),
|
|
3964
3979
|
}),
|
|
3965
3980
|
};
|
|
3966
3981
|
};
|
|
3967
3982
|
const serializeAws_json1_1RegisterWorkspaceDirectoryRequest = (input, context) => {
|
|
3968
3983
|
return {
|
|
3969
|
-
...(input.DirectoryId
|
|
3970
|
-
...(input.EnableSelfService
|
|
3971
|
-
|
|
3972
|
-
...(input.
|
|
3973
|
-
|
|
3974
|
-
...(input.
|
|
3975
|
-
input.SubnetIds !== null && { SubnetIds: serializeAws_json1_1SubnetIds(input.SubnetIds, context) }),
|
|
3976
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
3977
|
-
...(input.Tenancy !== undefined && input.Tenancy !== null && { Tenancy: input.Tenancy }),
|
|
3984
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
3985
|
+
...(input.EnableSelfService != null && { EnableSelfService: input.EnableSelfService }),
|
|
3986
|
+
...(input.EnableWorkDocs != null && { EnableWorkDocs: input.EnableWorkDocs }),
|
|
3987
|
+
...(input.SubnetIds != null && { SubnetIds: serializeAws_json1_1SubnetIds(input.SubnetIds, context) }),
|
|
3988
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
3989
|
+
...(input.Tenancy != null && { Tenancy: input.Tenancy }),
|
|
3978
3990
|
};
|
|
3979
3991
|
};
|
|
3980
3992
|
const serializeAws_json1_1ResourceIdList = (input, context) => {
|
|
@@ -3989,38 +4001,32 @@ const serializeAws_json1_1ResourceIdList = (input, context) => {
|
|
|
3989
4001
|
};
|
|
3990
4002
|
const serializeAws_json1_1RestoreWorkspaceRequest = (input, context) => {
|
|
3991
4003
|
return {
|
|
3992
|
-
...(input.WorkspaceId
|
|
4004
|
+
...(input.WorkspaceId != null && { WorkspaceId: input.WorkspaceId }),
|
|
3993
4005
|
};
|
|
3994
4006
|
};
|
|
3995
4007
|
const serializeAws_json1_1RevokeIpRulesRequest = (input, context) => {
|
|
3996
4008
|
return {
|
|
3997
|
-
...(input.GroupId
|
|
3998
|
-
...(input.UserRules
|
|
3999
|
-
input.UserRules !== null && { UserRules: serializeAws_json1_1IpRevokedRuleList(input.UserRules, context) }),
|
|
4009
|
+
...(input.GroupId != null && { GroupId: input.GroupId }),
|
|
4010
|
+
...(input.UserRules != null && { UserRules: serializeAws_json1_1IpRevokedRuleList(input.UserRules, context) }),
|
|
4000
4011
|
};
|
|
4001
4012
|
};
|
|
4002
4013
|
const serializeAws_json1_1RootStorage = (input, context) => {
|
|
4003
4014
|
return {
|
|
4004
|
-
...(input.Capacity
|
|
4015
|
+
...(input.Capacity != null && { Capacity: input.Capacity }),
|
|
4005
4016
|
};
|
|
4006
4017
|
};
|
|
4007
4018
|
const serializeAws_json1_1SelfservicePermissions = (input, context) => {
|
|
4008
4019
|
return {
|
|
4009
|
-
...(input.ChangeComputeType
|
|
4010
|
-
|
|
4011
|
-
...(input.
|
|
4012
|
-
|
|
4013
|
-
...(input.
|
|
4014
|
-
input.RebuildWorkspace !== null && { RebuildWorkspace: input.RebuildWorkspace }),
|
|
4015
|
-
...(input.RestartWorkspace !== undefined &&
|
|
4016
|
-
input.RestartWorkspace !== null && { RestartWorkspace: input.RestartWorkspace }),
|
|
4017
|
-
...(input.SwitchRunningMode !== undefined &&
|
|
4018
|
-
input.SwitchRunningMode !== null && { SwitchRunningMode: input.SwitchRunningMode }),
|
|
4020
|
+
...(input.ChangeComputeType != null && { ChangeComputeType: input.ChangeComputeType }),
|
|
4021
|
+
...(input.IncreaseVolumeSize != null && { IncreaseVolumeSize: input.IncreaseVolumeSize }),
|
|
4022
|
+
...(input.RebuildWorkspace != null && { RebuildWorkspace: input.RebuildWorkspace }),
|
|
4023
|
+
...(input.RestartWorkspace != null && { RestartWorkspace: input.RestartWorkspace }),
|
|
4024
|
+
...(input.SwitchRunningMode != null && { SwitchRunningMode: input.SwitchRunningMode }),
|
|
4019
4025
|
};
|
|
4020
4026
|
};
|
|
4021
4027
|
const serializeAws_json1_1StartRequest = (input, context) => {
|
|
4022
4028
|
return {
|
|
4023
|
-
...(input.WorkspaceId
|
|
4029
|
+
...(input.WorkspaceId != null && { WorkspaceId: input.WorkspaceId }),
|
|
4024
4030
|
};
|
|
4025
4031
|
};
|
|
4026
4032
|
const serializeAws_json1_1StartWorkspaceRequests = (input, context) => {
|
|
@@ -4035,15 +4041,14 @@ const serializeAws_json1_1StartWorkspaceRequests = (input, context) => {
|
|
|
4035
4041
|
};
|
|
4036
4042
|
const serializeAws_json1_1StartWorkspacesRequest = (input, context) => {
|
|
4037
4043
|
return {
|
|
4038
|
-
...(input.StartWorkspaceRequests
|
|
4039
|
-
input.StartWorkspaceRequests !== null && {
|
|
4044
|
+
...(input.StartWorkspaceRequests != null && {
|
|
4040
4045
|
StartWorkspaceRequests: serializeAws_json1_1StartWorkspaceRequests(input.StartWorkspaceRequests, context),
|
|
4041
4046
|
}),
|
|
4042
4047
|
};
|
|
4043
4048
|
};
|
|
4044
4049
|
const serializeAws_json1_1StopRequest = (input, context) => {
|
|
4045
4050
|
return {
|
|
4046
|
-
...(input.WorkspaceId
|
|
4051
|
+
...(input.WorkspaceId != null && { WorkspaceId: input.WorkspaceId }),
|
|
4047
4052
|
};
|
|
4048
4053
|
};
|
|
4049
4054
|
const serializeAws_json1_1StopWorkspaceRequests = (input, context) => {
|
|
@@ -4058,8 +4063,7 @@ const serializeAws_json1_1StopWorkspaceRequests = (input, context) => {
|
|
|
4058
4063
|
};
|
|
4059
4064
|
const serializeAws_json1_1StopWorkspacesRequest = (input, context) => {
|
|
4060
4065
|
return {
|
|
4061
|
-
...(input.StopWorkspaceRequests
|
|
4062
|
-
input.StopWorkspaceRequests !== null && {
|
|
4066
|
+
...(input.StopWorkspaceRequests != null && {
|
|
4063
4067
|
StopWorkspaceRequests: serializeAws_json1_1StopWorkspaceRequests(input.StopWorkspaceRequests, context),
|
|
4064
4068
|
}),
|
|
4065
4069
|
};
|
|
@@ -4076,8 +4080,8 @@ const serializeAws_json1_1SubnetIds = (input, context) => {
|
|
|
4076
4080
|
};
|
|
4077
4081
|
const serializeAws_json1_1Tag = (input, context) => {
|
|
4078
4082
|
return {
|
|
4079
|
-
...(input.Key
|
|
4080
|
-
...(input.Value
|
|
4083
|
+
...(input.Key != null && { Key: input.Key }),
|
|
4084
|
+
...(input.Value != null && { Value: input.Value }),
|
|
4081
4085
|
};
|
|
4082
4086
|
};
|
|
4083
4087
|
const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
@@ -4102,7 +4106,7 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
4102
4106
|
};
|
|
4103
4107
|
const serializeAws_json1_1TerminateRequest = (input, context) => {
|
|
4104
4108
|
return {
|
|
4105
|
-
...(input.WorkspaceId
|
|
4109
|
+
...(input.WorkspaceId != null && { WorkspaceId: input.WorkspaceId }),
|
|
4106
4110
|
};
|
|
4107
4111
|
};
|
|
4108
4112
|
const serializeAws_json1_1TerminateWorkspaceRequests = (input, context) => {
|
|
@@ -4117,86 +4121,71 @@ const serializeAws_json1_1TerminateWorkspaceRequests = (input, context) => {
|
|
|
4117
4121
|
};
|
|
4118
4122
|
const serializeAws_json1_1TerminateWorkspacesRequest = (input, context) => {
|
|
4119
4123
|
return {
|
|
4120
|
-
...(input.TerminateWorkspaceRequests
|
|
4121
|
-
input.TerminateWorkspaceRequests !== null && {
|
|
4124
|
+
...(input.TerminateWorkspaceRequests != null && {
|
|
4122
4125
|
TerminateWorkspaceRequests: serializeAws_json1_1TerminateWorkspaceRequests(input.TerminateWorkspaceRequests, context),
|
|
4123
4126
|
}),
|
|
4124
4127
|
};
|
|
4125
4128
|
};
|
|
4126
4129
|
const serializeAws_json1_1UpdateConnectClientAddInRequest = (input, context) => {
|
|
4127
4130
|
return {
|
|
4128
|
-
...(input.AddInId
|
|
4129
|
-
...(input.Name
|
|
4130
|
-
...(input.ResourceId
|
|
4131
|
-
...(input.URL
|
|
4131
|
+
...(input.AddInId != null && { AddInId: input.AddInId }),
|
|
4132
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4133
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
4134
|
+
...(input.URL != null && { URL: input.URL }),
|
|
4132
4135
|
};
|
|
4133
4136
|
};
|
|
4134
4137
|
const serializeAws_json1_1UpdateConnectionAliasPermissionRequest = (input, context) => {
|
|
4135
4138
|
return {
|
|
4136
|
-
...(input.AliasId
|
|
4137
|
-
...(input.ConnectionAliasPermission
|
|
4138
|
-
input.ConnectionAliasPermission !== null && {
|
|
4139
|
+
...(input.AliasId != null && { AliasId: input.AliasId }),
|
|
4140
|
+
...(input.ConnectionAliasPermission != null && {
|
|
4139
4141
|
ConnectionAliasPermission: serializeAws_json1_1ConnectionAliasPermission(input.ConnectionAliasPermission, context),
|
|
4140
4142
|
}),
|
|
4141
4143
|
};
|
|
4142
4144
|
};
|
|
4143
4145
|
const serializeAws_json1_1UpdateRulesOfIpGroupRequest = (input, context) => {
|
|
4144
4146
|
return {
|
|
4145
|
-
...(input.GroupId
|
|
4146
|
-
...(input.UserRules
|
|
4147
|
-
input.UserRules !== null && { UserRules: serializeAws_json1_1IpRuleList(input.UserRules, context) }),
|
|
4147
|
+
...(input.GroupId != null && { GroupId: input.GroupId }),
|
|
4148
|
+
...(input.UserRules != null && { UserRules: serializeAws_json1_1IpRuleList(input.UserRules, context) }),
|
|
4148
4149
|
};
|
|
4149
4150
|
};
|
|
4150
4151
|
const serializeAws_json1_1UpdateWorkspaceBundleRequest = (input, context) => {
|
|
4151
4152
|
return {
|
|
4152
|
-
...(input.BundleId
|
|
4153
|
-
...(input.ImageId
|
|
4153
|
+
...(input.BundleId != null && { BundleId: input.BundleId }),
|
|
4154
|
+
...(input.ImageId != null && { ImageId: input.ImageId }),
|
|
4154
4155
|
};
|
|
4155
4156
|
};
|
|
4156
4157
|
const serializeAws_json1_1UpdateWorkspaceImagePermissionRequest = (input, context) => {
|
|
4157
4158
|
return {
|
|
4158
|
-
...(input.AllowCopyImage
|
|
4159
|
-
|
|
4160
|
-
...(input.
|
|
4161
|
-
...(input.SharedAccountId !== undefined &&
|
|
4162
|
-
input.SharedAccountId !== null && { SharedAccountId: input.SharedAccountId }),
|
|
4159
|
+
...(input.AllowCopyImage != null && { AllowCopyImage: input.AllowCopyImage }),
|
|
4160
|
+
...(input.ImageId != null && { ImageId: input.ImageId }),
|
|
4161
|
+
...(input.SharedAccountId != null && { SharedAccountId: input.SharedAccountId }),
|
|
4163
4162
|
};
|
|
4164
4163
|
};
|
|
4165
4164
|
const serializeAws_json1_1UserStorage = (input, context) => {
|
|
4166
4165
|
return {
|
|
4167
|
-
...(input.Capacity
|
|
4166
|
+
...(input.Capacity != null && { Capacity: input.Capacity }),
|
|
4168
4167
|
};
|
|
4169
4168
|
};
|
|
4170
4169
|
const serializeAws_json1_1WorkspaceAccessProperties = (input, context) => {
|
|
4171
4170
|
return {
|
|
4172
|
-
...(input.DeviceTypeAndroid
|
|
4173
|
-
|
|
4174
|
-
...(input.
|
|
4175
|
-
|
|
4176
|
-
...(input.
|
|
4177
|
-
...(input.
|
|
4178
|
-
|
|
4179
|
-
...(input.
|
|
4180
|
-
...(input.DeviceTypeWeb !== undefined && input.DeviceTypeWeb !== null && { DeviceTypeWeb: input.DeviceTypeWeb }),
|
|
4181
|
-
...(input.DeviceTypeWindows !== undefined &&
|
|
4182
|
-
input.DeviceTypeWindows !== null && { DeviceTypeWindows: input.DeviceTypeWindows }),
|
|
4183
|
-
...(input.DeviceTypeZeroClient !== undefined &&
|
|
4184
|
-
input.DeviceTypeZeroClient !== null && { DeviceTypeZeroClient: input.DeviceTypeZeroClient }),
|
|
4171
|
+
...(input.DeviceTypeAndroid != null && { DeviceTypeAndroid: input.DeviceTypeAndroid }),
|
|
4172
|
+
...(input.DeviceTypeChromeOs != null && { DeviceTypeChromeOs: input.DeviceTypeChromeOs }),
|
|
4173
|
+
...(input.DeviceTypeIos != null && { DeviceTypeIos: input.DeviceTypeIos }),
|
|
4174
|
+
...(input.DeviceTypeLinux != null && { DeviceTypeLinux: input.DeviceTypeLinux }),
|
|
4175
|
+
...(input.DeviceTypeOsx != null && { DeviceTypeOsx: input.DeviceTypeOsx }),
|
|
4176
|
+
...(input.DeviceTypeWeb != null && { DeviceTypeWeb: input.DeviceTypeWeb }),
|
|
4177
|
+
...(input.DeviceTypeWindows != null && { DeviceTypeWindows: input.DeviceTypeWindows }),
|
|
4178
|
+
...(input.DeviceTypeZeroClient != null && { DeviceTypeZeroClient: input.DeviceTypeZeroClient }),
|
|
4185
4179
|
};
|
|
4186
4180
|
};
|
|
4187
4181
|
const serializeAws_json1_1WorkspaceCreationProperties = (input, context) => {
|
|
4188
4182
|
return {
|
|
4189
|
-
...(input.CustomSecurityGroupId
|
|
4190
|
-
|
|
4191
|
-
...(input.
|
|
4192
|
-
...(input.
|
|
4193
|
-
|
|
4194
|
-
...(input.
|
|
4195
|
-
input.EnableMaintenanceMode !== null && { EnableMaintenanceMode: input.EnableMaintenanceMode }),
|
|
4196
|
-
...(input.EnableWorkDocs !== undefined &&
|
|
4197
|
-
input.EnableWorkDocs !== null && { EnableWorkDocs: input.EnableWorkDocs }),
|
|
4198
|
-
...(input.UserEnabledAsLocalAdministrator !== undefined &&
|
|
4199
|
-
input.UserEnabledAsLocalAdministrator !== null && {
|
|
4183
|
+
...(input.CustomSecurityGroupId != null && { CustomSecurityGroupId: input.CustomSecurityGroupId }),
|
|
4184
|
+
...(input.DefaultOu != null && { DefaultOu: input.DefaultOu }),
|
|
4185
|
+
...(input.EnableInternetAccess != null && { EnableInternetAccess: input.EnableInternetAccess }),
|
|
4186
|
+
...(input.EnableMaintenanceMode != null && { EnableMaintenanceMode: input.EnableMaintenanceMode }),
|
|
4187
|
+
...(input.EnableWorkDocs != null && { EnableWorkDocs: input.EnableWorkDocs }),
|
|
4188
|
+
...(input.UserEnabledAsLocalAdministrator != null && {
|
|
4200
4189
|
UserEnabledAsLocalAdministrator: input.UserEnabledAsLocalAdministrator,
|
|
4201
4190
|
}),
|
|
4202
4191
|
};
|
|
@@ -4223,33 +4212,29 @@ const serializeAws_json1_1WorkspaceImageIdList = (input, context) => {
|
|
|
4223
4212
|
};
|
|
4224
4213
|
const serializeAws_json1_1WorkspaceProperties = (input, context) => {
|
|
4225
4214
|
return {
|
|
4226
|
-
...(input.ComputeTypeName
|
|
4227
|
-
|
|
4228
|
-
...(input.
|
|
4229
|
-
|
|
4230
|
-
...(input.RunningMode !== undefined && input.RunningMode !== null && { RunningMode: input.RunningMode }),
|
|
4231
|
-
...(input.RunningModeAutoStopTimeoutInMinutes !== undefined &&
|
|
4232
|
-
input.RunningModeAutoStopTimeoutInMinutes !== null && {
|
|
4215
|
+
...(input.ComputeTypeName != null && { ComputeTypeName: input.ComputeTypeName }),
|
|
4216
|
+
...(input.RootVolumeSizeGib != null && { RootVolumeSizeGib: input.RootVolumeSizeGib }),
|
|
4217
|
+
...(input.RunningMode != null && { RunningMode: input.RunningMode }),
|
|
4218
|
+
...(input.RunningModeAutoStopTimeoutInMinutes != null && {
|
|
4233
4219
|
RunningModeAutoStopTimeoutInMinutes: input.RunningModeAutoStopTimeoutInMinutes,
|
|
4234
4220
|
}),
|
|
4235
|
-
...(input.UserVolumeSizeGib
|
|
4236
|
-
input.UserVolumeSizeGib !== null && { UserVolumeSizeGib: input.UserVolumeSizeGib }),
|
|
4221
|
+
...(input.UserVolumeSizeGib != null && { UserVolumeSizeGib: input.UserVolumeSizeGib }),
|
|
4237
4222
|
};
|
|
4238
4223
|
};
|
|
4239
4224
|
const serializeAws_json1_1WorkspaceRequest = (input, context) => {
|
|
4240
4225
|
return {
|
|
4241
|
-
...(input.BundleId
|
|
4242
|
-
...(input.DirectoryId
|
|
4243
|
-
...(input.RootVolumeEncryptionEnabled
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
...(input.
|
|
4247
|
-
...(input.
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
...(input.
|
|
4252
|
-
|
|
4226
|
+
...(input.BundleId != null && { BundleId: input.BundleId }),
|
|
4227
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4228
|
+
...(input.RootVolumeEncryptionEnabled != null && {
|
|
4229
|
+
RootVolumeEncryptionEnabled: input.RootVolumeEncryptionEnabled,
|
|
4230
|
+
}),
|
|
4231
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4232
|
+
...(input.UserName != null && { UserName: input.UserName }),
|
|
4233
|
+
...(input.UserVolumeEncryptionEnabled != null && {
|
|
4234
|
+
UserVolumeEncryptionEnabled: input.UserVolumeEncryptionEnabled,
|
|
4235
|
+
}),
|
|
4236
|
+
...(input.VolumeEncryptionKey != null && { VolumeEncryptionKey: input.VolumeEncryptionKey }),
|
|
4237
|
+
...(input.WorkspaceProperties != null && {
|
|
4253
4238
|
WorkspaceProperties: serializeAws_json1_1WorkspaceProperties(input.WorkspaceProperties, context),
|
|
4254
4239
|
}),
|
|
4255
4240
|
};
|
|
@@ -4276,9 +4261,7 @@ const deserializeAws_json1_1AccountModification = (output, context) => {
|
|
|
4276
4261
|
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
4277
4262
|
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
4278
4263
|
ModificationState: (0, smithy_client_1.expectString)(output.ModificationState),
|
|
4279
|
-
StartTime: output.StartTime
|
|
4280
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
|
|
4281
|
-
: undefined,
|
|
4264
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
4282
4265
|
};
|
|
4283
4266
|
};
|
|
4284
4267
|
const deserializeAws_json1_1AccountModificationList = (output, context) => {
|
|
@@ -4332,7 +4315,7 @@ const deserializeAws_json1_1ClientPropertiesList = (output, context) => {
|
|
|
4332
4315
|
};
|
|
4333
4316
|
const deserializeAws_json1_1ClientPropertiesResult = (output, context) => {
|
|
4334
4317
|
return {
|
|
4335
|
-
ClientProperties: output.ClientProperties
|
|
4318
|
+
ClientProperties: output.ClientProperties != null
|
|
4336
4319
|
? deserializeAws_json1_1ClientProperties(output.ClientProperties, context)
|
|
4337
4320
|
: undefined,
|
|
4338
4321
|
ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
|
|
@@ -4365,7 +4348,7 @@ const deserializeAws_json1_1ConnectClientAddInList = (output, context) => {
|
|
|
4365
4348
|
const deserializeAws_json1_1ConnectionAlias = (output, context) => {
|
|
4366
4349
|
return {
|
|
4367
4350
|
AliasId: (0, smithy_client_1.expectString)(output.AliasId),
|
|
4368
|
-
Associations: output.Associations
|
|
4351
|
+
Associations: output.Associations != null
|
|
4369
4352
|
? deserializeAws_json1_1ConnectionAliasAssociationList(output.Associations, context)
|
|
4370
4353
|
: undefined,
|
|
4371
4354
|
ConnectionString: (0, smithy_client_1.expectString)(output.ConnectionString),
|
|
@@ -4450,19 +4433,17 @@ const deserializeAws_json1_1CreateUpdatedWorkspaceImageResult = (output, context
|
|
|
4450
4433
|
};
|
|
4451
4434
|
const deserializeAws_json1_1CreateWorkspaceBundleResult = (output, context) => {
|
|
4452
4435
|
return {
|
|
4453
|
-
WorkspaceBundle: output.WorkspaceBundle
|
|
4436
|
+
WorkspaceBundle: output.WorkspaceBundle != null
|
|
4454
4437
|
? deserializeAws_json1_1WorkspaceBundle(output.WorkspaceBundle, context)
|
|
4455
4438
|
: undefined,
|
|
4456
4439
|
};
|
|
4457
4440
|
};
|
|
4458
4441
|
const deserializeAws_json1_1CreateWorkspacesResult = (output, context) => {
|
|
4459
4442
|
return {
|
|
4460
|
-
FailedRequests: output.FailedRequests
|
|
4443
|
+
FailedRequests: output.FailedRequests != null
|
|
4461
4444
|
? deserializeAws_json1_1FailedCreateWorkspaceRequests(output.FailedRequests, context)
|
|
4462
4445
|
: undefined,
|
|
4463
|
-
PendingRequests: output.PendingRequests
|
|
4464
|
-
? deserializeAws_json1_1WorkspaceList(output.PendingRequests, context)
|
|
4465
|
-
: undefined,
|
|
4446
|
+
PendingRequests: output.PendingRequests != null ? deserializeAws_json1_1WorkspaceList(output.PendingRequests, context) : undefined,
|
|
4466
4447
|
};
|
|
4467
4448
|
};
|
|
4468
4449
|
const deserializeAws_json1_1DedicatedTenancyCidrRangeList = (output, context) => {
|
|
@@ -4479,9 +4460,7 @@ const deserializeAws_json1_1DedicatedTenancyCidrRangeList = (output, context) =>
|
|
|
4479
4460
|
const deserializeAws_json1_1DefaultClientBrandingAttributes = (output, context) => {
|
|
4480
4461
|
return {
|
|
4481
4462
|
ForgotPasswordLink: (0, smithy_client_1.expectString)(output.ForgotPasswordLink),
|
|
4482
|
-
LoginMessage: output.LoginMessage
|
|
4483
|
-
? deserializeAws_json1_1LoginMessage(output.LoginMessage, context)
|
|
4484
|
-
: undefined,
|
|
4463
|
+
LoginMessage: output.LoginMessage != null ? deserializeAws_json1_1LoginMessage(output.LoginMessage, context) : undefined,
|
|
4485
4464
|
LogoUrl: (0, smithy_client_1.expectString)(output.LogoUrl),
|
|
4486
4465
|
SupportEmail: (0, smithy_client_1.expectString)(output.SupportEmail),
|
|
4487
4466
|
SupportLink: (0, smithy_client_1.expectString)(output.SupportLink),
|
|
@@ -4523,7 +4502,7 @@ const deserializeAws_json1_1DeregisterWorkspaceDirectoryResult = (output, contex
|
|
|
4523
4502
|
};
|
|
4524
4503
|
const deserializeAws_json1_1DescribeAccountModificationsResult = (output, context) => {
|
|
4525
4504
|
return {
|
|
4526
|
-
AccountModifications: output.AccountModifications
|
|
4505
|
+
AccountModifications: output.AccountModifications != null
|
|
4527
4506
|
? deserializeAws_json1_1AccountModificationList(output.AccountModifications, context)
|
|
4528
4507
|
: undefined,
|
|
4529
4508
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -4537,44 +4516,42 @@ const deserializeAws_json1_1DescribeAccountResult = (output, context) => {
|
|
|
4537
4516
|
};
|
|
4538
4517
|
const deserializeAws_json1_1DescribeClientBrandingResult = (output, context) => {
|
|
4539
4518
|
return {
|
|
4540
|
-
DeviceTypeAndroid: output.DeviceTypeAndroid
|
|
4519
|
+
DeviceTypeAndroid: output.DeviceTypeAndroid != null
|
|
4541
4520
|
? deserializeAws_json1_1DefaultClientBrandingAttributes(output.DeviceTypeAndroid, context)
|
|
4542
4521
|
: undefined,
|
|
4543
|
-
DeviceTypeIos: output.DeviceTypeIos
|
|
4522
|
+
DeviceTypeIos: output.DeviceTypeIos != null
|
|
4544
4523
|
? deserializeAws_json1_1IosClientBrandingAttributes(output.DeviceTypeIos, context)
|
|
4545
4524
|
: undefined,
|
|
4546
|
-
DeviceTypeLinux: output.DeviceTypeLinux
|
|
4525
|
+
DeviceTypeLinux: output.DeviceTypeLinux != null
|
|
4547
4526
|
? deserializeAws_json1_1DefaultClientBrandingAttributes(output.DeviceTypeLinux, context)
|
|
4548
4527
|
: undefined,
|
|
4549
|
-
DeviceTypeOsx: output.DeviceTypeOsx
|
|
4528
|
+
DeviceTypeOsx: output.DeviceTypeOsx != null
|
|
4550
4529
|
? deserializeAws_json1_1DefaultClientBrandingAttributes(output.DeviceTypeOsx, context)
|
|
4551
4530
|
: undefined,
|
|
4552
|
-
DeviceTypeWeb: output.DeviceTypeWeb
|
|
4531
|
+
DeviceTypeWeb: output.DeviceTypeWeb != null
|
|
4553
4532
|
? deserializeAws_json1_1DefaultClientBrandingAttributes(output.DeviceTypeWeb, context)
|
|
4554
4533
|
: undefined,
|
|
4555
|
-
DeviceTypeWindows: output.DeviceTypeWindows
|
|
4534
|
+
DeviceTypeWindows: output.DeviceTypeWindows != null
|
|
4556
4535
|
? deserializeAws_json1_1DefaultClientBrandingAttributes(output.DeviceTypeWindows, context)
|
|
4557
4536
|
: undefined,
|
|
4558
4537
|
};
|
|
4559
4538
|
};
|
|
4560
4539
|
const deserializeAws_json1_1DescribeClientPropertiesResult = (output, context) => {
|
|
4561
4540
|
return {
|
|
4562
|
-
ClientPropertiesList: output.ClientPropertiesList
|
|
4541
|
+
ClientPropertiesList: output.ClientPropertiesList != null
|
|
4563
4542
|
? deserializeAws_json1_1ClientPropertiesList(output.ClientPropertiesList, context)
|
|
4564
4543
|
: undefined,
|
|
4565
4544
|
};
|
|
4566
4545
|
};
|
|
4567
4546
|
const deserializeAws_json1_1DescribeConnectClientAddInsResult = (output, context) => {
|
|
4568
4547
|
return {
|
|
4569
|
-
AddIns: output.AddIns
|
|
4570
|
-
? deserializeAws_json1_1ConnectClientAddInList(output.AddIns, context)
|
|
4571
|
-
: undefined,
|
|
4548
|
+
AddIns: output.AddIns != null ? deserializeAws_json1_1ConnectClientAddInList(output.AddIns, context) : undefined,
|
|
4572
4549
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4573
4550
|
};
|
|
4574
4551
|
};
|
|
4575
4552
|
const deserializeAws_json1_1DescribeConnectionAliasesResult = (output, context) => {
|
|
4576
4553
|
return {
|
|
4577
|
-
ConnectionAliases: output.ConnectionAliases
|
|
4554
|
+
ConnectionAliases: output.ConnectionAliases != null
|
|
4578
4555
|
? deserializeAws_json1_1ConnectionAliasList(output.ConnectionAliases, context)
|
|
4579
4556
|
: undefined,
|
|
4580
4557
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -4583,7 +4560,7 @@ const deserializeAws_json1_1DescribeConnectionAliasesResult = (output, context)
|
|
|
4583
4560
|
const deserializeAws_json1_1DescribeConnectionAliasPermissionsResult = (output, context) => {
|
|
4584
4561
|
return {
|
|
4585
4562
|
AliasId: (0, smithy_client_1.expectString)(output.AliasId),
|
|
4586
|
-
ConnectionAliasPermissions: output.ConnectionAliasPermissions
|
|
4563
|
+
ConnectionAliasPermissions: output.ConnectionAliasPermissions != null
|
|
4587
4564
|
? deserializeAws_json1_1ConnectionAliasPermissions(output.ConnectionAliasPermissions, context)
|
|
4588
4565
|
: undefined,
|
|
4589
4566
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -4592,38 +4569,30 @@ const deserializeAws_json1_1DescribeConnectionAliasPermissionsResult = (output,
|
|
|
4592
4569
|
const deserializeAws_json1_1DescribeIpGroupsResult = (output, context) => {
|
|
4593
4570
|
return {
|
|
4594
4571
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4595
|
-
Result: output.Result
|
|
4596
|
-
? deserializeAws_json1_1WorkspacesIpGroupsList(output.Result, context)
|
|
4597
|
-
: undefined,
|
|
4572
|
+
Result: output.Result != null ? deserializeAws_json1_1WorkspacesIpGroupsList(output.Result, context) : undefined,
|
|
4598
4573
|
};
|
|
4599
4574
|
};
|
|
4600
4575
|
const deserializeAws_json1_1DescribeTagsResult = (output, context) => {
|
|
4601
4576
|
return {
|
|
4602
|
-
TagList: output.TagList
|
|
4603
|
-
? deserializeAws_json1_1TagList(output.TagList, context)
|
|
4604
|
-
: undefined,
|
|
4577
|
+
TagList: output.TagList != null ? deserializeAws_json1_1TagList(output.TagList, context) : undefined,
|
|
4605
4578
|
};
|
|
4606
4579
|
};
|
|
4607
4580
|
const deserializeAws_json1_1DescribeWorkspaceBundlesResult = (output, context) => {
|
|
4608
4581
|
return {
|
|
4609
|
-
Bundles: output.Bundles
|
|
4610
|
-
? deserializeAws_json1_1BundleList(output.Bundles, context)
|
|
4611
|
-
: undefined,
|
|
4582
|
+
Bundles: output.Bundles != null ? deserializeAws_json1_1BundleList(output.Bundles, context) : undefined,
|
|
4612
4583
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4613
4584
|
};
|
|
4614
4585
|
};
|
|
4615
4586
|
const deserializeAws_json1_1DescribeWorkspaceDirectoriesResult = (output, context) => {
|
|
4616
4587
|
return {
|
|
4617
|
-
Directories: output.Directories
|
|
4618
|
-
? deserializeAws_json1_1DirectoryList(output.Directories, context)
|
|
4619
|
-
: undefined,
|
|
4588
|
+
Directories: output.Directories != null ? deserializeAws_json1_1DirectoryList(output.Directories, context) : undefined,
|
|
4620
4589
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4621
4590
|
};
|
|
4622
4591
|
};
|
|
4623
4592
|
const deserializeAws_json1_1DescribeWorkspaceImagePermissionsResult = (output, context) => {
|
|
4624
4593
|
return {
|
|
4625
4594
|
ImageId: (0, smithy_client_1.expectString)(output.ImageId),
|
|
4626
|
-
ImagePermissions: output.ImagePermissions
|
|
4595
|
+
ImagePermissions: output.ImagePermissions != null
|
|
4627
4596
|
? deserializeAws_json1_1ImagePermissions(output.ImagePermissions, context)
|
|
4628
4597
|
: undefined,
|
|
4629
4598
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -4631,26 +4600,24 @@ const deserializeAws_json1_1DescribeWorkspaceImagePermissionsResult = (output, c
|
|
|
4631
4600
|
};
|
|
4632
4601
|
const deserializeAws_json1_1DescribeWorkspaceImagesResult = (output, context) => {
|
|
4633
4602
|
return {
|
|
4634
|
-
Images: output.Images
|
|
4635
|
-
? deserializeAws_json1_1WorkspaceImageList(output.Images, context)
|
|
4636
|
-
: undefined,
|
|
4603
|
+
Images: output.Images != null ? deserializeAws_json1_1WorkspaceImageList(output.Images, context) : undefined,
|
|
4637
4604
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4638
4605
|
};
|
|
4639
4606
|
};
|
|
4640
4607
|
const deserializeAws_json1_1DescribeWorkspacesConnectionStatusResult = (output, context) => {
|
|
4641
4608
|
return {
|
|
4642
4609
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4643
|
-
WorkspacesConnectionStatus: output.WorkspacesConnectionStatus
|
|
4610
|
+
WorkspacesConnectionStatus: output.WorkspacesConnectionStatus != null
|
|
4644
4611
|
? deserializeAws_json1_1WorkspaceConnectionStatusList(output.WorkspacesConnectionStatus, context)
|
|
4645
4612
|
: undefined,
|
|
4646
4613
|
};
|
|
4647
4614
|
};
|
|
4648
4615
|
const deserializeAws_json1_1DescribeWorkspaceSnapshotsResult = (output, context) => {
|
|
4649
4616
|
return {
|
|
4650
|
-
RebuildSnapshots: output.RebuildSnapshots
|
|
4617
|
+
RebuildSnapshots: output.RebuildSnapshots != null
|
|
4651
4618
|
? deserializeAws_json1_1SnapshotList(output.RebuildSnapshots, context)
|
|
4652
4619
|
: undefined,
|
|
4653
|
-
RestoreSnapshots: output.RestoreSnapshots
|
|
4620
|
+
RestoreSnapshots: output.RestoreSnapshots != null
|
|
4654
4621
|
? deserializeAws_json1_1SnapshotList(output.RestoreSnapshots, context)
|
|
4655
4622
|
: undefined,
|
|
4656
4623
|
};
|
|
@@ -4658,9 +4625,7 @@ const deserializeAws_json1_1DescribeWorkspaceSnapshotsResult = (output, context)
|
|
|
4658
4625
|
const deserializeAws_json1_1DescribeWorkspacesResult = (output, context) => {
|
|
4659
4626
|
return {
|
|
4660
4627
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4661
|
-
Workspaces: output.Workspaces
|
|
4662
|
-
? deserializeAws_json1_1WorkspaceList(output.Workspaces, context)
|
|
4663
|
-
: undefined,
|
|
4628
|
+
Workspaces: output.Workspaces != null ? deserializeAws_json1_1WorkspaceList(output.Workspaces, context) : undefined,
|
|
4664
4629
|
};
|
|
4665
4630
|
};
|
|
4666
4631
|
const deserializeAws_json1_1DirectoryList = (output, context) => {
|
|
@@ -4695,7 +4660,7 @@ const deserializeAws_json1_1FailedCreateWorkspaceRequest = (output, context) =>
|
|
|
4695
4660
|
return {
|
|
4696
4661
|
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
4697
4662
|
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
4698
|
-
WorkspaceRequest: output.WorkspaceRequest
|
|
4663
|
+
WorkspaceRequest: output.WorkspaceRequest != null
|
|
4699
4664
|
? deserializeAws_json1_1WorkspaceRequest(output.WorkspaceRequest, context)
|
|
4700
4665
|
: undefined,
|
|
4701
4666
|
};
|
|
@@ -4791,22 +4756,22 @@ const deserializeAws_json1_1ImagePermissions = (output, context) => {
|
|
|
4791
4756
|
};
|
|
4792
4757
|
const deserializeAws_json1_1ImportClientBrandingResult = (output, context) => {
|
|
4793
4758
|
return {
|
|
4794
|
-
DeviceTypeAndroid: output.DeviceTypeAndroid
|
|
4759
|
+
DeviceTypeAndroid: output.DeviceTypeAndroid != null
|
|
4795
4760
|
? deserializeAws_json1_1DefaultClientBrandingAttributes(output.DeviceTypeAndroid, context)
|
|
4796
4761
|
: undefined,
|
|
4797
|
-
DeviceTypeIos: output.DeviceTypeIos
|
|
4762
|
+
DeviceTypeIos: output.DeviceTypeIos != null
|
|
4798
4763
|
? deserializeAws_json1_1IosClientBrandingAttributes(output.DeviceTypeIos, context)
|
|
4799
4764
|
: undefined,
|
|
4800
|
-
DeviceTypeLinux: output.DeviceTypeLinux
|
|
4765
|
+
DeviceTypeLinux: output.DeviceTypeLinux != null
|
|
4801
4766
|
? deserializeAws_json1_1DefaultClientBrandingAttributes(output.DeviceTypeLinux, context)
|
|
4802
4767
|
: undefined,
|
|
4803
|
-
DeviceTypeOsx: output.DeviceTypeOsx
|
|
4768
|
+
DeviceTypeOsx: output.DeviceTypeOsx != null
|
|
4804
4769
|
? deserializeAws_json1_1DefaultClientBrandingAttributes(output.DeviceTypeOsx, context)
|
|
4805
4770
|
: undefined,
|
|
4806
|
-
DeviceTypeWeb: output.DeviceTypeWeb
|
|
4771
|
+
DeviceTypeWeb: output.DeviceTypeWeb != null
|
|
4807
4772
|
? deserializeAws_json1_1DefaultClientBrandingAttributes(output.DeviceTypeWeb, context)
|
|
4808
4773
|
: undefined,
|
|
4809
|
-
DeviceTypeWindows: output.DeviceTypeWindows
|
|
4774
|
+
DeviceTypeWindows: output.DeviceTypeWindows != null
|
|
4810
4775
|
? deserializeAws_json1_1DefaultClientBrandingAttributes(output.DeviceTypeWindows, context)
|
|
4811
4776
|
: undefined,
|
|
4812
4777
|
};
|
|
@@ -4829,9 +4794,7 @@ const deserializeAws_json1_1InvalidResourceStateException = (output, context) =>
|
|
|
4829
4794
|
const deserializeAws_json1_1IosClientBrandingAttributes = (output, context) => {
|
|
4830
4795
|
return {
|
|
4831
4796
|
ForgotPasswordLink: (0, smithy_client_1.expectString)(output.ForgotPasswordLink),
|
|
4832
|
-
LoginMessage: output.LoginMessage
|
|
4833
|
-
? deserializeAws_json1_1LoginMessage(output.LoginMessage, context)
|
|
4834
|
-
: undefined,
|
|
4797
|
+
LoginMessage: output.LoginMessage != null ? deserializeAws_json1_1LoginMessage(output.LoginMessage, context) : undefined,
|
|
4835
4798
|
Logo2xUrl: (0, smithy_client_1.expectString)(output.Logo2xUrl),
|
|
4836
4799
|
Logo3xUrl: (0, smithy_client_1.expectString)(output.Logo3xUrl),
|
|
4837
4800
|
LogoUrl: (0, smithy_client_1.expectString)(output.LogoUrl),
|
|
@@ -4869,7 +4832,7 @@ const deserializeAws_json1_1IpRuleList = (output, context) => {
|
|
|
4869
4832
|
};
|
|
4870
4833
|
const deserializeAws_json1_1ListAvailableManagementCidrRangesResult = (output, context) => {
|
|
4871
4834
|
return {
|
|
4872
|
-
ManagementCidrRanges: output.ManagementCidrRanges
|
|
4835
|
+
ManagementCidrRanges: output.ManagementCidrRanges != null
|
|
4873
4836
|
? deserializeAws_json1_1DedicatedTenancyCidrRangeList(output.ManagementCidrRanges, context)
|
|
4874
4837
|
: undefined,
|
|
4875
4838
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -4948,14 +4911,14 @@ const deserializeAws_json1_1OperationNotSupportedException = (output, context) =
|
|
|
4948
4911
|
};
|
|
4949
4912
|
const deserializeAws_json1_1RebootWorkspacesResult = (output, context) => {
|
|
4950
4913
|
return {
|
|
4951
|
-
FailedRequests: output.FailedRequests
|
|
4914
|
+
FailedRequests: output.FailedRequests != null
|
|
4952
4915
|
? deserializeAws_json1_1FailedRebootWorkspaceRequests(output.FailedRequests, context)
|
|
4953
4916
|
: undefined,
|
|
4954
4917
|
};
|
|
4955
4918
|
};
|
|
4956
4919
|
const deserializeAws_json1_1RebuildWorkspacesResult = (output, context) => {
|
|
4957
4920
|
return {
|
|
4958
|
-
FailedRequests: output.FailedRequests
|
|
4921
|
+
FailedRequests: output.FailedRequests != null
|
|
4959
4922
|
? deserializeAws_json1_1FailedRebuildWorkspaceRequests(output.FailedRequests, context)
|
|
4960
4923
|
: undefined,
|
|
4961
4924
|
};
|
|
@@ -5017,7 +4980,7 @@ const deserializeAws_json1_1SelfservicePermissions = (output, context) => {
|
|
|
5017
4980
|
};
|
|
5018
4981
|
const deserializeAws_json1_1Snapshot = (output, context) => {
|
|
5019
4982
|
return {
|
|
5020
|
-
SnapshotTime: output.SnapshotTime
|
|
4983
|
+
SnapshotTime: output.SnapshotTime != null
|
|
5021
4984
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SnapshotTime)))
|
|
5022
4985
|
: undefined,
|
|
5023
4986
|
};
|
|
@@ -5035,14 +4998,14 @@ const deserializeAws_json1_1SnapshotList = (output, context) => {
|
|
|
5035
4998
|
};
|
|
5036
4999
|
const deserializeAws_json1_1StartWorkspacesResult = (output, context) => {
|
|
5037
5000
|
return {
|
|
5038
|
-
FailedRequests: output.FailedRequests
|
|
5001
|
+
FailedRequests: output.FailedRequests != null
|
|
5039
5002
|
? deserializeAws_json1_1FailedStartWorkspaceRequests(output.FailedRequests, context)
|
|
5040
5003
|
: undefined,
|
|
5041
5004
|
};
|
|
5042
5005
|
};
|
|
5043
5006
|
const deserializeAws_json1_1StopWorkspacesResult = (output, context) => {
|
|
5044
5007
|
return {
|
|
5045
|
-
FailedRequests: output.FailedRequests
|
|
5008
|
+
FailedRequests: output.FailedRequests != null
|
|
5046
5009
|
? deserializeAws_json1_1FailedStopWorkspaceRequests(output.FailedRequests, context)
|
|
5047
5010
|
: undefined,
|
|
5048
5011
|
};
|
|
@@ -5077,7 +5040,7 @@ const deserializeAws_json1_1TagList = (output, context) => {
|
|
|
5077
5040
|
};
|
|
5078
5041
|
const deserializeAws_json1_1TerminateWorkspacesResult = (output, context) => {
|
|
5079
5042
|
return {
|
|
5080
|
-
FailedRequests: output.FailedRequests
|
|
5043
|
+
FailedRequests: output.FailedRequests != null
|
|
5081
5044
|
? deserializeAws_json1_1FailedTerminateWorkspaceRequests(output.FailedRequests, context)
|
|
5082
5045
|
: undefined,
|
|
5083
5046
|
};
|
|
@@ -5126,7 +5089,7 @@ const deserializeAws_json1_1Workspace = (output, context) => {
|
|
|
5126
5089
|
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
5127
5090
|
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
5128
5091
|
IpAddress: (0, smithy_client_1.expectString)(output.IpAddress),
|
|
5129
|
-
ModificationStates: output.ModificationStates
|
|
5092
|
+
ModificationStates: output.ModificationStates != null
|
|
5130
5093
|
? deserializeAws_json1_1ModificationStateList(output.ModificationStates, context)
|
|
5131
5094
|
: undefined,
|
|
5132
5095
|
RootVolumeEncryptionEnabled: (0, smithy_client_1.expectBoolean)(output.RootVolumeEncryptionEnabled),
|
|
@@ -5136,7 +5099,7 @@ const deserializeAws_json1_1Workspace = (output, context) => {
|
|
|
5136
5099
|
UserVolumeEncryptionEnabled: (0, smithy_client_1.expectBoolean)(output.UserVolumeEncryptionEnabled),
|
|
5137
5100
|
VolumeEncryptionKey: (0, smithy_client_1.expectString)(output.VolumeEncryptionKey),
|
|
5138
5101
|
WorkspaceId: (0, smithy_client_1.expectString)(output.WorkspaceId),
|
|
5139
|
-
WorkspaceProperties: output.WorkspaceProperties
|
|
5102
|
+
WorkspaceProperties: output.WorkspaceProperties != null
|
|
5140
5103
|
? deserializeAws_json1_1WorkspaceProperties(output.WorkspaceProperties, context)
|
|
5141
5104
|
: undefined,
|
|
5142
5105
|
};
|
|
@@ -5156,34 +5119,28 @@ const deserializeAws_json1_1WorkspaceAccessProperties = (output, context) => {
|
|
|
5156
5119
|
const deserializeAws_json1_1WorkspaceBundle = (output, context) => {
|
|
5157
5120
|
return {
|
|
5158
5121
|
BundleId: (0, smithy_client_1.expectString)(output.BundleId),
|
|
5159
|
-
ComputeType: output.ComputeType
|
|
5160
|
-
|
|
5161
|
-
: undefined,
|
|
5162
|
-
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
5122
|
+
ComputeType: output.ComputeType != null ? deserializeAws_json1_1ComputeType(output.ComputeType, context) : undefined,
|
|
5123
|
+
CreationTime: output.CreationTime != null
|
|
5163
5124
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
5164
5125
|
: undefined,
|
|
5165
5126
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
5166
5127
|
ImageId: (0, smithy_client_1.expectString)(output.ImageId),
|
|
5167
|
-
LastUpdatedTime: output.LastUpdatedTime
|
|
5128
|
+
LastUpdatedTime: output.LastUpdatedTime != null
|
|
5168
5129
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTime)))
|
|
5169
5130
|
: undefined,
|
|
5170
5131
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
5171
5132
|
Owner: (0, smithy_client_1.expectString)(output.Owner),
|
|
5172
|
-
RootStorage: output.RootStorage
|
|
5173
|
-
|
|
5174
|
-
: undefined,
|
|
5175
|
-
UserStorage: output.UserStorage !== undefined && output.UserStorage !== null
|
|
5176
|
-
? deserializeAws_json1_1UserStorage(output.UserStorage, context)
|
|
5177
|
-
: undefined,
|
|
5133
|
+
RootStorage: output.RootStorage != null ? deserializeAws_json1_1RootStorage(output.RootStorage, context) : undefined,
|
|
5134
|
+
UserStorage: output.UserStorage != null ? deserializeAws_json1_1UserStorage(output.UserStorage, context) : undefined,
|
|
5178
5135
|
};
|
|
5179
5136
|
};
|
|
5180
5137
|
const deserializeAws_json1_1WorkspaceConnectionStatus = (output, context) => {
|
|
5181
5138
|
return {
|
|
5182
5139
|
ConnectionState: (0, smithy_client_1.expectString)(output.ConnectionState),
|
|
5183
|
-
ConnectionStateCheckTimestamp: output.ConnectionStateCheckTimestamp
|
|
5140
|
+
ConnectionStateCheckTimestamp: output.ConnectionStateCheckTimestamp != null
|
|
5184
5141
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ConnectionStateCheckTimestamp)))
|
|
5185
5142
|
: undefined,
|
|
5186
|
-
LastKnownUserConnectionTimestamp: output.LastKnownUserConnectionTimestamp
|
|
5143
|
+
LastKnownUserConnectionTimestamp: output.LastKnownUserConnectionTimestamp != null
|
|
5187
5144
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastKnownUserConnectionTimestamp)))
|
|
5188
5145
|
: undefined,
|
|
5189
5146
|
WorkspaceId: (0, smithy_client_1.expectString)(output.WorkspaceId),
|
|
@@ -5207,50 +5164,40 @@ const deserializeAws_json1_1WorkspaceDirectory = (output, context) => {
|
|
|
5207
5164
|
DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
|
|
5208
5165
|
DirectoryName: (0, smithy_client_1.expectString)(output.DirectoryName),
|
|
5209
5166
|
DirectoryType: (0, smithy_client_1.expectString)(output.DirectoryType),
|
|
5210
|
-
DnsIpAddresses: output.DnsIpAddresses
|
|
5211
|
-
? deserializeAws_json1_1DnsIpAddresses(output.DnsIpAddresses, context)
|
|
5212
|
-
: undefined,
|
|
5167
|
+
DnsIpAddresses: output.DnsIpAddresses != null ? deserializeAws_json1_1DnsIpAddresses(output.DnsIpAddresses, context) : undefined,
|
|
5213
5168
|
IamRoleId: (0, smithy_client_1.expectString)(output.IamRoleId),
|
|
5214
5169
|
RegistrationCode: (0, smithy_client_1.expectString)(output.RegistrationCode),
|
|
5215
|
-
SelfservicePermissions: output.SelfservicePermissions
|
|
5170
|
+
SelfservicePermissions: output.SelfservicePermissions != null
|
|
5216
5171
|
? deserializeAws_json1_1SelfservicePermissions(output.SelfservicePermissions, context)
|
|
5217
5172
|
: undefined,
|
|
5218
5173
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
5219
|
-
SubnetIds: output.SubnetIds
|
|
5220
|
-
? deserializeAws_json1_1SubnetIds(output.SubnetIds, context)
|
|
5221
|
-
: undefined,
|
|
5174
|
+
SubnetIds: output.SubnetIds != null ? deserializeAws_json1_1SubnetIds(output.SubnetIds, context) : undefined,
|
|
5222
5175
|
Tenancy: (0, smithy_client_1.expectString)(output.Tenancy),
|
|
5223
|
-
WorkspaceAccessProperties: output.WorkspaceAccessProperties
|
|
5176
|
+
WorkspaceAccessProperties: output.WorkspaceAccessProperties != null
|
|
5224
5177
|
? deserializeAws_json1_1WorkspaceAccessProperties(output.WorkspaceAccessProperties, context)
|
|
5225
5178
|
: undefined,
|
|
5226
|
-
WorkspaceCreationProperties: output.WorkspaceCreationProperties
|
|
5179
|
+
WorkspaceCreationProperties: output.WorkspaceCreationProperties != null
|
|
5227
5180
|
? deserializeAws_json1_1DefaultWorkspaceCreationProperties(output.WorkspaceCreationProperties, context)
|
|
5228
5181
|
: undefined,
|
|
5229
5182
|
WorkspaceSecurityGroupId: (0, smithy_client_1.expectString)(output.WorkspaceSecurityGroupId),
|
|
5230
|
-
ipGroupIds: output.ipGroupIds
|
|
5231
|
-
? deserializeAws_json1_1IpGroupIdList(output.ipGroupIds, context)
|
|
5232
|
-
: undefined,
|
|
5183
|
+
ipGroupIds: output.ipGroupIds != null ? deserializeAws_json1_1IpGroupIdList(output.ipGroupIds, context) : undefined,
|
|
5233
5184
|
};
|
|
5234
5185
|
};
|
|
5235
5186
|
const deserializeAws_json1_1WorkspaceImage = (output, context) => {
|
|
5236
5187
|
return {
|
|
5237
|
-
Created: output.Created
|
|
5238
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Created)))
|
|
5239
|
-
: undefined,
|
|
5188
|
+
Created: output.Created != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Created))) : undefined,
|
|
5240
5189
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
5241
5190
|
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
5242
5191
|
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
5243
5192
|
ImageId: (0, smithy_client_1.expectString)(output.ImageId),
|
|
5244
5193
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
5245
|
-
OperatingSystem: output.OperatingSystem
|
|
5194
|
+
OperatingSystem: output.OperatingSystem != null
|
|
5246
5195
|
? deserializeAws_json1_1OperatingSystem(output.OperatingSystem, context)
|
|
5247
5196
|
: undefined,
|
|
5248
5197
|
OwnerAccountId: (0, smithy_client_1.expectString)(output.OwnerAccountId),
|
|
5249
5198
|
RequiredTenancy: (0, smithy_client_1.expectString)(output.RequiredTenancy),
|
|
5250
5199
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
5251
|
-
Updates: output.Updates
|
|
5252
|
-
? deserializeAws_json1_1UpdateResult(output.Updates, context)
|
|
5253
|
-
: undefined,
|
|
5200
|
+
Updates: output.Updates != null ? deserializeAws_json1_1UpdateResult(output.Updates, context) : undefined,
|
|
5254
5201
|
};
|
|
5255
5202
|
};
|
|
5256
5203
|
const deserializeAws_json1_1WorkspaceImageList = (output, context) => {
|
|
@@ -5289,13 +5236,11 @@ const deserializeAws_json1_1WorkspaceRequest = (output, context) => {
|
|
|
5289
5236
|
BundleId: (0, smithy_client_1.expectString)(output.BundleId),
|
|
5290
5237
|
DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
|
|
5291
5238
|
RootVolumeEncryptionEnabled: (0, smithy_client_1.expectBoolean)(output.RootVolumeEncryptionEnabled),
|
|
5292
|
-
Tags: output.Tags
|
|
5293
|
-
? deserializeAws_json1_1TagList(output.Tags, context)
|
|
5294
|
-
: undefined,
|
|
5239
|
+
Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
|
|
5295
5240
|
UserName: (0, smithy_client_1.expectString)(output.UserName),
|
|
5296
5241
|
UserVolumeEncryptionEnabled: (0, smithy_client_1.expectBoolean)(output.UserVolumeEncryptionEnabled),
|
|
5297
5242
|
VolumeEncryptionKey: (0, smithy_client_1.expectString)(output.VolumeEncryptionKey),
|
|
5298
|
-
WorkspaceProperties: output.WorkspaceProperties
|
|
5243
|
+
WorkspaceProperties: output.WorkspaceProperties != null
|
|
5299
5244
|
? deserializeAws_json1_1WorkspaceProperties(output.WorkspaceProperties, context)
|
|
5300
5245
|
: undefined,
|
|
5301
5246
|
};
|
|
@@ -5310,9 +5255,7 @@ const deserializeAws_json1_1WorkspacesIpGroup = (output, context) => {
|
|
|
5310
5255
|
groupDesc: (0, smithy_client_1.expectString)(output.groupDesc),
|
|
5311
5256
|
groupId: (0, smithy_client_1.expectString)(output.groupId),
|
|
5312
5257
|
groupName: (0, smithy_client_1.expectString)(output.groupName),
|
|
5313
|
-
userRules: output.userRules
|
|
5314
|
-
? deserializeAws_json1_1IpRuleList(output.userRules, context)
|
|
5315
|
-
: undefined,
|
|
5258
|
+
userRules: output.userRules != null ? deserializeAws_json1_1IpRuleList(output.userRules, context) : undefined,
|
|
5316
5259
|
};
|
|
5317
5260
|
};
|
|
5318
5261
|
const deserializeAws_json1_1WorkspacesIpGroupsList = (output, context) => {
|
|
@@ -5388,5 +5331,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
5388
5331
|
if (data["__type"] !== undefined) {
|
|
5389
5332
|
return sanitizeErrorCode(data["__type"]);
|
|
5390
5333
|
}
|
|
5391
|
-
return "";
|
|
5392
5334
|
};
|