@aws-sdk/client-forecast 3.154.0 → 3.155.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 +11 -0
- package/dist-cjs/Forecast.js +180 -0
- package/dist-cjs/commands/CreateWhatIfAnalysisCommand.js +36 -0
- package/dist-cjs/commands/CreateWhatIfForecastCommand.js +36 -0
- package/dist-cjs/commands/CreateWhatIfForecastExportCommand.js +36 -0
- package/dist-cjs/commands/DeleteWhatIfAnalysisCommand.js +36 -0
- package/dist-cjs/commands/DeleteWhatIfForecastCommand.js +36 -0
- package/dist-cjs/commands/DeleteWhatIfForecastExportCommand.js +36 -0
- package/dist-cjs/commands/DescribeWhatIfAnalysisCommand.js +36 -0
- package/dist-cjs/commands/DescribeWhatIfForecastCommand.js +36 -0
- package/dist-cjs/commands/DescribeWhatIfForecastExportCommand.js +36 -0
- package/dist-cjs/commands/ListWhatIfAnalysesCommand.js +36 -0
- package/dist-cjs/commands/ListWhatIfForecastExportsCommand.js +36 -0
- package/dist-cjs/commands/ListWhatIfForecastsCommand.js +36 -0
- package/dist-cjs/commands/index.js +12 -0
- package/dist-cjs/models/models_0.js +133 -4
- package/dist-cjs/pagination/ListWhatIfAnalysesPaginator.js +36 -0
- package/dist-cjs/pagination/ListWhatIfForecastExportsPaginator.js +36 -0
- package/dist-cjs/pagination/ListWhatIfForecastsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_json1_1.js +1007 -26
- package/dist-es/Forecast.js +180 -0
- package/dist-es/commands/CreateWhatIfAnalysisCommand.js +39 -0
- package/dist-es/commands/CreateWhatIfForecastCommand.js +39 -0
- package/dist-es/commands/CreateWhatIfForecastExportCommand.js +39 -0
- package/dist-es/commands/DeleteWhatIfAnalysisCommand.js +39 -0
- package/dist-es/commands/DeleteWhatIfForecastCommand.js +39 -0
- package/dist-es/commands/DeleteWhatIfForecastExportCommand.js +39 -0
- package/dist-es/commands/DescribeWhatIfAnalysisCommand.js +39 -0
- package/dist-es/commands/DescribeWhatIfForecastCommand.js +39 -0
- package/dist-es/commands/DescribeWhatIfForecastExportCommand.js +39 -0
- package/dist-es/commands/ListWhatIfAnalysesCommand.js +39 -0
- package/dist-es/commands/ListWhatIfForecastExportsCommand.js +39 -0
- package/dist-es/commands/ListWhatIfForecastsCommand.js +39 -0
- package/dist-es/commands/index.js +12 -0
- package/dist-es/models/models_0.js +42 -0
- package/dist-es/pagination/ListWhatIfAnalysesPaginator.js +75 -0
- package/dist-es/pagination/ListWhatIfForecastExportsPaginator.js +75 -0
- package/dist-es/pagination/ListWhatIfForecastsPaginator.js +75 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_json1_1.js +1318 -145
- package/dist-types/Forecast.d.ts +183 -0
- package/dist-types/ForecastClient.d.ts +14 -2
- package/dist-types/commands/CreateWhatIfAnalysisCommand.d.ts +46 -0
- package/dist-types/commands/CreateWhatIfForecastCommand.d.ts +36 -0
- package/dist-types/commands/CreateWhatIfForecastExportCommand.d.ts +51 -0
- package/dist-types/commands/DeleteWhatIfAnalysisCommand.d.ts +37 -0
- package/dist-types/commands/DeleteWhatIfForecastCommand.d.ts +37 -0
- package/dist-types/commands/DeleteWhatIfForecastExportCommand.d.ts +36 -0
- package/dist-types/commands/DescribeWhatIfAnalysisCommand.d.ts +57 -0
- package/dist-types/commands/DescribeWhatIfForecastCommand.d.ts +57 -0
- package/dist-types/commands/DescribeWhatIfForecastExportCommand.d.ts +57 -0
- package/dist-types/commands/ListWhatIfAnalysesCommand.d.ts +35 -0
- package/dist-types/commands/ListWhatIfForecastExportsCommand.d.ts +35 -0
- package/dist-types/commands/ListWhatIfForecastsCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +12 -0
- package/dist-types/models/models_0.d.ts +1918 -840
- package/dist-types/pagination/ListWhatIfAnalysesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListWhatIfForecastExportsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListWhatIfForecastsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +36 -0
- package/dist-types/ts3.4/Forecast.d.ts +60 -0
- package/dist-types/ts3.4/ForecastClient.d.ts +14 -2
- package/dist-types/ts3.4/commands/CreateWhatIfAnalysisCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateWhatIfForecastCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateWhatIfForecastExportCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteWhatIfAnalysisCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteWhatIfForecastCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteWhatIfForecastExportCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeWhatIfAnalysisCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeWhatIfForecastCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeWhatIfForecastExportCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListWhatIfAnalysesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListWhatIfForecastExportsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListWhatIfForecastsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +12 -0
- package/dist-types/ts3.4/models/models_0.d.ts +335 -0
- package/dist-types/ts3.4/pagination/ListWhatIfAnalysesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListWhatIfForecastExportsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListWhatIfForecastsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.deserializeAws_json1_1UpdateDatasetGroupCommand = exports.deserializeAws_json1_1UntagResourceCommand = void 0;
|
|
3
|
+
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_1DescribeWhatIfForecastExportCommand = exports.serializeAws_json1_1DescribeWhatIfForecastCommand = exports.serializeAws_json1_1DescribeWhatIfAnalysisCommand = exports.serializeAws_json1_1DescribePredictorBacktestExportJobCommand = exports.serializeAws_json1_1DescribePredictorCommand = exports.serializeAws_json1_1DescribeMonitorCommand = 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_1DeleteWhatIfForecastExportCommand = exports.serializeAws_json1_1DeleteWhatIfForecastCommand = exports.serializeAws_json1_1DeleteWhatIfAnalysisCommand = exports.serializeAws_json1_1DeleteResourceTreeCommand = exports.serializeAws_json1_1DeletePredictorBacktestExportJobCommand = exports.serializeAws_json1_1DeletePredictorCommand = exports.serializeAws_json1_1DeleteMonitorCommand = 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_1CreateWhatIfForecastExportCommand = exports.serializeAws_json1_1CreateWhatIfForecastCommand = exports.serializeAws_json1_1CreateWhatIfAnalysisCommand = exports.serializeAws_json1_1CreatePredictorBacktestExportJobCommand = exports.serializeAws_json1_1CreatePredictorCommand = exports.serializeAws_json1_1CreateMonitorCommand = 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_1DescribeMonitorCommand = 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_1DeleteWhatIfForecastExportCommand = exports.deserializeAws_json1_1DeleteWhatIfForecastCommand = exports.deserializeAws_json1_1DeleteWhatIfAnalysisCommand = exports.deserializeAws_json1_1DeleteResourceTreeCommand = exports.deserializeAws_json1_1DeletePredictorBacktestExportJobCommand = exports.deserializeAws_json1_1DeletePredictorCommand = exports.deserializeAws_json1_1DeleteMonitorCommand = 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_1CreateWhatIfForecastExportCommand = exports.deserializeAws_json1_1CreateWhatIfForecastCommand = exports.deserializeAws_json1_1CreateWhatIfAnalysisCommand = exports.deserializeAws_json1_1CreatePredictorBacktestExportJobCommand = exports.deserializeAws_json1_1CreatePredictorCommand = exports.deserializeAws_json1_1CreateMonitorCommand = exports.deserializeAws_json1_1CreateForecastExportJobCommand = exports.deserializeAws_json1_1CreateForecastCommand = exports.deserializeAws_json1_1CreateExplainabilityExportCommand = 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_1ResumeResourceCommand = exports.serializeAws_json1_1ListWhatIfForecastsCommand = exports.serializeAws_json1_1ListWhatIfForecastExportsCommand = exports.serializeAws_json1_1ListWhatIfAnalysesCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListPredictorsCommand = exports.serializeAws_json1_1ListPredictorBacktestExportJobsCommand = exports.serializeAws_json1_1ListMonitorsCommand = exports.serializeAws_json1_1ListMonitorEvaluationsCommand = void 0;
|
|
5
|
+
exports.deserializeAws_json1_1UpdateDatasetGroupCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StopResourceCommand = exports.deserializeAws_json1_1ResumeResourceCommand = exports.deserializeAws_json1_1ListWhatIfForecastsCommand = exports.deserializeAws_json1_1ListWhatIfForecastExportsCommand = exports.deserializeAws_json1_1ListWhatIfAnalysesCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListPredictorsCommand = exports.deserializeAws_json1_1ListPredictorBacktestExportJobsCommand = exports.deserializeAws_json1_1ListMonitorsCommand = exports.deserializeAws_json1_1ListMonitorEvaluationsCommand = 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_1DescribeWhatIfForecastExportCommand = exports.deserializeAws_json1_1DescribeWhatIfForecastCommand = exports.deserializeAws_json1_1DescribeWhatIfAnalysisCommand = exports.deserializeAws_json1_1DescribePredictorBacktestExportJobCommand = exports.deserializeAws_json1_1DescribePredictorCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
const ForecastServiceException_1 = require("../models/ForecastServiceException");
|
|
@@ -117,6 +117,36 @@ const serializeAws_json1_1CreatePredictorBacktestExportJobCommand = async (input
|
|
|
117
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
118
|
};
|
|
119
119
|
exports.serializeAws_json1_1CreatePredictorBacktestExportJobCommand = serializeAws_json1_1CreatePredictorBacktestExportJobCommand;
|
|
120
|
+
const serializeAws_json1_1CreateWhatIfAnalysisCommand = async (input, context) => {
|
|
121
|
+
const headers = {
|
|
122
|
+
"content-type": "application/x-amz-json-1.1",
|
|
123
|
+
"x-amz-target": "AmazonForecast.CreateWhatIfAnalysis",
|
|
124
|
+
};
|
|
125
|
+
let body;
|
|
126
|
+
body = JSON.stringify(serializeAws_json1_1CreateWhatIfAnalysisRequest(input, context));
|
|
127
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
128
|
+
};
|
|
129
|
+
exports.serializeAws_json1_1CreateWhatIfAnalysisCommand = serializeAws_json1_1CreateWhatIfAnalysisCommand;
|
|
130
|
+
const serializeAws_json1_1CreateWhatIfForecastCommand = async (input, context) => {
|
|
131
|
+
const headers = {
|
|
132
|
+
"content-type": "application/x-amz-json-1.1",
|
|
133
|
+
"x-amz-target": "AmazonForecast.CreateWhatIfForecast",
|
|
134
|
+
};
|
|
135
|
+
let body;
|
|
136
|
+
body = JSON.stringify(serializeAws_json1_1CreateWhatIfForecastRequest(input, context));
|
|
137
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
138
|
+
};
|
|
139
|
+
exports.serializeAws_json1_1CreateWhatIfForecastCommand = serializeAws_json1_1CreateWhatIfForecastCommand;
|
|
140
|
+
const serializeAws_json1_1CreateWhatIfForecastExportCommand = async (input, context) => {
|
|
141
|
+
const headers = {
|
|
142
|
+
"content-type": "application/x-amz-json-1.1",
|
|
143
|
+
"x-amz-target": "AmazonForecast.CreateWhatIfForecastExport",
|
|
144
|
+
};
|
|
145
|
+
let body;
|
|
146
|
+
body = JSON.stringify(serializeAws_json1_1CreateWhatIfForecastExportRequest(input, context));
|
|
147
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
|
+
};
|
|
149
|
+
exports.serializeAws_json1_1CreateWhatIfForecastExportCommand = serializeAws_json1_1CreateWhatIfForecastExportCommand;
|
|
120
150
|
const serializeAws_json1_1DeleteDatasetCommand = async (input, context) => {
|
|
121
151
|
const headers = {
|
|
122
152
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -227,6 +257,36 @@ const serializeAws_json1_1DeleteResourceTreeCommand = async (input, context) =>
|
|
|
227
257
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
228
258
|
};
|
|
229
259
|
exports.serializeAws_json1_1DeleteResourceTreeCommand = serializeAws_json1_1DeleteResourceTreeCommand;
|
|
260
|
+
const serializeAws_json1_1DeleteWhatIfAnalysisCommand = async (input, context) => {
|
|
261
|
+
const headers = {
|
|
262
|
+
"content-type": "application/x-amz-json-1.1",
|
|
263
|
+
"x-amz-target": "AmazonForecast.DeleteWhatIfAnalysis",
|
|
264
|
+
};
|
|
265
|
+
let body;
|
|
266
|
+
body = JSON.stringify(serializeAws_json1_1DeleteWhatIfAnalysisRequest(input, context));
|
|
267
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
268
|
+
};
|
|
269
|
+
exports.serializeAws_json1_1DeleteWhatIfAnalysisCommand = serializeAws_json1_1DeleteWhatIfAnalysisCommand;
|
|
270
|
+
const serializeAws_json1_1DeleteWhatIfForecastCommand = async (input, context) => {
|
|
271
|
+
const headers = {
|
|
272
|
+
"content-type": "application/x-amz-json-1.1",
|
|
273
|
+
"x-amz-target": "AmazonForecast.DeleteWhatIfForecast",
|
|
274
|
+
};
|
|
275
|
+
let body;
|
|
276
|
+
body = JSON.stringify(serializeAws_json1_1DeleteWhatIfForecastRequest(input, context));
|
|
277
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
278
|
+
};
|
|
279
|
+
exports.serializeAws_json1_1DeleteWhatIfForecastCommand = serializeAws_json1_1DeleteWhatIfForecastCommand;
|
|
280
|
+
const serializeAws_json1_1DeleteWhatIfForecastExportCommand = async (input, context) => {
|
|
281
|
+
const headers = {
|
|
282
|
+
"content-type": "application/x-amz-json-1.1",
|
|
283
|
+
"x-amz-target": "AmazonForecast.DeleteWhatIfForecastExport",
|
|
284
|
+
};
|
|
285
|
+
let body;
|
|
286
|
+
body = JSON.stringify(serializeAws_json1_1DeleteWhatIfForecastExportRequest(input, context));
|
|
287
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
288
|
+
};
|
|
289
|
+
exports.serializeAws_json1_1DeleteWhatIfForecastExportCommand = serializeAws_json1_1DeleteWhatIfForecastExportCommand;
|
|
230
290
|
const serializeAws_json1_1DescribeAutoPredictorCommand = async (input, context) => {
|
|
231
291
|
const headers = {
|
|
232
292
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -337,6 +397,36 @@ const serializeAws_json1_1DescribePredictorBacktestExportJobCommand = async (inp
|
|
|
337
397
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
338
398
|
};
|
|
339
399
|
exports.serializeAws_json1_1DescribePredictorBacktestExportJobCommand = serializeAws_json1_1DescribePredictorBacktestExportJobCommand;
|
|
400
|
+
const serializeAws_json1_1DescribeWhatIfAnalysisCommand = async (input, context) => {
|
|
401
|
+
const headers = {
|
|
402
|
+
"content-type": "application/x-amz-json-1.1",
|
|
403
|
+
"x-amz-target": "AmazonForecast.DescribeWhatIfAnalysis",
|
|
404
|
+
};
|
|
405
|
+
let body;
|
|
406
|
+
body = JSON.stringify(serializeAws_json1_1DescribeWhatIfAnalysisRequest(input, context));
|
|
407
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
408
|
+
};
|
|
409
|
+
exports.serializeAws_json1_1DescribeWhatIfAnalysisCommand = serializeAws_json1_1DescribeWhatIfAnalysisCommand;
|
|
410
|
+
const serializeAws_json1_1DescribeWhatIfForecastCommand = async (input, context) => {
|
|
411
|
+
const headers = {
|
|
412
|
+
"content-type": "application/x-amz-json-1.1",
|
|
413
|
+
"x-amz-target": "AmazonForecast.DescribeWhatIfForecast",
|
|
414
|
+
};
|
|
415
|
+
let body;
|
|
416
|
+
body = JSON.stringify(serializeAws_json1_1DescribeWhatIfForecastRequest(input, context));
|
|
417
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
418
|
+
};
|
|
419
|
+
exports.serializeAws_json1_1DescribeWhatIfForecastCommand = serializeAws_json1_1DescribeWhatIfForecastCommand;
|
|
420
|
+
const serializeAws_json1_1DescribeWhatIfForecastExportCommand = async (input, context) => {
|
|
421
|
+
const headers = {
|
|
422
|
+
"content-type": "application/x-amz-json-1.1",
|
|
423
|
+
"x-amz-target": "AmazonForecast.DescribeWhatIfForecastExport",
|
|
424
|
+
};
|
|
425
|
+
let body;
|
|
426
|
+
body = JSON.stringify(serializeAws_json1_1DescribeWhatIfForecastExportRequest(input, context));
|
|
427
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
428
|
+
};
|
|
429
|
+
exports.serializeAws_json1_1DescribeWhatIfForecastExportCommand = serializeAws_json1_1DescribeWhatIfForecastExportCommand;
|
|
340
430
|
const serializeAws_json1_1GetAccuracyMetricsCommand = async (input, context) => {
|
|
341
431
|
const headers = {
|
|
342
432
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -467,6 +557,36 @@ const serializeAws_json1_1ListTagsForResourceCommand = async (input, context) =>
|
|
|
467
557
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
468
558
|
};
|
|
469
559
|
exports.serializeAws_json1_1ListTagsForResourceCommand = serializeAws_json1_1ListTagsForResourceCommand;
|
|
560
|
+
const serializeAws_json1_1ListWhatIfAnalysesCommand = async (input, context) => {
|
|
561
|
+
const headers = {
|
|
562
|
+
"content-type": "application/x-amz-json-1.1",
|
|
563
|
+
"x-amz-target": "AmazonForecast.ListWhatIfAnalyses",
|
|
564
|
+
};
|
|
565
|
+
let body;
|
|
566
|
+
body = JSON.stringify(serializeAws_json1_1ListWhatIfAnalysesRequest(input, context));
|
|
567
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
568
|
+
};
|
|
569
|
+
exports.serializeAws_json1_1ListWhatIfAnalysesCommand = serializeAws_json1_1ListWhatIfAnalysesCommand;
|
|
570
|
+
const serializeAws_json1_1ListWhatIfForecastExportsCommand = async (input, context) => {
|
|
571
|
+
const headers = {
|
|
572
|
+
"content-type": "application/x-amz-json-1.1",
|
|
573
|
+
"x-amz-target": "AmazonForecast.ListWhatIfForecastExports",
|
|
574
|
+
};
|
|
575
|
+
let body;
|
|
576
|
+
body = JSON.stringify(serializeAws_json1_1ListWhatIfForecastExportsRequest(input, context));
|
|
577
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
578
|
+
};
|
|
579
|
+
exports.serializeAws_json1_1ListWhatIfForecastExportsCommand = serializeAws_json1_1ListWhatIfForecastExportsCommand;
|
|
580
|
+
const serializeAws_json1_1ListWhatIfForecastsCommand = async (input, context) => {
|
|
581
|
+
const headers = {
|
|
582
|
+
"content-type": "application/x-amz-json-1.1",
|
|
583
|
+
"x-amz-target": "AmazonForecast.ListWhatIfForecasts",
|
|
584
|
+
};
|
|
585
|
+
let body;
|
|
586
|
+
body = JSON.stringify(serializeAws_json1_1ListWhatIfForecastsRequest(input, context));
|
|
587
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
588
|
+
};
|
|
589
|
+
exports.serializeAws_json1_1ListWhatIfForecastsCommand = serializeAws_json1_1ListWhatIfForecastsCommand;
|
|
470
590
|
const serializeAws_json1_1ResumeResourceCommand = async (input, context) => {
|
|
471
591
|
const headers = {
|
|
472
592
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -1017,6 +1137,144 @@ const deserializeAws_json1_1CreatePredictorBacktestExportJobCommandError = async
|
|
|
1017
1137
|
});
|
|
1018
1138
|
}
|
|
1019
1139
|
};
|
|
1140
|
+
const deserializeAws_json1_1CreateWhatIfAnalysisCommand = async (output, context) => {
|
|
1141
|
+
if (output.statusCode >= 300) {
|
|
1142
|
+
return deserializeAws_json1_1CreateWhatIfAnalysisCommandError(output, context);
|
|
1143
|
+
}
|
|
1144
|
+
const data = await parseBody(output.body, context);
|
|
1145
|
+
let contents = {};
|
|
1146
|
+
contents = deserializeAws_json1_1CreateWhatIfAnalysisResponse(data, context);
|
|
1147
|
+
const response = {
|
|
1148
|
+
$metadata: deserializeMetadata(output),
|
|
1149
|
+
...contents,
|
|
1150
|
+
};
|
|
1151
|
+
return Promise.resolve(response);
|
|
1152
|
+
};
|
|
1153
|
+
exports.deserializeAws_json1_1CreateWhatIfAnalysisCommand = deserializeAws_json1_1CreateWhatIfAnalysisCommand;
|
|
1154
|
+
const deserializeAws_json1_1CreateWhatIfAnalysisCommandError = async (output, context) => {
|
|
1155
|
+
const parsedOutput = {
|
|
1156
|
+
...output,
|
|
1157
|
+
body: await parseBody(output.body, context),
|
|
1158
|
+
};
|
|
1159
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1160
|
+
switch (errorCode) {
|
|
1161
|
+
case "InvalidInputException":
|
|
1162
|
+
case "com.amazonaws.forecast#InvalidInputException":
|
|
1163
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1164
|
+
case "LimitExceededException":
|
|
1165
|
+
case "com.amazonaws.forecast#LimitExceededException":
|
|
1166
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1167
|
+
case "ResourceAlreadyExistsException":
|
|
1168
|
+
case "com.amazonaws.forecast#ResourceAlreadyExistsException":
|
|
1169
|
+
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1170
|
+
case "ResourceInUseException":
|
|
1171
|
+
case "com.amazonaws.forecast#ResourceInUseException":
|
|
1172
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1173
|
+
case "ResourceNotFoundException":
|
|
1174
|
+
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1175
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1176
|
+
default:
|
|
1177
|
+
const parsedBody = parsedOutput.body;
|
|
1178
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1179
|
+
output,
|
|
1180
|
+
parsedBody,
|
|
1181
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
1182
|
+
errorCode,
|
|
1183
|
+
});
|
|
1184
|
+
}
|
|
1185
|
+
};
|
|
1186
|
+
const deserializeAws_json1_1CreateWhatIfForecastCommand = async (output, context) => {
|
|
1187
|
+
if (output.statusCode >= 300) {
|
|
1188
|
+
return deserializeAws_json1_1CreateWhatIfForecastCommandError(output, context);
|
|
1189
|
+
}
|
|
1190
|
+
const data = await parseBody(output.body, context);
|
|
1191
|
+
let contents = {};
|
|
1192
|
+
contents = deserializeAws_json1_1CreateWhatIfForecastResponse(data, context);
|
|
1193
|
+
const response = {
|
|
1194
|
+
$metadata: deserializeMetadata(output),
|
|
1195
|
+
...contents,
|
|
1196
|
+
};
|
|
1197
|
+
return Promise.resolve(response);
|
|
1198
|
+
};
|
|
1199
|
+
exports.deserializeAws_json1_1CreateWhatIfForecastCommand = deserializeAws_json1_1CreateWhatIfForecastCommand;
|
|
1200
|
+
const deserializeAws_json1_1CreateWhatIfForecastCommandError = async (output, context) => {
|
|
1201
|
+
const parsedOutput = {
|
|
1202
|
+
...output,
|
|
1203
|
+
body: await parseBody(output.body, context),
|
|
1204
|
+
};
|
|
1205
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1206
|
+
switch (errorCode) {
|
|
1207
|
+
case "InvalidInputException":
|
|
1208
|
+
case "com.amazonaws.forecast#InvalidInputException":
|
|
1209
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1210
|
+
case "LimitExceededException":
|
|
1211
|
+
case "com.amazonaws.forecast#LimitExceededException":
|
|
1212
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1213
|
+
case "ResourceAlreadyExistsException":
|
|
1214
|
+
case "com.amazonaws.forecast#ResourceAlreadyExistsException":
|
|
1215
|
+
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1216
|
+
case "ResourceInUseException":
|
|
1217
|
+
case "com.amazonaws.forecast#ResourceInUseException":
|
|
1218
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1219
|
+
case "ResourceNotFoundException":
|
|
1220
|
+
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1221
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1222
|
+
default:
|
|
1223
|
+
const parsedBody = parsedOutput.body;
|
|
1224
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1225
|
+
output,
|
|
1226
|
+
parsedBody,
|
|
1227
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
1228
|
+
errorCode,
|
|
1229
|
+
});
|
|
1230
|
+
}
|
|
1231
|
+
};
|
|
1232
|
+
const deserializeAws_json1_1CreateWhatIfForecastExportCommand = async (output, context) => {
|
|
1233
|
+
if (output.statusCode >= 300) {
|
|
1234
|
+
return deserializeAws_json1_1CreateWhatIfForecastExportCommandError(output, context);
|
|
1235
|
+
}
|
|
1236
|
+
const data = await parseBody(output.body, context);
|
|
1237
|
+
let contents = {};
|
|
1238
|
+
contents = deserializeAws_json1_1CreateWhatIfForecastExportResponse(data, context);
|
|
1239
|
+
const response = {
|
|
1240
|
+
$metadata: deserializeMetadata(output),
|
|
1241
|
+
...contents,
|
|
1242
|
+
};
|
|
1243
|
+
return Promise.resolve(response);
|
|
1244
|
+
};
|
|
1245
|
+
exports.deserializeAws_json1_1CreateWhatIfForecastExportCommand = deserializeAws_json1_1CreateWhatIfForecastExportCommand;
|
|
1246
|
+
const deserializeAws_json1_1CreateWhatIfForecastExportCommandError = async (output, context) => {
|
|
1247
|
+
const parsedOutput = {
|
|
1248
|
+
...output,
|
|
1249
|
+
body: await parseBody(output.body, context),
|
|
1250
|
+
};
|
|
1251
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1252
|
+
switch (errorCode) {
|
|
1253
|
+
case "InvalidInputException":
|
|
1254
|
+
case "com.amazonaws.forecast#InvalidInputException":
|
|
1255
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1256
|
+
case "LimitExceededException":
|
|
1257
|
+
case "com.amazonaws.forecast#LimitExceededException":
|
|
1258
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1259
|
+
case "ResourceAlreadyExistsException":
|
|
1260
|
+
case "com.amazonaws.forecast#ResourceAlreadyExistsException":
|
|
1261
|
+
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1262
|
+
case "ResourceInUseException":
|
|
1263
|
+
case "com.amazonaws.forecast#ResourceInUseException":
|
|
1264
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1265
|
+
case "ResourceNotFoundException":
|
|
1266
|
+
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1267
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1268
|
+
default:
|
|
1269
|
+
const parsedBody = parsedOutput.body;
|
|
1270
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1271
|
+
output,
|
|
1272
|
+
parsedBody,
|
|
1273
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
1274
|
+
errorCode,
|
|
1275
|
+
});
|
|
1276
|
+
}
|
|
1277
|
+
};
|
|
1020
1278
|
const deserializeAws_json1_1DeleteDatasetCommand = async (output, context) => {
|
|
1021
1279
|
if (output.statusCode >= 300) {
|
|
1022
1280
|
return deserializeAws_json1_1DeleteDatasetCommandError(output, context);
|
|
@@ -1276,9 +1534,120 @@ const deserializeAws_json1_1DeleteForecastExportJobCommandError = async (output,
|
|
|
1276
1534
|
});
|
|
1277
1535
|
}
|
|
1278
1536
|
};
|
|
1279
|
-
const deserializeAws_json1_1DeleteMonitorCommand = async (output, context) => {
|
|
1537
|
+
const deserializeAws_json1_1DeleteMonitorCommand = async (output, context) => {
|
|
1538
|
+
if (output.statusCode >= 300) {
|
|
1539
|
+
return deserializeAws_json1_1DeleteMonitorCommandError(output, context);
|
|
1540
|
+
}
|
|
1541
|
+
await collectBody(output.body, context);
|
|
1542
|
+
const response = {
|
|
1543
|
+
$metadata: deserializeMetadata(output),
|
|
1544
|
+
};
|
|
1545
|
+
return Promise.resolve(response);
|
|
1546
|
+
};
|
|
1547
|
+
exports.deserializeAws_json1_1DeleteMonitorCommand = deserializeAws_json1_1DeleteMonitorCommand;
|
|
1548
|
+
const deserializeAws_json1_1DeleteMonitorCommandError = async (output, context) => {
|
|
1549
|
+
const parsedOutput = {
|
|
1550
|
+
...output,
|
|
1551
|
+
body: await parseBody(output.body, context),
|
|
1552
|
+
};
|
|
1553
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1554
|
+
switch (errorCode) {
|
|
1555
|
+
case "InvalidInputException":
|
|
1556
|
+
case "com.amazonaws.forecast#InvalidInputException":
|
|
1557
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1558
|
+
case "ResourceInUseException":
|
|
1559
|
+
case "com.amazonaws.forecast#ResourceInUseException":
|
|
1560
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1561
|
+
case "ResourceNotFoundException":
|
|
1562
|
+
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1563
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1564
|
+
default:
|
|
1565
|
+
const parsedBody = parsedOutput.body;
|
|
1566
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1567
|
+
output,
|
|
1568
|
+
parsedBody,
|
|
1569
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
1570
|
+
errorCode,
|
|
1571
|
+
});
|
|
1572
|
+
}
|
|
1573
|
+
};
|
|
1574
|
+
const deserializeAws_json1_1DeletePredictorCommand = async (output, context) => {
|
|
1575
|
+
if (output.statusCode >= 300) {
|
|
1576
|
+
return deserializeAws_json1_1DeletePredictorCommandError(output, context);
|
|
1577
|
+
}
|
|
1578
|
+
await collectBody(output.body, context);
|
|
1579
|
+
const response = {
|
|
1580
|
+
$metadata: deserializeMetadata(output),
|
|
1581
|
+
};
|
|
1582
|
+
return Promise.resolve(response);
|
|
1583
|
+
};
|
|
1584
|
+
exports.deserializeAws_json1_1DeletePredictorCommand = deserializeAws_json1_1DeletePredictorCommand;
|
|
1585
|
+
const deserializeAws_json1_1DeletePredictorCommandError = async (output, context) => {
|
|
1586
|
+
const parsedOutput = {
|
|
1587
|
+
...output,
|
|
1588
|
+
body: await parseBody(output.body, context),
|
|
1589
|
+
};
|
|
1590
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1591
|
+
switch (errorCode) {
|
|
1592
|
+
case "InvalidInputException":
|
|
1593
|
+
case "com.amazonaws.forecast#InvalidInputException":
|
|
1594
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1595
|
+
case "ResourceInUseException":
|
|
1596
|
+
case "com.amazonaws.forecast#ResourceInUseException":
|
|
1597
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1598
|
+
case "ResourceNotFoundException":
|
|
1599
|
+
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1600
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1601
|
+
default:
|
|
1602
|
+
const parsedBody = parsedOutput.body;
|
|
1603
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1604
|
+
output,
|
|
1605
|
+
parsedBody,
|
|
1606
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
1607
|
+
errorCode,
|
|
1608
|
+
});
|
|
1609
|
+
}
|
|
1610
|
+
};
|
|
1611
|
+
const deserializeAws_json1_1DeletePredictorBacktestExportJobCommand = async (output, context) => {
|
|
1612
|
+
if (output.statusCode >= 300) {
|
|
1613
|
+
return deserializeAws_json1_1DeletePredictorBacktestExportJobCommandError(output, context);
|
|
1614
|
+
}
|
|
1615
|
+
await collectBody(output.body, context);
|
|
1616
|
+
const response = {
|
|
1617
|
+
$metadata: deserializeMetadata(output),
|
|
1618
|
+
};
|
|
1619
|
+
return Promise.resolve(response);
|
|
1620
|
+
};
|
|
1621
|
+
exports.deserializeAws_json1_1DeletePredictorBacktestExportJobCommand = deserializeAws_json1_1DeletePredictorBacktestExportJobCommand;
|
|
1622
|
+
const deserializeAws_json1_1DeletePredictorBacktestExportJobCommandError = async (output, context) => {
|
|
1623
|
+
const parsedOutput = {
|
|
1624
|
+
...output,
|
|
1625
|
+
body: await parseBody(output.body, context),
|
|
1626
|
+
};
|
|
1627
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1628
|
+
switch (errorCode) {
|
|
1629
|
+
case "InvalidInputException":
|
|
1630
|
+
case "com.amazonaws.forecast#InvalidInputException":
|
|
1631
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1632
|
+
case "ResourceInUseException":
|
|
1633
|
+
case "com.amazonaws.forecast#ResourceInUseException":
|
|
1634
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1635
|
+
case "ResourceNotFoundException":
|
|
1636
|
+
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1637
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1638
|
+
default:
|
|
1639
|
+
const parsedBody = parsedOutput.body;
|
|
1640
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1641
|
+
output,
|
|
1642
|
+
parsedBody,
|
|
1643
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
1644
|
+
errorCode,
|
|
1645
|
+
});
|
|
1646
|
+
}
|
|
1647
|
+
};
|
|
1648
|
+
const deserializeAws_json1_1DeleteResourceTreeCommand = async (output, context) => {
|
|
1280
1649
|
if (output.statusCode >= 300) {
|
|
1281
|
-
return
|
|
1650
|
+
return deserializeAws_json1_1DeleteResourceTreeCommandError(output, context);
|
|
1282
1651
|
}
|
|
1283
1652
|
await collectBody(output.body, context);
|
|
1284
1653
|
const response = {
|
|
@@ -1286,8 +1655,8 @@ const deserializeAws_json1_1DeleteMonitorCommand = async (output, context) => {
|
|
|
1286
1655
|
};
|
|
1287
1656
|
return Promise.resolve(response);
|
|
1288
1657
|
};
|
|
1289
|
-
exports.
|
|
1290
|
-
const
|
|
1658
|
+
exports.deserializeAws_json1_1DeleteResourceTreeCommand = deserializeAws_json1_1DeleteResourceTreeCommand;
|
|
1659
|
+
const deserializeAws_json1_1DeleteResourceTreeCommandError = async (output, context) => {
|
|
1291
1660
|
const parsedOutput = {
|
|
1292
1661
|
...output,
|
|
1293
1662
|
body: await parseBody(output.body, context),
|
|
@@ -1313,9 +1682,9 @@ const deserializeAws_json1_1DeleteMonitorCommandError = async (output, context)
|
|
|
1313
1682
|
});
|
|
1314
1683
|
}
|
|
1315
1684
|
};
|
|
1316
|
-
const
|
|
1685
|
+
const deserializeAws_json1_1DeleteWhatIfAnalysisCommand = async (output, context) => {
|
|
1317
1686
|
if (output.statusCode >= 300) {
|
|
1318
|
-
return
|
|
1687
|
+
return deserializeAws_json1_1DeleteWhatIfAnalysisCommandError(output, context);
|
|
1319
1688
|
}
|
|
1320
1689
|
await collectBody(output.body, context);
|
|
1321
1690
|
const response = {
|
|
@@ -1323,8 +1692,8 @@ const deserializeAws_json1_1DeletePredictorCommand = async (output, context) =>
|
|
|
1323
1692
|
};
|
|
1324
1693
|
return Promise.resolve(response);
|
|
1325
1694
|
};
|
|
1326
|
-
exports.
|
|
1327
|
-
const
|
|
1695
|
+
exports.deserializeAws_json1_1DeleteWhatIfAnalysisCommand = deserializeAws_json1_1DeleteWhatIfAnalysisCommand;
|
|
1696
|
+
const deserializeAws_json1_1DeleteWhatIfAnalysisCommandError = async (output, context) => {
|
|
1328
1697
|
const parsedOutput = {
|
|
1329
1698
|
...output,
|
|
1330
1699
|
body: await parseBody(output.body, context),
|
|
@@ -1350,9 +1719,9 @@ const deserializeAws_json1_1DeletePredictorCommandError = async (output, context
|
|
|
1350
1719
|
});
|
|
1351
1720
|
}
|
|
1352
1721
|
};
|
|
1353
|
-
const
|
|
1722
|
+
const deserializeAws_json1_1DeleteWhatIfForecastCommand = async (output, context) => {
|
|
1354
1723
|
if (output.statusCode >= 300) {
|
|
1355
|
-
return
|
|
1724
|
+
return deserializeAws_json1_1DeleteWhatIfForecastCommandError(output, context);
|
|
1356
1725
|
}
|
|
1357
1726
|
await collectBody(output.body, context);
|
|
1358
1727
|
const response = {
|
|
@@ -1360,8 +1729,8 @@ const deserializeAws_json1_1DeletePredictorBacktestExportJobCommand = async (out
|
|
|
1360
1729
|
};
|
|
1361
1730
|
return Promise.resolve(response);
|
|
1362
1731
|
};
|
|
1363
|
-
exports.
|
|
1364
|
-
const
|
|
1732
|
+
exports.deserializeAws_json1_1DeleteWhatIfForecastCommand = deserializeAws_json1_1DeleteWhatIfForecastCommand;
|
|
1733
|
+
const deserializeAws_json1_1DeleteWhatIfForecastCommandError = async (output, context) => {
|
|
1365
1734
|
const parsedOutput = {
|
|
1366
1735
|
...output,
|
|
1367
1736
|
body: await parseBody(output.body, context),
|
|
@@ -1387,9 +1756,9 @@ const deserializeAws_json1_1DeletePredictorBacktestExportJobCommandError = async
|
|
|
1387
1756
|
});
|
|
1388
1757
|
}
|
|
1389
1758
|
};
|
|
1390
|
-
const
|
|
1759
|
+
const deserializeAws_json1_1DeleteWhatIfForecastExportCommand = async (output, context) => {
|
|
1391
1760
|
if (output.statusCode >= 300) {
|
|
1392
|
-
return
|
|
1761
|
+
return deserializeAws_json1_1DeleteWhatIfForecastExportCommandError(output, context);
|
|
1393
1762
|
}
|
|
1394
1763
|
await collectBody(output.body, context);
|
|
1395
1764
|
const response = {
|
|
@@ -1397,8 +1766,8 @@ const deserializeAws_json1_1DeleteResourceTreeCommand = async (output, context)
|
|
|
1397
1766
|
};
|
|
1398
1767
|
return Promise.resolve(response);
|
|
1399
1768
|
};
|
|
1400
|
-
exports.
|
|
1401
|
-
const
|
|
1769
|
+
exports.deserializeAws_json1_1DeleteWhatIfForecastExportCommand = deserializeAws_json1_1DeleteWhatIfForecastExportCommand;
|
|
1770
|
+
const deserializeAws_json1_1DeleteWhatIfForecastExportCommandError = async (output, context) => {
|
|
1402
1771
|
const parsedOutput = {
|
|
1403
1772
|
...output,
|
|
1404
1773
|
body: await parseBody(output.body, context),
|
|
@@ -1831,6 +2200,117 @@ const deserializeAws_json1_1DescribePredictorBacktestExportJobCommandError = asy
|
|
|
1831
2200
|
});
|
|
1832
2201
|
}
|
|
1833
2202
|
};
|
|
2203
|
+
const deserializeAws_json1_1DescribeWhatIfAnalysisCommand = async (output, context) => {
|
|
2204
|
+
if (output.statusCode >= 300) {
|
|
2205
|
+
return deserializeAws_json1_1DescribeWhatIfAnalysisCommandError(output, context);
|
|
2206
|
+
}
|
|
2207
|
+
const data = await parseBody(output.body, context);
|
|
2208
|
+
let contents = {};
|
|
2209
|
+
contents = deserializeAws_json1_1DescribeWhatIfAnalysisResponse(data, context);
|
|
2210
|
+
const response = {
|
|
2211
|
+
$metadata: deserializeMetadata(output),
|
|
2212
|
+
...contents,
|
|
2213
|
+
};
|
|
2214
|
+
return Promise.resolve(response);
|
|
2215
|
+
};
|
|
2216
|
+
exports.deserializeAws_json1_1DescribeWhatIfAnalysisCommand = deserializeAws_json1_1DescribeWhatIfAnalysisCommand;
|
|
2217
|
+
const deserializeAws_json1_1DescribeWhatIfAnalysisCommandError = async (output, context) => {
|
|
2218
|
+
const parsedOutput = {
|
|
2219
|
+
...output,
|
|
2220
|
+
body: await parseBody(output.body, context),
|
|
2221
|
+
};
|
|
2222
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2223
|
+
switch (errorCode) {
|
|
2224
|
+
case "InvalidInputException":
|
|
2225
|
+
case "com.amazonaws.forecast#InvalidInputException":
|
|
2226
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2227
|
+
case "ResourceNotFoundException":
|
|
2228
|
+
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
2229
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2230
|
+
default:
|
|
2231
|
+
const parsedBody = parsedOutput.body;
|
|
2232
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2233
|
+
output,
|
|
2234
|
+
parsedBody,
|
|
2235
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
2236
|
+
errorCode,
|
|
2237
|
+
});
|
|
2238
|
+
}
|
|
2239
|
+
};
|
|
2240
|
+
const deserializeAws_json1_1DescribeWhatIfForecastCommand = async (output, context) => {
|
|
2241
|
+
if (output.statusCode >= 300) {
|
|
2242
|
+
return deserializeAws_json1_1DescribeWhatIfForecastCommandError(output, context);
|
|
2243
|
+
}
|
|
2244
|
+
const data = await parseBody(output.body, context);
|
|
2245
|
+
let contents = {};
|
|
2246
|
+
contents = deserializeAws_json1_1DescribeWhatIfForecastResponse(data, context);
|
|
2247
|
+
const response = {
|
|
2248
|
+
$metadata: deserializeMetadata(output),
|
|
2249
|
+
...contents,
|
|
2250
|
+
};
|
|
2251
|
+
return Promise.resolve(response);
|
|
2252
|
+
};
|
|
2253
|
+
exports.deserializeAws_json1_1DescribeWhatIfForecastCommand = deserializeAws_json1_1DescribeWhatIfForecastCommand;
|
|
2254
|
+
const deserializeAws_json1_1DescribeWhatIfForecastCommandError = async (output, context) => {
|
|
2255
|
+
const parsedOutput = {
|
|
2256
|
+
...output,
|
|
2257
|
+
body: await parseBody(output.body, context),
|
|
2258
|
+
};
|
|
2259
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2260
|
+
switch (errorCode) {
|
|
2261
|
+
case "InvalidInputException":
|
|
2262
|
+
case "com.amazonaws.forecast#InvalidInputException":
|
|
2263
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2264
|
+
case "ResourceNotFoundException":
|
|
2265
|
+
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
2266
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2267
|
+
default:
|
|
2268
|
+
const parsedBody = parsedOutput.body;
|
|
2269
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2270
|
+
output,
|
|
2271
|
+
parsedBody,
|
|
2272
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
2273
|
+
errorCode,
|
|
2274
|
+
});
|
|
2275
|
+
}
|
|
2276
|
+
};
|
|
2277
|
+
const deserializeAws_json1_1DescribeWhatIfForecastExportCommand = async (output, context) => {
|
|
2278
|
+
if (output.statusCode >= 300) {
|
|
2279
|
+
return deserializeAws_json1_1DescribeWhatIfForecastExportCommandError(output, context);
|
|
2280
|
+
}
|
|
2281
|
+
const data = await parseBody(output.body, context);
|
|
2282
|
+
let contents = {};
|
|
2283
|
+
contents = deserializeAws_json1_1DescribeWhatIfForecastExportResponse(data, context);
|
|
2284
|
+
const response = {
|
|
2285
|
+
$metadata: deserializeMetadata(output),
|
|
2286
|
+
...contents,
|
|
2287
|
+
};
|
|
2288
|
+
return Promise.resolve(response);
|
|
2289
|
+
};
|
|
2290
|
+
exports.deserializeAws_json1_1DescribeWhatIfForecastExportCommand = deserializeAws_json1_1DescribeWhatIfForecastExportCommand;
|
|
2291
|
+
const deserializeAws_json1_1DescribeWhatIfForecastExportCommandError = async (output, context) => {
|
|
2292
|
+
const parsedOutput = {
|
|
2293
|
+
...output,
|
|
2294
|
+
body: await parseBody(output.body, context),
|
|
2295
|
+
};
|
|
2296
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2297
|
+
switch (errorCode) {
|
|
2298
|
+
case "InvalidInputException":
|
|
2299
|
+
case "com.amazonaws.forecast#InvalidInputException":
|
|
2300
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2301
|
+
case "ResourceNotFoundException":
|
|
2302
|
+
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
2303
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2304
|
+
default:
|
|
2305
|
+
const parsedBody = parsedOutput.body;
|
|
2306
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2307
|
+
output,
|
|
2308
|
+
parsedBody,
|
|
2309
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
2310
|
+
errorCode,
|
|
2311
|
+
});
|
|
2312
|
+
}
|
|
2313
|
+
};
|
|
1834
2314
|
const deserializeAws_json1_1GetAccuracyMetricsCommand = async (output, context) => {
|
|
1835
2315
|
if (output.statusCode >= 300) {
|
|
1836
2316
|
return deserializeAws_json1_1GetAccuracyMetricsCommandError(output, context);
|
|
@@ -2312,6 +2792,117 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2312
2792
|
});
|
|
2313
2793
|
}
|
|
2314
2794
|
};
|
|
2795
|
+
const deserializeAws_json1_1ListWhatIfAnalysesCommand = async (output, context) => {
|
|
2796
|
+
if (output.statusCode >= 300) {
|
|
2797
|
+
return deserializeAws_json1_1ListWhatIfAnalysesCommandError(output, context);
|
|
2798
|
+
}
|
|
2799
|
+
const data = await parseBody(output.body, context);
|
|
2800
|
+
let contents = {};
|
|
2801
|
+
contents = deserializeAws_json1_1ListWhatIfAnalysesResponse(data, context);
|
|
2802
|
+
const response = {
|
|
2803
|
+
$metadata: deserializeMetadata(output),
|
|
2804
|
+
...contents,
|
|
2805
|
+
};
|
|
2806
|
+
return Promise.resolve(response);
|
|
2807
|
+
};
|
|
2808
|
+
exports.deserializeAws_json1_1ListWhatIfAnalysesCommand = deserializeAws_json1_1ListWhatIfAnalysesCommand;
|
|
2809
|
+
const deserializeAws_json1_1ListWhatIfAnalysesCommandError = async (output, context) => {
|
|
2810
|
+
const parsedOutput = {
|
|
2811
|
+
...output,
|
|
2812
|
+
body: await parseBody(output.body, context),
|
|
2813
|
+
};
|
|
2814
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2815
|
+
switch (errorCode) {
|
|
2816
|
+
case "InvalidInputException":
|
|
2817
|
+
case "com.amazonaws.forecast#InvalidInputException":
|
|
2818
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2819
|
+
case "InvalidNextTokenException":
|
|
2820
|
+
case "com.amazonaws.forecast#InvalidNextTokenException":
|
|
2821
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2822
|
+
default:
|
|
2823
|
+
const parsedBody = parsedOutput.body;
|
|
2824
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2825
|
+
output,
|
|
2826
|
+
parsedBody,
|
|
2827
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
2828
|
+
errorCode,
|
|
2829
|
+
});
|
|
2830
|
+
}
|
|
2831
|
+
};
|
|
2832
|
+
const deserializeAws_json1_1ListWhatIfForecastExportsCommand = async (output, context) => {
|
|
2833
|
+
if (output.statusCode >= 300) {
|
|
2834
|
+
return deserializeAws_json1_1ListWhatIfForecastExportsCommandError(output, context);
|
|
2835
|
+
}
|
|
2836
|
+
const data = await parseBody(output.body, context);
|
|
2837
|
+
let contents = {};
|
|
2838
|
+
contents = deserializeAws_json1_1ListWhatIfForecastExportsResponse(data, context);
|
|
2839
|
+
const response = {
|
|
2840
|
+
$metadata: deserializeMetadata(output),
|
|
2841
|
+
...contents,
|
|
2842
|
+
};
|
|
2843
|
+
return Promise.resolve(response);
|
|
2844
|
+
};
|
|
2845
|
+
exports.deserializeAws_json1_1ListWhatIfForecastExportsCommand = deserializeAws_json1_1ListWhatIfForecastExportsCommand;
|
|
2846
|
+
const deserializeAws_json1_1ListWhatIfForecastExportsCommandError = async (output, context) => {
|
|
2847
|
+
const parsedOutput = {
|
|
2848
|
+
...output,
|
|
2849
|
+
body: await parseBody(output.body, context),
|
|
2850
|
+
};
|
|
2851
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2852
|
+
switch (errorCode) {
|
|
2853
|
+
case "InvalidInputException":
|
|
2854
|
+
case "com.amazonaws.forecast#InvalidInputException":
|
|
2855
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2856
|
+
case "InvalidNextTokenException":
|
|
2857
|
+
case "com.amazonaws.forecast#InvalidNextTokenException":
|
|
2858
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2859
|
+
default:
|
|
2860
|
+
const parsedBody = parsedOutput.body;
|
|
2861
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2862
|
+
output,
|
|
2863
|
+
parsedBody,
|
|
2864
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
2865
|
+
errorCode,
|
|
2866
|
+
});
|
|
2867
|
+
}
|
|
2868
|
+
};
|
|
2869
|
+
const deserializeAws_json1_1ListWhatIfForecastsCommand = async (output, context) => {
|
|
2870
|
+
if (output.statusCode >= 300) {
|
|
2871
|
+
return deserializeAws_json1_1ListWhatIfForecastsCommandError(output, context);
|
|
2872
|
+
}
|
|
2873
|
+
const data = await parseBody(output.body, context);
|
|
2874
|
+
let contents = {};
|
|
2875
|
+
contents = deserializeAws_json1_1ListWhatIfForecastsResponse(data, context);
|
|
2876
|
+
const response = {
|
|
2877
|
+
$metadata: deserializeMetadata(output),
|
|
2878
|
+
...contents,
|
|
2879
|
+
};
|
|
2880
|
+
return Promise.resolve(response);
|
|
2881
|
+
};
|
|
2882
|
+
exports.deserializeAws_json1_1ListWhatIfForecastsCommand = deserializeAws_json1_1ListWhatIfForecastsCommand;
|
|
2883
|
+
const deserializeAws_json1_1ListWhatIfForecastsCommandError = async (output, context) => {
|
|
2884
|
+
const parsedOutput = {
|
|
2885
|
+
...output,
|
|
2886
|
+
body: await parseBody(output.body, context),
|
|
2887
|
+
};
|
|
2888
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2889
|
+
switch (errorCode) {
|
|
2890
|
+
case "InvalidInputException":
|
|
2891
|
+
case "com.amazonaws.forecast#InvalidInputException":
|
|
2892
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2893
|
+
case "InvalidNextTokenException":
|
|
2894
|
+
case "com.amazonaws.forecast#InvalidNextTokenException":
|
|
2895
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2896
|
+
default:
|
|
2897
|
+
const parsedBody = parsedOutput.body;
|
|
2898
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2899
|
+
output,
|
|
2900
|
+
parsedBody,
|
|
2901
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
2902
|
+
errorCode,
|
|
2903
|
+
});
|
|
2904
|
+
}
|
|
2905
|
+
};
|
|
2315
2906
|
const deserializeAws_json1_1ResumeResourceCommand = async (output, context) => {
|
|
2316
2907
|
if (output.statusCode >= 300) {
|
|
2317
2908
|
return deserializeAws_json1_1ResumeResourceCommandError(output, context);
|
|
@@ -2560,6 +3151,13 @@ const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOut
|
|
|
2560
3151
|
});
|
|
2561
3152
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2562
3153
|
};
|
|
3154
|
+
const serializeAws_json1_1Action = (input, context) => {
|
|
3155
|
+
return {
|
|
3156
|
+
...(input.AttributeName != null && { AttributeName: input.AttributeName }),
|
|
3157
|
+
...(input.Operation != null && { Operation: input.Operation }),
|
|
3158
|
+
...(input.Value != null && { Value: (0, smithy_client_1.serializeFloat)(input.Value) }),
|
|
3159
|
+
};
|
|
3160
|
+
};
|
|
2563
3161
|
const serializeAws_json1_1AdditionalDataset = (input, context) => {
|
|
2564
3162
|
return {
|
|
2565
3163
|
...(input.Configuration != null && {
|
|
@@ -2794,6 +3392,40 @@ const serializeAws_json1_1CreatePredictorRequest = (input, context) => {
|
|
|
2794
3392
|
}),
|
|
2795
3393
|
};
|
|
2796
3394
|
};
|
|
3395
|
+
const serializeAws_json1_1CreateWhatIfAnalysisRequest = (input, context) => {
|
|
3396
|
+
return {
|
|
3397
|
+
...(input.ForecastArn != null && { ForecastArn: input.ForecastArn }),
|
|
3398
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
3399
|
+
...(input.TimeSeriesSelector != null && {
|
|
3400
|
+
TimeSeriesSelector: serializeAws_json1_1TimeSeriesSelector(input.TimeSeriesSelector, context),
|
|
3401
|
+
}),
|
|
3402
|
+
...(input.WhatIfAnalysisName != null && { WhatIfAnalysisName: input.WhatIfAnalysisName }),
|
|
3403
|
+
};
|
|
3404
|
+
};
|
|
3405
|
+
const serializeAws_json1_1CreateWhatIfForecastExportRequest = (input, context) => {
|
|
3406
|
+
return {
|
|
3407
|
+
...(input.Destination != null && { Destination: serializeAws_json1_1DataDestination(input.Destination, context) }),
|
|
3408
|
+
...(input.Format != null && { Format: input.Format }),
|
|
3409
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
3410
|
+
...(input.WhatIfForecastArns != null && {
|
|
3411
|
+
WhatIfForecastArns: serializeAws_json1_1WhatIfForecastArnListForExport(input.WhatIfForecastArns, context),
|
|
3412
|
+
}),
|
|
3413
|
+
...(input.WhatIfForecastExportName != null && { WhatIfForecastExportName: input.WhatIfForecastExportName }),
|
|
3414
|
+
};
|
|
3415
|
+
};
|
|
3416
|
+
const serializeAws_json1_1CreateWhatIfForecastRequest = (input, context) => {
|
|
3417
|
+
return {
|
|
3418
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
3419
|
+
...(input.TimeSeriesReplacementsDataSource != null && {
|
|
3420
|
+
TimeSeriesReplacementsDataSource: serializeAws_json1_1TimeSeriesReplacementsDataSource(input.TimeSeriesReplacementsDataSource, context),
|
|
3421
|
+
}),
|
|
3422
|
+
...(input.TimeSeriesTransformations != null && {
|
|
3423
|
+
TimeSeriesTransformations: serializeAws_json1_1TimeSeriesTransformations(input.TimeSeriesTransformations, context),
|
|
3424
|
+
}),
|
|
3425
|
+
...(input.WhatIfAnalysisArn != null && { WhatIfAnalysisArn: input.WhatIfAnalysisArn }),
|
|
3426
|
+
...(input.WhatIfForecastName != null && { WhatIfForecastName: input.WhatIfForecastName }),
|
|
3427
|
+
};
|
|
3428
|
+
};
|
|
2797
3429
|
const serializeAws_json1_1DataConfig = (input, context) => {
|
|
2798
3430
|
return {
|
|
2799
3431
|
...(input.AdditionalDatasets != null && {
|
|
@@ -2857,19 +3489,34 @@ const serializeAws_json1_1DeleteMonitorRequest = (input, context) => {
|
|
|
2857
3489
|
};
|
|
2858
3490
|
const serializeAws_json1_1DeletePredictorBacktestExportJobRequest = (input, context) => {
|
|
2859
3491
|
return {
|
|
2860
|
-
...(input.PredictorBacktestExportJobArn != null && {
|
|
2861
|
-
PredictorBacktestExportJobArn: input.PredictorBacktestExportJobArn,
|
|
2862
|
-
}),
|
|
3492
|
+
...(input.PredictorBacktestExportJobArn != null && {
|
|
3493
|
+
PredictorBacktestExportJobArn: input.PredictorBacktestExportJobArn,
|
|
3494
|
+
}),
|
|
3495
|
+
};
|
|
3496
|
+
};
|
|
3497
|
+
const serializeAws_json1_1DeletePredictorRequest = (input, context) => {
|
|
3498
|
+
return {
|
|
3499
|
+
...(input.PredictorArn != null && { PredictorArn: input.PredictorArn }),
|
|
3500
|
+
};
|
|
3501
|
+
};
|
|
3502
|
+
const serializeAws_json1_1DeleteResourceTreeRequest = (input, context) => {
|
|
3503
|
+
return {
|
|
3504
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
3505
|
+
};
|
|
3506
|
+
};
|
|
3507
|
+
const serializeAws_json1_1DeleteWhatIfAnalysisRequest = (input, context) => {
|
|
3508
|
+
return {
|
|
3509
|
+
...(input.WhatIfAnalysisArn != null && { WhatIfAnalysisArn: input.WhatIfAnalysisArn }),
|
|
2863
3510
|
};
|
|
2864
3511
|
};
|
|
2865
|
-
const
|
|
3512
|
+
const serializeAws_json1_1DeleteWhatIfForecastExportRequest = (input, context) => {
|
|
2866
3513
|
return {
|
|
2867
|
-
...(input.
|
|
3514
|
+
...(input.WhatIfForecastExportArn != null && { WhatIfForecastExportArn: input.WhatIfForecastExportArn }),
|
|
2868
3515
|
};
|
|
2869
3516
|
};
|
|
2870
|
-
const
|
|
3517
|
+
const serializeAws_json1_1DeleteWhatIfForecastRequest = (input, context) => {
|
|
2871
3518
|
return {
|
|
2872
|
-
...(input.
|
|
3519
|
+
...(input.WhatIfForecastArn != null && { WhatIfForecastArn: input.WhatIfForecastArn }),
|
|
2873
3520
|
};
|
|
2874
3521
|
};
|
|
2875
3522
|
const serializeAws_json1_1DescribeAutoPredictorRequest = (input, context) => {
|
|
@@ -2929,6 +3576,21 @@ const serializeAws_json1_1DescribePredictorRequest = (input, context) => {
|
|
|
2929
3576
|
...(input.PredictorArn != null && { PredictorArn: input.PredictorArn }),
|
|
2930
3577
|
};
|
|
2931
3578
|
};
|
|
3579
|
+
const serializeAws_json1_1DescribeWhatIfAnalysisRequest = (input, context) => {
|
|
3580
|
+
return {
|
|
3581
|
+
...(input.WhatIfAnalysisArn != null && { WhatIfAnalysisArn: input.WhatIfAnalysisArn }),
|
|
3582
|
+
};
|
|
3583
|
+
};
|
|
3584
|
+
const serializeAws_json1_1DescribeWhatIfForecastExportRequest = (input, context) => {
|
|
3585
|
+
return {
|
|
3586
|
+
...(input.WhatIfForecastExportArn != null && { WhatIfForecastExportArn: input.WhatIfForecastExportArn }),
|
|
3587
|
+
};
|
|
3588
|
+
};
|
|
3589
|
+
const serializeAws_json1_1DescribeWhatIfForecastRequest = (input, context) => {
|
|
3590
|
+
return {
|
|
3591
|
+
...(input.WhatIfForecastArn != null && { WhatIfForecastArn: input.WhatIfForecastArn }),
|
|
3592
|
+
};
|
|
3593
|
+
};
|
|
2932
3594
|
const serializeAws_json1_1EncryptionConfig = (input, context) => {
|
|
2933
3595
|
return {
|
|
2934
3596
|
...(input.KMSKeyArn != null && { KMSKeyArn: input.KMSKeyArn }),
|
|
@@ -3143,6 +3805,27 @@ const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
|
3143
3805
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
3144
3806
|
};
|
|
3145
3807
|
};
|
|
3808
|
+
const serializeAws_json1_1ListWhatIfAnalysesRequest = (input, context) => {
|
|
3809
|
+
return {
|
|
3810
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1Filters(input.Filters, context) }),
|
|
3811
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3812
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3813
|
+
};
|
|
3814
|
+
};
|
|
3815
|
+
const serializeAws_json1_1ListWhatIfForecastExportsRequest = (input, context) => {
|
|
3816
|
+
return {
|
|
3817
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1Filters(input.Filters, context) }),
|
|
3818
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3819
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3820
|
+
};
|
|
3821
|
+
};
|
|
3822
|
+
const serializeAws_json1_1ListWhatIfForecastsRequest = (input, context) => {
|
|
3823
|
+
return {
|
|
3824
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1Filters(input.Filters, context) }),
|
|
3825
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3826
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3827
|
+
};
|
|
3828
|
+
};
|
|
3146
3829
|
const serializeAws_json1_1MonitorConfig = (input, context) => {
|
|
3147
3830
|
return {
|
|
3148
3831
|
...(input.MonitorName != null && { MonitorName: input.MonitorName }),
|
|
@@ -3243,6 +3926,20 @@ const serializeAws_json1_1TimeAlignmentBoundary = (input, context) => {
|
|
|
3243
3926
|
...(input.Month != null && { Month: input.Month }),
|
|
3244
3927
|
};
|
|
3245
3928
|
};
|
|
3929
|
+
const serializeAws_json1_1TimeSeriesCondition = (input, context) => {
|
|
3930
|
+
return {
|
|
3931
|
+
...(input.AttributeName != null && { AttributeName: input.AttributeName }),
|
|
3932
|
+
...(input.AttributeValue != null && { AttributeValue: input.AttributeValue }),
|
|
3933
|
+
...(input.Condition != null && { Condition: input.Condition }),
|
|
3934
|
+
};
|
|
3935
|
+
};
|
|
3936
|
+
const serializeAws_json1_1TimeSeriesConditions = (input, context) => {
|
|
3937
|
+
return input
|
|
3938
|
+
.filter((e) => e != null)
|
|
3939
|
+
.map((entry) => {
|
|
3940
|
+
return serializeAws_json1_1TimeSeriesCondition(entry, context);
|
|
3941
|
+
});
|
|
3942
|
+
};
|
|
3246
3943
|
const serializeAws_json1_1TimeSeriesIdentifiers = (input, context) => {
|
|
3247
3944
|
return {
|
|
3248
3945
|
...(input.DataSource != null && { DataSource: serializeAws_json1_1DataSource(input.DataSource, context) }),
|
|
@@ -3250,6 +3947,14 @@ const serializeAws_json1_1TimeSeriesIdentifiers = (input, context) => {
|
|
|
3250
3947
|
...(input.Schema != null && { Schema: serializeAws_json1_1Schema(input.Schema, context) }),
|
|
3251
3948
|
};
|
|
3252
3949
|
};
|
|
3950
|
+
const serializeAws_json1_1TimeSeriesReplacementsDataSource = (input, context) => {
|
|
3951
|
+
return {
|
|
3952
|
+
...(input.Format != null && { Format: input.Format }),
|
|
3953
|
+
...(input.S3Config != null && { S3Config: serializeAws_json1_1S3Config(input.S3Config, context) }),
|
|
3954
|
+
...(input.Schema != null && { Schema: serializeAws_json1_1Schema(input.Schema, context) }),
|
|
3955
|
+
...(input.TimestampFormat != null && { TimestampFormat: input.TimestampFormat }),
|
|
3956
|
+
};
|
|
3957
|
+
};
|
|
3253
3958
|
const serializeAws_json1_1TimeSeriesSelector = (input, context) => {
|
|
3254
3959
|
return {
|
|
3255
3960
|
...(input.TimeSeriesIdentifiers != null && {
|
|
@@ -3257,6 +3962,21 @@ const serializeAws_json1_1TimeSeriesSelector = (input, context) => {
|
|
|
3257
3962
|
}),
|
|
3258
3963
|
};
|
|
3259
3964
|
};
|
|
3965
|
+
const serializeAws_json1_1TimeSeriesTransformation = (input, context) => {
|
|
3966
|
+
return {
|
|
3967
|
+
...(input.Action != null && { Action: serializeAws_json1_1Action(input.Action, context) }),
|
|
3968
|
+
...(input.TimeSeriesConditions != null && {
|
|
3969
|
+
TimeSeriesConditions: serializeAws_json1_1TimeSeriesConditions(input.TimeSeriesConditions, context),
|
|
3970
|
+
}),
|
|
3971
|
+
};
|
|
3972
|
+
};
|
|
3973
|
+
const serializeAws_json1_1TimeSeriesTransformations = (input, context) => {
|
|
3974
|
+
return input
|
|
3975
|
+
.filter((e) => e != null)
|
|
3976
|
+
.map((entry) => {
|
|
3977
|
+
return serializeAws_json1_1TimeSeriesTransformation(entry, context);
|
|
3978
|
+
});
|
|
3979
|
+
};
|
|
3260
3980
|
const serializeAws_json1_1TrainingParameters = (input, context) => {
|
|
3261
3981
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3262
3982
|
if (value === null) {
|
|
@@ -3298,6 +4018,20 @@ const serializeAws_json1_1Values = (input, context) => {
|
|
|
3298
4018
|
return entry;
|
|
3299
4019
|
});
|
|
3300
4020
|
};
|
|
4021
|
+
const serializeAws_json1_1WhatIfForecastArnListForExport = (input, context) => {
|
|
4022
|
+
return input
|
|
4023
|
+
.filter((e) => e != null)
|
|
4024
|
+
.map((entry) => {
|
|
4025
|
+
return entry;
|
|
4026
|
+
});
|
|
4027
|
+
};
|
|
4028
|
+
const deserializeAws_json1_1Action = (output, context) => {
|
|
4029
|
+
return {
|
|
4030
|
+
AttributeName: (0, smithy_client_1.expectString)(output.AttributeName),
|
|
4031
|
+
Operation: (0, smithy_client_1.expectString)(output.Operation),
|
|
4032
|
+
Value: (0, smithy_client_1.limitedParseDouble)(output.Value),
|
|
4033
|
+
};
|
|
4034
|
+
};
|
|
3301
4035
|
const deserializeAws_json1_1AdditionalDataset = (output, context) => {
|
|
3302
4036
|
return {
|
|
3303
4037
|
Configuration: output.Configuration != null ? deserializeAws_json1_1Configuration(output.Configuration, context) : undefined,
|
|
@@ -3471,6 +4205,21 @@ const deserializeAws_json1_1CreatePredictorResponse = (output, context) => {
|
|
|
3471
4205
|
PredictorArn: (0, smithy_client_1.expectString)(output.PredictorArn),
|
|
3472
4206
|
};
|
|
3473
4207
|
};
|
|
4208
|
+
const deserializeAws_json1_1CreateWhatIfAnalysisResponse = (output, context) => {
|
|
4209
|
+
return {
|
|
4210
|
+
WhatIfAnalysisArn: (0, smithy_client_1.expectString)(output.WhatIfAnalysisArn),
|
|
4211
|
+
};
|
|
4212
|
+
};
|
|
4213
|
+
const deserializeAws_json1_1CreateWhatIfForecastExportResponse = (output, context) => {
|
|
4214
|
+
return {
|
|
4215
|
+
WhatIfForecastExportArn: (0, smithy_client_1.expectString)(output.WhatIfForecastExportArn),
|
|
4216
|
+
};
|
|
4217
|
+
};
|
|
4218
|
+
const deserializeAws_json1_1CreateWhatIfForecastResponse = (output, context) => {
|
|
4219
|
+
return {
|
|
4220
|
+
WhatIfForecastArn: (0, smithy_client_1.expectString)(output.WhatIfForecastArn),
|
|
4221
|
+
};
|
|
4222
|
+
};
|
|
3474
4223
|
const deserializeAws_json1_1DataConfig = (output, context) => {
|
|
3475
4224
|
return {
|
|
3476
4225
|
AdditionalDatasets: output.AdditionalDatasets != null
|
|
@@ -3833,6 +4582,68 @@ const deserializeAws_json1_1DescribePredictorResponse = (output, context) => {
|
|
|
3833
4582
|
: undefined,
|
|
3834
4583
|
};
|
|
3835
4584
|
};
|
|
4585
|
+
const deserializeAws_json1_1DescribeWhatIfAnalysisResponse = (output, context) => {
|
|
4586
|
+
return {
|
|
4587
|
+
CreationTime: output.CreationTime != null
|
|
4588
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
4589
|
+
: undefined,
|
|
4590
|
+
EstimatedTimeRemainingInMinutes: (0, smithy_client_1.expectLong)(output.EstimatedTimeRemainingInMinutes),
|
|
4591
|
+
ForecastArn: (0, smithy_client_1.expectString)(output.ForecastArn),
|
|
4592
|
+
LastModificationTime: output.LastModificationTime != null
|
|
4593
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModificationTime)))
|
|
4594
|
+
: undefined,
|
|
4595
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4596
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
4597
|
+
TimeSeriesSelector: output.TimeSeriesSelector != null
|
|
4598
|
+
? deserializeAws_json1_1TimeSeriesSelector(output.TimeSeriesSelector, context)
|
|
4599
|
+
: undefined,
|
|
4600
|
+
WhatIfAnalysisArn: (0, smithy_client_1.expectString)(output.WhatIfAnalysisArn),
|
|
4601
|
+
WhatIfAnalysisName: (0, smithy_client_1.expectString)(output.WhatIfAnalysisName),
|
|
4602
|
+
};
|
|
4603
|
+
};
|
|
4604
|
+
const deserializeAws_json1_1DescribeWhatIfForecastExportResponse = (output, context) => {
|
|
4605
|
+
return {
|
|
4606
|
+
CreationTime: output.CreationTime != null
|
|
4607
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
4608
|
+
: undefined,
|
|
4609
|
+
Destination: output.Destination != null ? deserializeAws_json1_1DataDestination(output.Destination, context) : undefined,
|
|
4610
|
+
EstimatedTimeRemainingInMinutes: (0, smithy_client_1.expectLong)(output.EstimatedTimeRemainingInMinutes),
|
|
4611
|
+
Format: (0, smithy_client_1.expectString)(output.Format),
|
|
4612
|
+
LastModificationTime: output.LastModificationTime != null
|
|
4613
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModificationTime)))
|
|
4614
|
+
: undefined,
|
|
4615
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4616
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
4617
|
+
WhatIfForecastArns: output.WhatIfForecastArns != null
|
|
4618
|
+
? deserializeAws_json1_1LongArnList(output.WhatIfForecastArns, context)
|
|
4619
|
+
: undefined,
|
|
4620
|
+
WhatIfForecastExportArn: (0, smithy_client_1.expectString)(output.WhatIfForecastExportArn),
|
|
4621
|
+
WhatIfForecastExportName: (0, smithy_client_1.expectString)(output.WhatIfForecastExportName),
|
|
4622
|
+
};
|
|
4623
|
+
};
|
|
4624
|
+
const deserializeAws_json1_1DescribeWhatIfForecastResponse = (output, context) => {
|
|
4625
|
+
return {
|
|
4626
|
+
CreationTime: output.CreationTime != null
|
|
4627
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
4628
|
+
: undefined,
|
|
4629
|
+
EstimatedTimeRemainingInMinutes: (0, smithy_client_1.expectLong)(output.EstimatedTimeRemainingInMinutes),
|
|
4630
|
+
ForecastTypes: output.ForecastTypes != null ? deserializeAws_json1_1ForecastTypes(output.ForecastTypes, context) : undefined,
|
|
4631
|
+
LastModificationTime: output.LastModificationTime != null
|
|
4632
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModificationTime)))
|
|
4633
|
+
: undefined,
|
|
4634
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4635
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
4636
|
+
TimeSeriesReplacementsDataSource: output.TimeSeriesReplacementsDataSource != null
|
|
4637
|
+
? deserializeAws_json1_1TimeSeriesReplacementsDataSource(output.TimeSeriesReplacementsDataSource, context)
|
|
4638
|
+
: undefined,
|
|
4639
|
+
TimeSeriesTransformations: output.TimeSeriesTransformations != null
|
|
4640
|
+
? deserializeAws_json1_1TimeSeriesTransformations(output.TimeSeriesTransformations, context)
|
|
4641
|
+
: undefined,
|
|
4642
|
+
WhatIfAnalysisArn: (0, smithy_client_1.expectString)(output.WhatIfAnalysisArn),
|
|
4643
|
+
WhatIfForecastArn: (0, smithy_client_1.expectString)(output.WhatIfForecastArn),
|
|
4644
|
+
WhatIfForecastName: (0, smithy_client_1.expectString)(output.WhatIfForecastName),
|
|
4645
|
+
};
|
|
4646
|
+
};
|
|
3836
4647
|
const deserializeAws_json1_1EncryptionConfig = (output, context) => {
|
|
3837
4648
|
return {
|
|
3838
4649
|
KMSKeyArn: (0, smithy_client_1.expectString)(output.KMSKeyArn),
|
|
@@ -4225,6 +5036,39 @@ const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
|
4225
5036
|
Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
4226
5037
|
};
|
|
4227
5038
|
};
|
|
5039
|
+
const deserializeAws_json1_1ListWhatIfAnalysesResponse = (output, context) => {
|
|
5040
|
+
return {
|
|
5041
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5042
|
+
WhatIfAnalyses: output.WhatIfAnalyses != null ? deserializeAws_json1_1WhatIfAnalyses(output.WhatIfAnalyses, context) : undefined,
|
|
5043
|
+
};
|
|
5044
|
+
};
|
|
5045
|
+
const deserializeAws_json1_1ListWhatIfForecastExportsResponse = (output, context) => {
|
|
5046
|
+
return {
|
|
5047
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5048
|
+
WhatIfForecastExports: output.WhatIfForecastExports != null
|
|
5049
|
+
? deserializeAws_json1_1WhatIfForecastExports(output.WhatIfForecastExports, context)
|
|
5050
|
+
: undefined,
|
|
5051
|
+
};
|
|
5052
|
+
};
|
|
5053
|
+
const deserializeAws_json1_1ListWhatIfForecastsResponse = (output, context) => {
|
|
5054
|
+
return {
|
|
5055
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5056
|
+
WhatIfForecasts: output.WhatIfForecasts != null
|
|
5057
|
+
? deserializeAws_json1_1WhatIfForecasts(output.WhatIfForecasts, context)
|
|
5058
|
+
: undefined,
|
|
5059
|
+
};
|
|
5060
|
+
};
|
|
5061
|
+
const deserializeAws_json1_1LongArnList = (output, context) => {
|
|
5062
|
+
const retVal = (output || [])
|
|
5063
|
+
.filter((e) => e != null)
|
|
5064
|
+
.map((entry) => {
|
|
5065
|
+
if (entry === null) {
|
|
5066
|
+
return null;
|
|
5067
|
+
}
|
|
5068
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
5069
|
+
});
|
|
5070
|
+
return retVal;
|
|
5071
|
+
};
|
|
4228
5072
|
const deserializeAws_json1_1MetricResult = (output, context) => {
|
|
4229
5073
|
return {
|
|
4230
5074
|
MetricName: (0, smithy_client_1.expectString)(output.MetricName),
|
|
@@ -4586,6 +5430,24 @@ const deserializeAws_json1_1TimeAlignmentBoundary = (output, context) => {
|
|
|
4586
5430
|
Month: (0, smithy_client_1.expectString)(output.Month),
|
|
4587
5431
|
};
|
|
4588
5432
|
};
|
|
5433
|
+
const deserializeAws_json1_1TimeSeriesCondition = (output, context) => {
|
|
5434
|
+
return {
|
|
5435
|
+
AttributeName: (0, smithy_client_1.expectString)(output.AttributeName),
|
|
5436
|
+
AttributeValue: (0, smithy_client_1.expectString)(output.AttributeValue),
|
|
5437
|
+
Condition: (0, smithy_client_1.expectString)(output.Condition),
|
|
5438
|
+
};
|
|
5439
|
+
};
|
|
5440
|
+
const deserializeAws_json1_1TimeSeriesConditions = (output, context) => {
|
|
5441
|
+
const retVal = (output || [])
|
|
5442
|
+
.filter((e) => e != null)
|
|
5443
|
+
.map((entry) => {
|
|
5444
|
+
if (entry === null) {
|
|
5445
|
+
return null;
|
|
5446
|
+
}
|
|
5447
|
+
return deserializeAws_json1_1TimeSeriesCondition(entry, context);
|
|
5448
|
+
});
|
|
5449
|
+
return retVal;
|
|
5450
|
+
};
|
|
4589
5451
|
const deserializeAws_json1_1TimeSeriesIdentifiers = (output, context) => {
|
|
4590
5452
|
return {
|
|
4591
5453
|
DataSource: output.DataSource != null ? deserializeAws_json1_1DataSource(output.DataSource, context) : undefined,
|
|
@@ -4593,6 +5455,14 @@ const deserializeAws_json1_1TimeSeriesIdentifiers = (output, context) => {
|
|
|
4593
5455
|
Schema: output.Schema != null ? deserializeAws_json1_1Schema(output.Schema, context) : undefined,
|
|
4594
5456
|
};
|
|
4595
5457
|
};
|
|
5458
|
+
const deserializeAws_json1_1TimeSeriesReplacementsDataSource = (output, context) => {
|
|
5459
|
+
return {
|
|
5460
|
+
Format: (0, smithy_client_1.expectString)(output.Format),
|
|
5461
|
+
S3Config: output.S3Config != null ? deserializeAws_json1_1S3Config(output.S3Config, context) : undefined,
|
|
5462
|
+
Schema: output.Schema != null ? deserializeAws_json1_1Schema(output.Schema, context) : undefined,
|
|
5463
|
+
TimestampFormat: (0, smithy_client_1.expectString)(output.TimestampFormat),
|
|
5464
|
+
};
|
|
5465
|
+
};
|
|
4596
5466
|
const deserializeAws_json1_1TimeSeriesSelector = (output, context) => {
|
|
4597
5467
|
return {
|
|
4598
5468
|
TimeSeriesIdentifiers: output.TimeSeriesIdentifiers != null
|
|
@@ -4600,6 +5470,25 @@ const deserializeAws_json1_1TimeSeriesSelector = (output, context) => {
|
|
|
4600
5470
|
: undefined,
|
|
4601
5471
|
};
|
|
4602
5472
|
};
|
|
5473
|
+
const deserializeAws_json1_1TimeSeriesTransformation = (output, context) => {
|
|
5474
|
+
return {
|
|
5475
|
+
Action: output.Action != null ? deserializeAws_json1_1Action(output.Action, context) : undefined,
|
|
5476
|
+
TimeSeriesConditions: output.TimeSeriesConditions != null
|
|
5477
|
+
? deserializeAws_json1_1TimeSeriesConditions(output.TimeSeriesConditions, context)
|
|
5478
|
+
: undefined,
|
|
5479
|
+
};
|
|
5480
|
+
};
|
|
5481
|
+
const deserializeAws_json1_1TimeSeriesTransformations = (output, context) => {
|
|
5482
|
+
const retVal = (output || [])
|
|
5483
|
+
.filter((e) => e != null)
|
|
5484
|
+
.map((entry) => {
|
|
5485
|
+
if (entry === null) {
|
|
5486
|
+
return null;
|
|
5487
|
+
}
|
|
5488
|
+
return deserializeAws_json1_1TimeSeriesTransformation(entry, context);
|
|
5489
|
+
});
|
|
5490
|
+
return retVal;
|
|
5491
|
+
};
|
|
4603
5492
|
const deserializeAws_json1_1TrainingParameters = (output, context) => {
|
|
4604
5493
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4605
5494
|
if (value === null) {
|
|
@@ -4656,6 +5545,98 @@ const deserializeAws_json1_1WeightedQuantileLosses = (output, context) => {
|
|
|
4656
5545
|
});
|
|
4657
5546
|
return retVal;
|
|
4658
5547
|
};
|
|
5548
|
+
const deserializeAws_json1_1WhatIfAnalyses = (output, context) => {
|
|
5549
|
+
const retVal = (output || [])
|
|
5550
|
+
.filter((e) => e != null)
|
|
5551
|
+
.map((entry) => {
|
|
5552
|
+
if (entry === null) {
|
|
5553
|
+
return null;
|
|
5554
|
+
}
|
|
5555
|
+
return deserializeAws_json1_1WhatIfAnalysisSummary(entry, context);
|
|
5556
|
+
});
|
|
5557
|
+
return retVal;
|
|
5558
|
+
};
|
|
5559
|
+
const deserializeAws_json1_1WhatIfAnalysisSummary = (output, context) => {
|
|
5560
|
+
return {
|
|
5561
|
+
CreationTime: output.CreationTime != null
|
|
5562
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
5563
|
+
: undefined,
|
|
5564
|
+
ForecastArn: (0, smithy_client_1.expectString)(output.ForecastArn),
|
|
5565
|
+
LastModificationTime: output.LastModificationTime != null
|
|
5566
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModificationTime)))
|
|
5567
|
+
: undefined,
|
|
5568
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
5569
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
5570
|
+
WhatIfAnalysisArn: (0, smithy_client_1.expectString)(output.WhatIfAnalysisArn),
|
|
5571
|
+
WhatIfAnalysisName: (0, smithy_client_1.expectString)(output.WhatIfAnalysisName),
|
|
5572
|
+
};
|
|
5573
|
+
};
|
|
5574
|
+
const deserializeAws_json1_1WhatIfForecastArnListForExport = (output, context) => {
|
|
5575
|
+
const retVal = (output || [])
|
|
5576
|
+
.filter((e) => e != null)
|
|
5577
|
+
.map((entry) => {
|
|
5578
|
+
if (entry === null) {
|
|
5579
|
+
return null;
|
|
5580
|
+
}
|
|
5581
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
5582
|
+
});
|
|
5583
|
+
return retVal;
|
|
5584
|
+
};
|
|
5585
|
+
const deserializeAws_json1_1WhatIfForecastExports = (output, context) => {
|
|
5586
|
+
const retVal = (output || [])
|
|
5587
|
+
.filter((e) => e != null)
|
|
5588
|
+
.map((entry) => {
|
|
5589
|
+
if (entry === null) {
|
|
5590
|
+
return null;
|
|
5591
|
+
}
|
|
5592
|
+
return deserializeAws_json1_1WhatIfForecastExportSummary(entry, context);
|
|
5593
|
+
});
|
|
5594
|
+
return retVal;
|
|
5595
|
+
};
|
|
5596
|
+
const deserializeAws_json1_1WhatIfForecastExportSummary = (output, context) => {
|
|
5597
|
+
return {
|
|
5598
|
+
CreationTime: output.CreationTime != null
|
|
5599
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
5600
|
+
: undefined,
|
|
5601
|
+
Destination: output.Destination != null ? deserializeAws_json1_1DataDestination(output.Destination, context) : undefined,
|
|
5602
|
+
LastModificationTime: output.LastModificationTime != null
|
|
5603
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModificationTime)))
|
|
5604
|
+
: undefined,
|
|
5605
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
5606
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
5607
|
+
WhatIfForecastArns: output.WhatIfForecastArns != null
|
|
5608
|
+
? deserializeAws_json1_1WhatIfForecastArnListForExport(output.WhatIfForecastArns, context)
|
|
5609
|
+
: undefined,
|
|
5610
|
+
WhatIfForecastExportArn: (0, smithy_client_1.expectString)(output.WhatIfForecastExportArn),
|
|
5611
|
+
WhatIfForecastExportName: (0, smithy_client_1.expectString)(output.WhatIfForecastExportName),
|
|
5612
|
+
};
|
|
5613
|
+
};
|
|
5614
|
+
const deserializeAws_json1_1WhatIfForecasts = (output, context) => {
|
|
5615
|
+
const retVal = (output || [])
|
|
5616
|
+
.filter((e) => e != null)
|
|
5617
|
+
.map((entry) => {
|
|
5618
|
+
if (entry === null) {
|
|
5619
|
+
return null;
|
|
5620
|
+
}
|
|
5621
|
+
return deserializeAws_json1_1WhatIfForecastSummary(entry, context);
|
|
5622
|
+
});
|
|
5623
|
+
return retVal;
|
|
5624
|
+
};
|
|
5625
|
+
const deserializeAws_json1_1WhatIfForecastSummary = (output, context) => {
|
|
5626
|
+
return {
|
|
5627
|
+
CreationTime: output.CreationTime != null
|
|
5628
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
5629
|
+
: undefined,
|
|
5630
|
+
LastModificationTime: output.LastModificationTime != null
|
|
5631
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModificationTime)))
|
|
5632
|
+
: undefined,
|
|
5633
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
5634
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
5635
|
+
WhatIfAnalysisArn: (0, smithy_client_1.expectString)(output.WhatIfAnalysisArn),
|
|
5636
|
+
WhatIfForecastArn: (0, smithy_client_1.expectString)(output.WhatIfForecastArn),
|
|
5637
|
+
WhatIfForecastName: (0, smithy_client_1.expectString)(output.WhatIfForecastName),
|
|
5638
|
+
};
|
|
5639
|
+
};
|
|
4659
5640
|
const deserializeAws_json1_1WindowSummary = (output, context) => {
|
|
4660
5641
|
return {
|
|
4661
5642
|
EvaluationType: (0, smithy_client_1.expectString)(output.EvaluationType),
|