@aws-sdk/client-machine-learning 3.303.0 → 3.309.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/commands/AddTagsCommand.js +2 -2
- package/dist-cjs/commands/CreateBatchPredictionCommand.js +2 -2
- package/dist-cjs/commands/CreateDataSourceFromRDSCommand.js +2 -2
- package/dist-cjs/commands/CreateDataSourceFromRedshiftCommand.js +2 -2
- package/dist-cjs/commands/CreateDataSourceFromS3Command.js +2 -2
- package/dist-cjs/commands/CreateEvaluationCommand.js +2 -2
- package/dist-cjs/commands/CreateMLModelCommand.js +2 -2
- package/dist-cjs/commands/CreateRealtimeEndpointCommand.js +2 -2
- package/dist-cjs/commands/DeleteBatchPredictionCommand.js +2 -2
- package/dist-cjs/commands/DeleteDataSourceCommand.js +2 -2
- package/dist-cjs/commands/DeleteEvaluationCommand.js +2 -2
- package/dist-cjs/commands/DeleteMLModelCommand.js +2 -2
- package/dist-cjs/commands/DeleteRealtimeEndpointCommand.js +2 -2
- package/dist-cjs/commands/DeleteTagsCommand.js +2 -2
- package/dist-cjs/commands/DescribeBatchPredictionsCommand.js +2 -2
- package/dist-cjs/commands/DescribeDataSourcesCommand.js +2 -2
- package/dist-cjs/commands/DescribeEvaluationsCommand.js +2 -2
- package/dist-cjs/commands/DescribeMLModelsCommand.js +2 -2
- package/dist-cjs/commands/DescribeTagsCommand.js +2 -2
- package/dist-cjs/commands/GetBatchPredictionCommand.js +2 -2
- package/dist-cjs/commands/GetDataSourceCommand.js +2 -2
- package/dist-cjs/commands/GetEvaluationCommand.js +2 -2
- package/dist-cjs/commands/GetMLModelCommand.js +2 -2
- package/dist-cjs/commands/PredictCommand.js +2 -2
- package/dist-cjs/commands/UpdateBatchPredictionCommand.js +2 -2
- package/dist-cjs/commands/UpdateDataSourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateEvaluationCommand.js +2 -2
- package/dist-cjs/commands/UpdateMLModelCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_1.js +466 -492
- package/dist-es/commands/AddTagsCommand.js +3 -3
- package/dist-es/commands/CreateBatchPredictionCommand.js +3 -3
- package/dist-es/commands/CreateDataSourceFromRDSCommand.js +3 -3
- package/dist-es/commands/CreateDataSourceFromRedshiftCommand.js +3 -3
- package/dist-es/commands/CreateDataSourceFromS3Command.js +3 -3
- package/dist-es/commands/CreateEvaluationCommand.js +3 -3
- package/dist-es/commands/CreateMLModelCommand.js +3 -3
- package/dist-es/commands/CreateRealtimeEndpointCommand.js +3 -3
- package/dist-es/commands/DeleteBatchPredictionCommand.js +3 -3
- package/dist-es/commands/DeleteDataSourceCommand.js +3 -3
- package/dist-es/commands/DeleteEvaluationCommand.js +3 -3
- package/dist-es/commands/DeleteMLModelCommand.js +3 -3
- package/dist-es/commands/DeleteRealtimeEndpointCommand.js +3 -3
- package/dist-es/commands/DeleteTagsCommand.js +3 -3
- package/dist-es/commands/DescribeBatchPredictionsCommand.js +3 -3
- package/dist-es/commands/DescribeDataSourcesCommand.js +3 -3
- package/dist-es/commands/DescribeEvaluationsCommand.js +3 -3
- package/dist-es/commands/DescribeMLModelsCommand.js +3 -3
- package/dist-es/commands/DescribeTagsCommand.js +3 -3
- package/dist-es/commands/GetBatchPredictionCommand.js +3 -3
- package/dist-es/commands/GetDataSourceCommand.js +3 -3
- package/dist-es/commands/GetEvaluationCommand.js +3 -3
- package/dist-es/commands/GetMLModelCommand.js +3 -3
- package/dist-es/commands/PredictCommand.js +3 -3
- package/dist-es/commands/UpdateBatchPredictionCommand.js +3 -3
- package/dist-es/commands/UpdateDataSourceCommand.js +3 -3
- package/dist-es/commands/UpdateEvaluationCommand.js +3 -3
- package/dist-es/commands/UpdateMLModelCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_1.js +408 -434
- package/dist-types/protocols/Aws_json1_1.d.ts +224 -56
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +56 -56
- package/package.json +31 -31
|
@@ -1,306 +1,306 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.de_GetEvaluationCommand = exports.de_GetDataSourceCommand = exports.de_GetBatchPredictionCommand = exports.de_DescribeTagsCommand = exports.de_DescribeMLModelsCommand = exports.de_DescribeEvaluationsCommand = exports.de_DescribeDataSourcesCommand = exports.de_DescribeBatchPredictionsCommand = exports.de_DeleteTagsCommand = exports.de_DeleteRealtimeEndpointCommand = exports.de_DeleteMLModelCommand = exports.de_DeleteEvaluationCommand = exports.de_DeleteDataSourceCommand = exports.de_DeleteBatchPredictionCommand = exports.de_CreateRealtimeEndpointCommand = exports.de_CreateMLModelCommand = exports.de_CreateEvaluationCommand = exports.de_CreateDataSourceFromS3Command = exports.de_CreateDataSourceFromRedshiftCommand = exports.de_CreateDataSourceFromRDSCommand = exports.de_CreateBatchPredictionCommand = exports.de_AddTagsCommand = exports.se_UpdateMLModelCommand = exports.se_UpdateEvaluationCommand = exports.se_UpdateDataSourceCommand = exports.se_UpdateBatchPredictionCommand = exports.se_PredictCommand = exports.se_GetMLModelCommand = exports.se_GetEvaluationCommand = exports.se_GetDataSourceCommand = exports.se_GetBatchPredictionCommand = exports.se_DescribeTagsCommand = exports.se_DescribeMLModelsCommand = exports.se_DescribeEvaluationsCommand = exports.se_DescribeDataSourcesCommand = exports.se_DescribeBatchPredictionsCommand = exports.se_DeleteTagsCommand = exports.se_DeleteRealtimeEndpointCommand = exports.se_DeleteMLModelCommand = exports.se_DeleteEvaluationCommand = exports.se_DeleteDataSourceCommand = exports.se_DeleteBatchPredictionCommand = exports.se_CreateRealtimeEndpointCommand = exports.se_CreateMLModelCommand = exports.se_CreateEvaluationCommand = exports.se_CreateDataSourceFromS3Command = exports.se_CreateDataSourceFromRedshiftCommand = exports.se_CreateDataSourceFromRDSCommand = exports.se_CreateBatchPredictionCommand = exports.se_AddTagsCommand = void 0;
|
|
4
|
+
exports.de_UpdateMLModelCommand = exports.de_UpdateEvaluationCommand = exports.de_UpdateDataSourceCommand = exports.de_UpdateBatchPredictionCommand = exports.de_PredictCommand = exports.de_GetMLModelCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const MachineLearningServiceException_1 = require("../models/MachineLearningServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const
|
|
9
|
+
const se_AddTagsCommand = async (input, context) => {
|
|
10
10
|
const headers = {
|
|
11
11
|
"content-type": "application/x-amz-json-1.1",
|
|
12
12
|
"x-amz-target": "AmazonML_20141212.AddTags",
|
|
13
13
|
};
|
|
14
14
|
let body;
|
|
15
|
-
body = JSON.stringify(
|
|
15
|
+
body = JSON.stringify(se_AddTagsInput(input, context));
|
|
16
16
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
17
|
};
|
|
18
|
-
exports.
|
|
19
|
-
const
|
|
18
|
+
exports.se_AddTagsCommand = se_AddTagsCommand;
|
|
19
|
+
const se_CreateBatchPredictionCommand = async (input, context) => {
|
|
20
20
|
const headers = {
|
|
21
21
|
"content-type": "application/x-amz-json-1.1",
|
|
22
22
|
"x-amz-target": "AmazonML_20141212.CreateBatchPrediction",
|
|
23
23
|
};
|
|
24
24
|
let body;
|
|
25
|
-
body = JSON.stringify(
|
|
25
|
+
body = JSON.stringify(se_CreateBatchPredictionInput(input, context));
|
|
26
26
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
27
|
};
|
|
28
|
-
exports.
|
|
29
|
-
const
|
|
28
|
+
exports.se_CreateBatchPredictionCommand = se_CreateBatchPredictionCommand;
|
|
29
|
+
const se_CreateDataSourceFromRDSCommand = async (input, context) => {
|
|
30
30
|
const headers = {
|
|
31
31
|
"content-type": "application/x-amz-json-1.1",
|
|
32
32
|
"x-amz-target": "AmazonML_20141212.CreateDataSourceFromRDS",
|
|
33
33
|
};
|
|
34
34
|
let body;
|
|
35
|
-
body = JSON.stringify(
|
|
35
|
+
body = JSON.stringify(se_CreateDataSourceFromRDSInput(input, context));
|
|
36
36
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
37
|
};
|
|
38
|
-
exports.
|
|
39
|
-
const
|
|
38
|
+
exports.se_CreateDataSourceFromRDSCommand = se_CreateDataSourceFromRDSCommand;
|
|
39
|
+
const se_CreateDataSourceFromRedshiftCommand = async (input, context) => {
|
|
40
40
|
const headers = {
|
|
41
41
|
"content-type": "application/x-amz-json-1.1",
|
|
42
42
|
"x-amz-target": "AmazonML_20141212.CreateDataSourceFromRedshift",
|
|
43
43
|
};
|
|
44
44
|
let body;
|
|
45
|
-
body = JSON.stringify(
|
|
45
|
+
body = JSON.stringify(se_CreateDataSourceFromRedshiftInput(input, context));
|
|
46
46
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
47
|
};
|
|
48
|
-
exports.
|
|
49
|
-
const
|
|
48
|
+
exports.se_CreateDataSourceFromRedshiftCommand = se_CreateDataSourceFromRedshiftCommand;
|
|
49
|
+
const se_CreateDataSourceFromS3Command = async (input, context) => {
|
|
50
50
|
const headers = {
|
|
51
51
|
"content-type": "application/x-amz-json-1.1",
|
|
52
52
|
"x-amz-target": "AmazonML_20141212.CreateDataSourceFromS3",
|
|
53
53
|
};
|
|
54
54
|
let body;
|
|
55
|
-
body = JSON.stringify(
|
|
55
|
+
body = JSON.stringify(se_CreateDataSourceFromS3Input(input, context));
|
|
56
56
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
57
|
};
|
|
58
|
-
exports.
|
|
59
|
-
const
|
|
58
|
+
exports.se_CreateDataSourceFromS3Command = se_CreateDataSourceFromS3Command;
|
|
59
|
+
const se_CreateEvaluationCommand = async (input, context) => {
|
|
60
60
|
const headers = {
|
|
61
61
|
"content-type": "application/x-amz-json-1.1",
|
|
62
62
|
"x-amz-target": "AmazonML_20141212.CreateEvaluation",
|
|
63
63
|
};
|
|
64
64
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
65
|
+
body = JSON.stringify(se_CreateEvaluationInput(input, context));
|
|
66
66
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
67
|
};
|
|
68
|
-
exports.
|
|
69
|
-
const
|
|
68
|
+
exports.se_CreateEvaluationCommand = se_CreateEvaluationCommand;
|
|
69
|
+
const se_CreateMLModelCommand = async (input, context) => {
|
|
70
70
|
const headers = {
|
|
71
71
|
"content-type": "application/x-amz-json-1.1",
|
|
72
72
|
"x-amz-target": "AmazonML_20141212.CreateMLModel",
|
|
73
73
|
};
|
|
74
74
|
let body;
|
|
75
|
-
body = JSON.stringify(
|
|
75
|
+
body = JSON.stringify(se_CreateMLModelInput(input, context));
|
|
76
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
77
|
};
|
|
78
|
-
exports.
|
|
79
|
-
const
|
|
78
|
+
exports.se_CreateMLModelCommand = se_CreateMLModelCommand;
|
|
79
|
+
const se_CreateRealtimeEndpointCommand = async (input, context) => {
|
|
80
80
|
const headers = {
|
|
81
81
|
"content-type": "application/x-amz-json-1.1",
|
|
82
82
|
"x-amz-target": "AmazonML_20141212.CreateRealtimeEndpoint",
|
|
83
83
|
};
|
|
84
84
|
let body;
|
|
85
|
-
body = JSON.stringify(
|
|
85
|
+
body = JSON.stringify(se_CreateRealtimeEndpointInput(input, context));
|
|
86
86
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
87
87
|
};
|
|
88
|
-
exports.
|
|
89
|
-
const
|
|
88
|
+
exports.se_CreateRealtimeEndpointCommand = se_CreateRealtimeEndpointCommand;
|
|
89
|
+
const se_DeleteBatchPredictionCommand = async (input, context) => {
|
|
90
90
|
const headers = {
|
|
91
91
|
"content-type": "application/x-amz-json-1.1",
|
|
92
92
|
"x-amz-target": "AmazonML_20141212.DeleteBatchPrediction",
|
|
93
93
|
};
|
|
94
94
|
let body;
|
|
95
|
-
body = JSON.stringify(
|
|
95
|
+
body = JSON.stringify(se_DeleteBatchPredictionInput(input, context));
|
|
96
96
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
97
|
};
|
|
98
|
-
exports.
|
|
99
|
-
const
|
|
98
|
+
exports.se_DeleteBatchPredictionCommand = se_DeleteBatchPredictionCommand;
|
|
99
|
+
const se_DeleteDataSourceCommand = async (input, context) => {
|
|
100
100
|
const headers = {
|
|
101
101
|
"content-type": "application/x-amz-json-1.1",
|
|
102
102
|
"x-amz-target": "AmazonML_20141212.DeleteDataSource",
|
|
103
103
|
};
|
|
104
104
|
let body;
|
|
105
|
-
body = JSON.stringify(
|
|
105
|
+
body = JSON.stringify(se_DeleteDataSourceInput(input, context));
|
|
106
106
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
107
|
};
|
|
108
|
-
exports.
|
|
109
|
-
const
|
|
108
|
+
exports.se_DeleteDataSourceCommand = se_DeleteDataSourceCommand;
|
|
109
|
+
const se_DeleteEvaluationCommand = async (input, context) => {
|
|
110
110
|
const headers = {
|
|
111
111
|
"content-type": "application/x-amz-json-1.1",
|
|
112
112
|
"x-amz-target": "AmazonML_20141212.DeleteEvaluation",
|
|
113
113
|
};
|
|
114
114
|
let body;
|
|
115
|
-
body = JSON.stringify(
|
|
115
|
+
body = JSON.stringify(se_DeleteEvaluationInput(input, context));
|
|
116
116
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
117
117
|
};
|
|
118
|
-
exports.
|
|
119
|
-
const
|
|
118
|
+
exports.se_DeleteEvaluationCommand = se_DeleteEvaluationCommand;
|
|
119
|
+
const se_DeleteMLModelCommand = async (input, context) => {
|
|
120
120
|
const headers = {
|
|
121
121
|
"content-type": "application/x-amz-json-1.1",
|
|
122
122
|
"x-amz-target": "AmazonML_20141212.DeleteMLModel",
|
|
123
123
|
};
|
|
124
124
|
let body;
|
|
125
|
-
body = JSON.stringify(
|
|
125
|
+
body = JSON.stringify(se_DeleteMLModelInput(input, context));
|
|
126
126
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
127
127
|
};
|
|
128
|
-
exports.
|
|
129
|
-
const
|
|
128
|
+
exports.se_DeleteMLModelCommand = se_DeleteMLModelCommand;
|
|
129
|
+
const se_DeleteRealtimeEndpointCommand = async (input, context) => {
|
|
130
130
|
const headers = {
|
|
131
131
|
"content-type": "application/x-amz-json-1.1",
|
|
132
132
|
"x-amz-target": "AmazonML_20141212.DeleteRealtimeEndpoint",
|
|
133
133
|
};
|
|
134
134
|
let body;
|
|
135
|
-
body = JSON.stringify(
|
|
135
|
+
body = JSON.stringify(se_DeleteRealtimeEndpointInput(input, context));
|
|
136
136
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
137
|
};
|
|
138
|
-
exports.
|
|
139
|
-
const
|
|
138
|
+
exports.se_DeleteRealtimeEndpointCommand = se_DeleteRealtimeEndpointCommand;
|
|
139
|
+
const se_DeleteTagsCommand = async (input, context) => {
|
|
140
140
|
const headers = {
|
|
141
141
|
"content-type": "application/x-amz-json-1.1",
|
|
142
142
|
"x-amz-target": "AmazonML_20141212.DeleteTags",
|
|
143
143
|
};
|
|
144
144
|
let body;
|
|
145
|
-
body = JSON.stringify(
|
|
145
|
+
body = JSON.stringify(se_DeleteTagsInput(input, context));
|
|
146
146
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
147
|
};
|
|
148
|
-
exports.
|
|
149
|
-
const
|
|
148
|
+
exports.se_DeleteTagsCommand = se_DeleteTagsCommand;
|
|
149
|
+
const se_DescribeBatchPredictionsCommand = async (input, context) => {
|
|
150
150
|
const headers = {
|
|
151
151
|
"content-type": "application/x-amz-json-1.1",
|
|
152
152
|
"x-amz-target": "AmazonML_20141212.DescribeBatchPredictions",
|
|
153
153
|
};
|
|
154
154
|
let body;
|
|
155
|
-
body = JSON.stringify(
|
|
155
|
+
body = JSON.stringify(se_DescribeBatchPredictionsInput(input, context));
|
|
156
156
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
157
|
};
|
|
158
|
-
exports.
|
|
159
|
-
const
|
|
158
|
+
exports.se_DescribeBatchPredictionsCommand = se_DescribeBatchPredictionsCommand;
|
|
159
|
+
const se_DescribeDataSourcesCommand = async (input, context) => {
|
|
160
160
|
const headers = {
|
|
161
161
|
"content-type": "application/x-amz-json-1.1",
|
|
162
162
|
"x-amz-target": "AmazonML_20141212.DescribeDataSources",
|
|
163
163
|
};
|
|
164
164
|
let body;
|
|
165
|
-
body = JSON.stringify(
|
|
165
|
+
body = JSON.stringify(se_DescribeDataSourcesInput(input, context));
|
|
166
166
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
167
|
};
|
|
168
|
-
exports.
|
|
169
|
-
const
|
|
168
|
+
exports.se_DescribeDataSourcesCommand = se_DescribeDataSourcesCommand;
|
|
169
|
+
const se_DescribeEvaluationsCommand = async (input, context) => {
|
|
170
170
|
const headers = {
|
|
171
171
|
"content-type": "application/x-amz-json-1.1",
|
|
172
172
|
"x-amz-target": "AmazonML_20141212.DescribeEvaluations",
|
|
173
173
|
};
|
|
174
174
|
let body;
|
|
175
|
-
body = JSON.stringify(
|
|
175
|
+
body = JSON.stringify(se_DescribeEvaluationsInput(input, context));
|
|
176
176
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
177
177
|
};
|
|
178
|
-
exports.
|
|
179
|
-
const
|
|
178
|
+
exports.se_DescribeEvaluationsCommand = se_DescribeEvaluationsCommand;
|
|
179
|
+
const se_DescribeMLModelsCommand = async (input, context) => {
|
|
180
180
|
const headers = {
|
|
181
181
|
"content-type": "application/x-amz-json-1.1",
|
|
182
182
|
"x-amz-target": "AmazonML_20141212.DescribeMLModels",
|
|
183
183
|
};
|
|
184
184
|
let body;
|
|
185
|
-
body = JSON.stringify(
|
|
185
|
+
body = JSON.stringify(se_DescribeMLModelsInput(input, context));
|
|
186
186
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
187
187
|
};
|
|
188
|
-
exports.
|
|
189
|
-
const
|
|
188
|
+
exports.se_DescribeMLModelsCommand = se_DescribeMLModelsCommand;
|
|
189
|
+
const se_DescribeTagsCommand = async (input, context) => {
|
|
190
190
|
const headers = {
|
|
191
191
|
"content-type": "application/x-amz-json-1.1",
|
|
192
192
|
"x-amz-target": "AmazonML_20141212.DescribeTags",
|
|
193
193
|
};
|
|
194
194
|
let body;
|
|
195
|
-
body = JSON.stringify(
|
|
195
|
+
body = JSON.stringify(se_DescribeTagsInput(input, context));
|
|
196
196
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
197
|
};
|
|
198
|
-
exports.
|
|
199
|
-
const
|
|
198
|
+
exports.se_DescribeTagsCommand = se_DescribeTagsCommand;
|
|
199
|
+
const se_GetBatchPredictionCommand = async (input, context) => {
|
|
200
200
|
const headers = {
|
|
201
201
|
"content-type": "application/x-amz-json-1.1",
|
|
202
202
|
"x-amz-target": "AmazonML_20141212.GetBatchPrediction",
|
|
203
203
|
};
|
|
204
204
|
let body;
|
|
205
|
-
body = JSON.stringify(
|
|
205
|
+
body = JSON.stringify(se_GetBatchPredictionInput(input, context));
|
|
206
206
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
207
207
|
};
|
|
208
|
-
exports.
|
|
209
|
-
const
|
|
208
|
+
exports.se_GetBatchPredictionCommand = se_GetBatchPredictionCommand;
|
|
209
|
+
const se_GetDataSourceCommand = async (input, context) => {
|
|
210
210
|
const headers = {
|
|
211
211
|
"content-type": "application/x-amz-json-1.1",
|
|
212
212
|
"x-amz-target": "AmazonML_20141212.GetDataSource",
|
|
213
213
|
};
|
|
214
214
|
let body;
|
|
215
|
-
body = JSON.stringify(
|
|
215
|
+
body = JSON.stringify(se_GetDataSourceInput(input, context));
|
|
216
216
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
217
217
|
};
|
|
218
|
-
exports.
|
|
219
|
-
const
|
|
218
|
+
exports.se_GetDataSourceCommand = se_GetDataSourceCommand;
|
|
219
|
+
const se_GetEvaluationCommand = async (input, context) => {
|
|
220
220
|
const headers = {
|
|
221
221
|
"content-type": "application/x-amz-json-1.1",
|
|
222
222
|
"x-amz-target": "AmazonML_20141212.GetEvaluation",
|
|
223
223
|
};
|
|
224
224
|
let body;
|
|
225
|
-
body = JSON.stringify(
|
|
225
|
+
body = JSON.stringify(se_GetEvaluationInput(input, context));
|
|
226
226
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
227
227
|
};
|
|
228
|
-
exports.
|
|
229
|
-
const
|
|
228
|
+
exports.se_GetEvaluationCommand = se_GetEvaluationCommand;
|
|
229
|
+
const se_GetMLModelCommand = async (input, context) => {
|
|
230
230
|
const headers = {
|
|
231
231
|
"content-type": "application/x-amz-json-1.1",
|
|
232
232
|
"x-amz-target": "AmazonML_20141212.GetMLModel",
|
|
233
233
|
};
|
|
234
234
|
let body;
|
|
235
|
-
body = JSON.stringify(
|
|
235
|
+
body = JSON.stringify(se_GetMLModelInput(input, context));
|
|
236
236
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
237
237
|
};
|
|
238
|
-
exports.
|
|
239
|
-
const
|
|
238
|
+
exports.se_GetMLModelCommand = se_GetMLModelCommand;
|
|
239
|
+
const se_PredictCommand = async (input, context) => {
|
|
240
240
|
const headers = {
|
|
241
241
|
"content-type": "application/x-amz-json-1.1",
|
|
242
242
|
"x-amz-target": "AmazonML_20141212.Predict",
|
|
243
243
|
};
|
|
244
244
|
let body;
|
|
245
|
-
body = JSON.stringify(
|
|
245
|
+
body = JSON.stringify(se_PredictInput(input, context));
|
|
246
246
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
247
|
};
|
|
248
|
-
exports.
|
|
249
|
-
const
|
|
248
|
+
exports.se_PredictCommand = se_PredictCommand;
|
|
249
|
+
const se_UpdateBatchPredictionCommand = async (input, context) => {
|
|
250
250
|
const headers = {
|
|
251
251
|
"content-type": "application/x-amz-json-1.1",
|
|
252
252
|
"x-amz-target": "AmazonML_20141212.UpdateBatchPrediction",
|
|
253
253
|
};
|
|
254
254
|
let body;
|
|
255
|
-
body = JSON.stringify(
|
|
255
|
+
body = JSON.stringify(se_UpdateBatchPredictionInput(input, context));
|
|
256
256
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
257
|
};
|
|
258
|
-
exports.
|
|
259
|
-
const
|
|
258
|
+
exports.se_UpdateBatchPredictionCommand = se_UpdateBatchPredictionCommand;
|
|
259
|
+
const se_UpdateDataSourceCommand = async (input, context) => {
|
|
260
260
|
const headers = {
|
|
261
261
|
"content-type": "application/x-amz-json-1.1",
|
|
262
262
|
"x-amz-target": "AmazonML_20141212.UpdateDataSource",
|
|
263
263
|
};
|
|
264
264
|
let body;
|
|
265
|
-
body = JSON.stringify(
|
|
265
|
+
body = JSON.stringify(se_UpdateDataSourceInput(input, context));
|
|
266
266
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
267
267
|
};
|
|
268
|
-
exports.
|
|
269
|
-
const
|
|
268
|
+
exports.se_UpdateDataSourceCommand = se_UpdateDataSourceCommand;
|
|
269
|
+
const se_UpdateEvaluationCommand = async (input, context) => {
|
|
270
270
|
const headers = {
|
|
271
271
|
"content-type": "application/x-amz-json-1.1",
|
|
272
272
|
"x-amz-target": "AmazonML_20141212.UpdateEvaluation",
|
|
273
273
|
};
|
|
274
274
|
let body;
|
|
275
|
-
body = JSON.stringify(
|
|
275
|
+
body = JSON.stringify(se_UpdateEvaluationInput(input, context));
|
|
276
276
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
277
277
|
};
|
|
278
|
-
exports.
|
|
279
|
-
const
|
|
278
|
+
exports.se_UpdateEvaluationCommand = se_UpdateEvaluationCommand;
|
|
279
|
+
const se_UpdateMLModelCommand = async (input, context) => {
|
|
280
280
|
const headers = {
|
|
281
281
|
"content-type": "application/x-amz-json-1.1",
|
|
282
282
|
"x-amz-target": "AmazonML_20141212.UpdateMLModel",
|
|
283
283
|
};
|
|
284
284
|
let body;
|
|
285
|
-
body = JSON.stringify(
|
|
285
|
+
body = JSON.stringify(se_UpdateMLModelInput(input, context));
|
|
286
286
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
287
|
};
|
|
288
|
-
exports.
|
|
289
|
-
const
|
|
288
|
+
exports.se_UpdateMLModelCommand = se_UpdateMLModelCommand;
|
|
289
|
+
const de_AddTagsCommand = async (output, context) => {
|
|
290
290
|
if (output.statusCode >= 300) {
|
|
291
|
-
return
|
|
291
|
+
return de_AddTagsCommandError(output, context);
|
|
292
292
|
}
|
|
293
293
|
const data = await parseBody(output.body, context);
|
|
294
294
|
let contents = {};
|
|
295
|
-
contents =
|
|
295
|
+
contents = de_AddTagsOutput(data, context);
|
|
296
296
|
const response = {
|
|
297
297
|
$metadata: deserializeMetadata(output),
|
|
298
298
|
...contents,
|
|
299
299
|
};
|
|
300
300
|
return Promise.resolve(response);
|
|
301
301
|
};
|
|
302
|
-
exports.
|
|
303
|
-
const
|
|
302
|
+
exports.de_AddTagsCommand = de_AddTagsCommand;
|
|
303
|
+
const de_AddTagsCommandError = async (output, context) => {
|
|
304
304
|
const parsedOutput = {
|
|
305
305
|
...output,
|
|
306
306
|
body: await parseErrorBody(output.body, context),
|
|
@@ -309,19 +309,19 @@ const deserializeAws_json1_1AddTagsCommandError = async (output, context) => {
|
|
|
309
309
|
switch (errorCode) {
|
|
310
310
|
case "InternalServerException":
|
|
311
311
|
case "com.amazonaws.machinelearning#InternalServerException":
|
|
312
|
-
throw await
|
|
312
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
313
313
|
case "InvalidInputException":
|
|
314
314
|
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
315
|
-
throw await
|
|
315
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
316
316
|
case "InvalidTagException":
|
|
317
317
|
case "com.amazonaws.machinelearning#InvalidTagException":
|
|
318
|
-
throw await
|
|
318
|
+
throw await de_InvalidTagExceptionRes(parsedOutput, context);
|
|
319
319
|
case "ResourceNotFoundException":
|
|
320
320
|
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
321
|
-
throw await
|
|
321
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
322
322
|
case "TagLimitExceededException":
|
|
323
323
|
case "com.amazonaws.machinelearning#TagLimitExceededException":
|
|
324
|
-
throw await
|
|
324
|
+
throw await de_TagLimitExceededExceptionRes(parsedOutput, context);
|
|
325
325
|
default:
|
|
326
326
|
const parsedBody = parsedOutput.body;
|
|
327
327
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -332,21 +332,21 @@ const deserializeAws_json1_1AddTagsCommandError = async (output, context) => {
|
|
|
332
332
|
});
|
|
333
333
|
}
|
|
334
334
|
};
|
|
335
|
-
const
|
|
335
|
+
const de_CreateBatchPredictionCommand = async (output, context) => {
|
|
336
336
|
if (output.statusCode >= 300) {
|
|
337
|
-
return
|
|
337
|
+
return de_CreateBatchPredictionCommandError(output, context);
|
|
338
338
|
}
|
|
339
339
|
const data = await parseBody(output.body, context);
|
|
340
340
|
let contents = {};
|
|
341
|
-
contents =
|
|
341
|
+
contents = de_CreateBatchPredictionOutput(data, context);
|
|
342
342
|
const response = {
|
|
343
343
|
$metadata: deserializeMetadata(output),
|
|
344
344
|
...contents,
|
|
345
345
|
};
|
|
346
346
|
return Promise.resolve(response);
|
|
347
347
|
};
|
|
348
|
-
exports.
|
|
349
|
-
const
|
|
348
|
+
exports.de_CreateBatchPredictionCommand = de_CreateBatchPredictionCommand;
|
|
349
|
+
const de_CreateBatchPredictionCommandError = async (output, context) => {
|
|
350
350
|
const parsedOutput = {
|
|
351
351
|
...output,
|
|
352
352
|
body: await parseErrorBody(output.body, context),
|
|
@@ -355,13 +355,13 @@ const deserializeAws_json1_1CreateBatchPredictionCommandError = async (output, c
|
|
|
355
355
|
switch (errorCode) {
|
|
356
356
|
case "IdempotentParameterMismatchException":
|
|
357
357
|
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException":
|
|
358
|
-
throw await
|
|
358
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
359
359
|
case "InternalServerException":
|
|
360
360
|
case "com.amazonaws.machinelearning#InternalServerException":
|
|
361
|
-
throw await
|
|
361
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
362
362
|
case "InvalidInputException":
|
|
363
363
|
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
364
|
-
throw await
|
|
364
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
365
365
|
default:
|
|
366
366
|
const parsedBody = parsedOutput.body;
|
|
367
367
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -372,21 +372,21 @@ const deserializeAws_json1_1CreateBatchPredictionCommandError = async (output, c
|
|
|
372
372
|
});
|
|
373
373
|
}
|
|
374
374
|
};
|
|
375
|
-
const
|
|
375
|
+
const de_CreateDataSourceFromRDSCommand = async (output, context) => {
|
|
376
376
|
if (output.statusCode >= 300) {
|
|
377
|
-
return
|
|
377
|
+
return de_CreateDataSourceFromRDSCommandError(output, context);
|
|
378
378
|
}
|
|
379
379
|
const data = await parseBody(output.body, context);
|
|
380
380
|
let contents = {};
|
|
381
|
-
contents =
|
|
381
|
+
contents = de_CreateDataSourceFromRDSOutput(data, context);
|
|
382
382
|
const response = {
|
|
383
383
|
$metadata: deserializeMetadata(output),
|
|
384
384
|
...contents,
|
|
385
385
|
};
|
|
386
386
|
return Promise.resolve(response);
|
|
387
387
|
};
|
|
388
|
-
exports.
|
|
389
|
-
const
|
|
388
|
+
exports.de_CreateDataSourceFromRDSCommand = de_CreateDataSourceFromRDSCommand;
|
|
389
|
+
const de_CreateDataSourceFromRDSCommandError = async (output, context) => {
|
|
390
390
|
const parsedOutput = {
|
|
391
391
|
...output,
|
|
392
392
|
body: await parseErrorBody(output.body, context),
|
|
@@ -395,13 +395,13 @@ const deserializeAws_json1_1CreateDataSourceFromRDSCommandError = async (output,
|
|
|
395
395
|
switch (errorCode) {
|
|
396
396
|
case "IdempotentParameterMismatchException":
|
|
397
397
|
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException":
|
|
398
|
-
throw await
|
|
398
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
399
399
|
case "InternalServerException":
|
|
400
400
|
case "com.amazonaws.machinelearning#InternalServerException":
|
|
401
|
-
throw await
|
|
401
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
402
402
|
case "InvalidInputException":
|
|
403
403
|
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
404
|
-
throw await
|
|
404
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
405
405
|
default:
|
|
406
406
|
const parsedBody = parsedOutput.body;
|
|
407
407
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -412,21 +412,21 @@ const deserializeAws_json1_1CreateDataSourceFromRDSCommandError = async (output,
|
|
|
412
412
|
});
|
|
413
413
|
}
|
|
414
414
|
};
|
|
415
|
-
const
|
|
415
|
+
const de_CreateDataSourceFromRedshiftCommand = async (output, context) => {
|
|
416
416
|
if (output.statusCode >= 300) {
|
|
417
|
-
return
|
|
417
|
+
return de_CreateDataSourceFromRedshiftCommandError(output, context);
|
|
418
418
|
}
|
|
419
419
|
const data = await parseBody(output.body, context);
|
|
420
420
|
let contents = {};
|
|
421
|
-
contents =
|
|
421
|
+
contents = de_CreateDataSourceFromRedshiftOutput(data, context);
|
|
422
422
|
const response = {
|
|
423
423
|
$metadata: deserializeMetadata(output),
|
|
424
424
|
...contents,
|
|
425
425
|
};
|
|
426
426
|
return Promise.resolve(response);
|
|
427
427
|
};
|
|
428
|
-
exports.
|
|
429
|
-
const
|
|
428
|
+
exports.de_CreateDataSourceFromRedshiftCommand = de_CreateDataSourceFromRedshiftCommand;
|
|
429
|
+
const de_CreateDataSourceFromRedshiftCommandError = async (output, context) => {
|
|
430
430
|
const parsedOutput = {
|
|
431
431
|
...output,
|
|
432
432
|
body: await parseErrorBody(output.body, context),
|
|
@@ -435,13 +435,13 @@ const deserializeAws_json1_1CreateDataSourceFromRedshiftCommandError = async (ou
|
|
|
435
435
|
switch (errorCode) {
|
|
436
436
|
case "IdempotentParameterMismatchException":
|
|
437
437
|
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException":
|
|
438
|
-
throw await
|
|
438
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
439
439
|
case "InternalServerException":
|
|
440
440
|
case "com.amazonaws.machinelearning#InternalServerException":
|
|
441
|
-
throw await
|
|
441
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
442
442
|
case "InvalidInputException":
|
|
443
443
|
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
444
|
-
throw await
|
|
444
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
445
445
|
default:
|
|
446
446
|
const parsedBody = parsedOutput.body;
|
|
447
447
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -452,21 +452,21 @@ const deserializeAws_json1_1CreateDataSourceFromRedshiftCommandError = async (ou
|
|
|
452
452
|
});
|
|
453
453
|
}
|
|
454
454
|
};
|
|
455
|
-
const
|
|
455
|
+
const de_CreateDataSourceFromS3Command = async (output, context) => {
|
|
456
456
|
if (output.statusCode >= 300) {
|
|
457
|
-
return
|
|
457
|
+
return de_CreateDataSourceFromS3CommandError(output, context);
|
|
458
458
|
}
|
|
459
459
|
const data = await parseBody(output.body, context);
|
|
460
460
|
let contents = {};
|
|
461
|
-
contents =
|
|
461
|
+
contents = de_CreateDataSourceFromS3Output(data, context);
|
|
462
462
|
const response = {
|
|
463
463
|
$metadata: deserializeMetadata(output),
|
|
464
464
|
...contents,
|
|
465
465
|
};
|
|
466
466
|
return Promise.resolve(response);
|
|
467
467
|
};
|
|
468
|
-
exports.
|
|
469
|
-
const
|
|
468
|
+
exports.de_CreateDataSourceFromS3Command = de_CreateDataSourceFromS3Command;
|
|
469
|
+
const de_CreateDataSourceFromS3CommandError = async (output, context) => {
|
|
470
470
|
const parsedOutput = {
|
|
471
471
|
...output,
|
|
472
472
|
body: await parseErrorBody(output.body, context),
|
|
@@ -475,13 +475,13 @@ const deserializeAws_json1_1CreateDataSourceFromS3CommandError = async (output,
|
|
|
475
475
|
switch (errorCode) {
|
|
476
476
|
case "IdempotentParameterMismatchException":
|
|
477
477
|
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException":
|
|
478
|
-
throw await
|
|
478
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
479
479
|
case "InternalServerException":
|
|
480
480
|
case "com.amazonaws.machinelearning#InternalServerException":
|
|
481
|
-
throw await
|
|
481
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
482
482
|
case "InvalidInputException":
|
|
483
483
|
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
484
|
-
throw await
|
|
484
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
485
485
|
default:
|
|
486
486
|
const parsedBody = parsedOutput.body;
|
|
487
487
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -492,21 +492,21 @@ const deserializeAws_json1_1CreateDataSourceFromS3CommandError = async (output,
|
|
|
492
492
|
});
|
|
493
493
|
}
|
|
494
494
|
};
|
|
495
|
-
const
|
|
495
|
+
const de_CreateEvaluationCommand = async (output, context) => {
|
|
496
496
|
if (output.statusCode >= 300) {
|
|
497
|
-
return
|
|
497
|
+
return de_CreateEvaluationCommandError(output, context);
|
|
498
498
|
}
|
|
499
499
|
const data = await parseBody(output.body, context);
|
|
500
500
|
let contents = {};
|
|
501
|
-
contents =
|
|
501
|
+
contents = de_CreateEvaluationOutput(data, context);
|
|
502
502
|
const response = {
|
|
503
503
|
$metadata: deserializeMetadata(output),
|
|
504
504
|
...contents,
|
|
505
505
|
};
|
|
506
506
|
return Promise.resolve(response);
|
|
507
507
|
};
|
|
508
|
-
exports.
|
|
509
|
-
const
|
|
508
|
+
exports.de_CreateEvaluationCommand = de_CreateEvaluationCommand;
|
|
509
|
+
const de_CreateEvaluationCommandError = async (output, context) => {
|
|
510
510
|
const parsedOutput = {
|
|
511
511
|
...output,
|
|
512
512
|
body: await parseErrorBody(output.body, context),
|
|
@@ -515,13 +515,13 @@ const deserializeAws_json1_1CreateEvaluationCommandError = async (output, contex
|
|
|
515
515
|
switch (errorCode) {
|
|
516
516
|
case "IdempotentParameterMismatchException":
|
|
517
517
|
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException":
|
|
518
|
-
throw await
|
|
518
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
519
519
|
case "InternalServerException":
|
|
520
520
|
case "com.amazonaws.machinelearning#InternalServerException":
|
|
521
|
-
throw await
|
|
521
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
522
522
|
case "InvalidInputException":
|
|
523
523
|
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
524
|
-
throw await
|
|
524
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
525
525
|
default:
|
|
526
526
|
const parsedBody = parsedOutput.body;
|
|
527
527
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -532,21 +532,21 @@ const deserializeAws_json1_1CreateEvaluationCommandError = async (output, contex
|
|
|
532
532
|
});
|
|
533
533
|
}
|
|
534
534
|
};
|
|
535
|
-
const
|
|
535
|
+
const de_CreateMLModelCommand = async (output, context) => {
|
|
536
536
|
if (output.statusCode >= 300) {
|
|
537
|
-
return
|
|
537
|
+
return de_CreateMLModelCommandError(output, context);
|
|
538
538
|
}
|
|
539
539
|
const data = await parseBody(output.body, context);
|
|
540
540
|
let contents = {};
|
|
541
|
-
contents =
|
|
541
|
+
contents = de_CreateMLModelOutput(data, context);
|
|
542
542
|
const response = {
|
|
543
543
|
$metadata: deserializeMetadata(output),
|
|
544
544
|
...contents,
|
|
545
545
|
};
|
|
546
546
|
return Promise.resolve(response);
|
|
547
547
|
};
|
|
548
|
-
exports.
|
|
549
|
-
const
|
|
548
|
+
exports.de_CreateMLModelCommand = de_CreateMLModelCommand;
|
|
549
|
+
const de_CreateMLModelCommandError = async (output, context) => {
|
|
550
550
|
const parsedOutput = {
|
|
551
551
|
...output,
|
|
552
552
|
body: await parseErrorBody(output.body, context),
|
|
@@ -555,13 +555,13 @@ const deserializeAws_json1_1CreateMLModelCommandError = async (output, context)
|
|
|
555
555
|
switch (errorCode) {
|
|
556
556
|
case "IdempotentParameterMismatchException":
|
|
557
557
|
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException":
|
|
558
|
-
throw await
|
|
558
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
559
559
|
case "InternalServerException":
|
|
560
560
|
case "com.amazonaws.machinelearning#InternalServerException":
|
|
561
|
-
throw await
|
|
561
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
562
562
|
case "InvalidInputException":
|
|
563
563
|
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
564
|
-
throw await
|
|
564
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
565
565
|
default:
|
|
566
566
|
const parsedBody = parsedOutput.body;
|
|
567
567
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -572,21 +572,21 @@ const deserializeAws_json1_1CreateMLModelCommandError = async (output, context)
|
|
|
572
572
|
});
|
|
573
573
|
}
|
|
574
574
|
};
|
|
575
|
-
const
|
|
575
|
+
const de_CreateRealtimeEndpointCommand = async (output, context) => {
|
|
576
576
|
if (output.statusCode >= 300) {
|
|
577
|
-
return
|
|
577
|
+
return de_CreateRealtimeEndpointCommandError(output, context);
|
|
578
578
|
}
|
|
579
579
|
const data = await parseBody(output.body, context);
|
|
580
580
|
let contents = {};
|
|
581
|
-
contents =
|
|
581
|
+
contents = de_CreateRealtimeEndpointOutput(data, context);
|
|
582
582
|
const response = {
|
|
583
583
|
$metadata: deserializeMetadata(output),
|
|
584
584
|
...contents,
|
|
585
585
|
};
|
|
586
586
|
return Promise.resolve(response);
|
|
587
587
|
};
|
|
588
|
-
exports.
|
|
589
|
-
const
|
|
588
|
+
exports.de_CreateRealtimeEndpointCommand = de_CreateRealtimeEndpointCommand;
|
|
589
|
+
const de_CreateRealtimeEndpointCommandError = async (output, context) => {
|
|
590
590
|
const parsedOutput = {
|
|
591
591
|
...output,
|
|
592
592
|
body: await parseErrorBody(output.body, context),
|
|
@@ -595,13 +595,13 @@ const deserializeAws_json1_1CreateRealtimeEndpointCommandError = async (output,
|
|
|
595
595
|
switch (errorCode) {
|
|
596
596
|
case "InternalServerException":
|
|
597
597
|
case "com.amazonaws.machinelearning#InternalServerException":
|
|
598
|
-
throw await
|
|
598
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
599
599
|
case "InvalidInputException":
|
|
600
600
|
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
601
|
-
throw await
|
|
601
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
602
602
|
case "ResourceNotFoundException":
|
|
603
603
|
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
604
|
-
throw await
|
|
604
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
605
605
|
default:
|
|
606
606
|
const parsedBody = parsedOutput.body;
|
|
607
607
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -612,21 +612,21 @@ const deserializeAws_json1_1CreateRealtimeEndpointCommandError = async (output,
|
|
|
612
612
|
});
|
|
613
613
|
}
|
|
614
614
|
};
|
|
615
|
-
const
|
|
615
|
+
const de_DeleteBatchPredictionCommand = async (output, context) => {
|
|
616
616
|
if (output.statusCode >= 300) {
|
|
617
|
-
return
|
|
617
|
+
return de_DeleteBatchPredictionCommandError(output, context);
|
|
618
618
|
}
|
|
619
619
|
const data = await parseBody(output.body, context);
|
|
620
620
|
let contents = {};
|
|
621
|
-
contents =
|
|
621
|
+
contents = de_DeleteBatchPredictionOutput(data, context);
|
|
622
622
|
const response = {
|
|
623
623
|
$metadata: deserializeMetadata(output),
|
|
624
624
|
...contents,
|
|
625
625
|
};
|
|
626
626
|
return Promise.resolve(response);
|
|
627
627
|
};
|
|
628
|
-
exports.
|
|
629
|
-
const
|
|
628
|
+
exports.de_DeleteBatchPredictionCommand = de_DeleteBatchPredictionCommand;
|
|
629
|
+
const de_DeleteBatchPredictionCommandError = async (output, context) => {
|
|
630
630
|
const parsedOutput = {
|
|
631
631
|
...output,
|
|
632
632
|
body: await parseErrorBody(output.body, context),
|
|
@@ -635,13 +635,13 @@ const deserializeAws_json1_1DeleteBatchPredictionCommandError = async (output, c
|
|
|
635
635
|
switch (errorCode) {
|
|
636
636
|
case "InternalServerException":
|
|
637
637
|
case "com.amazonaws.machinelearning#InternalServerException":
|
|
638
|
-
throw await
|
|
638
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
639
639
|
case "InvalidInputException":
|
|
640
640
|
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
641
|
-
throw await
|
|
641
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
642
642
|
case "ResourceNotFoundException":
|
|
643
643
|
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
644
|
-
throw await
|
|
644
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
645
645
|
default:
|
|
646
646
|
const parsedBody = parsedOutput.body;
|
|
647
647
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -652,21 +652,21 @@ const deserializeAws_json1_1DeleteBatchPredictionCommandError = async (output, c
|
|
|
652
652
|
});
|
|
653
653
|
}
|
|
654
654
|
};
|
|
655
|
-
const
|
|
655
|
+
const de_DeleteDataSourceCommand = async (output, context) => {
|
|
656
656
|
if (output.statusCode >= 300) {
|
|
657
|
-
return
|
|
657
|
+
return de_DeleteDataSourceCommandError(output, context);
|
|
658
658
|
}
|
|
659
659
|
const data = await parseBody(output.body, context);
|
|
660
660
|
let contents = {};
|
|
661
|
-
contents =
|
|
661
|
+
contents = de_DeleteDataSourceOutput(data, context);
|
|
662
662
|
const response = {
|
|
663
663
|
$metadata: deserializeMetadata(output),
|
|
664
664
|
...contents,
|
|
665
665
|
};
|
|
666
666
|
return Promise.resolve(response);
|
|
667
667
|
};
|
|
668
|
-
exports.
|
|
669
|
-
const
|
|
668
|
+
exports.de_DeleteDataSourceCommand = de_DeleteDataSourceCommand;
|
|
669
|
+
const de_DeleteDataSourceCommandError = async (output, context) => {
|
|
670
670
|
const parsedOutput = {
|
|
671
671
|
...output,
|
|
672
672
|
body: await parseErrorBody(output.body, context),
|
|
@@ -675,13 +675,13 @@ const deserializeAws_json1_1DeleteDataSourceCommandError = async (output, contex
|
|
|
675
675
|
switch (errorCode) {
|
|
676
676
|
case "InternalServerException":
|
|
677
677
|
case "com.amazonaws.machinelearning#InternalServerException":
|
|
678
|
-
throw await
|
|
678
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
679
679
|
case "InvalidInputException":
|
|
680
680
|
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
681
|
-
throw await
|
|
681
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
682
682
|
case "ResourceNotFoundException":
|
|
683
683
|
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
684
|
-
throw await
|
|
684
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
685
685
|
default:
|
|
686
686
|
const parsedBody = parsedOutput.body;
|
|
687
687
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -692,21 +692,21 @@ const deserializeAws_json1_1DeleteDataSourceCommandError = async (output, contex
|
|
|
692
692
|
});
|
|
693
693
|
}
|
|
694
694
|
};
|
|
695
|
-
const
|
|
695
|
+
const de_DeleteEvaluationCommand = async (output, context) => {
|
|
696
696
|
if (output.statusCode >= 300) {
|
|
697
|
-
return
|
|
697
|
+
return de_DeleteEvaluationCommandError(output, context);
|
|
698
698
|
}
|
|
699
699
|
const data = await parseBody(output.body, context);
|
|
700
700
|
let contents = {};
|
|
701
|
-
contents =
|
|
701
|
+
contents = de_DeleteEvaluationOutput(data, context);
|
|
702
702
|
const response = {
|
|
703
703
|
$metadata: deserializeMetadata(output),
|
|
704
704
|
...contents,
|
|
705
705
|
};
|
|
706
706
|
return Promise.resolve(response);
|
|
707
707
|
};
|
|
708
|
-
exports.
|
|
709
|
-
const
|
|
708
|
+
exports.de_DeleteEvaluationCommand = de_DeleteEvaluationCommand;
|
|
709
|
+
const de_DeleteEvaluationCommandError = async (output, context) => {
|
|
710
710
|
const parsedOutput = {
|
|
711
711
|
...output,
|
|
712
712
|
body: await parseErrorBody(output.body, context),
|
|
@@ -715,13 +715,13 @@ const deserializeAws_json1_1DeleteEvaluationCommandError = async (output, contex
|
|
|
715
715
|
switch (errorCode) {
|
|
716
716
|
case "InternalServerException":
|
|
717
717
|
case "com.amazonaws.machinelearning#InternalServerException":
|
|
718
|
-
throw await
|
|
718
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
719
719
|
case "InvalidInputException":
|
|
720
720
|
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
721
|
-
throw await
|
|
721
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
722
722
|
case "ResourceNotFoundException":
|
|
723
723
|
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
724
|
-
throw await
|
|
724
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
725
725
|
default:
|
|
726
726
|
const parsedBody = parsedOutput.body;
|
|
727
727
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -732,21 +732,21 @@ const deserializeAws_json1_1DeleteEvaluationCommandError = async (output, contex
|
|
|
732
732
|
});
|
|
733
733
|
}
|
|
734
734
|
};
|
|
735
|
-
const
|
|
735
|
+
const de_DeleteMLModelCommand = async (output, context) => {
|
|
736
736
|
if (output.statusCode >= 300) {
|
|
737
|
-
return
|
|
737
|
+
return de_DeleteMLModelCommandError(output, context);
|
|
738
738
|
}
|
|
739
739
|
const data = await parseBody(output.body, context);
|
|
740
740
|
let contents = {};
|
|
741
|
-
contents =
|
|
741
|
+
contents = de_DeleteMLModelOutput(data, context);
|
|
742
742
|
const response = {
|
|
743
743
|
$metadata: deserializeMetadata(output),
|
|
744
744
|
...contents,
|
|
745
745
|
};
|
|
746
746
|
return Promise.resolve(response);
|
|
747
747
|
};
|
|
748
|
-
exports.
|
|
749
|
-
const
|
|
748
|
+
exports.de_DeleteMLModelCommand = de_DeleteMLModelCommand;
|
|
749
|
+
const de_DeleteMLModelCommandError = async (output, context) => {
|
|
750
750
|
const parsedOutput = {
|
|
751
751
|
...output,
|
|
752
752
|
body: await parseErrorBody(output.body, context),
|
|
@@ -755,13 +755,13 @@ const deserializeAws_json1_1DeleteMLModelCommandError = async (output, context)
|
|
|
755
755
|
switch (errorCode) {
|
|
756
756
|
case "InternalServerException":
|
|
757
757
|
case "com.amazonaws.machinelearning#InternalServerException":
|
|
758
|
-
throw await
|
|
758
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
759
759
|
case "InvalidInputException":
|
|
760
760
|
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
761
|
-
throw await
|
|
761
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
762
762
|
case "ResourceNotFoundException":
|
|
763
763
|
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
764
|
-
throw await
|
|
764
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
765
765
|
default:
|
|
766
766
|
const parsedBody = parsedOutput.body;
|
|
767
767
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -772,21 +772,21 @@ const deserializeAws_json1_1DeleteMLModelCommandError = async (output, context)
|
|
|
772
772
|
});
|
|
773
773
|
}
|
|
774
774
|
};
|
|
775
|
-
const
|
|
775
|
+
const de_DeleteRealtimeEndpointCommand = async (output, context) => {
|
|
776
776
|
if (output.statusCode >= 300) {
|
|
777
|
-
return
|
|
777
|
+
return de_DeleteRealtimeEndpointCommandError(output, context);
|
|
778
778
|
}
|
|
779
779
|
const data = await parseBody(output.body, context);
|
|
780
780
|
let contents = {};
|
|
781
|
-
contents =
|
|
781
|
+
contents = de_DeleteRealtimeEndpointOutput(data, context);
|
|
782
782
|
const response = {
|
|
783
783
|
$metadata: deserializeMetadata(output),
|
|
784
784
|
...contents,
|
|
785
785
|
};
|
|
786
786
|
return Promise.resolve(response);
|
|
787
787
|
};
|
|
788
|
-
exports.
|
|
789
|
-
const
|
|
788
|
+
exports.de_DeleteRealtimeEndpointCommand = de_DeleteRealtimeEndpointCommand;
|
|
789
|
+
const de_DeleteRealtimeEndpointCommandError = async (output, context) => {
|
|
790
790
|
const parsedOutput = {
|
|
791
791
|
...output,
|
|
792
792
|
body: await parseErrorBody(output.body, context),
|
|
@@ -795,13 +795,13 @@ const deserializeAws_json1_1DeleteRealtimeEndpointCommandError = async (output,
|
|
|
795
795
|
switch (errorCode) {
|
|
796
796
|
case "InternalServerException":
|
|
797
797
|
case "com.amazonaws.machinelearning#InternalServerException":
|
|
798
|
-
throw await
|
|
798
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
799
799
|
case "InvalidInputException":
|
|
800
800
|
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
801
|
-
throw await
|
|
801
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
802
802
|
case "ResourceNotFoundException":
|
|
803
803
|
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
804
|
-
throw await
|
|
804
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
805
805
|
default:
|
|
806
806
|
const parsedBody = parsedOutput.body;
|
|
807
807
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -812,21 +812,21 @@ const deserializeAws_json1_1DeleteRealtimeEndpointCommandError = async (output,
|
|
|
812
812
|
});
|
|
813
813
|
}
|
|
814
814
|
};
|
|
815
|
-
const
|
|
815
|
+
const de_DeleteTagsCommand = async (output, context) => {
|
|
816
816
|
if (output.statusCode >= 300) {
|
|
817
|
-
return
|
|
817
|
+
return de_DeleteTagsCommandError(output, context);
|
|
818
818
|
}
|
|
819
819
|
const data = await parseBody(output.body, context);
|
|
820
820
|
let contents = {};
|
|
821
|
-
contents =
|
|
821
|
+
contents = de_DeleteTagsOutput(data, context);
|
|
822
822
|
const response = {
|
|
823
823
|
$metadata: deserializeMetadata(output),
|
|
824
824
|
...contents,
|
|
825
825
|
};
|
|
826
826
|
return Promise.resolve(response);
|
|
827
827
|
};
|
|
828
|
-
exports.
|
|
829
|
-
const
|
|
828
|
+
exports.de_DeleteTagsCommand = de_DeleteTagsCommand;
|
|
829
|
+
const de_DeleteTagsCommandError = async (output, context) => {
|
|
830
830
|
const parsedOutput = {
|
|
831
831
|
...output,
|
|
832
832
|
body: await parseErrorBody(output.body, context),
|
|
@@ -835,16 +835,16 @@ const deserializeAws_json1_1DeleteTagsCommandError = async (output, context) =>
|
|
|
835
835
|
switch (errorCode) {
|
|
836
836
|
case "InternalServerException":
|
|
837
837
|
case "com.amazonaws.machinelearning#InternalServerException":
|
|
838
|
-
throw await
|
|
838
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
839
839
|
case "InvalidInputException":
|
|
840
840
|
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
841
|
-
throw await
|
|
841
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
842
842
|
case "InvalidTagException":
|
|
843
843
|
case "com.amazonaws.machinelearning#InvalidTagException":
|
|
844
|
-
throw await
|
|
844
|
+
throw await de_InvalidTagExceptionRes(parsedOutput, context);
|
|
845
845
|
case "ResourceNotFoundException":
|
|
846
846
|
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
847
|
-
throw await
|
|
847
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
848
848
|
default:
|
|
849
849
|
const parsedBody = parsedOutput.body;
|
|
850
850
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -855,21 +855,21 @@ const deserializeAws_json1_1DeleteTagsCommandError = async (output, context) =>
|
|
|
855
855
|
});
|
|
856
856
|
}
|
|
857
857
|
};
|
|
858
|
-
const
|
|
858
|
+
const de_DescribeBatchPredictionsCommand = async (output, context) => {
|
|
859
859
|
if (output.statusCode >= 300) {
|
|
860
|
-
return
|
|
860
|
+
return de_DescribeBatchPredictionsCommandError(output, context);
|
|
861
861
|
}
|
|
862
862
|
const data = await parseBody(output.body, context);
|
|
863
863
|
let contents = {};
|
|
864
|
-
contents =
|
|
864
|
+
contents = de_DescribeBatchPredictionsOutput(data, context);
|
|
865
865
|
const response = {
|
|
866
866
|
$metadata: deserializeMetadata(output),
|
|
867
867
|
...contents,
|
|
868
868
|
};
|
|
869
869
|
return Promise.resolve(response);
|
|
870
870
|
};
|
|
871
|
-
exports.
|
|
872
|
-
const
|
|
871
|
+
exports.de_DescribeBatchPredictionsCommand = de_DescribeBatchPredictionsCommand;
|
|
872
|
+
const de_DescribeBatchPredictionsCommandError = async (output, context) => {
|
|
873
873
|
const parsedOutput = {
|
|
874
874
|
...output,
|
|
875
875
|
body: await parseErrorBody(output.body, context),
|
|
@@ -878,10 +878,10 @@ const deserializeAws_json1_1DescribeBatchPredictionsCommandError = async (output
|
|
|
878
878
|
switch (errorCode) {
|
|
879
879
|
case "InternalServerException":
|
|
880
880
|
case "com.amazonaws.machinelearning#InternalServerException":
|
|
881
|
-
throw await
|
|
881
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
882
882
|
case "InvalidInputException":
|
|
883
883
|
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
884
|
-
throw await
|
|
884
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
885
885
|
default:
|
|
886
886
|
const parsedBody = parsedOutput.body;
|
|
887
887
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -892,21 +892,21 @@ const deserializeAws_json1_1DescribeBatchPredictionsCommandError = async (output
|
|
|
892
892
|
});
|
|
893
893
|
}
|
|
894
894
|
};
|
|
895
|
-
const
|
|
895
|
+
const de_DescribeDataSourcesCommand = async (output, context) => {
|
|
896
896
|
if (output.statusCode >= 300) {
|
|
897
|
-
return
|
|
897
|
+
return de_DescribeDataSourcesCommandError(output, context);
|
|
898
898
|
}
|
|
899
899
|
const data = await parseBody(output.body, context);
|
|
900
900
|
let contents = {};
|
|
901
|
-
contents =
|
|
901
|
+
contents = de_DescribeDataSourcesOutput(data, context);
|
|
902
902
|
const response = {
|
|
903
903
|
$metadata: deserializeMetadata(output),
|
|
904
904
|
...contents,
|
|
905
905
|
};
|
|
906
906
|
return Promise.resolve(response);
|
|
907
907
|
};
|
|
908
|
-
exports.
|
|
909
|
-
const
|
|
908
|
+
exports.de_DescribeDataSourcesCommand = de_DescribeDataSourcesCommand;
|
|
909
|
+
const de_DescribeDataSourcesCommandError = async (output, context) => {
|
|
910
910
|
const parsedOutput = {
|
|
911
911
|
...output,
|
|
912
912
|
body: await parseErrorBody(output.body, context),
|
|
@@ -915,10 +915,10 @@ const deserializeAws_json1_1DescribeDataSourcesCommandError = async (output, con
|
|
|
915
915
|
switch (errorCode) {
|
|
916
916
|
case "InternalServerException":
|
|
917
917
|
case "com.amazonaws.machinelearning#InternalServerException":
|
|
918
|
-
throw await
|
|
918
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
919
919
|
case "InvalidInputException":
|
|
920
920
|
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
921
|
-
throw await
|
|
921
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
922
922
|
default:
|
|
923
923
|
const parsedBody = parsedOutput.body;
|
|
924
924
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -929,21 +929,21 @@ const deserializeAws_json1_1DescribeDataSourcesCommandError = async (output, con
|
|
|
929
929
|
});
|
|
930
930
|
}
|
|
931
931
|
};
|
|
932
|
-
const
|
|
932
|
+
const de_DescribeEvaluationsCommand = async (output, context) => {
|
|
933
933
|
if (output.statusCode >= 300) {
|
|
934
|
-
return
|
|
934
|
+
return de_DescribeEvaluationsCommandError(output, context);
|
|
935
935
|
}
|
|
936
936
|
const data = await parseBody(output.body, context);
|
|
937
937
|
let contents = {};
|
|
938
|
-
contents =
|
|
938
|
+
contents = de_DescribeEvaluationsOutput(data, context);
|
|
939
939
|
const response = {
|
|
940
940
|
$metadata: deserializeMetadata(output),
|
|
941
941
|
...contents,
|
|
942
942
|
};
|
|
943
943
|
return Promise.resolve(response);
|
|
944
944
|
};
|
|
945
|
-
exports.
|
|
946
|
-
const
|
|
945
|
+
exports.de_DescribeEvaluationsCommand = de_DescribeEvaluationsCommand;
|
|
946
|
+
const de_DescribeEvaluationsCommandError = async (output, context) => {
|
|
947
947
|
const parsedOutput = {
|
|
948
948
|
...output,
|
|
949
949
|
body: await parseErrorBody(output.body, context),
|
|
@@ -952,10 +952,10 @@ const deserializeAws_json1_1DescribeEvaluationsCommandError = async (output, con
|
|
|
952
952
|
switch (errorCode) {
|
|
953
953
|
case "InternalServerException":
|
|
954
954
|
case "com.amazonaws.machinelearning#InternalServerException":
|
|
955
|
-
throw await
|
|
955
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
956
956
|
case "InvalidInputException":
|
|
957
957
|
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
958
|
-
throw await
|
|
958
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
959
959
|
default:
|
|
960
960
|
const parsedBody = parsedOutput.body;
|
|
961
961
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -966,21 +966,21 @@ const deserializeAws_json1_1DescribeEvaluationsCommandError = async (output, con
|
|
|
966
966
|
});
|
|
967
967
|
}
|
|
968
968
|
};
|
|
969
|
-
const
|
|
969
|
+
const de_DescribeMLModelsCommand = async (output, context) => {
|
|
970
970
|
if (output.statusCode >= 300) {
|
|
971
|
-
return
|
|
971
|
+
return de_DescribeMLModelsCommandError(output, context);
|
|
972
972
|
}
|
|
973
973
|
const data = await parseBody(output.body, context);
|
|
974
974
|
let contents = {};
|
|
975
|
-
contents =
|
|
975
|
+
contents = de_DescribeMLModelsOutput(data, context);
|
|
976
976
|
const response = {
|
|
977
977
|
$metadata: deserializeMetadata(output),
|
|
978
978
|
...contents,
|
|
979
979
|
};
|
|
980
980
|
return Promise.resolve(response);
|
|
981
981
|
};
|
|
982
|
-
exports.
|
|
983
|
-
const
|
|
982
|
+
exports.de_DescribeMLModelsCommand = de_DescribeMLModelsCommand;
|
|
983
|
+
const de_DescribeMLModelsCommandError = async (output, context) => {
|
|
984
984
|
const parsedOutput = {
|
|
985
985
|
...output,
|
|
986
986
|
body: await parseErrorBody(output.body, context),
|
|
@@ -989,10 +989,10 @@ const deserializeAws_json1_1DescribeMLModelsCommandError = async (output, contex
|
|
|
989
989
|
switch (errorCode) {
|
|
990
990
|
case "InternalServerException":
|
|
991
991
|
case "com.amazonaws.machinelearning#InternalServerException":
|
|
992
|
-
throw await
|
|
992
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
993
993
|
case "InvalidInputException":
|
|
994
994
|
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
995
|
-
throw await
|
|
995
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
996
996
|
default:
|
|
997
997
|
const parsedBody = parsedOutput.body;
|
|
998
998
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1003,21 +1003,21 @@ const deserializeAws_json1_1DescribeMLModelsCommandError = async (output, contex
|
|
|
1003
1003
|
});
|
|
1004
1004
|
}
|
|
1005
1005
|
};
|
|
1006
|
-
const
|
|
1006
|
+
const de_DescribeTagsCommand = async (output, context) => {
|
|
1007
1007
|
if (output.statusCode >= 300) {
|
|
1008
|
-
return
|
|
1008
|
+
return de_DescribeTagsCommandError(output, context);
|
|
1009
1009
|
}
|
|
1010
1010
|
const data = await parseBody(output.body, context);
|
|
1011
1011
|
let contents = {};
|
|
1012
|
-
contents =
|
|
1012
|
+
contents = de_DescribeTagsOutput(data, context);
|
|
1013
1013
|
const response = {
|
|
1014
1014
|
$metadata: deserializeMetadata(output),
|
|
1015
1015
|
...contents,
|
|
1016
1016
|
};
|
|
1017
1017
|
return Promise.resolve(response);
|
|
1018
1018
|
};
|
|
1019
|
-
exports.
|
|
1020
|
-
const
|
|
1019
|
+
exports.de_DescribeTagsCommand = de_DescribeTagsCommand;
|
|
1020
|
+
const de_DescribeTagsCommandError = async (output, context) => {
|
|
1021
1021
|
const parsedOutput = {
|
|
1022
1022
|
...output,
|
|
1023
1023
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1026,13 +1026,13 @@ const deserializeAws_json1_1DescribeTagsCommandError = async (output, context) =
|
|
|
1026
1026
|
switch (errorCode) {
|
|
1027
1027
|
case "InternalServerException":
|
|
1028
1028
|
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1029
|
-
throw await
|
|
1029
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1030
1030
|
case "InvalidInputException":
|
|
1031
1031
|
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1032
|
-
throw await
|
|
1032
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1033
1033
|
case "ResourceNotFoundException":
|
|
1034
1034
|
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1035
|
-
throw await
|
|
1035
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1036
1036
|
default:
|
|
1037
1037
|
const parsedBody = parsedOutput.body;
|
|
1038
1038
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1043,21 +1043,21 @@ const deserializeAws_json1_1DescribeTagsCommandError = async (output, context) =
|
|
|
1043
1043
|
});
|
|
1044
1044
|
}
|
|
1045
1045
|
};
|
|
1046
|
-
const
|
|
1046
|
+
const de_GetBatchPredictionCommand = async (output, context) => {
|
|
1047
1047
|
if (output.statusCode >= 300) {
|
|
1048
|
-
return
|
|
1048
|
+
return de_GetBatchPredictionCommandError(output, context);
|
|
1049
1049
|
}
|
|
1050
1050
|
const data = await parseBody(output.body, context);
|
|
1051
1051
|
let contents = {};
|
|
1052
|
-
contents =
|
|
1052
|
+
contents = de_GetBatchPredictionOutput(data, context);
|
|
1053
1053
|
const response = {
|
|
1054
1054
|
$metadata: deserializeMetadata(output),
|
|
1055
1055
|
...contents,
|
|
1056
1056
|
};
|
|
1057
1057
|
return Promise.resolve(response);
|
|
1058
1058
|
};
|
|
1059
|
-
exports.
|
|
1060
|
-
const
|
|
1059
|
+
exports.de_GetBatchPredictionCommand = de_GetBatchPredictionCommand;
|
|
1060
|
+
const de_GetBatchPredictionCommandError = async (output, context) => {
|
|
1061
1061
|
const parsedOutput = {
|
|
1062
1062
|
...output,
|
|
1063
1063
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1066,13 +1066,13 @@ const deserializeAws_json1_1GetBatchPredictionCommandError = async (output, cont
|
|
|
1066
1066
|
switch (errorCode) {
|
|
1067
1067
|
case "InternalServerException":
|
|
1068
1068
|
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1069
|
-
throw await
|
|
1069
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1070
1070
|
case "InvalidInputException":
|
|
1071
1071
|
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1072
|
-
throw await
|
|
1072
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1073
1073
|
case "ResourceNotFoundException":
|
|
1074
1074
|
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1075
|
-
throw await
|
|
1075
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1076
1076
|
default:
|
|
1077
1077
|
const parsedBody = parsedOutput.body;
|
|
1078
1078
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1083,21 +1083,21 @@ const deserializeAws_json1_1GetBatchPredictionCommandError = async (output, cont
|
|
|
1083
1083
|
});
|
|
1084
1084
|
}
|
|
1085
1085
|
};
|
|
1086
|
-
const
|
|
1086
|
+
const de_GetDataSourceCommand = async (output, context) => {
|
|
1087
1087
|
if (output.statusCode >= 300) {
|
|
1088
|
-
return
|
|
1088
|
+
return de_GetDataSourceCommandError(output, context);
|
|
1089
1089
|
}
|
|
1090
1090
|
const data = await parseBody(output.body, context);
|
|
1091
1091
|
let contents = {};
|
|
1092
|
-
contents =
|
|
1092
|
+
contents = de_GetDataSourceOutput(data, context);
|
|
1093
1093
|
const response = {
|
|
1094
1094
|
$metadata: deserializeMetadata(output),
|
|
1095
1095
|
...contents,
|
|
1096
1096
|
};
|
|
1097
1097
|
return Promise.resolve(response);
|
|
1098
1098
|
};
|
|
1099
|
-
exports.
|
|
1100
|
-
const
|
|
1099
|
+
exports.de_GetDataSourceCommand = de_GetDataSourceCommand;
|
|
1100
|
+
const de_GetDataSourceCommandError = async (output, context) => {
|
|
1101
1101
|
const parsedOutput = {
|
|
1102
1102
|
...output,
|
|
1103
1103
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1106,13 +1106,13 @@ const deserializeAws_json1_1GetDataSourceCommandError = async (output, context)
|
|
|
1106
1106
|
switch (errorCode) {
|
|
1107
1107
|
case "InternalServerException":
|
|
1108
1108
|
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1109
|
-
throw await
|
|
1109
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1110
1110
|
case "InvalidInputException":
|
|
1111
1111
|
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1112
|
-
throw await
|
|
1112
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1113
1113
|
case "ResourceNotFoundException":
|
|
1114
1114
|
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1115
|
-
throw await
|
|
1115
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1116
1116
|
default:
|
|
1117
1117
|
const parsedBody = parsedOutput.body;
|
|
1118
1118
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1123,21 +1123,21 @@ const deserializeAws_json1_1GetDataSourceCommandError = async (output, context)
|
|
|
1123
1123
|
});
|
|
1124
1124
|
}
|
|
1125
1125
|
};
|
|
1126
|
-
const
|
|
1126
|
+
const de_GetEvaluationCommand = async (output, context) => {
|
|
1127
1127
|
if (output.statusCode >= 300) {
|
|
1128
|
-
return
|
|
1128
|
+
return de_GetEvaluationCommandError(output, context);
|
|
1129
1129
|
}
|
|
1130
1130
|
const data = await parseBody(output.body, context);
|
|
1131
1131
|
let contents = {};
|
|
1132
|
-
contents =
|
|
1132
|
+
contents = de_GetEvaluationOutput(data, context);
|
|
1133
1133
|
const response = {
|
|
1134
1134
|
$metadata: deserializeMetadata(output),
|
|
1135
1135
|
...contents,
|
|
1136
1136
|
};
|
|
1137
1137
|
return Promise.resolve(response);
|
|
1138
1138
|
};
|
|
1139
|
-
exports.
|
|
1140
|
-
const
|
|
1139
|
+
exports.de_GetEvaluationCommand = de_GetEvaluationCommand;
|
|
1140
|
+
const de_GetEvaluationCommandError = async (output, context) => {
|
|
1141
1141
|
const parsedOutput = {
|
|
1142
1142
|
...output,
|
|
1143
1143
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1146,13 +1146,13 @@ const deserializeAws_json1_1GetEvaluationCommandError = async (output, context)
|
|
|
1146
1146
|
switch (errorCode) {
|
|
1147
1147
|
case "InternalServerException":
|
|
1148
1148
|
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1149
|
-
throw await
|
|
1149
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1150
1150
|
case "InvalidInputException":
|
|
1151
1151
|
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1152
|
-
throw await
|
|
1152
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1153
1153
|
case "ResourceNotFoundException":
|
|
1154
1154
|
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1155
|
-
throw await
|
|
1155
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1156
1156
|
default:
|
|
1157
1157
|
const parsedBody = parsedOutput.body;
|
|
1158
1158
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1163,21 +1163,21 @@ const deserializeAws_json1_1GetEvaluationCommandError = async (output, context)
|
|
|
1163
1163
|
});
|
|
1164
1164
|
}
|
|
1165
1165
|
};
|
|
1166
|
-
const
|
|
1166
|
+
const de_GetMLModelCommand = async (output, context) => {
|
|
1167
1167
|
if (output.statusCode >= 300) {
|
|
1168
|
-
return
|
|
1168
|
+
return de_GetMLModelCommandError(output, context);
|
|
1169
1169
|
}
|
|
1170
1170
|
const data = await parseBody(output.body, context);
|
|
1171
1171
|
let contents = {};
|
|
1172
|
-
contents =
|
|
1172
|
+
contents = de_GetMLModelOutput(data, context);
|
|
1173
1173
|
const response = {
|
|
1174
1174
|
$metadata: deserializeMetadata(output),
|
|
1175
1175
|
...contents,
|
|
1176
1176
|
};
|
|
1177
1177
|
return Promise.resolve(response);
|
|
1178
1178
|
};
|
|
1179
|
-
exports.
|
|
1180
|
-
const
|
|
1179
|
+
exports.de_GetMLModelCommand = de_GetMLModelCommand;
|
|
1180
|
+
const de_GetMLModelCommandError = async (output, context) => {
|
|
1181
1181
|
const parsedOutput = {
|
|
1182
1182
|
...output,
|
|
1183
1183
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1186,13 +1186,13 @@ const deserializeAws_json1_1GetMLModelCommandError = async (output, context) =>
|
|
|
1186
1186
|
switch (errorCode) {
|
|
1187
1187
|
case "InternalServerException":
|
|
1188
1188
|
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1189
|
-
throw await
|
|
1189
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1190
1190
|
case "InvalidInputException":
|
|
1191
1191
|
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1192
|
-
throw await
|
|
1192
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1193
1193
|
case "ResourceNotFoundException":
|
|
1194
1194
|
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1195
|
-
throw await
|
|
1195
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1196
1196
|
default:
|
|
1197
1197
|
const parsedBody = parsedOutput.body;
|
|
1198
1198
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1203,21 +1203,21 @@ const deserializeAws_json1_1GetMLModelCommandError = async (output, context) =>
|
|
|
1203
1203
|
});
|
|
1204
1204
|
}
|
|
1205
1205
|
};
|
|
1206
|
-
const
|
|
1206
|
+
const de_PredictCommand = async (output, context) => {
|
|
1207
1207
|
if (output.statusCode >= 300) {
|
|
1208
|
-
return
|
|
1208
|
+
return de_PredictCommandError(output, context);
|
|
1209
1209
|
}
|
|
1210
1210
|
const data = await parseBody(output.body, context);
|
|
1211
1211
|
let contents = {};
|
|
1212
|
-
contents =
|
|
1212
|
+
contents = de_PredictOutput(data, context);
|
|
1213
1213
|
const response = {
|
|
1214
1214
|
$metadata: deserializeMetadata(output),
|
|
1215
1215
|
...contents,
|
|
1216
1216
|
};
|
|
1217
1217
|
return Promise.resolve(response);
|
|
1218
1218
|
};
|
|
1219
|
-
exports.
|
|
1220
|
-
const
|
|
1219
|
+
exports.de_PredictCommand = de_PredictCommand;
|
|
1220
|
+
const de_PredictCommandError = async (output, context) => {
|
|
1221
1221
|
const parsedOutput = {
|
|
1222
1222
|
...output,
|
|
1223
1223
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1226,19 +1226,19 @@ const deserializeAws_json1_1PredictCommandError = async (output, context) => {
|
|
|
1226
1226
|
switch (errorCode) {
|
|
1227
1227
|
case "InternalServerException":
|
|
1228
1228
|
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1229
|
-
throw await
|
|
1229
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1230
1230
|
case "InvalidInputException":
|
|
1231
1231
|
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1232
|
-
throw await
|
|
1232
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1233
1233
|
case "LimitExceededException":
|
|
1234
1234
|
case "com.amazonaws.machinelearning#LimitExceededException":
|
|
1235
|
-
throw await
|
|
1235
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1236
1236
|
case "PredictorNotMountedException":
|
|
1237
1237
|
case "com.amazonaws.machinelearning#PredictorNotMountedException":
|
|
1238
|
-
throw await
|
|
1238
|
+
throw await de_PredictorNotMountedExceptionRes(parsedOutput, context);
|
|
1239
1239
|
case "ResourceNotFoundException":
|
|
1240
1240
|
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1241
|
-
throw await
|
|
1241
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1242
1242
|
default:
|
|
1243
1243
|
const parsedBody = parsedOutput.body;
|
|
1244
1244
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1249,21 +1249,21 @@ const deserializeAws_json1_1PredictCommandError = async (output, context) => {
|
|
|
1249
1249
|
});
|
|
1250
1250
|
}
|
|
1251
1251
|
};
|
|
1252
|
-
const
|
|
1252
|
+
const de_UpdateBatchPredictionCommand = async (output, context) => {
|
|
1253
1253
|
if (output.statusCode >= 300) {
|
|
1254
|
-
return
|
|
1254
|
+
return de_UpdateBatchPredictionCommandError(output, context);
|
|
1255
1255
|
}
|
|
1256
1256
|
const data = await parseBody(output.body, context);
|
|
1257
1257
|
let contents = {};
|
|
1258
|
-
contents =
|
|
1258
|
+
contents = de_UpdateBatchPredictionOutput(data, context);
|
|
1259
1259
|
const response = {
|
|
1260
1260
|
$metadata: deserializeMetadata(output),
|
|
1261
1261
|
...contents,
|
|
1262
1262
|
};
|
|
1263
1263
|
return Promise.resolve(response);
|
|
1264
1264
|
};
|
|
1265
|
-
exports.
|
|
1266
|
-
const
|
|
1265
|
+
exports.de_UpdateBatchPredictionCommand = de_UpdateBatchPredictionCommand;
|
|
1266
|
+
const de_UpdateBatchPredictionCommandError = async (output, context) => {
|
|
1267
1267
|
const parsedOutput = {
|
|
1268
1268
|
...output,
|
|
1269
1269
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1272,13 +1272,13 @@ const deserializeAws_json1_1UpdateBatchPredictionCommandError = async (output, c
|
|
|
1272
1272
|
switch (errorCode) {
|
|
1273
1273
|
case "InternalServerException":
|
|
1274
1274
|
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1275
|
-
throw await
|
|
1275
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1276
1276
|
case "InvalidInputException":
|
|
1277
1277
|
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1278
|
-
throw await
|
|
1278
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1279
1279
|
case "ResourceNotFoundException":
|
|
1280
1280
|
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1281
|
-
throw await
|
|
1281
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1282
1282
|
default:
|
|
1283
1283
|
const parsedBody = parsedOutput.body;
|
|
1284
1284
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1289,21 +1289,21 @@ const deserializeAws_json1_1UpdateBatchPredictionCommandError = async (output, c
|
|
|
1289
1289
|
});
|
|
1290
1290
|
}
|
|
1291
1291
|
};
|
|
1292
|
-
const
|
|
1292
|
+
const de_UpdateDataSourceCommand = async (output, context) => {
|
|
1293
1293
|
if (output.statusCode >= 300) {
|
|
1294
|
-
return
|
|
1294
|
+
return de_UpdateDataSourceCommandError(output, context);
|
|
1295
1295
|
}
|
|
1296
1296
|
const data = await parseBody(output.body, context);
|
|
1297
1297
|
let contents = {};
|
|
1298
|
-
contents =
|
|
1298
|
+
contents = de_UpdateDataSourceOutput(data, context);
|
|
1299
1299
|
const response = {
|
|
1300
1300
|
$metadata: deserializeMetadata(output),
|
|
1301
1301
|
...contents,
|
|
1302
1302
|
};
|
|
1303
1303
|
return Promise.resolve(response);
|
|
1304
1304
|
};
|
|
1305
|
-
exports.
|
|
1306
|
-
const
|
|
1305
|
+
exports.de_UpdateDataSourceCommand = de_UpdateDataSourceCommand;
|
|
1306
|
+
const de_UpdateDataSourceCommandError = async (output, context) => {
|
|
1307
1307
|
const parsedOutput = {
|
|
1308
1308
|
...output,
|
|
1309
1309
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1312,13 +1312,13 @@ const deserializeAws_json1_1UpdateDataSourceCommandError = async (output, contex
|
|
|
1312
1312
|
switch (errorCode) {
|
|
1313
1313
|
case "InternalServerException":
|
|
1314
1314
|
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1315
|
-
throw await
|
|
1315
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1316
1316
|
case "InvalidInputException":
|
|
1317
1317
|
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1318
|
-
throw await
|
|
1318
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1319
1319
|
case "ResourceNotFoundException":
|
|
1320
1320
|
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1321
|
-
throw await
|
|
1321
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1322
1322
|
default:
|
|
1323
1323
|
const parsedBody = parsedOutput.body;
|
|
1324
1324
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1329,21 +1329,21 @@ const deserializeAws_json1_1UpdateDataSourceCommandError = async (output, contex
|
|
|
1329
1329
|
});
|
|
1330
1330
|
}
|
|
1331
1331
|
};
|
|
1332
|
-
const
|
|
1332
|
+
const de_UpdateEvaluationCommand = async (output, context) => {
|
|
1333
1333
|
if (output.statusCode >= 300) {
|
|
1334
|
-
return
|
|
1334
|
+
return de_UpdateEvaluationCommandError(output, context);
|
|
1335
1335
|
}
|
|
1336
1336
|
const data = await parseBody(output.body, context);
|
|
1337
1337
|
let contents = {};
|
|
1338
|
-
contents =
|
|
1338
|
+
contents = de_UpdateEvaluationOutput(data, context);
|
|
1339
1339
|
const response = {
|
|
1340
1340
|
$metadata: deserializeMetadata(output),
|
|
1341
1341
|
...contents,
|
|
1342
1342
|
};
|
|
1343
1343
|
return Promise.resolve(response);
|
|
1344
1344
|
};
|
|
1345
|
-
exports.
|
|
1346
|
-
const
|
|
1345
|
+
exports.de_UpdateEvaluationCommand = de_UpdateEvaluationCommand;
|
|
1346
|
+
const de_UpdateEvaluationCommandError = async (output, context) => {
|
|
1347
1347
|
const parsedOutput = {
|
|
1348
1348
|
...output,
|
|
1349
1349
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1352,13 +1352,13 @@ const deserializeAws_json1_1UpdateEvaluationCommandError = async (output, contex
|
|
|
1352
1352
|
switch (errorCode) {
|
|
1353
1353
|
case "InternalServerException":
|
|
1354
1354
|
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1355
|
-
throw await
|
|
1355
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1356
1356
|
case "InvalidInputException":
|
|
1357
1357
|
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1358
|
-
throw await
|
|
1358
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1359
1359
|
case "ResourceNotFoundException":
|
|
1360
1360
|
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1361
|
-
throw await
|
|
1361
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1362
1362
|
default:
|
|
1363
1363
|
const parsedBody = parsedOutput.body;
|
|
1364
1364
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1369,21 +1369,21 @@ const deserializeAws_json1_1UpdateEvaluationCommandError = async (output, contex
|
|
|
1369
1369
|
});
|
|
1370
1370
|
}
|
|
1371
1371
|
};
|
|
1372
|
-
const
|
|
1372
|
+
const de_UpdateMLModelCommand = async (output, context) => {
|
|
1373
1373
|
if (output.statusCode >= 300) {
|
|
1374
|
-
return
|
|
1374
|
+
return de_UpdateMLModelCommandError(output, context);
|
|
1375
1375
|
}
|
|
1376
1376
|
const data = await parseBody(output.body, context);
|
|
1377
1377
|
let contents = {};
|
|
1378
|
-
contents =
|
|
1378
|
+
contents = de_UpdateMLModelOutput(data, context);
|
|
1379
1379
|
const response = {
|
|
1380
1380
|
$metadata: deserializeMetadata(output),
|
|
1381
1381
|
...contents,
|
|
1382
1382
|
};
|
|
1383
1383
|
return Promise.resolve(response);
|
|
1384
1384
|
};
|
|
1385
|
-
exports.
|
|
1386
|
-
const
|
|
1385
|
+
exports.de_UpdateMLModelCommand = de_UpdateMLModelCommand;
|
|
1386
|
+
const de_UpdateMLModelCommandError = async (output, context) => {
|
|
1387
1387
|
const parsedOutput = {
|
|
1388
1388
|
...output,
|
|
1389
1389
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1392,13 +1392,13 @@ const deserializeAws_json1_1UpdateMLModelCommandError = async (output, context)
|
|
|
1392
1392
|
switch (errorCode) {
|
|
1393
1393
|
case "InternalServerException":
|
|
1394
1394
|
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1395
|
-
throw await
|
|
1395
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1396
1396
|
case "InvalidInputException":
|
|
1397
1397
|
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1398
|
-
throw await
|
|
1398
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1399
1399
|
case "ResourceNotFoundException":
|
|
1400
1400
|
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1401
|
-
throw await
|
|
1401
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1402
1402
|
default:
|
|
1403
1403
|
const parsedBody = parsedOutput.body;
|
|
1404
1404
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1409,86 +1409,86 @@ const deserializeAws_json1_1UpdateMLModelCommandError = async (output, context)
|
|
|
1409
1409
|
});
|
|
1410
1410
|
}
|
|
1411
1411
|
};
|
|
1412
|
-
const
|
|
1412
|
+
const de_IdempotentParameterMismatchExceptionRes = async (parsedOutput, context) => {
|
|
1413
1413
|
const body = parsedOutput.body;
|
|
1414
|
-
const deserialized =
|
|
1414
|
+
const deserialized = de_IdempotentParameterMismatchException(body, context);
|
|
1415
1415
|
const exception = new models_0_1.IdempotentParameterMismatchException({
|
|
1416
1416
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1417
1417
|
...deserialized,
|
|
1418
1418
|
});
|
|
1419
1419
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1420
1420
|
};
|
|
1421
|
-
const
|
|
1421
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1422
1422
|
const body = parsedOutput.body;
|
|
1423
|
-
const deserialized =
|
|
1423
|
+
const deserialized = de_InternalServerException(body, context);
|
|
1424
1424
|
const exception = new models_0_1.InternalServerException({
|
|
1425
1425
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1426
1426
|
...deserialized,
|
|
1427
1427
|
});
|
|
1428
1428
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1429
1429
|
};
|
|
1430
|
-
const
|
|
1430
|
+
const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
|
|
1431
1431
|
const body = parsedOutput.body;
|
|
1432
|
-
const deserialized =
|
|
1432
|
+
const deserialized = de_InvalidInputException(body, context);
|
|
1433
1433
|
const exception = new models_0_1.InvalidInputException({
|
|
1434
1434
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1435
1435
|
...deserialized,
|
|
1436
1436
|
});
|
|
1437
1437
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1438
1438
|
};
|
|
1439
|
-
const
|
|
1439
|
+
const de_InvalidTagExceptionRes = async (parsedOutput, context) => {
|
|
1440
1440
|
const body = parsedOutput.body;
|
|
1441
|
-
const deserialized =
|
|
1441
|
+
const deserialized = de_InvalidTagException(body, context);
|
|
1442
1442
|
const exception = new models_0_1.InvalidTagException({
|
|
1443
1443
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1444
1444
|
...deserialized,
|
|
1445
1445
|
});
|
|
1446
1446
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1447
1447
|
};
|
|
1448
|
-
const
|
|
1448
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1449
1449
|
const body = parsedOutput.body;
|
|
1450
|
-
const deserialized =
|
|
1450
|
+
const deserialized = de_LimitExceededException(body, context);
|
|
1451
1451
|
const exception = new models_0_1.LimitExceededException({
|
|
1452
1452
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1453
1453
|
...deserialized,
|
|
1454
1454
|
});
|
|
1455
1455
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1456
1456
|
};
|
|
1457
|
-
const
|
|
1457
|
+
const de_PredictorNotMountedExceptionRes = async (parsedOutput, context) => {
|
|
1458
1458
|
const body = parsedOutput.body;
|
|
1459
|
-
const deserialized =
|
|
1459
|
+
const deserialized = de_PredictorNotMountedException(body, context);
|
|
1460
1460
|
const exception = new models_0_1.PredictorNotMountedException({
|
|
1461
1461
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1462
1462
|
...deserialized,
|
|
1463
1463
|
});
|
|
1464
1464
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1465
1465
|
};
|
|
1466
|
-
const
|
|
1466
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1467
1467
|
const body = parsedOutput.body;
|
|
1468
|
-
const deserialized =
|
|
1468
|
+
const deserialized = de_ResourceNotFoundException(body, context);
|
|
1469
1469
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1470
1470
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1471
1471
|
...deserialized,
|
|
1472
1472
|
});
|
|
1473
1473
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1474
1474
|
};
|
|
1475
|
-
const
|
|
1475
|
+
const de_TagLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1476
1476
|
const body = parsedOutput.body;
|
|
1477
|
-
const deserialized =
|
|
1477
|
+
const deserialized = de_TagLimitExceededException(body, context);
|
|
1478
1478
|
const exception = new models_0_1.TagLimitExceededException({
|
|
1479
1479
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1480
1480
|
...deserialized,
|
|
1481
1481
|
});
|
|
1482
1482
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1483
1483
|
};
|
|
1484
|
-
const
|
|
1484
|
+
const se_AddTagsInput = (input, context) => {
|
|
1485
1485
|
return {
|
|
1486
1486
|
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
1487
1487
|
...(input.ResourceType != null && { ResourceType: input.ResourceType }),
|
|
1488
|
-
...(input.Tags != null && { Tags:
|
|
1488
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1489
1489
|
};
|
|
1490
1490
|
};
|
|
1491
|
-
const
|
|
1491
|
+
const se_CreateBatchPredictionInput = (input, context) => {
|
|
1492
1492
|
return {
|
|
1493
1493
|
...(input.BatchPredictionDataSourceId != null && {
|
|
1494
1494
|
BatchPredictionDataSourceId: input.BatchPredictionDataSourceId,
|
|
@@ -1499,33 +1499,33 @@ const serializeAws_json1_1CreateBatchPredictionInput = (input, context) => {
|
|
|
1499
1499
|
...(input.OutputUri != null && { OutputUri: input.OutputUri }),
|
|
1500
1500
|
};
|
|
1501
1501
|
};
|
|
1502
|
-
const
|
|
1502
|
+
const se_CreateDataSourceFromRDSInput = (input, context) => {
|
|
1503
1503
|
return {
|
|
1504
1504
|
...(input.ComputeStatistics != null && { ComputeStatistics: input.ComputeStatistics }),
|
|
1505
1505
|
...(input.DataSourceId != null && { DataSourceId: input.DataSourceId }),
|
|
1506
1506
|
...(input.DataSourceName != null && { DataSourceName: input.DataSourceName }),
|
|
1507
|
-
...(input.RDSData != null && { RDSData:
|
|
1507
|
+
...(input.RDSData != null && { RDSData: se_RDSDataSpec(input.RDSData, context) }),
|
|
1508
1508
|
...(input.RoleARN != null && { RoleARN: input.RoleARN }),
|
|
1509
1509
|
};
|
|
1510
1510
|
};
|
|
1511
|
-
const
|
|
1511
|
+
const se_CreateDataSourceFromRedshiftInput = (input, context) => {
|
|
1512
1512
|
return {
|
|
1513
1513
|
...(input.ComputeStatistics != null && { ComputeStatistics: input.ComputeStatistics }),
|
|
1514
1514
|
...(input.DataSourceId != null && { DataSourceId: input.DataSourceId }),
|
|
1515
1515
|
...(input.DataSourceName != null && { DataSourceName: input.DataSourceName }),
|
|
1516
|
-
...(input.DataSpec != null && { DataSpec:
|
|
1516
|
+
...(input.DataSpec != null && { DataSpec: se_RedshiftDataSpec(input.DataSpec, context) }),
|
|
1517
1517
|
...(input.RoleARN != null && { RoleARN: input.RoleARN }),
|
|
1518
1518
|
};
|
|
1519
1519
|
};
|
|
1520
|
-
const
|
|
1520
|
+
const se_CreateDataSourceFromS3Input = (input, context) => {
|
|
1521
1521
|
return {
|
|
1522
1522
|
...(input.ComputeStatistics != null && { ComputeStatistics: input.ComputeStatistics }),
|
|
1523
1523
|
...(input.DataSourceId != null && { DataSourceId: input.DataSourceId }),
|
|
1524
1524
|
...(input.DataSourceName != null && { DataSourceName: input.DataSourceName }),
|
|
1525
|
-
...(input.DataSpec != null && { DataSpec:
|
|
1525
|
+
...(input.DataSpec != null && { DataSpec: se_S3DataSpec(input.DataSpec, context) }),
|
|
1526
1526
|
};
|
|
1527
1527
|
};
|
|
1528
|
-
const
|
|
1528
|
+
const se_CreateEvaluationInput = (input, context) => {
|
|
1529
1529
|
return {
|
|
1530
1530
|
...(input.EvaluationDataSourceId != null && { EvaluationDataSourceId: input.EvaluationDataSourceId }),
|
|
1531
1531
|
...(input.EvaluationId != null && { EvaluationId: input.EvaluationId }),
|
|
@@ -1533,55 +1533,55 @@ const serializeAws_json1_1CreateEvaluationInput = (input, context) => {
|
|
|
1533
1533
|
...(input.MLModelId != null && { MLModelId: input.MLModelId }),
|
|
1534
1534
|
};
|
|
1535
1535
|
};
|
|
1536
|
-
const
|
|
1536
|
+
const se_CreateMLModelInput = (input, context) => {
|
|
1537
1537
|
return {
|
|
1538
1538
|
...(input.MLModelId != null && { MLModelId: input.MLModelId }),
|
|
1539
1539
|
...(input.MLModelName != null && { MLModelName: input.MLModelName }),
|
|
1540
1540
|
...(input.MLModelType != null && { MLModelType: input.MLModelType }),
|
|
1541
|
-
...(input.Parameters != null && { Parameters:
|
|
1541
|
+
...(input.Parameters != null && { Parameters: se_TrainingParameters(input.Parameters, context) }),
|
|
1542
1542
|
...(input.Recipe != null && { Recipe: input.Recipe }),
|
|
1543
1543
|
...(input.RecipeUri != null && { RecipeUri: input.RecipeUri }),
|
|
1544
1544
|
...(input.TrainingDataSourceId != null && { TrainingDataSourceId: input.TrainingDataSourceId }),
|
|
1545
1545
|
};
|
|
1546
1546
|
};
|
|
1547
|
-
const
|
|
1547
|
+
const se_CreateRealtimeEndpointInput = (input, context) => {
|
|
1548
1548
|
return {
|
|
1549
1549
|
...(input.MLModelId != null && { MLModelId: input.MLModelId }),
|
|
1550
1550
|
};
|
|
1551
1551
|
};
|
|
1552
|
-
const
|
|
1552
|
+
const se_DeleteBatchPredictionInput = (input, context) => {
|
|
1553
1553
|
return {
|
|
1554
1554
|
...(input.BatchPredictionId != null && { BatchPredictionId: input.BatchPredictionId }),
|
|
1555
1555
|
};
|
|
1556
1556
|
};
|
|
1557
|
-
const
|
|
1557
|
+
const se_DeleteDataSourceInput = (input, context) => {
|
|
1558
1558
|
return {
|
|
1559
1559
|
...(input.DataSourceId != null && { DataSourceId: input.DataSourceId }),
|
|
1560
1560
|
};
|
|
1561
1561
|
};
|
|
1562
|
-
const
|
|
1562
|
+
const se_DeleteEvaluationInput = (input, context) => {
|
|
1563
1563
|
return {
|
|
1564
1564
|
...(input.EvaluationId != null && { EvaluationId: input.EvaluationId }),
|
|
1565
1565
|
};
|
|
1566
1566
|
};
|
|
1567
|
-
const
|
|
1567
|
+
const se_DeleteMLModelInput = (input, context) => {
|
|
1568
1568
|
return {
|
|
1569
1569
|
...(input.MLModelId != null && { MLModelId: input.MLModelId }),
|
|
1570
1570
|
};
|
|
1571
1571
|
};
|
|
1572
|
-
const
|
|
1572
|
+
const se_DeleteRealtimeEndpointInput = (input, context) => {
|
|
1573
1573
|
return {
|
|
1574
1574
|
...(input.MLModelId != null && { MLModelId: input.MLModelId }),
|
|
1575
1575
|
};
|
|
1576
1576
|
};
|
|
1577
|
-
const
|
|
1577
|
+
const se_DeleteTagsInput = (input, context) => {
|
|
1578
1578
|
return {
|
|
1579
1579
|
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
1580
1580
|
...(input.ResourceType != null && { ResourceType: input.ResourceType }),
|
|
1581
|
-
...(input.TagKeys != null && { TagKeys:
|
|
1581
|
+
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
1582
1582
|
};
|
|
1583
1583
|
};
|
|
1584
|
-
const
|
|
1584
|
+
const se_DescribeBatchPredictionsInput = (input, context) => {
|
|
1585
1585
|
return {
|
|
1586
1586
|
...(input.EQ != null && { EQ: input.EQ }),
|
|
1587
1587
|
...(input.FilterVariable != null && { FilterVariable: input.FilterVariable }),
|
|
@@ -1596,7 +1596,7 @@ const serializeAws_json1_1DescribeBatchPredictionsInput = (input, context) => {
|
|
|
1596
1596
|
...(input.SortOrder != null && { SortOrder: input.SortOrder }),
|
|
1597
1597
|
};
|
|
1598
1598
|
};
|
|
1599
|
-
const
|
|
1599
|
+
const se_DescribeDataSourcesInput = (input, context) => {
|
|
1600
1600
|
return {
|
|
1601
1601
|
...(input.EQ != null && { EQ: input.EQ }),
|
|
1602
1602
|
...(input.FilterVariable != null && { FilterVariable: input.FilterVariable }),
|
|
@@ -1611,7 +1611,7 @@ const serializeAws_json1_1DescribeDataSourcesInput = (input, context) => {
|
|
|
1611
1611
|
...(input.SortOrder != null && { SortOrder: input.SortOrder }),
|
|
1612
1612
|
};
|
|
1613
1613
|
};
|
|
1614
|
-
const
|
|
1614
|
+
const se_DescribeEvaluationsInput = (input, context) => {
|
|
1615
1615
|
return {
|
|
1616
1616
|
...(input.EQ != null && { EQ: input.EQ }),
|
|
1617
1617
|
...(input.FilterVariable != null && { FilterVariable: input.FilterVariable }),
|
|
@@ -1626,7 +1626,7 @@ const serializeAws_json1_1DescribeEvaluationsInput = (input, context) => {
|
|
|
1626
1626
|
...(input.SortOrder != null && { SortOrder: input.SortOrder }),
|
|
1627
1627
|
};
|
|
1628
1628
|
};
|
|
1629
|
-
const
|
|
1629
|
+
const se_DescribeMLModelsInput = (input, context) => {
|
|
1630
1630
|
return {
|
|
1631
1631
|
...(input.EQ != null && { EQ: input.EQ }),
|
|
1632
1632
|
...(input.FilterVariable != null && { FilterVariable: input.FilterVariable }),
|
|
@@ -1641,82 +1641,82 @@ const serializeAws_json1_1DescribeMLModelsInput = (input, context) => {
|
|
|
1641
1641
|
...(input.SortOrder != null && { SortOrder: input.SortOrder }),
|
|
1642
1642
|
};
|
|
1643
1643
|
};
|
|
1644
|
-
const
|
|
1644
|
+
const se_DescribeTagsInput = (input, context) => {
|
|
1645
1645
|
return {
|
|
1646
1646
|
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
1647
1647
|
...(input.ResourceType != null && { ResourceType: input.ResourceType }),
|
|
1648
1648
|
};
|
|
1649
1649
|
};
|
|
1650
|
-
const
|
|
1650
|
+
const se_EDPSecurityGroupIds = (input, context) => {
|
|
1651
1651
|
return input
|
|
1652
1652
|
.filter((e) => e != null)
|
|
1653
1653
|
.map((entry) => {
|
|
1654
1654
|
return entry;
|
|
1655
1655
|
});
|
|
1656
1656
|
};
|
|
1657
|
-
const
|
|
1657
|
+
const se_GetBatchPredictionInput = (input, context) => {
|
|
1658
1658
|
return {
|
|
1659
1659
|
...(input.BatchPredictionId != null && { BatchPredictionId: input.BatchPredictionId }),
|
|
1660
1660
|
};
|
|
1661
1661
|
};
|
|
1662
|
-
const
|
|
1662
|
+
const se_GetDataSourceInput = (input, context) => {
|
|
1663
1663
|
return {
|
|
1664
1664
|
...(input.DataSourceId != null && { DataSourceId: input.DataSourceId }),
|
|
1665
1665
|
...(input.Verbose != null && { Verbose: input.Verbose }),
|
|
1666
1666
|
};
|
|
1667
1667
|
};
|
|
1668
|
-
const
|
|
1668
|
+
const se_GetEvaluationInput = (input, context) => {
|
|
1669
1669
|
return {
|
|
1670
1670
|
...(input.EvaluationId != null && { EvaluationId: input.EvaluationId }),
|
|
1671
1671
|
};
|
|
1672
1672
|
};
|
|
1673
|
-
const
|
|
1673
|
+
const se_GetMLModelInput = (input, context) => {
|
|
1674
1674
|
return {
|
|
1675
1675
|
...(input.MLModelId != null && { MLModelId: input.MLModelId }),
|
|
1676
1676
|
...(input.Verbose != null && { Verbose: input.Verbose }),
|
|
1677
1677
|
};
|
|
1678
1678
|
};
|
|
1679
|
-
const
|
|
1679
|
+
const se_PredictInput = (input, context) => {
|
|
1680
1680
|
return {
|
|
1681
1681
|
...(input.MLModelId != null && { MLModelId: input.MLModelId }),
|
|
1682
1682
|
...(input.PredictEndpoint != null && { PredictEndpoint: input.PredictEndpoint }),
|
|
1683
|
-
...(input.Record != null && { Record:
|
|
1683
|
+
...(input.Record != null && { Record: se_Record(input.Record, context) }),
|
|
1684
1684
|
};
|
|
1685
1685
|
};
|
|
1686
|
-
const
|
|
1686
|
+
const se_RDSDatabase = (input, context) => {
|
|
1687
1687
|
return {
|
|
1688
1688
|
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1689
1689
|
...(input.InstanceIdentifier != null && { InstanceIdentifier: input.InstanceIdentifier }),
|
|
1690
1690
|
};
|
|
1691
1691
|
};
|
|
1692
|
-
const
|
|
1692
|
+
const se_RDSDatabaseCredentials = (input, context) => {
|
|
1693
1693
|
return {
|
|
1694
1694
|
...(input.Password != null && { Password: input.Password }),
|
|
1695
1695
|
...(input.Username != null && { Username: input.Username }),
|
|
1696
1696
|
};
|
|
1697
1697
|
};
|
|
1698
|
-
const
|
|
1698
|
+
const se_RDSDataSpec = (input, context) => {
|
|
1699
1699
|
return {
|
|
1700
1700
|
...(input.DataRearrangement != null && { DataRearrangement: input.DataRearrangement }),
|
|
1701
1701
|
...(input.DataSchema != null && { DataSchema: input.DataSchema }),
|
|
1702
1702
|
...(input.DataSchemaUri != null && { DataSchemaUri: input.DataSchemaUri }),
|
|
1703
1703
|
...(input.DatabaseCredentials != null && {
|
|
1704
|
-
DatabaseCredentials:
|
|
1704
|
+
DatabaseCredentials: se_RDSDatabaseCredentials(input.DatabaseCredentials, context),
|
|
1705
1705
|
}),
|
|
1706
1706
|
...(input.DatabaseInformation != null && {
|
|
1707
|
-
DatabaseInformation:
|
|
1707
|
+
DatabaseInformation: se_RDSDatabase(input.DatabaseInformation, context),
|
|
1708
1708
|
}),
|
|
1709
1709
|
...(input.ResourceRole != null && { ResourceRole: input.ResourceRole }),
|
|
1710
1710
|
...(input.S3StagingLocation != null && { S3StagingLocation: input.S3StagingLocation }),
|
|
1711
1711
|
...(input.SecurityGroupIds != null && {
|
|
1712
|
-
SecurityGroupIds:
|
|
1712
|
+
SecurityGroupIds: se_EDPSecurityGroupIds(input.SecurityGroupIds, context),
|
|
1713
1713
|
}),
|
|
1714
1714
|
...(input.SelectSqlQuery != null && { SelectSqlQuery: input.SelectSqlQuery }),
|
|
1715
1715
|
...(input.ServiceRole != null && { ServiceRole: input.ServiceRole }),
|
|
1716
1716
|
...(input.SubnetId != null && { SubnetId: input.SubnetId }),
|
|
1717
1717
|
};
|
|
1718
1718
|
};
|
|
1719
|
-
const
|
|
1719
|
+
const se_Record = (input, context) => {
|
|
1720
1720
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1721
1721
|
if (value === null) {
|
|
1722
1722
|
return acc;
|
|
@@ -1725,34 +1725,34 @@ const serializeAws_json1_1Record = (input, context) => {
|
|
|
1725
1725
|
return acc;
|
|
1726
1726
|
}, {});
|
|
1727
1727
|
};
|
|
1728
|
-
const
|
|
1728
|
+
const se_RedshiftDatabase = (input, context) => {
|
|
1729
1729
|
return {
|
|
1730
1730
|
...(input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier }),
|
|
1731
1731
|
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1732
1732
|
};
|
|
1733
1733
|
};
|
|
1734
|
-
const
|
|
1734
|
+
const se_RedshiftDatabaseCredentials = (input, context) => {
|
|
1735
1735
|
return {
|
|
1736
1736
|
...(input.Password != null && { Password: input.Password }),
|
|
1737
1737
|
...(input.Username != null && { Username: input.Username }),
|
|
1738
1738
|
};
|
|
1739
1739
|
};
|
|
1740
|
-
const
|
|
1740
|
+
const se_RedshiftDataSpec = (input, context) => {
|
|
1741
1741
|
return {
|
|
1742
1742
|
...(input.DataRearrangement != null && { DataRearrangement: input.DataRearrangement }),
|
|
1743
1743
|
...(input.DataSchema != null && { DataSchema: input.DataSchema }),
|
|
1744
1744
|
...(input.DataSchemaUri != null && { DataSchemaUri: input.DataSchemaUri }),
|
|
1745
1745
|
...(input.DatabaseCredentials != null && {
|
|
1746
|
-
DatabaseCredentials:
|
|
1746
|
+
DatabaseCredentials: se_RedshiftDatabaseCredentials(input.DatabaseCredentials, context),
|
|
1747
1747
|
}),
|
|
1748
1748
|
...(input.DatabaseInformation != null && {
|
|
1749
|
-
DatabaseInformation:
|
|
1749
|
+
DatabaseInformation: se_RedshiftDatabase(input.DatabaseInformation, context),
|
|
1750
1750
|
}),
|
|
1751
1751
|
...(input.S3StagingLocation != null && { S3StagingLocation: input.S3StagingLocation }),
|
|
1752
1752
|
...(input.SelectSqlQuery != null && { SelectSqlQuery: input.SelectSqlQuery }),
|
|
1753
1753
|
};
|
|
1754
1754
|
};
|
|
1755
|
-
const
|
|
1755
|
+
const se_S3DataSpec = (input, context) => {
|
|
1756
1756
|
return {
|
|
1757
1757
|
...(input.DataLocationS3 != null && { DataLocationS3: input.DataLocationS3 }),
|
|
1758
1758
|
...(input.DataRearrangement != null && { DataRearrangement: input.DataRearrangement }),
|
|
@@ -1760,27 +1760,27 @@ const serializeAws_json1_1S3DataSpec = (input, context) => {
|
|
|
1760
1760
|
...(input.DataSchemaLocationS3 != null && { DataSchemaLocationS3: input.DataSchemaLocationS3 }),
|
|
1761
1761
|
};
|
|
1762
1762
|
};
|
|
1763
|
-
const
|
|
1763
|
+
const se_Tag = (input, context) => {
|
|
1764
1764
|
return {
|
|
1765
1765
|
...(input.Key != null && { Key: input.Key }),
|
|
1766
1766
|
...(input.Value != null && { Value: input.Value }),
|
|
1767
1767
|
};
|
|
1768
1768
|
};
|
|
1769
|
-
const
|
|
1769
|
+
const se_TagKeyList = (input, context) => {
|
|
1770
1770
|
return input
|
|
1771
1771
|
.filter((e) => e != null)
|
|
1772
1772
|
.map((entry) => {
|
|
1773
1773
|
return entry;
|
|
1774
1774
|
});
|
|
1775
1775
|
};
|
|
1776
|
-
const
|
|
1776
|
+
const se_TagList = (input, context) => {
|
|
1777
1777
|
return input
|
|
1778
1778
|
.filter((e) => e != null)
|
|
1779
1779
|
.map((entry) => {
|
|
1780
|
-
return
|
|
1780
|
+
return se_Tag(entry, context);
|
|
1781
1781
|
});
|
|
1782
1782
|
};
|
|
1783
|
-
const
|
|
1783
|
+
const se_TrainingParameters = (input, context) => {
|
|
1784
1784
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1785
1785
|
if (value === null) {
|
|
1786
1786
|
return acc;
|
|
@@ -1789,38 +1789,38 @@ const serializeAws_json1_1TrainingParameters = (input, context) => {
|
|
|
1789
1789
|
return acc;
|
|
1790
1790
|
}, {});
|
|
1791
1791
|
};
|
|
1792
|
-
const
|
|
1792
|
+
const se_UpdateBatchPredictionInput = (input, context) => {
|
|
1793
1793
|
return {
|
|
1794
1794
|
...(input.BatchPredictionId != null && { BatchPredictionId: input.BatchPredictionId }),
|
|
1795
1795
|
...(input.BatchPredictionName != null && { BatchPredictionName: input.BatchPredictionName }),
|
|
1796
1796
|
};
|
|
1797
1797
|
};
|
|
1798
|
-
const
|
|
1798
|
+
const se_UpdateDataSourceInput = (input, context) => {
|
|
1799
1799
|
return {
|
|
1800
1800
|
...(input.DataSourceId != null && { DataSourceId: input.DataSourceId }),
|
|
1801
1801
|
...(input.DataSourceName != null && { DataSourceName: input.DataSourceName }),
|
|
1802
1802
|
};
|
|
1803
1803
|
};
|
|
1804
|
-
const
|
|
1804
|
+
const se_UpdateEvaluationInput = (input, context) => {
|
|
1805
1805
|
return {
|
|
1806
1806
|
...(input.EvaluationId != null && { EvaluationId: input.EvaluationId }),
|
|
1807
1807
|
...(input.EvaluationName != null && { EvaluationName: input.EvaluationName }),
|
|
1808
1808
|
};
|
|
1809
1809
|
};
|
|
1810
|
-
const
|
|
1810
|
+
const se_UpdateMLModelInput = (input, context) => {
|
|
1811
1811
|
return {
|
|
1812
1812
|
...(input.MLModelId != null && { MLModelId: input.MLModelId }),
|
|
1813
1813
|
...(input.MLModelName != null && { MLModelName: input.MLModelName }),
|
|
1814
1814
|
...(input.ScoreThreshold != null && { ScoreThreshold: (0, smithy_client_1.serializeFloat)(input.ScoreThreshold) }),
|
|
1815
1815
|
};
|
|
1816
1816
|
};
|
|
1817
|
-
const
|
|
1817
|
+
const de_AddTagsOutput = (output, context) => {
|
|
1818
1818
|
return {
|
|
1819
1819
|
ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
|
|
1820
1820
|
ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
|
|
1821
1821
|
};
|
|
1822
1822
|
};
|
|
1823
|
-
const
|
|
1823
|
+
const de_BatchPrediction = (output, context) => {
|
|
1824
1824
|
return {
|
|
1825
1825
|
BatchPredictionDataSourceId: (0, smithy_client_1.expectString)(output.BatchPredictionDataSourceId),
|
|
1826
1826
|
BatchPredictionId: (0, smithy_client_1.expectString)(output.BatchPredictionId),
|
|
@@ -1842,56 +1842,54 @@ const deserializeAws_json1_1BatchPrediction = (output, context) => {
|
|
|
1842
1842
|
TotalRecordCount: (0, smithy_client_1.expectLong)(output.TotalRecordCount),
|
|
1843
1843
|
};
|
|
1844
1844
|
};
|
|
1845
|
-
const
|
|
1845
|
+
const de_BatchPredictions = (output, context) => {
|
|
1846
1846
|
const retVal = (output || [])
|
|
1847
1847
|
.filter((e) => e != null)
|
|
1848
1848
|
.map((entry) => {
|
|
1849
1849
|
if (entry === null) {
|
|
1850
1850
|
return null;
|
|
1851
1851
|
}
|
|
1852
|
-
return
|
|
1852
|
+
return de_BatchPrediction(entry, context);
|
|
1853
1853
|
});
|
|
1854
1854
|
return retVal;
|
|
1855
1855
|
};
|
|
1856
|
-
const
|
|
1856
|
+
const de_CreateBatchPredictionOutput = (output, context) => {
|
|
1857
1857
|
return {
|
|
1858
1858
|
BatchPredictionId: (0, smithy_client_1.expectString)(output.BatchPredictionId),
|
|
1859
1859
|
};
|
|
1860
1860
|
};
|
|
1861
|
-
const
|
|
1861
|
+
const de_CreateDataSourceFromRDSOutput = (output, context) => {
|
|
1862
1862
|
return {
|
|
1863
1863
|
DataSourceId: (0, smithy_client_1.expectString)(output.DataSourceId),
|
|
1864
1864
|
};
|
|
1865
1865
|
};
|
|
1866
|
-
const
|
|
1866
|
+
const de_CreateDataSourceFromRedshiftOutput = (output, context) => {
|
|
1867
1867
|
return {
|
|
1868
1868
|
DataSourceId: (0, smithy_client_1.expectString)(output.DataSourceId),
|
|
1869
1869
|
};
|
|
1870
1870
|
};
|
|
1871
|
-
const
|
|
1871
|
+
const de_CreateDataSourceFromS3Output = (output, context) => {
|
|
1872
1872
|
return {
|
|
1873
1873
|
DataSourceId: (0, smithy_client_1.expectString)(output.DataSourceId),
|
|
1874
1874
|
};
|
|
1875
1875
|
};
|
|
1876
|
-
const
|
|
1876
|
+
const de_CreateEvaluationOutput = (output, context) => {
|
|
1877
1877
|
return {
|
|
1878
1878
|
EvaluationId: (0, smithy_client_1.expectString)(output.EvaluationId),
|
|
1879
1879
|
};
|
|
1880
1880
|
};
|
|
1881
|
-
const
|
|
1881
|
+
const de_CreateMLModelOutput = (output, context) => {
|
|
1882
1882
|
return {
|
|
1883
1883
|
MLModelId: (0, smithy_client_1.expectString)(output.MLModelId),
|
|
1884
1884
|
};
|
|
1885
1885
|
};
|
|
1886
|
-
const
|
|
1886
|
+
const de_CreateRealtimeEndpointOutput = (output, context) => {
|
|
1887
1887
|
return {
|
|
1888
1888
|
MLModelId: (0, smithy_client_1.expectString)(output.MLModelId),
|
|
1889
|
-
RealtimeEndpointInfo: output.RealtimeEndpointInfo != null
|
|
1890
|
-
? deserializeAws_json1_1RealtimeEndpointInfo(output.RealtimeEndpointInfo, context)
|
|
1891
|
-
: undefined,
|
|
1889
|
+
RealtimeEndpointInfo: output.RealtimeEndpointInfo != null ? de_RealtimeEndpointInfo(output.RealtimeEndpointInfo, context) : undefined,
|
|
1892
1890
|
};
|
|
1893
1891
|
};
|
|
1894
|
-
const
|
|
1892
|
+
const de_DataSource = (output, context) => {
|
|
1895
1893
|
return {
|
|
1896
1894
|
ComputeStatistics: (0, smithy_client_1.expectBoolean)(output.ComputeStatistics),
|
|
1897
1895
|
ComputeTime: (0, smithy_client_1.expectLong)(output.ComputeTime),
|
|
@@ -1908,92 +1906,88 @@ const deserializeAws_json1_1DataSource = (output, context) => {
|
|
|
1908
1906
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1909
1907
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1910
1908
|
NumberOfFiles: (0, smithy_client_1.expectLong)(output.NumberOfFiles),
|
|
1911
|
-
RDSMetadata: output.RDSMetadata != null ?
|
|
1912
|
-
RedshiftMetadata: output.RedshiftMetadata != null
|
|
1913
|
-
? deserializeAws_json1_1RedshiftMetadata(output.RedshiftMetadata, context)
|
|
1914
|
-
: undefined,
|
|
1909
|
+
RDSMetadata: output.RDSMetadata != null ? de_RDSMetadata(output.RDSMetadata, context) : undefined,
|
|
1910
|
+
RedshiftMetadata: output.RedshiftMetadata != null ? de_RedshiftMetadata(output.RedshiftMetadata, context) : undefined,
|
|
1915
1911
|
RoleARN: (0, smithy_client_1.expectString)(output.RoleARN),
|
|
1916
1912
|
StartedAt: output.StartedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartedAt))) : undefined,
|
|
1917
1913
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1918
1914
|
};
|
|
1919
1915
|
};
|
|
1920
|
-
const
|
|
1916
|
+
const de_DataSources = (output, context) => {
|
|
1921
1917
|
const retVal = (output || [])
|
|
1922
1918
|
.filter((e) => e != null)
|
|
1923
1919
|
.map((entry) => {
|
|
1924
1920
|
if (entry === null) {
|
|
1925
1921
|
return null;
|
|
1926
1922
|
}
|
|
1927
|
-
return
|
|
1923
|
+
return de_DataSource(entry, context);
|
|
1928
1924
|
});
|
|
1929
1925
|
return retVal;
|
|
1930
1926
|
};
|
|
1931
|
-
const
|
|
1927
|
+
const de_DeleteBatchPredictionOutput = (output, context) => {
|
|
1932
1928
|
return {
|
|
1933
1929
|
BatchPredictionId: (0, smithy_client_1.expectString)(output.BatchPredictionId),
|
|
1934
1930
|
};
|
|
1935
1931
|
};
|
|
1936
|
-
const
|
|
1932
|
+
const de_DeleteDataSourceOutput = (output, context) => {
|
|
1937
1933
|
return {
|
|
1938
1934
|
DataSourceId: (0, smithy_client_1.expectString)(output.DataSourceId),
|
|
1939
1935
|
};
|
|
1940
1936
|
};
|
|
1941
|
-
const
|
|
1937
|
+
const de_DeleteEvaluationOutput = (output, context) => {
|
|
1942
1938
|
return {
|
|
1943
1939
|
EvaluationId: (0, smithy_client_1.expectString)(output.EvaluationId),
|
|
1944
1940
|
};
|
|
1945
1941
|
};
|
|
1946
|
-
const
|
|
1942
|
+
const de_DeleteMLModelOutput = (output, context) => {
|
|
1947
1943
|
return {
|
|
1948
1944
|
MLModelId: (0, smithy_client_1.expectString)(output.MLModelId),
|
|
1949
1945
|
};
|
|
1950
1946
|
};
|
|
1951
|
-
const
|
|
1947
|
+
const de_DeleteRealtimeEndpointOutput = (output, context) => {
|
|
1952
1948
|
return {
|
|
1953
1949
|
MLModelId: (0, smithy_client_1.expectString)(output.MLModelId),
|
|
1954
|
-
RealtimeEndpointInfo: output.RealtimeEndpointInfo != null
|
|
1955
|
-
? deserializeAws_json1_1RealtimeEndpointInfo(output.RealtimeEndpointInfo, context)
|
|
1956
|
-
: undefined,
|
|
1950
|
+
RealtimeEndpointInfo: output.RealtimeEndpointInfo != null ? de_RealtimeEndpointInfo(output.RealtimeEndpointInfo, context) : undefined,
|
|
1957
1951
|
};
|
|
1958
1952
|
};
|
|
1959
|
-
const
|
|
1953
|
+
const de_DeleteTagsOutput = (output, context) => {
|
|
1960
1954
|
return {
|
|
1961
1955
|
ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
|
|
1962
1956
|
ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
|
|
1963
1957
|
};
|
|
1964
1958
|
};
|
|
1965
|
-
const
|
|
1959
|
+
const de_DescribeBatchPredictionsOutput = (output, context) => {
|
|
1966
1960
|
return {
|
|
1967
1961
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1968
|
-
Results: output.Results != null ?
|
|
1962
|
+
Results: output.Results != null ? de_BatchPredictions(output.Results, context) : undefined,
|
|
1969
1963
|
};
|
|
1970
1964
|
};
|
|
1971
|
-
const
|
|
1965
|
+
const de_DescribeDataSourcesOutput = (output, context) => {
|
|
1972
1966
|
return {
|
|
1973
1967
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1974
|
-
Results: output.Results != null ?
|
|
1968
|
+
Results: output.Results != null ? de_DataSources(output.Results, context) : undefined,
|
|
1975
1969
|
};
|
|
1976
1970
|
};
|
|
1977
|
-
const
|
|
1971
|
+
const de_DescribeEvaluationsOutput = (output, context) => {
|
|
1978
1972
|
return {
|
|
1979
1973
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1980
|
-
Results: output.Results != null ?
|
|
1974
|
+
Results: output.Results != null ? de_Evaluations(output.Results, context) : undefined,
|
|
1981
1975
|
};
|
|
1982
1976
|
};
|
|
1983
|
-
const
|
|
1977
|
+
const de_DescribeMLModelsOutput = (output, context) => {
|
|
1984
1978
|
return {
|
|
1985
1979
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1986
|
-
Results: output.Results != null ?
|
|
1980
|
+
Results: output.Results != null ? de_MLModels(output.Results, context) : undefined,
|
|
1987
1981
|
};
|
|
1988
1982
|
};
|
|
1989
|
-
const
|
|
1983
|
+
const de_DescribeTagsOutput = (output, context) => {
|
|
1990
1984
|
return {
|
|
1991
1985
|
ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
|
|
1992
1986
|
ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
|
|
1993
|
-
Tags: output.Tags != null ?
|
|
1987
|
+
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
1994
1988
|
};
|
|
1995
1989
|
};
|
|
1996
|
-
const
|
|
1990
|
+
const de_DetailsMap = (output, context) => {
|
|
1997
1991
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1998
1992
|
if (value === null) {
|
|
1999
1993
|
return acc;
|
|
@@ -2002,7 +1996,7 @@ const deserializeAws_json1_1DetailsMap = (output, context) => {
|
|
|
2002
1996
|
return acc;
|
|
2003
1997
|
}, {});
|
|
2004
1998
|
};
|
|
2005
|
-
const
|
|
1999
|
+
const de_Evaluation = (output, context) => {
|
|
2006
2000
|
return {
|
|
2007
2001
|
ComputeTime: (0, smithy_client_1.expectLong)(output.ComputeTime),
|
|
2008
2002
|
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
@@ -2017,25 +2011,23 @@ const deserializeAws_json1_1Evaluation = (output, context) => {
|
|
|
2017
2011
|
MLModelId: (0, smithy_client_1.expectString)(output.MLModelId),
|
|
2018
2012
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2019
2013
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2020
|
-
PerformanceMetrics: output.PerformanceMetrics != null
|
|
2021
|
-
? deserializeAws_json1_1PerformanceMetrics(output.PerformanceMetrics, context)
|
|
2022
|
-
: undefined,
|
|
2014
|
+
PerformanceMetrics: output.PerformanceMetrics != null ? de_PerformanceMetrics(output.PerformanceMetrics, context) : undefined,
|
|
2023
2015
|
StartedAt: output.StartedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartedAt))) : undefined,
|
|
2024
2016
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2025
2017
|
};
|
|
2026
2018
|
};
|
|
2027
|
-
const
|
|
2019
|
+
const de_Evaluations = (output, context) => {
|
|
2028
2020
|
const retVal = (output || [])
|
|
2029
2021
|
.filter((e) => e != null)
|
|
2030
2022
|
.map((entry) => {
|
|
2031
2023
|
if (entry === null) {
|
|
2032
2024
|
return null;
|
|
2033
2025
|
}
|
|
2034
|
-
return
|
|
2026
|
+
return de_Evaluation(entry, context);
|
|
2035
2027
|
});
|
|
2036
2028
|
return retVal;
|
|
2037
2029
|
};
|
|
2038
|
-
const
|
|
2030
|
+
const de_GetBatchPredictionOutput = (output, context) => {
|
|
2039
2031
|
return {
|
|
2040
2032
|
BatchPredictionDataSourceId: (0, smithy_client_1.expectString)(output.BatchPredictionDataSourceId),
|
|
2041
2033
|
BatchPredictionId: (0, smithy_client_1.expectString)(output.BatchPredictionId),
|
|
@@ -2058,7 +2050,7 @@ const deserializeAws_json1_1GetBatchPredictionOutput = (output, context) => {
|
|
|
2058
2050
|
TotalRecordCount: (0, smithy_client_1.expectLong)(output.TotalRecordCount),
|
|
2059
2051
|
};
|
|
2060
2052
|
};
|
|
2061
|
-
const
|
|
2053
|
+
const de_GetDataSourceOutput = (output, context) => {
|
|
2062
2054
|
return {
|
|
2063
2055
|
ComputeStatistics: (0, smithy_client_1.expectBoolean)(output.ComputeStatistics),
|
|
2064
2056
|
ComputeTime: (0, smithy_client_1.expectLong)(output.ComputeTime),
|
|
@@ -2077,16 +2069,14 @@ const deserializeAws_json1_1GetDataSourceOutput = (output, context) => {
|
|
|
2077
2069
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2078
2070
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2079
2071
|
NumberOfFiles: (0, smithy_client_1.expectLong)(output.NumberOfFiles),
|
|
2080
|
-
RDSMetadata: output.RDSMetadata != null ?
|
|
2081
|
-
RedshiftMetadata: output.RedshiftMetadata != null
|
|
2082
|
-
? deserializeAws_json1_1RedshiftMetadata(output.RedshiftMetadata, context)
|
|
2083
|
-
: undefined,
|
|
2072
|
+
RDSMetadata: output.RDSMetadata != null ? de_RDSMetadata(output.RDSMetadata, context) : undefined,
|
|
2073
|
+
RedshiftMetadata: output.RedshiftMetadata != null ? de_RedshiftMetadata(output.RedshiftMetadata, context) : undefined,
|
|
2084
2074
|
RoleARN: (0, smithy_client_1.expectString)(output.RoleARN),
|
|
2085
2075
|
StartedAt: output.StartedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartedAt))) : undefined,
|
|
2086
2076
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2087
2077
|
};
|
|
2088
2078
|
};
|
|
2089
|
-
const
|
|
2079
|
+
const de_GetEvaluationOutput = (output, context) => {
|
|
2090
2080
|
return {
|
|
2091
2081
|
ComputeTime: (0, smithy_client_1.expectLong)(output.ComputeTime),
|
|
2092
2082
|
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
@@ -2102,21 +2092,17 @@ const deserializeAws_json1_1GetEvaluationOutput = (output, context) => {
|
|
|
2102
2092
|
MLModelId: (0, smithy_client_1.expectString)(output.MLModelId),
|
|
2103
2093
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2104
2094
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2105
|
-
PerformanceMetrics: output.PerformanceMetrics != null
|
|
2106
|
-
? deserializeAws_json1_1PerformanceMetrics(output.PerformanceMetrics, context)
|
|
2107
|
-
: undefined,
|
|
2095
|
+
PerformanceMetrics: output.PerformanceMetrics != null ? de_PerformanceMetrics(output.PerformanceMetrics, context) : undefined,
|
|
2108
2096
|
StartedAt: output.StartedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartedAt))) : undefined,
|
|
2109
2097
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2110
2098
|
};
|
|
2111
2099
|
};
|
|
2112
|
-
const
|
|
2100
|
+
const de_GetMLModelOutput = (output, context) => {
|
|
2113
2101
|
return {
|
|
2114
2102
|
ComputeTime: (0, smithy_client_1.expectLong)(output.ComputeTime),
|
|
2115
2103
|
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
2116
2104
|
CreatedByIamUser: (0, smithy_client_1.expectString)(output.CreatedByIamUser),
|
|
2117
|
-
EndpointInfo: output.EndpointInfo != null
|
|
2118
|
-
? deserializeAws_json1_1RealtimeEndpointInfo(output.EndpointInfo, context)
|
|
2119
|
-
: undefined,
|
|
2105
|
+
EndpointInfo: output.EndpointInfo != null ? de_RealtimeEndpointInfo(output.EndpointInfo, context) : undefined,
|
|
2120
2106
|
FinishedAt: output.FinishedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.FinishedAt))) : undefined,
|
|
2121
2107
|
InputDataLocationS3: (0, smithy_client_1.expectString)(output.InputDataLocationS3),
|
|
2122
2108
|
LastUpdatedAt: output.LastUpdatedAt != null
|
|
@@ -2137,49 +2123,45 @@ const deserializeAws_json1_1GetMLModelOutput = (output, context) => {
|
|
|
2137
2123
|
StartedAt: output.StartedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartedAt))) : undefined,
|
|
2138
2124
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2139
2125
|
TrainingDataSourceId: (0, smithy_client_1.expectString)(output.TrainingDataSourceId),
|
|
2140
|
-
TrainingParameters: output.TrainingParameters != null
|
|
2141
|
-
? deserializeAws_json1_1TrainingParameters(output.TrainingParameters, context)
|
|
2142
|
-
: undefined,
|
|
2126
|
+
TrainingParameters: output.TrainingParameters != null ? de_TrainingParameters(output.TrainingParameters, context) : undefined,
|
|
2143
2127
|
};
|
|
2144
2128
|
};
|
|
2145
|
-
const
|
|
2129
|
+
const de_IdempotentParameterMismatchException = (output, context) => {
|
|
2146
2130
|
return {
|
|
2147
2131
|
code: (0, smithy_client_1.expectInt32)(output.code),
|
|
2148
2132
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2149
2133
|
};
|
|
2150
2134
|
};
|
|
2151
|
-
const
|
|
2135
|
+
const de_InternalServerException = (output, context) => {
|
|
2152
2136
|
return {
|
|
2153
2137
|
code: (0, smithy_client_1.expectInt32)(output.code),
|
|
2154
2138
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2155
2139
|
};
|
|
2156
2140
|
};
|
|
2157
|
-
const
|
|
2141
|
+
const de_InvalidInputException = (output, context) => {
|
|
2158
2142
|
return {
|
|
2159
2143
|
code: (0, smithy_client_1.expectInt32)(output.code),
|
|
2160
2144
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2161
2145
|
};
|
|
2162
2146
|
};
|
|
2163
|
-
const
|
|
2147
|
+
const de_InvalidTagException = (output, context) => {
|
|
2164
2148
|
return {
|
|
2165
2149
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2166
2150
|
};
|
|
2167
2151
|
};
|
|
2168
|
-
const
|
|
2152
|
+
const de_LimitExceededException = (output, context) => {
|
|
2169
2153
|
return {
|
|
2170
2154
|
code: (0, smithy_client_1.expectInt32)(output.code),
|
|
2171
2155
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2172
2156
|
};
|
|
2173
2157
|
};
|
|
2174
|
-
const
|
|
2158
|
+
const de_MLModel = (output, context) => {
|
|
2175
2159
|
return {
|
|
2176
2160
|
Algorithm: (0, smithy_client_1.expectString)(output.Algorithm),
|
|
2177
2161
|
ComputeTime: (0, smithy_client_1.expectLong)(output.ComputeTime),
|
|
2178
2162
|
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
2179
2163
|
CreatedByIamUser: (0, smithy_client_1.expectString)(output.CreatedByIamUser),
|
|
2180
|
-
EndpointInfo: output.EndpointInfo != null
|
|
2181
|
-
? deserializeAws_json1_1RealtimeEndpointInfo(output.EndpointInfo, context)
|
|
2182
|
-
: undefined,
|
|
2164
|
+
EndpointInfo: output.EndpointInfo != null ? de_RealtimeEndpointInfo(output.EndpointInfo, context) : undefined,
|
|
2183
2165
|
FinishedAt: output.FinishedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.FinishedAt))) : undefined,
|
|
2184
2166
|
InputDataLocationS3: (0, smithy_client_1.expectString)(output.InputDataLocationS3),
|
|
2185
2167
|
LastUpdatedAt: output.LastUpdatedAt != null
|
|
@@ -2197,30 +2179,26 @@ const deserializeAws_json1_1MLModel = (output, context) => {
|
|
|
2197
2179
|
StartedAt: output.StartedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartedAt))) : undefined,
|
|
2198
2180
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2199
2181
|
TrainingDataSourceId: (0, smithy_client_1.expectString)(output.TrainingDataSourceId),
|
|
2200
|
-
TrainingParameters: output.TrainingParameters != null
|
|
2201
|
-
? deserializeAws_json1_1TrainingParameters(output.TrainingParameters, context)
|
|
2202
|
-
: undefined,
|
|
2182
|
+
TrainingParameters: output.TrainingParameters != null ? de_TrainingParameters(output.TrainingParameters, context) : undefined,
|
|
2203
2183
|
};
|
|
2204
2184
|
};
|
|
2205
|
-
const
|
|
2185
|
+
const de_MLModels = (output, context) => {
|
|
2206
2186
|
const retVal = (output || [])
|
|
2207
2187
|
.filter((e) => e != null)
|
|
2208
2188
|
.map((entry) => {
|
|
2209
2189
|
if (entry === null) {
|
|
2210
2190
|
return null;
|
|
2211
2191
|
}
|
|
2212
|
-
return
|
|
2192
|
+
return de_MLModel(entry, context);
|
|
2213
2193
|
});
|
|
2214
2194
|
return retVal;
|
|
2215
2195
|
};
|
|
2216
|
-
const
|
|
2196
|
+
const de_PerformanceMetrics = (output, context) => {
|
|
2217
2197
|
return {
|
|
2218
|
-
Properties: output.Properties != null
|
|
2219
|
-
? deserializeAws_json1_1PerformanceMetricsProperties(output.Properties, context)
|
|
2220
|
-
: undefined,
|
|
2198
|
+
Properties: output.Properties != null ? de_PerformanceMetricsProperties(output.Properties, context) : undefined,
|
|
2221
2199
|
};
|
|
2222
2200
|
};
|
|
2223
|
-
const
|
|
2201
|
+
const de_PerformanceMetricsProperties = (output, context) => {
|
|
2224
2202
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2225
2203
|
if (value === null) {
|
|
2226
2204
|
return acc;
|
|
@@ -2229,43 +2207,41 @@ const deserializeAws_json1_1PerformanceMetricsProperties = (output, context) =>
|
|
|
2229
2207
|
return acc;
|
|
2230
2208
|
}, {});
|
|
2231
2209
|
};
|
|
2232
|
-
const
|
|
2210
|
+
const de_Prediction = (output, context) => {
|
|
2233
2211
|
return {
|
|
2234
|
-
details: output.details != null ?
|
|
2212
|
+
details: output.details != null ? de_DetailsMap(output.details, context) : undefined,
|
|
2235
2213
|
predictedLabel: (0, smithy_client_1.expectString)(output.predictedLabel),
|
|
2236
|
-
predictedScores: output.predictedScores != null
|
|
2237
|
-
? deserializeAws_json1_1ScoreValuePerLabelMap(output.predictedScores, context)
|
|
2238
|
-
: undefined,
|
|
2214
|
+
predictedScores: output.predictedScores != null ? de_ScoreValuePerLabelMap(output.predictedScores, context) : undefined,
|
|
2239
2215
|
predictedValue: (0, smithy_client_1.limitedParseFloat32)(output.predictedValue),
|
|
2240
2216
|
};
|
|
2241
2217
|
};
|
|
2242
|
-
const
|
|
2218
|
+
const de_PredictorNotMountedException = (output, context) => {
|
|
2243
2219
|
return {
|
|
2244
2220
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2245
2221
|
};
|
|
2246
2222
|
};
|
|
2247
|
-
const
|
|
2223
|
+
const de_PredictOutput = (output, context) => {
|
|
2248
2224
|
return {
|
|
2249
|
-
Prediction: output.Prediction != null ?
|
|
2225
|
+
Prediction: output.Prediction != null ? de_Prediction(output.Prediction, context) : undefined,
|
|
2250
2226
|
};
|
|
2251
2227
|
};
|
|
2252
|
-
const
|
|
2228
|
+
const de_RDSDatabase = (output, context) => {
|
|
2253
2229
|
return {
|
|
2254
2230
|
DatabaseName: (0, smithy_client_1.expectString)(output.DatabaseName),
|
|
2255
2231
|
InstanceIdentifier: (0, smithy_client_1.expectString)(output.InstanceIdentifier),
|
|
2256
2232
|
};
|
|
2257
2233
|
};
|
|
2258
|
-
const
|
|
2234
|
+
const de_RDSMetadata = (output, context) => {
|
|
2259
2235
|
return {
|
|
2260
2236
|
DataPipelineId: (0, smithy_client_1.expectString)(output.DataPipelineId),
|
|
2261
|
-
Database: output.Database != null ?
|
|
2237
|
+
Database: output.Database != null ? de_RDSDatabase(output.Database, context) : undefined,
|
|
2262
2238
|
DatabaseUserName: (0, smithy_client_1.expectString)(output.DatabaseUserName),
|
|
2263
2239
|
ResourceRole: (0, smithy_client_1.expectString)(output.ResourceRole),
|
|
2264
2240
|
SelectSqlQuery: (0, smithy_client_1.expectString)(output.SelectSqlQuery),
|
|
2265
2241
|
ServiceRole: (0, smithy_client_1.expectString)(output.ServiceRole),
|
|
2266
2242
|
};
|
|
2267
2243
|
};
|
|
2268
|
-
const
|
|
2244
|
+
const de_RealtimeEndpointInfo = (output, context) => {
|
|
2269
2245
|
return {
|
|
2270
2246
|
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
2271
2247
|
EndpointStatus: (0, smithy_client_1.expectString)(output.EndpointStatus),
|
|
@@ -2273,28 +2249,26 @@ const deserializeAws_json1_1RealtimeEndpointInfo = (output, context) => {
|
|
|
2273
2249
|
PeakRequestsPerSecond: (0, smithy_client_1.expectInt32)(output.PeakRequestsPerSecond),
|
|
2274
2250
|
};
|
|
2275
2251
|
};
|
|
2276
|
-
const
|
|
2252
|
+
const de_RedshiftDatabase = (output, context) => {
|
|
2277
2253
|
return {
|
|
2278
2254
|
ClusterIdentifier: (0, smithy_client_1.expectString)(output.ClusterIdentifier),
|
|
2279
2255
|
DatabaseName: (0, smithy_client_1.expectString)(output.DatabaseName),
|
|
2280
2256
|
};
|
|
2281
2257
|
};
|
|
2282
|
-
const
|
|
2258
|
+
const de_RedshiftMetadata = (output, context) => {
|
|
2283
2259
|
return {
|
|
2284
2260
|
DatabaseUserName: (0, smithy_client_1.expectString)(output.DatabaseUserName),
|
|
2285
|
-
RedshiftDatabase: output.RedshiftDatabase != null
|
|
2286
|
-
? deserializeAws_json1_1RedshiftDatabase(output.RedshiftDatabase, context)
|
|
2287
|
-
: undefined,
|
|
2261
|
+
RedshiftDatabase: output.RedshiftDatabase != null ? de_RedshiftDatabase(output.RedshiftDatabase, context) : undefined,
|
|
2288
2262
|
SelectSqlQuery: (0, smithy_client_1.expectString)(output.SelectSqlQuery),
|
|
2289
2263
|
};
|
|
2290
2264
|
};
|
|
2291
|
-
const
|
|
2265
|
+
const de_ResourceNotFoundException = (output, context) => {
|
|
2292
2266
|
return {
|
|
2293
2267
|
code: (0, smithy_client_1.expectInt32)(output.code),
|
|
2294
2268
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2295
2269
|
};
|
|
2296
2270
|
};
|
|
2297
|
-
const
|
|
2271
|
+
const de_ScoreValuePerLabelMap = (output, context) => {
|
|
2298
2272
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2299
2273
|
if (value === null) {
|
|
2300
2274
|
return acc;
|
|
@@ -2303,29 +2277,29 @@ const deserializeAws_json1_1ScoreValuePerLabelMap = (output, context) => {
|
|
|
2303
2277
|
return acc;
|
|
2304
2278
|
}, {});
|
|
2305
2279
|
};
|
|
2306
|
-
const
|
|
2280
|
+
const de_Tag = (output, context) => {
|
|
2307
2281
|
return {
|
|
2308
2282
|
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
2309
2283
|
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
2310
2284
|
};
|
|
2311
2285
|
};
|
|
2312
|
-
const
|
|
2286
|
+
const de_TagLimitExceededException = (output, context) => {
|
|
2313
2287
|
return {
|
|
2314
2288
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2315
2289
|
};
|
|
2316
2290
|
};
|
|
2317
|
-
const
|
|
2291
|
+
const de_TagList = (output, context) => {
|
|
2318
2292
|
const retVal = (output || [])
|
|
2319
2293
|
.filter((e) => e != null)
|
|
2320
2294
|
.map((entry) => {
|
|
2321
2295
|
if (entry === null) {
|
|
2322
2296
|
return null;
|
|
2323
2297
|
}
|
|
2324
|
-
return
|
|
2298
|
+
return de_Tag(entry, context);
|
|
2325
2299
|
});
|
|
2326
2300
|
return retVal;
|
|
2327
2301
|
};
|
|
2328
|
-
const
|
|
2302
|
+
const de_TrainingParameters = (output, context) => {
|
|
2329
2303
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2330
2304
|
if (value === null) {
|
|
2331
2305
|
return acc;
|
|
@@ -2334,22 +2308,22 @@ const deserializeAws_json1_1TrainingParameters = (output, context) => {
|
|
|
2334
2308
|
return acc;
|
|
2335
2309
|
}, {});
|
|
2336
2310
|
};
|
|
2337
|
-
const
|
|
2311
|
+
const de_UpdateBatchPredictionOutput = (output, context) => {
|
|
2338
2312
|
return {
|
|
2339
2313
|
BatchPredictionId: (0, smithy_client_1.expectString)(output.BatchPredictionId),
|
|
2340
2314
|
};
|
|
2341
2315
|
};
|
|
2342
|
-
const
|
|
2316
|
+
const de_UpdateDataSourceOutput = (output, context) => {
|
|
2343
2317
|
return {
|
|
2344
2318
|
DataSourceId: (0, smithy_client_1.expectString)(output.DataSourceId),
|
|
2345
2319
|
};
|
|
2346
2320
|
};
|
|
2347
|
-
const
|
|
2321
|
+
const de_UpdateEvaluationOutput = (output, context) => {
|
|
2348
2322
|
return {
|
|
2349
2323
|
EvaluationId: (0, smithy_client_1.expectString)(output.EvaluationId),
|
|
2350
2324
|
};
|
|
2351
2325
|
};
|
|
2352
|
-
const
|
|
2326
|
+
const de_UpdateMLModelOutput = (output, context) => {
|
|
2353
2327
|
return {
|
|
2354
2328
|
MLModelId: (0, smithy_client_1.expectString)(output.MLModelId),
|
|
2355
2329
|
};
|