@aws-sdk/client-m2 3.118.0 → 3.127.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_restJson1.js +243 -247
- package/dist-es/protocols/Aws_restJson1.js +208 -212
- package/package.json +26 -26
|
@@ -54,12 +54,11 @@ const serializeAws_restJson1CreateApplicationCommand = async (input, context) =>
|
|
|
54
54
|
let body;
|
|
55
55
|
body = JSON.stringify({
|
|
56
56
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
57
|
-
...(input.definition
|
|
58
|
-
|
|
59
|
-
...(input.
|
|
60
|
-
...(input.
|
|
61
|
-
...(input.
|
|
62
|
-
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
57
|
+
...(input.definition != null && { definition: serializeAws_restJson1Definition(input.definition, context) }),
|
|
58
|
+
...(input.description != null && { description: input.description }),
|
|
59
|
+
...(input.engineType != null && { engineType: input.engineType }),
|
|
60
|
+
...(input.name != null && { name: input.name }),
|
|
61
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
63
62
|
});
|
|
64
63
|
return new protocol_http_1.HttpRequest({
|
|
65
64
|
protocol,
|
|
@@ -93,8 +92,7 @@ const serializeAws_restJson1CreateDataSetImportTaskCommand = async (input, conte
|
|
|
93
92
|
let body;
|
|
94
93
|
body = JSON.stringify({
|
|
95
94
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
96
|
-
...(input.importConfig
|
|
97
|
-
input.importConfig !== null && {
|
|
95
|
+
...(input.importConfig != null && {
|
|
98
96
|
importConfig: serializeAws_restJson1DataSetImportConfig(input.importConfig, context),
|
|
99
97
|
}),
|
|
100
98
|
});
|
|
@@ -128,10 +126,9 @@ const serializeAws_restJson1CreateDeploymentCommand = async (input, context) =>
|
|
|
128
126
|
}
|
|
129
127
|
let body;
|
|
130
128
|
body = JSON.stringify({
|
|
131
|
-
...(input.applicationVersion
|
|
132
|
-
input.applicationVersion !== null && { applicationVersion: input.applicationVersion }),
|
|
129
|
+
...(input.applicationVersion != null && { applicationVersion: input.applicationVersion }),
|
|
133
130
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
134
|
-
...(input.environmentId
|
|
131
|
+
...(input.environmentId != null && { environmentId: input.environmentId }),
|
|
135
132
|
});
|
|
136
133
|
return new protocol_http_1.HttpRequest({
|
|
137
134
|
protocol,
|
|
@@ -154,30 +151,24 @@ const serializeAws_restJson1CreateEnvironmentCommand = async (input, context) =>
|
|
|
154
151
|
let body;
|
|
155
152
|
body = JSON.stringify({
|
|
156
153
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
157
|
-
...(input.description
|
|
158
|
-
...(input.engineType
|
|
159
|
-
...(input.engineVersion
|
|
160
|
-
...(input.highAvailabilityConfig
|
|
161
|
-
input.highAvailabilityConfig !== null && {
|
|
154
|
+
...(input.description != null && { description: input.description }),
|
|
155
|
+
...(input.engineType != null && { engineType: input.engineType }),
|
|
156
|
+
...(input.engineVersion != null && { engineVersion: input.engineVersion }),
|
|
157
|
+
...(input.highAvailabilityConfig != null && {
|
|
162
158
|
highAvailabilityConfig: serializeAws_restJson1HighAvailabilityConfig(input.highAvailabilityConfig, context),
|
|
163
159
|
}),
|
|
164
|
-
...(input.instanceType
|
|
165
|
-
...(input.name
|
|
166
|
-
...(input.preferredMaintenanceWindow
|
|
167
|
-
|
|
168
|
-
...(input.
|
|
169
|
-
input.publiclyAccessible !== null && { publiclyAccessible: input.publiclyAccessible }),
|
|
170
|
-
...(input.securityGroupIds !== undefined &&
|
|
171
|
-
input.securityGroupIds !== null && {
|
|
160
|
+
...(input.instanceType != null && { instanceType: input.instanceType }),
|
|
161
|
+
...(input.name != null && { name: input.name }),
|
|
162
|
+
...(input.preferredMaintenanceWindow != null && { preferredMaintenanceWindow: input.preferredMaintenanceWindow }),
|
|
163
|
+
...(input.publiclyAccessible != null && { publiclyAccessible: input.publiclyAccessible }),
|
|
164
|
+
...(input.securityGroupIds != null && {
|
|
172
165
|
securityGroupIds: serializeAws_restJson1String50List(input.securityGroupIds, context),
|
|
173
166
|
}),
|
|
174
|
-
...(input.storageConfigurations
|
|
175
|
-
input.storageConfigurations !== null && {
|
|
167
|
+
...(input.storageConfigurations != null && {
|
|
176
168
|
storageConfigurations: serializeAws_restJson1StorageConfigurationList(input.storageConfigurations, context),
|
|
177
169
|
}),
|
|
178
|
-
...(input.subnetIds
|
|
179
|
-
|
|
180
|
-
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
170
|
+
...(input.subnetIds != null && { subnetIds: serializeAws_restJson1String50List(input.subnetIds, context) }),
|
|
171
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
181
172
|
});
|
|
182
173
|
return new protocol_http_1.HttpRequest({
|
|
183
174
|
protocol,
|
|
@@ -856,12 +847,12 @@ const serializeAws_restJson1StartBatchJobCommand = async (input, context) => {
|
|
|
856
847
|
}
|
|
857
848
|
let body;
|
|
858
849
|
body = JSON.stringify({
|
|
859
|
-
...(input.batchJobIdentifier
|
|
860
|
-
input.batchJobIdentifier !== null && {
|
|
850
|
+
...(input.batchJobIdentifier != null && {
|
|
861
851
|
batchJobIdentifier: serializeAws_restJson1BatchJobIdentifier(input.batchJobIdentifier, context),
|
|
862
852
|
}),
|
|
863
|
-
...(input.jobParams
|
|
864
|
-
|
|
853
|
+
...(input.jobParams != null && {
|
|
854
|
+
jobParams: serializeAws_restJson1BatchJobParametersMap(input.jobParams, context),
|
|
855
|
+
}),
|
|
865
856
|
});
|
|
866
857
|
return new protocol_http_1.HttpRequest({
|
|
867
858
|
protocol,
|
|
@@ -892,7 +883,7 @@ const serializeAws_restJson1StopApplicationCommand = async (input, context) => {
|
|
|
892
883
|
}
|
|
893
884
|
let body;
|
|
894
885
|
body = JSON.stringify({
|
|
895
|
-
...(input.forceStop
|
|
886
|
+
...(input.forceStop != null && { forceStop: input.forceStop }),
|
|
896
887
|
});
|
|
897
888
|
return new protocol_http_1.HttpRequest({
|
|
898
889
|
protocol,
|
|
@@ -923,7 +914,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
923
914
|
}
|
|
924
915
|
let body;
|
|
925
916
|
body = JSON.stringify({
|
|
926
|
-
...(input.tags
|
|
917
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
927
918
|
});
|
|
928
919
|
return new protocol_http_1.HttpRequest({
|
|
929
920
|
protocol,
|
|
@@ -984,11 +975,9 @@ const serializeAws_restJson1UpdateApplicationCommand = async (input, context) =>
|
|
|
984
975
|
}
|
|
985
976
|
let body;
|
|
986
977
|
body = JSON.stringify({
|
|
987
|
-
...(input.currentApplicationVersion
|
|
988
|
-
|
|
989
|
-
...(input.
|
|
990
|
-
input.definition !== null && { definition: serializeAws_restJson1Definition(input.definition, context) }),
|
|
991
|
-
...(input.description !== undefined && input.description !== null && { description: input.description }),
|
|
978
|
+
...(input.currentApplicationVersion != null && { currentApplicationVersion: input.currentApplicationVersion }),
|
|
979
|
+
...(input.definition != null && { definition: serializeAws_restJson1Definition(input.definition, context) }),
|
|
980
|
+
...(input.description != null && { description: input.description }),
|
|
992
981
|
});
|
|
993
982
|
return new protocol_http_1.HttpRequest({
|
|
994
983
|
protocol,
|
|
@@ -1019,16 +1008,13 @@ const serializeAws_restJson1UpdateEnvironmentCommand = async (input, context) =>
|
|
|
1019
1008
|
}
|
|
1020
1009
|
let body;
|
|
1021
1010
|
body = JSON.stringify({
|
|
1022
|
-
...(input.applyDuringMaintenanceWindow
|
|
1023
|
-
input.applyDuringMaintenanceWindow !== null && {
|
|
1011
|
+
...(input.applyDuringMaintenanceWindow != null && {
|
|
1024
1012
|
applyDuringMaintenanceWindow: input.applyDuringMaintenanceWindow,
|
|
1025
1013
|
}),
|
|
1026
|
-
...(input.desiredCapacity
|
|
1027
|
-
|
|
1028
|
-
...(input.
|
|
1029
|
-
...(input.
|
|
1030
|
-
...(input.preferredMaintenanceWindow !== undefined &&
|
|
1031
|
-
input.preferredMaintenanceWindow !== null && { preferredMaintenanceWindow: input.preferredMaintenanceWindow }),
|
|
1014
|
+
...(input.desiredCapacity != null && { desiredCapacity: input.desiredCapacity }),
|
|
1015
|
+
...(input.engineVersion != null && { engineVersion: input.engineVersion }),
|
|
1016
|
+
...(input.instanceType != null && { instanceType: input.instanceType }),
|
|
1017
|
+
...(input.preferredMaintenanceWindow != null && { preferredMaintenanceWindow: input.preferredMaintenanceWindow }),
|
|
1032
1018
|
});
|
|
1033
1019
|
return new protocol_http_1.HttpRequest({
|
|
1034
1020
|
protocol,
|
|
@@ -1058,8 +1044,7 @@ const deserializeAws_restJson1CancelBatchJobExecutionCommandError = async (outpu
|
|
|
1058
1044
|
body: await parseBody(output.body, context),
|
|
1059
1045
|
};
|
|
1060
1046
|
let response;
|
|
1061
|
-
|
|
1062
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1047
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1063
1048
|
switch (errorCode) {
|
|
1064
1049
|
case "AccessDeniedException":
|
|
1065
1050
|
case "com.amazonaws.m2#AccessDeniedException":
|
|
@@ -1081,10 +1066,12 @@ const deserializeAws_restJson1CancelBatchJobExecutionCommandError = async (outpu
|
|
|
1081
1066
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1082
1067
|
default:
|
|
1083
1068
|
const parsedBody = parsedOutput.body;
|
|
1069
|
+
const $metadata = deserializeMetadata(output);
|
|
1070
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1084
1071
|
response = new M2ServiceException_1.M2ServiceException({
|
|
1085
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1072
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1086
1073
|
$fault: "client",
|
|
1087
|
-
$metadata
|
|
1074
|
+
$metadata,
|
|
1088
1075
|
});
|
|
1089
1076
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1090
1077
|
}
|
|
@@ -1118,8 +1105,7 @@ const deserializeAws_restJson1CreateApplicationCommandError = async (output, con
|
|
|
1118
1105
|
body: await parseBody(output.body, context),
|
|
1119
1106
|
};
|
|
1120
1107
|
let response;
|
|
1121
|
-
|
|
1122
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1108
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1123
1109
|
switch (errorCode) {
|
|
1124
1110
|
case "AccessDeniedException":
|
|
1125
1111
|
case "com.amazonaws.m2#AccessDeniedException":
|
|
@@ -1141,10 +1127,12 @@ const deserializeAws_restJson1CreateApplicationCommandError = async (output, con
|
|
|
1141
1127
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1142
1128
|
default:
|
|
1143
1129
|
const parsedBody = parsedOutput.body;
|
|
1130
|
+
const $metadata = deserializeMetadata(output);
|
|
1131
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1144
1132
|
response = new M2ServiceException_1.M2ServiceException({
|
|
1145
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1133
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1146
1134
|
$fault: "client",
|
|
1147
|
-
$metadata
|
|
1135
|
+
$metadata,
|
|
1148
1136
|
});
|
|
1149
1137
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1150
1138
|
}
|
|
@@ -1170,8 +1158,7 @@ const deserializeAws_restJson1CreateDataSetImportTaskCommandError = async (outpu
|
|
|
1170
1158
|
body: await parseBody(output.body, context),
|
|
1171
1159
|
};
|
|
1172
1160
|
let response;
|
|
1173
|
-
|
|
1174
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1161
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1175
1162
|
switch (errorCode) {
|
|
1176
1163
|
case "AccessDeniedException":
|
|
1177
1164
|
case "com.amazonaws.m2#AccessDeniedException":
|
|
@@ -1196,10 +1183,12 @@ const deserializeAws_restJson1CreateDataSetImportTaskCommandError = async (outpu
|
|
|
1196
1183
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1197
1184
|
default:
|
|
1198
1185
|
const parsedBody = parsedOutput.body;
|
|
1186
|
+
const $metadata = deserializeMetadata(output);
|
|
1187
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1199
1188
|
response = new M2ServiceException_1.M2ServiceException({
|
|
1200
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1189
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1201
1190
|
$fault: "client",
|
|
1202
|
-
$metadata
|
|
1191
|
+
$metadata,
|
|
1203
1192
|
});
|
|
1204
1193
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1205
1194
|
}
|
|
@@ -1225,8 +1214,7 @@ const deserializeAws_restJson1CreateDeploymentCommandError = async (output, cont
|
|
|
1225
1214
|
body: await parseBody(output.body, context),
|
|
1226
1215
|
};
|
|
1227
1216
|
let response;
|
|
1228
|
-
|
|
1229
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1217
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1230
1218
|
switch (errorCode) {
|
|
1231
1219
|
case "AccessDeniedException":
|
|
1232
1220
|
case "com.amazonaws.m2#AccessDeniedException":
|
|
@@ -1251,10 +1239,12 @@ const deserializeAws_restJson1CreateDeploymentCommandError = async (output, cont
|
|
|
1251
1239
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1252
1240
|
default:
|
|
1253
1241
|
const parsedBody = parsedOutput.body;
|
|
1242
|
+
const $metadata = deserializeMetadata(output);
|
|
1243
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1254
1244
|
response = new M2ServiceException_1.M2ServiceException({
|
|
1255
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1245
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1256
1246
|
$fault: "client",
|
|
1257
|
-
$metadata
|
|
1247
|
+
$metadata,
|
|
1258
1248
|
});
|
|
1259
1249
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1260
1250
|
}
|
|
@@ -1280,8 +1270,7 @@ const deserializeAws_restJson1CreateEnvironmentCommandError = async (output, con
|
|
|
1280
1270
|
body: await parseBody(output.body, context),
|
|
1281
1271
|
};
|
|
1282
1272
|
let response;
|
|
1283
|
-
|
|
1284
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1273
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1285
1274
|
switch (errorCode) {
|
|
1286
1275
|
case "AccessDeniedException":
|
|
1287
1276
|
case "com.amazonaws.m2#AccessDeniedException":
|
|
@@ -1303,10 +1292,12 @@ const deserializeAws_restJson1CreateEnvironmentCommandError = async (output, con
|
|
|
1303
1292
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1304
1293
|
default:
|
|
1305
1294
|
const parsedBody = parsedOutput.body;
|
|
1295
|
+
const $metadata = deserializeMetadata(output);
|
|
1296
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1306
1297
|
response = new M2ServiceException_1.M2ServiceException({
|
|
1307
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1298
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1308
1299
|
$fault: "client",
|
|
1309
|
-
$metadata
|
|
1300
|
+
$metadata,
|
|
1310
1301
|
});
|
|
1311
1302
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1312
1303
|
}
|
|
@@ -1328,8 +1319,7 @@ const deserializeAws_restJson1DeleteApplicationCommandError = async (output, con
|
|
|
1328
1319
|
body: await parseBody(output.body, context),
|
|
1329
1320
|
};
|
|
1330
1321
|
let response;
|
|
1331
|
-
|
|
1332
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1322
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1333
1323
|
switch (errorCode) {
|
|
1334
1324
|
case "AccessDeniedException":
|
|
1335
1325
|
case "com.amazonaws.m2#AccessDeniedException":
|
|
@@ -1348,10 +1338,12 @@ const deserializeAws_restJson1DeleteApplicationCommandError = async (output, con
|
|
|
1348
1338
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1349
1339
|
default:
|
|
1350
1340
|
const parsedBody = parsedOutput.body;
|
|
1341
|
+
const $metadata = deserializeMetadata(output);
|
|
1342
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1351
1343
|
response = new M2ServiceException_1.M2ServiceException({
|
|
1352
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1344
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1353
1345
|
$fault: "client",
|
|
1354
|
-
$metadata
|
|
1346
|
+
$metadata,
|
|
1355
1347
|
});
|
|
1356
1348
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1357
1349
|
}
|
|
@@ -1373,8 +1365,7 @@ const deserializeAws_restJson1DeleteApplicationFromEnvironmentCommandError = asy
|
|
|
1373
1365
|
body: await parseBody(output.body, context),
|
|
1374
1366
|
};
|
|
1375
1367
|
let response;
|
|
1376
|
-
|
|
1377
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1368
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1378
1369
|
switch (errorCode) {
|
|
1379
1370
|
case "AccessDeniedException":
|
|
1380
1371
|
case "com.amazonaws.m2#AccessDeniedException":
|
|
@@ -1396,10 +1387,12 @@ const deserializeAws_restJson1DeleteApplicationFromEnvironmentCommandError = asy
|
|
|
1396
1387
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1397
1388
|
default:
|
|
1398
1389
|
const parsedBody = parsedOutput.body;
|
|
1390
|
+
const $metadata = deserializeMetadata(output);
|
|
1391
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1399
1392
|
response = new M2ServiceException_1.M2ServiceException({
|
|
1400
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1393
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1401
1394
|
$fault: "client",
|
|
1402
|
-
$metadata
|
|
1395
|
+
$metadata,
|
|
1403
1396
|
});
|
|
1404
1397
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1405
1398
|
}
|
|
@@ -1421,8 +1414,7 @@ const deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, con
|
|
|
1421
1414
|
body: await parseBody(output.body, context),
|
|
1422
1415
|
};
|
|
1423
1416
|
let response;
|
|
1424
|
-
|
|
1425
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1417
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1426
1418
|
switch (errorCode) {
|
|
1427
1419
|
case "AccessDeniedException":
|
|
1428
1420
|
case "com.amazonaws.m2#AccessDeniedException":
|
|
@@ -1441,10 +1433,12 @@ const deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, con
|
|
|
1441
1433
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1442
1434
|
default:
|
|
1443
1435
|
const parsedBody = parsedOutput.body;
|
|
1436
|
+
const $metadata = deserializeMetadata(output);
|
|
1437
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1444
1438
|
response = new M2ServiceException_1.M2ServiceException({
|
|
1445
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1439
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1446
1440
|
$fault: "client",
|
|
1447
|
-
$metadata
|
|
1441
|
+
$metadata,
|
|
1448
1442
|
});
|
|
1449
1443
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1450
1444
|
}
|
|
@@ -1538,8 +1532,7 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
|
|
|
1538
1532
|
body: await parseBody(output.body, context),
|
|
1539
1533
|
};
|
|
1540
1534
|
let response;
|
|
1541
|
-
|
|
1542
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1535
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1543
1536
|
switch (errorCode) {
|
|
1544
1537
|
case "AccessDeniedException":
|
|
1545
1538
|
case "com.amazonaws.m2#AccessDeniedException":
|
|
@@ -1558,10 +1551,12 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
|
|
|
1558
1551
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1559
1552
|
default:
|
|
1560
1553
|
const parsedBody = parsedOutput.body;
|
|
1554
|
+
const $metadata = deserializeMetadata(output);
|
|
1555
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1561
1556
|
response = new M2ServiceException_1.M2ServiceException({
|
|
1562
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1557
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1563
1558
|
$fault: "client",
|
|
1564
|
-
$metadata
|
|
1559
|
+
$metadata,
|
|
1565
1560
|
});
|
|
1566
1561
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1567
1562
|
}
|
|
@@ -1611,8 +1606,7 @@ const deserializeAws_restJson1GetApplicationVersionCommandError = async (output,
|
|
|
1611
1606
|
body: await parseBody(output.body, context),
|
|
1612
1607
|
};
|
|
1613
1608
|
let response;
|
|
1614
|
-
|
|
1615
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1609
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1616
1610
|
switch (errorCode) {
|
|
1617
1611
|
case "AccessDeniedException":
|
|
1618
1612
|
case "com.amazonaws.m2#AccessDeniedException":
|
|
@@ -1631,10 +1625,12 @@ const deserializeAws_restJson1GetApplicationVersionCommandError = async (output,
|
|
|
1631
1625
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1632
1626
|
default:
|
|
1633
1627
|
const parsedBody = parsedOutput.body;
|
|
1628
|
+
const $metadata = deserializeMetadata(output);
|
|
1629
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1634
1630
|
response = new M2ServiceException_1.M2ServiceException({
|
|
1635
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1631
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1636
1632
|
$fault: "client",
|
|
1637
|
-
$metadata
|
|
1633
|
+
$metadata,
|
|
1638
1634
|
});
|
|
1639
1635
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1640
1636
|
}
|
|
@@ -1696,8 +1692,7 @@ const deserializeAws_restJson1GetBatchJobExecutionCommandError = async (output,
|
|
|
1696
1692
|
body: await parseBody(output.body, context),
|
|
1697
1693
|
};
|
|
1698
1694
|
let response;
|
|
1699
|
-
|
|
1700
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1695
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1701
1696
|
switch (errorCode) {
|
|
1702
1697
|
case "AccessDeniedException":
|
|
1703
1698
|
case "com.amazonaws.m2#AccessDeniedException":
|
|
@@ -1716,10 +1711,12 @@ const deserializeAws_restJson1GetBatchJobExecutionCommandError = async (output,
|
|
|
1716
1711
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1717
1712
|
default:
|
|
1718
1713
|
const parsedBody = parsedOutput.body;
|
|
1714
|
+
const $metadata = deserializeMetadata(output);
|
|
1715
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1719
1716
|
response = new M2ServiceException_1.M2ServiceException({
|
|
1720
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1717
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1721
1718
|
$fault: "client",
|
|
1722
|
-
$metadata
|
|
1719
|
+
$metadata,
|
|
1723
1720
|
});
|
|
1724
1721
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1725
1722
|
}
|
|
@@ -1773,8 +1770,7 @@ const deserializeAws_restJson1GetDataSetDetailsCommandError = async (output, con
|
|
|
1773
1770
|
body: await parseBody(output.body, context),
|
|
1774
1771
|
};
|
|
1775
1772
|
let response;
|
|
1776
|
-
|
|
1777
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1773
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1778
1774
|
switch (errorCode) {
|
|
1779
1775
|
case "AccessDeniedException":
|
|
1780
1776
|
case "com.amazonaws.m2#AccessDeniedException":
|
|
@@ -1793,10 +1789,12 @@ const deserializeAws_restJson1GetDataSetDetailsCommandError = async (output, con
|
|
|
1793
1789
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1794
1790
|
default:
|
|
1795
1791
|
const parsedBody = parsedOutput.body;
|
|
1792
|
+
const $metadata = deserializeMetadata(output);
|
|
1793
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1796
1794
|
response = new M2ServiceException_1.M2ServiceException({
|
|
1797
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1795
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1798
1796
|
$fault: "client",
|
|
1799
|
-
$metadata
|
|
1797
|
+
$metadata,
|
|
1800
1798
|
});
|
|
1801
1799
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1802
1800
|
}
|
|
@@ -1830,8 +1828,7 @@ const deserializeAws_restJson1GetDataSetImportTaskCommandError = async (output,
|
|
|
1830
1828
|
body: await parseBody(output.body, context),
|
|
1831
1829
|
};
|
|
1832
1830
|
let response;
|
|
1833
|
-
|
|
1834
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1831
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1835
1832
|
switch (errorCode) {
|
|
1836
1833
|
case "AccessDeniedException":
|
|
1837
1834
|
case "com.amazonaws.m2#AccessDeniedException":
|
|
@@ -1850,10 +1847,12 @@ const deserializeAws_restJson1GetDataSetImportTaskCommandError = async (output,
|
|
|
1850
1847
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1851
1848
|
default:
|
|
1852
1849
|
const parsedBody = parsedOutput.body;
|
|
1850
|
+
const $metadata = deserializeMetadata(output);
|
|
1851
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1853
1852
|
response = new M2ServiceException_1.M2ServiceException({
|
|
1854
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1853
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1855
1854
|
$fault: "client",
|
|
1856
|
-
$metadata
|
|
1855
|
+
$metadata,
|
|
1857
1856
|
});
|
|
1858
1857
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1859
1858
|
}
|
|
@@ -1903,8 +1902,7 @@ const deserializeAws_restJson1GetDeploymentCommandError = async (output, context
|
|
|
1903
1902
|
body: await parseBody(output.body, context),
|
|
1904
1903
|
};
|
|
1905
1904
|
let response;
|
|
1906
|
-
|
|
1907
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1905
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1908
1906
|
switch (errorCode) {
|
|
1909
1907
|
case "AccessDeniedException":
|
|
1910
1908
|
case "com.amazonaws.m2#AccessDeniedException":
|
|
@@ -1923,10 +1921,12 @@ const deserializeAws_restJson1GetDeploymentCommandError = async (output, context
|
|
|
1923
1921
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1924
1922
|
default:
|
|
1925
1923
|
const parsedBody = parsedOutput.body;
|
|
1924
|
+
const $metadata = deserializeMetadata(output);
|
|
1925
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1926
1926
|
response = new M2ServiceException_1.M2ServiceException({
|
|
1927
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1927
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1928
1928
|
$fault: "client",
|
|
1929
|
-
$metadata
|
|
1929
|
+
$metadata,
|
|
1930
1930
|
});
|
|
1931
1931
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1932
1932
|
}
|
|
@@ -2032,8 +2032,7 @@ const deserializeAws_restJson1GetEnvironmentCommandError = async (output, contex
|
|
|
2032
2032
|
body: await parseBody(output.body, context),
|
|
2033
2033
|
};
|
|
2034
2034
|
let response;
|
|
2035
|
-
|
|
2036
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2035
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2037
2036
|
switch (errorCode) {
|
|
2038
2037
|
case "AccessDeniedException":
|
|
2039
2038
|
case "com.amazonaws.m2#AccessDeniedException":
|
|
@@ -2052,10 +2051,12 @@ const deserializeAws_restJson1GetEnvironmentCommandError = async (output, contex
|
|
|
2052
2051
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2053
2052
|
default:
|
|
2054
2053
|
const parsedBody = parsedOutput.body;
|
|
2054
|
+
const $metadata = deserializeMetadata(output);
|
|
2055
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2055
2056
|
response = new M2ServiceException_1.M2ServiceException({
|
|
2056
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2057
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2057
2058
|
$fault: "client",
|
|
2058
|
-
$metadata
|
|
2059
|
+
$metadata,
|
|
2059
2060
|
});
|
|
2060
2061
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2061
2062
|
}
|
|
@@ -2085,8 +2086,7 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
|
|
|
2085
2086
|
body: await parseBody(output.body, context),
|
|
2086
2087
|
};
|
|
2087
2088
|
let response;
|
|
2088
|
-
|
|
2089
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2089
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2090
2090
|
switch (errorCode) {
|
|
2091
2091
|
case "AccessDeniedException":
|
|
2092
2092
|
case "com.amazonaws.m2#AccessDeniedException":
|
|
@@ -2102,10 +2102,12 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
|
|
|
2102
2102
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2103
2103
|
default:
|
|
2104
2104
|
const parsedBody = parsedOutput.body;
|
|
2105
|
+
const $metadata = deserializeMetadata(output);
|
|
2106
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2105
2107
|
response = new M2ServiceException_1.M2ServiceException({
|
|
2106
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2108
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2107
2109
|
$fault: "client",
|
|
2108
|
-
$metadata
|
|
2110
|
+
$metadata,
|
|
2109
2111
|
});
|
|
2110
2112
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2111
2113
|
}
|
|
@@ -2135,8 +2137,7 @@ const deserializeAws_restJson1ListApplicationVersionsCommandError = async (outpu
|
|
|
2135
2137
|
body: await parseBody(output.body, context),
|
|
2136
2138
|
};
|
|
2137
2139
|
let response;
|
|
2138
|
-
|
|
2139
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2140
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2140
2141
|
switch (errorCode) {
|
|
2141
2142
|
case "AccessDeniedException":
|
|
2142
2143
|
case "com.amazonaws.m2#AccessDeniedException":
|
|
@@ -2155,10 +2156,12 @@ const deserializeAws_restJson1ListApplicationVersionsCommandError = async (outpu
|
|
|
2155
2156
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2156
2157
|
default:
|
|
2157
2158
|
const parsedBody = parsedOutput.body;
|
|
2159
|
+
const $metadata = deserializeMetadata(output);
|
|
2160
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2158
2161
|
response = new M2ServiceException_1.M2ServiceException({
|
|
2159
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2162
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2160
2163
|
$fault: "client",
|
|
2161
|
-
$metadata
|
|
2164
|
+
$metadata,
|
|
2162
2165
|
});
|
|
2163
2166
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2164
2167
|
}
|
|
@@ -2188,8 +2191,7 @@ const deserializeAws_restJson1ListBatchJobDefinitionsCommandError = async (outpu
|
|
|
2188
2191
|
body: await parseBody(output.body, context),
|
|
2189
2192
|
};
|
|
2190
2193
|
let response;
|
|
2191
|
-
|
|
2192
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2194
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2193
2195
|
switch (errorCode) {
|
|
2194
2196
|
case "AccessDeniedException":
|
|
2195
2197
|
case "com.amazonaws.m2#AccessDeniedException":
|
|
@@ -2208,10 +2210,12 @@ const deserializeAws_restJson1ListBatchJobDefinitionsCommandError = async (outpu
|
|
|
2208
2210
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2209
2211
|
default:
|
|
2210
2212
|
const parsedBody = parsedOutput.body;
|
|
2213
|
+
const $metadata = deserializeMetadata(output);
|
|
2214
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2211
2215
|
response = new M2ServiceException_1.M2ServiceException({
|
|
2212
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2216
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2213
2217
|
$fault: "client",
|
|
2214
|
-
$metadata
|
|
2218
|
+
$metadata,
|
|
2215
2219
|
});
|
|
2216
2220
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2217
2221
|
}
|
|
@@ -2241,8 +2245,7 @@ const deserializeAws_restJson1ListBatchJobExecutionsCommandError = async (output
|
|
|
2241
2245
|
body: await parseBody(output.body, context),
|
|
2242
2246
|
};
|
|
2243
2247
|
let response;
|
|
2244
|
-
|
|
2245
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2248
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2246
2249
|
switch (errorCode) {
|
|
2247
2250
|
case "AccessDeniedException":
|
|
2248
2251
|
case "com.amazonaws.m2#AccessDeniedException":
|
|
@@ -2261,10 +2264,12 @@ const deserializeAws_restJson1ListBatchJobExecutionsCommandError = async (output
|
|
|
2261
2264
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2262
2265
|
default:
|
|
2263
2266
|
const parsedBody = parsedOutput.body;
|
|
2267
|
+
const $metadata = deserializeMetadata(output);
|
|
2268
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2264
2269
|
response = new M2ServiceException_1.M2ServiceException({
|
|
2265
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2270
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2266
2271
|
$fault: "client",
|
|
2267
|
-
$metadata
|
|
2272
|
+
$metadata,
|
|
2268
2273
|
});
|
|
2269
2274
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2270
2275
|
}
|
|
@@ -2294,8 +2299,7 @@ const deserializeAws_restJson1ListDataSetImportHistoryCommandError = async (outp
|
|
|
2294
2299
|
body: await parseBody(output.body, context),
|
|
2295
2300
|
};
|
|
2296
2301
|
let response;
|
|
2297
|
-
|
|
2298
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2302
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2299
2303
|
switch (errorCode) {
|
|
2300
2304
|
case "AccessDeniedException":
|
|
2301
2305
|
case "com.amazonaws.m2#AccessDeniedException":
|
|
@@ -2314,10 +2318,12 @@ const deserializeAws_restJson1ListDataSetImportHistoryCommandError = async (outp
|
|
|
2314
2318
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2315
2319
|
default:
|
|
2316
2320
|
const parsedBody = parsedOutput.body;
|
|
2321
|
+
const $metadata = deserializeMetadata(output);
|
|
2322
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2317
2323
|
response = new M2ServiceException_1.M2ServiceException({
|
|
2318
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2324
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2319
2325
|
$fault: "client",
|
|
2320
|
-
$metadata
|
|
2326
|
+
$metadata,
|
|
2321
2327
|
});
|
|
2322
2328
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2323
2329
|
}
|
|
@@ -2347,8 +2353,7 @@ const deserializeAws_restJson1ListDataSetsCommandError = async (output, context)
|
|
|
2347
2353
|
body: await parseBody(output.body, context),
|
|
2348
2354
|
};
|
|
2349
2355
|
let response;
|
|
2350
|
-
|
|
2351
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2356
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2352
2357
|
switch (errorCode) {
|
|
2353
2358
|
case "AccessDeniedException":
|
|
2354
2359
|
case "com.amazonaws.m2#AccessDeniedException":
|
|
@@ -2367,10 +2372,12 @@ const deserializeAws_restJson1ListDataSetsCommandError = async (output, context)
|
|
|
2367
2372
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2368
2373
|
default:
|
|
2369
2374
|
const parsedBody = parsedOutput.body;
|
|
2375
|
+
const $metadata = deserializeMetadata(output);
|
|
2376
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2370
2377
|
response = new M2ServiceException_1.M2ServiceException({
|
|
2371
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2378
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2372
2379
|
$fault: "client",
|
|
2373
|
-
$metadata
|
|
2380
|
+
$metadata,
|
|
2374
2381
|
});
|
|
2375
2382
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2376
2383
|
}
|
|
@@ -2400,8 +2407,7 @@ const deserializeAws_restJson1ListDeploymentsCommandError = async (output, conte
|
|
|
2400
2407
|
body: await parseBody(output.body, context),
|
|
2401
2408
|
};
|
|
2402
2409
|
let response;
|
|
2403
|
-
|
|
2404
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2410
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2405
2411
|
switch (errorCode) {
|
|
2406
2412
|
case "AccessDeniedException":
|
|
2407
2413
|
case "com.amazonaws.m2#AccessDeniedException":
|
|
@@ -2420,10 +2426,12 @@ const deserializeAws_restJson1ListDeploymentsCommandError = async (output, conte
|
|
|
2420
2426
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2421
2427
|
default:
|
|
2422
2428
|
const parsedBody = parsedOutput.body;
|
|
2429
|
+
const $metadata = deserializeMetadata(output);
|
|
2430
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2423
2431
|
response = new M2ServiceException_1.M2ServiceException({
|
|
2424
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2432
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2425
2433
|
$fault: "client",
|
|
2426
|
-
$metadata
|
|
2434
|
+
$metadata,
|
|
2427
2435
|
});
|
|
2428
2436
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2429
2437
|
}
|
|
@@ -2453,8 +2461,7 @@ const deserializeAws_restJson1ListEngineVersionsCommandError = async (output, co
|
|
|
2453
2461
|
body: await parseBody(output.body, context),
|
|
2454
2462
|
};
|
|
2455
2463
|
let response;
|
|
2456
|
-
|
|
2457
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2464
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2458
2465
|
switch (errorCode) {
|
|
2459
2466
|
case "AccessDeniedException":
|
|
2460
2467
|
case "com.amazonaws.m2#AccessDeniedException":
|
|
@@ -2470,10 +2477,12 @@ const deserializeAws_restJson1ListEngineVersionsCommandError = async (output, co
|
|
|
2470
2477
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2471
2478
|
default:
|
|
2472
2479
|
const parsedBody = parsedOutput.body;
|
|
2480
|
+
const $metadata = deserializeMetadata(output);
|
|
2481
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2473
2482
|
response = new M2ServiceException_1.M2ServiceException({
|
|
2474
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2483
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2475
2484
|
$fault: "client",
|
|
2476
|
-
$metadata
|
|
2485
|
+
$metadata,
|
|
2477
2486
|
});
|
|
2478
2487
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2479
2488
|
}
|
|
@@ -2503,8 +2512,7 @@ const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, cont
|
|
|
2503
2512
|
body: await parseBody(output.body, context),
|
|
2504
2513
|
};
|
|
2505
2514
|
let response;
|
|
2506
|
-
|
|
2507
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2515
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2508
2516
|
switch (errorCode) {
|
|
2509
2517
|
case "AccessDeniedException":
|
|
2510
2518
|
case "com.amazonaws.m2#AccessDeniedException":
|
|
@@ -2520,10 +2528,12 @@ const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, cont
|
|
|
2520
2528
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2521
2529
|
default:
|
|
2522
2530
|
const parsedBody = parsedOutput.body;
|
|
2531
|
+
const $metadata = deserializeMetadata(output);
|
|
2532
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2523
2533
|
response = new M2ServiceException_1.M2ServiceException({
|
|
2524
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2534
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2525
2535
|
$fault: "client",
|
|
2526
|
-
$metadata
|
|
2536
|
+
$metadata,
|
|
2527
2537
|
});
|
|
2528
2538
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2529
2539
|
}
|
|
@@ -2549,8 +2559,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2549
2559
|
body: await parseBody(output.body, context),
|
|
2550
2560
|
};
|
|
2551
2561
|
let response;
|
|
2552
|
-
|
|
2553
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2562
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2554
2563
|
switch (errorCode) {
|
|
2555
2564
|
case "AccessDeniedException":
|
|
2556
2565
|
case "com.amazonaws.m2#AccessDeniedException":
|
|
@@ -2569,10 +2578,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2569
2578
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2570
2579
|
default:
|
|
2571
2580
|
const parsedBody = parsedOutput.body;
|
|
2581
|
+
const $metadata = deserializeMetadata(output);
|
|
2582
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2572
2583
|
response = new M2ServiceException_1.M2ServiceException({
|
|
2573
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2584
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2574
2585
|
$fault: "client",
|
|
2575
|
-
$metadata
|
|
2586
|
+
$metadata,
|
|
2576
2587
|
});
|
|
2577
2588
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2578
2589
|
}
|
|
@@ -2594,8 +2605,7 @@ const deserializeAws_restJson1StartApplicationCommandError = async (output, cont
|
|
|
2594
2605
|
body: await parseBody(output.body, context),
|
|
2595
2606
|
};
|
|
2596
2607
|
let response;
|
|
2597
|
-
|
|
2598
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2608
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2599
2609
|
switch (errorCode) {
|
|
2600
2610
|
case "AccessDeniedException":
|
|
2601
2611
|
case "com.amazonaws.m2#AccessDeniedException":
|
|
@@ -2617,10 +2627,12 @@ const deserializeAws_restJson1StartApplicationCommandError = async (output, cont
|
|
|
2617
2627
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2618
2628
|
default:
|
|
2619
2629
|
const parsedBody = parsedOutput.body;
|
|
2630
|
+
const $metadata = deserializeMetadata(output);
|
|
2631
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2620
2632
|
response = new M2ServiceException_1.M2ServiceException({
|
|
2621
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2633
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2622
2634
|
$fault: "client",
|
|
2623
|
-
$metadata
|
|
2635
|
+
$metadata,
|
|
2624
2636
|
});
|
|
2625
2637
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2626
2638
|
}
|
|
@@ -2646,8 +2658,7 @@ const deserializeAws_restJson1StartBatchJobCommandError = async (output, context
|
|
|
2646
2658
|
body: await parseBody(output.body, context),
|
|
2647
2659
|
};
|
|
2648
2660
|
let response;
|
|
2649
|
-
|
|
2650
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2661
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2651
2662
|
switch (errorCode) {
|
|
2652
2663
|
case "AccessDeniedException":
|
|
2653
2664
|
case "com.amazonaws.m2#AccessDeniedException":
|
|
@@ -2669,10 +2680,12 @@ const deserializeAws_restJson1StartBatchJobCommandError = async (output, context
|
|
|
2669
2680
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2670
2681
|
default:
|
|
2671
2682
|
const parsedBody = parsedOutput.body;
|
|
2683
|
+
const $metadata = deserializeMetadata(output);
|
|
2684
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2672
2685
|
response = new M2ServiceException_1.M2ServiceException({
|
|
2673
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2686
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2674
2687
|
$fault: "client",
|
|
2675
|
-
$metadata
|
|
2688
|
+
$metadata,
|
|
2676
2689
|
});
|
|
2677
2690
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2678
2691
|
}
|
|
@@ -2694,8 +2707,7 @@ const deserializeAws_restJson1StopApplicationCommandError = async (output, conte
|
|
|
2694
2707
|
body: await parseBody(output.body, context),
|
|
2695
2708
|
};
|
|
2696
2709
|
let response;
|
|
2697
|
-
|
|
2698
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2710
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2699
2711
|
switch (errorCode) {
|
|
2700
2712
|
case "AccessDeniedException":
|
|
2701
2713
|
case "com.amazonaws.m2#AccessDeniedException":
|
|
@@ -2717,10 +2729,12 @@ const deserializeAws_restJson1StopApplicationCommandError = async (output, conte
|
|
|
2717
2729
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2718
2730
|
default:
|
|
2719
2731
|
const parsedBody = parsedOutput.body;
|
|
2732
|
+
const $metadata = deserializeMetadata(output);
|
|
2733
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2720
2734
|
response = new M2ServiceException_1.M2ServiceException({
|
|
2721
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2735
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2722
2736
|
$fault: "client",
|
|
2723
|
-
$metadata
|
|
2737
|
+
$metadata,
|
|
2724
2738
|
});
|
|
2725
2739
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2726
2740
|
}
|
|
@@ -2742,8 +2756,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2742
2756
|
body: await parseBody(output.body, context),
|
|
2743
2757
|
};
|
|
2744
2758
|
let response;
|
|
2745
|
-
|
|
2746
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2759
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2747
2760
|
switch (errorCode) {
|
|
2748
2761
|
case "AccessDeniedException":
|
|
2749
2762
|
case "com.amazonaws.m2#AccessDeniedException":
|
|
@@ -2765,10 +2778,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2765
2778
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2766
2779
|
default:
|
|
2767
2780
|
const parsedBody = parsedOutput.body;
|
|
2781
|
+
const $metadata = deserializeMetadata(output);
|
|
2782
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2768
2783
|
response = new M2ServiceException_1.M2ServiceException({
|
|
2769
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2784
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2770
2785
|
$fault: "client",
|
|
2771
|
-
$metadata
|
|
2786
|
+
$metadata,
|
|
2772
2787
|
});
|
|
2773
2788
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2774
2789
|
}
|
|
@@ -2790,8 +2805,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2790
2805
|
body: await parseBody(output.body, context),
|
|
2791
2806
|
};
|
|
2792
2807
|
let response;
|
|
2793
|
-
|
|
2794
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2808
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2795
2809
|
switch (errorCode) {
|
|
2796
2810
|
case "AccessDeniedException":
|
|
2797
2811
|
case "com.amazonaws.m2#AccessDeniedException":
|
|
@@ -2810,10 +2824,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2810
2824
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2811
2825
|
default:
|
|
2812
2826
|
const parsedBody = parsedOutput.body;
|
|
2827
|
+
const $metadata = deserializeMetadata(output);
|
|
2828
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2813
2829
|
response = new M2ServiceException_1.M2ServiceException({
|
|
2814
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2830
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2815
2831
|
$fault: "client",
|
|
2816
|
-
$metadata
|
|
2832
|
+
$metadata,
|
|
2817
2833
|
});
|
|
2818
2834
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2819
2835
|
}
|
|
@@ -2839,8 +2855,7 @@ const deserializeAws_restJson1UpdateApplicationCommandError = async (output, con
|
|
|
2839
2855
|
body: await parseBody(output.body, context),
|
|
2840
2856
|
};
|
|
2841
2857
|
let response;
|
|
2842
|
-
|
|
2843
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2858
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2844
2859
|
switch (errorCode) {
|
|
2845
2860
|
case "AccessDeniedException":
|
|
2846
2861
|
case "com.amazonaws.m2#AccessDeniedException":
|
|
@@ -2862,10 +2877,12 @@ const deserializeAws_restJson1UpdateApplicationCommandError = async (output, con
|
|
|
2862
2877
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2863
2878
|
default:
|
|
2864
2879
|
const parsedBody = parsedOutput.body;
|
|
2880
|
+
const $metadata = deserializeMetadata(output);
|
|
2881
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2865
2882
|
response = new M2ServiceException_1.M2ServiceException({
|
|
2866
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2883
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2867
2884
|
$fault: "client",
|
|
2868
|
-
$metadata
|
|
2885
|
+
$metadata,
|
|
2869
2886
|
});
|
|
2870
2887
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2871
2888
|
}
|
|
@@ -2891,8 +2908,7 @@ const deserializeAws_restJson1UpdateEnvironmentCommandError = async (output, con
|
|
|
2891
2908
|
body: await parseBody(output.body, context),
|
|
2892
2909
|
};
|
|
2893
2910
|
let response;
|
|
2894
|
-
|
|
2895
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2911
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2896
2912
|
switch (errorCode) {
|
|
2897
2913
|
case "AccessDeniedException":
|
|
2898
2914
|
case "com.amazonaws.m2#AccessDeniedException":
|
|
@@ -2917,10 +2933,12 @@ const deserializeAws_restJson1UpdateEnvironmentCommandError = async (output, con
|
|
|
2917
2933
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2918
2934
|
default:
|
|
2919
2935
|
const parsedBody = parsedOutput.body;
|
|
2936
|
+
const $metadata = deserializeMetadata(output);
|
|
2937
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2920
2938
|
response = new M2ServiceException_1.M2ServiceException({
|
|
2921
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2939
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2922
2940
|
$fault: "client",
|
|
2923
|
-
$metadata
|
|
2941
|
+
$metadata,
|
|
2924
2942
|
});
|
|
2925
2943
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2926
2944
|
}
|
|
@@ -3053,11 +3071,10 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
3053
3071
|
};
|
|
3054
3072
|
const serializeAws_restJson1AlternateKey = (input, context) => {
|
|
3055
3073
|
return {
|
|
3056
|
-
...(input.allowDuplicates
|
|
3057
|
-
|
|
3058
|
-
...(input.
|
|
3059
|
-
...(input.
|
|
3060
|
-
...(input.offset !== undefined && input.offset !== null && { offset: input.offset }),
|
|
3074
|
+
...(input.allowDuplicates != null && { allowDuplicates: input.allowDuplicates }),
|
|
3075
|
+
...(input.length != null && { length: input.length }),
|
|
3076
|
+
...(input.name != null && { name: input.name }),
|
|
3077
|
+
...(input.offset != null && { offset: input.offset }),
|
|
3061
3078
|
};
|
|
3062
3079
|
};
|
|
3063
3080
|
const serializeAws_restJson1AlternateKeyList = (input, context) => {
|
|
@@ -3094,15 +3111,15 @@ const serializeAws_restJson1BatchJobParametersMap = (input, context) => {
|
|
|
3094
3111
|
};
|
|
3095
3112
|
const serializeAws_restJson1DataSet = (input, context) => {
|
|
3096
3113
|
return {
|
|
3097
|
-
...(input.datasetName
|
|
3098
|
-
...(input.datasetOrg
|
|
3099
|
-
input.datasetOrg !== null && {
|
|
3114
|
+
...(input.datasetName != null && { datasetName: input.datasetName }),
|
|
3115
|
+
...(input.datasetOrg != null && {
|
|
3100
3116
|
datasetOrg: serializeAws_restJson1DatasetOrgAttributes(input.datasetOrg, context),
|
|
3101
3117
|
}),
|
|
3102
|
-
...(input.recordLength
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
...(input.
|
|
3118
|
+
...(input.recordLength != null && {
|
|
3119
|
+
recordLength: serializeAws_restJson1RecordLength(input.recordLength, context),
|
|
3120
|
+
}),
|
|
3121
|
+
...(input.relativePath != null && { relativePath: input.relativePath }),
|
|
3122
|
+
...(input.storageType != null && { storageType: input.storageType }),
|
|
3106
3123
|
};
|
|
3107
3124
|
};
|
|
3108
3125
|
const serializeAws_restJson1DataSetImportConfig = (input, context) => {
|
|
@@ -3114,10 +3131,8 @@ const serializeAws_restJson1DataSetImportConfig = (input, context) => {
|
|
|
3114
3131
|
};
|
|
3115
3132
|
const serializeAws_restJson1DataSetImportItem = (input, context) => {
|
|
3116
3133
|
return {
|
|
3117
|
-
...(input.dataSet
|
|
3118
|
-
|
|
3119
|
-
...(input.externalLocation !== undefined &&
|
|
3120
|
-
input.externalLocation !== null && {
|
|
3134
|
+
...(input.dataSet != null && { dataSet: serializeAws_restJson1DataSet(input.dataSet, context) }),
|
|
3135
|
+
...(input.externalLocation != null && {
|
|
3121
3136
|
externalLocation: serializeAws_restJson1ExternalLocation(input.externalLocation, context),
|
|
3122
3137
|
}),
|
|
3123
3138
|
};
|
|
@@ -3148,8 +3163,8 @@ const serializeAws_restJson1Definition = (input, context) => {
|
|
|
3148
3163
|
};
|
|
3149
3164
|
const serializeAws_restJson1EfsStorageConfiguration = (input, context) => {
|
|
3150
3165
|
return {
|
|
3151
|
-
...(input.fileSystemId
|
|
3152
|
-
...(input.mountPoint
|
|
3166
|
+
...(input.fileSystemId != null && { "file-system-id": input.fileSystemId }),
|
|
3167
|
+
...(input.mountPoint != null && { "mount-point": input.mountPoint }),
|
|
3153
3168
|
};
|
|
3154
3169
|
};
|
|
3155
3170
|
const serializeAws_restJson1ExternalLocation = (input, context) => {
|
|
@@ -3160,45 +3175,43 @@ const serializeAws_restJson1ExternalLocation = (input, context) => {
|
|
|
3160
3175
|
};
|
|
3161
3176
|
const serializeAws_restJson1FileBatchJobIdentifier = (input, context) => {
|
|
3162
3177
|
return {
|
|
3163
|
-
...(input.fileName
|
|
3164
|
-
...(input.folderPath
|
|
3178
|
+
...(input.fileName != null && { fileName: input.fileName }),
|
|
3179
|
+
...(input.folderPath != null && { folderPath: input.folderPath }),
|
|
3165
3180
|
};
|
|
3166
3181
|
};
|
|
3167
3182
|
const serializeAws_restJson1FsxStorageConfiguration = (input, context) => {
|
|
3168
3183
|
return {
|
|
3169
|
-
...(input.fileSystemId
|
|
3170
|
-
...(input.mountPoint
|
|
3184
|
+
...(input.fileSystemId != null && { "file-system-id": input.fileSystemId }),
|
|
3185
|
+
...(input.mountPoint != null && { "mount-point": input.mountPoint }),
|
|
3171
3186
|
};
|
|
3172
3187
|
};
|
|
3173
3188
|
const serializeAws_restJson1GdgAttributes = (input, context) => {
|
|
3174
3189
|
return {
|
|
3175
|
-
...(input.limit
|
|
3176
|
-
...(input.rollDisposition
|
|
3177
|
-
input.rollDisposition !== null && { rollDisposition: input.rollDisposition }),
|
|
3190
|
+
...(input.limit != null && { limit: input.limit }),
|
|
3191
|
+
...(input.rollDisposition != null && { rollDisposition: input.rollDisposition }),
|
|
3178
3192
|
};
|
|
3179
3193
|
};
|
|
3180
3194
|
const serializeAws_restJson1HighAvailabilityConfig = (input, context) => {
|
|
3181
3195
|
return {
|
|
3182
|
-
...(input.desiredCapacity
|
|
3183
|
-
input.desiredCapacity !== null && { desiredCapacity: input.desiredCapacity }),
|
|
3196
|
+
...(input.desiredCapacity != null && { desiredCapacity: input.desiredCapacity }),
|
|
3184
3197
|
};
|
|
3185
3198
|
};
|
|
3186
3199
|
const serializeAws_restJson1PrimaryKey = (input, context) => {
|
|
3187
3200
|
return {
|
|
3188
|
-
...(input.length
|
|
3189
|
-
...(input.name
|
|
3190
|
-
...(input.offset
|
|
3201
|
+
...(input.length != null && { length: input.length }),
|
|
3202
|
+
...(input.name != null && { name: input.name }),
|
|
3203
|
+
...(input.offset != null && { offset: input.offset }),
|
|
3191
3204
|
};
|
|
3192
3205
|
};
|
|
3193
3206
|
const serializeAws_restJson1RecordLength = (input, context) => {
|
|
3194
3207
|
return {
|
|
3195
|
-
...(input.max
|
|
3196
|
-
...(input.min
|
|
3208
|
+
...(input.max != null && { max: input.max }),
|
|
3209
|
+
...(input.min != null && { min: input.min }),
|
|
3197
3210
|
};
|
|
3198
3211
|
};
|
|
3199
3212
|
const serializeAws_restJson1ScriptBatchJobIdentifier = (input, context) => {
|
|
3200
3213
|
return {
|
|
3201
|
-
...(input.scriptName
|
|
3214
|
+
...(input.scriptName != null && { scriptName: input.scriptName }),
|
|
3202
3215
|
};
|
|
3203
3216
|
};
|
|
3204
3217
|
const serializeAws_restJson1StorageConfiguration = (input, context) => {
|
|
@@ -3241,15 +3254,13 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
3241
3254
|
};
|
|
3242
3255
|
const serializeAws_restJson1VsamAttributes = (input, context) => {
|
|
3243
3256
|
return {
|
|
3244
|
-
...(input.alternateKeys
|
|
3245
|
-
input.alternateKeys !== null && {
|
|
3257
|
+
...(input.alternateKeys != null && {
|
|
3246
3258
|
alternateKeys: serializeAws_restJson1AlternateKeyList(input.alternateKeys, context),
|
|
3247
3259
|
}),
|
|
3248
|
-
...(input.compressed
|
|
3249
|
-
...(input.encoding
|
|
3250
|
-
...(input.format
|
|
3251
|
-
...(input.primaryKey
|
|
3252
|
-
input.primaryKey !== null && { primaryKey: serializeAws_restJson1PrimaryKey(input.primaryKey, context) }),
|
|
3260
|
+
...(input.compressed != null && { compressed: input.compressed }),
|
|
3261
|
+
...(input.encoding != null && { encoding: input.encoding }),
|
|
3262
|
+
...(input.format != null && { format: input.format }),
|
|
3263
|
+
...(input.primaryKey != null && { primaryKey: serializeAws_restJson1PrimaryKey(input.primaryKey, context) }),
|
|
3253
3264
|
};
|
|
3254
3265
|
};
|
|
3255
3266
|
const deserializeAws_restJson1AlternateKey = (output, context) => {
|
|
@@ -3276,14 +3287,14 @@ const deserializeAws_restJson1ApplicationSummary = (output, context) => {
|
|
|
3276
3287
|
applicationArn: (0, smithy_client_1.expectString)(output.applicationArn),
|
|
3277
3288
|
applicationId: (0, smithy_client_1.expectString)(output.applicationId),
|
|
3278
3289
|
applicationVersion: (0, smithy_client_1.expectInt32)(output.applicationVersion),
|
|
3279
|
-
creationTime: output.creationTime
|
|
3290
|
+
creationTime: output.creationTime != null
|
|
3280
3291
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
3281
3292
|
: undefined,
|
|
3282
3293
|
deploymentStatus: (0, smithy_client_1.expectString)(output.deploymentStatus),
|
|
3283
3294
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
3284
3295
|
engineType: (0, smithy_client_1.expectString)(output.engineType),
|
|
3285
3296
|
environmentId: (0, smithy_client_1.expectString)(output.environmentId),
|
|
3286
|
-
lastStartTime: output.lastStartTime
|
|
3297
|
+
lastStartTime: output.lastStartTime != null
|
|
3287
3298
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastStartTime)))
|
|
3288
3299
|
: undefined,
|
|
3289
3300
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
@@ -3305,7 +3316,7 @@ const deserializeAws_restJson1ApplicationSummaryList = (output, context) => {
|
|
|
3305
3316
|
const deserializeAws_restJson1ApplicationVersionSummary = (output, context) => {
|
|
3306
3317
|
return {
|
|
3307
3318
|
applicationVersion: (0, smithy_client_1.expectInt32)(output.applicationVersion),
|
|
3308
|
-
creationTime: output.creationTime
|
|
3319
|
+
creationTime: output.creationTime != null
|
|
3309
3320
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
3310
3321
|
: undefined,
|
|
3311
3322
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
@@ -3361,16 +3372,12 @@ const deserializeAws_restJson1BatchJobDefinitions = (output, context) => {
|
|
|
3361
3372
|
const deserializeAws_restJson1BatchJobExecutionSummary = (output, context) => {
|
|
3362
3373
|
return {
|
|
3363
3374
|
applicationId: (0, smithy_client_1.expectString)(output.applicationId),
|
|
3364
|
-
endTime: output.endTime
|
|
3365
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime)))
|
|
3366
|
-
: undefined,
|
|
3375
|
+
endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime))) : undefined,
|
|
3367
3376
|
executionId: (0, smithy_client_1.expectString)(output.executionId),
|
|
3368
3377
|
jobId: (0, smithy_client_1.expectString)(output.jobId),
|
|
3369
3378
|
jobName: (0, smithy_client_1.expectString)(output.jobName),
|
|
3370
3379
|
jobType: (0, smithy_client_1.expectString)(output.jobType),
|
|
3371
|
-
startTime: output.startTime
|
|
3372
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime)))
|
|
3373
|
-
: undefined,
|
|
3380
|
+
startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
|
|
3374
3381
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
3375
3382
|
};
|
|
3376
3383
|
};
|
|
@@ -3410,9 +3417,7 @@ const deserializeAws_restJson1DataSetImportSummary = (output, context) => {
|
|
|
3410
3417
|
const deserializeAws_restJson1DataSetImportTask = (output, context) => {
|
|
3411
3418
|
return {
|
|
3412
3419
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
3413
|
-
summary: output.summary
|
|
3414
|
-
? deserializeAws_restJson1DataSetImportSummary(output.summary, context)
|
|
3415
|
-
: undefined,
|
|
3420
|
+
summary: output.summary != null ? deserializeAws_restJson1DataSetImportSummary(output.summary, context) : undefined,
|
|
3416
3421
|
taskId: (0, smithy_client_1.expectString)(output.taskId),
|
|
3417
3422
|
};
|
|
3418
3423
|
};
|
|
@@ -3440,16 +3445,16 @@ const deserializeAws_restJson1DataSetsSummaryList = (output, context) => {
|
|
|
3440
3445
|
};
|
|
3441
3446
|
const deserializeAws_restJson1DataSetSummary = (output, context) => {
|
|
3442
3447
|
return {
|
|
3443
|
-
creationTime: output.creationTime
|
|
3448
|
+
creationTime: output.creationTime != null
|
|
3444
3449
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
3445
3450
|
: undefined,
|
|
3446
3451
|
dataSetName: (0, smithy_client_1.expectString)(output.dataSetName),
|
|
3447
3452
|
dataSetOrg: (0, smithy_client_1.expectString)(output.dataSetOrg),
|
|
3448
3453
|
format: (0, smithy_client_1.expectString)(output.format),
|
|
3449
|
-
lastReferencedTime: output.lastReferencedTime
|
|
3454
|
+
lastReferencedTime: output.lastReferencedTime != null
|
|
3450
3455
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastReferencedTime)))
|
|
3451
3456
|
: undefined,
|
|
3452
|
-
lastUpdatedTime: output.lastUpdatedTime
|
|
3457
|
+
lastUpdatedTime: output.lastUpdatedTime != null
|
|
3453
3458
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedTime)))
|
|
3454
3459
|
: undefined,
|
|
3455
3460
|
};
|
|
@@ -3476,7 +3481,7 @@ const deserializeAws_restJson1DeploymentSummary = (output, context) => {
|
|
|
3476
3481
|
return {
|
|
3477
3482
|
applicationId: (0, smithy_client_1.expectString)(output.applicationId),
|
|
3478
3483
|
applicationVersion: (0, smithy_client_1.expectInt32)(output.applicationVersion),
|
|
3479
|
-
creationTime: output.creationTime
|
|
3484
|
+
creationTime: output.creationTime != null
|
|
3480
3485
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
3481
3486
|
: undefined,
|
|
3482
3487
|
deploymentId: (0, smithy_client_1.expectString)(output.deploymentId),
|
|
@@ -3510,7 +3515,7 @@ const deserializeAws_restJson1EngineVersionsSummaryList = (output, context) => {
|
|
|
3510
3515
|
};
|
|
3511
3516
|
const deserializeAws_restJson1EnvironmentSummary = (output, context) => {
|
|
3512
3517
|
return {
|
|
3513
|
-
creationTime: output.creationTime
|
|
3518
|
+
creationTime: output.creationTime != null
|
|
3514
3519
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
3515
3520
|
: undefined,
|
|
3516
3521
|
engineType: (0, smithy_client_1.expectString)(output.engineType),
|
|
@@ -3575,20 +3580,14 @@ const deserializeAws_restJson1LogGroupSummary = (output, context) => {
|
|
|
3575
3580
|
};
|
|
3576
3581
|
const deserializeAws_restJson1MaintenanceSchedule = (output, context) => {
|
|
3577
3582
|
return {
|
|
3578
|
-
endTime: output.endTime
|
|
3579
|
-
|
|
3580
|
-
: undefined,
|
|
3581
|
-
startTime: output.startTime !== undefined && output.startTime !== null
|
|
3582
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime)))
|
|
3583
|
-
: undefined,
|
|
3583
|
+
endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime))) : undefined,
|
|
3584
|
+
startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
|
|
3584
3585
|
};
|
|
3585
3586
|
};
|
|
3586
3587
|
const deserializeAws_restJson1PendingMaintenance = (output, context) => {
|
|
3587
3588
|
return {
|
|
3588
3589
|
engineVersion: (0, smithy_client_1.expectString)(output.engineVersion),
|
|
3589
|
-
schedule: output.schedule
|
|
3590
|
-
? deserializeAws_restJson1MaintenanceSchedule(output.schedule, context)
|
|
3591
|
-
: undefined,
|
|
3590
|
+
schedule: output.schedule != null ? deserializeAws_restJson1MaintenanceSchedule(output.schedule, context) : undefined,
|
|
3592
3591
|
};
|
|
3593
3592
|
};
|
|
3594
3593
|
const deserializeAws_restJson1PortList = (output, context) => {
|
|
@@ -3679,15 +3678,13 @@ const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) =
|
|
|
3679
3678
|
};
|
|
3680
3679
|
const deserializeAws_restJson1VsamDetailAttributes = (output, context) => {
|
|
3681
3680
|
return {
|
|
3682
|
-
alternateKeys: output.alternateKeys
|
|
3681
|
+
alternateKeys: output.alternateKeys != null
|
|
3683
3682
|
? deserializeAws_restJson1AlternateKeyList(output.alternateKeys, context)
|
|
3684
3683
|
: undefined,
|
|
3685
3684
|
cacheAtStartup: (0, smithy_client_1.expectBoolean)(output.cacheAtStartup),
|
|
3686
3685
|
compressed: (0, smithy_client_1.expectBoolean)(output.compressed),
|
|
3687
3686
|
encoding: (0, smithy_client_1.expectString)(output.encoding),
|
|
3688
|
-
primaryKey: output.primaryKey
|
|
3689
|
-
? deserializeAws_restJson1PrimaryKey(output.primaryKey, context)
|
|
3690
|
-
: undefined,
|
|
3687
|
+
primaryKey: output.primaryKey != null ? deserializeAws_restJson1PrimaryKey(output.primaryKey, context) : undefined,
|
|
3691
3688
|
recordFormat: (0, smithy_client_1.expectString)(output.recordFormat),
|
|
3692
3689
|
};
|
|
3693
3690
|
};
|
|
@@ -3740,5 +3737,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3740
3737
|
if (data["__type"] !== undefined) {
|
|
3741
3738
|
return sanitizeErrorCode(data["__type"]);
|
|
3742
3739
|
}
|
|
3743
|
-
return "";
|
|
3744
3740
|
};
|