@aws-sdk/client-dataexchange 3.118.0 → 3.127.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +261 -297
- package/dist-es/protocols/Aws_restJson1.js +229 -265
- package/package.json +26 -26
|
@@ -45,8 +45,7 @@ export var serializeAws_restJson1CreateDataSetCommand = function (input, context
|
|
|
45
45
|
"content-type": "application/json",
|
|
46
46
|
};
|
|
47
47
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/data-sets";
|
|
48
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AssetType
|
|
49
|
-
input.Tags !== null && { Tags: serializeAws_restJson1MapOf__string(input.Tags, context) })));
|
|
48
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AssetType != null && { AssetType: input.AssetType })), (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1MapOf__string(input.Tags, context) })));
|
|
50
49
|
return [2, new __HttpRequest({
|
|
51
50
|
protocol: protocol,
|
|
52
51
|
hostname: hostname,
|
|
@@ -70,9 +69,7 @@ export var serializeAws_restJson1CreateEventActionCommand = function (input, con
|
|
|
70
69
|
"content-type": "application/json",
|
|
71
70
|
};
|
|
72
71
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/event-actions";
|
|
73
|
-
body = JSON.stringify(__assign(__assign({}, (input.Action
|
|
74
|
-
input.Action !== null && { Action: serializeAws_restJson1Action(input.Action, context) })), (input.Event !== undefined &&
|
|
75
|
-
input.Event !== null && { Event: serializeAws_restJson1Event(input.Event, context) })));
|
|
72
|
+
body = JSON.stringify(__assign(__assign({}, (input.Action != null && { Action: serializeAws_restJson1Action(input.Action, context) })), (input.Event != null && { Event: serializeAws_restJson1Event(input.Event, context) })));
|
|
76
73
|
return [2, new __HttpRequest({
|
|
77
74
|
protocol: protocol,
|
|
78
75
|
hostname: hostname,
|
|
@@ -96,8 +93,7 @@ export var serializeAws_restJson1CreateJobCommand = function (input, context) {
|
|
|
96
93
|
"content-type": "application/json",
|
|
97
94
|
};
|
|
98
95
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/jobs";
|
|
99
|
-
body = JSON.stringify(__assign(__assign({}, (input.Details
|
|
100
|
-
input.Details !== null && { Details: serializeAws_restJson1RequestDetails(input.Details, context) })), (input.Type !== undefined && input.Type !== null && { Type: input.Type })));
|
|
96
|
+
body = JSON.stringify(__assign(__assign({}, (input.Details != null && { Details: serializeAws_restJson1RequestDetails(input.Details, context) })), (input.Type != null && { Type: input.Type })));
|
|
101
97
|
return [2, new __HttpRequest({
|
|
102
98
|
protocol: protocol,
|
|
103
99
|
hostname: hostname,
|
|
@@ -131,8 +127,7 @@ export var serializeAws_restJson1CreateRevisionCommand = function (input, contex
|
|
|
131
127
|
else {
|
|
132
128
|
throw new Error("No value provided for input HTTP label: DataSetId.");
|
|
133
129
|
}
|
|
134
|
-
body = JSON.stringify(__assign(__assign({}, (input.Comment
|
|
135
|
-
input.Tags !== null && { Tags: serializeAws_restJson1MapOf__string(input.Tags, context) })));
|
|
130
|
+
body = JSON.stringify(__assign(__assign({}, (input.Comment != null && { Comment: input.Comment })), (input.Tags != null && { Tags: serializeAws_restJson1MapOf__string(input.Tags, context) })));
|
|
136
131
|
return [2, new __HttpRequest({
|
|
137
132
|
protocol: protocol,
|
|
138
133
|
hostname: hostname,
|
|
@@ -697,8 +692,7 @@ export var serializeAws_restJson1RevokeRevisionCommand = function (input, contex
|
|
|
697
692
|
else {
|
|
698
693
|
throw new Error("No value provided for input HTTP label: RevisionId.");
|
|
699
694
|
}
|
|
700
|
-
body = JSON.stringify(__assign({}, (input.RevocationComment
|
|
701
|
-
input.RevocationComment !== null && { RevocationComment: input.RevocationComment })));
|
|
695
|
+
body = JSON.stringify(__assign({}, (input.RevocationComment != null && { RevocationComment: input.RevocationComment })));
|
|
702
696
|
return [2, new __HttpRequest({
|
|
703
697
|
protocol: protocol,
|
|
704
698
|
hostname: hostname,
|
|
@@ -802,8 +796,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
802
796
|
else {
|
|
803
797
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
804
798
|
}
|
|
805
|
-
body = JSON.stringify(__assign({}, (input.Tags
|
|
806
|
-
input.Tags !== null && { tags: serializeAws_restJson1MapOf__string(input.Tags, context) })));
|
|
799
|
+
body = JSON.stringify(__assign({}, (input.Tags != null && { tags: serializeAws_restJson1MapOf__string(input.Tags, context) })));
|
|
807
800
|
return [2, new __HttpRequest({
|
|
808
801
|
protocol: protocol,
|
|
809
802
|
hostname: hostname,
|
|
@@ -891,7 +884,7 @@ export var serializeAws_restJson1UpdateAssetCommand = function (input, context)
|
|
|
891
884
|
else {
|
|
892
885
|
throw new Error("No value provided for input HTTP label: RevisionId.");
|
|
893
886
|
}
|
|
894
|
-
body = JSON.stringify(__assign({}, (input.Name
|
|
887
|
+
body = JSON.stringify(__assign({}, (input.Name != null && { Name: input.Name })));
|
|
895
888
|
return [2, new __HttpRequest({
|
|
896
889
|
protocol: protocol,
|
|
897
890
|
hostname: hostname,
|
|
@@ -925,7 +918,7 @@ export var serializeAws_restJson1UpdateDataSetCommand = function (input, context
|
|
|
925
918
|
else {
|
|
926
919
|
throw new Error("No value provided for input HTTP label: DataSetId.");
|
|
927
920
|
}
|
|
928
|
-
body = JSON.stringify(__assign(__assign({}, (input.Description
|
|
921
|
+
body = JSON.stringify(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })));
|
|
929
922
|
return [2, new __HttpRequest({
|
|
930
923
|
protocol: protocol,
|
|
931
924
|
hostname: hostname,
|
|
@@ -959,8 +952,7 @@ export var serializeAws_restJson1UpdateEventActionCommand = function (input, con
|
|
|
959
952
|
else {
|
|
960
953
|
throw new Error("No value provided for input HTTP label: EventActionId.");
|
|
961
954
|
}
|
|
962
|
-
body = JSON.stringify(__assign({}, (input.Action
|
|
963
|
-
input.Action !== null && { Action: serializeAws_restJson1Action(input.Action, context) })));
|
|
955
|
+
body = JSON.stringify(__assign({}, (input.Action != null && { Action: serializeAws_restJson1Action(input.Action, context) })));
|
|
964
956
|
return [2, new __HttpRequest({
|
|
965
957
|
protocol: protocol,
|
|
966
958
|
hostname: hostname,
|
|
@@ -1005,7 +997,7 @@ export var serializeAws_restJson1UpdateRevisionCommand = function (input, contex
|
|
|
1005
997
|
else {
|
|
1006
998
|
throw new Error("No value provided for input HTTP label: RevisionId.");
|
|
1007
999
|
}
|
|
1008
|
-
body = JSON.stringify(__assign(__assign({}, (input.Comment
|
|
1000
|
+
body = JSON.stringify(__assign(__assign({}, (input.Comment != null && { Comment: input.Comment })), (input.Finalized != null && { Finalized: input.Finalized })));
|
|
1009
1001
|
return [2, new __HttpRequest({
|
|
1010
1002
|
protocol: protocol,
|
|
1011
1003
|
hostname: hostname,
|
|
@@ -1037,7 +1029,7 @@ export var deserializeAws_restJson1CancelJobCommand = function (output, context)
|
|
|
1037
1029
|
});
|
|
1038
1030
|
}); };
|
|
1039
1031
|
var deserializeAws_restJson1CancelJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1040
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1032
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1041
1033
|
var _c;
|
|
1042
1034
|
return __generator(this, function (_d) {
|
|
1043
1035
|
switch (_d.label) {
|
|
@@ -1047,7 +1039,6 @@ var deserializeAws_restJson1CancelJobCommandError = function (output, context) {
|
|
|
1047
1039
|
return [4, parseBody(output.body, context)];
|
|
1048
1040
|
case 1:
|
|
1049
1041
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1050
|
-
errorCode = "UnknownError";
|
|
1051
1042
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1052
1043
|
_b = errorCode;
|
|
1053
1044
|
switch (_b) {
|
|
@@ -1075,10 +1066,12 @@ var deserializeAws_restJson1CancelJobCommandError = function (output, context) {
|
|
|
1075
1066
|
case 11: throw _d.sent();
|
|
1076
1067
|
case 12:
|
|
1077
1068
|
parsedBody = parsedOutput.body;
|
|
1069
|
+
$metadata = deserializeMetadata(output);
|
|
1070
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1078
1071
|
response = new __BaseException({
|
|
1079
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1072
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1080
1073
|
$fault: "client",
|
|
1081
|
-
$metadata:
|
|
1074
|
+
$metadata: $metadata,
|
|
1082
1075
|
});
|
|
1083
1076
|
throw __decorateServiceException(response, parsedBody);
|
|
1084
1077
|
}
|
|
@@ -1149,7 +1142,7 @@ export var deserializeAws_restJson1CreateDataSetCommand = function (output, cont
|
|
|
1149
1142
|
});
|
|
1150
1143
|
}); };
|
|
1151
1144
|
var deserializeAws_restJson1CreateDataSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1152
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1145
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1153
1146
|
var _c;
|
|
1154
1147
|
return __generator(this, function (_d) {
|
|
1155
1148
|
switch (_d.label) {
|
|
@@ -1159,7 +1152,6 @@ var deserializeAws_restJson1CreateDataSetCommandError = function (output, contex
|
|
|
1159
1152
|
return [4, parseBody(output.body, context)];
|
|
1160
1153
|
case 1:
|
|
1161
1154
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1162
|
-
errorCode = "UnknownError";
|
|
1163
1155
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1164
1156
|
_b = errorCode;
|
|
1165
1157
|
switch (_b) {
|
|
@@ -1187,10 +1179,12 @@ var deserializeAws_restJson1CreateDataSetCommandError = function (output, contex
|
|
|
1187
1179
|
case 11: throw _d.sent();
|
|
1188
1180
|
case 12:
|
|
1189
1181
|
parsedBody = parsedOutput.body;
|
|
1182
|
+
$metadata = deserializeMetadata(output);
|
|
1183
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1190
1184
|
response = new __BaseException({
|
|
1191
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1185
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1192
1186
|
$fault: "client",
|
|
1193
|
-
$metadata:
|
|
1187
|
+
$metadata: $metadata,
|
|
1194
1188
|
});
|
|
1195
1189
|
throw __decorateServiceException(response, parsedBody);
|
|
1196
1190
|
}
|
|
@@ -1241,7 +1235,7 @@ export var deserializeAws_restJson1CreateEventActionCommand = function (output,
|
|
|
1241
1235
|
});
|
|
1242
1236
|
}); };
|
|
1243
1237
|
var deserializeAws_restJson1CreateEventActionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1244
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1238
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1245
1239
|
var _c;
|
|
1246
1240
|
return __generator(this, function (_d) {
|
|
1247
1241
|
switch (_d.label) {
|
|
@@ -1251,7 +1245,6 @@ var deserializeAws_restJson1CreateEventActionCommandError = function (output, co
|
|
|
1251
1245
|
return [4, parseBody(output.body, context)];
|
|
1252
1246
|
case 1:
|
|
1253
1247
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1254
|
-
errorCode = "UnknownError";
|
|
1255
1248
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1256
1249
|
_b = errorCode;
|
|
1257
1250
|
switch (_b) {
|
|
@@ -1279,10 +1272,12 @@ var deserializeAws_restJson1CreateEventActionCommandError = function (output, co
|
|
|
1279
1272
|
case 11: throw _d.sent();
|
|
1280
1273
|
case 12:
|
|
1281
1274
|
parsedBody = parsedOutput.body;
|
|
1275
|
+
$metadata = deserializeMetadata(output);
|
|
1276
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1282
1277
|
response = new __BaseException({
|
|
1283
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1278
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1284
1279
|
$fault: "client",
|
|
1285
|
-
$metadata:
|
|
1280
|
+
$metadata: $metadata,
|
|
1286
1281
|
});
|
|
1287
1282
|
throw __decorateServiceException(response, parsedBody);
|
|
1288
1283
|
}
|
|
@@ -1341,7 +1336,7 @@ export var deserializeAws_restJson1CreateJobCommand = function (output, context)
|
|
|
1341
1336
|
});
|
|
1342
1337
|
}); };
|
|
1343
1338
|
var deserializeAws_restJson1CreateJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1344
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1339
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1345
1340
|
var _c;
|
|
1346
1341
|
return __generator(this, function (_d) {
|
|
1347
1342
|
switch (_d.label) {
|
|
@@ -1351,7 +1346,6 @@ var deserializeAws_restJson1CreateJobCommandError = function (output, context) {
|
|
|
1351
1346
|
return [4, parseBody(output.body, context)];
|
|
1352
1347
|
case 1:
|
|
1353
1348
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1354
|
-
errorCode = "UnknownError";
|
|
1355
1349
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1356
1350
|
_b = errorCode;
|
|
1357
1351
|
switch (_b) {
|
|
@@ -1383,10 +1377,12 @@ var deserializeAws_restJson1CreateJobCommandError = function (output, context) {
|
|
|
1383
1377
|
case 13: throw _d.sent();
|
|
1384
1378
|
case 14:
|
|
1385
1379
|
parsedBody = parsedOutput.body;
|
|
1380
|
+
$metadata = deserializeMetadata(output);
|
|
1381
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1386
1382
|
response = new __BaseException({
|
|
1387
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1383
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1388
1384
|
$fault: "client",
|
|
1389
|
-
$metadata:
|
|
1385
|
+
$metadata: $metadata,
|
|
1390
1386
|
});
|
|
1391
1387
|
throw __decorateServiceException(response, parsedBody);
|
|
1392
1388
|
}
|
|
@@ -1461,7 +1457,7 @@ export var deserializeAws_restJson1CreateRevisionCommand = function (output, con
|
|
|
1461
1457
|
});
|
|
1462
1458
|
}); };
|
|
1463
1459
|
var deserializeAws_restJson1CreateRevisionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1464
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1460
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1465
1461
|
var _c;
|
|
1466
1462
|
return __generator(this, function (_d) {
|
|
1467
1463
|
switch (_d.label) {
|
|
@@ -1471,7 +1467,6 @@ var deserializeAws_restJson1CreateRevisionCommandError = function (output, conte
|
|
|
1471
1467
|
return [4, parseBody(output.body, context)];
|
|
1472
1468
|
case 1:
|
|
1473
1469
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1474
|
-
errorCode = "UnknownError";
|
|
1475
1470
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1476
1471
|
_b = errorCode;
|
|
1477
1472
|
switch (_b) {
|
|
@@ -1499,10 +1494,12 @@ var deserializeAws_restJson1CreateRevisionCommandError = function (output, conte
|
|
|
1499
1494
|
case 11: throw _d.sent();
|
|
1500
1495
|
case 12:
|
|
1501
1496
|
parsedBody = parsedOutput.body;
|
|
1497
|
+
$metadata = deserializeMetadata(output);
|
|
1498
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1502
1499
|
response = new __BaseException({
|
|
1503
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1500
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1504
1501
|
$fault: "client",
|
|
1505
|
-
$metadata:
|
|
1502
|
+
$metadata: $metadata,
|
|
1506
1503
|
});
|
|
1507
1504
|
throw __decorateServiceException(response, parsedBody);
|
|
1508
1505
|
}
|
|
@@ -1527,7 +1524,7 @@ export var deserializeAws_restJson1DeleteAssetCommand = function (output, contex
|
|
|
1527
1524
|
});
|
|
1528
1525
|
}); };
|
|
1529
1526
|
var deserializeAws_restJson1DeleteAssetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1530
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1527
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1531
1528
|
var _c;
|
|
1532
1529
|
return __generator(this, function (_d) {
|
|
1533
1530
|
switch (_d.label) {
|
|
@@ -1537,7 +1534,6 @@ var deserializeAws_restJson1DeleteAssetCommandError = function (output, context)
|
|
|
1537
1534
|
return [4, parseBody(output.body, context)];
|
|
1538
1535
|
case 1:
|
|
1539
1536
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1540
|
-
errorCode = "UnknownError";
|
|
1541
1537
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1542
1538
|
_b = errorCode;
|
|
1543
1539
|
switch (_b) {
|
|
@@ -1569,10 +1565,12 @@ var deserializeAws_restJson1DeleteAssetCommandError = function (output, context)
|
|
|
1569
1565
|
case 13: throw _d.sent();
|
|
1570
1566
|
case 14:
|
|
1571
1567
|
parsedBody = parsedOutput.body;
|
|
1568
|
+
$metadata = deserializeMetadata(output);
|
|
1569
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1572
1570
|
response = new __BaseException({
|
|
1573
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1571
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1574
1572
|
$fault: "client",
|
|
1575
|
-
$metadata:
|
|
1573
|
+
$metadata: $metadata,
|
|
1576
1574
|
});
|
|
1577
1575
|
throw __decorateServiceException(response, parsedBody);
|
|
1578
1576
|
}
|
|
@@ -1597,7 +1595,7 @@ export var deserializeAws_restJson1DeleteDataSetCommand = function (output, cont
|
|
|
1597
1595
|
});
|
|
1598
1596
|
}); };
|
|
1599
1597
|
var deserializeAws_restJson1DeleteDataSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1600
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1598
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1601
1599
|
var _c;
|
|
1602
1600
|
return __generator(this, function (_d) {
|
|
1603
1601
|
switch (_d.label) {
|
|
@@ -1607,7 +1605,6 @@ var deserializeAws_restJson1DeleteDataSetCommandError = function (output, contex
|
|
|
1607
1605
|
return [4, parseBody(output.body, context)];
|
|
1608
1606
|
case 1:
|
|
1609
1607
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1610
|
-
errorCode = "UnknownError";
|
|
1611
1608
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1612
1609
|
_b = errorCode;
|
|
1613
1610
|
switch (_b) {
|
|
@@ -1639,10 +1636,12 @@ var deserializeAws_restJson1DeleteDataSetCommandError = function (output, contex
|
|
|
1639
1636
|
case 13: throw _d.sent();
|
|
1640
1637
|
case 14:
|
|
1641
1638
|
parsedBody = parsedOutput.body;
|
|
1639
|
+
$metadata = deserializeMetadata(output);
|
|
1640
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1642
1641
|
response = new __BaseException({
|
|
1643
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1642
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1644
1643
|
$fault: "client",
|
|
1645
|
-
$metadata:
|
|
1644
|
+
$metadata: $metadata,
|
|
1646
1645
|
});
|
|
1647
1646
|
throw __decorateServiceException(response, parsedBody);
|
|
1648
1647
|
}
|
|
@@ -1667,7 +1666,7 @@ export var deserializeAws_restJson1DeleteEventActionCommand = function (output,
|
|
|
1667
1666
|
});
|
|
1668
1667
|
}); };
|
|
1669
1668
|
var deserializeAws_restJson1DeleteEventActionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1670
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1669
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1671
1670
|
var _c;
|
|
1672
1671
|
return __generator(this, function (_d) {
|
|
1673
1672
|
switch (_d.label) {
|
|
@@ -1677,7 +1676,6 @@ var deserializeAws_restJson1DeleteEventActionCommandError = function (output, co
|
|
|
1677
1676
|
return [4, parseBody(output.body, context)];
|
|
1678
1677
|
case 1:
|
|
1679
1678
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1680
|
-
errorCode = "UnknownError";
|
|
1681
1679
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1682
1680
|
_b = errorCode;
|
|
1683
1681
|
switch (_b) {
|
|
@@ -1701,10 +1699,12 @@ var deserializeAws_restJson1DeleteEventActionCommandError = function (output, co
|
|
|
1701
1699
|
case 9: throw _d.sent();
|
|
1702
1700
|
case 10:
|
|
1703
1701
|
parsedBody = parsedOutput.body;
|
|
1702
|
+
$metadata = deserializeMetadata(output);
|
|
1703
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1704
1704
|
response = new __BaseException({
|
|
1705
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1705
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1706
1706
|
$fault: "client",
|
|
1707
|
-
$metadata:
|
|
1707
|
+
$metadata: $metadata,
|
|
1708
1708
|
});
|
|
1709
1709
|
throw __decorateServiceException(response, parsedBody);
|
|
1710
1710
|
}
|
|
@@ -1729,7 +1729,7 @@ export var deserializeAws_restJson1DeleteRevisionCommand = function (output, con
|
|
|
1729
1729
|
});
|
|
1730
1730
|
}); };
|
|
1731
1731
|
var deserializeAws_restJson1DeleteRevisionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1732
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1732
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1733
1733
|
var _c;
|
|
1734
1734
|
return __generator(this, function (_d) {
|
|
1735
1735
|
switch (_d.label) {
|
|
@@ -1739,7 +1739,6 @@ var deserializeAws_restJson1DeleteRevisionCommandError = function (output, conte
|
|
|
1739
1739
|
return [4, parseBody(output.body, context)];
|
|
1740
1740
|
case 1:
|
|
1741
1741
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1742
|
-
errorCode = "UnknownError";
|
|
1743
1742
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1744
1743
|
_b = errorCode;
|
|
1745
1744
|
switch (_b) {
|
|
@@ -1771,10 +1770,12 @@ var deserializeAws_restJson1DeleteRevisionCommandError = function (output, conte
|
|
|
1771
1770
|
case 13: throw _d.sent();
|
|
1772
1771
|
case 14:
|
|
1773
1772
|
parsedBody = parsedOutput.body;
|
|
1773
|
+
$metadata = deserializeMetadata(output);
|
|
1774
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1774
1775
|
response = new __BaseException({
|
|
1775
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1776
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1776
1777
|
$fault: "client",
|
|
1777
|
-
$metadata:
|
|
1778
|
+
$metadata: $metadata,
|
|
1778
1779
|
});
|
|
1779
1780
|
throw __decorateServiceException(response, parsedBody);
|
|
1780
1781
|
}
|
|
@@ -1841,7 +1842,7 @@ export var deserializeAws_restJson1GetAssetCommand = function (output, context)
|
|
|
1841
1842
|
});
|
|
1842
1843
|
}); };
|
|
1843
1844
|
var deserializeAws_restJson1GetAssetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1844
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1845
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1845
1846
|
var _c;
|
|
1846
1847
|
return __generator(this, function (_d) {
|
|
1847
1848
|
switch (_d.label) {
|
|
@@ -1851,7 +1852,6 @@ var deserializeAws_restJson1GetAssetCommandError = function (output, context) {
|
|
|
1851
1852
|
return [4, parseBody(output.body, context)];
|
|
1852
1853
|
case 1:
|
|
1853
1854
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1854
|
-
errorCode = "UnknownError";
|
|
1855
1855
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1856
1856
|
_b = errorCode;
|
|
1857
1857
|
switch (_b) {
|
|
@@ -1875,10 +1875,12 @@ var deserializeAws_restJson1GetAssetCommandError = function (output, context) {
|
|
|
1875
1875
|
case 9: throw _d.sent();
|
|
1876
1876
|
case 10:
|
|
1877
1877
|
parsedBody = parsedOutput.body;
|
|
1878
|
+
$metadata = deserializeMetadata(output);
|
|
1879
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1878
1880
|
response = new __BaseException({
|
|
1879
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1881
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1880
1882
|
$fault: "client",
|
|
1881
|
-
$metadata:
|
|
1883
|
+
$metadata: $metadata,
|
|
1882
1884
|
});
|
|
1883
1885
|
throw __decorateServiceException(response, parsedBody);
|
|
1884
1886
|
}
|
|
@@ -1949,7 +1951,7 @@ export var deserializeAws_restJson1GetDataSetCommand = function (output, context
|
|
|
1949
1951
|
});
|
|
1950
1952
|
}); };
|
|
1951
1953
|
var deserializeAws_restJson1GetDataSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1952
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1954
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1953
1955
|
var _c;
|
|
1954
1956
|
return __generator(this, function (_d) {
|
|
1955
1957
|
switch (_d.label) {
|
|
@@ -1959,7 +1961,6 @@ var deserializeAws_restJson1GetDataSetCommandError = function (output, context)
|
|
|
1959
1961
|
return [4, parseBody(output.body, context)];
|
|
1960
1962
|
case 1:
|
|
1961
1963
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1962
|
-
errorCode = "UnknownError";
|
|
1963
1964
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1964
1965
|
_b = errorCode;
|
|
1965
1966
|
switch (_b) {
|
|
@@ -1983,10 +1984,12 @@ var deserializeAws_restJson1GetDataSetCommandError = function (output, context)
|
|
|
1983
1984
|
case 9: throw _d.sent();
|
|
1984
1985
|
case 10:
|
|
1985
1986
|
parsedBody = parsedOutput.body;
|
|
1987
|
+
$metadata = deserializeMetadata(output);
|
|
1988
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1986
1989
|
response = new __BaseException({
|
|
1987
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1990
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1988
1991
|
$fault: "client",
|
|
1989
|
-
$metadata:
|
|
1992
|
+
$metadata: $metadata,
|
|
1990
1993
|
});
|
|
1991
1994
|
throw __decorateServiceException(response, parsedBody);
|
|
1992
1995
|
}
|
|
@@ -2037,7 +2040,7 @@ export var deserializeAws_restJson1GetEventActionCommand = function (output, con
|
|
|
2037
2040
|
});
|
|
2038
2041
|
}); };
|
|
2039
2042
|
var deserializeAws_restJson1GetEventActionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2040
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2043
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2041
2044
|
var _c;
|
|
2042
2045
|
return __generator(this, function (_d) {
|
|
2043
2046
|
switch (_d.label) {
|
|
@@ -2047,7 +2050,6 @@ var deserializeAws_restJson1GetEventActionCommandError = function (output, conte
|
|
|
2047
2050
|
return [4, parseBody(output.body, context)];
|
|
2048
2051
|
case 1:
|
|
2049
2052
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2050
|
-
errorCode = "UnknownError";
|
|
2051
2053
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2052
2054
|
_b = errorCode;
|
|
2053
2055
|
switch (_b) {
|
|
@@ -2071,10 +2073,12 @@ var deserializeAws_restJson1GetEventActionCommandError = function (output, conte
|
|
|
2071
2073
|
case 9: throw _d.sent();
|
|
2072
2074
|
case 10:
|
|
2073
2075
|
parsedBody = parsedOutput.body;
|
|
2076
|
+
$metadata = deserializeMetadata(output);
|
|
2077
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2074
2078
|
response = new __BaseException({
|
|
2075
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2079
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2076
2080
|
$fault: "client",
|
|
2077
|
-
$metadata:
|
|
2081
|
+
$metadata: $metadata,
|
|
2078
2082
|
});
|
|
2079
2083
|
throw __decorateServiceException(response, parsedBody);
|
|
2080
2084
|
}
|
|
@@ -2133,7 +2137,7 @@ export var deserializeAws_restJson1GetJobCommand = function (output, context) {
|
|
|
2133
2137
|
});
|
|
2134
2138
|
}); };
|
|
2135
2139
|
var deserializeAws_restJson1GetJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2136
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2140
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2137
2141
|
var _c;
|
|
2138
2142
|
return __generator(this, function (_d) {
|
|
2139
2143
|
switch (_d.label) {
|
|
@@ -2143,7 +2147,6 @@ var deserializeAws_restJson1GetJobCommandError = function (output, context) { re
|
|
|
2143
2147
|
return [4, parseBody(output.body, context)];
|
|
2144
2148
|
case 1:
|
|
2145
2149
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2146
|
-
errorCode = "UnknownError";
|
|
2147
2150
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2148
2151
|
_b = errorCode;
|
|
2149
2152
|
switch (_b) {
|
|
@@ -2167,10 +2170,12 @@ var deserializeAws_restJson1GetJobCommandError = function (output, context) { re
|
|
|
2167
2170
|
case 9: throw _d.sent();
|
|
2168
2171
|
case 10:
|
|
2169
2172
|
parsedBody = parsedOutput.body;
|
|
2173
|
+
$metadata = deserializeMetadata(output);
|
|
2174
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2170
2175
|
response = new __BaseException({
|
|
2171
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2176
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2172
2177
|
$fault: "client",
|
|
2173
|
-
$metadata:
|
|
2178
|
+
$metadata: $metadata,
|
|
2174
2179
|
});
|
|
2175
2180
|
throw __decorateServiceException(response, parsedBody);
|
|
2176
2181
|
}
|
|
@@ -2245,7 +2250,7 @@ export var deserializeAws_restJson1GetRevisionCommand = function (output, contex
|
|
|
2245
2250
|
});
|
|
2246
2251
|
}); };
|
|
2247
2252
|
var deserializeAws_restJson1GetRevisionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2248
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2253
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2249
2254
|
var _c;
|
|
2250
2255
|
return __generator(this, function (_d) {
|
|
2251
2256
|
switch (_d.label) {
|
|
@@ -2255,7 +2260,6 @@ var deserializeAws_restJson1GetRevisionCommandError = function (output, context)
|
|
|
2255
2260
|
return [4, parseBody(output.body, context)];
|
|
2256
2261
|
case 1:
|
|
2257
2262
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2258
|
-
errorCode = "UnknownError";
|
|
2259
2263
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2260
2264
|
_b = errorCode;
|
|
2261
2265
|
switch (_b) {
|
|
@@ -2279,10 +2283,12 @@ var deserializeAws_restJson1GetRevisionCommandError = function (output, context)
|
|
|
2279
2283
|
case 9: throw _d.sent();
|
|
2280
2284
|
case 10:
|
|
2281
2285
|
parsedBody = parsedOutput.body;
|
|
2286
|
+
$metadata = deserializeMetadata(output);
|
|
2287
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2282
2288
|
response = new __BaseException({
|
|
2283
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2289
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2284
2290
|
$fault: "client",
|
|
2285
|
-
$metadata:
|
|
2291
|
+
$metadata: $metadata,
|
|
2286
2292
|
});
|
|
2287
2293
|
throw __decorateServiceException(response, parsedBody);
|
|
2288
2294
|
}
|
|
@@ -2317,7 +2323,7 @@ export var deserializeAws_restJson1ListDataSetRevisionsCommand = function (outpu
|
|
|
2317
2323
|
});
|
|
2318
2324
|
}); };
|
|
2319
2325
|
var deserializeAws_restJson1ListDataSetRevisionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2320
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2326
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2321
2327
|
var _c;
|
|
2322
2328
|
return __generator(this, function (_d) {
|
|
2323
2329
|
switch (_d.label) {
|
|
@@ -2327,7 +2333,6 @@ var deserializeAws_restJson1ListDataSetRevisionsCommandError = function (output,
|
|
|
2327
2333
|
return [4, parseBody(output.body, context)];
|
|
2328
2334
|
case 1:
|
|
2329
2335
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2330
|
-
errorCode = "UnknownError";
|
|
2331
2336
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2332
2337
|
_b = errorCode;
|
|
2333
2338
|
switch (_b) {
|
|
@@ -2351,10 +2356,12 @@ var deserializeAws_restJson1ListDataSetRevisionsCommandError = function (output,
|
|
|
2351
2356
|
case 9: throw _d.sent();
|
|
2352
2357
|
case 10:
|
|
2353
2358
|
parsedBody = parsedOutput.body;
|
|
2359
|
+
$metadata = deserializeMetadata(output);
|
|
2360
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2354
2361
|
response = new __BaseException({
|
|
2355
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2362
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2356
2363
|
$fault: "client",
|
|
2357
|
-
$metadata:
|
|
2364
|
+
$metadata: $metadata,
|
|
2358
2365
|
});
|
|
2359
2366
|
throw __decorateServiceException(response, parsedBody);
|
|
2360
2367
|
}
|
|
@@ -2389,7 +2396,7 @@ export var deserializeAws_restJson1ListDataSetsCommand = function (output, conte
|
|
|
2389
2396
|
});
|
|
2390
2397
|
}); };
|
|
2391
2398
|
var deserializeAws_restJson1ListDataSetsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2392
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2399
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2393
2400
|
var _c;
|
|
2394
2401
|
return __generator(this, function (_d) {
|
|
2395
2402
|
switch (_d.label) {
|
|
@@ -2399,7 +2406,6 @@ var deserializeAws_restJson1ListDataSetsCommandError = function (output, context
|
|
|
2399
2406
|
return [4, parseBody(output.body, context)];
|
|
2400
2407
|
case 1:
|
|
2401
2408
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2402
|
-
errorCode = "UnknownError";
|
|
2403
2409
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2404
2410
|
_b = errorCode;
|
|
2405
2411
|
switch (_b) {
|
|
@@ -2423,10 +2429,12 @@ var deserializeAws_restJson1ListDataSetsCommandError = function (output, context
|
|
|
2423
2429
|
case 9: throw _d.sent();
|
|
2424
2430
|
case 10:
|
|
2425
2431
|
parsedBody = parsedOutput.body;
|
|
2432
|
+
$metadata = deserializeMetadata(output);
|
|
2433
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2426
2434
|
response = new __BaseException({
|
|
2427
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2435
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2428
2436
|
$fault: "client",
|
|
2429
|
-
$metadata:
|
|
2437
|
+
$metadata: $metadata,
|
|
2430
2438
|
});
|
|
2431
2439
|
throw __decorateServiceException(response, parsedBody);
|
|
2432
2440
|
}
|
|
@@ -2461,7 +2469,7 @@ export var deserializeAws_restJson1ListEventActionsCommand = function (output, c
|
|
|
2461
2469
|
});
|
|
2462
2470
|
}); };
|
|
2463
2471
|
var deserializeAws_restJson1ListEventActionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2464
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2472
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2465
2473
|
var _c;
|
|
2466
2474
|
return __generator(this, function (_d) {
|
|
2467
2475
|
switch (_d.label) {
|
|
@@ -2471,7 +2479,6 @@ var deserializeAws_restJson1ListEventActionsCommandError = function (output, con
|
|
|
2471
2479
|
return [4, parseBody(output.body, context)];
|
|
2472
2480
|
case 1:
|
|
2473
2481
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2474
|
-
errorCode = "UnknownError";
|
|
2475
2482
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2476
2483
|
_b = errorCode;
|
|
2477
2484
|
switch (_b) {
|
|
@@ -2495,10 +2502,12 @@ var deserializeAws_restJson1ListEventActionsCommandError = function (output, con
|
|
|
2495
2502
|
case 9: throw _d.sent();
|
|
2496
2503
|
case 10:
|
|
2497
2504
|
parsedBody = parsedOutput.body;
|
|
2505
|
+
$metadata = deserializeMetadata(output);
|
|
2506
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2498
2507
|
response = new __BaseException({
|
|
2499
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2508
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2500
2509
|
$fault: "client",
|
|
2501
|
-
$metadata:
|
|
2510
|
+
$metadata: $metadata,
|
|
2502
2511
|
});
|
|
2503
2512
|
throw __decorateServiceException(response, parsedBody);
|
|
2504
2513
|
}
|
|
@@ -2533,7 +2542,7 @@ export var deserializeAws_restJson1ListJobsCommand = function (output, context)
|
|
|
2533
2542
|
});
|
|
2534
2543
|
}); };
|
|
2535
2544
|
var deserializeAws_restJson1ListJobsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2536
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2545
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2537
2546
|
var _c;
|
|
2538
2547
|
return __generator(this, function (_d) {
|
|
2539
2548
|
switch (_d.label) {
|
|
@@ -2543,7 +2552,6 @@ var deserializeAws_restJson1ListJobsCommandError = function (output, context) {
|
|
|
2543
2552
|
return [4, parseBody(output.body, context)];
|
|
2544
2553
|
case 1:
|
|
2545
2554
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2546
|
-
errorCode = "UnknownError";
|
|
2547
2555
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2548
2556
|
_b = errorCode;
|
|
2549
2557
|
switch (_b) {
|
|
@@ -2567,10 +2575,12 @@ var deserializeAws_restJson1ListJobsCommandError = function (output, context) {
|
|
|
2567
2575
|
case 9: throw _d.sent();
|
|
2568
2576
|
case 10:
|
|
2569
2577
|
parsedBody = parsedOutput.body;
|
|
2578
|
+
$metadata = deserializeMetadata(output);
|
|
2579
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2570
2580
|
response = new __BaseException({
|
|
2571
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2581
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2572
2582
|
$fault: "client",
|
|
2573
|
-
$metadata:
|
|
2583
|
+
$metadata: $metadata,
|
|
2574
2584
|
});
|
|
2575
2585
|
throw __decorateServiceException(response, parsedBody);
|
|
2576
2586
|
}
|
|
@@ -2605,7 +2615,7 @@ export var deserializeAws_restJson1ListRevisionAssetsCommand = function (output,
|
|
|
2605
2615
|
});
|
|
2606
2616
|
}); };
|
|
2607
2617
|
var deserializeAws_restJson1ListRevisionAssetsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2608
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2618
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2609
2619
|
var _c;
|
|
2610
2620
|
return __generator(this, function (_d) {
|
|
2611
2621
|
switch (_d.label) {
|
|
@@ -2615,7 +2625,6 @@ var deserializeAws_restJson1ListRevisionAssetsCommandError = function (output, c
|
|
|
2615
2625
|
return [4, parseBody(output.body, context)];
|
|
2616
2626
|
case 1:
|
|
2617
2627
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2618
|
-
errorCode = "UnknownError";
|
|
2619
2628
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2620
2629
|
_b = errorCode;
|
|
2621
2630
|
switch (_b) {
|
|
@@ -2639,10 +2648,12 @@ var deserializeAws_restJson1ListRevisionAssetsCommandError = function (output, c
|
|
|
2639
2648
|
case 9: throw _d.sent();
|
|
2640
2649
|
case 10:
|
|
2641
2650
|
parsedBody = parsedOutput.body;
|
|
2651
|
+
$metadata = deserializeMetadata(output);
|
|
2652
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2642
2653
|
response = new __BaseException({
|
|
2643
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2654
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2644
2655
|
$fault: "client",
|
|
2645
|
-
$metadata:
|
|
2656
|
+
$metadata: $metadata,
|
|
2646
2657
|
});
|
|
2647
2658
|
throw __decorateServiceException(response, parsedBody);
|
|
2648
2659
|
}
|
|
@@ -2673,7 +2684,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
2673
2684
|
});
|
|
2674
2685
|
}); };
|
|
2675
2686
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2676
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2687
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
2677
2688
|
var _b;
|
|
2678
2689
|
return __generator(this, function (_c) {
|
|
2679
2690
|
switch (_c.label) {
|
|
@@ -2683,15 +2694,16 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2683
2694
|
return [4, parseBody(output.body, context)];
|
|
2684
2695
|
case 1:
|
|
2685
2696
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2686
|
-
errorCode = "UnknownError";
|
|
2687
2697
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2688
2698
|
switch (errorCode) {
|
|
2689
2699
|
default:
|
|
2690
2700
|
parsedBody = parsedOutput.body;
|
|
2701
|
+
$metadata = deserializeMetadata(output);
|
|
2702
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2691
2703
|
response = new __BaseException({
|
|
2692
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2704
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2693
2705
|
$fault: "client",
|
|
2694
|
-
$metadata:
|
|
2706
|
+
$metadata: $metadata,
|
|
2695
2707
|
});
|
|
2696
2708
|
throw __decorateServiceException(response, parsedBody);
|
|
2697
2709
|
}
|
|
@@ -2764,7 +2776,7 @@ export var deserializeAws_restJson1RevokeRevisionCommand = function (output, con
|
|
|
2764
2776
|
});
|
|
2765
2777
|
}); };
|
|
2766
2778
|
var deserializeAws_restJson1RevokeRevisionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2767
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2779
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2768
2780
|
var _c;
|
|
2769
2781
|
return __generator(this, function (_d) {
|
|
2770
2782
|
switch (_d.label) {
|
|
@@ -2774,7 +2786,6 @@ var deserializeAws_restJson1RevokeRevisionCommandError = function (output, conte
|
|
|
2774
2786
|
return [4, parseBody(output.body, context)];
|
|
2775
2787
|
case 1:
|
|
2776
2788
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2777
|
-
errorCode = "UnknownError";
|
|
2778
2789
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2779
2790
|
_b = errorCode;
|
|
2780
2791
|
switch (_b) {
|
|
@@ -2806,10 +2817,12 @@ var deserializeAws_restJson1RevokeRevisionCommandError = function (output, conte
|
|
|
2806
2817
|
case 13: throw _d.sent();
|
|
2807
2818
|
case 14:
|
|
2808
2819
|
parsedBody = parsedOutput.body;
|
|
2820
|
+
$metadata = deserializeMetadata(output);
|
|
2821
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2809
2822
|
response = new __BaseException({
|
|
2810
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2823
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2811
2824
|
$fault: "client",
|
|
2812
|
-
$metadata:
|
|
2825
|
+
$metadata: $metadata,
|
|
2813
2826
|
});
|
|
2814
2827
|
throw __decorateServiceException(response, parsedBody);
|
|
2815
2828
|
}
|
|
@@ -2845,7 +2858,7 @@ export var deserializeAws_restJson1SendApiAssetCommand = function (output, conte
|
|
|
2845
2858
|
});
|
|
2846
2859
|
}); };
|
|
2847
2860
|
var deserializeAws_restJson1SendApiAssetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2848
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2861
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2849
2862
|
var _c;
|
|
2850
2863
|
return __generator(this, function (_d) {
|
|
2851
2864
|
switch (_d.label) {
|
|
@@ -2855,7 +2868,6 @@ var deserializeAws_restJson1SendApiAssetCommandError = function (output, context
|
|
|
2855
2868
|
return [4, parseBody(output.body, context)];
|
|
2856
2869
|
case 1:
|
|
2857
2870
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2858
|
-
errorCode = "UnknownError";
|
|
2859
2871
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2860
2872
|
_b = errorCode;
|
|
2861
2873
|
switch (_b) {
|
|
@@ -2883,10 +2895,12 @@ var deserializeAws_restJson1SendApiAssetCommandError = function (output, context
|
|
|
2883
2895
|
case 11: throw _d.sent();
|
|
2884
2896
|
case 12:
|
|
2885
2897
|
parsedBody = parsedOutput.body;
|
|
2898
|
+
$metadata = deserializeMetadata(output);
|
|
2899
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2886
2900
|
response = new __BaseException({
|
|
2887
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2901
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2888
2902
|
$fault: "client",
|
|
2889
|
-
$metadata:
|
|
2903
|
+
$metadata: $metadata,
|
|
2890
2904
|
});
|
|
2891
2905
|
throw __decorateServiceException(response, parsedBody);
|
|
2892
2906
|
}
|
|
@@ -2911,7 +2925,7 @@ export var deserializeAws_restJson1StartJobCommand = function (output, context)
|
|
|
2911
2925
|
});
|
|
2912
2926
|
}); };
|
|
2913
2927
|
var deserializeAws_restJson1StartJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2914
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2928
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2915
2929
|
var _c;
|
|
2916
2930
|
return __generator(this, function (_d) {
|
|
2917
2931
|
switch (_d.label) {
|
|
@@ -2921,7 +2935,6 @@ var deserializeAws_restJson1StartJobCommandError = function (output, context) {
|
|
|
2921
2935
|
return [4, parseBody(output.body, context)];
|
|
2922
2936
|
case 1:
|
|
2923
2937
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2924
|
-
errorCode = "UnknownError";
|
|
2925
2938
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2926
2939
|
_b = errorCode;
|
|
2927
2940
|
switch (_b) {
|
|
@@ -2953,10 +2966,12 @@ var deserializeAws_restJson1StartJobCommandError = function (output, context) {
|
|
|
2953
2966
|
case 13: throw _d.sent();
|
|
2954
2967
|
case 14:
|
|
2955
2968
|
parsedBody = parsedOutput.body;
|
|
2969
|
+
$metadata = deserializeMetadata(output);
|
|
2970
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2956
2971
|
response = new __BaseException({
|
|
2957
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2972
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2958
2973
|
$fault: "client",
|
|
2959
|
-
$metadata:
|
|
2974
|
+
$metadata: $metadata,
|
|
2960
2975
|
});
|
|
2961
2976
|
throw __decorateServiceException(response, parsedBody);
|
|
2962
2977
|
}
|
|
@@ -2981,7 +2996,7 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
2981
2996
|
});
|
|
2982
2997
|
}); };
|
|
2983
2998
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2984
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2999
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
2985
3000
|
var _b;
|
|
2986
3001
|
return __generator(this, function (_c) {
|
|
2987
3002
|
switch (_c.label) {
|
|
@@ -2991,15 +3006,16 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2991
3006
|
return [4, parseBody(output.body, context)];
|
|
2992
3007
|
case 1:
|
|
2993
3008
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2994
|
-
errorCode = "UnknownError";
|
|
2995
3009
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2996
3010
|
switch (errorCode) {
|
|
2997
3011
|
default:
|
|
2998
3012
|
parsedBody = parsedOutput.body;
|
|
3013
|
+
$metadata = deserializeMetadata(output);
|
|
3014
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2999
3015
|
response = new __BaseException({
|
|
3000
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3016
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3001
3017
|
$fault: "client",
|
|
3002
|
-
$metadata:
|
|
3018
|
+
$metadata: $metadata,
|
|
3003
3019
|
});
|
|
3004
3020
|
throw __decorateServiceException(response, parsedBody);
|
|
3005
3021
|
}
|
|
@@ -3026,7 +3042,7 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
3026
3042
|
});
|
|
3027
3043
|
}); };
|
|
3028
3044
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3029
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
3045
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
3030
3046
|
var _b;
|
|
3031
3047
|
return __generator(this, function (_c) {
|
|
3032
3048
|
switch (_c.label) {
|
|
@@ -3036,15 +3052,16 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
3036
3052
|
return [4, parseBody(output.body, context)];
|
|
3037
3053
|
case 1:
|
|
3038
3054
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3039
|
-
errorCode = "UnknownError";
|
|
3040
3055
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3041
3056
|
switch (errorCode) {
|
|
3042
3057
|
default:
|
|
3043
3058
|
parsedBody = parsedOutput.body;
|
|
3059
|
+
$metadata = deserializeMetadata(output);
|
|
3060
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3044
3061
|
response = new __BaseException({
|
|
3045
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3062
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3046
3063
|
$fault: "client",
|
|
3047
|
-
$metadata:
|
|
3064
|
+
$metadata: $metadata,
|
|
3048
3065
|
});
|
|
3049
3066
|
throw __decorateServiceException(response, parsedBody);
|
|
3050
3067
|
}
|
|
@@ -3113,7 +3130,7 @@ export var deserializeAws_restJson1UpdateAssetCommand = function (output, contex
|
|
|
3113
3130
|
});
|
|
3114
3131
|
}); };
|
|
3115
3132
|
var deserializeAws_restJson1UpdateAssetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3116
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3133
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3117
3134
|
var _c;
|
|
3118
3135
|
return __generator(this, function (_d) {
|
|
3119
3136
|
switch (_d.label) {
|
|
@@ -3123,7 +3140,6 @@ var deserializeAws_restJson1UpdateAssetCommandError = function (output, context)
|
|
|
3123
3140
|
return [4, parseBody(output.body, context)];
|
|
3124
3141
|
case 1:
|
|
3125
3142
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3126
|
-
errorCode = "UnknownError";
|
|
3127
3143
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3128
3144
|
_b = errorCode;
|
|
3129
3145
|
switch (_b) {
|
|
@@ -3155,10 +3171,12 @@ var deserializeAws_restJson1UpdateAssetCommandError = function (output, context)
|
|
|
3155
3171
|
case 13: throw _d.sent();
|
|
3156
3172
|
case 14:
|
|
3157
3173
|
parsedBody = parsedOutput.body;
|
|
3174
|
+
$metadata = deserializeMetadata(output);
|
|
3175
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3158
3176
|
response = new __BaseException({
|
|
3159
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3177
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3160
3178
|
$fault: "client",
|
|
3161
|
-
$metadata:
|
|
3179
|
+
$metadata: $metadata,
|
|
3162
3180
|
});
|
|
3163
3181
|
throw __decorateServiceException(response, parsedBody);
|
|
3164
3182
|
}
|
|
@@ -3225,7 +3243,7 @@ export var deserializeAws_restJson1UpdateDataSetCommand = function (output, cont
|
|
|
3225
3243
|
});
|
|
3226
3244
|
}); };
|
|
3227
3245
|
var deserializeAws_restJson1UpdateDataSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3228
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3246
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3229
3247
|
var _c;
|
|
3230
3248
|
return __generator(this, function (_d) {
|
|
3231
3249
|
switch (_d.label) {
|
|
@@ -3235,7 +3253,6 @@ var deserializeAws_restJson1UpdateDataSetCommandError = function (output, contex
|
|
|
3235
3253
|
return [4, parseBody(output.body, context)];
|
|
3236
3254
|
case 1:
|
|
3237
3255
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3238
|
-
errorCode = "UnknownError";
|
|
3239
3256
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3240
3257
|
_b = errorCode;
|
|
3241
3258
|
switch (_b) {
|
|
@@ -3263,10 +3280,12 @@ var deserializeAws_restJson1UpdateDataSetCommandError = function (output, contex
|
|
|
3263
3280
|
case 11: throw _d.sent();
|
|
3264
3281
|
case 12:
|
|
3265
3282
|
parsedBody = parsedOutput.body;
|
|
3283
|
+
$metadata = deserializeMetadata(output);
|
|
3284
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3266
3285
|
response = new __BaseException({
|
|
3267
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3286
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3268
3287
|
$fault: "client",
|
|
3269
|
-
$metadata:
|
|
3288
|
+
$metadata: $metadata,
|
|
3270
3289
|
});
|
|
3271
3290
|
throw __decorateServiceException(response, parsedBody);
|
|
3272
3291
|
}
|
|
@@ -3317,7 +3336,7 @@ export var deserializeAws_restJson1UpdateEventActionCommand = function (output,
|
|
|
3317
3336
|
});
|
|
3318
3337
|
}); };
|
|
3319
3338
|
var deserializeAws_restJson1UpdateEventActionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3320
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3339
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3321
3340
|
var _c;
|
|
3322
3341
|
return __generator(this, function (_d) {
|
|
3323
3342
|
switch (_d.label) {
|
|
@@ -3327,7 +3346,6 @@ var deserializeAws_restJson1UpdateEventActionCommandError = function (output, co
|
|
|
3327
3346
|
return [4, parseBody(output.body, context)];
|
|
3328
3347
|
case 1:
|
|
3329
3348
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3330
|
-
errorCode = "UnknownError";
|
|
3331
3349
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3332
3350
|
_b = errorCode;
|
|
3333
3351
|
switch (_b) {
|
|
@@ -3355,10 +3373,12 @@ var deserializeAws_restJson1UpdateEventActionCommandError = function (output, co
|
|
|
3355
3373
|
case 11: throw _d.sent();
|
|
3356
3374
|
case 12:
|
|
3357
3375
|
parsedBody = parsedOutput.body;
|
|
3376
|
+
$metadata = deserializeMetadata(output);
|
|
3377
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3358
3378
|
response = new __BaseException({
|
|
3359
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3379
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3360
3380
|
$fault: "client",
|
|
3361
|
-
$metadata:
|
|
3381
|
+
$metadata: $metadata,
|
|
3362
3382
|
});
|
|
3363
3383
|
throw __decorateServiceException(response, parsedBody);
|
|
3364
3384
|
}
|
|
@@ -3429,7 +3449,7 @@ export var deserializeAws_restJson1UpdateRevisionCommand = function (output, con
|
|
|
3429
3449
|
});
|
|
3430
3450
|
}); };
|
|
3431
3451
|
var deserializeAws_restJson1UpdateRevisionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3432
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3452
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3433
3453
|
var _c;
|
|
3434
3454
|
return __generator(this, function (_d) {
|
|
3435
3455
|
switch (_d.label) {
|
|
@@ -3439,7 +3459,6 @@ var deserializeAws_restJson1UpdateRevisionCommandError = function (output, conte
|
|
|
3439
3459
|
return [4, parseBody(output.body, context)];
|
|
3440
3460
|
case 1:
|
|
3441
3461
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3442
|
-
errorCode = "UnknownError";
|
|
3443
3462
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3444
3463
|
_b = errorCode;
|
|
3445
3464
|
switch (_b) {
|
|
@@ -3471,10 +3490,12 @@ var deserializeAws_restJson1UpdateRevisionCommandError = function (output, conte
|
|
|
3471
3490
|
case 13: throw _d.sent();
|
|
3472
3491
|
case 14:
|
|
3473
3492
|
parsedBody = parsedOutput.body;
|
|
3493
|
+
$metadata = deserializeMetadata(output);
|
|
3494
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3474
3495
|
response = new __BaseException({
|
|
3475
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3496
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3476
3497
|
$fault: "client",
|
|
3477
|
-
$metadata:
|
|
3498
|
+
$metadata: $metadata,
|
|
3478
3499
|
});
|
|
3479
3500
|
throw __decorateServiceException(response, parsedBody);
|
|
3480
3501
|
}
|
|
@@ -3586,78 +3607,66 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
3586
3607
|
});
|
|
3587
3608
|
}); };
|
|
3588
3609
|
var serializeAws_restJson1Action = function (input, context) {
|
|
3589
|
-
return __assign({}, (input.ExportRevisionToS3
|
|
3590
|
-
input.ExportRevisionToS3 !== null && {
|
|
3610
|
+
return __assign({}, (input.ExportRevisionToS3 != null && {
|
|
3591
3611
|
ExportRevisionToS3: serializeAws_restJson1AutoExportRevisionToS3RequestDetails(input.ExportRevisionToS3, context),
|
|
3592
3612
|
}));
|
|
3593
3613
|
};
|
|
3594
3614
|
var serializeAws_restJson1AssetDestinationEntry = function (input, context) {
|
|
3595
|
-
return __assign(__assign(__assign({}, (input.AssetId
|
|
3615
|
+
return __assign(__assign(__assign({}, (input.AssetId != null && { AssetId: input.AssetId })), (input.Bucket != null && { Bucket: input.Bucket })), (input.Key != null && { Key: input.Key }));
|
|
3596
3616
|
};
|
|
3597
3617
|
var serializeAws_restJson1AssetSourceEntry = function (input, context) {
|
|
3598
|
-
return __assign(__assign({}, (input.Bucket
|
|
3618
|
+
return __assign(__assign({}, (input.Bucket != null && { Bucket: input.Bucket })), (input.Key != null && { Key: input.Key }));
|
|
3599
3619
|
};
|
|
3600
3620
|
var serializeAws_restJson1AutoExportRevisionDestinationEntry = function (input, context) {
|
|
3601
|
-
return __assign(__assign({}, (input.Bucket
|
|
3621
|
+
return __assign(__assign({}, (input.Bucket != null && { Bucket: input.Bucket })), (input.KeyPattern != null && { KeyPattern: input.KeyPattern }));
|
|
3602
3622
|
};
|
|
3603
3623
|
var serializeAws_restJson1AutoExportRevisionToS3RequestDetails = function (input, context) {
|
|
3604
|
-
return __assign(__assign({}, (input.Encryption
|
|
3605
|
-
input.Encryption !== null && {
|
|
3624
|
+
return __assign(__assign({}, (input.Encryption != null && {
|
|
3606
3625
|
Encryption: serializeAws_restJson1ExportServerSideEncryption(input.Encryption, context),
|
|
3607
|
-
})), (input.RevisionDestination
|
|
3608
|
-
input.RevisionDestination !== null && {
|
|
3626
|
+
})), (input.RevisionDestination != null && {
|
|
3609
3627
|
RevisionDestination: serializeAws_restJson1AutoExportRevisionDestinationEntry(input.RevisionDestination, context),
|
|
3610
3628
|
}));
|
|
3611
3629
|
};
|
|
3612
3630
|
var serializeAws_restJson1Event = function (input, context) {
|
|
3613
|
-
return __assign({}, (input.RevisionPublished
|
|
3614
|
-
input.RevisionPublished !== null && {
|
|
3631
|
+
return __assign({}, (input.RevisionPublished != null && {
|
|
3615
3632
|
RevisionPublished: serializeAws_restJson1RevisionPublished(input.RevisionPublished, context),
|
|
3616
3633
|
}));
|
|
3617
3634
|
};
|
|
3618
3635
|
var serializeAws_restJson1ExportAssetsToS3RequestDetails = function (input, context) {
|
|
3619
|
-
return __assign(__assign(__assign(__assign({}, (input.AssetDestinations
|
|
3620
|
-
input.AssetDestinations !== null && {
|
|
3636
|
+
return __assign(__assign(__assign(__assign({}, (input.AssetDestinations != null && {
|
|
3621
3637
|
AssetDestinations: serializeAws_restJson1ListOfAssetDestinationEntry(input.AssetDestinations, context),
|
|
3622
|
-
})), (input.DataSetId
|
|
3623
|
-
input.Encryption !== null && {
|
|
3638
|
+
})), (input.DataSetId != null && { DataSetId: input.DataSetId })), (input.Encryption != null && {
|
|
3624
3639
|
Encryption: serializeAws_restJson1ExportServerSideEncryption(input.Encryption, context),
|
|
3625
|
-
})), (input.RevisionId
|
|
3640
|
+
})), (input.RevisionId != null && { RevisionId: input.RevisionId }));
|
|
3626
3641
|
};
|
|
3627
3642
|
var serializeAws_restJson1ExportAssetToSignedUrlRequestDetails = function (input, context) {
|
|
3628
|
-
return __assign(__assign(__assign({}, (input.AssetId
|
|
3643
|
+
return __assign(__assign(__assign({}, (input.AssetId != null && { AssetId: input.AssetId })), (input.DataSetId != null && { DataSetId: input.DataSetId })), (input.RevisionId != null && { RevisionId: input.RevisionId }));
|
|
3629
3644
|
};
|
|
3630
3645
|
var serializeAws_restJson1ExportRevisionsToS3RequestDetails = function (input, context) {
|
|
3631
|
-
return __assign(__assign(__assign({}, (input.DataSetId
|
|
3632
|
-
input.Encryption !== null && {
|
|
3646
|
+
return __assign(__assign(__assign({}, (input.DataSetId != null && { DataSetId: input.DataSetId })), (input.Encryption != null && {
|
|
3633
3647
|
Encryption: serializeAws_restJson1ExportServerSideEncryption(input.Encryption, context),
|
|
3634
|
-
})), (input.RevisionDestinations
|
|
3635
|
-
input.RevisionDestinations !== null && {
|
|
3648
|
+
})), (input.RevisionDestinations != null && {
|
|
3636
3649
|
RevisionDestinations: serializeAws_restJson1ListOfRevisionDestinationEntry(input.RevisionDestinations, context),
|
|
3637
3650
|
}));
|
|
3638
3651
|
};
|
|
3639
3652
|
var serializeAws_restJson1ExportServerSideEncryption = function (input, context) {
|
|
3640
|
-
return __assign(__assign({}, (input.KmsKeyArn
|
|
3653
|
+
return __assign(__assign({}, (input.KmsKeyArn != null && { KmsKeyArn: input.KmsKeyArn })), (input.Type != null && { Type: input.Type }));
|
|
3641
3654
|
};
|
|
3642
3655
|
var serializeAws_restJson1ImportAssetFromApiGatewayApiRequestDetails = function (input, context) {
|
|
3643
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ApiDescription
|
|
3644
|
-
input.ApiDescription !== null && { ApiDescription: input.ApiDescription })), (input.ApiId !== undefined && input.ApiId !== null && { ApiId: input.ApiId })), (input.ApiKey !== undefined && input.ApiKey !== null && { ApiKey: input.ApiKey })), (input.ApiName !== undefined && input.ApiName !== null && { ApiName: input.ApiName })), (input.ApiSpecificationMd5Hash !== undefined &&
|
|
3645
|
-
input.ApiSpecificationMd5Hash !== null && { ApiSpecificationMd5Hash: input.ApiSpecificationMd5Hash })), (input.DataSetId !== undefined && input.DataSetId !== null && { DataSetId: input.DataSetId })), (input.ProtocolType !== undefined && input.ProtocolType !== null && { ProtocolType: input.ProtocolType })), (input.RevisionId !== undefined && input.RevisionId !== null && { RevisionId: input.RevisionId })), (input.Stage !== undefined && input.Stage !== null && { Stage: input.Stage }));
|
|
3656
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ApiDescription != null && { ApiDescription: input.ApiDescription })), (input.ApiId != null && { ApiId: input.ApiId })), (input.ApiKey != null && { ApiKey: input.ApiKey })), (input.ApiName != null && { ApiName: input.ApiName })), (input.ApiSpecificationMd5Hash != null && { ApiSpecificationMd5Hash: input.ApiSpecificationMd5Hash })), (input.DataSetId != null && { DataSetId: input.DataSetId })), (input.ProtocolType != null && { ProtocolType: input.ProtocolType })), (input.RevisionId != null && { RevisionId: input.RevisionId })), (input.Stage != null && { Stage: input.Stage }));
|
|
3646
3657
|
};
|
|
3647
3658
|
var serializeAws_restJson1ImportAssetFromSignedUrlRequestDetails = function (input, context) {
|
|
3648
|
-
return __assign(__assign(__assign(__assign({}, (input.AssetName
|
|
3659
|
+
return __assign(__assign(__assign(__assign({}, (input.AssetName != null && { AssetName: input.AssetName })), (input.DataSetId != null && { DataSetId: input.DataSetId })), (input.Md5Hash != null && { Md5Hash: input.Md5Hash })), (input.RevisionId != null && { RevisionId: input.RevisionId }));
|
|
3649
3660
|
};
|
|
3650
3661
|
var serializeAws_restJson1ImportAssetsFromRedshiftDataSharesRequestDetails = function (input, context) {
|
|
3651
|
-
return __assign(__assign(__assign({}, (input.AssetSources
|
|
3652
|
-
input.AssetSources !== null && {
|
|
3662
|
+
return __assign(__assign(__assign({}, (input.AssetSources != null && {
|
|
3653
3663
|
AssetSources: serializeAws_restJson1ListOfRedshiftDataShareAssetSourceEntry(input.AssetSources, context),
|
|
3654
|
-
})), (input.DataSetId
|
|
3664
|
+
})), (input.DataSetId != null && { DataSetId: input.DataSetId })), (input.RevisionId != null && { RevisionId: input.RevisionId }));
|
|
3655
3665
|
};
|
|
3656
3666
|
var serializeAws_restJson1ImportAssetsFromS3RequestDetails = function (input, context) {
|
|
3657
|
-
return __assign(__assign(__assign({}, (input.AssetSources
|
|
3658
|
-
input.AssetSources !== null && {
|
|
3667
|
+
return __assign(__assign(__assign({}, (input.AssetSources != null && {
|
|
3659
3668
|
AssetSources: serializeAws_restJson1ListOfAssetSourceEntry(input.AssetSources, context),
|
|
3660
|
-
})), (input.DataSetId
|
|
3669
|
+
})), (input.DataSetId != null && { DataSetId: input.DataSetId })), (input.RevisionId != null && { RevisionId: input.RevisionId }));
|
|
3661
3670
|
};
|
|
3662
3671
|
var serializeAws_restJson1ListOfAssetDestinationEntry = function (input, context) {
|
|
3663
3672
|
return input
|
|
@@ -3710,41 +3719,34 @@ var serializeAws_restJson1MapOf__string = function (input, context) {
|
|
|
3710
3719
|
}, {});
|
|
3711
3720
|
};
|
|
3712
3721
|
var serializeAws_restJson1RedshiftDataShareAssetSourceEntry = function (input, context) {
|
|
3713
|
-
return __assign({}, (input.DataShareArn
|
|
3722
|
+
return __assign({}, (input.DataShareArn != null && { DataShareArn: input.DataShareArn }));
|
|
3714
3723
|
};
|
|
3715
3724
|
var serializeAws_restJson1RequestDetails = function (input, context) {
|
|
3716
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ExportAssetToSignedUrl
|
|
3717
|
-
input.ExportAssetToSignedUrl !== null && {
|
|
3725
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ExportAssetToSignedUrl != null && {
|
|
3718
3726
|
ExportAssetToSignedUrl: serializeAws_restJson1ExportAssetToSignedUrlRequestDetails(input.ExportAssetToSignedUrl, context),
|
|
3719
|
-
})), (input.ExportAssetsToS3
|
|
3720
|
-
input.ExportAssetsToS3 !== null && {
|
|
3727
|
+
})), (input.ExportAssetsToS3 != null && {
|
|
3721
3728
|
ExportAssetsToS3: serializeAws_restJson1ExportAssetsToS3RequestDetails(input.ExportAssetsToS3, context),
|
|
3722
|
-
})), (input.ExportRevisionsToS3
|
|
3723
|
-
input.ExportRevisionsToS3 !== null && {
|
|
3729
|
+
})), (input.ExportRevisionsToS3 != null && {
|
|
3724
3730
|
ExportRevisionsToS3: serializeAws_restJson1ExportRevisionsToS3RequestDetails(input.ExportRevisionsToS3, context),
|
|
3725
|
-
})), (input.ImportAssetFromApiGatewayApi
|
|
3726
|
-
input.ImportAssetFromApiGatewayApi !== null && {
|
|
3731
|
+
})), (input.ImportAssetFromApiGatewayApi != null && {
|
|
3727
3732
|
ImportAssetFromApiGatewayApi: serializeAws_restJson1ImportAssetFromApiGatewayApiRequestDetails(input.ImportAssetFromApiGatewayApi, context),
|
|
3728
|
-
})), (input.ImportAssetFromSignedUrl
|
|
3729
|
-
input.ImportAssetFromSignedUrl !== null && {
|
|
3733
|
+
})), (input.ImportAssetFromSignedUrl != null && {
|
|
3730
3734
|
ImportAssetFromSignedUrl: serializeAws_restJson1ImportAssetFromSignedUrlRequestDetails(input.ImportAssetFromSignedUrl, context),
|
|
3731
|
-
})), (input.ImportAssetsFromRedshiftDataShares
|
|
3732
|
-
input.ImportAssetsFromRedshiftDataShares !== null && {
|
|
3735
|
+
})), (input.ImportAssetsFromRedshiftDataShares != null && {
|
|
3733
3736
|
ImportAssetsFromRedshiftDataShares: serializeAws_restJson1ImportAssetsFromRedshiftDataSharesRequestDetails(input.ImportAssetsFromRedshiftDataShares, context),
|
|
3734
|
-
})), (input.ImportAssetsFromS3
|
|
3735
|
-
input.ImportAssetsFromS3 !== null && {
|
|
3737
|
+
})), (input.ImportAssetsFromS3 != null && {
|
|
3736
3738
|
ImportAssetsFromS3: serializeAws_restJson1ImportAssetsFromS3RequestDetails(input.ImportAssetsFromS3, context),
|
|
3737
3739
|
}));
|
|
3738
3740
|
};
|
|
3739
3741
|
var serializeAws_restJson1RevisionDestinationEntry = function (input, context) {
|
|
3740
|
-
return __assign(__assign(__assign({}, (input.Bucket
|
|
3742
|
+
return __assign(__assign(__assign({}, (input.Bucket != null && { Bucket: input.Bucket })), (input.KeyPattern != null && { KeyPattern: input.KeyPattern })), (input.RevisionId != null && { RevisionId: input.RevisionId }));
|
|
3741
3743
|
};
|
|
3742
3744
|
var serializeAws_restJson1RevisionPublished = function (input, context) {
|
|
3743
|
-
return __assign({}, (input.DataSetId
|
|
3745
|
+
return __assign({}, (input.DataSetId != null && { DataSetId: input.DataSetId }));
|
|
3744
3746
|
};
|
|
3745
3747
|
var deserializeAws_restJson1Action = function (output, context) {
|
|
3746
3748
|
return {
|
|
3747
|
-
ExportRevisionToS3: output.ExportRevisionToS3
|
|
3749
|
+
ExportRevisionToS3: output.ExportRevisionToS3 != null
|
|
3748
3750
|
? deserializeAws_restJson1AutoExportRevisionToS3RequestDetails(output.ExportRevisionToS3, context)
|
|
3749
3751
|
: undefined,
|
|
3750
3752
|
};
|
|
@@ -3757,7 +3759,7 @@ var deserializeAws_restJson1ApiGatewayApiAsset = function (output, context) {
|
|
|
3757
3759
|
ApiKey: __expectString(output.ApiKey),
|
|
3758
3760
|
ApiName: __expectString(output.ApiName),
|
|
3759
3761
|
ApiSpecificationDownloadUrl: __expectString(output.ApiSpecificationDownloadUrl),
|
|
3760
|
-
ApiSpecificationDownloadUrlExpiresAt: output.ApiSpecificationDownloadUrlExpiresAt
|
|
3762
|
+
ApiSpecificationDownloadUrlExpiresAt: output.ApiSpecificationDownloadUrlExpiresAt != null
|
|
3761
3763
|
? __expectNonNull(__parseRfc3339DateTime(output.ApiSpecificationDownloadUrlExpiresAt))
|
|
3762
3764
|
: undefined,
|
|
3763
3765
|
ProtocolType: __expectString(output.ProtocolType),
|
|
@@ -3773,13 +3775,13 @@ var deserializeAws_restJson1AssetDestinationEntry = function (output, context) {
|
|
|
3773
3775
|
};
|
|
3774
3776
|
var deserializeAws_restJson1AssetDetails = function (output, context) {
|
|
3775
3777
|
return {
|
|
3776
|
-
ApiGatewayApiAsset: output.ApiGatewayApiAsset
|
|
3778
|
+
ApiGatewayApiAsset: output.ApiGatewayApiAsset != null
|
|
3777
3779
|
? deserializeAws_restJson1ApiGatewayApiAsset(output.ApiGatewayApiAsset, context)
|
|
3778
3780
|
: undefined,
|
|
3779
|
-
RedshiftDataShareAsset: output.RedshiftDataShareAsset
|
|
3781
|
+
RedshiftDataShareAsset: output.RedshiftDataShareAsset != null
|
|
3780
3782
|
? deserializeAws_restJson1RedshiftDataShareAsset(output.RedshiftDataShareAsset, context)
|
|
3781
3783
|
: undefined,
|
|
3782
|
-
S3SnapshotAsset: output.S3SnapshotAsset
|
|
3784
|
+
S3SnapshotAsset: output.S3SnapshotAsset != null
|
|
3783
3785
|
? deserializeAws_restJson1S3SnapshotAsset(output.S3SnapshotAsset, context)
|
|
3784
3786
|
: undefined,
|
|
3785
3787
|
};
|
|
@@ -3787,21 +3789,15 @@ var deserializeAws_restJson1AssetDetails = function (output, context) {
|
|
|
3787
3789
|
var deserializeAws_restJson1AssetEntry = function (output, context) {
|
|
3788
3790
|
return {
|
|
3789
3791
|
Arn: __expectString(output.Arn),
|
|
3790
|
-
AssetDetails: output.AssetDetails
|
|
3791
|
-
? deserializeAws_restJson1AssetDetails(output.AssetDetails, context)
|
|
3792
|
-
: undefined,
|
|
3792
|
+
AssetDetails: output.AssetDetails != null ? deserializeAws_restJson1AssetDetails(output.AssetDetails, context) : undefined,
|
|
3793
3793
|
AssetType: __expectString(output.AssetType),
|
|
3794
|
-
CreatedAt: output.CreatedAt
|
|
3795
|
-
? __expectNonNull(__parseRfc3339DateTime(output.CreatedAt))
|
|
3796
|
-
: undefined,
|
|
3794
|
+
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.CreatedAt)) : undefined,
|
|
3797
3795
|
DataSetId: __expectString(output.DataSetId),
|
|
3798
3796
|
Id: __expectString(output.Id),
|
|
3799
3797
|
Name: __expectString(output.Name),
|
|
3800
3798
|
RevisionId: __expectString(output.RevisionId),
|
|
3801
3799
|
SourceId: __expectString(output.SourceId),
|
|
3802
|
-
UpdatedAt: output.UpdatedAt
|
|
3803
|
-
? __expectNonNull(__parseRfc3339DateTime(output.UpdatedAt))
|
|
3804
|
-
: undefined,
|
|
3800
|
+
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedAt)) : undefined,
|
|
3805
3801
|
};
|
|
3806
3802
|
};
|
|
3807
3803
|
var deserializeAws_restJson1AssetSourceEntry = function (output, context) {
|
|
@@ -3818,10 +3814,10 @@ var deserializeAws_restJson1AutoExportRevisionDestinationEntry = function (outpu
|
|
|
3818
3814
|
};
|
|
3819
3815
|
var deserializeAws_restJson1AutoExportRevisionToS3RequestDetails = function (output, context) {
|
|
3820
3816
|
return {
|
|
3821
|
-
Encryption: output.Encryption
|
|
3817
|
+
Encryption: output.Encryption != null
|
|
3822
3818
|
? deserializeAws_restJson1ExportServerSideEncryption(output.Encryption, context)
|
|
3823
3819
|
: undefined,
|
|
3824
|
-
RevisionDestination: output.RevisionDestination
|
|
3820
|
+
RevisionDestination: output.RevisionDestination != null
|
|
3825
3821
|
? deserializeAws_restJson1AutoExportRevisionDestinationEntry(output.RevisionDestination, context)
|
|
3826
3822
|
: undefined,
|
|
3827
3823
|
};
|
|
@@ -3830,65 +3826,50 @@ var deserializeAws_restJson1DataSetEntry = function (output, context) {
|
|
|
3830
3826
|
return {
|
|
3831
3827
|
Arn: __expectString(output.Arn),
|
|
3832
3828
|
AssetType: __expectString(output.AssetType),
|
|
3833
|
-
CreatedAt: output.CreatedAt
|
|
3834
|
-
? __expectNonNull(__parseRfc3339DateTime(output.CreatedAt))
|
|
3835
|
-
: undefined,
|
|
3829
|
+
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.CreatedAt)) : undefined,
|
|
3836
3830
|
Description: __expectString(output.Description),
|
|
3837
3831
|
Id: __expectString(output.Id),
|
|
3838
3832
|
Name: __expectString(output.Name),
|
|
3839
3833
|
Origin: __expectString(output.Origin),
|
|
3840
|
-
OriginDetails: output.OriginDetails
|
|
3841
|
-
? deserializeAws_restJson1OriginDetails(output.OriginDetails, context)
|
|
3842
|
-
: undefined,
|
|
3834
|
+
OriginDetails: output.OriginDetails != null ? deserializeAws_restJson1OriginDetails(output.OriginDetails, context) : undefined,
|
|
3843
3835
|
SourceId: __expectString(output.SourceId),
|
|
3844
|
-
UpdatedAt: output.UpdatedAt
|
|
3845
|
-
? __expectNonNull(__parseRfc3339DateTime(output.UpdatedAt))
|
|
3846
|
-
: undefined,
|
|
3836
|
+
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedAt)) : undefined,
|
|
3847
3837
|
};
|
|
3848
3838
|
};
|
|
3849
3839
|
var deserializeAws_restJson1Details = function (output, context) {
|
|
3850
3840
|
return {
|
|
3851
|
-
ImportAssetFromSignedUrlJobErrorDetails: output.ImportAssetFromSignedUrlJobErrorDetails
|
|
3852
|
-
output.ImportAssetFromSignedUrlJobErrorDetails !== null
|
|
3841
|
+
ImportAssetFromSignedUrlJobErrorDetails: output.ImportAssetFromSignedUrlJobErrorDetails != null
|
|
3853
3842
|
? deserializeAws_restJson1ImportAssetFromSignedUrlJobErrorDetails(output.ImportAssetFromSignedUrlJobErrorDetails, context)
|
|
3854
3843
|
: undefined,
|
|
3855
|
-
ImportAssetsFromS3JobErrorDetails: output.ImportAssetsFromS3JobErrorDetails
|
|
3844
|
+
ImportAssetsFromS3JobErrorDetails: output.ImportAssetsFromS3JobErrorDetails != null
|
|
3856
3845
|
? deserializeAws_restJson1ListOfAssetSourceEntry(output.ImportAssetsFromS3JobErrorDetails, context)
|
|
3857
3846
|
: undefined,
|
|
3858
3847
|
};
|
|
3859
3848
|
};
|
|
3860
3849
|
var deserializeAws_restJson1Event = function (output, context) {
|
|
3861
3850
|
return {
|
|
3862
|
-
RevisionPublished: output.RevisionPublished
|
|
3851
|
+
RevisionPublished: output.RevisionPublished != null
|
|
3863
3852
|
? deserializeAws_restJson1RevisionPublished(output.RevisionPublished, context)
|
|
3864
3853
|
: undefined,
|
|
3865
3854
|
};
|
|
3866
3855
|
};
|
|
3867
3856
|
var deserializeAws_restJson1EventActionEntry = function (output, context) {
|
|
3868
3857
|
return {
|
|
3869
|
-
Action: output.Action
|
|
3870
|
-
? deserializeAws_restJson1Action(output.Action, context)
|
|
3871
|
-
: undefined,
|
|
3858
|
+
Action: output.Action != null ? deserializeAws_restJson1Action(output.Action, context) : undefined,
|
|
3872
3859
|
Arn: __expectString(output.Arn),
|
|
3873
|
-
CreatedAt: output.CreatedAt
|
|
3874
|
-
|
|
3875
|
-
: undefined,
|
|
3876
|
-
Event: output.Event !== undefined && output.Event !== null
|
|
3877
|
-
? deserializeAws_restJson1Event(output.Event, context)
|
|
3878
|
-
: undefined,
|
|
3860
|
+
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.CreatedAt)) : undefined,
|
|
3861
|
+
Event: output.Event != null ? deserializeAws_restJson1Event(output.Event, context) : undefined,
|
|
3879
3862
|
Id: __expectString(output.Id),
|
|
3880
|
-
UpdatedAt: output.UpdatedAt
|
|
3881
|
-
? __expectNonNull(__parseRfc3339DateTime(output.UpdatedAt))
|
|
3882
|
-
: undefined,
|
|
3863
|
+
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedAt)) : undefined,
|
|
3883
3864
|
};
|
|
3884
3865
|
};
|
|
3885
3866
|
var deserializeAws_restJson1ExportAssetsToS3ResponseDetails = function (output, context) {
|
|
3886
3867
|
return {
|
|
3887
|
-
AssetDestinations: output.AssetDestinations
|
|
3868
|
+
AssetDestinations: output.AssetDestinations != null
|
|
3888
3869
|
? deserializeAws_restJson1ListOfAssetDestinationEntry(output.AssetDestinations, context)
|
|
3889
3870
|
: undefined,
|
|
3890
3871
|
DataSetId: __expectString(output.DataSetId),
|
|
3891
|
-
Encryption: output.Encryption
|
|
3872
|
+
Encryption: output.Encryption != null
|
|
3892
3873
|
? deserializeAws_restJson1ExportServerSideEncryption(output.Encryption, context)
|
|
3893
3874
|
: undefined,
|
|
3894
3875
|
RevisionId: __expectString(output.RevisionId),
|
|
@@ -3900,7 +3881,7 @@ var deserializeAws_restJson1ExportAssetToSignedUrlResponseDetails = function (ou
|
|
|
3900
3881
|
DataSetId: __expectString(output.DataSetId),
|
|
3901
3882
|
RevisionId: __expectString(output.RevisionId),
|
|
3902
3883
|
SignedUrl: __expectString(output.SignedUrl),
|
|
3903
|
-
SignedUrlExpiresAt: output.SignedUrlExpiresAt
|
|
3884
|
+
SignedUrlExpiresAt: output.SignedUrlExpiresAt != null
|
|
3904
3885
|
? __expectNonNull(__parseRfc3339DateTime(output.SignedUrlExpiresAt))
|
|
3905
3886
|
: undefined,
|
|
3906
3887
|
};
|
|
@@ -3908,11 +3889,11 @@ var deserializeAws_restJson1ExportAssetToSignedUrlResponseDetails = function (ou
|
|
|
3908
3889
|
var deserializeAws_restJson1ExportRevisionsToS3ResponseDetails = function (output, context) {
|
|
3909
3890
|
return {
|
|
3910
3891
|
DataSetId: __expectString(output.DataSetId),
|
|
3911
|
-
Encryption: output.Encryption
|
|
3892
|
+
Encryption: output.Encryption != null
|
|
3912
3893
|
? deserializeAws_restJson1ExportServerSideEncryption(output.Encryption, context)
|
|
3913
3894
|
: undefined,
|
|
3914
3895
|
EventActionArn: __expectString(output.EventActionArn),
|
|
3915
|
-
RevisionDestinations: output.RevisionDestinations
|
|
3896
|
+
RevisionDestinations: output.RevisionDestinations != null
|
|
3916
3897
|
? deserializeAws_restJson1ListOfRevisionDestinationEntry(output.RevisionDestinations, context)
|
|
3917
3898
|
: undefined,
|
|
3918
3899
|
};
|
|
@@ -3931,7 +3912,7 @@ var deserializeAws_restJson1ImportAssetFromApiGatewayApiResponseDetails = functi
|
|
|
3931
3912
|
ApiName: __expectString(output.ApiName),
|
|
3932
3913
|
ApiSpecificationMd5Hash: __expectString(output.ApiSpecificationMd5Hash),
|
|
3933
3914
|
ApiSpecificationUploadUrl: __expectString(output.ApiSpecificationUploadUrl),
|
|
3934
|
-
ApiSpecificationUploadUrlExpiresAt: output.ApiSpecificationUploadUrlExpiresAt
|
|
3915
|
+
ApiSpecificationUploadUrlExpiresAt: output.ApiSpecificationUploadUrlExpiresAt != null
|
|
3935
3916
|
? __expectNonNull(__parseRfc3339DateTime(output.ApiSpecificationUploadUrlExpiresAt))
|
|
3936
3917
|
: undefined,
|
|
3937
3918
|
DataSetId: __expectString(output.DataSetId),
|
|
@@ -3952,14 +3933,14 @@ var deserializeAws_restJson1ImportAssetFromSignedUrlResponseDetails = function (
|
|
|
3952
3933
|
Md5Hash: __expectString(output.Md5Hash),
|
|
3953
3934
|
RevisionId: __expectString(output.RevisionId),
|
|
3954
3935
|
SignedUrl: __expectString(output.SignedUrl),
|
|
3955
|
-
SignedUrlExpiresAt: output.SignedUrlExpiresAt
|
|
3936
|
+
SignedUrlExpiresAt: output.SignedUrlExpiresAt != null
|
|
3956
3937
|
? __expectNonNull(__parseRfc3339DateTime(output.SignedUrlExpiresAt))
|
|
3957
3938
|
: undefined,
|
|
3958
3939
|
};
|
|
3959
3940
|
};
|
|
3960
3941
|
var deserializeAws_restJson1ImportAssetsFromRedshiftDataSharesResponseDetails = function (output, context) {
|
|
3961
3942
|
return {
|
|
3962
|
-
AssetSources: output.AssetSources
|
|
3943
|
+
AssetSources: output.AssetSources != null
|
|
3963
3944
|
? deserializeAws_restJson1ListOfRedshiftDataShareAssetSourceEntry(output.AssetSources, context)
|
|
3964
3945
|
: undefined,
|
|
3965
3946
|
DataSetId: __expectString(output.DataSetId),
|
|
@@ -3968,7 +3949,7 @@ var deserializeAws_restJson1ImportAssetsFromRedshiftDataSharesResponseDetails =
|
|
|
3968
3949
|
};
|
|
3969
3950
|
var deserializeAws_restJson1ImportAssetsFromS3ResponseDetails = function (output, context) {
|
|
3970
3951
|
return {
|
|
3971
|
-
AssetSources: output.AssetSources
|
|
3952
|
+
AssetSources: output.AssetSources != null
|
|
3972
3953
|
? deserializeAws_restJson1ListOfAssetSourceEntry(output.AssetSources, context)
|
|
3973
3954
|
: undefined,
|
|
3974
3955
|
DataSetId: __expectString(output.DataSetId),
|
|
@@ -3978,29 +3959,19 @@ var deserializeAws_restJson1ImportAssetsFromS3ResponseDetails = function (output
|
|
|
3978
3959
|
var deserializeAws_restJson1JobEntry = function (output, context) {
|
|
3979
3960
|
return {
|
|
3980
3961
|
Arn: __expectString(output.Arn),
|
|
3981
|
-
CreatedAt: output.CreatedAt
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
Details: output.Details !== undefined && output.Details !== null
|
|
3985
|
-
? deserializeAws_restJson1ResponseDetails(output.Details, context)
|
|
3986
|
-
: undefined,
|
|
3987
|
-
Errors: output.Errors !== undefined && output.Errors !== null
|
|
3988
|
-
? deserializeAws_restJson1ListOfJobError(output.Errors, context)
|
|
3989
|
-
: undefined,
|
|
3962
|
+
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.CreatedAt)) : undefined,
|
|
3963
|
+
Details: output.Details != null ? deserializeAws_restJson1ResponseDetails(output.Details, context) : undefined,
|
|
3964
|
+
Errors: output.Errors != null ? deserializeAws_restJson1ListOfJobError(output.Errors, context) : undefined,
|
|
3990
3965
|
Id: __expectString(output.Id),
|
|
3991
3966
|
State: __expectString(output.State),
|
|
3992
3967
|
Type: __expectString(output.Type),
|
|
3993
|
-
UpdatedAt: output.UpdatedAt
|
|
3994
|
-
? __expectNonNull(__parseRfc3339DateTime(output.UpdatedAt))
|
|
3995
|
-
: undefined,
|
|
3968
|
+
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedAt)) : undefined,
|
|
3996
3969
|
};
|
|
3997
3970
|
};
|
|
3998
3971
|
var deserializeAws_restJson1JobError = function (output, context) {
|
|
3999
3972
|
return {
|
|
4000
3973
|
Code: __expectString(output.Code),
|
|
4001
|
-
Details: output.Details
|
|
4002
|
-
? deserializeAws_restJson1Details(output.Details, context)
|
|
4003
|
-
: undefined,
|
|
3974
|
+
Details: output.Details != null ? deserializeAws_restJson1Details(output.Details, context) : undefined,
|
|
4004
3975
|
LimitName: __expectString(output.LimitName),
|
|
4005
3976
|
LimitValue: __limitedParseDouble(output.LimitValue),
|
|
4006
3977
|
Message: __expectString(output.Message),
|
|
@@ -4145,25 +4116,25 @@ var deserializeAws_restJson1RedshiftDataShareAssetSourceEntry = function (output
|
|
|
4145
4116
|
};
|
|
4146
4117
|
var deserializeAws_restJson1ResponseDetails = function (output, context) {
|
|
4147
4118
|
return {
|
|
4148
|
-
ExportAssetToSignedUrl: output.ExportAssetToSignedUrl
|
|
4119
|
+
ExportAssetToSignedUrl: output.ExportAssetToSignedUrl != null
|
|
4149
4120
|
? deserializeAws_restJson1ExportAssetToSignedUrlResponseDetails(output.ExportAssetToSignedUrl, context)
|
|
4150
4121
|
: undefined,
|
|
4151
|
-
ExportAssetsToS3: output.ExportAssetsToS3
|
|
4122
|
+
ExportAssetsToS3: output.ExportAssetsToS3 != null
|
|
4152
4123
|
? deserializeAws_restJson1ExportAssetsToS3ResponseDetails(output.ExportAssetsToS3, context)
|
|
4153
4124
|
: undefined,
|
|
4154
|
-
ExportRevisionsToS3: output.ExportRevisionsToS3
|
|
4125
|
+
ExportRevisionsToS3: output.ExportRevisionsToS3 != null
|
|
4155
4126
|
? deserializeAws_restJson1ExportRevisionsToS3ResponseDetails(output.ExportRevisionsToS3, context)
|
|
4156
4127
|
: undefined,
|
|
4157
|
-
ImportAssetFromApiGatewayApi: output.ImportAssetFromApiGatewayApi
|
|
4128
|
+
ImportAssetFromApiGatewayApi: output.ImportAssetFromApiGatewayApi != null
|
|
4158
4129
|
? deserializeAws_restJson1ImportAssetFromApiGatewayApiResponseDetails(output.ImportAssetFromApiGatewayApi, context)
|
|
4159
4130
|
: undefined,
|
|
4160
|
-
ImportAssetFromSignedUrl: output.ImportAssetFromSignedUrl
|
|
4131
|
+
ImportAssetFromSignedUrl: output.ImportAssetFromSignedUrl != null
|
|
4161
4132
|
? deserializeAws_restJson1ImportAssetFromSignedUrlResponseDetails(output.ImportAssetFromSignedUrl, context)
|
|
4162
4133
|
: undefined,
|
|
4163
|
-
ImportAssetsFromRedshiftDataShares: output.ImportAssetsFromRedshiftDataShares
|
|
4134
|
+
ImportAssetsFromRedshiftDataShares: output.ImportAssetsFromRedshiftDataShares != null
|
|
4164
4135
|
? deserializeAws_restJson1ImportAssetsFromRedshiftDataSharesResponseDetails(output.ImportAssetsFromRedshiftDataShares, context)
|
|
4165
4136
|
: undefined,
|
|
4166
|
-
ImportAssetsFromS3: output.ImportAssetsFromS3
|
|
4137
|
+
ImportAssetsFromS3: output.ImportAssetsFromS3 != null
|
|
4167
4138
|
? deserializeAws_restJson1ImportAssetsFromS3ResponseDetails(output.ImportAssetsFromS3, context)
|
|
4168
4139
|
: undefined,
|
|
4169
4140
|
};
|
|
@@ -4179,21 +4150,15 @@ var deserializeAws_restJson1RevisionEntry = function (output, context) {
|
|
|
4179
4150
|
return {
|
|
4180
4151
|
Arn: __expectString(output.Arn),
|
|
4181
4152
|
Comment: __expectString(output.Comment),
|
|
4182
|
-
CreatedAt: output.CreatedAt
|
|
4183
|
-
? __expectNonNull(__parseRfc3339DateTime(output.CreatedAt))
|
|
4184
|
-
: undefined,
|
|
4153
|
+
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.CreatedAt)) : undefined,
|
|
4185
4154
|
DataSetId: __expectString(output.DataSetId),
|
|
4186
4155
|
Finalized: __expectBoolean(output.Finalized),
|
|
4187
4156
|
Id: __expectString(output.Id),
|
|
4188
4157
|
RevocationComment: __expectString(output.RevocationComment),
|
|
4189
4158
|
Revoked: __expectBoolean(output.Revoked),
|
|
4190
|
-
RevokedAt: output.RevokedAt
|
|
4191
|
-
? __expectNonNull(__parseRfc3339DateTime(output.RevokedAt))
|
|
4192
|
-
: undefined,
|
|
4159
|
+
RevokedAt: output.RevokedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.RevokedAt)) : undefined,
|
|
4193
4160
|
SourceId: __expectString(output.SourceId),
|
|
4194
|
-
UpdatedAt: output.UpdatedAt
|
|
4195
|
-
? __expectNonNull(__parseRfc3339DateTime(output.UpdatedAt))
|
|
4196
|
-
: undefined,
|
|
4161
|
+
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedAt)) : undefined,
|
|
4197
4162
|
};
|
|
4198
4163
|
};
|
|
4199
4164
|
var deserializeAws_restJson1RevisionPublished = function (output, context) {
|
|
@@ -4262,5 +4227,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
4262
4227
|
if (data["__type"] !== undefined) {
|
|
4263
4228
|
return sanitizeErrorCode(data["__type"]);
|
|
4264
4229
|
}
|
|
4265
|
-
return "";
|
|
4266
4230
|
};
|