@aws-sdk/client-service-catalog 3.118.1 → 3.128.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +953 -1107
- package/dist-es/protocols/Aws_json1_1.js +688 -842
- package/package.json +26 -26
|
@@ -899,8 +899,7 @@ const deserializeAws_json1_1AcceptPortfolioShareCommandError = async (output, co
|
|
|
899
899
|
body: await parseBody(output.body, context),
|
|
900
900
|
};
|
|
901
901
|
let response;
|
|
902
|
-
|
|
903
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
902
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
904
903
|
switch (errorCode) {
|
|
905
904
|
case "InvalidParametersException":
|
|
906
905
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -913,10 +912,12 @@ const deserializeAws_json1_1AcceptPortfolioShareCommandError = async (output, co
|
|
|
913
912
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
914
913
|
default:
|
|
915
914
|
const parsedBody = parsedOutput.body;
|
|
915
|
+
const $metadata = deserializeMetadata(output);
|
|
916
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
916
917
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
917
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
918
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
918
919
|
$fault: "client",
|
|
919
|
-
$metadata
|
|
920
|
+
$metadata,
|
|
920
921
|
});
|
|
921
922
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
922
923
|
}
|
|
@@ -941,8 +942,7 @@ const deserializeAws_json1_1AssociateBudgetWithResourceCommandError = async (out
|
|
|
941
942
|
body: await parseBody(output.body, context),
|
|
942
943
|
};
|
|
943
944
|
let response;
|
|
944
|
-
|
|
945
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
945
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
946
946
|
switch (errorCode) {
|
|
947
947
|
case "DuplicateResourceException":
|
|
948
948
|
case "com.amazonaws.servicecatalog#DuplicateResourceException":
|
|
@@ -958,10 +958,12 @@ const deserializeAws_json1_1AssociateBudgetWithResourceCommandError = async (out
|
|
|
958
958
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
959
959
|
default:
|
|
960
960
|
const parsedBody = parsedOutput.body;
|
|
961
|
+
const $metadata = deserializeMetadata(output);
|
|
962
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
961
963
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
962
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
964
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
963
965
|
$fault: "client",
|
|
964
|
-
$metadata
|
|
966
|
+
$metadata,
|
|
965
967
|
});
|
|
966
968
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
967
969
|
}
|
|
@@ -986,8 +988,7 @@ const deserializeAws_json1_1AssociatePrincipalWithPortfolioCommandError = async
|
|
|
986
988
|
body: await parseBody(output.body, context),
|
|
987
989
|
};
|
|
988
990
|
let response;
|
|
989
|
-
|
|
990
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
991
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
991
992
|
switch (errorCode) {
|
|
992
993
|
case "InvalidParametersException":
|
|
993
994
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -1000,10 +1001,12 @@ const deserializeAws_json1_1AssociatePrincipalWithPortfolioCommandError = async
|
|
|
1000
1001
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1001
1002
|
default:
|
|
1002
1003
|
const parsedBody = parsedOutput.body;
|
|
1004
|
+
const $metadata = deserializeMetadata(output);
|
|
1005
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1003
1006
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
1004
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1007
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1005
1008
|
$fault: "client",
|
|
1006
|
-
$metadata
|
|
1009
|
+
$metadata,
|
|
1007
1010
|
});
|
|
1008
1011
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1009
1012
|
}
|
|
@@ -1028,8 +1031,7 @@ const deserializeAws_json1_1AssociateProductWithPortfolioCommandError = async (o
|
|
|
1028
1031
|
body: await parseBody(output.body, context),
|
|
1029
1032
|
};
|
|
1030
1033
|
let response;
|
|
1031
|
-
|
|
1032
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1034
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1033
1035
|
switch (errorCode) {
|
|
1034
1036
|
case "InvalidParametersException":
|
|
1035
1037
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -1042,10 +1044,12 @@ const deserializeAws_json1_1AssociateProductWithPortfolioCommandError = async (o
|
|
|
1042
1044
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1043
1045
|
default:
|
|
1044
1046
|
const parsedBody = parsedOutput.body;
|
|
1047
|
+
const $metadata = deserializeMetadata(output);
|
|
1048
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1045
1049
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
1046
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1050
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1047
1051
|
$fault: "client",
|
|
1048
|
-
$metadata
|
|
1052
|
+
$metadata,
|
|
1049
1053
|
});
|
|
1050
1054
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1051
1055
|
}
|
|
@@ -1070,8 +1074,7 @@ const deserializeAws_json1_1AssociateServiceActionWithProvisioningArtifactComman
|
|
|
1070
1074
|
body: await parseBody(output.body, context),
|
|
1071
1075
|
};
|
|
1072
1076
|
let response;
|
|
1073
|
-
|
|
1074
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1077
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1075
1078
|
switch (errorCode) {
|
|
1076
1079
|
case "DuplicateResourceException":
|
|
1077
1080
|
case "com.amazonaws.servicecatalog#DuplicateResourceException":
|
|
@@ -1084,10 +1087,12 @@ const deserializeAws_json1_1AssociateServiceActionWithProvisioningArtifactComman
|
|
|
1084
1087
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1085
1088
|
default:
|
|
1086
1089
|
const parsedBody = parsedOutput.body;
|
|
1090
|
+
const $metadata = deserializeMetadata(output);
|
|
1091
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1087
1092
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
1088
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1093
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1089
1094
|
$fault: "client",
|
|
1090
|
-
$metadata
|
|
1095
|
+
$metadata,
|
|
1091
1096
|
});
|
|
1092
1097
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1093
1098
|
}
|
|
@@ -1112,8 +1117,7 @@ const deserializeAws_json1_1AssociateTagOptionWithResourceCommandError = async (
|
|
|
1112
1117
|
body: await parseBody(output.body, context),
|
|
1113
1118
|
};
|
|
1114
1119
|
let response;
|
|
1115
|
-
|
|
1116
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1120
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1117
1121
|
switch (errorCode) {
|
|
1118
1122
|
case "DuplicateResourceException":
|
|
1119
1123
|
case "com.amazonaws.servicecatalog#DuplicateResourceException":
|
|
@@ -1135,10 +1139,12 @@ const deserializeAws_json1_1AssociateTagOptionWithResourceCommandError = async (
|
|
|
1135
1139
|
throw await deserializeAws_json1_1TagOptionNotMigratedExceptionResponse(parsedOutput, context);
|
|
1136
1140
|
default:
|
|
1137
1141
|
const parsedBody = parsedOutput.body;
|
|
1142
|
+
const $metadata = deserializeMetadata(output);
|
|
1143
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1138
1144
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
1139
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1145
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1140
1146
|
$fault: "client",
|
|
1141
|
-
$metadata
|
|
1147
|
+
$metadata,
|
|
1142
1148
|
});
|
|
1143
1149
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1144
1150
|
}
|
|
@@ -1163,18 +1169,19 @@ const deserializeAws_json1_1BatchAssociateServiceActionWithProvisioningArtifactC
|
|
|
1163
1169
|
body: await parseBody(output.body, context),
|
|
1164
1170
|
};
|
|
1165
1171
|
let response;
|
|
1166
|
-
|
|
1167
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1172
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1168
1173
|
switch (errorCode) {
|
|
1169
1174
|
case "InvalidParametersException":
|
|
1170
1175
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1171
1176
|
throw await deserializeAws_json1_1InvalidParametersExceptionResponse(parsedOutput, context);
|
|
1172
1177
|
default:
|
|
1173
1178
|
const parsedBody = parsedOutput.body;
|
|
1179
|
+
const $metadata = deserializeMetadata(output);
|
|
1180
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1174
1181
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
1175
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1182
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1176
1183
|
$fault: "client",
|
|
1177
|
-
$metadata
|
|
1184
|
+
$metadata,
|
|
1178
1185
|
});
|
|
1179
1186
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1180
1187
|
}
|
|
@@ -1199,18 +1206,19 @@ const deserializeAws_json1_1BatchDisassociateServiceActionFromProvisioningArtifa
|
|
|
1199
1206
|
body: await parseBody(output.body, context),
|
|
1200
1207
|
};
|
|
1201
1208
|
let response;
|
|
1202
|
-
|
|
1203
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1209
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1204
1210
|
switch (errorCode) {
|
|
1205
1211
|
case "InvalidParametersException":
|
|
1206
1212
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1207
1213
|
throw await deserializeAws_json1_1InvalidParametersExceptionResponse(parsedOutput, context);
|
|
1208
1214
|
default:
|
|
1209
1215
|
const parsedBody = parsedOutput.body;
|
|
1216
|
+
const $metadata = deserializeMetadata(output);
|
|
1217
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1210
1218
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
1211
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1219
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1212
1220
|
$fault: "client",
|
|
1213
|
-
$metadata
|
|
1221
|
+
$metadata,
|
|
1214
1222
|
});
|
|
1215
1223
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1216
1224
|
}
|
|
@@ -1235,8 +1243,7 @@ const deserializeAws_json1_1CopyProductCommandError = async (output, context) =>
|
|
|
1235
1243
|
body: await parseBody(output.body, context),
|
|
1236
1244
|
};
|
|
1237
1245
|
let response;
|
|
1238
|
-
|
|
1239
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1246
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1240
1247
|
switch (errorCode) {
|
|
1241
1248
|
case "InvalidParametersException":
|
|
1242
1249
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -1246,10 +1253,12 @@ const deserializeAws_json1_1CopyProductCommandError = async (output, context) =>
|
|
|
1246
1253
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1247
1254
|
default:
|
|
1248
1255
|
const parsedBody = parsedOutput.body;
|
|
1256
|
+
const $metadata = deserializeMetadata(output);
|
|
1257
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1249
1258
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
1250
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1259
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1251
1260
|
$fault: "client",
|
|
1252
|
-
$metadata
|
|
1261
|
+
$metadata,
|
|
1253
1262
|
});
|
|
1254
1263
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1255
1264
|
}
|
|
@@ -1274,8 +1283,7 @@ const deserializeAws_json1_1CreateConstraintCommandError = async (output, contex
|
|
|
1274
1283
|
body: await parseBody(output.body, context),
|
|
1275
1284
|
};
|
|
1276
1285
|
let response;
|
|
1277
|
-
|
|
1278
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1286
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1279
1287
|
switch (errorCode) {
|
|
1280
1288
|
case "DuplicateResourceException":
|
|
1281
1289
|
case "com.amazonaws.servicecatalog#DuplicateResourceException":
|
|
@@ -1291,10 +1299,12 @@ const deserializeAws_json1_1CreateConstraintCommandError = async (output, contex
|
|
|
1291
1299
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1292
1300
|
default:
|
|
1293
1301
|
const parsedBody = parsedOutput.body;
|
|
1302
|
+
const $metadata = deserializeMetadata(output);
|
|
1303
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1294
1304
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
1295
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1305
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1296
1306
|
$fault: "client",
|
|
1297
|
-
$metadata
|
|
1307
|
+
$metadata,
|
|
1298
1308
|
});
|
|
1299
1309
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1300
1310
|
}
|
|
@@ -1319,8 +1329,7 @@ const deserializeAws_json1_1CreatePortfolioCommandError = async (output, context
|
|
|
1319
1329
|
body: await parseBody(output.body, context),
|
|
1320
1330
|
};
|
|
1321
1331
|
let response;
|
|
1322
|
-
|
|
1323
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1332
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1324
1333
|
switch (errorCode) {
|
|
1325
1334
|
case "InvalidParametersException":
|
|
1326
1335
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -1333,10 +1342,12 @@ const deserializeAws_json1_1CreatePortfolioCommandError = async (output, context
|
|
|
1333
1342
|
throw await deserializeAws_json1_1TagOptionNotMigratedExceptionResponse(parsedOutput, context);
|
|
1334
1343
|
default:
|
|
1335
1344
|
const parsedBody = parsedOutput.body;
|
|
1345
|
+
const $metadata = deserializeMetadata(output);
|
|
1346
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1336
1347
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
1337
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1348
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1338
1349
|
$fault: "client",
|
|
1339
|
-
$metadata
|
|
1350
|
+
$metadata,
|
|
1340
1351
|
});
|
|
1341
1352
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1342
1353
|
}
|
|
@@ -1361,8 +1372,7 @@ const deserializeAws_json1_1CreatePortfolioShareCommandError = async (output, co
|
|
|
1361
1372
|
body: await parseBody(output.body, context),
|
|
1362
1373
|
};
|
|
1363
1374
|
let response;
|
|
1364
|
-
|
|
1365
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1375
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1366
1376
|
switch (errorCode) {
|
|
1367
1377
|
case "InvalidParametersException":
|
|
1368
1378
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -1381,10 +1391,12 @@ const deserializeAws_json1_1CreatePortfolioShareCommandError = async (output, co
|
|
|
1381
1391
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1382
1392
|
default:
|
|
1383
1393
|
const parsedBody = parsedOutput.body;
|
|
1394
|
+
const $metadata = deserializeMetadata(output);
|
|
1395
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1384
1396
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
1385
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1397
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1386
1398
|
$fault: "client",
|
|
1387
|
-
$metadata
|
|
1399
|
+
$metadata,
|
|
1388
1400
|
});
|
|
1389
1401
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1390
1402
|
}
|
|
@@ -1409,8 +1421,7 @@ const deserializeAws_json1_1CreateProductCommandError = async (output, context)
|
|
|
1409
1421
|
body: await parseBody(output.body, context),
|
|
1410
1422
|
};
|
|
1411
1423
|
let response;
|
|
1412
|
-
|
|
1413
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1424
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1414
1425
|
switch (errorCode) {
|
|
1415
1426
|
case "InvalidParametersException":
|
|
1416
1427
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -1423,10 +1434,12 @@ const deserializeAws_json1_1CreateProductCommandError = async (output, context)
|
|
|
1423
1434
|
throw await deserializeAws_json1_1TagOptionNotMigratedExceptionResponse(parsedOutput, context);
|
|
1424
1435
|
default:
|
|
1425
1436
|
const parsedBody = parsedOutput.body;
|
|
1437
|
+
const $metadata = deserializeMetadata(output);
|
|
1438
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1426
1439
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
1427
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1440
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1428
1441
|
$fault: "client",
|
|
1429
|
-
$metadata
|
|
1442
|
+
$metadata,
|
|
1430
1443
|
});
|
|
1431
1444
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1432
1445
|
}
|
|
@@ -1451,8 +1464,7 @@ const deserializeAws_json1_1CreateProvisionedProductPlanCommandError = async (ou
|
|
|
1451
1464
|
body: await parseBody(output.body, context),
|
|
1452
1465
|
};
|
|
1453
1466
|
let response;
|
|
1454
|
-
|
|
1455
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1467
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1456
1468
|
switch (errorCode) {
|
|
1457
1469
|
case "InvalidParametersException":
|
|
1458
1470
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -1465,10 +1477,12 @@ const deserializeAws_json1_1CreateProvisionedProductPlanCommandError = async (ou
|
|
|
1465
1477
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1466
1478
|
default:
|
|
1467
1479
|
const parsedBody = parsedOutput.body;
|
|
1480
|
+
const $metadata = deserializeMetadata(output);
|
|
1481
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1468
1482
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
1469
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1483
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1470
1484
|
$fault: "client",
|
|
1471
|
-
$metadata
|
|
1485
|
+
$metadata,
|
|
1472
1486
|
});
|
|
1473
1487
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1474
1488
|
}
|
|
@@ -1493,8 +1507,7 @@ const deserializeAws_json1_1CreateProvisioningArtifactCommandError = async (outp
|
|
|
1493
1507
|
body: await parseBody(output.body, context),
|
|
1494
1508
|
};
|
|
1495
1509
|
let response;
|
|
1496
|
-
|
|
1497
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1510
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1498
1511
|
switch (errorCode) {
|
|
1499
1512
|
case "InvalidParametersException":
|
|
1500
1513
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -1507,10 +1520,12 @@ const deserializeAws_json1_1CreateProvisioningArtifactCommandError = async (outp
|
|
|
1507
1520
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1508
1521
|
default:
|
|
1509
1522
|
const parsedBody = parsedOutput.body;
|
|
1523
|
+
const $metadata = deserializeMetadata(output);
|
|
1524
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1510
1525
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
1511
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1526
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1512
1527
|
$fault: "client",
|
|
1513
|
-
$metadata
|
|
1528
|
+
$metadata,
|
|
1514
1529
|
});
|
|
1515
1530
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1516
1531
|
}
|
|
@@ -1535,8 +1550,7 @@ const deserializeAws_json1_1CreateServiceActionCommandError = async (output, con
|
|
|
1535
1550
|
body: await parseBody(output.body, context),
|
|
1536
1551
|
};
|
|
1537
1552
|
let response;
|
|
1538
|
-
|
|
1539
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1553
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1540
1554
|
switch (errorCode) {
|
|
1541
1555
|
case "InvalidParametersException":
|
|
1542
1556
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -1546,10 +1560,12 @@ const deserializeAws_json1_1CreateServiceActionCommandError = async (output, con
|
|
|
1546
1560
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1547
1561
|
default:
|
|
1548
1562
|
const parsedBody = parsedOutput.body;
|
|
1563
|
+
const $metadata = deserializeMetadata(output);
|
|
1564
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1549
1565
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
1550
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1566
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1551
1567
|
$fault: "client",
|
|
1552
|
-
$metadata
|
|
1568
|
+
$metadata,
|
|
1553
1569
|
});
|
|
1554
1570
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1555
1571
|
}
|
|
@@ -1574,8 +1590,7 @@ const deserializeAws_json1_1CreateTagOptionCommandError = async (output, context
|
|
|
1574
1590
|
body: await parseBody(output.body, context),
|
|
1575
1591
|
};
|
|
1576
1592
|
let response;
|
|
1577
|
-
|
|
1578
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1593
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1579
1594
|
switch (errorCode) {
|
|
1580
1595
|
case "DuplicateResourceException":
|
|
1581
1596
|
case "com.amazonaws.servicecatalog#DuplicateResourceException":
|
|
@@ -1588,10 +1603,12 @@ const deserializeAws_json1_1CreateTagOptionCommandError = async (output, context
|
|
|
1588
1603
|
throw await deserializeAws_json1_1TagOptionNotMigratedExceptionResponse(parsedOutput, context);
|
|
1589
1604
|
default:
|
|
1590
1605
|
const parsedBody = parsedOutput.body;
|
|
1606
|
+
const $metadata = deserializeMetadata(output);
|
|
1607
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1591
1608
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
1592
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1609
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1593
1610
|
$fault: "client",
|
|
1594
|
-
$metadata
|
|
1611
|
+
$metadata,
|
|
1595
1612
|
});
|
|
1596
1613
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1597
1614
|
}
|
|
@@ -1616,8 +1633,7 @@ const deserializeAws_json1_1DeleteConstraintCommandError = async (output, contex
|
|
|
1616
1633
|
body: await parseBody(output.body, context),
|
|
1617
1634
|
};
|
|
1618
1635
|
let response;
|
|
1619
|
-
|
|
1620
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1636
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1621
1637
|
switch (errorCode) {
|
|
1622
1638
|
case "InvalidParametersException":
|
|
1623
1639
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -1627,10 +1643,12 @@ const deserializeAws_json1_1DeleteConstraintCommandError = async (output, contex
|
|
|
1627
1643
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1628
1644
|
default:
|
|
1629
1645
|
const parsedBody = parsedOutput.body;
|
|
1646
|
+
const $metadata = deserializeMetadata(output);
|
|
1647
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1630
1648
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
1631
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1649
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1632
1650
|
$fault: "client",
|
|
1633
|
-
$metadata
|
|
1651
|
+
$metadata,
|
|
1634
1652
|
});
|
|
1635
1653
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1636
1654
|
}
|
|
@@ -1655,8 +1673,7 @@ const deserializeAws_json1_1DeletePortfolioCommandError = async (output, context
|
|
|
1655
1673
|
body: await parseBody(output.body, context),
|
|
1656
1674
|
};
|
|
1657
1675
|
let response;
|
|
1658
|
-
|
|
1659
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1676
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1660
1677
|
switch (errorCode) {
|
|
1661
1678
|
case "InvalidParametersException":
|
|
1662
1679
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -1672,10 +1689,12 @@ const deserializeAws_json1_1DeletePortfolioCommandError = async (output, context
|
|
|
1672
1689
|
throw await deserializeAws_json1_1TagOptionNotMigratedExceptionResponse(parsedOutput, context);
|
|
1673
1690
|
default:
|
|
1674
1691
|
const parsedBody = parsedOutput.body;
|
|
1692
|
+
const $metadata = deserializeMetadata(output);
|
|
1693
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1675
1694
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
1676
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1695
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1677
1696
|
$fault: "client",
|
|
1678
|
-
$metadata
|
|
1697
|
+
$metadata,
|
|
1679
1698
|
});
|
|
1680
1699
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1681
1700
|
}
|
|
@@ -1700,8 +1719,7 @@ const deserializeAws_json1_1DeletePortfolioShareCommandError = async (output, co
|
|
|
1700
1719
|
body: await parseBody(output.body, context),
|
|
1701
1720
|
};
|
|
1702
1721
|
let response;
|
|
1703
|
-
|
|
1704
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1722
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1705
1723
|
switch (errorCode) {
|
|
1706
1724
|
case "InvalidParametersException":
|
|
1707
1725
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -1717,10 +1735,12 @@ const deserializeAws_json1_1DeletePortfolioShareCommandError = async (output, co
|
|
|
1717
1735
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1718
1736
|
default:
|
|
1719
1737
|
const parsedBody = parsedOutput.body;
|
|
1738
|
+
const $metadata = deserializeMetadata(output);
|
|
1739
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1720
1740
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
1721
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1741
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1722
1742
|
$fault: "client",
|
|
1723
|
-
$metadata
|
|
1743
|
+
$metadata,
|
|
1724
1744
|
});
|
|
1725
1745
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1726
1746
|
}
|
|
@@ -1745,8 +1765,7 @@ const deserializeAws_json1_1DeleteProductCommandError = async (output, context)
|
|
|
1745
1765
|
body: await parseBody(output.body, context),
|
|
1746
1766
|
};
|
|
1747
1767
|
let response;
|
|
1748
|
-
|
|
1749
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1768
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1750
1769
|
switch (errorCode) {
|
|
1751
1770
|
case "InvalidParametersException":
|
|
1752
1771
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -1762,10 +1781,12 @@ const deserializeAws_json1_1DeleteProductCommandError = async (output, context)
|
|
|
1762
1781
|
throw await deserializeAws_json1_1TagOptionNotMigratedExceptionResponse(parsedOutput, context);
|
|
1763
1782
|
default:
|
|
1764
1783
|
const parsedBody = parsedOutput.body;
|
|
1784
|
+
const $metadata = deserializeMetadata(output);
|
|
1785
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1765
1786
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
1766
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1787
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1767
1788
|
$fault: "client",
|
|
1768
|
-
$metadata
|
|
1789
|
+
$metadata,
|
|
1769
1790
|
});
|
|
1770
1791
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1771
1792
|
}
|
|
@@ -1790,8 +1811,7 @@ const deserializeAws_json1_1DeleteProvisionedProductPlanCommandError = async (ou
|
|
|
1790
1811
|
body: await parseBody(output.body, context),
|
|
1791
1812
|
};
|
|
1792
1813
|
let response;
|
|
1793
|
-
|
|
1794
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1814
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1795
1815
|
switch (errorCode) {
|
|
1796
1816
|
case "InvalidParametersException":
|
|
1797
1817
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -1801,10 +1821,12 @@ const deserializeAws_json1_1DeleteProvisionedProductPlanCommandError = async (ou
|
|
|
1801
1821
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1802
1822
|
default:
|
|
1803
1823
|
const parsedBody = parsedOutput.body;
|
|
1824
|
+
const $metadata = deserializeMetadata(output);
|
|
1825
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1804
1826
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
1805
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1827
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1806
1828
|
$fault: "client",
|
|
1807
|
-
$metadata
|
|
1829
|
+
$metadata,
|
|
1808
1830
|
});
|
|
1809
1831
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1810
1832
|
}
|
|
@@ -1829,8 +1851,7 @@ const deserializeAws_json1_1DeleteProvisioningArtifactCommandError = async (outp
|
|
|
1829
1851
|
body: await parseBody(output.body, context),
|
|
1830
1852
|
};
|
|
1831
1853
|
let response;
|
|
1832
|
-
|
|
1833
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1854
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1834
1855
|
switch (errorCode) {
|
|
1835
1856
|
case "InvalidParametersException":
|
|
1836
1857
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -1843,10 +1864,12 @@ const deserializeAws_json1_1DeleteProvisioningArtifactCommandError = async (outp
|
|
|
1843
1864
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1844
1865
|
default:
|
|
1845
1866
|
const parsedBody = parsedOutput.body;
|
|
1867
|
+
const $metadata = deserializeMetadata(output);
|
|
1868
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1846
1869
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
1847
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1870
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1848
1871
|
$fault: "client",
|
|
1849
|
-
$metadata
|
|
1872
|
+
$metadata,
|
|
1850
1873
|
});
|
|
1851
1874
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1852
1875
|
}
|
|
@@ -1871,8 +1894,7 @@ const deserializeAws_json1_1DeleteServiceActionCommandError = async (output, con
|
|
|
1871
1894
|
body: await parseBody(output.body, context),
|
|
1872
1895
|
};
|
|
1873
1896
|
let response;
|
|
1874
|
-
|
|
1875
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1897
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1876
1898
|
switch (errorCode) {
|
|
1877
1899
|
case "ResourceInUseException":
|
|
1878
1900
|
case "com.amazonaws.servicecatalog#ResourceInUseException":
|
|
@@ -1882,10 +1904,12 @@ const deserializeAws_json1_1DeleteServiceActionCommandError = async (output, con
|
|
|
1882
1904
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1883
1905
|
default:
|
|
1884
1906
|
const parsedBody = parsedOutput.body;
|
|
1907
|
+
const $metadata = deserializeMetadata(output);
|
|
1908
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1885
1909
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
1886
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1910
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1887
1911
|
$fault: "client",
|
|
1888
|
-
$metadata
|
|
1912
|
+
$metadata,
|
|
1889
1913
|
});
|
|
1890
1914
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1891
1915
|
}
|
|
@@ -1910,8 +1934,7 @@ const deserializeAws_json1_1DeleteTagOptionCommandError = async (output, context
|
|
|
1910
1934
|
body: await parseBody(output.body, context),
|
|
1911
1935
|
};
|
|
1912
1936
|
let response;
|
|
1913
|
-
|
|
1914
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1937
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1915
1938
|
switch (errorCode) {
|
|
1916
1939
|
case "ResourceInUseException":
|
|
1917
1940
|
case "com.amazonaws.servicecatalog#ResourceInUseException":
|
|
@@ -1924,10 +1947,12 @@ const deserializeAws_json1_1DeleteTagOptionCommandError = async (output, context
|
|
|
1924
1947
|
throw await deserializeAws_json1_1TagOptionNotMigratedExceptionResponse(parsedOutput, context);
|
|
1925
1948
|
default:
|
|
1926
1949
|
const parsedBody = parsedOutput.body;
|
|
1950
|
+
const $metadata = deserializeMetadata(output);
|
|
1951
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1927
1952
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
1928
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1953
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1929
1954
|
$fault: "client",
|
|
1930
|
-
$metadata
|
|
1955
|
+
$metadata,
|
|
1931
1956
|
});
|
|
1932
1957
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1933
1958
|
}
|
|
@@ -1952,18 +1977,19 @@ const deserializeAws_json1_1DescribeConstraintCommandError = async (output, cont
|
|
|
1952
1977
|
body: await parseBody(output.body, context),
|
|
1953
1978
|
};
|
|
1954
1979
|
let response;
|
|
1955
|
-
|
|
1956
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1980
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1957
1981
|
switch (errorCode) {
|
|
1958
1982
|
case "ResourceNotFoundException":
|
|
1959
1983
|
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1960
1984
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1961
1985
|
default:
|
|
1962
1986
|
const parsedBody = parsedOutput.body;
|
|
1987
|
+
const $metadata = deserializeMetadata(output);
|
|
1988
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1963
1989
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
1964
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1990
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1965
1991
|
$fault: "client",
|
|
1966
|
-
$metadata
|
|
1992
|
+
$metadata,
|
|
1967
1993
|
});
|
|
1968
1994
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1969
1995
|
}
|
|
@@ -1988,18 +2014,19 @@ const deserializeAws_json1_1DescribeCopyProductStatusCommandError = async (outpu
|
|
|
1988
2014
|
body: await parseBody(output.body, context),
|
|
1989
2015
|
};
|
|
1990
2016
|
let response;
|
|
1991
|
-
|
|
1992
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2017
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1993
2018
|
switch (errorCode) {
|
|
1994
2019
|
case "ResourceNotFoundException":
|
|
1995
2020
|
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1996
2021
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1997
2022
|
default:
|
|
1998
2023
|
const parsedBody = parsedOutput.body;
|
|
2024
|
+
const $metadata = deserializeMetadata(output);
|
|
2025
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1999
2026
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
2000
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2027
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2001
2028
|
$fault: "client",
|
|
2002
|
-
$metadata
|
|
2029
|
+
$metadata,
|
|
2003
2030
|
});
|
|
2004
2031
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2005
2032
|
}
|
|
@@ -2024,18 +2051,19 @@ const deserializeAws_json1_1DescribePortfolioCommandError = async (output, conte
|
|
|
2024
2051
|
body: await parseBody(output.body, context),
|
|
2025
2052
|
};
|
|
2026
2053
|
let response;
|
|
2027
|
-
|
|
2028
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2054
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2029
2055
|
switch (errorCode) {
|
|
2030
2056
|
case "ResourceNotFoundException":
|
|
2031
2057
|
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2032
2058
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2033
2059
|
default:
|
|
2034
2060
|
const parsedBody = parsedOutput.body;
|
|
2061
|
+
const $metadata = deserializeMetadata(output);
|
|
2062
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2035
2063
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
2036
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2064
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2037
2065
|
$fault: "client",
|
|
2038
|
-
$metadata
|
|
2066
|
+
$metadata,
|
|
2039
2067
|
});
|
|
2040
2068
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2041
2069
|
}
|
|
@@ -2060,8 +2088,7 @@ const deserializeAws_json1_1DescribePortfolioSharesCommandError = async (output,
|
|
|
2060
2088
|
body: await parseBody(output.body, context),
|
|
2061
2089
|
};
|
|
2062
2090
|
let response;
|
|
2063
|
-
|
|
2064
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2091
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2065
2092
|
switch (errorCode) {
|
|
2066
2093
|
case "InvalidParametersException":
|
|
2067
2094
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -2071,10 +2098,12 @@ const deserializeAws_json1_1DescribePortfolioSharesCommandError = async (output,
|
|
|
2071
2098
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2072
2099
|
default:
|
|
2073
2100
|
const parsedBody = parsedOutput.body;
|
|
2101
|
+
const $metadata = deserializeMetadata(output);
|
|
2102
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2074
2103
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
2075
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2104
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2076
2105
|
$fault: "client",
|
|
2077
|
-
$metadata
|
|
2106
|
+
$metadata,
|
|
2078
2107
|
});
|
|
2079
2108
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2080
2109
|
}
|
|
@@ -2099,8 +2128,7 @@ const deserializeAws_json1_1DescribePortfolioShareStatusCommandError = async (ou
|
|
|
2099
2128
|
body: await parseBody(output.body, context),
|
|
2100
2129
|
};
|
|
2101
2130
|
let response;
|
|
2102
|
-
|
|
2103
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2131
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2104
2132
|
switch (errorCode) {
|
|
2105
2133
|
case "InvalidParametersException":
|
|
2106
2134
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -2113,10 +2141,12 @@ const deserializeAws_json1_1DescribePortfolioShareStatusCommandError = async (ou
|
|
|
2113
2141
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2114
2142
|
default:
|
|
2115
2143
|
const parsedBody = parsedOutput.body;
|
|
2144
|
+
const $metadata = deserializeMetadata(output);
|
|
2145
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2116
2146
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
2117
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2147
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2118
2148
|
$fault: "client",
|
|
2119
|
-
$metadata
|
|
2149
|
+
$metadata,
|
|
2120
2150
|
});
|
|
2121
2151
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2122
2152
|
}
|
|
@@ -2141,8 +2171,7 @@ const deserializeAws_json1_1DescribeProductCommandError = async (output, context
|
|
|
2141
2171
|
body: await parseBody(output.body, context),
|
|
2142
2172
|
};
|
|
2143
2173
|
let response;
|
|
2144
|
-
|
|
2145
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2174
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2146
2175
|
switch (errorCode) {
|
|
2147
2176
|
case "InvalidParametersException":
|
|
2148
2177
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -2152,10 +2181,12 @@ const deserializeAws_json1_1DescribeProductCommandError = async (output, context
|
|
|
2152
2181
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2153
2182
|
default:
|
|
2154
2183
|
const parsedBody = parsedOutput.body;
|
|
2184
|
+
const $metadata = deserializeMetadata(output);
|
|
2185
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2155
2186
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
2156
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2187
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2157
2188
|
$fault: "client",
|
|
2158
|
-
$metadata
|
|
2189
|
+
$metadata,
|
|
2159
2190
|
});
|
|
2160
2191
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2161
2192
|
}
|
|
@@ -2180,8 +2211,7 @@ const deserializeAws_json1_1DescribeProductAsAdminCommandError = async (output,
|
|
|
2180
2211
|
body: await parseBody(output.body, context),
|
|
2181
2212
|
};
|
|
2182
2213
|
let response;
|
|
2183
|
-
|
|
2184
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2214
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2185
2215
|
switch (errorCode) {
|
|
2186
2216
|
case "InvalidParametersException":
|
|
2187
2217
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -2191,10 +2221,12 @@ const deserializeAws_json1_1DescribeProductAsAdminCommandError = async (output,
|
|
|
2191
2221
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2192
2222
|
default:
|
|
2193
2223
|
const parsedBody = parsedOutput.body;
|
|
2224
|
+
const $metadata = deserializeMetadata(output);
|
|
2225
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2194
2226
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
2195
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2227
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2196
2228
|
$fault: "client",
|
|
2197
|
-
$metadata
|
|
2229
|
+
$metadata,
|
|
2198
2230
|
});
|
|
2199
2231
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2200
2232
|
}
|
|
@@ -2219,8 +2251,7 @@ const deserializeAws_json1_1DescribeProductViewCommandError = async (output, con
|
|
|
2219
2251
|
body: await parseBody(output.body, context),
|
|
2220
2252
|
};
|
|
2221
2253
|
let response;
|
|
2222
|
-
|
|
2223
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2254
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2224
2255
|
switch (errorCode) {
|
|
2225
2256
|
case "InvalidParametersException":
|
|
2226
2257
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -2230,10 +2261,12 @@ const deserializeAws_json1_1DescribeProductViewCommandError = async (output, con
|
|
|
2230
2261
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2231
2262
|
default:
|
|
2232
2263
|
const parsedBody = parsedOutput.body;
|
|
2264
|
+
const $metadata = deserializeMetadata(output);
|
|
2265
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2233
2266
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
2234
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2267
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2235
2268
|
$fault: "client",
|
|
2236
|
-
$metadata
|
|
2269
|
+
$metadata,
|
|
2237
2270
|
});
|
|
2238
2271
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2239
2272
|
}
|
|
@@ -2258,8 +2291,7 @@ const deserializeAws_json1_1DescribeProvisionedProductCommandError = async (outp
|
|
|
2258
2291
|
body: await parseBody(output.body, context),
|
|
2259
2292
|
};
|
|
2260
2293
|
let response;
|
|
2261
|
-
|
|
2262
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2294
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2263
2295
|
switch (errorCode) {
|
|
2264
2296
|
case "InvalidParametersException":
|
|
2265
2297
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -2269,10 +2301,12 @@ const deserializeAws_json1_1DescribeProvisionedProductCommandError = async (outp
|
|
|
2269
2301
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2270
2302
|
default:
|
|
2271
2303
|
const parsedBody = parsedOutput.body;
|
|
2304
|
+
const $metadata = deserializeMetadata(output);
|
|
2305
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2272
2306
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
2273
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2307
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2274
2308
|
$fault: "client",
|
|
2275
|
-
$metadata
|
|
2309
|
+
$metadata,
|
|
2276
2310
|
});
|
|
2277
2311
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2278
2312
|
}
|
|
@@ -2297,8 +2331,7 @@ const deserializeAws_json1_1DescribeProvisionedProductPlanCommandError = async (
|
|
|
2297
2331
|
body: await parseBody(output.body, context),
|
|
2298
2332
|
};
|
|
2299
2333
|
let response;
|
|
2300
|
-
|
|
2301
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2334
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2302
2335
|
switch (errorCode) {
|
|
2303
2336
|
case "InvalidParametersException":
|
|
2304
2337
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -2308,10 +2341,12 @@ const deserializeAws_json1_1DescribeProvisionedProductPlanCommandError = async (
|
|
|
2308
2341
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2309
2342
|
default:
|
|
2310
2343
|
const parsedBody = parsedOutput.body;
|
|
2344
|
+
const $metadata = deserializeMetadata(output);
|
|
2345
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2311
2346
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
2312
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2347
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2313
2348
|
$fault: "client",
|
|
2314
|
-
$metadata
|
|
2349
|
+
$metadata,
|
|
2315
2350
|
});
|
|
2316
2351
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2317
2352
|
}
|
|
@@ -2336,8 +2371,7 @@ const deserializeAws_json1_1DescribeProvisioningArtifactCommandError = async (ou
|
|
|
2336
2371
|
body: await parseBody(output.body, context),
|
|
2337
2372
|
};
|
|
2338
2373
|
let response;
|
|
2339
|
-
|
|
2340
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2374
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2341
2375
|
switch (errorCode) {
|
|
2342
2376
|
case "InvalidParametersException":
|
|
2343
2377
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -2347,10 +2381,12 @@ const deserializeAws_json1_1DescribeProvisioningArtifactCommandError = async (ou
|
|
|
2347
2381
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2348
2382
|
default:
|
|
2349
2383
|
const parsedBody = parsedOutput.body;
|
|
2384
|
+
const $metadata = deserializeMetadata(output);
|
|
2385
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2350
2386
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
2351
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2387
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2352
2388
|
$fault: "client",
|
|
2353
|
-
$metadata
|
|
2389
|
+
$metadata,
|
|
2354
2390
|
});
|
|
2355
2391
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2356
2392
|
}
|
|
@@ -2375,8 +2411,7 @@ const deserializeAws_json1_1DescribeProvisioningParametersCommandError = async (
|
|
|
2375
2411
|
body: await parseBody(output.body, context),
|
|
2376
2412
|
};
|
|
2377
2413
|
let response;
|
|
2378
|
-
|
|
2379
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2414
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2380
2415
|
switch (errorCode) {
|
|
2381
2416
|
case "InvalidParametersException":
|
|
2382
2417
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -2386,10 +2421,12 @@ const deserializeAws_json1_1DescribeProvisioningParametersCommandError = async (
|
|
|
2386
2421
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2387
2422
|
default:
|
|
2388
2423
|
const parsedBody = parsedOutput.body;
|
|
2424
|
+
const $metadata = deserializeMetadata(output);
|
|
2425
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2389
2426
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
2390
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2427
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2391
2428
|
$fault: "client",
|
|
2392
|
-
$metadata
|
|
2429
|
+
$metadata,
|
|
2393
2430
|
});
|
|
2394
2431
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2395
2432
|
}
|
|
@@ -2414,18 +2451,19 @@ const deserializeAws_json1_1DescribeRecordCommandError = async (output, context)
|
|
|
2414
2451
|
body: await parseBody(output.body, context),
|
|
2415
2452
|
};
|
|
2416
2453
|
let response;
|
|
2417
|
-
|
|
2418
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2454
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2419
2455
|
switch (errorCode) {
|
|
2420
2456
|
case "ResourceNotFoundException":
|
|
2421
2457
|
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2422
2458
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2423
2459
|
default:
|
|
2424
2460
|
const parsedBody = parsedOutput.body;
|
|
2461
|
+
const $metadata = deserializeMetadata(output);
|
|
2462
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2425
2463
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
2426
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2464
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2427
2465
|
$fault: "client",
|
|
2428
|
-
$metadata
|
|
2466
|
+
$metadata,
|
|
2429
2467
|
});
|
|
2430
2468
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2431
2469
|
}
|
|
@@ -2450,18 +2488,19 @@ const deserializeAws_json1_1DescribeServiceActionCommandError = async (output, c
|
|
|
2450
2488
|
body: await parseBody(output.body, context),
|
|
2451
2489
|
};
|
|
2452
2490
|
let response;
|
|
2453
|
-
|
|
2454
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2491
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2455
2492
|
switch (errorCode) {
|
|
2456
2493
|
case "ResourceNotFoundException":
|
|
2457
2494
|
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2458
2495
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2459
2496
|
default:
|
|
2460
2497
|
const parsedBody = parsedOutput.body;
|
|
2498
|
+
const $metadata = deserializeMetadata(output);
|
|
2499
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2461
2500
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
2462
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2501
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2463
2502
|
$fault: "client",
|
|
2464
|
-
$metadata
|
|
2503
|
+
$metadata,
|
|
2465
2504
|
});
|
|
2466
2505
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2467
2506
|
}
|
|
@@ -2486,8 +2525,7 @@ const deserializeAws_json1_1DescribeServiceActionExecutionParametersCommandError
|
|
|
2486
2525
|
body: await parseBody(output.body, context),
|
|
2487
2526
|
};
|
|
2488
2527
|
let response;
|
|
2489
|
-
|
|
2490
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2528
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2491
2529
|
switch (errorCode) {
|
|
2492
2530
|
case "InvalidParametersException":
|
|
2493
2531
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -2497,10 +2535,12 @@ const deserializeAws_json1_1DescribeServiceActionExecutionParametersCommandError
|
|
|
2497
2535
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2498
2536
|
default:
|
|
2499
2537
|
const parsedBody = parsedOutput.body;
|
|
2538
|
+
const $metadata = deserializeMetadata(output);
|
|
2539
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2500
2540
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
2501
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2541
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2502
2542
|
$fault: "client",
|
|
2503
|
-
$metadata
|
|
2543
|
+
$metadata,
|
|
2504
2544
|
});
|
|
2505
2545
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2506
2546
|
}
|
|
@@ -2525,8 +2565,7 @@ const deserializeAws_json1_1DescribeTagOptionCommandError = async (output, conte
|
|
|
2525
2565
|
body: await parseBody(output.body, context),
|
|
2526
2566
|
};
|
|
2527
2567
|
let response;
|
|
2528
|
-
|
|
2529
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2568
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2530
2569
|
switch (errorCode) {
|
|
2531
2570
|
case "ResourceNotFoundException":
|
|
2532
2571
|
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
@@ -2536,10 +2575,12 @@ const deserializeAws_json1_1DescribeTagOptionCommandError = async (output, conte
|
|
|
2536
2575
|
throw await deserializeAws_json1_1TagOptionNotMigratedExceptionResponse(parsedOutput, context);
|
|
2537
2576
|
default:
|
|
2538
2577
|
const parsedBody = parsedOutput.body;
|
|
2578
|
+
const $metadata = deserializeMetadata(output);
|
|
2579
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2539
2580
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
2540
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2581
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2541
2582
|
$fault: "client",
|
|
2542
|
-
$metadata
|
|
2583
|
+
$metadata,
|
|
2543
2584
|
});
|
|
2544
2585
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2545
2586
|
}
|
|
@@ -2564,8 +2605,7 @@ const deserializeAws_json1_1DisableAWSOrganizationsAccessCommandError = async (o
|
|
|
2564
2605
|
body: await parseBody(output.body, context),
|
|
2565
2606
|
};
|
|
2566
2607
|
let response;
|
|
2567
|
-
|
|
2568
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2608
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2569
2609
|
switch (errorCode) {
|
|
2570
2610
|
case "InvalidStateException":
|
|
2571
2611
|
case "com.amazonaws.servicecatalog#InvalidStateException":
|
|
@@ -2578,10 +2618,12 @@ const deserializeAws_json1_1DisableAWSOrganizationsAccessCommandError = async (o
|
|
|
2578
2618
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2579
2619
|
default:
|
|
2580
2620
|
const parsedBody = parsedOutput.body;
|
|
2621
|
+
const $metadata = deserializeMetadata(output);
|
|
2622
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2581
2623
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
2582
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2624
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2583
2625
|
$fault: "client",
|
|
2584
|
-
$metadata
|
|
2626
|
+
$metadata,
|
|
2585
2627
|
});
|
|
2586
2628
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2587
2629
|
}
|
|
@@ -2606,18 +2648,19 @@ const deserializeAws_json1_1DisassociateBudgetFromResourceCommandError = async (
|
|
|
2606
2648
|
body: await parseBody(output.body, context),
|
|
2607
2649
|
};
|
|
2608
2650
|
let response;
|
|
2609
|
-
|
|
2610
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2651
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2611
2652
|
switch (errorCode) {
|
|
2612
2653
|
case "ResourceNotFoundException":
|
|
2613
2654
|
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2614
2655
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2615
2656
|
default:
|
|
2616
2657
|
const parsedBody = parsedOutput.body;
|
|
2658
|
+
const $metadata = deserializeMetadata(output);
|
|
2659
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2617
2660
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
2618
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2661
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2619
2662
|
$fault: "client",
|
|
2620
|
-
$metadata
|
|
2663
|
+
$metadata,
|
|
2621
2664
|
});
|
|
2622
2665
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2623
2666
|
}
|
|
@@ -2642,8 +2685,7 @@ const deserializeAws_json1_1DisassociatePrincipalFromPortfolioCommandError = asy
|
|
|
2642
2685
|
body: await parseBody(output.body, context),
|
|
2643
2686
|
};
|
|
2644
2687
|
let response;
|
|
2645
|
-
|
|
2646
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2688
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2647
2689
|
switch (errorCode) {
|
|
2648
2690
|
case "InvalidParametersException":
|
|
2649
2691
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -2653,10 +2695,12 @@ const deserializeAws_json1_1DisassociatePrincipalFromPortfolioCommandError = asy
|
|
|
2653
2695
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2654
2696
|
default:
|
|
2655
2697
|
const parsedBody = parsedOutput.body;
|
|
2698
|
+
const $metadata = deserializeMetadata(output);
|
|
2699
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2656
2700
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
2657
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2701
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2658
2702
|
$fault: "client",
|
|
2659
|
-
$metadata
|
|
2703
|
+
$metadata,
|
|
2660
2704
|
});
|
|
2661
2705
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2662
2706
|
}
|
|
@@ -2681,8 +2725,7 @@ const deserializeAws_json1_1DisassociateProductFromPortfolioCommandError = async
|
|
|
2681
2725
|
body: await parseBody(output.body, context),
|
|
2682
2726
|
};
|
|
2683
2727
|
let response;
|
|
2684
|
-
|
|
2685
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2728
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2686
2729
|
switch (errorCode) {
|
|
2687
2730
|
case "InvalidParametersException":
|
|
2688
2731
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -2695,10 +2738,12 @@ const deserializeAws_json1_1DisassociateProductFromPortfolioCommandError = async
|
|
|
2695
2738
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2696
2739
|
default:
|
|
2697
2740
|
const parsedBody = parsedOutput.body;
|
|
2741
|
+
const $metadata = deserializeMetadata(output);
|
|
2742
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2698
2743
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
2699
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2744
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2700
2745
|
$fault: "client",
|
|
2701
|
-
$metadata
|
|
2746
|
+
$metadata,
|
|
2702
2747
|
});
|
|
2703
2748
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2704
2749
|
}
|
|
@@ -2723,18 +2768,19 @@ const deserializeAws_json1_1DisassociateServiceActionFromProvisioningArtifactCom
|
|
|
2723
2768
|
body: await parseBody(output.body, context),
|
|
2724
2769
|
};
|
|
2725
2770
|
let response;
|
|
2726
|
-
|
|
2727
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2771
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2728
2772
|
switch (errorCode) {
|
|
2729
2773
|
case "ResourceNotFoundException":
|
|
2730
2774
|
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2731
2775
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2732
2776
|
default:
|
|
2733
2777
|
const parsedBody = parsedOutput.body;
|
|
2778
|
+
const $metadata = deserializeMetadata(output);
|
|
2779
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2734
2780
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
2735
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2781
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2736
2782
|
$fault: "client",
|
|
2737
|
-
$metadata
|
|
2783
|
+
$metadata,
|
|
2738
2784
|
});
|
|
2739
2785
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2740
2786
|
}
|
|
@@ -2759,8 +2805,7 @@ const deserializeAws_json1_1DisassociateTagOptionFromResourceCommandError = asyn
|
|
|
2759
2805
|
body: await parseBody(output.body, context),
|
|
2760
2806
|
};
|
|
2761
2807
|
let response;
|
|
2762
|
-
|
|
2763
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2808
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2764
2809
|
switch (errorCode) {
|
|
2765
2810
|
case "ResourceNotFoundException":
|
|
2766
2811
|
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
@@ -2770,10 +2815,12 @@ const deserializeAws_json1_1DisassociateTagOptionFromResourceCommandError = asyn
|
|
|
2770
2815
|
throw await deserializeAws_json1_1TagOptionNotMigratedExceptionResponse(parsedOutput, context);
|
|
2771
2816
|
default:
|
|
2772
2817
|
const parsedBody = parsedOutput.body;
|
|
2818
|
+
const $metadata = deserializeMetadata(output);
|
|
2819
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2773
2820
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
2774
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2821
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2775
2822
|
$fault: "client",
|
|
2776
|
-
$metadata
|
|
2823
|
+
$metadata,
|
|
2777
2824
|
});
|
|
2778
2825
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2779
2826
|
}
|
|
@@ -2798,8 +2845,7 @@ const deserializeAws_json1_1EnableAWSOrganizationsAccessCommandError = async (ou
|
|
|
2798
2845
|
body: await parseBody(output.body, context),
|
|
2799
2846
|
};
|
|
2800
2847
|
let response;
|
|
2801
|
-
|
|
2802
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2848
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2803
2849
|
switch (errorCode) {
|
|
2804
2850
|
case "InvalidStateException":
|
|
2805
2851
|
case "com.amazonaws.servicecatalog#InvalidStateException":
|
|
@@ -2812,10 +2858,12 @@ const deserializeAws_json1_1EnableAWSOrganizationsAccessCommandError = async (ou
|
|
|
2812
2858
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2813
2859
|
default:
|
|
2814
2860
|
const parsedBody = parsedOutput.body;
|
|
2861
|
+
const $metadata = deserializeMetadata(output);
|
|
2862
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2815
2863
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
2816
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2864
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2817
2865
|
$fault: "client",
|
|
2818
|
-
$metadata
|
|
2866
|
+
$metadata,
|
|
2819
2867
|
});
|
|
2820
2868
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2821
2869
|
}
|
|
@@ -2840,8 +2888,7 @@ const deserializeAws_json1_1ExecuteProvisionedProductPlanCommandError = async (o
|
|
|
2840
2888
|
body: await parseBody(output.body, context),
|
|
2841
2889
|
};
|
|
2842
2890
|
let response;
|
|
2843
|
-
|
|
2844
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2891
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2845
2892
|
switch (errorCode) {
|
|
2846
2893
|
case "InvalidParametersException":
|
|
2847
2894
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -2854,10 +2901,12 @@ const deserializeAws_json1_1ExecuteProvisionedProductPlanCommandError = async (o
|
|
|
2854
2901
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2855
2902
|
default:
|
|
2856
2903
|
const parsedBody = parsedOutput.body;
|
|
2904
|
+
const $metadata = deserializeMetadata(output);
|
|
2905
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2857
2906
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
2858
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2907
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2859
2908
|
$fault: "client",
|
|
2860
|
-
$metadata
|
|
2909
|
+
$metadata,
|
|
2861
2910
|
});
|
|
2862
2911
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2863
2912
|
}
|
|
@@ -2882,8 +2931,7 @@ const deserializeAws_json1_1ExecuteProvisionedProductServiceActionCommandError =
|
|
|
2882
2931
|
body: await parseBody(output.body, context),
|
|
2883
2932
|
};
|
|
2884
2933
|
let response;
|
|
2885
|
-
|
|
2886
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2934
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2887
2935
|
switch (errorCode) {
|
|
2888
2936
|
case "InvalidParametersException":
|
|
2889
2937
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -2896,10 +2944,12 @@ const deserializeAws_json1_1ExecuteProvisionedProductServiceActionCommandError =
|
|
|
2896
2944
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2897
2945
|
default:
|
|
2898
2946
|
const parsedBody = parsedOutput.body;
|
|
2947
|
+
const $metadata = deserializeMetadata(output);
|
|
2948
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2899
2949
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
2900
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2950
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2901
2951
|
$fault: "client",
|
|
2902
|
-
$metadata
|
|
2952
|
+
$metadata,
|
|
2903
2953
|
});
|
|
2904
2954
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2905
2955
|
}
|
|
@@ -2924,8 +2974,7 @@ const deserializeAws_json1_1GetAWSOrganizationsAccessStatusCommandError = async
|
|
|
2924
2974
|
body: await parseBody(output.body, context),
|
|
2925
2975
|
};
|
|
2926
2976
|
let response;
|
|
2927
|
-
|
|
2928
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2977
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2929
2978
|
switch (errorCode) {
|
|
2930
2979
|
case "OperationNotSupportedException":
|
|
2931
2980
|
case "com.amazonaws.servicecatalog#OperationNotSupportedException":
|
|
@@ -2935,10 +2984,12 @@ const deserializeAws_json1_1GetAWSOrganizationsAccessStatusCommandError = async
|
|
|
2935
2984
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2936
2985
|
default:
|
|
2937
2986
|
const parsedBody = parsedOutput.body;
|
|
2987
|
+
const $metadata = deserializeMetadata(output);
|
|
2988
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2938
2989
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
2939
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2990
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2940
2991
|
$fault: "client",
|
|
2941
|
-
$metadata
|
|
2992
|
+
$metadata,
|
|
2942
2993
|
});
|
|
2943
2994
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2944
2995
|
}
|
|
@@ -2963,8 +3014,7 @@ const deserializeAws_json1_1GetProvisionedProductOutputsCommandError = async (ou
|
|
|
2963
3014
|
body: await parseBody(output.body, context),
|
|
2964
3015
|
};
|
|
2965
3016
|
let response;
|
|
2966
|
-
|
|
2967
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3017
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2968
3018
|
switch (errorCode) {
|
|
2969
3019
|
case "InvalidParametersException":
|
|
2970
3020
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -2974,10 +3024,12 @@ const deserializeAws_json1_1GetProvisionedProductOutputsCommandError = async (ou
|
|
|
2974
3024
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2975
3025
|
default:
|
|
2976
3026
|
const parsedBody = parsedOutput.body;
|
|
3027
|
+
const $metadata = deserializeMetadata(output);
|
|
3028
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2977
3029
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
2978
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3030
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2979
3031
|
$fault: "client",
|
|
2980
|
-
$metadata
|
|
3032
|
+
$metadata,
|
|
2981
3033
|
});
|
|
2982
3034
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2983
3035
|
}
|
|
@@ -3002,8 +3054,7 @@ const deserializeAws_json1_1ImportAsProvisionedProductCommandError = async (outp
|
|
|
3002
3054
|
body: await parseBody(output.body, context),
|
|
3003
3055
|
};
|
|
3004
3056
|
let response;
|
|
3005
|
-
|
|
3006
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3057
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3007
3058
|
switch (errorCode) {
|
|
3008
3059
|
case "DuplicateResourceException":
|
|
3009
3060
|
case "com.amazonaws.servicecatalog#DuplicateResourceException":
|
|
@@ -3019,10 +3070,12 @@ const deserializeAws_json1_1ImportAsProvisionedProductCommandError = async (outp
|
|
|
3019
3070
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3020
3071
|
default:
|
|
3021
3072
|
const parsedBody = parsedOutput.body;
|
|
3073
|
+
const $metadata = deserializeMetadata(output);
|
|
3074
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3022
3075
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
3023
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3076
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3024
3077
|
$fault: "client",
|
|
3025
|
-
$metadata
|
|
3078
|
+
$metadata,
|
|
3026
3079
|
});
|
|
3027
3080
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3028
3081
|
}
|
|
@@ -3047,8 +3100,7 @@ const deserializeAws_json1_1ListAcceptedPortfolioSharesCommandError = async (out
|
|
|
3047
3100
|
body: await parseBody(output.body, context),
|
|
3048
3101
|
};
|
|
3049
3102
|
let response;
|
|
3050
|
-
|
|
3051
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3103
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3052
3104
|
switch (errorCode) {
|
|
3053
3105
|
case "InvalidParametersException":
|
|
3054
3106
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -3058,10 +3110,12 @@ const deserializeAws_json1_1ListAcceptedPortfolioSharesCommandError = async (out
|
|
|
3058
3110
|
throw await deserializeAws_json1_1OperationNotSupportedExceptionResponse(parsedOutput, context);
|
|
3059
3111
|
default:
|
|
3060
3112
|
const parsedBody = parsedOutput.body;
|
|
3113
|
+
const $metadata = deserializeMetadata(output);
|
|
3114
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3061
3115
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
3062
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3116
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3063
3117
|
$fault: "client",
|
|
3064
|
-
$metadata
|
|
3118
|
+
$metadata,
|
|
3065
3119
|
});
|
|
3066
3120
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3067
3121
|
}
|
|
@@ -3086,8 +3140,7 @@ const deserializeAws_json1_1ListBudgetsForResourceCommandError = async (output,
|
|
|
3086
3140
|
body: await parseBody(output.body, context),
|
|
3087
3141
|
};
|
|
3088
3142
|
let response;
|
|
3089
|
-
|
|
3090
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3143
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3091
3144
|
switch (errorCode) {
|
|
3092
3145
|
case "InvalidParametersException":
|
|
3093
3146
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -3097,10 +3150,12 @@ const deserializeAws_json1_1ListBudgetsForResourceCommandError = async (output,
|
|
|
3097
3150
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3098
3151
|
default:
|
|
3099
3152
|
const parsedBody = parsedOutput.body;
|
|
3153
|
+
const $metadata = deserializeMetadata(output);
|
|
3154
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3100
3155
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
3101
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3156
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3102
3157
|
$fault: "client",
|
|
3103
|
-
$metadata
|
|
3158
|
+
$metadata,
|
|
3104
3159
|
});
|
|
3105
3160
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3106
3161
|
}
|
|
@@ -3125,8 +3180,7 @@ const deserializeAws_json1_1ListConstraintsForPortfolioCommandError = async (out
|
|
|
3125
3180
|
body: await parseBody(output.body, context),
|
|
3126
3181
|
};
|
|
3127
3182
|
let response;
|
|
3128
|
-
|
|
3129
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3183
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3130
3184
|
switch (errorCode) {
|
|
3131
3185
|
case "InvalidParametersException":
|
|
3132
3186
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -3136,10 +3190,12 @@ const deserializeAws_json1_1ListConstraintsForPortfolioCommandError = async (out
|
|
|
3136
3190
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3137
3191
|
default:
|
|
3138
3192
|
const parsedBody = parsedOutput.body;
|
|
3193
|
+
const $metadata = deserializeMetadata(output);
|
|
3194
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3139
3195
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
3140
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3196
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3141
3197
|
$fault: "client",
|
|
3142
|
-
$metadata
|
|
3198
|
+
$metadata,
|
|
3143
3199
|
});
|
|
3144
3200
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3145
3201
|
}
|
|
@@ -3164,8 +3220,7 @@ const deserializeAws_json1_1ListLaunchPathsCommandError = async (output, context
|
|
|
3164
3220
|
body: await parseBody(output.body, context),
|
|
3165
3221
|
};
|
|
3166
3222
|
let response;
|
|
3167
|
-
|
|
3168
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3223
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3169
3224
|
switch (errorCode) {
|
|
3170
3225
|
case "InvalidParametersException":
|
|
3171
3226
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -3175,10 +3230,12 @@ const deserializeAws_json1_1ListLaunchPathsCommandError = async (output, context
|
|
|
3175
3230
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3176
3231
|
default:
|
|
3177
3232
|
const parsedBody = parsedOutput.body;
|
|
3233
|
+
const $metadata = deserializeMetadata(output);
|
|
3234
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3178
3235
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
3179
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3236
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3180
3237
|
$fault: "client",
|
|
3181
|
-
$metadata
|
|
3238
|
+
$metadata,
|
|
3182
3239
|
});
|
|
3183
3240
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3184
3241
|
}
|
|
@@ -3203,8 +3260,7 @@ const deserializeAws_json1_1ListOrganizationPortfolioAccessCommandError = async
|
|
|
3203
3260
|
body: await parseBody(output.body, context),
|
|
3204
3261
|
};
|
|
3205
3262
|
let response;
|
|
3206
|
-
|
|
3207
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3263
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3208
3264
|
switch (errorCode) {
|
|
3209
3265
|
case "InvalidParametersException":
|
|
3210
3266
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -3217,10 +3273,12 @@ const deserializeAws_json1_1ListOrganizationPortfolioAccessCommandError = async
|
|
|
3217
3273
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3218
3274
|
default:
|
|
3219
3275
|
const parsedBody = parsedOutput.body;
|
|
3276
|
+
const $metadata = deserializeMetadata(output);
|
|
3277
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3220
3278
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
3221
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3279
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3222
3280
|
$fault: "client",
|
|
3223
|
-
$metadata
|
|
3281
|
+
$metadata,
|
|
3224
3282
|
});
|
|
3225
3283
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3226
3284
|
}
|
|
@@ -3245,8 +3303,7 @@ const deserializeAws_json1_1ListPortfolioAccessCommandError = async (output, con
|
|
|
3245
3303
|
body: await parseBody(output.body, context),
|
|
3246
3304
|
};
|
|
3247
3305
|
let response;
|
|
3248
|
-
|
|
3249
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3306
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3250
3307
|
switch (errorCode) {
|
|
3251
3308
|
case "InvalidParametersException":
|
|
3252
3309
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -3256,10 +3313,12 @@ const deserializeAws_json1_1ListPortfolioAccessCommandError = async (output, con
|
|
|
3256
3313
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3257
3314
|
default:
|
|
3258
3315
|
const parsedBody = parsedOutput.body;
|
|
3316
|
+
const $metadata = deserializeMetadata(output);
|
|
3317
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3259
3318
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
3260
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3319
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3261
3320
|
$fault: "client",
|
|
3262
|
-
$metadata
|
|
3321
|
+
$metadata,
|
|
3263
3322
|
});
|
|
3264
3323
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3265
3324
|
}
|
|
@@ -3284,18 +3343,19 @@ const deserializeAws_json1_1ListPortfoliosCommandError = async (output, context)
|
|
|
3284
3343
|
body: await parseBody(output.body, context),
|
|
3285
3344
|
};
|
|
3286
3345
|
let response;
|
|
3287
|
-
|
|
3288
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3346
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3289
3347
|
switch (errorCode) {
|
|
3290
3348
|
case "InvalidParametersException":
|
|
3291
3349
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3292
3350
|
throw await deserializeAws_json1_1InvalidParametersExceptionResponse(parsedOutput, context);
|
|
3293
3351
|
default:
|
|
3294
3352
|
const parsedBody = parsedOutput.body;
|
|
3353
|
+
const $metadata = deserializeMetadata(output);
|
|
3354
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3295
3355
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
3296
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3356
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3297
3357
|
$fault: "client",
|
|
3298
|
-
$metadata
|
|
3358
|
+
$metadata,
|
|
3299
3359
|
});
|
|
3300
3360
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3301
3361
|
}
|
|
@@ -3320,8 +3380,7 @@ const deserializeAws_json1_1ListPortfoliosForProductCommandError = async (output
|
|
|
3320
3380
|
body: await parseBody(output.body, context),
|
|
3321
3381
|
};
|
|
3322
3382
|
let response;
|
|
3323
|
-
|
|
3324
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3383
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3325
3384
|
switch (errorCode) {
|
|
3326
3385
|
case "InvalidParametersException":
|
|
3327
3386
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -3331,10 +3390,12 @@ const deserializeAws_json1_1ListPortfoliosForProductCommandError = async (output
|
|
|
3331
3390
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3332
3391
|
default:
|
|
3333
3392
|
const parsedBody = parsedOutput.body;
|
|
3393
|
+
const $metadata = deserializeMetadata(output);
|
|
3394
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3334
3395
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
3335
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3396
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3336
3397
|
$fault: "client",
|
|
3337
|
-
$metadata
|
|
3398
|
+
$metadata,
|
|
3338
3399
|
});
|
|
3339
3400
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3340
3401
|
}
|
|
@@ -3359,8 +3420,7 @@ const deserializeAws_json1_1ListPrincipalsForPortfolioCommandError = async (outp
|
|
|
3359
3420
|
body: await parseBody(output.body, context),
|
|
3360
3421
|
};
|
|
3361
3422
|
let response;
|
|
3362
|
-
|
|
3363
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3423
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3364
3424
|
switch (errorCode) {
|
|
3365
3425
|
case "InvalidParametersException":
|
|
3366
3426
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -3370,10 +3430,12 @@ const deserializeAws_json1_1ListPrincipalsForPortfolioCommandError = async (outp
|
|
|
3370
3430
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3371
3431
|
default:
|
|
3372
3432
|
const parsedBody = parsedOutput.body;
|
|
3433
|
+
const $metadata = deserializeMetadata(output);
|
|
3434
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3373
3435
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
3374
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3436
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3375
3437
|
$fault: "client",
|
|
3376
|
-
$metadata
|
|
3438
|
+
$metadata,
|
|
3377
3439
|
});
|
|
3378
3440
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3379
3441
|
}
|
|
@@ -3398,8 +3460,7 @@ const deserializeAws_json1_1ListProvisionedProductPlansCommandError = async (out
|
|
|
3398
3460
|
body: await parseBody(output.body, context),
|
|
3399
3461
|
};
|
|
3400
3462
|
let response;
|
|
3401
|
-
|
|
3402
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3463
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3403
3464
|
switch (errorCode) {
|
|
3404
3465
|
case "InvalidParametersException":
|
|
3405
3466
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -3409,10 +3470,12 @@ const deserializeAws_json1_1ListProvisionedProductPlansCommandError = async (out
|
|
|
3409
3470
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3410
3471
|
default:
|
|
3411
3472
|
const parsedBody = parsedOutput.body;
|
|
3473
|
+
const $metadata = deserializeMetadata(output);
|
|
3474
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3412
3475
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
3413
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3476
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3414
3477
|
$fault: "client",
|
|
3415
|
-
$metadata
|
|
3478
|
+
$metadata,
|
|
3416
3479
|
});
|
|
3417
3480
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3418
3481
|
}
|
|
@@ -3437,8 +3500,7 @@ const deserializeAws_json1_1ListProvisioningArtifactsCommandError = async (outpu
|
|
|
3437
3500
|
body: await parseBody(output.body, context),
|
|
3438
3501
|
};
|
|
3439
3502
|
let response;
|
|
3440
|
-
|
|
3441
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3503
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3442
3504
|
switch (errorCode) {
|
|
3443
3505
|
case "InvalidParametersException":
|
|
3444
3506
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -3448,10 +3510,12 @@ const deserializeAws_json1_1ListProvisioningArtifactsCommandError = async (outpu
|
|
|
3448
3510
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3449
3511
|
default:
|
|
3450
3512
|
const parsedBody = parsedOutput.body;
|
|
3513
|
+
const $metadata = deserializeMetadata(output);
|
|
3514
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3451
3515
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
3452
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3516
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3453
3517
|
$fault: "client",
|
|
3454
|
-
$metadata
|
|
3518
|
+
$metadata,
|
|
3455
3519
|
});
|
|
3456
3520
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3457
3521
|
}
|
|
@@ -3476,8 +3540,7 @@ const deserializeAws_json1_1ListProvisioningArtifactsForServiceActionCommandErro
|
|
|
3476
3540
|
body: await parseBody(output.body, context),
|
|
3477
3541
|
};
|
|
3478
3542
|
let response;
|
|
3479
|
-
|
|
3480
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3543
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3481
3544
|
switch (errorCode) {
|
|
3482
3545
|
case "InvalidParametersException":
|
|
3483
3546
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -3487,10 +3550,12 @@ const deserializeAws_json1_1ListProvisioningArtifactsForServiceActionCommandErro
|
|
|
3487
3550
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3488
3551
|
default:
|
|
3489
3552
|
const parsedBody = parsedOutput.body;
|
|
3553
|
+
const $metadata = deserializeMetadata(output);
|
|
3554
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3490
3555
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
3491
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3556
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3492
3557
|
$fault: "client",
|
|
3493
|
-
$metadata
|
|
3558
|
+
$metadata,
|
|
3494
3559
|
});
|
|
3495
3560
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3496
3561
|
}
|
|
@@ -3515,18 +3580,19 @@ const deserializeAws_json1_1ListRecordHistoryCommandError = async (output, conte
|
|
|
3515
3580
|
body: await parseBody(output.body, context),
|
|
3516
3581
|
};
|
|
3517
3582
|
let response;
|
|
3518
|
-
|
|
3519
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3583
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3520
3584
|
switch (errorCode) {
|
|
3521
3585
|
case "InvalidParametersException":
|
|
3522
3586
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3523
3587
|
throw await deserializeAws_json1_1InvalidParametersExceptionResponse(parsedOutput, context);
|
|
3524
3588
|
default:
|
|
3525
3589
|
const parsedBody = parsedOutput.body;
|
|
3590
|
+
const $metadata = deserializeMetadata(output);
|
|
3591
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3526
3592
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
3527
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3593
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3528
3594
|
$fault: "client",
|
|
3529
|
-
$metadata
|
|
3595
|
+
$metadata,
|
|
3530
3596
|
});
|
|
3531
3597
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3532
3598
|
}
|
|
@@ -3551,8 +3617,7 @@ const deserializeAws_json1_1ListResourcesForTagOptionCommandError = async (outpu
|
|
|
3551
3617
|
body: await parseBody(output.body, context),
|
|
3552
3618
|
};
|
|
3553
3619
|
let response;
|
|
3554
|
-
|
|
3555
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3620
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3556
3621
|
switch (errorCode) {
|
|
3557
3622
|
case "InvalidParametersException":
|
|
3558
3623
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -3565,10 +3630,12 @@ const deserializeAws_json1_1ListResourcesForTagOptionCommandError = async (outpu
|
|
|
3565
3630
|
throw await deserializeAws_json1_1TagOptionNotMigratedExceptionResponse(parsedOutput, context);
|
|
3566
3631
|
default:
|
|
3567
3632
|
const parsedBody = parsedOutput.body;
|
|
3633
|
+
const $metadata = deserializeMetadata(output);
|
|
3634
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3568
3635
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
3569
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3636
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3570
3637
|
$fault: "client",
|
|
3571
|
-
$metadata
|
|
3638
|
+
$metadata,
|
|
3572
3639
|
});
|
|
3573
3640
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3574
3641
|
}
|
|
@@ -3593,18 +3660,19 @@ const deserializeAws_json1_1ListServiceActionsCommandError = async (output, cont
|
|
|
3593
3660
|
body: await parseBody(output.body, context),
|
|
3594
3661
|
};
|
|
3595
3662
|
let response;
|
|
3596
|
-
|
|
3597
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3663
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3598
3664
|
switch (errorCode) {
|
|
3599
3665
|
case "InvalidParametersException":
|
|
3600
3666
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3601
3667
|
throw await deserializeAws_json1_1InvalidParametersExceptionResponse(parsedOutput, context);
|
|
3602
3668
|
default:
|
|
3603
3669
|
const parsedBody = parsedOutput.body;
|
|
3670
|
+
const $metadata = deserializeMetadata(output);
|
|
3671
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3604
3672
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
3605
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3673
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3606
3674
|
$fault: "client",
|
|
3607
|
-
$metadata
|
|
3675
|
+
$metadata,
|
|
3608
3676
|
});
|
|
3609
3677
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3610
3678
|
}
|
|
@@ -3629,8 +3697,7 @@ const deserializeAws_json1_1ListServiceActionsForProvisioningArtifactCommandErro
|
|
|
3629
3697
|
body: await parseBody(output.body, context),
|
|
3630
3698
|
};
|
|
3631
3699
|
let response;
|
|
3632
|
-
|
|
3633
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3700
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3634
3701
|
switch (errorCode) {
|
|
3635
3702
|
case "InvalidParametersException":
|
|
3636
3703
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -3640,10 +3707,12 @@ const deserializeAws_json1_1ListServiceActionsForProvisioningArtifactCommandErro
|
|
|
3640
3707
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3641
3708
|
default:
|
|
3642
3709
|
const parsedBody = parsedOutput.body;
|
|
3710
|
+
const $metadata = deserializeMetadata(output);
|
|
3711
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3643
3712
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
3644
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3713
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3645
3714
|
$fault: "client",
|
|
3646
|
-
$metadata
|
|
3715
|
+
$metadata,
|
|
3647
3716
|
});
|
|
3648
3717
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3649
3718
|
}
|
|
@@ -3668,8 +3737,7 @@ const deserializeAws_json1_1ListStackInstancesForProvisionedProductCommandError
|
|
|
3668
3737
|
body: await parseBody(output.body, context),
|
|
3669
3738
|
};
|
|
3670
3739
|
let response;
|
|
3671
|
-
|
|
3672
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3740
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3673
3741
|
switch (errorCode) {
|
|
3674
3742
|
case "InvalidParametersException":
|
|
3675
3743
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -3679,10 +3747,12 @@ const deserializeAws_json1_1ListStackInstancesForProvisionedProductCommandError
|
|
|
3679
3747
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3680
3748
|
default:
|
|
3681
3749
|
const parsedBody = parsedOutput.body;
|
|
3750
|
+
const $metadata = deserializeMetadata(output);
|
|
3751
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3682
3752
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
3683
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3753
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3684
3754
|
$fault: "client",
|
|
3685
|
-
$metadata
|
|
3755
|
+
$metadata,
|
|
3686
3756
|
});
|
|
3687
3757
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3688
3758
|
}
|
|
@@ -3707,8 +3777,7 @@ const deserializeAws_json1_1ListTagOptionsCommandError = async (output, context)
|
|
|
3707
3777
|
body: await parseBody(output.body, context),
|
|
3708
3778
|
};
|
|
3709
3779
|
let response;
|
|
3710
|
-
|
|
3711
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3780
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3712
3781
|
switch (errorCode) {
|
|
3713
3782
|
case "InvalidParametersException":
|
|
3714
3783
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -3718,10 +3787,12 @@ const deserializeAws_json1_1ListTagOptionsCommandError = async (output, context)
|
|
|
3718
3787
|
throw await deserializeAws_json1_1TagOptionNotMigratedExceptionResponse(parsedOutput, context);
|
|
3719
3788
|
default:
|
|
3720
3789
|
const parsedBody = parsedOutput.body;
|
|
3790
|
+
const $metadata = deserializeMetadata(output);
|
|
3791
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3721
3792
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
3722
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3793
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3723
3794
|
$fault: "client",
|
|
3724
|
-
$metadata
|
|
3795
|
+
$metadata,
|
|
3725
3796
|
});
|
|
3726
3797
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3727
3798
|
}
|
|
@@ -3746,8 +3817,7 @@ const deserializeAws_json1_1ProvisionProductCommandError = async (output, contex
|
|
|
3746
3817
|
body: await parseBody(output.body, context),
|
|
3747
3818
|
};
|
|
3748
3819
|
let response;
|
|
3749
|
-
|
|
3750
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3820
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3751
3821
|
switch (errorCode) {
|
|
3752
3822
|
case "DuplicateResourceException":
|
|
3753
3823
|
case "com.amazonaws.servicecatalog#DuplicateResourceException":
|
|
@@ -3760,10 +3830,12 @@ const deserializeAws_json1_1ProvisionProductCommandError = async (output, contex
|
|
|
3760
3830
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3761
3831
|
default:
|
|
3762
3832
|
const parsedBody = parsedOutput.body;
|
|
3833
|
+
const $metadata = deserializeMetadata(output);
|
|
3834
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3763
3835
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
3764
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3836
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3765
3837
|
$fault: "client",
|
|
3766
|
-
$metadata
|
|
3838
|
+
$metadata,
|
|
3767
3839
|
});
|
|
3768
3840
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3769
3841
|
}
|
|
@@ -3788,18 +3860,19 @@ const deserializeAws_json1_1RejectPortfolioShareCommandError = async (output, co
|
|
|
3788
3860
|
body: await parseBody(output.body, context),
|
|
3789
3861
|
};
|
|
3790
3862
|
let response;
|
|
3791
|
-
|
|
3792
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3863
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3793
3864
|
switch (errorCode) {
|
|
3794
3865
|
case "ResourceNotFoundException":
|
|
3795
3866
|
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3796
3867
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3797
3868
|
default:
|
|
3798
3869
|
const parsedBody = parsedOutput.body;
|
|
3870
|
+
const $metadata = deserializeMetadata(output);
|
|
3871
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3799
3872
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
3800
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3873
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3801
3874
|
$fault: "client",
|
|
3802
|
-
$metadata
|
|
3875
|
+
$metadata,
|
|
3803
3876
|
});
|
|
3804
3877
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3805
3878
|
}
|
|
@@ -3824,18 +3897,19 @@ const deserializeAws_json1_1ScanProvisionedProductsCommandError = async (output,
|
|
|
3824
3897
|
body: await parseBody(output.body, context),
|
|
3825
3898
|
};
|
|
3826
3899
|
let response;
|
|
3827
|
-
|
|
3828
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3900
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3829
3901
|
switch (errorCode) {
|
|
3830
3902
|
case "InvalidParametersException":
|
|
3831
3903
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3832
3904
|
throw await deserializeAws_json1_1InvalidParametersExceptionResponse(parsedOutput, context);
|
|
3833
3905
|
default:
|
|
3834
3906
|
const parsedBody = parsedOutput.body;
|
|
3907
|
+
const $metadata = deserializeMetadata(output);
|
|
3908
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3835
3909
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
3836
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3910
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3837
3911
|
$fault: "client",
|
|
3838
|
-
$metadata
|
|
3912
|
+
$metadata,
|
|
3839
3913
|
});
|
|
3840
3914
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3841
3915
|
}
|
|
@@ -3860,18 +3934,19 @@ const deserializeAws_json1_1SearchProductsCommandError = async (output, context)
|
|
|
3860
3934
|
body: await parseBody(output.body, context),
|
|
3861
3935
|
};
|
|
3862
3936
|
let response;
|
|
3863
|
-
|
|
3864
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3937
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3865
3938
|
switch (errorCode) {
|
|
3866
3939
|
case "InvalidParametersException":
|
|
3867
3940
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3868
3941
|
throw await deserializeAws_json1_1InvalidParametersExceptionResponse(parsedOutput, context);
|
|
3869
3942
|
default:
|
|
3870
3943
|
const parsedBody = parsedOutput.body;
|
|
3944
|
+
const $metadata = deserializeMetadata(output);
|
|
3945
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3871
3946
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
3872
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3947
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3873
3948
|
$fault: "client",
|
|
3874
|
-
$metadata
|
|
3949
|
+
$metadata,
|
|
3875
3950
|
});
|
|
3876
3951
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3877
3952
|
}
|
|
@@ -3896,8 +3971,7 @@ const deserializeAws_json1_1SearchProductsAsAdminCommandError = async (output, c
|
|
|
3896
3971
|
body: await parseBody(output.body, context),
|
|
3897
3972
|
};
|
|
3898
3973
|
let response;
|
|
3899
|
-
|
|
3900
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3974
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3901
3975
|
switch (errorCode) {
|
|
3902
3976
|
case "InvalidParametersException":
|
|
3903
3977
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -3907,10 +3981,12 @@ const deserializeAws_json1_1SearchProductsAsAdminCommandError = async (output, c
|
|
|
3907
3981
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3908
3982
|
default:
|
|
3909
3983
|
const parsedBody = parsedOutput.body;
|
|
3984
|
+
const $metadata = deserializeMetadata(output);
|
|
3985
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3910
3986
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
3911
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3987
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3912
3988
|
$fault: "client",
|
|
3913
|
-
$metadata
|
|
3989
|
+
$metadata,
|
|
3914
3990
|
});
|
|
3915
3991
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3916
3992
|
}
|
|
@@ -3935,18 +4011,19 @@ const deserializeAws_json1_1SearchProvisionedProductsCommandError = async (outpu
|
|
|
3935
4011
|
body: await parseBody(output.body, context),
|
|
3936
4012
|
};
|
|
3937
4013
|
let response;
|
|
3938
|
-
|
|
3939
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4014
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3940
4015
|
switch (errorCode) {
|
|
3941
4016
|
case "InvalidParametersException":
|
|
3942
4017
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3943
4018
|
throw await deserializeAws_json1_1InvalidParametersExceptionResponse(parsedOutput, context);
|
|
3944
4019
|
default:
|
|
3945
4020
|
const parsedBody = parsedOutput.body;
|
|
4021
|
+
const $metadata = deserializeMetadata(output);
|
|
4022
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3946
4023
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
3947
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4024
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3948
4025
|
$fault: "client",
|
|
3949
|
-
$metadata
|
|
4026
|
+
$metadata,
|
|
3950
4027
|
});
|
|
3951
4028
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3952
4029
|
}
|
|
@@ -3971,18 +4048,19 @@ const deserializeAws_json1_1TerminateProvisionedProductCommandError = async (out
|
|
|
3971
4048
|
body: await parseBody(output.body, context),
|
|
3972
4049
|
};
|
|
3973
4050
|
let response;
|
|
3974
|
-
|
|
3975
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4051
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3976
4052
|
switch (errorCode) {
|
|
3977
4053
|
case "ResourceNotFoundException":
|
|
3978
4054
|
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3979
4055
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3980
4056
|
default:
|
|
3981
4057
|
const parsedBody = parsedOutput.body;
|
|
4058
|
+
const $metadata = deserializeMetadata(output);
|
|
4059
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3982
4060
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
3983
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4061
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3984
4062
|
$fault: "client",
|
|
3985
|
-
$metadata
|
|
4063
|
+
$metadata,
|
|
3986
4064
|
});
|
|
3987
4065
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3988
4066
|
}
|
|
@@ -4007,8 +4085,7 @@ const deserializeAws_json1_1UpdateConstraintCommandError = async (output, contex
|
|
|
4007
4085
|
body: await parseBody(output.body, context),
|
|
4008
4086
|
};
|
|
4009
4087
|
let response;
|
|
4010
|
-
|
|
4011
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4088
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4012
4089
|
switch (errorCode) {
|
|
4013
4090
|
case "InvalidParametersException":
|
|
4014
4091
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -4018,10 +4095,12 @@ const deserializeAws_json1_1UpdateConstraintCommandError = async (output, contex
|
|
|
4018
4095
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4019
4096
|
default:
|
|
4020
4097
|
const parsedBody = parsedOutput.body;
|
|
4098
|
+
const $metadata = deserializeMetadata(output);
|
|
4099
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4021
4100
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
4022
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4101
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4023
4102
|
$fault: "client",
|
|
4024
|
-
$metadata
|
|
4103
|
+
$metadata,
|
|
4025
4104
|
});
|
|
4026
4105
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4027
4106
|
}
|
|
@@ -4046,8 +4125,7 @@ const deserializeAws_json1_1UpdatePortfolioCommandError = async (output, context
|
|
|
4046
4125
|
body: await parseBody(output.body, context),
|
|
4047
4126
|
};
|
|
4048
4127
|
let response;
|
|
4049
|
-
|
|
4050
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4128
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4051
4129
|
switch (errorCode) {
|
|
4052
4130
|
case "InvalidParametersException":
|
|
4053
4131
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -4063,10 +4141,12 @@ const deserializeAws_json1_1UpdatePortfolioCommandError = async (output, context
|
|
|
4063
4141
|
throw await deserializeAws_json1_1TagOptionNotMigratedExceptionResponse(parsedOutput, context);
|
|
4064
4142
|
default:
|
|
4065
4143
|
const parsedBody = parsedOutput.body;
|
|
4144
|
+
const $metadata = deserializeMetadata(output);
|
|
4145
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4066
4146
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
4067
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4147
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4068
4148
|
$fault: "client",
|
|
4069
|
-
$metadata
|
|
4149
|
+
$metadata,
|
|
4070
4150
|
});
|
|
4071
4151
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4072
4152
|
}
|
|
@@ -4091,8 +4171,7 @@ const deserializeAws_json1_1UpdatePortfolioShareCommandError = async (output, co
|
|
|
4091
4171
|
body: await parseBody(output.body, context),
|
|
4092
4172
|
};
|
|
4093
4173
|
let response;
|
|
4094
|
-
|
|
4095
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4174
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4096
4175
|
switch (errorCode) {
|
|
4097
4176
|
case "InvalidParametersException":
|
|
4098
4177
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -4108,10 +4187,12 @@ const deserializeAws_json1_1UpdatePortfolioShareCommandError = async (output, co
|
|
|
4108
4187
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4109
4188
|
default:
|
|
4110
4189
|
const parsedBody = parsedOutput.body;
|
|
4190
|
+
const $metadata = deserializeMetadata(output);
|
|
4191
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4111
4192
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
4112
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4193
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4113
4194
|
$fault: "client",
|
|
4114
|
-
$metadata
|
|
4195
|
+
$metadata,
|
|
4115
4196
|
});
|
|
4116
4197
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4117
4198
|
}
|
|
@@ -4136,8 +4217,7 @@ const deserializeAws_json1_1UpdateProductCommandError = async (output, context)
|
|
|
4136
4217
|
body: await parseBody(output.body, context),
|
|
4137
4218
|
};
|
|
4138
4219
|
let response;
|
|
4139
|
-
|
|
4140
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4220
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4141
4221
|
switch (errorCode) {
|
|
4142
4222
|
case "InvalidParametersException":
|
|
4143
4223
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -4150,10 +4230,12 @@ const deserializeAws_json1_1UpdateProductCommandError = async (output, context)
|
|
|
4150
4230
|
throw await deserializeAws_json1_1TagOptionNotMigratedExceptionResponse(parsedOutput, context);
|
|
4151
4231
|
default:
|
|
4152
4232
|
const parsedBody = parsedOutput.body;
|
|
4233
|
+
const $metadata = deserializeMetadata(output);
|
|
4234
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4153
4235
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
4154
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4236
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4155
4237
|
$fault: "client",
|
|
4156
|
-
$metadata
|
|
4238
|
+
$metadata,
|
|
4157
4239
|
});
|
|
4158
4240
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4159
4241
|
}
|
|
@@ -4178,8 +4260,7 @@ const deserializeAws_json1_1UpdateProvisionedProductCommandError = async (output
|
|
|
4178
4260
|
body: await parseBody(output.body, context),
|
|
4179
4261
|
};
|
|
4180
4262
|
let response;
|
|
4181
|
-
|
|
4182
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4263
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4183
4264
|
switch (errorCode) {
|
|
4184
4265
|
case "InvalidParametersException":
|
|
4185
4266
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -4189,10 +4270,12 @@ const deserializeAws_json1_1UpdateProvisionedProductCommandError = async (output
|
|
|
4189
4270
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4190
4271
|
default:
|
|
4191
4272
|
const parsedBody = parsedOutput.body;
|
|
4273
|
+
const $metadata = deserializeMetadata(output);
|
|
4274
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4192
4275
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
4193
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4276
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4194
4277
|
$fault: "client",
|
|
4195
|
-
$metadata
|
|
4278
|
+
$metadata,
|
|
4196
4279
|
});
|
|
4197
4280
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4198
4281
|
}
|
|
@@ -4217,8 +4300,7 @@ const deserializeAws_json1_1UpdateProvisionedProductPropertiesCommandError = asy
|
|
|
4217
4300
|
body: await parseBody(output.body, context),
|
|
4218
4301
|
};
|
|
4219
4302
|
let response;
|
|
4220
|
-
|
|
4221
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4303
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4222
4304
|
switch (errorCode) {
|
|
4223
4305
|
case "InvalidParametersException":
|
|
4224
4306
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -4231,10 +4313,12 @@ const deserializeAws_json1_1UpdateProvisionedProductPropertiesCommandError = asy
|
|
|
4231
4313
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4232
4314
|
default:
|
|
4233
4315
|
const parsedBody = parsedOutput.body;
|
|
4316
|
+
const $metadata = deserializeMetadata(output);
|
|
4317
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4234
4318
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
4235
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4319
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4236
4320
|
$fault: "client",
|
|
4237
|
-
$metadata
|
|
4321
|
+
$metadata,
|
|
4238
4322
|
});
|
|
4239
4323
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4240
4324
|
}
|
|
@@ -4259,8 +4343,7 @@ const deserializeAws_json1_1UpdateProvisioningArtifactCommandError = async (outp
|
|
|
4259
4343
|
body: await parseBody(output.body, context),
|
|
4260
4344
|
};
|
|
4261
4345
|
let response;
|
|
4262
|
-
|
|
4263
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4346
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4264
4347
|
switch (errorCode) {
|
|
4265
4348
|
case "InvalidParametersException":
|
|
4266
4349
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -4270,10 +4353,12 @@ const deserializeAws_json1_1UpdateProvisioningArtifactCommandError = async (outp
|
|
|
4270
4353
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4271
4354
|
default:
|
|
4272
4355
|
const parsedBody = parsedOutput.body;
|
|
4356
|
+
const $metadata = deserializeMetadata(output);
|
|
4357
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4273
4358
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
4274
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4359
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4275
4360
|
$fault: "client",
|
|
4276
|
-
$metadata
|
|
4361
|
+
$metadata,
|
|
4277
4362
|
});
|
|
4278
4363
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4279
4364
|
}
|
|
@@ -4298,8 +4383,7 @@ const deserializeAws_json1_1UpdateServiceActionCommandError = async (output, con
|
|
|
4298
4383
|
body: await parseBody(output.body, context),
|
|
4299
4384
|
};
|
|
4300
4385
|
let response;
|
|
4301
|
-
|
|
4302
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4386
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4303
4387
|
switch (errorCode) {
|
|
4304
4388
|
case "InvalidParametersException":
|
|
4305
4389
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
@@ -4309,10 +4393,12 @@ const deserializeAws_json1_1UpdateServiceActionCommandError = async (output, con
|
|
|
4309
4393
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4310
4394
|
default:
|
|
4311
4395
|
const parsedBody = parsedOutput.body;
|
|
4396
|
+
const $metadata = deserializeMetadata(output);
|
|
4397
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4312
4398
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
4313
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4399
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4314
4400
|
$fault: "client",
|
|
4315
|
-
$metadata
|
|
4401
|
+
$metadata,
|
|
4316
4402
|
});
|
|
4317
4403
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4318
4404
|
}
|
|
@@ -4337,8 +4423,7 @@ const deserializeAws_json1_1UpdateTagOptionCommandError = async (output, context
|
|
|
4337
4423
|
body: await parseBody(output.body, context),
|
|
4338
4424
|
};
|
|
4339
4425
|
let response;
|
|
4340
|
-
|
|
4341
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4426
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4342
4427
|
switch (errorCode) {
|
|
4343
4428
|
case "DuplicateResourceException":
|
|
4344
4429
|
case "com.amazonaws.servicecatalog#DuplicateResourceException":
|
|
@@ -4354,10 +4439,12 @@ const deserializeAws_json1_1UpdateTagOptionCommandError = async (output, context
|
|
|
4354
4439
|
throw await deserializeAws_json1_1TagOptionNotMigratedExceptionResponse(parsedOutput, context);
|
|
4355
4440
|
default:
|
|
4356
4441
|
const parsedBody = parsedOutput.body;
|
|
4442
|
+
const $metadata = deserializeMetadata(output);
|
|
4443
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4357
4444
|
response = new ServiceCatalogServiceException_1.ServiceCatalogServiceException({
|
|
4358
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4445
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4359
4446
|
$fault: "client",
|
|
4360
|
-
$metadata
|
|
4447
|
+
$metadata,
|
|
4361
4448
|
});
|
|
4362
4449
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4363
4450
|
}
|
|
@@ -4436,17 +4523,15 @@ const deserializeAws_json1_1TagOptionNotMigratedExceptionResponse = async (parse
|
|
|
4436
4523
|
};
|
|
4437
4524
|
const serializeAws_json1_1AcceptPortfolioShareInput = (input, context) => {
|
|
4438
4525
|
return {
|
|
4439
|
-
...(input.AcceptLanguage
|
|
4440
|
-
|
|
4441
|
-
...(input.
|
|
4442
|
-
...(input.PortfolioShareType !== undefined &&
|
|
4443
|
-
input.PortfolioShareType !== null && { PortfolioShareType: input.PortfolioShareType }),
|
|
4526
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4527
|
+
...(input.PortfolioId != null && { PortfolioId: input.PortfolioId }),
|
|
4528
|
+
...(input.PortfolioShareType != null && { PortfolioShareType: input.PortfolioShareType }),
|
|
4444
4529
|
};
|
|
4445
4530
|
};
|
|
4446
4531
|
const serializeAws_json1_1AccessLevelFilter = (input, context) => {
|
|
4447
4532
|
return {
|
|
4448
|
-
...(input.Key
|
|
4449
|
-
...(input.Value
|
|
4533
|
+
...(input.Key != null && { Key: input.Key }),
|
|
4534
|
+
...(input.Value != null && { Value: input.Value }),
|
|
4450
4535
|
};
|
|
4451
4536
|
};
|
|
4452
4537
|
const serializeAws_json1_1AddTags = (input, context) => {
|
|
@@ -4461,62 +4546,52 @@ const serializeAws_json1_1AddTags = (input, context) => {
|
|
|
4461
4546
|
};
|
|
4462
4547
|
const serializeAws_json1_1AssociateBudgetWithResourceInput = (input, context) => {
|
|
4463
4548
|
return {
|
|
4464
|
-
...(input.BudgetName
|
|
4465
|
-
...(input.ResourceId
|
|
4549
|
+
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
4550
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
4466
4551
|
};
|
|
4467
4552
|
};
|
|
4468
4553
|
const serializeAws_json1_1AssociatePrincipalWithPortfolioInput = (input, context) => {
|
|
4469
4554
|
return {
|
|
4470
|
-
...(input.AcceptLanguage
|
|
4471
|
-
|
|
4472
|
-
...(input.
|
|
4473
|
-
...(input.
|
|
4474
|
-
...(input.PrincipalType !== undefined && input.PrincipalType !== null && { PrincipalType: input.PrincipalType }),
|
|
4555
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4556
|
+
...(input.PortfolioId != null && { PortfolioId: input.PortfolioId }),
|
|
4557
|
+
...(input.PrincipalARN != null && { PrincipalARN: input.PrincipalARN }),
|
|
4558
|
+
...(input.PrincipalType != null && { PrincipalType: input.PrincipalType }),
|
|
4475
4559
|
};
|
|
4476
4560
|
};
|
|
4477
4561
|
const serializeAws_json1_1AssociateProductWithPortfolioInput = (input, context) => {
|
|
4478
4562
|
return {
|
|
4479
|
-
...(input.AcceptLanguage
|
|
4480
|
-
|
|
4481
|
-
...(input.
|
|
4482
|
-
...(input.
|
|
4483
|
-
...(input.SourcePortfolioId !== undefined &&
|
|
4484
|
-
input.SourcePortfolioId !== null && { SourcePortfolioId: input.SourcePortfolioId }),
|
|
4563
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4564
|
+
...(input.PortfolioId != null && { PortfolioId: input.PortfolioId }),
|
|
4565
|
+
...(input.ProductId != null && { ProductId: input.ProductId }),
|
|
4566
|
+
...(input.SourcePortfolioId != null && { SourcePortfolioId: input.SourcePortfolioId }),
|
|
4485
4567
|
};
|
|
4486
4568
|
};
|
|
4487
4569
|
const serializeAws_json1_1AssociateServiceActionWithProvisioningArtifactInput = (input, context) => {
|
|
4488
4570
|
return {
|
|
4489
|
-
...(input.AcceptLanguage
|
|
4490
|
-
|
|
4491
|
-
...(input.
|
|
4492
|
-
...(input.
|
|
4493
|
-
input.ProvisioningArtifactId !== null && { ProvisioningArtifactId: input.ProvisioningArtifactId }),
|
|
4494
|
-
...(input.ServiceActionId !== undefined &&
|
|
4495
|
-
input.ServiceActionId !== null && { ServiceActionId: input.ServiceActionId }),
|
|
4571
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4572
|
+
...(input.ProductId != null && { ProductId: input.ProductId }),
|
|
4573
|
+
...(input.ProvisioningArtifactId != null && { ProvisioningArtifactId: input.ProvisioningArtifactId }),
|
|
4574
|
+
...(input.ServiceActionId != null && { ServiceActionId: input.ServiceActionId }),
|
|
4496
4575
|
};
|
|
4497
4576
|
};
|
|
4498
4577
|
const serializeAws_json1_1AssociateTagOptionWithResourceInput = (input, context) => {
|
|
4499
4578
|
return {
|
|
4500
|
-
...(input.ResourceId
|
|
4501
|
-
...(input.TagOptionId
|
|
4579
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
4580
|
+
...(input.TagOptionId != null && { TagOptionId: input.TagOptionId }),
|
|
4502
4581
|
};
|
|
4503
4582
|
};
|
|
4504
4583
|
const serializeAws_json1_1BatchAssociateServiceActionWithProvisioningArtifactInput = (input, context) => {
|
|
4505
4584
|
return {
|
|
4506
|
-
...(input.AcceptLanguage
|
|
4507
|
-
|
|
4508
|
-
...(input.ServiceActionAssociations !== undefined &&
|
|
4509
|
-
input.ServiceActionAssociations !== null && {
|
|
4585
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4586
|
+
...(input.ServiceActionAssociations != null && {
|
|
4510
4587
|
ServiceActionAssociations: serializeAws_json1_1ServiceActionAssociations(input.ServiceActionAssociations, context),
|
|
4511
4588
|
}),
|
|
4512
4589
|
};
|
|
4513
4590
|
};
|
|
4514
4591
|
const serializeAws_json1_1BatchDisassociateServiceActionFromProvisioningArtifactInput = (input, context) => {
|
|
4515
4592
|
return {
|
|
4516
|
-
...(input.AcceptLanguage
|
|
4517
|
-
|
|
4518
|
-
...(input.ServiceActionAssociations !== undefined &&
|
|
4519
|
-
input.ServiceActionAssociations !== null && {
|
|
4593
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4594
|
+
...(input.ServiceActionAssociations != null && {
|
|
4520
4595
|
ServiceActionAssociations: serializeAws_json1_1ServiceActionAssociations(input.ServiceActionAssociations, context),
|
|
4521
4596
|
}),
|
|
4522
4597
|
};
|
|
@@ -4534,340 +4609,285 @@ const serializeAws_json1_1CopyOptions = (input, context) => {
|
|
|
4534
4609
|
const serializeAws_json1_1CopyProductInput = (input, context) => {
|
|
4535
4610
|
var _a;
|
|
4536
4611
|
return {
|
|
4537
|
-
...(input.AcceptLanguage
|
|
4538
|
-
|
|
4539
|
-
...(input.CopyOptions !== undefined &&
|
|
4540
|
-
input.CopyOptions !== null && { CopyOptions: serializeAws_json1_1CopyOptions(input.CopyOptions, context) }),
|
|
4612
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4613
|
+
...(input.CopyOptions != null && { CopyOptions: serializeAws_json1_1CopyOptions(input.CopyOptions, context) }),
|
|
4541
4614
|
IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
4542
|
-
...(input.SourceProductArn
|
|
4543
|
-
|
|
4544
|
-
...(input.SourceProvisioningArtifactIdentifiers !== undefined &&
|
|
4545
|
-
input.SourceProvisioningArtifactIdentifiers !== null && {
|
|
4615
|
+
...(input.SourceProductArn != null && { SourceProductArn: input.SourceProductArn }),
|
|
4616
|
+
...(input.SourceProvisioningArtifactIdentifiers != null && {
|
|
4546
4617
|
SourceProvisioningArtifactIdentifiers: serializeAws_json1_1SourceProvisioningArtifactProperties(input.SourceProvisioningArtifactIdentifiers, context),
|
|
4547
4618
|
}),
|
|
4548
|
-
...(input.TargetProductId
|
|
4549
|
-
|
|
4550
|
-
...(input.TargetProductName !== undefined &&
|
|
4551
|
-
input.TargetProductName !== null && { TargetProductName: input.TargetProductName }),
|
|
4619
|
+
...(input.TargetProductId != null && { TargetProductId: input.TargetProductId }),
|
|
4620
|
+
...(input.TargetProductName != null && { TargetProductName: input.TargetProductName }),
|
|
4552
4621
|
};
|
|
4553
4622
|
};
|
|
4554
4623
|
const serializeAws_json1_1CreateConstraintInput = (input, context) => {
|
|
4555
4624
|
var _a;
|
|
4556
4625
|
return {
|
|
4557
|
-
...(input.AcceptLanguage
|
|
4558
|
-
|
|
4559
|
-
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
4626
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4627
|
+
...(input.Description != null && { Description: input.Description }),
|
|
4560
4628
|
IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
4561
|
-
...(input.Parameters
|
|
4562
|
-
...(input.PortfolioId
|
|
4563
|
-
...(input.ProductId
|
|
4564
|
-
...(input.Type
|
|
4629
|
+
...(input.Parameters != null && { Parameters: input.Parameters }),
|
|
4630
|
+
...(input.PortfolioId != null && { PortfolioId: input.PortfolioId }),
|
|
4631
|
+
...(input.ProductId != null && { ProductId: input.ProductId }),
|
|
4632
|
+
...(input.Type != null && { Type: input.Type }),
|
|
4565
4633
|
};
|
|
4566
4634
|
};
|
|
4567
4635
|
const serializeAws_json1_1CreatePortfolioInput = (input, context) => {
|
|
4568
4636
|
var _a;
|
|
4569
4637
|
return {
|
|
4570
|
-
...(input.AcceptLanguage
|
|
4571
|
-
|
|
4572
|
-
...(input.
|
|
4573
|
-
...(input.DisplayName !== undefined && input.DisplayName !== null && { DisplayName: input.DisplayName }),
|
|
4638
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4639
|
+
...(input.Description != null && { Description: input.Description }),
|
|
4640
|
+
...(input.DisplayName != null && { DisplayName: input.DisplayName }),
|
|
4574
4641
|
IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
4575
|
-
...(input.ProviderName
|
|
4576
|
-
...(input.Tags
|
|
4642
|
+
...(input.ProviderName != null && { ProviderName: input.ProviderName }),
|
|
4643
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1AddTags(input.Tags, context) }),
|
|
4577
4644
|
};
|
|
4578
4645
|
};
|
|
4579
4646
|
const serializeAws_json1_1CreatePortfolioShareInput = (input, context) => {
|
|
4580
4647
|
return {
|
|
4581
|
-
...(input.AcceptLanguage
|
|
4582
|
-
|
|
4583
|
-
...(input.
|
|
4584
|
-
...(input.OrganizationNode !== undefined &&
|
|
4585
|
-
input.OrganizationNode !== null && {
|
|
4648
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4649
|
+
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
4650
|
+
...(input.OrganizationNode != null && {
|
|
4586
4651
|
OrganizationNode: serializeAws_json1_1OrganizationNode(input.OrganizationNode, context),
|
|
4587
4652
|
}),
|
|
4588
|
-
...(input.PortfolioId
|
|
4589
|
-
...(input.ShareTagOptions
|
|
4590
|
-
input.ShareTagOptions !== null && { ShareTagOptions: input.ShareTagOptions }),
|
|
4653
|
+
...(input.PortfolioId != null && { PortfolioId: input.PortfolioId }),
|
|
4654
|
+
...(input.ShareTagOptions != null && { ShareTagOptions: input.ShareTagOptions }),
|
|
4591
4655
|
};
|
|
4592
4656
|
};
|
|
4593
4657
|
const serializeAws_json1_1CreateProductInput = (input, context) => {
|
|
4594
4658
|
var _a;
|
|
4595
4659
|
return {
|
|
4596
|
-
...(input.AcceptLanguage
|
|
4597
|
-
|
|
4598
|
-
...(input.
|
|
4599
|
-
...(input.Distributor !== undefined && input.Distributor !== null && { Distributor: input.Distributor }),
|
|
4660
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4661
|
+
...(input.Description != null && { Description: input.Description }),
|
|
4662
|
+
...(input.Distributor != null && { Distributor: input.Distributor }),
|
|
4600
4663
|
IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
4601
|
-
...(input.Name
|
|
4602
|
-
...(input.Owner
|
|
4603
|
-
...(input.ProductType
|
|
4604
|
-
...(input.ProvisioningArtifactParameters
|
|
4605
|
-
input.ProvisioningArtifactParameters !== null && {
|
|
4664
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4665
|
+
...(input.Owner != null && { Owner: input.Owner }),
|
|
4666
|
+
...(input.ProductType != null && { ProductType: input.ProductType }),
|
|
4667
|
+
...(input.ProvisioningArtifactParameters != null && {
|
|
4606
4668
|
ProvisioningArtifactParameters: serializeAws_json1_1ProvisioningArtifactProperties(input.ProvisioningArtifactParameters, context),
|
|
4607
4669
|
}),
|
|
4608
|
-
...(input.SupportDescription
|
|
4609
|
-
|
|
4610
|
-
...(input.
|
|
4611
|
-
...(input.
|
|
4612
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1AddTags(input.Tags, context) }),
|
|
4670
|
+
...(input.SupportDescription != null && { SupportDescription: input.SupportDescription }),
|
|
4671
|
+
...(input.SupportEmail != null && { SupportEmail: input.SupportEmail }),
|
|
4672
|
+
...(input.SupportUrl != null && { SupportUrl: input.SupportUrl }),
|
|
4673
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1AddTags(input.Tags, context) }),
|
|
4613
4674
|
};
|
|
4614
4675
|
};
|
|
4615
4676
|
const serializeAws_json1_1CreateProvisionedProductPlanInput = (input, context) => {
|
|
4616
4677
|
var _a;
|
|
4617
4678
|
return {
|
|
4618
|
-
...(input.AcceptLanguage
|
|
4619
|
-
input.AcceptLanguage !== null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4679
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4620
4680
|
IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
4621
|
-
...(input.NotificationArns
|
|
4622
|
-
input.NotificationArns !== null && {
|
|
4681
|
+
...(input.NotificationArns != null && {
|
|
4623
4682
|
NotificationArns: serializeAws_json1_1NotificationArns(input.NotificationArns, context),
|
|
4624
4683
|
}),
|
|
4625
|
-
...(input.PathId
|
|
4626
|
-
...(input.PlanName
|
|
4627
|
-
...(input.PlanType
|
|
4628
|
-
...(input.ProductId
|
|
4629
|
-
...(input.ProvisionedProductName
|
|
4630
|
-
|
|
4631
|
-
...(input.
|
|
4632
|
-
input.ProvisioningArtifactId !== null && { ProvisioningArtifactId: input.ProvisioningArtifactId }),
|
|
4633
|
-
...(input.ProvisioningParameters !== undefined &&
|
|
4634
|
-
input.ProvisioningParameters !== null && {
|
|
4684
|
+
...(input.PathId != null && { PathId: input.PathId }),
|
|
4685
|
+
...(input.PlanName != null && { PlanName: input.PlanName }),
|
|
4686
|
+
...(input.PlanType != null && { PlanType: input.PlanType }),
|
|
4687
|
+
...(input.ProductId != null && { ProductId: input.ProductId }),
|
|
4688
|
+
...(input.ProvisionedProductName != null && { ProvisionedProductName: input.ProvisionedProductName }),
|
|
4689
|
+
...(input.ProvisioningArtifactId != null && { ProvisioningArtifactId: input.ProvisioningArtifactId }),
|
|
4690
|
+
...(input.ProvisioningParameters != null && {
|
|
4635
4691
|
ProvisioningParameters: serializeAws_json1_1UpdateProvisioningParameters(input.ProvisioningParameters, context),
|
|
4636
4692
|
}),
|
|
4637
|
-
...(input.Tags
|
|
4693
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
4638
4694
|
};
|
|
4639
4695
|
};
|
|
4640
4696
|
const serializeAws_json1_1CreateProvisioningArtifactInput = (input, context) => {
|
|
4641
4697
|
var _a;
|
|
4642
4698
|
return {
|
|
4643
|
-
...(input.AcceptLanguage
|
|
4644
|
-
input.AcceptLanguage !== null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4699
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4645
4700
|
IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
4646
|
-
...(input.Parameters
|
|
4647
|
-
input.Parameters !== null && {
|
|
4701
|
+
...(input.Parameters != null && {
|
|
4648
4702
|
Parameters: serializeAws_json1_1ProvisioningArtifactProperties(input.Parameters, context),
|
|
4649
4703
|
}),
|
|
4650
|
-
...(input.ProductId
|
|
4704
|
+
...(input.ProductId != null && { ProductId: input.ProductId }),
|
|
4651
4705
|
};
|
|
4652
4706
|
};
|
|
4653
4707
|
const serializeAws_json1_1CreateServiceActionInput = (input, context) => {
|
|
4654
4708
|
var _a;
|
|
4655
4709
|
return {
|
|
4656
|
-
...(input.AcceptLanguage
|
|
4657
|
-
|
|
4658
|
-
...(input.Definition !== undefined &&
|
|
4659
|
-
input.Definition !== null && {
|
|
4710
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4711
|
+
...(input.Definition != null && {
|
|
4660
4712
|
Definition: serializeAws_json1_1ServiceActionDefinitionMap(input.Definition, context),
|
|
4661
4713
|
}),
|
|
4662
|
-
...(input.DefinitionType
|
|
4663
|
-
|
|
4664
|
-
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
4714
|
+
...(input.DefinitionType != null && { DefinitionType: input.DefinitionType }),
|
|
4715
|
+
...(input.Description != null && { Description: input.Description }),
|
|
4665
4716
|
IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
4666
|
-
...(input.Name
|
|
4717
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4667
4718
|
};
|
|
4668
4719
|
};
|
|
4669
4720
|
const serializeAws_json1_1CreateTagOptionInput = (input, context) => {
|
|
4670
4721
|
return {
|
|
4671
|
-
...(input.Key
|
|
4672
|
-
...(input.Value
|
|
4722
|
+
...(input.Key != null && { Key: input.Key }),
|
|
4723
|
+
...(input.Value != null && { Value: input.Value }),
|
|
4673
4724
|
};
|
|
4674
4725
|
};
|
|
4675
4726
|
const serializeAws_json1_1DeleteConstraintInput = (input, context) => {
|
|
4676
4727
|
return {
|
|
4677
|
-
...(input.AcceptLanguage
|
|
4678
|
-
|
|
4679
|
-
...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
|
|
4728
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4729
|
+
...(input.Id != null && { Id: input.Id }),
|
|
4680
4730
|
};
|
|
4681
4731
|
};
|
|
4682
4732
|
const serializeAws_json1_1DeletePortfolioInput = (input, context) => {
|
|
4683
4733
|
return {
|
|
4684
|
-
...(input.AcceptLanguage
|
|
4685
|
-
|
|
4686
|
-
...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
|
|
4734
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4735
|
+
...(input.Id != null && { Id: input.Id }),
|
|
4687
4736
|
};
|
|
4688
4737
|
};
|
|
4689
4738
|
const serializeAws_json1_1DeletePortfolioShareInput = (input, context) => {
|
|
4690
4739
|
return {
|
|
4691
|
-
...(input.AcceptLanguage
|
|
4692
|
-
|
|
4693
|
-
...(input.
|
|
4694
|
-
...(input.OrganizationNode !== undefined &&
|
|
4695
|
-
input.OrganizationNode !== null && {
|
|
4740
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4741
|
+
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
4742
|
+
...(input.OrganizationNode != null && {
|
|
4696
4743
|
OrganizationNode: serializeAws_json1_1OrganizationNode(input.OrganizationNode, context),
|
|
4697
4744
|
}),
|
|
4698
|
-
...(input.PortfolioId
|
|
4745
|
+
...(input.PortfolioId != null && { PortfolioId: input.PortfolioId }),
|
|
4699
4746
|
};
|
|
4700
4747
|
};
|
|
4701
4748
|
const serializeAws_json1_1DeleteProductInput = (input, context) => {
|
|
4702
4749
|
return {
|
|
4703
|
-
...(input.AcceptLanguage
|
|
4704
|
-
|
|
4705
|
-
...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
|
|
4750
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4751
|
+
...(input.Id != null && { Id: input.Id }),
|
|
4706
4752
|
};
|
|
4707
4753
|
};
|
|
4708
4754
|
const serializeAws_json1_1DeleteProvisionedProductPlanInput = (input, context) => {
|
|
4709
4755
|
return {
|
|
4710
|
-
...(input.AcceptLanguage
|
|
4711
|
-
|
|
4712
|
-
...(input.
|
|
4713
|
-
...(input.PlanId !== undefined && input.PlanId !== null && { PlanId: input.PlanId }),
|
|
4756
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4757
|
+
...(input.IgnoreErrors != null && { IgnoreErrors: input.IgnoreErrors }),
|
|
4758
|
+
...(input.PlanId != null && { PlanId: input.PlanId }),
|
|
4714
4759
|
};
|
|
4715
4760
|
};
|
|
4716
4761
|
const serializeAws_json1_1DeleteProvisioningArtifactInput = (input, context) => {
|
|
4717
4762
|
return {
|
|
4718
|
-
...(input.AcceptLanguage
|
|
4719
|
-
|
|
4720
|
-
...(input.
|
|
4721
|
-
...(input.ProvisioningArtifactId !== undefined &&
|
|
4722
|
-
input.ProvisioningArtifactId !== null && { ProvisioningArtifactId: input.ProvisioningArtifactId }),
|
|
4763
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4764
|
+
...(input.ProductId != null && { ProductId: input.ProductId }),
|
|
4765
|
+
...(input.ProvisioningArtifactId != null && { ProvisioningArtifactId: input.ProvisioningArtifactId }),
|
|
4723
4766
|
};
|
|
4724
4767
|
};
|
|
4725
4768
|
const serializeAws_json1_1DeleteServiceActionInput = (input, context) => {
|
|
4726
4769
|
return {
|
|
4727
|
-
...(input.AcceptLanguage
|
|
4728
|
-
|
|
4729
|
-
...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
|
|
4770
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4771
|
+
...(input.Id != null && { Id: input.Id }),
|
|
4730
4772
|
};
|
|
4731
4773
|
};
|
|
4732
4774
|
const serializeAws_json1_1DeleteTagOptionInput = (input, context) => {
|
|
4733
4775
|
return {
|
|
4734
|
-
...(input.Id
|
|
4776
|
+
...(input.Id != null && { Id: input.Id }),
|
|
4735
4777
|
};
|
|
4736
4778
|
};
|
|
4737
4779
|
const serializeAws_json1_1DescribeConstraintInput = (input, context) => {
|
|
4738
4780
|
return {
|
|
4739
|
-
...(input.AcceptLanguage
|
|
4740
|
-
|
|
4741
|
-
...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
|
|
4781
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4782
|
+
...(input.Id != null && { Id: input.Id }),
|
|
4742
4783
|
};
|
|
4743
4784
|
};
|
|
4744
4785
|
const serializeAws_json1_1DescribeCopyProductStatusInput = (input, context) => {
|
|
4745
4786
|
return {
|
|
4746
|
-
...(input.AcceptLanguage
|
|
4747
|
-
|
|
4748
|
-
...(input.CopyProductToken !== undefined &&
|
|
4749
|
-
input.CopyProductToken !== null && { CopyProductToken: input.CopyProductToken }),
|
|
4787
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4788
|
+
...(input.CopyProductToken != null && { CopyProductToken: input.CopyProductToken }),
|
|
4750
4789
|
};
|
|
4751
4790
|
};
|
|
4752
4791
|
const serializeAws_json1_1DescribePortfolioInput = (input, context) => {
|
|
4753
4792
|
return {
|
|
4754
|
-
...(input.AcceptLanguage
|
|
4755
|
-
|
|
4756
|
-
...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
|
|
4793
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4794
|
+
...(input.Id != null && { Id: input.Id }),
|
|
4757
4795
|
};
|
|
4758
4796
|
};
|
|
4759
4797
|
const serializeAws_json1_1DescribePortfolioSharesInput = (input, context) => {
|
|
4760
4798
|
return {
|
|
4761
|
-
...(input.PageSize
|
|
4762
|
-
...(input.PageToken
|
|
4763
|
-
...(input.PortfolioId
|
|
4764
|
-
...(input.Type
|
|
4799
|
+
...(input.PageSize != null && { PageSize: input.PageSize }),
|
|
4800
|
+
...(input.PageToken != null && { PageToken: input.PageToken }),
|
|
4801
|
+
...(input.PortfolioId != null && { PortfolioId: input.PortfolioId }),
|
|
4802
|
+
...(input.Type != null && { Type: input.Type }),
|
|
4765
4803
|
};
|
|
4766
4804
|
};
|
|
4767
4805
|
const serializeAws_json1_1DescribePortfolioShareStatusInput = (input, context) => {
|
|
4768
4806
|
return {
|
|
4769
|
-
...(input.PortfolioShareToken
|
|
4770
|
-
input.PortfolioShareToken !== null && { PortfolioShareToken: input.PortfolioShareToken }),
|
|
4807
|
+
...(input.PortfolioShareToken != null && { PortfolioShareToken: input.PortfolioShareToken }),
|
|
4771
4808
|
};
|
|
4772
4809
|
};
|
|
4773
4810
|
const serializeAws_json1_1DescribeProductAsAdminInput = (input, context) => {
|
|
4774
4811
|
return {
|
|
4775
|
-
...(input.AcceptLanguage
|
|
4776
|
-
|
|
4777
|
-
...(input.
|
|
4778
|
-
...(input.
|
|
4779
|
-
...(input.SourcePortfolioId !== undefined &&
|
|
4780
|
-
input.SourcePortfolioId !== null && { SourcePortfolioId: input.SourcePortfolioId }),
|
|
4812
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4813
|
+
...(input.Id != null && { Id: input.Id }),
|
|
4814
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4815
|
+
...(input.SourcePortfolioId != null && { SourcePortfolioId: input.SourcePortfolioId }),
|
|
4781
4816
|
};
|
|
4782
4817
|
};
|
|
4783
4818
|
const serializeAws_json1_1DescribeProductInput = (input, context) => {
|
|
4784
4819
|
return {
|
|
4785
|
-
...(input.AcceptLanguage
|
|
4786
|
-
|
|
4787
|
-
...(input.
|
|
4788
|
-
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
4820
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4821
|
+
...(input.Id != null && { Id: input.Id }),
|
|
4822
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4789
4823
|
};
|
|
4790
4824
|
};
|
|
4791
4825
|
const serializeAws_json1_1DescribeProductViewInput = (input, context) => {
|
|
4792
4826
|
return {
|
|
4793
|
-
...(input.AcceptLanguage
|
|
4794
|
-
|
|
4795
|
-
...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
|
|
4827
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4828
|
+
...(input.Id != null && { Id: input.Id }),
|
|
4796
4829
|
};
|
|
4797
4830
|
};
|
|
4798
4831
|
const serializeAws_json1_1DescribeProvisionedProductInput = (input, context) => {
|
|
4799
4832
|
return {
|
|
4800
|
-
...(input.AcceptLanguage
|
|
4801
|
-
|
|
4802
|
-
...(input.
|
|
4803
|
-
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
4833
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4834
|
+
...(input.Id != null && { Id: input.Id }),
|
|
4835
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4804
4836
|
};
|
|
4805
4837
|
};
|
|
4806
4838
|
const serializeAws_json1_1DescribeProvisionedProductPlanInput = (input, context) => {
|
|
4807
4839
|
return {
|
|
4808
|
-
...(input.AcceptLanguage
|
|
4809
|
-
|
|
4810
|
-
...(input.
|
|
4811
|
-
...(input.
|
|
4812
|
-
...(input.PlanId !== undefined && input.PlanId !== null && { PlanId: input.PlanId }),
|
|
4840
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4841
|
+
...(input.PageSize != null && { PageSize: input.PageSize }),
|
|
4842
|
+
...(input.PageToken != null && { PageToken: input.PageToken }),
|
|
4843
|
+
...(input.PlanId != null && { PlanId: input.PlanId }),
|
|
4813
4844
|
};
|
|
4814
4845
|
};
|
|
4815
4846
|
const serializeAws_json1_1DescribeProvisioningArtifactInput = (input, context) => {
|
|
4816
4847
|
return {
|
|
4817
|
-
...(input.AcceptLanguage
|
|
4818
|
-
|
|
4819
|
-
...(input.
|
|
4820
|
-
...(input.
|
|
4821
|
-
...(input.
|
|
4822
|
-
|
|
4823
|
-
...(input.ProvisioningArtifactName !== undefined &&
|
|
4824
|
-
input.ProvisioningArtifactName !== null && { ProvisioningArtifactName: input.ProvisioningArtifactName }),
|
|
4825
|
-
...(input.Verbose !== undefined && input.Verbose !== null && { Verbose: input.Verbose }),
|
|
4848
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4849
|
+
...(input.ProductId != null && { ProductId: input.ProductId }),
|
|
4850
|
+
...(input.ProductName != null && { ProductName: input.ProductName }),
|
|
4851
|
+
...(input.ProvisioningArtifactId != null && { ProvisioningArtifactId: input.ProvisioningArtifactId }),
|
|
4852
|
+
...(input.ProvisioningArtifactName != null && { ProvisioningArtifactName: input.ProvisioningArtifactName }),
|
|
4853
|
+
...(input.Verbose != null && { Verbose: input.Verbose }),
|
|
4826
4854
|
};
|
|
4827
4855
|
};
|
|
4828
4856
|
const serializeAws_json1_1DescribeProvisioningParametersInput = (input, context) => {
|
|
4829
4857
|
return {
|
|
4830
|
-
...(input.AcceptLanguage
|
|
4831
|
-
|
|
4832
|
-
...(input.
|
|
4833
|
-
...(input.
|
|
4834
|
-
...(input.
|
|
4835
|
-
...(input.
|
|
4836
|
-
...(input.
|
|
4837
|
-
input.ProvisioningArtifactId !== null && { ProvisioningArtifactId: input.ProvisioningArtifactId }),
|
|
4838
|
-
...(input.ProvisioningArtifactName !== undefined &&
|
|
4839
|
-
input.ProvisioningArtifactName !== null && { ProvisioningArtifactName: input.ProvisioningArtifactName }),
|
|
4858
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4859
|
+
...(input.PathId != null && { PathId: input.PathId }),
|
|
4860
|
+
...(input.PathName != null && { PathName: input.PathName }),
|
|
4861
|
+
...(input.ProductId != null && { ProductId: input.ProductId }),
|
|
4862
|
+
...(input.ProductName != null && { ProductName: input.ProductName }),
|
|
4863
|
+
...(input.ProvisioningArtifactId != null && { ProvisioningArtifactId: input.ProvisioningArtifactId }),
|
|
4864
|
+
...(input.ProvisioningArtifactName != null && { ProvisioningArtifactName: input.ProvisioningArtifactName }),
|
|
4840
4865
|
};
|
|
4841
4866
|
};
|
|
4842
4867
|
const serializeAws_json1_1DescribeRecordInput = (input, context) => {
|
|
4843
4868
|
return {
|
|
4844
|
-
...(input.AcceptLanguage
|
|
4845
|
-
|
|
4846
|
-
...(input.
|
|
4847
|
-
...(input.
|
|
4848
|
-
...(input.PageToken !== undefined && input.PageToken !== null && { PageToken: input.PageToken }),
|
|
4869
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4870
|
+
...(input.Id != null && { Id: input.Id }),
|
|
4871
|
+
...(input.PageSize != null && { PageSize: input.PageSize }),
|
|
4872
|
+
...(input.PageToken != null && { PageToken: input.PageToken }),
|
|
4849
4873
|
};
|
|
4850
4874
|
};
|
|
4851
4875
|
const serializeAws_json1_1DescribeServiceActionExecutionParametersInput = (input, context) => {
|
|
4852
4876
|
return {
|
|
4853
|
-
...(input.AcceptLanguage
|
|
4854
|
-
|
|
4855
|
-
...(input.
|
|
4856
|
-
input.ProvisionedProductId !== null && { ProvisionedProductId: input.ProvisionedProductId }),
|
|
4857
|
-
...(input.ServiceActionId !== undefined &&
|
|
4858
|
-
input.ServiceActionId !== null && { ServiceActionId: input.ServiceActionId }),
|
|
4877
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4878
|
+
...(input.ProvisionedProductId != null && { ProvisionedProductId: input.ProvisionedProductId }),
|
|
4879
|
+
...(input.ServiceActionId != null && { ServiceActionId: input.ServiceActionId }),
|
|
4859
4880
|
};
|
|
4860
4881
|
};
|
|
4861
4882
|
const serializeAws_json1_1DescribeServiceActionInput = (input, context) => {
|
|
4862
4883
|
return {
|
|
4863
|
-
...(input.AcceptLanguage
|
|
4864
|
-
|
|
4865
|
-
...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
|
|
4884
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4885
|
+
...(input.Id != null && { Id: input.Id }),
|
|
4866
4886
|
};
|
|
4867
4887
|
};
|
|
4868
4888
|
const serializeAws_json1_1DescribeTagOptionInput = (input, context) => {
|
|
4869
4889
|
return {
|
|
4870
|
-
...(input.Id
|
|
4890
|
+
...(input.Id != null && { Id: input.Id }),
|
|
4871
4891
|
};
|
|
4872
4892
|
};
|
|
4873
4893
|
const serializeAws_json1_1DisableAWSOrganizationsAccessInput = (input, context) => {
|
|
@@ -4875,41 +4895,36 @@ const serializeAws_json1_1DisableAWSOrganizationsAccessInput = (input, context)
|
|
|
4875
4895
|
};
|
|
4876
4896
|
const serializeAws_json1_1DisassociateBudgetFromResourceInput = (input, context) => {
|
|
4877
4897
|
return {
|
|
4878
|
-
...(input.BudgetName
|
|
4879
|
-
...(input.ResourceId
|
|
4898
|
+
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
4899
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
4880
4900
|
};
|
|
4881
4901
|
};
|
|
4882
4902
|
const serializeAws_json1_1DisassociatePrincipalFromPortfolioInput = (input, context) => {
|
|
4883
4903
|
return {
|
|
4884
|
-
...(input.AcceptLanguage
|
|
4885
|
-
|
|
4886
|
-
...(input.
|
|
4887
|
-
...(input.PrincipalARN !== undefined && input.PrincipalARN !== null && { PrincipalARN: input.PrincipalARN }),
|
|
4904
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4905
|
+
...(input.PortfolioId != null && { PortfolioId: input.PortfolioId }),
|
|
4906
|
+
...(input.PrincipalARN != null && { PrincipalARN: input.PrincipalARN }),
|
|
4888
4907
|
};
|
|
4889
4908
|
};
|
|
4890
4909
|
const serializeAws_json1_1DisassociateProductFromPortfolioInput = (input, context) => {
|
|
4891
4910
|
return {
|
|
4892
|
-
...(input.AcceptLanguage
|
|
4893
|
-
|
|
4894
|
-
...(input.
|
|
4895
|
-
...(input.ProductId !== undefined && input.ProductId !== null && { ProductId: input.ProductId }),
|
|
4911
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4912
|
+
...(input.PortfolioId != null && { PortfolioId: input.PortfolioId }),
|
|
4913
|
+
...(input.ProductId != null && { ProductId: input.ProductId }),
|
|
4896
4914
|
};
|
|
4897
4915
|
};
|
|
4898
4916
|
const serializeAws_json1_1DisassociateServiceActionFromProvisioningArtifactInput = (input, context) => {
|
|
4899
4917
|
return {
|
|
4900
|
-
...(input.AcceptLanguage
|
|
4901
|
-
|
|
4902
|
-
...(input.
|
|
4903
|
-
...(input.
|
|
4904
|
-
input.ProvisioningArtifactId !== null && { ProvisioningArtifactId: input.ProvisioningArtifactId }),
|
|
4905
|
-
...(input.ServiceActionId !== undefined &&
|
|
4906
|
-
input.ServiceActionId !== null && { ServiceActionId: input.ServiceActionId }),
|
|
4918
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4919
|
+
...(input.ProductId != null && { ProductId: input.ProductId }),
|
|
4920
|
+
...(input.ProvisioningArtifactId != null && { ProvisioningArtifactId: input.ProvisioningArtifactId }),
|
|
4921
|
+
...(input.ServiceActionId != null && { ServiceActionId: input.ServiceActionId }),
|
|
4907
4922
|
};
|
|
4908
4923
|
};
|
|
4909
4924
|
const serializeAws_json1_1DisassociateTagOptionFromResourceInput = (input, context) => {
|
|
4910
4925
|
return {
|
|
4911
|
-
...(input.ResourceId
|
|
4912
|
-
...(input.TagOptionId
|
|
4926
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
4927
|
+
...(input.TagOptionId != null && { TagOptionId: input.TagOptionId }),
|
|
4913
4928
|
};
|
|
4914
4929
|
};
|
|
4915
4930
|
const serializeAws_json1_1EnableAWSOrganizationsAccessInput = (input, context) => {
|
|
@@ -4918,26 +4933,21 @@ const serializeAws_json1_1EnableAWSOrganizationsAccessInput = (input, context) =
|
|
|
4918
4933
|
const serializeAws_json1_1ExecuteProvisionedProductPlanInput = (input, context) => {
|
|
4919
4934
|
var _a;
|
|
4920
4935
|
return {
|
|
4921
|
-
...(input.AcceptLanguage
|
|
4922
|
-
input.AcceptLanguage !== null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4936
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4923
4937
|
IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
4924
|
-
...(input.PlanId
|
|
4938
|
+
...(input.PlanId != null && { PlanId: input.PlanId }),
|
|
4925
4939
|
};
|
|
4926
4940
|
};
|
|
4927
4941
|
const serializeAws_json1_1ExecuteProvisionedProductServiceActionInput = (input, context) => {
|
|
4928
4942
|
var _a;
|
|
4929
4943
|
return {
|
|
4930
|
-
...(input.AcceptLanguage
|
|
4931
|
-
input.AcceptLanguage !== null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4944
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4932
4945
|
ExecuteToken: (_a = input.ExecuteToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
4933
|
-
...(input.Parameters
|
|
4934
|
-
input.Parameters !== null && {
|
|
4946
|
+
...(input.Parameters != null && {
|
|
4935
4947
|
Parameters: serializeAws_json1_1ExecutionParameterMap(input.Parameters, context),
|
|
4936
4948
|
}),
|
|
4937
|
-
...(input.ProvisionedProductId
|
|
4938
|
-
|
|
4939
|
-
...(input.ServiceActionId !== undefined &&
|
|
4940
|
-
input.ServiceActionId !== null && { ServiceActionId: input.ServiceActionId }),
|
|
4949
|
+
...(input.ProvisionedProductId != null && { ProvisionedProductId: input.ProvisionedProductId }),
|
|
4950
|
+
...(input.ServiceActionId != null && { ServiceActionId: input.ServiceActionId }),
|
|
4941
4951
|
};
|
|
4942
4952
|
};
|
|
4943
4953
|
const serializeAws_json1_1ExecutionParameterMap = (input, context) => {
|
|
@@ -4966,221 +4976,187 @@ const serializeAws_json1_1GetAWSOrganizationsAccessStatusInput = (input, context
|
|
|
4966
4976
|
};
|
|
4967
4977
|
const serializeAws_json1_1GetProvisionedProductOutputsInput = (input, context) => {
|
|
4968
4978
|
return {
|
|
4969
|
-
...(input.AcceptLanguage
|
|
4970
|
-
|
|
4971
|
-
...(input.
|
|
4972
|
-
|
|
4973
|
-
...(input.
|
|
4974
|
-
...(input.
|
|
4975
|
-
...(input.ProvisionedProductId !== undefined &&
|
|
4976
|
-
input.ProvisionedProductId !== null && { ProvisionedProductId: input.ProvisionedProductId }),
|
|
4977
|
-
...(input.ProvisionedProductName !== undefined &&
|
|
4978
|
-
input.ProvisionedProductName !== null && { ProvisionedProductName: input.ProvisionedProductName }),
|
|
4979
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4980
|
+
...(input.OutputKeys != null && { OutputKeys: serializeAws_json1_1OutputKeys(input.OutputKeys, context) }),
|
|
4981
|
+
...(input.PageSize != null && { PageSize: input.PageSize }),
|
|
4982
|
+
...(input.PageToken != null && { PageToken: input.PageToken }),
|
|
4983
|
+
...(input.ProvisionedProductId != null && { ProvisionedProductId: input.ProvisionedProductId }),
|
|
4984
|
+
...(input.ProvisionedProductName != null && { ProvisionedProductName: input.ProvisionedProductName }),
|
|
4979
4985
|
};
|
|
4980
4986
|
};
|
|
4981
4987
|
const serializeAws_json1_1ImportAsProvisionedProductInput = (input, context) => {
|
|
4982
4988
|
var _a;
|
|
4983
4989
|
return {
|
|
4984
|
-
...(input.AcceptLanguage
|
|
4985
|
-
input.AcceptLanguage !== null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4990
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
4986
4991
|
IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
4987
|
-
...(input.PhysicalId
|
|
4988
|
-
...(input.ProductId
|
|
4989
|
-
...(input.ProvisionedProductName
|
|
4990
|
-
|
|
4991
|
-
...(input.ProvisioningArtifactId !== undefined &&
|
|
4992
|
-
input.ProvisioningArtifactId !== null && { ProvisioningArtifactId: input.ProvisioningArtifactId }),
|
|
4992
|
+
...(input.PhysicalId != null && { PhysicalId: input.PhysicalId }),
|
|
4993
|
+
...(input.ProductId != null && { ProductId: input.ProductId }),
|
|
4994
|
+
...(input.ProvisionedProductName != null && { ProvisionedProductName: input.ProvisionedProductName }),
|
|
4995
|
+
...(input.ProvisioningArtifactId != null && { ProvisioningArtifactId: input.ProvisioningArtifactId }),
|
|
4993
4996
|
};
|
|
4994
4997
|
};
|
|
4995
4998
|
const serializeAws_json1_1ListAcceptedPortfolioSharesInput = (input, context) => {
|
|
4996
4999
|
return {
|
|
4997
|
-
...(input.AcceptLanguage
|
|
4998
|
-
|
|
4999
|
-
...(input.
|
|
5000
|
-
...(input.
|
|
5001
|
-
...(input.PortfolioShareType !== undefined &&
|
|
5002
|
-
input.PortfolioShareType !== null && { PortfolioShareType: input.PortfolioShareType }),
|
|
5000
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
5001
|
+
...(input.PageSize != null && { PageSize: input.PageSize }),
|
|
5002
|
+
...(input.PageToken != null && { PageToken: input.PageToken }),
|
|
5003
|
+
...(input.PortfolioShareType != null && { PortfolioShareType: input.PortfolioShareType }),
|
|
5003
5004
|
};
|
|
5004
5005
|
};
|
|
5005
5006
|
const serializeAws_json1_1ListBudgetsForResourceInput = (input, context) => {
|
|
5006
5007
|
return {
|
|
5007
|
-
...(input.AcceptLanguage
|
|
5008
|
-
|
|
5009
|
-
...(input.
|
|
5010
|
-
...(input.
|
|
5011
|
-
...(input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId }),
|
|
5008
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
5009
|
+
...(input.PageSize != null && { PageSize: input.PageSize }),
|
|
5010
|
+
...(input.PageToken != null && { PageToken: input.PageToken }),
|
|
5011
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
5012
5012
|
};
|
|
5013
5013
|
};
|
|
5014
5014
|
const serializeAws_json1_1ListConstraintsForPortfolioInput = (input, context) => {
|
|
5015
5015
|
return {
|
|
5016
|
-
...(input.AcceptLanguage
|
|
5017
|
-
|
|
5018
|
-
...(input.
|
|
5019
|
-
...(input.
|
|
5020
|
-
...(input.
|
|
5021
|
-
...(input.ProductId !== undefined && input.ProductId !== null && { ProductId: input.ProductId }),
|
|
5016
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
5017
|
+
...(input.PageSize != null && { PageSize: input.PageSize }),
|
|
5018
|
+
...(input.PageToken != null && { PageToken: input.PageToken }),
|
|
5019
|
+
...(input.PortfolioId != null && { PortfolioId: input.PortfolioId }),
|
|
5020
|
+
...(input.ProductId != null && { ProductId: input.ProductId }),
|
|
5022
5021
|
};
|
|
5023
5022
|
};
|
|
5024
5023
|
const serializeAws_json1_1ListLaunchPathsInput = (input, context) => {
|
|
5025
5024
|
return {
|
|
5026
|
-
...(input.AcceptLanguage
|
|
5027
|
-
|
|
5028
|
-
...(input.
|
|
5029
|
-
...(input.
|
|
5030
|
-
...(input.ProductId !== undefined && input.ProductId !== null && { ProductId: input.ProductId }),
|
|
5025
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
5026
|
+
...(input.PageSize != null && { PageSize: input.PageSize }),
|
|
5027
|
+
...(input.PageToken != null && { PageToken: input.PageToken }),
|
|
5028
|
+
...(input.ProductId != null && { ProductId: input.ProductId }),
|
|
5031
5029
|
};
|
|
5032
5030
|
};
|
|
5033
5031
|
const serializeAws_json1_1ListOrganizationPortfolioAccessInput = (input, context) => {
|
|
5034
5032
|
return {
|
|
5035
|
-
...(input.AcceptLanguage
|
|
5036
|
-
|
|
5037
|
-
...(input.
|
|
5038
|
-
|
|
5039
|
-
...(input.
|
|
5040
|
-
...(input.PageToken !== undefined && input.PageToken !== null && { PageToken: input.PageToken }),
|
|
5041
|
-
...(input.PortfolioId !== undefined && input.PortfolioId !== null && { PortfolioId: input.PortfolioId }),
|
|
5033
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
5034
|
+
...(input.OrganizationNodeType != null && { OrganizationNodeType: input.OrganizationNodeType }),
|
|
5035
|
+
...(input.PageSize != null && { PageSize: input.PageSize }),
|
|
5036
|
+
...(input.PageToken != null && { PageToken: input.PageToken }),
|
|
5037
|
+
...(input.PortfolioId != null && { PortfolioId: input.PortfolioId }),
|
|
5042
5038
|
};
|
|
5043
5039
|
};
|
|
5044
5040
|
const serializeAws_json1_1ListPortfolioAccessInput = (input, context) => {
|
|
5045
5041
|
return {
|
|
5046
|
-
...(input.AcceptLanguage
|
|
5047
|
-
|
|
5048
|
-
...(input.
|
|
5049
|
-
|
|
5050
|
-
...(input.
|
|
5051
|
-
...(input.PageToken !== undefined && input.PageToken !== null && { PageToken: input.PageToken }),
|
|
5052
|
-
...(input.PortfolioId !== undefined && input.PortfolioId !== null && { PortfolioId: input.PortfolioId }),
|
|
5042
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
5043
|
+
...(input.OrganizationParentId != null && { OrganizationParentId: input.OrganizationParentId }),
|
|
5044
|
+
...(input.PageSize != null && { PageSize: input.PageSize }),
|
|
5045
|
+
...(input.PageToken != null && { PageToken: input.PageToken }),
|
|
5046
|
+
...(input.PortfolioId != null && { PortfolioId: input.PortfolioId }),
|
|
5053
5047
|
};
|
|
5054
5048
|
};
|
|
5055
5049
|
const serializeAws_json1_1ListPortfoliosForProductInput = (input, context) => {
|
|
5056
5050
|
return {
|
|
5057
|
-
...(input.AcceptLanguage
|
|
5058
|
-
|
|
5059
|
-
...(input.
|
|
5060
|
-
...(input.
|
|
5061
|
-
...(input.ProductId !== undefined && input.ProductId !== null && { ProductId: input.ProductId }),
|
|
5051
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
5052
|
+
...(input.PageSize != null && { PageSize: input.PageSize }),
|
|
5053
|
+
...(input.PageToken != null && { PageToken: input.PageToken }),
|
|
5054
|
+
...(input.ProductId != null && { ProductId: input.ProductId }),
|
|
5062
5055
|
};
|
|
5063
5056
|
};
|
|
5064
5057
|
const serializeAws_json1_1ListPortfoliosInput = (input, context) => {
|
|
5065
5058
|
return {
|
|
5066
|
-
...(input.AcceptLanguage
|
|
5067
|
-
|
|
5068
|
-
...(input.
|
|
5069
|
-
...(input.PageToken !== undefined && input.PageToken !== null && { PageToken: input.PageToken }),
|
|
5059
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
5060
|
+
...(input.PageSize != null && { PageSize: input.PageSize }),
|
|
5061
|
+
...(input.PageToken != null && { PageToken: input.PageToken }),
|
|
5070
5062
|
};
|
|
5071
5063
|
};
|
|
5072
5064
|
const serializeAws_json1_1ListPrincipalsForPortfolioInput = (input, context) => {
|
|
5073
5065
|
return {
|
|
5074
|
-
...(input.AcceptLanguage
|
|
5075
|
-
|
|
5076
|
-
...(input.
|
|
5077
|
-
...(input.
|
|
5078
|
-
...(input.PortfolioId !== undefined && input.PortfolioId !== null && { PortfolioId: input.PortfolioId }),
|
|
5066
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
5067
|
+
...(input.PageSize != null && { PageSize: input.PageSize }),
|
|
5068
|
+
...(input.PageToken != null && { PageToken: input.PageToken }),
|
|
5069
|
+
...(input.PortfolioId != null && { PortfolioId: input.PortfolioId }),
|
|
5079
5070
|
};
|
|
5080
5071
|
};
|
|
5081
5072
|
const serializeAws_json1_1ListProvisionedProductPlansInput = (input, context) => {
|
|
5082
5073
|
return {
|
|
5083
|
-
...(input.AcceptLanguage
|
|
5084
|
-
|
|
5085
|
-
...(input.AccessLevelFilter !== undefined &&
|
|
5086
|
-
input.AccessLevelFilter !== null && {
|
|
5074
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
5075
|
+
...(input.AccessLevelFilter != null && {
|
|
5087
5076
|
AccessLevelFilter: serializeAws_json1_1AccessLevelFilter(input.AccessLevelFilter, context),
|
|
5088
5077
|
}),
|
|
5089
|
-
...(input.PageSize
|
|
5090
|
-
...(input.PageToken
|
|
5091
|
-
...(input.ProvisionProductId
|
|
5092
|
-
input.ProvisionProductId !== null && { ProvisionProductId: input.ProvisionProductId }),
|
|
5078
|
+
...(input.PageSize != null && { PageSize: input.PageSize }),
|
|
5079
|
+
...(input.PageToken != null && { PageToken: input.PageToken }),
|
|
5080
|
+
...(input.ProvisionProductId != null && { ProvisionProductId: input.ProvisionProductId }),
|
|
5093
5081
|
};
|
|
5094
5082
|
};
|
|
5095
5083
|
const serializeAws_json1_1ListProvisioningArtifactsForServiceActionInput = (input, context) => {
|
|
5096
5084
|
return {
|
|
5097
|
-
...(input.AcceptLanguage
|
|
5098
|
-
|
|
5099
|
-
...(input.
|
|
5100
|
-
...(input.
|
|
5101
|
-
...(input.ServiceActionId !== undefined &&
|
|
5102
|
-
input.ServiceActionId !== null && { ServiceActionId: input.ServiceActionId }),
|
|
5085
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
5086
|
+
...(input.PageSize != null && { PageSize: input.PageSize }),
|
|
5087
|
+
...(input.PageToken != null && { PageToken: input.PageToken }),
|
|
5088
|
+
...(input.ServiceActionId != null && { ServiceActionId: input.ServiceActionId }),
|
|
5103
5089
|
};
|
|
5104
5090
|
};
|
|
5105
5091
|
const serializeAws_json1_1ListProvisioningArtifactsInput = (input, context) => {
|
|
5106
5092
|
return {
|
|
5107
|
-
...(input.AcceptLanguage
|
|
5108
|
-
|
|
5109
|
-
...(input.ProductId !== undefined && input.ProductId !== null && { ProductId: input.ProductId }),
|
|
5093
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
5094
|
+
...(input.ProductId != null && { ProductId: input.ProductId }),
|
|
5110
5095
|
};
|
|
5111
5096
|
};
|
|
5112
5097
|
const serializeAws_json1_1ListRecordHistoryInput = (input, context) => {
|
|
5113
5098
|
return {
|
|
5114
|
-
...(input.AcceptLanguage
|
|
5115
|
-
|
|
5116
|
-
...(input.AccessLevelFilter !== undefined &&
|
|
5117
|
-
input.AccessLevelFilter !== null && {
|
|
5099
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
5100
|
+
...(input.AccessLevelFilter != null && {
|
|
5118
5101
|
AccessLevelFilter: serializeAws_json1_1AccessLevelFilter(input.AccessLevelFilter, context),
|
|
5119
5102
|
}),
|
|
5120
|
-
...(input.PageSize
|
|
5121
|
-
...(input.PageToken
|
|
5122
|
-
...(input.SearchFilter
|
|
5123
|
-
input.SearchFilter !== null && {
|
|
5103
|
+
...(input.PageSize != null && { PageSize: input.PageSize }),
|
|
5104
|
+
...(input.PageToken != null && { PageToken: input.PageToken }),
|
|
5105
|
+
...(input.SearchFilter != null && {
|
|
5124
5106
|
SearchFilter: serializeAws_json1_1ListRecordHistorySearchFilter(input.SearchFilter, context),
|
|
5125
5107
|
}),
|
|
5126
5108
|
};
|
|
5127
5109
|
};
|
|
5128
5110
|
const serializeAws_json1_1ListRecordHistorySearchFilter = (input, context) => {
|
|
5129
5111
|
return {
|
|
5130
|
-
...(input.Key
|
|
5131
|
-
...(input.Value
|
|
5112
|
+
...(input.Key != null && { Key: input.Key }),
|
|
5113
|
+
...(input.Value != null && { Value: input.Value }),
|
|
5132
5114
|
};
|
|
5133
5115
|
};
|
|
5134
5116
|
const serializeAws_json1_1ListResourcesForTagOptionInput = (input, context) => {
|
|
5135
5117
|
return {
|
|
5136
|
-
...(input.PageSize
|
|
5137
|
-
...(input.PageToken
|
|
5138
|
-
...(input.ResourceType
|
|
5139
|
-
...(input.TagOptionId
|
|
5118
|
+
...(input.PageSize != null && { PageSize: input.PageSize }),
|
|
5119
|
+
...(input.PageToken != null && { PageToken: input.PageToken }),
|
|
5120
|
+
...(input.ResourceType != null && { ResourceType: input.ResourceType }),
|
|
5121
|
+
...(input.TagOptionId != null && { TagOptionId: input.TagOptionId }),
|
|
5140
5122
|
};
|
|
5141
5123
|
};
|
|
5142
5124
|
const serializeAws_json1_1ListServiceActionsForProvisioningArtifactInput = (input, context) => {
|
|
5143
5125
|
return {
|
|
5144
|
-
...(input.AcceptLanguage
|
|
5145
|
-
|
|
5146
|
-
...(input.
|
|
5147
|
-
...(input.
|
|
5148
|
-
...(input.
|
|
5149
|
-
...(input.ProvisioningArtifactId !== undefined &&
|
|
5150
|
-
input.ProvisioningArtifactId !== null && { ProvisioningArtifactId: input.ProvisioningArtifactId }),
|
|
5126
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
5127
|
+
...(input.PageSize != null && { PageSize: input.PageSize }),
|
|
5128
|
+
...(input.PageToken != null && { PageToken: input.PageToken }),
|
|
5129
|
+
...(input.ProductId != null && { ProductId: input.ProductId }),
|
|
5130
|
+
...(input.ProvisioningArtifactId != null && { ProvisioningArtifactId: input.ProvisioningArtifactId }),
|
|
5151
5131
|
};
|
|
5152
5132
|
};
|
|
5153
5133
|
const serializeAws_json1_1ListServiceActionsInput = (input, context) => {
|
|
5154
5134
|
return {
|
|
5155
|
-
...(input.AcceptLanguage
|
|
5156
|
-
|
|
5157
|
-
...(input.
|
|
5158
|
-
...(input.PageToken !== undefined && input.PageToken !== null && { PageToken: input.PageToken }),
|
|
5135
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
5136
|
+
...(input.PageSize != null && { PageSize: input.PageSize }),
|
|
5137
|
+
...(input.PageToken != null && { PageToken: input.PageToken }),
|
|
5159
5138
|
};
|
|
5160
5139
|
};
|
|
5161
5140
|
const serializeAws_json1_1ListStackInstancesForProvisionedProductInput = (input, context) => {
|
|
5162
5141
|
return {
|
|
5163
|
-
...(input.AcceptLanguage
|
|
5164
|
-
|
|
5165
|
-
...(input.
|
|
5166
|
-
...(input.
|
|
5167
|
-
...(input.ProvisionedProductId !== undefined &&
|
|
5168
|
-
input.ProvisionedProductId !== null && { ProvisionedProductId: input.ProvisionedProductId }),
|
|
5142
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
5143
|
+
...(input.PageSize != null && { PageSize: input.PageSize }),
|
|
5144
|
+
...(input.PageToken != null && { PageToken: input.PageToken }),
|
|
5145
|
+
...(input.ProvisionedProductId != null && { ProvisionedProductId: input.ProvisionedProductId }),
|
|
5169
5146
|
};
|
|
5170
5147
|
};
|
|
5171
5148
|
const serializeAws_json1_1ListTagOptionsFilters = (input, context) => {
|
|
5172
5149
|
return {
|
|
5173
|
-
...(input.Active
|
|
5174
|
-
...(input.Key
|
|
5175
|
-
...(input.Value
|
|
5150
|
+
...(input.Active != null && { Active: input.Active }),
|
|
5151
|
+
...(input.Key != null && { Key: input.Key }),
|
|
5152
|
+
...(input.Value != null && { Value: input.Value }),
|
|
5176
5153
|
};
|
|
5177
5154
|
};
|
|
5178
5155
|
const serializeAws_json1_1ListTagOptionsInput = (input, context) => {
|
|
5179
5156
|
return {
|
|
5180
|
-
...(input.Filters
|
|
5181
|
-
|
|
5182
|
-
...(input.
|
|
5183
|
-
...(input.PageToken !== undefined && input.PageToken !== null && { PageToken: input.PageToken }),
|
|
5157
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1ListTagOptionsFilters(input.Filters, context) }),
|
|
5158
|
+
...(input.PageSize != null && { PageSize: input.PageSize }),
|
|
5159
|
+
...(input.PageToken != null && { PageToken: input.PageToken }),
|
|
5184
5160
|
};
|
|
5185
5161
|
};
|
|
5186
5162
|
const serializeAws_json1_1NotificationArns = (input, context) => {
|
|
@@ -5195,8 +5171,8 @@ const serializeAws_json1_1NotificationArns = (input, context) => {
|
|
|
5195
5171
|
};
|
|
5196
5172
|
const serializeAws_json1_1OrganizationNode = (input, context) => {
|
|
5197
5173
|
return {
|
|
5198
|
-
...(input.Type
|
|
5199
|
-
...(input.Value
|
|
5174
|
+
...(input.Type != null && { Type: input.Type }),
|
|
5175
|
+
...(input.Value != null && { Value: input.Value }),
|
|
5200
5176
|
};
|
|
5201
5177
|
};
|
|
5202
5178
|
const serializeAws_json1_1OutputKeys = (input, context) => {
|
|
@@ -5275,19 +5251,17 @@ const serializeAws_json1_1ProvisioningArtifactInfo = (input, context) => {
|
|
|
5275
5251
|
};
|
|
5276
5252
|
const serializeAws_json1_1ProvisioningArtifactProperties = (input, context) => {
|
|
5277
5253
|
return {
|
|
5278
|
-
...(input.Description
|
|
5279
|
-
...(input.DisableTemplateValidation
|
|
5280
|
-
|
|
5281
|
-
...(input.
|
|
5282
|
-
|
|
5283
|
-
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
5284
|
-
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
5254
|
+
...(input.Description != null && { Description: input.Description }),
|
|
5255
|
+
...(input.DisableTemplateValidation != null && { DisableTemplateValidation: input.DisableTemplateValidation }),
|
|
5256
|
+
...(input.Info != null && { Info: serializeAws_json1_1ProvisioningArtifactInfo(input.Info, context) }),
|
|
5257
|
+
...(input.Name != null && { Name: input.Name }),
|
|
5258
|
+
...(input.Type != null && { Type: input.Type }),
|
|
5285
5259
|
};
|
|
5286
5260
|
};
|
|
5287
5261
|
const serializeAws_json1_1ProvisioningParameter = (input, context) => {
|
|
5288
5262
|
return {
|
|
5289
|
-
...(input.Key
|
|
5290
|
-
...(input.Value
|
|
5263
|
+
...(input.Key != null && { Key: input.Key }),
|
|
5264
|
+
...(input.Value != null && { Value: input.Value }),
|
|
5291
5265
|
};
|
|
5292
5266
|
};
|
|
5293
5267
|
const serializeAws_json1_1ProvisioningParameters = (input, context) => {
|
|
@@ -5302,26 +5276,22 @@ const serializeAws_json1_1ProvisioningParameters = (input, context) => {
|
|
|
5302
5276
|
};
|
|
5303
5277
|
const serializeAws_json1_1ProvisioningPreferences = (input, context) => {
|
|
5304
5278
|
return {
|
|
5305
|
-
...(input.StackSetAccounts
|
|
5306
|
-
input.StackSetAccounts !== null && {
|
|
5279
|
+
...(input.StackSetAccounts != null && {
|
|
5307
5280
|
StackSetAccounts: serializeAws_json1_1StackSetAccounts(input.StackSetAccounts, context),
|
|
5308
5281
|
}),
|
|
5309
|
-
...(input.StackSetFailureToleranceCount
|
|
5310
|
-
input.StackSetFailureToleranceCount !== null && {
|
|
5282
|
+
...(input.StackSetFailureToleranceCount != null && {
|
|
5311
5283
|
StackSetFailureToleranceCount: input.StackSetFailureToleranceCount,
|
|
5312
5284
|
}),
|
|
5313
|
-
...(input.StackSetFailureTolerancePercentage
|
|
5314
|
-
input.StackSetFailureTolerancePercentage !== null && {
|
|
5285
|
+
...(input.StackSetFailureTolerancePercentage != null && {
|
|
5315
5286
|
StackSetFailureTolerancePercentage: input.StackSetFailureTolerancePercentage,
|
|
5316
5287
|
}),
|
|
5317
|
-
...(input.StackSetMaxConcurrencyCount
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5288
|
+
...(input.StackSetMaxConcurrencyCount != null && {
|
|
5289
|
+
StackSetMaxConcurrencyCount: input.StackSetMaxConcurrencyCount,
|
|
5290
|
+
}),
|
|
5291
|
+
...(input.StackSetMaxConcurrencyPercentage != null && {
|
|
5321
5292
|
StackSetMaxConcurrencyPercentage: input.StackSetMaxConcurrencyPercentage,
|
|
5322
5293
|
}),
|
|
5323
|
-
...(input.StackSetRegions
|
|
5324
|
-
input.StackSetRegions !== null && {
|
|
5294
|
+
...(input.StackSetRegions != null && {
|
|
5325
5295
|
StackSetRegions: serializeAws_json1_1StackSetRegions(input.StackSetRegions, context),
|
|
5326
5296
|
}),
|
|
5327
5297
|
};
|
|
@@ -5329,104 +5299,84 @@ const serializeAws_json1_1ProvisioningPreferences = (input, context) => {
|
|
|
5329
5299
|
const serializeAws_json1_1ProvisionProductInput = (input, context) => {
|
|
5330
5300
|
var _a;
|
|
5331
5301
|
return {
|
|
5332
|
-
...(input.AcceptLanguage
|
|
5333
|
-
|
|
5334
|
-
...(input.NotificationArns !== undefined &&
|
|
5335
|
-
input.NotificationArns !== null && {
|
|
5302
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
5303
|
+
...(input.NotificationArns != null && {
|
|
5336
5304
|
NotificationArns: serializeAws_json1_1NotificationArns(input.NotificationArns, context),
|
|
5337
5305
|
}),
|
|
5338
|
-
...(input.PathId
|
|
5339
|
-
...(input.PathName
|
|
5340
|
-
...(input.ProductId
|
|
5341
|
-
...(input.ProductName
|
|
5306
|
+
...(input.PathId != null && { PathId: input.PathId }),
|
|
5307
|
+
...(input.PathName != null && { PathName: input.PathName }),
|
|
5308
|
+
...(input.ProductId != null && { ProductId: input.ProductId }),
|
|
5309
|
+
...(input.ProductName != null && { ProductName: input.ProductName }),
|
|
5342
5310
|
ProvisionToken: (_a = input.ProvisionToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
5343
|
-
...(input.ProvisionedProductName
|
|
5344
|
-
|
|
5345
|
-
...(input.
|
|
5346
|
-
|
|
5347
|
-
...(input.ProvisioningArtifactName !== undefined &&
|
|
5348
|
-
input.ProvisioningArtifactName !== null && { ProvisioningArtifactName: input.ProvisioningArtifactName }),
|
|
5349
|
-
...(input.ProvisioningParameters !== undefined &&
|
|
5350
|
-
input.ProvisioningParameters !== null && {
|
|
5311
|
+
...(input.ProvisionedProductName != null && { ProvisionedProductName: input.ProvisionedProductName }),
|
|
5312
|
+
...(input.ProvisioningArtifactId != null && { ProvisioningArtifactId: input.ProvisioningArtifactId }),
|
|
5313
|
+
...(input.ProvisioningArtifactName != null && { ProvisioningArtifactName: input.ProvisioningArtifactName }),
|
|
5314
|
+
...(input.ProvisioningParameters != null && {
|
|
5351
5315
|
ProvisioningParameters: serializeAws_json1_1ProvisioningParameters(input.ProvisioningParameters, context),
|
|
5352
5316
|
}),
|
|
5353
|
-
...(input.ProvisioningPreferences
|
|
5354
|
-
input.ProvisioningPreferences !== null && {
|
|
5317
|
+
...(input.ProvisioningPreferences != null && {
|
|
5355
5318
|
ProvisioningPreferences: serializeAws_json1_1ProvisioningPreferences(input.ProvisioningPreferences, context),
|
|
5356
5319
|
}),
|
|
5357
|
-
...(input.Tags
|
|
5320
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
5358
5321
|
};
|
|
5359
5322
|
};
|
|
5360
5323
|
const serializeAws_json1_1RejectPortfolioShareInput = (input, context) => {
|
|
5361
5324
|
return {
|
|
5362
|
-
...(input.AcceptLanguage
|
|
5363
|
-
|
|
5364
|
-
...(input.
|
|
5365
|
-
...(input.PortfolioShareType !== undefined &&
|
|
5366
|
-
input.PortfolioShareType !== null && { PortfolioShareType: input.PortfolioShareType }),
|
|
5325
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
5326
|
+
...(input.PortfolioId != null && { PortfolioId: input.PortfolioId }),
|
|
5327
|
+
...(input.PortfolioShareType != null && { PortfolioShareType: input.PortfolioShareType }),
|
|
5367
5328
|
};
|
|
5368
5329
|
};
|
|
5369
5330
|
const serializeAws_json1_1ScanProvisionedProductsInput = (input, context) => {
|
|
5370
5331
|
return {
|
|
5371
|
-
...(input.AcceptLanguage
|
|
5372
|
-
|
|
5373
|
-
...(input.AccessLevelFilter !== undefined &&
|
|
5374
|
-
input.AccessLevelFilter !== null && {
|
|
5332
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
5333
|
+
...(input.AccessLevelFilter != null && {
|
|
5375
5334
|
AccessLevelFilter: serializeAws_json1_1AccessLevelFilter(input.AccessLevelFilter, context),
|
|
5376
5335
|
}),
|
|
5377
|
-
...(input.PageSize
|
|
5378
|
-
...(input.PageToken
|
|
5336
|
+
...(input.PageSize != null && { PageSize: input.PageSize }),
|
|
5337
|
+
...(input.PageToken != null && { PageToken: input.PageToken }),
|
|
5379
5338
|
};
|
|
5380
5339
|
};
|
|
5381
5340
|
const serializeAws_json1_1SearchProductsAsAdminInput = (input, context) => {
|
|
5382
5341
|
return {
|
|
5383
|
-
...(input.AcceptLanguage
|
|
5384
|
-
|
|
5385
|
-
...(input.
|
|
5386
|
-
|
|
5387
|
-
...(input.
|
|
5388
|
-
...(input.
|
|
5389
|
-
...(input.
|
|
5390
|
-
...(input.
|
|
5391
|
-
...(input.SortBy !== undefined && input.SortBy !== null && { SortBy: input.SortBy }),
|
|
5392
|
-
...(input.SortOrder !== undefined && input.SortOrder !== null && { SortOrder: input.SortOrder }),
|
|
5342
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
5343
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1ProductViewFilters(input.Filters, context) }),
|
|
5344
|
+
...(input.PageSize != null && { PageSize: input.PageSize }),
|
|
5345
|
+
...(input.PageToken != null && { PageToken: input.PageToken }),
|
|
5346
|
+
...(input.PortfolioId != null && { PortfolioId: input.PortfolioId }),
|
|
5347
|
+
...(input.ProductSource != null && { ProductSource: input.ProductSource }),
|
|
5348
|
+
...(input.SortBy != null && { SortBy: input.SortBy }),
|
|
5349
|
+
...(input.SortOrder != null && { SortOrder: input.SortOrder }),
|
|
5393
5350
|
};
|
|
5394
5351
|
};
|
|
5395
5352
|
const serializeAws_json1_1SearchProductsInput = (input, context) => {
|
|
5396
5353
|
return {
|
|
5397
|
-
...(input.AcceptLanguage
|
|
5398
|
-
|
|
5399
|
-
...(input.
|
|
5400
|
-
|
|
5401
|
-
...(input.
|
|
5402
|
-
...(input.
|
|
5403
|
-
...(input.SortBy !== undefined && input.SortBy !== null && { SortBy: input.SortBy }),
|
|
5404
|
-
...(input.SortOrder !== undefined && input.SortOrder !== null && { SortOrder: input.SortOrder }),
|
|
5354
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
5355
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1ProductViewFilters(input.Filters, context) }),
|
|
5356
|
+
...(input.PageSize != null && { PageSize: input.PageSize }),
|
|
5357
|
+
...(input.PageToken != null && { PageToken: input.PageToken }),
|
|
5358
|
+
...(input.SortBy != null && { SortBy: input.SortBy }),
|
|
5359
|
+
...(input.SortOrder != null && { SortOrder: input.SortOrder }),
|
|
5405
5360
|
};
|
|
5406
5361
|
};
|
|
5407
5362
|
const serializeAws_json1_1SearchProvisionedProductsInput = (input, context) => {
|
|
5408
5363
|
return {
|
|
5409
|
-
...(input.AcceptLanguage
|
|
5410
|
-
|
|
5411
|
-
...(input.AccessLevelFilter !== undefined &&
|
|
5412
|
-
input.AccessLevelFilter !== null && {
|
|
5364
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
5365
|
+
...(input.AccessLevelFilter != null && {
|
|
5413
5366
|
AccessLevelFilter: serializeAws_json1_1AccessLevelFilter(input.AccessLevelFilter, context),
|
|
5414
5367
|
}),
|
|
5415
|
-
...(input.Filters
|
|
5416
|
-
|
|
5417
|
-
...(input.
|
|
5418
|
-
...(input.
|
|
5419
|
-
...(input.
|
|
5420
|
-
...(input.SortOrder !== undefined && input.SortOrder !== null && { SortOrder: input.SortOrder }),
|
|
5368
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1ProvisionedProductFilters(input.Filters, context) }),
|
|
5369
|
+
...(input.PageSize != null && { PageSize: input.PageSize }),
|
|
5370
|
+
...(input.PageToken != null && { PageToken: input.PageToken }),
|
|
5371
|
+
...(input.SortBy != null && { SortBy: input.SortBy }),
|
|
5372
|
+
...(input.SortOrder != null && { SortOrder: input.SortOrder }),
|
|
5421
5373
|
};
|
|
5422
5374
|
};
|
|
5423
5375
|
const serializeAws_json1_1ServiceActionAssociation = (input, context) => {
|
|
5424
5376
|
return {
|
|
5425
|
-
...(input.ProductId
|
|
5426
|
-
...(input.ProvisioningArtifactId
|
|
5427
|
-
|
|
5428
|
-
...(input.ServiceActionId !== undefined &&
|
|
5429
|
-
input.ServiceActionId !== null && { ServiceActionId: input.ServiceActionId }),
|
|
5377
|
+
...(input.ProductId != null && { ProductId: input.ProductId }),
|
|
5378
|
+
...(input.ProvisioningArtifactId != null && { ProvisioningArtifactId: input.ProvisioningArtifactId }),
|
|
5379
|
+
...(input.ServiceActionId != null && { ServiceActionId: input.ServiceActionId }),
|
|
5430
5380
|
};
|
|
5431
5381
|
};
|
|
5432
5382
|
const serializeAws_json1_1ServiceActionAssociations = (input, context) => {
|
|
@@ -5493,8 +5443,8 @@ const serializeAws_json1_1StackSetRegions = (input, context) => {
|
|
|
5493
5443
|
};
|
|
5494
5444
|
const serializeAws_json1_1Tag = (input, context) => {
|
|
5495
5445
|
return {
|
|
5496
|
-
...(input.Key
|
|
5497
|
-
...(input.Value
|
|
5446
|
+
...(input.Key != null && { Key: input.Key }),
|
|
5447
|
+
...(input.Value != null && { Value: input.Value }),
|
|
5498
5448
|
};
|
|
5499
5449
|
};
|
|
5500
5450
|
const serializeAws_json1_1TagKeys = (input, context) => {
|
|
@@ -5520,136 +5470,108 @@ const serializeAws_json1_1Tags = (input, context) => {
|
|
|
5520
5470
|
const serializeAws_json1_1TerminateProvisionedProductInput = (input, context) => {
|
|
5521
5471
|
var _a;
|
|
5522
5472
|
return {
|
|
5523
|
-
...(input.AcceptLanguage
|
|
5524
|
-
|
|
5525
|
-
...(input.
|
|
5526
|
-
...(input.
|
|
5527
|
-
|
|
5528
|
-
...(input.ProvisionedProductName !== undefined &&
|
|
5529
|
-
input.ProvisionedProductName !== null && { ProvisionedProductName: input.ProvisionedProductName }),
|
|
5530
|
-
...(input.RetainPhysicalResources !== undefined &&
|
|
5531
|
-
input.RetainPhysicalResources !== null && { RetainPhysicalResources: input.RetainPhysicalResources }),
|
|
5473
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
5474
|
+
...(input.IgnoreErrors != null && { IgnoreErrors: input.IgnoreErrors }),
|
|
5475
|
+
...(input.ProvisionedProductId != null && { ProvisionedProductId: input.ProvisionedProductId }),
|
|
5476
|
+
...(input.ProvisionedProductName != null && { ProvisionedProductName: input.ProvisionedProductName }),
|
|
5477
|
+
...(input.RetainPhysicalResources != null && { RetainPhysicalResources: input.RetainPhysicalResources }),
|
|
5532
5478
|
TerminateToken: (_a = input.TerminateToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
5533
5479
|
};
|
|
5534
5480
|
};
|
|
5535
5481
|
const serializeAws_json1_1UpdateConstraintInput = (input, context) => {
|
|
5536
5482
|
return {
|
|
5537
|
-
...(input.AcceptLanguage
|
|
5538
|
-
|
|
5539
|
-
...(input.
|
|
5540
|
-
...(input.
|
|
5541
|
-
...(input.Parameters !== undefined && input.Parameters !== null && { Parameters: input.Parameters }),
|
|
5483
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
5484
|
+
...(input.Description != null && { Description: input.Description }),
|
|
5485
|
+
...(input.Id != null && { Id: input.Id }),
|
|
5486
|
+
...(input.Parameters != null && { Parameters: input.Parameters }),
|
|
5542
5487
|
};
|
|
5543
5488
|
};
|
|
5544
5489
|
const serializeAws_json1_1UpdatePortfolioInput = (input, context) => {
|
|
5545
5490
|
return {
|
|
5546
|
-
...(input.AcceptLanguage
|
|
5547
|
-
|
|
5548
|
-
...(input.
|
|
5549
|
-
|
|
5550
|
-
...(input.
|
|
5551
|
-
...(input.
|
|
5552
|
-
...(input.
|
|
5553
|
-
...(input.ProviderName !== undefined && input.ProviderName !== null && { ProviderName: input.ProviderName }),
|
|
5554
|
-
...(input.RemoveTags !== undefined &&
|
|
5555
|
-
input.RemoveTags !== null && { RemoveTags: serializeAws_json1_1TagKeys(input.RemoveTags, context) }),
|
|
5491
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
5492
|
+
...(input.AddTags != null && { AddTags: serializeAws_json1_1AddTags(input.AddTags, context) }),
|
|
5493
|
+
...(input.Description != null && { Description: input.Description }),
|
|
5494
|
+
...(input.DisplayName != null && { DisplayName: input.DisplayName }),
|
|
5495
|
+
...(input.Id != null && { Id: input.Id }),
|
|
5496
|
+
...(input.ProviderName != null && { ProviderName: input.ProviderName }),
|
|
5497
|
+
...(input.RemoveTags != null && { RemoveTags: serializeAws_json1_1TagKeys(input.RemoveTags, context) }),
|
|
5556
5498
|
};
|
|
5557
5499
|
};
|
|
5558
5500
|
const serializeAws_json1_1UpdatePortfolioShareInput = (input, context) => {
|
|
5559
5501
|
return {
|
|
5560
|
-
...(input.AcceptLanguage
|
|
5561
|
-
|
|
5562
|
-
...(input.
|
|
5563
|
-
...(input.OrganizationNode !== undefined &&
|
|
5564
|
-
input.OrganizationNode !== null && {
|
|
5502
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
5503
|
+
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
5504
|
+
...(input.OrganizationNode != null && {
|
|
5565
5505
|
OrganizationNode: serializeAws_json1_1OrganizationNode(input.OrganizationNode, context),
|
|
5566
5506
|
}),
|
|
5567
|
-
...(input.PortfolioId
|
|
5568
|
-
...(input.ShareTagOptions
|
|
5569
|
-
input.ShareTagOptions !== null && { ShareTagOptions: input.ShareTagOptions }),
|
|
5507
|
+
...(input.PortfolioId != null && { PortfolioId: input.PortfolioId }),
|
|
5508
|
+
...(input.ShareTagOptions != null && { ShareTagOptions: input.ShareTagOptions }),
|
|
5570
5509
|
};
|
|
5571
5510
|
};
|
|
5572
5511
|
const serializeAws_json1_1UpdateProductInput = (input, context) => {
|
|
5573
5512
|
return {
|
|
5574
|
-
...(input.AcceptLanguage
|
|
5575
|
-
|
|
5576
|
-
...(input.
|
|
5577
|
-
|
|
5578
|
-
...(input.
|
|
5579
|
-
...(input.
|
|
5580
|
-
...(input.
|
|
5581
|
-
...(input.
|
|
5582
|
-
...(input.
|
|
5583
|
-
...(input.
|
|
5584
|
-
|
|
5585
|
-
...(input.SupportDescription !== undefined &&
|
|
5586
|
-
input.SupportDescription !== null && { SupportDescription: input.SupportDescription }),
|
|
5587
|
-
...(input.SupportEmail !== undefined && input.SupportEmail !== null && { SupportEmail: input.SupportEmail }),
|
|
5588
|
-
...(input.SupportUrl !== undefined && input.SupportUrl !== null && { SupportUrl: input.SupportUrl }),
|
|
5513
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
5514
|
+
...(input.AddTags != null && { AddTags: serializeAws_json1_1AddTags(input.AddTags, context) }),
|
|
5515
|
+
...(input.Description != null && { Description: input.Description }),
|
|
5516
|
+
...(input.Distributor != null && { Distributor: input.Distributor }),
|
|
5517
|
+
...(input.Id != null && { Id: input.Id }),
|
|
5518
|
+
...(input.Name != null && { Name: input.Name }),
|
|
5519
|
+
...(input.Owner != null && { Owner: input.Owner }),
|
|
5520
|
+
...(input.RemoveTags != null && { RemoveTags: serializeAws_json1_1TagKeys(input.RemoveTags, context) }),
|
|
5521
|
+
...(input.SupportDescription != null && { SupportDescription: input.SupportDescription }),
|
|
5522
|
+
...(input.SupportEmail != null && { SupportEmail: input.SupportEmail }),
|
|
5523
|
+
...(input.SupportUrl != null && { SupportUrl: input.SupportUrl }),
|
|
5589
5524
|
};
|
|
5590
5525
|
};
|
|
5591
5526
|
const serializeAws_json1_1UpdateProvisionedProductInput = (input, context) => {
|
|
5592
5527
|
var _a;
|
|
5593
5528
|
return {
|
|
5594
|
-
...(input.AcceptLanguage
|
|
5595
|
-
|
|
5596
|
-
...(input.
|
|
5597
|
-
...(input.
|
|
5598
|
-
...(input.
|
|
5599
|
-
...(input.
|
|
5600
|
-
...(input.
|
|
5601
|
-
|
|
5602
|
-
...(input.
|
|
5603
|
-
|
|
5604
|
-
...(input.ProvisioningArtifactId !== undefined &&
|
|
5605
|
-
input.ProvisioningArtifactId !== null && { ProvisioningArtifactId: input.ProvisioningArtifactId }),
|
|
5606
|
-
...(input.ProvisioningArtifactName !== undefined &&
|
|
5607
|
-
input.ProvisioningArtifactName !== null && { ProvisioningArtifactName: input.ProvisioningArtifactName }),
|
|
5608
|
-
...(input.ProvisioningParameters !== undefined &&
|
|
5609
|
-
input.ProvisioningParameters !== null && {
|
|
5529
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
5530
|
+
...(input.PathId != null && { PathId: input.PathId }),
|
|
5531
|
+
...(input.PathName != null && { PathName: input.PathName }),
|
|
5532
|
+
...(input.ProductId != null && { ProductId: input.ProductId }),
|
|
5533
|
+
...(input.ProductName != null && { ProductName: input.ProductName }),
|
|
5534
|
+
...(input.ProvisionedProductId != null && { ProvisionedProductId: input.ProvisionedProductId }),
|
|
5535
|
+
...(input.ProvisionedProductName != null && { ProvisionedProductName: input.ProvisionedProductName }),
|
|
5536
|
+
...(input.ProvisioningArtifactId != null && { ProvisioningArtifactId: input.ProvisioningArtifactId }),
|
|
5537
|
+
...(input.ProvisioningArtifactName != null && { ProvisioningArtifactName: input.ProvisioningArtifactName }),
|
|
5538
|
+
...(input.ProvisioningParameters != null && {
|
|
5610
5539
|
ProvisioningParameters: serializeAws_json1_1UpdateProvisioningParameters(input.ProvisioningParameters, context),
|
|
5611
5540
|
}),
|
|
5612
|
-
...(input.ProvisioningPreferences
|
|
5613
|
-
input.ProvisioningPreferences !== null && {
|
|
5541
|
+
...(input.ProvisioningPreferences != null && {
|
|
5614
5542
|
ProvisioningPreferences: serializeAws_json1_1UpdateProvisioningPreferences(input.ProvisioningPreferences, context),
|
|
5615
5543
|
}),
|
|
5616
|
-
...(input.Tags
|
|
5544
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
5617
5545
|
UpdateToken: (_a = input.UpdateToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
5618
5546
|
};
|
|
5619
5547
|
};
|
|
5620
5548
|
const serializeAws_json1_1UpdateProvisionedProductPropertiesInput = (input, context) => {
|
|
5621
5549
|
var _a;
|
|
5622
5550
|
return {
|
|
5623
|
-
...(input.AcceptLanguage
|
|
5624
|
-
input.AcceptLanguage !== null && { AcceptLanguage: input.AcceptLanguage }),
|
|
5551
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
5625
5552
|
IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
5626
|
-
...(input.ProvisionedProductId
|
|
5627
|
-
|
|
5628
|
-
...(input.ProvisionedProductProperties !== undefined &&
|
|
5629
|
-
input.ProvisionedProductProperties !== null && {
|
|
5553
|
+
...(input.ProvisionedProductId != null && { ProvisionedProductId: input.ProvisionedProductId }),
|
|
5554
|
+
...(input.ProvisionedProductProperties != null && {
|
|
5630
5555
|
ProvisionedProductProperties: serializeAws_json1_1ProvisionedProductProperties(input.ProvisionedProductProperties, context),
|
|
5631
5556
|
}),
|
|
5632
5557
|
};
|
|
5633
5558
|
};
|
|
5634
5559
|
const serializeAws_json1_1UpdateProvisioningArtifactInput = (input, context) => {
|
|
5635
5560
|
return {
|
|
5636
|
-
...(input.AcceptLanguage
|
|
5637
|
-
|
|
5638
|
-
...(input.
|
|
5639
|
-
...(input.
|
|
5640
|
-
...(input.
|
|
5641
|
-
...(input.
|
|
5642
|
-
...(input.
|
|
5643
|
-
...(input.ProvisioningArtifactId !== undefined &&
|
|
5644
|
-
input.ProvisioningArtifactId !== null && { ProvisioningArtifactId: input.ProvisioningArtifactId }),
|
|
5561
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
5562
|
+
...(input.Active != null && { Active: input.Active }),
|
|
5563
|
+
...(input.Description != null && { Description: input.Description }),
|
|
5564
|
+
...(input.Guidance != null && { Guidance: input.Guidance }),
|
|
5565
|
+
...(input.Name != null && { Name: input.Name }),
|
|
5566
|
+
...(input.ProductId != null && { ProductId: input.ProductId }),
|
|
5567
|
+
...(input.ProvisioningArtifactId != null && { ProvisioningArtifactId: input.ProvisioningArtifactId }),
|
|
5645
5568
|
};
|
|
5646
5569
|
};
|
|
5647
5570
|
const serializeAws_json1_1UpdateProvisioningParameter = (input, context) => {
|
|
5648
5571
|
return {
|
|
5649
|
-
...(input.Key
|
|
5650
|
-
...(input.UsePreviousValue
|
|
5651
|
-
|
|
5652
|
-
...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
|
|
5572
|
+
...(input.Key != null && { Key: input.Key }),
|
|
5573
|
+
...(input.UsePreviousValue != null && { UsePreviousValue: input.UsePreviousValue }),
|
|
5574
|
+
...(input.Value != null && { Value: input.Value }),
|
|
5653
5575
|
};
|
|
5654
5576
|
};
|
|
5655
5577
|
const serializeAws_json1_1UpdateProvisioningParameters = (input, context) => {
|
|
@@ -5664,50 +5586,43 @@ const serializeAws_json1_1UpdateProvisioningParameters = (input, context) => {
|
|
|
5664
5586
|
};
|
|
5665
5587
|
const serializeAws_json1_1UpdateProvisioningPreferences = (input, context) => {
|
|
5666
5588
|
return {
|
|
5667
|
-
...(input.StackSetAccounts
|
|
5668
|
-
input.StackSetAccounts !== null && {
|
|
5589
|
+
...(input.StackSetAccounts != null && {
|
|
5669
5590
|
StackSetAccounts: serializeAws_json1_1StackSetAccounts(input.StackSetAccounts, context),
|
|
5670
5591
|
}),
|
|
5671
|
-
...(input.StackSetFailureToleranceCount
|
|
5672
|
-
input.StackSetFailureToleranceCount !== null && {
|
|
5592
|
+
...(input.StackSetFailureToleranceCount != null && {
|
|
5673
5593
|
StackSetFailureToleranceCount: input.StackSetFailureToleranceCount,
|
|
5674
5594
|
}),
|
|
5675
|
-
...(input.StackSetFailureTolerancePercentage
|
|
5676
|
-
input.StackSetFailureTolerancePercentage !== null && {
|
|
5595
|
+
...(input.StackSetFailureTolerancePercentage != null && {
|
|
5677
5596
|
StackSetFailureTolerancePercentage: input.StackSetFailureTolerancePercentage,
|
|
5678
5597
|
}),
|
|
5679
|
-
...(input.StackSetMaxConcurrencyCount
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5598
|
+
...(input.StackSetMaxConcurrencyCount != null && {
|
|
5599
|
+
StackSetMaxConcurrencyCount: input.StackSetMaxConcurrencyCount,
|
|
5600
|
+
}),
|
|
5601
|
+
...(input.StackSetMaxConcurrencyPercentage != null && {
|
|
5683
5602
|
StackSetMaxConcurrencyPercentage: input.StackSetMaxConcurrencyPercentage,
|
|
5684
5603
|
}),
|
|
5685
|
-
...(input.StackSetOperationType
|
|
5686
|
-
|
|
5687
|
-
...(input.StackSetRegions !== undefined &&
|
|
5688
|
-
input.StackSetRegions !== null && {
|
|
5604
|
+
...(input.StackSetOperationType != null && { StackSetOperationType: input.StackSetOperationType }),
|
|
5605
|
+
...(input.StackSetRegions != null && {
|
|
5689
5606
|
StackSetRegions: serializeAws_json1_1StackSetRegions(input.StackSetRegions, context),
|
|
5690
5607
|
}),
|
|
5691
5608
|
};
|
|
5692
5609
|
};
|
|
5693
5610
|
const serializeAws_json1_1UpdateServiceActionInput = (input, context) => {
|
|
5694
5611
|
return {
|
|
5695
|
-
...(input.AcceptLanguage
|
|
5696
|
-
|
|
5697
|
-
...(input.Definition !== undefined &&
|
|
5698
|
-
input.Definition !== null && {
|
|
5612
|
+
...(input.AcceptLanguage != null && { AcceptLanguage: input.AcceptLanguage }),
|
|
5613
|
+
...(input.Definition != null && {
|
|
5699
5614
|
Definition: serializeAws_json1_1ServiceActionDefinitionMap(input.Definition, context),
|
|
5700
5615
|
}),
|
|
5701
|
-
...(input.Description
|
|
5702
|
-
...(input.Id
|
|
5703
|
-
...(input.Name
|
|
5616
|
+
...(input.Description != null && { Description: input.Description }),
|
|
5617
|
+
...(input.Id != null && { Id: input.Id }),
|
|
5618
|
+
...(input.Name != null && { Name: input.Name }),
|
|
5704
5619
|
};
|
|
5705
5620
|
};
|
|
5706
5621
|
const serializeAws_json1_1UpdateTagOptionInput = (input, context) => {
|
|
5707
5622
|
return {
|
|
5708
|
-
...(input.Active
|
|
5709
|
-
...(input.Id
|
|
5710
|
-
...(input.Value
|
|
5623
|
+
...(input.Active != null && { Active: input.Active }),
|
|
5624
|
+
...(input.Id != null && { Id: input.Id }),
|
|
5625
|
+
...(input.Value != null && { Value: input.Value }),
|
|
5711
5626
|
};
|
|
5712
5627
|
};
|
|
5713
5628
|
const deserializeAws_json1_1AcceptPortfolioShareOutput = (output, context) => {
|
|
@@ -5752,14 +5667,14 @@ const deserializeAws_json1_1AssociateTagOptionWithResourceOutput = (output, cont
|
|
|
5752
5667
|
};
|
|
5753
5668
|
const deserializeAws_json1_1BatchAssociateServiceActionWithProvisioningArtifactOutput = (output, context) => {
|
|
5754
5669
|
return {
|
|
5755
|
-
FailedServiceActionAssociations: output.FailedServiceActionAssociations
|
|
5670
|
+
FailedServiceActionAssociations: output.FailedServiceActionAssociations != null
|
|
5756
5671
|
? deserializeAws_json1_1FailedServiceActionAssociations(output.FailedServiceActionAssociations, context)
|
|
5757
5672
|
: undefined,
|
|
5758
5673
|
};
|
|
5759
5674
|
};
|
|
5760
5675
|
const deserializeAws_json1_1BatchDisassociateServiceActionFromProvisioningArtifactOutput = (output, context) => {
|
|
5761
5676
|
return {
|
|
5762
|
-
FailedServiceActionAssociations: output.FailedServiceActionAssociations
|
|
5677
|
+
FailedServiceActionAssociations: output.FailedServiceActionAssociations != null
|
|
5763
5678
|
? deserializeAws_json1_1FailedServiceActionAssociations(output.FailedServiceActionAssociations, context)
|
|
5764
5679
|
: undefined,
|
|
5765
5680
|
};
|
|
@@ -5841,7 +5756,7 @@ const deserializeAws_json1_1CopyProductOutput = (output, context) => {
|
|
|
5841
5756
|
};
|
|
5842
5757
|
const deserializeAws_json1_1CreateConstraintOutput = (output, context) => {
|
|
5843
5758
|
return {
|
|
5844
|
-
ConstraintDetail: output.ConstraintDetail
|
|
5759
|
+
ConstraintDetail: output.ConstraintDetail != null
|
|
5845
5760
|
? deserializeAws_json1_1ConstraintDetail(output.ConstraintDetail, context)
|
|
5846
5761
|
: undefined,
|
|
5847
5762
|
ConstraintParameters: (0, smithy_client_1.expectString)(output.ConstraintParameters),
|
|
@@ -5850,10 +5765,10 @@ const deserializeAws_json1_1CreateConstraintOutput = (output, context) => {
|
|
|
5850
5765
|
};
|
|
5851
5766
|
const deserializeAws_json1_1CreatePortfolioOutput = (output, context) => {
|
|
5852
5767
|
return {
|
|
5853
|
-
PortfolioDetail: output.PortfolioDetail
|
|
5768
|
+
PortfolioDetail: output.PortfolioDetail != null
|
|
5854
5769
|
? deserializeAws_json1_1PortfolioDetail(output.PortfolioDetail, context)
|
|
5855
5770
|
: undefined,
|
|
5856
|
-
Tags: output.Tags
|
|
5771
|
+
Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
5857
5772
|
};
|
|
5858
5773
|
};
|
|
5859
5774
|
const deserializeAws_json1_1CreatePortfolioShareOutput = (output, context) => {
|
|
@@ -5863,13 +5778,13 @@ const deserializeAws_json1_1CreatePortfolioShareOutput = (output, context) => {
|
|
|
5863
5778
|
};
|
|
5864
5779
|
const deserializeAws_json1_1CreateProductOutput = (output, context) => {
|
|
5865
5780
|
return {
|
|
5866
|
-
ProductViewDetail: output.ProductViewDetail
|
|
5781
|
+
ProductViewDetail: output.ProductViewDetail != null
|
|
5867
5782
|
? deserializeAws_json1_1ProductViewDetail(output.ProductViewDetail, context)
|
|
5868
5783
|
: undefined,
|
|
5869
|
-
ProvisioningArtifactDetail: output.ProvisioningArtifactDetail
|
|
5784
|
+
ProvisioningArtifactDetail: output.ProvisioningArtifactDetail != null
|
|
5870
5785
|
? deserializeAws_json1_1ProvisioningArtifactDetail(output.ProvisioningArtifactDetail, context)
|
|
5871
5786
|
: undefined,
|
|
5872
|
-
Tags: output.Tags
|
|
5787
|
+
Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
5873
5788
|
};
|
|
5874
5789
|
};
|
|
5875
5790
|
const deserializeAws_json1_1CreateProvisionedProductPlanOutput = (output, context) => {
|
|
@@ -5883,10 +5798,8 @@ const deserializeAws_json1_1CreateProvisionedProductPlanOutput = (output, contex
|
|
|
5883
5798
|
};
|
|
5884
5799
|
const deserializeAws_json1_1CreateProvisioningArtifactOutput = (output, context) => {
|
|
5885
5800
|
return {
|
|
5886
|
-
Info: output.Info
|
|
5887
|
-
|
|
5888
|
-
: undefined,
|
|
5889
|
-
ProvisioningArtifactDetail: output.ProvisioningArtifactDetail !== undefined && output.ProvisioningArtifactDetail !== null
|
|
5801
|
+
Info: output.Info != null ? deserializeAws_json1_1ProvisioningArtifactInfo(output.Info, context) : undefined,
|
|
5802
|
+
ProvisioningArtifactDetail: output.ProvisioningArtifactDetail != null
|
|
5890
5803
|
? deserializeAws_json1_1ProvisioningArtifactDetail(output.ProvisioningArtifactDetail, context)
|
|
5891
5804
|
: undefined,
|
|
5892
5805
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
@@ -5894,14 +5807,14 @@ const deserializeAws_json1_1CreateProvisioningArtifactOutput = (output, context)
|
|
|
5894
5807
|
};
|
|
5895
5808
|
const deserializeAws_json1_1CreateServiceActionOutput = (output, context) => {
|
|
5896
5809
|
return {
|
|
5897
|
-
ServiceActionDetail: output.ServiceActionDetail
|
|
5810
|
+
ServiceActionDetail: output.ServiceActionDetail != null
|
|
5898
5811
|
? deserializeAws_json1_1ServiceActionDetail(output.ServiceActionDetail, context)
|
|
5899
5812
|
: undefined,
|
|
5900
5813
|
};
|
|
5901
5814
|
};
|
|
5902
5815
|
const deserializeAws_json1_1CreateTagOptionOutput = (output, context) => {
|
|
5903
5816
|
return {
|
|
5904
|
-
TagOptionDetail: output.TagOptionDetail
|
|
5817
|
+
TagOptionDetail: output.TagOptionDetail != null
|
|
5905
5818
|
? deserializeAws_json1_1TagOptionDetail(output.TagOptionDetail, context)
|
|
5906
5819
|
: undefined,
|
|
5907
5820
|
};
|
|
@@ -5934,7 +5847,7 @@ const deserializeAws_json1_1DeleteTagOptionOutput = (output, context) => {
|
|
|
5934
5847
|
};
|
|
5935
5848
|
const deserializeAws_json1_1DescribeConstraintOutput = (output, context) => {
|
|
5936
5849
|
return {
|
|
5937
|
-
ConstraintDetail: output.ConstraintDetail
|
|
5850
|
+
ConstraintDetail: output.ConstraintDetail != null
|
|
5938
5851
|
? deserializeAws_json1_1ConstraintDetail(output.ConstraintDetail, context)
|
|
5939
5852
|
: undefined,
|
|
5940
5853
|
ConstraintParameters: (0, smithy_client_1.expectString)(output.ConstraintParameters),
|
|
@@ -5950,22 +5863,18 @@ const deserializeAws_json1_1DescribeCopyProductStatusOutput = (output, context)
|
|
|
5950
5863
|
};
|
|
5951
5864
|
const deserializeAws_json1_1DescribePortfolioOutput = (output, context) => {
|
|
5952
5865
|
return {
|
|
5953
|
-
Budgets: output.Budgets
|
|
5954
|
-
|
|
5955
|
-
: undefined,
|
|
5956
|
-
PortfolioDetail: output.PortfolioDetail !== undefined && output.PortfolioDetail !== null
|
|
5866
|
+
Budgets: output.Budgets != null ? deserializeAws_json1_1Budgets(output.Budgets, context) : undefined,
|
|
5867
|
+
PortfolioDetail: output.PortfolioDetail != null
|
|
5957
5868
|
? deserializeAws_json1_1PortfolioDetail(output.PortfolioDetail, context)
|
|
5958
5869
|
: undefined,
|
|
5959
|
-
TagOptions: output.TagOptions
|
|
5960
|
-
|
|
5961
|
-
: undefined,
|
|
5962
|
-
Tags: output.Tags !== undefined && output.Tags !== null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
5870
|
+
TagOptions: output.TagOptions != null ? deserializeAws_json1_1TagOptionDetails(output.TagOptions, context) : undefined,
|
|
5871
|
+
Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
5963
5872
|
};
|
|
5964
5873
|
};
|
|
5965
5874
|
const deserializeAws_json1_1DescribePortfolioSharesOutput = (output, context) => {
|
|
5966
5875
|
return {
|
|
5967
5876
|
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
5968
|
-
PortfolioShareDetails: output.PortfolioShareDetails
|
|
5877
|
+
PortfolioShareDetails: output.PortfolioShareDetails != null
|
|
5969
5878
|
? deserializeAws_json1_1PortfolioShareDetails(output.PortfolioShareDetails, context)
|
|
5970
5879
|
: undefined,
|
|
5971
5880
|
};
|
|
@@ -5975,61 +5884,51 @@ const deserializeAws_json1_1DescribePortfolioShareStatusOutput = (output, contex
|
|
|
5975
5884
|
OrganizationNodeValue: (0, smithy_client_1.expectString)(output.OrganizationNodeValue),
|
|
5976
5885
|
PortfolioId: (0, smithy_client_1.expectString)(output.PortfolioId),
|
|
5977
5886
|
PortfolioShareToken: (0, smithy_client_1.expectString)(output.PortfolioShareToken),
|
|
5978
|
-
ShareDetails: output.ShareDetails
|
|
5979
|
-
? deserializeAws_json1_1ShareDetails(output.ShareDetails, context)
|
|
5980
|
-
: undefined,
|
|
5887
|
+
ShareDetails: output.ShareDetails != null ? deserializeAws_json1_1ShareDetails(output.ShareDetails, context) : undefined,
|
|
5981
5888
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
5982
5889
|
};
|
|
5983
5890
|
};
|
|
5984
5891
|
const deserializeAws_json1_1DescribeProductAsAdminOutput = (output, context) => {
|
|
5985
5892
|
return {
|
|
5986
|
-
Budgets: output.Budgets
|
|
5987
|
-
|
|
5988
|
-
: undefined,
|
|
5989
|
-
ProductViewDetail: output.ProductViewDetail !== undefined && output.ProductViewDetail !== null
|
|
5893
|
+
Budgets: output.Budgets != null ? deserializeAws_json1_1Budgets(output.Budgets, context) : undefined,
|
|
5894
|
+
ProductViewDetail: output.ProductViewDetail != null
|
|
5990
5895
|
? deserializeAws_json1_1ProductViewDetail(output.ProductViewDetail, context)
|
|
5991
5896
|
: undefined,
|
|
5992
|
-
ProvisioningArtifactSummaries: output.ProvisioningArtifactSummaries
|
|
5897
|
+
ProvisioningArtifactSummaries: output.ProvisioningArtifactSummaries != null
|
|
5993
5898
|
? deserializeAws_json1_1ProvisioningArtifactSummaries(output.ProvisioningArtifactSummaries, context)
|
|
5994
5899
|
: undefined,
|
|
5995
|
-
TagOptions: output.TagOptions
|
|
5996
|
-
|
|
5997
|
-
: undefined,
|
|
5998
|
-
Tags: output.Tags !== undefined && output.Tags !== null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
5900
|
+
TagOptions: output.TagOptions != null ? deserializeAws_json1_1TagOptionDetails(output.TagOptions, context) : undefined,
|
|
5901
|
+
Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
5999
5902
|
};
|
|
6000
5903
|
};
|
|
6001
5904
|
const deserializeAws_json1_1DescribeProductOutput = (output, context) => {
|
|
6002
5905
|
return {
|
|
6003
|
-
Budgets: output.Budgets
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
LaunchPaths: output.LaunchPaths !== undefined && output.LaunchPaths !== null
|
|
6007
|
-
? deserializeAws_json1_1LaunchPaths(output.LaunchPaths, context)
|
|
6008
|
-
: undefined,
|
|
6009
|
-
ProductViewSummary: output.ProductViewSummary !== undefined && output.ProductViewSummary !== null
|
|
5906
|
+
Budgets: output.Budgets != null ? deserializeAws_json1_1Budgets(output.Budgets, context) : undefined,
|
|
5907
|
+
LaunchPaths: output.LaunchPaths != null ? deserializeAws_json1_1LaunchPaths(output.LaunchPaths, context) : undefined,
|
|
5908
|
+
ProductViewSummary: output.ProductViewSummary != null
|
|
6010
5909
|
? deserializeAws_json1_1ProductViewSummary(output.ProductViewSummary, context)
|
|
6011
5910
|
: undefined,
|
|
6012
|
-
ProvisioningArtifacts: output.ProvisioningArtifacts
|
|
5911
|
+
ProvisioningArtifacts: output.ProvisioningArtifacts != null
|
|
6013
5912
|
? deserializeAws_json1_1ProvisioningArtifacts(output.ProvisioningArtifacts, context)
|
|
6014
5913
|
: undefined,
|
|
6015
5914
|
};
|
|
6016
5915
|
};
|
|
6017
5916
|
const deserializeAws_json1_1DescribeProductViewOutput = (output, context) => {
|
|
6018
5917
|
return {
|
|
6019
|
-
ProductViewSummary: output.ProductViewSummary
|
|
5918
|
+
ProductViewSummary: output.ProductViewSummary != null
|
|
6020
5919
|
? deserializeAws_json1_1ProductViewSummary(output.ProductViewSummary, context)
|
|
6021
5920
|
: undefined,
|
|
6022
|
-
ProvisioningArtifacts: output.ProvisioningArtifacts
|
|
5921
|
+
ProvisioningArtifacts: output.ProvisioningArtifacts != null
|
|
6023
5922
|
? deserializeAws_json1_1ProvisioningArtifacts(output.ProvisioningArtifacts, context)
|
|
6024
5923
|
: undefined,
|
|
6025
5924
|
};
|
|
6026
5925
|
};
|
|
6027
5926
|
const deserializeAws_json1_1DescribeProvisionedProductOutput = (output, context) => {
|
|
6028
5927
|
return {
|
|
6029
|
-
CloudWatchDashboards: output.CloudWatchDashboards
|
|
5928
|
+
CloudWatchDashboards: output.CloudWatchDashboards != null
|
|
6030
5929
|
? deserializeAws_json1_1CloudWatchDashboards(output.CloudWatchDashboards, context)
|
|
6031
5930
|
: undefined,
|
|
6032
|
-
ProvisionedProductDetail: output.ProvisionedProductDetail
|
|
5931
|
+
ProvisionedProductDetail: output.ProvisionedProductDetail != null
|
|
6033
5932
|
? deserializeAws_json1_1ProvisionedProductDetail(output.ProvisionedProductDetail, context)
|
|
6034
5933
|
: undefined,
|
|
6035
5934
|
};
|
|
@@ -6037,20 +5936,18 @@ const deserializeAws_json1_1DescribeProvisionedProductOutput = (output, context)
|
|
|
6037
5936
|
const deserializeAws_json1_1DescribeProvisionedProductPlanOutput = (output, context) => {
|
|
6038
5937
|
return {
|
|
6039
5938
|
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
6040
|
-
ProvisionedProductPlanDetails: output.ProvisionedProductPlanDetails
|
|
5939
|
+
ProvisionedProductPlanDetails: output.ProvisionedProductPlanDetails != null
|
|
6041
5940
|
? deserializeAws_json1_1ProvisionedProductPlanDetails(output.ProvisionedProductPlanDetails, context)
|
|
6042
5941
|
: undefined,
|
|
6043
|
-
ResourceChanges: output.ResourceChanges
|
|
5942
|
+
ResourceChanges: output.ResourceChanges != null
|
|
6044
5943
|
? deserializeAws_json1_1ResourceChanges(output.ResourceChanges, context)
|
|
6045
5944
|
: undefined,
|
|
6046
5945
|
};
|
|
6047
5946
|
};
|
|
6048
5947
|
const deserializeAws_json1_1DescribeProvisioningArtifactOutput = (output, context) => {
|
|
6049
5948
|
return {
|
|
6050
|
-
Info: output.Info
|
|
6051
|
-
|
|
6052
|
-
: undefined,
|
|
6053
|
-
ProvisioningArtifactDetail: output.ProvisioningArtifactDetail !== undefined && output.ProvisioningArtifactDetail !== null
|
|
5949
|
+
Info: output.Info != null ? deserializeAws_json1_1ProvisioningArtifactInfo(output.Info, context) : undefined,
|
|
5950
|
+
ProvisioningArtifactDetail: output.ProvisioningArtifactDetail != null
|
|
6054
5951
|
? deserializeAws_json1_1ProvisioningArtifactDetail(output.ProvisioningArtifactDetail, context)
|
|
6055
5952
|
: undefined,
|
|
6056
5953
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
@@ -6058,25 +5955,23 @@ const deserializeAws_json1_1DescribeProvisioningArtifactOutput = (output, contex
|
|
|
6058
5955
|
};
|
|
6059
5956
|
const deserializeAws_json1_1DescribeProvisioningParametersOutput = (output, context) => {
|
|
6060
5957
|
return {
|
|
6061
|
-
ConstraintSummaries: output.ConstraintSummaries
|
|
5958
|
+
ConstraintSummaries: output.ConstraintSummaries != null
|
|
6062
5959
|
? deserializeAws_json1_1ConstraintSummaries(output.ConstraintSummaries, context)
|
|
6063
5960
|
: undefined,
|
|
6064
|
-
ProvisioningArtifactOutputKeys: output.ProvisioningArtifactOutputKeys
|
|
5961
|
+
ProvisioningArtifactOutputKeys: output.ProvisioningArtifactOutputKeys != null
|
|
6065
5962
|
? deserializeAws_json1_1ProvisioningArtifactOutputs(output.ProvisioningArtifactOutputKeys, context)
|
|
6066
5963
|
: undefined,
|
|
6067
|
-
ProvisioningArtifactOutputs: output.ProvisioningArtifactOutputs
|
|
5964
|
+
ProvisioningArtifactOutputs: output.ProvisioningArtifactOutputs != null
|
|
6068
5965
|
? deserializeAws_json1_1ProvisioningArtifactOutputs(output.ProvisioningArtifactOutputs, context)
|
|
6069
5966
|
: undefined,
|
|
6070
|
-
ProvisioningArtifactParameters: output.ProvisioningArtifactParameters
|
|
5967
|
+
ProvisioningArtifactParameters: output.ProvisioningArtifactParameters != null
|
|
6071
5968
|
? deserializeAws_json1_1ProvisioningArtifactParameters(output.ProvisioningArtifactParameters, context)
|
|
6072
5969
|
: undefined,
|
|
6073
|
-
ProvisioningArtifactPreferences: output.ProvisioningArtifactPreferences
|
|
5970
|
+
ProvisioningArtifactPreferences: output.ProvisioningArtifactPreferences != null
|
|
6074
5971
|
? deserializeAws_json1_1ProvisioningArtifactPreferences(output.ProvisioningArtifactPreferences, context)
|
|
6075
5972
|
: undefined,
|
|
6076
|
-
TagOptions: output.TagOptions
|
|
6077
|
-
|
|
6078
|
-
: undefined,
|
|
6079
|
-
UsageInstructions: output.UsageInstructions !== undefined && output.UsageInstructions !== null
|
|
5973
|
+
TagOptions: output.TagOptions != null ? deserializeAws_json1_1TagOptionSummaries(output.TagOptions, context) : undefined,
|
|
5974
|
+
UsageInstructions: output.UsageInstructions != null
|
|
6080
5975
|
? deserializeAws_json1_1UsageInstructions(output.UsageInstructions, context)
|
|
6081
5976
|
: undefined,
|
|
6082
5977
|
};
|
|
@@ -6084,31 +5979,27 @@ const deserializeAws_json1_1DescribeProvisioningParametersOutput = (output, cont
|
|
|
6084
5979
|
const deserializeAws_json1_1DescribeRecordOutput = (output, context) => {
|
|
6085
5980
|
return {
|
|
6086
5981
|
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
6087
|
-
RecordDetail: output.RecordDetail
|
|
6088
|
-
|
|
6089
|
-
: undefined,
|
|
6090
|
-
RecordOutputs: output.RecordOutputs !== undefined && output.RecordOutputs !== null
|
|
6091
|
-
? deserializeAws_json1_1RecordOutputs(output.RecordOutputs, context)
|
|
6092
|
-
: undefined,
|
|
5982
|
+
RecordDetail: output.RecordDetail != null ? deserializeAws_json1_1RecordDetail(output.RecordDetail, context) : undefined,
|
|
5983
|
+
RecordOutputs: output.RecordOutputs != null ? deserializeAws_json1_1RecordOutputs(output.RecordOutputs, context) : undefined,
|
|
6093
5984
|
};
|
|
6094
5985
|
};
|
|
6095
5986
|
const deserializeAws_json1_1DescribeServiceActionExecutionParametersOutput = (output, context) => {
|
|
6096
5987
|
return {
|
|
6097
|
-
ServiceActionParameters: output.ServiceActionParameters
|
|
5988
|
+
ServiceActionParameters: output.ServiceActionParameters != null
|
|
6098
5989
|
? deserializeAws_json1_1ExecutionParameters(output.ServiceActionParameters, context)
|
|
6099
5990
|
: undefined,
|
|
6100
5991
|
};
|
|
6101
5992
|
};
|
|
6102
5993
|
const deserializeAws_json1_1DescribeServiceActionOutput = (output, context) => {
|
|
6103
5994
|
return {
|
|
6104
|
-
ServiceActionDetail: output.ServiceActionDetail
|
|
5995
|
+
ServiceActionDetail: output.ServiceActionDetail != null
|
|
6105
5996
|
? deserializeAws_json1_1ServiceActionDetail(output.ServiceActionDetail, context)
|
|
6106
5997
|
: undefined,
|
|
6107
5998
|
};
|
|
6108
5999
|
};
|
|
6109
6000
|
const deserializeAws_json1_1DescribeTagOptionOutput = (output, context) => {
|
|
6110
6001
|
return {
|
|
6111
|
-
TagOptionDetail: output.TagOptionDetail
|
|
6002
|
+
TagOptionDetail: output.TagOptionDetail != null
|
|
6112
6003
|
? deserializeAws_json1_1TagOptionDetail(output.TagOptionDetail, context)
|
|
6113
6004
|
: undefined,
|
|
6114
6005
|
};
|
|
@@ -6141,21 +6032,17 @@ const deserializeAws_json1_1EnableAWSOrganizationsAccessOutput = (output, contex
|
|
|
6141
6032
|
};
|
|
6142
6033
|
const deserializeAws_json1_1ExecuteProvisionedProductPlanOutput = (output, context) => {
|
|
6143
6034
|
return {
|
|
6144
|
-
RecordDetail: output.RecordDetail
|
|
6145
|
-
? deserializeAws_json1_1RecordDetail(output.RecordDetail, context)
|
|
6146
|
-
: undefined,
|
|
6035
|
+
RecordDetail: output.RecordDetail != null ? deserializeAws_json1_1RecordDetail(output.RecordDetail, context) : undefined,
|
|
6147
6036
|
};
|
|
6148
6037
|
};
|
|
6149
6038
|
const deserializeAws_json1_1ExecuteProvisionedProductServiceActionOutput = (output, context) => {
|
|
6150
6039
|
return {
|
|
6151
|
-
RecordDetail: output.RecordDetail
|
|
6152
|
-
? deserializeAws_json1_1RecordDetail(output.RecordDetail, context)
|
|
6153
|
-
: undefined,
|
|
6040
|
+
RecordDetail: output.RecordDetail != null ? deserializeAws_json1_1RecordDetail(output.RecordDetail, context) : undefined,
|
|
6154
6041
|
};
|
|
6155
6042
|
};
|
|
6156
6043
|
const deserializeAws_json1_1ExecutionParameter = (output, context) => {
|
|
6157
6044
|
return {
|
|
6158
|
-
DefaultValues: output.DefaultValues
|
|
6045
|
+
DefaultValues: output.DefaultValues != null
|
|
6159
6046
|
? deserializeAws_json1_1ExecutionParameterValueList(output.DefaultValues, context)
|
|
6160
6047
|
: undefined,
|
|
6161
6048
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
@@ -6212,16 +6099,12 @@ const deserializeAws_json1_1GetAWSOrganizationsAccessStatusOutput = (output, con
|
|
|
6212
6099
|
const deserializeAws_json1_1GetProvisionedProductOutputsOutput = (output, context) => {
|
|
6213
6100
|
return {
|
|
6214
6101
|
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
6215
|
-
Outputs: output.Outputs
|
|
6216
|
-
? deserializeAws_json1_1RecordOutputs(output.Outputs, context)
|
|
6217
|
-
: undefined,
|
|
6102
|
+
Outputs: output.Outputs != null ? deserializeAws_json1_1RecordOutputs(output.Outputs, context) : undefined,
|
|
6218
6103
|
};
|
|
6219
6104
|
};
|
|
6220
6105
|
const deserializeAws_json1_1ImportAsProvisionedProductOutput = (output, context) => {
|
|
6221
6106
|
return {
|
|
6222
|
-
RecordDetail: output.RecordDetail
|
|
6223
|
-
? deserializeAws_json1_1RecordDetail(output.RecordDetail, context)
|
|
6224
|
-
: undefined,
|
|
6107
|
+
RecordDetail: output.RecordDetail != null ? deserializeAws_json1_1RecordDetail(output.RecordDetail, context) : undefined,
|
|
6225
6108
|
};
|
|
6226
6109
|
};
|
|
6227
6110
|
const deserializeAws_json1_1InvalidParametersException = (output, context) => {
|
|
@@ -6264,12 +6147,12 @@ const deserializeAws_json1_1LaunchPathSummaries = (output, context) => {
|
|
|
6264
6147
|
};
|
|
6265
6148
|
const deserializeAws_json1_1LaunchPathSummary = (output, context) => {
|
|
6266
6149
|
return {
|
|
6267
|
-
ConstraintSummaries: output.ConstraintSummaries
|
|
6150
|
+
ConstraintSummaries: output.ConstraintSummaries != null
|
|
6268
6151
|
? deserializeAws_json1_1ConstraintSummaries(output.ConstraintSummaries, context)
|
|
6269
6152
|
: undefined,
|
|
6270
6153
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
6271
6154
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
6272
|
-
Tags: output.Tags
|
|
6155
|
+
Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
6273
6156
|
};
|
|
6274
6157
|
};
|
|
6275
6158
|
const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
@@ -6280,22 +6163,20 @@ const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
|
6280
6163
|
const deserializeAws_json1_1ListAcceptedPortfolioSharesOutput = (output, context) => {
|
|
6281
6164
|
return {
|
|
6282
6165
|
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
6283
|
-
PortfolioDetails: output.PortfolioDetails
|
|
6166
|
+
PortfolioDetails: output.PortfolioDetails != null
|
|
6284
6167
|
? deserializeAws_json1_1PortfolioDetails(output.PortfolioDetails, context)
|
|
6285
6168
|
: undefined,
|
|
6286
6169
|
};
|
|
6287
6170
|
};
|
|
6288
6171
|
const deserializeAws_json1_1ListBudgetsForResourceOutput = (output, context) => {
|
|
6289
6172
|
return {
|
|
6290
|
-
Budgets: output.Budgets
|
|
6291
|
-
? deserializeAws_json1_1Budgets(output.Budgets, context)
|
|
6292
|
-
: undefined,
|
|
6173
|
+
Budgets: output.Budgets != null ? deserializeAws_json1_1Budgets(output.Budgets, context) : undefined,
|
|
6293
6174
|
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
6294
6175
|
};
|
|
6295
6176
|
};
|
|
6296
6177
|
const deserializeAws_json1_1ListConstraintsForPortfolioOutput = (output, context) => {
|
|
6297
6178
|
return {
|
|
6298
|
-
ConstraintDetails: output.ConstraintDetails
|
|
6179
|
+
ConstraintDetails: output.ConstraintDetails != null
|
|
6299
6180
|
? deserializeAws_json1_1ConstraintDetails(output.ConstraintDetails, context)
|
|
6300
6181
|
: undefined,
|
|
6301
6182
|
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
@@ -6303,7 +6184,7 @@ const deserializeAws_json1_1ListConstraintsForPortfolioOutput = (output, context
|
|
|
6303
6184
|
};
|
|
6304
6185
|
const deserializeAws_json1_1ListLaunchPathsOutput = (output, context) => {
|
|
6305
6186
|
return {
|
|
6306
|
-
LaunchPathSummaries: output.LaunchPathSummaries
|
|
6187
|
+
LaunchPathSummaries: output.LaunchPathSummaries != null
|
|
6307
6188
|
? deserializeAws_json1_1LaunchPathSummaries(output.LaunchPathSummaries, context)
|
|
6308
6189
|
: undefined,
|
|
6309
6190
|
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
@@ -6312,23 +6193,21 @@ const deserializeAws_json1_1ListLaunchPathsOutput = (output, context) => {
|
|
|
6312
6193
|
const deserializeAws_json1_1ListOrganizationPortfolioAccessOutput = (output, context) => {
|
|
6313
6194
|
return {
|
|
6314
6195
|
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
6315
|
-
OrganizationNodes: output.OrganizationNodes
|
|
6196
|
+
OrganizationNodes: output.OrganizationNodes != null
|
|
6316
6197
|
? deserializeAws_json1_1OrganizationNodes(output.OrganizationNodes, context)
|
|
6317
6198
|
: undefined,
|
|
6318
6199
|
};
|
|
6319
6200
|
};
|
|
6320
6201
|
const deserializeAws_json1_1ListPortfolioAccessOutput = (output, context) => {
|
|
6321
6202
|
return {
|
|
6322
|
-
AccountIds: output.AccountIds
|
|
6323
|
-
? deserializeAws_json1_1AccountIds(output.AccountIds, context)
|
|
6324
|
-
: undefined,
|
|
6203
|
+
AccountIds: output.AccountIds != null ? deserializeAws_json1_1AccountIds(output.AccountIds, context) : undefined,
|
|
6325
6204
|
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
6326
6205
|
};
|
|
6327
6206
|
};
|
|
6328
6207
|
const deserializeAws_json1_1ListPortfoliosForProductOutput = (output, context) => {
|
|
6329
6208
|
return {
|
|
6330
6209
|
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
6331
|
-
PortfolioDetails: output.PortfolioDetails
|
|
6210
|
+
PortfolioDetails: output.PortfolioDetails != null
|
|
6332
6211
|
? deserializeAws_json1_1PortfolioDetails(output.PortfolioDetails, context)
|
|
6333
6212
|
: undefined,
|
|
6334
6213
|
};
|
|
@@ -6336,7 +6215,7 @@ const deserializeAws_json1_1ListPortfoliosForProductOutput = (output, context) =
|
|
|
6336
6215
|
const deserializeAws_json1_1ListPortfoliosOutput = (output, context) => {
|
|
6337
6216
|
return {
|
|
6338
6217
|
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
6339
|
-
PortfolioDetails: output.PortfolioDetails
|
|
6218
|
+
PortfolioDetails: output.PortfolioDetails != null
|
|
6340
6219
|
? deserializeAws_json1_1PortfolioDetails(output.PortfolioDetails, context)
|
|
6341
6220
|
: undefined,
|
|
6342
6221
|
};
|
|
@@ -6344,15 +6223,13 @@ const deserializeAws_json1_1ListPortfoliosOutput = (output, context) => {
|
|
|
6344
6223
|
const deserializeAws_json1_1ListPrincipalsForPortfolioOutput = (output, context) => {
|
|
6345
6224
|
return {
|
|
6346
6225
|
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
6347
|
-
Principals: output.Principals
|
|
6348
|
-
? deserializeAws_json1_1Principals(output.Principals, context)
|
|
6349
|
-
: undefined,
|
|
6226
|
+
Principals: output.Principals != null ? deserializeAws_json1_1Principals(output.Principals, context) : undefined,
|
|
6350
6227
|
};
|
|
6351
6228
|
};
|
|
6352
6229
|
const deserializeAws_json1_1ListProvisionedProductPlansOutput = (output, context) => {
|
|
6353
6230
|
return {
|
|
6354
6231
|
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
6355
|
-
ProvisionedProductPlans: output.ProvisionedProductPlans
|
|
6232
|
+
ProvisionedProductPlans: output.ProvisionedProductPlans != null
|
|
6356
6233
|
? deserializeAws_json1_1ProvisionedProductPlans(output.ProvisionedProductPlans, context)
|
|
6357
6234
|
: undefined,
|
|
6358
6235
|
};
|
|
@@ -6360,7 +6237,7 @@ const deserializeAws_json1_1ListProvisionedProductPlansOutput = (output, context
|
|
|
6360
6237
|
const deserializeAws_json1_1ListProvisioningArtifactsForServiceActionOutput = (output, context) => {
|
|
6361
6238
|
return {
|
|
6362
6239
|
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
6363
|
-
ProvisioningArtifactViews: output.ProvisioningArtifactViews
|
|
6240
|
+
ProvisioningArtifactViews: output.ProvisioningArtifactViews != null
|
|
6364
6241
|
? deserializeAws_json1_1ProvisioningArtifactViews(output.ProvisioningArtifactViews, context)
|
|
6365
6242
|
: undefined,
|
|
6366
6243
|
};
|
|
@@ -6368,7 +6245,7 @@ const deserializeAws_json1_1ListProvisioningArtifactsForServiceActionOutput = (o
|
|
|
6368
6245
|
const deserializeAws_json1_1ListProvisioningArtifactsOutput = (output, context) => {
|
|
6369
6246
|
return {
|
|
6370
6247
|
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
6371
|
-
ProvisioningArtifactDetails: output.ProvisioningArtifactDetails
|
|
6248
|
+
ProvisioningArtifactDetails: output.ProvisioningArtifactDetails != null
|
|
6372
6249
|
? deserializeAws_json1_1ProvisioningArtifactDetails(output.ProvisioningArtifactDetails, context)
|
|
6373
6250
|
: undefined,
|
|
6374
6251
|
};
|
|
@@ -6376,15 +6253,13 @@ const deserializeAws_json1_1ListProvisioningArtifactsOutput = (output, context)
|
|
|
6376
6253
|
const deserializeAws_json1_1ListRecordHistoryOutput = (output, context) => {
|
|
6377
6254
|
return {
|
|
6378
6255
|
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
6379
|
-
RecordDetails: output.RecordDetails
|
|
6380
|
-
? deserializeAws_json1_1RecordDetails(output.RecordDetails, context)
|
|
6381
|
-
: undefined,
|
|
6256
|
+
RecordDetails: output.RecordDetails != null ? deserializeAws_json1_1RecordDetails(output.RecordDetails, context) : undefined,
|
|
6382
6257
|
};
|
|
6383
6258
|
};
|
|
6384
6259
|
const deserializeAws_json1_1ListResourcesForTagOptionOutput = (output, context) => {
|
|
6385
6260
|
return {
|
|
6386
6261
|
PageToken: (0, smithy_client_1.expectString)(output.PageToken),
|
|
6387
|
-
ResourceDetails: output.ResourceDetails
|
|
6262
|
+
ResourceDetails: output.ResourceDetails != null
|
|
6388
6263
|
? deserializeAws_json1_1ResourceDetails(output.ResourceDetails, context)
|
|
6389
6264
|
: undefined,
|
|
6390
6265
|
};
|
|
@@ -6392,7 +6267,7 @@ const deserializeAws_json1_1ListResourcesForTagOptionOutput = (output, context)
|
|
|
6392
6267
|
const deserializeAws_json1_1ListServiceActionsForProvisioningArtifactOutput = (output, context) => {
|
|
6393
6268
|
return {
|
|
6394
6269
|
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
6395
|
-
ServiceActionSummaries: output.ServiceActionSummaries
|
|
6270
|
+
ServiceActionSummaries: output.ServiceActionSummaries != null
|
|
6396
6271
|
? deserializeAws_json1_1ServiceActionSummaries(output.ServiceActionSummaries, context)
|
|
6397
6272
|
: undefined,
|
|
6398
6273
|
};
|
|
@@ -6400,7 +6275,7 @@ const deserializeAws_json1_1ListServiceActionsForProvisioningArtifactOutput = (o
|
|
|
6400
6275
|
const deserializeAws_json1_1ListServiceActionsOutput = (output, context) => {
|
|
6401
6276
|
return {
|
|
6402
6277
|
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
6403
|
-
ServiceActionSummaries: output.ServiceActionSummaries
|
|
6278
|
+
ServiceActionSummaries: output.ServiceActionSummaries != null
|
|
6404
6279
|
? deserializeAws_json1_1ServiceActionSummaries(output.ServiceActionSummaries, context)
|
|
6405
6280
|
: undefined,
|
|
6406
6281
|
};
|
|
@@ -6408,15 +6283,13 @@ const deserializeAws_json1_1ListServiceActionsOutput = (output, context) => {
|
|
|
6408
6283
|
const deserializeAws_json1_1ListStackInstancesForProvisionedProductOutput = (output, context) => {
|
|
6409
6284
|
return {
|
|
6410
6285
|
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
6411
|
-
StackInstances: output.StackInstances
|
|
6412
|
-
? deserializeAws_json1_1StackInstances(output.StackInstances, context)
|
|
6413
|
-
: undefined,
|
|
6286
|
+
StackInstances: output.StackInstances != null ? deserializeAws_json1_1StackInstances(output.StackInstances, context) : undefined,
|
|
6414
6287
|
};
|
|
6415
6288
|
};
|
|
6416
6289
|
const deserializeAws_json1_1ListTagOptionsOutput = (output, context) => {
|
|
6417
6290
|
return {
|
|
6418
6291
|
PageToken: (0, smithy_client_1.expectString)(output.PageToken),
|
|
6419
|
-
TagOptionDetails: output.TagOptionDetails
|
|
6292
|
+
TagOptionDetails: output.TagOptionDetails != null
|
|
6420
6293
|
? deserializeAws_json1_1TagOptionDetails(output.TagOptionDetails, context)
|
|
6421
6294
|
: undefined,
|
|
6422
6295
|
};
|
|
@@ -6468,9 +6341,7 @@ const deserializeAws_json1_1OrganizationNodes = (output, context) => {
|
|
|
6468
6341
|
const deserializeAws_json1_1ParameterConstraints = (output, context) => {
|
|
6469
6342
|
return {
|
|
6470
6343
|
AllowedPattern: (0, smithy_client_1.expectString)(output.AllowedPattern),
|
|
6471
|
-
AllowedValues: output.AllowedValues
|
|
6472
|
-
? deserializeAws_json1_1AllowedValues(output.AllowedValues, context)
|
|
6473
|
-
: undefined,
|
|
6344
|
+
AllowedValues: output.AllowedValues != null ? deserializeAws_json1_1AllowedValues(output.AllowedValues, context) : undefined,
|
|
6474
6345
|
ConstraintDescription: (0, smithy_client_1.expectString)(output.ConstraintDescription),
|
|
6475
6346
|
MaxLength: (0, smithy_client_1.expectString)(output.MaxLength),
|
|
6476
6347
|
MaxValue: (0, smithy_client_1.expectString)(output.MaxValue),
|
|
@@ -6481,7 +6352,7 @@ const deserializeAws_json1_1ParameterConstraints = (output, context) => {
|
|
|
6481
6352
|
const deserializeAws_json1_1PortfolioDetail = (output, context) => {
|
|
6482
6353
|
return {
|
|
6483
6354
|
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
6484
|
-
CreatedTime: output.CreatedTime
|
|
6355
|
+
CreatedTime: output.CreatedTime != null
|
|
6485
6356
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
|
|
6486
6357
|
: undefined,
|
|
6487
6358
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
@@ -6567,11 +6438,11 @@ const deserializeAws_json1_1ProductViewAggregationValues = (output, context) =>
|
|
|
6567
6438
|
};
|
|
6568
6439
|
const deserializeAws_json1_1ProductViewDetail = (output, context) => {
|
|
6569
6440
|
return {
|
|
6570
|
-
CreatedTime: output.CreatedTime
|
|
6441
|
+
CreatedTime: output.CreatedTime != null
|
|
6571
6442
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
|
|
6572
6443
|
: undefined,
|
|
6573
6444
|
ProductARN: (0, smithy_client_1.expectString)(output.ProductARN),
|
|
6574
|
-
ProductViewSummary: output.ProductViewSummary
|
|
6445
|
+
ProductViewSummary: output.ProductViewSummary != null
|
|
6575
6446
|
? deserializeAws_json1_1ProductViewSummary(output.ProductViewSummary, context)
|
|
6576
6447
|
: undefined,
|
|
6577
6448
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
@@ -6617,7 +6488,7 @@ const deserializeAws_json1_1ProductViewSummary = (output, context) => {
|
|
|
6617
6488
|
const deserializeAws_json1_1ProvisionedProductAttribute = (output, context) => {
|
|
6618
6489
|
return {
|
|
6619
6490
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
6620
|
-
CreatedTime: output.CreatedTime
|
|
6491
|
+
CreatedTime: output.CreatedTime != null
|
|
6621
6492
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
|
|
6622
6493
|
: undefined,
|
|
6623
6494
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
@@ -6633,7 +6504,7 @@ const deserializeAws_json1_1ProvisionedProductAttribute = (output, context) => {
|
|
|
6633
6504
|
ProvisioningArtifactName: (0, smithy_client_1.expectString)(output.ProvisioningArtifactName),
|
|
6634
6505
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
6635
6506
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
6636
|
-
Tags: output.Tags
|
|
6507
|
+
Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
6637
6508
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
6638
6509
|
UserArn: (0, smithy_client_1.expectString)(output.UserArn),
|
|
6639
6510
|
UserArnSession: (0, smithy_client_1.expectString)(output.UserArnSession),
|
|
@@ -6653,7 +6524,7 @@ const deserializeAws_json1_1ProvisionedProductAttributes = (output, context) =>
|
|
|
6653
6524
|
const deserializeAws_json1_1ProvisionedProductDetail = (output, context) => {
|
|
6654
6525
|
return {
|
|
6655
6526
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
6656
|
-
CreatedTime: output.CreatedTime
|
|
6527
|
+
CreatedTime: output.CreatedTime != null
|
|
6657
6528
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
|
|
6658
6529
|
: undefined,
|
|
6659
6530
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
@@ -6683,10 +6554,10 @@ const deserializeAws_json1_1ProvisionedProductDetails = (output, context) => {
|
|
|
6683
6554
|
};
|
|
6684
6555
|
const deserializeAws_json1_1ProvisionedProductPlanDetails = (output, context) => {
|
|
6685
6556
|
return {
|
|
6686
|
-
CreatedTime: output.CreatedTime
|
|
6557
|
+
CreatedTime: output.CreatedTime != null
|
|
6687
6558
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
|
|
6688
6559
|
: undefined,
|
|
6689
|
-
NotificationArns: output.NotificationArns
|
|
6560
|
+
NotificationArns: output.NotificationArns != null
|
|
6690
6561
|
? deserializeAws_json1_1NotificationArns(output.NotificationArns, context)
|
|
6691
6562
|
: undefined,
|
|
6692
6563
|
PathId: (0, smithy_client_1.expectString)(output.PathId),
|
|
@@ -6697,13 +6568,13 @@ const deserializeAws_json1_1ProvisionedProductPlanDetails = (output, context) =>
|
|
|
6697
6568
|
ProvisionProductId: (0, smithy_client_1.expectString)(output.ProvisionProductId),
|
|
6698
6569
|
ProvisionProductName: (0, smithy_client_1.expectString)(output.ProvisionProductName),
|
|
6699
6570
|
ProvisioningArtifactId: (0, smithy_client_1.expectString)(output.ProvisioningArtifactId),
|
|
6700
|
-
ProvisioningParameters: output.ProvisioningParameters
|
|
6571
|
+
ProvisioningParameters: output.ProvisioningParameters != null
|
|
6701
6572
|
? deserializeAws_json1_1UpdateProvisioningParameters(output.ProvisioningParameters, context)
|
|
6702
6573
|
: undefined,
|
|
6703
6574
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
6704
6575
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
6705
|
-
Tags: output.Tags
|
|
6706
|
-
UpdatedTime: output.UpdatedTime
|
|
6576
|
+
Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
6577
|
+
UpdatedTime: output.UpdatedTime != null
|
|
6707
6578
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedTime)))
|
|
6708
6579
|
: undefined,
|
|
6709
6580
|
};
|
|
@@ -6742,7 +6613,7 @@ const deserializeAws_json1_1ProvisionedProductProperties = (output, context) =>
|
|
|
6742
6613
|
};
|
|
6743
6614
|
const deserializeAws_json1_1ProvisioningArtifact = (output, context) => {
|
|
6744
6615
|
return {
|
|
6745
|
-
CreatedTime: output.CreatedTime
|
|
6616
|
+
CreatedTime: output.CreatedTime != null
|
|
6746
6617
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
|
|
6747
6618
|
: undefined,
|
|
6748
6619
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
@@ -6754,7 +6625,7 @@ const deserializeAws_json1_1ProvisioningArtifact = (output, context) => {
|
|
|
6754
6625
|
const deserializeAws_json1_1ProvisioningArtifactDetail = (output, context) => {
|
|
6755
6626
|
return {
|
|
6756
6627
|
Active: (0, smithy_client_1.expectBoolean)(output.Active),
|
|
6757
|
-
CreatedTime: output.CreatedTime
|
|
6628
|
+
CreatedTime: output.CreatedTime != null
|
|
6758
6629
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
|
|
6759
6630
|
: undefined,
|
|
6760
6631
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
@@ -6808,7 +6679,7 @@ const deserializeAws_json1_1ProvisioningArtifactParameter = (output, context) =>
|
|
|
6808
6679
|
DefaultValue: (0, smithy_client_1.expectString)(output.DefaultValue),
|
|
6809
6680
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
6810
6681
|
IsNoEcho: (0, smithy_client_1.expectBoolean)(output.IsNoEcho),
|
|
6811
|
-
ParameterConstraints: output.ParameterConstraints
|
|
6682
|
+
ParameterConstraints: output.ParameterConstraints != null
|
|
6812
6683
|
? deserializeAws_json1_1ParameterConstraints(output.ParameterConstraints, context)
|
|
6813
6684
|
: undefined,
|
|
6814
6685
|
ParameterKey: (0, smithy_client_1.expectString)(output.ParameterKey),
|
|
@@ -6828,10 +6699,10 @@ const deserializeAws_json1_1ProvisioningArtifactParameters = (output, context) =
|
|
|
6828
6699
|
};
|
|
6829
6700
|
const deserializeAws_json1_1ProvisioningArtifactPreferences = (output, context) => {
|
|
6830
6701
|
return {
|
|
6831
|
-
StackSetAccounts: output.StackSetAccounts
|
|
6702
|
+
StackSetAccounts: output.StackSetAccounts != null
|
|
6832
6703
|
? deserializeAws_json1_1StackSetAccounts(output.StackSetAccounts, context)
|
|
6833
6704
|
: undefined,
|
|
6834
|
-
StackSetRegions: output.StackSetRegions
|
|
6705
|
+
StackSetRegions: output.StackSetRegions != null
|
|
6835
6706
|
? deserializeAws_json1_1StackSetRegions(output.StackSetRegions, context)
|
|
6836
6707
|
: undefined,
|
|
6837
6708
|
};
|
|
@@ -6860,23 +6731,23 @@ const deserializeAws_json1_1ProvisioningArtifactSummaries = (output, context) =>
|
|
|
6860
6731
|
};
|
|
6861
6732
|
const deserializeAws_json1_1ProvisioningArtifactSummary = (output, context) => {
|
|
6862
6733
|
return {
|
|
6863
|
-
CreatedTime: output.CreatedTime
|
|
6734
|
+
CreatedTime: output.CreatedTime != null
|
|
6864
6735
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
|
|
6865
6736
|
: undefined,
|
|
6866
6737
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
6867
6738
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
6868
6739
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
6869
|
-
ProvisioningArtifactMetadata: output.ProvisioningArtifactMetadata
|
|
6740
|
+
ProvisioningArtifactMetadata: output.ProvisioningArtifactMetadata != null
|
|
6870
6741
|
? deserializeAws_json1_1ProvisioningArtifactInfo(output.ProvisioningArtifactMetadata, context)
|
|
6871
6742
|
: undefined,
|
|
6872
6743
|
};
|
|
6873
6744
|
};
|
|
6874
6745
|
const deserializeAws_json1_1ProvisioningArtifactView = (output, context) => {
|
|
6875
6746
|
return {
|
|
6876
|
-
ProductViewSummary: output.ProductViewSummary
|
|
6747
|
+
ProductViewSummary: output.ProductViewSummary != null
|
|
6877
6748
|
? deserializeAws_json1_1ProductViewSummary(output.ProductViewSummary, context)
|
|
6878
6749
|
: undefined,
|
|
6879
|
-
ProvisioningArtifact: output.ProvisioningArtifact
|
|
6750
|
+
ProvisioningArtifact: output.ProvisioningArtifact != null
|
|
6880
6751
|
? deserializeAws_json1_1ProvisioningArtifact(output.ProvisioningArtifact, context)
|
|
6881
6752
|
: undefined,
|
|
6882
6753
|
};
|
|
@@ -6894,14 +6765,12 @@ const deserializeAws_json1_1ProvisioningArtifactViews = (output, context) => {
|
|
|
6894
6765
|
};
|
|
6895
6766
|
const deserializeAws_json1_1ProvisionProductOutput = (output, context) => {
|
|
6896
6767
|
return {
|
|
6897
|
-
RecordDetail: output.RecordDetail
|
|
6898
|
-
? deserializeAws_json1_1RecordDetail(output.RecordDetail, context)
|
|
6899
|
-
: undefined,
|
|
6768
|
+
RecordDetail: output.RecordDetail != null ? deserializeAws_json1_1RecordDetail(output.RecordDetail, context) : undefined,
|
|
6900
6769
|
};
|
|
6901
6770
|
};
|
|
6902
6771
|
const deserializeAws_json1_1RecordDetail = (output, context) => {
|
|
6903
6772
|
return {
|
|
6904
|
-
CreatedTime: output.CreatedTime
|
|
6773
|
+
CreatedTime: output.CreatedTime != null
|
|
6905
6774
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
|
|
6906
6775
|
: undefined,
|
|
6907
6776
|
LaunchRoleArn: (0, smithy_client_1.expectString)(output.LaunchRoleArn),
|
|
@@ -6911,16 +6780,12 @@ const deserializeAws_json1_1RecordDetail = (output, context) => {
|
|
|
6911
6780
|
ProvisionedProductName: (0, smithy_client_1.expectString)(output.ProvisionedProductName),
|
|
6912
6781
|
ProvisionedProductType: (0, smithy_client_1.expectString)(output.ProvisionedProductType),
|
|
6913
6782
|
ProvisioningArtifactId: (0, smithy_client_1.expectString)(output.ProvisioningArtifactId),
|
|
6914
|
-
RecordErrors: output.RecordErrors
|
|
6915
|
-
? deserializeAws_json1_1RecordErrors(output.RecordErrors, context)
|
|
6916
|
-
: undefined,
|
|
6783
|
+
RecordErrors: output.RecordErrors != null ? deserializeAws_json1_1RecordErrors(output.RecordErrors, context) : undefined,
|
|
6917
6784
|
RecordId: (0, smithy_client_1.expectString)(output.RecordId),
|
|
6918
|
-
RecordTags: output.RecordTags
|
|
6919
|
-
? deserializeAws_json1_1RecordTags(output.RecordTags, context)
|
|
6920
|
-
: undefined,
|
|
6785
|
+
RecordTags: output.RecordTags != null ? deserializeAws_json1_1RecordTags(output.RecordTags, context) : undefined,
|
|
6921
6786
|
RecordType: (0, smithy_client_1.expectString)(output.RecordType),
|
|
6922
6787
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
6923
|
-
UpdatedTime: output.UpdatedTime
|
|
6788
|
+
UpdatedTime: output.UpdatedTime != null
|
|
6924
6789
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedTime)))
|
|
6925
6790
|
: undefined,
|
|
6926
6791
|
};
|
|
@@ -6994,25 +6859,19 @@ const deserializeAws_json1_1RejectPortfolioShareOutput = (output, context) => {
|
|
|
6994
6859
|
const deserializeAws_json1_1ResourceChange = (output, context) => {
|
|
6995
6860
|
return {
|
|
6996
6861
|
Action: (0, smithy_client_1.expectString)(output.Action),
|
|
6997
|
-
Details: output.Details
|
|
6998
|
-
? deserializeAws_json1_1ResourceChangeDetails(output.Details, context)
|
|
6999
|
-
: undefined,
|
|
6862
|
+
Details: output.Details != null ? deserializeAws_json1_1ResourceChangeDetails(output.Details, context) : undefined,
|
|
7000
6863
|
LogicalResourceId: (0, smithy_client_1.expectString)(output.LogicalResourceId),
|
|
7001
6864
|
PhysicalResourceId: (0, smithy_client_1.expectString)(output.PhysicalResourceId),
|
|
7002
6865
|
Replacement: (0, smithy_client_1.expectString)(output.Replacement),
|
|
7003
6866
|
ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
|
|
7004
|
-
Scope: output.Scope
|
|
7005
|
-
? deserializeAws_json1_1Scope(output.Scope, context)
|
|
7006
|
-
: undefined,
|
|
6867
|
+
Scope: output.Scope != null ? deserializeAws_json1_1Scope(output.Scope, context) : undefined,
|
|
7007
6868
|
};
|
|
7008
6869
|
};
|
|
7009
6870
|
const deserializeAws_json1_1ResourceChangeDetail = (output, context) => {
|
|
7010
6871
|
return {
|
|
7011
6872
|
CausingEntity: (0, smithy_client_1.expectString)(output.CausingEntity),
|
|
7012
6873
|
Evaluation: (0, smithy_client_1.expectString)(output.Evaluation),
|
|
7013
|
-
Target: output.Target
|
|
7014
|
-
? deserializeAws_json1_1ResourceTargetDefinition(output.Target, context)
|
|
7015
|
-
: undefined,
|
|
6874
|
+
Target: output.Target != null ? deserializeAws_json1_1ResourceTargetDefinition(output.Target, context) : undefined,
|
|
7016
6875
|
};
|
|
7017
6876
|
};
|
|
7018
6877
|
const deserializeAws_json1_1ResourceChangeDetails = (output, context) => {
|
|
@@ -7040,7 +6899,7 @@ const deserializeAws_json1_1ResourceChanges = (output, context) => {
|
|
|
7040
6899
|
const deserializeAws_json1_1ResourceDetail = (output, context) => {
|
|
7041
6900
|
return {
|
|
7042
6901
|
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
7043
|
-
CreatedTime: output.CreatedTime
|
|
6902
|
+
CreatedTime: output.CreatedTime != null
|
|
7044
6903
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
|
|
7045
6904
|
: undefined,
|
|
7046
6905
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
@@ -7079,7 +6938,7 @@ const deserializeAws_json1_1ResourceTargetDefinition = (output, context) => {
|
|
|
7079
6938
|
const deserializeAws_json1_1ScanProvisionedProductsOutput = (output, context) => {
|
|
7080
6939
|
return {
|
|
7081
6940
|
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
7082
|
-
ProvisionedProducts: output.ProvisionedProducts
|
|
6941
|
+
ProvisionedProducts: output.ProvisionedProducts != null
|
|
7083
6942
|
? deserializeAws_json1_1ProvisionedProductDetails(output.ProvisionedProducts, context)
|
|
7084
6943
|
: undefined,
|
|
7085
6944
|
};
|
|
@@ -7098,7 +6957,7 @@ const deserializeAws_json1_1Scope = (output, context) => {
|
|
|
7098
6957
|
const deserializeAws_json1_1SearchProductsAsAdminOutput = (output, context) => {
|
|
7099
6958
|
return {
|
|
7100
6959
|
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
7101
|
-
ProductViewDetails: output.ProductViewDetails
|
|
6960
|
+
ProductViewDetails: output.ProductViewDetails != null
|
|
7102
6961
|
? deserializeAws_json1_1ProductViewDetails(output.ProductViewDetails, context)
|
|
7103
6962
|
: undefined,
|
|
7104
6963
|
};
|
|
@@ -7106,10 +6965,10 @@ const deserializeAws_json1_1SearchProductsAsAdminOutput = (output, context) => {
|
|
|
7106
6965
|
const deserializeAws_json1_1SearchProductsOutput = (output, context) => {
|
|
7107
6966
|
return {
|
|
7108
6967
|
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
7109
|
-
ProductViewAggregations: output.ProductViewAggregations
|
|
6968
|
+
ProductViewAggregations: output.ProductViewAggregations != null
|
|
7110
6969
|
? deserializeAws_json1_1ProductViewAggregations(output.ProductViewAggregations, context)
|
|
7111
6970
|
: undefined,
|
|
7112
|
-
ProductViewSummaries: output.ProductViewSummaries
|
|
6971
|
+
ProductViewSummaries: output.ProductViewSummaries != null
|
|
7113
6972
|
? deserializeAws_json1_1ProductViewSummaries(output.ProductViewSummaries, context)
|
|
7114
6973
|
: undefined,
|
|
7115
6974
|
};
|
|
@@ -7117,7 +6976,7 @@ const deserializeAws_json1_1SearchProductsOutput = (output, context) => {
|
|
|
7117
6976
|
const deserializeAws_json1_1SearchProvisionedProductsOutput = (output, context) => {
|
|
7118
6977
|
return {
|
|
7119
6978
|
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
7120
|
-
ProvisionedProducts: output.ProvisionedProducts
|
|
6979
|
+
ProvisionedProducts: output.ProvisionedProducts != null
|
|
7121
6980
|
? deserializeAws_json1_1ProvisionedProductAttributes(output.ProvisionedProducts, context)
|
|
7122
6981
|
: undefined,
|
|
7123
6982
|
TotalResultsCount: (0, smithy_client_1.expectInt32)(output.TotalResultsCount),
|
|
@@ -7136,10 +6995,10 @@ const deserializeAws_json1_1ServiceActionDefinitionMap = (output, context) => {
|
|
|
7136
6995
|
};
|
|
7137
6996
|
const deserializeAws_json1_1ServiceActionDetail = (output, context) => {
|
|
7138
6997
|
return {
|
|
7139
|
-
Definition: output.Definition
|
|
6998
|
+
Definition: output.Definition != null
|
|
7140
6999
|
? deserializeAws_json1_1ServiceActionDefinitionMap(output.Definition, context)
|
|
7141
7000
|
: undefined,
|
|
7142
|
-
ServiceActionSummary: output.ServiceActionSummary
|
|
7001
|
+
ServiceActionSummary: output.ServiceActionSummary != null
|
|
7143
7002
|
? deserializeAws_json1_1ServiceActionSummary(output.ServiceActionSummary, context)
|
|
7144
7003
|
: undefined,
|
|
7145
7004
|
};
|
|
@@ -7165,19 +7024,15 @@ const deserializeAws_json1_1ServiceActionSummary = (output, context) => {
|
|
|
7165
7024
|
};
|
|
7166
7025
|
const deserializeAws_json1_1ShareDetails = (output, context) => {
|
|
7167
7026
|
return {
|
|
7168
|
-
ShareErrors: output.ShareErrors
|
|
7169
|
-
|
|
7170
|
-
: undefined,
|
|
7171
|
-
SuccessfulShares: output.SuccessfulShares !== undefined && output.SuccessfulShares !== null
|
|
7027
|
+
ShareErrors: output.ShareErrors != null ? deserializeAws_json1_1ShareErrors(output.ShareErrors, context) : undefined,
|
|
7028
|
+
SuccessfulShares: output.SuccessfulShares != null
|
|
7172
7029
|
? deserializeAws_json1_1SuccessfulShares(output.SuccessfulShares, context)
|
|
7173
7030
|
: undefined,
|
|
7174
7031
|
};
|
|
7175
7032
|
};
|
|
7176
7033
|
const deserializeAws_json1_1ShareError = (output, context) => {
|
|
7177
7034
|
return {
|
|
7178
|
-
Accounts: output.Accounts
|
|
7179
|
-
? deserializeAws_json1_1Namespaces(output.Accounts, context)
|
|
7180
|
-
: undefined,
|
|
7035
|
+
Accounts: output.Accounts != null ? deserializeAws_json1_1Namespaces(output.Accounts, context) : undefined,
|
|
7181
7036
|
Error: (0, smithy_client_1.expectString)(output.Error),
|
|
7182
7037
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
7183
7038
|
};
|
|
@@ -7289,9 +7144,7 @@ const deserializeAws_json1_1TagOptionSummaries = (output, context) => {
|
|
|
7289
7144
|
const deserializeAws_json1_1TagOptionSummary = (output, context) => {
|
|
7290
7145
|
return {
|
|
7291
7146
|
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
7292
|
-
Values: output.Values
|
|
7293
|
-
? deserializeAws_json1_1TagOptionValues(output.Values, context)
|
|
7294
|
-
: undefined,
|
|
7147
|
+
Values: output.Values != null ? deserializeAws_json1_1TagOptionValues(output.Values, context) : undefined,
|
|
7295
7148
|
};
|
|
7296
7149
|
};
|
|
7297
7150
|
const deserializeAws_json1_1TagOptionValues = (output, context) => {
|
|
@@ -7318,14 +7171,12 @@ const deserializeAws_json1_1Tags = (output, context) => {
|
|
|
7318
7171
|
};
|
|
7319
7172
|
const deserializeAws_json1_1TerminateProvisionedProductOutput = (output, context) => {
|
|
7320
7173
|
return {
|
|
7321
|
-
RecordDetail: output.RecordDetail
|
|
7322
|
-
? deserializeAws_json1_1RecordDetail(output.RecordDetail, context)
|
|
7323
|
-
: undefined,
|
|
7174
|
+
RecordDetail: output.RecordDetail != null ? deserializeAws_json1_1RecordDetail(output.RecordDetail, context) : undefined,
|
|
7324
7175
|
};
|
|
7325
7176
|
};
|
|
7326
7177
|
const deserializeAws_json1_1UpdateConstraintOutput = (output, context) => {
|
|
7327
7178
|
return {
|
|
7328
|
-
ConstraintDetail: output.ConstraintDetail
|
|
7179
|
+
ConstraintDetail: output.ConstraintDetail != null
|
|
7329
7180
|
? deserializeAws_json1_1ConstraintDetail(output.ConstraintDetail, context)
|
|
7330
7181
|
: undefined,
|
|
7331
7182
|
ConstraintParameters: (0, smithy_client_1.expectString)(output.ConstraintParameters),
|
|
@@ -7334,10 +7185,10 @@ const deserializeAws_json1_1UpdateConstraintOutput = (output, context) => {
|
|
|
7334
7185
|
};
|
|
7335
7186
|
const deserializeAws_json1_1UpdatePortfolioOutput = (output, context) => {
|
|
7336
7187
|
return {
|
|
7337
|
-
PortfolioDetail: output.PortfolioDetail
|
|
7188
|
+
PortfolioDetail: output.PortfolioDetail != null
|
|
7338
7189
|
? deserializeAws_json1_1PortfolioDetail(output.PortfolioDetail, context)
|
|
7339
7190
|
: undefined,
|
|
7340
|
-
Tags: output.Tags
|
|
7191
|
+
Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
7341
7192
|
};
|
|
7342
7193
|
};
|
|
7343
7194
|
const deserializeAws_json1_1UpdatePortfolioShareOutput = (output, context) => {
|
|
@@ -7348,23 +7199,21 @@ const deserializeAws_json1_1UpdatePortfolioShareOutput = (output, context) => {
|
|
|
7348
7199
|
};
|
|
7349
7200
|
const deserializeAws_json1_1UpdateProductOutput = (output, context) => {
|
|
7350
7201
|
return {
|
|
7351
|
-
ProductViewDetail: output.ProductViewDetail
|
|
7202
|
+
ProductViewDetail: output.ProductViewDetail != null
|
|
7352
7203
|
? deserializeAws_json1_1ProductViewDetail(output.ProductViewDetail, context)
|
|
7353
7204
|
: undefined,
|
|
7354
|
-
Tags: output.Tags
|
|
7205
|
+
Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
7355
7206
|
};
|
|
7356
7207
|
};
|
|
7357
7208
|
const deserializeAws_json1_1UpdateProvisionedProductOutput = (output, context) => {
|
|
7358
7209
|
return {
|
|
7359
|
-
RecordDetail: output.RecordDetail
|
|
7360
|
-
? deserializeAws_json1_1RecordDetail(output.RecordDetail, context)
|
|
7361
|
-
: undefined,
|
|
7210
|
+
RecordDetail: output.RecordDetail != null ? deserializeAws_json1_1RecordDetail(output.RecordDetail, context) : undefined,
|
|
7362
7211
|
};
|
|
7363
7212
|
};
|
|
7364
7213
|
const deserializeAws_json1_1UpdateProvisionedProductPropertiesOutput = (output, context) => {
|
|
7365
7214
|
return {
|
|
7366
7215
|
ProvisionedProductId: (0, smithy_client_1.expectString)(output.ProvisionedProductId),
|
|
7367
|
-
ProvisionedProductProperties: output.ProvisionedProductProperties
|
|
7216
|
+
ProvisionedProductProperties: output.ProvisionedProductProperties != null
|
|
7368
7217
|
? deserializeAws_json1_1ProvisionedProductProperties(output.ProvisionedProductProperties, context)
|
|
7369
7218
|
: undefined,
|
|
7370
7219
|
RecordId: (0, smithy_client_1.expectString)(output.RecordId),
|
|
@@ -7373,10 +7222,8 @@ const deserializeAws_json1_1UpdateProvisionedProductPropertiesOutput = (output,
|
|
|
7373
7222
|
};
|
|
7374
7223
|
const deserializeAws_json1_1UpdateProvisioningArtifactOutput = (output, context) => {
|
|
7375
7224
|
return {
|
|
7376
|
-
Info: output.Info
|
|
7377
|
-
|
|
7378
|
-
: undefined,
|
|
7379
|
-
ProvisioningArtifactDetail: output.ProvisioningArtifactDetail !== undefined && output.ProvisioningArtifactDetail !== null
|
|
7225
|
+
Info: output.Info != null ? deserializeAws_json1_1ProvisioningArtifactInfo(output.Info, context) : undefined,
|
|
7226
|
+
ProvisioningArtifactDetail: output.ProvisioningArtifactDetail != null
|
|
7380
7227
|
? deserializeAws_json1_1ProvisioningArtifactDetail(output.ProvisioningArtifactDetail, context)
|
|
7381
7228
|
: undefined,
|
|
7382
7229
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
@@ -7402,14 +7249,14 @@ const deserializeAws_json1_1UpdateProvisioningParameters = (output, context) =>
|
|
|
7402
7249
|
};
|
|
7403
7250
|
const deserializeAws_json1_1UpdateServiceActionOutput = (output, context) => {
|
|
7404
7251
|
return {
|
|
7405
|
-
ServiceActionDetail: output.ServiceActionDetail
|
|
7252
|
+
ServiceActionDetail: output.ServiceActionDetail != null
|
|
7406
7253
|
? deserializeAws_json1_1ServiceActionDetail(output.ServiceActionDetail, context)
|
|
7407
7254
|
: undefined,
|
|
7408
7255
|
};
|
|
7409
7256
|
};
|
|
7410
7257
|
const deserializeAws_json1_1UpdateTagOptionOutput = (output, context) => {
|
|
7411
7258
|
return {
|
|
7412
|
-
TagOptionDetail: output.TagOptionDetail
|
|
7259
|
+
TagOptionDetail: output.TagOptionDetail != null
|
|
7413
7260
|
? deserializeAws_json1_1TagOptionDetail(output.TagOptionDetail, context)
|
|
7414
7261
|
: undefined,
|
|
7415
7262
|
};
|
|
@@ -7493,5 +7340,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
7493
7340
|
if (data["__type"] !== undefined) {
|
|
7494
7341
|
return sanitizeErrorCode(data["__type"]);
|
|
7495
7342
|
}
|
|
7496
|
-
return "";
|
|
7497
7343
|
};
|