@aws-sdk/client-forecast 3.95.0 → 3.100.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 +30 -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 +156 -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 +562 -2
- package/dist-cjs/runtimeConfig.js +2 -0
- 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 +109 -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 +642 -2
- package/dist-es/runtimeConfig.js +2 -0
- package/dist-types/Forecast.d.ts +134 -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 +38 -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 +736 -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 +296 -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 +6 -6
|
@@ -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,12 +2778,20 @@ 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 }),
|
|
2474
2788
|
...(input.ReferencePredictorArn !== undefined &&
|
|
2475
2789
|
input.ReferencePredictorArn !== null && { ReferencePredictorArn: input.ReferencePredictorArn }),
|
|
2476
2790
|
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
2791
|
+
...(input.TimeAlignmentBoundary !== undefined &&
|
|
2792
|
+
input.TimeAlignmentBoundary !== null && {
|
|
2793
|
+
TimeAlignmentBoundary: serializeAws_json1_1TimeAlignmentBoundary(input.TimeAlignmentBoundary, context),
|
|
2794
|
+
}),
|
|
2477
2795
|
};
|
|
2478
2796
|
};
|
|
2479
2797
|
const serializeAws_json1_1CreateDatasetGroupRequest = (input, context) => {
|
|
@@ -2570,6 +2888,13 @@ const serializeAws_json1_1CreateForecastRequest = (input, context) => {
|
|
|
2570
2888
|
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
2571
2889
|
};
|
|
2572
2890
|
};
|
|
2891
|
+
const serializeAws_json1_1CreateMonitorRequest = (input, context) => {
|
|
2892
|
+
return {
|
|
2893
|
+
...(input.MonitorName !== undefined && input.MonitorName !== null && { MonitorName: input.MonitorName }),
|
|
2894
|
+
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
2895
|
+
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
2896
|
+
};
|
|
2897
|
+
};
|
|
2573
2898
|
const serializeAws_json1_1CreatePredictorBacktestExportJobRequest = (input, context) => {
|
|
2574
2899
|
return {
|
|
2575
2900
|
...(input.Destination !== undefined &&
|
|
@@ -2691,6 +3016,11 @@ const serializeAws_json1_1DeleteForecastRequest = (input, context) => {
|
|
|
2691
3016
|
...(input.ForecastArn !== undefined && input.ForecastArn !== null && { ForecastArn: input.ForecastArn }),
|
|
2692
3017
|
};
|
|
2693
3018
|
};
|
|
3019
|
+
const serializeAws_json1_1DeleteMonitorRequest = (input, context) => {
|
|
3020
|
+
return {
|
|
3021
|
+
...(input.MonitorArn !== undefined && input.MonitorArn !== null && { MonitorArn: input.MonitorArn }),
|
|
3022
|
+
};
|
|
3023
|
+
};
|
|
2694
3024
|
const serializeAws_json1_1DeletePredictorBacktestExportJobRequest = (input, context) => {
|
|
2695
3025
|
return {
|
|
2696
3026
|
...(input.PredictorBacktestExportJobArn !== undefined &&
|
|
@@ -2754,6 +3084,11 @@ const serializeAws_json1_1DescribeForecastRequest = (input, context) => {
|
|
|
2754
3084
|
...(input.ForecastArn !== undefined && input.ForecastArn !== null && { ForecastArn: input.ForecastArn }),
|
|
2755
3085
|
};
|
|
2756
3086
|
};
|
|
3087
|
+
const serializeAws_json1_1DescribeMonitorRequest = (input, context) => {
|
|
3088
|
+
return {
|
|
3089
|
+
...(input.MonitorArn !== undefined && input.MonitorArn !== null && { MonitorArn: input.MonitorArn }),
|
|
3090
|
+
};
|
|
3091
|
+
};
|
|
2757
3092
|
const serializeAws_json1_1DescribePredictorBacktestExportJobRequest = (input, context) => {
|
|
2758
3093
|
return {
|
|
2759
3094
|
...(input.PredictorBacktestExportJobArn !== undefined &&
|
|
@@ -2983,6 +3318,23 @@ const serializeAws_json1_1ListForecastsRequest = (input, context) => {
|
|
|
2983
3318
|
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
2984
3319
|
};
|
|
2985
3320
|
};
|
|
3321
|
+
const serializeAws_json1_1ListMonitorEvaluationsRequest = (input, context) => {
|
|
3322
|
+
return {
|
|
3323
|
+
...(input.Filters !== undefined &&
|
|
3324
|
+
input.Filters !== null && { Filters: serializeAws_json1_1Filters(input.Filters, context) }),
|
|
3325
|
+
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
3326
|
+
...(input.MonitorArn !== undefined && input.MonitorArn !== null && { MonitorArn: input.MonitorArn }),
|
|
3327
|
+
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
3328
|
+
};
|
|
3329
|
+
};
|
|
3330
|
+
const serializeAws_json1_1ListMonitorsRequest = (input, context) => {
|
|
3331
|
+
return {
|
|
3332
|
+
...(input.Filters !== undefined &&
|
|
3333
|
+
input.Filters !== null && { Filters: serializeAws_json1_1Filters(input.Filters, context) }),
|
|
3334
|
+
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
3335
|
+
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
3336
|
+
};
|
|
3337
|
+
};
|
|
2986
3338
|
const serializeAws_json1_1ListPredictorBacktestExportJobsRequest = (input, context) => {
|
|
2987
3339
|
return {
|
|
2988
3340
|
...(input.Filters !== undefined &&
|
|
@@ -3004,6 +3356,11 @@ const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
|
3004
3356
|
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
3005
3357
|
};
|
|
3006
3358
|
};
|
|
3359
|
+
const serializeAws_json1_1MonitorConfig = (input, context) => {
|
|
3360
|
+
return {
|
|
3361
|
+
...(input.MonitorName !== undefined && input.MonitorName !== null && { MonitorName: input.MonitorName }),
|
|
3362
|
+
};
|
|
3363
|
+
};
|
|
3007
3364
|
const serializeAws_json1_1ParameterRanges = (input, context) => {
|
|
3008
3365
|
return {
|
|
3009
3366
|
...(input.CategoricalParameterRanges !== undefined &&
|
|
@@ -3020,6 +3377,11 @@ const serializeAws_json1_1ParameterRanges = (input, context) => {
|
|
|
3020
3377
|
}),
|
|
3021
3378
|
};
|
|
3022
3379
|
};
|
|
3380
|
+
const serializeAws_json1_1ResumeResourceRequest = (input, context) => {
|
|
3381
|
+
return {
|
|
3382
|
+
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
3383
|
+
};
|
|
3384
|
+
};
|
|
3023
3385
|
const serializeAws_json1_1S3Config = (input, context) => {
|
|
3024
3386
|
return {
|
|
3025
3387
|
...(input.KMSKeyArn !== undefined && input.KMSKeyArn !== null && { KMSKeyArn: input.KMSKeyArn }),
|
|
@@ -3102,6 +3464,14 @@ const serializeAws_json1_1Tags = (input, context) => {
|
|
|
3102
3464
|
return serializeAws_json1_1Tag(entry, context);
|
|
3103
3465
|
});
|
|
3104
3466
|
};
|
|
3467
|
+
const serializeAws_json1_1TimeAlignmentBoundary = (input, context) => {
|
|
3468
|
+
return {
|
|
3469
|
+
...(input.DayOfMonth !== undefined && input.DayOfMonth !== null && { DayOfMonth: input.DayOfMonth }),
|
|
3470
|
+
...(input.DayOfWeek !== undefined && input.DayOfWeek !== null && { DayOfWeek: input.DayOfWeek }),
|
|
3471
|
+
...(input.Hour !== undefined && input.Hour !== null && { Hour: input.Hour }),
|
|
3472
|
+
...(input.Month !== undefined && input.Month !== null && { Month: input.Month }),
|
|
3473
|
+
};
|
|
3474
|
+
};
|
|
3105
3475
|
const serializeAws_json1_1TrainingParameters = (input, context) => {
|
|
3106
3476
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3107
3477
|
if (value === null) {
|
|
@@ -3198,6 +3568,30 @@ const deserializeAws_json1_1AttributeConfigs = (output, context) => {
|
|
|
3198
3568
|
});
|
|
3199
3569
|
return retVal;
|
|
3200
3570
|
};
|
|
3571
|
+
const deserializeAws_json1_1Baseline = (output, context) => {
|
|
3572
|
+
return {
|
|
3573
|
+
PredictorBaseline: output.PredictorBaseline !== undefined && output.PredictorBaseline !== null
|
|
3574
|
+
? deserializeAws_json1_1PredictorBaseline(output.PredictorBaseline, context)
|
|
3575
|
+
: undefined,
|
|
3576
|
+
};
|
|
3577
|
+
};
|
|
3578
|
+
const deserializeAws_json1_1BaselineMetric = (output, context) => {
|
|
3579
|
+
return {
|
|
3580
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3581
|
+
Value: (0, smithy_client_1.limitedParseDouble)(output.Value),
|
|
3582
|
+
};
|
|
3583
|
+
};
|
|
3584
|
+
const deserializeAws_json1_1BaselineMetrics = (output, context) => {
|
|
3585
|
+
const retVal = (output || [])
|
|
3586
|
+
.filter((e) => e != null)
|
|
3587
|
+
.map((entry) => {
|
|
3588
|
+
if (entry === null) {
|
|
3589
|
+
return null;
|
|
3590
|
+
}
|
|
3591
|
+
return deserializeAws_json1_1BaselineMetric(entry, context);
|
|
3592
|
+
});
|
|
3593
|
+
return retVal;
|
|
3594
|
+
};
|
|
3201
3595
|
const deserializeAws_json1_1CategoricalParameterRange = (output, context) => {
|
|
3202
3596
|
return {
|
|
3203
3597
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
@@ -3287,6 +3681,11 @@ const deserializeAws_json1_1CreateForecastResponse = (output, context) => {
|
|
|
3287
3681
|
ForecastArn: (0, smithy_client_1.expectString)(output.ForecastArn),
|
|
3288
3682
|
};
|
|
3289
3683
|
};
|
|
3684
|
+
const deserializeAws_json1_1CreateMonitorResponse = (output, context) => {
|
|
3685
|
+
return {
|
|
3686
|
+
MonitorArn: (0, smithy_client_1.expectString)(output.MonitorArn),
|
|
3687
|
+
};
|
|
3688
|
+
};
|
|
3290
3689
|
const deserializeAws_json1_1CreatePredictorBacktestExportJobResponse = (output, context) => {
|
|
3291
3690
|
return {
|
|
3292
3691
|
PredictorBacktestExportJobArn: (0, smithy_client_1.expectString)(output.PredictorBacktestExportJobArn),
|
|
@@ -3428,6 +3827,9 @@ const deserializeAws_json1_1DescribeAutoPredictorResponse = (output, context) =>
|
|
|
3428
3827
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModificationTime)))
|
|
3429
3828
|
: undefined,
|
|
3430
3829
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3830
|
+
MonitorInfo: output.MonitorInfo !== undefined && output.MonitorInfo !== null
|
|
3831
|
+
? deserializeAws_json1_1MonitorInfo(output.MonitorInfo, context)
|
|
3832
|
+
: undefined,
|
|
3431
3833
|
OptimizationMetric: (0, smithy_client_1.expectString)(output.OptimizationMetric),
|
|
3432
3834
|
PredictorArn: (0, smithy_client_1.expectString)(output.PredictorArn),
|
|
3433
3835
|
PredictorName: (0, smithy_client_1.expectString)(output.PredictorName),
|
|
@@ -3435,6 +3837,9 @@ const deserializeAws_json1_1DescribeAutoPredictorResponse = (output, context) =>
|
|
|
3435
3837
|
? deserializeAws_json1_1ReferencePredictorSummary(output.ReferencePredictorSummary, context)
|
|
3436
3838
|
: undefined,
|
|
3437
3839
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3840
|
+
TimeAlignmentBoundary: output.TimeAlignmentBoundary !== undefined && output.TimeAlignmentBoundary !== null
|
|
3841
|
+
? deserializeAws_json1_1TimeAlignmentBoundary(output.TimeAlignmentBoundary, context)
|
|
3842
|
+
: undefined,
|
|
3438
3843
|
};
|
|
3439
3844
|
};
|
|
3440
3845
|
const deserializeAws_json1_1DescribeDatasetGroupResponse = (output, context) => {
|
|
@@ -3587,6 +3992,29 @@ const deserializeAws_json1_1DescribeForecastResponse = (output, context) => {
|
|
|
3587
3992
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3588
3993
|
};
|
|
3589
3994
|
};
|
|
3995
|
+
const deserializeAws_json1_1DescribeMonitorResponse = (output, context) => {
|
|
3996
|
+
return {
|
|
3997
|
+
Baseline: output.Baseline !== undefined && output.Baseline !== null
|
|
3998
|
+
? deserializeAws_json1_1Baseline(output.Baseline, context)
|
|
3999
|
+
: undefined,
|
|
4000
|
+
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
4001
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
4002
|
+
: undefined,
|
|
4003
|
+
EstimatedEvaluationTimeRemainingInMinutes: (0, smithy_client_1.expectLong)(output.EstimatedEvaluationTimeRemainingInMinutes),
|
|
4004
|
+
LastEvaluationState: (0, smithy_client_1.expectString)(output.LastEvaluationState),
|
|
4005
|
+
LastEvaluationTime: output.LastEvaluationTime !== undefined && output.LastEvaluationTime !== null
|
|
4006
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastEvaluationTime)))
|
|
4007
|
+
: undefined,
|
|
4008
|
+
LastModificationTime: output.LastModificationTime !== undefined && output.LastModificationTime !== null
|
|
4009
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModificationTime)))
|
|
4010
|
+
: undefined,
|
|
4011
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4012
|
+
MonitorArn: (0, smithy_client_1.expectString)(output.MonitorArn),
|
|
4013
|
+
MonitorName: (0, smithy_client_1.expectString)(output.MonitorName),
|
|
4014
|
+
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
4015
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
4016
|
+
};
|
|
4017
|
+
};
|
|
3590
4018
|
const deserializeAws_json1_1DescribePredictorBacktestExportJobResponse = (output, context) => {
|
|
3591
4019
|
return {
|
|
3592
4020
|
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
@@ -4030,6 +4458,22 @@ const deserializeAws_json1_1ListForecastsResponse = (output, context) => {
|
|
|
4030
4458
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4031
4459
|
};
|
|
4032
4460
|
};
|
|
4461
|
+
const deserializeAws_json1_1ListMonitorEvaluationsResponse = (output, context) => {
|
|
4462
|
+
return {
|
|
4463
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4464
|
+
PredictorMonitorEvaluations: output.PredictorMonitorEvaluations !== undefined && output.PredictorMonitorEvaluations !== null
|
|
4465
|
+
? deserializeAws_json1_1PredictorMonitorEvaluations(output.PredictorMonitorEvaluations, context)
|
|
4466
|
+
: undefined,
|
|
4467
|
+
};
|
|
4468
|
+
};
|
|
4469
|
+
const deserializeAws_json1_1ListMonitorsResponse = (output, context) => {
|
|
4470
|
+
return {
|
|
4471
|
+
Monitors: output.Monitors !== undefined && output.Monitors !== null
|
|
4472
|
+
? deserializeAws_json1_1Monitors(output.Monitors, context)
|
|
4473
|
+
: undefined,
|
|
4474
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4475
|
+
};
|
|
4476
|
+
};
|
|
4033
4477
|
const deserializeAws_json1_1ListPredictorBacktestExportJobsResponse = (output, context) => {
|
|
4034
4478
|
return {
|
|
4035
4479
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -4051,6 +4495,23 @@ const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
|
4051
4495
|
Tags: output.Tags !== undefined && output.Tags !== null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
4052
4496
|
};
|
|
4053
4497
|
};
|
|
4498
|
+
const deserializeAws_json1_1MetricResult = (output, context) => {
|
|
4499
|
+
return {
|
|
4500
|
+
MetricName: (0, smithy_client_1.expectString)(output.MetricName),
|
|
4501
|
+
MetricValue: (0, smithy_client_1.limitedParseDouble)(output.MetricValue),
|
|
4502
|
+
};
|
|
4503
|
+
};
|
|
4504
|
+
const deserializeAws_json1_1MetricResults = (output, context) => {
|
|
4505
|
+
const retVal = (output || [])
|
|
4506
|
+
.filter((e) => e != null)
|
|
4507
|
+
.map((entry) => {
|
|
4508
|
+
if (entry === null) {
|
|
4509
|
+
return null;
|
|
4510
|
+
}
|
|
4511
|
+
return deserializeAws_json1_1MetricResult(entry, context);
|
|
4512
|
+
});
|
|
4513
|
+
return retVal;
|
|
4514
|
+
};
|
|
4054
4515
|
const deserializeAws_json1_1Metrics = (output, context) => {
|
|
4055
4516
|
return {
|
|
4056
4517
|
AverageWeightedQuantileLoss: (0, smithy_client_1.limitedParseDouble)(output.AverageWeightedQuantileLoss),
|
|
@@ -4063,6 +4524,44 @@ const deserializeAws_json1_1Metrics = (output, context) => {
|
|
|
4063
4524
|
: undefined,
|
|
4064
4525
|
};
|
|
4065
4526
|
};
|
|
4527
|
+
const deserializeAws_json1_1MonitorDataSource = (output, context) => {
|
|
4528
|
+
return {
|
|
4529
|
+
DatasetImportJobArn: (0, smithy_client_1.expectString)(output.DatasetImportJobArn),
|
|
4530
|
+
ForecastArn: (0, smithy_client_1.expectString)(output.ForecastArn),
|
|
4531
|
+
PredictorArn: (0, smithy_client_1.expectString)(output.PredictorArn),
|
|
4532
|
+
};
|
|
4533
|
+
};
|
|
4534
|
+
const deserializeAws_json1_1MonitorInfo = (output, context) => {
|
|
4535
|
+
return {
|
|
4536
|
+
MonitorArn: (0, smithy_client_1.expectString)(output.MonitorArn),
|
|
4537
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
4538
|
+
};
|
|
4539
|
+
};
|
|
4540
|
+
const deserializeAws_json1_1Monitors = (output, context) => {
|
|
4541
|
+
const retVal = (output || [])
|
|
4542
|
+
.filter((e) => e != null)
|
|
4543
|
+
.map((entry) => {
|
|
4544
|
+
if (entry === null) {
|
|
4545
|
+
return null;
|
|
4546
|
+
}
|
|
4547
|
+
return deserializeAws_json1_1MonitorSummary(entry, context);
|
|
4548
|
+
});
|
|
4549
|
+
return retVal;
|
|
4550
|
+
};
|
|
4551
|
+
const deserializeAws_json1_1MonitorSummary = (output, context) => {
|
|
4552
|
+
return {
|
|
4553
|
+
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
4554
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
4555
|
+
: undefined,
|
|
4556
|
+
LastModificationTime: output.LastModificationTime !== undefined && output.LastModificationTime !== null
|
|
4557
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModificationTime)))
|
|
4558
|
+
: undefined,
|
|
4559
|
+
MonitorArn: (0, smithy_client_1.expectString)(output.MonitorArn),
|
|
4560
|
+
MonitorName: (0, smithy_client_1.expectString)(output.MonitorName),
|
|
4561
|
+
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
4562
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
4563
|
+
};
|
|
4564
|
+
};
|
|
4066
4565
|
const deserializeAws_json1_1ParameterRanges = (output, context) => {
|
|
4067
4566
|
return {
|
|
4068
4567
|
CategoricalParameterRanges: output.CategoricalParameterRanges !== undefined && output.CategoricalParameterRanges !== null
|
|
@@ -4104,6 +4603,13 @@ const deserializeAws_json1_1PredictorBacktestExportJobSummary = (output, context
|
|
|
4104
4603
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
4105
4604
|
};
|
|
4106
4605
|
};
|
|
4606
|
+
const deserializeAws_json1_1PredictorBaseline = (output, context) => {
|
|
4607
|
+
return {
|
|
4608
|
+
BaselineMetrics: output.BaselineMetrics !== undefined && output.BaselineMetrics !== null
|
|
4609
|
+
? deserializeAws_json1_1BaselineMetrics(output.BaselineMetrics, context)
|
|
4610
|
+
: undefined,
|
|
4611
|
+
};
|
|
4612
|
+
};
|
|
4107
4613
|
const deserializeAws_json1_1PredictorEvaluationResults = (output, context) => {
|
|
4108
4614
|
const retVal = (output || [])
|
|
4109
4615
|
.filter((e) => e != null)
|
|
@@ -4115,6 +4621,14 @@ const deserializeAws_json1_1PredictorEvaluationResults = (output, context) => {
|
|
|
4115
4621
|
});
|
|
4116
4622
|
return retVal;
|
|
4117
4623
|
};
|
|
4624
|
+
const deserializeAws_json1_1PredictorEvent = (output, context) => {
|
|
4625
|
+
return {
|
|
4626
|
+
Datetime: output.Datetime !== undefined && output.Datetime !== null
|
|
4627
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Datetime)))
|
|
4628
|
+
: undefined,
|
|
4629
|
+
Detail: (0, smithy_client_1.expectString)(output.Detail),
|
|
4630
|
+
};
|
|
4631
|
+
};
|
|
4118
4632
|
const deserializeAws_json1_1PredictorExecution = (output, context) => {
|
|
4119
4633
|
return {
|
|
4120
4634
|
AlgorithmArn: (0, smithy_client_1.expectString)(output.AlgorithmArn),
|
|
@@ -4141,6 +4655,44 @@ const deserializeAws_json1_1PredictorExecutions = (output, context) => {
|
|
|
4141
4655
|
});
|
|
4142
4656
|
return retVal;
|
|
4143
4657
|
};
|
|
4658
|
+
const deserializeAws_json1_1PredictorMonitorEvaluation = (output, context) => {
|
|
4659
|
+
return {
|
|
4660
|
+
EvaluationState: (0, smithy_client_1.expectString)(output.EvaluationState),
|
|
4661
|
+
EvaluationTime: output.EvaluationTime !== undefined && output.EvaluationTime !== null
|
|
4662
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EvaluationTime)))
|
|
4663
|
+
: undefined,
|
|
4664
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4665
|
+
MetricResults: output.MetricResults !== undefined && output.MetricResults !== null
|
|
4666
|
+
? deserializeAws_json1_1MetricResults(output.MetricResults, context)
|
|
4667
|
+
: undefined,
|
|
4668
|
+
MonitorArn: (0, smithy_client_1.expectString)(output.MonitorArn),
|
|
4669
|
+
MonitorDataSource: output.MonitorDataSource !== undefined && output.MonitorDataSource !== null
|
|
4670
|
+
? deserializeAws_json1_1MonitorDataSource(output.MonitorDataSource, context)
|
|
4671
|
+
: undefined,
|
|
4672
|
+
NumItemsEvaluated: (0, smithy_client_1.expectLong)(output.NumItemsEvaluated),
|
|
4673
|
+
PredictorEvent: output.PredictorEvent !== undefined && output.PredictorEvent !== null
|
|
4674
|
+
? deserializeAws_json1_1PredictorEvent(output.PredictorEvent, context)
|
|
4675
|
+
: undefined,
|
|
4676
|
+
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
4677
|
+
WindowEndDatetime: output.WindowEndDatetime !== undefined && output.WindowEndDatetime !== null
|
|
4678
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.WindowEndDatetime)))
|
|
4679
|
+
: undefined,
|
|
4680
|
+
WindowStartDatetime: output.WindowStartDatetime !== undefined && output.WindowStartDatetime !== null
|
|
4681
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.WindowStartDatetime)))
|
|
4682
|
+
: undefined,
|
|
4683
|
+
};
|
|
4684
|
+
};
|
|
4685
|
+
const deserializeAws_json1_1PredictorMonitorEvaluations = (output, context) => {
|
|
4686
|
+
const retVal = (output || [])
|
|
4687
|
+
.filter((e) => e != null)
|
|
4688
|
+
.map((entry) => {
|
|
4689
|
+
if (entry === null) {
|
|
4690
|
+
return null;
|
|
4691
|
+
}
|
|
4692
|
+
return deserializeAws_json1_1PredictorMonitorEvaluation(entry, context);
|
|
4693
|
+
});
|
|
4694
|
+
return retVal;
|
|
4695
|
+
};
|
|
4144
4696
|
const deserializeAws_json1_1Predictors = (output, context) => {
|
|
4145
4697
|
const retVal = (output || [])
|
|
4146
4698
|
.filter((e) => e != null)
|
|
@@ -4310,6 +4862,14 @@ const deserializeAws_json1_1TestWindowSummary = (output, context) => {
|
|
|
4310
4862
|
: undefined,
|
|
4311
4863
|
};
|
|
4312
4864
|
};
|
|
4865
|
+
const deserializeAws_json1_1TimeAlignmentBoundary = (output, context) => {
|
|
4866
|
+
return {
|
|
4867
|
+
DayOfMonth: (0, smithy_client_1.expectInt32)(output.DayOfMonth),
|
|
4868
|
+
DayOfWeek: (0, smithy_client_1.expectString)(output.DayOfWeek),
|
|
4869
|
+
Hour: (0, smithy_client_1.expectInt32)(output.Hour),
|
|
4870
|
+
Month: (0, smithy_client_1.expectString)(output.Month),
|
|
4871
|
+
};
|
|
4872
|
+
};
|
|
4313
4873
|
const deserializeAws_json1_1TrainingParameters = (output, context) => {
|
|
4314
4874
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4315
4875
|
if (value === null) {
|