@aws-sdk/client-machine-learning 3.310.0 → 3.315.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/protocols/Aws_json1_1.js +343 -1018
- package/dist-es/protocols/Aws_json1_1.js +344 -1019
- package/package.json +6 -6
|
@@ -1,255 +1,171 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { MachineLearningServiceException as __BaseException } from "../models/MachineLearningServiceException";
|
|
4
4
|
import { IdempotentParameterMismatchException, InternalServerException, InvalidInputException, InvalidTagException, LimitExceededException, PredictorNotMountedException, ResourceNotFoundException, TagLimitExceededException, } from "../models/models_0";
|
|
5
5
|
export const se_AddTagsCommand = async (input, context) => {
|
|
6
|
-
const headers =
|
|
7
|
-
"content-type": "application/x-amz-json-1.1",
|
|
8
|
-
"x-amz-target": "AmazonML_20141212.AddTags",
|
|
9
|
-
};
|
|
6
|
+
const headers = sharedHeaders("AddTags");
|
|
10
7
|
let body;
|
|
11
|
-
body = JSON.stringify(
|
|
8
|
+
body = JSON.stringify(_json(input));
|
|
12
9
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
10
|
};
|
|
14
11
|
export const se_CreateBatchPredictionCommand = async (input, context) => {
|
|
15
|
-
const headers =
|
|
16
|
-
"content-type": "application/x-amz-json-1.1",
|
|
17
|
-
"x-amz-target": "AmazonML_20141212.CreateBatchPrediction",
|
|
18
|
-
};
|
|
12
|
+
const headers = sharedHeaders("CreateBatchPrediction");
|
|
19
13
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
14
|
+
body = JSON.stringify(_json(input));
|
|
21
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
16
|
};
|
|
23
17
|
export const se_CreateDataSourceFromRDSCommand = async (input, context) => {
|
|
24
|
-
const headers =
|
|
25
|
-
"content-type": "application/x-amz-json-1.1",
|
|
26
|
-
"x-amz-target": "AmazonML_20141212.CreateDataSourceFromRDS",
|
|
27
|
-
};
|
|
18
|
+
const headers = sharedHeaders("CreateDataSourceFromRDS");
|
|
28
19
|
let body;
|
|
29
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify(_json(input));
|
|
30
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
22
|
};
|
|
32
23
|
export const se_CreateDataSourceFromRedshiftCommand = async (input, context) => {
|
|
33
|
-
const headers =
|
|
34
|
-
"content-type": "application/x-amz-json-1.1",
|
|
35
|
-
"x-amz-target": "AmazonML_20141212.CreateDataSourceFromRedshift",
|
|
36
|
-
};
|
|
24
|
+
const headers = sharedHeaders("CreateDataSourceFromRedshift");
|
|
37
25
|
let body;
|
|
38
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify(_json(input));
|
|
39
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
28
|
};
|
|
41
29
|
export const se_CreateDataSourceFromS3Command = async (input, context) => {
|
|
42
|
-
const headers =
|
|
43
|
-
"content-type": "application/x-amz-json-1.1",
|
|
44
|
-
"x-amz-target": "AmazonML_20141212.CreateDataSourceFromS3",
|
|
45
|
-
};
|
|
30
|
+
const headers = sharedHeaders("CreateDataSourceFromS3");
|
|
46
31
|
let body;
|
|
47
|
-
body = JSON.stringify(
|
|
32
|
+
body = JSON.stringify(_json(input));
|
|
48
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
34
|
};
|
|
50
35
|
export const se_CreateEvaluationCommand = async (input, context) => {
|
|
51
|
-
const headers =
|
|
52
|
-
"content-type": "application/x-amz-json-1.1",
|
|
53
|
-
"x-amz-target": "AmazonML_20141212.CreateEvaluation",
|
|
54
|
-
};
|
|
36
|
+
const headers = sharedHeaders("CreateEvaluation");
|
|
55
37
|
let body;
|
|
56
|
-
body = JSON.stringify(
|
|
38
|
+
body = JSON.stringify(_json(input));
|
|
57
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
40
|
};
|
|
59
41
|
export const se_CreateMLModelCommand = async (input, context) => {
|
|
60
|
-
const headers =
|
|
61
|
-
"content-type": "application/x-amz-json-1.1",
|
|
62
|
-
"x-amz-target": "AmazonML_20141212.CreateMLModel",
|
|
63
|
-
};
|
|
42
|
+
const headers = sharedHeaders("CreateMLModel");
|
|
64
43
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
44
|
+
body = JSON.stringify(_json(input));
|
|
66
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
46
|
};
|
|
68
47
|
export const se_CreateRealtimeEndpointCommand = async (input, context) => {
|
|
69
|
-
const headers =
|
|
70
|
-
"content-type": "application/x-amz-json-1.1",
|
|
71
|
-
"x-amz-target": "AmazonML_20141212.CreateRealtimeEndpoint",
|
|
72
|
-
};
|
|
48
|
+
const headers = sharedHeaders("CreateRealtimeEndpoint");
|
|
73
49
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
50
|
+
body = JSON.stringify(_json(input));
|
|
75
51
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
52
|
};
|
|
77
53
|
export const se_DeleteBatchPredictionCommand = async (input, context) => {
|
|
78
|
-
const headers =
|
|
79
|
-
"content-type": "application/x-amz-json-1.1",
|
|
80
|
-
"x-amz-target": "AmazonML_20141212.DeleteBatchPrediction",
|
|
81
|
-
};
|
|
54
|
+
const headers = sharedHeaders("DeleteBatchPrediction");
|
|
82
55
|
let body;
|
|
83
|
-
body = JSON.stringify(
|
|
56
|
+
body = JSON.stringify(_json(input));
|
|
84
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
58
|
};
|
|
86
59
|
export const se_DeleteDataSourceCommand = async (input, context) => {
|
|
87
|
-
const headers =
|
|
88
|
-
"content-type": "application/x-amz-json-1.1",
|
|
89
|
-
"x-amz-target": "AmazonML_20141212.DeleteDataSource",
|
|
90
|
-
};
|
|
60
|
+
const headers = sharedHeaders("DeleteDataSource");
|
|
91
61
|
let body;
|
|
92
|
-
body = JSON.stringify(
|
|
62
|
+
body = JSON.stringify(_json(input));
|
|
93
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
64
|
};
|
|
95
65
|
export const se_DeleteEvaluationCommand = async (input, context) => {
|
|
96
|
-
const headers =
|
|
97
|
-
"content-type": "application/x-amz-json-1.1",
|
|
98
|
-
"x-amz-target": "AmazonML_20141212.DeleteEvaluation",
|
|
99
|
-
};
|
|
66
|
+
const headers = sharedHeaders("DeleteEvaluation");
|
|
100
67
|
let body;
|
|
101
|
-
body = JSON.stringify(
|
|
68
|
+
body = JSON.stringify(_json(input));
|
|
102
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
103
70
|
};
|
|
104
71
|
export const se_DeleteMLModelCommand = async (input, context) => {
|
|
105
|
-
const headers =
|
|
106
|
-
"content-type": "application/x-amz-json-1.1",
|
|
107
|
-
"x-amz-target": "AmazonML_20141212.DeleteMLModel",
|
|
108
|
-
};
|
|
72
|
+
const headers = sharedHeaders("DeleteMLModel");
|
|
109
73
|
let body;
|
|
110
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(_json(input));
|
|
111
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
76
|
};
|
|
113
77
|
export const se_DeleteRealtimeEndpointCommand = async (input, context) => {
|
|
114
|
-
const headers =
|
|
115
|
-
"content-type": "application/x-amz-json-1.1",
|
|
116
|
-
"x-amz-target": "AmazonML_20141212.DeleteRealtimeEndpoint",
|
|
117
|
-
};
|
|
78
|
+
const headers = sharedHeaders("DeleteRealtimeEndpoint");
|
|
118
79
|
let body;
|
|
119
|
-
body = JSON.stringify(
|
|
80
|
+
body = JSON.stringify(_json(input));
|
|
120
81
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
82
|
};
|
|
122
83
|
export const se_DeleteTagsCommand = async (input, context) => {
|
|
123
|
-
const headers =
|
|
124
|
-
"content-type": "application/x-amz-json-1.1",
|
|
125
|
-
"x-amz-target": "AmazonML_20141212.DeleteTags",
|
|
126
|
-
};
|
|
84
|
+
const headers = sharedHeaders("DeleteTags");
|
|
127
85
|
let body;
|
|
128
|
-
body = JSON.stringify(
|
|
86
|
+
body = JSON.stringify(_json(input));
|
|
129
87
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
88
|
};
|
|
131
89
|
export const se_DescribeBatchPredictionsCommand = async (input, context) => {
|
|
132
|
-
const headers =
|
|
133
|
-
"content-type": "application/x-amz-json-1.1",
|
|
134
|
-
"x-amz-target": "AmazonML_20141212.DescribeBatchPredictions",
|
|
135
|
-
};
|
|
90
|
+
const headers = sharedHeaders("DescribeBatchPredictions");
|
|
136
91
|
let body;
|
|
137
|
-
body = JSON.stringify(
|
|
92
|
+
body = JSON.stringify(_json(input));
|
|
138
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
94
|
};
|
|
140
95
|
export const se_DescribeDataSourcesCommand = async (input, context) => {
|
|
141
|
-
const headers =
|
|
142
|
-
"content-type": "application/x-amz-json-1.1",
|
|
143
|
-
"x-amz-target": "AmazonML_20141212.DescribeDataSources",
|
|
144
|
-
};
|
|
96
|
+
const headers = sharedHeaders("DescribeDataSources");
|
|
145
97
|
let body;
|
|
146
|
-
body = JSON.stringify(
|
|
98
|
+
body = JSON.stringify(_json(input));
|
|
147
99
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
100
|
};
|
|
149
101
|
export const se_DescribeEvaluationsCommand = async (input, context) => {
|
|
150
|
-
const headers =
|
|
151
|
-
"content-type": "application/x-amz-json-1.1",
|
|
152
|
-
"x-amz-target": "AmazonML_20141212.DescribeEvaluations",
|
|
153
|
-
};
|
|
102
|
+
const headers = sharedHeaders("DescribeEvaluations");
|
|
154
103
|
let body;
|
|
155
|
-
body = JSON.stringify(
|
|
104
|
+
body = JSON.stringify(_json(input));
|
|
156
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
106
|
};
|
|
158
107
|
export const se_DescribeMLModelsCommand = async (input, context) => {
|
|
159
|
-
const headers =
|
|
160
|
-
"content-type": "application/x-amz-json-1.1",
|
|
161
|
-
"x-amz-target": "AmazonML_20141212.DescribeMLModels",
|
|
162
|
-
};
|
|
108
|
+
const headers = sharedHeaders("DescribeMLModels");
|
|
163
109
|
let body;
|
|
164
|
-
body = JSON.stringify(
|
|
110
|
+
body = JSON.stringify(_json(input));
|
|
165
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
112
|
};
|
|
167
113
|
export const se_DescribeTagsCommand = async (input, context) => {
|
|
168
|
-
const headers =
|
|
169
|
-
"content-type": "application/x-amz-json-1.1",
|
|
170
|
-
"x-amz-target": "AmazonML_20141212.DescribeTags",
|
|
171
|
-
};
|
|
114
|
+
const headers = sharedHeaders("DescribeTags");
|
|
172
115
|
let body;
|
|
173
|
-
body = JSON.stringify(
|
|
116
|
+
body = JSON.stringify(_json(input));
|
|
174
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
118
|
};
|
|
176
119
|
export const se_GetBatchPredictionCommand = async (input, context) => {
|
|
177
|
-
const headers =
|
|
178
|
-
"content-type": "application/x-amz-json-1.1",
|
|
179
|
-
"x-amz-target": "AmazonML_20141212.GetBatchPrediction",
|
|
180
|
-
};
|
|
120
|
+
const headers = sharedHeaders("GetBatchPrediction");
|
|
181
121
|
let body;
|
|
182
|
-
body = JSON.stringify(
|
|
122
|
+
body = JSON.stringify(_json(input));
|
|
183
123
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
124
|
};
|
|
185
125
|
export const se_GetDataSourceCommand = async (input, context) => {
|
|
186
|
-
const headers =
|
|
187
|
-
"content-type": "application/x-amz-json-1.1",
|
|
188
|
-
"x-amz-target": "AmazonML_20141212.GetDataSource",
|
|
189
|
-
};
|
|
126
|
+
const headers = sharedHeaders("GetDataSource");
|
|
190
127
|
let body;
|
|
191
|
-
body = JSON.stringify(
|
|
128
|
+
body = JSON.stringify(_json(input));
|
|
192
129
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
193
130
|
};
|
|
194
131
|
export const se_GetEvaluationCommand = async (input, context) => {
|
|
195
|
-
const headers =
|
|
196
|
-
"content-type": "application/x-amz-json-1.1",
|
|
197
|
-
"x-amz-target": "AmazonML_20141212.GetEvaluation",
|
|
198
|
-
};
|
|
132
|
+
const headers = sharedHeaders("GetEvaluation");
|
|
199
133
|
let body;
|
|
200
|
-
body = JSON.stringify(
|
|
134
|
+
body = JSON.stringify(_json(input));
|
|
201
135
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
202
136
|
};
|
|
203
137
|
export const se_GetMLModelCommand = async (input, context) => {
|
|
204
|
-
const headers =
|
|
205
|
-
"content-type": "application/x-amz-json-1.1",
|
|
206
|
-
"x-amz-target": "AmazonML_20141212.GetMLModel",
|
|
207
|
-
};
|
|
138
|
+
const headers = sharedHeaders("GetMLModel");
|
|
208
139
|
let body;
|
|
209
|
-
body = JSON.stringify(
|
|
140
|
+
body = JSON.stringify(_json(input));
|
|
210
141
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
211
142
|
};
|
|
212
143
|
export const se_PredictCommand = async (input, context) => {
|
|
213
|
-
const headers =
|
|
214
|
-
"content-type": "application/x-amz-json-1.1",
|
|
215
|
-
"x-amz-target": "AmazonML_20141212.Predict",
|
|
216
|
-
};
|
|
144
|
+
const headers = sharedHeaders("Predict");
|
|
217
145
|
let body;
|
|
218
|
-
body = JSON.stringify(
|
|
146
|
+
body = JSON.stringify(_json(input));
|
|
219
147
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
220
148
|
};
|
|
221
149
|
export const se_UpdateBatchPredictionCommand = async (input, context) => {
|
|
222
|
-
const headers =
|
|
223
|
-
"content-type": "application/x-amz-json-1.1",
|
|
224
|
-
"x-amz-target": "AmazonML_20141212.UpdateBatchPrediction",
|
|
225
|
-
};
|
|
150
|
+
const headers = sharedHeaders("UpdateBatchPrediction");
|
|
226
151
|
let body;
|
|
227
|
-
body = JSON.stringify(
|
|
152
|
+
body = JSON.stringify(_json(input));
|
|
228
153
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
229
154
|
};
|
|
230
155
|
export const se_UpdateDataSourceCommand = async (input, context) => {
|
|
231
|
-
const headers =
|
|
232
|
-
"content-type": "application/x-amz-json-1.1",
|
|
233
|
-
"x-amz-target": "AmazonML_20141212.UpdateDataSource",
|
|
234
|
-
};
|
|
156
|
+
const headers = sharedHeaders("UpdateDataSource");
|
|
235
157
|
let body;
|
|
236
|
-
body = JSON.stringify(
|
|
158
|
+
body = JSON.stringify(_json(input));
|
|
237
159
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
160
|
};
|
|
239
161
|
export const se_UpdateEvaluationCommand = async (input, context) => {
|
|
240
|
-
const headers =
|
|
241
|
-
"content-type": "application/x-amz-json-1.1",
|
|
242
|
-
"x-amz-target": "AmazonML_20141212.UpdateEvaluation",
|
|
243
|
-
};
|
|
162
|
+
const headers = sharedHeaders("UpdateEvaluation");
|
|
244
163
|
let body;
|
|
245
|
-
body = JSON.stringify(
|
|
164
|
+
body = JSON.stringify(_json(input));
|
|
246
165
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
166
|
};
|
|
248
167
|
export const se_UpdateMLModelCommand = async (input, context) => {
|
|
249
|
-
const headers =
|
|
250
|
-
"content-type": "application/x-amz-json-1.1",
|
|
251
|
-
"x-amz-target": "AmazonML_20141212.UpdateMLModel",
|
|
252
|
-
};
|
|
168
|
+
const headers = sharedHeaders("UpdateMLModel");
|
|
253
169
|
let body;
|
|
254
170
|
body = JSON.stringify(se_UpdateMLModelInput(input, context));
|
|
255
171
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -260,12 +176,12 @@ export const de_AddTagsCommand = async (output, context) => {
|
|
|
260
176
|
}
|
|
261
177
|
const data = await parseBody(output.body, context);
|
|
262
178
|
let contents = {};
|
|
263
|
-
contents =
|
|
179
|
+
contents = _json(data);
|
|
264
180
|
const response = {
|
|
265
181
|
$metadata: deserializeMetadata(output),
|
|
266
182
|
...contents,
|
|
267
183
|
};
|
|
268
|
-
return
|
|
184
|
+
return response;
|
|
269
185
|
};
|
|
270
186
|
const de_AddTagsCommandError = async (output, context) => {
|
|
271
187
|
const parsedOutput = {
|
|
@@ -291,10 +207,9 @@ const de_AddTagsCommandError = async (output, context) => {
|
|
|
291
207
|
throw await de_TagLimitExceededExceptionRes(parsedOutput, context);
|
|
292
208
|
default:
|
|
293
209
|
const parsedBody = parsedOutput.body;
|
|
294
|
-
throwDefaultError({
|
|
210
|
+
return throwDefaultError({
|
|
295
211
|
output,
|
|
296
212
|
parsedBody,
|
|
297
|
-
exceptionCtor: __BaseException,
|
|
298
213
|
errorCode,
|
|
299
214
|
});
|
|
300
215
|
}
|
|
@@ -305,12 +220,12 @@ export const de_CreateBatchPredictionCommand = async (output, context) => {
|
|
|
305
220
|
}
|
|
306
221
|
const data = await parseBody(output.body, context);
|
|
307
222
|
let contents = {};
|
|
308
|
-
contents =
|
|
223
|
+
contents = _json(data);
|
|
309
224
|
const response = {
|
|
310
225
|
$metadata: deserializeMetadata(output),
|
|
311
226
|
...contents,
|
|
312
227
|
};
|
|
313
|
-
return
|
|
228
|
+
return response;
|
|
314
229
|
};
|
|
315
230
|
const de_CreateBatchPredictionCommandError = async (output, context) => {
|
|
316
231
|
const parsedOutput = {
|
|
@@ -330,10 +245,9 @@ const de_CreateBatchPredictionCommandError = async (output, context) => {
|
|
|
330
245
|
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
331
246
|
default:
|
|
332
247
|
const parsedBody = parsedOutput.body;
|
|
333
|
-
throwDefaultError({
|
|
248
|
+
return throwDefaultError({
|
|
334
249
|
output,
|
|
335
250
|
parsedBody,
|
|
336
|
-
exceptionCtor: __BaseException,
|
|
337
251
|
errorCode,
|
|
338
252
|
});
|
|
339
253
|
}
|
|
@@ -344,12 +258,12 @@ export const de_CreateDataSourceFromRDSCommand = async (output, context) => {
|
|
|
344
258
|
}
|
|
345
259
|
const data = await parseBody(output.body, context);
|
|
346
260
|
let contents = {};
|
|
347
|
-
contents =
|
|
261
|
+
contents = _json(data);
|
|
348
262
|
const response = {
|
|
349
263
|
$metadata: deserializeMetadata(output),
|
|
350
264
|
...contents,
|
|
351
265
|
};
|
|
352
|
-
return
|
|
266
|
+
return response;
|
|
353
267
|
};
|
|
354
268
|
const de_CreateDataSourceFromRDSCommandError = async (output, context) => {
|
|
355
269
|
const parsedOutput = {
|
|
@@ -369,10 +283,9 @@ const de_CreateDataSourceFromRDSCommandError = async (output, context) => {
|
|
|
369
283
|
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
370
284
|
default:
|
|
371
285
|
const parsedBody = parsedOutput.body;
|
|
372
|
-
throwDefaultError({
|
|
286
|
+
return throwDefaultError({
|
|
373
287
|
output,
|
|
374
288
|
parsedBody,
|
|
375
|
-
exceptionCtor: __BaseException,
|
|
376
289
|
errorCode,
|
|
377
290
|
});
|
|
378
291
|
}
|
|
@@ -383,12 +296,12 @@ export const de_CreateDataSourceFromRedshiftCommand = async (output, context) =>
|
|
|
383
296
|
}
|
|
384
297
|
const data = await parseBody(output.body, context);
|
|
385
298
|
let contents = {};
|
|
386
|
-
contents =
|
|
299
|
+
contents = _json(data);
|
|
387
300
|
const response = {
|
|
388
301
|
$metadata: deserializeMetadata(output),
|
|
389
302
|
...contents,
|
|
390
303
|
};
|
|
391
|
-
return
|
|
304
|
+
return response;
|
|
392
305
|
};
|
|
393
306
|
const de_CreateDataSourceFromRedshiftCommandError = async (output, context) => {
|
|
394
307
|
const parsedOutput = {
|
|
@@ -408,10 +321,9 @@ const de_CreateDataSourceFromRedshiftCommandError = async (output, context) => {
|
|
|
408
321
|
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
409
322
|
default:
|
|
410
323
|
const parsedBody = parsedOutput.body;
|
|
411
|
-
throwDefaultError({
|
|
324
|
+
return throwDefaultError({
|
|
412
325
|
output,
|
|
413
326
|
parsedBody,
|
|
414
|
-
exceptionCtor: __BaseException,
|
|
415
327
|
errorCode,
|
|
416
328
|
});
|
|
417
329
|
}
|
|
@@ -422,12 +334,12 @@ export const de_CreateDataSourceFromS3Command = async (output, context) => {
|
|
|
422
334
|
}
|
|
423
335
|
const data = await parseBody(output.body, context);
|
|
424
336
|
let contents = {};
|
|
425
|
-
contents =
|
|
337
|
+
contents = _json(data);
|
|
426
338
|
const response = {
|
|
427
339
|
$metadata: deserializeMetadata(output),
|
|
428
340
|
...contents,
|
|
429
341
|
};
|
|
430
|
-
return
|
|
342
|
+
return response;
|
|
431
343
|
};
|
|
432
344
|
const de_CreateDataSourceFromS3CommandError = async (output, context) => {
|
|
433
345
|
const parsedOutput = {
|
|
@@ -447,10 +359,9 @@ const de_CreateDataSourceFromS3CommandError = async (output, context) => {
|
|
|
447
359
|
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
448
360
|
default:
|
|
449
361
|
const parsedBody = parsedOutput.body;
|
|
450
|
-
throwDefaultError({
|
|
362
|
+
return throwDefaultError({
|
|
451
363
|
output,
|
|
452
364
|
parsedBody,
|
|
453
|
-
exceptionCtor: __BaseException,
|
|
454
365
|
errorCode,
|
|
455
366
|
});
|
|
456
367
|
}
|
|
@@ -461,12 +372,12 @@ export const de_CreateEvaluationCommand = async (output, context) => {
|
|
|
461
372
|
}
|
|
462
373
|
const data = await parseBody(output.body, context);
|
|
463
374
|
let contents = {};
|
|
464
|
-
contents =
|
|
375
|
+
contents = _json(data);
|
|
465
376
|
const response = {
|
|
466
377
|
$metadata: deserializeMetadata(output),
|
|
467
378
|
...contents,
|
|
468
379
|
};
|
|
469
|
-
return
|
|
380
|
+
return response;
|
|
470
381
|
};
|
|
471
382
|
const de_CreateEvaluationCommandError = async (output, context) => {
|
|
472
383
|
const parsedOutput = {
|
|
@@ -486,10 +397,9 @@ const de_CreateEvaluationCommandError = async (output, context) => {
|
|
|
486
397
|
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
487
398
|
default:
|
|
488
399
|
const parsedBody = parsedOutput.body;
|
|
489
|
-
throwDefaultError({
|
|
400
|
+
return throwDefaultError({
|
|
490
401
|
output,
|
|
491
402
|
parsedBody,
|
|
492
|
-
exceptionCtor: __BaseException,
|
|
493
403
|
errorCode,
|
|
494
404
|
});
|
|
495
405
|
}
|
|
@@ -500,12 +410,12 @@ export const de_CreateMLModelCommand = async (output, context) => {
|
|
|
500
410
|
}
|
|
501
411
|
const data = await parseBody(output.body, context);
|
|
502
412
|
let contents = {};
|
|
503
|
-
contents =
|
|
413
|
+
contents = _json(data);
|
|
504
414
|
const response = {
|
|
505
415
|
$metadata: deserializeMetadata(output),
|
|
506
416
|
...contents,
|
|
507
417
|
};
|
|
508
|
-
return
|
|
418
|
+
return response;
|
|
509
419
|
};
|
|
510
420
|
const de_CreateMLModelCommandError = async (output, context) => {
|
|
511
421
|
const parsedOutput = {
|
|
@@ -525,10 +435,9 @@ const de_CreateMLModelCommandError = async (output, context) => {
|
|
|
525
435
|
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
526
436
|
default:
|
|
527
437
|
const parsedBody = parsedOutput.body;
|
|
528
|
-
throwDefaultError({
|
|
438
|
+
return throwDefaultError({
|
|
529
439
|
output,
|
|
530
440
|
parsedBody,
|
|
531
|
-
exceptionCtor: __BaseException,
|
|
532
441
|
errorCode,
|
|
533
442
|
});
|
|
534
443
|
}
|
|
@@ -544,7 +453,7 @@ export const de_CreateRealtimeEndpointCommand = async (output, context) => {
|
|
|
544
453
|
$metadata: deserializeMetadata(output),
|
|
545
454
|
...contents,
|
|
546
455
|
};
|
|
547
|
-
return
|
|
456
|
+
return response;
|
|
548
457
|
};
|
|
549
458
|
const de_CreateRealtimeEndpointCommandError = async (output, context) => {
|
|
550
459
|
const parsedOutput = {
|
|
@@ -564,10 +473,9 @@ const de_CreateRealtimeEndpointCommandError = async (output, context) => {
|
|
|
564
473
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
565
474
|
default:
|
|
566
475
|
const parsedBody = parsedOutput.body;
|
|
567
|
-
throwDefaultError({
|
|
476
|
+
return throwDefaultError({
|
|
568
477
|
output,
|
|
569
478
|
parsedBody,
|
|
570
|
-
exceptionCtor: __BaseException,
|
|
571
479
|
errorCode,
|
|
572
480
|
});
|
|
573
481
|
}
|
|
@@ -578,12 +486,12 @@ export const de_DeleteBatchPredictionCommand = async (output, context) => {
|
|
|
578
486
|
}
|
|
579
487
|
const data = await parseBody(output.body, context);
|
|
580
488
|
let contents = {};
|
|
581
|
-
contents =
|
|
489
|
+
contents = _json(data);
|
|
582
490
|
const response = {
|
|
583
491
|
$metadata: deserializeMetadata(output),
|
|
584
492
|
...contents,
|
|
585
493
|
};
|
|
586
|
-
return
|
|
494
|
+
return response;
|
|
587
495
|
};
|
|
588
496
|
const de_DeleteBatchPredictionCommandError = async (output, context) => {
|
|
589
497
|
const parsedOutput = {
|
|
@@ -603,10 +511,9 @@ const de_DeleteBatchPredictionCommandError = async (output, context) => {
|
|
|
603
511
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
604
512
|
default:
|
|
605
513
|
const parsedBody = parsedOutput.body;
|
|
606
|
-
throwDefaultError({
|
|
514
|
+
return throwDefaultError({
|
|
607
515
|
output,
|
|
608
516
|
parsedBody,
|
|
609
|
-
exceptionCtor: __BaseException,
|
|
610
517
|
errorCode,
|
|
611
518
|
});
|
|
612
519
|
}
|
|
@@ -617,12 +524,12 @@ export const de_DeleteDataSourceCommand = async (output, context) => {
|
|
|
617
524
|
}
|
|
618
525
|
const data = await parseBody(output.body, context);
|
|
619
526
|
let contents = {};
|
|
620
|
-
contents =
|
|
527
|
+
contents = _json(data);
|
|
621
528
|
const response = {
|
|
622
529
|
$metadata: deserializeMetadata(output),
|
|
623
530
|
...contents,
|
|
624
531
|
};
|
|
625
|
-
return
|
|
532
|
+
return response;
|
|
626
533
|
};
|
|
627
534
|
const de_DeleteDataSourceCommandError = async (output, context) => {
|
|
628
535
|
const parsedOutput = {
|
|
@@ -642,10 +549,9 @@ const de_DeleteDataSourceCommandError = async (output, context) => {
|
|
|
642
549
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
643
550
|
default:
|
|
644
551
|
const parsedBody = parsedOutput.body;
|
|
645
|
-
throwDefaultError({
|
|
552
|
+
return throwDefaultError({
|
|
646
553
|
output,
|
|
647
554
|
parsedBody,
|
|
648
|
-
exceptionCtor: __BaseException,
|
|
649
555
|
errorCode,
|
|
650
556
|
});
|
|
651
557
|
}
|
|
@@ -656,12 +562,12 @@ export const de_DeleteEvaluationCommand = async (output, context) => {
|
|
|
656
562
|
}
|
|
657
563
|
const data = await parseBody(output.body, context);
|
|
658
564
|
let contents = {};
|
|
659
|
-
contents =
|
|
565
|
+
contents = _json(data);
|
|
660
566
|
const response = {
|
|
661
567
|
$metadata: deserializeMetadata(output),
|
|
662
568
|
...contents,
|
|
663
569
|
};
|
|
664
|
-
return
|
|
570
|
+
return response;
|
|
665
571
|
};
|
|
666
572
|
const de_DeleteEvaluationCommandError = async (output, context) => {
|
|
667
573
|
const parsedOutput = {
|
|
@@ -681,10 +587,9 @@ const de_DeleteEvaluationCommandError = async (output, context) => {
|
|
|
681
587
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
682
588
|
default:
|
|
683
589
|
const parsedBody = parsedOutput.body;
|
|
684
|
-
throwDefaultError({
|
|
590
|
+
return throwDefaultError({
|
|
685
591
|
output,
|
|
686
592
|
parsedBody,
|
|
687
|
-
exceptionCtor: __BaseException,
|
|
688
593
|
errorCode,
|
|
689
594
|
});
|
|
690
595
|
}
|
|
@@ -695,12 +600,12 @@ export const de_DeleteMLModelCommand = async (output, context) => {
|
|
|
695
600
|
}
|
|
696
601
|
const data = await parseBody(output.body, context);
|
|
697
602
|
let contents = {};
|
|
698
|
-
contents =
|
|
603
|
+
contents = _json(data);
|
|
699
604
|
const response = {
|
|
700
605
|
$metadata: deserializeMetadata(output),
|
|
701
606
|
...contents,
|
|
702
607
|
};
|
|
703
|
-
return
|
|
608
|
+
return response;
|
|
704
609
|
};
|
|
705
610
|
const de_DeleteMLModelCommandError = async (output, context) => {
|
|
706
611
|
const parsedOutput = {
|
|
@@ -720,10 +625,9 @@ const de_DeleteMLModelCommandError = async (output, context) => {
|
|
|
720
625
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
721
626
|
default:
|
|
722
627
|
const parsedBody = parsedOutput.body;
|
|
723
|
-
throwDefaultError({
|
|
628
|
+
return throwDefaultError({
|
|
724
629
|
output,
|
|
725
630
|
parsedBody,
|
|
726
|
-
exceptionCtor: __BaseException,
|
|
727
631
|
errorCode,
|
|
728
632
|
});
|
|
729
633
|
}
|
|
@@ -739,7 +643,7 @@ export const de_DeleteRealtimeEndpointCommand = async (output, context) => {
|
|
|
739
643
|
$metadata: deserializeMetadata(output),
|
|
740
644
|
...contents,
|
|
741
645
|
};
|
|
742
|
-
return
|
|
646
|
+
return response;
|
|
743
647
|
};
|
|
744
648
|
const de_DeleteRealtimeEndpointCommandError = async (output, context) => {
|
|
745
649
|
const parsedOutput = {
|
|
@@ -759,10 +663,9 @@ const de_DeleteRealtimeEndpointCommandError = async (output, context) => {
|
|
|
759
663
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
760
664
|
default:
|
|
761
665
|
const parsedBody = parsedOutput.body;
|
|
762
|
-
throwDefaultError({
|
|
666
|
+
return throwDefaultError({
|
|
763
667
|
output,
|
|
764
668
|
parsedBody,
|
|
765
|
-
exceptionCtor: __BaseException,
|
|
766
669
|
errorCode,
|
|
767
670
|
});
|
|
768
671
|
}
|
|
@@ -773,12 +676,12 @@ export const de_DeleteTagsCommand = async (output, context) => {
|
|
|
773
676
|
}
|
|
774
677
|
const data = await parseBody(output.body, context);
|
|
775
678
|
let contents = {};
|
|
776
|
-
contents =
|
|
679
|
+
contents = _json(data);
|
|
777
680
|
const response = {
|
|
778
681
|
$metadata: deserializeMetadata(output),
|
|
779
682
|
...contents,
|
|
780
683
|
};
|
|
781
|
-
return
|
|
684
|
+
return response;
|
|
782
685
|
};
|
|
783
686
|
const de_DeleteTagsCommandError = async (output, context) => {
|
|
784
687
|
const parsedOutput = {
|
|
@@ -801,10 +704,9 @@ const de_DeleteTagsCommandError = async (output, context) => {
|
|
|
801
704
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
802
705
|
default:
|
|
803
706
|
const parsedBody = parsedOutput.body;
|
|
804
|
-
throwDefaultError({
|
|
707
|
+
return throwDefaultError({
|
|
805
708
|
output,
|
|
806
709
|
parsedBody,
|
|
807
|
-
exceptionCtor: __BaseException,
|
|
808
710
|
errorCode,
|
|
809
711
|
});
|
|
810
712
|
}
|
|
@@ -820,7 +722,7 @@ export const de_DescribeBatchPredictionsCommand = async (output, context) => {
|
|
|
820
722
|
$metadata: deserializeMetadata(output),
|
|
821
723
|
...contents,
|
|
822
724
|
};
|
|
823
|
-
return
|
|
725
|
+
return response;
|
|
824
726
|
};
|
|
825
727
|
const de_DescribeBatchPredictionsCommandError = async (output, context) => {
|
|
826
728
|
const parsedOutput = {
|
|
@@ -837,10 +739,9 @@ const de_DescribeBatchPredictionsCommandError = async (output, context) => {
|
|
|
837
739
|
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
838
740
|
default:
|
|
839
741
|
const parsedBody = parsedOutput.body;
|
|
840
|
-
throwDefaultError({
|
|
742
|
+
return throwDefaultError({
|
|
841
743
|
output,
|
|
842
744
|
parsedBody,
|
|
843
|
-
exceptionCtor: __BaseException,
|
|
844
745
|
errorCode,
|
|
845
746
|
});
|
|
846
747
|
}
|
|
@@ -856,7 +757,7 @@ export const de_DescribeDataSourcesCommand = async (output, context) => {
|
|
|
856
757
|
$metadata: deserializeMetadata(output),
|
|
857
758
|
...contents,
|
|
858
759
|
};
|
|
859
|
-
return
|
|
760
|
+
return response;
|
|
860
761
|
};
|
|
861
762
|
const de_DescribeDataSourcesCommandError = async (output, context) => {
|
|
862
763
|
const parsedOutput = {
|
|
@@ -873,10 +774,9 @@ const de_DescribeDataSourcesCommandError = async (output, context) => {
|
|
|
873
774
|
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
874
775
|
default:
|
|
875
776
|
const parsedBody = parsedOutput.body;
|
|
876
|
-
throwDefaultError({
|
|
777
|
+
return throwDefaultError({
|
|
877
778
|
output,
|
|
878
779
|
parsedBody,
|
|
879
|
-
exceptionCtor: __BaseException,
|
|
880
780
|
errorCode,
|
|
881
781
|
});
|
|
882
782
|
}
|
|
@@ -892,7 +792,7 @@ export const de_DescribeEvaluationsCommand = async (output, context) => {
|
|
|
892
792
|
$metadata: deserializeMetadata(output),
|
|
893
793
|
...contents,
|
|
894
794
|
};
|
|
895
|
-
return
|
|
795
|
+
return response;
|
|
896
796
|
};
|
|
897
797
|
const de_DescribeEvaluationsCommandError = async (output, context) => {
|
|
898
798
|
const parsedOutput = {
|
|
@@ -909,10 +809,9 @@ const de_DescribeEvaluationsCommandError = async (output, context) => {
|
|
|
909
809
|
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
910
810
|
default:
|
|
911
811
|
const parsedBody = parsedOutput.body;
|
|
912
|
-
throwDefaultError({
|
|
812
|
+
return throwDefaultError({
|
|
913
813
|
output,
|
|
914
814
|
parsedBody,
|
|
915
|
-
exceptionCtor: __BaseException,
|
|
916
815
|
errorCode,
|
|
917
816
|
});
|
|
918
817
|
}
|
|
@@ -928,7 +827,7 @@ export const de_DescribeMLModelsCommand = async (output, context) => {
|
|
|
928
827
|
$metadata: deserializeMetadata(output),
|
|
929
828
|
...contents,
|
|
930
829
|
};
|
|
931
|
-
return
|
|
830
|
+
return response;
|
|
932
831
|
};
|
|
933
832
|
const de_DescribeMLModelsCommandError = async (output, context) => {
|
|
934
833
|
const parsedOutput = {
|
|
@@ -945,10 +844,9 @@ const de_DescribeMLModelsCommandError = async (output, context) => {
|
|
|
945
844
|
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
946
845
|
default:
|
|
947
846
|
const parsedBody = parsedOutput.body;
|
|
948
|
-
throwDefaultError({
|
|
847
|
+
return throwDefaultError({
|
|
949
848
|
output,
|
|
950
849
|
parsedBody,
|
|
951
|
-
exceptionCtor: __BaseException,
|
|
952
850
|
errorCode,
|
|
953
851
|
});
|
|
954
852
|
}
|
|
@@ -959,12 +857,12 @@ export const de_DescribeTagsCommand = async (output, context) => {
|
|
|
959
857
|
}
|
|
960
858
|
const data = await parseBody(output.body, context);
|
|
961
859
|
let contents = {};
|
|
962
|
-
contents =
|
|
860
|
+
contents = _json(data);
|
|
963
861
|
const response = {
|
|
964
862
|
$metadata: deserializeMetadata(output),
|
|
965
863
|
...contents,
|
|
966
864
|
};
|
|
967
|
-
return
|
|
865
|
+
return response;
|
|
968
866
|
};
|
|
969
867
|
const de_DescribeTagsCommandError = async (output, context) => {
|
|
970
868
|
const parsedOutput = {
|
|
@@ -984,10 +882,9 @@ const de_DescribeTagsCommandError = async (output, context) => {
|
|
|
984
882
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
985
883
|
default:
|
|
986
884
|
const parsedBody = parsedOutput.body;
|
|
987
|
-
throwDefaultError({
|
|
885
|
+
return throwDefaultError({
|
|
988
886
|
output,
|
|
989
887
|
parsedBody,
|
|
990
|
-
exceptionCtor: __BaseException,
|
|
991
888
|
errorCode,
|
|
992
889
|
});
|
|
993
890
|
}
|
|
@@ -1003,7 +900,7 @@ export const de_GetBatchPredictionCommand = async (output, context) => {
|
|
|
1003
900
|
$metadata: deserializeMetadata(output),
|
|
1004
901
|
...contents,
|
|
1005
902
|
};
|
|
1006
|
-
return
|
|
903
|
+
return response;
|
|
1007
904
|
};
|
|
1008
905
|
const de_GetBatchPredictionCommandError = async (output, context) => {
|
|
1009
906
|
const parsedOutput = {
|
|
@@ -1023,10 +920,9 @@ const de_GetBatchPredictionCommandError = async (output, context) => {
|
|
|
1023
920
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1024
921
|
default:
|
|
1025
922
|
const parsedBody = parsedOutput.body;
|
|
1026
|
-
throwDefaultError({
|
|
923
|
+
return throwDefaultError({
|
|
1027
924
|
output,
|
|
1028
925
|
parsedBody,
|
|
1029
|
-
exceptionCtor: __BaseException,
|
|
1030
926
|
errorCode,
|
|
1031
927
|
});
|
|
1032
928
|
}
|
|
@@ -1042,7 +938,7 @@ export const de_GetDataSourceCommand = async (output, context) => {
|
|
|
1042
938
|
$metadata: deserializeMetadata(output),
|
|
1043
939
|
...contents,
|
|
1044
940
|
};
|
|
1045
|
-
return
|
|
941
|
+
return response;
|
|
1046
942
|
};
|
|
1047
943
|
const de_GetDataSourceCommandError = async (output, context) => {
|
|
1048
944
|
const parsedOutput = {
|
|
@@ -1062,10 +958,9 @@ const de_GetDataSourceCommandError = async (output, context) => {
|
|
|
1062
958
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1063
959
|
default:
|
|
1064
960
|
const parsedBody = parsedOutput.body;
|
|
1065
|
-
throwDefaultError({
|
|
961
|
+
return throwDefaultError({
|
|
1066
962
|
output,
|
|
1067
963
|
parsedBody,
|
|
1068
|
-
exceptionCtor: __BaseException,
|
|
1069
964
|
errorCode,
|
|
1070
965
|
});
|
|
1071
966
|
}
|
|
@@ -1081,7 +976,7 @@ export const de_GetEvaluationCommand = async (output, context) => {
|
|
|
1081
976
|
$metadata: deserializeMetadata(output),
|
|
1082
977
|
...contents,
|
|
1083
978
|
};
|
|
1084
|
-
return
|
|
979
|
+
return response;
|
|
1085
980
|
};
|
|
1086
981
|
const de_GetEvaluationCommandError = async (output, context) => {
|
|
1087
982
|
const parsedOutput = {
|
|
@@ -1101,10 +996,9 @@ const de_GetEvaluationCommandError = async (output, context) => {
|
|
|
1101
996
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1102
997
|
default:
|
|
1103
998
|
const parsedBody = parsedOutput.body;
|
|
1104
|
-
throwDefaultError({
|
|
999
|
+
return throwDefaultError({
|
|
1105
1000
|
output,
|
|
1106
1001
|
parsedBody,
|
|
1107
|
-
exceptionCtor: __BaseException,
|
|
1108
1002
|
errorCode,
|
|
1109
1003
|
});
|
|
1110
1004
|
}
|
|
@@ -1120,7 +1014,7 @@ export const de_GetMLModelCommand = async (output, context) => {
|
|
|
1120
1014
|
$metadata: deserializeMetadata(output),
|
|
1121
1015
|
...contents,
|
|
1122
1016
|
};
|
|
1123
|
-
return
|
|
1017
|
+
return response;
|
|
1124
1018
|
};
|
|
1125
1019
|
const de_GetMLModelCommandError = async (output, context) => {
|
|
1126
1020
|
const parsedOutput = {
|
|
@@ -1140,10 +1034,9 @@ const de_GetMLModelCommandError = async (output, context) => {
|
|
|
1140
1034
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1141
1035
|
default:
|
|
1142
1036
|
const parsedBody = parsedOutput.body;
|
|
1143
|
-
throwDefaultError({
|
|
1037
|
+
return throwDefaultError({
|
|
1144
1038
|
output,
|
|
1145
1039
|
parsedBody,
|
|
1146
|
-
exceptionCtor: __BaseException,
|
|
1147
1040
|
errorCode,
|
|
1148
1041
|
});
|
|
1149
1042
|
}
|
|
@@ -1159,7 +1052,7 @@ export const de_PredictCommand = async (output, context) => {
|
|
|
1159
1052
|
$metadata: deserializeMetadata(output),
|
|
1160
1053
|
...contents,
|
|
1161
1054
|
};
|
|
1162
|
-
return
|
|
1055
|
+
return response;
|
|
1163
1056
|
};
|
|
1164
1057
|
const de_PredictCommandError = async (output, context) => {
|
|
1165
1058
|
const parsedOutput = {
|
|
@@ -1185,10 +1078,9 @@ const de_PredictCommandError = async (output, context) => {
|
|
|
1185
1078
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1186
1079
|
default:
|
|
1187
1080
|
const parsedBody = parsedOutput.body;
|
|
1188
|
-
throwDefaultError({
|
|
1081
|
+
return throwDefaultError({
|
|
1189
1082
|
output,
|
|
1190
1083
|
parsedBody,
|
|
1191
|
-
exceptionCtor: __BaseException,
|
|
1192
1084
|
errorCode,
|
|
1193
1085
|
});
|
|
1194
1086
|
}
|
|
@@ -1199,12 +1091,12 @@ export const de_UpdateBatchPredictionCommand = async (output, context) => {
|
|
|
1199
1091
|
}
|
|
1200
1092
|
const data = await parseBody(output.body, context);
|
|
1201
1093
|
let contents = {};
|
|
1202
|
-
contents =
|
|
1094
|
+
contents = _json(data);
|
|
1203
1095
|
const response = {
|
|
1204
1096
|
$metadata: deserializeMetadata(output),
|
|
1205
1097
|
...contents,
|
|
1206
1098
|
};
|
|
1207
|
-
return
|
|
1099
|
+
return response;
|
|
1208
1100
|
};
|
|
1209
1101
|
const de_UpdateBatchPredictionCommandError = async (output, context) => {
|
|
1210
1102
|
const parsedOutput = {
|
|
@@ -1224,10 +1116,9 @@ const de_UpdateBatchPredictionCommandError = async (output, context) => {
|
|
|
1224
1116
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1225
1117
|
default:
|
|
1226
1118
|
const parsedBody = parsedOutput.body;
|
|
1227
|
-
throwDefaultError({
|
|
1119
|
+
return throwDefaultError({
|
|
1228
1120
|
output,
|
|
1229
1121
|
parsedBody,
|
|
1230
|
-
exceptionCtor: __BaseException,
|
|
1231
1122
|
errorCode,
|
|
1232
1123
|
});
|
|
1233
1124
|
}
|
|
@@ -1238,12 +1129,12 @@ export const de_UpdateDataSourceCommand = async (output, context) => {
|
|
|
1238
1129
|
}
|
|
1239
1130
|
const data = await parseBody(output.body, context);
|
|
1240
1131
|
let contents = {};
|
|
1241
|
-
contents =
|
|
1132
|
+
contents = _json(data);
|
|
1242
1133
|
const response = {
|
|
1243
1134
|
$metadata: deserializeMetadata(output),
|
|
1244
1135
|
...contents,
|
|
1245
1136
|
};
|
|
1246
|
-
return
|
|
1137
|
+
return response;
|
|
1247
1138
|
};
|
|
1248
1139
|
const de_UpdateDataSourceCommandError = async (output, context) => {
|
|
1249
1140
|
const parsedOutput = {
|
|
@@ -1263,10 +1154,9 @@ const de_UpdateDataSourceCommandError = async (output, context) => {
|
|
|
1263
1154
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1264
1155
|
default:
|
|
1265
1156
|
const parsedBody = parsedOutput.body;
|
|
1266
|
-
throwDefaultError({
|
|
1157
|
+
return throwDefaultError({
|
|
1267
1158
|
output,
|
|
1268
1159
|
parsedBody,
|
|
1269
|
-
exceptionCtor: __BaseException,
|
|
1270
1160
|
errorCode,
|
|
1271
1161
|
});
|
|
1272
1162
|
}
|
|
@@ -1277,12 +1167,12 @@ export const de_UpdateEvaluationCommand = async (output, context) => {
|
|
|
1277
1167
|
}
|
|
1278
1168
|
const data = await parseBody(output.body, context);
|
|
1279
1169
|
let contents = {};
|
|
1280
|
-
contents =
|
|
1170
|
+
contents = _json(data);
|
|
1281
1171
|
const response = {
|
|
1282
1172
|
$metadata: deserializeMetadata(output),
|
|
1283
1173
|
...contents,
|
|
1284
1174
|
};
|
|
1285
|
-
return
|
|
1175
|
+
return response;
|
|
1286
1176
|
};
|
|
1287
1177
|
const de_UpdateEvaluationCommandError = async (output, context) => {
|
|
1288
1178
|
const parsedOutput = {
|
|
@@ -1302,10 +1192,9 @@ const de_UpdateEvaluationCommandError = async (output, context) => {
|
|
|
1302
1192
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1303
1193
|
default:
|
|
1304
1194
|
const parsedBody = parsedOutput.body;
|
|
1305
|
-
throwDefaultError({
|
|
1195
|
+
return throwDefaultError({
|
|
1306
1196
|
output,
|
|
1307
1197
|
parsedBody,
|
|
1308
|
-
exceptionCtor: __BaseException,
|
|
1309
1198
|
errorCode,
|
|
1310
1199
|
});
|
|
1311
1200
|
}
|
|
@@ -1316,12 +1205,12 @@ export const de_UpdateMLModelCommand = async (output, context) => {
|
|
|
1316
1205
|
}
|
|
1317
1206
|
const data = await parseBody(output.body, context);
|
|
1318
1207
|
let contents = {};
|
|
1319
|
-
contents =
|
|
1208
|
+
contents = _json(data);
|
|
1320
1209
|
const response = {
|
|
1321
1210
|
$metadata: deserializeMetadata(output),
|
|
1322
1211
|
...contents,
|
|
1323
1212
|
};
|
|
1324
|
-
return
|
|
1213
|
+
return response;
|
|
1325
1214
|
};
|
|
1326
1215
|
const de_UpdateMLModelCommandError = async (output, context) => {
|
|
1327
1216
|
const parsedOutput = {
|
|
@@ -1341,17 +1230,16 @@ const de_UpdateMLModelCommandError = async (output, context) => {
|
|
|
1341
1230
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1342
1231
|
default:
|
|
1343
1232
|
const parsedBody = parsedOutput.body;
|
|
1344
|
-
throwDefaultError({
|
|
1233
|
+
return throwDefaultError({
|
|
1345
1234
|
output,
|
|
1346
1235
|
parsedBody,
|
|
1347
|
-
exceptionCtor: __BaseException,
|
|
1348
1236
|
errorCode,
|
|
1349
1237
|
});
|
|
1350
1238
|
}
|
|
1351
1239
|
};
|
|
1352
1240
|
const de_IdempotentParameterMismatchExceptionRes = async (parsedOutput, context) => {
|
|
1353
1241
|
const body = parsedOutput.body;
|
|
1354
|
-
const deserialized =
|
|
1242
|
+
const deserialized = _json(body);
|
|
1355
1243
|
const exception = new IdempotentParameterMismatchException({
|
|
1356
1244
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1357
1245
|
...deserialized,
|
|
@@ -1360,7 +1248,7 @@ const de_IdempotentParameterMismatchExceptionRes = async (parsedOutput, context)
|
|
|
1360
1248
|
};
|
|
1361
1249
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1362
1250
|
const body = parsedOutput.body;
|
|
1363
|
-
const deserialized =
|
|
1251
|
+
const deserialized = _json(body);
|
|
1364
1252
|
const exception = new InternalServerException({
|
|
1365
1253
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1366
1254
|
...deserialized,
|
|
@@ -1369,7 +1257,7 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1369
1257
|
};
|
|
1370
1258
|
const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
|
|
1371
1259
|
const body = parsedOutput.body;
|
|
1372
|
-
const deserialized =
|
|
1260
|
+
const deserialized = _json(body);
|
|
1373
1261
|
const exception = new InvalidInputException({
|
|
1374
1262
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1375
1263
|
...deserialized,
|
|
@@ -1378,7 +1266,7 @@ const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
|
|
|
1378
1266
|
};
|
|
1379
1267
|
const de_InvalidTagExceptionRes = async (parsedOutput, context) => {
|
|
1380
1268
|
const body = parsedOutput.body;
|
|
1381
|
-
const deserialized =
|
|
1269
|
+
const deserialized = _json(body);
|
|
1382
1270
|
const exception = new InvalidTagException({
|
|
1383
1271
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1384
1272
|
...deserialized,
|
|
@@ -1387,7 +1275,7 @@ const de_InvalidTagExceptionRes = async (parsedOutput, context) => {
|
|
|
1387
1275
|
};
|
|
1388
1276
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1389
1277
|
const body = parsedOutput.body;
|
|
1390
|
-
const deserialized =
|
|
1278
|
+
const deserialized = _json(body);
|
|
1391
1279
|
const exception = new LimitExceededException({
|
|
1392
1280
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1393
1281
|
...deserialized,
|
|
@@ -1396,7 +1284,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1396
1284
|
};
|
|
1397
1285
|
const de_PredictorNotMountedExceptionRes = async (parsedOutput, context) => {
|
|
1398
1286
|
const body = parsedOutput.body;
|
|
1399
|
-
const deserialized =
|
|
1287
|
+
const deserialized = _json(body);
|
|
1400
1288
|
const exception = new PredictorNotMountedException({
|
|
1401
1289
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1402
1290
|
...deserialized,
|
|
@@ -1405,7 +1293,7 @@ const de_PredictorNotMountedExceptionRes = async (parsedOutput, context) => {
|
|
|
1405
1293
|
};
|
|
1406
1294
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1407
1295
|
const body = parsedOutput.body;
|
|
1408
|
-
const deserialized =
|
|
1296
|
+
const deserialized = _json(body);
|
|
1409
1297
|
const exception = new ResourceNotFoundException({
|
|
1410
1298
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1411
1299
|
...deserialized,
|
|
@@ -1414,799 +1302,280 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1414
1302
|
};
|
|
1415
1303
|
const de_TagLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1416
1304
|
const body = parsedOutput.body;
|
|
1417
|
-
const deserialized =
|
|
1305
|
+
const deserialized = _json(body);
|
|
1418
1306
|
const exception = new TagLimitExceededException({
|
|
1419
1307
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1420
1308
|
...deserialized,
|
|
1421
1309
|
});
|
|
1422
1310
|
return __decorateServiceException(exception, body);
|
|
1423
1311
|
};
|
|
1424
|
-
const se_AddTagsInput = (input, context) => {
|
|
1425
|
-
return {
|
|
1426
|
-
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
1427
|
-
...(input.ResourceType != null && { ResourceType: input.ResourceType }),
|
|
1428
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1429
|
-
};
|
|
1430
|
-
};
|
|
1431
|
-
const se_CreateBatchPredictionInput = (input, context) => {
|
|
1432
|
-
return {
|
|
1433
|
-
...(input.BatchPredictionDataSourceId != null && {
|
|
1434
|
-
BatchPredictionDataSourceId: input.BatchPredictionDataSourceId,
|
|
1435
|
-
}),
|
|
1436
|
-
...(input.BatchPredictionId != null && { BatchPredictionId: input.BatchPredictionId }),
|
|
1437
|
-
...(input.BatchPredictionName != null && { BatchPredictionName: input.BatchPredictionName }),
|
|
1438
|
-
...(input.MLModelId != null && { MLModelId: input.MLModelId }),
|
|
1439
|
-
...(input.OutputUri != null && { OutputUri: input.OutputUri }),
|
|
1440
|
-
};
|
|
1441
|
-
};
|
|
1442
|
-
const se_CreateDataSourceFromRDSInput = (input, context) => {
|
|
1443
|
-
return {
|
|
1444
|
-
...(input.ComputeStatistics != null && { ComputeStatistics: input.ComputeStatistics }),
|
|
1445
|
-
...(input.DataSourceId != null && { DataSourceId: input.DataSourceId }),
|
|
1446
|
-
...(input.DataSourceName != null && { DataSourceName: input.DataSourceName }),
|
|
1447
|
-
...(input.RDSData != null && { RDSData: se_RDSDataSpec(input.RDSData, context) }),
|
|
1448
|
-
...(input.RoleARN != null && { RoleARN: input.RoleARN }),
|
|
1449
|
-
};
|
|
1450
|
-
};
|
|
1451
|
-
const se_CreateDataSourceFromRedshiftInput = (input, context) => {
|
|
1452
|
-
return {
|
|
1453
|
-
...(input.ComputeStatistics != null && { ComputeStatistics: input.ComputeStatistics }),
|
|
1454
|
-
...(input.DataSourceId != null && { DataSourceId: input.DataSourceId }),
|
|
1455
|
-
...(input.DataSourceName != null && { DataSourceName: input.DataSourceName }),
|
|
1456
|
-
...(input.DataSpec != null && { DataSpec: se_RedshiftDataSpec(input.DataSpec, context) }),
|
|
1457
|
-
...(input.RoleARN != null && { RoleARN: input.RoleARN }),
|
|
1458
|
-
};
|
|
1459
|
-
};
|
|
1460
|
-
const se_CreateDataSourceFromS3Input = (input, context) => {
|
|
1461
|
-
return {
|
|
1462
|
-
...(input.ComputeStatistics != null && { ComputeStatistics: input.ComputeStatistics }),
|
|
1463
|
-
...(input.DataSourceId != null && { DataSourceId: input.DataSourceId }),
|
|
1464
|
-
...(input.DataSourceName != null && { DataSourceName: input.DataSourceName }),
|
|
1465
|
-
...(input.DataSpec != null && { DataSpec: se_S3DataSpec(input.DataSpec, context) }),
|
|
1466
|
-
};
|
|
1467
|
-
};
|
|
1468
|
-
const se_CreateEvaluationInput = (input, context) => {
|
|
1469
|
-
return {
|
|
1470
|
-
...(input.EvaluationDataSourceId != null && { EvaluationDataSourceId: input.EvaluationDataSourceId }),
|
|
1471
|
-
...(input.EvaluationId != null && { EvaluationId: input.EvaluationId }),
|
|
1472
|
-
...(input.EvaluationName != null && { EvaluationName: input.EvaluationName }),
|
|
1473
|
-
...(input.MLModelId != null && { MLModelId: input.MLModelId }),
|
|
1474
|
-
};
|
|
1475
|
-
};
|
|
1476
|
-
const se_CreateMLModelInput = (input, context) => {
|
|
1477
|
-
return {
|
|
1478
|
-
...(input.MLModelId != null && { MLModelId: input.MLModelId }),
|
|
1479
|
-
...(input.MLModelName != null && { MLModelName: input.MLModelName }),
|
|
1480
|
-
...(input.MLModelType != null && { MLModelType: input.MLModelType }),
|
|
1481
|
-
...(input.Parameters != null && { Parameters: se_TrainingParameters(input.Parameters, context) }),
|
|
1482
|
-
...(input.Recipe != null && { Recipe: input.Recipe }),
|
|
1483
|
-
...(input.RecipeUri != null && { RecipeUri: input.RecipeUri }),
|
|
1484
|
-
...(input.TrainingDataSourceId != null && { TrainingDataSourceId: input.TrainingDataSourceId }),
|
|
1485
|
-
};
|
|
1486
|
-
};
|
|
1487
|
-
const se_CreateRealtimeEndpointInput = (input, context) => {
|
|
1488
|
-
return {
|
|
1489
|
-
...(input.MLModelId != null && { MLModelId: input.MLModelId }),
|
|
1490
|
-
};
|
|
1491
|
-
};
|
|
1492
|
-
const se_DeleteBatchPredictionInput = (input, context) => {
|
|
1493
|
-
return {
|
|
1494
|
-
...(input.BatchPredictionId != null && { BatchPredictionId: input.BatchPredictionId }),
|
|
1495
|
-
};
|
|
1496
|
-
};
|
|
1497
|
-
const se_DeleteDataSourceInput = (input, context) => {
|
|
1498
|
-
return {
|
|
1499
|
-
...(input.DataSourceId != null && { DataSourceId: input.DataSourceId }),
|
|
1500
|
-
};
|
|
1501
|
-
};
|
|
1502
|
-
const se_DeleteEvaluationInput = (input, context) => {
|
|
1503
|
-
return {
|
|
1504
|
-
...(input.EvaluationId != null && { EvaluationId: input.EvaluationId }),
|
|
1505
|
-
};
|
|
1506
|
-
};
|
|
1507
|
-
const se_DeleteMLModelInput = (input, context) => {
|
|
1508
|
-
return {
|
|
1509
|
-
...(input.MLModelId != null && { MLModelId: input.MLModelId }),
|
|
1510
|
-
};
|
|
1511
|
-
};
|
|
1512
|
-
const se_DeleteRealtimeEndpointInput = (input, context) => {
|
|
1513
|
-
return {
|
|
1514
|
-
...(input.MLModelId != null && { MLModelId: input.MLModelId }),
|
|
1515
|
-
};
|
|
1516
|
-
};
|
|
1517
|
-
const se_DeleteTagsInput = (input, context) => {
|
|
1518
|
-
return {
|
|
1519
|
-
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
1520
|
-
...(input.ResourceType != null && { ResourceType: input.ResourceType }),
|
|
1521
|
-
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
1522
|
-
};
|
|
1523
|
-
};
|
|
1524
|
-
const se_DescribeBatchPredictionsInput = (input, context) => {
|
|
1525
|
-
return {
|
|
1526
|
-
...(input.EQ != null && { EQ: input.EQ }),
|
|
1527
|
-
...(input.FilterVariable != null && { FilterVariable: input.FilterVariable }),
|
|
1528
|
-
...(input.GE != null && { GE: input.GE }),
|
|
1529
|
-
...(input.GT != null && { GT: input.GT }),
|
|
1530
|
-
...(input.LE != null && { LE: input.LE }),
|
|
1531
|
-
...(input.LT != null && { LT: input.LT }),
|
|
1532
|
-
...(input.Limit != null && { Limit: input.Limit }),
|
|
1533
|
-
...(input.NE != null && { NE: input.NE }),
|
|
1534
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1535
|
-
...(input.Prefix != null && { Prefix: input.Prefix }),
|
|
1536
|
-
...(input.SortOrder != null && { SortOrder: input.SortOrder }),
|
|
1537
|
-
};
|
|
1538
|
-
};
|
|
1539
|
-
const se_DescribeDataSourcesInput = (input, context) => {
|
|
1540
|
-
return {
|
|
1541
|
-
...(input.EQ != null && { EQ: input.EQ }),
|
|
1542
|
-
...(input.FilterVariable != null && { FilterVariable: input.FilterVariable }),
|
|
1543
|
-
...(input.GE != null && { GE: input.GE }),
|
|
1544
|
-
...(input.GT != null && { GT: input.GT }),
|
|
1545
|
-
...(input.LE != null && { LE: input.LE }),
|
|
1546
|
-
...(input.LT != null && { LT: input.LT }),
|
|
1547
|
-
...(input.Limit != null && { Limit: input.Limit }),
|
|
1548
|
-
...(input.NE != null && { NE: input.NE }),
|
|
1549
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1550
|
-
...(input.Prefix != null && { Prefix: input.Prefix }),
|
|
1551
|
-
...(input.SortOrder != null && { SortOrder: input.SortOrder }),
|
|
1552
|
-
};
|
|
1553
|
-
};
|
|
1554
|
-
const se_DescribeEvaluationsInput = (input, context) => {
|
|
1555
|
-
return {
|
|
1556
|
-
...(input.EQ != null && { EQ: input.EQ }),
|
|
1557
|
-
...(input.FilterVariable != null && { FilterVariable: input.FilterVariable }),
|
|
1558
|
-
...(input.GE != null && { GE: input.GE }),
|
|
1559
|
-
...(input.GT != null && { GT: input.GT }),
|
|
1560
|
-
...(input.LE != null && { LE: input.LE }),
|
|
1561
|
-
...(input.LT != null && { LT: input.LT }),
|
|
1562
|
-
...(input.Limit != null && { Limit: input.Limit }),
|
|
1563
|
-
...(input.NE != null && { NE: input.NE }),
|
|
1564
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1565
|
-
...(input.Prefix != null && { Prefix: input.Prefix }),
|
|
1566
|
-
...(input.SortOrder != null && { SortOrder: input.SortOrder }),
|
|
1567
|
-
};
|
|
1568
|
-
};
|
|
1569
|
-
const se_DescribeMLModelsInput = (input, context) => {
|
|
1570
|
-
return {
|
|
1571
|
-
...(input.EQ != null && { EQ: input.EQ }),
|
|
1572
|
-
...(input.FilterVariable != null && { FilterVariable: input.FilterVariable }),
|
|
1573
|
-
...(input.GE != null && { GE: input.GE }),
|
|
1574
|
-
...(input.GT != null && { GT: input.GT }),
|
|
1575
|
-
...(input.LE != null && { LE: input.LE }),
|
|
1576
|
-
...(input.LT != null && { LT: input.LT }),
|
|
1577
|
-
...(input.Limit != null && { Limit: input.Limit }),
|
|
1578
|
-
...(input.NE != null && { NE: input.NE }),
|
|
1579
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1580
|
-
...(input.Prefix != null && { Prefix: input.Prefix }),
|
|
1581
|
-
...(input.SortOrder != null && { SortOrder: input.SortOrder }),
|
|
1582
|
-
};
|
|
1583
|
-
};
|
|
1584
|
-
const se_DescribeTagsInput = (input, context) => {
|
|
1585
|
-
return {
|
|
1586
|
-
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
1587
|
-
...(input.ResourceType != null && { ResourceType: input.ResourceType }),
|
|
1588
|
-
};
|
|
1589
|
-
};
|
|
1590
|
-
const se_EDPSecurityGroupIds = (input, context) => {
|
|
1591
|
-
return input
|
|
1592
|
-
.filter((e) => e != null)
|
|
1593
|
-
.map((entry) => {
|
|
1594
|
-
return entry;
|
|
1595
|
-
});
|
|
1596
|
-
};
|
|
1597
|
-
const se_GetBatchPredictionInput = (input, context) => {
|
|
1598
|
-
return {
|
|
1599
|
-
...(input.BatchPredictionId != null && { BatchPredictionId: input.BatchPredictionId }),
|
|
1600
|
-
};
|
|
1601
|
-
};
|
|
1602
|
-
const se_GetDataSourceInput = (input, context) => {
|
|
1603
|
-
return {
|
|
1604
|
-
...(input.DataSourceId != null && { DataSourceId: input.DataSourceId }),
|
|
1605
|
-
...(input.Verbose != null && { Verbose: input.Verbose }),
|
|
1606
|
-
};
|
|
1607
|
-
};
|
|
1608
|
-
const se_GetEvaluationInput = (input, context) => {
|
|
1609
|
-
return {
|
|
1610
|
-
...(input.EvaluationId != null && { EvaluationId: input.EvaluationId }),
|
|
1611
|
-
};
|
|
1612
|
-
};
|
|
1613
|
-
const se_GetMLModelInput = (input, context) => {
|
|
1614
|
-
return {
|
|
1615
|
-
...(input.MLModelId != null && { MLModelId: input.MLModelId }),
|
|
1616
|
-
...(input.Verbose != null && { Verbose: input.Verbose }),
|
|
1617
|
-
};
|
|
1618
|
-
};
|
|
1619
|
-
const se_PredictInput = (input, context) => {
|
|
1620
|
-
return {
|
|
1621
|
-
...(input.MLModelId != null && { MLModelId: input.MLModelId }),
|
|
1622
|
-
...(input.PredictEndpoint != null && { PredictEndpoint: input.PredictEndpoint }),
|
|
1623
|
-
...(input.Record != null && { Record: se_Record(input.Record, context) }),
|
|
1624
|
-
};
|
|
1625
|
-
};
|
|
1626
|
-
const se_RDSDatabase = (input, context) => {
|
|
1627
|
-
return {
|
|
1628
|
-
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1629
|
-
...(input.InstanceIdentifier != null && { InstanceIdentifier: input.InstanceIdentifier }),
|
|
1630
|
-
};
|
|
1631
|
-
};
|
|
1632
|
-
const se_RDSDatabaseCredentials = (input, context) => {
|
|
1633
|
-
return {
|
|
1634
|
-
...(input.Password != null && { Password: input.Password }),
|
|
1635
|
-
...(input.Username != null && { Username: input.Username }),
|
|
1636
|
-
};
|
|
1637
|
-
};
|
|
1638
|
-
const se_RDSDataSpec = (input, context) => {
|
|
1639
|
-
return {
|
|
1640
|
-
...(input.DataRearrangement != null && { DataRearrangement: input.DataRearrangement }),
|
|
1641
|
-
...(input.DataSchema != null && { DataSchema: input.DataSchema }),
|
|
1642
|
-
...(input.DataSchemaUri != null && { DataSchemaUri: input.DataSchemaUri }),
|
|
1643
|
-
...(input.DatabaseCredentials != null && {
|
|
1644
|
-
DatabaseCredentials: se_RDSDatabaseCredentials(input.DatabaseCredentials, context),
|
|
1645
|
-
}),
|
|
1646
|
-
...(input.DatabaseInformation != null && {
|
|
1647
|
-
DatabaseInformation: se_RDSDatabase(input.DatabaseInformation, context),
|
|
1648
|
-
}),
|
|
1649
|
-
...(input.ResourceRole != null && { ResourceRole: input.ResourceRole }),
|
|
1650
|
-
...(input.S3StagingLocation != null && { S3StagingLocation: input.S3StagingLocation }),
|
|
1651
|
-
...(input.SecurityGroupIds != null && {
|
|
1652
|
-
SecurityGroupIds: se_EDPSecurityGroupIds(input.SecurityGroupIds, context),
|
|
1653
|
-
}),
|
|
1654
|
-
...(input.SelectSqlQuery != null && { SelectSqlQuery: input.SelectSqlQuery }),
|
|
1655
|
-
...(input.ServiceRole != null && { ServiceRole: input.ServiceRole }),
|
|
1656
|
-
...(input.SubnetId != null && { SubnetId: input.SubnetId }),
|
|
1657
|
-
};
|
|
1658
|
-
};
|
|
1659
|
-
const se_Record = (input, context) => {
|
|
1660
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1661
|
-
if (value === null) {
|
|
1662
|
-
return acc;
|
|
1663
|
-
}
|
|
1664
|
-
acc[key] = value;
|
|
1665
|
-
return acc;
|
|
1666
|
-
}, {});
|
|
1667
|
-
};
|
|
1668
|
-
const se_RedshiftDatabase = (input, context) => {
|
|
1669
|
-
return {
|
|
1670
|
-
...(input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier }),
|
|
1671
|
-
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1672
|
-
};
|
|
1673
|
-
};
|
|
1674
|
-
const se_RedshiftDatabaseCredentials = (input, context) => {
|
|
1675
|
-
return {
|
|
1676
|
-
...(input.Password != null && { Password: input.Password }),
|
|
1677
|
-
...(input.Username != null && { Username: input.Username }),
|
|
1678
|
-
};
|
|
1679
|
-
};
|
|
1680
|
-
const se_RedshiftDataSpec = (input, context) => {
|
|
1681
|
-
return {
|
|
1682
|
-
...(input.DataRearrangement != null && { DataRearrangement: input.DataRearrangement }),
|
|
1683
|
-
...(input.DataSchema != null && { DataSchema: input.DataSchema }),
|
|
1684
|
-
...(input.DataSchemaUri != null && { DataSchemaUri: input.DataSchemaUri }),
|
|
1685
|
-
...(input.DatabaseCredentials != null && {
|
|
1686
|
-
DatabaseCredentials: se_RedshiftDatabaseCredentials(input.DatabaseCredentials, context),
|
|
1687
|
-
}),
|
|
1688
|
-
...(input.DatabaseInformation != null && {
|
|
1689
|
-
DatabaseInformation: se_RedshiftDatabase(input.DatabaseInformation, context),
|
|
1690
|
-
}),
|
|
1691
|
-
...(input.S3StagingLocation != null && { S3StagingLocation: input.S3StagingLocation }),
|
|
1692
|
-
...(input.SelectSqlQuery != null && { SelectSqlQuery: input.SelectSqlQuery }),
|
|
1693
|
-
};
|
|
1694
|
-
};
|
|
1695
|
-
const se_S3DataSpec = (input, context) => {
|
|
1696
|
-
return {
|
|
1697
|
-
...(input.DataLocationS3 != null && { DataLocationS3: input.DataLocationS3 }),
|
|
1698
|
-
...(input.DataRearrangement != null && { DataRearrangement: input.DataRearrangement }),
|
|
1699
|
-
...(input.DataSchema != null && { DataSchema: input.DataSchema }),
|
|
1700
|
-
...(input.DataSchemaLocationS3 != null && { DataSchemaLocationS3: input.DataSchemaLocationS3 }),
|
|
1701
|
-
};
|
|
1702
|
-
};
|
|
1703
|
-
const se_Tag = (input, context) => {
|
|
1704
|
-
return {
|
|
1705
|
-
...(input.Key != null && { Key: input.Key }),
|
|
1706
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1707
|
-
};
|
|
1708
|
-
};
|
|
1709
|
-
const se_TagKeyList = (input, context) => {
|
|
1710
|
-
return input
|
|
1711
|
-
.filter((e) => e != null)
|
|
1712
|
-
.map((entry) => {
|
|
1713
|
-
return entry;
|
|
1714
|
-
});
|
|
1715
|
-
};
|
|
1716
|
-
const se_TagList = (input, context) => {
|
|
1717
|
-
return input
|
|
1718
|
-
.filter((e) => e != null)
|
|
1719
|
-
.map((entry) => {
|
|
1720
|
-
return se_Tag(entry, context);
|
|
1721
|
-
});
|
|
1722
|
-
};
|
|
1723
|
-
const se_TrainingParameters = (input, context) => {
|
|
1724
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1725
|
-
if (value === null) {
|
|
1726
|
-
return acc;
|
|
1727
|
-
}
|
|
1728
|
-
acc[key] = value;
|
|
1729
|
-
return acc;
|
|
1730
|
-
}, {});
|
|
1731
|
-
};
|
|
1732
|
-
const se_UpdateBatchPredictionInput = (input, context) => {
|
|
1733
|
-
return {
|
|
1734
|
-
...(input.BatchPredictionId != null && { BatchPredictionId: input.BatchPredictionId }),
|
|
1735
|
-
...(input.BatchPredictionName != null && { BatchPredictionName: input.BatchPredictionName }),
|
|
1736
|
-
};
|
|
1737
|
-
};
|
|
1738
|
-
const se_UpdateDataSourceInput = (input, context) => {
|
|
1739
|
-
return {
|
|
1740
|
-
...(input.DataSourceId != null && { DataSourceId: input.DataSourceId }),
|
|
1741
|
-
...(input.DataSourceName != null && { DataSourceName: input.DataSourceName }),
|
|
1742
|
-
};
|
|
1743
|
-
};
|
|
1744
|
-
const se_UpdateEvaluationInput = (input, context) => {
|
|
1745
|
-
return {
|
|
1746
|
-
...(input.EvaluationId != null && { EvaluationId: input.EvaluationId }),
|
|
1747
|
-
...(input.EvaluationName != null && { EvaluationName: input.EvaluationName }),
|
|
1748
|
-
};
|
|
1749
|
-
};
|
|
1750
1312
|
const se_UpdateMLModelInput = (input, context) => {
|
|
1751
|
-
return {
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
};
|
|
1756
|
-
};
|
|
1757
|
-
const de_AddTagsOutput = (output, context) => {
|
|
1758
|
-
return {
|
|
1759
|
-
ResourceId: __expectString(output.ResourceId),
|
|
1760
|
-
ResourceType: __expectString(output.ResourceType),
|
|
1761
|
-
};
|
|
1313
|
+
return take(input, {
|
|
1314
|
+
MLModelId: [],
|
|
1315
|
+
MLModelName: [],
|
|
1316
|
+
ScoreThreshold: __serializeFloat,
|
|
1317
|
+
});
|
|
1762
1318
|
};
|
|
1763
1319
|
const de_BatchPrediction = (output, context) => {
|
|
1764
|
-
return {
|
|
1765
|
-
BatchPredictionDataSourceId: __expectString
|
|
1766
|
-
BatchPredictionId: __expectString
|
|
1767
|
-
ComputeTime: __expectLong
|
|
1768
|
-
CreatedAt:
|
|
1769
|
-
CreatedByIamUser: __expectString
|
|
1770
|
-
FinishedAt:
|
|
1771
|
-
InputDataLocationS3: __expectString
|
|
1772
|
-
InvalidRecordCount: __expectLong
|
|
1773
|
-
LastUpdatedAt:
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
TotalRecordCount: __expectLong(output.TotalRecordCount),
|
|
1783
|
-
};
|
|
1320
|
+
return take(output, {
|
|
1321
|
+
BatchPredictionDataSourceId: __expectString,
|
|
1322
|
+
BatchPredictionId: __expectString,
|
|
1323
|
+
ComputeTime: __expectLong,
|
|
1324
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1325
|
+
CreatedByIamUser: __expectString,
|
|
1326
|
+
FinishedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1327
|
+
InputDataLocationS3: __expectString,
|
|
1328
|
+
InvalidRecordCount: __expectLong,
|
|
1329
|
+
LastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1330
|
+
MLModelId: __expectString,
|
|
1331
|
+
Message: __expectString,
|
|
1332
|
+
Name: __expectString,
|
|
1333
|
+
OutputUri: __expectString,
|
|
1334
|
+
StartedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1335
|
+
Status: __expectString,
|
|
1336
|
+
TotalRecordCount: __expectLong,
|
|
1337
|
+
});
|
|
1784
1338
|
};
|
|
1785
1339
|
const de_BatchPredictions = (output, context) => {
|
|
1786
1340
|
const retVal = (output || [])
|
|
1787
1341
|
.filter((e) => e != null)
|
|
1788
1342
|
.map((entry) => {
|
|
1789
|
-
if (entry === null) {
|
|
1790
|
-
return null;
|
|
1791
|
-
}
|
|
1792
1343
|
return de_BatchPrediction(entry, context);
|
|
1793
1344
|
});
|
|
1794
1345
|
return retVal;
|
|
1795
1346
|
};
|
|
1796
|
-
const de_CreateBatchPredictionOutput = (output, context) => {
|
|
1797
|
-
return {
|
|
1798
|
-
BatchPredictionId: __expectString(output.BatchPredictionId),
|
|
1799
|
-
};
|
|
1800
|
-
};
|
|
1801
|
-
const de_CreateDataSourceFromRDSOutput = (output, context) => {
|
|
1802
|
-
return {
|
|
1803
|
-
DataSourceId: __expectString(output.DataSourceId),
|
|
1804
|
-
};
|
|
1805
|
-
};
|
|
1806
|
-
const de_CreateDataSourceFromRedshiftOutput = (output, context) => {
|
|
1807
|
-
return {
|
|
1808
|
-
DataSourceId: __expectString(output.DataSourceId),
|
|
1809
|
-
};
|
|
1810
|
-
};
|
|
1811
|
-
const de_CreateDataSourceFromS3Output = (output, context) => {
|
|
1812
|
-
return {
|
|
1813
|
-
DataSourceId: __expectString(output.DataSourceId),
|
|
1814
|
-
};
|
|
1815
|
-
};
|
|
1816
|
-
const de_CreateEvaluationOutput = (output, context) => {
|
|
1817
|
-
return {
|
|
1818
|
-
EvaluationId: __expectString(output.EvaluationId),
|
|
1819
|
-
};
|
|
1820
|
-
};
|
|
1821
|
-
const de_CreateMLModelOutput = (output, context) => {
|
|
1822
|
-
return {
|
|
1823
|
-
MLModelId: __expectString(output.MLModelId),
|
|
1824
|
-
};
|
|
1825
|
-
};
|
|
1826
1347
|
const de_CreateRealtimeEndpointOutput = (output, context) => {
|
|
1827
|
-
return {
|
|
1828
|
-
MLModelId: __expectString
|
|
1829
|
-
RealtimeEndpointInfo:
|
|
1830
|
-
};
|
|
1348
|
+
return take(output, {
|
|
1349
|
+
MLModelId: __expectString,
|
|
1350
|
+
RealtimeEndpointInfo: (_) => de_RealtimeEndpointInfo(_, context),
|
|
1351
|
+
});
|
|
1831
1352
|
};
|
|
1832
1353
|
const de_DataSource = (output, context) => {
|
|
1833
|
-
return {
|
|
1834
|
-
ComputeStatistics: __expectBoolean
|
|
1835
|
-
ComputeTime: __expectLong
|
|
1836
|
-
CreatedAt:
|
|
1837
|
-
CreatedByIamUser: __expectString
|
|
1838
|
-
DataLocationS3: __expectString
|
|
1839
|
-
DataRearrangement: __expectString
|
|
1840
|
-
DataSizeInBytes: __expectLong
|
|
1841
|
-
DataSourceId: __expectString
|
|
1842
|
-
FinishedAt:
|
|
1843
|
-
LastUpdatedAt:
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
Status: __expectString(output.Status),
|
|
1854
|
-
};
|
|
1354
|
+
return take(output, {
|
|
1355
|
+
ComputeStatistics: __expectBoolean,
|
|
1356
|
+
ComputeTime: __expectLong,
|
|
1357
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1358
|
+
CreatedByIamUser: __expectString,
|
|
1359
|
+
DataLocationS3: __expectString,
|
|
1360
|
+
DataRearrangement: __expectString,
|
|
1361
|
+
DataSizeInBytes: __expectLong,
|
|
1362
|
+
DataSourceId: __expectString,
|
|
1363
|
+
FinishedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1364
|
+
LastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1365
|
+
Message: __expectString,
|
|
1366
|
+
Name: __expectString,
|
|
1367
|
+
NumberOfFiles: __expectLong,
|
|
1368
|
+
RDSMetadata: _json,
|
|
1369
|
+
RedshiftMetadata: _json,
|
|
1370
|
+
RoleARN: __expectString,
|
|
1371
|
+
StartedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1372
|
+
Status: __expectString,
|
|
1373
|
+
});
|
|
1855
1374
|
};
|
|
1856
1375
|
const de_DataSources = (output, context) => {
|
|
1857
1376
|
const retVal = (output || [])
|
|
1858
1377
|
.filter((e) => e != null)
|
|
1859
1378
|
.map((entry) => {
|
|
1860
|
-
if (entry === null) {
|
|
1861
|
-
return null;
|
|
1862
|
-
}
|
|
1863
1379
|
return de_DataSource(entry, context);
|
|
1864
1380
|
});
|
|
1865
1381
|
return retVal;
|
|
1866
1382
|
};
|
|
1867
|
-
const de_DeleteBatchPredictionOutput = (output, context) => {
|
|
1868
|
-
return {
|
|
1869
|
-
BatchPredictionId: __expectString(output.BatchPredictionId),
|
|
1870
|
-
};
|
|
1871
|
-
};
|
|
1872
|
-
const de_DeleteDataSourceOutput = (output, context) => {
|
|
1873
|
-
return {
|
|
1874
|
-
DataSourceId: __expectString(output.DataSourceId),
|
|
1875
|
-
};
|
|
1876
|
-
};
|
|
1877
|
-
const de_DeleteEvaluationOutput = (output, context) => {
|
|
1878
|
-
return {
|
|
1879
|
-
EvaluationId: __expectString(output.EvaluationId),
|
|
1880
|
-
};
|
|
1881
|
-
};
|
|
1882
|
-
const de_DeleteMLModelOutput = (output, context) => {
|
|
1883
|
-
return {
|
|
1884
|
-
MLModelId: __expectString(output.MLModelId),
|
|
1885
|
-
};
|
|
1886
|
-
};
|
|
1887
1383
|
const de_DeleteRealtimeEndpointOutput = (output, context) => {
|
|
1888
|
-
return {
|
|
1889
|
-
MLModelId: __expectString
|
|
1890
|
-
RealtimeEndpointInfo:
|
|
1891
|
-
};
|
|
1892
|
-
};
|
|
1893
|
-
const de_DeleteTagsOutput = (output, context) => {
|
|
1894
|
-
return {
|
|
1895
|
-
ResourceId: __expectString(output.ResourceId),
|
|
1896
|
-
ResourceType: __expectString(output.ResourceType),
|
|
1897
|
-
};
|
|
1384
|
+
return take(output, {
|
|
1385
|
+
MLModelId: __expectString,
|
|
1386
|
+
RealtimeEndpointInfo: (_) => de_RealtimeEndpointInfo(_, context),
|
|
1387
|
+
});
|
|
1898
1388
|
};
|
|
1899
1389
|
const de_DescribeBatchPredictionsOutput = (output, context) => {
|
|
1900
|
-
return {
|
|
1901
|
-
NextToken: __expectString
|
|
1902
|
-
Results:
|
|
1903
|
-
};
|
|
1390
|
+
return take(output, {
|
|
1391
|
+
NextToken: __expectString,
|
|
1392
|
+
Results: (_) => de_BatchPredictions(_, context),
|
|
1393
|
+
});
|
|
1904
1394
|
};
|
|
1905
1395
|
const de_DescribeDataSourcesOutput = (output, context) => {
|
|
1906
|
-
return {
|
|
1907
|
-
NextToken: __expectString
|
|
1908
|
-
Results:
|
|
1909
|
-
};
|
|
1396
|
+
return take(output, {
|
|
1397
|
+
NextToken: __expectString,
|
|
1398
|
+
Results: (_) => de_DataSources(_, context),
|
|
1399
|
+
});
|
|
1910
1400
|
};
|
|
1911
1401
|
const de_DescribeEvaluationsOutput = (output, context) => {
|
|
1912
|
-
return {
|
|
1913
|
-
NextToken: __expectString
|
|
1914
|
-
Results:
|
|
1915
|
-
};
|
|
1402
|
+
return take(output, {
|
|
1403
|
+
NextToken: __expectString,
|
|
1404
|
+
Results: (_) => de_Evaluations(_, context),
|
|
1405
|
+
});
|
|
1916
1406
|
};
|
|
1917
1407
|
const de_DescribeMLModelsOutput = (output, context) => {
|
|
1918
|
-
return {
|
|
1919
|
-
NextToken: __expectString
|
|
1920
|
-
Results:
|
|
1921
|
-
};
|
|
1922
|
-
};
|
|
1923
|
-
const de_DescribeTagsOutput = (output, context) => {
|
|
1924
|
-
return {
|
|
1925
|
-
ResourceId: __expectString(output.ResourceId),
|
|
1926
|
-
ResourceType: __expectString(output.ResourceType),
|
|
1927
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
1928
|
-
};
|
|
1929
|
-
};
|
|
1930
|
-
const de_DetailsMap = (output, context) => {
|
|
1931
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1932
|
-
if (value === null) {
|
|
1933
|
-
return acc;
|
|
1934
|
-
}
|
|
1935
|
-
acc[key] = __expectString(value);
|
|
1936
|
-
return acc;
|
|
1937
|
-
}, {});
|
|
1408
|
+
return take(output, {
|
|
1409
|
+
NextToken: __expectString,
|
|
1410
|
+
Results: (_) => de_MLModels(_, context),
|
|
1411
|
+
});
|
|
1938
1412
|
};
|
|
1939
1413
|
const de_Evaluation = (output, context) => {
|
|
1940
|
-
return {
|
|
1941
|
-
ComputeTime: __expectLong
|
|
1942
|
-
CreatedAt:
|
|
1943
|
-
CreatedByIamUser: __expectString
|
|
1944
|
-
EvaluationDataSourceId: __expectString
|
|
1945
|
-
EvaluationId: __expectString
|
|
1946
|
-
FinishedAt:
|
|
1947
|
-
InputDataLocationS3: __expectString
|
|
1948
|
-
LastUpdatedAt:
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
Status: __expectString(output.Status),
|
|
1957
|
-
};
|
|
1414
|
+
return take(output, {
|
|
1415
|
+
ComputeTime: __expectLong,
|
|
1416
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1417
|
+
CreatedByIamUser: __expectString,
|
|
1418
|
+
EvaluationDataSourceId: __expectString,
|
|
1419
|
+
EvaluationId: __expectString,
|
|
1420
|
+
FinishedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1421
|
+
InputDataLocationS3: __expectString,
|
|
1422
|
+
LastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1423
|
+
MLModelId: __expectString,
|
|
1424
|
+
Message: __expectString,
|
|
1425
|
+
Name: __expectString,
|
|
1426
|
+
PerformanceMetrics: _json,
|
|
1427
|
+
StartedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1428
|
+
Status: __expectString,
|
|
1429
|
+
});
|
|
1958
1430
|
};
|
|
1959
1431
|
const de_Evaluations = (output, context) => {
|
|
1960
1432
|
const retVal = (output || [])
|
|
1961
1433
|
.filter((e) => e != null)
|
|
1962
1434
|
.map((entry) => {
|
|
1963
|
-
if (entry === null) {
|
|
1964
|
-
return null;
|
|
1965
|
-
}
|
|
1966
1435
|
return de_Evaluation(entry, context);
|
|
1967
1436
|
});
|
|
1968
1437
|
return retVal;
|
|
1969
1438
|
};
|
|
1970
1439
|
const de_GetBatchPredictionOutput = (output, context) => {
|
|
1971
|
-
return {
|
|
1972
|
-
BatchPredictionDataSourceId: __expectString
|
|
1973
|
-
BatchPredictionId: __expectString
|
|
1974
|
-
ComputeTime: __expectLong
|
|
1975
|
-
CreatedAt:
|
|
1976
|
-
CreatedByIamUser: __expectString
|
|
1977
|
-
FinishedAt:
|
|
1978
|
-
InputDataLocationS3: __expectString
|
|
1979
|
-
InvalidRecordCount: __expectLong
|
|
1980
|
-
LastUpdatedAt:
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
TotalRecordCount: __expectLong(output.TotalRecordCount),
|
|
1991
|
-
};
|
|
1440
|
+
return take(output, {
|
|
1441
|
+
BatchPredictionDataSourceId: __expectString,
|
|
1442
|
+
BatchPredictionId: __expectString,
|
|
1443
|
+
ComputeTime: __expectLong,
|
|
1444
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1445
|
+
CreatedByIamUser: __expectString,
|
|
1446
|
+
FinishedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1447
|
+
InputDataLocationS3: __expectString,
|
|
1448
|
+
InvalidRecordCount: __expectLong,
|
|
1449
|
+
LastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1450
|
+
LogUri: __expectString,
|
|
1451
|
+
MLModelId: __expectString,
|
|
1452
|
+
Message: __expectString,
|
|
1453
|
+
Name: __expectString,
|
|
1454
|
+
OutputUri: __expectString,
|
|
1455
|
+
StartedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1456
|
+
Status: __expectString,
|
|
1457
|
+
TotalRecordCount: __expectLong,
|
|
1458
|
+
});
|
|
1992
1459
|
};
|
|
1993
1460
|
const de_GetDataSourceOutput = (output, context) => {
|
|
1994
|
-
return {
|
|
1995
|
-
ComputeStatistics: __expectBoolean
|
|
1996
|
-
ComputeTime: __expectLong
|
|
1997
|
-
CreatedAt:
|
|
1998
|
-
CreatedByIamUser: __expectString
|
|
1999
|
-
DataLocationS3: __expectString
|
|
2000
|
-
DataRearrangement: __expectString
|
|
2001
|
-
DataSizeInBytes: __expectLong
|
|
2002
|
-
DataSourceId: __expectString
|
|
2003
|
-
DataSourceSchema: __expectString
|
|
2004
|
-
FinishedAt:
|
|
2005
|
-
LastUpdatedAt:
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
Status: __expectString(output.Status),
|
|
2017
|
-
};
|
|
1461
|
+
return take(output, {
|
|
1462
|
+
ComputeStatistics: __expectBoolean,
|
|
1463
|
+
ComputeTime: __expectLong,
|
|
1464
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1465
|
+
CreatedByIamUser: __expectString,
|
|
1466
|
+
DataLocationS3: __expectString,
|
|
1467
|
+
DataRearrangement: __expectString,
|
|
1468
|
+
DataSizeInBytes: __expectLong,
|
|
1469
|
+
DataSourceId: __expectString,
|
|
1470
|
+
DataSourceSchema: __expectString,
|
|
1471
|
+
FinishedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1472
|
+
LastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1473
|
+
LogUri: __expectString,
|
|
1474
|
+
Message: __expectString,
|
|
1475
|
+
Name: __expectString,
|
|
1476
|
+
NumberOfFiles: __expectLong,
|
|
1477
|
+
RDSMetadata: _json,
|
|
1478
|
+
RedshiftMetadata: _json,
|
|
1479
|
+
RoleARN: __expectString,
|
|
1480
|
+
StartedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1481
|
+
Status: __expectString,
|
|
1482
|
+
});
|
|
2018
1483
|
};
|
|
2019
1484
|
const de_GetEvaluationOutput = (output, context) => {
|
|
2020
|
-
return {
|
|
2021
|
-
ComputeTime: __expectLong
|
|
2022
|
-
CreatedAt:
|
|
2023
|
-
CreatedByIamUser: __expectString
|
|
2024
|
-
EvaluationDataSourceId: __expectString
|
|
2025
|
-
EvaluationId: __expectString
|
|
2026
|
-
FinishedAt:
|
|
2027
|
-
InputDataLocationS3: __expectString
|
|
2028
|
-
LastUpdatedAt:
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
Status: __expectString(output.Status),
|
|
2038
|
-
};
|
|
1485
|
+
return take(output, {
|
|
1486
|
+
ComputeTime: __expectLong,
|
|
1487
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1488
|
+
CreatedByIamUser: __expectString,
|
|
1489
|
+
EvaluationDataSourceId: __expectString,
|
|
1490
|
+
EvaluationId: __expectString,
|
|
1491
|
+
FinishedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1492
|
+
InputDataLocationS3: __expectString,
|
|
1493
|
+
LastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1494
|
+
LogUri: __expectString,
|
|
1495
|
+
MLModelId: __expectString,
|
|
1496
|
+
Message: __expectString,
|
|
1497
|
+
Name: __expectString,
|
|
1498
|
+
PerformanceMetrics: _json,
|
|
1499
|
+
StartedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1500
|
+
Status: __expectString,
|
|
1501
|
+
});
|
|
2039
1502
|
};
|
|
2040
1503
|
const de_GetMLModelOutput = (output, context) => {
|
|
2041
|
-
return {
|
|
2042
|
-
ComputeTime: __expectLong
|
|
2043
|
-
CreatedAt:
|
|
2044
|
-
CreatedByIamUser: __expectString
|
|
2045
|
-
EndpointInfo:
|
|
2046
|
-
FinishedAt:
|
|
2047
|
-
InputDataLocationS3: __expectString
|
|
2048
|
-
LastUpdatedAt:
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
Status: __expectString(output.Status),
|
|
2065
|
-
TrainingDataSourceId: __expectString(output.TrainingDataSourceId),
|
|
2066
|
-
TrainingParameters: output.TrainingParameters != null ? de_TrainingParameters(output.TrainingParameters, context) : undefined,
|
|
2067
|
-
};
|
|
2068
|
-
};
|
|
2069
|
-
const de_IdempotentParameterMismatchException = (output, context) => {
|
|
2070
|
-
return {
|
|
2071
|
-
code: __expectInt32(output.code),
|
|
2072
|
-
message: __expectString(output.message),
|
|
2073
|
-
};
|
|
2074
|
-
};
|
|
2075
|
-
const de_InternalServerException = (output, context) => {
|
|
2076
|
-
return {
|
|
2077
|
-
code: __expectInt32(output.code),
|
|
2078
|
-
message: __expectString(output.message),
|
|
2079
|
-
};
|
|
2080
|
-
};
|
|
2081
|
-
const de_InvalidInputException = (output, context) => {
|
|
2082
|
-
return {
|
|
2083
|
-
code: __expectInt32(output.code),
|
|
2084
|
-
message: __expectString(output.message),
|
|
2085
|
-
};
|
|
2086
|
-
};
|
|
2087
|
-
const de_InvalidTagException = (output, context) => {
|
|
2088
|
-
return {
|
|
2089
|
-
message: __expectString(output.message),
|
|
2090
|
-
};
|
|
2091
|
-
};
|
|
2092
|
-
const de_LimitExceededException = (output, context) => {
|
|
2093
|
-
return {
|
|
2094
|
-
code: __expectInt32(output.code),
|
|
2095
|
-
message: __expectString(output.message),
|
|
2096
|
-
};
|
|
1504
|
+
return take(output, {
|
|
1505
|
+
ComputeTime: __expectLong,
|
|
1506
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1507
|
+
CreatedByIamUser: __expectString,
|
|
1508
|
+
EndpointInfo: (_) => de_RealtimeEndpointInfo(_, context),
|
|
1509
|
+
FinishedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1510
|
+
InputDataLocationS3: __expectString,
|
|
1511
|
+
LastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1512
|
+
LogUri: __expectString,
|
|
1513
|
+
MLModelId: __expectString,
|
|
1514
|
+
MLModelType: __expectString,
|
|
1515
|
+
Message: __expectString,
|
|
1516
|
+
Name: __expectString,
|
|
1517
|
+
Recipe: __expectString,
|
|
1518
|
+
Schema: __expectString,
|
|
1519
|
+
ScoreThreshold: __limitedParseFloat32,
|
|
1520
|
+
ScoreThresholdLastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1521
|
+
SizeInBytes: __expectLong,
|
|
1522
|
+
StartedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1523
|
+
Status: __expectString,
|
|
1524
|
+
TrainingDataSourceId: __expectString,
|
|
1525
|
+
TrainingParameters: _json,
|
|
1526
|
+
});
|
|
2097
1527
|
};
|
|
2098
1528
|
const de_MLModel = (output, context) => {
|
|
2099
|
-
return {
|
|
2100
|
-
Algorithm: __expectString
|
|
2101
|
-
ComputeTime: __expectLong
|
|
2102
|
-
CreatedAt:
|
|
2103
|
-
CreatedByIamUser: __expectString
|
|
2104
|
-
EndpointInfo:
|
|
2105
|
-
FinishedAt:
|
|
2106
|
-
InputDataLocationS3: __expectString
|
|
2107
|
-
LastUpdatedAt:
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
Status: __expectString(output.Status),
|
|
2121
|
-
TrainingDataSourceId: __expectString(output.TrainingDataSourceId),
|
|
2122
|
-
TrainingParameters: output.TrainingParameters != null ? de_TrainingParameters(output.TrainingParameters, context) : undefined,
|
|
2123
|
-
};
|
|
1529
|
+
return take(output, {
|
|
1530
|
+
Algorithm: __expectString,
|
|
1531
|
+
ComputeTime: __expectLong,
|
|
1532
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1533
|
+
CreatedByIamUser: __expectString,
|
|
1534
|
+
EndpointInfo: (_) => de_RealtimeEndpointInfo(_, context),
|
|
1535
|
+
FinishedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1536
|
+
InputDataLocationS3: __expectString,
|
|
1537
|
+
LastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1538
|
+
MLModelId: __expectString,
|
|
1539
|
+
MLModelType: __expectString,
|
|
1540
|
+
Message: __expectString,
|
|
1541
|
+
Name: __expectString,
|
|
1542
|
+
ScoreThreshold: __limitedParseFloat32,
|
|
1543
|
+
ScoreThresholdLastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1544
|
+
SizeInBytes: __expectLong,
|
|
1545
|
+
StartedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1546
|
+
Status: __expectString,
|
|
1547
|
+
TrainingDataSourceId: __expectString,
|
|
1548
|
+
TrainingParameters: _json,
|
|
1549
|
+
});
|
|
2124
1550
|
};
|
|
2125
1551
|
const de_MLModels = (output, context) => {
|
|
2126
1552
|
const retVal = (output || [])
|
|
2127
1553
|
.filter((e) => e != null)
|
|
2128
1554
|
.map((entry) => {
|
|
2129
|
-
if (entry === null) {
|
|
2130
|
-
return null;
|
|
2131
|
-
}
|
|
2132
1555
|
return de_MLModel(entry, context);
|
|
2133
1556
|
});
|
|
2134
1557
|
return retVal;
|
|
2135
1558
|
};
|
|
2136
|
-
const de_PerformanceMetrics = (output, context) => {
|
|
2137
|
-
return {
|
|
2138
|
-
Properties: output.Properties != null ? de_PerformanceMetricsProperties(output.Properties, context) : undefined,
|
|
2139
|
-
};
|
|
2140
|
-
};
|
|
2141
|
-
const de_PerformanceMetricsProperties = (output, context) => {
|
|
2142
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2143
|
-
if (value === null) {
|
|
2144
|
-
return acc;
|
|
2145
|
-
}
|
|
2146
|
-
acc[key] = __expectString(value);
|
|
2147
|
-
return acc;
|
|
2148
|
-
}, {});
|
|
2149
|
-
};
|
|
2150
1559
|
const de_Prediction = (output, context) => {
|
|
2151
|
-
return {
|
|
2152
|
-
details:
|
|
2153
|
-
predictedLabel: __expectString
|
|
2154
|
-
predictedScores:
|
|
2155
|
-
predictedValue: __limitedParseFloat32
|
|
2156
|
-
};
|
|
2157
|
-
};
|
|
2158
|
-
const de_PredictorNotMountedException = (output, context) => {
|
|
2159
|
-
return {
|
|
2160
|
-
message: __expectString(output.message),
|
|
2161
|
-
};
|
|
1560
|
+
return take(output, {
|
|
1561
|
+
details: _json,
|
|
1562
|
+
predictedLabel: __expectString,
|
|
1563
|
+
predictedScores: (_) => de_ScoreValuePerLabelMap(_, context),
|
|
1564
|
+
predictedValue: __limitedParseFloat32,
|
|
1565
|
+
});
|
|
2162
1566
|
};
|
|
2163
1567
|
const de_PredictOutput = (output, context) => {
|
|
2164
|
-
return {
|
|
2165
|
-
Prediction:
|
|
2166
|
-
};
|
|
2167
|
-
};
|
|
2168
|
-
const de_RDSDatabase = (output, context) => {
|
|
2169
|
-
return {
|
|
2170
|
-
DatabaseName: __expectString(output.DatabaseName),
|
|
2171
|
-
InstanceIdentifier: __expectString(output.InstanceIdentifier),
|
|
2172
|
-
};
|
|
2173
|
-
};
|
|
2174
|
-
const de_RDSMetadata = (output, context) => {
|
|
2175
|
-
return {
|
|
2176
|
-
DataPipelineId: __expectString(output.DataPipelineId),
|
|
2177
|
-
Database: output.Database != null ? de_RDSDatabase(output.Database, context) : undefined,
|
|
2178
|
-
DatabaseUserName: __expectString(output.DatabaseUserName),
|
|
2179
|
-
ResourceRole: __expectString(output.ResourceRole),
|
|
2180
|
-
SelectSqlQuery: __expectString(output.SelectSqlQuery),
|
|
2181
|
-
ServiceRole: __expectString(output.ServiceRole),
|
|
2182
|
-
};
|
|
1568
|
+
return take(output, {
|
|
1569
|
+
Prediction: (_) => de_Prediction(_, context),
|
|
1570
|
+
});
|
|
2183
1571
|
};
|
|
2184
1572
|
const de_RealtimeEndpointInfo = (output, context) => {
|
|
2185
|
-
return {
|
|
2186
|
-
CreatedAt:
|
|
2187
|
-
EndpointStatus: __expectString
|
|
2188
|
-
EndpointUrl: __expectString
|
|
2189
|
-
PeakRequestsPerSecond: __expectInt32
|
|
2190
|
-
};
|
|
2191
|
-
};
|
|
2192
|
-
const de_RedshiftDatabase = (output, context) => {
|
|
2193
|
-
return {
|
|
2194
|
-
ClusterIdentifier: __expectString(output.ClusterIdentifier),
|
|
2195
|
-
DatabaseName: __expectString(output.DatabaseName),
|
|
2196
|
-
};
|
|
2197
|
-
};
|
|
2198
|
-
const de_RedshiftMetadata = (output, context) => {
|
|
2199
|
-
return {
|
|
2200
|
-
DatabaseUserName: __expectString(output.DatabaseUserName),
|
|
2201
|
-
RedshiftDatabase: output.RedshiftDatabase != null ? de_RedshiftDatabase(output.RedshiftDatabase, context) : undefined,
|
|
2202
|
-
SelectSqlQuery: __expectString(output.SelectSqlQuery),
|
|
2203
|
-
};
|
|
2204
|
-
};
|
|
2205
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
2206
|
-
return {
|
|
2207
|
-
code: __expectInt32(output.code),
|
|
2208
|
-
message: __expectString(output.message),
|
|
2209
|
-
};
|
|
1573
|
+
return take(output, {
|
|
1574
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1575
|
+
EndpointStatus: __expectString,
|
|
1576
|
+
EndpointUrl: __expectString,
|
|
1577
|
+
PeakRequestsPerSecond: __expectInt32,
|
|
1578
|
+
});
|
|
2210
1579
|
};
|
|
2211
1580
|
const de_ScoreValuePerLabelMap = (output, context) => {
|
|
2212
1581
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -2217,57 +1586,6 @@ const de_ScoreValuePerLabelMap = (output, context) => {
|
|
|
2217
1586
|
return acc;
|
|
2218
1587
|
}, {});
|
|
2219
1588
|
};
|
|
2220
|
-
const de_Tag = (output, context) => {
|
|
2221
|
-
return {
|
|
2222
|
-
Key: __expectString(output.Key),
|
|
2223
|
-
Value: __expectString(output.Value),
|
|
2224
|
-
};
|
|
2225
|
-
};
|
|
2226
|
-
const de_TagLimitExceededException = (output, context) => {
|
|
2227
|
-
return {
|
|
2228
|
-
message: __expectString(output.message),
|
|
2229
|
-
};
|
|
2230
|
-
};
|
|
2231
|
-
const de_TagList = (output, context) => {
|
|
2232
|
-
const retVal = (output || [])
|
|
2233
|
-
.filter((e) => e != null)
|
|
2234
|
-
.map((entry) => {
|
|
2235
|
-
if (entry === null) {
|
|
2236
|
-
return null;
|
|
2237
|
-
}
|
|
2238
|
-
return de_Tag(entry, context);
|
|
2239
|
-
});
|
|
2240
|
-
return retVal;
|
|
2241
|
-
};
|
|
2242
|
-
const de_TrainingParameters = (output, context) => {
|
|
2243
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2244
|
-
if (value === null) {
|
|
2245
|
-
return acc;
|
|
2246
|
-
}
|
|
2247
|
-
acc[key] = __expectString(value);
|
|
2248
|
-
return acc;
|
|
2249
|
-
}, {});
|
|
2250
|
-
};
|
|
2251
|
-
const de_UpdateBatchPredictionOutput = (output, context) => {
|
|
2252
|
-
return {
|
|
2253
|
-
BatchPredictionId: __expectString(output.BatchPredictionId),
|
|
2254
|
-
};
|
|
2255
|
-
};
|
|
2256
|
-
const de_UpdateDataSourceOutput = (output, context) => {
|
|
2257
|
-
return {
|
|
2258
|
-
DataSourceId: __expectString(output.DataSourceId),
|
|
2259
|
-
};
|
|
2260
|
-
};
|
|
2261
|
-
const de_UpdateEvaluationOutput = (output, context) => {
|
|
2262
|
-
return {
|
|
2263
|
-
EvaluationId: __expectString(output.EvaluationId),
|
|
2264
|
-
};
|
|
2265
|
-
};
|
|
2266
|
-
const de_UpdateMLModelOutput = (output, context) => {
|
|
2267
|
-
return {
|
|
2268
|
-
MLModelId: __expectString(output.MLModelId),
|
|
2269
|
-
};
|
|
2270
|
-
};
|
|
2271
1589
|
const deserializeMetadata = (output) => ({
|
|
2272
1590
|
httpStatusCode: output.statusCode,
|
|
2273
1591
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -2281,6 +1599,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
2281
1599
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2282
1600
|
};
|
|
2283
1601
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1602
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
2284
1603
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2285
1604
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2286
1605
|
const contents = {
|
|
@@ -2299,6 +1618,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
2299
1618
|
}
|
|
2300
1619
|
return new __HttpRequest(contents);
|
|
2301
1620
|
};
|
|
1621
|
+
function sharedHeaders(operation) {
|
|
1622
|
+
return {
|
|
1623
|
+
"content-type": "application/x-amz-json-1.1",
|
|
1624
|
+
"x-amz-target": `AmazonML_20141212.${operation}`,
|
|
1625
|
+
};
|
|
1626
|
+
}
|
|
2302
1627
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2303
1628
|
if (encoded.length) {
|
|
2304
1629
|
return JSON.parse(encoded);
|