@aws-sdk/client-forecast 3.40.0 → 3.45.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 +41 -0
- package/README.md +7 -7
- package/dist-cjs/Forecast.js +150 -0
- package/dist-cjs/commands/CreateAutoPredictorCommand.js +36 -0
- package/dist-cjs/commands/CreateExplainabilityCommand.js +36 -0
- package/dist-cjs/commands/CreateExplainabilityExportCommand.js +36 -0
- package/dist-cjs/commands/DeleteExplainabilityCommand.js +36 -0
- package/dist-cjs/commands/DeleteExplainabilityExportCommand.js +36 -0
- package/dist-cjs/commands/DescribeAutoPredictorCommand.js +36 -0
- package/dist-cjs/commands/DescribeExplainabilityCommand.js +36 -0
- package/dist-cjs/commands/DescribeExplainabilityExportCommand.js +36 -0
- package/dist-cjs/commands/ListExplainabilitiesCommand.js +36 -0
- package/dist-cjs/commands/ListExplainabilityExportsCommand.js +36 -0
- package/dist-cjs/commands/index.js +10 -0
- package/dist-cjs/endpoints.js +9 -0
- package/dist-cjs/models/models_0.js +236 -61
- package/dist-cjs/protocols/Aws_json1_1.js +1283 -98
- package/dist-es/Forecast.js +150 -0
- package/dist-es/commands/CreateAutoPredictorCommand.js +39 -0
- package/dist-es/commands/CreateExplainabilityCommand.js +39 -0
- package/dist-es/commands/CreateExplainabilityExportCommand.js +39 -0
- package/dist-es/commands/DeleteExplainabilityCommand.js +39 -0
- package/dist-es/commands/DeleteExplainabilityExportCommand.js +39 -0
- package/dist-es/commands/DescribeAutoPredictorCommand.js +39 -0
- package/dist-es/commands/DescribeExplainabilityCommand.js +39 -0
- package/dist-es/commands/DescribeExplainabilityExportCommand.js +39 -0
- package/dist-es/commands/ListExplainabilitiesCommand.js +39 -0
- package/dist-es/commands/ListExplainabilityExportsCommand.js +39 -0
- package/dist-es/commands/index.js +10 -0
- package/dist-es/endpoints.js +9 -0
- package/dist-es/models/models_0.js +160 -40
- package/dist-es/protocols/Aws_json1_1.js +1367 -138
- package/dist-types/Forecast.d.ts +306 -40
- package/dist-types/ForecastClient.d.ts +12 -2
- package/dist-types/commands/CreateAutoPredictorCommand.d.ts +83 -0
- package/dist-types/commands/CreateDatasetCommand.d.ts +1 -1
- package/dist-types/commands/CreateDatasetGroupCommand.d.ts +1 -1
- package/dist-types/commands/CreateDatasetImportJobCommand.d.ts +1 -1
- package/dist-types/commands/CreateExplainabilityCommand.d.ts +153 -0
- package/dist-types/commands/CreateExplainabilityExportCommand.d.ts +43 -0
- package/dist-types/commands/CreateForecastCommand.d.ts +1 -1
- package/dist-types/commands/CreateForecastExportJobCommand.d.ts +1 -1
- package/dist-types/commands/CreatePredictorBacktestExportJobCommand.d.ts +5 -5
- package/dist-types/commands/CreatePredictorCommand.d.ts +20 -19
- package/dist-types/commands/DeleteDatasetCommand.d.ts +1 -1
- package/dist-types/commands/DeleteDatasetGroupCommand.d.ts +1 -1
- package/dist-types/commands/DeleteDatasetImportJobCommand.d.ts +1 -1
- package/dist-types/commands/DeleteExplainabilityCommand.d.ts +37 -0
- package/dist-types/commands/DeleteExplainabilityExportCommand.d.ts +35 -0
- package/dist-types/commands/DeleteForecastCommand.d.ts +1 -1
- package/dist-types/commands/DeleteForecastExportJobCommand.d.ts +1 -1
- package/dist-types/commands/DeletePredictorBacktestExportJobCommand.d.ts +1 -1
- package/dist-types/commands/DeletePredictorCommand.d.ts +3 -4
- package/dist-types/commands/DeleteResourceTreeCommand.d.ts +1 -1
- package/dist-types/commands/DescribeAutoPredictorCommand.d.ts +35 -0
- package/dist-types/commands/DescribeDatasetCommand.d.ts +1 -1
- package/dist-types/commands/DescribeDatasetGroupCommand.d.ts +1 -1
- package/dist-types/commands/DescribeDatasetImportJobCommand.d.ts +1 -1
- package/dist-types/commands/DescribeExplainabilityCommand.d.ts +35 -0
- package/dist-types/commands/DescribeExplainabilityExportCommand.d.ts +35 -0
- package/dist-types/commands/DescribeForecastCommand.d.ts +1 -1
- package/dist-types/commands/DescribeForecastExportJobCommand.d.ts +1 -1
- package/dist-types/commands/DescribePredictorBacktestExportJobCommand.d.ts +2 -2
- package/dist-types/commands/DescribePredictorCommand.d.ts +6 -2
- package/dist-types/commands/GetAccuracyMetricsCommand.d.ts +1 -1
- package/dist-types/commands/ListDatasetGroupsCommand.d.ts +1 -1
- package/dist-types/commands/ListDatasetImportJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListDatasetsCommand.d.ts +1 -1
- package/dist-types/commands/ListExplainabilitiesCommand.d.ts +39 -0
- package/dist-types/commands/ListExplainabilityExportsCommand.d.ts +38 -0
- package/dist-types/commands/ListForecastExportJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListForecastsCommand.d.ts +1 -1
- package/dist-types/commands/ListPredictorBacktestExportJobsCommand.d.ts +5 -5
- package/dist-types/commands/ListPredictorsCommand.d.ts +6 -6
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/StopResourceCommand.d.ts +10 -4
- package/dist-types/commands/TagResourceCommand.d.ts +5 -2
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateDatasetGroupCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +2109 -495
- package/dist-types/protocols/Aws_json1_1.d.ts +30 -0
- package/dist-types/ts3.4/Forecast.d.ts +50 -0
- package/dist-types/ts3.4/ForecastClient.d.ts +12 -2
- package/dist-types/ts3.4/commands/CreateAutoPredictorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateExplainabilityCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateExplainabilityExportCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteExplainabilityCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteExplainabilityExportCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeAutoPredictorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeExplainabilityCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeExplainabilityExportCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListExplainabilitiesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListExplainabilityExportsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +10 -0
- package/dist-types/ts3.4/models/models_0.d.ts +492 -83
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +30 -0
- package/package.json +6 -6
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
3
|
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client";
|
|
4
|
+
export var serializeAws_json1_1CreateAutoPredictorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
|
+
var headers, body;
|
|
6
|
+
return __generator(this, function (_a) {
|
|
7
|
+
headers = {
|
|
8
|
+
"content-type": "application/x-amz-json-1.1",
|
|
9
|
+
"x-amz-target": "AmazonForecast.CreateAutoPredictor",
|
|
10
|
+
};
|
|
11
|
+
body = JSON.stringify(serializeAws_json1_1CreateAutoPredictorRequest(input, context));
|
|
12
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
13
|
+
});
|
|
14
|
+
}); };
|
|
4
15
|
export var serializeAws_json1_1CreateDatasetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
16
|
var headers, body;
|
|
6
17
|
return __generator(this, function (_a) {
|
|
@@ -34,6 +45,28 @@ export var serializeAws_json1_1CreateDatasetImportJobCommand = function (input,
|
|
|
34
45
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
35
46
|
});
|
|
36
47
|
}); };
|
|
48
|
+
export var serializeAws_json1_1CreateExplainabilityCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
49
|
+
var headers, body;
|
|
50
|
+
return __generator(this, function (_a) {
|
|
51
|
+
headers = {
|
|
52
|
+
"content-type": "application/x-amz-json-1.1",
|
|
53
|
+
"x-amz-target": "AmazonForecast.CreateExplainability",
|
|
54
|
+
};
|
|
55
|
+
body = JSON.stringify(serializeAws_json1_1CreateExplainabilityRequest(input, context));
|
|
56
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
57
|
+
});
|
|
58
|
+
}); };
|
|
59
|
+
export var serializeAws_json1_1CreateExplainabilityExportCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
60
|
+
var headers, body;
|
|
61
|
+
return __generator(this, function (_a) {
|
|
62
|
+
headers = {
|
|
63
|
+
"content-type": "application/x-amz-json-1.1",
|
|
64
|
+
"x-amz-target": "AmazonForecast.CreateExplainabilityExport",
|
|
65
|
+
};
|
|
66
|
+
body = JSON.stringify(serializeAws_json1_1CreateExplainabilityExportRequest(input, context));
|
|
67
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
68
|
+
});
|
|
69
|
+
}); };
|
|
37
70
|
export var serializeAws_json1_1CreateForecastCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
38
71
|
var headers, body;
|
|
39
72
|
return __generator(this, function (_a) {
|
|
@@ -111,6 +144,28 @@ export var serializeAws_json1_1DeleteDatasetImportJobCommand = function (input,
|
|
|
111
144
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
112
145
|
});
|
|
113
146
|
}); };
|
|
147
|
+
export var serializeAws_json1_1DeleteExplainabilityCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
148
|
+
var headers, body;
|
|
149
|
+
return __generator(this, function (_a) {
|
|
150
|
+
headers = {
|
|
151
|
+
"content-type": "application/x-amz-json-1.1",
|
|
152
|
+
"x-amz-target": "AmazonForecast.DeleteExplainability",
|
|
153
|
+
};
|
|
154
|
+
body = JSON.stringify(serializeAws_json1_1DeleteExplainabilityRequest(input, context));
|
|
155
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
156
|
+
});
|
|
157
|
+
}); };
|
|
158
|
+
export var serializeAws_json1_1DeleteExplainabilityExportCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
159
|
+
var headers, body;
|
|
160
|
+
return __generator(this, function (_a) {
|
|
161
|
+
headers = {
|
|
162
|
+
"content-type": "application/x-amz-json-1.1",
|
|
163
|
+
"x-amz-target": "AmazonForecast.DeleteExplainabilityExport",
|
|
164
|
+
};
|
|
165
|
+
body = JSON.stringify(serializeAws_json1_1DeleteExplainabilityExportRequest(input, context));
|
|
166
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
167
|
+
});
|
|
168
|
+
}); };
|
|
114
169
|
export var serializeAws_json1_1DeleteForecastCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
115
170
|
var headers, body;
|
|
116
171
|
return __generator(this, function (_a) {
|
|
@@ -166,6 +221,17 @@ export var serializeAws_json1_1DeleteResourceTreeCommand = function (input, cont
|
|
|
166
221
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
167
222
|
});
|
|
168
223
|
}); };
|
|
224
|
+
export var serializeAws_json1_1DescribeAutoPredictorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
225
|
+
var headers, body;
|
|
226
|
+
return __generator(this, function (_a) {
|
|
227
|
+
headers = {
|
|
228
|
+
"content-type": "application/x-amz-json-1.1",
|
|
229
|
+
"x-amz-target": "AmazonForecast.DescribeAutoPredictor",
|
|
230
|
+
};
|
|
231
|
+
body = JSON.stringify(serializeAws_json1_1DescribeAutoPredictorRequest(input, context));
|
|
232
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
233
|
+
});
|
|
234
|
+
}); };
|
|
169
235
|
export var serializeAws_json1_1DescribeDatasetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
170
236
|
var headers, body;
|
|
171
237
|
return __generator(this, function (_a) {
|
|
@@ -199,6 +265,28 @@ export var serializeAws_json1_1DescribeDatasetImportJobCommand = function (input
|
|
|
199
265
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
200
266
|
});
|
|
201
267
|
}); };
|
|
268
|
+
export var serializeAws_json1_1DescribeExplainabilityCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
269
|
+
var headers, body;
|
|
270
|
+
return __generator(this, function (_a) {
|
|
271
|
+
headers = {
|
|
272
|
+
"content-type": "application/x-amz-json-1.1",
|
|
273
|
+
"x-amz-target": "AmazonForecast.DescribeExplainability",
|
|
274
|
+
};
|
|
275
|
+
body = JSON.stringify(serializeAws_json1_1DescribeExplainabilityRequest(input, context));
|
|
276
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
277
|
+
});
|
|
278
|
+
}); };
|
|
279
|
+
export var serializeAws_json1_1DescribeExplainabilityExportCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
280
|
+
var headers, body;
|
|
281
|
+
return __generator(this, function (_a) {
|
|
282
|
+
headers = {
|
|
283
|
+
"content-type": "application/x-amz-json-1.1",
|
|
284
|
+
"x-amz-target": "AmazonForecast.DescribeExplainabilityExport",
|
|
285
|
+
};
|
|
286
|
+
body = JSON.stringify(serializeAws_json1_1DescribeExplainabilityExportRequest(input, context));
|
|
287
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
288
|
+
});
|
|
289
|
+
}); };
|
|
202
290
|
export var serializeAws_json1_1DescribeForecastCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
203
291
|
var headers, body;
|
|
204
292
|
return __generator(this, function (_a) {
|
|
@@ -287,6 +375,28 @@ export var serializeAws_json1_1ListDatasetsCommand = function (input, context) {
|
|
|
287
375
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
288
376
|
});
|
|
289
377
|
}); };
|
|
378
|
+
export var serializeAws_json1_1ListExplainabilitiesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
379
|
+
var headers, body;
|
|
380
|
+
return __generator(this, function (_a) {
|
|
381
|
+
headers = {
|
|
382
|
+
"content-type": "application/x-amz-json-1.1",
|
|
383
|
+
"x-amz-target": "AmazonForecast.ListExplainabilities",
|
|
384
|
+
};
|
|
385
|
+
body = JSON.stringify(serializeAws_json1_1ListExplainabilitiesRequest(input, context));
|
|
386
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
387
|
+
});
|
|
388
|
+
}); };
|
|
389
|
+
export var serializeAws_json1_1ListExplainabilityExportsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
390
|
+
var headers, body;
|
|
391
|
+
return __generator(this, function (_a) {
|
|
392
|
+
headers = {
|
|
393
|
+
"content-type": "application/x-amz-json-1.1",
|
|
394
|
+
"x-amz-target": "AmazonForecast.ListExplainabilityExports",
|
|
395
|
+
};
|
|
396
|
+
body = JSON.stringify(serializeAws_json1_1ListExplainabilityExportsRequest(input, context));
|
|
397
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
398
|
+
});
|
|
399
|
+
}); };
|
|
290
400
|
export var serializeAws_json1_1ListForecastExportJobsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
291
401
|
var headers, body;
|
|
292
402
|
return __generator(this, function (_a) {
|
|
@@ -386,6 +496,94 @@ export var serializeAws_json1_1UpdateDatasetGroupCommand = function (input, cont
|
|
|
386
496
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
387
497
|
});
|
|
388
498
|
}); };
|
|
499
|
+
export var deserializeAws_json1_1CreateAutoPredictorCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
500
|
+
var data, contents, response;
|
|
501
|
+
return __generator(this, function (_a) {
|
|
502
|
+
switch (_a.label) {
|
|
503
|
+
case 0:
|
|
504
|
+
if (output.statusCode >= 300) {
|
|
505
|
+
return [2, deserializeAws_json1_1CreateAutoPredictorCommandError(output, context)];
|
|
506
|
+
}
|
|
507
|
+
return [4, parseBody(output.body, context)];
|
|
508
|
+
case 1:
|
|
509
|
+
data = _a.sent();
|
|
510
|
+
contents = {};
|
|
511
|
+
contents = deserializeAws_json1_1CreateAutoPredictorResponse(data, context);
|
|
512
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
513
|
+
return [2, Promise.resolve(response)];
|
|
514
|
+
}
|
|
515
|
+
});
|
|
516
|
+
}); };
|
|
517
|
+
var deserializeAws_json1_1CreateAutoPredictorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
518
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
519
|
+
var _h;
|
|
520
|
+
return __generator(this, function (_j) {
|
|
521
|
+
switch (_j.label) {
|
|
522
|
+
case 0:
|
|
523
|
+
_a = [__assign({}, output)];
|
|
524
|
+
_h = {};
|
|
525
|
+
return [4, parseBody(output.body, context)];
|
|
526
|
+
case 1:
|
|
527
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
528
|
+
errorCode = "UnknownError";
|
|
529
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
530
|
+
_b = errorCode;
|
|
531
|
+
switch (_b) {
|
|
532
|
+
case "InvalidInputException": return [3, 2];
|
|
533
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
534
|
+
case "LimitExceededException": return [3, 4];
|
|
535
|
+
case "com.amazonaws.forecast#LimitExceededException": return [3, 4];
|
|
536
|
+
case "ResourceAlreadyExistsException": return [3, 6];
|
|
537
|
+
case "com.amazonaws.forecast#ResourceAlreadyExistsException": return [3, 6];
|
|
538
|
+
case "ResourceInUseException": return [3, 8];
|
|
539
|
+
case "com.amazonaws.forecast#ResourceInUseException": return [3, 8];
|
|
540
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
541
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 10];
|
|
542
|
+
}
|
|
543
|
+
return [3, 12];
|
|
544
|
+
case 2:
|
|
545
|
+
_c = [{}];
|
|
546
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
547
|
+
case 3:
|
|
548
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
549
|
+
return [3, 13];
|
|
550
|
+
case 4:
|
|
551
|
+
_d = [{}];
|
|
552
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
553
|
+
case 5:
|
|
554
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
555
|
+
return [3, 13];
|
|
556
|
+
case 6:
|
|
557
|
+
_e = [{}];
|
|
558
|
+
return [4, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
559
|
+
case 7:
|
|
560
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
561
|
+
return [3, 13];
|
|
562
|
+
case 8:
|
|
563
|
+
_f = [{}];
|
|
564
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
565
|
+
case 9:
|
|
566
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
567
|
+
return [3, 13];
|
|
568
|
+
case 10:
|
|
569
|
+
_g = [{}];
|
|
570
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
571
|
+
case 11:
|
|
572
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
573
|
+
return [3, 13];
|
|
574
|
+
case 12:
|
|
575
|
+
parsedBody = parsedOutput.body;
|
|
576
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
577
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
578
|
+
_j.label = 13;
|
|
579
|
+
case 13:
|
|
580
|
+
message = response.message || response.Message || errorCode;
|
|
581
|
+
response.message = message;
|
|
582
|
+
delete response.Message;
|
|
583
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
584
|
+
}
|
|
585
|
+
});
|
|
586
|
+
}); };
|
|
389
587
|
export var deserializeAws_json1_1CreateDatasetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
390
588
|
var data, contents, response;
|
|
391
589
|
return __generator(this, function (_a) {
|
|
@@ -634,25 +832,25 @@ var deserializeAws_json1_1CreateDatasetImportJobCommandError = function (output,
|
|
|
634
832
|
}
|
|
635
833
|
});
|
|
636
834
|
}); };
|
|
637
|
-
export var
|
|
835
|
+
export var deserializeAws_json1_1CreateExplainabilityCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
638
836
|
var data, contents, response;
|
|
639
837
|
return __generator(this, function (_a) {
|
|
640
838
|
switch (_a.label) {
|
|
641
839
|
case 0:
|
|
642
840
|
if (output.statusCode >= 300) {
|
|
643
|
-
return [2,
|
|
841
|
+
return [2, deserializeAws_json1_1CreateExplainabilityCommandError(output, context)];
|
|
644
842
|
}
|
|
645
843
|
return [4, parseBody(output.body, context)];
|
|
646
844
|
case 1:
|
|
647
845
|
data = _a.sent();
|
|
648
846
|
contents = {};
|
|
649
|
-
contents =
|
|
847
|
+
contents = deserializeAws_json1_1CreateExplainabilityResponse(data, context);
|
|
650
848
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
651
849
|
return [2, Promise.resolve(response)];
|
|
652
850
|
}
|
|
653
851
|
});
|
|
654
852
|
}); };
|
|
655
|
-
var
|
|
853
|
+
var deserializeAws_json1_1CreateExplainabilityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
656
854
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
657
855
|
var _h;
|
|
658
856
|
return __generator(this, function (_j) {
|
|
@@ -722,25 +920,25 @@ var deserializeAws_json1_1CreateForecastCommandError = function (output, context
|
|
|
722
920
|
}
|
|
723
921
|
});
|
|
724
922
|
}); };
|
|
725
|
-
export var
|
|
923
|
+
export var deserializeAws_json1_1CreateExplainabilityExportCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
726
924
|
var data, contents, response;
|
|
727
925
|
return __generator(this, function (_a) {
|
|
728
926
|
switch (_a.label) {
|
|
729
927
|
case 0:
|
|
730
928
|
if (output.statusCode >= 300) {
|
|
731
|
-
return [2,
|
|
929
|
+
return [2, deserializeAws_json1_1CreateExplainabilityExportCommandError(output, context)];
|
|
732
930
|
}
|
|
733
931
|
return [4, parseBody(output.body, context)];
|
|
734
932
|
case 1:
|
|
735
933
|
data = _a.sent();
|
|
736
934
|
contents = {};
|
|
737
|
-
contents =
|
|
935
|
+
contents = deserializeAws_json1_1CreateExplainabilityExportResponse(data, context);
|
|
738
936
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
739
937
|
return [2, Promise.resolve(response)];
|
|
740
938
|
}
|
|
741
939
|
});
|
|
742
940
|
}); };
|
|
743
|
-
var
|
|
941
|
+
var deserializeAws_json1_1CreateExplainabilityExportCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
744
942
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
745
943
|
var _h;
|
|
746
944
|
return __generator(this, function (_j) {
|
|
@@ -810,25 +1008,25 @@ var deserializeAws_json1_1CreateForecastExportJobCommandError = function (output
|
|
|
810
1008
|
}
|
|
811
1009
|
});
|
|
812
1010
|
}); };
|
|
813
|
-
export var
|
|
1011
|
+
export var deserializeAws_json1_1CreateForecastCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
814
1012
|
var data, contents, response;
|
|
815
1013
|
return __generator(this, function (_a) {
|
|
816
1014
|
switch (_a.label) {
|
|
817
1015
|
case 0:
|
|
818
1016
|
if (output.statusCode >= 300) {
|
|
819
|
-
return [2,
|
|
1017
|
+
return [2, deserializeAws_json1_1CreateForecastCommandError(output, context)];
|
|
820
1018
|
}
|
|
821
1019
|
return [4, parseBody(output.body, context)];
|
|
822
1020
|
case 1:
|
|
823
1021
|
data = _a.sent();
|
|
824
1022
|
contents = {};
|
|
825
|
-
contents =
|
|
1023
|
+
contents = deserializeAws_json1_1CreateForecastResponse(data, context);
|
|
826
1024
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
827
1025
|
return [2, Promise.resolve(response)];
|
|
828
1026
|
}
|
|
829
1027
|
});
|
|
830
1028
|
}); };
|
|
831
|
-
var
|
|
1029
|
+
var deserializeAws_json1_1CreateForecastCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
832
1030
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
833
1031
|
var _h;
|
|
834
1032
|
return __generator(this, function (_j) {
|
|
@@ -898,25 +1096,25 @@ var deserializeAws_json1_1CreatePredictorCommandError = function (output, contex
|
|
|
898
1096
|
}
|
|
899
1097
|
});
|
|
900
1098
|
}); };
|
|
901
|
-
export var
|
|
1099
|
+
export var deserializeAws_json1_1CreateForecastExportJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
902
1100
|
var data, contents, response;
|
|
903
1101
|
return __generator(this, function (_a) {
|
|
904
1102
|
switch (_a.label) {
|
|
905
1103
|
case 0:
|
|
906
1104
|
if (output.statusCode >= 300) {
|
|
907
|
-
return [2,
|
|
1105
|
+
return [2, deserializeAws_json1_1CreateForecastExportJobCommandError(output, context)];
|
|
908
1106
|
}
|
|
909
1107
|
return [4, parseBody(output.body, context)];
|
|
910
1108
|
case 1:
|
|
911
1109
|
data = _a.sent();
|
|
912
1110
|
contents = {};
|
|
913
|
-
contents =
|
|
1111
|
+
contents = deserializeAws_json1_1CreateForecastExportJobResponse(data, context);
|
|
914
1112
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
915
1113
|
return [2, Promise.resolve(response)];
|
|
916
1114
|
}
|
|
917
1115
|
});
|
|
918
1116
|
}); };
|
|
919
|
-
var
|
|
1117
|
+
var deserializeAws_json1_1CreateForecastExportJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
920
1118
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
921
1119
|
var _h;
|
|
922
1120
|
return __generator(this, function (_j) {
|
|
@@ -986,85 +1184,405 @@ var deserializeAws_json1_1CreatePredictorBacktestExportJobCommandError = functio
|
|
|
986
1184
|
}
|
|
987
1185
|
});
|
|
988
1186
|
}); };
|
|
989
|
-
export var
|
|
990
|
-
var response;
|
|
1187
|
+
export var deserializeAws_json1_1CreatePredictorCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1188
|
+
var data, contents, response;
|
|
991
1189
|
return __generator(this, function (_a) {
|
|
992
1190
|
switch (_a.label) {
|
|
993
1191
|
case 0:
|
|
994
1192
|
if (output.statusCode >= 300) {
|
|
995
|
-
return [2,
|
|
1193
|
+
return [2, deserializeAws_json1_1CreatePredictorCommandError(output, context)];
|
|
996
1194
|
}
|
|
997
|
-
return [4,
|
|
1195
|
+
return [4, parseBody(output.body, context)];
|
|
998
1196
|
case 1:
|
|
999
|
-
_a.sent();
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
};
|
|
1197
|
+
data = _a.sent();
|
|
1198
|
+
contents = {};
|
|
1199
|
+
contents = deserializeAws_json1_1CreatePredictorResponse(data, context);
|
|
1200
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1003
1201
|
return [2, Promise.resolve(response)];
|
|
1004
1202
|
}
|
|
1005
1203
|
});
|
|
1006
1204
|
}); };
|
|
1007
|
-
var
|
|
1008
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
1009
|
-
var
|
|
1010
|
-
return __generator(this, function (
|
|
1011
|
-
switch (
|
|
1205
|
+
var deserializeAws_json1_1CreatePredictorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1206
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
1207
|
+
var _h;
|
|
1208
|
+
return __generator(this, function (_j) {
|
|
1209
|
+
switch (_j.label) {
|
|
1012
1210
|
case 0:
|
|
1013
1211
|
_a = [__assign({}, output)];
|
|
1014
|
-
|
|
1212
|
+
_h = {};
|
|
1015
1213
|
return [4, parseBody(output.body, context)];
|
|
1016
1214
|
case 1:
|
|
1017
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1215
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1018
1216
|
errorCode = "UnknownError";
|
|
1019
1217
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1020
1218
|
_b = errorCode;
|
|
1021
1219
|
switch (_b) {
|
|
1022
1220
|
case "InvalidInputException": return [3, 2];
|
|
1023
1221
|
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
1024
|
-
case "
|
|
1025
|
-
case "com.amazonaws.forecast#
|
|
1026
|
-
case "
|
|
1027
|
-
case "com.amazonaws.forecast#
|
|
1222
|
+
case "LimitExceededException": return [3, 4];
|
|
1223
|
+
case "com.amazonaws.forecast#LimitExceededException": return [3, 4];
|
|
1224
|
+
case "ResourceAlreadyExistsException": return [3, 6];
|
|
1225
|
+
case "com.amazonaws.forecast#ResourceAlreadyExistsException": return [3, 6];
|
|
1226
|
+
case "ResourceInUseException": return [3, 8];
|
|
1227
|
+
case "com.amazonaws.forecast#ResourceInUseException": return [3, 8];
|
|
1228
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
1229
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 10];
|
|
1028
1230
|
}
|
|
1029
|
-
return [3,
|
|
1231
|
+
return [3, 12];
|
|
1030
1232
|
case 2:
|
|
1031
1233
|
_c = [{}];
|
|
1032
1234
|
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1033
1235
|
case 3:
|
|
1034
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
1035
|
-
return [3,
|
|
1236
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1237
|
+
return [3, 13];
|
|
1036
1238
|
case 4:
|
|
1037
1239
|
_d = [{}];
|
|
1038
|
-
return [4,
|
|
1240
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1039
1241
|
case 5:
|
|
1040
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
1041
|
-
return [3,
|
|
1242
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1243
|
+
return [3, 13];
|
|
1042
1244
|
case 6:
|
|
1043
1245
|
_e = [{}];
|
|
1044
|
-
return [4,
|
|
1246
|
+
return [4, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
1045
1247
|
case 7:
|
|
1046
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(
|
|
1047
|
-
return [3,
|
|
1248
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1249
|
+
return [3, 13];
|
|
1048
1250
|
case 8:
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1052
|
-
_g.label = 9;
|
|
1251
|
+
_f = [{}];
|
|
1252
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
1053
1253
|
case 9:
|
|
1054
|
-
|
|
1055
|
-
|
|
1254
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1255
|
+
return [3, 13];
|
|
1256
|
+
case 10:
|
|
1257
|
+
_g = [{}];
|
|
1258
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1259
|
+
case 11:
|
|
1260
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1261
|
+
return [3, 13];
|
|
1262
|
+
case 12:
|
|
1263
|
+
parsedBody = parsedOutput.body;
|
|
1264
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1265
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1266
|
+
_j.label = 13;
|
|
1267
|
+
case 13:
|
|
1268
|
+
message = response.message || response.Message || errorCode;
|
|
1269
|
+
response.message = message;
|
|
1270
|
+
delete response.Message;
|
|
1271
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1272
|
+
}
|
|
1273
|
+
});
|
|
1274
|
+
}); };
|
|
1275
|
+
export var deserializeAws_json1_1CreatePredictorBacktestExportJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1276
|
+
var data, contents, response;
|
|
1277
|
+
return __generator(this, function (_a) {
|
|
1278
|
+
switch (_a.label) {
|
|
1279
|
+
case 0:
|
|
1280
|
+
if (output.statusCode >= 300) {
|
|
1281
|
+
return [2, deserializeAws_json1_1CreatePredictorBacktestExportJobCommandError(output, context)];
|
|
1282
|
+
}
|
|
1283
|
+
return [4, parseBody(output.body, context)];
|
|
1284
|
+
case 1:
|
|
1285
|
+
data = _a.sent();
|
|
1286
|
+
contents = {};
|
|
1287
|
+
contents = deserializeAws_json1_1CreatePredictorBacktestExportJobResponse(data, context);
|
|
1288
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1289
|
+
return [2, Promise.resolve(response)];
|
|
1290
|
+
}
|
|
1291
|
+
});
|
|
1292
|
+
}); };
|
|
1293
|
+
var deserializeAws_json1_1CreatePredictorBacktestExportJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1294
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
1295
|
+
var _h;
|
|
1296
|
+
return __generator(this, function (_j) {
|
|
1297
|
+
switch (_j.label) {
|
|
1298
|
+
case 0:
|
|
1299
|
+
_a = [__assign({}, output)];
|
|
1300
|
+
_h = {};
|
|
1301
|
+
return [4, parseBody(output.body, context)];
|
|
1302
|
+
case 1:
|
|
1303
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1304
|
+
errorCode = "UnknownError";
|
|
1305
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1306
|
+
_b = errorCode;
|
|
1307
|
+
switch (_b) {
|
|
1308
|
+
case "InvalidInputException": return [3, 2];
|
|
1309
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
1310
|
+
case "LimitExceededException": return [3, 4];
|
|
1311
|
+
case "com.amazonaws.forecast#LimitExceededException": return [3, 4];
|
|
1312
|
+
case "ResourceAlreadyExistsException": return [3, 6];
|
|
1313
|
+
case "com.amazonaws.forecast#ResourceAlreadyExistsException": return [3, 6];
|
|
1314
|
+
case "ResourceInUseException": return [3, 8];
|
|
1315
|
+
case "com.amazonaws.forecast#ResourceInUseException": return [3, 8];
|
|
1316
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
1317
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 10];
|
|
1318
|
+
}
|
|
1319
|
+
return [3, 12];
|
|
1320
|
+
case 2:
|
|
1321
|
+
_c = [{}];
|
|
1322
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1323
|
+
case 3:
|
|
1324
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1325
|
+
return [3, 13];
|
|
1326
|
+
case 4:
|
|
1327
|
+
_d = [{}];
|
|
1328
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1329
|
+
case 5:
|
|
1330
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1331
|
+
return [3, 13];
|
|
1332
|
+
case 6:
|
|
1333
|
+
_e = [{}];
|
|
1334
|
+
return [4, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
1335
|
+
case 7:
|
|
1336
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1337
|
+
return [3, 13];
|
|
1338
|
+
case 8:
|
|
1339
|
+
_f = [{}];
|
|
1340
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
1341
|
+
case 9:
|
|
1342
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1343
|
+
return [3, 13];
|
|
1344
|
+
case 10:
|
|
1345
|
+
_g = [{}];
|
|
1346
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1347
|
+
case 11:
|
|
1348
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1349
|
+
return [3, 13];
|
|
1350
|
+
case 12:
|
|
1351
|
+
parsedBody = parsedOutput.body;
|
|
1352
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1353
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1354
|
+
_j.label = 13;
|
|
1355
|
+
case 13:
|
|
1356
|
+
message = response.message || response.Message || errorCode;
|
|
1357
|
+
response.message = message;
|
|
1358
|
+
delete response.Message;
|
|
1359
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1360
|
+
}
|
|
1361
|
+
});
|
|
1362
|
+
}); };
|
|
1363
|
+
export var deserializeAws_json1_1DeleteDatasetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1364
|
+
var response;
|
|
1365
|
+
return __generator(this, function (_a) {
|
|
1366
|
+
switch (_a.label) {
|
|
1367
|
+
case 0:
|
|
1368
|
+
if (output.statusCode >= 300) {
|
|
1369
|
+
return [2, deserializeAws_json1_1DeleteDatasetCommandError(output, context)];
|
|
1370
|
+
}
|
|
1371
|
+
return [4, collectBody(output.body, context)];
|
|
1372
|
+
case 1:
|
|
1373
|
+
_a.sent();
|
|
1374
|
+
response = {
|
|
1375
|
+
$metadata: deserializeMetadata(output),
|
|
1376
|
+
};
|
|
1377
|
+
return [2, Promise.resolve(response)];
|
|
1378
|
+
}
|
|
1379
|
+
});
|
|
1380
|
+
}); };
|
|
1381
|
+
var deserializeAws_json1_1DeleteDatasetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1382
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
1383
|
+
var _f;
|
|
1384
|
+
return __generator(this, function (_g) {
|
|
1385
|
+
switch (_g.label) {
|
|
1386
|
+
case 0:
|
|
1387
|
+
_a = [__assign({}, output)];
|
|
1388
|
+
_f = {};
|
|
1389
|
+
return [4, parseBody(output.body, context)];
|
|
1390
|
+
case 1:
|
|
1391
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1392
|
+
errorCode = "UnknownError";
|
|
1393
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1394
|
+
_b = errorCode;
|
|
1395
|
+
switch (_b) {
|
|
1396
|
+
case "InvalidInputException": return [3, 2];
|
|
1397
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
1398
|
+
case "ResourceInUseException": return [3, 4];
|
|
1399
|
+
case "com.amazonaws.forecast#ResourceInUseException": return [3, 4];
|
|
1400
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1401
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 6];
|
|
1402
|
+
}
|
|
1403
|
+
return [3, 8];
|
|
1404
|
+
case 2:
|
|
1405
|
+
_c = [{}];
|
|
1406
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1407
|
+
case 3:
|
|
1408
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1409
|
+
return [3, 9];
|
|
1410
|
+
case 4:
|
|
1411
|
+
_d = [{}];
|
|
1412
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
1413
|
+
case 5:
|
|
1414
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1415
|
+
return [3, 9];
|
|
1416
|
+
case 6:
|
|
1417
|
+
_e = [{}];
|
|
1418
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1419
|
+
case 7:
|
|
1420
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1421
|
+
return [3, 9];
|
|
1422
|
+
case 8:
|
|
1423
|
+
parsedBody = parsedOutput.body;
|
|
1424
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1425
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1426
|
+
_g.label = 9;
|
|
1427
|
+
case 9:
|
|
1428
|
+
message = response.message || response.Message || errorCode;
|
|
1429
|
+
response.message = message;
|
|
1430
|
+
delete response.Message;
|
|
1431
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1432
|
+
}
|
|
1433
|
+
});
|
|
1434
|
+
}); };
|
|
1435
|
+
export var deserializeAws_json1_1DeleteDatasetGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1436
|
+
var response;
|
|
1437
|
+
return __generator(this, function (_a) {
|
|
1438
|
+
switch (_a.label) {
|
|
1439
|
+
case 0:
|
|
1440
|
+
if (output.statusCode >= 300) {
|
|
1441
|
+
return [2, deserializeAws_json1_1DeleteDatasetGroupCommandError(output, context)];
|
|
1442
|
+
}
|
|
1443
|
+
return [4, collectBody(output.body, context)];
|
|
1444
|
+
case 1:
|
|
1445
|
+
_a.sent();
|
|
1446
|
+
response = {
|
|
1447
|
+
$metadata: deserializeMetadata(output),
|
|
1448
|
+
};
|
|
1449
|
+
return [2, Promise.resolve(response)];
|
|
1450
|
+
}
|
|
1451
|
+
});
|
|
1452
|
+
}); };
|
|
1453
|
+
var deserializeAws_json1_1DeleteDatasetGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1454
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
1455
|
+
var _f;
|
|
1456
|
+
return __generator(this, function (_g) {
|
|
1457
|
+
switch (_g.label) {
|
|
1458
|
+
case 0:
|
|
1459
|
+
_a = [__assign({}, output)];
|
|
1460
|
+
_f = {};
|
|
1461
|
+
return [4, parseBody(output.body, context)];
|
|
1462
|
+
case 1:
|
|
1463
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1464
|
+
errorCode = "UnknownError";
|
|
1465
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1466
|
+
_b = errorCode;
|
|
1467
|
+
switch (_b) {
|
|
1468
|
+
case "InvalidInputException": return [3, 2];
|
|
1469
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
1470
|
+
case "ResourceInUseException": return [3, 4];
|
|
1471
|
+
case "com.amazonaws.forecast#ResourceInUseException": return [3, 4];
|
|
1472
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1473
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 6];
|
|
1474
|
+
}
|
|
1475
|
+
return [3, 8];
|
|
1476
|
+
case 2:
|
|
1477
|
+
_c = [{}];
|
|
1478
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1479
|
+
case 3:
|
|
1480
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1481
|
+
return [3, 9];
|
|
1482
|
+
case 4:
|
|
1483
|
+
_d = [{}];
|
|
1484
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
1485
|
+
case 5:
|
|
1486
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1487
|
+
return [3, 9];
|
|
1488
|
+
case 6:
|
|
1489
|
+
_e = [{}];
|
|
1490
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1491
|
+
case 7:
|
|
1492
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1493
|
+
return [3, 9];
|
|
1494
|
+
case 8:
|
|
1495
|
+
parsedBody = parsedOutput.body;
|
|
1496
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1497
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1498
|
+
_g.label = 9;
|
|
1499
|
+
case 9:
|
|
1500
|
+
message = response.message || response.Message || errorCode;
|
|
1501
|
+
response.message = message;
|
|
1502
|
+
delete response.Message;
|
|
1503
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1504
|
+
}
|
|
1505
|
+
});
|
|
1506
|
+
}); };
|
|
1507
|
+
export var deserializeAws_json1_1DeleteDatasetImportJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1508
|
+
var response;
|
|
1509
|
+
return __generator(this, function (_a) {
|
|
1510
|
+
switch (_a.label) {
|
|
1511
|
+
case 0:
|
|
1512
|
+
if (output.statusCode >= 300) {
|
|
1513
|
+
return [2, deserializeAws_json1_1DeleteDatasetImportJobCommandError(output, context)];
|
|
1514
|
+
}
|
|
1515
|
+
return [4, collectBody(output.body, context)];
|
|
1516
|
+
case 1:
|
|
1517
|
+
_a.sent();
|
|
1518
|
+
response = {
|
|
1519
|
+
$metadata: deserializeMetadata(output),
|
|
1520
|
+
};
|
|
1521
|
+
return [2, Promise.resolve(response)];
|
|
1522
|
+
}
|
|
1523
|
+
});
|
|
1524
|
+
}); };
|
|
1525
|
+
var deserializeAws_json1_1DeleteDatasetImportJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1526
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
1527
|
+
var _f;
|
|
1528
|
+
return __generator(this, function (_g) {
|
|
1529
|
+
switch (_g.label) {
|
|
1530
|
+
case 0:
|
|
1531
|
+
_a = [__assign({}, output)];
|
|
1532
|
+
_f = {};
|
|
1533
|
+
return [4, parseBody(output.body, context)];
|
|
1534
|
+
case 1:
|
|
1535
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1536
|
+
errorCode = "UnknownError";
|
|
1537
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1538
|
+
_b = errorCode;
|
|
1539
|
+
switch (_b) {
|
|
1540
|
+
case "InvalidInputException": return [3, 2];
|
|
1541
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
1542
|
+
case "ResourceInUseException": return [3, 4];
|
|
1543
|
+
case "com.amazonaws.forecast#ResourceInUseException": return [3, 4];
|
|
1544
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1545
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 6];
|
|
1546
|
+
}
|
|
1547
|
+
return [3, 8];
|
|
1548
|
+
case 2:
|
|
1549
|
+
_c = [{}];
|
|
1550
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1551
|
+
case 3:
|
|
1552
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1553
|
+
return [3, 9];
|
|
1554
|
+
case 4:
|
|
1555
|
+
_d = [{}];
|
|
1556
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
1557
|
+
case 5:
|
|
1558
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1559
|
+
return [3, 9];
|
|
1560
|
+
case 6:
|
|
1561
|
+
_e = [{}];
|
|
1562
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1563
|
+
case 7:
|
|
1564
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1565
|
+
return [3, 9];
|
|
1566
|
+
case 8:
|
|
1567
|
+
parsedBody = parsedOutput.body;
|
|
1568
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1569
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1570
|
+
_g.label = 9;
|
|
1571
|
+
case 9:
|
|
1572
|
+
message = response.message || response.Message || errorCode;
|
|
1573
|
+
response.message = message;
|
|
1056
1574
|
delete response.Message;
|
|
1057
1575
|
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1058
1576
|
}
|
|
1059
1577
|
});
|
|
1060
1578
|
}); };
|
|
1061
|
-
export var
|
|
1579
|
+
export var deserializeAws_json1_1DeleteExplainabilityCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1062
1580
|
var response;
|
|
1063
1581
|
return __generator(this, function (_a) {
|
|
1064
1582
|
switch (_a.label) {
|
|
1065
1583
|
case 0:
|
|
1066
1584
|
if (output.statusCode >= 300) {
|
|
1067
|
-
return [2,
|
|
1585
|
+
return [2, deserializeAws_json1_1DeleteExplainabilityCommandError(output, context)];
|
|
1068
1586
|
}
|
|
1069
1587
|
return [4, collectBody(output.body, context)];
|
|
1070
1588
|
case 1:
|
|
@@ -1076,7 +1594,7 @@ export var deserializeAws_json1_1DeleteDatasetGroupCommand = function (output, c
|
|
|
1076
1594
|
}
|
|
1077
1595
|
});
|
|
1078
1596
|
}); };
|
|
1079
|
-
var
|
|
1597
|
+
var deserializeAws_json1_1DeleteExplainabilityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1080
1598
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
1081
1599
|
var _f;
|
|
1082
1600
|
return __generator(this, function (_g) {
|
|
@@ -1130,13 +1648,13 @@ var deserializeAws_json1_1DeleteDatasetGroupCommandError = function (output, con
|
|
|
1130
1648
|
}
|
|
1131
1649
|
});
|
|
1132
1650
|
}); };
|
|
1133
|
-
export var
|
|
1651
|
+
export var deserializeAws_json1_1DeleteExplainabilityExportCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1134
1652
|
var response;
|
|
1135
1653
|
return __generator(this, function (_a) {
|
|
1136
1654
|
switch (_a.label) {
|
|
1137
1655
|
case 0:
|
|
1138
1656
|
if (output.statusCode >= 300) {
|
|
1139
|
-
return [2,
|
|
1657
|
+
return [2, deserializeAws_json1_1DeleteExplainabilityExportCommandError(output, context)];
|
|
1140
1658
|
}
|
|
1141
1659
|
return [4, collectBody(output.body, context)];
|
|
1142
1660
|
case 1:
|
|
@@ -1148,7 +1666,7 @@ export var deserializeAws_json1_1DeleteDatasetImportJobCommand = function (outpu
|
|
|
1148
1666
|
}
|
|
1149
1667
|
});
|
|
1150
1668
|
}); };
|
|
1151
|
-
var
|
|
1669
|
+
var deserializeAws_json1_1DeleteExplainabilityExportCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1152
1670
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
1153
1671
|
var _f;
|
|
1154
1672
|
return __generator(this, function (_g) {
|
|
@@ -1409,8 +1927,216 @@ var deserializeAws_json1_1DeletePredictorCommandError = function (output, contex
|
|
|
1409
1927
|
parsedBody = parsedOutput.body;
|
|
1410
1928
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1411
1929
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1412
|
-
_g.label = 9;
|
|
1413
|
-
case 9:
|
|
1930
|
+
_g.label = 9;
|
|
1931
|
+
case 9:
|
|
1932
|
+
message = response.message || response.Message || errorCode;
|
|
1933
|
+
response.message = message;
|
|
1934
|
+
delete response.Message;
|
|
1935
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1936
|
+
}
|
|
1937
|
+
});
|
|
1938
|
+
}); };
|
|
1939
|
+
export var deserializeAws_json1_1DeletePredictorBacktestExportJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1940
|
+
var response;
|
|
1941
|
+
return __generator(this, function (_a) {
|
|
1942
|
+
switch (_a.label) {
|
|
1943
|
+
case 0:
|
|
1944
|
+
if (output.statusCode >= 300) {
|
|
1945
|
+
return [2, deserializeAws_json1_1DeletePredictorBacktestExportJobCommandError(output, context)];
|
|
1946
|
+
}
|
|
1947
|
+
return [4, collectBody(output.body, context)];
|
|
1948
|
+
case 1:
|
|
1949
|
+
_a.sent();
|
|
1950
|
+
response = {
|
|
1951
|
+
$metadata: deserializeMetadata(output),
|
|
1952
|
+
};
|
|
1953
|
+
return [2, Promise.resolve(response)];
|
|
1954
|
+
}
|
|
1955
|
+
});
|
|
1956
|
+
}); };
|
|
1957
|
+
var deserializeAws_json1_1DeletePredictorBacktestExportJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1958
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
1959
|
+
var _f;
|
|
1960
|
+
return __generator(this, function (_g) {
|
|
1961
|
+
switch (_g.label) {
|
|
1962
|
+
case 0:
|
|
1963
|
+
_a = [__assign({}, output)];
|
|
1964
|
+
_f = {};
|
|
1965
|
+
return [4, parseBody(output.body, context)];
|
|
1966
|
+
case 1:
|
|
1967
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1968
|
+
errorCode = "UnknownError";
|
|
1969
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1970
|
+
_b = errorCode;
|
|
1971
|
+
switch (_b) {
|
|
1972
|
+
case "InvalidInputException": return [3, 2];
|
|
1973
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
1974
|
+
case "ResourceInUseException": return [3, 4];
|
|
1975
|
+
case "com.amazonaws.forecast#ResourceInUseException": return [3, 4];
|
|
1976
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1977
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 6];
|
|
1978
|
+
}
|
|
1979
|
+
return [3, 8];
|
|
1980
|
+
case 2:
|
|
1981
|
+
_c = [{}];
|
|
1982
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1983
|
+
case 3:
|
|
1984
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1985
|
+
return [3, 9];
|
|
1986
|
+
case 4:
|
|
1987
|
+
_d = [{}];
|
|
1988
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
1989
|
+
case 5:
|
|
1990
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1991
|
+
return [3, 9];
|
|
1992
|
+
case 6:
|
|
1993
|
+
_e = [{}];
|
|
1994
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1995
|
+
case 7:
|
|
1996
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1997
|
+
return [3, 9];
|
|
1998
|
+
case 8:
|
|
1999
|
+
parsedBody = parsedOutput.body;
|
|
2000
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2001
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2002
|
+
_g.label = 9;
|
|
2003
|
+
case 9:
|
|
2004
|
+
message = response.message || response.Message || errorCode;
|
|
2005
|
+
response.message = message;
|
|
2006
|
+
delete response.Message;
|
|
2007
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2008
|
+
}
|
|
2009
|
+
});
|
|
2010
|
+
}); };
|
|
2011
|
+
export var deserializeAws_json1_1DeleteResourceTreeCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2012
|
+
var response;
|
|
2013
|
+
return __generator(this, function (_a) {
|
|
2014
|
+
switch (_a.label) {
|
|
2015
|
+
case 0:
|
|
2016
|
+
if (output.statusCode >= 300) {
|
|
2017
|
+
return [2, deserializeAws_json1_1DeleteResourceTreeCommandError(output, context)];
|
|
2018
|
+
}
|
|
2019
|
+
return [4, collectBody(output.body, context)];
|
|
2020
|
+
case 1:
|
|
2021
|
+
_a.sent();
|
|
2022
|
+
response = {
|
|
2023
|
+
$metadata: deserializeMetadata(output),
|
|
2024
|
+
};
|
|
2025
|
+
return [2, Promise.resolve(response)];
|
|
2026
|
+
}
|
|
2027
|
+
});
|
|
2028
|
+
}); };
|
|
2029
|
+
var deserializeAws_json1_1DeleteResourceTreeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2030
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
2031
|
+
var _f;
|
|
2032
|
+
return __generator(this, function (_g) {
|
|
2033
|
+
switch (_g.label) {
|
|
2034
|
+
case 0:
|
|
2035
|
+
_a = [__assign({}, output)];
|
|
2036
|
+
_f = {};
|
|
2037
|
+
return [4, parseBody(output.body, context)];
|
|
2038
|
+
case 1:
|
|
2039
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2040
|
+
errorCode = "UnknownError";
|
|
2041
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2042
|
+
_b = errorCode;
|
|
2043
|
+
switch (_b) {
|
|
2044
|
+
case "InvalidInputException": return [3, 2];
|
|
2045
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
2046
|
+
case "ResourceInUseException": return [3, 4];
|
|
2047
|
+
case "com.amazonaws.forecast#ResourceInUseException": return [3, 4];
|
|
2048
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2049
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 6];
|
|
2050
|
+
}
|
|
2051
|
+
return [3, 8];
|
|
2052
|
+
case 2:
|
|
2053
|
+
_c = [{}];
|
|
2054
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
2055
|
+
case 3:
|
|
2056
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2057
|
+
return [3, 9];
|
|
2058
|
+
case 4:
|
|
2059
|
+
_d = [{}];
|
|
2060
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
2061
|
+
case 5:
|
|
2062
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2063
|
+
return [3, 9];
|
|
2064
|
+
case 6:
|
|
2065
|
+
_e = [{}];
|
|
2066
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2067
|
+
case 7:
|
|
2068
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2069
|
+
return [3, 9];
|
|
2070
|
+
case 8:
|
|
2071
|
+
parsedBody = parsedOutput.body;
|
|
2072
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2073
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2074
|
+
_g.label = 9;
|
|
2075
|
+
case 9:
|
|
2076
|
+
message = response.message || response.Message || errorCode;
|
|
2077
|
+
response.message = message;
|
|
2078
|
+
delete response.Message;
|
|
2079
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2080
|
+
}
|
|
2081
|
+
});
|
|
2082
|
+
}); };
|
|
2083
|
+
export var deserializeAws_json1_1DescribeAutoPredictorCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2084
|
+
var data, contents, response;
|
|
2085
|
+
return __generator(this, function (_a) {
|
|
2086
|
+
switch (_a.label) {
|
|
2087
|
+
case 0:
|
|
2088
|
+
if (output.statusCode >= 300) {
|
|
2089
|
+
return [2, deserializeAws_json1_1DescribeAutoPredictorCommandError(output, context)];
|
|
2090
|
+
}
|
|
2091
|
+
return [4, parseBody(output.body, context)];
|
|
2092
|
+
case 1:
|
|
2093
|
+
data = _a.sent();
|
|
2094
|
+
contents = {};
|
|
2095
|
+
contents = deserializeAws_json1_1DescribeAutoPredictorResponse(data, context);
|
|
2096
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2097
|
+
return [2, Promise.resolve(response)];
|
|
2098
|
+
}
|
|
2099
|
+
});
|
|
2100
|
+
}); };
|
|
2101
|
+
var deserializeAws_json1_1DescribeAutoPredictorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2102
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
|
|
2103
|
+
var _e;
|
|
2104
|
+
return __generator(this, function (_f) {
|
|
2105
|
+
switch (_f.label) {
|
|
2106
|
+
case 0:
|
|
2107
|
+
_a = [__assign({}, output)];
|
|
2108
|
+
_e = {};
|
|
2109
|
+
return [4, parseBody(output.body, context)];
|
|
2110
|
+
case 1:
|
|
2111
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2112
|
+
errorCode = "UnknownError";
|
|
2113
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2114
|
+
_b = errorCode;
|
|
2115
|
+
switch (_b) {
|
|
2116
|
+
case "InvalidInputException": return [3, 2];
|
|
2117
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
2118
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
2119
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 4];
|
|
2120
|
+
}
|
|
2121
|
+
return [3, 6];
|
|
2122
|
+
case 2:
|
|
2123
|
+
_c = [{}];
|
|
2124
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
2125
|
+
case 3:
|
|
2126
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2127
|
+
return [3, 7];
|
|
2128
|
+
case 4:
|
|
2129
|
+
_d = [{}];
|
|
2130
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2131
|
+
case 5:
|
|
2132
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2133
|
+
return [3, 7];
|
|
2134
|
+
case 6:
|
|
2135
|
+
parsedBody = parsedOutput.body;
|
|
2136
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2137
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2138
|
+
_f.label = 7;
|
|
2139
|
+
case 7:
|
|
1414
2140
|
message = response.message || response.Message || errorCode;
|
|
1415
2141
|
response.message = message;
|
|
1416
2142
|
delete response.Message;
|
|
@@ -1418,71 +2144,63 @@ var deserializeAws_json1_1DeletePredictorCommandError = function (output, contex
|
|
|
1418
2144
|
}
|
|
1419
2145
|
});
|
|
1420
2146
|
}); };
|
|
1421
|
-
export var
|
|
1422
|
-
var response;
|
|
2147
|
+
export var deserializeAws_json1_1DescribeDatasetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2148
|
+
var data, contents, response;
|
|
1423
2149
|
return __generator(this, function (_a) {
|
|
1424
2150
|
switch (_a.label) {
|
|
1425
2151
|
case 0:
|
|
1426
2152
|
if (output.statusCode >= 300) {
|
|
1427
|
-
return [2,
|
|
2153
|
+
return [2, deserializeAws_json1_1DescribeDatasetCommandError(output, context)];
|
|
1428
2154
|
}
|
|
1429
|
-
return [4,
|
|
2155
|
+
return [4, parseBody(output.body, context)];
|
|
1430
2156
|
case 1:
|
|
1431
|
-
_a.sent();
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
};
|
|
2157
|
+
data = _a.sent();
|
|
2158
|
+
contents = {};
|
|
2159
|
+
contents = deserializeAws_json1_1DescribeDatasetResponse(data, context);
|
|
2160
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1435
2161
|
return [2, Promise.resolve(response)];
|
|
1436
2162
|
}
|
|
1437
2163
|
});
|
|
1438
2164
|
}); };
|
|
1439
|
-
var
|
|
1440
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d,
|
|
1441
|
-
var
|
|
1442
|
-
return __generator(this, function (
|
|
1443
|
-
switch (
|
|
2165
|
+
var deserializeAws_json1_1DescribeDatasetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2166
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
|
|
2167
|
+
var _e;
|
|
2168
|
+
return __generator(this, function (_f) {
|
|
2169
|
+
switch (_f.label) {
|
|
1444
2170
|
case 0:
|
|
1445
2171
|
_a = [__assign({}, output)];
|
|
1446
|
-
|
|
2172
|
+
_e = {};
|
|
1447
2173
|
return [4, parseBody(output.body, context)];
|
|
1448
2174
|
case 1:
|
|
1449
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2175
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1450
2176
|
errorCode = "UnknownError";
|
|
1451
2177
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1452
2178
|
_b = errorCode;
|
|
1453
2179
|
switch (_b) {
|
|
1454
2180
|
case "InvalidInputException": return [3, 2];
|
|
1455
2181
|
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
1456
|
-
case "
|
|
1457
|
-
case "com.amazonaws.forecast#
|
|
1458
|
-
case "ResourceNotFoundException": return [3, 6];
|
|
1459
|
-
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 6];
|
|
2182
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
2183
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 4];
|
|
1460
2184
|
}
|
|
1461
|
-
return [3,
|
|
2185
|
+
return [3, 6];
|
|
1462
2186
|
case 2:
|
|
1463
2187
|
_c = [{}];
|
|
1464
2188
|
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1465
2189
|
case 3:
|
|
1466
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
1467
|
-
return [3,
|
|
2190
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2191
|
+
return [3, 7];
|
|
1468
2192
|
case 4:
|
|
1469
2193
|
_d = [{}];
|
|
1470
|
-
return [4,
|
|
2194
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1471
2195
|
case 5:
|
|
1472
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
1473
|
-
return [3,
|
|
2196
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2197
|
+
return [3, 7];
|
|
1474
2198
|
case 6:
|
|
1475
|
-
_e = [{}];
|
|
1476
|
-
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1477
|
-
case 7:
|
|
1478
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1479
|
-
return [3, 9];
|
|
1480
|
-
case 8:
|
|
1481
2199
|
parsedBody = parsedOutput.body;
|
|
1482
2200
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1483
2201
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1484
|
-
|
|
1485
|
-
case
|
|
2202
|
+
_f.label = 7;
|
|
2203
|
+
case 7:
|
|
1486
2204
|
message = response.message || response.Message || errorCode;
|
|
1487
2205
|
response.message = message;
|
|
1488
2206
|
delete response.Message;
|
|
@@ -1490,71 +2208,63 @@ var deserializeAws_json1_1DeletePredictorBacktestExportJobCommandError = functio
|
|
|
1490
2208
|
}
|
|
1491
2209
|
});
|
|
1492
2210
|
}); };
|
|
1493
|
-
export var
|
|
1494
|
-
var response;
|
|
2211
|
+
export var deserializeAws_json1_1DescribeDatasetGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2212
|
+
var data, contents, response;
|
|
1495
2213
|
return __generator(this, function (_a) {
|
|
1496
2214
|
switch (_a.label) {
|
|
1497
2215
|
case 0:
|
|
1498
2216
|
if (output.statusCode >= 300) {
|
|
1499
|
-
return [2,
|
|
2217
|
+
return [2, deserializeAws_json1_1DescribeDatasetGroupCommandError(output, context)];
|
|
1500
2218
|
}
|
|
1501
|
-
return [4,
|
|
2219
|
+
return [4, parseBody(output.body, context)];
|
|
1502
2220
|
case 1:
|
|
1503
|
-
_a.sent();
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
};
|
|
2221
|
+
data = _a.sent();
|
|
2222
|
+
contents = {};
|
|
2223
|
+
contents = deserializeAws_json1_1DescribeDatasetGroupResponse(data, context);
|
|
2224
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1507
2225
|
return [2, Promise.resolve(response)];
|
|
1508
2226
|
}
|
|
1509
2227
|
});
|
|
1510
2228
|
}); };
|
|
1511
|
-
var
|
|
1512
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d,
|
|
1513
|
-
var
|
|
1514
|
-
return __generator(this, function (
|
|
1515
|
-
switch (
|
|
2229
|
+
var deserializeAws_json1_1DescribeDatasetGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2230
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
|
|
2231
|
+
var _e;
|
|
2232
|
+
return __generator(this, function (_f) {
|
|
2233
|
+
switch (_f.label) {
|
|
1516
2234
|
case 0:
|
|
1517
2235
|
_a = [__assign({}, output)];
|
|
1518
|
-
|
|
2236
|
+
_e = {};
|
|
1519
2237
|
return [4, parseBody(output.body, context)];
|
|
1520
2238
|
case 1:
|
|
1521
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2239
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1522
2240
|
errorCode = "UnknownError";
|
|
1523
2241
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1524
2242
|
_b = errorCode;
|
|
1525
2243
|
switch (_b) {
|
|
1526
2244
|
case "InvalidInputException": return [3, 2];
|
|
1527
2245
|
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
1528
|
-
case "
|
|
1529
|
-
case "com.amazonaws.forecast#
|
|
1530
|
-
case "ResourceNotFoundException": return [3, 6];
|
|
1531
|
-
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 6];
|
|
2246
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
2247
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 4];
|
|
1532
2248
|
}
|
|
1533
|
-
return [3,
|
|
2249
|
+
return [3, 6];
|
|
1534
2250
|
case 2:
|
|
1535
2251
|
_c = [{}];
|
|
1536
2252
|
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1537
2253
|
case 3:
|
|
1538
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
1539
|
-
return [3,
|
|
2254
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2255
|
+
return [3, 7];
|
|
1540
2256
|
case 4:
|
|
1541
2257
|
_d = [{}];
|
|
1542
|
-
return [4,
|
|
2258
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1543
2259
|
case 5:
|
|
1544
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
1545
|
-
return [3,
|
|
2260
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2261
|
+
return [3, 7];
|
|
1546
2262
|
case 6:
|
|
1547
|
-
_e = [{}];
|
|
1548
|
-
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1549
|
-
case 7:
|
|
1550
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1551
|
-
return [3, 9];
|
|
1552
|
-
case 8:
|
|
1553
2263
|
parsedBody = parsedOutput.body;
|
|
1554
2264
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1555
2265
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1556
|
-
|
|
1557
|
-
case
|
|
2266
|
+
_f.label = 7;
|
|
2267
|
+
case 7:
|
|
1558
2268
|
message = response.message || response.Message || errorCode;
|
|
1559
2269
|
response.message = message;
|
|
1560
2270
|
delete response.Message;
|
|
@@ -1562,25 +2272,25 @@ var deserializeAws_json1_1DeleteResourceTreeCommandError = function (output, con
|
|
|
1562
2272
|
}
|
|
1563
2273
|
});
|
|
1564
2274
|
}); };
|
|
1565
|
-
export var
|
|
2275
|
+
export var deserializeAws_json1_1DescribeDatasetImportJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1566
2276
|
var data, contents, response;
|
|
1567
2277
|
return __generator(this, function (_a) {
|
|
1568
2278
|
switch (_a.label) {
|
|
1569
2279
|
case 0:
|
|
1570
2280
|
if (output.statusCode >= 300) {
|
|
1571
|
-
return [2,
|
|
2281
|
+
return [2, deserializeAws_json1_1DescribeDatasetImportJobCommandError(output, context)];
|
|
1572
2282
|
}
|
|
1573
2283
|
return [4, parseBody(output.body, context)];
|
|
1574
2284
|
case 1:
|
|
1575
2285
|
data = _a.sent();
|
|
1576
2286
|
contents = {};
|
|
1577
|
-
contents =
|
|
2287
|
+
contents = deserializeAws_json1_1DescribeDatasetImportJobResponse(data, context);
|
|
1578
2288
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1579
2289
|
return [2, Promise.resolve(response)];
|
|
1580
2290
|
}
|
|
1581
2291
|
});
|
|
1582
2292
|
}); };
|
|
1583
|
-
var
|
|
2293
|
+
var deserializeAws_json1_1DescribeDatasetImportJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1584
2294
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
|
|
1585
2295
|
var _e;
|
|
1586
2296
|
return __generator(this, function (_f) {
|
|
@@ -1626,25 +2336,25 @@ var deserializeAws_json1_1DescribeDatasetCommandError = function (output, contex
|
|
|
1626
2336
|
}
|
|
1627
2337
|
});
|
|
1628
2338
|
}); };
|
|
1629
|
-
export var
|
|
2339
|
+
export var deserializeAws_json1_1DescribeExplainabilityCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1630
2340
|
var data, contents, response;
|
|
1631
2341
|
return __generator(this, function (_a) {
|
|
1632
2342
|
switch (_a.label) {
|
|
1633
2343
|
case 0:
|
|
1634
2344
|
if (output.statusCode >= 300) {
|
|
1635
|
-
return [2,
|
|
2345
|
+
return [2, deserializeAws_json1_1DescribeExplainabilityCommandError(output, context)];
|
|
1636
2346
|
}
|
|
1637
2347
|
return [4, parseBody(output.body, context)];
|
|
1638
2348
|
case 1:
|
|
1639
2349
|
data = _a.sent();
|
|
1640
2350
|
contents = {};
|
|
1641
|
-
contents =
|
|
2351
|
+
contents = deserializeAws_json1_1DescribeExplainabilityResponse(data, context);
|
|
1642
2352
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1643
2353
|
return [2, Promise.resolve(response)];
|
|
1644
2354
|
}
|
|
1645
2355
|
});
|
|
1646
2356
|
}); };
|
|
1647
|
-
var
|
|
2357
|
+
var deserializeAws_json1_1DescribeExplainabilityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1648
2358
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
|
|
1649
2359
|
var _e;
|
|
1650
2360
|
return __generator(this, function (_f) {
|
|
@@ -1690,25 +2400,25 @@ var deserializeAws_json1_1DescribeDatasetGroupCommandError = function (output, c
|
|
|
1690
2400
|
}
|
|
1691
2401
|
});
|
|
1692
2402
|
}); };
|
|
1693
|
-
export var
|
|
2403
|
+
export var deserializeAws_json1_1DescribeExplainabilityExportCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1694
2404
|
var data, contents, response;
|
|
1695
2405
|
return __generator(this, function (_a) {
|
|
1696
2406
|
switch (_a.label) {
|
|
1697
2407
|
case 0:
|
|
1698
2408
|
if (output.statusCode >= 300) {
|
|
1699
|
-
return [2,
|
|
2409
|
+
return [2, deserializeAws_json1_1DescribeExplainabilityExportCommandError(output, context)];
|
|
1700
2410
|
}
|
|
1701
2411
|
return [4, parseBody(output.body, context)];
|
|
1702
2412
|
case 1:
|
|
1703
2413
|
data = _a.sent();
|
|
1704
2414
|
contents = {};
|
|
1705
|
-
contents =
|
|
2415
|
+
contents = deserializeAws_json1_1DescribeExplainabilityExportResponse(data, context);
|
|
1706
2416
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1707
2417
|
return [2, Promise.resolve(response)];
|
|
1708
2418
|
}
|
|
1709
2419
|
});
|
|
1710
2420
|
}); };
|
|
1711
|
-
var
|
|
2421
|
+
var deserializeAws_json1_1DescribeExplainabilityExportCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1712
2422
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
|
|
1713
2423
|
var _e;
|
|
1714
2424
|
return __generator(this, function (_f) {
|
|
@@ -2249,8 +2959,136 @@ var deserializeAws_json1_1ListDatasetsCommandError = function (output, context)
|
|
|
2249
2959
|
parsedBody = parsedOutput.body;
|
|
2250
2960
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2251
2961
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2252
|
-
_e.label = 5;
|
|
2253
|
-
case 5:
|
|
2962
|
+
_e.label = 5;
|
|
2963
|
+
case 5:
|
|
2964
|
+
message = response.message || response.Message || errorCode;
|
|
2965
|
+
response.message = message;
|
|
2966
|
+
delete response.Message;
|
|
2967
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2968
|
+
}
|
|
2969
|
+
});
|
|
2970
|
+
}); };
|
|
2971
|
+
export var deserializeAws_json1_1ListExplainabilitiesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2972
|
+
var data, contents, response;
|
|
2973
|
+
return __generator(this, function (_a) {
|
|
2974
|
+
switch (_a.label) {
|
|
2975
|
+
case 0:
|
|
2976
|
+
if (output.statusCode >= 300) {
|
|
2977
|
+
return [2, deserializeAws_json1_1ListExplainabilitiesCommandError(output, context)];
|
|
2978
|
+
}
|
|
2979
|
+
return [4, parseBody(output.body, context)];
|
|
2980
|
+
case 1:
|
|
2981
|
+
data = _a.sent();
|
|
2982
|
+
contents = {};
|
|
2983
|
+
contents = deserializeAws_json1_1ListExplainabilitiesResponse(data, context);
|
|
2984
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2985
|
+
return [2, Promise.resolve(response)];
|
|
2986
|
+
}
|
|
2987
|
+
});
|
|
2988
|
+
}); };
|
|
2989
|
+
var deserializeAws_json1_1ListExplainabilitiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2990
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
|
|
2991
|
+
var _e;
|
|
2992
|
+
return __generator(this, function (_f) {
|
|
2993
|
+
switch (_f.label) {
|
|
2994
|
+
case 0:
|
|
2995
|
+
_a = [__assign({}, output)];
|
|
2996
|
+
_e = {};
|
|
2997
|
+
return [4, parseBody(output.body, context)];
|
|
2998
|
+
case 1:
|
|
2999
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
3000
|
+
errorCode = "UnknownError";
|
|
3001
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3002
|
+
_b = errorCode;
|
|
3003
|
+
switch (_b) {
|
|
3004
|
+
case "InvalidInputException": return [3, 2];
|
|
3005
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
3006
|
+
case "InvalidNextTokenException": return [3, 4];
|
|
3007
|
+
case "com.amazonaws.forecast#InvalidNextTokenException": return [3, 4];
|
|
3008
|
+
}
|
|
3009
|
+
return [3, 6];
|
|
3010
|
+
case 2:
|
|
3011
|
+
_c = [{}];
|
|
3012
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
3013
|
+
case 3:
|
|
3014
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3015
|
+
return [3, 7];
|
|
3016
|
+
case 4:
|
|
3017
|
+
_d = [{}];
|
|
3018
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
3019
|
+
case 5:
|
|
3020
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3021
|
+
return [3, 7];
|
|
3022
|
+
case 6:
|
|
3023
|
+
parsedBody = parsedOutput.body;
|
|
3024
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3025
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
3026
|
+
_f.label = 7;
|
|
3027
|
+
case 7:
|
|
3028
|
+
message = response.message || response.Message || errorCode;
|
|
3029
|
+
response.message = message;
|
|
3030
|
+
delete response.Message;
|
|
3031
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3032
|
+
}
|
|
3033
|
+
});
|
|
3034
|
+
}); };
|
|
3035
|
+
export var deserializeAws_json1_1ListExplainabilityExportsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3036
|
+
var data, contents, response;
|
|
3037
|
+
return __generator(this, function (_a) {
|
|
3038
|
+
switch (_a.label) {
|
|
3039
|
+
case 0:
|
|
3040
|
+
if (output.statusCode >= 300) {
|
|
3041
|
+
return [2, deserializeAws_json1_1ListExplainabilityExportsCommandError(output, context)];
|
|
3042
|
+
}
|
|
3043
|
+
return [4, parseBody(output.body, context)];
|
|
3044
|
+
case 1:
|
|
3045
|
+
data = _a.sent();
|
|
3046
|
+
contents = {};
|
|
3047
|
+
contents = deserializeAws_json1_1ListExplainabilityExportsResponse(data, context);
|
|
3048
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3049
|
+
return [2, Promise.resolve(response)];
|
|
3050
|
+
}
|
|
3051
|
+
});
|
|
3052
|
+
}); };
|
|
3053
|
+
var deserializeAws_json1_1ListExplainabilityExportsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3054
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
|
|
3055
|
+
var _e;
|
|
3056
|
+
return __generator(this, function (_f) {
|
|
3057
|
+
switch (_f.label) {
|
|
3058
|
+
case 0:
|
|
3059
|
+
_a = [__assign({}, output)];
|
|
3060
|
+
_e = {};
|
|
3061
|
+
return [4, parseBody(output.body, context)];
|
|
3062
|
+
case 1:
|
|
3063
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
3064
|
+
errorCode = "UnknownError";
|
|
3065
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3066
|
+
_b = errorCode;
|
|
3067
|
+
switch (_b) {
|
|
3068
|
+
case "InvalidInputException": return [3, 2];
|
|
3069
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
3070
|
+
case "InvalidNextTokenException": return [3, 4];
|
|
3071
|
+
case "com.amazonaws.forecast#InvalidNextTokenException": return [3, 4];
|
|
3072
|
+
}
|
|
3073
|
+
return [3, 6];
|
|
3074
|
+
case 2:
|
|
3075
|
+
_c = [{}];
|
|
3076
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
3077
|
+
case 3:
|
|
3078
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3079
|
+
return [3, 7];
|
|
3080
|
+
case 4:
|
|
3081
|
+
_d = [{}];
|
|
3082
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
3083
|
+
case 5:
|
|
3084
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3085
|
+
return [3, 7];
|
|
3086
|
+
case 6:
|
|
3087
|
+
parsedBody = parsedOutput.body;
|
|
3088
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3089
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
3090
|
+
_f.label = 7;
|
|
3091
|
+
case 7:
|
|
2254
3092
|
message = response.message || response.Message || errorCode;
|
|
2255
3093
|
response.message = message;
|
|
2256
3094
|
delete response.Message;
|
|
@@ -2912,6 +3750,22 @@ var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOu
|
|
|
2912
3750
|
return [2, contents];
|
|
2913
3751
|
});
|
|
2914
3752
|
}); };
|
|
3753
|
+
var serializeAws_json1_1AdditionalDataset = function (input, context) {
|
|
3754
|
+
return __assign(__assign({}, (input.Configuration !== undefined &&
|
|
3755
|
+
input.Configuration !== null && {
|
|
3756
|
+
Configuration: serializeAws_json1_1Configuration(input.Configuration, context),
|
|
3757
|
+
})), (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
|
|
3758
|
+
};
|
|
3759
|
+
var serializeAws_json1_1AdditionalDatasets = function (input, context) {
|
|
3760
|
+
return input
|
|
3761
|
+
.filter(function (e) { return e != null; })
|
|
3762
|
+
.map(function (entry) {
|
|
3763
|
+
if (entry === null) {
|
|
3764
|
+
return null;
|
|
3765
|
+
}
|
|
3766
|
+
return serializeAws_json1_1AdditionalDataset(entry, context);
|
|
3767
|
+
});
|
|
3768
|
+
};
|
|
2915
3769
|
var serializeAws_json1_1ArnList = function (input, context) {
|
|
2916
3770
|
return input
|
|
2917
3771
|
.filter(function (e) { return e != null; })
|
|
@@ -2922,6 +3776,22 @@ var serializeAws_json1_1ArnList = function (input, context) {
|
|
|
2922
3776
|
return entry;
|
|
2923
3777
|
});
|
|
2924
3778
|
};
|
|
3779
|
+
var serializeAws_json1_1AttributeConfig = function (input, context) {
|
|
3780
|
+
return __assign(__assign({}, (input.AttributeName !== undefined && input.AttributeName !== null && { AttributeName: input.AttributeName })), (input.Transformations !== undefined &&
|
|
3781
|
+
input.Transformations !== null && {
|
|
3782
|
+
Transformations: serializeAws_json1_1Transformations(input.Transformations, context),
|
|
3783
|
+
}));
|
|
3784
|
+
};
|
|
3785
|
+
var serializeAws_json1_1AttributeConfigs = function (input, context) {
|
|
3786
|
+
return input
|
|
3787
|
+
.filter(function (e) { return e != null; })
|
|
3788
|
+
.map(function (entry) {
|
|
3789
|
+
if (entry === null) {
|
|
3790
|
+
return null;
|
|
3791
|
+
}
|
|
3792
|
+
return serializeAws_json1_1AttributeConfig(entry, context);
|
|
3793
|
+
});
|
|
3794
|
+
};
|
|
2925
3795
|
var serializeAws_json1_1CategoricalParameterRange = function (input, context) {
|
|
2926
3796
|
return __assign(__assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Values !== undefined &&
|
|
2927
3797
|
input.Values !== null && { Values: serializeAws_json1_1Values(input.Values, context) }));
|
|
@@ -2936,6 +3806,16 @@ var serializeAws_json1_1CategoricalParameterRanges = function (input, context) {
|
|
|
2936
3806
|
return serializeAws_json1_1CategoricalParameterRange(entry, context);
|
|
2937
3807
|
});
|
|
2938
3808
|
};
|
|
3809
|
+
var serializeAws_json1_1Configuration = function (input, context) {
|
|
3810
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
3811
|
+
var _b;
|
|
3812
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
3813
|
+
if (value === null) {
|
|
3814
|
+
return acc;
|
|
3815
|
+
}
|
|
3816
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = serializeAws_json1_1Values(value, context), _b));
|
|
3817
|
+
}, {});
|
|
3818
|
+
};
|
|
2939
3819
|
var serializeAws_json1_1ContinuousParameterRange = function (input, context) {
|
|
2940
3820
|
return __assign(__assign(__assign(__assign({}, (input.MaxValue !== undefined && input.MaxValue !== null && { MaxValue: __serializeFloat(input.MaxValue) })), (input.MinValue !== undefined && input.MinValue !== null && { MinValue: __serializeFloat(input.MinValue) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.ScalingType !== undefined && input.ScalingType !== null && { ScalingType: input.ScalingType }));
|
|
2941
3821
|
};
|
|
@@ -2949,6 +3829,24 @@ var serializeAws_json1_1ContinuousParameterRanges = function (input, context) {
|
|
|
2949
3829
|
return serializeAws_json1_1ContinuousParameterRange(entry, context);
|
|
2950
3830
|
});
|
|
2951
3831
|
};
|
|
3832
|
+
var serializeAws_json1_1CreateAutoPredictorRequest = function (input, context) {
|
|
3833
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DataConfig !== undefined &&
|
|
3834
|
+
input.DataConfig !== null && { DataConfig: serializeAws_json1_1DataConfig(input.DataConfig, context) })), (input.EncryptionConfig !== undefined &&
|
|
3835
|
+
input.EncryptionConfig !== null && {
|
|
3836
|
+
EncryptionConfig: serializeAws_json1_1EncryptionConfig(input.EncryptionConfig, context),
|
|
3837
|
+
})), (input.ExplainPredictor !== undefined &&
|
|
3838
|
+
input.ExplainPredictor !== null && { ExplainPredictor: input.ExplainPredictor })), (input.ForecastDimensions !== undefined &&
|
|
3839
|
+
input.ForecastDimensions !== null && {
|
|
3840
|
+
ForecastDimensions: serializeAws_json1_1ForecastDimensions(input.ForecastDimensions, context),
|
|
3841
|
+
})), (input.ForecastFrequency !== undefined &&
|
|
3842
|
+
input.ForecastFrequency !== null && { ForecastFrequency: input.ForecastFrequency })), (input.ForecastHorizon !== undefined &&
|
|
3843
|
+
input.ForecastHorizon !== null && { ForecastHorizon: input.ForecastHorizon })), (input.ForecastTypes !== undefined &&
|
|
3844
|
+
input.ForecastTypes !== null && {
|
|
3845
|
+
ForecastTypes: serializeAws_json1_1ForecastTypes(input.ForecastTypes, context),
|
|
3846
|
+
})), (input.OptimizationMetric !== undefined &&
|
|
3847
|
+
input.OptimizationMetric !== null && { OptimizationMetric: input.OptimizationMetric })), (input.PredictorName !== undefined && input.PredictorName !== null && { PredictorName: input.PredictorName })), (input.ReferencePredictorArn !== undefined &&
|
|
3848
|
+
input.ReferencePredictorArn !== null && { ReferencePredictorArn: input.ReferencePredictorArn })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }));
|
|
3849
|
+
};
|
|
2952
3850
|
var serializeAws_json1_1CreateDatasetGroupRequest = function (input, context) {
|
|
2953
3851
|
return __assign(__assign(__assign(__assign({}, (input.DatasetArns !== undefined &&
|
|
2954
3852
|
input.DatasetArns !== null && { DatasetArns: serializeAws_json1_1ArnList(input.DatasetArns, context) })), (input.DatasetGroupName !== undefined &&
|
|
@@ -2969,6 +3867,22 @@ var serializeAws_json1_1CreateDatasetRequest = function (input, context) {
|
|
|
2969
3867
|
})), (input.Schema !== undefined &&
|
|
2970
3868
|
input.Schema !== null && { Schema: serializeAws_json1_1Schema(input.Schema, context) })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }));
|
|
2971
3869
|
};
|
|
3870
|
+
var serializeAws_json1_1CreateExplainabilityExportRequest = function (input, context) {
|
|
3871
|
+
return __assign(__assign(__assign(__assign({}, (input.Destination !== undefined &&
|
|
3872
|
+
input.Destination !== null && { Destination: serializeAws_json1_1DataDestination(input.Destination, context) })), (input.ExplainabilityArn !== undefined &&
|
|
3873
|
+
input.ExplainabilityArn !== null && { ExplainabilityArn: input.ExplainabilityArn })), (input.ExplainabilityExportName !== undefined &&
|
|
3874
|
+
input.ExplainabilityExportName !== null && { ExplainabilityExportName: input.ExplainabilityExportName })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }));
|
|
3875
|
+
};
|
|
3876
|
+
var serializeAws_json1_1CreateExplainabilityRequest = function (input, context) {
|
|
3877
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DataSource !== undefined &&
|
|
3878
|
+
input.DataSource !== null && { DataSource: serializeAws_json1_1DataSource(input.DataSource, context) })), (input.EnableVisualization !== undefined &&
|
|
3879
|
+
input.EnableVisualization !== null && { EnableVisualization: input.EnableVisualization })), (input.EndDateTime !== undefined && input.EndDateTime !== null && { EndDateTime: input.EndDateTime })), (input.ExplainabilityConfig !== undefined &&
|
|
3880
|
+
input.ExplainabilityConfig !== null && {
|
|
3881
|
+
ExplainabilityConfig: serializeAws_json1_1ExplainabilityConfig(input.ExplainabilityConfig, context),
|
|
3882
|
+
})), (input.ExplainabilityName !== undefined &&
|
|
3883
|
+
input.ExplainabilityName !== null && { ExplainabilityName: input.ExplainabilityName })), (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn })), (input.Schema !== undefined &&
|
|
3884
|
+
input.Schema !== null && { Schema: serializeAws_json1_1Schema(input.Schema, context) })), (input.StartDateTime !== undefined && input.StartDateTime !== null && { StartDateTime: input.StartDateTime })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }));
|
|
3885
|
+
};
|
|
2972
3886
|
var serializeAws_json1_1CreateForecastExportJobRequest = function (input, context) {
|
|
2973
3887
|
return __assign(__assign(__assign(__assign({}, (input.Destination !== undefined &&
|
|
2974
3888
|
input.Destination !== null && { Destination: serializeAws_json1_1DataDestination(input.Destination, context) })), (input.ForecastArn !== undefined && input.ForecastArn !== null && { ForecastArn: input.ForecastArn })), (input.ForecastExportJobName !== undefined &&
|
|
@@ -3014,6 +3928,16 @@ var serializeAws_json1_1CreatePredictorRequest = function (input, context) {
|
|
|
3014
3928
|
TrainingParameters: serializeAws_json1_1TrainingParameters(input.TrainingParameters, context),
|
|
3015
3929
|
}));
|
|
3016
3930
|
};
|
|
3931
|
+
var serializeAws_json1_1DataConfig = function (input, context) {
|
|
3932
|
+
return __assign(__assign(__assign({}, (input.AdditionalDatasets !== undefined &&
|
|
3933
|
+
input.AdditionalDatasets !== null && {
|
|
3934
|
+
AdditionalDatasets: serializeAws_json1_1AdditionalDatasets(input.AdditionalDatasets, context),
|
|
3935
|
+
})), (input.AttributeConfigs !== undefined &&
|
|
3936
|
+
input.AttributeConfigs !== null && {
|
|
3937
|
+
AttributeConfigs: serializeAws_json1_1AttributeConfigs(input.AttributeConfigs, context),
|
|
3938
|
+
})), (input.DatasetGroupArn !== undefined &&
|
|
3939
|
+
input.DatasetGroupArn !== null && { DatasetGroupArn: input.DatasetGroupArn }));
|
|
3940
|
+
};
|
|
3017
3941
|
var serializeAws_json1_1DataDestination = function (input, context) {
|
|
3018
3942
|
return __assign({}, (input.S3Config !== undefined &&
|
|
3019
3943
|
input.S3Config !== null && { S3Config: serializeAws_json1_1S3Config(input.S3Config, context) }));
|
|
@@ -3033,6 +3957,14 @@ var serializeAws_json1_1DeleteDatasetImportJobRequest = function (input, context
|
|
|
3033
3957
|
var serializeAws_json1_1DeleteDatasetRequest = function (input, context) {
|
|
3034
3958
|
return __assign({}, (input.DatasetArn !== undefined && input.DatasetArn !== null && { DatasetArn: input.DatasetArn }));
|
|
3035
3959
|
};
|
|
3960
|
+
var serializeAws_json1_1DeleteExplainabilityExportRequest = function (input, context) {
|
|
3961
|
+
return __assign({}, (input.ExplainabilityExportArn !== undefined &&
|
|
3962
|
+
input.ExplainabilityExportArn !== null && { ExplainabilityExportArn: input.ExplainabilityExportArn }));
|
|
3963
|
+
};
|
|
3964
|
+
var serializeAws_json1_1DeleteExplainabilityRequest = function (input, context) {
|
|
3965
|
+
return __assign({}, (input.ExplainabilityArn !== undefined &&
|
|
3966
|
+
input.ExplainabilityArn !== null && { ExplainabilityArn: input.ExplainabilityArn }));
|
|
3967
|
+
};
|
|
3036
3968
|
var serializeAws_json1_1DeleteForecastExportJobRequest = function (input, context) {
|
|
3037
3969
|
return __assign({}, (input.ForecastExportJobArn !== undefined &&
|
|
3038
3970
|
input.ForecastExportJobArn !== null && { ForecastExportJobArn: input.ForecastExportJobArn }));
|
|
@@ -3052,6 +3984,9 @@ var serializeAws_json1_1DeletePredictorRequest = function (input, context) {
|
|
|
3052
3984
|
var serializeAws_json1_1DeleteResourceTreeRequest = function (input, context) {
|
|
3053
3985
|
return __assign({}, (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }));
|
|
3054
3986
|
};
|
|
3987
|
+
var serializeAws_json1_1DescribeAutoPredictorRequest = function (input, context) {
|
|
3988
|
+
return __assign({}, (input.PredictorArn !== undefined && input.PredictorArn !== null && { PredictorArn: input.PredictorArn }));
|
|
3989
|
+
};
|
|
3055
3990
|
var serializeAws_json1_1DescribeDatasetGroupRequest = function (input, context) {
|
|
3056
3991
|
return __assign({}, (input.DatasetGroupArn !== undefined &&
|
|
3057
3992
|
input.DatasetGroupArn !== null && { DatasetGroupArn: input.DatasetGroupArn }));
|
|
@@ -3063,6 +3998,14 @@ var serializeAws_json1_1DescribeDatasetImportJobRequest = function (input, conte
|
|
|
3063
3998
|
var serializeAws_json1_1DescribeDatasetRequest = function (input, context) {
|
|
3064
3999
|
return __assign({}, (input.DatasetArn !== undefined && input.DatasetArn !== null && { DatasetArn: input.DatasetArn }));
|
|
3065
4000
|
};
|
|
4001
|
+
var serializeAws_json1_1DescribeExplainabilityExportRequest = function (input, context) {
|
|
4002
|
+
return __assign({}, (input.ExplainabilityExportArn !== undefined &&
|
|
4003
|
+
input.ExplainabilityExportArn !== null && { ExplainabilityExportArn: input.ExplainabilityExportArn }));
|
|
4004
|
+
};
|
|
4005
|
+
var serializeAws_json1_1DescribeExplainabilityRequest = function (input, context) {
|
|
4006
|
+
return __assign({}, (input.ExplainabilityArn !== undefined &&
|
|
4007
|
+
input.ExplainabilityArn !== null && { ExplainabilityArn: input.ExplainabilityArn }));
|
|
4008
|
+
};
|
|
3066
4009
|
var serializeAws_json1_1DescribeForecastExportJobRequest = function (input, context) {
|
|
3067
4010
|
return __assign({}, (input.ForecastExportJobArn !== undefined &&
|
|
3068
4011
|
input.ForecastExportJobArn !== null && { ForecastExportJobArn: input.ForecastExportJobArn }));
|
|
@@ -3087,6 +4030,11 @@ var serializeAws_json1_1EvaluationParameters = function (input, context) {
|
|
|
3087
4030
|
input.BackTestWindowOffset !== null && { BackTestWindowOffset: input.BackTestWindowOffset })), (input.NumberOfBacktestWindows !== undefined &&
|
|
3088
4031
|
input.NumberOfBacktestWindows !== null && { NumberOfBacktestWindows: input.NumberOfBacktestWindows }));
|
|
3089
4032
|
};
|
|
4033
|
+
var serializeAws_json1_1ExplainabilityConfig = function (input, context) {
|
|
4034
|
+
return __assign(__assign({}, (input.TimePointGranularity !== undefined &&
|
|
4035
|
+
input.TimePointGranularity !== null && { TimePointGranularity: input.TimePointGranularity })), (input.TimeSeriesGranularity !== undefined &&
|
|
4036
|
+
input.TimeSeriesGranularity !== null && { TimeSeriesGranularity: input.TimeSeriesGranularity }));
|
|
4037
|
+
};
|
|
3090
4038
|
var serializeAws_json1_1Featurization = function (input, context) {
|
|
3091
4039
|
return __assign(__assign({}, (input.AttributeName !== undefined && input.AttributeName !== null && { AttributeName: input.AttributeName })), (input.FeaturizationPipeline !== undefined &&
|
|
3092
4040
|
input.FeaturizationPipeline !== null && {
|
|
@@ -3212,6 +4160,14 @@ var serializeAws_json1_1ListDatasetImportJobsRequest = function (input, context)
|
|
|
3212
4160
|
var serializeAws_json1_1ListDatasetsRequest = function (input, context) {
|
|
3213
4161
|
return __assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
3214
4162
|
};
|
|
4163
|
+
var serializeAws_json1_1ListExplainabilitiesRequest = function (input, context) {
|
|
4164
|
+
return __assign(__assign(__assign({}, (input.Filters !== undefined &&
|
|
4165
|
+
input.Filters !== null && { Filters: serializeAws_json1_1Filters(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
4166
|
+
};
|
|
4167
|
+
var serializeAws_json1_1ListExplainabilityExportsRequest = function (input, context) {
|
|
4168
|
+
return __assign(__assign(__assign({}, (input.Filters !== undefined &&
|
|
4169
|
+
input.Filters !== null && { Filters: serializeAws_json1_1Filters(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
4170
|
+
};
|
|
3215
4171
|
var serializeAws_json1_1ListForecastExportJobsRequest = function (input, context) {
|
|
3216
4172
|
return __assign(__assign(__assign({}, (input.Filters !== undefined &&
|
|
3217
4173
|
input.Filters !== null && { Filters: serializeAws_json1_1Filters(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
@@ -3315,6 +4271,16 @@ var serializeAws_json1_1TrainingParameters = function (input, context) {
|
|
|
3315
4271
|
return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
|
|
3316
4272
|
}, {});
|
|
3317
4273
|
};
|
|
4274
|
+
var serializeAws_json1_1Transformations = function (input, context) {
|
|
4275
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
4276
|
+
var _b;
|
|
4277
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
4278
|
+
if (value === null) {
|
|
4279
|
+
return acc;
|
|
4280
|
+
}
|
|
4281
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
|
|
4282
|
+
}, {});
|
|
4283
|
+
};
|
|
3318
4284
|
var serializeAws_json1_1UntagResourceRequest = function (input, context) {
|
|
3319
4285
|
return __assign(__assign({}, (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn })), (input.TagKeys !== undefined &&
|
|
3320
4286
|
input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeys(input.TagKeys, context) }));
|
|
@@ -3334,6 +4300,24 @@ var serializeAws_json1_1Values = function (input, context) {
|
|
|
3334
4300
|
return entry;
|
|
3335
4301
|
});
|
|
3336
4302
|
};
|
|
4303
|
+
var deserializeAws_json1_1AdditionalDataset = function (output, context) {
|
|
4304
|
+
return {
|
|
4305
|
+
Configuration: output.Configuration !== undefined && output.Configuration !== null
|
|
4306
|
+
? deserializeAws_json1_1Configuration(output.Configuration, context)
|
|
4307
|
+
: undefined,
|
|
4308
|
+
Name: __expectString(output.Name),
|
|
4309
|
+
};
|
|
4310
|
+
};
|
|
4311
|
+
var deserializeAws_json1_1AdditionalDatasets = function (output, context) {
|
|
4312
|
+
return (output || [])
|
|
4313
|
+
.filter(function (e) { return e != null; })
|
|
4314
|
+
.map(function (entry) {
|
|
4315
|
+
if (entry === null) {
|
|
4316
|
+
return null;
|
|
4317
|
+
}
|
|
4318
|
+
return deserializeAws_json1_1AdditionalDataset(entry, context);
|
|
4319
|
+
});
|
|
4320
|
+
};
|
|
3337
4321
|
var deserializeAws_json1_1ArnList = function (output, context) {
|
|
3338
4322
|
return (output || [])
|
|
3339
4323
|
.filter(function (e) { return e != null; })
|
|
@@ -3344,6 +4328,24 @@ var deserializeAws_json1_1ArnList = function (output, context) {
|
|
|
3344
4328
|
return __expectString(entry);
|
|
3345
4329
|
});
|
|
3346
4330
|
};
|
|
4331
|
+
var deserializeAws_json1_1AttributeConfig = function (output, context) {
|
|
4332
|
+
return {
|
|
4333
|
+
AttributeName: __expectString(output.AttributeName),
|
|
4334
|
+
Transformations: output.Transformations !== undefined && output.Transformations !== null
|
|
4335
|
+
? deserializeAws_json1_1Transformations(output.Transformations, context)
|
|
4336
|
+
: undefined,
|
|
4337
|
+
};
|
|
4338
|
+
};
|
|
4339
|
+
var deserializeAws_json1_1AttributeConfigs = function (output, context) {
|
|
4340
|
+
return (output || [])
|
|
4341
|
+
.filter(function (e) { return e != null; })
|
|
4342
|
+
.map(function (entry) {
|
|
4343
|
+
if (entry === null) {
|
|
4344
|
+
return null;
|
|
4345
|
+
}
|
|
4346
|
+
return deserializeAws_json1_1AttributeConfig(entry, context);
|
|
4347
|
+
});
|
|
4348
|
+
};
|
|
3347
4349
|
var deserializeAws_json1_1CategoricalParameterRange = function (output, context) {
|
|
3348
4350
|
return {
|
|
3349
4351
|
Name: __expectString(output.Name),
|
|
@@ -3362,6 +4364,16 @@ var deserializeAws_json1_1CategoricalParameterRanges = function (output, context
|
|
|
3362
4364
|
return deserializeAws_json1_1CategoricalParameterRange(entry, context);
|
|
3363
4365
|
});
|
|
3364
4366
|
};
|
|
4367
|
+
var deserializeAws_json1_1Configuration = function (output, context) {
|
|
4368
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
4369
|
+
var _b;
|
|
4370
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
4371
|
+
if (value === null) {
|
|
4372
|
+
return acc;
|
|
4373
|
+
}
|
|
4374
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_json1_1Values(value, context), _b));
|
|
4375
|
+
}, {});
|
|
4376
|
+
};
|
|
3365
4377
|
var deserializeAws_json1_1ContinuousParameterRange = function (output, context) {
|
|
3366
4378
|
return {
|
|
3367
4379
|
MaxValue: __limitedParseDouble(output.MaxValue),
|
|
@@ -3380,6 +4392,11 @@ var deserializeAws_json1_1ContinuousParameterRanges = function (output, context)
|
|
|
3380
4392
|
return deserializeAws_json1_1ContinuousParameterRange(entry, context);
|
|
3381
4393
|
});
|
|
3382
4394
|
};
|
|
4395
|
+
var deserializeAws_json1_1CreateAutoPredictorResponse = function (output, context) {
|
|
4396
|
+
return {
|
|
4397
|
+
PredictorArn: __expectString(output.PredictorArn),
|
|
4398
|
+
};
|
|
4399
|
+
};
|
|
3383
4400
|
var deserializeAws_json1_1CreateDatasetGroupResponse = function (output, context) {
|
|
3384
4401
|
return {
|
|
3385
4402
|
DatasetGroupArn: __expectString(output.DatasetGroupArn),
|
|
@@ -3395,6 +4412,16 @@ var deserializeAws_json1_1CreateDatasetResponse = function (output, context) {
|
|
|
3395
4412
|
DatasetArn: __expectString(output.DatasetArn),
|
|
3396
4413
|
};
|
|
3397
4414
|
};
|
|
4415
|
+
var deserializeAws_json1_1CreateExplainabilityExportResponse = function (output, context) {
|
|
4416
|
+
return {
|
|
4417
|
+
ExplainabilityExportArn: __expectString(output.ExplainabilityExportArn),
|
|
4418
|
+
};
|
|
4419
|
+
};
|
|
4420
|
+
var deserializeAws_json1_1CreateExplainabilityResponse = function (output, context) {
|
|
4421
|
+
return {
|
|
4422
|
+
ExplainabilityArn: __expectString(output.ExplainabilityArn),
|
|
4423
|
+
};
|
|
4424
|
+
};
|
|
3398
4425
|
var deserializeAws_json1_1CreateForecastExportJobResponse = function (output, context) {
|
|
3399
4426
|
return {
|
|
3400
4427
|
ForecastExportJobArn: __expectString(output.ForecastExportJobArn),
|
|
@@ -3415,6 +4442,17 @@ var deserializeAws_json1_1CreatePredictorResponse = function (output, context) {
|
|
|
3415
4442
|
PredictorArn: __expectString(output.PredictorArn),
|
|
3416
4443
|
};
|
|
3417
4444
|
};
|
|
4445
|
+
var deserializeAws_json1_1DataConfig = function (output, context) {
|
|
4446
|
+
return {
|
|
4447
|
+
AdditionalDatasets: output.AdditionalDatasets !== undefined && output.AdditionalDatasets !== null
|
|
4448
|
+
? deserializeAws_json1_1AdditionalDatasets(output.AdditionalDatasets, context)
|
|
4449
|
+
: undefined,
|
|
4450
|
+
AttributeConfigs: output.AttributeConfigs !== undefined && output.AttributeConfigs !== null
|
|
4451
|
+
? deserializeAws_json1_1AttributeConfigs(output.AttributeConfigs, context)
|
|
4452
|
+
: undefined,
|
|
4453
|
+
DatasetGroupArn: __expectString(output.DatasetGroupArn),
|
|
4454
|
+
};
|
|
4455
|
+
};
|
|
3418
4456
|
var deserializeAws_json1_1DataDestination = function (output, context) {
|
|
3419
4457
|
return {
|
|
3420
4458
|
S3Config: output.S3Config !== undefined && output.S3Config !== null
|
|
@@ -3502,6 +4540,45 @@ var deserializeAws_json1_1DataSource = function (output, context) {
|
|
|
3502
4540
|
: undefined,
|
|
3503
4541
|
};
|
|
3504
4542
|
};
|
|
4543
|
+
var deserializeAws_json1_1DescribeAutoPredictorResponse = function (output, context) {
|
|
4544
|
+
return {
|
|
4545
|
+
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
4546
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
4547
|
+
: undefined,
|
|
4548
|
+
DataConfig: output.DataConfig !== undefined && output.DataConfig !== null
|
|
4549
|
+
? deserializeAws_json1_1DataConfig(output.DataConfig, context)
|
|
4550
|
+
: undefined,
|
|
4551
|
+
DatasetImportJobArns: output.DatasetImportJobArns !== undefined && output.DatasetImportJobArns !== null
|
|
4552
|
+
? deserializeAws_json1_1ArnList(output.DatasetImportJobArns, context)
|
|
4553
|
+
: undefined,
|
|
4554
|
+
EncryptionConfig: output.EncryptionConfig !== undefined && output.EncryptionConfig !== null
|
|
4555
|
+
? deserializeAws_json1_1EncryptionConfig(output.EncryptionConfig, context)
|
|
4556
|
+
: undefined,
|
|
4557
|
+
EstimatedTimeRemainingInMinutes: __expectLong(output.EstimatedTimeRemainingInMinutes),
|
|
4558
|
+
ExplainabilityInfo: output.ExplainabilityInfo !== undefined && output.ExplainabilityInfo !== null
|
|
4559
|
+
? deserializeAws_json1_1ExplainabilityInfo(output.ExplainabilityInfo, context)
|
|
4560
|
+
: undefined,
|
|
4561
|
+
ForecastDimensions: output.ForecastDimensions !== undefined && output.ForecastDimensions !== null
|
|
4562
|
+
? deserializeAws_json1_1ForecastDimensions(output.ForecastDimensions, context)
|
|
4563
|
+
: undefined,
|
|
4564
|
+
ForecastFrequency: __expectString(output.ForecastFrequency),
|
|
4565
|
+
ForecastHorizon: __expectInt32(output.ForecastHorizon),
|
|
4566
|
+
ForecastTypes: output.ForecastTypes !== undefined && output.ForecastTypes !== null
|
|
4567
|
+
? deserializeAws_json1_1ForecastTypes(output.ForecastTypes, context)
|
|
4568
|
+
: undefined,
|
|
4569
|
+
LastModificationTime: output.LastModificationTime !== undefined && output.LastModificationTime !== null
|
|
4570
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModificationTime)))
|
|
4571
|
+
: undefined,
|
|
4572
|
+
Message: __expectString(output.Message),
|
|
4573
|
+
OptimizationMetric: __expectString(output.OptimizationMetric),
|
|
4574
|
+
PredictorArn: __expectString(output.PredictorArn),
|
|
4575
|
+
PredictorName: __expectString(output.PredictorName),
|
|
4576
|
+
ReferencePredictorSummary: output.ReferencePredictorSummary !== undefined && output.ReferencePredictorSummary !== null
|
|
4577
|
+
? deserializeAws_json1_1ReferencePredictorSummary(output.ReferencePredictorSummary, context)
|
|
4578
|
+
: undefined,
|
|
4579
|
+
Status: __expectString(output.Status),
|
|
4580
|
+
};
|
|
4581
|
+
};
|
|
3505
4582
|
var deserializeAws_json1_1DescribeDatasetGroupResponse = function (output, context) {
|
|
3506
4583
|
return {
|
|
3507
4584
|
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
@@ -3568,6 +4645,52 @@ var deserializeAws_json1_1DescribeDatasetResponse = function (output, context) {
|
|
|
3568
4645
|
Status: __expectString(output.Status),
|
|
3569
4646
|
};
|
|
3570
4647
|
};
|
|
4648
|
+
var deserializeAws_json1_1DescribeExplainabilityExportResponse = function (output, context) {
|
|
4649
|
+
return {
|
|
4650
|
+
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
4651
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
4652
|
+
: undefined,
|
|
4653
|
+
Destination: output.Destination !== undefined && output.Destination !== null
|
|
4654
|
+
? deserializeAws_json1_1DataDestination(output.Destination, context)
|
|
4655
|
+
: undefined,
|
|
4656
|
+
ExplainabilityArn: __expectString(output.ExplainabilityArn),
|
|
4657
|
+
ExplainabilityExportArn: __expectString(output.ExplainabilityExportArn),
|
|
4658
|
+
ExplainabilityExportName: __expectString(output.ExplainabilityExportName),
|
|
4659
|
+
LastModificationTime: output.LastModificationTime !== undefined && output.LastModificationTime !== null
|
|
4660
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModificationTime)))
|
|
4661
|
+
: undefined,
|
|
4662
|
+
Message: __expectString(output.Message),
|
|
4663
|
+
Status: __expectString(output.Status),
|
|
4664
|
+
};
|
|
4665
|
+
};
|
|
4666
|
+
var deserializeAws_json1_1DescribeExplainabilityResponse = function (output, context) {
|
|
4667
|
+
return {
|
|
4668
|
+
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
4669
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
4670
|
+
: undefined,
|
|
4671
|
+
DataSource: output.DataSource !== undefined && output.DataSource !== null
|
|
4672
|
+
? deserializeAws_json1_1DataSource(output.DataSource, context)
|
|
4673
|
+
: undefined,
|
|
4674
|
+
EnableVisualization: __expectBoolean(output.EnableVisualization),
|
|
4675
|
+
EndDateTime: __expectString(output.EndDateTime),
|
|
4676
|
+
EstimatedTimeRemainingInMinutes: __expectLong(output.EstimatedTimeRemainingInMinutes),
|
|
4677
|
+
ExplainabilityArn: __expectString(output.ExplainabilityArn),
|
|
4678
|
+
ExplainabilityConfig: output.ExplainabilityConfig !== undefined && output.ExplainabilityConfig !== null
|
|
4679
|
+
? deserializeAws_json1_1ExplainabilityConfig(output.ExplainabilityConfig, context)
|
|
4680
|
+
: undefined,
|
|
4681
|
+
ExplainabilityName: __expectString(output.ExplainabilityName),
|
|
4682
|
+
LastModificationTime: output.LastModificationTime !== undefined && output.LastModificationTime !== null
|
|
4683
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModificationTime)))
|
|
4684
|
+
: undefined,
|
|
4685
|
+
Message: __expectString(output.Message),
|
|
4686
|
+
ResourceArn: __expectString(output.ResourceArn),
|
|
4687
|
+
Schema: output.Schema !== undefined && output.Schema !== null
|
|
4688
|
+
? deserializeAws_json1_1Schema(output.Schema, context)
|
|
4689
|
+
: undefined,
|
|
4690
|
+
StartDateTime: __expectString(output.StartDateTime),
|
|
4691
|
+
Status: __expectString(output.Status),
|
|
4692
|
+
};
|
|
4693
|
+
};
|
|
3571
4694
|
var deserializeAws_json1_1DescribeForecastExportJobResponse = function (output, context) {
|
|
3572
4695
|
return {
|
|
3573
4696
|
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
@@ -3657,6 +4780,7 @@ var deserializeAws_json1_1DescribePredictorResponse = function (output, context)
|
|
|
3657
4780
|
InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
|
|
3658
4781
|
? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
|
|
3659
4782
|
: undefined,
|
|
4783
|
+
IsAutoPredictor: __expectBoolean(output.IsAutoPredictor),
|
|
3660
4784
|
LastModificationTime: output.LastModificationTime !== undefined && output.LastModificationTime !== null
|
|
3661
4785
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModificationTime)))
|
|
3662
4786
|
: undefined,
|
|
@@ -3714,6 +4838,73 @@ var deserializeAws_json1_1EvaluationResult = function (output, context) {
|
|
|
3714
4838
|
: undefined,
|
|
3715
4839
|
};
|
|
3716
4840
|
};
|
|
4841
|
+
var deserializeAws_json1_1Explainabilities = function (output, context) {
|
|
4842
|
+
return (output || [])
|
|
4843
|
+
.filter(function (e) { return e != null; })
|
|
4844
|
+
.map(function (entry) {
|
|
4845
|
+
if (entry === null) {
|
|
4846
|
+
return null;
|
|
4847
|
+
}
|
|
4848
|
+
return deserializeAws_json1_1ExplainabilitySummary(entry, context);
|
|
4849
|
+
});
|
|
4850
|
+
};
|
|
4851
|
+
var deserializeAws_json1_1ExplainabilityConfig = function (output, context) {
|
|
4852
|
+
return {
|
|
4853
|
+
TimePointGranularity: __expectString(output.TimePointGranularity),
|
|
4854
|
+
TimeSeriesGranularity: __expectString(output.TimeSeriesGranularity),
|
|
4855
|
+
};
|
|
4856
|
+
};
|
|
4857
|
+
var deserializeAws_json1_1ExplainabilityExports = function (output, context) {
|
|
4858
|
+
return (output || [])
|
|
4859
|
+
.filter(function (e) { return e != null; })
|
|
4860
|
+
.map(function (entry) {
|
|
4861
|
+
if (entry === null) {
|
|
4862
|
+
return null;
|
|
4863
|
+
}
|
|
4864
|
+
return deserializeAws_json1_1ExplainabilityExportSummary(entry, context);
|
|
4865
|
+
});
|
|
4866
|
+
};
|
|
4867
|
+
var deserializeAws_json1_1ExplainabilityExportSummary = function (output, context) {
|
|
4868
|
+
return {
|
|
4869
|
+
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
4870
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
4871
|
+
: undefined,
|
|
4872
|
+
Destination: output.Destination !== undefined && output.Destination !== null
|
|
4873
|
+
? deserializeAws_json1_1DataDestination(output.Destination, context)
|
|
4874
|
+
: undefined,
|
|
4875
|
+
ExplainabilityExportArn: __expectString(output.ExplainabilityExportArn),
|
|
4876
|
+
ExplainabilityExportName: __expectString(output.ExplainabilityExportName),
|
|
4877
|
+
LastModificationTime: output.LastModificationTime !== undefined && output.LastModificationTime !== null
|
|
4878
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModificationTime)))
|
|
4879
|
+
: undefined,
|
|
4880
|
+
Message: __expectString(output.Message),
|
|
4881
|
+
Status: __expectString(output.Status),
|
|
4882
|
+
};
|
|
4883
|
+
};
|
|
4884
|
+
var deserializeAws_json1_1ExplainabilityInfo = function (output, context) {
|
|
4885
|
+
return {
|
|
4886
|
+
ExplainabilityArn: __expectString(output.ExplainabilityArn),
|
|
4887
|
+
Status: __expectString(output.Status),
|
|
4888
|
+
};
|
|
4889
|
+
};
|
|
4890
|
+
var deserializeAws_json1_1ExplainabilitySummary = function (output, context) {
|
|
4891
|
+
return {
|
|
4892
|
+
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
4893
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
4894
|
+
: undefined,
|
|
4895
|
+
ExplainabilityArn: __expectString(output.ExplainabilityArn),
|
|
4896
|
+
ExplainabilityConfig: output.ExplainabilityConfig !== undefined && output.ExplainabilityConfig !== null
|
|
4897
|
+
? deserializeAws_json1_1ExplainabilityConfig(output.ExplainabilityConfig, context)
|
|
4898
|
+
: undefined,
|
|
4899
|
+
ExplainabilityName: __expectString(output.ExplainabilityName),
|
|
4900
|
+
LastModificationTime: output.LastModificationTime !== undefined && output.LastModificationTime !== null
|
|
4901
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModificationTime)))
|
|
4902
|
+
: undefined,
|
|
4903
|
+
Message: __expectString(output.Message),
|
|
4904
|
+
ResourceArn: __expectString(output.ResourceArn),
|
|
4905
|
+
Status: __expectString(output.Status),
|
|
4906
|
+
};
|
|
4907
|
+
};
|
|
3717
4908
|
var deserializeAws_json1_1Featurization = function (output, context) {
|
|
3718
4909
|
return {
|
|
3719
4910
|
AttributeName: __expectString(output.AttributeName),
|
|
@@ -3830,6 +5021,7 @@ var deserializeAws_json1_1Forecasts = function (output, context) {
|
|
|
3830
5021
|
};
|
|
3831
5022
|
var deserializeAws_json1_1ForecastSummary = function (output, context) {
|
|
3832
5023
|
return {
|
|
5024
|
+
CreatedUsingAutoPredictor: __expectBoolean(output.CreatedUsingAutoPredictor),
|
|
3833
5025
|
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
3834
5026
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
3835
5027
|
: undefined,
|
|
@@ -3857,6 +5049,7 @@ var deserializeAws_json1_1ForecastTypes = function (output, context) {
|
|
|
3857
5049
|
var deserializeAws_json1_1GetAccuracyMetricsResponse = function (output, context) {
|
|
3858
5050
|
return {
|
|
3859
5051
|
AutoMLOverrideStrategy: __expectString(output.AutoMLOverrideStrategy),
|
|
5052
|
+
IsAutoPredictor: __expectBoolean(output.IsAutoPredictor),
|
|
3860
5053
|
OptimizationMetric: __expectString(output.OptimizationMetric),
|
|
3861
5054
|
PredictorEvaluationResults: output.PredictorEvaluationResults !== undefined && output.PredictorEvaluationResults !== null
|
|
3862
5055
|
? deserializeAws_json1_1PredictorEvaluationResults(output.PredictorEvaluationResults, context)
|
|
@@ -3935,6 +5128,22 @@ var deserializeAws_json1_1ListDatasetsResponse = function (output, context) {
|
|
|
3935
5128
|
NextToken: __expectString(output.NextToken),
|
|
3936
5129
|
};
|
|
3937
5130
|
};
|
|
5131
|
+
var deserializeAws_json1_1ListExplainabilitiesResponse = function (output, context) {
|
|
5132
|
+
return {
|
|
5133
|
+
Explainabilities: output.Explainabilities !== undefined && output.Explainabilities !== null
|
|
5134
|
+
? deserializeAws_json1_1Explainabilities(output.Explainabilities, context)
|
|
5135
|
+
: undefined,
|
|
5136
|
+
NextToken: __expectString(output.NextToken),
|
|
5137
|
+
};
|
|
5138
|
+
};
|
|
5139
|
+
var deserializeAws_json1_1ListExplainabilityExportsResponse = function (output, context) {
|
|
5140
|
+
return {
|
|
5141
|
+
ExplainabilityExports: output.ExplainabilityExports !== undefined && output.ExplainabilityExports !== null
|
|
5142
|
+
? deserializeAws_json1_1ExplainabilityExports(output.ExplainabilityExports, context)
|
|
5143
|
+
: undefined,
|
|
5144
|
+
NextToken: __expectString(output.NextToken),
|
|
5145
|
+
};
|
|
5146
|
+
};
|
|
3938
5147
|
var deserializeAws_json1_1ListForecastExportJobsResponse = function (output, context) {
|
|
3939
5148
|
return {
|
|
3940
5149
|
ForecastExportJobs: output.ForecastExportJobs !== undefined && output.ForecastExportJobs !== null
|
|
@@ -4075,15 +5284,25 @@ var deserializeAws_json1_1PredictorSummary = function (output, context) {
|
|
|
4075
5284
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
4076
5285
|
: undefined,
|
|
4077
5286
|
DatasetGroupArn: __expectString(output.DatasetGroupArn),
|
|
5287
|
+
IsAutoPredictor: __expectBoolean(output.IsAutoPredictor),
|
|
4078
5288
|
LastModificationTime: output.LastModificationTime !== undefined && output.LastModificationTime !== null
|
|
4079
5289
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModificationTime)))
|
|
4080
5290
|
: undefined,
|
|
4081
5291
|
Message: __expectString(output.Message),
|
|
4082
5292
|
PredictorArn: __expectString(output.PredictorArn),
|
|
4083
5293
|
PredictorName: __expectString(output.PredictorName),
|
|
5294
|
+
ReferencePredictorSummary: output.ReferencePredictorSummary !== undefined && output.ReferencePredictorSummary !== null
|
|
5295
|
+
? deserializeAws_json1_1ReferencePredictorSummary(output.ReferencePredictorSummary, context)
|
|
5296
|
+
: undefined,
|
|
4084
5297
|
Status: __expectString(output.Status),
|
|
4085
5298
|
};
|
|
4086
5299
|
};
|
|
5300
|
+
var deserializeAws_json1_1ReferencePredictorSummary = function (output, context) {
|
|
5301
|
+
return {
|
|
5302
|
+
Arn: __expectString(output.Arn),
|
|
5303
|
+
State: __expectString(output.State),
|
|
5304
|
+
};
|
|
5305
|
+
};
|
|
4087
5306
|
var deserializeAws_json1_1ResourceAlreadyExistsException = function (output, context) {
|
|
4088
5307
|
return {
|
|
4089
5308
|
Message: __expectString(output.Message),
|
|
@@ -4222,6 +5441,16 @@ var deserializeAws_json1_1TrainingParameters = function (output, context) {
|
|
|
4222
5441
|
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
4223
5442
|
}, {});
|
|
4224
5443
|
};
|
|
5444
|
+
var deserializeAws_json1_1Transformations = function (output, context) {
|
|
5445
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
5446
|
+
var _b;
|
|
5447
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
5448
|
+
if (value === null) {
|
|
5449
|
+
return acc;
|
|
5450
|
+
}
|
|
5451
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
5452
|
+
}, {});
|
|
5453
|
+
};
|
|
4225
5454
|
var deserializeAws_json1_1UntagResourceResponse = function (output, context) {
|
|
4226
5455
|
return {};
|
|
4227
5456
|
};
|