@aws-sdk/client-appstream 3.120.0 → 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 +708 -842
- package/dist-es/protocols/Aws_json1_1.js +543 -677
- package/package.json +27 -27
|
@@ -677,8 +677,7 @@ const deserializeAws_json1_1AssociateApplicationFleetCommandError = async (outpu
|
|
|
677
677
|
body: await parseBody(output.body, context),
|
|
678
678
|
};
|
|
679
679
|
let response;
|
|
680
|
-
|
|
681
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
680
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
682
681
|
switch (errorCode) {
|
|
683
682
|
case "ConcurrentModificationException":
|
|
684
683
|
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
@@ -697,10 +696,12 @@ const deserializeAws_json1_1AssociateApplicationFleetCommandError = async (outpu
|
|
|
697
696
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
698
697
|
default:
|
|
699
698
|
const parsedBody = parsedOutput.body;
|
|
699
|
+
const $metadata = deserializeMetadata(output);
|
|
700
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
700
701
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
701
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
702
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
702
703
|
$fault: "client",
|
|
703
|
-
$metadata
|
|
704
|
+
$metadata,
|
|
704
705
|
});
|
|
705
706
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
706
707
|
}
|
|
@@ -725,8 +726,7 @@ const deserializeAws_json1_1AssociateApplicationToEntitlementCommandError = asyn
|
|
|
725
726
|
body: await parseBody(output.body, context),
|
|
726
727
|
};
|
|
727
728
|
let response;
|
|
728
|
-
|
|
729
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
729
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
730
730
|
switch (errorCode) {
|
|
731
731
|
case "EntitlementNotFoundException":
|
|
732
732
|
case "com.amazonaws.appstream#EntitlementNotFoundException":
|
|
@@ -742,10 +742,12 @@ const deserializeAws_json1_1AssociateApplicationToEntitlementCommandError = asyn
|
|
|
742
742
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
743
743
|
default:
|
|
744
744
|
const parsedBody = parsedOutput.body;
|
|
745
|
+
const $metadata = deserializeMetadata(output);
|
|
746
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
745
747
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
746
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
748
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
747
749
|
$fault: "client",
|
|
748
|
-
$metadata
|
|
750
|
+
$metadata,
|
|
749
751
|
});
|
|
750
752
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
751
753
|
}
|
|
@@ -770,8 +772,7 @@ const deserializeAws_json1_1AssociateFleetCommandError = async (output, context)
|
|
|
770
772
|
body: await parseBody(output.body, context),
|
|
771
773
|
};
|
|
772
774
|
let response;
|
|
773
|
-
|
|
774
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
775
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
775
776
|
switch (errorCode) {
|
|
776
777
|
case "ConcurrentModificationException":
|
|
777
778
|
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
@@ -793,10 +794,12 @@ const deserializeAws_json1_1AssociateFleetCommandError = async (output, context)
|
|
|
793
794
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
794
795
|
default:
|
|
795
796
|
const parsedBody = parsedOutput.body;
|
|
797
|
+
const $metadata = deserializeMetadata(output);
|
|
798
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
796
799
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
797
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
800
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
798
801
|
$fault: "client",
|
|
799
|
-
$metadata
|
|
802
|
+
$metadata,
|
|
800
803
|
});
|
|
801
804
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
802
805
|
}
|
|
@@ -821,8 +824,7 @@ const deserializeAws_json1_1BatchAssociateUserStackCommandError = async (output,
|
|
|
821
824
|
body: await parseBody(output.body, context),
|
|
822
825
|
};
|
|
823
826
|
let response;
|
|
824
|
-
|
|
825
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
827
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
826
828
|
switch (errorCode) {
|
|
827
829
|
case "InvalidParameterCombinationException":
|
|
828
830
|
case "com.amazonaws.appstream#InvalidParameterCombinationException":
|
|
@@ -832,10 +834,12 @@ const deserializeAws_json1_1BatchAssociateUserStackCommandError = async (output,
|
|
|
832
834
|
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
833
835
|
default:
|
|
834
836
|
const parsedBody = parsedOutput.body;
|
|
837
|
+
const $metadata = deserializeMetadata(output);
|
|
838
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
835
839
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
836
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
840
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
837
841
|
$fault: "client",
|
|
838
|
-
$metadata
|
|
842
|
+
$metadata,
|
|
839
843
|
});
|
|
840
844
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
841
845
|
}
|
|
@@ -860,8 +864,7 @@ const deserializeAws_json1_1BatchDisassociateUserStackCommandError = async (outp
|
|
|
860
864
|
body: await parseBody(output.body, context),
|
|
861
865
|
};
|
|
862
866
|
let response;
|
|
863
|
-
|
|
864
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
867
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
865
868
|
switch (errorCode) {
|
|
866
869
|
case "InvalidParameterCombinationException":
|
|
867
870
|
case "com.amazonaws.appstream#InvalidParameterCombinationException":
|
|
@@ -871,10 +874,12 @@ const deserializeAws_json1_1BatchDisassociateUserStackCommandError = async (outp
|
|
|
871
874
|
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
872
875
|
default:
|
|
873
876
|
const parsedBody = parsedOutput.body;
|
|
877
|
+
const $metadata = deserializeMetadata(output);
|
|
878
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
874
879
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
875
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
880
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
876
881
|
$fault: "client",
|
|
877
|
-
$metadata
|
|
882
|
+
$metadata,
|
|
878
883
|
});
|
|
879
884
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
880
885
|
}
|
|
@@ -899,8 +904,7 @@ const deserializeAws_json1_1CopyImageCommandError = async (output, context) => {
|
|
|
899
904
|
body: await parseBody(output.body, context),
|
|
900
905
|
};
|
|
901
906
|
let response;
|
|
902
|
-
|
|
903
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
907
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
904
908
|
switch (errorCode) {
|
|
905
909
|
case "IncompatibleImageException":
|
|
906
910
|
case "com.amazonaws.appstream#IncompatibleImageException":
|
|
@@ -922,10 +926,12 @@ const deserializeAws_json1_1CopyImageCommandError = async (output, context) => {
|
|
|
922
926
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
923
927
|
default:
|
|
924
928
|
const parsedBody = parsedOutput.body;
|
|
929
|
+
const $metadata = deserializeMetadata(output);
|
|
930
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
925
931
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
926
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
932
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
927
933
|
$fault: "client",
|
|
928
|
-
$metadata
|
|
934
|
+
$metadata,
|
|
929
935
|
});
|
|
930
936
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
931
937
|
}
|
|
@@ -950,8 +956,7 @@ const deserializeAws_json1_1CreateAppBlockCommandError = async (output, context)
|
|
|
950
956
|
body: await parseBody(output.body, context),
|
|
951
957
|
};
|
|
952
958
|
let response;
|
|
953
|
-
|
|
954
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
959
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
955
960
|
switch (errorCode) {
|
|
956
961
|
case "ConcurrentModificationException":
|
|
957
962
|
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
@@ -967,10 +972,12 @@ const deserializeAws_json1_1CreateAppBlockCommandError = async (output, context)
|
|
|
967
972
|
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
968
973
|
default:
|
|
969
974
|
const parsedBody = parsedOutput.body;
|
|
975
|
+
const $metadata = deserializeMetadata(output);
|
|
976
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
970
977
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
971
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
978
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
972
979
|
$fault: "client",
|
|
973
|
-
$metadata
|
|
980
|
+
$metadata,
|
|
974
981
|
});
|
|
975
982
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
976
983
|
}
|
|
@@ -995,8 +1002,7 @@ const deserializeAws_json1_1CreateApplicationCommandError = async (output, conte
|
|
|
995
1002
|
body: await parseBody(output.body, context),
|
|
996
1003
|
};
|
|
997
1004
|
let response;
|
|
998
|
-
|
|
999
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1005
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1000
1006
|
switch (errorCode) {
|
|
1001
1007
|
case "ConcurrentModificationException":
|
|
1002
1008
|
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
@@ -1015,10 +1021,12 @@ const deserializeAws_json1_1CreateApplicationCommandError = async (output, conte
|
|
|
1015
1021
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1016
1022
|
default:
|
|
1017
1023
|
const parsedBody = parsedOutput.body;
|
|
1024
|
+
const $metadata = deserializeMetadata(output);
|
|
1025
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1018
1026
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
1019
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1027
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1020
1028
|
$fault: "client",
|
|
1021
|
-
$metadata
|
|
1029
|
+
$metadata,
|
|
1022
1030
|
});
|
|
1023
1031
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1024
1032
|
}
|
|
@@ -1043,8 +1051,7 @@ const deserializeAws_json1_1CreateDirectoryConfigCommandError = async (output, c
|
|
|
1043
1051
|
body: await parseBody(output.body, context),
|
|
1044
1052
|
};
|
|
1045
1053
|
let response;
|
|
1046
|
-
|
|
1047
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1054
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1048
1055
|
switch (errorCode) {
|
|
1049
1056
|
case "InvalidAccountStatusException":
|
|
1050
1057
|
case "com.amazonaws.appstream#InvalidAccountStatusException":
|
|
@@ -1066,10 +1073,12 @@ const deserializeAws_json1_1CreateDirectoryConfigCommandError = async (output, c
|
|
|
1066
1073
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1067
1074
|
default:
|
|
1068
1075
|
const parsedBody = parsedOutput.body;
|
|
1076
|
+
const $metadata = deserializeMetadata(output);
|
|
1077
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1069
1078
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
1070
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1079
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1071
1080
|
$fault: "client",
|
|
1072
|
-
$metadata
|
|
1081
|
+
$metadata,
|
|
1073
1082
|
});
|
|
1074
1083
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1075
1084
|
}
|
|
@@ -1094,8 +1103,7 @@ const deserializeAws_json1_1CreateEntitlementCommandError = async (output, conte
|
|
|
1094
1103
|
body: await parseBody(output.body, context),
|
|
1095
1104
|
};
|
|
1096
1105
|
let response;
|
|
1097
|
-
|
|
1098
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1106
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1099
1107
|
switch (errorCode) {
|
|
1100
1108
|
case "EntitlementAlreadyExistsException":
|
|
1101
1109
|
case "com.amazonaws.appstream#EntitlementAlreadyExistsException":
|
|
@@ -1111,10 +1119,12 @@ const deserializeAws_json1_1CreateEntitlementCommandError = async (output, conte
|
|
|
1111
1119
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1112
1120
|
default:
|
|
1113
1121
|
const parsedBody = parsedOutput.body;
|
|
1122
|
+
const $metadata = deserializeMetadata(output);
|
|
1123
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1114
1124
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
1115
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1125
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1116
1126
|
$fault: "client",
|
|
1117
|
-
$metadata
|
|
1127
|
+
$metadata,
|
|
1118
1128
|
});
|
|
1119
1129
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1120
1130
|
}
|
|
@@ -1139,8 +1149,7 @@ const deserializeAws_json1_1CreateFleetCommandError = async (output, context) =>
|
|
|
1139
1149
|
body: await parseBody(output.body, context),
|
|
1140
1150
|
};
|
|
1141
1151
|
let response;
|
|
1142
|
-
|
|
1143
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1152
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1144
1153
|
switch (errorCode) {
|
|
1145
1154
|
case "ConcurrentModificationException":
|
|
1146
1155
|
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
@@ -1177,10 +1186,12 @@ const deserializeAws_json1_1CreateFleetCommandError = async (output, context) =>
|
|
|
1177
1186
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1178
1187
|
default:
|
|
1179
1188
|
const parsedBody = parsedOutput.body;
|
|
1189
|
+
const $metadata = deserializeMetadata(output);
|
|
1190
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1180
1191
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
1181
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1192
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1182
1193
|
$fault: "client",
|
|
1183
|
-
$metadata
|
|
1194
|
+
$metadata,
|
|
1184
1195
|
});
|
|
1185
1196
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1186
1197
|
}
|
|
@@ -1205,8 +1216,7 @@ const deserializeAws_json1_1CreateImageBuilderCommandError = async (output, cont
|
|
|
1205
1216
|
body: await parseBody(output.body, context),
|
|
1206
1217
|
};
|
|
1207
1218
|
let response;
|
|
1208
|
-
|
|
1209
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1219
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1210
1220
|
switch (errorCode) {
|
|
1211
1221
|
case "ConcurrentModificationException":
|
|
1212
1222
|
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
@@ -1243,10 +1253,12 @@ const deserializeAws_json1_1CreateImageBuilderCommandError = async (output, cont
|
|
|
1243
1253
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1244
1254
|
default:
|
|
1245
1255
|
const parsedBody = parsedOutput.body;
|
|
1256
|
+
const $metadata = deserializeMetadata(output);
|
|
1257
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1246
1258
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
1247
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1259
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1248
1260
|
$fault: "client",
|
|
1249
|
-
$metadata
|
|
1261
|
+
$metadata,
|
|
1250
1262
|
});
|
|
1251
1263
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1252
1264
|
}
|
|
@@ -1271,8 +1283,7 @@ const deserializeAws_json1_1CreateImageBuilderStreamingURLCommandError = async (
|
|
|
1271
1283
|
body: await parseBody(output.body, context),
|
|
1272
1284
|
};
|
|
1273
1285
|
let response;
|
|
1274
|
-
|
|
1275
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1286
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1276
1287
|
switch (errorCode) {
|
|
1277
1288
|
case "OperationNotPermittedException":
|
|
1278
1289
|
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
@@ -1282,10 +1293,12 @@ const deserializeAws_json1_1CreateImageBuilderStreamingURLCommandError = async (
|
|
|
1282
1293
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1283
1294
|
default:
|
|
1284
1295
|
const parsedBody = parsedOutput.body;
|
|
1296
|
+
const $metadata = deserializeMetadata(output);
|
|
1297
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1285
1298
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
1286
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1299
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1287
1300
|
$fault: "client",
|
|
1288
|
-
$metadata
|
|
1301
|
+
$metadata,
|
|
1289
1302
|
});
|
|
1290
1303
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1291
1304
|
}
|
|
@@ -1310,8 +1323,7 @@ const deserializeAws_json1_1CreateStackCommandError = async (output, context) =>
|
|
|
1310
1323
|
body: await parseBody(output.body, context),
|
|
1311
1324
|
};
|
|
1312
1325
|
let response;
|
|
1313
|
-
|
|
1314
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1326
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1315
1327
|
switch (errorCode) {
|
|
1316
1328
|
case "ConcurrentModificationException":
|
|
1317
1329
|
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
@@ -1336,10 +1348,12 @@ const deserializeAws_json1_1CreateStackCommandError = async (output, context) =>
|
|
|
1336
1348
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1337
1349
|
default:
|
|
1338
1350
|
const parsedBody = parsedOutput.body;
|
|
1351
|
+
const $metadata = deserializeMetadata(output);
|
|
1352
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1339
1353
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
1340
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1354
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1341
1355
|
$fault: "client",
|
|
1342
|
-
$metadata
|
|
1356
|
+
$metadata,
|
|
1343
1357
|
});
|
|
1344
1358
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1345
1359
|
}
|
|
@@ -1364,8 +1378,7 @@ const deserializeAws_json1_1CreateStreamingURLCommandError = async (output, cont
|
|
|
1364
1378
|
body: await parseBody(output.body, context),
|
|
1365
1379
|
};
|
|
1366
1380
|
let response;
|
|
1367
|
-
|
|
1368
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1381
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1369
1382
|
switch (errorCode) {
|
|
1370
1383
|
case "InvalidParameterCombinationException":
|
|
1371
1384
|
case "com.amazonaws.appstream#InvalidParameterCombinationException":
|
|
@@ -1381,10 +1394,12 @@ const deserializeAws_json1_1CreateStreamingURLCommandError = async (output, cont
|
|
|
1381
1394
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1382
1395
|
default:
|
|
1383
1396
|
const parsedBody = parsedOutput.body;
|
|
1397
|
+
const $metadata = deserializeMetadata(output);
|
|
1398
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1384
1399
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
1385
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1400
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1386
1401
|
$fault: "client",
|
|
1387
|
-
$metadata
|
|
1402
|
+
$metadata,
|
|
1388
1403
|
});
|
|
1389
1404
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1390
1405
|
}
|
|
@@ -1409,8 +1424,7 @@ const deserializeAws_json1_1CreateUpdatedImageCommandError = async (output, cont
|
|
|
1409
1424
|
body: await parseBody(output.body, context),
|
|
1410
1425
|
};
|
|
1411
1426
|
let response;
|
|
1412
|
-
|
|
1413
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1427
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1414
1428
|
switch (errorCode) {
|
|
1415
1429
|
case "ConcurrentModificationException":
|
|
1416
1430
|
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
@@ -1435,10 +1449,12 @@ const deserializeAws_json1_1CreateUpdatedImageCommandError = async (output, cont
|
|
|
1435
1449
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1436
1450
|
default:
|
|
1437
1451
|
const parsedBody = parsedOutput.body;
|
|
1452
|
+
const $metadata = deserializeMetadata(output);
|
|
1453
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1438
1454
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
1439
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1455
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1440
1456
|
$fault: "client",
|
|
1441
|
-
$metadata
|
|
1457
|
+
$metadata,
|
|
1442
1458
|
});
|
|
1443
1459
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1444
1460
|
}
|
|
@@ -1463,8 +1479,7 @@ const deserializeAws_json1_1CreateUsageReportSubscriptionCommandError = async (o
|
|
|
1463
1479
|
body: await parseBody(output.body, context),
|
|
1464
1480
|
};
|
|
1465
1481
|
let response;
|
|
1466
|
-
|
|
1467
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1482
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1468
1483
|
switch (errorCode) {
|
|
1469
1484
|
case "InvalidAccountStatusException":
|
|
1470
1485
|
case "com.amazonaws.appstream#InvalidAccountStatusException":
|
|
@@ -1477,10 +1492,12 @@ const deserializeAws_json1_1CreateUsageReportSubscriptionCommandError = async (o
|
|
|
1477
1492
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1478
1493
|
default:
|
|
1479
1494
|
const parsedBody = parsedOutput.body;
|
|
1495
|
+
const $metadata = deserializeMetadata(output);
|
|
1496
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1480
1497
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
1481
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1498
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1482
1499
|
$fault: "client",
|
|
1483
|
-
$metadata
|
|
1500
|
+
$metadata,
|
|
1484
1501
|
});
|
|
1485
1502
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1486
1503
|
}
|
|
@@ -1505,8 +1522,7 @@ const deserializeAws_json1_1CreateUserCommandError = async (output, context) =>
|
|
|
1505
1522
|
body: await parseBody(output.body, context),
|
|
1506
1523
|
};
|
|
1507
1524
|
let response;
|
|
1508
|
-
|
|
1509
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1525
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1510
1526
|
switch (errorCode) {
|
|
1511
1527
|
case "InvalidAccountStatusException":
|
|
1512
1528
|
case "com.amazonaws.appstream#InvalidAccountStatusException":
|
|
@@ -1525,10 +1541,12 @@ const deserializeAws_json1_1CreateUserCommandError = async (output, context) =>
|
|
|
1525
1541
|
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1526
1542
|
default:
|
|
1527
1543
|
const parsedBody = parsedOutput.body;
|
|
1544
|
+
const $metadata = deserializeMetadata(output);
|
|
1545
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1528
1546
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
1529
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1547
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1530
1548
|
$fault: "client",
|
|
1531
|
-
$metadata
|
|
1549
|
+
$metadata,
|
|
1532
1550
|
});
|
|
1533
1551
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1534
1552
|
}
|
|
@@ -1553,8 +1571,7 @@ const deserializeAws_json1_1DeleteAppBlockCommandError = async (output, context)
|
|
|
1553
1571
|
body: await parseBody(output.body, context),
|
|
1554
1572
|
};
|
|
1555
1573
|
let response;
|
|
1556
|
-
|
|
1557
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1574
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1558
1575
|
switch (errorCode) {
|
|
1559
1576
|
case "ConcurrentModificationException":
|
|
1560
1577
|
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
@@ -1567,10 +1584,12 @@ const deserializeAws_json1_1DeleteAppBlockCommandError = async (output, context)
|
|
|
1567
1584
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1568
1585
|
default:
|
|
1569
1586
|
const parsedBody = parsedOutput.body;
|
|
1587
|
+
const $metadata = deserializeMetadata(output);
|
|
1588
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1570
1589
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
1571
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1590
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1572
1591
|
$fault: "client",
|
|
1573
|
-
$metadata
|
|
1592
|
+
$metadata,
|
|
1574
1593
|
});
|
|
1575
1594
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1576
1595
|
}
|
|
@@ -1595,8 +1614,7 @@ const deserializeAws_json1_1DeleteApplicationCommandError = async (output, conte
|
|
|
1595
1614
|
body: await parseBody(output.body, context),
|
|
1596
1615
|
};
|
|
1597
1616
|
let response;
|
|
1598
|
-
|
|
1599
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1617
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1600
1618
|
switch (errorCode) {
|
|
1601
1619
|
case "ConcurrentModificationException":
|
|
1602
1620
|
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
@@ -1612,10 +1630,12 @@ const deserializeAws_json1_1DeleteApplicationCommandError = async (output, conte
|
|
|
1612
1630
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1613
1631
|
default:
|
|
1614
1632
|
const parsedBody = parsedOutput.body;
|
|
1633
|
+
const $metadata = deserializeMetadata(output);
|
|
1634
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1615
1635
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
1616
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1636
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1617
1637
|
$fault: "client",
|
|
1618
|
-
$metadata
|
|
1638
|
+
$metadata,
|
|
1619
1639
|
});
|
|
1620
1640
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1621
1641
|
}
|
|
@@ -1640,8 +1660,7 @@ const deserializeAws_json1_1DeleteDirectoryConfigCommandError = async (output, c
|
|
|
1640
1660
|
body: await parseBody(output.body, context),
|
|
1641
1661
|
};
|
|
1642
1662
|
let response;
|
|
1643
|
-
|
|
1644
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1663
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1645
1664
|
switch (errorCode) {
|
|
1646
1665
|
case "ResourceInUseException":
|
|
1647
1666
|
case "com.amazonaws.appstream#ResourceInUseException":
|
|
@@ -1651,10 +1670,12 @@ const deserializeAws_json1_1DeleteDirectoryConfigCommandError = async (output, c
|
|
|
1651
1670
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1652
1671
|
default:
|
|
1653
1672
|
const parsedBody = parsedOutput.body;
|
|
1673
|
+
const $metadata = deserializeMetadata(output);
|
|
1674
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1654
1675
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
1655
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1676
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1656
1677
|
$fault: "client",
|
|
1657
|
-
$metadata
|
|
1678
|
+
$metadata,
|
|
1658
1679
|
});
|
|
1659
1680
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1660
1681
|
}
|
|
@@ -1679,8 +1700,7 @@ const deserializeAws_json1_1DeleteEntitlementCommandError = async (output, conte
|
|
|
1679
1700
|
body: await parseBody(output.body, context),
|
|
1680
1701
|
};
|
|
1681
1702
|
let response;
|
|
1682
|
-
|
|
1683
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1703
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1684
1704
|
switch (errorCode) {
|
|
1685
1705
|
case "ConcurrentModificationException":
|
|
1686
1706
|
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
@@ -1696,10 +1716,12 @@ const deserializeAws_json1_1DeleteEntitlementCommandError = async (output, conte
|
|
|
1696
1716
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1697
1717
|
default:
|
|
1698
1718
|
const parsedBody = parsedOutput.body;
|
|
1719
|
+
const $metadata = deserializeMetadata(output);
|
|
1720
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1699
1721
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
1700
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1722
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1701
1723
|
$fault: "client",
|
|
1702
|
-
$metadata
|
|
1724
|
+
$metadata,
|
|
1703
1725
|
});
|
|
1704
1726
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1705
1727
|
}
|
|
@@ -1724,8 +1746,7 @@ const deserializeAws_json1_1DeleteFleetCommandError = async (output, context) =>
|
|
|
1724
1746
|
body: await parseBody(output.body, context),
|
|
1725
1747
|
};
|
|
1726
1748
|
let response;
|
|
1727
|
-
|
|
1728
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1749
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1729
1750
|
switch (errorCode) {
|
|
1730
1751
|
case "ConcurrentModificationException":
|
|
1731
1752
|
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
@@ -1738,10 +1759,12 @@ const deserializeAws_json1_1DeleteFleetCommandError = async (output, context) =>
|
|
|
1738
1759
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1739
1760
|
default:
|
|
1740
1761
|
const parsedBody = parsedOutput.body;
|
|
1762
|
+
const $metadata = deserializeMetadata(output);
|
|
1763
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1741
1764
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
1742
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1765
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1743
1766
|
$fault: "client",
|
|
1744
|
-
$metadata
|
|
1767
|
+
$metadata,
|
|
1745
1768
|
});
|
|
1746
1769
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1747
1770
|
}
|
|
@@ -1766,8 +1789,7 @@ const deserializeAws_json1_1DeleteImageCommandError = async (output, context) =>
|
|
|
1766
1789
|
body: await parseBody(output.body, context),
|
|
1767
1790
|
};
|
|
1768
1791
|
let response;
|
|
1769
|
-
|
|
1770
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1792
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1771
1793
|
switch (errorCode) {
|
|
1772
1794
|
case "ConcurrentModificationException":
|
|
1773
1795
|
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
@@ -1783,10 +1805,12 @@ const deserializeAws_json1_1DeleteImageCommandError = async (output, context) =>
|
|
|
1783
1805
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1784
1806
|
default:
|
|
1785
1807
|
const parsedBody = parsedOutput.body;
|
|
1808
|
+
const $metadata = deserializeMetadata(output);
|
|
1809
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1786
1810
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
1787
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1811
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1788
1812
|
$fault: "client",
|
|
1789
|
-
$metadata
|
|
1813
|
+
$metadata,
|
|
1790
1814
|
});
|
|
1791
1815
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1792
1816
|
}
|
|
@@ -1811,8 +1835,7 @@ const deserializeAws_json1_1DeleteImageBuilderCommandError = async (output, cont
|
|
|
1811
1835
|
body: await parseBody(output.body, context),
|
|
1812
1836
|
};
|
|
1813
1837
|
let response;
|
|
1814
|
-
|
|
1815
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1838
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1816
1839
|
switch (errorCode) {
|
|
1817
1840
|
case "ConcurrentModificationException":
|
|
1818
1841
|
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
@@ -1825,10 +1848,12 @@ const deserializeAws_json1_1DeleteImageBuilderCommandError = async (output, cont
|
|
|
1825
1848
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1826
1849
|
default:
|
|
1827
1850
|
const parsedBody = parsedOutput.body;
|
|
1851
|
+
const $metadata = deserializeMetadata(output);
|
|
1852
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1828
1853
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
1829
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1854
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1830
1855
|
$fault: "client",
|
|
1831
|
-
$metadata
|
|
1856
|
+
$metadata,
|
|
1832
1857
|
});
|
|
1833
1858
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1834
1859
|
}
|
|
@@ -1853,8 +1878,7 @@ const deserializeAws_json1_1DeleteImagePermissionsCommandError = async (output,
|
|
|
1853
1878
|
body: await parseBody(output.body, context),
|
|
1854
1879
|
};
|
|
1855
1880
|
let response;
|
|
1856
|
-
|
|
1857
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1881
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1858
1882
|
switch (errorCode) {
|
|
1859
1883
|
case "ResourceNotAvailableException":
|
|
1860
1884
|
case "com.amazonaws.appstream#ResourceNotAvailableException":
|
|
@@ -1864,10 +1888,12 @@ const deserializeAws_json1_1DeleteImagePermissionsCommandError = async (output,
|
|
|
1864
1888
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1865
1889
|
default:
|
|
1866
1890
|
const parsedBody = parsedOutput.body;
|
|
1891
|
+
const $metadata = deserializeMetadata(output);
|
|
1892
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1867
1893
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
1868
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1894
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1869
1895
|
$fault: "client",
|
|
1870
|
-
$metadata
|
|
1896
|
+
$metadata,
|
|
1871
1897
|
});
|
|
1872
1898
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1873
1899
|
}
|
|
@@ -1892,8 +1918,7 @@ const deserializeAws_json1_1DeleteStackCommandError = async (output, context) =>
|
|
|
1892
1918
|
body: await parseBody(output.body, context),
|
|
1893
1919
|
};
|
|
1894
1920
|
let response;
|
|
1895
|
-
|
|
1896
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1921
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1897
1922
|
switch (errorCode) {
|
|
1898
1923
|
case "ConcurrentModificationException":
|
|
1899
1924
|
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
@@ -1909,10 +1934,12 @@ const deserializeAws_json1_1DeleteStackCommandError = async (output, context) =>
|
|
|
1909
1934
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1910
1935
|
default:
|
|
1911
1936
|
const parsedBody = parsedOutput.body;
|
|
1937
|
+
const $metadata = deserializeMetadata(output);
|
|
1938
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1912
1939
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
1913
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1940
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1914
1941
|
$fault: "client",
|
|
1915
|
-
$metadata
|
|
1942
|
+
$metadata,
|
|
1916
1943
|
});
|
|
1917
1944
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1918
1945
|
}
|
|
@@ -1937,8 +1964,7 @@ const deserializeAws_json1_1DeleteUsageReportSubscriptionCommandError = async (o
|
|
|
1937
1964
|
body: await parseBody(output.body, context),
|
|
1938
1965
|
};
|
|
1939
1966
|
let response;
|
|
1940
|
-
|
|
1941
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1967
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1942
1968
|
switch (errorCode) {
|
|
1943
1969
|
case "InvalidAccountStatusException":
|
|
1944
1970
|
case "com.amazonaws.appstream#InvalidAccountStatusException":
|
|
@@ -1948,10 +1974,12 @@ const deserializeAws_json1_1DeleteUsageReportSubscriptionCommandError = async (o
|
|
|
1948
1974
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1949
1975
|
default:
|
|
1950
1976
|
const parsedBody = parsedOutput.body;
|
|
1977
|
+
const $metadata = deserializeMetadata(output);
|
|
1978
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1951
1979
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
1952
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1980
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1953
1981
|
$fault: "client",
|
|
1954
|
-
$metadata
|
|
1982
|
+
$metadata,
|
|
1955
1983
|
});
|
|
1956
1984
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1957
1985
|
}
|
|
@@ -1976,18 +2004,19 @@ const deserializeAws_json1_1DeleteUserCommandError = async (output, context) =>
|
|
|
1976
2004
|
body: await parseBody(output.body, context),
|
|
1977
2005
|
};
|
|
1978
2006
|
let response;
|
|
1979
|
-
|
|
1980
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2007
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1981
2008
|
switch (errorCode) {
|
|
1982
2009
|
case "ResourceNotFoundException":
|
|
1983
2010
|
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
1984
2011
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1985
2012
|
default:
|
|
1986
2013
|
const parsedBody = parsedOutput.body;
|
|
2014
|
+
const $metadata = deserializeMetadata(output);
|
|
2015
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1987
2016
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
1988
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2017
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1989
2018
|
$fault: "client",
|
|
1990
|
-
$metadata
|
|
2019
|
+
$metadata,
|
|
1991
2020
|
});
|
|
1992
2021
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1993
2022
|
}
|
|
@@ -2012,8 +2041,7 @@ const deserializeAws_json1_1DescribeAppBlocksCommandError = async (output, conte
|
|
|
2012
2041
|
body: await parseBody(output.body, context),
|
|
2013
2042
|
};
|
|
2014
2043
|
let response;
|
|
2015
|
-
|
|
2016
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2044
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2017
2045
|
switch (errorCode) {
|
|
2018
2046
|
case "OperationNotPermittedException":
|
|
2019
2047
|
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
@@ -2023,10 +2051,12 @@ const deserializeAws_json1_1DescribeAppBlocksCommandError = async (output, conte
|
|
|
2023
2051
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2024
2052
|
default:
|
|
2025
2053
|
const parsedBody = parsedOutput.body;
|
|
2054
|
+
const $metadata = deserializeMetadata(output);
|
|
2055
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2026
2056
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
2027
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2057
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2028
2058
|
$fault: "client",
|
|
2029
|
-
$metadata
|
|
2059
|
+
$metadata,
|
|
2030
2060
|
});
|
|
2031
2061
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2032
2062
|
}
|
|
@@ -2051,8 +2081,7 @@ const deserializeAws_json1_1DescribeApplicationFleetAssociationsCommandError = a
|
|
|
2051
2081
|
body: await parseBody(output.body, context),
|
|
2052
2082
|
};
|
|
2053
2083
|
let response;
|
|
2054
|
-
|
|
2055
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2084
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2056
2085
|
switch (errorCode) {
|
|
2057
2086
|
case "InvalidParameterCombinationException":
|
|
2058
2087
|
case "com.amazonaws.appstream#InvalidParameterCombinationException":
|
|
@@ -2062,10 +2091,12 @@ const deserializeAws_json1_1DescribeApplicationFleetAssociationsCommandError = a
|
|
|
2062
2091
|
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
2063
2092
|
default:
|
|
2064
2093
|
const parsedBody = parsedOutput.body;
|
|
2094
|
+
const $metadata = deserializeMetadata(output);
|
|
2095
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2065
2096
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
2066
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2097
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2067
2098
|
$fault: "client",
|
|
2068
|
-
$metadata
|
|
2099
|
+
$metadata,
|
|
2069
2100
|
});
|
|
2070
2101
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2071
2102
|
}
|
|
@@ -2090,8 +2121,7 @@ const deserializeAws_json1_1DescribeApplicationsCommandError = async (output, co
|
|
|
2090
2121
|
body: await parseBody(output.body, context),
|
|
2091
2122
|
};
|
|
2092
2123
|
let response;
|
|
2093
|
-
|
|
2094
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2124
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2095
2125
|
switch (errorCode) {
|
|
2096
2126
|
case "OperationNotPermittedException":
|
|
2097
2127
|
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
@@ -2101,10 +2131,12 @@ const deserializeAws_json1_1DescribeApplicationsCommandError = async (output, co
|
|
|
2101
2131
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2102
2132
|
default:
|
|
2103
2133
|
const parsedBody = parsedOutput.body;
|
|
2134
|
+
const $metadata = deserializeMetadata(output);
|
|
2135
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2104
2136
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
2105
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2137
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2106
2138
|
$fault: "client",
|
|
2107
|
-
$metadata
|
|
2139
|
+
$metadata,
|
|
2108
2140
|
});
|
|
2109
2141
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2110
2142
|
}
|
|
@@ -2129,18 +2161,19 @@ const deserializeAws_json1_1DescribeDirectoryConfigsCommandError = async (output
|
|
|
2129
2161
|
body: await parseBody(output.body, context),
|
|
2130
2162
|
};
|
|
2131
2163
|
let response;
|
|
2132
|
-
|
|
2133
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2164
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2134
2165
|
switch (errorCode) {
|
|
2135
2166
|
case "ResourceNotFoundException":
|
|
2136
2167
|
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
2137
2168
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2138
2169
|
default:
|
|
2139
2170
|
const parsedBody = parsedOutput.body;
|
|
2171
|
+
const $metadata = deserializeMetadata(output);
|
|
2172
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2140
2173
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
2141
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2174
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2142
2175
|
$fault: "client",
|
|
2143
|
-
$metadata
|
|
2176
|
+
$metadata,
|
|
2144
2177
|
});
|
|
2145
2178
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2146
2179
|
}
|
|
@@ -2165,8 +2198,7 @@ const deserializeAws_json1_1DescribeEntitlementsCommandError = async (output, co
|
|
|
2165
2198
|
body: await parseBody(output.body, context),
|
|
2166
2199
|
};
|
|
2167
2200
|
let response;
|
|
2168
|
-
|
|
2169
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2201
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2170
2202
|
switch (errorCode) {
|
|
2171
2203
|
case "EntitlementNotFoundException":
|
|
2172
2204
|
case "com.amazonaws.appstream#EntitlementNotFoundException":
|
|
@@ -2179,10 +2211,12 @@ const deserializeAws_json1_1DescribeEntitlementsCommandError = async (output, co
|
|
|
2179
2211
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2180
2212
|
default:
|
|
2181
2213
|
const parsedBody = parsedOutput.body;
|
|
2214
|
+
const $metadata = deserializeMetadata(output);
|
|
2215
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2182
2216
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
2183
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2217
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2184
2218
|
$fault: "client",
|
|
2185
|
-
$metadata
|
|
2219
|
+
$metadata,
|
|
2186
2220
|
});
|
|
2187
2221
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2188
2222
|
}
|
|
@@ -2207,18 +2241,19 @@ const deserializeAws_json1_1DescribeFleetsCommandError = async (output, context)
|
|
|
2207
2241
|
body: await parseBody(output.body, context),
|
|
2208
2242
|
};
|
|
2209
2243
|
let response;
|
|
2210
|
-
|
|
2211
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2244
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2212
2245
|
switch (errorCode) {
|
|
2213
2246
|
case "ResourceNotFoundException":
|
|
2214
2247
|
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
2215
2248
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2216
2249
|
default:
|
|
2217
2250
|
const parsedBody = parsedOutput.body;
|
|
2251
|
+
const $metadata = deserializeMetadata(output);
|
|
2252
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2218
2253
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
2219
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2254
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2220
2255
|
$fault: "client",
|
|
2221
|
-
$metadata
|
|
2256
|
+
$metadata,
|
|
2222
2257
|
});
|
|
2223
2258
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2224
2259
|
}
|
|
@@ -2243,18 +2278,19 @@ const deserializeAws_json1_1DescribeImageBuildersCommandError = async (output, c
|
|
|
2243
2278
|
body: await parseBody(output.body, context),
|
|
2244
2279
|
};
|
|
2245
2280
|
let response;
|
|
2246
|
-
|
|
2247
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2281
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2248
2282
|
switch (errorCode) {
|
|
2249
2283
|
case "ResourceNotFoundException":
|
|
2250
2284
|
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
2251
2285
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2252
2286
|
default:
|
|
2253
2287
|
const parsedBody = parsedOutput.body;
|
|
2288
|
+
const $metadata = deserializeMetadata(output);
|
|
2289
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2254
2290
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
2255
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2291
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2256
2292
|
$fault: "client",
|
|
2257
|
-
$metadata
|
|
2293
|
+
$metadata,
|
|
2258
2294
|
});
|
|
2259
2295
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2260
2296
|
}
|
|
@@ -2279,18 +2315,19 @@ const deserializeAws_json1_1DescribeImagePermissionsCommandError = async (output
|
|
|
2279
2315
|
body: await parseBody(output.body, context),
|
|
2280
2316
|
};
|
|
2281
2317
|
let response;
|
|
2282
|
-
|
|
2283
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2318
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2284
2319
|
switch (errorCode) {
|
|
2285
2320
|
case "ResourceNotFoundException":
|
|
2286
2321
|
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
2287
2322
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2288
2323
|
default:
|
|
2289
2324
|
const parsedBody = parsedOutput.body;
|
|
2325
|
+
const $metadata = deserializeMetadata(output);
|
|
2326
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2290
2327
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
2291
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2328
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2292
2329
|
$fault: "client",
|
|
2293
|
-
$metadata
|
|
2330
|
+
$metadata,
|
|
2294
2331
|
});
|
|
2295
2332
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2296
2333
|
}
|
|
@@ -2315,8 +2352,7 @@ const deserializeAws_json1_1DescribeImagesCommandError = async (output, context)
|
|
|
2315
2352
|
body: await parseBody(output.body, context),
|
|
2316
2353
|
};
|
|
2317
2354
|
let response;
|
|
2318
|
-
|
|
2319
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2355
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2320
2356
|
switch (errorCode) {
|
|
2321
2357
|
case "InvalidParameterCombinationException":
|
|
2322
2358
|
case "com.amazonaws.appstream#InvalidParameterCombinationException":
|
|
@@ -2326,10 +2362,12 @@ const deserializeAws_json1_1DescribeImagesCommandError = async (output, context)
|
|
|
2326
2362
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2327
2363
|
default:
|
|
2328
2364
|
const parsedBody = parsedOutput.body;
|
|
2365
|
+
const $metadata = deserializeMetadata(output);
|
|
2366
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2329
2367
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
2330
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2368
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2331
2369
|
$fault: "client",
|
|
2332
|
-
$metadata
|
|
2370
|
+
$metadata,
|
|
2333
2371
|
});
|
|
2334
2372
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2335
2373
|
}
|
|
@@ -2354,18 +2392,19 @@ const deserializeAws_json1_1DescribeSessionsCommandError = async (output, contex
|
|
|
2354
2392
|
body: await parseBody(output.body, context),
|
|
2355
2393
|
};
|
|
2356
2394
|
let response;
|
|
2357
|
-
|
|
2358
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2395
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2359
2396
|
switch (errorCode) {
|
|
2360
2397
|
case "InvalidParameterCombinationException":
|
|
2361
2398
|
case "com.amazonaws.appstream#InvalidParameterCombinationException":
|
|
2362
2399
|
throw await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context);
|
|
2363
2400
|
default:
|
|
2364
2401
|
const parsedBody = parsedOutput.body;
|
|
2402
|
+
const $metadata = deserializeMetadata(output);
|
|
2403
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2365
2404
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
2366
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2405
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2367
2406
|
$fault: "client",
|
|
2368
|
-
$metadata
|
|
2407
|
+
$metadata,
|
|
2369
2408
|
});
|
|
2370
2409
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2371
2410
|
}
|
|
@@ -2390,18 +2429,19 @@ const deserializeAws_json1_1DescribeStacksCommandError = async (output, context)
|
|
|
2390
2429
|
body: await parseBody(output.body, context),
|
|
2391
2430
|
};
|
|
2392
2431
|
let response;
|
|
2393
|
-
|
|
2394
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2432
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2395
2433
|
switch (errorCode) {
|
|
2396
2434
|
case "ResourceNotFoundException":
|
|
2397
2435
|
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
2398
2436
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2399
2437
|
default:
|
|
2400
2438
|
const parsedBody = parsedOutput.body;
|
|
2439
|
+
const $metadata = deserializeMetadata(output);
|
|
2440
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2401
2441
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
2402
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2442
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2403
2443
|
$fault: "client",
|
|
2404
|
-
$metadata
|
|
2444
|
+
$metadata,
|
|
2405
2445
|
});
|
|
2406
2446
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2407
2447
|
}
|
|
@@ -2426,8 +2466,7 @@ const deserializeAws_json1_1DescribeUsageReportSubscriptionsCommandError = async
|
|
|
2426
2466
|
body: await parseBody(output.body, context),
|
|
2427
2467
|
};
|
|
2428
2468
|
let response;
|
|
2429
|
-
|
|
2430
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2469
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2431
2470
|
switch (errorCode) {
|
|
2432
2471
|
case "InvalidAccountStatusException":
|
|
2433
2472
|
case "com.amazonaws.appstream#InvalidAccountStatusException":
|
|
@@ -2437,10 +2476,12 @@ const deserializeAws_json1_1DescribeUsageReportSubscriptionsCommandError = async
|
|
|
2437
2476
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2438
2477
|
default:
|
|
2439
2478
|
const parsedBody = parsedOutput.body;
|
|
2479
|
+
const $metadata = deserializeMetadata(output);
|
|
2480
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2440
2481
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
2441
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2482
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2442
2483
|
$fault: "client",
|
|
2443
|
-
$metadata
|
|
2484
|
+
$metadata,
|
|
2444
2485
|
});
|
|
2445
2486
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2446
2487
|
}
|
|
@@ -2465,8 +2506,7 @@ const deserializeAws_json1_1DescribeUsersCommandError = async (output, context)
|
|
|
2465
2506
|
body: await parseBody(output.body, context),
|
|
2466
2507
|
};
|
|
2467
2508
|
let response;
|
|
2468
|
-
|
|
2469
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2509
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2470
2510
|
switch (errorCode) {
|
|
2471
2511
|
case "InvalidParameterCombinationException":
|
|
2472
2512
|
case "com.amazonaws.appstream#InvalidParameterCombinationException":
|
|
@@ -2479,10 +2519,12 @@ const deserializeAws_json1_1DescribeUsersCommandError = async (output, context)
|
|
|
2479
2519
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2480
2520
|
default:
|
|
2481
2521
|
const parsedBody = parsedOutput.body;
|
|
2522
|
+
const $metadata = deserializeMetadata(output);
|
|
2523
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2482
2524
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
2483
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2525
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2484
2526
|
$fault: "client",
|
|
2485
|
-
$metadata
|
|
2527
|
+
$metadata,
|
|
2486
2528
|
});
|
|
2487
2529
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2488
2530
|
}
|
|
@@ -2507,8 +2549,7 @@ const deserializeAws_json1_1DescribeUserStackAssociationsCommandError = async (o
|
|
|
2507
2549
|
body: await parseBody(output.body, context),
|
|
2508
2550
|
};
|
|
2509
2551
|
let response;
|
|
2510
|
-
|
|
2511
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2552
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2512
2553
|
switch (errorCode) {
|
|
2513
2554
|
case "InvalidParameterCombinationException":
|
|
2514
2555
|
case "com.amazonaws.appstream#InvalidParameterCombinationException":
|
|
@@ -2518,10 +2559,12 @@ const deserializeAws_json1_1DescribeUserStackAssociationsCommandError = async (o
|
|
|
2518
2559
|
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
2519
2560
|
default:
|
|
2520
2561
|
const parsedBody = parsedOutput.body;
|
|
2562
|
+
const $metadata = deserializeMetadata(output);
|
|
2563
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2521
2564
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
2522
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2565
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2523
2566
|
$fault: "client",
|
|
2524
|
-
$metadata
|
|
2567
|
+
$metadata,
|
|
2525
2568
|
});
|
|
2526
2569
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2527
2570
|
}
|
|
@@ -2546,18 +2589,19 @@ const deserializeAws_json1_1DisableUserCommandError = async (output, context) =>
|
|
|
2546
2589
|
body: await parseBody(output.body, context),
|
|
2547
2590
|
};
|
|
2548
2591
|
let response;
|
|
2549
|
-
|
|
2550
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2592
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2551
2593
|
switch (errorCode) {
|
|
2552
2594
|
case "ResourceNotFoundException":
|
|
2553
2595
|
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
2554
2596
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2555
2597
|
default:
|
|
2556
2598
|
const parsedBody = parsedOutput.body;
|
|
2599
|
+
const $metadata = deserializeMetadata(output);
|
|
2600
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2557
2601
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
2558
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2602
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2559
2603
|
$fault: "client",
|
|
2560
|
-
$metadata
|
|
2604
|
+
$metadata,
|
|
2561
2605
|
});
|
|
2562
2606
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2563
2607
|
}
|
|
@@ -2582,8 +2626,7 @@ const deserializeAws_json1_1DisassociateApplicationFleetCommandError = async (ou
|
|
|
2582
2626
|
body: await parseBody(output.body, context),
|
|
2583
2627
|
};
|
|
2584
2628
|
let response;
|
|
2585
|
-
|
|
2586
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2629
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2587
2630
|
switch (errorCode) {
|
|
2588
2631
|
case "ConcurrentModificationException":
|
|
2589
2632
|
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
@@ -2596,10 +2639,12 @@ const deserializeAws_json1_1DisassociateApplicationFleetCommandError = async (ou
|
|
|
2596
2639
|
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
2597
2640
|
default:
|
|
2598
2641
|
const parsedBody = parsedOutput.body;
|
|
2642
|
+
const $metadata = deserializeMetadata(output);
|
|
2643
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2599
2644
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
2600
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2645
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2601
2646
|
$fault: "client",
|
|
2602
|
-
$metadata
|
|
2647
|
+
$metadata,
|
|
2603
2648
|
});
|
|
2604
2649
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2605
2650
|
}
|
|
@@ -2624,8 +2669,7 @@ const deserializeAws_json1_1DisassociateApplicationFromEntitlementCommandError =
|
|
|
2624
2669
|
body: await parseBody(output.body, context),
|
|
2625
2670
|
};
|
|
2626
2671
|
let response;
|
|
2627
|
-
|
|
2628
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2672
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2629
2673
|
switch (errorCode) {
|
|
2630
2674
|
case "EntitlementNotFoundException":
|
|
2631
2675
|
case "com.amazonaws.appstream#EntitlementNotFoundException":
|
|
@@ -2638,10 +2682,12 @@ const deserializeAws_json1_1DisassociateApplicationFromEntitlementCommandError =
|
|
|
2638
2682
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2639
2683
|
default:
|
|
2640
2684
|
const parsedBody = parsedOutput.body;
|
|
2685
|
+
const $metadata = deserializeMetadata(output);
|
|
2686
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2641
2687
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
2642
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2688
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2643
2689
|
$fault: "client",
|
|
2644
|
-
$metadata
|
|
2690
|
+
$metadata,
|
|
2645
2691
|
});
|
|
2646
2692
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2647
2693
|
}
|
|
@@ -2666,8 +2712,7 @@ const deserializeAws_json1_1DisassociateFleetCommandError = async (output, conte
|
|
|
2666
2712
|
body: await parseBody(output.body, context),
|
|
2667
2713
|
};
|
|
2668
2714
|
let response;
|
|
2669
|
-
|
|
2670
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2715
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2671
2716
|
switch (errorCode) {
|
|
2672
2717
|
case "ConcurrentModificationException":
|
|
2673
2718
|
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
@@ -2683,10 +2728,12 @@ const deserializeAws_json1_1DisassociateFleetCommandError = async (output, conte
|
|
|
2683
2728
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2684
2729
|
default:
|
|
2685
2730
|
const parsedBody = parsedOutput.body;
|
|
2731
|
+
const $metadata = deserializeMetadata(output);
|
|
2732
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2686
2733
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
2687
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2734
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2688
2735
|
$fault: "client",
|
|
2689
|
-
$metadata
|
|
2736
|
+
$metadata,
|
|
2690
2737
|
});
|
|
2691
2738
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2692
2739
|
}
|
|
@@ -2711,8 +2758,7 @@ const deserializeAws_json1_1EnableUserCommandError = async (output, context) =>
|
|
|
2711
2758
|
body: await parseBody(output.body, context),
|
|
2712
2759
|
};
|
|
2713
2760
|
let response;
|
|
2714
|
-
|
|
2715
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2761
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2716
2762
|
switch (errorCode) {
|
|
2717
2763
|
case "InvalidAccountStatusException":
|
|
2718
2764
|
case "com.amazonaws.appstream#InvalidAccountStatusException":
|
|
@@ -2722,10 +2768,12 @@ const deserializeAws_json1_1EnableUserCommandError = async (output, context) =>
|
|
|
2722
2768
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2723
2769
|
default:
|
|
2724
2770
|
const parsedBody = parsedOutput.body;
|
|
2771
|
+
const $metadata = deserializeMetadata(output);
|
|
2772
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2725
2773
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
2726
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2774
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2727
2775
|
$fault: "client",
|
|
2728
|
-
$metadata
|
|
2776
|
+
$metadata,
|
|
2729
2777
|
});
|
|
2730
2778
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2731
2779
|
}
|
|
@@ -2750,15 +2798,16 @@ const deserializeAws_json1_1ExpireSessionCommandError = async (output, context)
|
|
|
2750
2798
|
body: await parseBody(output.body, context),
|
|
2751
2799
|
};
|
|
2752
2800
|
let response;
|
|
2753
|
-
|
|
2754
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2801
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2755
2802
|
switch (errorCode) {
|
|
2756
2803
|
default:
|
|
2757
2804
|
const parsedBody = parsedOutput.body;
|
|
2805
|
+
const $metadata = deserializeMetadata(output);
|
|
2806
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2758
2807
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
2759
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2808
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2760
2809
|
$fault: "client",
|
|
2761
|
-
$metadata
|
|
2810
|
+
$metadata,
|
|
2762
2811
|
});
|
|
2763
2812
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2764
2813
|
}
|
|
@@ -2783,15 +2832,16 @@ const deserializeAws_json1_1ListAssociatedFleetsCommandError = async (output, co
|
|
|
2783
2832
|
body: await parseBody(output.body, context),
|
|
2784
2833
|
};
|
|
2785
2834
|
let response;
|
|
2786
|
-
|
|
2787
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2835
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2788
2836
|
switch (errorCode) {
|
|
2789
2837
|
default:
|
|
2790
2838
|
const parsedBody = parsedOutput.body;
|
|
2839
|
+
const $metadata = deserializeMetadata(output);
|
|
2840
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2791
2841
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
2792
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2842
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2793
2843
|
$fault: "client",
|
|
2794
|
-
$metadata
|
|
2844
|
+
$metadata,
|
|
2795
2845
|
});
|
|
2796
2846
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2797
2847
|
}
|
|
@@ -2816,15 +2866,16 @@ const deserializeAws_json1_1ListAssociatedStacksCommandError = async (output, co
|
|
|
2816
2866
|
body: await parseBody(output.body, context),
|
|
2817
2867
|
};
|
|
2818
2868
|
let response;
|
|
2819
|
-
|
|
2820
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2869
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2821
2870
|
switch (errorCode) {
|
|
2822
2871
|
default:
|
|
2823
2872
|
const parsedBody = parsedOutput.body;
|
|
2873
|
+
const $metadata = deserializeMetadata(output);
|
|
2874
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2824
2875
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
2825
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2876
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2826
2877
|
$fault: "client",
|
|
2827
|
-
$metadata
|
|
2878
|
+
$metadata,
|
|
2828
2879
|
});
|
|
2829
2880
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2830
2881
|
}
|
|
@@ -2849,8 +2900,7 @@ const deserializeAws_json1_1ListEntitledApplicationsCommandError = async (output
|
|
|
2849
2900
|
body: await parseBody(output.body, context),
|
|
2850
2901
|
};
|
|
2851
2902
|
let response;
|
|
2852
|
-
|
|
2853
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2903
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2854
2904
|
switch (errorCode) {
|
|
2855
2905
|
case "EntitlementNotFoundException":
|
|
2856
2906
|
case "com.amazonaws.appstream#EntitlementNotFoundException":
|
|
@@ -2863,10 +2913,12 @@ const deserializeAws_json1_1ListEntitledApplicationsCommandError = async (output
|
|
|
2863
2913
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2864
2914
|
default:
|
|
2865
2915
|
const parsedBody = parsedOutput.body;
|
|
2916
|
+
const $metadata = deserializeMetadata(output);
|
|
2917
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2866
2918
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
2867
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2919
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2868
2920
|
$fault: "client",
|
|
2869
|
-
$metadata
|
|
2921
|
+
$metadata,
|
|
2870
2922
|
});
|
|
2871
2923
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2872
2924
|
}
|
|
@@ -2891,18 +2943,19 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2891
2943
|
body: await parseBody(output.body, context),
|
|
2892
2944
|
};
|
|
2893
2945
|
let response;
|
|
2894
|
-
|
|
2895
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2946
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2896
2947
|
switch (errorCode) {
|
|
2897
2948
|
case "ResourceNotFoundException":
|
|
2898
2949
|
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
2899
2950
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2900
2951
|
default:
|
|
2901
2952
|
const parsedBody = parsedOutput.body;
|
|
2953
|
+
const $metadata = deserializeMetadata(output);
|
|
2954
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2902
2955
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
2903
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2956
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2904
2957
|
$fault: "client",
|
|
2905
|
-
$metadata
|
|
2958
|
+
$metadata,
|
|
2906
2959
|
});
|
|
2907
2960
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2908
2961
|
}
|
|
@@ -2927,8 +2980,7 @@ const deserializeAws_json1_1StartFleetCommandError = async (output, context) =>
|
|
|
2927
2980
|
body: await parseBody(output.body, context),
|
|
2928
2981
|
};
|
|
2929
2982
|
let response;
|
|
2930
|
-
|
|
2931
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2983
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2932
2984
|
switch (errorCode) {
|
|
2933
2985
|
case "ConcurrentModificationException":
|
|
2934
2986
|
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
@@ -2956,10 +3008,12 @@ const deserializeAws_json1_1StartFleetCommandError = async (output, context) =>
|
|
|
2956
3008
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2957
3009
|
default:
|
|
2958
3010
|
const parsedBody = parsedOutput.body;
|
|
3011
|
+
const $metadata = deserializeMetadata(output);
|
|
3012
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2959
3013
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
2960
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3014
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2961
3015
|
$fault: "client",
|
|
2962
|
-
$metadata
|
|
3016
|
+
$metadata,
|
|
2963
3017
|
});
|
|
2964
3018
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2965
3019
|
}
|
|
@@ -2984,8 +3038,7 @@ const deserializeAws_json1_1StartImageBuilderCommandError = async (output, conte
|
|
|
2984
3038
|
body: await parseBody(output.body, context),
|
|
2985
3039
|
};
|
|
2986
3040
|
let response;
|
|
2987
|
-
|
|
2988
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3041
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2989
3042
|
switch (errorCode) {
|
|
2990
3043
|
case "ConcurrentModificationException":
|
|
2991
3044
|
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
@@ -3004,10 +3057,12 @@ const deserializeAws_json1_1StartImageBuilderCommandError = async (output, conte
|
|
|
3004
3057
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3005
3058
|
default:
|
|
3006
3059
|
const parsedBody = parsedOutput.body;
|
|
3060
|
+
const $metadata = deserializeMetadata(output);
|
|
3061
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3007
3062
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
3008
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3063
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3009
3064
|
$fault: "client",
|
|
3010
|
-
$metadata
|
|
3065
|
+
$metadata,
|
|
3011
3066
|
});
|
|
3012
3067
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3013
3068
|
}
|
|
@@ -3032,8 +3087,7 @@ const deserializeAws_json1_1StopFleetCommandError = async (output, context) => {
|
|
|
3032
3087
|
body: await parseBody(output.body, context),
|
|
3033
3088
|
};
|
|
3034
3089
|
let response;
|
|
3035
|
-
|
|
3036
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3090
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3037
3091
|
switch (errorCode) {
|
|
3038
3092
|
case "ConcurrentModificationException":
|
|
3039
3093
|
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
@@ -3043,10 +3097,12 @@ const deserializeAws_json1_1StopFleetCommandError = async (output, context) => {
|
|
|
3043
3097
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3044
3098
|
default:
|
|
3045
3099
|
const parsedBody = parsedOutput.body;
|
|
3100
|
+
const $metadata = deserializeMetadata(output);
|
|
3101
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3046
3102
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
3047
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3103
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3048
3104
|
$fault: "client",
|
|
3049
|
-
$metadata
|
|
3105
|
+
$metadata,
|
|
3050
3106
|
});
|
|
3051
3107
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3052
3108
|
}
|
|
@@ -3071,8 +3127,7 @@ const deserializeAws_json1_1StopImageBuilderCommandError = async (output, contex
|
|
|
3071
3127
|
body: await parseBody(output.body, context),
|
|
3072
3128
|
};
|
|
3073
3129
|
let response;
|
|
3074
|
-
|
|
3075
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3130
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3076
3131
|
switch (errorCode) {
|
|
3077
3132
|
case "ConcurrentModificationException":
|
|
3078
3133
|
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
@@ -3085,10 +3140,12 @@ const deserializeAws_json1_1StopImageBuilderCommandError = async (output, contex
|
|
|
3085
3140
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3086
3141
|
default:
|
|
3087
3142
|
const parsedBody = parsedOutput.body;
|
|
3143
|
+
const $metadata = deserializeMetadata(output);
|
|
3144
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3088
3145
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
3089
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3146
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3090
3147
|
$fault: "client",
|
|
3091
|
-
$metadata
|
|
3148
|
+
$metadata,
|
|
3092
3149
|
});
|
|
3093
3150
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3094
3151
|
}
|
|
@@ -3113,8 +3170,7 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
3113
3170
|
body: await parseBody(output.body, context),
|
|
3114
3171
|
};
|
|
3115
3172
|
let response;
|
|
3116
|
-
|
|
3117
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3173
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3118
3174
|
switch (errorCode) {
|
|
3119
3175
|
case "InvalidAccountStatusException":
|
|
3120
3176
|
case "com.amazonaws.appstream#InvalidAccountStatusException":
|
|
@@ -3127,10 +3183,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
3127
3183
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3128
3184
|
default:
|
|
3129
3185
|
const parsedBody = parsedOutput.body;
|
|
3186
|
+
const $metadata = deserializeMetadata(output);
|
|
3187
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3130
3188
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
3131
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3189
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3132
3190
|
$fault: "client",
|
|
3133
|
-
$metadata
|
|
3191
|
+
$metadata,
|
|
3134
3192
|
});
|
|
3135
3193
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3136
3194
|
}
|
|
@@ -3155,18 +3213,19 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3155
3213
|
body: await parseBody(output.body, context),
|
|
3156
3214
|
};
|
|
3157
3215
|
let response;
|
|
3158
|
-
|
|
3159
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3216
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3160
3217
|
switch (errorCode) {
|
|
3161
3218
|
case "ResourceNotFoundException":
|
|
3162
3219
|
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
3163
3220
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3164
3221
|
default:
|
|
3165
3222
|
const parsedBody = parsedOutput.body;
|
|
3223
|
+
const $metadata = deserializeMetadata(output);
|
|
3224
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3166
3225
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
3167
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3226
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3168
3227
|
$fault: "client",
|
|
3169
|
-
$metadata
|
|
3228
|
+
$metadata,
|
|
3170
3229
|
});
|
|
3171
3230
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3172
3231
|
}
|
|
@@ -3191,8 +3250,7 @@ const deserializeAws_json1_1UpdateApplicationCommandError = async (output, conte
|
|
|
3191
3250
|
body: await parseBody(output.body, context),
|
|
3192
3251
|
};
|
|
3193
3252
|
let response;
|
|
3194
|
-
|
|
3195
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3253
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3196
3254
|
switch (errorCode) {
|
|
3197
3255
|
case "ConcurrentModificationException":
|
|
3198
3256
|
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
@@ -3205,10 +3263,12 @@ const deserializeAws_json1_1UpdateApplicationCommandError = async (output, conte
|
|
|
3205
3263
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3206
3264
|
default:
|
|
3207
3265
|
const parsedBody = parsedOutput.body;
|
|
3266
|
+
const $metadata = deserializeMetadata(output);
|
|
3267
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3208
3268
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
3209
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3269
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3210
3270
|
$fault: "client",
|
|
3211
|
-
$metadata
|
|
3271
|
+
$metadata,
|
|
3212
3272
|
});
|
|
3213
3273
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3214
3274
|
}
|
|
@@ -3233,8 +3293,7 @@ const deserializeAws_json1_1UpdateDirectoryConfigCommandError = async (output, c
|
|
|
3233
3293
|
body: await parseBody(output.body, context),
|
|
3234
3294
|
};
|
|
3235
3295
|
let response;
|
|
3236
|
-
|
|
3237
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3296
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3238
3297
|
switch (errorCode) {
|
|
3239
3298
|
case "ConcurrentModificationException":
|
|
3240
3299
|
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
@@ -3253,10 +3312,12 @@ const deserializeAws_json1_1UpdateDirectoryConfigCommandError = async (output, c
|
|
|
3253
3312
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3254
3313
|
default:
|
|
3255
3314
|
const parsedBody = parsedOutput.body;
|
|
3315
|
+
const $metadata = deserializeMetadata(output);
|
|
3316
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3256
3317
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
3257
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3318
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3258
3319
|
$fault: "client",
|
|
3259
|
-
$metadata
|
|
3320
|
+
$metadata,
|
|
3260
3321
|
});
|
|
3261
3322
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3262
3323
|
}
|
|
@@ -3281,8 +3342,7 @@ const deserializeAws_json1_1UpdateEntitlementCommandError = async (output, conte
|
|
|
3281
3342
|
body: await parseBody(output.body, context),
|
|
3282
3343
|
};
|
|
3283
3344
|
let response;
|
|
3284
|
-
|
|
3285
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3345
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3286
3346
|
switch (errorCode) {
|
|
3287
3347
|
case "ConcurrentModificationException":
|
|
3288
3348
|
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
@@ -3298,10 +3358,12 @@ const deserializeAws_json1_1UpdateEntitlementCommandError = async (output, conte
|
|
|
3298
3358
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3299
3359
|
default:
|
|
3300
3360
|
const parsedBody = parsedOutput.body;
|
|
3361
|
+
const $metadata = deserializeMetadata(output);
|
|
3362
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3301
3363
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
3302
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3364
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3303
3365
|
$fault: "client",
|
|
3304
|
-
$metadata
|
|
3366
|
+
$metadata,
|
|
3305
3367
|
});
|
|
3306
3368
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3307
3369
|
}
|
|
@@ -3326,8 +3388,7 @@ const deserializeAws_json1_1UpdateFleetCommandError = async (output, context) =>
|
|
|
3326
3388
|
body: await parseBody(output.body, context),
|
|
3327
3389
|
};
|
|
3328
3390
|
let response;
|
|
3329
|
-
|
|
3330
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3391
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3331
3392
|
switch (errorCode) {
|
|
3332
3393
|
case "ConcurrentModificationException":
|
|
3333
3394
|
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
@@ -3364,10 +3425,12 @@ const deserializeAws_json1_1UpdateFleetCommandError = async (output, context) =>
|
|
|
3364
3425
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3365
3426
|
default:
|
|
3366
3427
|
const parsedBody = parsedOutput.body;
|
|
3428
|
+
const $metadata = deserializeMetadata(output);
|
|
3429
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3367
3430
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
3368
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3431
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3369
3432
|
$fault: "client",
|
|
3370
|
-
$metadata
|
|
3433
|
+
$metadata,
|
|
3371
3434
|
});
|
|
3372
3435
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3373
3436
|
}
|
|
@@ -3392,8 +3455,7 @@ const deserializeAws_json1_1UpdateImagePermissionsCommandError = async (output,
|
|
|
3392
3455
|
body: await parseBody(output.body, context),
|
|
3393
3456
|
};
|
|
3394
3457
|
let response;
|
|
3395
|
-
|
|
3396
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3458
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3397
3459
|
switch (errorCode) {
|
|
3398
3460
|
case "LimitExceededException":
|
|
3399
3461
|
case "com.amazonaws.appstream#LimitExceededException":
|
|
@@ -3406,10 +3468,12 @@ const deserializeAws_json1_1UpdateImagePermissionsCommandError = async (output,
|
|
|
3406
3468
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3407
3469
|
default:
|
|
3408
3470
|
const parsedBody = parsedOutput.body;
|
|
3471
|
+
const $metadata = deserializeMetadata(output);
|
|
3472
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3409
3473
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
3410
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3474
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3411
3475
|
$fault: "client",
|
|
3412
|
-
$metadata
|
|
3476
|
+
$metadata,
|
|
3413
3477
|
});
|
|
3414
3478
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3415
3479
|
}
|
|
@@ -3434,8 +3498,7 @@ const deserializeAws_json1_1UpdateStackCommandError = async (output, context) =>
|
|
|
3434
3498
|
body: await parseBody(output.body, context),
|
|
3435
3499
|
};
|
|
3436
3500
|
let response;
|
|
3437
|
-
|
|
3438
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3501
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3439
3502
|
switch (errorCode) {
|
|
3440
3503
|
case "ConcurrentModificationException":
|
|
3441
3504
|
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
@@ -3466,10 +3529,12 @@ const deserializeAws_json1_1UpdateStackCommandError = async (output, context) =>
|
|
|
3466
3529
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3467
3530
|
default:
|
|
3468
3531
|
const parsedBody = parsedOutput.body;
|
|
3532
|
+
const $metadata = deserializeMetadata(output);
|
|
3533
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3469
3534
|
response = new AppStreamServiceException_1.AppStreamServiceException({
|
|
3470
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3535
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3471
3536
|
$fault: "client",
|
|
3472
|
-
$metadata
|
|
3537
|
+
$metadata,
|
|
3473
3538
|
});
|
|
3474
3539
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3475
3540
|
}
|
|
@@ -3602,8 +3667,8 @@ const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOut
|
|
|
3602
3667
|
};
|
|
3603
3668
|
const serializeAws_json1_1AccessEndpoint = (input, context) => {
|
|
3604
3669
|
return {
|
|
3605
|
-
...(input.EndpointType
|
|
3606
|
-
...(input.VpceId
|
|
3670
|
+
...(input.EndpointType != null && { EndpointType: input.EndpointType }),
|
|
3671
|
+
...(input.VpceId != null && { VpceId: input.VpceId }),
|
|
3607
3672
|
};
|
|
3608
3673
|
};
|
|
3609
3674
|
const serializeAws_json1_1AccessEndpointList = (input, context) => {
|
|
@@ -3628,8 +3693,8 @@ const serializeAws_json1_1ApplicationAttributes = (input, context) => {
|
|
|
3628
3693
|
};
|
|
3629
3694
|
const serializeAws_json1_1ApplicationSettings = (input, context) => {
|
|
3630
3695
|
return {
|
|
3631
|
-
...(input.Enabled
|
|
3632
|
-
...(input.SettingsGroup
|
|
3696
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
3697
|
+
...(input.SettingsGroup != null && { SettingsGroup: input.SettingsGroup }),
|
|
3633
3698
|
};
|
|
3634
3699
|
};
|
|
3635
3700
|
const serializeAws_json1_1ArnList = (input, context) => {
|
|
@@ -3644,24 +3709,21 @@ const serializeAws_json1_1ArnList = (input, context) => {
|
|
|
3644
3709
|
};
|
|
3645
3710
|
const serializeAws_json1_1AssociateApplicationFleetRequest = (input, context) => {
|
|
3646
3711
|
return {
|
|
3647
|
-
...(input.ApplicationArn
|
|
3648
|
-
|
|
3649
|
-
...(input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName }),
|
|
3712
|
+
...(input.ApplicationArn != null && { ApplicationArn: input.ApplicationArn }),
|
|
3713
|
+
...(input.FleetName != null && { FleetName: input.FleetName }),
|
|
3650
3714
|
};
|
|
3651
3715
|
};
|
|
3652
3716
|
const serializeAws_json1_1AssociateApplicationToEntitlementRequest = (input, context) => {
|
|
3653
3717
|
return {
|
|
3654
|
-
...(input.ApplicationIdentifier
|
|
3655
|
-
|
|
3656
|
-
...(input.
|
|
3657
|
-
input.EntitlementName !== null && { EntitlementName: input.EntitlementName }),
|
|
3658
|
-
...(input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }),
|
|
3718
|
+
...(input.ApplicationIdentifier != null && { ApplicationIdentifier: input.ApplicationIdentifier }),
|
|
3719
|
+
...(input.EntitlementName != null && { EntitlementName: input.EntitlementName }),
|
|
3720
|
+
...(input.StackName != null && { StackName: input.StackName }),
|
|
3659
3721
|
};
|
|
3660
3722
|
};
|
|
3661
3723
|
const serializeAws_json1_1AssociateFleetRequest = (input, context) => {
|
|
3662
3724
|
return {
|
|
3663
|
-
...(input.FleetName
|
|
3664
|
-
...(input.StackName
|
|
3725
|
+
...(input.FleetName != null && { FleetName: input.FleetName }),
|
|
3726
|
+
...(input.StackName != null && { StackName: input.StackName }),
|
|
3665
3727
|
};
|
|
3666
3728
|
};
|
|
3667
3729
|
const serializeAws_json1_1AwsAccountIdList = (input, context) => {
|
|
@@ -3676,237 +3738,200 @@ const serializeAws_json1_1AwsAccountIdList = (input, context) => {
|
|
|
3676
3738
|
};
|
|
3677
3739
|
const serializeAws_json1_1BatchAssociateUserStackRequest = (input, context) => {
|
|
3678
3740
|
return {
|
|
3679
|
-
...(input.UserStackAssociations
|
|
3680
|
-
input.UserStackAssociations !== null && {
|
|
3741
|
+
...(input.UserStackAssociations != null && {
|
|
3681
3742
|
UserStackAssociations: serializeAws_json1_1UserStackAssociationList(input.UserStackAssociations, context),
|
|
3682
3743
|
}),
|
|
3683
3744
|
};
|
|
3684
3745
|
};
|
|
3685
3746
|
const serializeAws_json1_1BatchDisassociateUserStackRequest = (input, context) => {
|
|
3686
3747
|
return {
|
|
3687
|
-
...(input.UserStackAssociations
|
|
3688
|
-
input.UserStackAssociations !== null && {
|
|
3748
|
+
...(input.UserStackAssociations != null && {
|
|
3689
3749
|
UserStackAssociations: serializeAws_json1_1UserStackAssociationList(input.UserStackAssociations, context),
|
|
3690
3750
|
}),
|
|
3691
3751
|
};
|
|
3692
3752
|
};
|
|
3693
3753
|
const serializeAws_json1_1ComputeCapacity = (input, context) => {
|
|
3694
3754
|
return {
|
|
3695
|
-
...(input.DesiredInstances
|
|
3696
|
-
input.DesiredInstances !== null && { DesiredInstances: input.DesiredInstances }),
|
|
3755
|
+
...(input.DesiredInstances != null && { DesiredInstances: input.DesiredInstances }),
|
|
3697
3756
|
};
|
|
3698
3757
|
};
|
|
3699
3758
|
const serializeAws_json1_1CopyImageRequest = (input, context) => {
|
|
3700
3759
|
return {
|
|
3701
|
-
...(input.DestinationImageDescription
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
...(input.DestinationRegion
|
|
3706
|
-
|
|
3707
|
-
...(input.SourceImageName !== undefined &&
|
|
3708
|
-
input.SourceImageName !== null && { SourceImageName: input.SourceImageName }),
|
|
3760
|
+
...(input.DestinationImageDescription != null && {
|
|
3761
|
+
DestinationImageDescription: input.DestinationImageDescription,
|
|
3762
|
+
}),
|
|
3763
|
+
...(input.DestinationImageName != null && { DestinationImageName: input.DestinationImageName }),
|
|
3764
|
+
...(input.DestinationRegion != null && { DestinationRegion: input.DestinationRegion }),
|
|
3765
|
+
...(input.SourceImageName != null && { SourceImageName: input.SourceImageName }),
|
|
3709
3766
|
};
|
|
3710
3767
|
};
|
|
3711
3768
|
const serializeAws_json1_1CreateAppBlockRequest = (input, context) => {
|
|
3712
3769
|
return {
|
|
3713
|
-
...(input.Description
|
|
3714
|
-
...(input.DisplayName
|
|
3715
|
-
...(input.Name
|
|
3716
|
-
...(input.SetupScriptDetails
|
|
3717
|
-
input.SetupScriptDetails !== null && {
|
|
3770
|
+
...(input.Description != null && { Description: input.Description }),
|
|
3771
|
+
...(input.DisplayName != null && { DisplayName: input.DisplayName }),
|
|
3772
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3773
|
+
...(input.SetupScriptDetails != null && {
|
|
3718
3774
|
SetupScriptDetails: serializeAws_json1_1ScriptDetails(input.SetupScriptDetails, context),
|
|
3719
3775
|
}),
|
|
3720
|
-
...(input.SourceS3Location
|
|
3721
|
-
input.SourceS3Location !== null && {
|
|
3776
|
+
...(input.SourceS3Location != null && {
|
|
3722
3777
|
SourceS3Location: serializeAws_json1_1S3Location(input.SourceS3Location, context),
|
|
3723
3778
|
}),
|
|
3724
|
-
...(input.Tags
|
|
3779
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
3725
3780
|
};
|
|
3726
3781
|
};
|
|
3727
3782
|
const serializeAws_json1_1CreateApplicationRequest = (input, context) => {
|
|
3728
3783
|
return {
|
|
3729
|
-
...(input.AppBlockArn
|
|
3730
|
-
...(input.Description
|
|
3731
|
-
...(input.DisplayName
|
|
3732
|
-
...(input.IconS3Location
|
|
3733
|
-
input.IconS3Location !== null && {
|
|
3784
|
+
...(input.AppBlockArn != null && { AppBlockArn: input.AppBlockArn }),
|
|
3785
|
+
...(input.Description != null && { Description: input.Description }),
|
|
3786
|
+
...(input.DisplayName != null && { DisplayName: input.DisplayName }),
|
|
3787
|
+
...(input.IconS3Location != null && {
|
|
3734
3788
|
IconS3Location: serializeAws_json1_1S3Location(input.IconS3Location, context),
|
|
3735
3789
|
}),
|
|
3736
|
-
...(input.InstanceFamilies
|
|
3737
|
-
input.InstanceFamilies !== null && {
|
|
3790
|
+
...(input.InstanceFamilies != null && {
|
|
3738
3791
|
InstanceFamilies: serializeAws_json1_1StringList(input.InstanceFamilies, context),
|
|
3739
3792
|
}),
|
|
3740
|
-
...(input.LaunchParameters
|
|
3741
|
-
|
|
3742
|
-
...(input.
|
|
3743
|
-
...(input.
|
|
3744
|
-
...(input.
|
|
3745
|
-
|
|
3746
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
3747
|
-
...(input.WorkingDirectory !== undefined &&
|
|
3748
|
-
input.WorkingDirectory !== null && { WorkingDirectory: input.WorkingDirectory }),
|
|
3793
|
+
...(input.LaunchParameters != null && { LaunchParameters: input.LaunchParameters }),
|
|
3794
|
+
...(input.LaunchPath != null && { LaunchPath: input.LaunchPath }),
|
|
3795
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3796
|
+
...(input.Platforms != null && { Platforms: serializeAws_json1_1Platforms(input.Platforms, context) }),
|
|
3797
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
3798
|
+
...(input.WorkingDirectory != null && { WorkingDirectory: input.WorkingDirectory }),
|
|
3749
3799
|
};
|
|
3750
3800
|
};
|
|
3751
3801
|
const serializeAws_json1_1CreateDirectoryConfigRequest = (input, context) => {
|
|
3752
3802
|
return {
|
|
3753
|
-
...(input.DirectoryName
|
|
3754
|
-
...(input.OrganizationalUnitDistinguishedNames
|
|
3755
|
-
input.OrganizationalUnitDistinguishedNames !== null && {
|
|
3803
|
+
...(input.DirectoryName != null && { DirectoryName: input.DirectoryName }),
|
|
3804
|
+
...(input.OrganizationalUnitDistinguishedNames != null && {
|
|
3756
3805
|
OrganizationalUnitDistinguishedNames: serializeAws_json1_1OrganizationalUnitDistinguishedNamesList(input.OrganizationalUnitDistinguishedNames, context),
|
|
3757
3806
|
}),
|
|
3758
|
-
...(input.ServiceAccountCredentials
|
|
3759
|
-
input.ServiceAccountCredentials !== null && {
|
|
3807
|
+
...(input.ServiceAccountCredentials != null && {
|
|
3760
3808
|
ServiceAccountCredentials: serializeAws_json1_1ServiceAccountCredentials(input.ServiceAccountCredentials, context),
|
|
3761
3809
|
}),
|
|
3762
3810
|
};
|
|
3763
3811
|
};
|
|
3764
3812
|
const serializeAws_json1_1CreateEntitlementRequest = (input, context) => {
|
|
3765
3813
|
return {
|
|
3766
|
-
...(input.AppVisibility
|
|
3767
|
-
...(input.Attributes
|
|
3768
|
-
input.Attributes !== null && {
|
|
3814
|
+
...(input.AppVisibility != null && { AppVisibility: input.AppVisibility }),
|
|
3815
|
+
...(input.Attributes != null && {
|
|
3769
3816
|
Attributes: serializeAws_json1_1EntitlementAttributeList(input.Attributes, context),
|
|
3770
3817
|
}),
|
|
3771
|
-
...(input.Description
|
|
3772
|
-
...(input.Name
|
|
3773
|
-
...(input.StackName
|
|
3818
|
+
...(input.Description != null && { Description: input.Description }),
|
|
3819
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3820
|
+
...(input.StackName != null && { StackName: input.StackName }),
|
|
3774
3821
|
};
|
|
3775
3822
|
};
|
|
3776
3823
|
const serializeAws_json1_1CreateFleetRequest = (input, context) => {
|
|
3777
3824
|
return {
|
|
3778
|
-
...(input.ComputeCapacity
|
|
3779
|
-
input.ComputeCapacity !== null && {
|
|
3825
|
+
...(input.ComputeCapacity != null && {
|
|
3780
3826
|
ComputeCapacity: serializeAws_json1_1ComputeCapacity(input.ComputeCapacity, context),
|
|
3781
3827
|
}),
|
|
3782
|
-
...(input.Description
|
|
3783
|
-
...(input.DisconnectTimeoutInSeconds
|
|
3784
|
-
|
|
3785
|
-
...(input.
|
|
3786
|
-
...(input.DomainJoinInfo !== undefined &&
|
|
3787
|
-
input.DomainJoinInfo !== null && {
|
|
3828
|
+
...(input.Description != null && { Description: input.Description }),
|
|
3829
|
+
...(input.DisconnectTimeoutInSeconds != null && { DisconnectTimeoutInSeconds: input.DisconnectTimeoutInSeconds }),
|
|
3830
|
+
...(input.DisplayName != null && { DisplayName: input.DisplayName }),
|
|
3831
|
+
...(input.DomainJoinInfo != null && {
|
|
3788
3832
|
DomainJoinInfo: serializeAws_json1_1DomainJoinInfo(input.DomainJoinInfo, context),
|
|
3789
3833
|
}),
|
|
3790
|
-
...(input.EnableDefaultInternetAccess
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
...(input.
|
|
3794
|
-
...(input.
|
|
3795
|
-
|
|
3834
|
+
...(input.EnableDefaultInternetAccess != null && {
|
|
3835
|
+
EnableDefaultInternetAccess: input.EnableDefaultInternetAccess,
|
|
3836
|
+
}),
|
|
3837
|
+
...(input.FleetType != null && { FleetType: input.FleetType }),
|
|
3838
|
+
...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
|
|
3839
|
+
...(input.IdleDisconnectTimeoutInSeconds != null && {
|
|
3796
3840
|
IdleDisconnectTimeoutInSeconds: input.IdleDisconnectTimeoutInSeconds,
|
|
3797
3841
|
}),
|
|
3798
|
-
...(input.ImageArn
|
|
3799
|
-
...(input.ImageName
|
|
3800
|
-
...(input.InstanceType
|
|
3801
|
-
...(input.MaxConcurrentSessions
|
|
3802
|
-
|
|
3803
|
-
...(input.
|
|
3804
|
-
|
|
3805
|
-
...(input.
|
|
3806
|
-
...(input.Platform !== undefined && input.Platform !== null && { Platform: input.Platform }),
|
|
3807
|
-
...(input.SessionScriptS3Location !== undefined &&
|
|
3808
|
-
input.SessionScriptS3Location !== null && {
|
|
3842
|
+
...(input.ImageArn != null && { ImageArn: input.ImageArn }),
|
|
3843
|
+
...(input.ImageName != null && { ImageName: input.ImageName }),
|
|
3844
|
+
...(input.InstanceType != null && { InstanceType: input.InstanceType }),
|
|
3845
|
+
...(input.MaxConcurrentSessions != null && { MaxConcurrentSessions: input.MaxConcurrentSessions }),
|
|
3846
|
+
...(input.MaxUserDurationInSeconds != null && { MaxUserDurationInSeconds: input.MaxUserDurationInSeconds }),
|
|
3847
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3848
|
+
...(input.Platform != null && { Platform: input.Platform }),
|
|
3849
|
+
...(input.SessionScriptS3Location != null && {
|
|
3809
3850
|
SessionScriptS3Location: serializeAws_json1_1S3Location(input.SessionScriptS3Location, context),
|
|
3810
3851
|
}),
|
|
3811
|
-
...(input.StreamView
|
|
3812
|
-
...(input.Tags
|
|
3813
|
-
...(input.UsbDeviceFilterStrings
|
|
3814
|
-
input.UsbDeviceFilterStrings !== null && {
|
|
3852
|
+
...(input.StreamView != null && { StreamView: input.StreamView }),
|
|
3853
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
3854
|
+
...(input.UsbDeviceFilterStrings != null && {
|
|
3815
3855
|
UsbDeviceFilterStrings: serializeAws_json1_1UsbDeviceFilterStrings(input.UsbDeviceFilterStrings, context),
|
|
3816
3856
|
}),
|
|
3817
|
-
...(input.VpcConfig
|
|
3818
|
-
input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
|
|
3857
|
+
...(input.VpcConfig != null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
|
|
3819
3858
|
};
|
|
3820
3859
|
};
|
|
3821
3860
|
const serializeAws_json1_1CreateImageBuilderRequest = (input, context) => {
|
|
3822
3861
|
return {
|
|
3823
|
-
...(input.AccessEndpoints
|
|
3824
|
-
input.AccessEndpoints !== null && {
|
|
3862
|
+
...(input.AccessEndpoints != null && {
|
|
3825
3863
|
AccessEndpoints: serializeAws_json1_1AccessEndpointList(input.AccessEndpoints, context),
|
|
3826
3864
|
}),
|
|
3827
|
-
...(input.AppstreamAgentVersion
|
|
3828
|
-
|
|
3829
|
-
...(input.
|
|
3830
|
-
...(input.
|
|
3831
|
-
...(input.DomainJoinInfo !== undefined &&
|
|
3832
|
-
input.DomainJoinInfo !== null && {
|
|
3865
|
+
...(input.AppstreamAgentVersion != null && { AppstreamAgentVersion: input.AppstreamAgentVersion }),
|
|
3866
|
+
...(input.Description != null && { Description: input.Description }),
|
|
3867
|
+
...(input.DisplayName != null && { DisplayName: input.DisplayName }),
|
|
3868
|
+
...(input.DomainJoinInfo != null && {
|
|
3833
3869
|
DomainJoinInfo: serializeAws_json1_1DomainJoinInfo(input.DomainJoinInfo, context),
|
|
3834
3870
|
}),
|
|
3835
|
-
...(input.EnableDefaultInternetAccess
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
...(input.
|
|
3839
|
-
...(input.
|
|
3840
|
-
...(input.
|
|
3841
|
-
...(input.
|
|
3842
|
-
...(input.
|
|
3843
|
-
...(input.
|
|
3844
|
-
|
|
3871
|
+
...(input.EnableDefaultInternetAccess != null && {
|
|
3872
|
+
EnableDefaultInternetAccess: input.EnableDefaultInternetAccess,
|
|
3873
|
+
}),
|
|
3874
|
+
...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
|
|
3875
|
+
...(input.ImageArn != null && { ImageArn: input.ImageArn }),
|
|
3876
|
+
...(input.ImageName != null && { ImageName: input.ImageName }),
|
|
3877
|
+
...(input.InstanceType != null && { InstanceType: input.InstanceType }),
|
|
3878
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3879
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
3880
|
+
...(input.VpcConfig != null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
|
|
3845
3881
|
};
|
|
3846
3882
|
};
|
|
3847
3883
|
const serializeAws_json1_1CreateImageBuilderStreamingURLRequest = (input, context) => {
|
|
3848
3884
|
return {
|
|
3849
|
-
...(input.Name
|
|
3850
|
-
...(input.Validity
|
|
3885
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3886
|
+
...(input.Validity != null && { Validity: input.Validity }),
|
|
3851
3887
|
};
|
|
3852
3888
|
};
|
|
3853
3889
|
const serializeAws_json1_1CreateStackRequest = (input, context) => {
|
|
3854
3890
|
return {
|
|
3855
|
-
...(input.AccessEndpoints
|
|
3856
|
-
input.AccessEndpoints !== null && {
|
|
3891
|
+
...(input.AccessEndpoints != null && {
|
|
3857
3892
|
AccessEndpoints: serializeAws_json1_1AccessEndpointList(input.AccessEndpoints, context),
|
|
3858
3893
|
}),
|
|
3859
|
-
...(input.ApplicationSettings
|
|
3860
|
-
input.ApplicationSettings !== null && {
|
|
3894
|
+
...(input.ApplicationSettings != null && {
|
|
3861
3895
|
ApplicationSettings: serializeAws_json1_1ApplicationSettings(input.ApplicationSettings, context),
|
|
3862
3896
|
}),
|
|
3863
|
-
...(input.Description
|
|
3864
|
-
...(input.DisplayName
|
|
3865
|
-
...(input.EmbedHostDomains
|
|
3866
|
-
input.EmbedHostDomains !== null && {
|
|
3897
|
+
...(input.Description != null && { Description: input.Description }),
|
|
3898
|
+
...(input.DisplayName != null && { DisplayName: input.DisplayName }),
|
|
3899
|
+
...(input.EmbedHostDomains != null && {
|
|
3867
3900
|
EmbedHostDomains: serializeAws_json1_1EmbedHostDomains(input.EmbedHostDomains, context),
|
|
3868
3901
|
}),
|
|
3869
|
-
...(input.FeedbackURL
|
|
3870
|
-
...(input.Name
|
|
3871
|
-
...(input.RedirectURL
|
|
3872
|
-
...(input.StorageConnectors
|
|
3873
|
-
input.StorageConnectors !== null && {
|
|
3902
|
+
...(input.FeedbackURL != null && { FeedbackURL: input.FeedbackURL }),
|
|
3903
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3904
|
+
...(input.RedirectURL != null && { RedirectURL: input.RedirectURL }),
|
|
3905
|
+
...(input.StorageConnectors != null && {
|
|
3874
3906
|
StorageConnectors: serializeAws_json1_1StorageConnectorList(input.StorageConnectors, context),
|
|
3875
3907
|
}),
|
|
3876
|
-
...(input.StreamingExperienceSettings
|
|
3877
|
-
input.StreamingExperienceSettings !== null && {
|
|
3908
|
+
...(input.StreamingExperienceSettings != null && {
|
|
3878
3909
|
StreamingExperienceSettings: serializeAws_json1_1StreamingExperienceSettings(input.StreamingExperienceSettings, context),
|
|
3879
3910
|
}),
|
|
3880
|
-
...(input.Tags
|
|
3881
|
-
...(input.UserSettings
|
|
3882
|
-
input.UserSettings !== null && {
|
|
3911
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
3912
|
+
...(input.UserSettings != null && {
|
|
3883
3913
|
UserSettings: serializeAws_json1_1UserSettingList(input.UserSettings, context),
|
|
3884
3914
|
}),
|
|
3885
3915
|
};
|
|
3886
3916
|
};
|
|
3887
3917
|
const serializeAws_json1_1CreateStreamingURLRequest = (input, context) => {
|
|
3888
3918
|
return {
|
|
3889
|
-
...(input.ApplicationId
|
|
3890
|
-
...(input.FleetName
|
|
3891
|
-
...(input.SessionContext
|
|
3892
|
-
|
|
3893
|
-
...(input.
|
|
3894
|
-
...(input.
|
|
3895
|
-
...(input.Validity !== undefined && input.Validity !== null && { Validity: input.Validity }),
|
|
3919
|
+
...(input.ApplicationId != null && { ApplicationId: input.ApplicationId }),
|
|
3920
|
+
...(input.FleetName != null && { FleetName: input.FleetName }),
|
|
3921
|
+
...(input.SessionContext != null && { SessionContext: input.SessionContext }),
|
|
3922
|
+
...(input.StackName != null && { StackName: input.StackName }),
|
|
3923
|
+
...(input.UserId != null && { UserId: input.UserId }),
|
|
3924
|
+
...(input.Validity != null && { Validity: input.Validity }),
|
|
3896
3925
|
};
|
|
3897
3926
|
};
|
|
3898
3927
|
const serializeAws_json1_1CreateUpdatedImageRequest = (input, context) => {
|
|
3899
3928
|
return {
|
|
3900
|
-
...(input.dryRun
|
|
3901
|
-
...(input.existingImageName
|
|
3902
|
-
|
|
3903
|
-
...(input.
|
|
3904
|
-
|
|
3905
|
-
...(input.
|
|
3906
|
-
input.newImageDisplayName !== null && { newImageDisplayName: input.newImageDisplayName }),
|
|
3907
|
-
...(input.newImageName !== undefined && input.newImageName !== null && { newImageName: input.newImageName }),
|
|
3908
|
-
...(input.newImageTags !== undefined &&
|
|
3909
|
-
input.newImageTags !== null && { newImageTags: serializeAws_json1_1Tags(input.newImageTags, context) }),
|
|
3929
|
+
...(input.dryRun != null && { dryRun: input.dryRun }),
|
|
3930
|
+
...(input.existingImageName != null && { existingImageName: input.existingImageName }),
|
|
3931
|
+
...(input.newImageDescription != null && { newImageDescription: input.newImageDescription }),
|
|
3932
|
+
...(input.newImageDisplayName != null && { newImageDisplayName: input.newImageDisplayName }),
|
|
3933
|
+
...(input.newImageName != null && { newImageName: input.newImageName }),
|
|
3934
|
+
...(input.newImageTags != null && { newImageTags: serializeAws_json1_1Tags(input.newImageTags, context) }),
|
|
3910
3935
|
};
|
|
3911
3936
|
};
|
|
3912
3937
|
const serializeAws_json1_1CreateUsageReportSubscriptionRequest = (input, context) => {
|
|
@@ -3914,60 +3939,58 @@ const serializeAws_json1_1CreateUsageReportSubscriptionRequest = (input, context
|
|
|
3914
3939
|
};
|
|
3915
3940
|
const serializeAws_json1_1CreateUserRequest = (input, context) => {
|
|
3916
3941
|
return {
|
|
3917
|
-
...(input.AuthenticationType
|
|
3918
|
-
|
|
3919
|
-
...(input.
|
|
3920
|
-
...(input.
|
|
3921
|
-
...(input.
|
|
3922
|
-
...(input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }),
|
|
3942
|
+
...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
|
|
3943
|
+
...(input.FirstName != null && { FirstName: input.FirstName }),
|
|
3944
|
+
...(input.LastName != null && { LastName: input.LastName }),
|
|
3945
|
+
...(input.MessageAction != null && { MessageAction: input.MessageAction }),
|
|
3946
|
+
...(input.UserName != null && { UserName: input.UserName }),
|
|
3923
3947
|
};
|
|
3924
3948
|
};
|
|
3925
3949
|
const serializeAws_json1_1DeleteAppBlockRequest = (input, context) => {
|
|
3926
3950
|
return {
|
|
3927
|
-
...(input.Name
|
|
3951
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3928
3952
|
};
|
|
3929
3953
|
};
|
|
3930
3954
|
const serializeAws_json1_1DeleteApplicationRequest = (input, context) => {
|
|
3931
3955
|
return {
|
|
3932
|
-
...(input.Name
|
|
3956
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3933
3957
|
};
|
|
3934
3958
|
};
|
|
3935
3959
|
const serializeAws_json1_1DeleteDirectoryConfigRequest = (input, context) => {
|
|
3936
3960
|
return {
|
|
3937
|
-
...(input.DirectoryName
|
|
3961
|
+
...(input.DirectoryName != null && { DirectoryName: input.DirectoryName }),
|
|
3938
3962
|
};
|
|
3939
3963
|
};
|
|
3940
3964
|
const serializeAws_json1_1DeleteEntitlementRequest = (input, context) => {
|
|
3941
3965
|
return {
|
|
3942
|
-
...(input.Name
|
|
3943
|
-
...(input.StackName
|
|
3966
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3967
|
+
...(input.StackName != null && { StackName: input.StackName }),
|
|
3944
3968
|
};
|
|
3945
3969
|
};
|
|
3946
3970
|
const serializeAws_json1_1DeleteFleetRequest = (input, context) => {
|
|
3947
3971
|
return {
|
|
3948
|
-
...(input.Name
|
|
3972
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3949
3973
|
};
|
|
3950
3974
|
};
|
|
3951
3975
|
const serializeAws_json1_1DeleteImageBuilderRequest = (input, context) => {
|
|
3952
3976
|
return {
|
|
3953
|
-
...(input.Name
|
|
3977
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3954
3978
|
};
|
|
3955
3979
|
};
|
|
3956
3980
|
const serializeAws_json1_1DeleteImagePermissionsRequest = (input, context) => {
|
|
3957
3981
|
return {
|
|
3958
|
-
...(input.Name
|
|
3959
|
-
...(input.SharedAccountId
|
|
3960
|
-
input.SharedAccountId !== null && { SharedAccountId: input.SharedAccountId }),
|
|
3982
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3983
|
+
...(input.SharedAccountId != null && { SharedAccountId: input.SharedAccountId }),
|
|
3961
3984
|
};
|
|
3962
3985
|
};
|
|
3963
3986
|
const serializeAws_json1_1DeleteImageRequest = (input, context) => {
|
|
3964
3987
|
return {
|
|
3965
|
-
...(input.Name
|
|
3988
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3966
3989
|
};
|
|
3967
3990
|
};
|
|
3968
3991
|
const serializeAws_json1_1DeleteStackRequest = (input, context) => {
|
|
3969
3992
|
return {
|
|
3970
|
-
...(input.Name
|
|
3993
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3971
3994
|
};
|
|
3972
3995
|
};
|
|
3973
3996
|
const serializeAws_json1_1DeleteUsageReportSubscriptionRequest = (input, context) => {
|
|
@@ -3975,128 +3998,117 @@ const serializeAws_json1_1DeleteUsageReportSubscriptionRequest = (input, context
|
|
|
3975
3998
|
};
|
|
3976
3999
|
const serializeAws_json1_1DeleteUserRequest = (input, context) => {
|
|
3977
4000
|
return {
|
|
3978
|
-
...(input.AuthenticationType
|
|
3979
|
-
|
|
3980
|
-
...(input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }),
|
|
4001
|
+
...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
|
|
4002
|
+
...(input.UserName != null && { UserName: input.UserName }),
|
|
3981
4003
|
};
|
|
3982
4004
|
};
|
|
3983
4005
|
const serializeAws_json1_1DescribeAppBlocksRequest = (input, context) => {
|
|
3984
4006
|
return {
|
|
3985
|
-
...(input.Arns
|
|
3986
|
-
...(input.MaxResults
|
|
3987
|
-
...(input.NextToken
|
|
4007
|
+
...(input.Arns != null && { Arns: serializeAws_json1_1ArnList(input.Arns, context) }),
|
|
4008
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4009
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3988
4010
|
};
|
|
3989
4011
|
};
|
|
3990
4012
|
const serializeAws_json1_1DescribeApplicationFleetAssociationsRequest = (input, context) => {
|
|
3991
4013
|
return {
|
|
3992
|
-
...(input.ApplicationArn
|
|
3993
|
-
|
|
3994
|
-
...(input.
|
|
3995
|
-
...(input.
|
|
3996
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
4014
|
+
...(input.ApplicationArn != null && { ApplicationArn: input.ApplicationArn }),
|
|
4015
|
+
...(input.FleetName != null && { FleetName: input.FleetName }),
|
|
4016
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4017
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3997
4018
|
};
|
|
3998
4019
|
};
|
|
3999
4020
|
const serializeAws_json1_1DescribeApplicationsRequest = (input, context) => {
|
|
4000
4021
|
return {
|
|
4001
|
-
...(input.Arns
|
|
4002
|
-
...(input.MaxResults
|
|
4003
|
-
...(input.NextToken
|
|
4022
|
+
...(input.Arns != null && { Arns: serializeAws_json1_1ArnList(input.Arns, context) }),
|
|
4023
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4024
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4004
4025
|
};
|
|
4005
4026
|
};
|
|
4006
4027
|
const serializeAws_json1_1DescribeDirectoryConfigsRequest = (input, context) => {
|
|
4007
4028
|
return {
|
|
4008
|
-
...(input.DirectoryNames
|
|
4009
|
-
input.DirectoryNames !== null && {
|
|
4029
|
+
...(input.DirectoryNames != null && {
|
|
4010
4030
|
DirectoryNames: serializeAws_json1_1DirectoryNameList(input.DirectoryNames, context),
|
|
4011
4031
|
}),
|
|
4012
|
-
...(input.MaxResults
|
|
4013
|
-
...(input.NextToken
|
|
4032
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4033
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4014
4034
|
};
|
|
4015
4035
|
};
|
|
4016
4036
|
const serializeAws_json1_1DescribeEntitlementsRequest = (input, context) => {
|
|
4017
4037
|
return {
|
|
4018
|
-
...(input.MaxResults
|
|
4019
|
-
...(input.Name
|
|
4020
|
-
...(input.NextToken
|
|
4021
|
-
...(input.StackName
|
|
4038
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4039
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4040
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4041
|
+
...(input.StackName != null && { StackName: input.StackName }),
|
|
4022
4042
|
};
|
|
4023
4043
|
};
|
|
4024
4044
|
const serializeAws_json1_1DescribeFleetsRequest = (input, context) => {
|
|
4025
4045
|
return {
|
|
4026
|
-
...(input.Names
|
|
4027
|
-
|
|
4028
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
4046
|
+
...(input.Names != null && { Names: serializeAws_json1_1StringList(input.Names, context) }),
|
|
4047
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4029
4048
|
};
|
|
4030
4049
|
};
|
|
4031
4050
|
const serializeAws_json1_1DescribeImageBuildersRequest = (input, context) => {
|
|
4032
4051
|
return {
|
|
4033
|
-
...(input.MaxResults
|
|
4034
|
-
...(input.Names
|
|
4035
|
-
|
|
4036
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
4052
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4053
|
+
...(input.Names != null && { Names: serializeAws_json1_1StringList(input.Names, context) }),
|
|
4054
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4037
4055
|
};
|
|
4038
4056
|
};
|
|
4039
4057
|
const serializeAws_json1_1DescribeImagePermissionsRequest = (input, context) => {
|
|
4040
4058
|
return {
|
|
4041
|
-
...(input.MaxResults
|
|
4042
|
-
...(input.Name
|
|
4043
|
-
...(input.NextToken
|
|
4044
|
-
...(input.SharedAwsAccountIds
|
|
4045
|
-
input.SharedAwsAccountIds !== null && {
|
|
4059
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4060
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4061
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4062
|
+
...(input.SharedAwsAccountIds != null && {
|
|
4046
4063
|
SharedAwsAccountIds: serializeAws_json1_1AwsAccountIdList(input.SharedAwsAccountIds, context),
|
|
4047
4064
|
}),
|
|
4048
4065
|
};
|
|
4049
4066
|
};
|
|
4050
4067
|
const serializeAws_json1_1DescribeImagesRequest = (input, context) => {
|
|
4051
4068
|
return {
|
|
4052
|
-
...(input.Arns
|
|
4053
|
-
...(input.MaxResults
|
|
4054
|
-
...(input.Names
|
|
4055
|
-
|
|
4056
|
-
...(input.
|
|
4057
|
-
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
4069
|
+
...(input.Arns != null && { Arns: serializeAws_json1_1ArnList(input.Arns, context) }),
|
|
4070
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4071
|
+
...(input.Names != null && { Names: serializeAws_json1_1StringList(input.Names, context) }),
|
|
4072
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4073
|
+
...(input.Type != null && { Type: input.Type }),
|
|
4058
4074
|
};
|
|
4059
4075
|
};
|
|
4060
4076
|
const serializeAws_json1_1DescribeSessionsRequest = (input, context) => {
|
|
4061
4077
|
return {
|
|
4062
|
-
...(input.AuthenticationType
|
|
4063
|
-
|
|
4064
|
-
...(input.
|
|
4065
|
-
...(input.
|
|
4066
|
-
...(input.
|
|
4067
|
-
...(input.
|
|
4068
|
-
...(input.UserId !== undefined && input.UserId !== null && { UserId: input.UserId }),
|
|
4078
|
+
...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
|
|
4079
|
+
...(input.FleetName != null && { FleetName: input.FleetName }),
|
|
4080
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
4081
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4082
|
+
...(input.StackName != null && { StackName: input.StackName }),
|
|
4083
|
+
...(input.UserId != null && { UserId: input.UserId }),
|
|
4069
4084
|
};
|
|
4070
4085
|
};
|
|
4071
4086
|
const serializeAws_json1_1DescribeStacksRequest = (input, context) => {
|
|
4072
4087
|
return {
|
|
4073
|
-
...(input.Names
|
|
4074
|
-
|
|
4075
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
4088
|
+
...(input.Names != null && { Names: serializeAws_json1_1StringList(input.Names, context) }),
|
|
4089
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4076
4090
|
};
|
|
4077
4091
|
};
|
|
4078
4092
|
const serializeAws_json1_1DescribeUsageReportSubscriptionsRequest = (input, context) => {
|
|
4079
4093
|
return {
|
|
4080
|
-
...(input.MaxResults
|
|
4081
|
-
...(input.NextToken
|
|
4094
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4095
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4082
4096
|
};
|
|
4083
4097
|
};
|
|
4084
4098
|
const serializeAws_json1_1DescribeUsersRequest = (input, context) => {
|
|
4085
4099
|
return {
|
|
4086
|
-
...(input.AuthenticationType
|
|
4087
|
-
|
|
4088
|
-
...(input.
|
|
4089
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
4100
|
+
...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
|
|
4101
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4102
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4090
4103
|
};
|
|
4091
4104
|
};
|
|
4092
4105
|
const serializeAws_json1_1DescribeUserStackAssociationsRequest = (input, context) => {
|
|
4093
4106
|
return {
|
|
4094
|
-
...(input.AuthenticationType
|
|
4095
|
-
|
|
4096
|
-
...(input.
|
|
4097
|
-
...(input.
|
|
4098
|
-
...(input.
|
|
4099
|
-
...(input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }),
|
|
4107
|
+
...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
|
|
4108
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4109
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4110
|
+
...(input.StackName != null && { StackName: input.StackName }),
|
|
4111
|
+
...(input.UserName != null && { UserName: input.UserName }),
|
|
4100
4112
|
};
|
|
4101
4113
|
};
|
|
4102
4114
|
const serializeAws_json1_1DirectoryNameList = (input, context) => {
|
|
@@ -4111,38 +4123,33 @@ const serializeAws_json1_1DirectoryNameList = (input, context) => {
|
|
|
4111
4123
|
};
|
|
4112
4124
|
const serializeAws_json1_1DisableUserRequest = (input, context) => {
|
|
4113
4125
|
return {
|
|
4114
|
-
...(input.AuthenticationType
|
|
4115
|
-
|
|
4116
|
-
...(input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }),
|
|
4126
|
+
...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
|
|
4127
|
+
...(input.UserName != null && { UserName: input.UserName }),
|
|
4117
4128
|
};
|
|
4118
4129
|
};
|
|
4119
4130
|
const serializeAws_json1_1DisassociateApplicationFleetRequest = (input, context) => {
|
|
4120
4131
|
return {
|
|
4121
|
-
...(input.ApplicationArn
|
|
4122
|
-
|
|
4123
|
-
...(input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName }),
|
|
4132
|
+
...(input.ApplicationArn != null && { ApplicationArn: input.ApplicationArn }),
|
|
4133
|
+
...(input.FleetName != null && { FleetName: input.FleetName }),
|
|
4124
4134
|
};
|
|
4125
4135
|
};
|
|
4126
4136
|
const serializeAws_json1_1DisassociateApplicationFromEntitlementRequest = (input, context) => {
|
|
4127
4137
|
return {
|
|
4128
|
-
...(input.ApplicationIdentifier
|
|
4129
|
-
|
|
4130
|
-
...(input.
|
|
4131
|
-
input.EntitlementName !== null && { EntitlementName: input.EntitlementName }),
|
|
4132
|
-
...(input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }),
|
|
4138
|
+
...(input.ApplicationIdentifier != null && { ApplicationIdentifier: input.ApplicationIdentifier }),
|
|
4139
|
+
...(input.EntitlementName != null && { EntitlementName: input.EntitlementName }),
|
|
4140
|
+
...(input.StackName != null && { StackName: input.StackName }),
|
|
4133
4141
|
};
|
|
4134
4142
|
};
|
|
4135
4143
|
const serializeAws_json1_1DisassociateFleetRequest = (input, context) => {
|
|
4136
4144
|
return {
|
|
4137
|
-
...(input.FleetName
|
|
4138
|
-
...(input.StackName
|
|
4145
|
+
...(input.FleetName != null && { FleetName: input.FleetName }),
|
|
4146
|
+
...(input.StackName != null && { StackName: input.StackName }),
|
|
4139
4147
|
};
|
|
4140
4148
|
};
|
|
4141
4149
|
const serializeAws_json1_1DomainJoinInfo = (input, context) => {
|
|
4142
4150
|
return {
|
|
4143
|
-
...(input.DirectoryName
|
|
4144
|
-
...(input.OrganizationalUnitDistinguishedName
|
|
4145
|
-
input.OrganizationalUnitDistinguishedName !== null && {
|
|
4151
|
+
...(input.DirectoryName != null && { DirectoryName: input.DirectoryName }),
|
|
4152
|
+
...(input.OrganizationalUnitDistinguishedName != null && {
|
|
4146
4153
|
OrganizationalUnitDistinguishedName: input.OrganizationalUnitDistinguishedName,
|
|
4147
4154
|
}),
|
|
4148
4155
|
};
|
|
@@ -4169,15 +4176,14 @@ const serializeAws_json1_1EmbedHostDomains = (input, context) => {
|
|
|
4169
4176
|
};
|
|
4170
4177
|
const serializeAws_json1_1EnableUserRequest = (input, context) => {
|
|
4171
4178
|
return {
|
|
4172
|
-
...(input.AuthenticationType
|
|
4173
|
-
|
|
4174
|
-
...(input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }),
|
|
4179
|
+
...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
|
|
4180
|
+
...(input.UserName != null && { UserName: input.UserName }),
|
|
4175
4181
|
};
|
|
4176
4182
|
};
|
|
4177
4183
|
const serializeAws_json1_1EntitlementAttribute = (input, context) => {
|
|
4178
4184
|
return {
|
|
4179
|
-
...(input.Name
|
|
4180
|
-
...(input.Value
|
|
4185
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4186
|
+
...(input.Value != null && { Value: input.Value }),
|
|
4181
4187
|
};
|
|
4182
4188
|
};
|
|
4183
4189
|
const serializeAws_json1_1EntitlementAttributeList = (input, context) => {
|
|
@@ -4192,7 +4198,7 @@ const serializeAws_json1_1EntitlementAttributeList = (input, context) => {
|
|
|
4192
4198
|
};
|
|
4193
4199
|
const serializeAws_json1_1ExpireSessionRequest = (input, context) => {
|
|
4194
4200
|
return {
|
|
4195
|
-
...(input.SessionId
|
|
4201
|
+
...(input.SessionId != null && { SessionId: input.SessionId }),
|
|
4196
4202
|
};
|
|
4197
4203
|
};
|
|
4198
4204
|
const serializeAws_json1_1FleetAttributes = (input, context) => {
|
|
@@ -4207,35 +4213,33 @@ const serializeAws_json1_1FleetAttributes = (input, context) => {
|
|
|
4207
4213
|
};
|
|
4208
4214
|
const serializeAws_json1_1ImagePermissions = (input, context) => {
|
|
4209
4215
|
return {
|
|
4210
|
-
...(input.allowFleet
|
|
4211
|
-
...(input.allowImageBuilder
|
|
4212
|
-
input.allowImageBuilder !== null && { allowImageBuilder: input.allowImageBuilder }),
|
|
4216
|
+
...(input.allowFleet != null && { allowFleet: input.allowFleet }),
|
|
4217
|
+
...(input.allowImageBuilder != null && { allowImageBuilder: input.allowImageBuilder }),
|
|
4213
4218
|
};
|
|
4214
4219
|
};
|
|
4215
4220
|
const serializeAws_json1_1ListAssociatedFleetsRequest = (input, context) => {
|
|
4216
4221
|
return {
|
|
4217
|
-
...(input.NextToken
|
|
4218
|
-
...(input.StackName
|
|
4222
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4223
|
+
...(input.StackName != null && { StackName: input.StackName }),
|
|
4219
4224
|
};
|
|
4220
4225
|
};
|
|
4221
4226
|
const serializeAws_json1_1ListAssociatedStacksRequest = (input, context) => {
|
|
4222
4227
|
return {
|
|
4223
|
-
...(input.FleetName
|
|
4224
|
-
...(input.NextToken
|
|
4228
|
+
...(input.FleetName != null && { FleetName: input.FleetName }),
|
|
4229
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4225
4230
|
};
|
|
4226
4231
|
};
|
|
4227
4232
|
const serializeAws_json1_1ListEntitledApplicationsRequest = (input, context) => {
|
|
4228
4233
|
return {
|
|
4229
|
-
...(input.EntitlementName
|
|
4230
|
-
|
|
4231
|
-
...(input.
|
|
4232
|
-
...(input.
|
|
4233
|
-
...(input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }),
|
|
4234
|
+
...(input.EntitlementName != null && { EntitlementName: input.EntitlementName }),
|
|
4235
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4236
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4237
|
+
...(input.StackName != null && { StackName: input.StackName }),
|
|
4234
4238
|
};
|
|
4235
4239
|
};
|
|
4236
4240
|
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
4237
4241
|
return {
|
|
4238
|
-
...(input.ResourceArn
|
|
4242
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
4239
4243
|
};
|
|
4240
4244
|
};
|
|
4241
4245
|
const serializeAws_json1_1OrganizationalUnitDistinguishedNamesList = (input, context) => {
|
|
@@ -4260,22 +4264,18 @@ const serializeAws_json1_1Platforms = (input, context) => {
|
|
|
4260
4264
|
};
|
|
4261
4265
|
const serializeAws_json1_1S3Location = (input, context) => {
|
|
4262
4266
|
return {
|
|
4263
|
-
...(input.S3Bucket
|
|
4264
|
-
...(input.S3Key
|
|
4267
|
+
...(input.S3Bucket != null && { S3Bucket: input.S3Bucket }),
|
|
4268
|
+
...(input.S3Key != null && { S3Key: input.S3Key }),
|
|
4265
4269
|
};
|
|
4266
4270
|
};
|
|
4267
4271
|
const serializeAws_json1_1ScriptDetails = (input, context) => {
|
|
4268
4272
|
return {
|
|
4269
|
-
...(input.ExecutableParameters
|
|
4270
|
-
|
|
4271
|
-
...(input.
|
|
4272
|
-
input.ExecutablePath !== null && { ExecutablePath: input.ExecutablePath }),
|
|
4273
|
-
...(input.ScriptS3Location !== undefined &&
|
|
4274
|
-
input.ScriptS3Location !== null && {
|
|
4273
|
+
...(input.ExecutableParameters != null && { ExecutableParameters: input.ExecutableParameters }),
|
|
4274
|
+
...(input.ExecutablePath != null && { ExecutablePath: input.ExecutablePath }),
|
|
4275
|
+
...(input.ScriptS3Location != null && {
|
|
4275
4276
|
ScriptS3Location: serializeAws_json1_1S3Location(input.ScriptS3Location, context),
|
|
4276
4277
|
}),
|
|
4277
|
-
...(input.TimeoutInSeconds
|
|
4278
|
-
input.TimeoutInSeconds !== null && { TimeoutInSeconds: input.TimeoutInSeconds }),
|
|
4278
|
+
...(input.TimeoutInSeconds != null && { TimeoutInSeconds: input.TimeoutInSeconds }),
|
|
4279
4279
|
};
|
|
4280
4280
|
};
|
|
4281
4281
|
const serializeAws_json1_1SecurityGroupIdList = (input, context) => {
|
|
@@ -4290,9 +4290,8 @@ const serializeAws_json1_1SecurityGroupIdList = (input, context) => {
|
|
|
4290
4290
|
};
|
|
4291
4291
|
const serializeAws_json1_1ServiceAccountCredentials = (input, context) => {
|
|
4292
4292
|
return {
|
|
4293
|
-
...(input.AccountName
|
|
4294
|
-
...(input.AccountPassword
|
|
4295
|
-
input.AccountPassword !== null && { AccountPassword: input.AccountPassword }),
|
|
4293
|
+
...(input.AccountName != null && { AccountName: input.AccountName }),
|
|
4294
|
+
...(input.AccountPassword != null && { AccountPassword: input.AccountPassword }),
|
|
4296
4295
|
};
|
|
4297
4296
|
};
|
|
4298
4297
|
const serializeAws_json1_1StackAttributes = (input, context) => {
|
|
@@ -4307,33 +4306,30 @@ const serializeAws_json1_1StackAttributes = (input, context) => {
|
|
|
4307
4306
|
};
|
|
4308
4307
|
const serializeAws_json1_1StartFleetRequest = (input, context) => {
|
|
4309
4308
|
return {
|
|
4310
|
-
...(input.Name
|
|
4309
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4311
4310
|
};
|
|
4312
4311
|
};
|
|
4313
4312
|
const serializeAws_json1_1StartImageBuilderRequest = (input, context) => {
|
|
4314
4313
|
return {
|
|
4315
|
-
...(input.AppstreamAgentVersion
|
|
4316
|
-
|
|
4317
|
-
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
4314
|
+
...(input.AppstreamAgentVersion != null && { AppstreamAgentVersion: input.AppstreamAgentVersion }),
|
|
4315
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4318
4316
|
};
|
|
4319
4317
|
};
|
|
4320
4318
|
const serializeAws_json1_1StopFleetRequest = (input, context) => {
|
|
4321
4319
|
return {
|
|
4322
|
-
...(input.Name
|
|
4320
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4323
4321
|
};
|
|
4324
4322
|
};
|
|
4325
4323
|
const serializeAws_json1_1StopImageBuilderRequest = (input, context) => {
|
|
4326
4324
|
return {
|
|
4327
|
-
...(input.Name
|
|
4325
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4328
4326
|
};
|
|
4329
4327
|
};
|
|
4330
4328
|
const serializeAws_json1_1StorageConnector = (input, context) => {
|
|
4331
4329
|
return {
|
|
4332
|
-
...(input.ConnectorType
|
|
4333
|
-
...(input.Domains
|
|
4334
|
-
|
|
4335
|
-
...(input.ResourceIdentifier !== undefined &&
|
|
4336
|
-
input.ResourceIdentifier !== null && { ResourceIdentifier: input.ResourceIdentifier }),
|
|
4330
|
+
...(input.ConnectorType != null && { ConnectorType: input.ConnectorType }),
|
|
4331
|
+
...(input.Domains != null && { Domains: serializeAws_json1_1DomainList(input.Domains, context) }),
|
|
4332
|
+
...(input.ResourceIdentifier != null && { ResourceIdentifier: input.ResourceIdentifier }),
|
|
4337
4333
|
};
|
|
4338
4334
|
};
|
|
4339
4335
|
const serializeAws_json1_1StorageConnectorList = (input, context) => {
|
|
@@ -4348,8 +4344,7 @@ const serializeAws_json1_1StorageConnectorList = (input, context) => {
|
|
|
4348
4344
|
};
|
|
4349
4345
|
const serializeAws_json1_1StreamingExperienceSettings = (input, context) => {
|
|
4350
4346
|
return {
|
|
4351
|
-
...(input.PreferredProtocol
|
|
4352
|
-
input.PreferredProtocol !== null && { PreferredProtocol: input.PreferredProtocol }),
|
|
4347
|
+
...(input.PreferredProtocol != null && { PreferredProtocol: input.PreferredProtocol }),
|
|
4353
4348
|
};
|
|
4354
4349
|
};
|
|
4355
4350
|
const serializeAws_json1_1StringList = (input, context) => {
|
|
@@ -4384,8 +4379,8 @@ const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
|
4384
4379
|
};
|
|
4385
4380
|
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
4386
4381
|
return {
|
|
4387
|
-
...(input.ResourceArn
|
|
4388
|
-
...(input.Tags
|
|
4382
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
4383
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
4389
4384
|
};
|
|
4390
4385
|
};
|
|
4391
4386
|
const serializeAws_json1_1Tags = (input, context) => {
|
|
@@ -4401,152 +4396,124 @@ const serializeAws_json1_1Tags = (input, context) => {
|
|
|
4401
4396
|
};
|
|
4402
4397
|
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
4403
4398
|
return {
|
|
4404
|
-
...(input.ResourceArn
|
|
4405
|
-
...(input.TagKeys
|
|
4406
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
4399
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
4400
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
4407
4401
|
};
|
|
4408
4402
|
};
|
|
4409
4403
|
const serializeAws_json1_1UpdateApplicationRequest = (input, context) => {
|
|
4410
4404
|
return {
|
|
4411
|
-
...(input.AppBlockArn
|
|
4412
|
-
...(input.AttributesToDelete
|
|
4413
|
-
input.AttributesToDelete !== null && {
|
|
4405
|
+
...(input.AppBlockArn != null && { AppBlockArn: input.AppBlockArn }),
|
|
4406
|
+
...(input.AttributesToDelete != null && {
|
|
4414
4407
|
AttributesToDelete: serializeAws_json1_1ApplicationAttributes(input.AttributesToDelete, context),
|
|
4415
4408
|
}),
|
|
4416
|
-
...(input.Description
|
|
4417
|
-
...(input.DisplayName
|
|
4418
|
-
...(input.IconS3Location
|
|
4419
|
-
input.IconS3Location !== null && {
|
|
4409
|
+
...(input.Description != null && { Description: input.Description }),
|
|
4410
|
+
...(input.DisplayName != null && { DisplayName: input.DisplayName }),
|
|
4411
|
+
...(input.IconS3Location != null && {
|
|
4420
4412
|
IconS3Location: serializeAws_json1_1S3Location(input.IconS3Location, context),
|
|
4421
4413
|
}),
|
|
4422
|
-
...(input.LaunchParameters
|
|
4423
|
-
|
|
4424
|
-
...(input.
|
|
4425
|
-
...(input.
|
|
4426
|
-
...(input.WorkingDirectory !== undefined &&
|
|
4427
|
-
input.WorkingDirectory !== null && { WorkingDirectory: input.WorkingDirectory }),
|
|
4414
|
+
...(input.LaunchParameters != null && { LaunchParameters: input.LaunchParameters }),
|
|
4415
|
+
...(input.LaunchPath != null && { LaunchPath: input.LaunchPath }),
|
|
4416
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4417
|
+
...(input.WorkingDirectory != null && { WorkingDirectory: input.WorkingDirectory }),
|
|
4428
4418
|
};
|
|
4429
4419
|
};
|
|
4430
4420
|
const serializeAws_json1_1UpdateDirectoryConfigRequest = (input, context) => {
|
|
4431
4421
|
return {
|
|
4432
|
-
...(input.DirectoryName
|
|
4433
|
-
...(input.OrganizationalUnitDistinguishedNames
|
|
4434
|
-
input.OrganizationalUnitDistinguishedNames !== null && {
|
|
4422
|
+
...(input.DirectoryName != null && { DirectoryName: input.DirectoryName }),
|
|
4423
|
+
...(input.OrganizationalUnitDistinguishedNames != null && {
|
|
4435
4424
|
OrganizationalUnitDistinguishedNames: serializeAws_json1_1OrganizationalUnitDistinguishedNamesList(input.OrganizationalUnitDistinguishedNames, context),
|
|
4436
4425
|
}),
|
|
4437
|
-
...(input.ServiceAccountCredentials
|
|
4438
|
-
input.ServiceAccountCredentials !== null && {
|
|
4426
|
+
...(input.ServiceAccountCredentials != null && {
|
|
4439
4427
|
ServiceAccountCredentials: serializeAws_json1_1ServiceAccountCredentials(input.ServiceAccountCredentials, context),
|
|
4440
4428
|
}),
|
|
4441
4429
|
};
|
|
4442
4430
|
};
|
|
4443
4431
|
const serializeAws_json1_1UpdateEntitlementRequest = (input, context) => {
|
|
4444
4432
|
return {
|
|
4445
|
-
...(input.AppVisibility
|
|
4446
|
-
...(input.Attributes
|
|
4447
|
-
input.Attributes !== null && {
|
|
4433
|
+
...(input.AppVisibility != null && { AppVisibility: input.AppVisibility }),
|
|
4434
|
+
...(input.Attributes != null && {
|
|
4448
4435
|
Attributes: serializeAws_json1_1EntitlementAttributeList(input.Attributes, context),
|
|
4449
4436
|
}),
|
|
4450
|
-
...(input.Description
|
|
4451
|
-
...(input.Name
|
|
4452
|
-
...(input.StackName
|
|
4437
|
+
...(input.Description != null && { Description: input.Description }),
|
|
4438
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4439
|
+
...(input.StackName != null && { StackName: input.StackName }),
|
|
4453
4440
|
};
|
|
4454
4441
|
};
|
|
4455
4442
|
const serializeAws_json1_1UpdateFleetRequest = (input, context) => {
|
|
4456
4443
|
return {
|
|
4457
|
-
...(input.AttributesToDelete
|
|
4458
|
-
input.AttributesToDelete !== null && {
|
|
4444
|
+
...(input.AttributesToDelete != null && {
|
|
4459
4445
|
AttributesToDelete: serializeAws_json1_1FleetAttributes(input.AttributesToDelete, context),
|
|
4460
4446
|
}),
|
|
4461
|
-
...(input.ComputeCapacity
|
|
4462
|
-
input.ComputeCapacity !== null && {
|
|
4447
|
+
...(input.ComputeCapacity != null && {
|
|
4463
4448
|
ComputeCapacity: serializeAws_json1_1ComputeCapacity(input.ComputeCapacity, context),
|
|
4464
4449
|
}),
|
|
4465
|
-
...(input.DeleteVpcConfig
|
|
4466
|
-
|
|
4467
|
-
...(input.
|
|
4468
|
-
...(input.
|
|
4469
|
-
|
|
4470
|
-
...(input.DisplayName !== undefined && input.DisplayName !== null && { DisplayName: input.DisplayName }),
|
|
4471
|
-
...(input.DomainJoinInfo !== undefined &&
|
|
4472
|
-
input.DomainJoinInfo !== null && {
|
|
4450
|
+
...(input.DeleteVpcConfig != null && { DeleteVpcConfig: input.DeleteVpcConfig }),
|
|
4451
|
+
...(input.Description != null && { Description: input.Description }),
|
|
4452
|
+
...(input.DisconnectTimeoutInSeconds != null && { DisconnectTimeoutInSeconds: input.DisconnectTimeoutInSeconds }),
|
|
4453
|
+
...(input.DisplayName != null && { DisplayName: input.DisplayName }),
|
|
4454
|
+
...(input.DomainJoinInfo != null && {
|
|
4473
4455
|
DomainJoinInfo: serializeAws_json1_1DomainJoinInfo(input.DomainJoinInfo, context),
|
|
4474
4456
|
}),
|
|
4475
|
-
...(input.EnableDefaultInternetAccess
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
...(input.
|
|
4479
|
-
|
|
4457
|
+
...(input.EnableDefaultInternetAccess != null && {
|
|
4458
|
+
EnableDefaultInternetAccess: input.EnableDefaultInternetAccess,
|
|
4459
|
+
}),
|
|
4460
|
+
...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
|
|
4461
|
+
...(input.IdleDisconnectTimeoutInSeconds != null && {
|
|
4480
4462
|
IdleDisconnectTimeoutInSeconds: input.IdleDisconnectTimeoutInSeconds,
|
|
4481
4463
|
}),
|
|
4482
|
-
...(input.ImageArn
|
|
4483
|
-
...(input.ImageName
|
|
4484
|
-
...(input.InstanceType
|
|
4485
|
-
...(input.MaxConcurrentSessions
|
|
4486
|
-
|
|
4487
|
-
...(input.
|
|
4488
|
-
|
|
4489
|
-
...(input.
|
|
4490
|
-
...(input.Platform !== undefined && input.Platform !== null && { Platform: input.Platform }),
|
|
4491
|
-
...(input.SessionScriptS3Location !== undefined &&
|
|
4492
|
-
input.SessionScriptS3Location !== null && {
|
|
4464
|
+
...(input.ImageArn != null && { ImageArn: input.ImageArn }),
|
|
4465
|
+
...(input.ImageName != null && { ImageName: input.ImageName }),
|
|
4466
|
+
...(input.InstanceType != null && { InstanceType: input.InstanceType }),
|
|
4467
|
+
...(input.MaxConcurrentSessions != null && { MaxConcurrentSessions: input.MaxConcurrentSessions }),
|
|
4468
|
+
...(input.MaxUserDurationInSeconds != null && { MaxUserDurationInSeconds: input.MaxUserDurationInSeconds }),
|
|
4469
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4470
|
+
...(input.Platform != null && { Platform: input.Platform }),
|
|
4471
|
+
...(input.SessionScriptS3Location != null && {
|
|
4493
4472
|
SessionScriptS3Location: serializeAws_json1_1S3Location(input.SessionScriptS3Location, context),
|
|
4494
4473
|
}),
|
|
4495
|
-
...(input.StreamView
|
|
4496
|
-
...(input.UsbDeviceFilterStrings
|
|
4497
|
-
input.UsbDeviceFilterStrings !== null && {
|
|
4474
|
+
...(input.StreamView != null && { StreamView: input.StreamView }),
|
|
4475
|
+
...(input.UsbDeviceFilterStrings != null && {
|
|
4498
4476
|
UsbDeviceFilterStrings: serializeAws_json1_1UsbDeviceFilterStrings(input.UsbDeviceFilterStrings, context),
|
|
4499
4477
|
}),
|
|
4500
|
-
...(input.VpcConfig
|
|
4501
|
-
input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
|
|
4478
|
+
...(input.VpcConfig != null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
|
|
4502
4479
|
};
|
|
4503
4480
|
};
|
|
4504
4481
|
const serializeAws_json1_1UpdateImagePermissionsRequest = (input, context) => {
|
|
4505
4482
|
return {
|
|
4506
|
-
...(input.ImagePermissions
|
|
4507
|
-
input.ImagePermissions !== null && {
|
|
4483
|
+
...(input.ImagePermissions != null && {
|
|
4508
4484
|
ImagePermissions: serializeAws_json1_1ImagePermissions(input.ImagePermissions, context),
|
|
4509
4485
|
}),
|
|
4510
|
-
...(input.Name
|
|
4511
|
-
...(input.SharedAccountId
|
|
4512
|
-
input.SharedAccountId !== null && { SharedAccountId: input.SharedAccountId }),
|
|
4486
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4487
|
+
...(input.SharedAccountId != null && { SharedAccountId: input.SharedAccountId }),
|
|
4513
4488
|
};
|
|
4514
4489
|
};
|
|
4515
4490
|
const serializeAws_json1_1UpdateStackRequest = (input, context) => {
|
|
4516
4491
|
return {
|
|
4517
|
-
...(input.AccessEndpoints
|
|
4518
|
-
input.AccessEndpoints !== null && {
|
|
4492
|
+
...(input.AccessEndpoints != null && {
|
|
4519
4493
|
AccessEndpoints: serializeAws_json1_1AccessEndpointList(input.AccessEndpoints, context),
|
|
4520
4494
|
}),
|
|
4521
|
-
...(input.ApplicationSettings
|
|
4522
|
-
input.ApplicationSettings !== null && {
|
|
4495
|
+
...(input.ApplicationSettings != null && {
|
|
4523
4496
|
ApplicationSettings: serializeAws_json1_1ApplicationSettings(input.ApplicationSettings, context),
|
|
4524
4497
|
}),
|
|
4525
|
-
...(input.AttributesToDelete
|
|
4526
|
-
input.AttributesToDelete !== null && {
|
|
4498
|
+
...(input.AttributesToDelete != null && {
|
|
4527
4499
|
AttributesToDelete: serializeAws_json1_1StackAttributes(input.AttributesToDelete, context),
|
|
4528
4500
|
}),
|
|
4529
|
-
...(input.DeleteStorageConnectors
|
|
4530
|
-
|
|
4531
|
-
...(input.
|
|
4532
|
-
...(input.
|
|
4533
|
-
...(input.EmbedHostDomains !== undefined &&
|
|
4534
|
-
input.EmbedHostDomains !== null && {
|
|
4501
|
+
...(input.DeleteStorageConnectors != null && { DeleteStorageConnectors: input.DeleteStorageConnectors }),
|
|
4502
|
+
...(input.Description != null && { Description: input.Description }),
|
|
4503
|
+
...(input.DisplayName != null && { DisplayName: input.DisplayName }),
|
|
4504
|
+
...(input.EmbedHostDomains != null && {
|
|
4535
4505
|
EmbedHostDomains: serializeAws_json1_1EmbedHostDomains(input.EmbedHostDomains, context),
|
|
4536
4506
|
}),
|
|
4537
|
-
...(input.FeedbackURL
|
|
4538
|
-
...(input.Name
|
|
4539
|
-
...(input.RedirectURL
|
|
4540
|
-
...(input.StorageConnectors
|
|
4541
|
-
input.StorageConnectors !== null && {
|
|
4507
|
+
...(input.FeedbackURL != null && { FeedbackURL: input.FeedbackURL }),
|
|
4508
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4509
|
+
...(input.RedirectURL != null && { RedirectURL: input.RedirectURL }),
|
|
4510
|
+
...(input.StorageConnectors != null && {
|
|
4542
4511
|
StorageConnectors: serializeAws_json1_1StorageConnectorList(input.StorageConnectors, context),
|
|
4543
4512
|
}),
|
|
4544
|
-
...(input.StreamingExperienceSettings
|
|
4545
|
-
input.StreamingExperienceSettings !== null && {
|
|
4513
|
+
...(input.StreamingExperienceSettings != null && {
|
|
4546
4514
|
StreamingExperienceSettings: serializeAws_json1_1StreamingExperienceSettings(input.StreamingExperienceSettings, context),
|
|
4547
4515
|
}),
|
|
4548
|
-
...(input.UserSettings
|
|
4549
|
-
input.UserSettings !== null && {
|
|
4516
|
+
...(input.UserSettings != null && {
|
|
4550
4517
|
UserSettings: serializeAws_json1_1UserSettingList(input.UserSettings, context),
|
|
4551
4518
|
}),
|
|
4552
4519
|
};
|
|
@@ -4563,8 +4530,8 @@ const serializeAws_json1_1UsbDeviceFilterStrings = (input, context) => {
|
|
|
4563
4530
|
};
|
|
4564
4531
|
const serializeAws_json1_1UserSetting = (input, context) => {
|
|
4565
4532
|
return {
|
|
4566
|
-
...(input.Action
|
|
4567
|
-
...(input.Permission
|
|
4533
|
+
...(input.Action != null && { Action: input.Action }),
|
|
4534
|
+
...(input.Permission != null && { Permission: input.Permission }),
|
|
4568
4535
|
};
|
|
4569
4536
|
};
|
|
4570
4537
|
const serializeAws_json1_1UserSettingList = (input, context) => {
|
|
@@ -4579,12 +4546,10 @@ const serializeAws_json1_1UserSettingList = (input, context) => {
|
|
|
4579
4546
|
};
|
|
4580
4547
|
const serializeAws_json1_1UserStackAssociation = (input, context) => {
|
|
4581
4548
|
return {
|
|
4582
|
-
...(input.AuthenticationType
|
|
4583
|
-
|
|
4584
|
-
...(input.
|
|
4585
|
-
|
|
4586
|
-
...(input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }),
|
|
4587
|
-
...(input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }),
|
|
4549
|
+
...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
|
|
4550
|
+
...(input.SendEmailNotification != null && { SendEmailNotification: input.SendEmailNotification }),
|
|
4551
|
+
...(input.StackName != null && { StackName: input.StackName }),
|
|
4552
|
+
...(input.UserName != null && { UserName: input.UserName }),
|
|
4588
4553
|
};
|
|
4589
4554
|
};
|
|
4590
4555
|
const serializeAws_json1_1UserStackAssociationList = (input, context) => {
|
|
@@ -4599,12 +4564,10 @@ const serializeAws_json1_1UserStackAssociationList = (input, context) => {
|
|
|
4599
4564
|
};
|
|
4600
4565
|
const serializeAws_json1_1VpcConfig = (input, context) => {
|
|
4601
4566
|
return {
|
|
4602
|
-
...(input.SecurityGroupIds
|
|
4603
|
-
input.SecurityGroupIds !== null && {
|
|
4567
|
+
...(input.SecurityGroupIds != null && {
|
|
4604
4568
|
SecurityGroupIds: serializeAws_json1_1SecurityGroupIdList(input.SecurityGroupIds, context),
|
|
4605
4569
|
}),
|
|
4606
|
-
...(input.SubnetIds
|
|
4607
|
-
input.SubnetIds !== null && { SubnetIds: serializeAws_json1_1SubnetIdList(input.SubnetIds, context) }),
|
|
4570
|
+
...(input.SubnetIds != null && { SubnetIds: serializeAws_json1_1SubnetIdList(input.SubnetIds, context) }),
|
|
4608
4571
|
};
|
|
4609
4572
|
};
|
|
4610
4573
|
const deserializeAws_json1_1AccessEndpoint = (output, context) => {
|
|
@@ -4627,18 +4590,16 @@ const deserializeAws_json1_1AccessEndpointList = (output, context) => {
|
|
|
4627
4590
|
const deserializeAws_json1_1AppBlock = (output, context) => {
|
|
4628
4591
|
return {
|
|
4629
4592
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4630
|
-
CreatedTime: output.CreatedTime
|
|
4593
|
+
CreatedTime: output.CreatedTime != null
|
|
4631
4594
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
|
|
4632
4595
|
: undefined,
|
|
4633
4596
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
4634
4597
|
DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
|
|
4635
4598
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4636
|
-
SetupScriptDetails: output.SetupScriptDetails
|
|
4599
|
+
SetupScriptDetails: output.SetupScriptDetails != null
|
|
4637
4600
|
? deserializeAws_json1_1ScriptDetails(output.SetupScriptDetails, context)
|
|
4638
4601
|
: undefined,
|
|
4639
|
-
SourceS3Location: output.SourceS3Location
|
|
4640
|
-
? deserializeAws_json1_1S3Location(output.SourceS3Location, context)
|
|
4641
|
-
: undefined,
|
|
4602
|
+
SourceS3Location: output.SourceS3Location != null ? deserializeAws_json1_1S3Location(output.SourceS3Location, context) : undefined,
|
|
4642
4603
|
};
|
|
4643
4604
|
};
|
|
4644
4605
|
const deserializeAws_json1_1AppBlocks = (output, context) => {
|
|
@@ -4656,28 +4617,20 @@ const deserializeAws_json1_1Application = (output, context) => {
|
|
|
4656
4617
|
return {
|
|
4657
4618
|
AppBlockArn: (0, smithy_client_1.expectString)(output.AppBlockArn),
|
|
4658
4619
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4659
|
-
CreatedTime: output.CreatedTime
|
|
4620
|
+
CreatedTime: output.CreatedTime != null
|
|
4660
4621
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
|
|
4661
4622
|
: undefined,
|
|
4662
4623
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
4663
4624
|
DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
|
|
4664
4625
|
Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
|
|
4665
|
-
IconS3Location: output.IconS3Location
|
|
4666
|
-
? deserializeAws_json1_1S3Location(output.IconS3Location, context)
|
|
4667
|
-
: undefined,
|
|
4626
|
+
IconS3Location: output.IconS3Location != null ? deserializeAws_json1_1S3Location(output.IconS3Location, context) : undefined,
|
|
4668
4627
|
IconURL: (0, smithy_client_1.expectString)(output.IconURL),
|
|
4669
|
-
InstanceFamilies: output.InstanceFamilies
|
|
4670
|
-
? deserializeAws_json1_1StringList(output.InstanceFamilies, context)
|
|
4671
|
-
: undefined,
|
|
4628
|
+
InstanceFamilies: output.InstanceFamilies != null ? deserializeAws_json1_1StringList(output.InstanceFamilies, context) : undefined,
|
|
4672
4629
|
LaunchParameters: (0, smithy_client_1.expectString)(output.LaunchParameters),
|
|
4673
4630
|
LaunchPath: (0, smithy_client_1.expectString)(output.LaunchPath),
|
|
4674
|
-
Metadata: output.Metadata
|
|
4675
|
-
? deserializeAws_json1_1Metadata(output.Metadata, context)
|
|
4676
|
-
: undefined,
|
|
4631
|
+
Metadata: output.Metadata != null ? deserializeAws_json1_1Metadata(output.Metadata, context) : undefined,
|
|
4677
4632
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4678
|
-
Platforms: output.Platforms
|
|
4679
|
-
? deserializeAws_json1_1Platforms(output.Platforms, context)
|
|
4680
|
-
: undefined,
|
|
4633
|
+
Platforms: output.Platforms != null ? deserializeAws_json1_1Platforms(output.Platforms, context) : undefined,
|
|
4681
4634
|
WorkingDirectory: (0, smithy_client_1.expectString)(output.WorkingDirectory),
|
|
4682
4635
|
};
|
|
4683
4636
|
};
|
|
@@ -4718,7 +4671,7 @@ const deserializeAws_json1_1ApplicationSettingsResponse = (output, context) => {
|
|
|
4718
4671
|
};
|
|
4719
4672
|
const deserializeAws_json1_1AssociateApplicationFleetResult = (output, context) => {
|
|
4720
4673
|
return {
|
|
4721
|
-
ApplicationFleetAssociation: output.ApplicationFleetAssociation
|
|
4674
|
+
ApplicationFleetAssociation: output.ApplicationFleetAssociation != null
|
|
4722
4675
|
? deserializeAws_json1_1ApplicationFleetAssociation(output.ApplicationFleetAssociation, context)
|
|
4723
4676
|
: undefined,
|
|
4724
4677
|
};
|
|
@@ -4731,16 +4684,12 @@ const deserializeAws_json1_1AssociateFleetResult = (output, context) => {
|
|
|
4731
4684
|
};
|
|
4732
4685
|
const deserializeAws_json1_1BatchAssociateUserStackResult = (output, context) => {
|
|
4733
4686
|
return {
|
|
4734
|
-
errors: output.errors
|
|
4735
|
-
? deserializeAws_json1_1UserStackAssociationErrorList(output.errors, context)
|
|
4736
|
-
: undefined,
|
|
4687
|
+
errors: output.errors != null ? deserializeAws_json1_1UserStackAssociationErrorList(output.errors, context) : undefined,
|
|
4737
4688
|
};
|
|
4738
4689
|
};
|
|
4739
4690
|
const deserializeAws_json1_1BatchDisassociateUserStackResult = (output, context) => {
|
|
4740
4691
|
return {
|
|
4741
|
-
errors: output.errors
|
|
4742
|
-
? deserializeAws_json1_1UserStackAssociationErrorList(output.errors, context)
|
|
4743
|
-
: undefined,
|
|
4692
|
+
errors: output.errors != null ? deserializeAws_json1_1UserStackAssociationErrorList(output.errors, context) : undefined,
|
|
4744
4693
|
};
|
|
4745
4694
|
};
|
|
4746
4695
|
const deserializeAws_json1_1ComputeCapacityStatus = (output, context) => {
|
|
@@ -4763,75 +4712,57 @@ const deserializeAws_json1_1CopyImageResponse = (output, context) => {
|
|
|
4763
4712
|
};
|
|
4764
4713
|
const deserializeAws_json1_1CreateAppBlockResult = (output, context) => {
|
|
4765
4714
|
return {
|
|
4766
|
-
AppBlock: output.AppBlock
|
|
4767
|
-
? deserializeAws_json1_1AppBlock(output.AppBlock, context)
|
|
4768
|
-
: undefined,
|
|
4715
|
+
AppBlock: output.AppBlock != null ? deserializeAws_json1_1AppBlock(output.AppBlock, context) : undefined,
|
|
4769
4716
|
};
|
|
4770
4717
|
};
|
|
4771
4718
|
const deserializeAws_json1_1CreateApplicationResult = (output, context) => {
|
|
4772
4719
|
return {
|
|
4773
|
-
Application: output.Application
|
|
4774
|
-
? deserializeAws_json1_1Application(output.Application, context)
|
|
4775
|
-
: undefined,
|
|
4720
|
+
Application: output.Application != null ? deserializeAws_json1_1Application(output.Application, context) : undefined,
|
|
4776
4721
|
};
|
|
4777
4722
|
};
|
|
4778
4723
|
const deserializeAws_json1_1CreateDirectoryConfigResult = (output, context) => {
|
|
4779
4724
|
return {
|
|
4780
|
-
DirectoryConfig: output.DirectoryConfig
|
|
4725
|
+
DirectoryConfig: output.DirectoryConfig != null
|
|
4781
4726
|
? deserializeAws_json1_1DirectoryConfig(output.DirectoryConfig, context)
|
|
4782
4727
|
: undefined,
|
|
4783
4728
|
};
|
|
4784
4729
|
};
|
|
4785
4730
|
const deserializeAws_json1_1CreateEntitlementResult = (output, context) => {
|
|
4786
4731
|
return {
|
|
4787
|
-
Entitlement: output.Entitlement
|
|
4788
|
-
? deserializeAws_json1_1Entitlement(output.Entitlement, context)
|
|
4789
|
-
: undefined,
|
|
4732
|
+
Entitlement: output.Entitlement != null ? deserializeAws_json1_1Entitlement(output.Entitlement, context) : undefined,
|
|
4790
4733
|
};
|
|
4791
4734
|
};
|
|
4792
4735
|
const deserializeAws_json1_1CreateFleetResult = (output, context) => {
|
|
4793
4736
|
return {
|
|
4794
|
-
Fleet: output.Fleet
|
|
4795
|
-
? deserializeAws_json1_1Fleet(output.Fleet, context)
|
|
4796
|
-
: undefined,
|
|
4737
|
+
Fleet: output.Fleet != null ? deserializeAws_json1_1Fleet(output.Fleet, context) : undefined,
|
|
4797
4738
|
};
|
|
4798
4739
|
};
|
|
4799
4740
|
const deserializeAws_json1_1CreateImageBuilderResult = (output, context) => {
|
|
4800
4741
|
return {
|
|
4801
|
-
ImageBuilder: output.ImageBuilder
|
|
4802
|
-
? deserializeAws_json1_1ImageBuilder(output.ImageBuilder, context)
|
|
4803
|
-
: undefined,
|
|
4742
|
+
ImageBuilder: output.ImageBuilder != null ? deserializeAws_json1_1ImageBuilder(output.ImageBuilder, context) : undefined,
|
|
4804
4743
|
};
|
|
4805
4744
|
};
|
|
4806
4745
|
const deserializeAws_json1_1CreateImageBuilderStreamingURLResult = (output, context) => {
|
|
4807
4746
|
return {
|
|
4808
|
-
Expires: output.Expires
|
|
4809
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Expires)))
|
|
4810
|
-
: undefined,
|
|
4747
|
+
Expires: output.Expires != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Expires))) : undefined,
|
|
4811
4748
|
StreamingURL: (0, smithy_client_1.expectString)(output.StreamingURL),
|
|
4812
4749
|
};
|
|
4813
4750
|
};
|
|
4814
4751
|
const deserializeAws_json1_1CreateStackResult = (output, context) => {
|
|
4815
4752
|
return {
|
|
4816
|
-
Stack: output.Stack
|
|
4817
|
-
? deserializeAws_json1_1Stack(output.Stack, context)
|
|
4818
|
-
: undefined,
|
|
4753
|
+
Stack: output.Stack != null ? deserializeAws_json1_1Stack(output.Stack, context) : undefined,
|
|
4819
4754
|
};
|
|
4820
4755
|
};
|
|
4821
4756
|
const deserializeAws_json1_1CreateStreamingURLResult = (output, context) => {
|
|
4822
4757
|
return {
|
|
4823
|
-
Expires: output.Expires
|
|
4824
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Expires)))
|
|
4825
|
-
: undefined,
|
|
4758
|
+
Expires: output.Expires != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Expires))) : undefined,
|
|
4826
4759
|
StreamingURL: (0, smithy_client_1.expectString)(output.StreamingURL),
|
|
4827
4760
|
};
|
|
4828
4761
|
};
|
|
4829
4762
|
const deserializeAws_json1_1CreateUpdatedImageResult = (output, context) => {
|
|
4830
4763
|
return {
|
|
4831
4764
|
canUpdateImage: (0, smithy_client_1.expectBoolean)(output.canUpdateImage),
|
|
4832
|
-
image: output.image
|
|
4833
|
-
? deserializeAws_json1_1Image(output.image, context)
|
|
4834
|
-
: undefined,
|
|
4765
|
+
image: output.image != null ? deserializeAws_json1_1Image(output.image, context) : undefined,
|
|
4835
4766
|
};
|
|
4836
4767
|
};
|
|
4837
4768
|
const deserializeAws_json1_1CreateUsageReportSubscriptionResult = (output, context) => {
|
|
@@ -4860,9 +4791,7 @@ const deserializeAws_json1_1DeleteFleetResult = (output, context) => {
|
|
|
4860
4791
|
};
|
|
4861
4792
|
const deserializeAws_json1_1DeleteImageBuilderResult = (output, context) => {
|
|
4862
4793
|
return {
|
|
4863
|
-
ImageBuilder: output.ImageBuilder
|
|
4864
|
-
? deserializeAws_json1_1ImageBuilder(output.ImageBuilder, context)
|
|
4865
|
-
: undefined,
|
|
4794
|
+
ImageBuilder: output.ImageBuilder != null ? deserializeAws_json1_1ImageBuilder(output.ImageBuilder, context) : undefined,
|
|
4866
4795
|
};
|
|
4867
4796
|
};
|
|
4868
4797
|
const deserializeAws_json1_1DeleteImagePermissionsResult = (output, context) => {
|
|
@@ -4870,9 +4799,7 @@ const deserializeAws_json1_1DeleteImagePermissionsResult = (output, context) =>
|
|
|
4870
4799
|
};
|
|
4871
4800
|
const deserializeAws_json1_1DeleteImageResult = (output, context) => {
|
|
4872
4801
|
return {
|
|
4873
|
-
Image: output.Image
|
|
4874
|
-
? deserializeAws_json1_1Image(output.Image, context)
|
|
4875
|
-
: undefined,
|
|
4802
|
+
Image: output.Image != null ? deserializeAws_json1_1Image(output.Image, context) : undefined,
|
|
4876
4803
|
};
|
|
4877
4804
|
};
|
|
4878
4805
|
const deserializeAws_json1_1DeleteStackResult = (output, context) => {
|
|
@@ -4886,15 +4813,13 @@ const deserializeAws_json1_1DeleteUserResult = (output, context) => {
|
|
|
4886
4813
|
};
|
|
4887
4814
|
const deserializeAws_json1_1DescribeAppBlocksResult = (output, context) => {
|
|
4888
4815
|
return {
|
|
4889
|
-
AppBlocks: output.AppBlocks
|
|
4890
|
-
? deserializeAws_json1_1AppBlocks(output.AppBlocks, context)
|
|
4891
|
-
: undefined,
|
|
4816
|
+
AppBlocks: output.AppBlocks != null ? deserializeAws_json1_1AppBlocks(output.AppBlocks, context) : undefined,
|
|
4892
4817
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4893
4818
|
};
|
|
4894
4819
|
};
|
|
4895
4820
|
const deserializeAws_json1_1DescribeApplicationFleetAssociationsResult = (output, context) => {
|
|
4896
4821
|
return {
|
|
4897
|
-
ApplicationFleetAssociations: output.ApplicationFleetAssociations
|
|
4822
|
+
ApplicationFleetAssociations: output.ApplicationFleetAssociations != null
|
|
4898
4823
|
? deserializeAws_json1_1ApplicationFleetAssociationList(output.ApplicationFleetAssociations, context)
|
|
4899
4824
|
: undefined,
|
|
4900
4825
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -4902,15 +4827,13 @@ const deserializeAws_json1_1DescribeApplicationFleetAssociationsResult = (output
|
|
|
4902
4827
|
};
|
|
4903
4828
|
const deserializeAws_json1_1DescribeApplicationsResult = (output, context) => {
|
|
4904
4829
|
return {
|
|
4905
|
-
Applications: output.Applications
|
|
4906
|
-
? deserializeAws_json1_1Applications(output.Applications, context)
|
|
4907
|
-
: undefined,
|
|
4830
|
+
Applications: output.Applications != null ? deserializeAws_json1_1Applications(output.Applications, context) : undefined,
|
|
4908
4831
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4909
4832
|
};
|
|
4910
4833
|
};
|
|
4911
4834
|
const deserializeAws_json1_1DescribeDirectoryConfigsResult = (output, context) => {
|
|
4912
4835
|
return {
|
|
4913
|
-
DirectoryConfigs: output.DirectoryConfigs
|
|
4836
|
+
DirectoryConfigs: output.DirectoryConfigs != null
|
|
4914
4837
|
? deserializeAws_json1_1DirectoryConfigList(output.DirectoryConfigs, context)
|
|
4915
4838
|
: undefined,
|
|
4916
4839
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -4918,25 +4841,19 @@ const deserializeAws_json1_1DescribeDirectoryConfigsResult = (output, context) =
|
|
|
4918
4841
|
};
|
|
4919
4842
|
const deserializeAws_json1_1DescribeEntitlementsResult = (output, context) => {
|
|
4920
4843
|
return {
|
|
4921
|
-
Entitlements: output.Entitlements
|
|
4922
|
-
? deserializeAws_json1_1EntitlementList(output.Entitlements, context)
|
|
4923
|
-
: undefined,
|
|
4844
|
+
Entitlements: output.Entitlements != null ? deserializeAws_json1_1EntitlementList(output.Entitlements, context) : undefined,
|
|
4924
4845
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4925
4846
|
};
|
|
4926
4847
|
};
|
|
4927
4848
|
const deserializeAws_json1_1DescribeFleetsResult = (output, context) => {
|
|
4928
4849
|
return {
|
|
4929
|
-
Fleets: output.Fleets
|
|
4930
|
-
? deserializeAws_json1_1FleetList(output.Fleets, context)
|
|
4931
|
-
: undefined,
|
|
4850
|
+
Fleets: output.Fleets != null ? deserializeAws_json1_1FleetList(output.Fleets, context) : undefined,
|
|
4932
4851
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4933
4852
|
};
|
|
4934
4853
|
};
|
|
4935
4854
|
const deserializeAws_json1_1DescribeImageBuildersResult = (output, context) => {
|
|
4936
4855
|
return {
|
|
4937
|
-
ImageBuilders: output.ImageBuilders
|
|
4938
|
-
? deserializeAws_json1_1ImageBuilderList(output.ImageBuilders, context)
|
|
4939
|
-
: undefined,
|
|
4856
|
+
ImageBuilders: output.ImageBuilders != null ? deserializeAws_json1_1ImageBuilderList(output.ImageBuilders, context) : undefined,
|
|
4940
4857
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4941
4858
|
};
|
|
4942
4859
|
};
|
|
@@ -4944,39 +4861,33 @@ const deserializeAws_json1_1DescribeImagePermissionsResult = (output, context) =
|
|
|
4944
4861
|
return {
|
|
4945
4862
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4946
4863
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4947
|
-
SharedImagePermissionsList: output.SharedImagePermissionsList
|
|
4864
|
+
SharedImagePermissionsList: output.SharedImagePermissionsList != null
|
|
4948
4865
|
? deserializeAws_json1_1SharedImagePermissionsList(output.SharedImagePermissionsList, context)
|
|
4949
4866
|
: undefined,
|
|
4950
4867
|
};
|
|
4951
4868
|
};
|
|
4952
4869
|
const deserializeAws_json1_1DescribeImagesResult = (output, context) => {
|
|
4953
4870
|
return {
|
|
4954
|
-
Images: output.Images
|
|
4955
|
-
? deserializeAws_json1_1ImageList(output.Images, context)
|
|
4956
|
-
: undefined,
|
|
4871
|
+
Images: output.Images != null ? deserializeAws_json1_1ImageList(output.Images, context) : undefined,
|
|
4957
4872
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4958
4873
|
};
|
|
4959
4874
|
};
|
|
4960
4875
|
const deserializeAws_json1_1DescribeSessionsResult = (output, context) => {
|
|
4961
4876
|
return {
|
|
4962
4877
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4963
|
-
Sessions: output.Sessions
|
|
4964
|
-
? deserializeAws_json1_1SessionList(output.Sessions, context)
|
|
4965
|
-
: undefined,
|
|
4878
|
+
Sessions: output.Sessions != null ? deserializeAws_json1_1SessionList(output.Sessions, context) : undefined,
|
|
4966
4879
|
};
|
|
4967
4880
|
};
|
|
4968
4881
|
const deserializeAws_json1_1DescribeStacksResult = (output, context) => {
|
|
4969
4882
|
return {
|
|
4970
4883
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4971
|
-
Stacks: output.Stacks
|
|
4972
|
-
? deserializeAws_json1_1StackList(output.Stacks, context)
|
|
4973
|
-
: undefined,
|
|
4884
|
+
Stacks: output.Stacks != null ? deserializeAws_json1_1StackList(output.Stacks, context) : undefined,
|
|
4974
4885
|
};
|
|
4975
4886
|
};
|
|
4976
4887
|
const deserializeAws_json1_1DescribeUsageReportSubscriptionsResult = (output, context) => {
|
|
4977
4888
|
return {
|
|
4978
4889
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4979
|
-
UsageReportSubscriptions: output.UsageReportSubscriptions
|
|
4890
|
+
UsageReportSubscriptions: output.UsageReportSubscriptions != null
|
|
4980
4891
|
? deserializeAws_json1_1UsageReportSubscriptionList(output.UsageReportSubscriptions, context)
|
|
4981
4892
|
: undefined,
|
|
4982
4893
|
};
|
|
@@ -4984,29 +4895,27 @@ const deserializeAws_json1_1DescribeUsageReportSubscriptionsResult = (output, co
|
|
|
4984
4895
|
const deserializeAws_json1_1DescribeUsersResult = (output, context) => {
|
|
4985
4896
|
return {
|
|
4986
4897
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4987
|
-
Users: output.Users
|
|
4988
|
-
? deserializeAws_json1_1UserList(output.Users, context)
|
|
4989
|
-
: undefined,
|
|
4898
|
+
Users: output.Users != null ? deserializeAws_json1_1UserList(output.Users, context) : undefined,
|
|
4990
4899
|
};
|
|
4991
4900
|
};
|
|
4992
4901
|
const deserializeAws_json1_1DescribeUserStackAssociationsResult = (output, context) => {
|
|
4993
4902
|
return {
|
|
4994
4903
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4995
|
-
UserStackAssociations: output.UserStackAssociations
|
|
4904
|
+
UserStackAssociations: output.UserStackAssociations != null
|
|
4996
4905
|
? deserializeAws_json1_1UserStackAssociationList(output.UserStackAssociations, context)
|
|
4997
4906
|
: undefined,
|
|
4998
4907
|
};
|
|
4999
4908
|
};
|
|
5000
4909
|
const deserializeAws_json1_1DirectoryConfig = (output, context) => {
|
|
5001
4910
|
return {
|
|
5002
|
-
CreatedTime: output.CreatedTime
|
|
4911
|
+
CreatedTime: output.CreatedTime != null
|
|
5003
4912
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
|
|
5004
4913
|
: undefined,
|
|
5005
4914
|
DirectoryName: (0, smithy_client_1.expectString)(output.DirectoryName),
|
|
5006
|
-
OrganizationalUnitDistinguishedNames: output.OrganizationalUnitDistinguishedNames
|
|
4915
|
+
OrganizationalUnitDistinguishedNames: output.OrganizationalUnitDistinguishedNames != null
|
|
5007
4916
|
? deserializeAws_json1_1OrganizationalUnitDistinguishedNamesList(output.OrganizationalUnitDistinguishedNames, context)
|
|
5008
4917
|
: undefined,
|
|
5009
|
-
ServiceAccountCredentials: output.ServiceAccountCredentials
|
|
4918
|
+
ServiceAccountCredentials: output.ServiceAccountCredentials != null
|
|
5010
4919
|
? deserializeAws_json1_1ServiceAccountCredentials(output.ServiceAccountCredentials, context)
|
|
5011
4920
|
: undefined,
|
|
5012
4921
|
};
|
|
@@ -5084,14 +4993,14 @@ const deserializeAws_json1_1EntitledApplicationList = (output, context) => {
|
|
|
5084
4993
|
const deserializeAws_json1_1Entitlement = (output, context) => {
|
|
5085
4994
|
return {
|
|
5086
4995
|
AppVisibility: (0, smithy_client_1.expectString)(output.AppVisibility),
|
|
5087
|
-
Attributes: output.Attributes
|
|
4996
|
+
Attributes: output.Attributes != null
|
|
5088
4997
|
? deserializeAws_json1_1EntitlementAttributeList(output.Attributes, context)
|
|
5089
4998
|
: undefined,
|
|
5090
|
-
CreatedTime: output.CreatedTime
|
|
4999
|
+
CreatedTime: output.CreatedTime != null
|
|
5091
5000
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
|
|
5092
5001
|
: undefined,
|
|
5093
5002
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
5094
|
-
LastModifiedTime: output.LastModifiedTime
|
|
5003
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
5095
5004
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
5096
5005
|
: undefined,
|
|
5097
5006
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
@@ -5142,22 +5051,18 @@ const deserializeAws_json1_1ExpireSessionResult = (output, context) => {
|
|
|
5142
5051
|
const deserializeAws_json1_1Fleet = (output, context) => {
|
|
5143
5052
|
return {
|
|
5144
5053
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
5145
|
-
ComputeCapacityStatus: output.ComputeCapacityStatus
|
|
5054
|
+
ComputeCapacityStatus: output.ComputeCapacityStatus != null
|
|
5146
5055
|
? deserializeAws_json1_1ComputeCapacityStatus(output.ComputeCapacityStatus, context)
|
|
5147
5056
|
: undefined,
|
|
5148
|
-
CreatedTime: output.CreatedTime
|
|
5057
|
+
CreatedTime: output.CreatedTime != null
|
|
5149
5058
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
|
|
5150
5059
|
: undefined,
|
|
5151
5060
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
5152
5061
|
DisconnectTimeoutInSeconds: (0, smithy_client_1.expectInt32)(output.DisconnectTimeoutInSeconds),
|
|
5153
5062
|
DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
|
|
5154
|
-
DomainJoinInfo: output.DomainJoinInfo
|
|
5155
|
-
? deserializeAws_json1_1DomainJoinInfo(output.DomainJoinInfo, context)
|
|
5156
|
-
: undefined,
|
|
5063
|
+
DomainJoinInfo: output.DomainJoinInfo != null ? deserializeAws_json1_1DomainJoinInfo(output.DomainJoinInfo, context) : undefined,
|
|
5157
5064
|
EnableDefaultInternetAccess: (0, smithy_client_1.expectBoolean)(output.EnableDefaultInternetAccess),
|
|
5158
|
-
FleetErrors: output.FleetErrors
|
|
5159
|
-
? deserializeAws_json1_1FleetErrors(output.FleetErrors, context)
|
|
5160
|
-
: undefined,
|
|
5065
|
+
FleetErrors: output.FleetErrors != null ? deserializeAws_json1_1FleetErrors(output.FleetErrors, context) : undefined,
|
|
5161
5066
|
FleetType: (0, smithy_client_1.expectString)(output.FleetType),
|
|
5162
5067
|
IamRoleArn: (0, smithy_client_1.expectString)(output.IamRoleArn),
|
|
5163
5068
|
IdleDisconnectTimeoutInSeconds: (0, smithy_client_1.expectInt32)(output.IdleDisconnectTimeoutInSeconds),
|
|
@@ -5168,17 +5073,15 @@ const deserializeAws_json1_1Fleet = (output, context) => {
|
|
|
5168
5073
|
MaxUserDurationInSeconds: (0, smithy_client_1.expectInt32)(output.MaxUserDurationInSeconds),
|
|
5169
5074
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
5170
5075
|
Platform: (0, smithy_client_1.expectString)(output.Platform),
|
|
5171
|
-
SessionScriptS3Location: output.SessionScriptS3Location
|
|
5076
|
+
SessionScriptS3Location: output.SessionScriptS3Location != null
|
|
5172
5077
|
? deserializeAws_json1_1S3Location(output.SessionScriptS3Location, context)
|
|
5173
5078
|
: undefined,
|
|
5174
5079
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
5175
5080
|
StreamView: (0, smithy_client_1.expectString)(output.StreamView),
|
|
5176
|
-
UsbDeviceFilterStrings: output.UsbDeviceFilterStrings
|
|
5081
|
+
UsbDeviceFilterStrings: output.UsbDeviceFilterStrings != null
|
|
5177
5082
|
? deserializeAws_json1_1UsbDeviceFilterStrings(output.UsbDeviceFilterStrings, context)
|
|
5178
5083
|
: undefined,
|
|
5179
|
-
VpcConfig: output.VpcConfig
|
|
5180
|
-
? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
|
|
5181
|
-
: undefined,
|
|
5084
|
+
VpcConfig: output.VpcConfig != null ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context) : undefined,
|
|
5182
5085
|
};
|
|
5183
5086
|
};
|
|
5184
5087
|
const deserializeAws_json1_1FleetError = (output, context) => {
|
|
@@ -5211,32 +5114,28 @@ const deserializeAws_json1_1FleetList = (output, context) => {
|
|
|
5211
5114
|
};
|
|
5212
5115
|
const deserializeAws_json1_1Image = (output, context) => {
|
|
5213
5116
|
return {
|
|
5214
|
-
Applications: output.Applications
|
|
5215
|
-
? deserializeAws_json1_1Applications(output.Applications, context)
|
|
5216
|
-
: undefined,
|
|
5117
|
+
Applications: output.Applications != null ? deserializeAws_json1_1Applications(output.Applications, context) : undefined,
|
|
5217
5118
|
AppstreamAgentVersion: (0, smithy_client_1.expectString)(output.AppstreamAgentVersion),
|
|
5218
5119
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
5219
5120
|
BaseImageArn: (0, smithy_client_1.expectString)(output.BaseImageArn),
|
|
5220
|
-
CreatedTime: output.CreatedTime
|
|
5121
|
+
CreatedTime: output.CreatedTime != null
|
|
5221
5122
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
|
|
5222
5123
|
: undefined,
|
|
5223
5124
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
5224
5125
|
DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
|
|
5225
5126
|
ImageBuilderName: (0, smithy_client_1.expectString)(output.ImageBuilderName),
|
|
5226
5127
|
ImageBuilderSupported: (0, smithy_client_1.expectBoolean)(output.ImageBuilderSupported),
|
|
5227
|
-
ImageErrors: output.ImageErrors
|
|
5228
|
-
|
|
5229
|
-
: undefined,
|
|
5230
|
-
ImagePermissions: output.ImagePermissions !== undefined && output.ImagePermissions !== null
|
|
5128
|
+
ImageErrors: output.ImageErrors != null ? deserializeAws_json1_1ResourceErrors(output.ImageErrors, context) : undefined,
|
|
5129
|
+
ImagePermissions: output.ImagePermissions != null
|
|
5231
5130
|
? deserializeAws_json1_1ImagePermissions(output.ImagePermissions, context)
|
|
5232
5131
|
: undefined,
|
|
5233
5132
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
5234
5133
|
Platform: (0, smithy_client_1.expectString)(output.Platform),
|
|
5235
|
-
PublicBaseImageReleasedDate: output.PublicBaseImageReleasedDate
|
|
5134
|
+
PublicBaseImageReleasedDate: output.PublicBaseImageReleasedDate != null
|
|
5236
5135
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.PublicBaseImageReleasedDate)))
|
|
5237
5136
|
: undefined,
|
|
5238
5137
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
5239
|
-
StateChangeReason: output.StateChangeReason
|
|
5138
|
+
StateChangeReason: output.StateChangeReason != null
|
|
5240
5139
|
? deserializeAws_json1_1ImageStateChangeReason(output.StateChangeReason, context)
|
|
5241
5140
|
: undefined,
|
|
5242
5141
|
Visibility: (0, smithy_client_1.expectString)(output.Visibility),
|
|
@@ -5244,38 +5143,34 @@ const deserializeAws_json1_1Image = (output, context) => {
|
|
|
5244
5143
|
};
|
|
5245
5144
|
const deserializeAws_json1_1ImageBuilder = (output, context) => {
|
|
5246
5145
|
return {
|
|
5247
|
-
AccessEndpoints: output.AccessEndpoints
|
|
5146
|
+
AccessEndpoints: output.AccessEndpoints != null
|
|
5248
5147
|
? deserializeAws_json1_1AccessEndpointList(output.AccessEndpoints, context)
|
|
5249
5148
|
: undefined,
|
|
5250
5149
|
AppstreamAgentVersion: (0, smithy_client_1.expectString)(output.AppstreamAgentVersion),
|
|
5251
5150
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
5252
|
-
CreatedTime: output.CreatedTime
|
|
5151
|
+
CreatedTime: output.CreatedTime != null
|
|
5253
5152
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
|
|
5254
5153
|
: undefined,
|
|
5255
5154
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
5256
5155
|
DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
|
|
5257
|
-
DomainJoinInfo: output.DomainJoinInfo
|
|
5258
|
-
? deserializeAws_json1_1DomainJoinInfo(output.DomainJoinInfo, context)
|
|
5259
|
-
: undefined,
|
|
5156
|
+
DomainJoinInfo: output.DomainJoinInfo != null ? deserializeAws_json1_1DomainJoinInfo(output.DomainJoinInfo, context) : undefined,
|
|
5260
5157
|
EnableDefaultInternetAccess: (0, smithy_client_1.expectBoolean)(output.EnableDefaultInternetAccess),
|
|
5261
5158
|
IamRoleArn: (0, smithy_client_1.expectString)(output.IamRoleArn),
|
|
5262
5159
|
ImageArn: (0, smithy_client_1.expectString)(output.ImageArn),
|
|
5263
|
-
ImageBuilderErrors: output.ImageBuilderErrors
|
|
5160
|
+
ImageBuilderErrors: output.ImageBuilderErrors != null
|
|
5264
5161
|
? deserializeAws_json1_1ResourceErrors(output.ImageBuilderErrors, context)
|
|
5265
5162
|
: undefined,
|
|
5266
5163
|
InstanceType: (0, smithy_client_1.expectString)(output.InstanceType),
|
|
5267
5164
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
5268
|
-
NetworkAccessConfiguration: output.NetworkAccessConfiguration
|
|
5165
|
+
NetworkAccessConfiguration: output.NetworkAccessConfiguration != null
|
|
5269
5166
|
? deserializeAws_json1_1NetworkAccessConfiguration(output.NetworkAccessConfiguration, context)
|
|
5270
5167
|
: undefined,
|
|
5271
5168
|
Platform: (0, smithy_client_1.expectString)(output.Platform),
|
|
5272
5169
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
5273
|
-
StateChangeReason: output.StateChangeReason
|
|
5170
|
+
StateChangeReason: output.StateChangeReason != null
|
|
5274
5171
|
? deserializeAws_json1_1ImageBuilderStateChangeReason(output.StateChangeReason, context)
|
|
5275
5172
|
: undefined,
|
|
5276
|
-
VpcConfig: output.VpcConfig
|
|
5277
|
-
? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
|
|
5278
|
-
: undefined,
|
|
5173
|
+
VpcConfig: output.VpcConfig != null ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context) : undefined,
|
|
5279
5174
|
};
|
|
5280
5175
|
};
|
|
5281
5176
|
const deserializeAws_json1_1ImageBuilderList = (output, context) => {
|
|
@@ -5362,23 +5257,19 @@ const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
|
5362
5257
|
};
|
|
5363
5258
|
const deserializeAws_json1_1ListAssociatedFleetsResult = (output, context) => {
|
|
5364
5259
|
return {
|
|
5365
|
-
Names: output.Names
|
|
5366
|
-
? deserializeAws_json1_1StringList(output.Names, context)
|
|
5367
|
-
: undefined,
|
|
5260
|
+
Names: output.Names != null ? deserializeAws_json1_1StringList(output.Names, context) : undefined,
|
|
5368
5261
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5369
5262
|
};
|
|
5370
5263
|
};
|
|
5371
5264
|
const deserializeAws_json1_1ListAssociatedStacksResult = (output, context) => {
|
|
5372
5265
|
return {
|
|
5373
|
-
Names: output.Names
|
|
5374
|
-
? deserializeAws_json1_1StringList(output.Names, context)
|
|
5375
|
-
: undefined,
|
|
5266
|
+
Names: output.Names != null ? deserializeAws_json1_1StringList(output.Names, context) : undefined,
|
|
5376
5267
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5377
5268
|
};
|
|
5378
5269
|
};
|
|
5379
5270
|
const deserializeAws_json1_1ListEntitledApplicationsResult = (output, context) => {
|
|
5380
5271
|
return {
|
|
5381
|
-
EntitledApplications: output.EntitledApplications
|
|
5272
|
+
EntitledApplications: output.EntitledApplications != null
|
|
5382
5273
|
? deserializeAws_json1_1EntitledApplicationList(output.EntitledApplications, context)
|
|
5383
5274
|
: undefined,
|
|
5384
5275
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -5386,7 +5277,7 @@ const deserializeAws_json1_1ListEntitledApplicationsResult = (output, context) =
|
|
|
5386
5277
|
};
|
|
5387
5278
|
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
5388
5279
|
return {
|
|
5389
|
-
Tags: output.Tags
|
|
5280
|
+
Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
5390
5281
|
};
|
|
5391
5282
|
};
|
|
5392
5283
|
const deserializeAws_json1_1Metadata = (output, context) => {
|
|
@@ -5447,7 +5338,7 @@ const deserializeAws_json1_1ResourceError = (output, context) => {
|
|
|
5447
5338
|
return {
|
|
5448
5339
|
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
5449
5340
|
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
5450
|
-
ErrorTimestamp: output.ErrorTimestamp
|
|
5341
|
+
ErrorTimestamp: output.ErrorTimestamp != null
|
|
5451
5342
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ErrorTimestamp)))
|
|
5452
5343
|
: undefined,
|
|
5453
5344
|
};
|
|
@@ -5488,9 +5379,7 @@ const deserializeAws_json1_1ScriptDetails = (output, context) => {
|
|
|
5488
5379
|
return {
|
|
5489
5380
|
ExecutableParameters: (0, smithy_client_1.expectString)(output.ExecutableParameters),
|
|
5490
5381
|
ExecutablePath: (0, smithy_client_1.expectString)(output.ExecutablePath),
|
|
5491
|
-
ScriptS3Location: output.ScriptS3Location
|
|
5492
|
-
? deserializeAws_json1_1S3Location(output.ScriptS3Location, context)
|
|
5493
|
-
: undefined,
|
|
5382
|
+
ScriptS3Location: output.ScriptS3Location != null ? deserializeAws_json1_1S3Location(output.ScriptS3Location, context) : undefined,
|
|
5494
5383
|
TimeoutInSeconds: (0, smithy_client_1.expectInt32)(output.TimeoutInSeconds),
|
|
5495
5384
|
};
|
|
5496
5385
|
};
|
|
@@ -5517,16 +5406,14 @@ const deserializeAws_json1_1Session = (output, context) => {
|
|
|
5517
5406
|
ConnectionState: (0, smithy_client_1.expectString)(output.ConnectionState),
|
|
5518
5407
|
FleetName: (0, smithy_client_1.expectString)(output.FleetName),
|
|
5519
5408
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
5520
|
-
MaxExpirationTime: output.MaxExpirationTime
|
|
5409
|
+
MaxExpirationTime: output.MaxExpirationTime != null
|
|
5521
5410
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.MaxExpirationTime)))
|
|
5522
5411
|
: undefined,
|
|
5523
|
-
NetworkAccessConfiguration: output.NetworkAccessConfiguration
|
|
5412
|
+
NetworkAccessConfiguration: output.NetworkAccessConfiguration != null
|
|
5524
5413
|
? deserializeAws_json1_1NetworkAccessConfiguration(output.NetworkAccessConfiguration, context)
|
|
5525
5414
|
: undefined,
|
|
5526
5415
|
StackName: (0, smithy_client_1.expectString)(output.StackName),
|
|
5527
|
-
StartTime: output.StartTime
|
|
5528
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
|
|
5529
|
-
: undefined,
|
|
5416
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
5530
5417
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
5531
5418
|
UserId: (0, smithy_client_1.expectString)(output.UserId),
|
|
5532
5419
|
};
|
|
@@ -5544,7 +5431,7 @@ const deserializeAws_json1_1SessionList = (output, context) => {
|
|
|
5544
5431
|
};
|
|
5545
5432
|
const deserializeAws_json1_1SharedImagePermissions = (output, context) => {
|
|
5546
5433
|
return {
|
|
5547
|
-
imagePermissions: output.imagePermissions
|
|
5434
|
+
imagePermissions: output.imagePermissions != null
|
|
5548
5435
|
? deserializeAws_json1_1ImagePermissions(output.imagePermissions, context)
|
|
5549
5436
|
: undefined,
|
|
5550
5437
|
sharedAccountId: (0, smithy_client_1.expectString)(output.sharedAccountId),
|
|
@@ -5563,36 +5450,32 @@ const deserializeAws_json1_1SharedImagePermissionsList = (output, context) => {
|
|
|
5563
5450
|
};
|
|
5564
5451
|
const deserializeAws_json1_1Stack = (output, context) => {
|
|
5565
5452
|
return {
|
|
5566
|
-
AccessEndpoints: output.AccessEndpoints
|
|
5453
|
+
AccessEndpoints: output.AccessEndpoints != null
|
|
5567
5454
|
? deserializeAws_json1_1AccessEndpointList(output.AccessEndpoints, context)
|
|
5568
5455
|
: undefined,
|
|
5569
|
-
ApplicationSettings: output.ApplicationSettings
|
|
5456
|
+
ApplicationSettings: output.ApplicationSettings != null
|
|
5570
5457
|
? deserializeAws_json1_1ApplicationSettingsResponse(output.ApplicationSettings, context)
|
|
5571
5458
|
: undefined,
|
|
5572
5459
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
5573
|
-
CreatedTime: output.CreatedTime
|
|
5460
|
+
CreatedTime: output.CreatedTime != null
|
|
5574
5461
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
|
|
5575
5462
|
: undefined,
|
|
5576
5463
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
5577
5464
|
DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
|
|
5578
|
-
EmbedHostDomains: output.EmbedHostDomains
|
|
5465
|
+
EmbedHostDomains: output.EmbedHostDomains != null
|
|
5579
5466
|
? deserializeAws_json1_1EmbedHostDomains(output.EmbedHostDomains, context)
|
|
5580
5467
|
: undefined,
|
|
5581
5468
|
FeedbackURL: (0, smithy_client_1.expectString)(output.FeedbackURL),
|
|
5582
5469
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
5583
5470
|
RedirectURL: (0, smithy_client_1.expectString)(output.RedirectURL),
|
|
5584
|
-
StackErrors: output.StackErrors
|
|
5585
|
-
|
|
5586
|
-
: undefined,
|
|
5587
|
-
StorageConnectors: output.StorageConnectors !== undefined && output.StorageConnectors !== null
|
|
5471
|
+
StackErrors: output.StackErrors != null ? deserializeAws_json1_1StackErrors(output.StackErrors, context) : undefined,
|
|
5472
|
+
StorageConnectors: output.StorageConnectors != null
|
|
5588
5473
|
? deserializeAws_json1_1StorageConnectorList(output.StorageConnectors, context)
|
|
5589
5474
|
: undefined,
|
|
5590
|
-
StreamingExperienceSettings: output.StreamingExperienceSettings
|
|
5475
|
+
StreamingExperienceSettings: output.StreamingExperienceSettings != null
|
|
5591
5476
|
? deserializeAws_json1_1StreamingExperienceSettings(output.StreamingExperienceSettings, context)
|
|
5592
5477
|
: undefined,
|
|
5593
|
-
UserSettings: output.UserSettings
|
|
5594
|
-
? deserializeAws_json1_1UserSettingList(output.UserSettings, context)
|
|
5595
|
-
: undefined,
|
|
5478
|
+
UserSettings: output.UserSettings != null ? deserializeAws_json1_1UserSettingList(output.UserSettings, context) : undefined,
|
|
5596
5479
|
};
|
|
5597
5480
|
};
|
|
5598
5481
|
const deserializeAws_json1_1StackError = (output, context) => {
|
|
@@ -5628,9 +5511,7 @@ const deserializeAws_json1_1StartFleetResult = (output, context) => {
|
|
|
5628
5511
|
};
|
|
5629
5512
|
const deserializeAws_json1_1StartImageBuilderResult = (output, context) => {
|
|
5630
5513
|
return {
|
|
5631
|
-
ImageBuilder: output.ImageBuilder
|
|
5632
|
-
? deserializeAws_json1_1ImageBuilder(output.ImageBuilder, context)
|
|
5633
|
-
: undefined,
|
|
5514
|
+
ImageBuilder: output.ImageBuilder != null ? deserializeAws_json1_1ImageBuilder(output.ImageBuilder, context) : undefined,
|
|
5634
5515
|
};
|
|
5635
5516
|
};
|
|
5636
5517
|
const deserializeAws_json1_1StopFleetResult = (output, context) => {
|
|
@@ -5638,17 +5519,13 @@ const deserializeAws_json1_1StopFleetResult = (output, context) => {
|
|
|
5638
5519
|
};
|
|
5639
5520
|
const deserializeAws_json1_1StopImageBuilderResult = (output, context) => {
|
|
5640
5521
|
return {
|
|
5641
|
-
ImageBuilder: output.ImageBuilder
|
|
5642
|
-
? deserializeAws_json1_1ImageBuilder(output.ImageBuilder, context)
|
|
5643
|
-
: undefined,
|
|
5522
|
+
ImageBuilder: output.ImageBuilder != null ? deserializeAws_json1_1ImageBuilder(output.ImageBuilder, context) : undefined,
|
|
5644
5523
|
};
|
|
5645
5524
|
};
|
|
5646
5525
|
const deserializeAws_json1_1StorageConnector = (output, context) => {
|
|
5647
5526
|
return {
|
|
5648
5527
|
ConnectorType: (0, smithy_client_1.expectString)(output.ConnectorType),
|
|
5649
|
-
Domains: output.Domains
|
|
5650
|
-
? deserializeAws_json1_1DomainList(output.Domains, context)
|
|
5651
|
-
: undefined,
|
|
5528
|
+
Domains: output.Domains != null ? deserializeAws_json1_1DomainList(output.Domains, context) : undefined,
|
|
5652
5529
|
ResourceIdentifier: (0, smithy_client_1.expectString)(output.ResourceIdentifier),
|
|
5653
5530
|
};
|
|
5654
5531
|
};
|
|
@@ -5709,30 +5586,24 @@ const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
|
5709
5586
|
};
|
|
5710
5587
|
const deserializeAws_json1_1UpdateApplicationResult = (output, context) => {
|
|
5711
5588
|
return {
|
|
5712
|
-
Application: output.Application
|
|
5713
|
-
? deserializeAws_json1_1Application(output.Application, context)
|
|
5714
|
-
: undefined,
|
|
5589
|
+
Application: output.Application != null ? deserializeAws_json1_1Application(output.Application, context) : undefined,
|
|
5715
5590
|
};
|
|
5716
5591
|
};
|
|
5717
5592
|
const deserializeAws_json1_1UpdateDirectoryConfigResult = (output, context) => {
|
|
5718
5593
|
return {
|
|
5719
|
-
DirectoryConfig: output.DirectoryConfig
|
|
5594
|
+
DirectoryConfig: output.DirectoryConfig != null
|
|
5720
5595
|
? deserializeAws_json1_1DirectoryConfig(output.DirectoryConfig, context)
|
|
5721
5596
|
: undefined,
|
|
5722
5597
|
};
|
|
5723
5598
|
};
|
|
5724
5599
|
const deserializeAws_json1_1UpdateEntitlementResult = (output, context) => {
|
|
5725
5600
|
return {
|
|
5726
|
-
Entitlement: output.Entitlement
|
|
5727
|
-
? deserializeAws_json1_1Entitlement(output.Entitlement, context)
|
|
5728
|
-
: undefined,
|
|
5601
|
+
Entitlement: output.Entitlement != null ? deserializeAws_json1_1Entitlement(output.Entitlement, context) : undefined,
|
|
5729
5602
|
};
|
|
5730
5603
|
};
|
|
5731
5604
|
const deserializeAws_json1_1UpdateFleetResult = (output, context) => {
|
|
5732
5605
|
return {
|
|
5733
|
-
Fleet: output.Fleet
|
|
5734
|
-
? deserializeAws_json1_1Fleet(output.Fleet, context)
|
|
5735
|
-
: undefined,
|
|
5606
|
+
Fleet: output.Fleet != null ? deserializeAws_json1_1Fleet(output.Fleet, context) : undefined,
|
|
5736
5607
|
};
|
|
5737
5608
|
};
|
|
5738
5609
|
const deserializeAws_json1_1UpdateImagePermissionsResult = (output, context) => {
|
|
@@ -5740,19 +5611,17 @@ const deserializeAws_json1_1UpdateImagePermissionsResult = (output, context) =>
|
|
|
5740
5611
|
};
|
|
5741
5612
|
const deserializeAws_json1_1UpdateStackResult = (output, context) => {
|
|
5742
5613
|
return {
|
|
5743
|
-
Stack: output.Stack
|
|
5744
|
-
? deserializeAws_json1_1Stack(output.Stack, context)
|
|
5745
|
-
: undefined,
|
|
5614
|
+
Stack: output.Stack != null ? deserializeAws_json1_1Stack(output.Stack, context) : undefined,
|
|
5746
5615
|
};
|
|
5747
5616
|
};
|
|
5748
5617
|
const deserializeAws_json1_1UsageReportSubscription = (output, context) => {
|
|
5749
5618
|
return {
|
|
5750
|
-
LastGeneratedReportDate: output.LastGeneratedReportDate
|
|
5619
|
+
LastGeneratedReportDate: output.LastGeneratedReportDate != null
|
|
5751
5620
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastGeneratedReportDate)))
|
|
5752
5621
|
: undefined,
|
|
5753
5622
|
S3BucketName: (0, smithy_client_1.expectString)(output.S3BucketName),
|
|
5754
5623
|
Schedule: (0, smithy_client_1.expectString)(output.Schedule),
|
|
5755
|
-
SubscriptionErrors: output.SubscriptionErrors
|
|
5624
|
+
SubscriptionErrors: output.SubscriptionErrors != null
|
|
5756
5625
|
? deserializeAws_json1_1LastReportGenerationExecutionErrors(output.SubscriptionErrors, context)
|
|
5757
5626
|
: undefined,
|
|
5758
5627
|
};
|
|
@@ -5783,7 +5652,7 @@ const deserializeAws_json1_1User = (output, context) => {
|
|
|
5783
5652
|
return {
|
|
5784
5653
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
5785
5654
|
AuthenticationType: (0, smithy_client_1.expectString)(output.AuthenticationType),
|
|
5786
|
-
CreatedTime: output.CreatedTime
|
|
5655
|
+
CreatedTime: output.CreatedTime != null
|
|
5787
5656
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
|
|
5788
5657
|
: undefined,
|
|
5789
5658
|
Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
|
|
@@ -5833,7 +5702,7 @@ const deserializeAws_json1_1UserStackAssociationError = (output, context) => {
|
|
|
5833
5702
|
return {
|
|
5834
5703
|
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
5835
5704
|
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
5836
|
-
UserStackAssociation: output.UserStackAssociation
|
|
5705
|
+
UserStackAssociation: output.UserStackAssociation != null
|
|
5837
5706
|
? deserializeAws_json1_1UserStackAssociation(output.UserStackAssociation, context)
|
|
5838
5707
|
: undefined,
|
|
5839
5708
|
};
|
|
@@ -5862,12 +5731,10 @@ const deserializeAws_json1_1UserStackAssociationList = (output, context) => {
|
|
|
5862
5731
|
};
|
|
5863
5732
|
const deserializeAws_json1_1VpcConfig = (output, context) => {
|
|
5864
5733
|
return {
|
|
5865
|
-
SecurityGroupIds: output.SecurityGroupIds
|
|
5734
|
+
SecurityGroupIds: output.SecurityGroupIds != null
|
|
5866
5735
|
? deserializeAws_json1_1SecurityGroupIdList(output.SecurityGroupIds, context)
|
|
5867
5736
|
: undefined,
|
|
5868
|
-
SubnetIds: output.SubnetIds
|
|
5869
|
-
? deserializeAws_json1_1SubnetIdList(output.SubnetIds, context)
|
|
5870
|
-
: undefined,
|
|
5737
|
+
SubnetIds: output.SubnetIds != null ? deserializeAws_json1_1SubnetIdList(output.SubnetIds, context) : undefined,
|
|
5871
5738
|
};
|
|
5872
5739
|
};
|
|
5873
5740
|
const deserializeMetadata = (output) => {
|
|
@@ -5932,5 +5799,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
5932
5799
|
if (data["__type"] !== undefined) {
|
|
5933
5800
|
return sanitizeErrorCode(data["__type"]);
|
|
5934
5801
|
}
|
|
5935
|
-
return "";
|
|
5936
5802
|
};
|