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