@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,9 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_json1_1UpdateDatasetGroupCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StopResourceCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListPredictorsCommand = exports.deserializeAws_json1_1ListPredictorBacktestExportJobsCommand = exports.deserializeAws_json1_1ListForecastsCommand = exports.deserializeAws_json1_1ListForecastExportJobsCommand = exports.deserializeAws_json1_1ListDatasetsCommand = exports.deserializeAws_json1_1ListDatasetImportJobsCommand = exports.deserializeAws_json1_1ListDatasetGroupsCommand = exports.deserializeAws_json1_1GetAccuracyMetricsCommand = exports.deserializeAws_json1_1DescribePredictorBacktestExportJobCommand = exports.deserializeAws_json1_1DescribePredictorCommand = exports.deserializeAws_json1_1DescribeForecastExportJobCommand = exports.deserializeAws_json1_1DescribeForecastCommand = exports.deserializeAws_json1_1DescribeDatasetImportJobCommand = exports.deserializeAws_json1_1DescribeDatasetGroupCommand = exports.deserializeAws_json1_1DescribeDatasetCommand = void 0;
|
|
3
|
+
exports.deserializeAws_json1_1CreateExplainabilityCommand = exports.deserializeAws_json1_1CreateDatasetImportJobCommand = exports.deserializeAws_json1_1CreateDatasetGroupCommand = exports.deserializeAws_json1_1CreateDatasetCommand = exports.deserializeAws_json1_1CreateAutoPredictorCommand = exports.serializeAws_json1_1UpdateDatasetGroupCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1StopResourceCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListPredictorsCommand = exports.serializeAws_json1_1ListPredictorBacktestExportJobsCommand = exports.serializeAws_json1_1ListForecastsCommand = exports.serializeAws_json1_1ListForecastExportJobsCommand = exports.serializeAws_json1_1ListExplainabilityExportsCommand = exports.serializeAws_json1_1ListExplainabilitiesCommand = exports.serializeAws_json1_1ListDatasetsCommand = exports.serializeAws_json1_1ListDatasetImportJobsCommand = exports.serializeAws_json1_1ListDatasetGroupsCommand = exports.serializeAws_json1_1GetAccuracyMetricsCommand = exports.serializeAws_json1_1DescribePredictorBacktestExportJobCommand = exports.serializeAws_json1_1DescribePredictorCommand = exports.serializeAws_json1_1DescribeForecastExportJobCommand = exports.serializeAws_json1_1DescribeForecastCommand = exports.serializeAws_json1_1DescribeExplainabilityExportCommand = exports.serializeAws_json1_1DescribeExplainabilityCommand = exports.serializeAws_json1_1DescribeDatasetImportJobCommand = exports.serializeAws_json1_1DescribeDatasetGroupCommand = exports.serializeAws_json1_1DescribeDatasetCommand = exports.serializeAws_json1_1DescribeAutoPredictorCommand = exports.serializeAws_json1_1DeleteResourceTreeCommand = exports.serializeAws_json1_1DeletePredictorBacktestExportJobCommand = exports.serializeAws_json1_1DeletePredictorCommand = exports.serializeAws_json1_1DeleteForecastExportJobCommand = exports.serializeAws_json1_1DeleteForecastCommand = exports.serializeAws_json1_1DeleteExplainabilityExportCommand = exports.serializeAws_json1_1DeleteExplainabilityCommand = exports.serializeAws_json1_1DeleteDatasetImportJobCommand = exports.serializeAws_json1_1DeleteDatasetGroupCommand = exports.serializeAws_json1_1DeleteDatasetCommand = exports.serializeAws_json1_1CreatePredictorBacktestExportJobCommand = exports.serializeAws_json1_1CreatePredictorCommand = exports.serializeAws_json1_1CreateForecastExportJobCommand = exports.serializeAws_json1_1CreateForecastCommand = exports.serializeAws_json1_1CreateExplainabilityExportCommand = exports.serializeAws_json1_1CreateExplainabilityCommand = exports.serializeAws_json1_1CreateDatasetImportJobCommand = exports.serializeAws_json1_1CreateDatasetGroupCommand = exports.serializeAws_json1_1CreateDatasetCommand = exports.serializeAws_json1_1CreateAutoPredictorCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_1UpdateDatasetGroupCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StopResourceCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListPredictorsCommand = exports.deserializeAws_json1_1ListPredictorBacktestExportJobsCommand = exports.deserializeAws_json1_1ListForecastsCommand = exports.deserializeAws_json1_1ListForecastExportJobsCommand = exports.deserializeAws_json1_1ListExplainabilityExportsCommand = exports.deserializeAws_json1_1ListExplainabilitiesCommand = exports.deserializeAws_json1_1ListDatasetsCommand = exports.deserializeAws_json1_1ListDatasetImportJobsCommand = exports.deserializeAws_json1_1ListDatasetGroupsCommand = exports.deserializeAws_json1_1GetAccuracyMetricsCommand = exports.deserializeAws_json1_1DescribePredictorBacktestExportJobCommand = exports.deserializeAws_json1_1DescribePredictorCommand = exports.deserializeAws_json1_1DescribeForecastExportJobCommand = exports.deserializeAws_json1_1DescribeForecastCommand = exports.deserializeAws_json1_1DescribeExplainabilityExportCommand = exports.deserializeAws_json1_1DescribeExplainabilityCommand = exports.deserializeAws_json1_1DescribeDatasetImportJobCommand = exports.deserializeAws_json1_1DescribeDatasetGroupCommand = exports.deserializeAws_json1_1DescribeDatasetCommand = exports.deserializeAws_json1_1DescribeAutoPredictorCommand = exports.deserializeAws_json1_1DeleteResourceTreeCommand = exports.deserializeAws_json1_1DeletePredictorBacktestExportJobCommand = exports.deserializeAws_json1_1DeletePredictorCommand = exports.deserializeAws_json1_1DeleteForecastExportJobCommand = exports.deserializeAws_json1_1DeleteForecastCommand = exports.deserializeAws_json1_1DeleteExplainabilityExportCommand = exports.deserializeAws_json1_1DeleteExplainabilityCommand = exports.deserializeAws_json1_1DeleteDatasetImportJobCommand = exports.deserializeAws_json1_1DeleteDatasetGroupCommand = exports.deserializeAws_json1_1DeleteDatasetCommand = exports.deserializeAws_json1_1CreatePredictorBacktestExportJobCommand = exports.deserializeAws_json1_1CreatePredictorCommand = exports.deserializeAws_json1_1CreateForecastExportJobCommand = exports.deserializeAws_json1_1CreateForecastCommand = exports.deserializeAws_json1_1CreateExplainabilityExportCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const serializeAws_json1_1CreateAutoPredictorCommand = async (input, context) => {
|
|
8
|
+
const headers = {
|
|
9
|
+
"content-type": "application/x-amz-json-1.1",
|
|
10
|
+
"x-amz-target": "AmazonForecast.CreateAutoPredictor",
|
|
11
|
+
};
|
|
12
|
+
let body;
|
|
13
|
+
body = JSON.stringify(serializeAws_json1_1CreateAutoPredictorRequest(input, context));
|
|
14
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
15
|
+
};
|
|
16
|
+
exports.serializeAws_json1_1CreateAutoPredictorCommand = serializeAws_json1_1CreateAutoPredictorCommand;
|
|
7
17
|
const serializeAws_json1_1CreateDatasetCommand = async (input, context) => {
|
|
8
18
|
const headers = {
|
|
9
19
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -34,6 +44,26 @@ const serializeAws_json1_1CreateDatasetImportJobCommand = async (input, context)
|
|
|
34
44
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
45
|
};
|
|
36
46
|
exports.serializeAws_json1_1CreateDatasetImportJobCommand = serializeAws_json1_1CreateDatasetImportJobCommand;
|
|
47
|
+
const serializeAws_json1_1CreateExplainabilityCommand = async (input, context) => {
|
|
48
|
+
const headers = {
|
|
49
|
+
"content-type": "application/x-amz-json-1.1",
|
|
50
|
+
"x-amz-target": "AmazonForecast.CreateExplainability",
|
|
51
|
+
};
|
|
52
|
+
let body;
|
|
53
|
+
body = JSON.stringify(serializeAws_json1_1CreateExplainabilityRequest(input, context));
|
|
54
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
55
|
+
};
|
|
56
|
+
exports.serializeAws_json1_1CreateExplainabilityCommand = serializeAws_json1_1CreateExplainabilityCommand;
|
|
57
|
+
const serializeAws_json1_1CreateExplainabilityExportCommand = async (input, context) => {
|
|
58
|
+
const headers = {
|
|
59
|
+
"content-type": "application/x-amz-json-1.1",
|
|
60
|
+
"x-amz-target": "AmazonForecast.CreateExplainabilityExport",
|
|
61
|
+
};
|
|
62
|
+
let body;
|
|
63
|
+
body = JSON.stringify(serializeAws_json1_1CreateExplainabilityExportRequest(input, context));
|
|
64
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
+
};
|
|
66
|
+
exports.serializeAws_json1_1CreateExplainabilityExportCommand = serializeAws_json1_1CreateExplainabilityExportCommand;
|
|
37
67
|
const serializeAws_json1_1CreateForecastCommand = async (input, context) => {
|
|
38
68
|
const headers = {
|
|
39
69
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -104,6 +134,26 @@ const serializeAws_json1_1DeleteDatasetImportJobCommand = async (input, context)
|
|
|
104
134
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
105
135
|
};
|
|
106
136
|
exports.serializeAws_json1_1DeleteDatasetImportJobCommand = serializeAws_json1_1DeleteDatasetImportJobCommand;
|
|
137
|
+
const serializeAws_json1_1DeleteExplainabilityCommand = async (input, context) => {
|
|
138
|
+
const headers = {
|
|
139
|
+
"content-type": "application/x-amz-json-1.1",
|
|
140
|
+
"x-amz-target": "AmazonForecast.DeleteExplainability",
|
|
141
|
+
};
|
|
142
|
+
let body;
|
|
143
|
+
body = JSON.stringify(serializeAws_json1_1DeleteExplainabilityRequest(input, context));
|
|
144
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
145
|
+
};
|
|
146
|
+
exports.serializeAws_json1_1DeleteExplainabilityCommand = serializeAws_json1_1DeleteExplainabilityCommand;
|
|
147
|
+
const serializeAws_json1_1DeleteExplainabilityExportCommand = async (input, context) => {
|
|
148
|
+
const headers = {
|
|
149
|
+
"content-type": "application/x-amz-json-1.1",
|
|
150
|
+
"x-amz-target": "AmazonForecast.DeleteExplainabilityExport",
|
|
151
|
+
};
|
|
152
|
+
let body;
|
|
153
|
+
body = JSON.stringify(serializeAws_json1_1DeleteExplainabilityExportRequest(input, context));
|
|
154
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
155
|
+
};
|
|
156
|
+
exports.serializeAws_json1_1DeleteExplainabilityExportCommand = serializeAws_json1_1DeleteExplainabilityExportCommand;
|
|
107
157
|
const serializeAws_json1_1DeleteForecastCommand = async (input, context) => {
|
|
108
158
|
const headers = {
|
|
109
159
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -154,6 +204,16 @@ const serializeAws_json1_1DeleteResourceTreeCommand = async (input, context) =>
|
|
|
154
204
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
155
205
|
};
|
|
156
206
|
exports.serializeAws_json1_1DeleteResourceTreeCommand = serializeAws_json1_1DeleteResourceTreeCommand;
|
|
207
|
+
const serializeAws_json1_1DescribeAutoPredictorCommand = async (input, context) => {
|
|
208
|
+
const headers = {
|
|
209
|
+
"content-type": "application/x-amz-json-1.1",
|
|
210
|
+
"x-amz-target": "AmazonForecast.DescribeAutoPredictor",
|
|
211
|
+
};
|
|
212
|
+
let body;
|
|
213
|
+
body = JSON.stringify(serializeAws_json1_1DescribeAutoPredictorRequest(input, context));
|
|
214
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
215
|
+
};
|
|
216
|
+
exports.serializeAws_json1_1DescribeAutoPredictorCommand = serializeAws_json1_1DescribeAutoPredictorCommand;
|
|
157
217
|
const serializeAws_json1_1DescribeDatasetCommand = async (input, context) => {
|
|
158
218
|
const headers = {
|
|
159
219
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -184,6 +244,26 @@ const serializeAws_json1_1DescribeDatasetImportJobCommand = async (input, contex
|
|
|
184
244
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
185
245
|
};
|
|
186
246
|
exports.serializeAws_json1_1DescribeDatasetImportJobCommand = serializeAws_json1_1DescribeDatasetImportJobCommand;
|
|
247
|
+
const serializeAws_json1_1DescribeExplainabilityCommand = async (input, context) => {
|
|
248
|
+
const headers = {
|
|
249
|
+
"content-type": "application/x-amz-json-1.1",
|
|
250
|
+
"x-amz-target": "AmazonForecast.DescribeExplainability",
|
|
251
|
+
};
|
|
252
|
+
let body;
|
|
253
|
+
body = JSON.stringify(serializeAws_json1_1DescribeExplainabilityRequest(input, context));
|
|
254
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
255
|
+
};
|
|
256
|
+
exports.serializeAws_json1_1DescribeExplainabilityCommand = serializeAws_json1_1DescribeExplainabilityCommand;
|
|
257
|
+
const serializeAws_json1_1DescribeExplainabilityExportCommand = async (input, context) => {
|
|
258
|
+
const headers = {
|
|
259
|
+
"content-type": "application/x-amz-json-1.1",
|
|
260
|
+
"x-amz-target": "AmazonForecast.DescribeExplainabilityExport",
|
|
261
|
+
};
|
|
262
|
+
let body;
|
|
263
|
+
body = JSON.stringify(serializeAws_json1_1DescribeExplainabilityExportRequest(input, context));
|
|
264
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
265
|
+
};
|
|
266
|
+
exports.serializeAws_json1_1DescribeExplainabilityExportCommand = serializeAws_json1_1DescribeExplainabilityExportCommand;
|
|
187
267
|
const serializeAws_json1_1DescribeForecastCommand = async (input, context) => {
|
|
188
268
|
const headers = {
|
|
189
269
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -264,6 +344,26 @@ const serializeAws_json1_1ListDatasetsCommand = async (input, context) => {
|
|
|
264
344
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
265
345
|
};
|
|
266
346
|
exports.serializeAws_json1_1ListDatasetsCommand = serializeAws_json1_1ListDatasetsCommand;
|
|
347
|
+
const serializeAws_json1_1ListExplainabilitiesCommand = async (input, context) => {
|
|
348
|
+
const headers = {
|
|
349
|
+
"content-type": "application/x-amz-json-1.1",
|
|
350
|
+
"x-amz-target": "AmazonForecast.ListExplainabilities",
|
|
351
|
+
};
|
|
352
|
+
let body;
|
|
353
|
+
body = JSON.stringify(serializeAws_json1_1ListExplainabilitiesRequest(input, context));
|
|
354
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
355
|
+
};
|
|
356
|
+
exports.serializeAws_json1_1ListExplainabilitiesCommand = serializeAws_json1_1ListExplainabilitiesCommand;
|
|
357
|
+
const serializeAws_json1_1ListExplainabilityExportsCommand = async (input, context) => {
|
|
358
|
+
const headers = {
|
|
359
|
+
"content-type": "application/x-amz-json-1.1",
|
|
360
|
+
"x-amz-target": "AmazonForecast.ListExplainabilityExports",
|
|
361
|
+
};
|
|
362
|
+
let body;
|
|
363
|
+
body = JSON.stringify(serializeAws_json1_1ListExplainabilityExportsRequest(input, context));
|
|
364
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
365
|
+
};
|
|
366
|
+
exports.serializeAws_json1_1ListExplainabilityExportsCommand = serializeAws_json1_1ListExplainabilityExportsCommand;
|
|
267
367
|
const serializeAws_json1_1ListForecastExportJobsCommand = async (input, context) => {
|
|
268
368
|
const headers = {
|
|
269
369
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -354,6 +454,85 @@ const serializeAws_json1_1UpdateDatasetGroupCommand = async (input, context) =>
|
|
|
354
454
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
355
455
|
};
|
|
356
456
|
exports.serializeAws_json1_1UpdateDatasetGroupCommand = serializeAws_json1_1UpdateDatasetGroupCommand;
|
|
457
|
+
const deserializeAws_json1_1CreateAutoPredictorCommand = async (output, context) => {
|
|
458
|
+
if (output.statusCode >= 300) {
|
|
459
|
+
return deserializeAws_json1_1CreateAutoPredictorCommandError(output, context);
|
|
460
|
+
}
|
|
461
|
+
const data = await parseBody(output.body, context);
|
|
462
|
+
let contents = {};
|
|
463
|
+
contents = deserializeAws_json1_1CreateAutoPredictorResponse(data, context);
|
|
464
|
+
const response = {
|
|
465
|
+
$metadata: deserializeMetadata(output),
|
|
466
|
+
...contents,
|
|
467
|
+
};
|
|
468
|
+
return Promise.resolve(response);
|
|
469
|
+
};
|
|
470
|
+
exports.deserializeAws_json1_1CreateAutoPredictorCommand = deserializeAws_json1_1CreateAutoPredictorCommand;
|
|
471
|
+
const deserializeAws_json1_1CreateAutoPredictorCommandError = async (output, context) => {
|
|
472
|
+
const parsedOutput = {
|
|
473
|
+
...output,
|
|
474
|
+
body: await parseBody(output.body, context),
|
|
475
|
+
};
|
|
476
|
+
let response;
|
|
477
|
+
let errorCode = "UnknownError";
|
|
478
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
479
|
+
switch (errorCode) {
|
|
480
|
+
case "InvalidInputException":
|
|
481
|
+
case "com.amazonaws.forecast#InvalidInputException":
|
|
482
|
+
response = {
|
|
483
|
+
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
484
|
+
name: errorCode,
|
|
485
|
+
$metadata: deserializeMetadata(output),
|
|
486
|
+
};
|
|
487
|
+
break;
|
|
488
|
+
case "LimitExceededException":
|
|
489
|
+
case "com.amazonaws.forecast#LimitExceededException":
|
|
490
|
+
response = {
|
|
491
|
+
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
492
|
+
name: errorCode,
|
|
493
|
+
$metadata: deserializeMetadata(output),
|
|
494
|
+
};
|
|
495
|
+
break;
|
|
496
|
+
case "ResourceAlreadyExistsException":
|
|
497
|
+
case "com.amazonaws.forecast#ResourceAlreadyExistsException":
|
|
498
|
+
response = {
|
|
499
|
+
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
500
|
+
name: errorCode,
|
|
501
|
+
$metadata: deserializeMetadata(output),
|
|
502
|
+
};
|
|
503
|
+
break;
|
|
504
|
+
case "ResourceInUseException":
|
|
505
|
+
case "com.amazonaws.forecast#ResourceInUseException":
|
|
506
|
+
response = {
|
|
507
|
+
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
508
|
+
name: errorCode,
|
|
509
|
+
$metadata: deserializeMetadata(output),
|
|
510
|
+
};
|
|
511
|
+
break;
|
|
512
|
+
case "ResourceNotFoundException":
|
|
513
|
+
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
514
|
+
response = {
|
|
515
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
516
|
+
name: errorCode,
|
|
517
|
+
$metadata: deserializeMetadata(output),
|
|
518
|
+
};
|
|
519
|
+
break;
|
|
520
|
+
default:
|
|
521
|
+
const parsedBody = parsedOutput.body;
|
|
522
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
523
|
+
response = {
|
|
524
|
+
...parsedBody,
|
|
525
|
+
name: `${errorCode}`,
|
|
526
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
527
|
+
$fault: "client",
|
|
528
|
+
$metadata: deserializeMetadata(output),
|
|
529
|
+
};
|
|
530
|
+
}
|
|
531
|
+
const message = response.message || response.Message || errorCode;
|
|
532
|
+
response.message = message;
|
|
533
|
+
delete response.Message;
|
|
534
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
535
|
+
};
|
|
357
536
|
const deserializeAws_json1_1CreateDatasetCommand = async (output, context) => {
|
|
358
537
|
if (output.statusCode >= 300) {
|
|
359
538
|
return deserializeAws_json1_1CreateDatasetCommandError(output, context);
|
|
@@ -575,21 +754,21 @@ const deserializeAws_json1_1CreateDatasetImportJobCommandError = async (output,
|
|
|
575
754
|
delete response.Message;
|
|
576
755
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
577
756
|
};
|
|
578
|
-
const
|
|
757
|
+
const deserializeAws_json1_1CreateExplainabilityCommand = async (output, context) => {
|
|
579
758
|
if (output.statusCode >= 300) {
|
|
580
|
-
return
|
|
759
|
+
return deserializeAws_json1_1CreateExplainabilityCommandError(output, context);
|
|
581
760
|
}
|
|
582
761
|
const data = await parseBody(output.body, context);
|
|
583
762
|
let contents = {};
|
|
584
|
-
contents =
|
|
763
|
+
contents = deserializeAws_json1_1CreateExplainabilityResponse(data, context);
|
|
585
764
|
const response = {
|
|
586
765
|
$metadata: deserializeMetadata(output),
|
|
587
766
|
...contents,
|
|
588
767
|
};
|
|
589
768
|
return Promise.resolve(response);
|
|
590
769
|
};
|
|
591
|
-
exports.
|
|
592
|
-
const
|
|
770
|
+
exports.deserializeAws_json1_1CreateExplainabilityCommand = deserializeAws_json1_1CreateExplainabilityCommand;
|
|
771
|
+
const deserializeAws_json1_1CreateExplainabilityCommandError = async (output, context) => {
|
|
593
772
|
const parsedOutput = {
|
|
594
773
|
...output,
|
|
595
774
|
body: await parseBody(output.body, context),
|
|
@@ -654,21 +833,21 @@ const deserializeAws_json1_1CreateForecastCommandError = async (output, context)
|
|
|
654
833
|
delete response.Message;
|
|
655
834
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
656
835
|
};
|
|
657
|
-
const
|
|
836
|
+
const deserializeAws_json1_1CreateExplainabilityExportCommand = async (output, context) => {
|
|
658
837
|
if (output.statusCode >= 300) {
|
|
659
|
-
return
|
|
838
|
+
return deserializeAws_json1_1CreateExplainabilityExportCommandError(output, context);
|
|
660
839
|
}
|
|
661
840
|
const data = await parseBody(output.body, context);
|
|
662
841
|
let contents = {};
|
|
663
|
-
contents =
|
|
842
|
+
contents = deserializeAws_json1_1CreateExplainabilityExportResponse(data, context);
|
|
664
843
|
const response = {
|
|
665
844
|
$metadata: deserializeMetadata(output),
|
|
666
845
|
...contents,
|
|
667
846
|
};
|
|
668
847
|
return Promise.resolve(response);
|
|
669
848
|
};
|
|
670
|
-
exports.
|
|
671
|
-
const
|
|
849
|
+
exports.deserializeAws_json1_1CreateExplainabilityExportCommand = deserializeAws_json1_1CreateExplainabilityExportCommand;
|
|
850
|
+
const deserializeAws_json1_1CreateExplainabilityExportCommandError = async (output, context) => {
|
|
672
851
|
const parsedOutput = {
|
|
673
852
|
...output,
|
|
674
853
|
body: await parseBody(output.body, context),
|
|
@@ -733,21 +912,21 @@ const deserializeAws_json1_1CreateForecastExportJobCommandError = async (output,
|
|
|
733
912
|
delete response.Message;
|
|
734
913
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
735
914
|
};
|
|
736
|
-
const
|
|
915
|
+
const deserializeAws_json1_1CreateForecastCommand = async (output, context) => {
|
|
737
916
|
if (output.statusCode >= 300) {
|
|
738
|
-
return
|
|
917
|
+
return deserializeAws_json1_1CreateForecastCommandError(output, context);
|
|
739
918
|
}
|
|
740
919
|
const data = await parseBody(output.body, context);
|
|
741
920
|
let contents = {};
|
|
742
|
-
contents =
|
|
921
|
+
contents = deserializeAws_json1_1CreateForecastResponse(data, context);
|
|
743
922
|
const response = {
|
|
744
923
|
$metadata: deserializeMetadata(output),
|
|
745
924
|
...contents,
|
|
746
925
|
};
|
|
747
926
|
return Promise.resolve(response);
|
|
748
927
|
};
|
|
749
|
-
exports.
|
|
750
|
-
const
|
|
928
|
+
exports.deserializeAws_json1_1CreateForecastCommand = deserializeAws_json1_1CreateForecastCommand;
|
|
929
|
+
const deserializeAws_json1_1CreateForecastCommandError = async (output, context) => {
|
|
751
930
|
const parsedOutput = {
|
|
752
931
|
...output,
|
|
753
932
|
body: await parseBody(output.body, context),
|
|
@@ -812,21 +991,21 @@ const deserializeAws_json1_1CreatePredictorCommandError = async (output, context
|
|
|
812
991
|
delete response.Message;
|
|
813
992
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
814
993
|
};
|
|
815
|
-
const
|
|
994
|
+
const deserializeAws_json1_1CreateForecastExportJobCommand = async (output, context) => {
|
|
816
995
|
if (output.statusCode >= 300) {
|
|
817
|
-
return
|
|
996
|
+
return deserializeAws_json1_1CreateForecastExportJobCommandError(output, context);
|
|
818
997
|
}
|
|
819
998
|
const data = await parseBody(output.body, context);
|
|
820
999
|
let contents = {};
|
|
821
|
-
contents =
|
|
1000
|
+
contents = deserializeAws_json1_1CreateForecastExportJobResponse(data, context);
|
|
822
1001
|
const response = {
|
|
823
1002
|
$metadata: deserializeMetadata(output),
|
|
824
1003
|
...contents,
|
|
825
1004
|
};
|
|
826
1005
|
return Promise.resolve(response);
|
|
827
1006
|
};
|
|
828
|
-
exports.
|
|
829
|
-
const
|
|
1007
|
+
exports.deserializeAws_json1_1CreateForecastExportJobCommand = deserializeAws_json1_1CreateForecastExportJobCommand;
|
|
1008
|
+
const deserializeAws_json1_1CreateForecastExportJobCommandError = async (output, context) => {
|
|
830
1009
|
const parsedOutput = {
|
|
831
1010
|
...output,
|
|
832
1011
|
body: await parseBody(output.body, context),
|
|
@@ -891,18 +1070,21 @@ const deserializeAws_json1_1CreatePredictorBacktestExportJobCommandError = async
|
|
|
891
1070
|
delete response.Message;
|
|
892
1071
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
893
1072
|
};
|
|
894
|
-
const
|
|
1073
|
+
const deserializeAws_json1_1CreatePredictorCommand = async (output, context) => {
|
|
895
1074
|
if (output.statusCode >= 300) {
|
|
896
|
-
return
|
|
1075
|
+
return deserializeAws_json1_1CreatePredictorCommandError(output, context);
|
|
897
1076
|
}
|
|
898
|
-
await
|
|
1077
|
+
const data = await parseBody(output.body, context);
|
|
1078
|
+
let contents = {};
|
|
1079
|
+
contents = deserializeAws_json1_1CreatePredictorResponse(data, context);
|
|
899
1080
|
const response = {
|
|
900
1081
|
$metadata: deserializeMetadata(output),
|
|
1082
|
+
...contents,
|
|
901
1083
|
};
|
|
902
1084
|
return Promise.resolve(response);
|
|
903
1085
|
};
|
|
904
|
-
exports.
|
|
905
|
-
const
|
|
1086
|
+
exports.deserializeAws_json1_1CreatePredictorCommand = deserializeAws_json1_1CreatePredictorCommand;
|
|
1087
|
+
const deserializeAws_json1_1CreatePredictorCommandError = async (output, context) => {
|
|
906
1088
|
const parsedOutput = {
|
|
907
1089
|
...output,
|
|
908
1090
|
body: await parseBody(output.body, context),
|
|
@@ -919,6 +1101,22 @@ const deserializeAws_json1_1DeleteDatasetCommandError = async (output, context)
|
|
|
919
1101
|
$metadata: deserializeMetadata(output),
|
|
920
1102
|
};
|
|
921
1103
|
break;
|
|
1104
|
+
case "LimitExceededException":
|
|
1105
|
+
case "com.amazonaws.forecast#LimitExceededException":
|
|
1106
|
+
response = {
|
|
1107
|
+
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1108
|
+
name: errorCode,
|
|
1109
|
+
$metadata: deserializeMetadata(output),
|
|
1110
|
+
};
|
|
1111
|
+
break;
|
|
1112
|
+
case "ResourceAlreadyExistsException":
|
|
1113
|
+
case "com.amazonaws.forecast#ResourceAlreadyExistsException":
|
|
1114
|
+
response = {
|
|
1115
|
+
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1116
|
+
name: errorCode,
|
|
1117
|
+
$metadata: deserializeMetadata(output),
|
|
1118
|
+
};
|
|
1119
|
+
break;
|
|
922
1120
|
case "ResourceInUseException":
|
|
923
1121
|
case "com.amazonaws.forecast#ResourceInUseException":
|
|
924
1122
|
response = {
|
|
@@ -951,18 +1149,21 @@ const deserializeAws_json1_1DeleteDatasetCommandError = async (output, context)
|
|
|
951
1149
|
delete response.Message;
|
|
952
1150
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
953
1151
|
};
|
|
954
|
-
const
|
|
1152
|
+
const deserializeAws_json1_1CreatePredictorBacktestExportJobCommand = async (output, context) => {
|
|
955
1153
|
if (output.statusCode >= 300) {
|
|
956
|
-
return
|
|
1154
|
+
return deserializeAws_json1_1CreatePredictorBacktestExportJobCommandError(output, context);
|
|
957
1155
|
}
|
|
958
|
-
await
|
|
1156
|
+
const data = await parseBody(output.body, context);
|
|
1157
|
+
let contents = {};
|
|
1158
|
+
contents = deserializeAws_json1_1CreatePredictorBacktestExportJobResponse(data, context);
|
|
959
1159
|
const response = {
|
|
960
1160
|
$metadata: deserializeMetadata(output),
|
|
1161
|
+
...contents,
|
|
961
1162
|
};
|
|
962
1163
|
return Promise.resolve(response);
|
|
963
1164
|
};
|
|
964
|
-
exports.
|
|
965
|
-
const
|
|
1165
|
+
exports.deserializeAws_json1_1CreatePredictorBacktestExportJobCommand = deserializeAws_json1_1CreatePredictorBacktestExportJobCommand;
|
|
1166
|
+
const deserializeAws_json1_1CreatePredictorBacktestExportJobCommandError = async (output, context) => {
|
|
966
1167
|
const parsedOutput = {
|
|
967
1168
|
...output,
|
|
968
1169
|
body: await parseBody(output.body, context),
|
|
@@ -979,6 +1180,22 @@ const deserializeAws_json1_1DeleteDatasetGroupCommandError = async (output, cont
|
|
|
979
1180
|
$metadata: deserializeMetadata(output),
|
|
980
1181
|
};
|
|
981
1182
|
break;
|
|
1183
|
+
case "LimitExceededException":
|
|
1184
|
+
case "com.amazonaws.forecast#LimitExceededException":
|
|
1185
|
+
response = {
|
|
1186
|
+
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1187
|
+
name: errorCode,
|
|
1188
|
+
$metadata: deserializeMetadata(output),
|
|
1189
|
+
};
|
|
1190
|
+
break;
|
|
1191
|
+
case "ResourceAlreadyExistsException":
|
|
1192
|
+
case "com.amazonaws.forecast#ResourceAlreadyExistsException":
|
|
1193
|
+
response = {
|
|
1194
|
+
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1195
|
+
name: errorCode,
|
|
1196
|
+
$metadata: deserializeMetadata(output),
|
|
1197
|
+
};
|
|
1198
|
+
break;
|
|
982
1199
|
case "ResourceInUseException":
|
|
983
1200
|
case "com.amazonaws.forecast#ResourceInUseException":
|
|
984
1201
|
response = {
|
|
@@ -1011,9 +1228,429 @@ const deserializeAws_json1_1DeleteDatasetGroupCommandError = async (output, cont
|
|
|
1011
1228
|
delete response.Message;
|
|
1012
1229
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1013
1230
|
};
|
|
1014
|
-
const
|
|
1231
|
+
const deserializeAws_json1_1DeleteDatasetCommand = async (output, context) => {
|
|
1015
1232
|
if (output.statusCode >= 300) {
|
|
1016
|
-
return
|
|
1233
|
+
return deserializeAws_json1_1DeleteDatasetCommandError(output, context);
|
|
1234
|
+
}
|
|
1235
|
+
await collectBody(output.body, context);
|
|
1236
|
+
const response = {
|
|
1237
|
+
$metadata: deserializeMetadata(output),
|
|
1238
|
+
};
|
|
1239
|
+
return Promise.resolve(response);
|
|
1240
|
+
};
|
|
1241
|
+
exports.deserializeAws_json1_1DeleteDatasetCommand = deserializeAws_json1_1DeleteDatasetCommand;
|
|
1242
|
+
const deserializeAws_json1_1DeleteDatasetCommandError = async (output, context) => {
|
|
1243
|
+
const parsedOutput = {
|
|
1244
|
+
...output,
|
|
1245
|
+
body: await parseBody(output.body, context),
|
|
1246
|
+
};
|
|
1247
|
+
let response;
|
|
1248
|
+
let errorCode = "UnknownError";
|
|
1249
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1250
|
+
switch (errorCode) {
|
|
1251
|
+
case "InvalidInputException":
|
|
1252
|
+
case "com.amazonaws.forecast#InvalidInputException":
|
|
1253
|
+
response = {
|
|
1254
|
+
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1255
|
+
name: errorCode,
|
|
1256
|
+
$metadata: deserializeMetadata(output),
|
|
1257
|
+
};
|
|
1258
|
+
break;
|
|
1259
|
+
case "ResourceInUseException":
|
|
1260
|
+
case "com.amazonaws.forecast#ResourceInUseException":
|
|
1261
|
+
response = {
|
|
1262
|
+
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1263
|
+
name: errorCode,
|
|
1264
|
+
$metadata: deserializeMetadata(output),
|
|
1265
|
+
};
|
|
1266
|
+
break;
|
|
1267
|
+
case "ResourceNotFoundException":
|
|
1268
|
+
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1269
|
+
response = {
|
|
1270
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1271
|
+
name: errorCode,
|
|
1272
|
+
$metadata: deserializeMetadata(output),
|
|
1273
|
+
};
|
|
1274
|
+
break;
|
|
1275
|
+
default:
|
|
1276
|
+
const parsedBody = parsedOutput.body;
|
|
1277
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1278
|
+
response = {
|
|
1279
|
+
...parsedBody,
|
|
1280
|
+
name: `${errorCode}`,
|
|
1281
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1282
|
+
$fault: "client",
|
|
1283
|
+
$metadata: deserializeMetadata(output),
|
|
1284
|
+
};
|
|
1285
|
+
}
|
|
1286
|
+
const message = response.message || response.Message || errorCode;
|
|
1287
|
+
response.message = message;
|
|
1288
|
+
delete response.Message;
|
|
1289
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1290
|
+
};
|
|
1291
|
+
const deserializeAws_json1_1DeleteDatasetGroupCommand = async (output, context) => {
|
|
1292
|
+
if (output.statusCode >= 300) {
|
|
1293
|
+
return deserializeAws_json1_1DeleteDatasetGroupCommandError(output, context);
|
|
1294
|
+
}
|
|
1295
|
+
await collectBody(output.body, context);
|
|
1296
|
+
const response = {
|
|
1297
|
+
$metadata: deserializeMetadata(output),
|
|
1298
|
+
};
|
|
1299
|
+
return Promise.resolve(response);
|
|
1300
|
+
};
|
|
1301
|
+
exports.deserializeAws_json1_1DeleteDatasetGroupCommand = deserializeAws_json1_1DeleteDatasetGroupCommand;
|
|
1302
|
+
const deserializeAws_json1_1DeleteDatasetGroupCommandError = async (output, context) => {
|
|
1303
|
+
const parsedOutput = {
|
|
1304
|
+
...output,
|
|
1305
|
+
body: await parseBody(output.body, context),
|
|
1306
|
+
};
|
|
1307
|
+
let response;
|
|
1308
|
+
let errorCode = "UnknownError";
|
|
1309
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1310
|
+
switch (errorCode) {
|
|
1311
|
+
case "InvalidInputException":
|
|
1312
|
+
case "com.amazonaws.forecast#InvalidInputException":
|
|
1313
|
+
response = {
|
|
1314
|
+
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1315
|
+
name: errorCode,
|
|
1316
|
+
$metadata: deserializeMetadata(output),
|
|
1317
|
+
};
|
|
1318
|
+
break;
|
|
1319
|
+
case "ResourceInUseException":
|
|
1320
|
+
case "com.amazonaws.forecast#ResourceInUseException":
|
|
1321
|
+
response = {
|
|
1322
|
+
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1323
|
+
name: errorCode,
|
|
1324
|
+
$metadata: deserializeMetadata(output),
|
|
1325
|
+
};
|
|
1326
|
+
break;
|
|
1327
|
+
case "ResourceNotFoundException":
|
|
1328
|
+
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1329
|
+
response = {
|
|
1330
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1331
|
+
name: errorCode,
|
|
1332
|
+
$metadata: deserializeMetadata(output),
|
|
1333
|
+
};
|
|
1334
|
+
break;
|
|
1335
|
+
default:
|
|
1336
|
+
const parsedBody = parsedOutput.body;
|
|
1337
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1338
|
+
response = {
|
|
1339
|
+
...parsedBody,
|
|
1340
|
+
name: `${errorCode}`,
|
|
1341
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1342
|
+
$fault: "client",
|
|
1343
|
+
$metadata: deserializeMetadata(output),
|
|
1344
|
+
};
|
|
1345
|
+
}
|
|
1346
|
+
const message = response.message || response.Message || errorCode;
|
|
1347
|
+
response.message = message;
|
|
1348
|
+
delete response.Message;
|
|
1349
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1350
|
+
};
|
|
1351
|
+
const deserializeAws_json1_1DeleteDatasetImportJobCommand = async (output, context) => {
|
|
1352
|
+
if (output.statusCode >= 300) {
|
|
1353
|
+
return deserializeAws_json1_1DeleteDatasetImportJobCommandError(output, context);
|
|
1354
|
+
}
|
|
1355
|
+
await collectBody(output.body, context);
|
|
1356
|
+
const response = {
|
|
1357
|
+
$metadata: deserializeMetadata(output),
|
|
1358
|
+
};
|
|
1359
|
+
return Promise.resolve(response);
|
|
1360
|
+
};
|
|
1361
|
+
exports.deserializeAws_json1_1DeleteDatasetImportJobCommand = deserializeAws_json1_1DeleteDatasetImportJobCommand;
|
|
1362
|
+
const deserializeAws_json1_1DeleteDatasetImportJobCommandError = async (output, context) => {
|
|
1363
|
+
const parsedOutput = {
|
|
1364
|
+
...output,
|
|
1365
|
+
body: await parseBody(output.body, context),
|
|
1366
|
+
};
|
|
1367
|
+
let response;
|
|
1368
|
+
let errorCode = "UnknownError";
|
|
1369
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1370
|
+
switch (errorCode) {
|
|
1371
|
+
case "InvalidInputException":
|
|
1372
|
+
case "com.amazonaws.forecast#InvalidInputException":
|
|
1373
|
+
response = {
|
|
1374
|
+
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1375
|
+
name: errorCode,
|
|
1376
|
+
$metadata: deserializeMetadata(output),
|
|
1377
|
+
};
|
|
1378
|
+
break;
|
|
1379
|
+
case "ResourceInUseException":
|
|
1380
|
+
case "com.amazonaws.forecast#ResourceInUseException":
|
|
1381
|
+
response = {
|
|
1382
|
+
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1383
|
+
name: errorCode,
|
|
1384
|
+
$metadata: deserializeMetadata(output),
|
|
1385
|
+
};
|
|
1386
|
+
break;
|
|
1387
|
+
case "ResourceNotFoundException":
|
|
1388
|
+
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1389
|
+
response = {
|
|
1390
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1391
|
+
name: errorCode,
|
|
1392
|
+
$metadata: deserializeMetadata(output),
|
|
1393
|
+
};
|
|
1394
|
+
break;
|
|
1395
|
+
default:
|
|
1396
|
+
const parsedBody = parsedOutput.body;
|
|
1397
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1398
|
+
response = {
|
|
1399
|
+
...parsedBody,
|
|
1400
|
+
name: `${errorCode}`,
|
|
1401
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1402
|
+
$fault: "client",
|
|
1403
|
+
$metadata: deserializeMetadata(output),
|
|
1404
|
+
};
|
|
1405
|
+
}
|
|
1406
|
+
const message = response.message || response.Message || errorCode;
|
|
1407
|
+
response.message = message;
|
|
1408
|
+
delete response.Message;
|
|
1409
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1410
|
+
};
|
|
1411
|
+
const deserializeAws_json1_1DeleteExplainabilityCommand = async (output, context) => {
|
|
1412
|
+
if (output.statusCode >= 300) {
|
|
1413
|
+
return deserializeAws_json1_1DeleteExplainabilityCommandError(output, context);
|
|
1414
|
+
}
|
|
1415
|
+
await collectBody(output.body, context);
|
|
1416
|
+
const response = {
|
|
1417
|
+
$metadata: deserializeMetadata(output),
|
|
1418
|
+
};
|
|
1419
|
+
return Promise.resolve(response);
|
|
1420
|
+
};
|
|
1421
|
+
exports.deserializeAws_json1_1DeleteExplainabilityCommand = deserializeAws_json1_1DeleteExplainabilityCommand;
|
|
1422
|
+
const deserializeAws_json1_1DeleteExplainabilityCommandError = async (output, context) => {
|
|
1423
|
+
const parsedOutput = {
|
|
1424
|
+
...output,
|
|
1425
|
+
body: await parseBody(output.body, context),
|
|
1426
|
+
};
|
|
1427
|
+
let response;
|
|
1428
|
+
let errorCode = "UnknownError";
|
|
1429
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1430
|
+
switch (errorCode) {
|
|
1431
|
+
case "InvalidInputException":
|
|
1432
|
+
case "com.amazonaws.forecast#InvalidInputException":
|
|
1433
|
+
response = {
|
|
1434
|
+
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1435
|
+
name: errorCode,
|
|
1436
|
+
$metadata: deserializeMetadata(output),
|
|
1437
|
+
};
|
|
1438
|
+
break;
|
|
1439
|
+
case "ResourceInUseException":
|
|
1440
|
+
case "com.amazonaws.forecast#ResourceInUseException":
|
|
1441
|
+
response = {
|
|
1442
|
+
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1443
|
+
name: errorCode,
|
|
1444
|
+
$metadata: deserializeMetadata(output),
|
|
1445
|
+
};
|
|
1446
|
+
break;
|
|
1447
|
+
case "ResourceNotFoundException":
|
|
1448
|
+
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1449
|
+
response = {
|
|
1450
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1451
|
+
name: errorCode,
|
|
1452
|
+
$metadata: deserializeMetadata(output),
|
|
1453
|
+
};
|
|
1454
|
+
break;
|
|
1455
|
+
default:
|
|
1456
|
+
const parsedBody = parsedOutput.body;
|
|
1457
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1458
|
+
response = {
|
|
1459
|
+
...parsedBody,
|
|
1460
|
+
name: `${errorCode}`,
|
|
1461
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1462
|
+
$fault: "client",
|
|
1463
|
+
$metadata: deserializeMetadata(output),
|
|
1464
|
+
};
|
|
1465
|
+
}
|
|
1466
|
+
const message = response.message || response.Message || errorCode;
|
|
1467
|
+
response.message = message;
|
|
1468
|
+
delete response.Message;
|
|
1469
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1470
|
+
};
|
|
1471
|
+
const deserializeAws_json1_1DeleteExplainabilityExportCommand = async (output, context) => {
|
|
1472
|
+
if (output.statusCode >= 300) {
|
|
1473
|
+
return deserializeAws_json1_1DeleteExplainabilityExportCommandError(output, context);
|
|
1474
|
+
}
|
|
1475
|
+
await collectBody(output.body, context);
|
|
1476
|
+
const response = {
|
|
1477
|
+
$metadata: deserializeMetadata(output),
|
|
1478
|
+
};
|
|
1479
|
+
return Promise.resolve(response);
|
|
1480
|
+
};
|
|
1481
|
+
exports.deserializeAws_json1_1DeleteExplainabilityExportCommand = deserializeAws_json1_1DeleteExplainabilityExportCommand;
|
|
1482
|
+
const deserializeAws_json1_1DeleteExplainabilityExportCommandError = async (output, context) => {
|
|
1483
|
+
const parsedOutput = {
|
|
1484
|
+
...output,
|
|
1485
|
+
body: await parseBody(output.body, context),
|
|
1486
|
+
};
|
|
1487
|
+
let response;
|
|
1488
|
+
let errorCode = "UnknownError";
|
|
1489
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1490
|
+
switch (errorCode) {
|
|
1491
|
+
case "InvalidInputException":
|
|
1492
|
+
case "com.amazonaws.forecast#InvalidInputException":
|
|
1493
|
+
response = {
|
|
1494
|
+
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1495
|
+
name: errorCode,
|
|
1496
|
+
$metadata: deserializeMetadata(output),
|
|
1497
|
+
};
|
|
1498
|
+
break;
|
|
1499
|
+
case "ResourceInUseException":
|
|
1500
|
+
case "com.amazonaws.forecast#ResourceInUseException":
|
|
1501
|
+
response = {
|
|
1502
|
+
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1503
|
+
name: errorCode,
|
|
1504
|
+
$metadata: deserializeMetadata(output),
|
|
1505
|
+
};
|
|
1506
|
+
break;
|
|
1507
|
+
case "ResourceNotFoundException":
|
|
1508
|
+
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1509
|
+
response = {
|
|
1510
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1511
|
+
name: errorCode,
|
|
1512
|
+
$metadata: deserializeMetadata(output),
|
|
1513
|
+
};
|
|
1514
|
+
break;
|
|
1515
|
+
default:
|
|
1516
|
+
const parsedBody = parsedOutput.body;
|
|
1517
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1518
|
+
response = {
|
|
1519
|
+
...parsedBody,
|
|
1520
|
+
name: `${errorCode}`,
|
|
1521
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1522
|
+
$fault: "client",
|
|
1523
|
+
$metadata: deserializeMetadata(output),
|
|
1524
|
+
};
|
|
1525
|
+
}
|
|
1526
|
+
const message = response.message || response.Message || errorCode;
|
|
1527
|
+
response.message = message;
|
|
1528
|
+
delete response.Message;
|
|
1529
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1530
|
+
};
|
|
1531
|
+
const deserializeAws_json1_1DeleteForecastCommand = async (output, context) => {
|
|
1532
|
+
if (output.statusCode >= 300) {
|
|
1533
|
+
return deserializeAws_json1_1DeleteForecastCommandError(output, context);
|
|
1534
|
+
}
|
|
1535
|
+
await collectBody(output.body, context);
|
|
1536
|
+
const response = {
|
|
1537
|
+
$metadata: deserializeMetadata(output),
|
|
1538
|
+
};
|
|
1539
|
+
return Promise.resolve(response);
|
|
1540
|
+
};
|
|
1541
|
+
exports.deserializeAws_json1_1DeleteForecastCommand = deserializeAws_json1_1DeleteForecastCommand;
|
|
1542
|
+
const deserializeAws_json1_1DeleteForecastCommandError = async (output, context) => {
|
|
1543
|
+
const parsedOutput = {
|
|
1544
|
+
...output,
|
|
1545
|
+
body: await parseBody(output.body, context),
|
|
1546
|
+
};
|
|
1547
|
+
let response;
|
|
1548
|
+
let errorCode = "UnknownError";
|
|
1549
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1550
|
+
switch (errorCode) {
|
|
1551
|
+
case "InvalidInputException":
|
|
1552
|
+
case "com.amazonaws.forecast#InvalidInputException":
|
|
1553
|
+
response = {
|
|
1554
|
+
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1555
|
+
name: errorCode,
|
|
1556
|
+
$metadata: deserializeMetadata(output),
|
|
1557
|
+
};
|
|
1558
|
+
break;
|
|
1559
|
+
case "ResourceInUseException":
|
|
1560
|
+
case "com.amazonaws.forecast#ResourceInUseException":
|
|
1561
|
+
response = {
|
|
1562
|
+
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1563
|
+
name: errorCode,
|
|
1564
|
+
$metadata: deserializeMetadata(output),
|
|
1565
|
+
};
|
|
1566
|
+
break;
|
|
1567
|
+
case "ResourceNotFoundException":
|
|
1568
|
+
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1569
|
+
response = {
|
|
1570
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1571
|
+
name: errorCode,
|
|
1572
|
+
$metadata: deserializeMetadata(output),
|
|
1573
|
+
};
|
|
1574
|
+
break;
|
|
1575
|
+
default:
|
|
1576
|
+
const parsedBody = parsedOutput.body;
|
|
1577
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1578
|
+
response = {
|
|
1579
|
+
...parsedBody,
|
|
1580
|
+
name: `${errorCode}`,
|
|
1581
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1582
|
+
$fault: "client",
|
|
1583
|
+
$metadata: deserializeMetadata(output),
|
|
1584
|
+
};
|
|
1585
|
+
}
|
|
1586
|
+
const message = response.message || response.Message || errorCode;
|
|
1587
|
+
response.message = message;
|
|
1588
|
+
delete response.Message;
|
|
1589
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1590
|
+
};
|
|
1591
|
+
const deserializeAws_json1_1DeleteForecastExportJobCommand = async (output, context) => {
|
|
1592
|
+
if (output.statusCode >= 300) {
|
|
1593
|
+
return deserializeAws_json1_1DeleteForecastExportJobCommandError(output, context);
|
|
1594
|
+
}
|
|
1595
|
+
await collectBody(output.body, context);
|
|
1596
|
+
const response = {
|
|
1597
|
+
$metadata: deserializeMetadata(output),
|
|
1598
|
+
};
|
|
1599
|
+
return Promise.resolve(response);
|
|
1600
|
+
};
|
|
1601
|
+
exports.deserializeAws_json1_1DeleteForecastExportJobCommand = deserializeAws_json1_1DeleteForecastExportJobCommand;
|
|
1602
|
+
const deserializeAws_json1_1DeleteForecastExportJobCommandError = async (output, context) => {
|
|
1603
|
+
const parsedOutput = {
|
|
1604
|
+
...output,
|
|
1605
|
+
body: await parseBody(output.body, context),
|
|
1606
|
+
};
|
|
1607
|
+
let response;
|
|
1608
|
+
let errorCode = "UnknownError";
|
|
1609
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1610
|
+
switch (errorCode) {
|
|
1611
|
+
case "InvalidInputException":
|
|
1612
|
+
case "com.amazonaws.forecast#InvalidInputException":
|
|
1613
|
+
response = {
|
|
1614
|
+
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1615
|
+
name: errorCode,
|
|
1616
|
+
$metadata: deserializeMetadata(output),
|
|
1617
|
+
};
|
|
1618
|
+
break;
|
|
1619
|
+
case "ResourceInUseException":
|
|
1620
|
+
case "com.amazonaws.forecast#ResourceInUseException":
|
|
1621
|
+
response = {
|
|
1622
|
+
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1623
|
+
name: errorCode,
|
|
1624
|
+
$metadata: deserializeMetadata(output),
|
|
1625
|
+
};
|
|
1626
|
+
break;
|
|
1627
|
+
case "ResourceNotFoundException":
|
|
1628
|
+
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1629
|
+
response = {
|
|
1630
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1631
|
+
name: errorCode,
|
|
1632
|
+
$metadata: deserializeMetadata(output),
|
|
1633
|
+
};
|
|
1634
|
+
break;
|
|
1635
|
+
default:
|
|
1636
|
+
const parsedBody = parsedOutput.body;
|
|
1637
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1638
|
+
response = {
|
|
1639
|
+
...parsedBody,
|
|
1640
|
+
name: `${errorCode}`,
|
|
1641
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1642
|
+
$fault: "client",
|
|
1643
|
+
$metadata: deserializeMetadata(output),
|
|
1644
|
+
};
|
|
1645
|
+
}
|
|
1646
|
+
const message = response.message || response.Message || errorCode;
|
|
1647
|
+
response.message = message;
|
|
1648
|
+
delete response.Message;
|
|
1649
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1650
|
+
};
|
|
1651
|
+
const deserializeAws_json1_1DeletePredictorCommand = async (output, context) => {
|
|
1652
|
+
if (output.statusCode >= 300) {
|
|
1653
|
+
return deserializeAws_json1_1DeletePredictorCommandError(output, context);
|
|
1017
1654
|
}
|
|
1018
1655
|
await collectBody(output.body, context);
|
|
1019
1656
|
const response = {
|
|
@@ -1021,8 +1658,8 @@ const deserializeAws_json1_1DeleteDatasetImportJobCommand = async (output, conte
|
|
|
1021
1658
|
};
|
|
1022
1659
|
return Promise.resolve(response);
|
|
1023
1660
|
};
|
|
1024
|
-
exports.
|
|
1025
|
-
const
|
|
1661
|
+
exports.deserializeAws_json1_1DeletePredictorCommand = deserializeAws_json1_1DeletePredictorCommand;
|
|
1662
|
+
const deserializeAws_json1_1DeletePredictorCommandError = async (output, context) => {
|
|
1026
1663
|
const parsedOutput = {
|
|
1027
1664
|
...output,
|
|
1028
1665
|
body: await parseBody(output.body, context),
|
|
@@ -1071,9 +1708,9 @@ const deserializeAws_json1_1DeleteDatasetImportJobCommandError = async (output,
|
|
|
1071
1708
|
delete response.Message;
|
|
1072
1709
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1073
1710
|
};
|
|
1074
|
-
const
|
|
1711
|
+
const deserializeAws_json1_1DeletePredictorBacktestExportJobCommand = async (output, context) => {
|
|
1075
1712
|
if (output.statusCode >= 300) {
|
|
1076
|
-
return
|
|
1713
|
+
return deserializeAws_json1_1DeletePredictorBacktestExportJobCommandError(output, context);
|
|
1077
1714
|
}
|
|
1078
1715
|
await collectBody(output.body, context);
|
|
1079
1716
|
const response = {
|
|
@@ -1081,8 +1718,8 @@ const deserializeAws_json1_1DeleteForecastCommand = async (output, context) => {
|
|
|
1081
1718
|
};
|
|
1082
1719
|
return Promise.resolve(response);
|
|
1083
1720
|
};
|
|
1084
|
-
exports.
|
|
1085
|
-
const
|
|
1721
|
+
exports.deserializeAws_json1_1DeletePredictorBacktestExportJobCommand = deserializeAws_json1_1DeletePredictorBacktestExportJobCommand;
|
|
1722
|
+
const deserializeAws_json1_1DeletePredictorBacktestExportJobCommandError = async (output, context) => {
|
|
1086
1723
|
const parsedOutput = {
|
|
1087
1724
|
...output,
|
|
1088
1725
|
body: await parseBody(output.body, context),
|
|
@@ -1131,9 +1768,9 @@ const deserializeAws_json1_1DeleteForecastCommandError = async (output, context)
|
|
|
1131
1768
|
delete response.Message;
|
|
1132
1769
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1133
1770
|
};
|
|
1134
|
-
const
|
|
1771
|
+
const deserializeAws_json1_1DeleteResourceTreeCommand = async (output, context) => {
|
|
1135
1772
|
if (output.statusCode >= 300) {
|
|
1136
|
-
return
|
|
1773
|
+
return deserializeAws_json1_1DeleteResourceTreeCommandError(output, context);
|
|
1137
1774
|
}
|
|
1138
1775
|
await collectBody(output.body, context);
|
|
1139
1776
|
const response = {
|
|
@@ -1141,8 +1778,8 @@ const deserializeAws_json1_1DeleteForecastExportJobCommand = async (output, cont
|
|
|
1141
1778
|
};
|
|
1142
1779
|
return Promise.resolve(response);
|
|
1143
1780
|
};
|
|
1144
|
-
exports.
|
|
1145
|
-
const
|
|
1781
|
+
exports.deserializeAws_json1_1DeleteResourceTreeCommand = deserializeAws_json1_1DeleteResourceTreeCommand;
|
|
1782
|
+
const deserializeAws_json1_1DeleteResourceTreeCommandError = async (output, context) => {
|
|
1146
1783
|
const parsedOutput = {
|
|
1147
1784
|
...output,
|
|
1148
1785
|
body: await parseBody(output.body, context),
|
|
@@ -1191,18 +1828,21 @@ const deserializeAws_json1_1DeleteForecastExportJobCommandError = async (output,
|
|
|
1191
1828
|
delete response.Message;
|
|
1192
1829
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1193
1830
|
};
|
|
1194
|
-
const
|
|
1831
|
+
const deserializeAws_json1_1DescribeAutoPredictorCommand = async (output, context) => {
|
|
1195
1832
|
if (output.statusCode >= 300) {
|
|
1196
|
-
return
|
|
1833
|
+
return deserializeAws_json1_1DescribeAutoPredictorCommandError(output, context);
|
|
1197
1834
|
}
|
|
1198
|
-
await
|
|
1835
|
+
const data = await parseBody(output.body, context);
|
|
1836
|
+
let contents = {};
|
|
1837
|
+
contents = deserializeAws_json1_1DescribeAutoPredictorResponse(data, context);
|
|
1199
1838
|
const response = {
|
|
1200
1839
|
$metadata: deserializeMetadata(output),
|
|
1840
|
+
...contents,
|
|
1201
1841
|
};
|
|
1202
1842
|
return Promise.resolve(response);
|
|
1203
1843
|
};
|
|
1204
|
-
exports.
|
|
1205
|
-
const
|
|
1844
|
+
exports.deserializeAws_json1_1DescribeAutoPredictorCommand = deserializeAws_json1_1DescribeAutoPredictorCommand;
|
|
1845
|
+
const deserializeAws_json1_1DescribeAutoPredictorCommandError = async (output, context) => {
|
|
1206
1846
|
const parsedOutput = {
|
|
1207
1847
|
...output,
|
|
1208
1848
|
body: await parseBody(output.body, context),
|
|
@@ -1219,14 +1859,6 @@ const deserializeAws_json1_1DeletePredictorCommandError = async (output, context
|
|
|
1219
1859
|
$metadata: deserializeMetadata(output),
|
|
1220
1860
|
};
|
|
1221
1861
|
break;
|
|
1222
|
-
case "ResourceInUseException":
|
|
1223
|
-
case "com.amazonaws.forecast#ResourceInUseException":
|
|
1224
|
-
response = {
|
|
1225
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1226
|
-
name: errorCode,
|
|
1227
|
-
$metadata: deserializeMetadata(output),
|
|
1228
|
-
};
|
|
1229
|
-
break;
|
|
1230
1862
|
case "ResourceNotFoundException":
|
|
1231
1863
|
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1232
1864
|
response = {
|
|
@@ -1251,18 +1883,21 @@ const deserializeAws_json1_1DeletePredictorCommandError = async (output, context
|
|
|
1251
1883
|
delete response.Message;
|
|
1252
1884
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1253
1885
|
};
|
|
1254
|
-
const
|
|
1886
|
+
const deserializeAws_json1_1DescribeDatasetCommand = async (output, context) => {
|
|
1255
1887
|
if (output.statusCode >= 300) {
|
|
1256
|
-
return
|
|
1888
|
+
return deserializeAws_json1_1DescribeDatasetCommandError(output, context);
|
|
1257
1889
|
}
|
|
1258
|
-
await
|
|
1890
|
+
const data = await parseBody(output.body, context);
|
|
1891
|
+
let contents = {};
|
|
1892
|
+
contents = deserializeAws_json1_1DescribeDatasetResponse(data, context);
|
|
1259
1893
|
const response = {
|
|
1260
1894
|
$metadata: deserializeMetadata(output),
|
|
1895
|
+
...contents,
|
|
1261
1896
|
};
|
|
1262
1897
|
return Promise.resolve(response);
|
|
1263
1898
|
};
|
|
1264
|
-
exports.
|
|
1265
|
-
const
|
|
1899
|
+
exports.deserializeAws_json1_1DescribeDatasetCommand = deserializeAws_json1_1DescribeDatasetCommand;
|
|
1900
|
+
const deserializeAws_json1_1DescribeDatasetCommandError = async (output, context) => {
|
|
1266
1901
|
const parsedOutput = {
|
|
1267
1902
|
...output,
|
|
1268
1903
|
body: await parseBody(output.body, context),
|
|
@@ -1279,14 +1914,6 @@ const deserializeAws_json1_1DeletePredictorBacktestExportJobCommandError = async
|
|
|
1279
1914
|
$metadata: deserializeMetadata(output),
|
|
1280
1915
|
};
|
|
1281
1916
|
break;
|
|
1282
|
-
case "ResourceInUseException":
|
|
1283
|
-
case "com.amazonaws.forecast#ResourceInUseException":
|
|
1284
|
-
response = {
|
|
1285
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1286
|
-
name: errorCode,
|
|
1287
|
-
$metadata: deserializeMetadata(output),
|
|
1288
|
-
};
|
|
1289
|
-
break;
|
|
1290
1917
|
case "ResourceNotFoundException":
|
|
1291
1918
|
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1292
1919
|
response = {
|
|
@@ -1311,18 +1938,21 @@ const deserializeAws_json1_1DeletePredictorBacktestExportJobCommandError = async
|
|
|
1311
1938
|
delete response.Message;
|
|
1312
1939
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1313
1940
|
};
|
|
1314
|
-
const
|
|
1941
|
+
const deserializeAws_json1_1DescribeDatasetGroupCommand = async (output, context) => {
|
|
1315
1942
|
if (output.statusCode >= 300) {
|
|
1316
|
-
return
|
|
1943
|
+
return deserializeAws_json1_1DescribeDatasetGroupCommandError(output, context);
|
|
1317
1944
|
}
|
|
1318
|
-
await
|
|
1945
|
+
const data = await parseBody(output.body, context);
|
|
1946
|
+
let contents = {};
|
|
1947
|
+
contents = deserializeAws_json1_1DescribeDatasetGroupResponse(data, context);
|
|
1319
1948
|
const response = {
|
|
1320
1949
|
$metadata: deserializeMetadata(output),
|
|
1950
|
+
...contents,
|
|
1321
1951
|
};
|
|
1322
1952
|
return Promise.resolve(response);
|
|
1323
1953
|
};
|
|
1324
|
-
exports.
|
|
1325
|
-
const
|
|
1954
|
+
exports.deserializeAws_json1_1DescribeDatasetGroupCommand = deserializeAws_json1_1DescribeDatasetGroupCommand;
|
|
1955
|
+
const deserializeAws_json1_1DescribeDatasetGroupCommandError = async (output, context) => {
|
|
1326
1956
|
const parsedOutput = {
|
|
1327
1957
|
...output,
|
|
1328
1958
|
body: await parseBody(output.body, context),
|
|
@@ -1339,14 +1969,6 @@ const deserializeAws_json1_1DeleteResourceTreeCommandError = async (output, cont
|
|
|
1339
1969
|
$metadata: deserializeMetadata(output),
|
|
1340
1970
|
};
|
|
1341
1971
|
break;
|
|
1342
|
-
case "ResourceInUseException":
|
|
1343
|
-
case "com.amazonaws.forecast#ResourceInUseException":
|
|
1344
|
-
response = {
|
|
1345
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1346
|
-
name: errorCode,
|
|
1347
|
-
$metadata: deserializeMetadata(output),
|
|
1348
|
-
};
|
|
1349
|
-
break;
|
|
1350
1972
|
case "ResourceNotFoundException":
|
|
1351
1973
|
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1352
1974
|
response = {
|
|
@@ -1371,21 +1993,21 @@ const deserializeAws_json1_1DeleteResourceTreeCommandError = async (output, cont
|
|
|
1371
1993
|
delete response.Message;
|
|
1372
1994
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1373
1995
|
};
|
|
1374
|
-
const
|
|
1996
|
+
const deserializeAws_json1_1DescribeDatasetImportJobCommand = async (output, context) => {
|
|
1375
1997
|
if (output.statusCode >= 300) {
|
|
1376
|
-
return
|
|
1998
|
+
return deserializeAws_json1_1DescribeDatasetImportJobCommandError(output, context);
|
|
1377
1999
|
}
|
|
1378
2000
|
const data = await parseBody(output.body, context);
|
|
1379
2001
|
let contents = {};
|
|
1380
|
-
contents =
|
|
2002
|
+
contents = deserializeAws_json1_1DescribeDatasetImportJobResponse(data, context);
|
|
1381
2003
|
const response = {
|
|
1382
2004
|
$metadata: deserializeMetadata(output),
|
|
1383
2005
|
...contents,
|
|
1384
2006
|
};
|
|
1385
2007
|
return Promise.resolve(response);
|
|
1386
2008
|
};
|
|
1387
|
-
exports.
|
|
1388
|
-
const
|
|
2009
|
+
exports.deserializeAws_json1_1DescribeDatasetImportJobCommand = deserializeAws_json1_1DescribeDatasetImportJobCommand;
|
|
2010
|
+
const deserializeAws_json1_1DescribeDatasetImportJobCommandError = async (output, context) => {
|
|
1389
2011
|
const parsedOutput = {
|
|
1390
2012
|
...output,
|
|
1391
2013
|
body: await parseBody(output.body, context),
|
|
@@ -1426,21 +2048,21 @@ const deserializeAws_json1_1DescribeDatasetCommandError = async (output, context
|
|
|
1426
2048
|
delete response.Message;
|
|
1427
2049
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1428
2050
|
};
|
|
1429
|
-
const
|
|
2051
|
+
const deserializeAws_json1_1DescribeExplainabilityCommand = async (output, context) => {
|
|
1430
2052
|
if (output.statusCode >= 300) {
|
|
1431
|
-
return
|
|
2053
|
+
return deserializeAws_json1_1DescribeExplainabilityCommandError(output, context);
|
|
1432
2054
|
}
|
|
1433
2055
|
const data = await parseBody(output.body, context);
|
|
1434
2056
|
let contents = {};
|
|
1435
|
-
contents =
|
|
2057
|
+
contents = deserializeAws_json1_1DescribeExplainabilityResponse(data, context);
|
|
1436
2058
|
const response = {
|
|
1437
2059
|
$metadata: deserializeMetadata(output),
|
|
1438
2060
|
...contents,
|
|
1439
2061
|
};
|
|
1440
2062
|
return Promise.resolve(response);
|
|
1441
2063
|
};
|
|
1442
|
-
exports.
|
|
1443
|
-
const
|
|
2064
|
+
exports.deserializeAws_json1_1DescribeExplainabilityCommand = deserializeAws_json1_1DescribeExplainabilityCommand;
|
|
2065
|
+
const deserializeAws_json1_1DescribeExplainabilityCommandError = async (output, context) => {
|
|
1444
2066
|
const parsedOutput = {
|
|
1445
2067
|
...output,
|
|
1446
2068
|
body: await parseBody(output.body, context),
|
|
@@ -1481,21 +2103,21 @@ const deserializeAws_json1_1DescribeDatasetGroupCommandError = async (output, co
|
|
|
1481
2103
|
delete response.Message;
|
|
1482
2104
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1483
2105
|
};
|
|
1484
|
-
const
|
|
2106
|
+
const deserializeAws_json1_1DescribeExplainabilityExportCommand = async (output, context) => {
|
|
1485
2107
|
if (output.statusCode >= 300) {
|
|
1486
|
-
return
|
|
2108
|
+
return deserializeAws_json1_1DescribeExplainabilityExportCommandError(output, context);
|
|
1487
2109
|
}
|
|
1488
2110
|
const data = await parseBody(output.body, context);
|
|
1489
2111
|
let contents = {};
|
|
1490
|
-
contents =
|
|
2112
|
+
contents = deserializeAws_json1_1DescribeExplainabilityExportResponse(data, context);
|
|
1491
2113
|
const response = {
|
|
1492
2114
|
$metadata: deserializeMetadata(output),
|
|
1493
2115
|
...contents,
|
|
1494
2116
|
};
|
|
1495
2117
|
return Promise.resolve(response);
|
|
1496
2118
|
};
|
|
1497
|
-
exports.
|
|
1498
|
-
const
|
|
2119
|
+
exports.deserializeAws_json1_1DescribeExplainabilityExportCommand = deserializeAws_json1_1DescribeExplainabilityExportCommand;
|
|
2120
|
+
const deserializeAws_json1_1DescribeExplainabilityExportCommandError = async (output, context) => {
|
|
1499
2121
|
const parsedOutput = {
|
|
1500
2122
|
...output,
|
|
1501
2123
|
body: await parseBody(output.body, context),
|
|
@@ -1968,6 +2590,116 @@ const deserializeAws_json1_1ListDatasetsCommandError = async (output, context) =
|
|
|
1968
2590
|
delete response.Message;
|
|
1969
2591
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1970
2592
|
};
|
|
2593
|
+
const deserializeAws_json1_1ListExplainabilitiesCommand = async (output, context) => {
|
|
2594
|
+
if (output.statusCode >= 300) {
|
|
2595
|
+
return deserializeAws_json1_1ListExplainabilitiesCommandError(output, context);
|
|
2596
|
+
}
|
|
2597
|
+
const data = await parseBody(output.body, context);
|
|
2598
|
+
let contents = {};
|
|
2599
|
+
contents = deserializeAws_json1_1ListExplainabilitiesResponse(data, context);
|
|
2600
|
+
const response = {
|
|
2601
|
+
$metadata: deserializeMetadata(output),
|
|
2602
|
+
...contents,
|
|
2603
|
+
};
|
|
2604
|
+
return Promise.resolve(response);
|
|
2605
|
+
};
|
|
2606
|
+
exports.deserializeAws_json1_1ListExplainabilitiesCommand = deserializeAws_json1_1ListExplainabilitiesCommand;
|
|
2607
|
+
const deserializeAws_json1_1ListExplainabilitiesCommandError = async (output, context) => {
|
|
2608
|
+
const parsedOutput = {
|
|
2609
|
+
...output,
|
|
2610
|
+
body: await parseBody(output.body, context),
|
|
2611
|
+
};
|
|
2612
|
+
let response;
|
|
2613
|
+
let errorCode = "UnknownError";
|
|
2614
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2615
|
+
switch (errorCode) {
|
|
2616
|
+
case "InvalidInputException":
|
|
2617
|
+
case "com.amazonaws.forecast#InvalidInputException":
|
|
2618
|
+
response = {
|
|
2619
|
+
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2620
|
+
name: errorCode,
|
|
2621
|
+
$metadata: deserializeMetadata(output),
|
|
2622
|
+
};
|
|
2623
|
+
break;
|
|
2624
|
+
case "InvalidNextTokenException":
|
|
2625
|
+
case "com.amazonaws.forecast#InvalidNextTokenException":
|
|
2626
|
+
response = {
|
|
2627
|
+
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
2628
|
+
name: errorCode,
|
|
2629
|
+
$metadata: deserializeMetadata(output),
|
|
2630
|
+
};
|
|
2631
|
+
break;
|
|
2632
|
+
default:
|
|
2633
|
+
const parsedBody = parsedOutput.body;
|
|
2634
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2635
|
+
response = {
|
|
2636
|
+
...parsedBody,
|
|
2637
|
+
name: `${errorCode}`,
|
|
2638
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2639
|
+
$fault: "client",
|
|
2640
|
+
$metadata: deserializeMetadata(output),
|
|
2641
|
+
};
|
|
2642
|
+
}
|
|
2643
|
+
const message = response.message || response.Message || errorCode;
|
|
2644
|
+
response.message = message;
|
|
2645
|
+
delete response.Message;
|
|
2646
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2647
|
+
};
|
|
2648
|
+
const deserializeAws_json1_1ListExplainabilityExportsCommand = async (output, context) => {
|
|
2649
|
+
if (output.statusCode >= 300) {
|
|
2650
|
+
return deserializeAws_json1_1ListExplainabilityExportsCommandError(output, context);
|
|
2651
|
+
}
|
|
2652
|
+
const data = await parseBody(output.body, context);
|
|
2653
|
+
let contents = {};
|
|
2654
|
+
contents = deserializeAws_json1_1ListExplainabilityExportsResponse(data, context);
|
|
2655
|
+
const response = {
|
|
2656
|
+
$metadata: deserializeMetadata(output),
|
|
2657
|
+
...contents,
|
|
2658
|
+
};
|
|
2659
|
+
return Promise.resolve(response);
|
|
2660
|
+
};
|
|
2661
|
+
exports.deserializeAws_json1_1ListExplainabilityExportsCommand = deserializeAws_json1_1ListExplainabilityExportsCommand;
|
|
2662
|
+
const deserializeAws_json1_1ListExplainabilityExportsCommandError = async (output, context) => {
|
|
2663
|
+
const parsedOutput = {
|
|
2664
|
+
...output,
|
|
2665
|
+
body: await parseBody(output.body, context),
|
|
2666
|
+
};
|
|
2667
|
+
let response;
|
|
2668
|
+
let errorCode = "UnknownError";
|
|
2669
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2670
|
+
switch (errorCode) {
|
|
2671
|
+
case "InvalidInputException":
|
|
2672
|
+
case "com.amazonaws.forecast#InvalidInputException":
|
|
2673
|
+
response = {
|
|
2674
|
+
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2675
|
+
name: errorCode,
|
|
2676
|
+
$metadata: deserializeMetadata(output),
|
|
2677
|
+
};
|
|
2678
|
+
break;
|
|
2679
|
+
case "InvalidNextTokenException":
|
|
2680
|
+
case "com.amazonaws.forecast#InvalidNextTokenException":
|
|
2681
|
+
response = {
|
|
2682
|
+
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
2683
|
+
name: errorCode,
|
|
2684
|
+
$metadata: deserializeMetadata(output),
|
|
2685
|
+
};
|
|
2686
|
+
break;
|
|
2687
|
+
default:
|
|
2688
|
+
const parsedBody = parsedOutput.body;
|
|
2689
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2690
|
+
response = {
|
|
2691
|
+
...parsedBody,
|
|
2692
|
+
name: `${errorCode}`,
|
|
2693
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2694
|
+
$fault: "client",
|
|
2695
|
+
$metadata: deserializeMetadata(output),
|
|
2696
|
+
};
|
|
2697
|
+
}
|
|
2698
|
+
const message = response.message || response.Message || errorCode;
|
|
2699
|
+
response.message = message;
|
|
2700
|
+
delete response.Message;
|
|
2701
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2702
|
+
};
|
|
1971
2703
|
const deserializeAws_json1_1ListForecastExportJobsCommand = async (output, context) => {
|
|
1972
2704
|
if (output.statusCode >= 300) {
|
|
1973
2705
|
return deserializeAws_json1_1ListForecastExportJobsCommandError(output, context);
|
|
@@ -2550,6 +3282,25 @@ const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOut
|
|
|
2550
3282
|
};
|
|
2551
3283
|
return contents;
|
|
2552
3284
|
};
|
|
3285
|
+
const serializeAws_json1_1AdditionalDataset = (input, context) => {
|
|
3286
|
+
return {
|
|
3287
|
+
...(input.Configuration !== undefined &&
|
|
3288
|
+
input.Configuration !== null && {
|
|
3289
|
+
Configuration: serializeAws_json1_1Configuration(input.Configuration, context),
|
|
3290
|
+
}),
|
|
3291
|
+
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
3292
|
+
};
|
|
3293
|
+
};
|
|
3294
|
+
const serializeAws_json1_1AdditionalDatasets = (input, context) => {
|
|
3295
|
+
return input
|
|
3296
|
+
.filter((e) => e != null)
|
|
3297
|
+
.map((entry) => {
|
|
3298
|
+
if (entry === null) {
|
|
3299
|
+
return null;
|
|
3300
|
+
}
|
|
3301
|
+
return serializeAws_json1_1AdditionalDataset(entry, context);
|
|
3302
|
+
});
|
|
3303
|
+
};
|
|
2553
3304
|
const serializeAws_json1_1ArnList = (input, context) => {
|
|
2554
3305
|
return input
|
|
2555
3306
|
.filter((e) => e != null)
|
|
@@ -2560,6 +3311,25 @@ const serializeAws_json1_1ArnList = (input, context) => {
|
|
|
2560
3311
|
return entry;
|
|
2561
3312
|
});
|
|
2562
3313
|
};
|
|
3314
|
+
const serializeAws_json1_1AttributeConfig = (input, context) => {
|
|
3315
|
+
return {
|
|
3316
|
+
...(input.AttributeName !== undefined && input.AttributeName !== null && { AttributeName: input.AttributeName }),
|
|
3317
|
+
...(input.Transformations !== undefined &&
|
|
3318
|
+
input.Transformations !== null && {
|
|
3319
|
+
Transformations: serializeAws_json1_1Transformations(input.Transformations, context),
|
|
3320
|
+
}),
|
|
3321
|
+
};
|
|
3322
|
+
};
|
|
3323
|
+
const serializeAws_json1_1AttributeConfigs = (input, context) => {
|
|
3324
|
+
return input
|
|
3325
|
+
.filter((e) => e != null)
|
|
3326
|
+
.map((entry) => {
|
|
3327
|
+
if (entry === null) {
|
|
3328
|
+
return null;
|
|
3329
|
+
}
|
|
3330
|
+
return serializeAws_json1_1AttributeConfig(entry, context);
|
|
3331
|
+
});
|
|
3332
|
+
};
|
|
2563
3333
|
const serializeAws_json1_1CategoricalParameterRange = (input, context) => {
|
|
2564
3334
|
return {
|
|
2565
3335
|
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
@@ -2577,6 +3347,17 @@ const serializeAws_json1_1CategoricalParameterRanges = (input, context) => {
|
|
|
2577
3347
|
return serializeAws_json1_1CategoricalParameterRange(entry, context);
|
|
2578
3348
|
});
|
|
2579
3349
|
};
|
|
3350
|
+
const serializeAws_json1_1Configuration = (input, context) => {
|
|
3351
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3352
|
+
if (value === null) {
|
|
3353
|
+
return acc;
|
|
3354
|
+
}
|
|
3355
|
+
return {
|
|
3356
|
+
...acc,
|
|
3357
|
+
[key]: serializeAws_json1_1Values(value, context),
|
|
3358
|
+
};
|
|
3359
|
+
}, {});
|
|
3360
|
+
};
|
|
2580
3361
|
const serializeAws_json1_1ContinuousParameterRange = (input, context) => {
|
|
2581
3362
|
return {
|
|
2582
3363
|
...(input.MaxValue !== undefined && input.MaxValue !== null && { MaxValue: smithy_client_1.serializeFloat(input.MaxValue) }),
|
|
@@ -2595,6 +3376,36 @@ const serializeAws_json1_1ContinuousParameterRanges = (input, context) => {
|
|
|
2595
3376
|
return serializeAws_json1_1ContinuousParameterRange(entry, context);
|
|
2596
3377
|
});
|
|
2597
3378
|
};
|
|
3379
|
+
const serializeAws_json1_1CreateAutoPredictorRequest = (input, context) => {
|
|
3380
|
+
return {
|
|
3381
|
+
...(input.DataConfig !== undefined &&
|
|
3382
|
+
input.DataConfig !== null && { DataConfig: serializeAws_json1_1DataConfig(input.DataConfig, context) }),
|
|
3383
|
+
...(input.EncryptionConfig !== undefined &&
|
|
3384
|
+
input.EncryptionConfig !== null && {
|
|
3385
|
+
EncryptionConfig: serializeAws_json1_1EncryptionConfig(input.EncryptionConfig, context),
|
|
3386
|
+
}),
|
|
3387
|
+
...(input.ExplainPredictor !== undefined &&
|
|
3388
|
+
input.ExplainPredictor !== null && { ExplainPredictor: input.ExplainPredictor }),
|
|
3389
|
+
...(input.ForecastDimensions !== undefined &&
|
|
3390
|
+
input.ForecastDimensions !== null && {
|
|
3391
|
+
ForecastDimensions: serializeAws_json1_1ForecastDimensions(input.ForecastDimensions, context),
|
|
3392
|
+
}),
|
|
3393
|
+
...(input.ForecastFrequency !== undefined &&
|
|
3394
|
+
input.ForecastFrequency !== null && { ForecastFrequency: input.ForecastFrequency }),
|
|
3395
|
+
...(input.ForecastHorizon !== undefined &&
|
|
3396
|
+
input.ForecastHorizon !== null && { ForecastHorizon: input.ForecastHorizon }),
|
|
3397
|
+
...(input.ForecastTypes !== undefined &&
|
|
3398
|
+
input.ForecastTypes !== null && {
|
|
3399
|
+
ForecastTypes: serializeAws_json1_1ForecastTypes(input.ForecastTypes, context),
|
|
3400
|
+
}),
|
|
3401
|
+
...(input.OptimizationMetric !== undefined &&
|
|
3402
|
+
input.OptimizationMetric !== null && { OptimizationMetric: input.OptimizationMetric }),
|
|
3403
|
+
...(input.PredictorName !== undefined && input.PredictorName !== null && { PredictorName: input.PredictorName }),
|
|
3404
|
+
...(input.ReferencePredictorArn !== undefined &&
|
|
3405
|
+
input.ReferencePredictorArn !== null && { ReferencePredictorArn: input.ReferencePredictorArn }),
|
|
3406
|
+
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
3407
|
+
};
|
|
3408
|
+
};
|
|
2598
3409
|
const serializeAws_json1_1CreateDatasetGroupRequest = (input, context) => {
|
|
2599
3410
|
return {
|
|
2600
3411
|
...(input.DatasetArns !== undefined &&
|
|
@@ -2637,6 +3448,37 @@ const serializeAws_json1_1CreateDatasetRequest = (input, context) => {
|
|
|
2637
3448
|
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
2638
3449
|
};
|
|
2639
3450
|
};
|
|
3451
|
+
const serializeAws_json1_1CreateExplainabilityExportRequest = (input, context) => {
|
|
3452
|
+
return {
|
|
3453
|
+
...(input.Destination !== undefined &&
|
|
3454
|
+
input.Destination !== null && { Destination: serializeAws_json1_1DataDestination(input.Destination, context) }),
|
|
3455
|
+
...(input.ExplainabilityArn !== undefined &&
|
|
3456
|
+
input.ExplainabilityArn !== null && { ExplainabilityArn: input.ExplainabilityArn }),
|
|
3457
|
+
...(input.ExplainabilityExportName !== undefined &&
|
|
3458
|
+
input.ExplainabilityExportName !== null && { ExplainabilityExportName: input.ExplainabilityExportName }),
|
|
3459
|
+
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
3460
|
+
};
|
|
3461
|
+
};
|
|
3462
|
+
const serializeAws_json1_1CreateExplainabilityRequest = (input, context) => {
|
|
3463
|
+
return {
|
|
3464
|
+
...(input.DataSource !== undefined &&
|
|
3465
|
+
input.DataSource !== null && { DataSource: serializeAws_json1_1DataSource(input.DataSource, context) }),
|
|
3466
|
+
...(input.EnableVisualization !== undefined &&
|
|
3467
|
+
input.EnableVisualization !== null && { EnableVisualization: input.EnableVisualization }),
|
|
3468
|
+
...(input.EndDateTime !== undefined && input.EndDateTime !== null && { EndDateTime: input.EndDateTime }),
|
|
3469
|
+
...(input.ExplainabilityConfig !== undefined &&
|
|
3470
|
+
input.ExplainabilityConfig !== null && {
|
|
3471
|
+
ExplainabilityConfig: serializeAws_json1_1ExplainabilityConfig(input.ExplainabilityConfig, context),
|
|
3472
|
+
}),
|
|
3473
|
+
...(input.ExplainabilityName !== undefined &&
|
|
3474
|
+
input.ExplainabilityName !== null && { ExplainabilityName: input.ExplainabilityName }),
|
|
3475
|
+
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
3476
|
+
...(input.Schema !== undefined &&
|
|
3477
|
+
input.Schema !== null && { Schema: serializeAws_json1_1Schema(input.Schema, context) }),
|
|
3478
|
+
...(input.StartDateTime !== undefined && input.StartDateTime !== null && { StartDateTime: input.StartDateTime }),
|
|
3479
|
+
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
3480
|
+
};
|
|
3481
|
+
};
|
|
2640
3482
|
const serializeAws_json1_1CreateForecastExportJobRequest = (input, context) => {
|
|
2641
3483
|
return {
|
|
2642
3484
|
...(input.Destination !== undefined &&
|
|
@@ -2713,6 +3555,20 @@ const serializeAws_json1_1CreatePredictorRequest = (input, context) => {
|
|
|
2713
3555
|
}),
|
|
2714
3556
|
};
|
|
2715
3557
|
};
|
|
3558
|
+
const serializeAws_json1_1DataConfig = (input, context) => {
|
|
3559
|
+
return {
|
|
3560
|
+
...(input.AdditionalDatasets !== undefined &&
|
|
3561
|
+
input.AdditionalDatasets !== null && {
|
|
3562
|
+
AdditionalDatasets: serializeAws_json1_1AdditionalDatasets(input.AdditionalDatasets, context),
|
|
3563
|
+
}),
|
|
3564
|
+
...(input.AttributeConfigs !== undefined &&
|
|
3565
|
+
input.AttributeConfigs !== null && {
|
|
3566
|
+
AttributeConfigs: serializeAws_json1_1AttributeConfigs(input.AttributeConfigs, context),
|
|
3567
|
+
}),
|
|
3568
|
+
...(input.DatasetGroupArn !== undefined &&
|
|
3569
|
+
input.DatasetGroupArn !== null && { DatasetGroupArn: input.DatasetGroupArn }),
|
|
3570
|
+
};
|
|
3571
|
+
};
|
|
2716
3572
|
const serializeAws_json1_1DataDestination = (input, context) => {
|
|
2717
3573
|
return {
|
|
2718
3574
|
...(input.S3Config !== undefined &&
|
|
@@ -2742,6 +3598,18 @@ const serializeAws_json1_1DeleteDatasetRequest = (input, context) => {
|
|
|
2742
3598
|
...(input.DatasetArn !== undefined && input.DatasetArn !== null && { DatasetArn: input.DatasetArn }),
|
|
2743
3599
|
};
|
|
2744
3600
|
};
|
|
3601
|
+
const serializeAws_json1_1DeleteExplainabilityExportRequest = (input, context) => {
|
|
3602
|
+
return {
|
|
3603
|
+
...(input.ExplainabilityExportArn !== undefined &&
|
|
3604
|
+
input.ExplainabilityExportArn !== null && { ExplainabilityExportArn: input.ExplainabilityExportArn }),
|
|
3605
|
+
};
|
|
3606
|
+
};
|
|
3607
|
+
const serializeAws_json1_1DeleteExplainabilityRequest = (input, context) => {
|
|
3608
|
+
return {
|
|
3609
|
+
...(input.ExplainabilityArn !== undefined &&
|
|
3610
|
+
input.ExplainabilityArn !== null && { ExplainabilityArn: input.ExplainabilityArn }),
|
|
3611
|
+
};
|
|
3612
|
+
};
|
|
2745
3613
|
const serializeAws_json1_1DeleteForecastExportJobRequest = (input, context) => {
|
|
2746
3614
|
return {
|
|
2747
3615
|
...(input.ForecastExportJobArn !== undefined &&
|
|
@@ -2771,6 +3639,11 @@ const serializeAws_json1_1DeleteResourceTreeRequest = (input, context) => {
|
|
|
2771
3639
|
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
2772
3640
|
};
|
|
2773
3641
|
};
|
|
3642
|
+
const serializeAws_json1_1DescribeAutoPredictorRequest = (input, context) => {
|
|
3643
|
+
return {
|
|
3644
|
+
...(input.PredictorArn !== undefined && input.PredictorArn !== null && { PredictorArn: input.PredictorArn }),
|
|
3645
|
+
};
|
|
3646
|
+
};
|
|
2774
3647
|
const serializeAws_json1_1DescribeDatasetGroupRequest = (input, context) => {
|
|
2775
3648
|
return {
|
|
2776
3649
|
...(input.DatasetGroupArn !== undefined &&
|
|
@@ -2788,6 +3661,18 @@ const serializeAws_json1_1DescribeDatasetRequest = (input, context) => {
|
|
|
2788
3661
|
...(input.DatasetArn !== undefined && input.DatasetArn !== null && { DatasetArn: input.DatasetArn }),
|
|
2789
3662
|
};
|
|
2790
3663
|
};
|
|
3664
|
+
const serializeAws_json1_1DescribeExplainabilityExportRequest = (input, context) => {
|
|
3665
|
+
return {
|
|
3666
|
+
...(input.ExplainabilityExportArn !== undefined &&
|
|
3667
|
+
input.ExplainabilityExportArn !== null && { ExplainabilityExportArn: input.ExplainabilityExportArn }),
|
|
3668
|
+
};
|
|
3669
|
+
};
|
|
3670
|
+
const serializeAws_json1_1DescribeExplainabilityRequest = (input, context) => {
|
|
3671
|
+
return {
|
|
3672
|
+
...(input.ExplainabilityArn !== undefined &&
|
|
3673
|
+
input.ExplainabilityArn !== null && { ExplainabilityArn: input.ExplainabilityArn }),
|
|
3674
|
+
};
|
|
3675
|
+
};
|
|
2791
3676
|
const serializeAws_json1_1DescribeForecastExportJobRequest = (input, context) => {
|
|
2792
3677
|
return {
|
|
2793
3678
|
...(input.ForecastExportJobArn !== undefined &&
|
|
@@ -2826,6 +3711,14 @@ const serializeAws_json1_1EvaluationParameters = (input, context) => {
|
|
|
2826
3711
|
input.NumberOfBacktestWindows !== null && { NumberOfBacktestWindows: input.NumberOfBacktestWindows }),
|
|
2827
3712
|
};
|
|
2828
3713
|
};
|
|
3714
|
+
const serializeAws_json1_1ExplainabilityConfig = (input, context) => {
|
|
3715
|
+
return {
|
|
3716
|
+
...(input.TimePointGranularity !== undefined &&
|
|
3717
|
+
input.TimePointGranularity !== null && { TimePointGranularity: input.TimePointGranularity }),
|
|
3718
|
+
...(input.TimeSeriesGranularity !== undefined &&
|
|
3719
|
+
input.TimeSeriesGranularity !== null && { TimeSeriesGranularity: input.TimeSeriesGranularity }),
|
|
3720
|
+
};
|
|
3721
|
+
};
|
|
2829
3722
|
const serializeAws_json1_1Featurization = (input, context) => {
|
|
2830
3723
|
return {
|
|
2831
3724
|
...(input.AttributeName !== undefined && input.AttributeName !== null && { AttributeName: input.AttributeName }),
|
|
@@ -2988,6 +3881,22 @@ const serializeAws_json1_1ListDatasetsRequest = (input, context) => {
|
|
|
2988
3881
|
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
2989
3882
|
};
|
|
2990
3883
|
};
|
|
3884
|
+
const serializeAws_json1_1ListExplainabilitiesRequest = (input, context) => {
|
|
3885
|
+
return {
|
|
3886
|
+
...(input.Filters !== undefined &&
|
|
3887
|
+
input.Filters !== null && { Filters: serializeAws_json1_1Filters(input.Filters, context) }),
|
|
3888
|
+
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
3889
|
+
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
3890
|
+
};
|
|
3891
|
+
};
|
|
3892
|
+
const serializeAws_json1_1ListExplainabilityExportsRequest = (input, context) => {
|
|
3893
|
+
return {
|
|
3894
|
+
...(input.Filters !== undefined &&
|
|
3895
|
+
input.Filters !== null && { Filters: serializeAws_json1_1Filters(input.Filters, context) }),
|
|
3896
|
+
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
3897
|
+
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
3898
|
+
};
|
|
3899
|
+
};
|
|
2991
3900
|
const serializeAws_json1_1ListForecastExportJobsRequest = (input, context) => {
|
|
2992
3901
|
return {
|
|
2993
3902
|
...(input.Filters !== undefined &&
|
|
@@ -3134,6 +4043,17 @@ const serializeAws_json1_1TrainingParameters = (input, context) => {
|
|
|
3134
4043
|
};
|
|
3135
4044
|
}, {});
|
|
3136
4045
|
};
|
|
4046
|
+
const serializeAws_json1_1Transformations = (input, context) => {
|
|
4047
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
4048
|
+
if (value === null) {
|
|
4049
|
+
return acc;
|
|
4050
|
+
}
|
|
4051
|
+
return {
|
|
4052
|
+
...acc,
|
|
4053
|
+
[key]: value,
|
|
4054
|
+
};
|
|
4055
|
+
}, {});
|
|
4056
|
+
};
|
|
3137
4057
|
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
3138
4058
|
return {
|
|
3139
4059
|
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
@@ -3159,6 +4079,24 @@ const serializeAws_json1_1Values = (input, context) => {
|
|
|
3159
4079
|
return entry;
|
|
3160
4080
|
});
|
|
3161
4081
|
};
|
|
4082
|
+
const deserializeAws_json1_1AdditionalDataset = (output, context) => {
|
|
4083
|
+
return {
|
|
4084
|
+
Configuration: output.Configuration !== undefined && output.Configuration !== null
|
|
4085
|
+
? deserializeAws_json1_1Configuration(output.Configuration, context)
|
|
4086
|
+
: undefined,
|
|
4087
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
4088
|
+
};
|
|
4089
|
+
};
|
|
4090
|
+
const deserializeAws_json1_1AdditionalDatasets = (output, context) => {
|
|
4091
|
+
return (output || [])
|
|
4092
|
+
.filter((e) => e != null)
|
|
4093
|
+
.map((entry) => {
|
|
4094
|
+
if (entry === null) {
|
|
4095
|
+
return null;
|
|
4096
|
+
}
|
|
4097
|
+
return deserializeAws_json1_1AdditionalDataset(entry, context);
|
|
4098
|
+
});
|
|
4099
|
+
};
|
|
3162
4100
|
const deserializeAws_json1_1ArnList = (output, context) => {
|
|
3163
4101
|
return (output || [])
|
|
3164
4102
|
.filter((e) => e != null)
|
|
@@ -3169,6 +4107,24 @@ const deserializeAws_json1_1ArnList = (output, context) => {
|
|
|
3169
4107
|
return smithy_client_1.expectString(entry);
|
|
3170
4108
|
});
|
|
3171
4109
|
};
|
|
4110
|
+
const deserializeAws_json1_1AttributeConfig = (output, context) => {
|
|
4111
|
+
return {
|
|
4112
|
+
AttributeName: smithy_client_1.expectString(output.AttributeName),
|
|
4113
|
+
Transformations: output.Transformations !== undefined && output.Transformations !== null
|
|
4114
|
+
? deserializeAws_json1_1Transformations(output.Transformations, context)
|
|
4115
|
+
: undefined,
|
|
4116
|
+
};
|
|
4117
|
+
};
|
|
4118
|
+
const deserializeAws_json1_1AttributeConfigs = (output, context) => {
|
|
4119
|
+
return (output || [])
|
|
4120
|
+
.filter((e) => e != null)
|
|
4121
|
+
.map((entry) => {
|
|
4122
|
+
if (entry === null) {
|
|
4123
|
+
return null;
|
|
4124
|
+
}
|
|
4125
|
+
return deserializeAws_json1_1AttributeConfig(entry, context);
|
|
4126
|
+
});
|
|
4127
|
+
};
|
|
3172
4128
|
const deserializeAws_json1_1CategoricalParameterRange = (output, context) => {
|
|
3173
4129
|
return {
|
|
3174
4130
|
Name: smithy_client_1.expectString(output.Name),
|
|
@@ -3187,6 +4143,17 @@ const deserializeAws_json1_1CategoricalParameterRanges = (output, context) => {
|
|
|
3187
4143
|
return deserializeAws_json1_1CategoricalParameterRange(entry, context);
|
|
3188
4144
|
});
|
|
3189
4145
|
};
|
|
4146
|
+
const deserializeAws_json1_1Configuration = (output, context) => {
|
|
4147
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4148
|
+
if (value === null) {
|
|
4149
|
+
return acc;
|
|
4150
|
+
}
|
|
4151
|
+
return {
|
|
4152
|
+
...acc,
|
|
4153
|
+
[key]: deserializeAws_json1_1Values(value, context),
|
|
4154
|
+
};
|
|
4155
|
+
}, {});
|
|
4156
|
+
};
|
|
3190
4157
|
const deserializeAws_json1_1ContinuousParameterRange = (output, context) => {
|
|
3191
4158
|
return {
|
|
3192
4159
|
MaxValue: smithy_client_1.limitedParseDouble(output.MaxValue),
|
|
@@ -3205,6 +4172,11 @@ const deserializeAws_json1_1ContinuousParameterRanges = (output, context) => {
|
|
|
3205
4172
|
return deserializeAws_json1_1ContinuousParameterRange(entry, context);
|
|
3206
4173
|
});
|
|
3207
4174
|
};
|
|
4175
|
+
const deserializeAws_json1_1CreateAutoPredictorResponse = (output, context) => {
|
|
4176
|
+
return {
|
|
4177
|
+
PredictorArn: smithy_client_1.expectString(output.PredictorArn),
|
|
4178
|
+
};
|
|
4179
|
+
};
|
|
3208
4180
|
const deserializeAws_json1_1CreateDatasetGroupResponse = (output, context) => {
|
|
3209
4181
|
return {
|
|
3210
4182
|
DatasetGroupArn: smithy_client_1.expectString(output.DatasetGroupArn),
|
|
@@ -3220,6 +4192,16 @@ const deserializeAws_json1_1CreateDatasetResponse = (output, context) => {
|
|
|
3220
4192
|
DatasetArn: smithy_client_1.expectString(output.DatasetArn),
|
|
3221
4193
|
};
|
|
3222
4194
|
};
|
|
4195
|
+
const deserializeAws_json1_1CreateExplainabilityExportResponse = (output, context) => {
|
|
4196
|
+
return {
|
|
4197
|
+
ExplainabilityExportArn: smithy_client_1.expectString(output.ExplainabilityExportArn),
|
|
4198
|
+
};
|
|
4199
|
+
};
|
|
4200
|
+
const deserializeAws_json1_1CreateExplainabilityResponse = (output, context) => {
|
|
4201
|
+
return {
|
|
4202
|
+
ExplainabilityArn: smithy_client_1.expectString(output.ExplainabilityArn),
|
|
4203
|
+
};
|
|
4204
|
+
};
|
|
3223
4205
|
const deserializeAws_json1_1CreateForecastExportJobResponse = (output, context) => {
|
|
3224
4206
|
return {
|
|
3225
4207
|
ForecastExportJobArn: smithy_client_1.expectString(output.ForecastExportJobArn),
|
|
@@ -3240,6 +4222,17 @@ const deserializeAws_json1_1CreatePredictorResponse = (output, context) => {
|
|
|
3240
4222
|
PredictorArn: smithy_client_1.expectString(output.PredictorArn),
|
|
3241
4223
|
};
|
|
3242
4224
|
};
|
|
4225
|
+
const deserializeAws_json1_1DataConfig = (output, context) => {
|
|
4226
|
+
return {
|
|
4227
|
+
AdditionalDatasets: output.AdditionalDatasets !== undefined && output.AdditionalDatasets !== null
|
|
4228
|
+
? deserializeAws_json1_1AdditionalDatasets(output.AdditionalDatasets, context)
|
|
4229
|
+
: undefined,
|
|
4230
|
+
AttributeConfigs: output.AttributeConfigs !== undefined && output.AttributeConfigs !== null
|
|
4231
|
+
? deserializeAws_json1_1AttributeConfigs(output.AttributeConfigs, context)
|
|
4232
|
+
: undefined,
|
|
4233
|
+
DatasetGroupArn: smithy_client_1.expectString(output.DatasetGroupArn),
|
|
4234
|
+
};
|
|
4235
|
+
};
|
|
3243
4236
|
const deserializeAws_json1_1DataDestination = (output, context) => {
|
|
3244
4237
|
return {
|
|
3245
4238
|
S3Config: output.S3Config !== undefined && output.S3Config !== null
|
|
@@ -3327,6 +4320,45 @@ const deserializeAws_json1_1DataSource = (output, context) => {
|
|
|
3327
4320
|
: undefined,
|
|
3328
4321
|
};
|
|
3329
4322
|
};
|
|
4323
|
+
const deserializeAws_json1_1DescribeAutoPredictorResponse = (output, context) => {
|
|
4324
|
+
return {
|
|
4325
|
+
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
4326
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationTime)))
|
|
4327
|
+
: undefined,
|
|
4328
|
+
DataConfig: output.DataConfig !== undefined && output.DataConfig !== null
|
|
4329
|
+
? deserializeAws_json1_1DataConfig(output.DataConfig, context)
|
|
4330
|
+
: undefined,
|
|
4331
|
+
DatasetImportJobArns: output.DatasetImportJobArns !== undefined && output.DatasetImportJobArns !== null
|
|
4332
|
+
? deserializeAws_json1_1ArnList(output.DatasetImportJobArns, context)
|
|
4333
|
+
: undefined,
|
|
4334
|
+
EncryptionConfig: output.EncryptionConfig !== undefined && output.EncryptionConfig !== null
|
|
4335
|
+
? deserializeAws_json1_1EncryptionConfig(output.EncryptionConfig, context)
|
|
4336
|
+
: undefined,
|
|
4337
|
+
EstimatedTimeRemainingInMinutes: smithy_client_1.expectLong(output.EstimatedTimeRemainingInMinutes),
|
|
4338
|
+
ExplainabilityInfo: output.ExplainabilityInfo !== undefined && output.ExplainabilityInfo !== null
|
|
4339
|
+
? deserializeAws_json1_1ExplainabilityInfo(output.ExplainabilityInfo, context)
|
|
4340
|
+
: undefined,
|
|
4341
|
+
ForecastDimensions: output.ForecastDimensions !== undefined && output.ForecastDimensions !== null
|
|
4342
|
+
? deserializeAws_json1_1ForecastDimensions(output.ForecastDimensions, context)
|
|
4343
|
+
: undefined,
|
|
4344
|
+
ForecastFrequency: smithy_client_1.expectString(output.ForecastFrequency),
|
|
4345
|
+
ForecastHorizon: smithy_client_1.expectInt32(output.ForecastHorizon),
|
|
4346
|
+
ForecastTypes: output.ForecastTypes !== undefined && output.ForecastTypes !== null
|
|
4347
|
+
? deserializeAws_json1_1ForecastTypes(output.ForecastTypes, context)
|
|
4348
|
+
: undefined,
|
|
4349
|
+
LastModificationTime: output.LastModificationTime !== undefined && output.LastModificationTime !== null
|
|
4350
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModificationTime)))
|
|
4351
|
+
: undefined,
|
|
4352
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
4353
|
+
OptimizationMetric: smithy_client_1.expectString(output.OptimizationMetric),
|
|
4354
|
+
PredictorArn: smithy_client_1.expectString(output.PredictorArn),
|
|
4355
|
+
PredictorName: smithy_client_1.expectString(output.PredictorName),
|
|
4356
|
+
ReferencePredictorSummary: output.ReferencePredictorSummary !== undefined && output.ReferencePredictorSummary !== null
|
|
4357
|
+
? deserializeAws_json1_1ReferencePredictorSummary(output.ReferencePredictorSummary, context)
|
|
4358
|
+
: undefined,
|
|
4359
|
+
Status: smithy_client_1.expectString(output.Status),
|
|
4360
|
+
};
|
|
4361
|
+
};
|
|
3330
4362
|
const deserializeAws_json1_1DescribeDatasetGroupResponse = (output, context) => {
|
|
3331
4363
|
return {
|
|
3332
4364
|
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
@@ -3393,6 +4425,52 @@ const deserializeAws_json1_1DescribeDatasetResponse = (output, context) => {
|
|
|
3393
4425
|
Status: smithy_client_1.expectString(output.Status),
|
|
3394
4426
|
};
|
|
3395
4427
|
};
|
|
4428
|
+
const deserializeAws_json1_1DescribeExplainabilityExportResponse = (output, context) => {
|
|
4429
|
+
return {
|
|
4430
|
+
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
4431
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationTime)))
|
|
4432
|
+
: undefined,
|
|
4433
|
+
Destination: output.Destination !== undefined && output.Destination !== null
|
|
4434
|
+
? deserializeAws_json1_1DataDestination(output.Destination, context)
|
|
4435
|
+
: undefined,
|
|
4436
|
+
ExplainabilityArn: smithy_client_1.expectString(output.ExplainabilityArn),
|
|
4437
|
+
ExplainabilityExportArn: smithy_client_1.expectString(output.ExplainabilityExportArn),
|
|
4438
|
+
ExplainabilityExportName: smithy_client_1.expectString(output.ExplainabilityExportName),
|
|
4439
|
+
LastModificationTime: output.LastModificationTime !== undefined && output.LastModificationTime !== null
|
|
4440
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModificationTime)))
|
|
4441
|
+
: undefined,
|
|
4442
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
4443
|
+
Status: smithy_client_1.expectString(output.Status),
|
|
4444
|
+
};
|
|
4445
|
+
};
|
|
4446
|
+
const deserializeAws_json1_1DescribeExplainabilityResponse = (output, context) => {
|
|
4447
|
+
return {
|
|
4448
|
+
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
4449
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationTime)))
|
|
4450
|
+
: undefined,
|
|
4451
|
+
DataSource: output.DataSource !== undefined && output.DataSource !== null
|
|
4452
|
+
? deserializeAws_json1_1DataSource(output.DataSource, context)
|
|
4453
|
+
: undefined,
|
|
4454
|
+
EnableVisualization: smithy_client_1.expectBoolean(output.EnableVisualization),
|
|
4455
|
+
EndDateTime: smithy_client_1.expectString(output.EndDateTime),
|
|
4456
|
+
EstimatedTimeRemainingInMinutes: smithy_client_1.expectLong(output.EstimatedTimeRemainingInMinutes),
|
|
4457
|
+
ExplainabilityArn: smithy_client_1.expectString(output.ExplainabilityArn),
|
|
4458
|
+
ExplainabilityConfig: output.ExplainabilityConfig !== undefined && output.ExplainabilityConfig !== null
|
|
4459
|
+
? deserializeAws_json1_1ExplainabilityConfig(output.ExplainabilityConfig, context)
|
|
4460
|
+
: undefined,
|
|
4461
|
+
ExplainabilityName: smithy_client_1.expectString(output.ExplainabilityName),
|
|
4462
|
+
LastModificationTime: output.LastModificationTime !== undefined && output.LastModificationTime !== null
|
|
4463
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModificationTime)))
|
|
4464
|
+
: undefined,
|
|
4465
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
4466
|
+
ResourceArn: smithy_client_1.expectString(output.ResourceArn),
|
|
4467
|
+
Schema: output.Schema !== undefined && output.Schema !== null
|
|
4468
|
+
? deserializeAws_json1_1Schema(output.Schema, context)
|
|
4469
|
+
: undefined,
|
|
4470
|
+
StartDateTime: smithy_client_1.expectString(output.StartDateTime),
|
|
4471
|
+
Status: smithy_client_1.expectString(output.Status),
|
|
4472
|
+
};
|
|
4473
|
+
};
|
|
3396
4474
|
const deserializeAws_json1_1DescribeForecastExportJobResponse = (output, context) => {
|
|
3397
4475
|
return {
|
|
3398
4476
|
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
@@ -3482,6 +4560,7 @@ const deserializeAws_json1_1DescribePredictorResponse = (output, context) => {
|
|
|
3482
4560
|
InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
|
|
3483
4561
|
? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
|
|
3484
4562
|
: undefined,
|
|
4563
|
+
IsAutoPredictor: smithy_client_1.expectBoolean(output.IsAutoPredictor),
|
|
3485
4564
|
LastModificationTime: output.LastModificationTime !== undefined && output.LastModificationTime !== null
|
|
3486
4565
|
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModificationTime)))
|
|
3487
4566
|
: undefined,
|
|
@@ -3539,6 +4618,73 @@ const deserializeAws_json1_1EvaluationResult = (output, context) => {
|
|
|
3539
4618
|
: undefined,
|
|
3540
4619
|
};
|
|
3541
4620
|
};
|
|
4621
|
+
const deserializeAws_json1_1Explainabilities = (output, context) => {
|
|
4622
|
+
return (output || [])
|
|
4623
|
+
.filter((e) => e != null)
|
|
4624
|
+
.map((entry) => {
|
|
4625
|
+
if (entry === null) {
|
|
4626
|
+
return null;
|
|
4627
|
+
}
|
|
4628
|
+
return deserializeAws_json1_1ExplainabilitySummary(entry, context);
|
|
4629
|
+
});
|
|
4630
|
+
};
|
|
4631
|
+
const deserializeAws_json1_1ExplainabilityConfig = (output, context) => {
|
|
4632
|
+
return {
|
|
4633
|
+
TimePointGranularity: smithy_client_1.expectString(output.TimePointGranularity),
|
|
4634
|
+
TimeSeriesGranularity: smithy_client_1.expectString(output.TimeSeriesGranularity),
|
|
4635
|
+
};
|
|
4636
|
+
};
|
|
4637
|
+
const deserializeAws_json1_1ExplainabilityExports = (output, context) => {
|
|
4638
|
+
return (output || [])
|
|
4639
|
+
.filter((e) => e != null)
|
|
4640
|
+
.map((entry) => {
|
|
4641
|
+
if (entry === null) {
|
|
4642
|
+
return null;
|
|
4643
|
+
}
|
|
4644
|
+
return deserializeAws_json1_1ExplainabilityExportSummary(entry, context);
|
|
4645
|
+
});
|
|
4646
|
+
};
|
|
4647
|
+
const deserializeAws_json1_1ExplainabilityExportSummary = (output, context) => {
|
|
4648
|
+
return {
|
|
4649
|
+
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
4650
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationTime)))
|
|
4651
|
+
: undefined,
|
|
4652
|
+
Destination: output.Destination !== undefined && output.Destination !== null
|
|
4653
|
+
? deserializeAws_json1_1DataDestination(output.Destination, context)
|
|
4654
|
+
: undefined,
|
|
4655
|
+
ExplainabilityExportArn: smithy_client_1.expectString(output.ExplainabilityExportArn),
|
|
4656
|
+
ExplainabilityExportName: smithy_client_1.expectString(output.ExplainabilityExportName),
|
|
4657
|
+
LastModificationTime: output.LastModificationTime !== undefined && output.LastModificationTime !== null
|
|
4658
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModificationTime)))
|
|
4659
|
+
: undefined,
|
|
4660
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
4661
|
+
Status: smithy_client_1.expectString(output.Status),
|
|
4662
|
+
};
|
|
4663
|
+
};
|
|
4664
|
+
const deserializeAws_json1_1ExplainabilityInfo = (output, context) => {
|
|
4665
|
+
return {
|
|
4666
|
+
ExplainabilityArn: smithy_client_1.expectString(output.ExplainabilityArn),
|
|
4667
|
+
Status: smithy_client_1.expectString(output.Status),
|
|
4668
|
+
};
|
|
4669
|
+
};
|
|
4670
|
+
const deserializeAws_json1_1ExplainabilitySummary = (output, context) => {
|
|
4671
|
+
return {
|
|
4672
|
+
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
4673
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationTime)))
|
|
4674
|
+
: undefined,
|
|
4675
|
+
ExplainabilityArn: smithy_client_1.expectString(output.ExplainabilityArn),
|
|
4676
|
+
ExplainabilityConfig: output.ExplainabilityConfig !== undefined && output.ExplainabilityConfig !== null
|
|
4677
|
+
? deserializeAws_json1_1ExplainabilityConfig(output.ExplainabilityConfig, context)
|
|
4678
|
+
: undefined,
|
|
4679
|
+
ExplainabilityName: smithy_client_1.expectString(output.ExplainabilityName),
|
|
4680
|
+
LastModificationTime: output.LastModificationTime !== undefined && output.LastModificationTime !== null
|
|
4681
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModificationTime)))
|
|
4682
|
+
: undefined,
|
|
4683
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
4684
|
+
ResourceArn: smithy_client_1.expectString(output.ResourceArn),
|
|
4685
|
+
Status: smithy_client_1.expectString(output.Status),
|
|
4686
|
+
};
|
|
4687
|
+
};
|
|
3542
4688
|
const deserializeAws_json1_1Featurization = (output, context) => {
|
|
3543
4689
|
return {
|
|
3544
4690
|
AttributeName: smithy_client_1.expectString(output.AttributeName),
|
|
@@ -3657,6 +4803,7 @@ const deserializeAws_json1_1Forecasts = (output, context) => {
|
|
|
3657
4803
|
};
|
|
3658
4804
|
const deserializeAws_json1_1ForecastSummary = (output, context) => {
|
|
3659
4805
|
return {
|
|
4806
|
+
CreatedUsingAutoPredictor: smithy_client_1.expectBoolean(output.CreatedUsingAutoPredictor),
|
|
3660
4807
|
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
3661
4808
|
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationTime)))
|
|
3662
4809
|
: undefined,
|
|
@@ -3684,6 +4831,7 @@ const deserializeAws_json1_1ForecastTypes = (output, context) => {
|
|
|
3684
4831
|
const deserializeAws_json1_1GetAccuracyMetricsResponse = (output, context) => {
|
|
3685
4832
|
return {
|
|
3686
4833
|
AutoMLOverrideStrategy: smithy_client_1.expectString(output.AutoMLOverrideStrategy),
|
|
4834
|
+
IsAutoPredictor: smithy_client_1.expectBoolean(output.IsAutoPredictor),
|
|
3687
4835
|
OptimizationMetric: smithy_client_1.expectString(output.OptimizationMetric),
|
|
3688
4836
|
PredictorEvaluationResults: output.PredictorEvaluationResults !== undefined && output.PredictorEvaluationResults !== null
|
|
3689
4837
|
? deserializeAws_json1_1PredictorEvaluationResults(output.PredictorEvaluationResults, context)
|
|
@@ -3762,6 +4910,22 @@ const deserializeAws_json1_1ListDatasetsResponse = (output, context) => {
|
|
|
3762
4910
|
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
3763
4911
|
};
|
|
3764
4912
|
};
|
|
4913
|
+
const deserializeAws_json1_1ListExplainabilitiesResponse = (output, context) => {
|
|
4914
|
+
return {
|
|
4915
|
+
Explainabilities: output.Explainabilities !== undefined && output.Explainabilities !== null
|
|
4916
|
+
? deserializeAws_json1_1Explainabilities(output.Explainabilities, context)
|
|
4917
|
+
: undefined,
|
|
4918
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
4919
|
+
};
|
|
4920
|
+
};
|
|
4921
|
+
const deserializeAws_json1_1ListExplainabilityExportsResponse = (output, context) => {
|
|
4922
|
+
return {
|
|
4923
|
+
ExplainabilityExports: output.ExplainabilityExports !== undefined && output.ExplainabilityExports !== null
|
|
4924
|
+
? deserializeAws_json1_1ExplainabilityExports(output.ExplainabilityExports, context)
|
|
4925
|
+
: undefined,
|
|
4926
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
4927
|
+
};
|
|
4928
|
+
};
|
|
3765
4929
|
const deserializeAws_json1_1ListForecastExportJobsResponse = (output, context) => {
|
|
3766
4930
|
return {
|
|
3767
4931
|
ForecastExportJobs: output.ForecastExportJobs !== undefined && output.ForecastExportJobs !== null
|
|
@@ -3902,15 +5066,25 @@ const deserializeAws_json1_1PredictorSummary = (output, context) => {
|
|
|
3902
5066
|
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationTime)))
|
|
3903
5067
|
: undefined,
|
|
3904
5068
|
DatasetGroupArn: smithy_client_1.expectString(output.DatasetGroupArn),
|
|
5069
|
+
IsAutoPredictor: smithy_client_1.expectBoolean(output.IsAutoPredictor),
|
|
3905
5070
|
LastModificationTime: output.LastModificationTime !== undefined && output.LastModificationTime !== null
|
|
3906
5071
|
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModificationTime)))
|
|
3907
5072
|
: undefined,
|
|
3908
5073
|
Message: smithy_client_1.expectString(output.Message),
|
|
3909
5074
|
PredictorArn: smithy_client_1.expectString(output.PredictorArn),
|
|
3910
5075
|
PredictorName: smithy_client_1.expectString(output.PredictorName),
|
|
5076
|
+
ReferencePredictorSummary: output.ReferencePredictorSummary !== undefined && output.ReferencePredictorSummary !== null
|
|
5077
|
+
? deserializeAws_json1_1ReferencePredictorSummary(output.ReferencePredictorSummary, context)
|
|
5078
|
+
: undefined,
|
|
3911
5079
|
Status: smithy_client_1.expectString(output.Status),
|
|
3912
5080
|
};
|
|
3913
5081
|
};
|
|
5082
|
+
const deserializeAws_json1_1ReferencePredictorSummary = (output, context) => {
|
|
5083
|
+
return {
|
|
5084
|
+
Arn: smithy_client_1.expectString(output.Arn),
|
|
5085
|
+
State: smithy_client_1.expectString(output.State),
|
|
5086
|
+
};
|
|
5087
|
+
};
|
|
3914
5088
|
const deserializeAws_json1_1ResourceAlreadyExistsException = (output, context) => {
|
|
3915
5089
|
return {
|
|
3916
5090
|
Message: smithy_client_1.expectString(output.Message),
|
|
@@ -4050,6 +5224,17 @@ const deserializeAws_json1_1TrainingParameters = (output, context) => {
|
|
|
4050
5224
|
};
|
|
4051
5225
|
}, {});
|
|
4052
5226
|
};
|
|
5227
|
+
const deserializeAws_json1_1Transformations = (output, context) => {
|
|
5228
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
5229
|
+
if (value === null) {
|
|
5230
|
+
return acc;
|
|
5231
|
+
}
|
|
5232
|
+
return {
|
|
5233
|
+
...acc,
|
|
5234
|
+
[key]: smithy_client_1.expectString(value),
|
|
5235
|
+
};
|
|
5236
|
+
}, {});
|
|
5237
|
+
};
|
|
4053
5238
|
const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
4054
5239
|
return {};
|
|
4055
5240
|
};
|