@aws-sdk/client-forecast 3.489.0 → 3.495.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/dist-cjs/Forecast.js +1 -137
- package/dist-cjs/ForecastClient.js +1 -43
- package/dist-cjs/commands/CreateAutoPredictorCommand.js +1 -29
- package/dist-cjs/commands/CreateDatasetCommand.js +1 -29
- package/dist-cjs/commands/CreateDatasetGroupCommand.js +1 -29
- package/dist-cjs/commands/CreateDatasetImportJobCommand.js +1 -29
- package/dist-cjs/commands/CreateExplainabilityCommand.js +1 -29
- package/dist-cjs/commands/CreateExplainabilityExportCommand.js +1 -29
- package/dist-cjs/commands/CreateForecastCommand.js +1 -29
- package/dist-cjs/commands/CreateForecastExportJobCommand.js +1 -29
- package/dist-cjs/commands/CreateMonitorCommand.js +1 -29
- package/dist-cjs/commands/CreatePredictorBacktestExportJobCommand.js +1 -29
- package/dist-cjs/commands/CreatePredictorCommand.js +1 -29
- package/dist-cjs/commands/CreateWhatIfAnalysisCommand.js +1 -29
- package/dist-cjs/commands/CreateWhatIfForecastCommand.js +1 -29
- package/dist-cjs/commands/CreateWhatIfForecastExportCommand.js +1 -29
- package/dist-cjs/commands/DeleteDatasetCommand.js +1 -28
- package/dist-cjs/commands/DeleteDatasetGroupCommand.js +1 -28
- package/dist-cjs/commands/DeleteDatasetImportJobCommand.js +1 -28
- package/dist-cjs/commands/DeleteExplainabilityCommand.js +1 -28
- package/dist-cjs/commands/DeleteExplainabilityExportCommand.js +1 -28
- package/dist-cjs/commands/DeleteForecastCommand.js +1 -28
- package/dist-cjs/commands/DeleteForecastExportJobCommand.js +1 -28
- package/dist-cjs/commands/DeleteMonitorCommand.js +1 -28
- package/dist-cjs/commands/DeletePredictorBacktestExportJobCommand.js +1 -28
- package/dist-cjs/commands/DeletePredictorCommand.js +1 -28
- package/dist-cjs/commands/DeleteResourceTreeCommand.js +1 -28
- package/dist-cjs/commands/DeleteWhatIfAnalysisCommand.js +1 -28
- package/dist-cjs/commands/DeleteWhatIfForecastCommand.js +1 -28
- package/dist-cjs/commands/DeleteWhatIfForecastExportCommand.js +1 -28
- package/dist-cjs/commands/DescribeAutoPredictorCommand.js +1 -28
- package/dist-cjs/commands/DescribeDatasetCommand.js +1 -28
- package/dist-cjs/commands/DescribeDatasetGroupCommand.js +1 -28
- package/dist-cjs/commands/DescribeDatasetImportJobCommand.js +1 -28
- package/dist-cjs/commands/DescribeExplainabilityCommand.js +1 -28
- package/dist-cjs/commands/DescribeExplainabilityExportCommand.js +1 -28
- package/dist-cjs/commands/DescribeForecastCommand.js +1 -28
- package/dist-cjs/commands/DescribeForecastExportJobCommand.js +1 -28
- package/dist-cjs/commands/DescribeMonitorCommand.js +1 -28
- package/dist-cjs/commands/DescribePredictorBacktestExportJobCommand.js +1 -28
- package/dist-cjs/commands/DescribePredictorCommand.js +1 -28
- package/dist-cjs/commands/DescribeWhatIfAnalysisCommand.js +1 -28
- package/dist-cjs/commands/DescribeWhatIfForecastCommand.js +1 -28
- package/dist-cjs/commands/DescribeWhatIfForecastExportCommand.js +1 -28
- package/dist-cjs/commands/GetAccuracyMetricsCommand.js +1 -28
- package/dist-cjs/commands/ListDatasetGroupsCommand.js +1 -28
- package/dist-cjs/commands/ListDatasetImportJobsCommand.js +1 -28
- package/dist-cjs/commands/ListDatasetsCommand.js +1 -28
- package/dist-cjs/commands/ListExplainabilitiesCommand.js +1 -28
- package/dist-cjs/commands/ListExplainabilityExportsCommand.js +1 -28
- package/dist-cjs/commands/ListForecastExportJobsCommand.js +1 -28
- package/dist-cjs/commands/ListForecastsCommand.js +1 -28
- package/dist-cjs/commands/ListMonitorEvaluationsCommand.js +1 -28
- package/dist-cjs/commands/ListMonitorsCommand.js +1 -28
- package/dist-cjs/commands/ListPredictorBacktestExportJobsCommand.js +1 -28
- package/dist-cjs/commands/ListPredictorsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -29
- package/dist-cjs/commands/ListWhatIfAnalysesCommand.js +1 -28
- package/dist-cjs/commands/ListWhatIfForecastExportsCommand.js +1 -28
- package/dist-cjs/commands/ListWhatIfForecastsCommand.js +1 -28
- package/dist-cjs/commands/ResumeResourceCommand.js +1 -28
- package/dist-cjs/commands/StopResourceCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -29
- package/dist-cjs/commands/UntagResourceCommand.js +1 -29
- package/dist-cjs/commands/UpdateDatasetGroupCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -66
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +5542 -11
- package/dist-cjs/models/ForecastServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -280
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListDatasetGroupsPaginator.js +1 -7
- package/dist-cjs/pagination/ListDatasetImportJobsPaginator.js +1 -7
- package/dist-cjs/pagination/ListDatasetsPaginator.js +1 -7
- package/dist-cjs/pagination/ListExplainabilitiesPaginator.js +1 -7
- package/dist-cjs/pagination/ListExplainabilityExportsPaginator.js +1 -7
- package/dist-cjs/pagination/ListForecastExportJobsPaginator.js +1 -7
- package/dist-cjs/pagination/ListForecastsPaginator.js +1 -7
- package/dist-cjs/pagination/ListMonitorEvaluationsPaginator.js +1 -7
- package/dist-cjs/pagination/ListMonitorsPaginator.js +1 -7
- package/dist-cjs/pagination/ListPredictorBacktestExportJobsPaginator.js +1 -7
- package/dist-cjs/pagination/ListPredictorsPaginator.js +1 -7
- package/dist-cjs/pagination/ListWhatIfAnalysesPaginator.js +1 -7
- package/dist-cjs/pagination/ListWhatIfForecastExportsPaginator.js +1 -7
- package/dist-cjs/pagination/ListWhatIfForecastsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -18
- package/dist-cjs/protocols/Aws_json1_1.js +1 -3861
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,3861 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.se_ListForecastsCommand = exports.se_ListForecastExportJobsCommand = exports.se_ListExplainabilityExportsCommand = exports.se_ListExplainabilitiesCommand = exports.se_ListDatasetsCommand = exports.se_ListDatasetImportJobsCommand = exports.se_ListDatasetGroupsCommand = exports.se_GetAccuracyMetricsCommand = exports.se_DescribeWhatIfForecastExportCommand = exports.se_DescribeWhatIfForecastCommand = exports.se_DescribeWhatIfAnalysisCommand = exports.se_DescribePredictorBacktestExportJobCommand = exports.se_DescribePredictorCommand = exports.se_DescribeMonitorCommand = exports.se_DescribeForecastExportJobCommand = exports.se_DescribeForecastCommand = exports.se_DescribeExplainabilityExportCommand = exports.se_DescribeExplainabilityCommand = exports.se_DescribeDatasetImportJobCommand = exports.se_DescribeDatasetGroupCommand = exports.se_DescribeDatasetCommand = exports.se_DescribeAutoPredictorCommand = exports.se_DeleteWhatIfForecastExportCommand = exports.se_DeleteWhatIfForecastCommand = exports.se_DeleteWhatIfAnalysisCommand = exports.se_DeleteResourceTreeCommand = exports.se_DeletePredictorBacktestExportJobCommand = exports.se_DeletePredictorCommand = exports.se_DeleteMonitorCommand = exports.se_DeleteForecastExportJobCommand = exports.se_DeleteForecastCommand = exports.se_DeleteExplainabilityExportCommand = exports.se_DeleteExplainabilityCommand = exports.se_DeleteDatasetImportJobCommand = exports.se_DeleteDatasetGroupCommand = exports.se_DeleteDatasetCommand = exports.se_CreateWhatIfForecastExportCommand = exports.se_CreateWhatIfForecastCommand = exports.se_CreateWhatIfAnalysisCommand = exports.se_CreatePredictorBacktestExportJobCommand = exports.se_CreatePredictorCommand = exports.se_CreateMonitorCommand = exports.se_CreateForecastExportJobCommand = exports.se_CreateForecastCommand = exports.se_CreateExplainabilityExportCommand = exports.se_CreateExplainabilityCommand = exports.se_CreateDatasetImportJobCommand = exports.se_CreateDatasetGroupCommand = exports.se_CreateDatasetCommand = exports.se_CreateAutoPredictorCommand = void 0;
|
|
4
|
-
exports.de_DescribeMonitorCommand = exports.de_DescribeForecastExportJobCommand = exports.de_DescribeForecastCommand = exports.de_DescribeExplainabilityExportCommand = exports.de_DescribeExplainabilityCommand = exports.de_DescribeDatasetImportJobCommand = exports.de_DescribeDatasetGroupCommand = exports.de_DescribeDatasetCommand = exports.de_DescribeAutoPredictorCommand = exports.de_DeleteWhatIfForecastExportCommand = exports.de_DeleteWhatIfForecastCommand = exports.de_DeleteWhatIfAnalysisCommand = exports.de_DeleteResourceTreeCommand = exports.de_DeletePredictorBacktestExportJobCommand = exports.de_DeletePredictorCommand = exports.de_DeleteMonitorCommand = exports.de_DeleteForecastExportJobCommand = exports.de_DeleteForecastCommand = exports.de_DeleteExplainabilityExportCommand = exports.de_DeleteExplainabilityCommand = exports.de_DeleteDatasetImportJobCommand = exports.de_DeleteDatasetGroupCommand = exports.de_DeleteDatasetCommand = exports.de_CreateWhatIfForecastExportCommand = exports.de_CreateWhatIfForecastCommand = exports.de_CreateWhatIfAnalysisCommand = exports.de_CreatePredictorBacktestExportJobCommand = exports.de_CreatePredictorCommand = exports.de_CreateMonitorCommand = exports.de_CreateForecastExportJobCommand = exports.de_CreateForecastCommand = exports.de_CreateExplainabilityExportCommand = exports.de_CreateExplainabilityCommand = exports.de_CreateDatasetImportJobCommand = exports.de_CreateDatasetGroupCommand = exports.de_CreateDatasetCommand = exports.de_CreateAutoPredictorCommand = exports.se_UpdateDatasetGroupCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopResourceCommand = exports.se_ResumeResourceCommand = exports.se_ListWhatIfForecastsCommand = exports.se_ListWhatIfForecastExportsCommand = exports.se_ListWhatIfAnalysesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListPredictorsCommand = exports.se_ListPredictorBacktestExportJobsCommand = exports.se_ListMonitorsCommand = exports.se_ListMonitorEvaluationsCommand = void 0;
|
|
5
|
-
exports.de_UpdateDatasetGroupCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopResourceCommand = exports.de_ResumeResourceCommand = exports.de_ListWhatIfForecastsCommand = exports.de_ListWhatIfForecastExportsCommand = exports.de_ListWhatIfAnalysesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListPredictorsCommand = exports.de_ListPredictorBacktestExportJobsCommand = exports.de_ListMonitorsCommand = exports.de_ListMonitorEvaluationsCommand = exports.de_ListForecastsCommand = exports.de_ListForecastExportJobsCommand = exports.de_ListExplainabilityExportsCommand = exports.de_ListExplainabilitiesCommand = exports.de_ListDatasetsCommand = exports.de_ListDatasetImportJobsCommand = exports.de_ListDatasetGroupsCommand = exports.de_GetAccuracyMetricsCommand = exports.de_DescribeWhatIfForecastExportCommand = exports.de_DescribeWhatIfForecastCommand = exports.de_DescribeWhatIfAnalysisCommand = exports.de_DescribePredictorBacktestExportJobCommand = exports.de_DescribePredictorCommand = void 0;
|
|
6
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
7
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
|
-
const ForecastServiceException_1 = require("../models/ForecastServiceException");
|
|
9
|
-
const models_0_1 = require("../models/models_0");
|
|
10
|
-
const se_CreateAutoPredictorCommand = async (input, context) => {
|
|
11
|
-
const headers = sharedHeaders("CreateAutoPredictor");
|
|
12
|
-
let body;
|
|
13
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
14
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
15
|
-
};
|
|
16
|
-
exports.se_CreateAutoPredictorCommand = se_CreateAutoPredictorCommand;
|
|
17
|
-
const se_CreateDatasetCommand = async (input, context) => {
|
|
18
|
-
const headers = sharedHeaders("CreateDataset");
|
|
19
|
-
let body;
|
|
20
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
21
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
|
-
};
|
|
23
|
-
exports.se_CreateDatasetCommand = se_CreateDatasetCommand;
|
|
24
|
-
const se_CreateDatasetGroupCommand = async (input, context) => {
|
|
25
|
-
const headers = sharedHeaders("CreateDatasetGroup");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
28
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
-
};
|
|
30
|
-
exports.se_CreateDatasetGroupCommand = se_CreateDatasetGroupCommand;
|
|
31
|
-
const se_CreateDatasetImportJobCommand = async (input, context) => {
|
|
32
|
-
const headers = sharedHeaders("CreateDatasetImportJob");
|
|
33
|
-
let body;
|
|
34
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
35
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
|
-
};
|
|
37
|
-
exports.se_CreateDatasetImportJobCommand = se_CreateDatasetImportJobCommand;
|
|
38
|
-
const se_CreateExplainabilityCommand = async (input, context) => {
|
|
39
|
-
const headers = sharedHeaders("CreateExplainability");
|
|
40
|
-
let body;
|
|
41
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
42
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
43
|
-
};
|
|
44
|
-
exports.se_CreateExplainabilityCommand = se_CreateExplainabilityCommand;
|
|
45
|
-
const se_CreateExplainabilityExportCommand = async (input, context) => {
|
|
46
|
-
const headers = sharedHeaders("CreateExplainabilityExport");
|
|
47
|
-
let body;
|
|
48
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
49
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
50
|
-
};
|
|
51
|
-
exports.se_CreateExplainabilityExportCommand = se_CreateExplainabilityExportCommand;
|
|
52
|
-
const se_CreateForecastCommand = async (input, context) => {
|
|
53
|
-
const headers = sharedHeaders("CreateForecast");
|
|
54
|
-
let body;
|
|
55
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
56
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
|
-
};
|
|
58
|
-
exports.se_CreateForecastCommand = se_CreateForecastCommand;
|
|
59
|
-
const se_CreateForecastExportJobCommand = async (input, context) => {
|
|
60
|
-
const headers = sharedHeaders("CreateForecastExportJob");
|
|
61
|
-
let body;
|
|
62
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
63
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
64
|
-
};
|
|
65
|
-
exports.se_CreateForecastExportJobCommand = se_CreateForecastExportJobCommand;
|
|
66
|
-
const se_CreateMonitorCommand = async (input, context) => {
|
|
67
|
-
const headers = sharedHeaders("CreateMonitor");
|
|
68
|
-
let body;
|
|
69
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
70
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
|
-
};
|
|
72
|
-
exports.se_CreateMonitorCommand = se_CreateMonitorCommand;
|
|
73
|
-
const se_CreatePredictorCommand = async (input, context) => {
|
|
74
|
-
const headers = sharedHeaders("CreatePredictor");
|
|
75
|
-
let body;
|
|
76
|
-
body = JSON.stringify(se_CreatePredictorRequest(input, context));
|
|
77
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
|
-
};
|
|
79
|
-
exports.se_CreatePredictorCommand = se_CreatePredictorCommand;
|
|
80
|
-
const se_CreatePredictorBacktestExportJobCommand = async (input, context) => {
|
|
81
|
-
const headers = sharedHeaders("CreatePredictorBacktestExportJob");
|
|
82
|
-
let body;
|
|
83
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
84
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
|
-
};
|
|
86
|
-
exports.se_CreatePredictorBacktestExportJobCommand = se_CreatePredictorBacktestExportJobCommand;
|
|
87
|
-
const se_CreateWhatIfAnalysisCommand = async (input, context) => {
|
|
88
|
-
const headers = sharedHeaders("CreateWhatIfAnalysis");
|
|
89
|
-
let body;
|
|
90
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
91
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
92
|
-
};
|
|
93
|
-
exports.se_CreateWhatIfAnalysisCommand = se_CreateWhatIfAnalysisCommand;
|
|
94
|
-
const se_CreateWhatIfForecastCommand = async (input, context) => {
|
|
95
|
-
const headers = sharedHeaders("CreateWhatIfForecast");
|
|
96
|
-
let body;
|
|
97
|
-
body = JSON.stringify(se_CreateWhatIfForecastRequest(input, context));
|
|
98
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
99
|
-
};
|
|
100
|
-
exports.se_CreateWhatIfForecastCommand = se_CreateWhatIfForecastCommand;
|
|
101
|
-
const se_CreateWhatIfForecastExportCommand = async (input, context) => {
|
|
102
|
-
const headers = sharedHeaders("CreateWhatIfForecastExport");
|
|
103
|
-
let body;
|
|
104
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
105
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
|
-
};
|
|
107
|
-
exports.se_CreateWhatIfForecastExportCommand = se_CreateWhatIfForecastExportCommand;
|
|
108
|
-
const se_DeleteDatasetCommand = async (input, context) => {
|
|
109
|
-
const headers = sharedHeaders("DeleteDataset");
|
|
110
|
-
let body;
|
|
111
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
112
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
|
-
};
|
|
114
|
-
exports.se_DeleteDatasetCommand = se_DeleteDatasetCommand;
|
|
115
|
-
const se_DeleteDatasetGroupCommand = async (input, context) => {
|
|
116
|
-
const headers = sharedHeaders("DeleteDatasetGroup");
|
|
117
|
-
let body;
|
|
118
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
119
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
120
|
-
};
|
|
121
|
-
exports.se_DeleteDatasetGroupCommand = se_DeleteDatasetGroupCommand;
|
|
122
|
-
const se_DeleteDatasetImportJobCommand = async (input, context) => {
|
|
123
|
-
const headers = sharedHeaders("DeleteDatasetImportJob");
|
|
124
|
-
let body;
|
|
125
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
126
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
127
|
-
};
|
|
128
|
-
exports.se_DeleteDatasetImportJobCommand = se_DeleteDatasetImportJobCommand;
|
|
129
|
-
const se_DeleteExplainabilityCommand = async (input, context) => {
|
|
130
|
-
const headers = sharedHeaders("DeleteExplainability");
|
|
131
|
-
let body;
|
|
132
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
133
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
134
|
-
};
|
|
135
|
-
exports.se_DeleteExplainabilityCommand = se_DeleteExplainabilityCommand;
|
|
136
|
-
const se_DeleteExplainabilityExportCommand = async (input, context) => {
|
|
137
|
-
const headers = sharedHeaders("DeleteExplainabilityExport");
|
|
138
|
-
let body;
|
|
139
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
140
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
141
|
-
};
|
|
142
|
-
exports.se_DeleteExplainabilityExportCommand = se_DeleteExplainabilityExportCommand;
|
|
143
|
-
const se_DeleteForecastCommand = async (input, context) => {
|
|
144
|
-
const headers = sharedHeaders("DeleteForecast");
|
|
145
|
-
let body;
|
|
146
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
147
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
|
-
};
|
|
149
|
-
exports.se_DeleteForecastCommand = se_DeleteForecastCommand;
|
|
150
|
-
const se_DeleteForecastExportJobCommand = async (input, context) => {
|
|
151
|
-
const headers = sharedHeaders("DeleteForecastExportJob");
|
|
152
|
-
let body;
|
|
153
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
154
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
155
|
-
};
|
|
156
|
-
exports.se_DeleteForecastExportJobCommand = se_DeleteForecastExportJobCommand;
|
|
157
|
-
const se_DeleteMonitorCommand = async (input, context) => {
|
|
158
|
-
const headers = sharedHeaders("DeleteMonitor");
|
|
159
|
-
let body;
|
|
160
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
161
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
162
|
-
};
|
|
163
|
-
exports.se_DeleteMonitorCommand = se_DeleteMonitorCommand;
|
|
164
|
-
const se_DeletePredictorCommand = async (input, context) => {
|
|
165
|
-
const headers = sharedHeaders("DeletePredictor");
|
|
166
|
-
let body;
|
|
167
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
168
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
169
|
-
};
|
|
170
|
-
exports.se_DeletePredictorCommand = se_DeletePredictorCommand;
|
|
171
|
-
const se_DeletePredictorBacktestExportJobCommand = async (input, context) => {
|
|
172
|
-
const headers = sharedHeaders("DeletePredictorBacktestExportJob");
|
|
173
|
-
let body;
|
|
174
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
175
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
|
-
};
|
|
177
|
-
exports.se_DeletePredictorBacktestExportJobCommand = se_DeletePredictorBacktestExportJobCommand;
|
|
178
|
-
const se_DeleteResourceTreeCommand = async (input, context) => {
|
|
179
|
-
const headers = sharedHeaders("DeleteResourceTree");
|
|
180
|
-
let body;
|
|
181
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
182
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
183
|
-
};
|
|
184
|
-
exports.se_DeleteResourceTreeCommand = se_DeleteResourceTreeCommand;
|
|
185
|
-
const se_DeleteWhatIfAnalysisCommand = async (input, context) => {
|
|
186
|
-
const headers = sharedHeaders("DeleteWhatIfAnalysis");
|
|
187
|
-
let body;
|
|
188
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
189
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
190
|
-
};
|
|
191
|
-
exports.se_DeleteWhatIfAnalysisCommand = se_DeleteWhatIfAnalysisCommand;
|
|
192
|
-
const se_DeleteWhatIfForecastCommand = async (input, context) => {
|
|
193
|
-
const headers = sharedHeaders("DeleteWhatIfForecast");
|
|
194
|
-
let body;
|
|
195
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
196
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
|
-
};
|
|
198
|
-
exports.se_DeleteWhatIfForecastCommand = se_DeleteWhatIfForecastCommand;
|
|
199
|
-
const se_DeleteWhatIfForecastExportCommand = async (input, context) => {
|
|
200
|
-
const headers = sharedHeaders("DeleteWhatIfForecastExport");
|
|
201
|
-
let body;
|
|
202
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
203
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
204
|
-
};
|
|
205
|
-
exports.se_DeleteWhatIfForecastExportCommand = se_DeleteWhatIfForecastExportCommand;
|
|
206
|
-
const se_DescribeAutoPredictorCommand = async (input, context) => {
|
|
207
|
-
const headers = sharedHeaders("DescribeAutoPredictor");
|
|
208
|
-
let body;
|
|
209
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
210
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
211
|
-
};
|
|
212
|
-
exports.se_DescribeAutoPredictorCommand = se_DescribeAutoPredictorCommand;
|
|
213
|
-
const se_DescribeDatasetCommand = async (input, context) => {
|
|
214
|
-
const headers = sharedHeaders("DescribeDataset");
|
|
215
|
-
let body;
|
|
216
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
217
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
218
|
-
};
|
|
219
|
-
exports.se_DescribeDatasetCommand = se_DescribeDatasetCommand;
|
|
220
|
-
const se_DescribeDatasetGroupCommand = async (input, context) => {
|
|
221
|
-
const headers = sharedHeaders("DescribeDatasetGroup");
|
|
222
|
-
let body;
|
|
223
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
224
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
225
|
-
};
|
|
226
|
-
exports.se_DescribeDatasetGroupCommand = se_DescribeDatasetGroupCommand;
|
|
227
|
-
const se_DescribeDatasetImportJobCommand = async (input, context) => {
|
|
228
|
-
const headers = sharedHeaders("DescribeDatasetImportJob");
|
|
229
|
-
let body;
|
|
230
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
231
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
232
|
-
};
|
|
233
|
-
exports.se_DescribeDatasetImportJobCommand = se_DescribeDatasetImportJobCommand;
|
|
234
|
-
const se_DescribeExplainabilityCommand = async (input, context) => {
|
|
235
|
-
const headers = sharedHeaders("DescribeExplainability");
|
|
236
|
-
let body;
|
|
237
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
238
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
239
|
-
};
|
|
240
|
-
exports.se_DescribeExplainabilityCommand = se_DescribeExplainabilityCommand;
|
|
241
|
-
const se_DescribeExplainabilityExportCommand = async (input, context) => {
|
|
242
|
-
const headers = sharedHeaders("DescribeExplainabilityExport");
|
|
243
|
-
let body;
|
|
244
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
245
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
246
|
-
};
|
|
247
|
-
exports.se_DescribeExplainabilityExportCommand = se_DescribeExplainabilityExportCommand;
|
|
248
|
-
const se_DescribeForecastCommand = async (input, context) => {
|
|
249
|
-
const headers = sharedHeaders("DescribeForecast");
|
|
250
|
-
let body;
|
|
251
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
252
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
253
|
-
};
|
|
254
|
-
exports.se_DescribeForecastCommand = se_DescribeForecastCommand;
|
|
255
|
-
const se_DescribeForecastExportJobCommand = async (input, context) => {
|
|
256
|
-
const headers = sharedHeaders("DescribeForecastExportJob");
|
|
257
|
-
let body;
|
|
258
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
259
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
260
|
-
};
|
|
261
|
-
exports.se_DescribeForecastExportJobCommand = se_DescribeForecastExportJobCommand;
|
|
262
|
-
const se_DescribeMonitorCommand = async (input, context) => {
|
|
263
|
-
const headers = sharedHeaders("DescribeMonitor");
|
|
264
|
-
let body;
|
|
265
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
266
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
267
|
-
};
|
|
268
|
-
exports.se_DescribeMonitorCommand = se_DescribeMonitorCommand;
|
|
269
|
-
const se_DescribePredictorCommand = async (input, context) => {
|
|
270
|
-
const headers = sharedHeaders("DescribePredictor");
|
|
271
|
-
let body;
|
|
272
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
273
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
274
|
-
};
|
|
275
|
-
exports.se_DescribePredictorCommand = se_DescribePredictorCommand;
|
|
276
|
-
const se_DescribePredictorBacktestExportJobCommand = async (input, context) => {
|
|
277
|
-
const headers = sharedHeaders("DescribePredictorBacktestExportJob");
|
|
278
|
-
let body;
|
|
279
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
280
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
281
|
-
};
|
|
282
|
-
exports.se_DescribePredictorBacktestExportJobCommand = se_DescribePredictorBacktestExportJobCommand;
|
|
283
|
-
const se_DescribeWhatIfAnalysisCommand = async (input, context) => {
|
|
284
|
-
const headers = sharedHeaders("DescribeWhatIfAnalysis");
|
|
285
|
-
let body;
|
|
286
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
287
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
288
|
-
};
|
|
289
|
-
exports.se_DescribeWhatIfAnalysisCommand = se_DescribeWhatIfAnalysisCommand;
|
|
290
|
-
const se_DescribeWhatIfForecastCommand = async (input, context) => {
|
|
291
|
-
const headers = sharedHeaders("DescribeWhatIfForecast");
|
|
292
|
-
let body;
|
|
293
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
294
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
295
|
-
};
|
|
296
|
-
exports.se_DescribeWhatIfForecastCommand = se_DescribeWhatIfForecastCommand;
|
|
297
|
-
const se_DescribeWhatIfForecastExportCommand = async (input, context) => {
|
|
298
|
-
const headers = sharedHeaders("DescribeWhatIfForecastExport");
|
|
299
|
-
let body;
|
|
300
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
301
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
302
|
-
};
|
|
303
|
-
exports.se_DescribeWhatIfForecastExportCommand = se_DescribeWhatIfForecastExportCommand;
|
|
304
|
-
const se_GetAccuracyMetricsCommand = async (input, context) => {
|
|
305
|
-
const headers = sharedHeaders("GetAccuracyMetrics");
|
|
306
|
-
let body;
|
|
307
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
308
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
309
|
-
};
|
|
310
|
-
exports.se_GetAccuracyMetricsCommand = se_GetAccuracyMetricsCommand;
|
|
311
|
-
const se_ListDatasetGroupsCommand = async (input, context) => {
|
|
312
|
-
const headers = sharedHeaders("ListDatasetGroups");
|
|
313
|
-
let body;
|
|
314
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
315
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
316
|
-
};
|
|
317
|
-
exports.se_ListDatasetGroupsCommand = se_ListDatasetGroupsCommand;
|
|
318
|
-
const se_ListDatasetImportJobsCommand = async (input, context) => {
|
|
319
|
-
const headers = sharedHeaders("ListDatasetImportJobs");
|
|
320
|
-
let body;
|
|
321
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
322
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
323
|
-
};
|
|
324
|
-
exports.se_ListDatasetImportJobsCommand = se_ListDatasetImportJobsCommand;
|
|
325
|
-
const se_ListDatasetsCommand = async (input, context) => {
|
|
326
|
-
const headers = sharedHeaders("ListDatasets");
|
|
327
|
-
let body;
|
|
328
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
329
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
330
|
-
};
|
|
331
|
-
exports.se_ListDatasetsCommand = se_ListDatasetsCommand;
|
|
332
|
-
const se_ListExplainabilitiesCommand = async (input, context) => {
|
|
333
|
-
const headers = sharedHeaders("ListExplainabilities");
|
|
334
|
-
let body;
|
|
335
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
336
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
337
|
-
};
|
|
338
|
-
exports.se_ListExplainabilitiesCommand = se_ListExplainabilitiesCommand;
|
|
339
|
-
const se_ListExplainabilityExportsCommand = async (input, context) => {
|
|
340
|
-
const headers = sharedHeaders("ListExplainabilityExports");
|
|
341
|
-
let body;
|
|
342
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
343
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
344
|
-
};
|
|
345
|
-
exports.se_ListExplainabilityExportsCommand = se_ListExplainabilityExportsCommand;
|
|
346
|
-
const se_ListForecastExportJobsCommand = async (input, context) => {
|
|
347
|
-
const headers = sharedHeaders("ListForecastExportJobs");
|
|
348
|
-
let body;
|
|
349
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
350
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
351
|
-
};
|
|
352
|
-
exports.se_ListForecastExportJobsCommand = se_ListForecastExportJobsCommand;
|
|
353
|
-
const se_ListForecastsCommand = async (input, context) => {
|
|
354
|
-
const headers = sharedHeaders("ListForecasts");
|
|
355
|
-
let body;
|
|
356
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
357
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
358
|
-
};
|
|
359
|
-
exports.se_ListForecastsCommand = se_ListForecastsCommand;
|
|
360
|
-
const se_ListMonitorEvaluationsCommand = async (input, context) => {
|
|
361
|
-
const headers = sharedHeaders("ListMonitorEvaluations");
|
|
362
|
-
let body;
|
|
363
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
364
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
365
|
-
};
|
|
366
|
-
exports.se_ListMonitorEvaluationsCommand = se_ListMonitorEvaluationsCommand;
|
|
367
|
-
const se_ListMonitorsCommand = async (input, context) => {
|
|
368
|
-
const headers = sharedHeaders("ListMonitors");
|
|
369
|
-
let body;
|
|
370
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
371
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
372
|
-
};
|
|
373
|
-
exports.se_ListMonitorsCommand = se_ListMonitorsCommand;
|
|
374
|
-
const se_ListPredictorBacktestExportJobsCommand = async (input, context) => {
|
|
375
|
-
const headers = sharedHeaders("ListPredictorBacktestExportJobs");
|
|
376
|
-
let body;
|
|
377
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
378
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
379
|
-
};
|
|
380
|
-
exports.se_ListPredictorBacktestExportJobsCommand = se_ListPredictorBacktestExportJobsCommand;
|
|
381
|
-
const se_ListPredictorsCommand = async (input, context) => {
|
|
382
|
-
const headers = sharedHeaders("ListPredictors");
|
|
383
|
-
let body;
|
|
384
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
385
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
386
|
-
};
|
|
387
|
-
exports.se_ListPredictorsCommand = se_ListPredictorsCommand;
|
|
388
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
389
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
390
|
-
let body;
|
|
391
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
392
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
393
|
-
};
|
|
394
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
395
|
-
const se_ListWhatIfAnalysesCommand = async (input, context) => {
|
|
396
|
-
const headers = sharedHeaders("ListWhatIfAnalyses");
|
|
397
|
-
let body;
|
|
398
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
399
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
400
|
-
};
|
|
401
|
-
exports.se_ListWhatIfAnalysesCommand = se_ListWhatIfAnalysesCommand;
|
|
402
|
-
const se_ListWhatIfForecastExportsCommand = async (input, context) => {
|
|
403
|
-
const headers = sharedHeaders("ListWhatIfForecastExports");
|
|
404
|
-
let body;
|
|
405
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
406
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
407
|
-
};
|
|
408
|
-
exports.se_ListWhatIfForecastExportsCommand = se_ListWhatIfForecastExportsCommand;
|
|
409
|
-
const se_ListWhatIfForecastsCommand = async (input, context) => {
|
|
410
|
-
const headers = sharedHeaders("ListWhatIfForecasts");
|
|
411
|
-
let body;
|
|
412
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
413
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
414
|
-
};
|
|
415
|
-
exports.se_ListWhatIfForecastsCommand = se_ListWhatIfForecastsCommand;
|
|
416
|
-
const se_ResumeResourceCommand = async (input, context) => {
|
|
417
|
-
const headers = sharedHeaders("ResumeResource");
|
|
418
|
-
let body;
|
|
419
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
420
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
421
|
-
};
|
|
422
|
-
exports.se_ResumeResourceCommand = se_ResumeResourceCommand;
|
|
423
|
-
const se_StopResourceCommand = async (input, context) => {
|
|
424
|
-
const headers = sharedHeaders("StopResource");
|
|
425
|
-
let body;
|
|
426
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
427
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
428
|
-
};
|
|
429
|
-
exports.se_StopResourceCommand = se_StopResourceCommand;
|
|
430
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
431
|
-
const headers = sharedHeaders("TagResource");
|
|
432
|
-
let body;
|
|
433
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
434
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
435
|
-
};
|
|
436
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
437
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
438
|
-
const headers = sharedHeaders("UntagResource");
|
|
439
|
-
let body;
|
|
440
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
441
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
442
|
-
};
|
|
443
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
444
|
-
const se_UpdateDatasetGroupCommand = async (input, context) => {
|
|
445
|
-
const headers = sharedHeaders("UpdateDatasetGroup");
|
|
446
|
-
let body;
|
|
447
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
448
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
449
|
-
};
|
|
450
|
-
exports.se_UpdateDatasetGroupCommand = se_UpdateDatasetGroupCommand;
|
|
451
|
-
const de_CreateAutoPredictorCommand = async (output, context) => {
|
|
452
|
-
if (output.statusCode >= 300) {
|
|
453
|
-
return de_CreateAutoPredictorCommandError(output, context);
|
|
454
|
-
}
|
|
455
|
-
const data = await parseBody(output.body, context);
|
|
456
|
-
let contents = {};
|
|
457
|
-
contents = (0, smithy_client_1._json)(data);
|
|
458
|
-
const response = {
|
|
459
|
-
$metadata: deserializeMetadata(output),
|
|
460
|
-
...contents,
|
|
461
|
-
};
|
|
462
|
-
return response;
|
|
463
|
-
};
|
|
464
|
-
exports.de_CreateAutoPredictorCommand = de_CreateAutoPredictorCommand;
|
|
465
|
-
const de_CreateAutoPredictorCommandError = async (output, context) => {
|
|
466
|
-
const parsedOutput = {
|
|
467
|
-
...output,
|
|
468
|
-
body: await parseErrorBody(output.body, context),
|
|
469
|
-
};
|
|
470
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
471
|
-
switch (errorCode) {
|
|
472
|
-
case "InvalidInputException":
|
|
473
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
474
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
475
|
-
case "LimitExceededException":
|
|
476
|
-
case "com.amazonaws.forecast#LimitExceededException":
|
|
477
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
478
|
-
case "ResourceAlreadyExistsException":
|
|
479
|
-
case "com.amazonaws.forecast#ResourceAlreadyExistsException":
|
|
480
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
481
|
-
case "ResourceInUseException":
|
|
482
|
-
case "com.amazonaws.forecast#ResourceInUseException":
|
|
483
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
484
|
-
case "ResourceNotFoundException":
|
|
485
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
486
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
487
|
-
default:
|
|
488
|
-
const parsedBody = parsedOutput.body;
|
|
489
|
-
return throwDefaultError({
|
|
490
|
-
output,
|
|
491
|
-
parsedBody,
|
|
492
|
-
errorCode,
|
|
493
|
-
});
|
|
494
|
-
}
|
|
495
|
-
};
|
|
496
|
-
const de_CreateDatasetCommand = async (output, context) => {
|
|
497
|
-
if (output.statusCode >= 300) {
|
|
498
|
-
return de_CreateDatasetCommandError(output, context);
|
|
499
|
-
}
|
|
500
|
-
const data = await parseBody(output.body, context);
|
|
501
|
-
let contents = {};
|
|
502
|
-
contents = (0, smithy_client_1._json)(data);
|
|
503
|
-
const response = {
|
|
504
|
-
$metadata: deserializeMetadata(output),
|
|
505
|
-
...contents,
|
|
506
|
-
};
|
|
507
|
-
return response;
|
|
508
|
-
};
|
|
509
|
-
exports.de_CreateDatasetCommand = de_CreateDatasetCommand;
|
|
510
|
-
const de_CreateDatasetCommandError = async (output, context) => {
|
|
511
|
-
const parsedOutput = {
|
|
512
|
-
...output,
|
|
513
|
-
body: await parseErrorBody(output.body, context),
|
|
514
|
-
};
|
|
515
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
516
|
-
switch (errorCode) {
|
|
517
|
-
case "InvalidInputException":
|
|
518
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
519
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
520
|
-
case "LimitExceededException":
|
|
521
|
-
case "com.amazonaws.forecast#LimitExceededException":
|
|
522
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
523
|
-
case "ResourceAlreadyExistsException":
|
|
524
|
-
case "com.amazonaws.forecast#ResourceAlreadyExistsException":
|
|
525
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
526
|
-
default:
|
|
527
|
-
const parsedBody = parsedOutput.body;
|
|
528
|
-
return throwDefaultError({
|
|
529
|
-
output,
|
|
530
|
-
parsedBody,
|
|
531
|
-
errorCode,
|
|
532
|
-
});
|
|
533
|
-
}
|
|
534
|
-
};
|
|
535
|
-
const de_CreateDatasetGroupCommand = async (output, context) => {
|
|
536
|
-
if (output.statusCode >= 300) {
|
|
537
|
-
return de_CreateDatasetGroupCommandError(output, context);
|
|
538
|
-
}
|
|
539
|
-
const data = await parseBody(output.body, context);
|
|
540
|
-
let contents = {};
|
|
541
|
-
contents = (0, smithy_client_1._json)(data);
|
|
542
|
-
const response = {
|
|
543
|
-
$metadata: deserializeMetadata(output),
|
|
544
|
-
...contents,
|
|
545
|
-
};
|
|
546
|
-
return response;
|
|
547
|
-
};
|
|
548
|
-
exports.de_CreateDatasetGroupCommand = de_CreateDatasetGroupCommand;
|
|
549
|
-
const de_CreateDatasetGroupCommandError = async (output, context) => {
|
|
550
|
-
const parsedOutput = {
|
|
551
|
-
...output,
|
|
552
|
-
body: await parseErrorBody(output.body, context),
|
|
553
|
-
};
|
|
554
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
555
|
-
switch (errorCode) {
|
|
556
|
-
case "InvalidInputException":
|
|
557
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
558
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
559
|
-
case "LimitExceededException":
|
|
560
|
-
case "com.amazonaws.forecast#LimitExceededException":
|
|
561
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
562
|
-
case "ResourceAlreadyExistsException":
|
|
563
|
-
case "com.amazonaws.forecast#ResourceAlreadyExistsException":
|
|
564
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
565
|
-
case "ResourceInUseException":
|
|
566
|
-
case "com.amazonaws.forecast#ResourceInUseException":
|
|
567
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
568
|
-
case "ResourceNotFoundException":
|
|
569
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
570
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
571
|
-
default:
|
|
572
|
-
const parsedBody = parsedOutput.body;
|
|
573
|
-
return throwDefaultError({
|
|
574
|
-
output,
|
|
575
|
-
parsedBody,
|
|
576
|
-
errorCode,
|
|
577
|
-
});
|
|
578
|
-
}
|
|
579
|
-
};
|
|
580
|
-
const de_CreateDatasetImportJobCommand = async (output, context) => {
|
|
581
|
-
if (output.statusCode >= 300) {
|
|
582
|
-
return de_CreateDatasetImportJobCommandError(output, context);
|
|
583
|
-
}
|
|
584
|
-
const data = await parseBody(output.body, context);
|
|
585
|
-
let contents = {};
|
|
586
|
-
contents = (0, smithy_client_1._json)(data);
|
|
587
|
-
const response = {
|
|
588
|
-
$metadata: deserializeMetadata(output),
|
|
589
|
-
...contents,
|
|
590
|
-
};
|
|
591
|
-
return response;
|
|
592
|
-
};
|
|
593
|
-
exports.de_CreateDatasetImportJobCommand = de_CreateDatasetImportJobCommand;
|
|
594
|
-
const de_CreateDatasetImportJobCommandError = async (output, context) => {
|
|
595
|
-
const parsedOutput = {
|
|
596
|
-
...output,
|
|
597
|
-
body: await parseErrorBody(output.body, context),
|
|
598
|
-
};
|
|
599
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
600
|
-
switch (errorCode) {
|
|
601
|
-
case "InvalidInputException":
|
|
602
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
603
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
604
|
-
case "LimitExceededException":
|
|
605
|
-
case "com.amazonaws.forecast#LimitExceededException":
|
|
606
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
607
|
-
case "ResourceAlreadyExistsException":
|
|
608
|
-
case "com.amazonaws.forecast#ResourceAlreadyExistsException":
|
|
609
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
610
|
-
case "ResourceInUseException":
|
|
611
|
-
case "com.amazonaws.forecast#ResourceInUseException":
|
|
612
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
613
|
-
case "ResourceNotFoundException":
|
|
614
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
615
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
616
|
-
default:
|
|
617
|
-
const parsedBody = parsedOutput.body;
|
|
618
|
-
return throwDefaultError({
|
|
619
|
-
output,
|
|
620
|
-
parsedBody,
|
|
621
|
-
errorCode,
|
|
622
|
-
});
|
|
623
|
-
}
|
|
624
|
-
};
|
|
625
|
-
const de_CreateExplainabilityCommand = async (output, context) => {
|
|
626
|
-
if (output.statusCode >= 300) {
|
|
627
|
-
return de_CreateExplainabilityCommandError(output, context);
|
|
628
|
-
}
|
|
629
|
-
const data = await parseBody(output.body, context);
|
|
630
|
-
let contents = {};
|
|
631
|
-
contents = (0, smithy_client_1._json)(data);
|
|
632
|
-
const response = {
|
|
633
|
-
$metadata: deserializeMetadata(output),
|
|
634
|
-
...contents,
|
|
635
|
-
};
|
|
636
|
-
return response;
|
|
637
|
-
};
|
|
638
|
-
exports.de_CreateExplainabilityCommand = de_CreateExplainabilityCommand;
|
|
639
|
-
const de_CreateExplainabilityCommandError = async (output, context) => {
|
|
640
|
-
const parsedOutput = {
|
|
641
|
-
...output,
|
|
642
|
-
body: await parseErrorBody(output.body, context),
|
|
643
|
-
};
|
|
644
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
645
|
-
switch (errorCode) {
|
|
646
|
-
case "InvalidInputException":
|
|
647
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
648
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
649
|
-
case "LimitExceededException":
|
|
650
|
-
case "com.amazonaws.forecast#LimitExceededException":
|
|
651
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
652
|
-
case "ResourceAlreadyExistsException":
|
|
653
|
-
case "com.amazonaws.forecast#ResourceAlreadyExistsException":
|
|
654
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
655
|
-
case "ResourceInUseException":
|
|
656
|
-
case "com.amazonaws.forecast#ResourceInUseException":
|
|
657
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
658
|
-
case "ResourceNotFoundException":
|
|
659
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
660
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
661
|
-
default:
|
|
662
|
-
const parsedBody = parsedOutput.body;
|
|
663
|
-
return throwDefaultError({
|
|
664
|
-
output,
|
|
665
|
-
parsedBody,
|
|
666
|
-
errorCode,
|
|
667
|
-
});
|
|
668
|
-
}
|
|
669
|
-
};
|
|
670
|
-
const de_CreateExplainabilityExportCommand = async (output, context) => {
|
|
671
|
-
if (output.statusCode >= 300) {
|
|
672
|
-
return de_CreateExplainabilityExportCommandError(output, context);
|
|
673
|
-
}
|
|
674
|
-
const data = await parseBody(output.body, context);
|
|
675
|
-
let contents = {};
|
|
676
|
-
contents = (0, smithy_client_1._json)(data);
|
|
677
|
-
const response = {
|
|
678
|
-
$metadata: deserializeMetadata(output),
|
|
679
|
-
...contents,
|
|
680
|
-
};
|
|
681
|
-
return response;
|
|
682
|
-
};
|
|
683
|
-
exports.de_CreateExplainabilityExportCommand = de_CreateExplainabilityExportCommand;
|
|
684
|
-
const de_CreateExplainabilityExportCommandError = async (output, context) => {
|
|
685
|
-
const parsedOutput = {
|
|
686
|
-
...output,
|
|
687
|
-
body: await parseErrorBody(output.body, context),
|
|
688
|
-
};
|
|
689
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
690
|
-
switch (errorCode) {
|
|
691
|
-
case "InvalidInputException":
|
|
692
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
693
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
694
|
-
case "LimitExceededException":
|
|
695
|
-
case "com.amazonaws.forecast#LimitExceededException":
|
|
696
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
697
|
-
case "ResourceAlreadyExistsException":
|
|
698
|
-
case "com.amazonaws.forecast#ResourceAlreadyExistsException":
|
|
699
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
700
|
-
case "ResourceInUseException":
|
|
701
|
-
case "com.amazonaws.forecast#ResourceInUseException":
|
|
702
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
703
|
-
case "ResourceNotFoundException":
|
|
704
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
705
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
706
|
-
default:
|
|
707
|
-
const parsedBody = parsedOutput.body;
|
|
708
|
-
return throwDefaultError({
|
|
709
|
-
output,
|
|
710
|
-
parsedBody,
|
|
711
|
-
errorCode,
|
|
712
|
-
});
|
|
713
|
-
}
|
|
714
|
-
};
|
|
715
|
-
const de_CreateForecastCommand = async (output, context) => {
|
|
716
|
-
if (output.statusCode >= 300) {
|
|
717
|
-
return de_CreateForecastCommandError(output, context);
|
|
718
|
-
}
|
|
719
|
-
const data = await parseBody(output.body, context);
|
|
720
|
-
let contents = {};
|
|
721
|
-
contents = (0, smithy_client_1._json)(data);
|
|
722
|
-
const response = {
|
|
723
|
-
$metadata: deserializeMetadata(output),
|
|
724
|
-
...contents,
|
|
725
|
-
};
|
|
726
|
-
return response;
|
|
727
|
-
};
|
|
728
|
-
exports.de_CreateForecastCommand = de_CreateForecastCommand;
|
|
729
|
-
const de_CreateForecastCommandError = async (output, context) => {
|
|
730
|
-
const parsedOutput = {
|
|
731
|
-
...output,
|
|
732
|
-
body: await parseErrorBody(output.body, context),
|
|
733
|
-
};
|
|
734
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
735
|
-
switch (errorCode) {
|
|
736
|
-
case "InvalidInputException":
|
|
737
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
738
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
739
|
-
case "LimitExceededException":
|
|
740
|
-
case "com.amazonaws.forecast#LimitExceededException":
|
|
741
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
742
|
-
case "ResourceAlreadyExistsException":
|
|
743
|
-
case "com.amazonaws.forecast#ResourceAlreadyExistsException":
|
|
744
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
745
|
-
case "ResourceInUseException":
|
|
746
|
-
case "com.amazonaws.forecast#ResourceInUseException":
|
|
747
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
748
|
-
case "ResourceNotFoundException":
|
|
749
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
750
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
751
|
-
default:
|
|
752
|
-
const parsedBody = parsedOutput.body;
|
|
753
|
-
return throwDefaultError({
|
|
754
|
-
output,
|
|
755
|
-
parsedBody,
|
|
756
|
-
errorCode,
|
|
757
|
-
});
|
|
758
|
-
}
|
|
759
|
-
};
|
|
760
|
-
const de_CreateForecastExportJobCommand = async (output, context) => {
|
|
761
|
-
if (output.statusCode >= 300) {
|
|
762
|
-
return de_CreateForecastExportJobCommandError(output, context);
|
|
763
|
-
}
|
|
764
|
-
const data = await parseBody(output.body, context);
|
|
765
|
-
let contents = {};
|
|
766
|
-
contents = (0, smithy_client_1._json)(data);
|
|
767
|
-
const response = {
|
|
768
|
-
$metadata: deserializeMetadata(output),
|
|
769
|
-
...contents,
|
|
770
|
-
};
|
|
771
|
-
return response;
|
|
772
|
-
};
|
|
773
|
-
exports.de_CreateForecastExportJobCommand = de_CreateForecastExportJobCommand;
|
|
774
|
-
const de_CreateForecastExportJobCommandError = async (output, context) => {
|
|
775
|
-
const parsedOutput = {
|
|
776
|
-
...output,
|
|
777
|
-
body: await parseErrorBody(output.body, context),
|
|
778
|
-
};
|
|
779
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
780
|
-
switch (errorCode) {
|
|
781
|
-
case "InvalidInputException":
|
|
782
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
783
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
784
|
-
case "LimitExceededException":
|
|
785
|
-
case "com.amazonaws.forecast#LimitExceededException":
|
|
786
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
787
|
-
case "ResourceAlreadyExistsException":
|
|
788
|
-
case "com.amazonaws.forecast#ResourceAlreadyExistsException":
|
|
789
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
790
|
-
case "ResourceInUseException":
|
|
791
|
-
case "com.amazonaws.forecast#ResourceInUseException":
|
|
792
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
793
|
-
case "ResourceNotFoundException":
|
|
794
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
795
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
796
|
-
default:
|
|
797
|
-
const parsedBody = parsedOutput.body;
|
|
798
|
-
return throwDefaultError({
|
|
799
|
-
output,
|
|
800
|
-
parsedBody,
|
|
801
|
-
errorCode,
|
|
802
|
-
});
|
|
803
|
-
}
|
|
804
|
-
};
|
|
805
|
-
const de_CreateMonitorCommand = async (output, context) => {
|
|
806
|
-
if (output.statusCode >= 300) {
|
|
807
|
-
return de_CreateMonitorCommandError(output, context);
|
|
808
|
-
}
|
|
809
|
-
const data = await parseBody(output.body, context);
|
|
810
|
-
let contents = {};
|
|
811
|
-
contents = (0, smithy_client_1._json)(data);
|
|
812
|
-
const response = {
|
|
813
|
-
$metadata: deserializeMetadata(output),
|
|
814
|
-
...contents,
|
|
815
|
-
};
|
|
816
|
-
return response;
|
|
817
|
-
};
|
|
818
|
-
exports.de_CreateMonitorCommand = de_CreateMonitorCommand;
|
|
819
|
-
const de_CreateMonitorCommandError = async (output, context) => {
|
|
820
|
-
const parsedOutput = {
|
|
821
|
-
...output,
|
|
822
|
-
body: await parseErrorBody(output.body, context),
|
|
823
|
-
};
|
|
824
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
825
|
-
switch (errorCode) {
|
|
826
|
-
case "InvalidInputException":
|
|
827
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
828
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
829
|
-
case "LimitExceededException":
|
|
830
|
-
case "com.amazonaws.forecast#LimitExceededException":
|
|
831
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
832
|
-
case "ResourceAlreadyExistsException":
|
|
833
|
-
case "com.amazonaws.forecast#ResourceAlreadyExistsException":
|
|
834
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
835
|
-
case "ResourceInUseException":
|
|
836
|
-
case "com.amazonaws.forecast#ResourceInUseException":
|
|
837
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
838
|
-
case "ResourceNotFoundException":
|
|
839
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
840
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
841
|
-
default:
|
|
842
|
-
const parsedBody = parsedOutput.body;
|
|
843
|
-
return throwDefaultError({
|
|
844
|
-
output,
|
|
845
|
-
parsedBody,
|
|
846
|
-
errorCode,
|
|
847
|
-
});
|
|
848
|
-
}
|
|
849
|
-
};
|
|
850
|
-
const de_CreatePredictorCommand = async (output, context) => {
|
|
851
|
-
if (output.statusCode >= 300) {
|
|
852
|
-
return de_CreatePredictorCommandError(output, context);
|
|
853
|
-
}
|
|
854
|
-
const data = await parseBody(output.body, context);
|
|
855
|
-
let contents = {};
|
|
856
|
-
contents = (0, smithy_client_1._json)(data);
|
|
857
|
-
const response = {
|
|
858
|
-
$metadata: deserializeMetadata(output),
|
|
859
|
-
...contents,
|
|
860
|
-
};
|
|
861
|
-
return response;
|
|
862
|
-
};
|
|
863
|
-
exports.de_CreatePredictorCommand = de_CreatePredictorCommand;
|
|
864
|
-
const de_CreatePredictorCommandError = async (output, context) => {
|
|
865
|
-
const parsedOutput = {
|
|
866
|
-
...output,
|
|
867
|
-
body: await parseErrorBody(output.body, context),
|
|
868
|
-
};
|
|
869
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
870
|
-
switch (errorCode) {
|
|
871
|
-
case "InvalidInputException":
|
|
872
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
873
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
874
|
-
case "LimitExceededException":
|
|
875
|
-
case "com.amazonaws.forecast#LimitExceededException":
|
|
876
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
877
|
-
case "ResourceAlreadyExistsException":
|
|
878
|
-
case "com.amazonaws.forecast#ResourceAlreadyExistsException":
|
|
879
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
880
|
-
case "ResourceInUseException":
|
|
881
|
-
case "com.amazonaws.forecast#ResourceInUseException":
|
|
882
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
883
|
-
case "ResourceNotFoundException":
|
|
884
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
885
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
886
|
-
default:
|
|
887
|
-
const parsedBody = parsedOutput.body;
|
|
888
|
-
return throwDefaultError({
|
|
889
|
-
output,
|
|
890
|
-
parsedBody,
|
|
891
|
-
errorCode,
|
|
892
|
-
});
|
|
893
|
-
}
|
|
894
|
-
};
|
|
895
|
-
const de_CreatePredictorBacktestExportJobCommand = async (output, context) => {
|
|
896
|
-
if (output.statusCode >= 300) {
|
|
897
|
-
return de_CreatePredictorBacktestExportJobCommandError(output, context);
|
|
898
|
-
}
|
|
899
|
-
const data = await parseBody(output.body, context);
|
|
900
|
-
let contents = {};
|
|
901
|
-
contents = (0, smithy_client_1._json)(data);
|
|
902
|
-
const response = {
|
|
903
|
-
$metadata: deserializeMetadata(output),
|
|
904
|
-
...contents,
|
|
905
|
-
};
|
|
906
|
-
return response;
|
|
907
|
-
};
|
|
908
|
-
exports.de_CreatePredictorBacktestExportJobCommand = de_CreatePredictorBacktestExportJobCommand;
|
|
909
|
-
const de_CreatePredictorBacktestExportJobCommandError = async (output, context) => {
|
|
910
|
-
const parsedOutput = {
|
|
911
|
-
...output,
|
|
912
|
-
body: await parseErrorBody(output.body, context),
|
|
913
|
-
};
|
|
914
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
915
|
-
switch (errorCode) {
|
|
916
|
-
case "InvalidInputException":
|
|
917
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
918
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
919
|
-
case "LimitExceededException":
|
|
920
|
-
case "com.amazonaws.forecast#LimitExceededException":
|
|
921
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
922
|
-
case "ResourceAlreadyExistsException":
|
|
923
|
-
case "com.amazonaws.forecast#ResourceAlreadyExistsException":
|
|
924
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
925
|
-
case "ResourceInUseException":
|
|
926
|
-
case "com.amazonaws.forecast#ResourceInUseException":
|
|
927
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
928
|
-
case "ResourceNotFoundException":
|
|
929
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
930
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
931
|
-
default:
|
|
932
|
-
const parsedBody = parsedOutput.body;
|
|
933
|
-
return throwDefaultError({
|
|
934
|
-
output,
|
|
935
|
-
parsedBody,
|
|
936
|
-
errorCode,
|
|
937
|
-
});
|
|
938
|
-
}
|
|
939
|
-
};
|
|
940
|
-
const de_CreateWhatIfAnalysisCommand = async (output, context) => {
|
|
941
|
-
if (output.statusCode >= 300) {
|
|
942
|
-
return de_CreateWhatIfAnalysisCommandError(output, context);
|
|
943
|
-
}
|
|
944
|
-
const data = await parseBody(output.body, context);
|
|
945
|
-
let contents = {};
|
|
946
|
-
contents = (0, smithy_client_1._json)(data);
|
|
947
|
-
const response = {
|
|
948
|
-
$metadata: deserializeMetadata(output),
|
|
949
|
-
...contents,
|
|
950
|
-
};
|
|
951
|
-
return response;
|
|
952
|
-
};
|
|
953
|
-
exports.de_CreateWhatIfAnalysisCommand = de_CreateWhatIfAnalysisCommand;
|
|
954
|
-
const de_CreateWhatIfAnalysisCommandError = async (output, context) => {
|
|
955
|
-
const parsedOutput = {
|
|
956
|
-
...output,
|
|
957
|
-
body: await parseErrorBody(output.body, context),
|
|
958
|
-
};
|
|
959
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
960
|
-
switch (errorCode) {
|
|
961
|
-
case "InvalidInputException":
|
|
962
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
963
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
964
|
-
case "LimitExceededException":
|
|
965
|
-
case "com.amazonaws.forecast#LimitExceededException":
|
|
966
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
967
|
-
case "ResourceAlreadyExistsException":
|
|
968
|
-
case "com.amazonaws.forecast#ResourceAlreadyExistsException":
|
|
969
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
970
|
-
case "ResourceInUseException":
|
|
971
|
-
case "com.amazonaws.forecast#ResourceInUseException":
|
|
972
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
973
|
-
case "ResourceNotFoundException":
|
|
974
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
975
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
976
|
-
default:
|
|
977
|
-
const parsedBody = parsedOutput.body;
|
|
978
|
-
return throwDefaultError({
|
|
979
|
-
output,
|
|
980
|
-
parsedBody,
|
|
981
|
-
errorCode,
|
|
982
|
-
});
|
|
983
|
-
}
|
|
984
|
-
};
|
|
985
|
-
const de_CreateWhatIfForecastCommand = async (output, context) => {
|
|
986
|
-
if (output.statusCode >= 300) {
|
|
987
|
-
return de_CreateWhatIfForecastCommandError(output, context);
|
|
988
|
-
}
|
|
989
|
-
const data = await parseBody(output.body, context);
|
|
990
|
-
let contents = {};
|
|
991
|
-
contents = (0, smithy_client_1._json)(data);
|
|
992
|
-
const response = {
|
|
993
|
-
$metadata: deserializeMetadata(output),
|
|
994
|
-
...contents,
|
|
995
|
-
};
|
|
996
|
-
return response;
|
|
997
|
-
};
|
|
998
|
-
exports.de_CreateWhatIfForecastCommand = de_CreateWhatIfForecastCommand;
|
|
999
|
-
const de_CreateWhatIfForecastCommandError = async (output, context) => {
|
|
1000
|
-
const parsedOutput = {
|
|
1001
|
-
...output,
|
|
1002
|
-
body: await parseErrorBody(output.body, context),
|
|
1003
|
-
};
|
|
1004
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1005
|
-
switch (errorCode) {
|
|
1006
|
-
case "InvalidInputException":
|
|
1007
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
1008
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1009
|
-
case "LimitExceededException":
|
|
1010
|
-
case "com.amazonaws.forecast#LimitExceededException":
|
|
1011
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1012
|
-
case "ResourceAlreadyExistsException":
|
|
1013
|
-
case "com.amazonaws.forecast#ResourceAlreadyExistsException":
|
|
1014
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1015
|
-
case "ResourceInUseException":
|
|
1016
|
-
case "com.amazonaws.forecast#ResourceInUseException":
|
|
1017
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1018
|
-
case "ResourceNotFoundException":
|
|
1019
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1020
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1021
|
-
default:
|
|
1022
|
-
const parsedBody = parsedOutput.body;
|
|
1023
|
-
return throwDefaultError({
|
|
1024
|
-
output,
|
|
1025
|
-
parsedBody,
|
|
1026
|
-
errorCode,
|
|
1027
|
-
});
|
|
1028
|
-
}
|
|
1029
|
-
};
|
|
1030
|
-
const de_CreateWhatIfForecastExportCommand = async (output, context) => {
|
|
1031
|
-
if (output.statusCode >= 300) {
|
|
1032
|
-
return de_CreateWhatIfForecastExportCommandError(output, context);
|
|
1033
|
-
}
|
|
1034
|
-
const data = await parseBody(output.body, context);
|
|
1035
|
-
let contents = {};
|
|
1036
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1037
|
-
const response = {
|
|
1038
|
-
$metadata: deserializeMetadata(output),
|
|
1039
|
-
...contents,
|
|
1040
|
-
};
|
|
1041
|
-
return response;
|
|
1042
|
-
};
|
|
1043
|
-
exports.de_CreateWhatIfForecastExportCommand = de_CreateWhatIfForecastExportCommand;
|
|
1044
|
-
const de_CreateWhatIfForecastExportCommandError = async (output, context) => {
|
|
1045
|
-
const parsedOutput = {
|
|
1046
|
-
...output,
|
|
1047
|
-
body: await parseErrorBody(output.body, context),
|
|
1048
|
-
};
|
|
1049
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1050
|
-
switch (errorCode) {
|
|
1051
|
-
case "InvalidInputException":
|
|
1052
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
1053
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1054
|
-
case "LimitExceededException":
|
|
1055
|
-
case "com.amazonaws.forecast#LimitExceededException":
|
|
1056
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1057
|
-
case "ResourceAlreadyExistsException":
|
|
1058
|
-
case "com.amazonaws.forecast#ResourceAlreadyExistsException":
|
|
1059
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1060
|
-
case "ResourceInUseException":
|
|
1061
|
-
case "com.amazonaws.forecast#ResourceInUseException":
|
|
1062
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1063
|
-
case "ResourceNotFoundException":
|
|
1064
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1065
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1066
|
-
default:
|
|
1067
|
-
const parsedBody = parsedOutput.body;
|
|
1068
|
-
return throwDefaultError({
|
|
1069
|
-
output,
|
|
1070
|
-
parsedBody,
|
|
1071
|
-
errorCode,
|
|
1072
|
-
});
|
|
1073
|
-
}
|
|
1074
|
-
};
|
|
1075
|
-
const de_DeleteDatasetCommand = async (output, context) => {
|
|
1076
|
-
if (output.statusCode >= 300) {
|
|
1077
|
-
return de_DeleteDatasetCommandError(output, context);
|
|
1078
|
-
}
|
|
1079
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1080
|
-
const response = {
|
|
1081
|
-
$metadata: deserializeMetadata(output),
|
|
1082
|
-
};
|
|
1083
|
-
return response;
|
|
1084
|
-
};
|
|
1085
|
-
exports.de_DeleteDatasetCommand = de_DeleteDatasetCommand;
|
|
1086
|
-
const de_DeleteDatasetCommandError = async (output, context) => {
|
|
1087
|
-
const parsedOutput = {
|
|
1088
|
-
...output,
|
|
1089
|
-
body: await parseErrorBody(output.body, context),
|
|
1090
|
-
};
|
|
1091
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1092
|
-
switch (errorCode) {
|
|
1093
|
-
case "InvalidInputException":
|
|
1094
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
1095
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1096
|
-
case "ResourceInUseException":
|
|
1097
|
-
case "com.amazonaws.forecast#ResourceInUseException":
|
|
1098
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1099
|
-
case "ResourceNotFoundException":
|
|
1100
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1101
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1102
|
-
default:
|
|
1103
|
-
const parsedBody = parsedOutput.body;
|
|
1104
|
-
return throwDefaultError({
|
|
1105
|
-
output,
|
|
1106
|
-
parsedBody,
|
|
1107
|
-
errorCode,
|
|
1108
|
-
});
|
|
1109
|
-
}
|
|
1110
|
-
};
|
|
1111
|
-
const de_DeleteDatasetGroupCommand = async (output, context) => {
|
|
1112
|
-
if (output.statusCode >= 300) {
|
|
1113
|
-
return de_DeleteDatasetGroupCommandError(output, context);
|
|
1114
|
-
}
|
|
1115
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1116
|
-
const response = {
|
|
1117
|
-
$metadata: deserializeMetadata(output),
|
|
1118
|
-
};
|
|
1119
|
-
return response;
|
|
1120
|
-
};
|
|
1121
|
-
exports.de_DeleteDatasetGroupCommand = de_DeleteDatasetGroupCommand;
|
|
1122
|
-
const de_DeleteDatasetGroupCommandError = async (output, context) => {
|
|
1123
|
-
const parsedOutput = {
|
|
1124
|
-
...output,
|
|
1125
|
-
body: await parseErrorBody(output.body, context),
|
|
1126
|
-
};
|
|
1127
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1128
|
-
switch (errorCode) {
|
|
1129
|
-
case "InvalidInputException":
|
|
1130
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
1131
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1132
|
-
case "ResourceInUseException":
|
|
1133
|
-
case "com.amazonaws.forecast#ResourceInUseException":
|
|
1134
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1135
|
-
case "ResourceNotFoundException":
|
|
1136
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1137
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1138
|
-
default:
|
|
1139
|
-
const parsedBody = parsedOutput.body;
|
|
1140
|
-
return throwDefaultError({
|
|
1141
|
-
output,
|
|
1142
|
-
parsedBody,
|
|
1143
|
-
errorCode,
|
|
1144
|
-
});
|
|
1145
|
-
}
|
|
1146
|
-
};
|
|
1147
|
-
const de_DeleteDatasetImportJobCommand = async (output, context) => {
|
|
1148
|
-
if (output.statusCode >= 300) {
|
|
1149
|
-
return de_DeleteDatasetImportJobCommandError(output, context);
|
|
1150
|
-
}
|
|
1151
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1152
|
-
const response = {
|
|
1153
|
-
$metadata: deserializeMetadata(output),
|
|
1154
|
-
};
|
|
1155
|
-
return response;
|
|
1156
|
-
};
|
|
1157
|
-
exports.de_DeleteDatasetImportJobCommand = de_DeleteDatasetImportJobCommand;
|
|
1158
|
-
const de_DeleteDatasetImportJobCommandError = async (output, context) => {
|
|
1159
|
-
const parsedOutput = {
|
|
1160
|
-
...output,
|
|
1161
|
-
body: await parseErrorBody(output.body, context),
|
|
1162
|
-
};
|
|
1163
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1164
|
-
switch (errorCode) {
|
|
1165
|
-
case "InvalidInputException":
|
|
1166
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
1167
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1168
|
-
case "ResourceInUseException":
|
|
1169
|
-
case "com.amazonaws.forecast#ResourceInUseException":
|
|
1170
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1171
|
-
case "ResourceNotFoundException":
|
|
1172
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1173
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1174
|
-
default:
|
|
1175
|
-
const parsedBody = parsedOutput.body;
|
|
1176
|
-
return throwDefaultError({
|
|
1177
|
-
output,
|
|
1178
|
-
parsedBody,
|
|
1179
|
-
errorCode,
|
|
1180
|
-
});
|
|
1181
|
-
}
|
|
1182
|
-
};
|
|
1183
|
-
const de_DeleteExplainabilityCommand = async (output, context) => {
|
|
1184
|
-
if (output.statusCode >= 300) {
|
|
1185
|
-
return de_DeleteExplainabilityCommandError(output, context);
|
|
1186
|
-
}
|
|
1187
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1188
|
-
const response = {
|
|
1189
|
-
$metadata: deserializeMetadata(output),
|
|
1190
|
-
};
|
|
1191
|
-
return response;
|
|
1192
|
-
};
|
|
1193
|
-
exports.de_DeleteExplainabilityCommand = de_DeleteExplainabilityCommand;
|
|
1194
|
-
const de_DeleteExplainabilityCommandError = async (output, context) => {
|
|
1195
|
-
const parsedOutput = {
|
|
1196
|
-
...output,
|
|
1197
|
-
body: await parseErrorBody(output.body, context),
|
|
1198
|
-
};
|
|
1199
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1200
|
-
switch (errorCode) {
|
|
1201
|
-
case "InvalidInputException":
|
|
1202
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
1203
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1204
|
-
case "ResourceInUseException":
|
|
1205
|
-
case "com.amazonaws.forecast#ResourceInUseException":
|
|
1206
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1207
|
-
case "ResourceNotFoundException":
|
|
1208
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1209
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1210
|
-
default:
|
|
1211
|
-
const parsedBody = parsedOutput.body;
|
|
1212
|
-
return throwDefaultError({
|
|
1213
|
-
output,
|
|
1214
|
-
parsedBody,
|
|
1215
|
-
errorCode,
|
|
1216
|
-
});
|
|
1217
|
-
}
|
|
1218
|
-
};
|
|
1219
|
-
const de_DeleteExplainabilityExportCommand = async (output, context) => {
|
|
1220
|
-
if (output.statusCode >= 300) {
|
|
1221
|
-
return de_DeleteExplainabilityExportCommandError(output, context);
|
|
1222
|
-
}
|
|
1223
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1224
|
-
const response = {
|
|
1225
|
-
$metadata: deserializeMetadata(output),
|
|
1226
|
-
};
|
|
1227
|
-
return response;
|
|
1228
|
-
};
|
|
1229
|
-
exports.de_DeleteExplainabilityExportCommand = de_DeleteExplainabilityExportCommand;
|
|
1230
|
-
const de_DeleteExplainabilityExportCommandError = async (output, context) => {
|
|
1231
|
-
const parsedOutput = {
|
|
1232
|
-
...output,
|
|
1233
|
-
body: await parseErrorBody(output.body, context),
|
|
1234
|
-
};
|
|
1235
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1236
|
-
switch (errorCode) {
|
|
1237
|
-
case "InvalidInputException":
|
|
1238
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
1239
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1240
|
-
case "ResourceInUseException":
|
|
1241
|
-
case "com.amazonaws.forecast#ResourceInUseException":
|
|
1242
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1243
|
-
case "ResourceNotFoundException":
|
|
1244
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1245
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1246
|
-
default:
|
|
1247
|
-
const parsedBody = parsedOutput.body;
|
|
1248
|
-
return throwDefaultError({
|
|
1249
|
-
output,
|
|
1250
|
-
parsedBody,
|
|
1251
|
-
errorCode,
|
|
1252
|
-
});
|
|
1253
|
-
}
|
|
1254
|
-
};
|
|
1255
|
-
const de_DeleteForecastCommand = async (output, context) => {
|
|
1256
|
-
if (output.statusCode >= 300) {
|
|
1257
|
-
return de_DeleteForecastCommandError(output, context);
|
|
1258
|
-
}
|
|
1259
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1260
|
-
const response = {
|
|
1261
|
-
$metadata: deserializeMetadata(output),
|
|
1262
|
-
};
|
|
1263
|
-
return response;
|
|
1264
|
-
};
|
|
1265
|
-
exports.de_DeleteForecastCommand = de_DeleteForecastCommand;
|
|
1266
|
-
const de_DeleteForecastCommandError = async (output, context) => {
|
|
1267
|
-
const parsedOutput = {
|
|
1268
|
-
...output,
|
|
1269
|
-
body: await parseErrorBody(output.body, context),
|
|
1270
|
-
};
|
|
1271
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1272
|
-
switch (errorCode) {
|
|
1273
|
-
case "InvalidInputException":
|
|
1274
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
1275
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1276
|
-
case "ResourceInUseException":
|
|
1277
|
-
case "com.amazonaws.forecast#ResourceInUseException":
|
|
1278
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1279
|
-
case "ResourceNotFoundException":
|
|
1280
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1281
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1282
|
-
default:
|
|
1283
|
-
const parsedBody = parsedOutput.body;
|
|
1284
|
-
return throwDefaultError({
|
|
1285
|
-
output,
|
|
1286
|
-
parsedBody,
|
|
1287
|
-
errorCode,
|
|
1288
|
-
});
|
|
1289
|
-
}
|
|
1290
|
-
};
|
|
1291
|
-
const de_DeleteForecastExportJobCommand = async (output, context) => {
|
|
1292
|
-
if (output.statusCode >= 300) {
|
|
1293
|
-
return de_DeleteForecastExportJobCommandError(output, context);
|
|
1294
|
-
}
|
|
1295
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1296
|
-
const response = {
|
|
1297
|
-
$metadata: deserializeMetadata(output),
|
|
1298
|
-
};
|
|
1299
|
-
return response;
|
|
1300
|
-
};
|
|
1301
|
-
exports.de_DeleteForecastExportJobCommand = de_DeleteForecastExportJobCommand;
|
|
1302
|
-
const de_DeleteForecastExportJobCommandError = async (output, context) => {
|
|
1303
|
-
const parsedOutput = {
|
|
1304
|
-
...output,
|
|
1305
|
-
body: await parseErrorBody(output.body, context),
|
|
1306
|
-
};
|
|
1307
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1308
|
-
switch (errorCode) {
|
|
1309
|
-
case "InvalidInputException":
|
|
1310
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
1311
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1312
|
-
case "ResourceInUseException":
|
|
1313
|
-
case "com.amazonaws.forecast#ResourceInUseException":
|
|
1314
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1315
|
-
case "ResourceNotFoundException":
|
|
1316
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1317
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1318
|
-
default:
|
|
1319
|
-
const parsedBody = parsedOutput.body;
|
|
1320
|
-
return throwDefaultError({
|
|
1321
|
-
output,
|
|
1322
|
-
parsedBody,
|
|
1323
|
-
errorCode,
|
|
1324
|
-
});
|
|
1325
|
-
}
|
|
1326
|
-
};
|
|
1327
|
-
const de_DeleteMonitorCommand = async (output, context) => {
|
|
1328
|
-
if (output.statusCode >= 300) {
|
|
1329
|
-
return de_DeleteMonitorCommandError(output, context);
|
|
1330
|
-
}
|
|
1331
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1332
|
-
const response = {
|
|
1333
|
-
$metadata: deserializeMetadata(output),
|
|
1334
|
-
};
|
|
1335
|
-
return response;
|
|
1336
|
-
};
|
|
1337
|
-
exports.de_DeleteMonitorCommand = de_DeleteMonitorCommand;
|
|
1338
|
-
const de_DeleteMonitorCommandError = async (output, context) => {
|
|
1339
|
-
const parsedOutput = {
|
|
1340
|
-
...output,
|
|
1341
|
-
body: await parseErrorBody(output.body, context),
|
|
1342
|
-
};
|
|
1343
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1344
|
-
switch (errorCode) {
|
|
1345
|
-
case "InvalidInputException":
|
|
1346
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
1347
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1348
|
-
case "ResourceInUseException":
|
|
1349
|
-
case "com.amazonaws.forecast#ResourceInUseException":
|
|
1350
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1351
|
-
case "ResourceNotFoundException":
|
|
1352
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1353
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1354
|
-
default:
|
|
1355
|
-
const parsedBody = parsedOutput.body;
|
|
1356
|
-
return throwDefaultError({
|
|
1357
|
-
output,
|
|
1358
|
-
parsedBody,
|
|
1359
|
-
errorCode,
|
|
1360
|
-
});
|
|
1361
|
-
}
|
|
1362
|
-
};
|
|
1363
|
-
const de_DeletePredictorCommand = async (output, context) => {
|
|
1364
|
-
if (output.statusCode >= 300) {
|
|
1365
|
-
return de_DeletePredictorCommandError(output, context);
|
|
1366
|
-
}
|
|
1367
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1368
|
-
const response = {
|
|
1369
|
-
$metadata: deserializeMetadata(output),
|
|
1370
|
-
};
|
|
1371
|
-
return response;
|
|
1372
|
-
};
|
|
1373
|
-
exports.de_DeletePredictorCommand = de_DeletePredictorCommand;
|
|
1374
|
-
const de_DeletePredictorCommandError = async (output, context) => {
|
|
1375
|
-
const parsedOutput = {
|
|
1376
|
-
...output,
|
|
1377
|
-
body: await parseErrorBody(output.body, context),
|
|
1378
|
-
};
|
|
1379
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1380
|
-
switch (errorCode) {
|
|
1381
|
-
case "InvalidInputException":
|
|
1382
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
1383
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1384
|
-
case "ResourceInUseException":
|
|
1385
|
-
case "com.amazonaws.forecast#ResourceInUseException":
|
|
1386
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1387
|
-
case "ResourceNotFoundException":
|
|
1388
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1389
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1390
|
-
default:
|
|
1391
|
-
const parsedBody = parsedOutput.body;
|
|
1392
|
-
return throwDefaultError({
|
|
1393
|
-
output,
|
|
1394
|
-
parsedBody,
|
|
1395
|
-
errorCode,
|
|
1396
|
-
});
|
|
1397
|
-
}
|
|
1398
|
-
};
|
|
1399
|
-
const de_DeletePredictorBacktestExportJobCommand = async (output, context) => {
|
|
1400
|
-
if (output.statusCode >= 300) {
|
|
1401
|
-
return de_DeletePredictorBacktestExportJobCommandError(output, context);
|
|
1402
|
-
}
|
|
1403
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1404
|
-
const response = {
|
|
1405
|
-
$metadata: deserializeMetadata(output),
|
|
1406
|
-
};
|
|
1407
|
-
return response;
|
|
1408
|
-
};
|
|
1409
|
-
exports.de_DeletePredictorBacktestExportJobCommand = de_DeletePredictorBacktestExportJobCommand;
|
|
1410
|
-
const de_DeletePredictorBacktestExportJobCommandError = async (output, context) => {
|
|
1411
|
-
const parsedOutput = {
|
|
1412
|
-
...output,
|
|
1413
|
-
body: await parseErrorBody(output.body, context),
|
|
1414
|
-
};
|
|
1415
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1416
|
-
switch (errorCode) {
|
|
1417
|
-
case "InvalidInputException":
|
|
1418
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
1419
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1420
|
-
case "ResourceInUseException":
|
|
1421
|
-
case "com.amazonaws.forecast#ResourceInUseException":
|
|
1422
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1423
|
-
case "ResourceNotFoundException":
|
|
1424
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1425
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1426
|
-
default:
|
|
1427
|
-
const parsedBody = parsedOutput.body;
|
|
1428
|
-
return throwDefaultError({
|
|
1429
|
-
output,
|
|
1430
|
-
parsedBody,
|
|
1431
|
-
errorCode,
|
|
1432
|
-
});
|
|
1433
|
-
}
|
|
1434
|
-
};
|
|
1435
|
-
const de_DeleteResourceTreeCommand = async (output, context) => {
|
|
1436
|
-
if (output.statusCode >= 300) {
|
|
1437
|
-
return de_DeleteResourceTreeCommandError(output, context);
|
|
1438
|
-
}
|
|
1439
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1440
|
-
const response = {
|
|
1441
|
-
$metadata: deserializeMetadata(output),
|
|
1442
|
-
};
|
|
1443
|
-
return response;
|
|
1444
|
-
};
|
|
1445
|
-
exports.de_DeleteResourceTreeCommand = de_DeleteResourceTreeCommand;
|
|
1446
|
-
const de_DeleteResourceTreeCommandError = async (output, context) => {
|
|
1447
|
-
const parsedOutput = {
|
|
1448
|
-
...output,
|
|
1449
|
-
body: await parseErrorBody(output.body, context),
|
|
1450
|
-
};
|
|
1451
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1452
|
-
switch (errorCode) {
|
|
1453
|
-
case "InvalidInputException":
|
|
1454
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
1455
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1456
|
-
case "ResourceInUseException":
|
|
1457
|
-
case "com.amazonaws.forecast#ResourceInUseException":
|
|
1458
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1459
|
-
case "ResourceNotFoundException":
|
|
1460
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1461
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1462
|
-
default:
|
|
1463
|
-
const parsedBody = parsedOutput.body;
|
|
1464
|
-
return throwDefaultError({
|
|
1465
|
-
output,
|
|
1466
|
-
parsedBody,
|
|
1467
|
-
errorCode,
|
|
1468
|
-
});
|
|
1469
|
-
}
|
|
1470
|
-
};
|
|
1471
|
-
const de_DeleteWhatIfAnalysisCommand = async (output, context) => {
|
|
1472
|
-
if (output.statusCode >= 300) {
|
|
1473
|
-
return de_DeleteWhatIfAnalysisCommandError(output, context);
|
|
1474
|
-
}
|
|
1475
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1476
|
-
const response = {
|
|
1477
|
-
$metadata: deserializeMetadata(output),
|
|
1478
|
-
};
|
|
1479
|
-
return response;
|
|
1480
|
-
};
|
|
1481
|
-
exports.de_DeleteWhatIfAnalysisCommand = de_DeleteWhatIfAnalysisCommand;
|
|
1482
|
-
const de_DeleteWhatIfAnalysisCommandError = async (output, context) => {
|
|
1483
|
-
const parsedOutput = {
|
|
1484
|
-
...output,
|
|
1485
|
-
body: await parseErrorBody(output.body, context),
|
|
1486
|
-
};
|
|
1487
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1488
|
-
switch (errorCode) {
|
|
1489
|
-
case "InvalidInputException":
|
|
1490
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
1491
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1492
|
-
case "ResourceInUseException":
|
|
1493
|
-
case "com.amazonaws.forecast#ResourceInUseException":
|
|
1494
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1495
|
-
case "ResourceNotFoundException":
|
|
1496
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1497
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1498
|
-
default:
|
|
1499
|
-
const parsedBody = parsedOutput.body;
|
|
1500
|
-
return throwDefaultError({
|
|
1501
|
-
output,
|
|
1502
|
-
parsedBody,
|
|
1503
|
-
errorCode,
|
|
1504
|
-
});
|
|
1505
|
-
}
|
|
1506
|
-
};
|
|
1507
|
-
const de_DeleteWhatIfForecastCommand = async (output, context) => {
|
|
1508
|
-
if (output.statusCode >= 300) {
|
|
1509
|
-
return de_DeleteWhatIfForecastCommandError(output, context);
|
|
1510
|
-
}
|
|
1511
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1512
|
-
const response = {
|
|
1513
|
-
$metadata: deserializeMetadata(output),
|
|
1514
|
-
};
|
|
1515
|
-
return response;
|
|
1516
|
-
};
|
|
1517
|
-
exports.de_DeleteWhatIfForecastCommand = de_DeleteWhatIfForecastCommand;
|
|
1518
|
-
const de_DeleteWhatIfForecastCommandError = async (output, context) => {
|
|
1519
|
-
const parsedOutput = {
|
|
1520
|
-
...output,
|
|
1521
|
-
body: await parseErrorBody(output.body, context),
|
|
1522
|
-
};
|
|
1523
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1524
|
-
switch (errorCode) {
|
|
1525
|
-
case "InvalidInputException":
|
|
1526
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
1527
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1528
|
-
case "ResourceInUseException":
|
|
1529
|
-
case "com.amazonaws.forecast#ResourceInUseException":
|
|
1530
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1531
|
-
case "ResourceNotFoundException":
|
|
1532
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1533
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1534
|
-
default:
|
|
1535
|
-
const parsedBody = parsedOutput.body;
|
|
1536
|
-
return throwDefaultError({
|
|
1537
|
-
output,
|
|
1538
|
-
parsedBody,
|
|
1539
|
-
errorCode,
|
|
1540
|
-
});
|
|
1541
|
-
}
|
|
1542
|
-
};
|
|
1543
|
-
const de_DeleteWhatIfForecastExportCommand = async (output, context) => {
|
|
1544
|
-
if (output.statusCode >= 300) {
|
|
1545
|
-
return de_DeleteWhatIfForecastExportCommandError(output, context);
|
|
1546
|
-
}
|
|
1547
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1548
|
-
const response = {
|
|
1549
|
-
$metadata: deserializeMetadata(output),
|
|
1550
|
-
};
|
|
1551
|
-
return response;
|
|
1552
|
-
};
|
|
1553
|
-
exports.de_DeleteWhatIfForecastExportCommand = de_DeleteWhatIfForecastExportCommand;
|
|
1554
|
-
const de_DeleteWhatIfForecastExportCommandError = async (output, context) => {
|
|
1555
|
-
const parsedOutput = {
|
|
1556
|
-
...output,
|
|
1557
|
-
body: await parseErrorBody(output.body, context),
|
|
1558
|
-
};
|
|
1559
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1560
|
-
switch (errorCode) {
|
|
1561
|
-
case "InvalidInputException":
|
|
1562
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
1563
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1564
|
-
case "ResourceInUseException":
|
|
1565
|
-
case "com.amazonaws.forecast#ResourceInUseException":
|
|
1566
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1567
|
-
case "ResourceNotFoundException":
|
|
1568
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1569
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1570
|
-
default:
|
|
1571
|
-
const parsedBody = parsedOutput.body;
|
|
1572
|
-
return throwDefaultError({
|
|
1573
|
-
output,
|
|
1574
|
-
parsedBody,
|
|
1575
|
-
errorCode,
|
|
1576
|
-
});
|
|
1577
|
-
}
|
|
1578
|
-
};
|
|
1579
|
-
const de_DescribeAutoPredictorCommand = async (output, context) => {
|
|
1580
|
-
if (output.statusCode >= 300) {
|
|
1581
|
-
return de_DescribeAutoPredictorCommandError(output, context);
|
|
1582
|
-
}
|
|
1583
|
-
const data = await parseBody(output.body, context);
|
|
1584
|
-
let contents = {};
|
|
1585
|
-
contents = de_DescribeAutoPredictorResponse(data, context);
|
|
1586
|
-
const response = {
|
|
1587
|
-
$metadata: deserializeMetadata(output),
|
|
1588
|
-
...contents,
|
|
1589
|
-
};
|
|
1590
|
-
return response;
|
|
1591
|
-
};
|
|
1592
|
-
exports.de_DescribeAutoPredictorCommand = de_DescribeAutoPredictorCommand;
|
|
1593
|
-
const de_DescribeAutoPredictorCommandError = async (output, context) => {
|
|
1594
|
-
const parsedOutput = {
|
|
1595
|
-
...output,
|
|
1596
|
-
body: await parseErrorBody(output.body, context),
|
|
1597
|
-
};
|
|
1598
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1599
|
-
switch (errorCode) {
|
|
1600
|
-
case "InvalidInputException":
|
|
1601
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
1602
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1603
|
-
case "ResourceNotFoundException":
|
|
1604
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1605
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1606
|
-
default:
|
|
1607
|
-
const parsedBody = parsedOutput.body;
|
|
1608
|
-
return throwDefaultError({
|
|
1609
|
-
output,
|
|
1610
|
-
parsedBody,
|
|
1611
|
-
errorCode,
|
|
1612
|
-
});
|
|
1613
|
-
}
|
|
1614
|
-
};
|
|
1615
|
-
const de_DescribeDatasetCommand = async (output, context) => {
|
|
1616
|
-
if (output.statusCode >= 300) {
|
|
1617
|
-
return de_DescribeDatasetCommandError(output, context);
|
|
1618
|
-
}
|
|
1619
|
-
const data = await parseBody(output.body, context);
|
|
1620
|
-
let contents = {};
|
|
1621
|
-
contents = de_DescribeDatasetResponse(data, context);
|
|
1622
|
-
const response = {
|
|
1623
|
-
$metadata: deserializeMetadata(output),
|
|
1624
|
-
...contents,
|
|
1625
|
-
};
|
|
1626
|
-
return response;
|
|
1627
|
-
};
|
|
1628
|
-
exports.de_DescribeDatasetCommand = de_DescribeDatasetCommand;
|
|
1629
|
-
const de_DescribeDatasetCommandError = async (output, context) => {
|
|
1630
|
-
const parsedOutput = {
|
|
1631
|
-
...output,
|
|
1632
|
-
body: await parseErrorBody(output.body, context),
|
|
1633
|
-
};
|
|
1634
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1635
|
-
switch (errorCode) {
|
|
1636
|
-
case "InvalidInputException":
|
|
1637
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
1638
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1639
|
-
case "ResourceNotFoundException":
|
|
1640
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1641
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1642
|
-
default:
|
|
1643
|
-
const parsedBody = parsedOutput.body;
|
|
1644
|
-
return throwDefaultError({
|
|
1645
|
-
output,
|
|
1646
|
-
parsedBody,
|
|
1647
|
-
errorCode,
|
|
1648
|
-
});
|
|
1649
|
-
}
|
|
1650
|
-
};
|
|
1651
|
-
const de_DescribeDatasetGroupCommand = async (output, context) => {
|
|
1652
|
-
if (output.statusCode >= 300) {
|
|
1653
|
-
return de_DescribeDatasetGroupCommandError(output, context);
|
|
1654
|
-
}
|
|
1655
|
-
const data = await parseBody(output.body, context);
|
|
1656
|
-
let contents = {};
|
|
1657
|
-
contents = de_DescribeDatasetGroupResponse(data, context);
|
|
1658
|
-
const response = {
|
|
1659
|
-
$metadata: deserializeMetadata(output),
|
|
1660
|
-
...contents,
|
|
1661
|
-
};
|
|
1662
|
-
return response;
|
|
1663
|
-
};
|
|
1664
|
-
exports.de_DescribeDatasetGroupCommand = de_DescribeDatasetGroupCommand;
|
|
1665
|
-
const de_DescribeDatasetGroupCommandError = async (output, context) => {
|
|
1666
|
-
const parsedOutput = {
|
|
1667
|
-
...output,
|
|
1668
|
-
body: await parseErrorBody(output.body, context),
|
|
1669
|
-
};
|
|
1670
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1671
|
-
switch (errorCode) {
|
|
1672
|
-
case "InvalidInputException":
|
|
1673
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
1674
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1675
|
-
case "ResourceNotFoundException":
|
|
1676
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1677
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1678
|
-
default:
|
|
1679
|
-
const parsedBody = parsedOutput.body;
|
|
1680
|
-
return throwDefaultError({
|
|
1681
|
-
output,
|
|
1682
|
-
parsedBody,
|
|
1683
|
-
errorCode,
|
|
1684
|
-
});
|
|
1685
|
-
}
|
|
1686
|
-
};
|
|
1687
|
-
const de_DescribeDatasetImportJobCommand = async (output, context) => {
|
|
1688
|
-
if (output.statusCode >= 300) {
|
|
1689
|
-
return de_DescribeDatasetImportJobCommandError(output, context);
|
|
1690
|
-
}
|
|
1691
|
-
const data = await parseBody(output.body, context);
|
|
1692
|
-
let contents = {};
|
|
1693
|
-
contents = de_DescribeDatasetImportJobResponse(data, context);
|
|
1694
|
-
const response = {
|
|
1695
|
-
$metadata: deserializeMetadata(output),
|
|
1696
|
-
...contents,
|
|
1697
|
-
};
|
|
1698
|
-
return response;
|
|
1699
|
-
};
|
|
1700
|
-
exports.de_DescribeDatasetImportJobCommand = de_DescribeDatasetImportJobCommand;
|
|
1701
|
-
const de_DescribeDatasetImportJobCommandError = async (output, context) => {
|
|
1702
|
-
const parsedOutput = {
|
|
1703
|
-
...output,
|
|
1704
|
-
body: await parseErrorBody(output.body, context),
|
|
1705
|
-
};
|
|
1706
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1707
|
-
switch (errorCode) {
|
|
1708
|
-
case "InvalidInputException":
|
|
1709
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
1710
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1711
|
-
case "ResourceNotFoundException":
|
|
1712
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1713
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1714
|
-
default:
|
|
1715
|
-
const parsedBody = parsedOutput.body;
|
|
1716
|
-
return throwDefaultError({
|
|
1717
|
-
output,
|
|
1718
|
-
parsedBody,
|
|
1719
|
-
errorCode,
|
|
1720
|
-
});
|
|
1721
|
-
}
|
|
1722
|
-
};
|
|
1723
|
-
const de_DescribeExplainabilityCommand = async (output, context) => {
|
|
1724
|
-
if (output.statusCode >= 300) {
|
|
1725
|
-
return de_DescribeExplainabilityCommandError(output, context);
|
|
1726
|
-
}
|
|
1727
|
-
const data = await parseBody(output.body, context);
|
|
1728
|
-
let contents = {};
|
|
1729
|
-
contents = de_DescribeExplainabilityResponse(data, context);
|
|
1730
|
-
const response = {
|
|
1731
|
-
$metadata: deserializeMetadata(output),
|
|
1732
|
-
...contents,
|
|
1733
|
-
};
|
|
1734
|
-
return response;
|
|
1735
|
-
};
|
|
1736
|
-
exports.de_DescribeExplainabilityCommand = de_DescribeExplainabilityCommand;
|
|
1737
|
-
const de_DescribeExplainabilityCommandError = async (output, context) => {
|
|
1738
|
-
const parsedOutput = {
|
|
1739
|
-
...output,
|
|
1740
|
-
body: await parseErrorBody(output.body, context),
|
|
1741
|
-
};
|
|
1742
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1743
|
-
switch (errorCode) {
|
|
1744
|
-
case "InvalidInputException":
|
|
1745
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
1746
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1747
|
-
case "ResourceNotFoundException":
|
|
1748
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1749
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1750
|
-
default:
|
|
1751
|
-
const parsedBody = parsedOutput.body;
|
|
1752
|
-
return throwDefaultError({
|
|
1753
|
-
output,
|
|
1754
|
-
parsedBody,
|
|
1755
|
-
errorCode,
|
|
1756
|
-
});
|
|
1757
|
-
}
|
|
1758
|
-
};
|
|
1759
|
-
const de_DescribeExplainabilityExportCommand = async (output, context) => {
|
|
1760
|
-
if (output.statusCode >= 300) {
|
|
1761
|
-
return de_DescribeExplainabilityExportCommandError(output, context);
|
|
1762
|
-
}
|
|
1763
|
-
const data = await parseBody(output.body, context);
|
|
1764
|
-
let contents = {};
|
|
1765
|
-
contents = de_DescribeExplainabilityExportResponse(data, context);
|
|
1766
|
-
const response = {
|
|
1767
|
-
$metadata: deserializeMetadata(output),
|
|
1768
|
-
...contents,
|
|
1769
|
-
};
|
|
1770
|
-
return response;
|
|
1771
|
-
};
|
|
1772
|
-
exports.de_DescribeExplainabilityExportCommand = de_DescribeExplainabilityExportCommand;
|
|
1773
|
-
const de_DescribeExplainabilityExportCommandError = async (output, context) => {
|
|
1774
|
-
const parsedOutput = {
|
|
1775
|
-
...output,
|
|
1776
|
-
body: await parseErrorBody(output.body, context),
|
|
1777
|
-
};
|
|
1778
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1779
|
-
switch (errorCode) {
|
|
1780
|
-
case "InvalidInputException":
|
|
1781
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
1782
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1783
|
-
case "ResourceNotFoundException":
|
|
1784
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1785
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1786
|
-
default:
|
|
1787
|
-
const parsedBody = parsedOutput.body;
|
|
1788
|
-
return throwDefaultError({
|
|
1789
|
-
output,
|
|
1790
|
-
parsedBody,
|
|
1791
|
-
errorCode,
|
|
1792
|
-
});
|
|
1793
|
-
}
|
|
1794
|
-
};
|
|
1795
|
-
const de_DescribeForecastCommand = async (output, context) => {
|
|
1796
|
-
if (output.statusCode >= 300) {
|
|
1797
|
-
return de_DescribeForecastCommandError(output, context);
|
|
1798
|
-
}
|
|
1799
|
-
const data = await parseBody(output.body, context);
|
|
1800
|
-
let contents = {};
|
|
1801
|
-
contents = de_DescribeForecastResponse(data, context);
|
|
1802
|
-
const response = {
|
|
1803
|
-
$metadata: deserializeMetadata(output),
|
|
1804
|
-
...contents,
|
|
1805
|
-
};
|
|
1806
|
-
return response;
|
|
1807
|
-
};
|
|
1808
|
-
exports.de_DescribeForecastCommand = de_DescribeForecastCommand;
|
|
1809
|
-
const de_DescribeForecastCommandError = async (output, context) => {
|
|
1810
|
-
const parsedOutput = {
|
|
1811
|
-
...output,
|
|
1812
|
-
body: await parseErrorBody(output.body, context),
|
|
1813
|
-
};
|
|
1814
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1815
|
-
switch (errorCode) {
|
|
1816
|
-
case "InvalidInputException":
|
|
1817
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
1818
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1819
|
-
case "ResourceNotFoundException":
|
|
1820
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1821
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1822
|
-
default:
|
|
1823
|
-
const parsedBody = parsedOutput.body;
|
|
1824
|
-
return throwDefaultError({
|
|
1825
|
-
output,
|
|
1826
|
-
parsedBody,
|
|
1827
|
-
errorCode,
|
|
1828
|
-
});
|
|
1829
|
-
}
|
|
1830
|
-
};
|
|
1831
|
-
const de_DescribeForecastExportJobCommand = async (output, context) => {
|
|
1832
|
-
if (output.statusCode >= 300) {
|
|
1833
|
-
return de_DescribeForecastExportJobCommandError(output, context);
|
|
1834
|
-
}
|
|
1835
|
-
const data = await parseBody(output.body, context);
|
|
1836
|
-
let contents = {};
|
|
1837
|
-
contents = de_DescribeForecastExportJobResponse(data, context);
|
|
1838
|
-
const response = {
|
|
1839
|
-
$metadata: deserializeMetadata(output),
|
|
1840
|
-
...contents,
|
|
1841
|
-
};
|
|
1842
|
-
return response;
|
|
1843
|
-
};
|
|
1844
|
-
exports.de_DescribeForecastExportJobCommand = de_DescribeForecastExportJobCommand;
|
|
1845
|
-
const de_DescribeForecastExportJobCommandError = async (output, context) => {
|
|
1846
|
-
const parsedOutput = {
|
|
1847
|
-
...output,
|
|
1848
|
-
body: await parseErrorBody(output.body, context),
|
|
1849
|
-
};
|
|
1850
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1851
|
-
switch (errorCode) {
|
|
1852
|
-
case "InvalidInputException":
|
|
1853
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
1854
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1855
|
-
case "ResourceNotFoundException":
|
|
1856
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1857
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1858
|
-
default:
|
|
1859
|
-
const parsedBody = parsedOutput.body;
|
|
1860
|
-
return throwDefaultError({
|
|
1861
|
-
output,
|
|
1862
|
-
parsedBody,
|
|
1863
|
-
errorCode,
|
|
1864
|
-
});
|
|
1865
|
-
}
|
|
1866
|
-
};
|
|
1867
|
-
const de_DescribeMonitorCommand = async (output, context) => {
|
|
1868
|
-
if (output.statusCode >= 300) {
|
|
1869
|
-
return de_DescribeMonitorCommandError(output, context);
|
|
1870
|
-
}
|
|
1871
|
-
const data = await parseBody(output.body, context);
|
|
1872
|
-
let contents = {};
|
|
1873
|
-
contents = de_DescribeMonitorResponse(data, context);
|
|
1874
|
-
const response = {
|
|
1875
|
-
$metadata: deserializeMetadata(output),
|
|
1876
|
-
...contents,
|
|
1877
|
-
};
|
|
1878
|
-
return response;
|
|
1879
|
-
};
|
|
1880
|
-
exports.de_DescribeMonitorCommand = de_DescribeMonitorCommand;
|
|
1881
|
-
const de_DescribeMonitorCommandError = async (output, context) => {
|
|
1882
|
-
const parsedOutput = {
|
|
1883
|
-
...output,
|
|
1884
|
-
body: await parseErrorBody(output.body, context),
|
|
1885
|
-
};
|
|
1886
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1887
|
-
switch (errorCode) {
|
|
1888
|
-
case "InvalidInputException":
|
|
1889
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
1890
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1891
|
-
case "ResourceNotFoundException":
|
|
1892
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1893
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1894
|
-
default:
|
|
1895
|
-
const parsedBody = parsedOutput.body;
|
|
1896
|
-
return throwDefaultError({
|
|
1897
|
-
output,
|
|
1898
|
-
parsedBody,
|
|
1899
|
-
errorCode,
|
|
1900
|
-
});
|
|
1901
|
-
}
|
|
1902
|
-
};
|
|
1903
|
-
const de_DescribePredictorCommand = async (output, context) => {
|
|
1904
|
-
if (output.statusCode >= 300) {
|
|
1905
|
-
return de_DescribePredictorCommandError(output, context);
|
|
1906
|
-
}
|
|
1907
|
-
const data = await parseBody(output.body, context);
|
|
1908
|
-
let contents = {};
|
|
1909
|
-
contents = de_DescribePredictorResponse(data, context);
|
|
1910
|
-
const response = {
|
|
1911
|
-
$metadata: deserializeMetadata(output),
|
|
1912
|
-
...contents,
|
|
1913
|
-
};
|
|
1914
|
-
return response;
|
|
1915
|
-
};
|
|
1916
|
-
exports.de_DescribePredictorCommand = de_DescribePredictorCommand;
|
|
1917
|
-
const de_DescribePredictorCommandError = async (output, context) => {
|
|
1918
|
-
const parsedOutput = {
|
|
1919
|
-
...output,
|
|
1920
|
-
body: await parseErrorBody(output.body, context),
|
|
1921
|
-
};
|
|
1922
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1923
|
-
switch (errorCode) {
|
|
1924
|
-
case "InvalidInputException":
|
|
1925
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
1926
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1927
|
-
case "ResourceNotFoundException":
|
|
1928
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1929
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1930
|
-
default:
|
|
1931
|
-
const parsedBody = parsedOutput.body;
|
|
1932
|
-
return throwDefaultError({
|
|
1933
|
-
output,
|
|
1934
|
-
parsedBody,
|
|
1935
|
-
errorCode,
|
|
1936
|
-
});
|
|
1937
|
-
}
|
|
1938
|
-
};
|
|
1939
|
-
const de_DescribePredictorBacktestExportJobCommand = async (output, context) => {
|
|
1940
|
-
if (output.statusCode >= 300) {
|
|
1941
|
-
return de_DescribePredictorBacktestExportJobCommandError(output, context);
|
|
1942
|
-
}
|
|
1943
|
-
const data = await parseBody(output.body, context);
|
|
1944
|
-
let contents = {};
|
|
1945
|
-
contents = de_DescribePredictorBacktestExportJobResponse(data, context);
|
|
1946
|
-
const response = {
|
|
1947
|
-
$metadata: deserializeMetadata(output),
|
|
1948
|
-
...contents,
|
|
1949
|
-
};
|
|
1950
|
-
return response;
|
|
1951
|
-
};
|
|
1952
|
-
exports.de_DescribePredictorBacktestExportJobCommand = de_DescribePredictorBacktestExportJobCommand;
|
|
1953
|
-
const de_DescribePredictorBacktestExportJobCommandError = async (output, context) => {
|
|
1954
|
-
const parsedOutput = {
|
|
1955
|
-
...output,
|
|
1956
|
-
body: await parseErrorBody(output.body, context),
|
|
1957
|
-
};
|
|
1958
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1959
|
-
switch (errorCode) {
|
|
1960
|
-
case "InvalidInputException":
|
|
1961
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
1962
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1963
|
-
case "ResourceNotFoundException":
|
|
1964
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
1965
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1966
|
-
default:
|
|
1967
|
-
const parsedBody = parsedOutput.body;
|
|
1968
|
-
return throwDefaultError({
|
|
1969
|
-
output,
|
|
1970
|
-
parsedBody,
|
|
1971
|
-
errorCode,
|
|
1972
|
-
});
|
|
1973
|
-
}
|
|
1974
|
-
};
|
|
1975
|
-
const de_DescribeWhatIfAnalysisCommand = async (output, context) => {
|
|
1976
|
-
if (output.statusCode >= 300) {
|
|
1977
|
-
return de_DescribeWhatIfAnalysisCommandError(output, context);
|
|
1978
|
-
}
|
|
1979
|
-
const data = await parseBody(output.body, context);
|
|
1980
|
-
let contents = {};
|
|
1981
|
-
contents = de_DescribeWhatIfAnalysisResponse(data, context);
|
|
1982
|
-
const response = {
|
|
1983
|
-
$metadata: deserializeMetadata(output),
|
|
1984
|
-
...contents,
|
|
1985
|
-
};
|
|
1986
|
-
return response;
|
|
1987
|
-
};
|
|
1988
|
-
exports.de_DescribeWhatIfAnalysisCommand = de_DescribeWhatIfAnalysisCommand;
|
|
1989
|
-
const de_DescribeWhatIfAnalysisCommandError = async (output, context) => {
|
|
1990
|
-
const parsedOutput = {
|
|
1991
|
-
...output,
|
|
1992
|
-
body: await parseErrorBody(output.body, context),
|
|
1993
|
-
};
|
|
1994
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1995
|
-
switch (errorCode) {
|
|
1996
|
-
case "InvalidInputException":
|
|
1997
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
1998
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1999
|
-
case "ResourceNotFoundException":
|
|
2000
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
2001
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2002
|
-
default:
|
|
2003
|
-
const parsedBody = parsedOutput.body;
|
|
2004
|
-
return throwDefaultError({
|
|
2005
|
-
output,
|
|
2006
|
-
parsedBody,
|
|
2007
|
-
errorCode,
|
|
2008
|
-
});
|
|
2009
|
-
}
|
|
2010
|
-
};
|
|
2011
|
-
const de_DescribeWhatIfForecastCommand = async (output, context) => {
|
|
2012
|
-
if (output.statusCode >= 300) {
|
|
2013
|
-
return de_DescribeWhatIfForecastCommandError(output, context);
|
|
2014
|
-
}
|
|
2015
|
-
const data = await parseBody(output.body, context);
|
|
2016
|
-
let contents = {};
|
|
2017
|
-
contents = de_DescribeWhatIfForecastResponse(data, context);
|
|
2018
|
-
const response = {
|
|
2019
|
-
$metadata: deserializeMetadata(output),
|
|
2020
|
-
...contents,
|
|
2021
|
-
};
|
|
2022
|
-
return response;
|
|
2023
|
-
};
|
|
2024
|
-
exports.de_DescribeWhatIfForecastCommand = de_DescribeWhatIfForecastCommand;
|
|
2025
|
-
const de_DescribeWhatIfForecastCommandError = async (output, context) => {
|
|
2026
|
-
const parsedOutput = {
|
|
2027
|
-
...output,
|
|
2028
|
-
body: await parseErrorBody(output.body, context),
|
|
2029
|
-
};
|
|
2030
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2031
|
-
switch (errorCode) {
|
|
2032
|
-
case "InvalidInputException":
|
|
2033
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
2034
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2035
|
-
case "ResourceNotFoundException":
|
|
2036
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
2037
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2038
|
-
default:
|
|
2039
|
-
const parsedBody = parsedOutput.body;
|
|
2040
|
-
return throwDefaultError({
|
|
2041
|
-
output,
|
|
2042
|
-
parsedBody,
|
|
2043
|
-
errorCode,
|
|
2044
|
-
});
|
|
2045
|
-
}
|
|
2046
|
-
};
|
|
2047
|
-
const de_DescribeWhatIfForecastExportCommand = async (output, context) => {
|
|
2048
|
-
if (output.statusCode >= 300) {
|
|
2049
|
-
return de_DescribeWhatIfForecastExportCommandError(output, context);
|
|
2050
|
-
}
|
|
2051
|
-
const data = await parseBody(output.body, context);
|
|
2052
|
-
let contents = {};
|
|
2053
|
-
contents = de_DescribeWhatIfForecastExportResponse(data, context);
|
|
2054
|
-
const response = {
|
|
2055
|
-
$metadata: deserializeMetadata(output),
|
|
2056
|
-
...contents,
|
|
2057
|
-
};
|
|
2058
|
-
return response;
|
|
2059
|
-
};
|
|
2060
|
-
exports.de_DescribeWhatIfForecastExportCommand = de_DescribeWhatIfForecastExportCommand;
|
|
2061
|
-
const de_DescribeWhatIfForecastExportCommandError = async (output, context) => {
|
|
2062
|
-
const parsedOutput = {
|
|
2063
|
-
...output,
|
|
2064
|
-
body: await parseErrorBody(output.body, context),
|
|
2065
|
-
};
|
|
2066
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2067
|
-
switch (errorCode) {
|
|
2068
|
-
case "InvalidInputException":
|
|
2069
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
2070
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2071
|
-
case "ResourceNotFoundException":
|
|
2072
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
2073
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2074
|
-
default:
|
|
2075
|
-
const parsedBody = parsedOutput.body;
|
|
2076
|
-
return throwDefaultError({
|
|
2077
|
-
output,
|
|
2078
|
-
parsedBody,
|
|
2079
|
-
errorCode,
|
|
2080
|
-
});
|
|
2081
|
-
}
|
|
2082
|
-
};
|
|
2083
|
-
const de_GetAccuracyMetricsCommand = async (output, context) => {
|
|
2084
|
-
if (output.statusCode >= 300) {
|
|
2085
|
-
return de_GetAccuracyMetricsCommandError(output, context);
|
|
2086
|
-
}
|
|
2087
|
-
const data = await parseBody(output.body, context);
|
|
2088
|
-
let contents = {};
|
|
2089
|
-
contents = de_GetAccuracyMetricsResponse(data, context);
|
|
2090
|
-
const response = {
|
|
2091
|
-
$metadata: deserializeMetadata(output),
|
|
2092
|
-
...contents,
|
|
2093
|
-
};
|
|
2094
|
-
return response;
|
|
2095
|
-
};
|
|
2096
|
-
exports.de_GetAccuracyMetricsCommand = de_GetAccuracyMetricsCommand;
|
|
2097
|
-
const de_GetAccuracyMetricsCommandError = async (output, context) => {
|
|
2098
|
-
const parsedOutput = {
|
|
2099
|
-
...output,
|
|
2100
|
-
body: await parseErrorBody(output.body, context),
|
|
2101
|
-
};
|
|
2102
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2103
|
-
switch (errorCode) {
|
|
2104
|
-
case "InvalidInputException":
|
|
2105
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
2106
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2107
|
-
case "ResourceInUseException":
|
|
2108
|
-
case "com.amazonaws.forecast#ResourceInUseException":
|
|
2109
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2110
|
-
case "ResourceNotFoundException":
|
|
2111
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
2112
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2113
|
-
default:
|
|
2114
|
-
const parsedBody = parsedOutput.body;
|
|
2115
|
-
return throwDefaultError({
|
|
2116
|
-
output,
|
|
2117
|
-
parsedBody,
|
|
2118
|
-
errorCode,
|
|
2119
|
-
});
|
|
2120
|
-
}
|
|
2121
|
-
};
|
|
2122
|
-
const de_ListDatasetGroupsCommand = async (output, context) => {
|
|
2123
|
-
if (output.statusCode >= 300) {
|
|
2124
|
-
return de_ListDatasetGroupsCommandError(output, context);
|
|
2125
|
-
}
|
|
2126
|
-
const data = await parseBody(output.body, context);
|
|
2127
|
-
let contents = {};
|
|
2128
|
-
contents = de_ListDatasetGroupsResponse(data, context);
|
|
2129
|
-
const response = {
|
|
2130
|
-
$metadata: deserializeMetadata(output),
|
|
2131
|
-
...contents,
|
|
2132
|
-
};
|
|
2133
|
-
return response;
|
|
2134
|
-
};
|
|
2135
|
-
exports.de_ListDatasetGroupsCommand = de_ListDatasetGroupsCommand;
|
|
2136
|
-
const de_ListDatasetGroupsCommandError = async (output, context) => {
|
|
2137
|
-
const parsedOutput = {
|
|
2138
|
-
...output,
|
|
2139
|
-
body: await parseErrorBody(output.body, context),
|
|
2140
|
-
};
|
|
2141
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2142
|
-
switch (errorCode) {
|
|
2143
|
-
case "InvalidNextTokenException":
|
|
2144
|
-
case "com.amazonaws.forecast#InvalidNextTokenException":
|
|
2145
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2146
|
-
default:
|
|
2147
|
-
const parsedBody = parsedOutput.body;
|
|
2148
|
-
return throwDefaultError({
|
|
2149
|
-
output,
|
|
2150
|
-
parsedBody,
|
|
2151
|
-
errorCode,
|
|
2152
|
-
});
|
|
2153
|
-
}
|
|
2154
|
-
};
|
|
2155
|
-
const de_ListDatasetImportJobsCommand = async (output, context) => {
|
|
2156
|
-
if (output.statusCode >= 300) {
|
|
2157
|
-
return de_ListDatasetImportJobsCommandError(output, context);
|
|
2158
|
-
}
|
|
2159
|
-
const data = await parseBody(output.body, context);
|
|
2160
|
-
let contents = {};
|
|
2161
|
-
contents = de_ListDatasetImportJobsResponse(data, context);
|
|
2162
|
-
const response = {
|
|
2163
|
-
$metadata: deserializeMetadata(output),
|
|
2164
|
-
...contents,
|
|
2165
|
-
};
|
|
2166
|
-
return response;
|
|
2167
|
-
};
|
|
2168
|
-
exports.de_ListDatasetImportJobsCommand = de_ListDatasetImportJobsCommand;
|
|
2169
|
-
const de_ListDatasetImportJobsCommandError = async (output, context) => {
|
|
2170
|
-
const parsedOutput = {
|
|
2171
|
-
...output,
|
|
2172
|
-
body: await parseErrorBody(output.body, context),
|
|
2173
|
-
};
|
|
2174
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2175
|
-
switch (errorCode) {
|
|
2176
|
-
case "InvalidInputException":
|
|
2177
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
2178
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2179
|
-
case "InvalidNextTokenException":
|
|
2180
|
-
case "com.amazonaws.forecast#InvalidNextTokenException":
|
|
2181
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2182
|
-
default:
|
|
2183
|
-
const parsedBody = parsedOutput.body;
|
|
2184
|
-
return throwDefaultError({
|
|
2185
|
-
output,
|
|
2186
|
-
parsedBody,
|
|
2187
|
-
errorCode,
|
|
2188
|
-
});
|
|
2189
|
-
}
|
|
2190
|
-
};
|
|
2191
|
-
const de_ListDatasetsCommand = async (output, context) => {
|
|
2192
|
-
if (output.statusCode >= 300) {
|
|
2193
|
-
return de_ListDatasetsCommandError(output, context);
|
|
2194
|
-
}
|
|
2195
|
-
const data = await parseBody(output.body, context);
|
|
2196
|
-
let contents = {};
|
|
2197
|
-
contents = de_ListDatasetsResponse(data, context);
|
|
2198
|
-
const response = {
|
|
2199
|
-
$metadata: deserializeMetadata(output),
|
|
2200
|
-
...contents,
|
|
2201
|
-
};
|
|
2202
|
-
return response;
|
|
2203
|
-
};
|
|
2204
|
-
exports.de_ListDatasetsCommand = de_ListDatasetsCommand;
|
|
2205
|
-
const de_ListDatasetsCommandError = async (output, context) => {
|
|
2206
|
-
const parsedOutput = {
|
|
2207
|
-
...output,
|
|
2208
|
-
body: await parseErrorBody(output.body, context),
|
|
2209
|
-
};
|
|
2210
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2211
|
-
switch (errorCode) {
|
|
2212
|
-
case "InvalidNextTokenException":
|
|
2213
|
-
case "com.amazonaws.forecast#InvalidNextTokenException":
|
|
2214
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2215
|
-
default:
|
|
2216
|
-
const parsedBody = parsedOutput.body;
|
|
2217
|
-
return throwDefaultError({
|
|
2218
|
-
output,
|
|
2219
|
-
parsedBody,
|
|
2220
|
-
errorCode,
|
|
2221
|
-
});
|
|
2222
|
-
}
|
|
2223
|
-
};
|
|
2224
|
-
const de_ListExplainabilitiesCommand = async (output, context) => {
|
|
2225
|
-
if (output.statusCode >= 300) {
|
|
2226
|
-
return de_ListExplainabilitiesCommandError(output, context);
|
|
2227
|
-
}
|
|
2228
|
-
const data = await parseBody(output.body, context);
|
|
2229
|
-
let contents = {};
|
|
2230
|
-
contents = de_ListExplainabilitiesResponse(data, context);
|
|
2231
|
-
const response = {
|
|
2232
|
-
$metadata: deserializeMetadata(output),
|
|
2233
|
-
...contents,
|
|
2234
|
-
};
|
|
2235
|
-
return response;
|
|
2236
|
-
};
|
|
2237
|
-
exports.de_ListExplainabilitiesCommand = de_ListExplainabilitiesCommand;
|
|
2238
|
-
const de_ListExplainabilitiesCommandError = async (output, context) => {
|
|
2239
|
-
const parsedOutput = {
|
|
2240
|
-
...output,
|
|
2241
|
-
body: await parseErrorBody(output.body, context),
|
|
2242
|
-
};
|
|
2243
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2244
|
-
switch (errorCode) {
|
|
2245
|
-
case "InvalidInputException":
|
|
2246
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
2247
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2248
|
-
case "InvalidNextTokenException":
|
|
2249
|
-
case "com.amazonaws.forecast#InvalidNextTokenException":
|
|
2250
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2251
|
-
default:
|
|
2252
|
-
const parsedBody = parsedOutput.body;
|
|
2253
|
-
return throwDefaultError({
|
|
2254
|
-
output,
|
|
2255
|
-
parsedBody,
|
|
2256
|
-
errorCode,
|
|
2257
|
-
});
|
|
2258
|
-
}
|
|
2259
|
-
};
|
|
2260
|
-
const de_ListExplainabilityExportsCommand = async (output, context) => {
|
|
2261
|
-
if (output.statusCode >= 300) {
|
|
2262
|
-
return de_ListExplainabilityExportsCommandError(output, context);
|
|
2263
|
-
}
|
|
2264
|
-
const data = await parseBody(output.body, context);
|
|
2265
|
-
let contents = {};
|
|
2266
|
-
contents = de_ListExplainabilityExportsResponse(data, context);
|
|
2267
|
-
const response = {
|
|
2268
|
-
$metadata: deserializeMetadata(output),
|
|
2269
|
-
...contents,
|
|
2270
|
-
};
|
|
2271
|
-
return response;
|
|
2272
|
-
};
|
|
2273
|
-
exports.de_ListExplainabilityExportsCommand = de_ListExplainabilityExportsCommand;
|
|
2274
|
-
const de_ListExplainabilityExportsCommandError = async (output, context) => {
|
|
2275
|
-
const parsedOutput = {
|
|
2276
|
-
...output,
|
|
2277
|
-
body: await parseErrorBody(output.body, context),
|
|
2278
|
-
};
|
|
2279
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2280
|
-
switch (errorCode) {
|
|
2281
|
-
case "InvalidInputException":
|
|
2282
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
2283
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2284
|
-
case "InvalidNextTokenException":
|
|
2285
|
-
case "com.amazonaws.forecast#InvalidNextTokenException":
|
|
2286
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2287
|
-
default:
|
|
2288
|
-
const parsedBody = parsedOutput.body;
|
|
2289
|
-
return throwDefaultError({
|
|
2290
|
-
output,
|
|
2291
|
-
parsedBody,
|
|
2292
|
-
errorCode,
|
|
2293
|
-
});
|
|
2294
|
-
}
|
|
2295
|
-
};
|
|
2296
|
-
const de_ListForecastExportJobsCommand = async (output, context) => {
|
|
2297
|
-
if (output.statusCode >= 300) {
|
|
2298
|
-
return de_ListForecastExportJobsCommandError(output, context);
|
|
2299
|
-
}
|
|
2300
|
-
const data = await parseBody(output.body, context);
|
|
2301
|
-
let contents = {};
|
|
2302
|
-
contents = de_ListForecastExportJobsResponse(data, context);
|
|
2303
|
-
const response = {
|
|
2304
|
-
$metadata: deserializeMetadata(output),
|
|
2305
|
-
...contents,
|
|
2306
|
-
};
|
|
2307
|
-
return response;
|
|
2308
|
-
};
|
|
2309
|
-
exports.de_ListForecastExportJobsCommand = de_ListForecastExportJobsCommand;
|
|
2310
|
-
const de_ListForecastExportJobsCommandError = async (output, context) => {
|
|
2311
|
-
const parsedOutput = {
|
|
2312
|
-
...output,
|
|
2313
|
-
body: await parseErrorBody(output.body, context),
|
|
2314
|
-
};
|
|
2315
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2316
|
-
switch (errorCode) {
|
|
2317
|
-
case "InvalidInputException":
|
|
2318
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
2319
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2320
|
-
case "InvalidNextTokenException":
|
|
2321
|
-
case "com.amazonaws.forecast#InvalidNextTokenException":
|
|
2322
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2323
|
-
default:
|
|
2324
|
-
const parsedBody = parsedOutput.body;
|
|
2325
|
-
return throwDefaultError({
|
|
2326
|
-
output,
|
|
2327
|
-
parsedBody,
|
|
2328
|
-
errorCode,
|
|
2329
|
-
});
|
|
2330
|
-
}
|
|
2331
|
-
};
|
|
2332
|
-
const de_ListForecastsCommand = async (output, context) => {
|
|
2333
|
-
if (output.statusCode >= 300) {
|
|
2334
|
-
return de_ListForecastsCommandError(output, context);
|
|
2335
|
-
}
|
|
2336
|
-
const data = await parseBody(output.body, context);
|
|
2337
|
-
let contents = {};
|
|
2338
|
-
contents = de_ListForecastsResponse(data, context);
|
|
2339
|
-
const response = {
|
|
2340
|
-
$metadata: deserializeMetadata(output),
|
|
2341
|
-
...contents,
|
|
2342
|
-
};
|
|
2343
|
-
return response;
|
|
2344
|
-
};
|
|
2345
|
-
exports.de_ListForecastsCommand = de_ListForecastsCommand;
|
|
2346
|
-
const de_ListForecastsCommandError = async (output, context) => {
|
|
2347
|
-
const parsedOutput = {
|
|
2348
|
-
...output,
|
|
2349
|
-
body: await parseErrorBody(output.body, context),
|
|
2350
|
-
};
|
|
2351
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2352
|
-
switch (errorCode) {
|
|
2353
|
-
case "InvalidInputException":
|
|
2354
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
2355
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2356
|
-
case "InvalidNextTokenException":
|
|
2357
|
-
case "com.amazonaws.forecast#InvalidNextTokenException":
|
|
2358
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2359
|
-
default:
|
|
2360
|
-
const parsedBody = parsedOutput.body;
|
|
2361
|
-
return throwDefaultError({
|
|
2362
|
-
output,
|
|
2363
|
-
parsedBody,
|
|
2364
|
-
errorCode,
|
|
2365
|
-
});
|
|
2366
|
-
}
|
|
2367
|
-
};
|
|
2368
|
-
const de_ListMonitorEvaluationsCommand = async (output, context) => {
|
|
2369
|
-
if (output.statusCode >= 300) {
|
|
2370
|
-
return de_ListMonitorEvaluationsCommandError(output, context);
|
|
2371
|
-
}
|
|
2372
|
-
const data = await parseBody(output.body, context);
|
|
2373
|
-
let contents = {};
|
|
2374
|
-
contents = de_ListMonitorEvaluationsResponse(data, context);
|
|
2375
|
-
const response = {
|
|
2376
|
-
$metadata: deserializeMetadata(output),
|
|
2377
|
-
...contents,
|
|
2378
|
-
};
|
|
2379
|
-
return response;
|
|
2380
|
-
};
|
|
2381
|
-
exports.de_ListMonitorEvaluationsCommand = de_ListMonitorEvaluationsCommand;
|
|
2382
|
-
const de_ListMonitorEvaluationsCommandError = async (output, context) => {
|
|
2383
|
-
const parsedOutput = {
|
|
2384
|
-
...output,
|
|
2385
|
-
body: await parseErrorBody(output.body, context),
|
|
2386
|
-
};
|
|
2387
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2388
|
-
switch (errorCode) {
|
|
2389
|
-
case "InvalidInputException":
|
|
2390
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
2391
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2392
|
-
case "InvalidNextTokenException":
|
|
2393
|
-
case "com.amazonaws.forecast#InvalidNextTokenException":
|
|
2394
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2395
|
-
case "ResourceNotFoundException":
|
|
2396
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
2397
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2398
|
-
default:
|
|
2399
|
-
const parsedBody = parsedOutput.body;
|
|
2400
|
-
return throwDefaultError({
|
|
2401
|
-
output,
|
|
2402
|
-
parsedBody,
|
|
2403
|
-
errorCode,
|
|
2404
|
-
});
|
|
2405
|
-
}
|
|
2406
|
-
};
|
|
2407
|
-
const de_ListMonitorsCommand = async (output, context) => {
|
|
2408
|
-
if (output.statusCode >= 300) {
|
|
2409
|
-
return de_ListMonitorsCommandError(output, context);
|
|
2410
|
-
}
|
|
2411
|
-
const data = await parseBody(output.body, context);
|
|
2412
|
-
let contents = {};
|
|
2413
|
-
contents = de_ListMonitorsResponse(data, context);
|
|
2414
|
-
const response = {
|
|
2415
|
-
$metadata: deserializeMetadata(output),
|
|
2416
|
-
...contents,
|
|
2417
|
-
};
|
|
2418
|
-
return response;
|
|
2419
|
-
};
|
|
2420
|
-
exports.de_ListMonitorsCommand = de_ListMonitorsCommand;
|
|
2421
|
-
const de_ListMonitorsCommandError = async (output, context) => {
|
|
2422
|
-
const parsedOutput = {
|
|
2423
|
-
...output,
|
|
2424
|
-
body: await parseErrorBody(output.body, context),
|
|
2425
|
-
};
|
|
2426
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2427
|
-
switch (errorCode) {
|
|
2428
|
-
case "InvalidInputException":
|
|
2429
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
2430
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2431
|
-
case "InvalidNextTokenException":
|
|
2432
|
-
case "com.amazonaws.forecast#InvalidNextTokenException":
|
|
2433
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2434
|
-
default:
|
|
2435
|
-
const parsedBody = parsedOutput.body;
|
|
2436
|
-
return throwDefaultError({
|
|
2437
|
-
output,
|
|
2438
|
-
parsedBody,
|
|
2439
|
-
errorCode,
|
|
2440
|
-
});
|
|
2441
|
-
}
|
|
2442
|
-
};
|
|
2443
|
-
const de_ListPredictorBacktestExportJobsCommand = async (output, context) => {
|
|
2444
|
-
if (output.statusCode >= 300) {
|
|
2445
|
-
return de_ListPredictorBacktestExportJobsCommandError(output, context);
|
|
2446
|
-
}
|
|
2447
|
-
const data = await parseBody(output.body, context);
|
|
2448
|
-
let contents = {};
|
|
2449
|
-
contents = de_ListPredictorBacktestExportJobsResponse(data, context);
|
|
2450
|
-
const response = {
|
|
2451
|
-
$metadata: deserializeMetadata(output),
|
|
2452
|
-
...contents,
|
|
2453
|
-
};
|
|
2454
|
-
return response;
|
|
2455
|
-
};
|
|
2456
|
-
exports.de_ListPredictorBacktestExportJobsCommand = de_ListPredictorBacktestExportJobsCommand;
|
|
2457
|
-
const de_ListPredictorBacktestExportJobsCommandError = async (output, context) => {
|
|
2458
|
-
const parsedOutput = {
|
|
2459
|
-
...output,
|
|
2460
|
-
body: await parseErrorBody(output.body, context),
|
|
2461
|
-
};
|
|
2462
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2463
|
-
switch (errorCode) {
|
|
2464
|
-
case "InvalidInputException":
|
|
2465
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
2466
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2467
|
-
case "InvalidNextTokenException":
|
|
2468
|
-
case "com.amazonaws.forecast#InvalidNextTokenException":
|
|
2469
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2470
|
-
default:
|
|
2471
|
-
const parsedBody = parsedOutput.body;
|
|
2472
|
-
return throwDefaultError({
|
|
2473
|
-
output,
|
|
2474
|
-
parsedBody,
|
|
2475
|
-
errorCode,
|
|
2476
|
-
});
|
|
2477
|
-
}
|
|
2478
|
-
};
|
|
2479
|
-
const de_ListPredictorsCommand = async (output, context) => {
|
|
2480
|
-
if (output.statusCode >= 300) {
|
|
2481
|
-
return de_ListPredictorsCommandError(output, context);
|
|
2482
|
-
}
|
|
2483
|
-
const data = await parseBody(output.body, context);
|
|
2484
|
-
let contents = {};
|
|
2485
|
-
contents = de_ListPredictorsResponse(data, context);
|
|
2486
|
-
const response = {
|
|
2487
|
-
$metadata: deserializeMetadata(output),
|
|
2488
|
-
...contents,
|
|
2489
|
-
};
|
|
2490
|
-
return response;
|
|
2491
|
-
};
|
|
2492
|
-
exports.de_ListPredictorsCommand = de_ListPredictorsCommand;
|
|
2493
|
-
const de_ListPredictorsCommandError = async (output, context) => {
|
|
2494
|
-
const parsedOutput = {
|
|
2495
|
-
...output,
|
|
2496
|
-
body: await parseErrorBody(output.body, context),
|
|
2497
|
-
};
|
|
2498
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2499
|
-
switch (errorCode) {
|
|
2500
|
-
case "InvalidInputException":
|
|
2501
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
2502
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2503
|
-
case "InvalidNextTokenException":
|
|
2504
|
-
case "com.amazonaws.forecast#InvalidNextTokenException":
|
|
2505
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2506
|
-
default:
|
|
2507
|
-
const parsedBody = parsedOutput.body;
|
|
2508
|
-
return throwDefaultError({
|
|
2509
|
-
output,
|
|
2510
|
-
parsedBody,
|
|
2511
|
-
errorCode,
|
|
2512
|
-
});
|
|
2513
|
-
}
|
|
2514
|
-
};
|
|
2515
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2516
|
-
if (output.statusCode >= 300) {
|
|
2517
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
2518
|
-
}
|
|
2519
|
-
const data = await parseBody(output.body, context);
|
|
2520
|
-
let contents = {};
|
|
2521
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2522
|
-
const response = {
|
|
2523
|
-
$metadata: deserializeMetadata(output),
|
|
2524
|
-
...contents,
|
|
2525
|
-
};
|
|
2526
|
-
return response;
|
|
2527
|
-
};
|
|
2528
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
2529
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2530
|
-
const parsedOutput = {
|
|
2531
|
-
...output,
|
|
2532
|
-
body: await parseErrorBody(output.body, context),
|
|
2533
|
-
};
|
|
2534
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2535
|
-
switch (errorCode) {
|
|
2536
|
-
case "InvalidInputException":
|
|
2537
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
2538
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2539
|
-
case "ResourceNotFoundException":
|
|
2540
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
2541
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2542
|
-
default:
|
|
2543
|
-
const parsedBody = parsedOutput.body;
|
|
2544
|
-
return throwDefaultError({
|
|
2545
|
-
output,
|
|
2546
|
-
parsedBody,
|
|
2547
|
-
errorCode,
|
|
2548
|
-
});
|
|
2549
|
-
}
|
|
2550
|
-
};
|
|
2551
|
-
const de_ListWhatIfAnalysesCommand = async (output, context) => {
|
|
2552
|
-
if (output.statusCode >= 300) {
|
|
2553
|
-
return de_ListWhatIfAnalysesCommandError(output, context);
|
|
2554
|
-
}
|
|
2555
|
-
const data = await parseBody(output.body, context);
|
|
2556
|
-
let contents = {};
|
|
2557
|
-
contents = de_ListWhatIfAnalysesResponse(data, context);
|
|
2558
|
-
const response = {
|
|
2559
|
-
$metadata: deserializeMetadata(output),
|
|
2560
|
-
...contents,
|
|
2561
|
-
};
|
|
2562
|
-
return response;
|
|
2563
|
-
};
|
|
2564
|
-
exports.de_ListWhatIfAnalysesCommand = de_ListWhatIfAnalysesCommand;
|
|
2565
|
-
const de_ListWhatIfAnalysesCommandError = async (output, context) => {
|
|
2566
|
-
const parsedOutput = {
|
|
2567
|
-
...output,
|
|
2568
|
-
body: await parseErrorBody(output.body, context),
|
|
2569
|
-
};
|
|
2570
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2571
|
-
switch (errorCode) {
|
|
2572
|
-
case "InvalidInputException":
|
|
2573
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
2574
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2575
|
-
case "InvalidNextTokenException":
|
|
2576
|
-
case "com.amazonaws.forecast#InvalidNextTokenException":
|
|
2577
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2578
|
-
default:
|
|
2579
|
-
const parsedBody = parsedOutput.body;
|
|
2580
|
-
return throwDefaultError({
|
|
2581
|
-
output,
|
|
2582
|
-
parsedBody,
|
|
2583
|
-
errorCode,
|
|
2584
|
-
});
|
|
2585
|
-
}
|
|
2586
|
-
};
|
|
2587
|
-
const de_ListWhatIfForecastExportsCommand = async (output, context) => {
|
|
2588
|
-
if (output.statusCode >= 300) {
|
|
2589
|
-
return de_ListWhatIfForecastExportsCommandError(output, context);
|
|
2590
|
-
}
|
|
2591
|
-
const data = await parseBody(output.body, context);
|
|
2592
|
-
let contents = {};
|
|
2593
|
-
contents = de_ListWhatIfForecastExportsResponse(data, context);
|
|
2594
|
-
const response = {
|
|
2595
|
-
$metadata: deserializeMetadata(output),
|
|
2596
|
-
...contents,
|
|
2597
|
-
};
|
|
2598
|
-
return response;
|
|
2599
|
-
};
|
|
2600
|
-
exports.de_ListWhatIfForecastExportsCommand = de_ListWhatIfForecastExportsCommand;
|
|
2601
|
-
const de_ListWhatIfForecastExportsCommandError = async (output, context) => {
|
|
2602
|
-
const parsedOutput = {
|
|
2603
|
-
...output,
|
|
2604
|
-
body: await parseErrorBody(output.body, context),
|
|
2605
|
-
};
|
|
2606
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2607
|
-
switch (errorCode) {
|
|
2608
|
-
case "InvalidInputException":
|
|
2609
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
2610
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2611
|
-
case "InvalidNextTokenException":
|
|
2612
|
-
case "com.amazonaws.forecast#InvalidNextTokenException":
|
|
2613
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2614
|
-
default:
|
|
2615
|
-
const parsedBody = parsedOutput.body;
|
|
2616
|
-
return throwDefaultError({
|
|
2617
|
-
output,
|
|
2618
|
-
parsedBody,
|
|
2619
|
-
errorCode,
|
|
2620
|
-
});
|
|
2621
|
-
}
|
|
2622
|
-
};
|
|
2623
|
-
const de_ListWhatIfForecastsCommand = async (output, context) => {
|
|
2624
|
-
if (output.statusCode >= 300) {
|
|
2625
|
-
return de_ListWhatIfForecastsCommandError(output, context);
|
|
2626
|
-
}
|
|
2627
|
-
const data = await parseBody(output.body, context);
|
|
2628
|
-
let contents = {};
|
|
2629
|
-
contents = de_ListWhatIfForecastsResponse(data, context);
|
|
2630
|
-
const response = {
|
|
2631
|
-
$metadata: deserializeMetadata(output),
|
|
2632
|
-
...contents,
|
|
2633
|
-
};
|
|
2634
|
-
return response;
|
|
2635
|
-
};
|
|
2636
|
-
exports.de_ListWhatIfForecastsCommand = de_ListWhatIfForecastsCommand;
|
|
2637
|
-
const de_ListWhatIfForecastsCommandError = async (output, context) => {
|
|
2638
|
-
const parsedOutput = {
|
|
2639
|
-
...output,
|
|
2640
|
-
body: await parseErrorBody(output.body, context),
|
|
2641
|
-
};
|
|
2642
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2643
|
-
switch (errorCode) {
|
|
2644
|
-
case "InvalidInputException":
|
|
2645
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
2646
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2647
|
-
case "InvalidNextTokenException":
|
|
2648
|
-
case "com.amazonaws.forecast#InvalidNextTokenException":
|
|
2649
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2650
|
-
default:
|
|
2651
|
-
const parsedBody = parsedOutput.body;
|
|
2652
|
-
return throwDefaultError({
|
|
2653
|
-
output,
|
|
2654
|
-
parsedBody,
|
|
2655
|
-
errorCode,
|
|
2656
|
-
});
|
|
2657
|
-
}
|
|
2658
|
-
};
|
|
2659
|
-
const de_ResumeResourceCommand = async (output, context) => {
|
|
2660
|
-
if (output.statusCode >= 300) {
|
|
2661
|
-
return de_ResumeResourceCommandError(output, context);
|
|
2662
|
-
}
|
|
2663
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2664
|
-
const response = {
|
|
2665
|
-
$metadata: deserializeMetadata(output),
|
|
2666
|
-
};
|
|
2667
|
-
return response;
|
|
2668
|
-
};
|
|
2669
|
-
exports.de_ResumeResourceCommand = de_ResumeResourceCommand;
|
|
2670
|
-
const de_ResumeResourceCommandError = async (output, context) => {
|
|
2671
|
-
const parsedOutput = {
|
|
2672
|
-
...output,
|
|
2673
|
-
body: await parseErrorBody(output.body, context),
|
|
2674
|
-
};
|
|
2675
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2676
|
-
switch (errorCode) {
|
|
2677
|
-
case "InvalidInputException":
|
|
2678
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
2679
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2680
|
-
case "LimitExceededException":
|
|
2681
|
-
case "com.amazonaws.forecast#LimitExceededException":
|
|
2682
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2683
|
-
case "ResourceInUseException":
|
|
2684
|
-
case "com.amazonaws.forecast#ResourceInUseException":
|
|
2685
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2686
|
-
case "ResourceNotFoundException":
|
|
2687
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
2688
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2689
|
-
default:
|
|
2690
|
-
const parsedBody = parsedOutput.body;
|
|
2691
|
-
return throwDefaultError({
|
|
2692
|
-
output,
|
|
2693
|
-
parsedBody,
|
|
2694
|
-
errorCode,
|
|
2695
|
-
});
|
|
2696
|
-
}
|
|
2697
|
-
};
|
|
2698
|
-
const de_StopResourceCommand = async (output, context) => {
|
|
2699
|
-
if (output.statusCode >= 300) {
|
|
2700
|
-
return de_StopResourceCommandError(output, context);
|
|
2701
|
-
}
|
|
2702
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2703
|
-
const response = {
|
|
2704
|
-
$metadata: deserializeMetadata(output),
|
|
2705
|
-
};
|
|
2706
|
-
return response;
|
|
2707
|
-
};
|
|
2708
|
-
exports.de_StopResourceCommand = de_StopResourceCommand;
|
|
2709
|
-
const de_StopResourceCommandError = async (output, context) => {
|
|
2710
|
-
const parsedOutput = {
|
|
2711
|
-
...output,
|
|
2712
|
-
body: await parseErrorBody(output.body, context),
|
|
2713
|
-
};
|
|
2714
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2715
|
-
switch (errorCode) {
|
|
2716
|
-
case "InvalidInputException":
|
|
2717
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
2718
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2719
|
-
case "LimitExceededException":
|
|
2720
|
-
case "com.amazonaws.forecast#LimitExceededException":
|
|
2721
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2722
|
-
case "ResourceNotFoundException":
|
|
2723
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
2724
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2725
|
-
default:
|
|
2726
|
-
const parsedBody = parsedOutput.body;
|
|
2727
|
-
return throwDefaultError({
|
|
2728
|
-
output,
|
|
2729
|
-
parsedBody,
|
|
2730
|
-
errorCode,
|
|
2731
|
-
});
|
|
2732
|
-
}
|
|
2733
|
-
};
|
|
2734
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
2735
|
-
if (output.statusCode >= 300) {
|
|
2736
|
-
return de_TagResourceCommandError(output, context);
|
|
2737
|
-
}
|
|
2738
|
-
const data = await parseBody(output.body, context);
|
|
2739
|
-
let contents = {};
|
|
2740
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2741
|
-
const response = {
|
|
2742
|
-
$metadata: deserializeMetadata(output),
|
|
2743
|
-
...contents,
|
|
2744
|
-
};
|
|
2745
|
-
return response;
|
|
2746
|
-
};
|
|
2747
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
2748
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
2749
|
-
const parsedOutput = {
|
|
2750
|
-
...output,
|
|
2751
|
-
body: await parseErrorBody(output.body, context),
|
|
2752
|
-
};
|
|
2753
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2754
|
-
switch (errorCode) {
|
|
2755
|
-
case "InvalidInputException":
|
|
2756
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
2757
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2758
|
-
case "LimitExceededException":
|
|
2759
|
-
case "com.amazonaws.forecast#LimitExceededException":
|
|
2760
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2761
|
-
case "ResourceNotFoundException":
|
|
2762
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
2763
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2764
|
-
default:
|
|
2765
|
-
const parsedBody = parsedOutput.body;
|
|
2766
|
-
return throwDefaultError({
|
|
2767
|
-
output,
|
|
2768
|
-
parsedBody,
|
|
2769
|
-
errorCode,
|
|
2770
|
-
});
|
|
2771
|
-
}
|
|
2772
|
-
};
|
|
2773
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
2774
|
-
if (output.statusCode >= 300) {
|
|
2775
|
-
return de_UntagResourceCommandError(output, context);
|
|
2776
|
-
}
|
|
2777
|
-
const data = await parseBody(output.body, context);
|
|
2778
|
-
let contents = {};
|
|
2779
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2780
|
-
const response = {
|
|
2781
|
-
$metadata: deserializeMetadata(output),
|
|
2782
|
-
...contents,
|
|
2783
|
-
};
|
|
2784
|
-
return response;
|
|
2785
|
-
};
|
|
2786
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
2787
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
2788
|
-
const parsedOutput = {
|
|
2789
|
-
...output,
|
|
2790
|
-
body: await parseErrorBody(output.body, context),
|
|
2791
|
-
};
|
|
2792
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2793
|
-
switch (errorCode) {
|
|
2794
|
-
case "InvalidInputException":
|
|
2795
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
2796
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2797
|
-
case "ResourceNotFoundException":
|
|
2798
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
2799
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2800
|
-
default:
|
|
2801
|
-
const parsedBody = parsedOutput.body;
|
|
2802
|
-
return throwDefaultError({
|
|
2803
|
-
output,
|
|
2804
|
-
parsedBody,
|
|
2805
|
-
errorCode,
|
|
2806
|
-
});
|
|
2807
|
-
}
|
|
2808
|
-
};
|
|
2809
|
-
const de_UpdateDatasetGroupCommand = async (output, context) => {
|
|
2810
|
-
if (output.statusCode >= 300) {
|
|
2811
|
-
return de_UpdateDatasetGroupCommandError(output, context);
|
|
2812
|
-
}
|
|
2813
|
-
const data = await parseBody(output.body, context);
|
|
2814
|
-
let contents = {};
|
|
2815
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2816
|
-
const response = {
|
|
2817
|
-
$metadata: deserializeMetadata(output),
|
|
2818
|
-
...contents,
|
|
2819
|
-
};
|
|
2820
|
-
return response;
|
|
2821
|
-
};
|
|
2822
|
-
exports.de_UpdateDatasetGroupCommand = de_UpdateDatasetGroupCommand;
|
|
2823
|
-
const de_UpdateDatasetGroupCommandError = async (output, context) => {
|
|
2824
|
-
const parsedOutput = {
|
|
2825
|
-
...output,
|
|
2826
|
-
body: await parseErrorBody(output.body, context),
|
|
2827
|
-
};
|
|
2828
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2829
|
-
switch (errorCode) {
|
|
2830
|
-
case "InvalidInputException":
|
|
2831
|
-
case "com.amazonaws.forecast#InvalidInputException":
|
|
2832
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2833
|
-
case "ResourceInUseException":
|
|
2834
|
-
case "com.amazonaws.forecast#ResourceInUseException":
|
|
2835
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2836
|
-
case "ResourceNotFoundException":
|
|
2837
|
-
case "com.amazonaws.forecast#ResourceNotFoundException":
|
|
2838
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2839
|
-
default:
|
|
2840
|
-
const parsedBody = parsedOutput.body;
|
|
2841
|
-
return throwDefaultError({
|
|
2842
|
-
output,
|
|
2843
|
-
parsedBody,
|
|
2844
|
-
errorCode,
|
|
2845
|
-
});
|
|
2846
|
-
}
|
|
2847
|
-
};
|
|
2848
|
-
const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
|
|
2849
|
-
const body = parsedOutput.body;
|
|
2850
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2851
|
-
const exception = new models_0_1.InvalidInputException({
|
|
2852
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2853
|
-
...deserialized,
|
|
2854
|
-
});
|
|
2855
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2856
|
-
};
|
|
2857
|
-
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
2858
|
-
const body = parsedOutput.body;
|
|
2859
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2860
|
-
const exception = new models_0_1.InvalidNextTokenException({
|
|
2861
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2862
|
-
...deserialized,
|
|
2863
|
-
});
|
|
2864
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2865
|
-
};
|
|
2866
|
-
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2867
|
-
const body = parsedOutput.body;
|
|
2868
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2869
|
-
const exception = new models_0_1.LimitExceededException({
|
|
2870
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2871
|
-
...deserialized,
|
|
2872
|
-
});
|
|
2873
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2874
|
-
};
|
|
2875
|
-
const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
2876
|
-
const body = parsedOutput.body;
|
|
2877
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2878
|
-
const exception = new models_0_1.ResourceAlreadyExistsException({
|
|
2879
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2880
|
-
...deserialized,
|
|
2881
|
-
});
|
|
2882
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2883
|
-
};
|
|
2884
|
-
const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
2885
|
-
const body = parsedOutput.body;
|
|
2886
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2887
|
-
const exception = new models_0_1.ResourceInUseException({
|
|
2888
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2889
|
-
...deserialized,
|
|
2890
|
-
});
|
|
2891
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2892
|
-
};
|
|
2893
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2894
|
-
const body = parsedOutput.body;
|
|
2895
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2896
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
2897
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2898
|
-
...deserialized,
|
|
2899
|
-
});
|
|
2900
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2901
|
-
};
|
|
2902
|
-
const se_Action = (input, context) => {
|
|
2903
|
-
return (0, smithy_client_1.take)(input, {
|
|
2904
|
-
AttributeName: [],
|
|
2905
|
-
Operation: [],
|
|
2906
|
-
Value: smithy_client_1.serializeFloat,
|
|
2907
|
-
});
|
|
2908
|
-
};
|
|
2909
|
-
const se_ContinuousParameterRange = (input, context) => {
|
|
2910
|
-
return (0, smithy_client_1.take)(input, {
|
|
2911
|
-
MaxValue: smithy_client_1.serializeFloat,
|
|
2912
|
-
MinValue: smithy_client_1.serializeFloat,
|
|
2913
|
-
Name: [],
|
|
2914
|
-
ScalingType: [],
|
|
2915
|
-
});
|
|
2916
|
-
};
|
|
2917
|
-
const se_ContinuousParameterRanges = (input, context) => {
|
|
2918
|
-
return input
|
|
2919
|
-
.filter((e) => e != null)
|
|
2920
|
-
.map((entry) => {
|
|
2921
|
-
return se_ContinuousParameterRange(entry, context);
|
|
2922
|
-
});
|
|
2923
|
-
};
|
|
2924
|
-
const se_CreatePredictorRequest = (input, context) => {
|
|
2925
|
-
return (0, smithy_client_1.take)(input, {
|
|
2926
|
-
AlgorithmArn: [],
|
|
2927
|
-
AutoMLOverrideStrategy: [],
|
|
2928
|
-
EncryptionConfig: smithy_client_1._json,
|
|
2929
|
-
EvaluationParameters: smithy_client_1._json,
|
|
2930
|
-
FeaturizationConfig: smithy_client_1._json,
|
|
2931
|
-
ForecastHorizon: [],
|
|
2932
|
-
ForecastTypes: smithy_client_1._json,
|
|
2933
|
-
HPOConfig: (_) => se_HyperParameterTuningJobConfig(_, context),
|
|
2934
|
-
InputDataConfig: smithy_client_1._json,
|
|
2935
|
-
OptimizationMetric: [],
|
|
2936
|
-
PerformAutoML: [],
|
|
2937
|
-
PerformHPO: [],
|
|
2938
|
-
PredictorName: [],
|
|
2939
|
-
Tags: smithy_client_1._json,
|
|
2940
|
-
TrainingParameters: smithy_client_1._json,
|
|
2941
|
-
});
|
|
2942
|
-
};
|
|
2943
|
-
const se_CreateWhatIfForecastRequest = (input, context) => {
|
|
2944
|
-
return (0, smithy_client_1.take)(input, {
|
|
2945
|
-
Tags: smithy_client_1._json,
|
|
2946
|
-
TimeSeriesReplacementsDataSource: smithy_client_1._json,
|
|
2947
|
-
TimeSeriesTransformations: (_) => se_TimeSeriesTransformations(_, context),
|
|
2948
|
-
WhatIfAnalysisArn: [],
|
|
2949
|
-
WhatIfForecastName: [],
|
|
2950
|
-
});
|
|
2951
|
-
};
|
|
2952
|
-
const se_HyperParameterTuningJobConfig = (input, context) => {
|
|
2953
|
-
return (0, smithy_client_1.take)(input, {
|
|
2954
|
-
ParameterRanges: (_) => se_ParameterRanges(_, context),
|
|
2955
|
-
});
|
|
2956
|
-
};
|
|
2957
|
-
const se_ParameterRanges = (input, context) => {
|
|
2958
|
-
return (0, smithy_client_1.take)(input, {
|
|
2959
|
-
CategoricalParameterRanges: smithy_client_1._json,
|
|
2960
|
-
ContinuousParameterRanges: (_) => se_ContinuousParameterRanges(_, context),
|
|
2961
|
-
IntegerParameterRanges: smithy_client_1._json,
|
|
2962
|
-
});
|
|
2963
|
-
};
|
|
2964
|
-
const se_TimeSeriesTransformation = (input, context) => {
|
|
2965
|
-
return (0, smithy_client_1.take)(input, {
|
|
2966
|
-
Action: (_) => se_Action(_, context),
|
|
2967
|
-
TimeSeriesConditions: smithy_client_1._json,
|
|
2968
|
-
});
|
|
2969
|
-
};
|
|
2970
|
-
const se_TimeSeriesTransformations = (input, context) => {
|
|
2971
|
-
return input
|
|
2972
|
-
.filter((e) => e != null)
|
|
2973
|
-
.map((entry) => {
|
|
2974
|
-
return se_TimeSeriesTransformation(entry, context);
|
|
2975
|
-
});
|
|
2976
|
-
};
|
|
2977
|
-
const de_Action = (output, context) => {
|
|
2978
|
-
return (0, smithy_client_1.take)(output, {
|
|
2979
|
-
AttributeName: smithy_client_1.expectString,
|
|
2980
|
-
Operation: smithy_client_1.expectString,
|
|
2981
|
-
Value: smithy_client_1.limitedParseDouble,
|
|
2982
|
-
});
|
|
2983
|
-
};
|
|
2984
|
-
const de_Baseline = (output, context) => {
|
|
2985
|
-
return (0, smithy_client_1.take)(output, {
|
|
2986
|
-
PredictorBaseline: (_) => de_PredictorBaseline(_, context),
|
|
2987
|
-
});
|
|
2988
|
-
};
|
|
2989
|
-
const de_BaselineMetric = (output, context) => {
|
|
2990
|
-
return (0, smithy_client_1.take)(output, {
|
|
2991
|
-
Name: smithy_client_1.expectString,
|
|
2992
|
-
Value: smithy_client_1.limitedParseDouble,
|
|
2993
|
-
});
|
|
2994
|
-
};
|
|
2995
|
-
const de_BaselineMetrics = (output, context) => {
|
|
2996
|
-
const retVal = (output || [])
|
|
2997
|
-
.filter((e) => e != null)
|
|
2998
|
-
.map((entry) => {
|
|
2999
|
-
return de_BaselineMetric(entry, context);
|
|
3000
|
-
});
|
|
3001
|
-
return retVal;
|
|
3002
|
-
};
|
|
3003
|
-
const de_ContinuousParameterRange = (output, context) => {
|
|
3004
|
-
return (0, smithy_client_1.take)(output, {
|
|
3005
|
-
MaxValue: smithy_client_1.limitedParseDouble,
|
|
3006
|
-
MinValue: smithy_client_1.limitedParseDouble,
|
|
3007
|
-
Name: smithy_client_1.expectString,
|
|
3008
|
-
ScalingType: smithy_client_1.expectString,
|
|
3009
|
-
});
|
|
3010
|
-
};
|
|
3011
|
-
const de_ContinuousParameterRanges = (output, context) => {
|
|
3012
|
-
const retVal = (output || [])
|
|
3013
|
-
.filter((e) => e != null)
|
|
3014
|
-
.map((entry) => {
|
|
3015
|
-
return de_ContinuousParameterRange(entry, context);
|
|
3016
|
-
});
|
|
3017
|
-
return retVal;
|
|
3018
|
-
};
|
|
3019
|
-
const de_DatasetGroups = (output, context) => {
|
|
3020
|
-
const retVal = (output || [])
|
|
3021
|
-
.filter((e) => e != null)
|
|
3022
|
-
.map((entry) => {
|
|
3023
|
-
return de_DatasetGroupSummary(entry, context);
|
|
3024
|
-
});
|
|
3025
|
-
return retVal;
|
|
3026
|
-
};
|
|
3027
|
-
const de_DatasetGroupSummary = (output, context) => {
|
|
3028
|
-
return (0, smithy_client_1.take)(output, {
|
|
3029
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3030
|
-
DatasetGroupArn: smithy_client_1.expectString,
|
|
3031
|
-
DatasetGroupName: smithy_client_1.expectString,
|
|
3032
|
-
LastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3033
|
-
});
|
|
3034
|
-
};
|
|
3035
|
-
const de_DatasetImportJobs = (output, context) => {
|
|
3036
|
-
const retVal = (output || [])
|
|
3037
|
-
.filter((e) => e != null)
|
|
3038
|
-
.map((entry) => {
|
|
3039
|
-
return de_DatasetImportJobSummary(entry, context);
|
|
3040
|
-
});
|
|
3041
|
-
return retVal;
|
|
3042
|
-
};
|
|
3043
|
-
const de_DatasetImportJobSummary = (output, context) => {
|
|
3044
|
-
return (0, smithy_client_1.take)(output, {
|
|
3045
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3046
|
-
DataSource: smithy_client_1._json,
|
|
3047
|
-
DatasetImportJobArn: smithy_client_1.expectString,
|
|
3048
|
-
DatasetImportJobName: smithy_client_1.expectString,
|
|
3049
|
-
ImportMode: smithy_client_1.expectString,
|
|
3050
|
-
LastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3051
|
-
Message: smithy_client_1.expectString,
|
|
3052
|
-
Status: smithy_client_1.expectString,
|
|
3053
|
-
});
|
|
3054
|
-
};
|
|
3055
|
-
const de_Datasets = (output, context) => {
|
|
3056
|
-
const retVal = (output || [])
|
|
3057
|
-
.filter((e) => e != null)
|
|
3058
|
-
.map((entry) => {
|
|
3059
|
-
return de_DatasetSummary(entry, context);
|
|
3060
|
-
});
|
|
3061
|
-
return retVal;
|
|
3062
|
-
};
|
|
3063
|
-
const de_DatasetSummary = (output, context) => {
|
|
3064
|
-
return (0, smithy_client_1.take)(output, {
|
|
3065
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3066
|
-
DatasetArn: smithy_client_1.expectString,
|
|
3067
|
-
DatasetName: smithy_client_1.expectString,
|
|
3068
|
-
DatasetType: smithy_client_1.expectString,
|
|
3069
|
-
Domain: smithy_client_1.expectString,
|
|
3070
|
-
LastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3071
|
-
});
|
|
3072
|
-
};
|
|
3073
|
-
const de_DescribeAutoPredictorResponse = (output, context) => {
|
|
3074
|
-
return (0, smithy_client_1.take)(output, {
|
|
3075
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3076
|
-
DataConfig: smithy_client_1._json,
|
|
3077
|
-
DatasetImportJobArns: smithy_client_1._json,
|
|
3078
|
-
EncryptionConfig: smithy_client_1._json,
|
|
3079
|
-
EstimatedTimeRemainingInMinutes: smithy_client_1.expectLong,
|
|
3080
|
-
ExplainabilityInfo: smithy_client_1._json,
|
|
3081
|
-
ForecastDimensions: smithy_client_1._json,
|
|
3082
|
-
ForecastFrequency: smithy_client_1.expectString,
|
|
3083
|
-
ForecastHorizon: smithy_client_1.expectInt32,
|
|
3084
|
-
ForecastTypes: smithy_client_1._json,
|
|
3085
|
-
LastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3086
|
-
Message: smithy_client_1.expectString,
|
|
3087
|
-
MonitorInfo: smithy_client_1._json,
|
|
3088
|
-
OptimizationMetric: smithy_client_1.expectString,
|
|
3089
|
-
PredictorArn: smithy_client_1.expectString,
|
|
3090
|
-
PredictorName: smithy_client_1.expectString,
|
|
3091
|
-
ReferencePredictorSummary: smithy_client_1._json,
|
|
3092
|
-
Status: smithy_client_1.expectString,
|
|
3093
|
-
TimeAlignmentBoundary: smithy_client_1._json,
|
|
3094
|
-
});
|
|
3095
|
-
};
|
|
3096
|
-
const de_DescribeDatasetGroupResponse = (output, context) => {
|
|
3097
|
-
return (0, smithy_client_1.take)(output, {
|
|
3098
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3099
|
-
DatasetArns: smithy_client_1._json,
|
|
3100
|
-
DatasetGroupArn: smithy_client_1.expectString,
|
|
3101
|
-
DatasetGroupName: smithy_client_1.expectString,
|
|
3102
|
-
Domain: smithy_client_1.expectString,
|
|
3103
|
-
LastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3104
|
-
Status: smithy_client_1.expectString,
|
|
3105
|
-
});
|
|
3106
|
-
};
|
|
3107
|
-
const de_DescribeDatasetImportJobResponse = (output, context) => {
|
|
3108
|
-
return (0, smithy_client_1.take)(output, {
|
|
3109
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3110
|
-
DataSize: smithy_client_1.limitedParseDouble,
|
|
3111
|
-
DataSource: smithy_client_1._json,
|
|
3112
|
-
DatasetArn: smithy_client_1.expectString,
|
|
3113
|
-
DatasetImportJobArn: smithy_client_1.expectString,
|
|
3114
|
-
DatasetImportJobName: smithy_client_1.expectString,
|
|
3115
|
-
EstimatedTimeRemainingInMinutes: smithy_client_1.expectLong,
|
|
3116
|
-
FieldStatistics: (_) => de_FieldStatistics(_, context),
|
|
3117
|
-
Format: smithy_client_1.expectString,
|
|
3118
|
-
GeolocationFormat: smithy_client_1.expectString,
|
|
3119
|
-
ImportMode: smithy_client_1.expectString,
|
|
3120
|
-
LastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3121
|
-
Message: smithy_client_1.expectString,
|
|
3122
|
-
Status: smithy_client_1.expectString,
|
|
3123
|
-
TimeZone: smithy_client_1.expectString,
|
|
3124
|
-
TimestampFormat: smithy_client_1.expectString,
|
|
3125
|
-
UseGeolocationForTimeZone: smithy_client_1.expectBoolean,
|
|
3126
|
-
});
|
|
3127
|
-
};
|
|
3128
|
-
const de_DescribeDatasetResponse = (output, context) => {
|
|
3129
|
-
return (0, smithy_client_1.take)(output, {
|
|
3130
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3131
|
-
DataFrequency: smithy_client_1.expectString,
|
|
3132
|
-
DatasetArn: smithy_client_1.expectString,
|
|
3133
|
-
DatasetName: smithy_client_1.expectString,
|
|
3134
|
-
DatasetType: smithy_client_1.expectString,
|
|
3135
|
-
Domain: smithy_client_1.expectString,
|
|
3136
|
-
EncryptionConfig: smithy_client_1._json,
|
|
3137
|
-
LastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3138
|
-
Schema: smithy_client_1._json,
|
|
3139
|
-
Status: smithy_client_1.expectString,
|
|
3140
|
-
});
|
|
3141
|
-
};
|
|
3142
|
-
const de_DescribeExplainabilityExportResponse = (output, context) => {
|
|
3143
|
-
return (0, smithy_client_1.take)(output, {
|
|
3144
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3145
|
-
Destination: smithy_client_1._json,
|
|
3146
|
-
ExplainabilityArn: smithy_client_1.expectString,
|
|
3147
|
-
ExplainabilityExportArn: smithy_client_1.expectString,
|
|
3148
|
-
ExplainabilityExportName: smithy_client_1.expectString,
|
|
3149
|
-
Format: smithy_client_1.expectString,
|
|
3150
|
-
LastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3151
|
-
Message: smithy_client_1.expectString,
|
|
3152
|
-
Status: smithy_client_1.expectString,
|
|
3153
|
-
});
|
|
3154
|
-
};
|
|
3155
|
-
const de_DescribeExplainabilityResponse = (output, context) => {
|
|
3156
|
-
return (0, smithy_client_1.take)(output, {
|
|
3157
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3158
|
-
DataSource: smithy_client_1._json,
|
|
3159
|
-
EnableVisualization: smithy_client_1.expectBoolean,
|
|
3160
|
-
EndDateTime: smithy_client_1.expectString,
|
|
3161
|
-
EstimatedTimeRemainingInMinutes: smithy_client_1.expectLong,
|
|
3162
|
-
ExplainabilityArn: smithy_client_1.expectString,
|
|
3163
|
-
ExplainabilityConfig: smithy_client_1._json,
|
|
3164
|
-
ExplainabilityName: smithy_client_1.expectString,
|
|
3165
|
-
LastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3166
|
-
Message: smithy_client_1.expectString,
|
|
3167
|
-
ResourceArn: smithy_client_1.expectString,
|
|
3168
|
-
Schema: smithy_client_1._json,
|
|
3169
|
-
StartDateTime: smithy_client_1.expectString,
|
|
3170
|
-
Status: smithy_client_1.expectString,
|
|
3171
|
-
});
|
|
3172
|
-
};
|
|
3173
|
-
const de_DescribeForecastExportJobResponse = (output, context) => {
|
|
3174
|
-
return (0, smithy_client_1.take)(output, {
|
|
3175
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3176
|
-
Destination: smithy_client_1._json,
|
|
3177
|
-
ForecastArn: smithy_client_1.expectString,
|
|
3178
|
-
ForecastExportJobArn: smithy_client_1.expectString,
|
|
3179
|
-
ForecastExportJobName: smithy_client_1.expectString,
|
|
3180
|
-
Format: smithy_client_1.expectString,
|
|
3181
|
-
LastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3182
|
-
Message: smithy_client_1.expectString,
|
|
3183
|
-
Status: smithy_client_1.expectString,
|
|
3184
|
-
});
|
|
3185
|
-
};
|
|
3186
|
-
const de_DescribeForecastResponse = (output, context) => {
|
|
3187
|
-
return (0, smithy_client_1.take)(output, {
|
|
3188
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3189
|
-
DatasetGroupArn: smithy_client_1.expectString,
|
|
3190
|
-
EstimatedTimeRemainingInMinutes: smithy_client_1.expectLong,
|
|
3191
|
-
ForecastArn: smithy_client_1.expectString,
|
|
3192
|
-
ForecastName: smithy_client_1.expectString,
|
|
3193
|
-
ForecastTypes: smithy_client_1._json,
|
|
3194
|
-
LastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3195
|
-
Message: smithy_client_1.expectString,
|
|
3196
|
-
PredictorArn: smithy_client_1.expectString,
|
|
3197
|
-
Status: smithy_client_1.expectString,
|
|
3198
|
-
TimeSeriesSelector: smithy_client_1._json,
|
|
3199
|
-
});
|
|
3200
|
-
};
|
|
3201
|
-
const de_DescribeMonitorResponse = (output, context) => {
|
|
3202
|
-
return (0, smithy_client_1.take)(output, {
|
|
3203
|
-
Baseline: (_) => de_Baseline(_, context),
|
|
3204
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3205
|
-
EstimatedEvaluationTimeRemainingInMinutes: smithy_client_1.expectLong,
|
|
3206
|
-
LastEvaluationState: smithy_client_1.expectString,
|
|
3207
|
-
LastEvaluationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3208
|
-
LastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3209
|
-
Message: smithy_client_1.expectString,
|
|
3210
|
-
MonitorArn: smithy_client_1.expectString,
|
|
3211
|
-
MonitorName: smithy_client_1.expectString,
|
|
3212
|
-
ResourceArn: smithy_client_1.expectString,
|
|
3213
|
-
Status: smithy_client_1.expectString,
|
|
3214
|
-
});
|
|
3215
|
-
};
|
|
3216
|
-
const de_DescribePredictorBacktestExportJobResponse = (output, context) => {
|
|
3217
|
-
return (0, smithy_client_1.take)(output, {
|
|
3218
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3219
|
-
Destination: smithy_client_1._json,
|
|
3220
|
-
Format: smithy_client_1.expectString,
|
|
3221
|
-
LastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3222
|
-
Message: smithy_client_1.expectString,
|
|
3223
|
-
PredictorArn: smithy_client_1.expectString,
|
|
3224
|
-
PredictorBacktestExportJobArn: smithy_client_1.expectString,
|
|
3225
|
-
PredictorBacktestExportJobName: smithy_client_1.expectString,
|
|
3226
|
-
Status: smithy_client_1.expectString,
|
|
3227
|
-
});
|
|
3228
|
-
};
|
|
3229
|
-
const de_DescribePredictorResponse = (output, context) => {
|
|
3230
|
-
return (0, smithy_client_1.take)(output, {
|
|
3231
|
-
AlgorithmArn: smithy_client_1.expectString,
|
|
3232
|
-
AutoMLAlgorithmArns: smithy_client_1._json,
|
|
3233
|
-
AutoMLOverrideStrategy: smithy_client_1.expectString,
|
|
3234
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3235
|
-
DatasetImportJobArns: smithy_client_1._json,
|
|
3236
|
-
EncryptionConfig: smithy_client_1._json,
|
|
3237
|
-
EstimatedTimeRemainingInMinutes: smithy_client_1.expectLong,
|
|
3238
|
-
EvaluationParameters: smithy_client_1._json,
|
|
3239
|
-
FeaturizationConfig: smithy_client_1._json,
|
|
3240
|
-
ForecastHorizon: smithy_client_1.expectInt32,
|
|
3241
|
-
ForecastTypes: smithy_client_1._json,
|
|
3242
|
-
HPOConfig: (_) => de_HyperParameterTuningJobConfig(_, context),
|
|
3243
|
-
InputDataConfig: smithy_client_1._json,
|
|
3244
|
-
IsAutoPredictor: smithy_client_1.expectBoolean,
|
|
3245
|
-
LastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3246
|
-
Message: smithy_client_1.expectString,
|
|
3247
|
-
OptimizationMetric: smithy_client_1.expectString,
|
|
3248
|
-
PerformAutoML: smithy_client_1.expectBoolean,
|
|
3249
|
-
PerformHPO: smithy_client_1.expectBoolean,
|
|
3250
|
-
PredictorArn: smithy_client_1.expectString,
|
|
3251
|
-
PredictorExecutionDetails: (_) => de_PredictorExecutionDetails(_, context),
|
|
3252
|
-
PredictorName: smithy_client_1.expectString,
|
|
3253
|
-
Status: smithy_client_1.expectString,
|
|
3254
|
-
TrainingParameters: smithy_client_1._json,
|
|
3255
|
-
});
|
|
3256
|
-
};
|
|
3257
|
-
const de_DescribeWhatIfAnalysisResponse = (output, context) => {
|
|
3258
|
-
return (0, smithy_client_1.take)(output, {
|
|
3259
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3260
|
-
EstimatedTimeRemainingInMinutes: smithy_client_1.expectLong,
|
|
3261
|
-
ForecastArn: smithy_client_1.expectString,
|
|
3262
|
-
LastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3263
|
-
Message: smithy_client_1.expectString,
|
|
3264
|
-
Status: smithy_client_1.expectString,
|
|
3265
|
-
TimeSeriesSelector: smithy_client_1._json,
|
|
3266
|
-
WhatIfAnalysisArn: smithy_client_1.expectString,
|
|
3267
|
-
WhatIfAnalysisName: smithy_client_1.expectString,
|
|
3268
|
-
});
|
|
3269
|
-
};
|
|
3270
|
-
const de_DescribeWhatIfForecastExportResponse = (output, context) => {
|
|
3271
|
-
return (0, smithy_client_1.take)(output, {
|
|
3272
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3273
|
-
Destination: smithy_client_1._json,
|
|
3274
|
-
EstimatedTimeRemainingInMinutes: smithy_client_1.expectLong,
|
|
3275
|
-
Format: smithy_client_1.expectString,
|
|
3276
|
-
LastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3277
|
-
Message: smithy_client_1.expectString,
|
|
3278
|
-
Status: smithy_client_1.expectString,
|
|
3279
|
-
WhatIfForecastArns: smithy_client_1._json,
|
|
3280
|
-
WhatIfForecastExportArn: smithy_client_1.expectString,
|
|
3281
|
-
WhatIfForecastExportName: smithy_client_1.expectString,
|
|
3282
|
-
});
|
|
3283
|
-
};
|
|
3284
|
-
const de_DescribeWhatIfForecastResponse = (output, context) => {
|
|
3285
|
-
return (0, smithy_client_1.take)(output, {
|
|
3286
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3287
|
-
EstimatedTimeRemainingInMinutes: smithy_client_1.expectLong,
|
|
3288
|
-
ForecastTypes: smithy_client_1._json,
|
|
3289
|
-
LastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3290
|
-
Message: smithy_client_1.expectString,
|
|
3291
|
-
Status: smithy_client_1.expectString,
|
|
3292
|
-
TimeSeriesReplacementsDataSource: smithy_client_1._json,
|
|
3293
|
-
TimeSeriesTransformations: (_) => de_TimeSeriesTransformations(_, context),
|
|
3294
|
-
WhatIfAnalysisArn: smithy_client_1.expectString,
|
|
3295
|
-
WhatIfForecastArn: smithy_client_1.expectString,
|
|
3296
|
-
WhatIfForecastName: smithy_client_1.expectString,
|
|
3297
|
-
});
|
|
3298
|
-
};
|
|
3299
|
-
const de_ErrorMetric = (output, context) => {
|
|
3300
|
-
return (0, smithy_client_1.take)(output, {
|
|
3301
|
-
ForecastType: smithy_client_1.expectString,
|
|
3302
|
-
MAPE: smithy_client_1.limitedParseDouble,
|
|
3303
|
-
MASE: smithy_client_1.limitedParseDouble,
|
|
3304
|
-
RMSE: smithy_client_1.limitedParseDouble,
|
|
3305
|
-
WAPE: smithy_client_1.limitedParseDouble,
|
|
3306
|
-
});
|
|
3307
|
-
};
|
|
3308
|
-
const de_ErrorMetrics = (output, context) => {
|
|
3309
|
-
const retVal = (output || [])
|
|
3310
|
-
.filter((e) => e != null)
|
|
3311
|
-
.map((entry) => {
|
|
3312
|
-
return de_ErrorMetric(entry, context);
|
|
3313
|
-
});
|
|
3314
|
-
return retVal;
|
|
3315
|
-
};
|
|
3316
|
-
const de_EvaluationResult = (output, context) => {
|
|
3317
|
-
return (0, smithy_client_1.take)(output, {
|
|
3318
|
-
AlgorithmArn: smithy_client_1.expectString,
|
|
3319
|
-
TestWindows: (_) => de_TestWindows(_, context),
|
|
3320
|
-
});
|
|
3321
|
-
};
|
|
3322
|
-
const de_Explainabilities = (output, context) => {
|
|
3323
|
-
const retVal = (output || [])
|
|
3324
|
-
.filter((e) => e != null)
|
|
3325
|
-
.map((entry) => {
|
|
3326
|
-
return de_ExplainabilitySummary(entry, context);
|
|
3327
|
-
});
|
|
3328
|
-
return retVal;
|
|
3329
|
-
};
|
|
3330
|
-
const de_ExplainabilityExports = (output, context) => {
|
|
3331
|
-
const retVal = (output || [])
|
|
3332
|
-
.filter((e) => e != null)
|
|
3333
|
-
.map((entry) => {
|
|
3334
|
-
return de_ExplainabilityExportSummary(entry, context);
|
|
3335
|
-
});
|
|
3336
|
-
return retVal;
|
|
3337
|
-
};
|
|
3338
|
-
const de_ExplainabilityExportSummary = (output, context) => {
|
|
3339
|
-
return (0, smithy_client_1.take)(output, {
|
|
3340
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3341
|
-
Destination: smithy_client_1._json,
|
|
3342
|
-
ExplainabilityExportArn: smithy_client_1.expectString,
|
|
3343
|
-
ExplainabilityExportName: smithy_client_1.expectString,
|
|
3344
|
-
LastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3345
|
-
Message: smithy_client_1.expectString,
|
|
3346
|
-
Status: smithy_client_1.expectString,
|
|
3347
|
-
});
|
|
3348
|
-
};
|
|
3349
|
-
const de_ExplainabilitySummary = (output, context) => {
|
|
3350
|
-
return (0, smithy_client_1.take)(output, {
|
|
3351
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3352
|
-
ExplainabilityArn: smithy_client_1.expectString,
|
|
3353
|
-
ExplainabilityConfig: smithy_client_1._json,
|
|
3354
|
-
ExplainabilityName: smithy_client_1.expectString,
|
|
3355
|
-
LastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3356
|
-
Message: smithy_client_1.expectString,
|
|
3357
|
-
ResourceArn: smithy_client_1.expectString,
|
|
3358
|
-
Status: smithy_client_1.expectString,
|
|
3359
|
-
});
|
|
3360
|
-
};
|
|
3361
|
-
const de_FieldStatistics = (output, context) => {
|
|
3362
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3363
|
-
if (value === null) {
|
|
3364
|
-
return acc;
|
|
3365
|
-
}
|
|
3366
|
-
acc[key] = de_Statistics(value, context);
|
|
3367
|
-
return acc;
|
|
3368
|
-
}, {});
|
|
3369
|
-
};
|
|
3370
|
-
const de_ForecastExportJobs = (output, context) => {
|
|
3371
|
-
const retVal = (output || [])
|
|
3372
|
-
.filter((e) => e != null)
|
|
3373
|
-
.map((entry) => {
|
|
3374
|
-
return de_ForecastExportJobSummary(entry, context);
|
|
3375
|
-
});
|
|
3376
|
-
return retVal;
|
|
3377
|
-
};
|
|
3378
|
-
const de_ForecastExportJobSummary = (output, context) => {
|
|
3379
|
-
return (0, smithy_client_1.take)(output, {
|
|
3380
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3381
|
-
Destination: smithy_client_1._json,
|
|
3382
|
-
ForecastExportJobArn: smithy_client_1.expectString,
|
|
3383
|
-
ForecastExportJobName: smithy_client_1.expectString,
|
|
3384
|
-
LastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3385
|
-
Message: smithy_client_1.expectString,
|
|
3386
|
-
Status: smithy_client_1.expectString,
|
|
3387
|
-
});
|
|
3388
|
-
};
|
|
3389
|
-
const de_Forecasts = (output, context) => {
|
|
3390
|
-
const retVal = (output || [])
|
|
3391
|
-
.filter((e) => e != null)
|
|
3392
|
-
.map((entry) => {
|
|
3393
|
-
return de_ForecastSummary(entry, context);
|
|
3394
|
-
});
|
|
3395
|
-
return retVal;
|
|
3396
|
-
};
|
|
3397
|
-
const de_ForecastSummary = (output, context) => {
|
|
3398
|
-
return (0, smithy_client_1.take)(output, {
|
|
3399
|
-
CreatedUsingAutoPredictor: smithy_client_1.expectBoolean,
|
|
3400
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3401
|
-
DatasetGroupArn: smithy_client_1.expectString,
|
|
3402
|
-
ForecastArn: smithy_client_1.expectString,
|
|
3403
|
-
ForecastName: smithy_client_1.expectString,
|
|
3404
|
-
LastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3405
|
-
Message: smithy_client_1.expectString,
|
|
3406
|
-
PredictorArn: smithy_client_1.expectString,
|
|
3407
|
-
Status: smithy_client_1.expectString,
|
|
3408
|
-
});
|
|
3409
|
-
};
|
|
3410
|
-
const de_GetAccuracyMetricsResponse = (output, context) => {
|
|
3411
|
-
return (0, smithy_client_1.take)(output, {
|
|
3412
|
-
AutoMLOverrideStrategy: smithy_client_1.expectString,
|
|
3413
|
-
IsAutoPredictor: smithy_client_1.expectBoolean,
|
|
3414
|
-
OptimizationMetric: smithy_client_1.expectString,
|
|
3415
|
-
PredictorEvaluationResults: (_) => de_PredictorEvaluationResults(_, context),
|
|
3416
|
-
});
|
|
3417
|
-
};
|
|
3418
|
-
const de_HyperParameterTuningJobConfig = (output, context) => {
|
|
3419
|
-
return (0, smithy_client_1.take)(output, {
|
|
3420
|
-
ParameterRanges: (_) => de_ParameterRanges(_, context),
|
|
3421
|
-
});
|
|
3422
|
-
};
|
|
3423
|
-
const de_ListDatasetGroupsResponse = (output, context) => {
|
|
3424
|
-
return (0, smithy_client_1.take)(output, {
|
|
3425
|
-
DatasetGroups: (_) => de_DatasetGroups(_, context),
|
|
3426
|
-
NextToken: smithy_client_1.expectString,
|
|
3427
|
-
});
|
|
3428
|
-
};
|
|
3429
|
-
const de_ListDatasetImportJobsResponse = (output, context) => {
|
|
3430
|
-
return (0, smithy_client_1.take)(output, {
|
|
3431
|
-
DatasetImportJobs: (_) => de_DatasetImportJobs(_, context),
|
|
3432
|
-
NextToken: smithy_client_1.expectString,
|
|
3433
|
-
});
|
|
3434
|
-
};
|
|
3435
|
-
const de_ListDatasetsResponse = (output, context) => {
|
|
3436
|
-
return (0, smithy_client_1.take)(output, {
|
|
3437
|
-
Datasets: (_) => de_Datasets(_, context),
|
|
3438
|
-
NextToken: smithy_client_1.expectString,
|
|
3439
|
-
});
|
|
3440
|
-
};
|
|
3441
|
-
const de_ListExplainabilitiesResponse = (output, context) => {
|
|
3442
|
-
return (0, smithy_client_1.take)(output, {
|
|
3443
|
-
Explainabilities: (_) => de_Explainabilities(_, context),
|
|
3444
|
-
NextToken: smithy_client_1.expectString,
|
|
3445
|
-
});
|
|
3446
|
-
};
|
|
3447
|
-
const de_ListExplainabilityExportsResponse = (output, context) => {
|
|
3448
|
-
return (0, smithy_client_1.take)(output, {
|
|
3449
|
-
ExplainabilityExports: (_) => de_ExplainabilityExports(_, context),
|
|
3450
|
-
NextToken: smithy_client_1.expectString,
|
|
3451
|
-
});
|
|
3452
|
-
};
|
|
3453
|
-
const de_ListForecastExportJobsResponse = (output, context) => {
|
|
3454
|
-
return (0, smithy_client_1.take)(output, {
|
|
3455
|
-
ForecastExportJobs: (_) => de_ForecastExportJobs(_, context),
|
|
3456
|
-
NextToken: smithy_client_1.expectString,
|
|
3457
|
-
});
|
|
3458
|
-
};
|
|
3459
|
-
const de_ListForecastsResponse = (output, context) => {
|
|
3460
|
-
return (0, smithy_client_1.take)(output, {
|
|
3461
|
-
Forecasts: (_) => de_Forecasts(_, context),
|
|
3462
|
-
NextToken: smithy_client_1.expectString,
|
|
3463
|
-
});
|
|
3464
|
-
};
|
|
3465
|
-
const de_ListMonitorEvaluationsResponse = (output, context) => {
|
|
3466
|
-
return (0, smithy_client_1.take)(output, {
|
|
3467
|
-
NextToken: smithy_client_1.expectString,
|
|
3468
|
-
PredictorMonitorEvaluations: (_) => de_PredictorMonitorEvaluations(_, context),
|
|
3469
|
-
});
|
|
3470
|
-
};
|
|
3471
|
-
const de_ListMonitorsResponse = (output, context) => {
|
|
3472
|
-
return (0, smithy_client_1.take)(output, {
|
|
3473
|
-
Monitors: (_) => de_Monitors(_, context),
|
|
3474
|
-
NextToken: smithy_client_1.expectString,
|
|
3475
|
-
});
|
|
3476
|
-
};
|
|
3477
|
-
const de_ListPredictorBacktestExportJobsResponse = (output, context) => {
|
|
3478
|
-
return (0, smithy_client_1.take)(output, {
|
|
3479
|
-
NextToken: smithy_client_1.expectString,
|
|
3480
|
-
PredictorBacktestExportJobs: (_) => de_PredictorBacktestExportJobs(_, context),
|
|
3481
|
-
});
|
|
3482
|
-
};
|
|
3483
|
-
const de_ListPredictorsResponse = (output, context) => {
|
|
3484
|
-
return (0, smithy_client_1.take)(output, {
|
|
3485
|
-
NextToken: smithy_client_1.expectString,
|
|
3486
|
-
Predictors: (_) => de_Predictors(_, context),
|
|
3487
|
-
});
|
|
3488
|
-
};
|
|
3489
|
-
const de_ListWhatIfAnalysesResponse = (output, context) => {
|
|
3490
|
-
return (0, smithy_client_1.take)(output, {
|
|
3491
|
-
NextToken: smithy_client_1.expectString,
|
|
3492
|
-
WhatIfAnalyses: (_) => de_WhatIfAnalyses(_, context),
|
|
3493
|
-
});
|
|
3494
|
-
};
|
|
3495
|
-
const de_ListWhatIfForecastExportsResponse = (output, context) => {
|
|
3496
|
-
return (0, smithy_client_1.take)(output, {
|
|
3497
|
-
NextToken: smithy_client_1.expectString,
|
|
3498
|
-
WhatIfForecastExports: (_) => de_WhatIfForecastExports(_, context),
|
|
3499
|
-
});
|
|
3500
|
-
};
|
|
3501
|
-
const de_ListWhatIfForecastsResponse = (output, context) => {
|
|
3502
|
-
return (0, smithy_client_1.take)(output, {
|
|
3503
|
-
NextToken: smithy_client_1.expectString,
|
|
3504
|
-
WhatIfForecasts: (_) => de_WhatIfForecasts(_, context),
|
|
3505
|
-
});
|
|
3506
|
-
};
|
|
3507
|
-
const de_MetricResult = (output, context) => {
|
|
3508
|
-
return (0, smithy_client_1.take)(output, {
|
|
3509
|
-
MetricName: smithy_client_1.expectString,
|
|
3510
|
-
MetricValue: smithy_client_1.limitedParseDouble,
|
|
3511
|
-
});
|
|
3512
|
-
};
|
|
3513
|
-
const de_MetricResults = (output, context) => {
|
|
3514
|
-
const retVal = (output || [])
|
|
3515
|
-
.filter((e) => e != null)
|
|
3516
|
-
.map((entry) => {
|
|
3517
|
-
return de_MetricResult(entry, context);
|
|
3518
|
-
});
|
|
3519
|
-
return retVal;
|
|
3520
|
-
};
|
|
3521
|
-
const de_Metrics = (output, context) => {
|
|
3522
|
-
return (0, smithy_client_1.take)(output, {
|
|
3523
|
-
AverageWeightedQuantileLoss: smithy_client_1.limitedParseDouble,
|
|
3524
|
-
ErrorMetrics: (_) => de_ErrorMetrics(_, context),
|
|
3525
|
-
RMSE: smithy_client_1.limitedParseDouble,
|
|
3526
|
-
WeightedQuantileLosses: (_) => de_WeightedQuantileLosses(_, context),
|
|
3527
|
-
});
|
|
3528
|
-
};
|
|
3529
|
-
const de_Monitors = (output, context) => {
|
|
3530
|
-
const retVal = (output || [])
|
|
3531
|
-
.filter((e) => e != null)
|
|
3532
|
-
.map((entry) => {
|
|
3533
|
-
return de_MonitorSummary(entry, context);
|
|
3534
|
-
});
|
|
3535
|
-
return retVal;
|
|
3536
|
-
};
|
|
3537
|
-
const de_MonitorSummary = (output, context) => {
|
|
3538
|
-
return (0, smithy_client_1.take)(output, {
|
|
3539
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3540
|
-
LastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3541
|
-
MonitorArn: smithy_client_1.expectString,
|
|
3542
|
-
MonitorName: smithy_client_1.expectString,
|
|
3543
|
-
ResourceArn: smithy_client_1.expectString,
|
|
3544
|
-
Status: smithy_client_1.expectString,
|
|
3545
|
-
});
|
|
3546
|
-
};
|
|
3547
|
-
const de_ParameterRanges = (output, context) => {
|
|
3548
|
-
return (0, smithy_client_1.take)(output, {
|
|
3549
|
-
CategoricalParameterRanges: smithy_client_1._json,
|
|
3550
|
-
ContinuousParameterRanges: (_) => de_ContinuousParameterRanges(_, context),
|
|
3551
|
-
IntegerParameterRanges: smithy_client_1._json,
|
|
3552
|
-
});
|
|
3553
|
-
};
|
|
3554
|
-
const de_PredictorBacktestExportJobs = (output, context) => {
|
|
3555
|
-
const retVal = (output || [])
|
|
3556
|
-
.filter((e) => e != null)
|
|
3557
|
-
.map((entry) => {
|
|
3558
|
-
return de_PredictorBacktestExportJobSummary(entry, context);
|
|
3559
|
-
});
|
|
3560
|
-
return retVal;
|
|
3561
|
-
};
|
|
3562
|
-
const de_PredictorBacktestExportJobSummary = (output, context) => {
|
|
3563
|
-
return (0, smithy_client_1.take)(output, {
|
|
3564
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3565
|
-
Destination: smithy_client_1._json,
|
|
3566
|
-
LastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3567
|
-
Message: smithy_client_1.expectString,
|
|
3568
|
-
PredictorBacktestExportJobArn: smithy_client_1.expectString,
|
|
3569
|
-
PredictorBacktestExportJobName: smithy_client_1.expectString,
|
|
3570
|
-
Status: smithy_client_1.expectString,
|
|
3571
|
-
});
|
|
3572
|
-
};
|
|
3573
|
-
const de_PredictorBaseline = (output, context) => {
|
|
3574
|
-
return (0, smithy_client_1.take)(output, {
|
|
3575
|
-
BaselineMetrics: (_) => de_BaselineMetrics(_, context),
|
|
3576
|
-
});
|
|
3577
|
-
};
|
|
3578
|
-
const de_PredictorEvaluationResults = (output, context) => {
|
|
3579
|
-
const retVal = (output || [])
|
|
3580
|
-
.filter((e) => e != null)
|
|
3581
|
-
.map((entry) => {
|
|
3582
|
-
return de_EvaluationResult(entry, context);
|
|
3583
|
-
});
|
|
3584
|
-
return retVal;
|
|
3585
|
-
};
|
|
3586
|
-
const de_PredictorEvent = (output, context) => {
|
|
3587
|
-
return (0, smithy_client_1.take)(output, {
|
|
3588
|
-
Datetime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3589
|
-
Detail: smithy_client_1.expectString,
|
|
3590
|
-
});
|
|
3591
|
-
};
|
|
3592
|
-
const de_PredictorExecution = (output, context) => {
|
|
3593
|
-
return (0, smithy_client_1.take)(output, {
|
|
3594
|
-
AlgorithmArn: smithy_client_1.expectString,
|
|
3595
|
-
TestWindows: (_) => de_TestWindowDetails(_, context),
|
|
3596
|
-
});
|
|
3597
|
-
};
|
|
3598
|
-
const de_PredictorExecutionDetails = (output, context) => {
|
|
3599
|
-
return (0, smithy_client_1.take)(output, {
|
|
3600
|
-
PredictorExecutions: (_) => de_PredictorExecutions(_, context),
|
|
3601
|
-
});
|
|
3602
|
-
};
|
|
3603
|
-
const de_PredictorExecutions = (output, context) => {
|
|
3604
|
-
const retVal = (output || [])
|
|
3605
|
-
.filter((e) => e != null)
|
|
3606
|
-
.map((entry) => {
|
|
3607
|
-
return de_PredictorExecution(entry, context);
|
|
3608
|
-
});
|
|
3609
|
-
return retVal;
|
|
3610
|
-
};
|
|
3611
|
-
const de_PredictorMonitorEvaluation = (output, context) => {
|
|
3612
|
-
return (0, smithy_client_1.take)(output, {
|
|
3613
|
-
EvaluationState: smithy_client_1.expectString,
|
|
3614
|
-
EvaluationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3615
|
-
Message: smithy_client_1.expectString,
|
|
3616
|
-
MetricResults: (_) => de_MetricResults(_, context),
|
|
3617
|
-
MonitorArn: smithy_client_1.expectString,
|
|
3618
|
-
MonitorDataSource: smithy_client_1._json,
|
|
3619
|
-
NumItemsEvaluated: smithy_client_1.expectLong,
|
|
3620
|
-
PredictorEvent: (_) => de_PredictorEvent(_, context),
|
|
3621
|
-
ResourceArn: smithy_client_1.expectString,
|
|
3622
|
-
WindowEndDatetime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3623
|
-
WindowStartDatetime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3624
|
-
});
|
|
3625
|
-
};
|
|
3626
|
-
const de_PredictorMonitorEvaluations = (output, context) => {
|
|
3627
|
-
const retVal = (output || [])
|
|
3628
|
-
.filter((e) => e != null)
|
|
3629
|
-
.map((entry) => {
|
|
3630
|
-
return de_PredictorMonitorEvaluation(entry, context);
|
|
3631
|
-
});
|
|
3632
|
-
return retVal;
|
|
3633
|
-
};
|
|
3634
|
-
const de_Predictors = (output, context) => {
|
|
3635
|
-
const retVal = (output || [])
|
|
3636
|
-
.filter((e) => e != null)
|
|
3637
|
-
.map((entry) => {
|
|
3638
|
-
return de_PredictorSummary(entry, context);
|
|
3639
|
-
});
|
|
3640
|
-
return retVal;
|
|
3641
|
-
};
|
|
3642
|
-
const de_PredictorSummary = (output, context) => {
|
|
3643
|
-
return (0, smithy_client_1.take)(output, {
|
|
3644
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3645
|
-
DatasetGroupArn: smithy_client_1.expectString,
|
|
3646
|
-
IsAutoPredictor: smithy_client_1.expectBoolean,
|
|
3647
|
-
LastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3648
|
-
Message: smithy_client_1.expectString,
|
|
3649
|
-
PredictorArn: smithy_client_1.expectString,
|
|
3650
|
-
PredictorName: smithy_client_1.expectString,
|
|
3651
|
-
ReferencePredictorSummary: smithy_client_1._json,
|
|
3652
|
-
Status: smithy_client_1.expectString,
|
|
3653
|
-
});
|
|
3654
|
-
};
|
|
3655
|
-
const de_Statistics = (output, context) => {
|
|
3656
|
-
return (0, smithy_client_1.take)(output, {
|
|
3657
|
-
Avg: smithy_client_1.limitedParseDouble,
|
|
3658
|
-
Count: smithy_client_1.expectInt32,
|
|
3659
|
-
CountDistinct: smithy_client_1.expectInt32,
|
|
3660
|
-
CountDistinctLong: smithy_client_1.expectLong,
|
|
3661
|
-
CountLong: smithy_client_1.expectLong,
|
|
3662
|
-
CountNan: smithy_client_1.expectInt32,
|
|
3663
|
-
CountNanLong: smithy_client_1.expectLong,
|
|
3664
|
-
CountNull: smithy_client_1.expectInt32,
|
|
3665
|
-
CountNullLong: smithy_client_1.expectLong,
|
|
3666
|
-
Max: smithy_client_1.expectString,
|
|
3667
|
-
Min: smithy_client_1.expectString,
|
|
3668
|
-
Stddev: smithy_client_1.limitedParseDouble,
|
|
3669
|
-
});
|
|
3670
|
-
};
|
|
3671
|
-
const de_TestWindowDetails = (output, context) => {
|
|
3672
|
-
const retVal = (output || [])
|
|
3673
|
-
.filter((e) => e != null)
|
|
3674
|
-
.map((entry) => {
|
|
3675
|
-
return de_TestWindowSummary(entry, context);
|
|
3676
|
-
});
|
|
3677
|
-
return retVal;
|
|
3678
|
-
};
|
|
3679
|
-
const de_TestWindows = (output, context) => {
|
|
3680
|
-
const retVal = (output || [])
|
|
3681
|
-
.filter((e) => e != null)
|
|
3682
|
-
.map((entry) => {
|
|
3683
|
-
return de_WindowSummary(entry, context);
|
|
3684
|
-
});
|
|
3685
|
-
return retVal;
|
|
3686
|
-
};
|
|
3687
|
-
const de_TestWindowSummary = (output, context) => {
|
|
3688
|
-
return (0, smithy_client_1.take)(output, {
|
|
3689
|
-
Message: smithy_client_1.expectString,
|
|
3690
|
-
Status: smithy_client_1.expectString,
|
|
3691
|
-
TestWindowEnd: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3692
|
-
TestWindowStart: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3693
|
-
});
|
|
3694
|
-
};
|
|
3695
|
-
const de_TimeSeriesTransformation = (output, context) => {
|
|
3696
|
-
return (0, smithy_client_1.take)(output, {
|
|
3697
|
-
Action: (_) => de_Action(_, context),
|
|
3698
|
-
TimeSeriesConditions: smithy_client_1._json,
|
|
3699
|
-
});
|
|
3700
|
-
};
|
|
3701
|
-
const de_TimeSeriesTransformations = (output, context) => {
|
|
3702
|
-
const retVal = (output || [])
|
|
3703
|
-
.filter((e) => e != null)
|
|
3704
|
-
.map((entry) => {
|
|
3705
|
-
return de_TimeSeriesTransformation(entry, context);
|
|
3706
|
-
});
|
|
3707
|
-
return retVal;
|
|
3708
|
-
};
|
|
3709
|
-
const de_WeightedQuantileLoss = (output, context) => {
|
|
3710
|
-
return (0, smithy_client_1.take)(output, {
|
|
3711
|
-
LossValue: smithy_client_1.limitedParseDouble,
|
|
3712
|
-
Quantile: smithy_client_1.limitedParseDouble,
|
|
3713
|
-
});
|
|
3714
|
-
};
|
|
3715
|
-
const de_WeightedQuantileLosses = (output, context) => {
|
|
3716
|
-
const retVal = (output || [])
|
|
3717
|
-
.filter((e) => e != null)
|
|
3718
|
-
.map((entry) => {
|
|
3719
|
-
return de_WeightedQuantileLoss(entry, context);
|
|
3720
|
-
});
|
|
3721
|
-
return retVal;
|
|
3722
|
-
};
|
|
3723
|
-
const de_WhatIfAnalyses = (output, context) => {
|
|
3724
|
-
const retVal = (output || [])
|
|
3725
|
-
.filter((e) => e != null)
|
|
3726
|
-
.map((entry) => {
|
|
3727
|
-
return de_WhatIfAnalysisSummary(entry, context);
|
|
3728
|
-
});
|
|
3729
|
-
return retVal;
|
|
3730
|
-
};
|
|
3731
|
-
const de_WhatIfAnalysisSummary = (output, context) => {
|
|
3732
|
-
return (0, smithy_client_1.take)(output, {
|
|
3733
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3734
|
-
ForecastArn: smithy_client_1.expectString,
|
|
3735
|
-
LastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3736
|
-
Message: smithy_client_1.expectString,
|
|
3737
|
-
Status: smithy_client_1.expectString,
|
|
3738
|
-
WhatIfAnalysisArn: smithy_client_1.expectString,
|
|
3739
|
-
WhatIfAnalysisName: smithy_client_1.expectString,
|
|
3740
|
-
});
|
|
3741
|
-
};
|
|
3742
|
-
const de_WhatIfForecastExports = (output, context) => {
|
|
3743
|
-
const retVal = (output || [])
|
|
3744
|
-
.filter((e) => e != null)
|
|
3745
|
-
.map((entry) => {
|
|
3746
|
-
return de_WhatIfForecastExportSummary(entry, context);
|
|
3747
|
-
});
|
|
3748
|
-
return retVal;
|
|
3749
|
-
};
|
|
3750
|
-
const de_WhatIfForecastExportSummary = (output, context) => {
|
|
3751
|
-
return (0, smithy_client_1.take)(output, {
|
|
3752
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3753
|
-
Destination: smithy_client_1._json,
|
|
3754
|
-
LastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3755
|
-
Message: smithy_client_1.expectString,
|
|
3756
|
-
Status: smithy_client_1.expectString,
|
|
3757
|
-
WhatIfForecastArns: smithy_client_1._json,
|
|
3758
|
-
WhatIfForecastExportArn: smithy_client_1.expectString,
|
|
3759
|
-
WhatIfForecastExportName: smithy_client_1.expectString,
|
|
3760
|
-
});
|
|
3761
|
-
};
|
|
3762
|
-
const de_WhatIfForecasts = (output, context) => {
|
|
3763
|
-
const retVal = (output || [])
|
|
3764
|
-
.filter((e) => e != null)
|
|
3765
|
-
.map((entry) => {
|
|
3766
|
-
return de_WhatIfForecastSummary(entry, context);
|
|
3767
|
-
});
|
|
3768
|
-
return retVal;
|
|
3769
|
-
};
|
|
3770
|
-
const de_WhatIfForecastSummary = (output, context) => {
|
|
3771
|
-
return (0, smithy_client_1.take)(output, {
|
|
3772
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3773
|
-
LastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3774
|
-
Message: smithy_client_1.expectString,
|
|
3775
|
-
Status: smithy_client_1.expectString,
|
|
3776
|
-
WhatIfAnalysisArn: smithy_client_1.expectString,
|
|
3777
|
-
WhatIfForecastArn: smithy_client_1.expectString,
|
|
3778
|
-
WhatIfForecastName: smithy_client_1.expectString,
|
|
3779
|
-
});
|
|
3780
|
-
};
|
|
3781
|
-
const de_WindowSummary = (output, context) => {
|
|
3782
|
-
return (0, smithy_client_1.take)(output, {
|
|
3783
|
-
EvaluationType: smithy_client_1.expectString,
|
|
3784
|
-
ItemCount: smithy_client_1.expectInt32,
|
|
3785
|
-
Metrics: (_) => de_Metrics(_, context),
|
|
3786
|
-
TestWindowEnd: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3787
|
-
TestWindowStart: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3788
|
-
});
|
|
3789
|
-
};
|
|
3790
|
-
const deserializeMetadata = (output) => ({
|
|
3791
|
-
httpStatusCode: output.statusCode,
|
|
3792
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
3793
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3794
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
3795
|
-
});
|
|
3796
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3797
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(ForecastServiceException_1.ForecastServiceException);
|
|
3798
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
3799
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3800
|
-
const contents = {
|
|
3801
|
-
protocol,
|
|
3802
|
-
hostname,
|
|
3803
|
-
port,
|
|
3804
|
-
method: "POST",
|
|
3805
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
3806
|
-
headers,
|
|
3807
|
-
};
|
|
3808
|
-
if (resolvedHostname !== undefined) {
|
|
3809
|
-
contents.hostname = resolvedHostname;
|
|
3810
|
-
}
|
|
3811
|
-
if (body !== undefined) {
|
|
3812
|
-
contents.body = body;
|
|
3813
|
-
}
|
|
3814
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
3815
|
-
};
|
|
3816
|
-
function sharedHeaders(operation) {
|
|
3817
|
-
return {
|
|
3818
|
-
"content-type": "application/x-amz-json-1.1",
|
|
3819
|
-
"x-amz-target": `AmazonForecast.${operation}`,
|
|
3820
|
-
};
|
|
3821
|
-
}
|
|
3822
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3823
|
-
if (encoded.length) {
|
|
3824
|
-
return JSON.parse(encoded);
|
|
3825
|
-
}
|
|
3826
|
-
return {};
|
|
3827
|
-
});
|
|
3828
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
3829
|
-
const value = await parseBody(errorBody, context);
|
|
3830
|
-
value.message = value.message ?? value.Message;
|
|
3831
|
-
return value;
|
|
3832
|
-
};
|
|
3833
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
3834
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3835
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
3836
|
-
let cleanValue = rawValue;
|
|
3837
|
-
if (typeof cleanValue === "number") {
|
|
3838
|
-
cleanValue = cleanValue.toString();
|
|
3839
|
-
}
|
|
3840
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
3841
|
-
cleanValue = cleanValue.split(",")[0];
|
|
3842
|
-
}
|
|
3843
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
3844
|
-
cleanValue = cleanValue.split(":")[0];
|
|
3845
|
-
}
|
|
3846
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
3847
|
-
cleanValue = cleanValue.split("#")[1];
|
|
3848
|
-
}
|
|
3849
|
-
return cleanValue;
|
|
3850
|
-
};
|
|
3851
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
3852
|
-
if (headerKey !== undefined) {
|
|
3853
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
3854
|
-
}
|
|
3855
|
-
if (data.code !== undefined) {
|
|
3856
|
-
return sanitizeErrorCode(data.code);
|
|
3857
|
-
}
|
|
3858
|
-
if (data["__type"] !== undefined) {
|
|
3859
|
-
return sanitizeErrorCode(data["__type"]);
|
|
3860
|
-
}
|
|
3861
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|