@aws-sdk/client-forecast 3.95.0 → 3.97.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 +90 -0
- package/dist-cjs/commands/CreateMonitorCommand.js +36 -0
- package/dist-cjs/commands/DeleteMonitorCommand.js +36 -0
- package/dist-cjs/commands/DescribeMonitorCommand.js +36 -0
- package/dist-cjs/commands/ListMonitorEvaluationsCommand.js +36 -0
- package/dist-cjs/commands/ListMonitorsCommand.js +36 -0
- package/dist-cjs/commands/ResumeResourceCommand.js +36 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/models/models_0.js +125 -3
- package/dist-cjs/pagination/ListExplainabilitiesPaginator.js +36 -0
- package/dist-cjs/pagination/ListExplainabilityExportsPaginator.js +36 -0
- package/dist-cjs/pagination/ListMonitorEvaluationsPaginator.js +36 -0
- package/dist-cjs/pagination/ListMonitorsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +4 -0
- package/dist-cjs/protocols/Aws_json1_1.js +539 -2
- package/dist-es/Forecast.js +90 -0
- package/dist-es/commands/CreateMonitorCommand.js +39 -0
- package/dist-es/commands/DeleteMonitorCommand.js +39 -0
- package/dist-es/commands/DescribeMonitorCommand.js +39 -0
- package/dist-es/commands/ListMonitorEvaluationsCommand.js +39 -0
- package/dist-es/commands/ListMonitorsCommand.js +39 -0
- package/dist-es/commands/ResumeResourceCommand.js +39 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/models/models_0.js +80 -0
- package/dist-es/pagination/ListExplainabilitiesPaginator.js +75 -0
- package/dist-es/pagination/ListExplainabilityExportsPaginator.js +75 -0
- package/dist-es/pagination/ListMonitorEvaluationsPaginator.js +75 -0
- package/dist-es/pagination/ListMonitorsPaginator.js +75 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_json1_1.js +624 -1
- package/dist-types/Forecast.d.ts +133 -45
- package/dist-types/ForecastClient.d.ts +8 -2
- package/dist-types/commands/CreateAutoPredictorCommand.d.ts +7 -5
- package/dist-types/commands/CreateDatasetCommand.d.ts +4 -4
- package/dist-types/commands/CreateDatasetGroupCommand.d.ts +4 -4
- package/dist-types/commands/CreateDatasetImportJobCommand.d.ts +5 -4
- package/dist-types/commands/CreateExplainabilityCommand.d.ts +2 -2
- package/dist-types/commands/CreateMonitorCommand.d.ts +37 -0
- package/dist-types/commands/DeleteDatasetCommand.d.ts +5 -6
- package/dist-types/commands/DeleteDatasetGroupCommand.d.ts +2 -2
- package/dist-types/commands/DeleteDatasetImportJobCommand.d.ts +3 -2
- package/dist-types/commands/DeleteMonitorCommand.d.ts +35 -0
- package/dist-types/commands/DescribeDatasetCommand.d.ts +1 -2
- package/dist-types/commands/DescribeDatasetGroupCommand.d.ts +1 -1
- package/dist-types/commands/DescribeDatasetImportJobCommand.d.ts +1 -1
- package/dist-types/commands/DescribeMonitorCommand.d.ts +72 -0
- package/dist-types/commands/ListDatasetGroupsCommand.d.ts +5 -4
- package/dist-types/commands/ListDatasetImportJobsCommand.d.ts +5 -4
- package/dist-types/commands/ListDatasetsCommand.d.ts +3 -3
- package/dist-types/commands/ListMonitorEvaluationsCommand.d.ts +37 -0
- package/dist-types/commands/ListMonitorsCommand.d.ts +36 -0
- package/dist-types/commands/ResumeResourceCommand.d.ts +35 -0
- package/dist-types/commands/UpdateDatasetGroupCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +660 -62
- package/dist-types/pagination/ListExplainabilitiesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListExplainabilityExportsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListMonitorEvaluationsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListMonitorsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +18 -0
- package/dist-types/ts3.4/Forecast.d.ts +30 -0
- package/dist-types/ts3.4/ForecastClient.d.ts +8 -2
- package/dist-types/ts3.4/commands/CreateMonitorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteMonitorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeMonitorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListMonitorEvaluationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListMonitorsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ResumeResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +252 -0
- package/dist-types/ts3.4/pagination/ListExplainabilitiesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListExplainabilityExportsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListMonitorEvaluationsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListMonitorsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +18 -0
- package/package.json +1 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1StopResourceCommand = exports.serializeAws_json1_1ResumeResourceCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListPredictorsCommand = exports.serializeAws_json1_1ListPredictorBacktestExportJobsCommand = exports.serializeAws_json1_1ListMonitorsCommand = exports.serializeAws_json1_1ListMonitorEvaluationsCommand = 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_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_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_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_1TagResourceCommand = exports.deserializeAws_json1_1StopResourceCommand = exports.deserializeAws_json1_1ResumeResourceCommand = 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_1DescribePredictorBacktestExportJobCommand = exports.deserializeAws_json1_1DescribePredictorCommand = 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_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_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 = void 0;
|
|
5
|
+
exports.deserializeAws_json1_1UpdateDatasetGroupCommand = exports.deserializeAws_json1_1UntagResourceCommand = void 0;
|
|
5
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
8
|
const ForecastServiceException_1 = require("../models/ForecastServiceException");
|
|
@@ -86,6 +87,16 @@ const serializeAws_json1_1CreateForecastExportJobCommand = async (input, context
|
|
|
86
87
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
87
88
|
};
|
|
88
89
|
exports.serializeAws_json1_1CreateForecastExportJobCommand = serializeAws_json1_1CreateForecastExportJobCommand;
|
|
90
|
+
const serializeAws_json1_1CreateMonitorCommand = async (input, context) => {
|
|
91
|
+
const headers = {
|
|
92
|
+
"content-type": "application/x-amz-json-1.1",
|
|
93
|
+
"x-amz-target": "AmazonForecast.CreateMonitor",
|
|
94
|
+
};
|
|
95
|
+
let body;
|
|
96
|
+
body = JSON.stringify(serializeAws_json1_1CreateMonitorRequest(input, context));
|
|
97
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
98
|
+
};
|
|
99
|
+
exports.serializeAws_json1_1CreateMonitorCommand = serializeAws_json1_1CreateMonitorCommand;
|
|
89
100
|
const serializeAws_json1_1CreatePredictorCommand = async (input, context) => {
|
|
90
101
|
const headers = {
|
|
91
102
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -176,6 +187,16 @@ const serializeAws_json1_1DeleteForecastExportJobCommand = async (input, context
|
|
|
176
187
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
177
188
|
};
|
|
178
189
|
exports.serializeAws_json1_1DeleteForecastExportJobCommand = serializeAws_json1_1DeleteForecastExportJobCommand;
|
|
190
|
+
const serializeAws_json1_1DeleteMonitorCommand = async (input, context) => {
|
|
191
|
+
const headers = {
|
|
192
|
+
"content-type": "application/x-amz-json-1.1",
|
|
193
|
+
"x-amz-target": "AmazonForecast.DeleteMonitor",
|
|
194
|
+
};
|
|
195
|
+
let body;
|
|
196
|
+
body = JSON.stringify(serializeAws_json1_1DeleteMonitorRequest(input, context));
|
|
197
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
198
|
+
};
|
|
199
|
+
exports.serializeAws_json1_1DeleteMonitorCommand = serializeAws_json1_1DeleteMonitorCommand;
|
|
179
200
|
const serializeAws_json1_1DeletePredictorCommand = async (input, context) => {
|
|
180
201
|
const headers = {
|
|
181
202
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -286,6 +307,16 @@ const serializeAws_json1_1DescribeForecastExportJobCommand = async (input, conte
|
|
|
286
307
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
308
|
};
|
|
288
309
|
exports.serializeAws_json1_1DescribeForecastExportJobCommand = serializeAws_json1_1DescribeForecastExportJobCommand;
|
|
310
|
+
const serializeAws_json1_1DescribeMonitorCommand = async (input, context) => {
|
|
311
|
+
const headers = {
|
|
312
|
+
"content-type": "application/x-amz-json-1.1",
|
|
313
|
+
"x-amz-target": "AmazonForecast.DescribeMonitor",
|
|
314
|
+
};
|
|
315
|
+
let body;
|
|
316
|
+
body = JSON.stringify(serializeAws_json1_1DescribeMonitorRequest(input, context));
|
|
317
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
318
|
+
};
|
|
319
|
+
exports.serializeAws_json1_1DescribeMonitorCommand = serializeAws_json1_1DescribeMonitorCommand;
|
|
289
320
|
const serializeAws_json1_1DescribePredictorCommand = async (input, context) => {
|
|
290
321
|
const headers = {
|
|
291
322
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -386,6 +417,26 @@ const serializeAws_json1_1ListForecastsCommand = async (input, context) => {
|
|
|
386
417
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
387
418
|
};
|
|
388
419
|
exports.serializeAws_json1_1ListForecastsCommand = serializeAws_json1_1ListForecastsCommand;
|
|
420
|
+
const serializeAws_json1_1ListMonitorEvaluationsCommand = async (input, context) => {
|
|
421
|
+
const headers = {
|
|
422
|
+
"content-type": "application/x-amz-json-1.1",
|
|
423
|
+
"x-amz-target": "AmazonForecast.ListMonitorEvaluations",
|
|
424
|
+
};
|
|
425
|
+
let body;
|
|
426
|
+
body = JSON.stringify(serializeAws_json1_1ListMonitorEvaluationsRequest(input, context));
|
|
427
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
428
|
+
};
|
|
429
|
+
exports.serializeAws_json1_1ListMonitorEvaluationsCommand = serializeAws_json1_1ListMonitorEvaluationsCommand;
|
|
430
|
+
const serializeAws_json1_1ListMonitorsCommand = async (input, context) => {
|
|
431
|
+
const headers = {
|
|
432
|
+
"content-type": "application/x-amz-json-1.1",
|
|
433
|
+
"x-amz-target": "AmazonForecast.ListMonitors",
|
|
434
|
+
};
|
|
435
|
+
let body;
|
|
436
|
+
body = JSON.stringify(serializeAws_json1_1ListMonitorsRequest(input, context));
|
|
437
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
438
|
+
};
|
|
439
|
+
exports.serializeAws_json1_1ListMonitorsCommand = serializeAws_json1_1ListMonitorsCommand;
|
|
389
440
|
const serializeAws_json1_1ListPredictorBacktestExportJobsCommand = async (input, context) => {
|
|
390
441
|
const headers = {
|
|
391
442
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -416,6 +467,16 @@ const serializeAws_json1_1ListTagsForResourceCommand = async (input, context) =>
|
|
|
416
467
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
417
468
|
};
|
|
418
469
|
exports.serializeAws_json1_1ListTagsForResourceCommand = serializeAws_json1_1ListTagsForResourceCommand;
|
|
470
|
+
const serializeAws_json1_1ResumeResourceCommand = async (input, context) => {
|
|
471
|
+
const headers = {
|
|
472
|
+
"content-type": "application/x-amz-json-1.1",
|
|
473
|
+
"x-amz-target": "AmazonForecast.ResumeResource",
|
|
474
|
+
};
|
|
475
|
+
let body;
|
|
476
|
+
body = JSON.stringify(serializeAws_json1_1ResumeResourceRequest(input, context));
|
|
477
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
478
|
+
};
|
|
479
|
+
exports.serializeAws_json1_1ResumeResourceCommand = serializeAws_json1_1ResumeResourceCommand;
|
|
419
480
|
const serializeAws_json1_1StopResourceCommand = async (input, context) => {
|
|
420
481
|
const headers = {
|
|
421
482
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -834,6 +895,54 @@ const deserializeAws_json1_1CreateForecastExportJobCommandError = async (output,
|
|
|
834
895
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
835
896
|
}
|
|
836
897
|
};
|
|
898
|
+
const deserializeAws_json1_1CreateMonitorCommand = async (output, context) => {
|
|
899
|
+
if (output.statusCode >= 300) {
|
|
900
|
+
return deserializeAws_json1_1CreateMonitorCommandError(output, context);
|
|
901
|
+
}
|
|
902
|
+
const data = await parseBody(output.body, context);
|
|
903
|
+
let contents = {};
|
|
904
|
+
contents = deserializeAws_json1_1CreateMonitorResponse(data, context);
|
|
905
|
+
const response = {
|
|
906
|
+
$metadata: deserializeMetadata(output),
|
|
907
|
+
...contents,
|
|
908
|
+
};
|
|
909
|
+
return Promise.resolve(response);
|
|
910
|
+
};
|
|
911
|
+
exports.deserializeAws_json1_1CreateMonitorCommand = deserializeAws_json1_1CreateMonitorCommand;
|
|
912
|
+
const deserializeAws_json1_1CreateMonitorCommandError = async (output, context) => {
|
|
913
|
+
const parsedOutput = {
|
|
914
|
+
...output,
|
|
915
|
+
body: await parseBody(output.body, context),
|
|
916
|
+
};
|
|
917
|
+
let response;
|
|
918
|
+
let errorCode = "UnknownError";
|
|
919
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
920
|
+
switch (errorCode) {
|
|
921
|
+
case "InvalidInputException":
|
|
922
|
+
case "com.amazonaws.forecast#InvalidInputException":
|
|
923
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
924
|
+
case "LimitExceededException":
|
|
925
|
+
case "com.amazonaws.forecast#LimitExceededException":
|
|
926
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
927
|
+
case "ResourceAlreadyExistsException":
|
|
928
|
+
case "com.amazonaws.forecast#ResourceAlreadyExistsException":
|
|
929
|
+
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
930
|
+
case "ResourceInUseException":
|
|
931
|
+
case "com.amazonaws.forecast#ResourceInUseException":
|
|
932
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
933
|
+
case "ResourceNotFoundException":
|
|
934
|
+
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
935
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
936
|
+
default:
|
|
937
|
+
const parsedBody = parsedOutput.body;
|
|
938
|
+
response = new ForecastServiceException_1.ForecastServiceException({
|
|
939
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
940
|
+
$fault: "client",
|
|
941
|
+
$metadata: deserializeMetadata(output),
|
|
942
|
+
});
|
|
943
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
944
|
+
}
|
|
945
|
+
};
|
|
837
946
|
const deserializeAws_json1_1CreatePredictorCommand = async (output, context) => {
|
|
838
947
|
if (output.statusCode >= 300) {
|
|
839
948
|
return deserializeAws_json1_1CreatePredictorCommandError(output, context);
|
|
@@ -1203,6 +1312,45 @@ const deserializeAws_json1_1DeleteForecastExportJobCommandError = async (output,
|
|
|
1203
1312
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1204
1313
|
}
|
|
1205
1314
|
};
|
|
1315
|
+
const deserializeAws_json1_1DeleteMonitorCommand = async (output, context) => {
|
|
1316
|
+
if (output.statusCode >= 300) {
|
|
1317
|
+
return deserializeAws_json1_1DeleteMonitorCommandError(output, context);
|
|
1318
|
+
}
|
|
1319
|
+
await collectBody(output.body, context);
|
|
1320
|
+
const response = {
|
|
1321
|
+
$metadata: deserializeMetadata(output),
|
|
1322
|
+
};
|
|
1323
|
+
return Promise.resolve(response);
|
|
1324
|
+
};
|
|
1325
|
+
exports.deserializeAws_json1_1DeleteMonitorCommand = deserializeAws_json1_1DeleteMonitorCommand;
|
|
1326
|
+
const deserializeAws_json1_1DeleteMonitorCommandError = async (output, context) => {
|
|
1327
|
+
const parsedOutput = {
|
|
1328
|
+
...output,
|
|
1329
|
+
body: await parseBody(output.body, context),
|
|
1330
|
+
};
|
|
1331
|
+
let response;
|
|
1332
|
+
let errorCode = "UnknownError";
|
|
1333
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1334
|
+
switch (errorCode) {
|
|
1335
|
+
case "InvalidInputException":
|
|
1336
|
+
case "com.amazonaws.forecast#InvalidInputException":
|
|
1337
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1338
|
+
case "ResourceInUseException":
|
|
1339
|
+
case "com.amazonaws.forecast#ResourceInUseException":
|
|
1340
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1341
|
+
case "ResourceNotFoundException":
|
|
1342
|
+
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1343
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1344
|
+
default:
|
|
1345
|
+
const parsedBody = parsedOutput.body;
|
|
1346
|
+
response = new ForecastServiceException_1.ForecastServiceException({
|
|
1347
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1348
|
+
$fault: "client",
|
|
1349
|
+
$metadata: deserializeMetadata(output),
|
|
1350
|
+
});
|
|
1351
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1352
|
+
}
|
|
1353
|
+
};
|
|
1206
1354
|
const deserializeAws_json1_1DeletePredictorCommand = async (output, context) => {
|
|
1207
1355
|
if (output.statusCode >= 300) {
|
|
1208
1356
|
return deserializeAws_json1_1DeletePredictorCommandError(output, context);
|
|
@@ -1632,6 +1780,45 @@ const deserializeAws_json1_1DescribeForecastExportJobCommandError = async (outpu
|
|
|
1632
1780
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1633
1781
|
}
|
|
1634
1782
|
};
|
|
1783
|
+
const deserializeAws_json1_1DescribeMonitorCommand = async (output, context) => {
|
|
1784
|
+
if (output.statusCode >= 300) {
|
|
1785
|
+
return deserializeAws_json1_1DescribeMonitorCommandError(output, context);
|
|
1786
|
+
}
|
|
1787
|
+
const data = await parseBody(output.body, context);
|
|
1788
|
+
let contents = {};
|
|
1789
|
+
contents = deserializeAws_json1_1DescribeMonitorResponse(data, context);
|
|
1790
|
+
const response = {
|
|
1791
|
+
$metadata: deserializeMetadata(output),
|
|
1792
|
+
...contents,
|
|
1793
|
+
};
|
|
1794
|
+
return Promise.resolve(response);
|
|
1795
|
+
};
|
|
1796
|
+
exports.deserializeAws_json1_1DescribeMonitorCommand = deserializeAws_json1_1DescribeMonitorCommand;
|
|
1797
|
+
const deserializeAws_json1_1DescribeMonitorCommandError = async (output, context) => {
|
|
1798
|
+
const parsedOutput = {
|
|
1799
|
+
...output,
|
|
1800
|
+
body: await parseBody(output.body, context),
|
|
1801
|
+
};
|
|
1802
|
+
let response;
|
|
1803
|
+
let errorCode = "UnknownError";
|
|
1804
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1805
|
+
switch (errorCode) {
|
|
1806
|
+
case "InvalidInputException":
|
|
1807
|
+
case "com.amazonaws.forecast#InvalidInputException":
|
|
1808
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1809
|
+
case "ResourceNotFoundException":
|
|
1810
|
+
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1811
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1812
|
+
default:
|
|
1813
|
+
const parsedBody = parsedOutput.body;
|
|
1814
|
+
response = new ForecastServiceException_1.ForecastServiceException({
|
|
1815
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1816
|
+
$fault: "client",
|
|
1817
|
+
$metadata: deserializeMetadata(output),
|
|
1818
|
+
});
|
|
1819
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1820
|
+
}
|
|
1821
|
+
};
|
|
1635
1822
|
const deserializeAws_json1_1DescribePredictorCommand = async (output, context) => {
|
|
1636
1823
|
if (output.statusCode >= 300) {
|
|
1637
1824
|
return deserializeAws_json1_1DescribePredictorCommandError(output, context);
|
|
@@ -2019,6 +2206,87 @@ const deserializeAws_json1_1ListForecastsCommandError = async (output, context)
|
|
|
2019
2206
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2020
2207
|
}
|
|
2021
2208
|
};
|
|
2209
|
+
const deserializeAws_json1_1ListMonitorEvaluationsCommand = async (output, context) => {
|
|
2210
|
+
if (output.statusCode >= 300) {
|
|
2211
|
+
return deserializeAws_json1_1ListMonitorEvaluationsCommandError(output, context);
|
|
2212
|
+
}
|
|
2213
|
+
const data = await parseBody(output.body, context);
|
|
2214
|
+
let contents = {};
|
|
2215
|
+
contents = deserializeAws_json1_1ListMonitorEvaluationsResponse(data, context);
|
|
2216
|
+
const response = {
|
|
2217
|
+
$metadata: deserializeMetadata(output),
|
|
2218
|
+
...contents,
|
|
2219
|
+
};
|
|
2220
|
+
return Promise.resolve(response);
|
|
2221
|
+
};
|
|
2222
|
+
exports.deserializeAws_json1_1ListMonitorEvaluationsCommand = deserializeAws_json1_1ListMonitorEvaluationsCommand;
|
|
2223
|
+
const deserializeAws_json1_1ListMonitorEvaluationsCommandError = async (output, context) => {
|
|
2224
|
+
const parsedOutput = {
|
|
2225
|
+
...output,
|
|
2226
|
+
body: await parseBody(output.body, context),
|
|
2227
|
+
};
|
|
2228
|
+
let response;
|
|
2229
|
+
let errorCode = "UnknownError";
|
|
2230
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2231
|
+
switch (errorCode) {
|
|
2232
|
+
case "InvalidInputException":
|
|
2233
|
+
case "com.amazonaws.forecast#InvalidInputException":
|
|
2234
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2235
|
+
case "InvalidNextTokenException":
|
|
2236
|
+
case "com.amazonaws.forecast#InvalidNextTokenException":
|
|
2237
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2238
|
+
case "ResourceNotFoundException":
|
|
2239
|
+
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
2240
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2241
|
+
default:
|
|
2242
|
+
const parsedBody = parsedOutput.body;
|
|
2243
|
+
response = new ForecastServiceException_1.ForecastServiceException({
|
|
2244
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2245
|
+
$fault: "client",
|
|
2246
|
+
$metadata: deserializeMetadata(output),
|
|
2247
|
+
});
|
|
2248
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2249
|
+
}
|
|
2250
|
+
};
|
|
2251
|
+
const deserializeAws_json1_1ListMonitorsCommand = async (output, context) => {
|
|
2252
|
+
if (output.statusCode >= 300) {
|
|
2253
|
+
return deserializeAws_json1_1ListMonitorsCommandError(output, context);
|
|
2254
|
+
}
|
|
2255
|
+
const data = await parseBody(output.body, context);
|
|
2256
|
+
let contents = {};
|
|
2257
|
+
contents = deserializeAws_json1_1ListMonitorsResponse(data, context);
|
|
2258
|
+
const response = {
|
|
2259
|
+
$metadata: deserializeMetadata(output),
|
|
2260
|
+
...contents,
|
|
2261
|
+
};
|
|
2262
|
+
return Promise.resolve(response);
|
|
2263
|
+
};
|
|
2264
|
+
exports.deserializeAws_json1_1ListMonitorsCommand = deserializeAws_json1_1ListMonitorsCommand;
|
|
2265
|
+
const deserializeAws_json1_1ListMonitorsCommandError = async (output, context) => {
|
|
2266
|
+
const parsedOutput = {
|
|
2267
|
+
...output,
|
|
2268
|
+
body: await parseBody(output.body, context),
|
|
2269
|
+
};
|
|
2270
|
+
let response;
|
|
2271
|
+
let errorCode = "UnknownError";
|
|
2272
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2273
|
+
switch (errorCode) {
|
|
2274
|
+
case "InvalidInputException":
|
|
2275
|
+
case "com.amazonaws.forecast#InvalidInputException":
|
|
2276
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2277
|
+
case "InvalidNextTokenException":
|
|
2278
|
+
case "com.amazonaws.forecast#InvalidNextTokenException":
|
|
2279
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2280
|
+
default:
|
|
2281
|
+
const parsedBody = parsedOutput.body;
|
|
2282
|
+
response = new ForecastServiceException_1.ForecastServiceException({
|
|
2283
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2284
|
+
$fault: "client",
|
|
2285
|
+
$metadata: deserializeMetadata(output),
|
|
2286
|
+
});
|
|
2287
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2288
|
+
}
|
|
2289
|
+
};
|
|
2022
2290
|
const deserializeAws_json1_1ListPredictorBacktestExportJobsCommand = async (output, context) => {
|
|
2023
2291
|
if (output.statusCode >= 300) {
|
|
2024
2292
|
return deserializeAws_json1_1ListPredictorBacktestExportJobsCommandError(output, context);
|
|
@@ -2136,6 +2404,48 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2136
2404
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2137
2405
|
}
|
|
2138
2406
|
};
|
|
2407
|
+
const deserializeAws_json1_1ResumeResourceCommand = async (output, context) => {
|
|
2408
|
+
if (output.statusCode >= 300) {
|
|
2409
|
+
return deserializeAws_json1_1ResumeResourceCommandError(output, context);
|
|
2410
|
+
}
|
|
2411
|
+
await collectBody(output.body, context);
|
|
2412
|
+
const response = {
|
|
2413
|
+
$metadata: deserializeMetadata(output),
|
|
2414
|
+
};
|
|
2415
|
+
return Promise.resolve(response);
|
|
2416
|
+
};
|
|
2417
|
+
exports.deserializeAws_json1_1ResumeResourceCommand = deserializeAws_json1_1ResumeResourceCommand;
|
|
2418
|
+
const deserializeAws_json1_1ResumeResourceCommandError = async (output, context) => {
|
|
2419
|
+
const parsedOutput = {
|
|
2420
|
+
...output,
|
|
2421
|
+
body: await parseBody(output.body, context),
|
|
2422
|
+
};
|
|
2423
|
+
let response;
|
|
2424
|
+
let errorCode = "UnknownError";
|
|
2425
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2426
|
+
switch (errorCode) {
|
|
2427
|
+
case "InvalidInputException":
|
|
2428
|
+
case "com.amazonaws.forecast#InvalidInputException":
|
|
2429
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2430
|
+
case "LimitExceededException":
|
|
2431
|
+
case "com.amazonaws.forecast#LimitExceededException":
|
|
2432
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
2433
|
+
case "ResourceInUseException":
|
|
2434
|
+
case "com.amazonaws.forecast#ResourceInUseException":
|
|
2435
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
2436
|
+
case "ResourceNotFoundException":
|
|
2437
|
+
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
2438
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2439
|
+
default:
|
|
2440
|
+
const parsedBody = parsedOutput.body;
|
|
2441
|
+
response = new ForecastServiceException_1.ForecastServiceException({
|
|
2442
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2443
|
+
$fault: "client",
|
|
2444
|
+
$metadata: deserializeMetadata(output),
|
|
2445
|
+
});
|
|
2446
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2447
|
+
}
|
|
2448
|
+
};
|
|
2139
2449
|
const deserializeAws_json1_1StopResourceCommand = async (output, context) => {
|
|
2140
2450
|
if (output.statusCode >= 300) {
|
|
2141
2451
|
return deserializeAws_json1_1StopResourceCommandError(output, context);
|
|
@@ -2468,6 +2778,10 @@ const serializeAws_json1_1CreateAutoPredictorRequest = (input, context) => {
|
|
|
2468
2778
|
input.ForecastTypes !== null && {
|
|
2469
2779
|
ForecastTypes: serializeAws_json1_1ForecastTypes(input.ForecastTypes, context),
|
|
2470
2780
|
}),
|
|
2781
|
+
...(input.MonitorConfig !== undefined &&
|
|
2782
|
+
input.MonitorConfig !== null && {
|
|
2783
|
+
MonitorConfig: serializeAws_json1_1MonitorConfig(input.MonitorConfig, context),
|
|
2784
|
+
}),
|
|
2471
2785
|
...(input.OptimizationMetric !== undefined &&
|
|
2472
2786
|
input.OptimizationMetric !== null && { OptimizationMetric: input.OptimizationMetric }),
|
|
2473
2787
|
...(input.PredictorName !== undefined && input.PredictorName !== null && { PredictorName: input.PredictorName }),
|
|
@@ -2570,6 +2884,13 @@ const serializeAws_json1_1CreateForecastRequest = (input, context) => {
|
|
|
2570
2884
|
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
2571
2885
|
};
|
|
2572
2886
|
};
|
|
2887
|
+
const serializeAws_json1_1CreateMonitorRequest = (input, context) => {
|
|
2888
|
+
return {
|
|
2889
|
+
...(input.MonitorName !== undefined && input.MonitorName !== null && { MonitorName: input.MonitorName }),
|
|
2890
|
+
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
2891
|
+
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
2892
|
+
};
|
|
2893
|
+
};
|
|
2573
2894
|
const serializeAws_json1_1CreatePredictorBacktestExportJobRequest = (input, context) => {
|
|
2574
2895
|
return {
|
|
2575
2896
|
...(input.Destination !== undefined &&
|
|
@@ -2691,6 +3012,11 @@ const serializeAws_json1_1DeleteForecastRequest = (input, context) => {
|
|
|
2691
3012
|
...(input.ForecastArn !== undefined && input.ForecastArn !== null && { ForecastArn: input.ForecastArn }),
|
|
2692
3013
|
};
|
|
2693
3014
|
};
|
|
3015
|
+
const serializeAws_json1_1DeleteMonitorRequest = (input, context) => {
|
|
3016
|
+
return {
|
|
3017
|
+
...(input.MonitorArn !== undefined && input.MonitorArn !== null && { MonitorArn: input.MonitorArn }),
|
|
3018
|
+
};
|
|
3019
|
+
};
|
|
2694
3020
|
const serializeAws_json1_1DeletePredictorBacktestExportJobRequest = (input, context) => {
|
|
2695
3021
|
return {
|
|
2696
3022
|
...(input.PredictorBacktestExportJobArn !== undefined &&
|
|
@@ -2754,6 +3080,11 @@ const serializeAws_json1_1DescribeForecastRequest = (input, context) => {
|
|
|
2754
3080
|
...(input.ForecastArn !== undefined && input.ForecastArn !== null && { ForecastArn: input.ForecastArn }),
|
|
2755
3081
|
};
|
|
2756
3082
|
};
|
|
3083
|
+
const serializeAws_json1_1DescribeMonitorRequest = (input, context) => {
|
|
3084
|
+
return {
|
|
3085
|
+
...(input.MonitorArn !== undefined && input.MonitorArn !== null && { MonitorArn: input.MonitorArn }),
|
|
3086
|
+
};
|
|
3087
|
+
};
|
|
2757
3088
|
const serializeAws_json1_1DescribePredictorBacktestExportJobRequest = (input, context) => {
|
|
2758
3089
|
return {
|
|
2759
3090
|
...(input.PredictorBacktestExportJobArn !== undefined &&
|
|
@@ -2983,6 +3314,23 @@ const serializeAws_json1_1ListForecastsRequest = (input, context) => {
|
|
|
2983
3314
|
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
2984
3315
|
};
|
|
2985
3316
|
};
|
|
3317
|
+
const serializeAws_json1_1ListMonitorEvaluationsRequest = (input, context) => {
|
|
3318
|
+
return {
|
|
3319
|
+
...(input.Filters !== undefined &&
|
|
3320
|
+
input.Filters !== null && { Filters: serializeAws_json1_1Filters(input.Filters, context) }),
|
|
3321
|
+
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
3322
|
+
...(input.MonitorArn !== undefined && input.MonitorArn !== null && { MonitorArn: input.MonitorArn }),
|
|
3323
|
+
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
3324
|
+
};
|
|
3325
|
+
};
|
|
3326
|
+
const serializeAws_json1_1ListMonitorsRequest = (input, context) => {
|
|
3327
|
+
return {
|
|
3328
|
+
...(input.Filters !== undefined &&
|
|
3329
|
+
input.Filters !== null && { Filters: serializeAws_json1_1Filters(input.Filters, context) }),
|
|
3330
|
+
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
3331
|
+
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
3332
|
+
};
|
|
3333
|
+
};
|
|
2986
3334
|
const serializeAws_json1_1ListPredictorBacktestExportJobsRequest = (input, context) => {
|
|
2987
3335
|
return {
|
|
2988
3336
|
...(input.Filters !== undefined &&
|
|
@@ -3004,6 +3352,11 @@ const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
|
3004
3352
|
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
3005
3353
|
};
|
|
3006
3354
|
};
|
|
3355
|
+
const serializeAws_json1_1MonitorConfig = (input, context) => {
|
|
3356
|
+
return {
|
|
3357
|
+
...(input.MonitorName !== undefined && input.MonitorName !== null && { MonitorName: input.MonitorName }),
|
|
3358
|
+
};
|
|
3359
|
+
};
|
|
3007
3360
|
const serializeAws_json1_1ParameterRanges = (input, context) => {
|
|
3008
3361
|
return {
|
|
3009
3362
|
...(input.CategoricalParameterRanges !== undefined &&
|
|
@@ -3020,6 +3373,11 @@ const serializeAws_json1_1ParameterRanges = (input, context) => {
|
|
|
3020
3373
|
}),
|
|
3021
3374
|
};
|
|
3022
3375
|
};
|
|
3376
|
+
const serializeAws_json1_1ResumeResourceRequest = (input, context) => {
|
|
3377
|
+
return {
|
|
3378
|
+
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
3379
|
+
};
|
|
3380
|
+
};
|
|
3023
3381
|
const serializeAws_json1_1S3Config = (input, context) => {
|
|
3024
3382
|
return {
|
|
3025
3383
|
...(input.KMSKeyArn !== undefined && input.KMSKeyArn !== null && { KMSKeyArn: input.KMSKeyArn }),
|
|
@@ -3198,6 +3556,30 @@ const deserializeAws_json1_1AttributeConfigs = (output, context) => {
|
|
|
3198
3556
|
});
|
|
3199
3557
|
return retVal;
|
|
3200
3558
|
};
|
|
3559
|
+
const deserializeAws_json1_1Baseline = (output, context) => {
|
|
3560
|
+
return {
|
|
3561
|
+
PredictorBaseline: output.PredictorBaseline !== undefined && output.PredictorBaseline !== null
|
|
3562
|
+
? deserializeAws_json1_1PredictorBaseline(output.PredictorBaseline, context)
|
|
3563
|
+
: undefined,
|
|
3564
|
+
};
|
|
3565
|
+
};
|
|
3566
|
+
const deserializeAws_json1_1BaselineMetric = (output, context) => {
|
|
3567
|
+
return {
|
|
3568
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3569
|
+
Value: (0, smithy_client_1.limitedParseDouble)(output.Value),
|
|
3570
|
+
};
|
|
3571
|
+
};
|
|
3572
|
+
const deserializeAws_json1_1BaselineMetrics = (output, context) => {
|
|
3573
|
+
const retVal = (output || [])
|
|
3574
|
+
.filter((e) => e != null)
|
|
3575
|
+
.map((entry) => {
|
|
3576
|
+
if (entry === null) {
|
|
3577
|
+
return null;
|
|
3578
|
+
}
|
|
3579
|
+
return deserializeAws_json1_1BaselineMetric(entry, context);
|
|
3580
|
+
});
|
|
3581
|
+
return retVal;
|
|
3582
|
+
};
|
|
3201
3583
|
const deserializeAws_json1_1CategoricalParameterRange = (output, context) => {
|
|
3202
3584
|
return {
|
|
3203
3585
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
@@ -3287,6 +3669,11 @@ const deserializeAws_json1_1CreateForecastResponse = (output, context) => {
|
|
|
3287
3669
|
ForecastArn: (0, smithy_client_1.expectString)(output.ForecastArn),
|
|
3288
3670
|
};
|
|
3289
3671
|
};
|
|
3672
|
+
const deserializeAws_json1_1CreateMonitorResponse = (output, context) => {
|
|
3673
|
+
return {
|
|
3674
|
+
MonitorArn: (0, smithy_client_1.expectString)(output.MonitorArn),
|
|
3675
|
+
};
|
|
3676
|
+
};
|
|
3290
3677
|
const deserializeAws_json1_1CreatePredictorBacktestExportJobResponse = (output, context) => {
|
|
3291
3678
|
return {
|
|
3292
3679
|
PredictorBacktestExportJobArn: (0, smithy_client_1.expectString)(output.PredictorBacktestExportJobArn),
|
|
@@ -3428,6 +3815,9 @@ const deserializeAws_json1_1DescribeAutoPredictorResponse = (output, context) =>
|
|
|
3428
3815
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModificationTime)))
|
|
3429
3816
|
: undefined,
|
|
3430
3817
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3818
|
+
MonitorInfo: output.MonitorInfo !== undefined && output.MonitorInfo !== null
|
|
3819
|
+
? deserializeAws_json1_1MonitorInfo(output.MonitorInfo, context)
|
|
3820
|
+
: undefined,
|
|
3431
3821
|
OptimizationMetric: (0, smithy_client_1.expectString)(output.OptimizationMetric),
|
|
3432
3822
|
PredictorArn: (0, smithy_client_1.expectString)(output.PredictorArn),
|
|
3433
3823
|
PredictorName: (0, smithy_client_1.expectString)(output.PredictorName),
|
|
@@ -3587,6 +3977,29 @@ const deserializeAws_json1_1DescribeForecastResponse = (output, context) => {
|
|
|
3587
3977
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3588
3978
|
};
|
|
3589
3979
|
};
|
|
3980
|
+
const deserializeAws_json1_1DescribeMonitorResponse = (output, context) => {
|
|
3981
|
+
return {
|
|
3982
|
+
Baseline: output.Baseline !== undefined && output.Baseline !== null
|
|
3983
|
+
? deserializeAws_json1_1Baseline(output.Baseline, context)
|
|
3984
|
+
: undefined,
|
|
3985
|
+
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
3986
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
3987
|
+
: undefined,
|
|
3988
|
+
EstimatedEvaluationTimeRemainingInMinutes: (0, smithy_client_1.expectLong)(output.EstimatedEvaluationTimeRemainingInMinutes),
|
|
3989
|
+
LastEvaluationState: (0, smithy_client_1.expectString)(output.LastEvaluationState),
|
|
3990
|
+
LastEvaluationTime: output.LastEvaluationTime !== undefined && output.LastEvaluationTime !== null
|
|
3991
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastEvaluationTime)))
|
|
3992
|
+
: undefined,
|
|
3993
|
+
LastModificationTime: output.LastModificationTime !== undefined && output.LastModificationTime !== null
|
|
3994
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModificationTime)))
|
|
3995
|
+
: undefined,
|
|
3996
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3997
|
+
MonitorArn: (0, smithy_client_1.expectString)(output.MonitorArn),
|
|
3998
|
+
MonitorName: (0, smithy_client_1.expectString)(output.MonitorName),
|
|
3999
|
+
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
4000
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
4001
|
+
};
|
|
4002
|
+
};
|
|
3590
4003
|
const deserializeAws_json1_1DescribePredictorBacktestExportJobResponse = (output, context) => {
|
|
3591
4004
|
return {
|
|
3592
4005
|
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
@@ -4030,6 +4443,22 @@ const deserializeAws_json1_1ListForecastsResponse = (output, context) => {
|
|
|
4030
4443
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4031
4444
|
};
|
|
4032
4445
|
};
|
|
4446
|
+
const deserializeAws_json1_1ListMonitorEvaluationsResponse = (output, context) => {
|
|
4447
|
+
return {
|
|
4448
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4449
|
+
PredictorMonitorEvaluations: output.PredictorMonitorEvaluations !== undefined && output.PredictorMonitorEvaluations !== null
|
|
4450
|
+
? deserializeAws_json1_1PredictorMonitorEvaluations(output.PredictorMonitorEvaluations, context)
|
|
4451
|
+
: undefined,
|
|
4452
|
+
};
|
|
4453
|
+
};
|
|
4454
|
+
const deserializeAws_json1_1ListMonitorsResponse = (output, context) => {
|
|
4455
|
+
return {
|
|
4456
|
+
Monitors: output.Monitors !== undefined && output.Monitors !== null
|
|
4457
|
+
? deserializeAws_json1_1Monitors(output.Monitors, context)
|
|
4458
|
+
: undefined,
|
|
4459
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4460
|
+
};
|
|
4461
|
+
};
|
|
4033
4462
|
const deserializeAws_json1_1ListPredictorBacktestExportJobsResponse = (output, context) => {
|
|
4034
4463
|
return {
|
|
4035
4464
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -4051,6 +4480,23 @@ const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
|
4051
4480
|
Tags: output.Tags !== undefined && output.Tags !== null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
4052
4481
|
};
|
|
4053
4482
|
};
|
|
4483
|
+
const deserializeAws_json1_1MetricResult = (output, context) => {
|
|
4484
|
+
return {
|
|
4485
|
+
MetricName: (0, smithy_client_1.expectString)(output.MetricName),
|
|
4486
|
+
MetricValue: (0, smithy_client_1.limitedParseDouble)(output.MetricValue),
|
|
4487
|
+
};
|
|
4488
|
+
};
|
|
4489
|
+
const deserializeAws_json1_1MetricResults = (output, context) => {
|
|
4490
|
+
const retVal = (output || [])
|
|
4491
|
+
.filter((e) => e != null)
|
|
4492
|
+
.map((entry) => {
|
|
4493
|
+
if (entry === null) {
|
|
4494
|
+
return null;
|
|
4495
|
+
}
|
|
4496
|
+
return deserializeAws_json1_1MetricResult(entry, context);
|
|
4497
|
+
});
|
|
4498
|
+
return retVal;
|
|
4499
|
+
};
|
|
4054
4500
|
const deserializeAws_json1_1Metrics = (output, context) => {
|
|
4055
4501
|
return {
|
|
4056
4502
|
AverageWeightedQuantileLoss: (0, smithy_client_1.limitedParseDouble)(output.AverageWeightedQuantileLoss),
|
|
@@ -4063,6 +4509,44 @@ const deserializeAws_json1_1Metrics = (output, context) => {
|
|
|
4063
4509
|
: undefined,
|
|
4064
4510
|
};
|
|
4065
4511
|
};
|
|
4512
|
+
const deserializeAws_json1_1MonitorDataSource = (output, context) => {
|
|
4513
|
+
return {
|
|
4514
|
+
DatasetImportJobArn: (0, smithy_client_1.expectString)(output.DatasetImportJobArn),
|
|
4515
|
+
ForecastArn: (0, smithy_client_1.expectString)(output.ForecastArn),
|
|
4516
|
+
PredictorArn: (0, smithy_client_1.expectString)(output.PredictorArn),
|
|
4517
|
+
};
|
|
4518
|
+
};
|
|
4519
|
+
const deserializeAws_json1_1MonitorInfo = (output, context) => {
|
|
4520
|
+
return {
|
|
4521
|
+
MonitorArn: (0, smithy_client_1.expectString)(output.MonitorArn),
|
|
4522
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
4523
|
+
};
|
|
4524
|
+
};
|
|
4525
|
+
const deserializeAws_json1_1Monitors = (output, context) => {
|
|
4526
|
+
const retVal = (output || [])
|
|
4527
|
+
.filter((e) => e != null)
|
|
4528
|
+
.map((entry) => {
|
|
4529
|
+
if (entry === null) {
|
|
4530
|
+
return null;
|
|
4531
|
+
}
|
|
4532
|
+
return deserializeAws_json1_1MonitorSummary(entry, context);
|
|
4533
|
+
});
|
|
4534
|
+
return retVal;
|
|
4535
|
+
};
|
|
4536
|
+
const deserializeAws_json1_1MonitorSummary = (output, context) => {
|
|
4537
|
+
return {
|
|
4538
|
+
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
4539
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
4540
|
+
: undefined,
|
|
4541
|
+
LastModificationTime: output.LastModificationTime !== undefined && output.LastModificationTime !== null
|
|
4542
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModificationTime)))
|
|
4543
|
+
: undefined,
|
|
4544
|
+
MonitorArn: (0, smithy_client_1.expectString)(output.MonitorArn),
|
|
4545
|
+
MonitorName: (0, smithy_client_1.expectString)(output.MonitorName),
|
|
4546
|
+
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
4547
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
4548
|
+
};
|
|
4549
|
+
};
|
|
4066
4550
|
const deserializeAws_json1_1ParameterRanges = (output, context) => {
|
|
4067
4551
|
return {
|
|
4068
4552
|
CategoricalParameterRanges: output.CategoricalParameterRanges !== undefined && output.CategoricalParameterRanges !== null
|
|
@@ -4104,6 +4588,13 @@ const deserializeAws_json1_1PredictorBacktestExportJobSummary = (output, context
|
|
|
4104
4588
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
4105
4589
|
};
|
|
4106
4590
|
};
|
|
4591
|
+
const deserializeAws_json1_1PredictorBaseline = (output, context) => {
|
|
4592
|
+
return {
|
|
4593
|
+
BaselineMetrics: output.BaselineMetrics !== undefined && output.BaselineMetrics !== null
|
|
4594
|
+
? deserializeAws_json1_1BaselineMetrics(output.BaselineMetrics, context)
|
|
4595
|
+
: undefined,
|
|
4596
|
+
};
|
|
4597
|
+
};
|
|
4107
4598
|
const deserializeAws_json1_1PredictorEvaluationResults = (output, context) => {
|
|
4108
4599
|
const retVal = (output || [])
|
|
4109
4600
|
.filter((e) => e != null)
|
|
@@ -4115,6 +4606,14 @@ const deserializeAws_json1_1PredictorEvaluationResults = (output, context) => {
|
|
|
4115
4606
|
});
|
|
4116
4607
|
return retVal;
|
|
4117
4608
|
};
|
|
4609
|
+
const deserializeAws_json1_1PredictorEvent = (output, context) => {
|
|
4610
|
+
return {
|
|
4611
|
+
Datetime: output.Datetime !== undefined && output.Datetime !== null
|
|
4612
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Datetime)))
|
|
4613
|
+
: undefined,
|
|
4614
|
+
Detail: (0, smithy_client_1.expectString)(output.Detail),
|
|
4615
|
+
};
|
|
4616
|
+
};
|
|
4118
4617
|
const deserializeAws_json1_1PredictorExecution = (output, context) => {
|
|
4119
4618
|
return {
|
|
4120
4619
|
AlgorithmArn: (0, smithy_client_1.expectString)(output.AlgorithmArn),
|
|
@@ -4141,6 +4640,44 @@ const deserializeAws_json1_1PredictorExecutions = (output, context) => {
|
|
|
4141
4640
|
});
|
|
4142
4641
|
return retVal;
|
|
4143
4642
|
};
|
|
4643
|
+
const deserializeAws_json1_1PredictorMonitorEvaluation = (output, context) => {
|
|
4644
|
+
return {
|
|
4645
|
+
EvaluationState: (0, smithy_client_1.expectString)(output.EvaluationState),
|
|
4646
|
+
EvaluationTime: output.EvaluationTime !== undefined && output.EvaluationTime !== null
|
|
4647
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EvaluationTime)))
|
|
4648
|
+
: undefined,
|
|
4649
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4650
|
+
MetricResults: output.MetricResults !== undefined && output.MetricResults !== null
|
|
4651
|
+
? deserializeAws_json1_1MetricResults(output.MetricResults, context)
|
|
4652
|
+
: undefined,
|
|
4653
|
+
MonitorArn: (0, smithy_client_1.expectString)(output.MonitorArn),
|
|
4654
|
+
MonitorDataSource: output.MonitorDataSource !== undefined && output.MonitorDataSource !== null
|
|
4655
|
+
? deserializeAws_json1_1MonitorDataSource(output.MonitorDataSource, context)
|
|
4656
|
+
: undefined,
|
|
4657
|
+
NumItemsEvaluated: (0, smithy_client_1.expectLong)(output.NumItemsEvaluated),
|
|
4658
|
+
PredictorEvent: output.PredictorEvent !== undefined && output.PredictorEvent !== null
|
|
4659
|
+
? deserializeAws_json1_1PredictorEvent(output.PredictorEvent, context)
|
|
4660
|
+
: undefined,
|
|
4661
|
+
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
4662
|
+
WindowEndDatetime: output.WindowEndDatetime !== undefined && output.WindowEndDatetime !== null
|
|
4663
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.WindowEndDatetime)))
|
|
4664
|
+
: undefined,
|
|
4665
|
+
WindowStartDatetime: output.WindowStartDatetime !== undefined && output.WindowStartDatetime !== null
|
|
4666
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.WindowStartDatetime)))
|
|
4667
|
+
: undefined,
|
|
4668
|
+
};
|
|
4669
|
+
};
|
|
4670
|
+
const deserializeAws_json1_1PredictorMonitorEvaluations = (output, context) => {
|
|
4671
|
+
const retVal = (output || [])
|
|
4672
|
+
.filter((e) => e != null)
|
|
4673
|
+
.map((entry) => {
|
|
4674
|
+
if (entry === null) {
|
|
4675
|
+
return null;
|
|
4676
|
+
}
|
|
4677
|
+
return deserializeAws_json1_1PredictorMonitorEvaluation(entry, context);
|
|
4678
|
+
});
|
|
4679
|
+
return retVal;
|
|
4680
|
+
};
|
|
4144
4681
|
const deserializeAws_json1_1Predictors = (output, context) => {
|
|
4145
4682
|
const retVal = (output || [])
|
|
4146
4683
|
.filter((e) => e != null)
|