@aws-sdk/client-personalize 3.312.0 → 3.316.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.
@@ -10,84 +10,84 @@ const PersonalizeServiceException_1 = require("../models/PersonalizeServiceExcep
10
10
  const se_CreateBatchInferenceJobCommand = async (input, context) => {
11
11
  const headers = sharedHeaders("CreateBatchInferenceJob");
12
12
  let body;
13
- body = JSON.stringify(se_CreateBatchInferenceJobRequest(input, context));
13
+ body = JSON.stringify((0, smithy_client_1._json)(input));
14
14
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
15
15
  };
16
16
  exports.se_CreateBatchInferenceJobCommand = se_CreateBatchInferenceJobCommand;
17
17
  const se_CreateBatchSegmentJobCommand = async (input, context) => {
18
18
  const headers = sharedHeaders("CreateBatchSegmentJob");
19
19
  let body;
20
- body = JSON.stringify(se_CreateBatchSegmentJobRequest(input, context));
20
+ body = JSON.stringify((0, smithy_client_1._json)(input));
21
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
22
  };
23
23
  exports.se_CreateBatchSegmentJobCommand = se_CreateBatchSegmentJobCommand;
24
24
  const se_CreateCampaignCommand = async (input, context) => {
25
25
  const headers = sharedHeaders("CreateCampaign");
26
26
  let body;
27
- body = JSON.stringify(se_CreateCampaignRequest(input, context));
27
+ body = JSON.stringify((0, smithy_client_1._json)(input));
28
28
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
29
29
  };
30
30
  exports.se_CreateCampaignCommand = se_CreateCampaignCommand;
31
31
  const se_CreateDatasetCommand = async (input, context) => {
32
32
  const headers = sharedHeaders("CreateDataset");
33
33
  let body;
34
- body = JSON.stringify(se_CreateDatasetRequest(input, context));
34
+ body = JSON.stringify((0, smithy_client_1._json)(input));
35
35
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
36
36
  };
37
37
  exports.se_CreateDatasetCommand = se_CreateDatasetCommand;
38
38
  const se_CreateDatasetExportJobCommand = async (input, context) => {
39
39
  const headers = sharedHeaders("CreateDatasetExportJob");
40
40
  let body;
41
- body = JSON.stringify(se_CreateDatasetExportJobRequest(input, context));
41
+ body = JSON.stringify((0, smithy_client_1._json)(input));
42
42
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
43
43
  };
44
44
  exports.se_CreateDatasetExportJobCommand = se_CreateDatasetExportJobCommand;
45
45
  const se_CreateDatasetGroupCommand = async (input, context) => {
46
46
  const headers = sharedHeaders("CreateDatasetGroup");
47
47
  let body;
48
- body = JSON.stringify(se_CreateDatasetGroupRequest(input, context));
48
+ body = JSON.stringify((0, smithy_client_1._json)(input));
49
49
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
50
50
  };
51
51
  exports.se_CreateDatasetGroupCommand = se_CreateDatasetGroupCommand;
52
52
  const se_CreateDatasetImportJobCommand = async (input, context) => {
53
53
  const headers = sharedHeaders("CreateDatasetImportJob");
54
54
  let body;
55
- body = JSON.stringify(se_CreateDatasetImportJobRequest(input, context));
55
+ body = JSON.stringify((0, smithy_client_1._json)(input));
56
56
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
57
57
  };
58
58
  exports.se_CreateDatasetImportJobCommand = se_CreateDatasetImportJobCommand;
59
59
  const se_CreateEventTrackerCommand = async (input, context) => {
60
60
  const headers = sharedHeaders("CreateEventTracker");
61
61
  let body;
62
- body = JSON.stringify(se_CreateEventTrackerRequest(input, context));
62
+ body = JSON.stringify((0, smithy_client_1._json)(input));
63
63
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
64
64
  };
65
65
  exports.se_CreateEventTrackerCommand = se_CreateEventTrackerCommand;
66
66
  const se_CreateFilterCommand = async (input, context) => {
67
67
  const headers = sharedHeaders("CreateFilter");
68
68
  let body;
69
- body = JSON.stringify(se_CreateFilterRequest(input, context));
69
+ body = JSON.stringify((0, smithy_client_1._json)(input));
70
70
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
71
71
  };
72
72
  exports.se_CreateFilterCommand = se_CreateFilterCommand;
73
73
  const se_CreateMetricAttributionCommand = async (input, context) => {
74
74
  const headers = sharedHeaders("CreateMetricAttribution");
75
75
  let body;
76
- body = JSON.stringify(se_CreateMetricAttributionRequest(input, context));
76
+ body = JSON.stringify((0, smithy_client_1._json)(input));
77
77
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
78
78
  };
79
79
  exports.se_CreateMetricAttributionCommand = se_CreateMetricAttributionCommand;
80
80
  const se_CreateRecommenderCommand = async (input, context) => {
81
81
  const headers = sharedHeaders("CreateRecommender");
82
82
  let body;
83
- body = JSON.stringify(se_CreateRecommenderRequest(input, context));
83
+ body = JSON.stringify((0, smithy_client_1._json)(input));
84
84
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
85
85
  };
86
86
  exports.se_CreateRecommenderCommand = se_CreateRecommenderCommand;
87
87
  const se_CreateSchemaCommand = async (input, context) => {
88
88
  const headers = sharedHeaders("CreateSchema");
89
89
  let body;
90
- body = JSON.stringify(se_CreateSchemaRequest(input, context));
90
+ body = JSON.stringify((0, smithy_client_1._json)(input));
91
91
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
92
92
  };
93
93
  exports.se_CreateSchemaCommand = se_CreateSchemaCommand;
@@ -101,371 +101,371 @@ exports.se_CreateSolutionCommand = se_CreateSolutionCommand;
101
101
  const se_CreateSolutionVersionCommand = async (input, context) => {
102
102
  const headers = sharedHeaders("CreateSolutionVersion");
103
103
  let body;
104
- body = JSON.stringify(se_CreateSolutionVersionRequest(input, context));
104
+ body = JSON.stringify((0, smithy_client_1._json)(input));
105
105
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
106
106
  };
107
107
  exports.se_CreateSolutionVersionCommand = se_CreateSolutionVersionCommand;
108
108
  const se_DeleteCampaignCommand = async (input, context) => {
109
109
  const headers = sharedHeaders("DeleteCampaign");
110
110
  let body;
111
- body = JSON.stringify(se_DeleteCampaignRequest(input, context));
111
+ body = JSON.stringify((0, smithy_client_1._json)(input));
112
112
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
113
113
  };
114
114
  exports.se_DeleteCampaignCommand = se_DeleteCampaignCommand;
115
115
  const se_DeleteDatasetCommand = async (input, context) => {
116
116
  const headers = sharedHeaders("DeleteDataset");
117
117
  let body;
118
- body = JSON.stringify(se_DeleteDatasetRequest(input, context));
118
+ body = JSON.stringify((0, smithy_client_1._json)(input));
119
119
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
120
120
  };
121
121
  exports.se_DeleteDatasetCommand = se_DeleteDatasetCommand;
122
122
  const se_DeleteDatasetGroupCommand = async (input, context) => {
123
123
  const headers = sharedHeaders("DeleteDatasetGroup");
124
124
  let body;
125
- body = JSON.stringify(se_DeleteDatasetGroupRequest(input, context));
125
+ body = JSON.stringify((0, smithy_client_1._json)(input));
126
126
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
127
127
  };
128
128
  exports.se_DeleteDatasetGroupCommand = se_DeleteDatasetGroupCommand;
129
129
  const se_DeleteEventTrackerCommand = async (input, context) => {
130
130
  const headers = sharedHeaders("DeleteEventTracker");
131
131
  let body;
132
- body = JSON.stringify(se_DeleteEventTrackerRequest(input, context));
132
+ body = JSON.stringify((0, smithy_client_1._json)(input));
133
133
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
134
134
  };
135
135
  exports.se_DeleteEventTrackerCommand = se_DeleteEventTrackerCommand;
136
136
  const se_DeleteFilterCommand = async (input, context) => {
137
137
  const headers = sharedHeaders("DeleteFilter");
138
138
  let body;
139
- body = JSON.stringify(se_DeleteFilterRequest(input, context));
139
+ body = JSON.stringify((0, smithy_client_1._json)(input));
140
140
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
141
141
  };
142
142
  exports.se_DeleteFilterCommand = se_DeleteFilterCommand;
143
143
  const se_DeleteMetricAttributionCommand = async (input, context) => {
144
144
  const headers = sharedHeaders("DeleteMetricAttribution");
145
145
  let body;
146
- body = JSON.stringify(se_DeleteMetricAttributionRequest(input, context));
146
+ body = JSON.stringify((0, smithy_client_1._json)(input));
147
147
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
148
148
  };
149
149
  exports.se_DeleteMetricAttributionCommand = se_DeleteMetricAttributionCommand;
150
150
  const se_DeleteRecommenderCommand = async (input, context) => {
151
151
  const headers = sharedHeaders("DeleteRecommender");
152
152
  let body;
153
- body = JSON.stringify(se_DeleteRecommenderRequest(input, context));
153
+ body = JSON.stringify((0, smithy_client_1._json)(input));
154
154
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
155
155
  };
156
156
  exports.se_DeleteRecommenderCommand = se_DeleteRecommenderCommand;
157
157
  const se_DeleteSchemaCommand = async (input, context) => {
158
158
  const headers = sharedHeaders("DeleteSchema");
159
159
  let body;
160
- body = JSON.stringify(se_DeleteSchemaRequest(input, context));
160
+ body = JSON.stringify((0, smithy_client_1._json)(input));
161
161
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
162
162
  };
163
163
  exports.se_DeleteSchemaCommand = se_DeleteSchemaCommand;
164
164
  const se_DeleteSolutionCommand = async (input, context) => {
165
165
  const headers = sharedHeaders("DeleteSolution");
166
166
  let body;
167
- body = JSON.stringify(se_DeleteSolutionRequest(input, context));
167
+ body = JSON.stringify((0, smithy_client_1._json)(input));
168
168
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
169
169
  };
170
170
  exports.se_DeleteSolutionCommand = se_DeleteSolutionCommand;
171
171
  const se_DescribeAlgorithmCommand = async (input, context) => {
172
172
  const headers = sharedHeaders("DescribeAlgorithm");
173
173
  let body;
174
- body = JSON.stringify(se_DescribeAlgorithmRequest(input, context));
174
+ body = JSON.stringify((0, smithy_client_1._json)(input));
175
175
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
176
176
  };
177
177
  exports.se_DescribeAlgorithmCommand = se_DescribeAlgorithmCommand;
178
178
  const se_DescribeBatchInferenceJobCommand = async (input, context) => {
179
179
  const headers = sharedHeaders("DescribeBatchInferenceJob");
180
180
  let body;
181
- body = JSON.stringify(se_DescribeBatchInferenceJobRequest(input, context));
181
+ body = JSON.stringify((0, smithy_client_1._json)(input));
182
182
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
183
183
  };
184
184
  exports.se_DescribeBatchInferenceJobCommand = se_DescribeBatchInferenceJobCommand;
185
185
  const se_DescribeBatchSegmentJobCommand = async (input, context) => {
186
186
  const headers = sharedHeaders("DescribeBatchSegmentJob");
187
187
  let body;
188
- body = JSON.stringify(se_DescribeBatchSegmentJobRequest(input, context));
188
+ body = JSON.stringify((0, smithy_client_1._json)(input));
189
189
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
190
190
  };
191
191
  exports.se_DescribeBatchSegmentJobCommand = se_DescribeBatchSegmentJobCommand;
192
192
  const se_DescribeCampaignCommand = async (input, context) => {
193
193
  const headers = sharedHeaders("DescribeCampaign");
194
194
  let body;
195
- body = JSON.stringify(se_DescribeCampaignRequest(input, context));
195
+ body = JSON.stringify((0, smithy_client_1._json)(input));
196
196
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
197
197
  };
198
198
  exports.se_DescribeCampaignCommand = se_DescribeCampaignCommand;
199
199
  const se_DescribeDatasetCommand = async (input, context) => {
200
200
  const headers = sharedHeaders("DescribeDataset");
201
201
  let body;
202
- body = JSON.stringify(se_DescribeDatasetRequest(input, context));
202
+ body = JSON.stringify((0, smithy_client_1._json)(input));
203
203
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
204
204
  };
205
205
  exports.se_DescribeDatasetCommand = se_DescribeDatasetCommand;
206
206
  const se_DescribeDatasetExportJobCommand = async (input, context) => {
207
207
  const headers = sharedHeaders("DescribeDatasetExportJob");
208
208
  let body;
209
- body = JSON.stringify(se_DescribeDatasetExportJobRequest(input, context));
209
+ body = JSON.stringify((0, smithy_client_1._json)(input));
210
210
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
211
211
  };
212
212
  exports.se_DescribeDatasetExportJobCommand = se_DescribeDatasetExportJobCommand;
213
213
  const se_DescribeDatasetGroupCommand = async (input, context) => {
214
214
  const headers = sharedHeaders("DescribeDatasetGroup");
215
215
  let body;
216
- body = JSON.stringify(se_DescribeDatasetGroupRequest(input, context));
216
+ body = JSON.stringify((0, smithy_client_1._json)(input));
217
217
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
218
218
  };
219
219
  exports.se_DescribeDatasetGroupCommand = se_DescribeDatasetGroupCommand;
220
220
  const se_DescribeDatasetImportJobCommand = async (input, context) => {
221
221
  const headers = sharedHeaders("DescribeDatasetImportJob");
222
222
  let body;
223
- body = JSON.stringify(se_DescribeDatasetImportJobRequest(input, context));
223
+ body = JSON.stringify((0, smithy_client_1._json)(input));
224
224
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
225
225
  };
226
226
  exports.se_DescribeDatasetImportJobCommand = se_DescribeDatasetImportJobCommand;
227
227
  const se_DescribeEventTrackerCommand = async (input, context) => {
228
228
  const headers = sharedHeaders("DescribeEventTracker");
229
229
  let body;
230
- body = JSON.stringify(se_DescribeEventTrackerRequest(input, context));
230
+ body = JSON.stringify((0, smithy_client_1._json)(input));
231
231
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
232
232
  };
233
233
  exports.se_DescribeEventTrackerCommand = se_DescribeEventTrackerCommand;
234
234
  const se_DescribeFeatureTransformationCommand = async (input, context) => {
235
235
  const headers = sharedHeaders("DescribeFeatureTransformation");
236
236
  let body;
237
- body = JSON.stringify(se_DescribeFeatureTransformationRequest(input, context));
237
+ body = JSON.stringify((0, smithy_client_1._json)(input));
238
238
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
239
239
  };
240
240
  exports.se_DescribeFeatureTransformationCommand = se_DescribeFeatureTransformationCommand;
241
241
  const se_DescribeFilterCommand = async (input, context) => {
242
242
  const headers = sharedHeaders("DescribeFilter");
243
243
  let body;
244
- body = JSON.stringify(se_DescribeFilterRequest(input, context));
244
+ body = JSON.stringify((0, smithy_client_1._json)(input));
245
245
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
246
246
  };
247
247
  exports.se_DescribeFilterCommand = se_DescribeFilterCommand;
248
248
  const se_DescribeMetricAttributionCommand = async (input, context) => {
249
249
  const headers = sharedHeaders("DescribeMetricAttribution");
250
250
  let body;
251
- body = JSON.stringify(se_DescribeMetricAttributionRequest(input, context));
251
+ body = JSON.stringify((0, smithy_client_1._json)(input));
252
252
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
253
253
  };
254
254
  exports.se_DescribeMetricAttributionCommand = se_DescribeMetricAttributionCommand;
255
255
  const se_DescribeRecipeCommand = async (input, context) => {
256
256
  const headers = sharedHeaders("DescribeRecipe");
257
257
  let body;
258
- body = JSON.stringify(se_DescribeRecipeRequest(input, context));
258
+ body = JSON.stringify((0, smithy_client_1._json)(input));
259
259
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
260
260
  };
261
261
  exports.se_DescribeRecipeCommand = se_DescribeRecipeCommand;
262
262
  const se_DescribeRecommenderCommand = async (input, context) => {
263
263
  const headers = sharedHeaders("DescribeRecommender");
264
264
  let body;
265
- body = JSON.stringify(se_DescribeRecommenderRequest(input, context));
265
+ body = JSON.stringify((0, smithy_client_1._json)(input));
266
266
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
267
267
  };
268
268
  exports.se_DescribeRecommenderCommand = se_DescribeRecommenderCommand;
269
269
  const se_DescribeSchemaCommand = async (input, context) => {
270
270
  const headers = sharedHeaders("DescribeSchema");
271
271
  let body;
272
- body = JSON.stringify(se_DescribeSchemaRequest(input, context));
272
+ body = JSON.stringify((0, smithy_client_1._json)(input));
273
273
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
274
274
  };
275
275
  exports.se_DescribeSchemaCommand = se_DescribeSchemaCommand;
276
276
  const se_DescribeSolutionCommand = async (input, context) => {
277
277
  const headers = sharedHeaders("DescribeSolution");
278
278
  let body;
279
- body = JSON.stringify(se_DescribeSolutionRequest(input, context));
279
+ body = JSON.stringify((0, smithy_client_1._json)(input));
280
280
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
281
281
  };
282
282
  exports.se_DescribeSolutionCommand = se_DescribeSolutionCommand;
283
283
  const se_DescribeSolutionVersionCommand = async (input, context) => {
284
284
  const headers = sharedHeaders("DescribeSolutionVersion");
285
285
  let body;
286
- body = JSON.stringify(se_DescribeSolutionVersionRequest(input, context));
286
+ body = JSON.stringify((0, smithy_client_1._json)(input));
287
287
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
288
288
  };
289
289
  exports.se_DescribeSolutionVersionCommand = se_DescribeSolutionVersionCommand;
290
290
  const se_GetSolutionMetricsCommand = async (input, context) => {
291
291
  const headers = sharedHeaders("GetSolutionMetrics");
292
292
  let body;
293
- body = JSON.stringify(se_GetSolutionMetricsRequest(input, context));
293
+ body = JSON.stringify((0, smithy_client_1._json)(input));
294
294
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
295
295
  };
296
296
  exports.se_GetSolutionMetricsCommand = se_GetSolutionMetricsCommand;
297
297
  const se_ListBatchInferenceJobsCommand = async (input, context) => {
298
298
  const headers = sharedHeaders("ListBatchInferenceJobs");
299
299
  let body;
300
- body = JSON.stringify(se_ListBatchInferenceJobsRequest(input, context));
300
+ body = JSON.stringify((0, smithy_client_1._json)(input));
301
301
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
302
302
  };
303
303
  exports.se_ListBatchInferenceJobsCommand = se_ListBatchInferenceJobsCommand;
304
304
  const se_ListBatchSegmentJobsCommand = async (input, context) => {
305
305
  const headers = sharedHeaders("ListBatchSegmentJobs");
306
306
  let body;
307
- body = JSON.stringify(se_ListBatchSegmentJobsRequest(input, context));
307
+ body = JSON.stringify((0, smithy_client_1._json)(input));
308
308
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
309
309
  };
310
310
  exports.se_ListBatchSegmentJobsCommand = se_ListBatchSegmentJobsCommand;
311
311
  const se_ListCampaignsCommand = async (input, context) => {
312
312
  const headers = sharedHeaders("ListCampaigns");
313
313
  let body;
314
- body = JSON.stringify(se_ListCampaignsRequest(input, context));
314
+ body = JSON.stringify((0, smithy_client_1._json)(input));
315
315
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
316
316
  };
317
317
  exports.se_ListCampaignsCommand = se_ListCampaignsCommand;
318
318
  const se_ListDatasetExportJobsCommand = async (input, context) => {
319
319
  const headers = sharedHeaders("ListDatasetExportJobs");
320
320
  let body;
321
- body = JSON.stringify(se_ListDatasetExportJobsRequest(input, context));
321
+ body = JSON.stringify((0, smithy_client_1._json)(input));
322
322
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
323
323
  };
324
324
  exports.se_ListDatasetExportJobsCommand = se_ListDatasetExportJobsCommand;
325
325
  const se_ListDatasetGroupsCommand = async (input, context) => {
326
326
  const headers = sharedHeaders("ListDatasetGroups");
327
327
  let body;
328
- body = JSON.stringify(se_ListDatasetGroupsRequest(input, context));
328
+ body = JSON.stringify((0, smithy_client_1._json)(input));
329
329
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
330
330
  };
331
331
  exports.se_ListDatasetGroupsCommand = se_ListDatasetGroupsCommand;
332
332
  const se_ListDatasetImportJobsCommand = async (input, context) => {
333
333
  const headers = sharedHeaders("ListDatasetImportJobs");
334
334
  let body;
335
- body = JSON.stringify(se_ListDatasetImportJobsRequest(input, context));
335
+ body = JSON.stringify((0, smithy_client_1._json)(input));
336
336
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
337
337
  };
338
338
  exports.se_ListDatasetImportJobsCommand = se_ListDatasetImportJobsCommand;
339
339
  const se_ListDatasetsCommand = async (input, context) => {
340
340
  const headers = sharedHeaders("ListDatasets");
341
341
  let body;
342
- body = JSON.stringify(se_ListDatasetsRequest(input, context));
342
+ body = JSON.stringify((0, smithy_client_1._json)(input));
343
343
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
344
344
  };
345
345
  exports.se_ListDatasetsCommand = se_ListDatasetsCommand;
346
346
  const se_ListEventTrackersCommand = async (input, context) => {
347
347
  const headers = sharedHeaders("ListEventTrackers");
348
348
  let body;
349
- body = JSON.stringify(se_ListEventTrackersRequest(input, context));
349
+ body = JSON.stringify((0, smithy_client_1._json)(input));
350
350
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
351
351
  };
352
352
  exports.se_ListEventTrackersCommand = se_ListEventTrackersCommand;
353
353
  const se_ListFiltersCommand = async (input, context) => {
354
354
  const headers = sharedHeaders("ListFilters");
355
355
  let body;
356
- body = JSON.stringify(se_ListFiltersRequest(input, context));
356
+ body = JSON.stringify((0, smithy_client_1._json)(input));
357
357
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
358
358
  };
359
359
  exports.se_ListFiltersCommand = se_ListFiltersCommand;
360
360
  const se_ListMetricAttributionMetricsCommand = async (input, context) => {
361
361
  const headers = sharedHeaders("ListMetricAttributionMetrics");
362
362
  let body;
363
- body = JSON.stringify(se_ListMetricAttributionMetricsRequest(input, context));
363
+ body = JSON.stringify((0, smithy_client_1._json)(input));
364
364
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
365
365
  };
366
366
  exports.se_ListMetricAttributionMetricsCommand = se_ListMetricAttributionMetricsCommand;
367
367
  const se_ListMetricAttributionsCommand = async (input, context) => {
368
368
  const headers = sharedHeaders("ListMetricAttributions");
369
369
  let body;
370
- body = JSON.stringify(se_ListMetricAttributionsRequest(input, context));
370
+ body = JSON.stringify((0, smithy_client_1._json)(input));
371
371
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
372
372
  };
373
373
  exports.se_ListMetricAttributionsCommand = se_ListMetricAttributionsCommand;
374
374
  const se_ListRecipesCommand = async (input, context) => {
375
375
  const headers = sharedHeaders("ListRecipes");
376
376
  let body;
377
- body = JSON.stringify(se_ListRecipesRequest(input, context));
377
+ body = JSON.stringify((0, smithy_client_1._json)(input));
378
378
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
379
379
  };
380
380
  exports.se_ListRecipesCommand = se_ListRecipesCommand;
381
381
  const se_ListRecommendersCommand = async (input, context) => {
382
382
  const headers = sharedHeaders("ListRecommenders");
383
383
  let body;
384
- body = JSON.stringify(se_ListRecommendersRequest(input, context));
384
+ body = JSON.stringify((0, smithy_client_1._json)(input));
385
385
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
386
386
  };
387
387
  exports.se_ListRecommendersCommand = se_ListRecommendersCommand;
388
388
  const se_ListSchemasCommand = async (input, context) => {
389
389
  const headers = sharedHeaders("ListSchemas");
390
390
  let body;
391
- body = JSON.stringify(se_ListSchemasRequest(input, context));
391
+ body = JSON.stringify((0, smithy_client_1._json)(input));
392
392
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
393
393
  };
394
394
  exports.se_ListSchemasCommand = se_ListSchemasCommand;
395
395
  const se_ListSolutionsCommand = async (input, context) => {
396
396
  const headers = sharedHeaders("ListSolutions");
397
397
  let body;
398
- body = JSON.stringify(se_ListSolutionsRequest(input, context));
398
+ body = JSON.stringify((0, smithy_client_1._json)(input));
399
399
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
400
400
  };
401
401
  exports.se_ListSolutionsCommand = se_ListSolutionsCommand;
402
402
  const se_ListSolutionVersionsCommand = async (input, context) => {
403
403
  const headers = sharedHeaders("ListSolutionVersions");
404
404
  let body;
405
- body = JSON.stringify(se_ListSolutionVersionsRequest(input, context));
405
+ body = JSON.stringify((0, smithy_client_1._json)(input));
406
406
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
407
407
  };
408
408
  exports.se_ListSolutionVersionsCommand = se_ListSolutionVersionsCommand;
409
409
  const se_ListTagsForResourceCommand = async (input, context) => {
410
410
  const headers = sharedHeaders("ListTagsForResource");
411
411
  let body;
412
- body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
412
+ body = JSON.stringify((0, smithy_client_1._json)(input));
413
413
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
414
414
  };
415
415
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
416
416
  const se_StartRecommenderCommand = async (input, context) => {
417
417
  const headers = sharedHeaders("StartRecommender");
418
418
  let body;
419
- body = JSON.stringify(se_StartRecommenderRequest(input, context));
419
+ body = JSON.stringify((0, smithy_client_1._json)(input));
420
420
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
421
421
  };
422
422
  exports.se_StartRecommenderCommand = se_StartRecommenderCommand;
423
423
  const se_StopRecommenderCommand = async (input, context) => {
424
424
  const headers = sharedHeaders("StopRecommender");
425
425
  let body;
426
- body = JSON.stringify(se_StopRecommenderRequest(input, context));
426
+ body = JSON.stringify((0, smithy_client_1._json)(input));
427
427
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
428
428
  };
429
429
  exports.se_StopRecommenderCommand = se_StopRecommenderCommand;
430
430
  const se_StopSolutionVersionCreationCommand = async (input, context) => {
431
431
  const headers = sharedHeaders("StopSolutionVersionCreation");
432
432
  let body;
433
- body = JSON.stringify(se_StopSolutionVersionCreationRequest(input, context));
433
+ body = JSON.stringify((0, smithy_client_1._json)(input));
434
434
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
435
435
  };
436
436
  exports.se_StopSolutionVersionCreationCommand = se_StopSolutionVersionCreationCommand;
437
437
  const se_TagResourceCommand = async (input, context) => {
438
438
  const headers = sharedHeaders("TagResource");
439
439
  let body;
440
- body = JSON.stringify(se_TagResourceRequest(input, context));
440
+ body = JSON.stringify((0, smithy_client_1._json)(input));
441
441
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
442
442
  };
443
443
  exports.se_TagResourceCommand = se_TagResourceCommand;
444
444
  const se_UntagResourceCommand = async (input, context) => {
445
445
  const headers = sharedHeaders("UntagResource");
446
446
  let body;
447
- body = JSON.stringify(se_UntagResourceRequest(input, context));
447
+ body = JSON.stringify((0, smithy_client_1._json)(input));
448
448
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
449
449
  };
450
450
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
451
451
  const se_UpdateCampaignCommand = async (input, context) => {
452
452
  const headers = sharedHeaders("UpdateCampaign");
453
453
  let body;
454
- body = JSON.stringify(se_UpdateCampaignRequest(input, context));
454
+ body = JSON.stringify((0, smithy_client_1._json)(input));
455
455
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
456
456
  };
457
457
  exports.se_UpdateCampaignCommand = se_UpdateCampaignCommand;
458
458
  const se_UpdateMetricAttributionCommand = async (input, context) => {
459
459
  const headers = sharedHeaders("UpdateMetricAttribution");
460
460
  let body;
461
- body = JSON.stringify(se_UpdateMetricAttributionRequest(input, context));
461
+ body = JSON.stringify((0, smithy_client_1._json)(input));
462
462
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
463
463
  };
464
464
  exports.se_UpdateMetricAttributionCommand = se_UpdateMetricAttributionCommand;
465
465
  const se_UpdateRecommenderCommand = async (input, context) => {
466
466
  const headers = sharedHeaders("UpdateRecommender");
467
467
  let body;
468
- body = JSON.stringify(se_UpdateRecommenderRequest(input, context));
468
+ body = JSON.stringify((0, smithy_client_1._json)(input));
469
469
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
470
470
  };
471
471
  exports.se_UpdateRecommenderCommand = se_UpdateRecommenderCommand;
@@ -475,12 +475,12 @@ const de_CreateBatchInferenceJobCommand = async (output, context) => {
475
475
  }
476
476
  const data = await parseBody(output.body, context);
477
477
  let contents = {};
478
- contents = de_CreateBatchInferenceJobResponse(data, context);
478
+ contents = (0, smithy_client_1._json)(data);
479
479
  const response = {
480
480
  $metadata: deserializeMetadata(output),
481
481
  ...contents,
482
482
  };
483
- return Promise.resolve(response);
483
+ return response;
484
484
  };
485
485
  exports.de_CreateBatchInferenceJobCommand = de_CreateBatchInferenceJobCommand;
486
486
  const de_CreateBatchInferenceJobCommandError = async (output, context) => {
@@ -510,10 +510,9 @@ const de_CreateBatchInferenceJobCommandError = async (output, context) => {
510
510
  throw await de_TooManyTagsExceptionRes(parsedOutput, context);
511
511
  default:
512
512
  const parsedBody = parsedOutput.body;
513
- (0, smithy_client_1.throwDefaultError)({
513
+ return throwDefaultError({
514
514
  output,
515
515
  parsedBody,
516
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
517
516
  errorCode,
518
517
  });
519
518
  }
@@ -524,12 +523,12 @@ const de_CreateBatchSegmentJobCommand = async (output, context) => {
524
523
  }
525
524
  const data = await parseBody(output.body, context);
526
525
  let contents = {};
527
- contents = de_CreateBatchSegmentJobResponse(data, context);
526
+ contents = (0, smithy_client_1._json)(data);
528
527
  const response = {
529
528
  $metadata: deserializeMetadata(output),
530
529
  ...contents,
531
530
  };
532
- return Promise.resolve(response);
531
+ return response;
533
532
  };
534
533
  exports.de_CreateBatchSegmentJobCommand = de_CreateBatchSegmentJobCommand;
535
534
  const de_CreateBatchSegmentJobCommandError = async (output, context) => {
@@ -559,10 +558,9 @@ const de_CreateBatchSegmentJobCommandError = async (output, context) => {
559
558
  throw await de_TooManyTagsExceptionRes(parsedOutput, context);
560
559
  default:
561
560
  const parsedBody = parsedOutput.body;
562
- (0, smithy_client_1.throwDefaultError)({
561
+ return throwDefaultError({
563
562
  output,
564
563
  parsedBody,
565
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
566
564
  errorCode,
567
565
  });
568
566
  }
@@ -573,12 +571,12 @@ const de_CreateCampaignCommand = async (output, context) => {
573
571
  }
574
572
  const data = await parseBody(output.body, context);
575
573
  let contents = {};
576
- contents = de_CreateCampaignResponse(data, context);
574
+ contents = (0, smithy_client_1._json)(data);
577
575
  const response = {
578
576
  $metadata: deserializeMetadata(output),
579
577
  ...contents,
580
578
  };
581
- return Promise.resolve(response);
579
+ return response;
582
580
  };
583
581
  exports.de_CreateCampaignCommand = de_CreateCampaignCommand;
584
582
  const de_CreateCampaignCommandError = async (output, context) => {
@@ -608,10 +606,9 @@ const de_CreateCampaignCommandError = async (output, context) => {
608
606
  throw await de_TooManyTagsExceptionRes(parsedOutput, context);
609
607
  default:
610
608
  const parsedBody = parsedOutput.body;
611
- (0, smithy_client_1.throwDefaultError)({
609
+ return throwDefaultError({
612
610
  output,
613
611
  parsedBody,
614
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
615
612
  errorCode,
616
613
  });
617
614
  }
@@ -622,12 +619,12 @@ const de_CreateDatasetCommand = async (output, context) => {
622
619
  }
623
620
  const data = await parseBody(output.body, context);
624
621
  let contents = {};
625
- contents = de_CreateDatasetResponse(data, context);
622
+ contents = (0, smithy_client_1._json)(data);
626
623
  const response = {
627
624
  $metadata: deserializeMetadata(output),
628
625
  ...contents,
629
626
  };
630
- return Promise.resolve(response);
627
+ return response;
631
628
  };
632
629
  exports.de_CreateDatasetCommand = de_CreateDatasetCommand;
633
630
  const de_CreateDatasetCommandError = async (output, context) => {
@@ -657,10 +654,9 @@ const de_CreateDatasetCommandError = async (output, context) => {
657
654
  throw await de_TooManyTagsExceptionRes(parsedOutput, context);
658
655
  default:
659
656
  const parsedBody = parsedOutput.body;
660
- (0, smithy_client_1.throwDefaultError)({
657
+ return throwDefaultError({
661
658
  output,
662
659
  parsedBody,
663
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
664
660
  errorCode,
665
661
  });
666
662
  }
@@ -671,12 +667,12 @@ const de_CreateDatasetExportJobCommand = async (output, context) => {
671
667
  }
672
668
  const data = await parseBody(output.body, context);
673
669
  let contents = {};
674
- contents = de_CreateDatasetExportJobResponse(data, context);
670
+ contents = (0, smithy_client_1._json)(data);
675
671
  const response = {
676
672
  $metadata: deserializeMetadata(output),
677
673
  ...contents,
678
674
  };
679
- return Promise.resolve(response);
675
+ return response;
680
676
  };
681
677
  exports.de_CreateDatasetExportJobCommand = de_CreateDatasetExportJobCommand;
682
678
  const de_CreateDatasetExportJobCommandError = async (output, context) => {
@@ -706,10 +702,9 @@ const de_CreateDatasetExportJobCommandError = async (output, context) => {
706
702
  throw await de_TooManyTagsExceptionRes(parsedOutput, context);
707
703
  default:
708
704
  const parsedBody = parsedOutput.body;
709
- (0, smithy_client_1.throwDefaultError)({
705
+ return throwDefaultError({
710
706
  output,
711
707
  parsedBody,
712
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
713
708
  errorCode,
714
709
  });
715
710
  }
@@ -720,12 +715,12 @@ const de_CreateDatasetGroupCommand = async (output, context) => {
720
715
  }
721
716
  const data = await parseBody(output.body, context);
722
717
  let contents = {};
723
- contents = de_CreateDatasetGroupResponse(data, context);
718
+ contents = (0, smithy_client_1._json)(data);
724
719
  const response = {
725
720
  $metadata: deserializeMetadata(output),
726
721
  ...contents,
727
722
  };
728
- return Promise.resolve(response);
723
+ return response;
729
724
  };
730
725
  exports.de_CreateDatasetGroupCommand = de_CreateDatasetGroupCommand;
731
726
  const de_CreateDatasetGroupCommandError = async (output, context) => {
@@ -749,10 +744,9 @@ const de_CreateDatasetGroupCommandError = async (output, context) => {
749
744
  throw await de_TooManyTagsExceptionRes(parsedOutput, context);
750
745
  default:
751
746
  const parsedBody = parsedOutput.body;
752
- (0, smithy_client_1.throwDefaultError)({
747
+ return throwDefaultError({
753
748
  output,
754
749
  parsedBody,
755
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
756
750
  errorCode,
757
751
  });
758
752
  }
@@ -763,12 +757,12 @@ const de_CreateDatasetImportJobCommand = async (output, context) => {
763
757
  }
764
758
  const data = await parseBody(output.body, context);
765
759
  let contents = {};
766
- contents = de_CreateDatasetImportJobResponse(data, context);
760
+ contents = (0, smithy_client_1._json)(data);
767
761
  const response = {
768
762
  $metadata: deserializeMetadata(output),
769
763
  ...contents,
770
764
  };
771
- return Promise.resolve(response);
765
+ return response;
772
766
  };
773
767
  exports.de_CreateDatasetImportJobCommand = de_CreateDatasetImportJobCommand;
774
768
  const de_CreateDatasetImportJobCommandError = async (output, context) => {
@@ -798,10 +792,9 @@ const de_CreateDatasetImportJobCommandError = async (output, context) => {
798
792
  throw await de_TooManyTagsExceptionRes(parsedOutput, context);
799
793
  default:
800
794
  const parsedBody = parsedOutput.body;
801
- (0, smithy_client_1.throwDefaultError)({
795
+ return throwDefaultError({
802
796
  output,
803
797
  parsedBody,
804
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
805
798
  errorCode,
806
799
  });
807
800
  }
@@ -812,12 +805,12 @@ const de_CreateEventTrackerCommand = async (output, context) => {
812
805
  }
813
806
  const data = await parseBody(output.body, context);
814
807
  let contents = {};
815
- contents = de_CreateEventTrackerResponse(data, context);
808
+ contents = (0, smithy_client_1._json)(data);
816
809
  const response = {
817
810
  $metadata: deserializeMetadata(output),
818
811
  ...contents,
819
812
  };
820
- return Promise.resolve(response);
813
+ return response;
821
814
  };
822
815
  exports.de_CreateEventTrackerCommand = de_CreateEventTrackerCommand;
823
816
  const de_CreateEventTrackerCommandError = async (output, context) => {
@@ -847,10 +840,9 @@ const de_CreateEventTrackerCommandError = async (output, context) => {
847
840
  throw await de_TooManyTagsExceptionRes(parsedOutput, context);
848
841
  default:
849
842
  const parsedBody = parsedOutput.body;
850
- (0, smithy_client_1.throwDefaultError)({
843
+ return throwDefaultError({
851
844
  output,
852
845
  parsedBody,
853
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
854
846
  errorCode,
855
847
  });
856
848
  }
@@ -861,12 +853,12 @@ const de_CreateFilterCommand = async (output, context) => {
861
853
  }
862
854
  const data = await parseBody(output.body, context);
863
855
  let contents = {};
864
- contents = de_CreateFilterResponse(data, context);
856
+ contents = (0, smithy_client_1._json)(data);
865
857
  const response = {
866
858
  $metadata: deserializeMetadata(output),
867
859
  ...contents,
868
860
  };
869
- return Promise.resolve(response);
861
+ return response;
870
862
  };
871
863
  exports.de_CreateFilterCommand = de_CreateFilterCommand;
872
864
  const de_CreateFilterCommandError = async (output, context) => {
@@ -893,10 +885,9 @@ const de_CreateFilterCommandError = async (output, context) => {
893
885
  throw await de_TooManyTagsExceptionRes(parsedOutput, context);
894
886
  default:
895
887
  const parsedBody = parsedOutput.body;
896
- (0, smithy_client_1.throwDefaultError)({
888
+ return throwDefaultError({
897
889
  output,
898
890
  parsedBody,
899
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
900
891
  errorCode,
901
892
  });
902
893
  }
@@ -907,12 +898,12 @@ const de_CreateMetricAttributionCommand = async (output, context) => {
907
898
  }
908
899
  const data = await parseBody(output.body, context);
909
900
  let contents = {};
910
- contents = de_CreateMetricAttributionResponse(data, context);
901
+ contents = (0, smithy_client_1._json)(data);
911
902
  const response = {
912
903
  $metadata: deserializeMetadata(output),
913
904
  ...contents,
914
905
  };
915
- return Promise.resolve(response);
906
+ return response;
916
907
  };
917
908
  exports.de_CreateMetricAttributionCommand = de_CreateMetricAttributionCommand;
918
909
  const de_CreateMetricAttributionCommandError = async (output, context) => {
@@ -939,10 +930,9 @@ const de_CreateMetricAttributionCommandError = async (output, context) => {
939
930
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
940
931
  default:
941
932
  const parsedBody = parsedOutput.body;
942
- (0, smithy_client_1.throwDefaultError)({
933
+ return throwDefaultError({
943
934
  output,
944
935
  parsedBody,
945
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
946
936
  errorCode,
947
937
  });
948
938
  }
@@ -953,12 +943,12 @@ const de_CreateRecommenderCommand = async (output, context) => {
953
943
  }
954
944
  const data = await parseBody(output.body, context);
955
945
  let contents = {};
956
- contents = de_CreateRecommenderResponse(data, context);
946
+ contents = (0, smithy_client_1._json)(data);
957
947
  const response = {
958
948
  $metadata: deserializeMetadata(output),
959
949
  ...contents,
960
950
  };
961
- return Promise.resolve(response);
951
+ return response;
962
952
  };
963
953
  exports.de_CreateRecommenderCommand = de_CreateRecommenderCommand;
964
954
  const de_CreateRecommenderCommandError = async (output, context) => {
@@ -988,10 +978,9 @@ const de_CreateRecommenderCommandError = async (output, context) => {
988
978
  throw await de_TooManyTagsExceptionRes(parsedOutput, context);
989
979
  default:
990
980
  const parsedBody = parsedOutput.body;
991
- (0, smithy_client_1.throwDefaultError)({
981
+ return throwDefaultError({
992
982
  output,
993
983
  parsedBody,
994
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
995
984
  errorCode,
996
985
  });
997
986
  }
@@ -1002,12 +991,12 @@ const de_CreateSchemaCommand = async (output, context) => {
1002
991
  }
1003
992
  const data = await parseBody(output.body, context);
1004
993
  let contents = {};
1005
- contents = de_CreateSchemaResponse(data, context);
994
+ contents = (0, smithy_client_1._json)(data);
1006
995
  const response = {
1007
996
  $metadata: deserializeMetadata(output),
1008
997
  ...contents,
1009
998
  };
1010
- return Promise.resolve(response);
999
+ return response;
1011
1000
  };
1012
1001
  exports.de_CreateSchemaCommand = de_CreateSchemaCommand;
1013
1002
  const de_CreateSchemaCommandError = async (output, context) => {
@@ -1028,10 +1017,9 @@ const de_CreateSchemaCommandError = async (output, context) => {
1028
1017
  throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
1029
1018
  default:
1030
1019
  const parsedBody = parsedOutput.body;
1031
- (0, smithy_client_1.throwDefaultError)({
1020
+ return throwDefaultError({
1032
1021
  output,
1033
1022
  parsedBody,
1034
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
1035
1023
  errorCode,
1036
1024
  });
1037
1025
  }
@@ -1042,12 +1030,12 @@ const de_CreateSolutionCommand = async (output, context) => {
1042
1030
  }
1043
1031
  const data = await parseBody(output.body, context);
1044
1032
  let contents = {};
1045
- contents = de_CreateSolutionResponse(data, context);
1033
+ contents = (0, smithy_client_1._json)(data);
1046
1034
  const response = {
1047
1035
  $metadata: deserializeMetadata(output),
1048
1036
  ...contents,
1049
1037
  };
1050
- return Promise.resolve(response);
1038
+ return response;
1051
1039
  };
1052
1040
  exports.de_CreateSolutionCommand = de_CreateSolutionCommand;
1053
1041
  const de_CreateSolutionCommandError = async (output, context) => {
@@ -1077,10 +1065,9 @@ const de_CreateSolutionCommandError = async (output, context) => {
1077
1065
  throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1078
1066
  default:
1079
1067
  const parsedBody = parsedOutput.body;
1080
- (0, smithy_client_1.throwDefaultError)({
1068
+ return throwDefaultError({
1081
1069
  output,
1082
1070
  parsedBody,
1083
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
1084
1071
  errorCode,
1085
1072
  });
1086
1073
  }
@@ -1091,12 +1078,12 @@ const de_CreateSolutionVersionCommand = async (output, context) => {
1091
1078
  }
1092
1079
  const data = await parseBody(output.body, context);
1093
1080
  let contents = {};
1094
- contents = de_CreateSolutionVersionResponse(data, context);
1081
+ contents = (0, smithy_client_1._json)(data);
1095
1082
  const response = {
1096
1083
  $metadata: deserializeMetadata(output),
1097
1084
  ...contents,
1098
1085
  };
1099
- return Promise.resolve(response);
1086
+ return response;
1100
1087
  };
1101
1088
  exports.de_CreateSolutionVersionCommand = de_CreateSolutionVersionCommand;
1102
1089
  const de_CreateSolutionVersionCommandError = async (output, context) => {
@@ -1126,10 +1113,9 @@ const de_CreateSolutionVersionCommandError = async (output, context) => {
1126
1113
  throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1127
1114
  default:
1128
1115
  const parsedBody = parsedOutput.body;
1129
- (0, smithy_client_1.throwDefaultError)({
1116
+ return throwDefaultError({
1130
1117
  output,
1131
1118
  parsedBody,
1132
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
1133
1119
  errorCode,
1134
1120
  });
1135
1121
  }
@@ -1142,7 +1128,7 @@ const de_DeleteCampaignCommand = async (output, context) => {
1142
1128
  const response = {
1143
1129
  $metadata: deserializeMetadata(output),
1144
1130
  };
1145
- return Promise.resolve(response);
1131
+ return response;
1146
1132
  };
1147
1133
  exports.de_DeleteCampaignCommand = de_DeleteCampaignCommand;
1148
1134
  const de_DeleteCampaignCommandError = async (output, context) => {
@@ -1163,10 +1149,9 @@ const de_DeleteCampaignCommandError = async (output, context) => {
1163
1149
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1164
1150
  default:
1165
1151
  const parsedBody = parsedOutput.body;
1166
- (0, smithy_client_1.throwDefaultError)({
1152
+ return throwDefaultError({
1167
1153
  output,
1168
1154
  parsedBody,
1169
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
1170
1155
  errorCode,
1171
1156
  });
1172
1157
  }
@@ -1179,7 +1164,7 @@ const de_DeleteDatasetCommand = async (output, context) => {
1179
1164
  const response = {
1180
1165
  $metadata: deserializeMetadata(output),
1181
1166
  };
1182
- return Promise.resolve(response);
1167
+ return response;
1183
1168
  };
1184
1169
  exports.de_DeleteDatasetCommand = de_DeleteDatasetCommand;
1185
1170
  const de_DeleteDatasetCommandError = async (output, context) => {
@@ -1200,10 +1185,9 @@ const de_DeleteDatasetCommandError = async (output, context) => {
1200
1185
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1201
1186
  default:
1202
1187
  const parsedBody = parsedOutput.body;
1203
- (0, smithy_client_1.throwDefaultError)({
1188
+ return throwDefaultError({
1204
1189
  output,
1205
1190
  parsedBody,
1206
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
1207
1191
  errorCode,
1208
1192
  });
1209
1193
  }
@@ -1216,7 +1200,7 @@ const de_DeleteDatasetGroupCommand = async (output, context) => {
1216
1200
  const response = {
1217
1201
  $metadata: deserializeMetadata(output),
1218
1202
  };
1219
- return Promise.resolve(response);
1203
+ return response;
1220
1204
  };
1221
1205
  exports.de_DeleteDatasetGroupCommand = de_DeleteDatasetGroupCommand;
1222
1206
  const de_DeleteDatasetGroupCommandError = async (output, context) => {
@@ -1237,10 +1221,9 @@ const de_DeleteDatasetGroupCommandError = async (output, context) => {
1237
1221
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1238
1222
  default:
1239
1223
  const parsedBody = parsedOutput.body;
1240
- (0, smithy_client_1.throwDefaultError)({
1224
+ return throwDefaultError({
1241
1225
  output,
1242
1226
  parsedBody,
1243
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
1244
1227
  errorCode,
1245
1228
  });
1246
1229
  }
@@ -1253,7 +1236,7 @@ const de_DeleteEventTrackerCommand = async (output, context) => {
1253
1236
  const response = {
1254
1237
  $metadata: deserializeMetadata(output),
1255
1238
  };
1256
- return Promise.resolve(response);
1239
+ return response;
1257
1240
  };
1258
1241
  exports.de_DeleteEventTrackerCommand = de_DeleteEventTrackerCommand;
1259
1242
  const de_DeleteEventTrackerCommandError = async (output, context) => {
@@ -1274,10 +1257,9 @@ const de_DeleteEventTrackerCommandError = async (output, context) => {
1274
1257
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1275
1258
  default:
1276
1259
  const parsedBody = parsedOutput.body;
1277
- (0, smithy_client_1.throwDefaultError)({
1260
+ return throwDefaultError({
1278
1261
  output,
1279
1262
  parsedBody,
1280
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
1281
1263
  errorCode,
1282
1264
  });
1283
1265
  }
@@ -1290,7 +1272,7 @@ const de_DeleteFilterCommand = async (output, context) => {
1290
1272
  const response = {
1291
1273
  $metadata: deserializeMetadata(output),
1292
1274
  };
1293
- return Promise.resolve(response);
1275
+ return response;
1294
1276
  };
1295
1277
  exports.de_DeleteFilterCommand = de_DeleteFilterCommand;
1296
1278
  const de_DeleteFilterCommandError = async (output, context) => {
@@ -1311,10 +1293,9 @@ const de_DeleteFilterCommandError = async (output, context) => {
1311
1293
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1312
1294
  default:
1313
1295
  const parsedBody = parsedOutput.body;
1314
- (0, smithy_client_1.throwDefaultError)({
1296
+ return throwDefaultError({
1315
1297
  output,
1316
1298
  parsedBody,
1317
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
1318
1299
  errorCode,
1319
1300
  });
1320
1301
  }
@@ -1327,7 +1308,7 @@ const de_DeleteMetricAttributionCommand = async (output, context) => {
1327
1308
  const response = {
1328
1309
  $metadata: deserializeMetadata(output),
1329
1310
  };
1330
- return Promise.resolve(response);
1311
+ return response;
1331
1312
  };
1332
1313
  exports.de_DeleteMetricAttributionCommand = de_DeleteMetricAttributionCommand;
1333
1314
  const de_DeleteMetricAttributionCommandError = async (output, context) => {
@@ -1348,10 +1329,9 @@ const de_DeleteMetricAttributionCommandError = async (output, context) => {
1348
1329
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1349
1330
  default:
1350
1331
  const parsedBody = parsedOutput.body;
1351
- (0, smithy_client_1.throwDefaultError)({
1332
+ return throwDefaultError({
1352
1333
  output,
1353
1334
  parsedBody,
1354
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
1355
1335
  errorCode,
1356
1336
  });
1357
1337
  }
@@ -1364,7 +1344,7 @@ const de_DeleteRecommenderCommand = async (output, context) => {
1364
1344
  const response = {
1365
1345
  $metadata: deserializeMetadata(output),
1366
1346
  };
1367
- return Promise.resolve(response);
1347
+ return response;
1368
1348
  };
1369
1349
  exports.de_DeleteRecommenderCommand = de_DeleteRecommenderCommand;
1370
1350
  const de_DeleteRecommenderCommandError = async (output, context) => {
@@ -1385,10 +1365,9 @@ const de_DeleteRecommenderCommandError = async (output, context) => {
1385
1365
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1386
1366
  default:
1387
1367
  const parsedBody = parsedOutput.body;
1388
- (0, smithy_client_1.throwDefaultError)({
1368
+ return throwDefaultError({
1389
1369
  output,
1390
1370
  parsedBody,
1391
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
1392
1371
  errorCode,
1393
1372
  });
1394
1373
  }
@@ -1401,7 +1380,7 @@ const de_DeleteSchemaCommand = async (output, context) => {
1401
1380
  const response = {
1402
1381
  $metadata: deserializeMetadata(output),
1403
1382
  };
1404
- return Promise.resolve(response);
1383
+ return response;
1405
1384
  };
1406
1385
  exports.de_DeleteSchemaCommand = de_DeleteSchemaCommand;
1407
1386
  const de_DeleteSchemaCommandError = async (output, context) => {
@@ -1422,10 +1401,9 @@ const de_DeleteSchemaCommandError = async (output, context) => {
1422
1401
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1423
1402
  default:
1424
1403
  const parsedBody = parsedOutput.body;
1425
- (0, smithy_client_1.throwDefaultError)({
1404
+ return throwDefaultError({
1426
1405
  output,
1427
1406
  parsedBody,
1428
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
1429
1407
  errorCode,
1430
1408
  });
1431
1409
  }
@@ -1438,7 +1416,7 @@ const de_DeleteSolutionCommand = async (output, context) => {
1438
1416
  const response = {
1439
1417
  $metadata: deserializeMetadata(output),
1440
1418
  };
1441
- return Promise.resolve(response);
1419
+ return response;
1442
1420
  };
1443
1421
  exports.de_DeleteSolutionCommand = de_DeleteSolutionCommand;
1444
1422
  const de_DeleteSolutionCommandError = async (output, context) => {
@@ -1459,10 +1437,9 @@ const de_DeleteSolutionCommandError = async (output, context) => {
1459
1437
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1460
1438
  default:
1461
1439
  const parsedBody = parsedOutput.body;
1462
- (0, smithy_client_1.throwDefaultError)({
1440
+ return throwDefaultError({
1463
1441
  output,
1464
1442
  parsedBody,
1465
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
1466
1443
  errorCode,
1467
1444
  });
1468
1445
  }
@@ -1478,7 +1455,7 @@ const de_DescribeAlgorithmCommand = async (output, context) => {
1478
1455
  $metadata: deserializeMetadata(output),
1479
1456
  ...contents,
1480
1457
  };
1481
- return Promise.resolve(response);
1458
+ return response;
1482
1459
  };
1483
1460
  exports.de_DescribeAlgorithmCommand = de_DescribeAlgorithmCommand;
1484
1461
  const de_DescribeAlgorithmCommandError = async (output, context) => {
@@ -1496,10 +1473,9 @@ const de_DescribeAlgorithmCommandError = async (output, context) => {
1496
1473
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1497
1474
  default:
1498
1475
  const parsedBody = parsedOutput.body;
1499
- (0, smithy_client_1.throwDefaultError)({
1476
+ return throwDefaultError({
1500
1477
  output,
1501
1478
  parsedBody,
1502
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
1503
1479
  errorCode,
1504
1480
  });
1505
1481
  }
@@ -1515,7 +1491,7 @@ const de_DescribeBatchInferenceJobCommand = async (output, context) => {
1515
1491
  $metadata: deserializeMetadata(output),
1516
1492
  ...contents,
1517
1493
  };
1518
- return Promise.resolve(response);
1494
+ return response;
1519
1495
  };
1520
1496
  exports.de_DescribeBatchInferenceJobCommand = de_DescribeBatchInferenceJobCommand;
1521
1497
  const de_DescribeBatchInferenceJobCommandError = async (output, context) => {
@@ -1533,10 +1509,9 @@ const de_DescribeBatchInferenceJobCommandError = async (output, context) => {
1533
1509
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1534
1510
  default:
1535
1511
  const parsedBody = parsedOutput.body;
1536
- (0, smithy_client_1.throwDefaultError)({
1512
+ return throwDefaultError({
1537
1513
  output,
1538
1514
  parsedBody,
1539
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
1540
1515
  errorCode,
1541
1516
  });
1542
1517
  }
@@ -1552,7 +1527,7 @@ const de_DescribeBatchSegmentJobCommand = async (output, context) => {
1552
1527
  $metadata: deserializeMetadata(output),
1553
1528
  ...contents,
1554
1529
  };
1555
- return Promise.resolve(response);
1530
+ return response;
1556
1531
  };
1557
1532
  exports.de_DescribeBatchSegmentJobCommand = de_DescribeBatchSegmentJobCommand;
1558
1533
  const de_DescribeBatchSegmentJobCommandError = async (output, context) => {
@@ -1570,10 +1545,9 @@ const de_DescribeBatchSegmentJobCommandError = async (output, context) => {
1570
1545
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1571
1546
  default:
1572
1547
  const parsedBody = parsedOutput.body;
1573
- (0, smithy_client_1.throwDefaultError)({
1548
+ return throwDefaultError({
1574
1549
  output,
1575
1550
  parsedBody,
1576
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
1577
1551
  errorCode,
1578
1552
  });
1579
1553
  }
@@ -1589,7 +1563,7 @@ const de_DescribeCampaignCommand = async (output, context) => {
1589
1563
  $metadata: deserializeMetadata(output),
1590
1564
  ...contents,
1591
1565
  };
1592
- return Promise.resolve(response);
1566
+ return response;
1593
1567
  };
1594
1568
  exports.de_DescribeCampaignCommand = de_DescribeCampaignCommand;
1595
1569
  const de_DescribeCampaignCommandError = async (output, context) => {
@@ -1607,10 +1581,9 @@ const de_DescribeCampaignCommandError = async (output, context) => {
1607
1581
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1608
1582
  default:
1609
1583
  const parsedBody = parsedOutput.body;
1610
- (0, smithy_client_1.throwDefaultError)({
1584
+ return throwDefaultError({
1611
1585
  output,
1612
1586
  parsedBody,
1613
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
1614
1587
  errorCode,
1615
1588
  });
1616
1589
  }
@@ -1626,7 +1599,7 @@ const de_DescribeDatasetCommand = async (output, context) => {
1626
1599
  $metadata: deserializeMetadata(output),
1627
1600
  ...contents,
1628
1601
  };
1629
- return Promise.resolve(response);
1602
+ return response;
1630
1603
  };
1631
1604
  exports.de_DescribeDatasetCommand = de_DescribeDatasetCommand;
1632
1605
  const de_DescribeDatasetCommandError = async (output, context) => {
@@ -1644,10 +1617,9 @@ const de_DescribeDatasetCommandError = async (output, context) => {
1644
1617
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1645
1618
  default:
1646
1619
  const parsedBody = parsedOutput.body;
1647
- (0, smithy_client_1.throwDefaultError)({
1620
+ return throwDefaultError({
1648
1621
  output,
1649
1622
  parsedBody,
1650
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
1651
1623
  errorCode,
1652
1624
  });
1653
1625
  }
@@ -1663,7 +1635,7 @@ const de_DescribeDatasetExportJobCommand = async (output, context) => {
1663
1635
  $metadata: deserializeMetadata(output),
1664
1636
  ...contents,
1665
1637
  };
1666
- return Promise.resolve(response);
1638
+ return response;
1667
1639
  };
1668
1640
  exports.de_DescribeDatasetExportJobCommand = de_DescribeDatasetExportJobCommand;
1669
1641
  const de_DescribeDatasetExportJobCommandError = async (output, context) => {
@@ -1681,10 +1653,9 @@ const de_DescribeDatasetExportJobCommandError = async (output, context) => {
1681
1653
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1682
1654
  default:
1683
1655
  const parsedBody = parsedOutput.body;
1684
- (0, smithy_client_1.throwDefaultError)({
1656
+ return throwDefaultError({
1685
1657
  output,
1686
1658
  parsedBody,
1687
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
1688
1659
  errorCode,
1689
1660
  });
1690
1661
  }
@@ -1700,7 +1671,7 @@ const de_DescribeDatasetGroupCommand = async (output, context) => {
1700
1671
  $metadata: deserializeMetadata(output),
1701
1672
  ...contents,
1702
1673
  };
1703
- return Promise.resolve(response);
1674
+ return response;
1704
1675
  };
1705
1676
  exports.de_DescribeDatasetGroupCommand = de_DescribeDatasetGroupCommand;
1706
1677
  const de_DescribeDatasetGroupCommandError = async (output, context) => {
@@ -1718,10 +1689,9 @@ const de_DescribeDatasetGroupCommandError = async (output, context) => {
1718
1689
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1719
1690
  default:
1720
1691
  const parsedBody = parsedOutput.body;
1721
- (0, smithy_client_1.throwDefaultError)({
1692
+ return throwDefaultError({
1722
1693
  output,
1723
1694
  parsedBody,
1724
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
1725
1695
  errorCode,
1726
1696
  });
1727
1697
  }
@@ -1737,7 +1707,7 @@ const de_DescribeDatasetImportJobCommand = async (output, context) => {
1737
1707
  $metadata: deserializeMetadata(output),
1738
1708
  ...contents,
1739
1709
  };
1740
- return Promise.resolve(response);
1710
+ return response;
1741
1711
  };
1742
1712
  exports.de_DescribeDatasetImportJobCommand = de_DescribeDatasetImportJobCommand;
1743
1713
  const de_DescribeDatasetImportJobCommandError = async (output, context) => {
@@ -1755,10 +1725,9 @@ const de_DescribeDatasetImportJobCommandError = async (output, context) => {
1755
1725
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1756
1726
  default:
1757
1727
  const parsedBody = parsedOutput.body;
1758
- (0, smithy_client_1.throwDefaultError)({
1728
+ return throwDefaultError({
1759
1729
  output,
1760
1730
  parsedBody,
1761
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
1762
1731
  errorCode,
1763
1732
  });
1764
1733
  }
@@ -1774,7 +1743,7 @@ const de_DescribeEventTrackerCommand = async (output, context) => {
1774
1743
  $metadata: deserializeMetadata(output),
1775
1744
  ...contents,
1776
1745
  };
1777
- return Promise.resolve(response);
1746
+ return response;
1778
1747
  };
1779
1748
  exports.de_DescribeEventTrackerCommand = de_DescribeEventTrackerCommand;
1780
1749
  const de_DescribeEventTrackerCommandError = async (output, context) => {
@@ -1792,10 +1761,9 @@ const de_DescribeEventTrackerCommandError = async (output, context) => {
1792
1761
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1793
1762
  default:
1794
1763
  const parsedBody = parsedOutput.body;
1795
- (0, smithy_client_1.throwDefaultError)({
1764
+ return throwDefaultError({
1796
1765
  output,
1797
1766
  parsedBody,
1798
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
1799
1767
  errorCode,
1800
1768
  });
1801
1769
  }
@@ -1811,7 +1779,7 @@ const de_DescribeFeatureTransformationCommand = async (output, context) => {
1811
1779
  $metadata: deserializeMetadata(output),
1812
1780
  ...contents,
1813
1781
  };
1814
- return Promise.resolve(response);
1782
+ return response;
1815
1783
  };
1816
1784
  exports.de_DescribeFeatureTransformationCommand = de_DescribeFeatureTransformationCommand;
1817
1785
  const de_DescribeFeatureTransformationCommandError = async (output, context) => {
@@ -1829,10 +1797,9 @@ const de_DescribeFeatureTransformationCommandError = async (output, context) =>
1829
1797
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1830
1798
  default:
1831
1799
  const parsedBody = parsedOutput.body;
1832
- (0, smithy_client_1.throwDefaultError)({
1800
+ return throwDefaultError({
1833
1801
  output,
1834
1802
  parsedBody,
1835
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
1836
1803
  errorCode,
1837
1804
  });
1838
1805
  }
@@ -1848,7 +1815,7 @@ const de_DescribeFilterCommand = async (output, context) => {
1848
1815
  $metadata: deserializeMetadata(output),
1849
1816
  ...contents,
1850
1817
  };
1851
- return Promise.resolve(response);
1818
+ return response;
1852
1819
  };
1853
1820
  exports.de_DescribeFilterCommand = de_DescribeFilterCommand;
1854
1821
  const de_DescribeFilterCommandError = async (output, context) => {
@@ -1866,10 +1833,9 @@ const de_DescribeFilterCommandError = async (output, context) => {
1866
1833
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1867
1834
  default:
1868
1835
  const parsedBody = parsedOutput.body;
1869
- (0, smithy_client_1.throwDefaultError)({
1836
+ return throwDefaultError({
1870
1837
  output,
1871
1838
  parsedBody,
1872
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
1873
1839
  errorCode,
1874
1840
  });
1875
1841
  }
@@ -1885,7 +1851,7 @@ const de_DescribeMetricAttributionCommand = async (output, context) => {
1885
1851
  $metadata: deserializeMetadata(output),
1886
1852
  ...contents,
1887
1853
  };
1888
- return Promise.resolve(response);
1854
+ return response;
1889
1855
  };
1890
1856
  exports.de_DescribeMetricAttributionCommand = de_DescribeMetricAttributionCommand;
1891
1857
  const de_DescribeMetricAttributionCommandError = async (output, context) => {
@@ -1903,10 +1869,9 @@ const de_DescribeMetricAttributionCommandError = async (output, context) => {
1903
1869
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1904
1870
  default:
1905
1871
  const parsedBody = parsedOutput.body;
1906
- (0, smithy_client_1.throwDefaultError)({
1872
+ return throwDefaultError({
1907
1873
  output,
1908
1874
  parsedBody,
1909
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
1910
1875
  errorCode,
1911
1876
  });
1912
1877
  }
@@ -1922,7 +1887,7 @@ const de_DescribeRecipeCommand = async (output, context) => {
1922
1887
  $metadata: deserializeMetadata(output),
1923
1888
  ...contents,
1924
1889
  };
1925
- return Promise.resolve(response);
1890
+ return response;
1926
1891
  };
1927
1892
  exports.de_DescribeRecipeCommand = de_DescribeRecipeCommand;
1928
1893
  const de_DescribeRecipeCommandError = async (output, context) => {
@@ -1940,10 +1905,9 @@ const de_DescribeRecipeCommandError = async (output, context) => {
1940
1905
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1941
1906
  default:
1942
1907
  const parsedBody = parsedOutput.body;
1943
- (0, smithy_client_1.throwDefaultError)({
1908
+ return throwDefaultError({
1944
1909
  output,
1945
1910
  parsedBody,
1946
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
1947
1911
  errorCode,
1948
1912
  });
1949
1913
  }
@@ -1959,7 +1923,7 @@ const de_DescribeRecommenderCommand = async (output, context) => {
1959
1923
  $metadata: deserializeMetadata(output),
1960
1924
  ...contents,
1961
1925
  };
1962
- return Promise.resolve(response);
1926
+ return response;
1963
1927
  };
1964
1928
  exports.de_DescribeRecommenderCommand = de_DescribeRecommenderCommand;
1965
1929
  const de_DescribeRecommenderCommandError = async (output, context) => {
@@ -1977,10 +1941,9 @@ const de_DescribeRecommenderCommandError = async (output, context) => {
1977
1941
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1978
1942
  default:
1979
1943
  const parsedBody = parsedOutput.body;
1980
- (0, smithy_client_1.throwDefaultError)({
1944
+ return throwDefaultError({
1981
1945
  output,
1982
1946
  parsedBody,
1983
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
1984
1947
  errorCode,
1985
1948
  });
1986
1949
  }
@@ -1996,7 +1959,7 @@ const de_DescribeSchemaCommand = async (output, context) => {
1996
1959
  $metadata: deserializeMetadata(output),
1997
1960
  ...contents,
1998
1961
  };
1999
- return Promise.resolve(response);
1962
+ return response;
2000
1963
  };
2001
1964
  exports.de_DescribeSchemaCommand = de_DescribeSchemaCommand;
2002
1965
  const de_DescribeSchemaCommandError = async (output, context) => {
@@ -2014,10 +1977,9 @@ const de_DescribeSchemaCommandError = async (output, context) => {
2014
1977
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2015
1978
  default:
2016
1979
  const parsedBody = parsedOutput.body;
2017
- (0, smithy_client_1.throwDefaultError)({
1980
+ return throwDefaultError({
2018
1981
  output,
2019
1982
  parsedBody,
2020
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
2021
1983
  errorCode,
2022
1984
  });
2023
1985
  }
@@ -2033,7 +1995,7 @@ const de_DescribeSolutionCommand = async (output, context) => {
2033
1995
  $metadata: deserializeMetadata(output),
2034
1996
  ...contents,
2035
1997
  };
2036
- return Promise.resolve(response);
1998
+ return response;
2037
1999
  };
2038
2000
  exports.de_DescribeSolutionCommand = de_DescribeSolutionCommand;
2039
2001
  const de_DescribeSolutionCommandError = async (output, context) => {
@@ -2051,10 +2013,9 @@ const de_DescribeSolutionCommandError = async (output, context) => {
2051
2013
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2052
2014
  default:
2053
2015
  const parsedBody = parsedOutput.body;
2054
- (0, smithy_client_1.throwDefaultError)({
2016
+ return throwDefaultError({
2055
2017
  output,
2056
2018
  parsedBody,
2057
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
2058
2019
  errorCode,
2059
2020
  });
2060
2021
  }
@@ -2070,7 +2031,7 @@ const de_DescribeSolutionVersionCommand = async (output, context) => {
2070
2031
  $metadata: deserializeMetadata(output),
2071
2032
  ...contents,
2072
2033
  };
2073
- return Promise.resolve(response);
2034
+ return response;
2074
2035
  };
2075
2036
  exports.de_DescribeSolutionVersionCommand = de_DescribeSolutionVersionCommand;
2076
2037
  const de_DescribeSolutionVersionCommandError = async (output, context) => {
@@ -2088,10 +2049,9 @@ const de_DescribeSolutionVersionCommandError = async (output, context) => {
2088
2049
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2089
2050
  default:
2090
2051
  const parsedBody = parsedOutput.body;
2091
- (0, smithy_client_1.throwDefaultError)({
2052
+ return throwDefaultError({
2092
2053
  output,
2093
2054
  parsedBody,
2094
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
2095
2055
  errorCode,
2096
2056
  });
2097
2057
  }
@@ -2107,7 +2067,7 @@ const de_GetSolutionMetricsCommand = async (output, context) => {
2107
2067
  $metadata: deserializeMetadata(output),
2108
2068
  ...contents,
2109
2069
  };
2110
- return Promise.resolve(response);
2070
+ return response;
2111
2071
  };
2112
2072
  exports.de_GetSolutionMetricsCommand = de_GetSolutionMetricsCommand;
2113
2073
  const de_GetSolutionMetricsCommandError = async (output, context) => {
@@ -2128,10 +2088,9 @@ const de_GetSolutionMetricsCommandError = async (output, context) => {
2128
2088
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2129
2089
  default:
2130
2090
  const parsedBody = parsedOutput.body;
2131
- (0, smithy_client_1.throwDefaultError)({
2091
+ return throwDefaultError({
2132
2092
  output,
2133
2093
  parsedBody,
2134
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
2135
2094
  errorCode,
2136
2095
  });
2137
2096
  }
@@ -2147,7 +2106,7 @@ const de_ListBatchInferenceJobsCommand = async (output, context) => {
2147
2106
  $metadata: deserializeMetadata(output),
2148
2107
  ...contents,
2149
2108
  };
2150
- return Promise.resolve(response);
2109
+ return response;
2151
2110
  };
2152
2111
  exports.de_ListBatchInferenceJobsCommand = de_ListBatchInferenceJobsCommand;
2153
2112
  const de_ListBatchInferenceJobsCommandError = async (output, context) => {
@@ -2165,10 +2124,9 @@ const de_ListBatchInferenceJobsCommandError = async (output, context) => {
2165
2124
  throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2166
2125
  default:
2167
2126
  const parsedBody = parsedOutput.body;
2168
- (0, smithy_client_1.throwDefaultError)({
2127
+ return throwDefaultError({
2169
2128
  output,
2170
2129
  parsedBody,
2171
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
2172
2130
  errorCode,
2173
2131
  });
2174
2132
  }
@@ -2184,7 +2142,7 @@ const de_ListBatchSegmentJobsCommand = async (output, context) => {
2184
2142
  $metadata: deserializeMetadata(output),
2185
2143
  ...contents,
2186
2144
  };
2187
- return Promise.resolve(response);
2145
+ return response;
2188
2146
  };
2189
2147
  exports.de_ListBatchSegmentJobsCommand = de_ListBatchSegmentJobsCommand;
2190
2148
  const de_ListBatchSegmentJobsCommandError = async (output, context) => {
@@ -2202,10 +2160,9 @@ const de_ListBatchSegmentJobsCommandError = async (output, context) => {
2202
2160
  throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2203
2161
  default:
2204
2162
  const parsedBody = parsedOutput.body;
2205
- (0, smithy_client_1.throwDefaultError)({
2163
+ return throwDefaultError({
2206
2164
  output,
2207
2165
  parsedBody,
2208
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
2209
2166
  errorCode,
2210
2167
  });
2211
2168
  }
@@ -2221,7 +2178,7 @@ const de_ListCampaignsCommand = async (output, context) => {
2221
2178
  $metadata: deserializeMetadata(output),
2222
2179
  ...contents,
2223
2180
  };
2224
- return Promise.resolve(response);
2181
+ return response;
2225
2182
  };
2226
2183
  exports.de_ListCampaignsCommand = de_ListCampaignsCommand;
2227
2184
  const de_ListCampaignsCommandError = async (output, context) => {
@@ -2239,10 +2196,9 @@ const de_ListCampaignsCommandError = async (output, context) => {
2239
2196
  throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2240
2197
  default:
2241
2198
  const parsedBody = parsedOutput.body;
2242
- (0, smithy_client_1.throwDefaultError)({
2199
+ return throwDefaultError({
2243
2200
  output,
2244
2201
  parsedBody,
2245
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
2246
2202
  errorCode,
2247
2203
  });
2248
2204
  }
@@ -2258,7 +2214,7 @@ const de_ListDatasetExportJobsCommand = async (output, context) => {
2258
2214
  $metadata: deserializeMetadata(output),
2259
2215
  ...contents,
2260
2216
  };
2261
- return Promise.resolve(response);
2217
+ return response;
2262
2218
  };
2263
2219
  exports.de_ListDatasetExportJobsCommand = de_ListDatasetExportJobsCommand;
2264
2220
  const de_ListDatasetExportJobsCommandError = async (output, context) => {
@@ -2276,10 +2232,9 @@ const de_ListDatasetExportJobsCommandError = async (output, context) => {
2276
2232
  throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2277
2233
  default:
2278
2234
  const parsedBody = parsedOutput.body;
2279
- (0, smithy_client_1.throwDefaultError)({
2235
+ return throwDefaultError({
2280
2236
  output,
2281
2237
  parsedBody,
2282
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
2283
2238
  errorCode,
2284
2239
  });
2285
2240
  }
@@ -2295,7 +2250,7 @@ const de_ListDatasetGroupsCommand = async (output, context) => {
2295
2250
  $metadata: deserializeMetadata(output),
2296
2251
  ...contents,
2297
2252
  };
2298
- return Promise.resolve(response);
2253
+ return response;
2299
2254
  };
2300
2255
  exports.de_ListDatasetGroupsCommand = de_ListDatasetGroupsCommand;
2301
2256
  const de_ListDatasetGroupsCommandError = async (output, context) => {
@@ -2310,10 +2265,9 @@ const de_ListDatasetGroupsCommandError = async (output, context) => {
2310
2265
  throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2311
2266
  default:
2312
2267
  const parsedBody = parsedOutput.body;
2313
- (0, smithy_client_1.throwDefaultError)({
2268
+ return throwDefaultError({
2314
2269
  output,
2315
2270
  parsedBody,
2316
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
2317
2271
  errorCode,
2318
2272
  });
2319
2273
  }
@@ -2329,7 +2283,7 @@ const de_ListDatasetImportJobsCommand = async (output, context) => {
2329
2283
  $metadata: deserializeMetadata(output),
2330
2284
  ...contents,
2331
2285
  };
2332
- return Promise.resolve(response);
2286
+ return response;
2333
2287
  };
2334
2288
  exports.de_ListDatasetImportJobsCommand = de_ListDatasetImportJobsCommand;
2335
2289
  const de_ListDatasetImportJobsCommandError = async (output, context) => {
@@ -2347,10 +2301,9 @@ const de_ListDatasetImportJobsCommandError = async (output, context) => {
2347
2301
  throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2348
2302
  default:
2349
2303
  const parsedBody = parsedOutput.body;
2350
- (0, smithy_client_1.throwDefaultError)({
2304
+ return throwDefaultError({
2351
2305
  output,
2352
2306
  parsedBody,
2353
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
2354
2307
  errorCode,
2355
2308
  });
2356
2309
  }
@@ -2366,7 +2319,7 @@ const de_ListDatasetsCommand = async (output, context) => {
2366
2319
  $metadata: deserializeMetadata(output),
2367
2320
  ...contents,
2368
2321
  };
2369
- return Promise.resolve(response);
2322
+ return response;
2370
2323
  };
2371
2324
  exports.de_ListDatasetsCommand = de_ListDatasetsCommand;
2372
2325
  const de_ListDatasetsCommandError = async (output, context) => {
@@ -2384,10 +2337,9 @@ const de_ListDatasetsCommandError = async (output, context) => {
2384
2337
  throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2385
2338
  default:
2386
2339
  const parsedBody = parsedOutput.body;
2387
- (0, smithy_client_1.throwDefaultError)({
2340
+ return throwDefaultError({
2388
2341
  output,
2389
2342
  parsedBody,
2390
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
2391
2343
  errorCode,
2392
2344
  });
2393
2345
  }
@@ -2403,7 +2355,7 @@ const de_ListEventTrackersCommand = async (output, context) => {
2403
2355
  $metadata: deserializeMetadata(output),
2404
2356
  ...contents,
2405
2357
  };
2406
- return Promise.resolve(response);
2358
+ return response;
2407
2359
  };
2408
2360
  exports.de_ListEventTrackersCommand = de_ListEventTrackersCommand;
2409
2361
  const de_ListEventTrackersCommandError = async (output, context) => {
@@ -2421,10 +2373,9 @@ const de_ListEventTrackersCommandError = async (output, context) => {
2421
2373
  throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2422
2374
  default:
2423
2375
  const parsedBody = parsedOutput.body;
2424
- (0, smithy_client_1.throwDefaultError)({
2376
+ return throwDefaultError({
2425
2377
  output,
2426
2378
  parsedBody,
2427
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
2428
2379
  errorCode,
2429
2380
  });
2430
2381
  }
@@ -2440,7 +2391,7 @@ const de_ListFiltersCommand = async (output, context) => {
2440
2391
  $metadata: deserializeMetadata(output),
2441
2392
  ...contents,
2442
2393
  };
2443
- return Promise.resolve(response);
2394
+ return response;
2444
2395
  };
2445
2396
  exports.de_ListFiltersCommand = de_ListFiltersCommand;
2446
2397
  const de_ListFiltersCommandError = async (output, context) => {
@@ -2458,10 +2409,9 @@ const de_ListFiltersCommandError = async (output, context) => {
2458
2409
  throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2459
2410
  default:
2460
2411
  const parsedBody = parsedOutput.body;
2461
- (0, smithy_client_1.throwDefaultError)({
2412
+ return throwDefaultError({
2462
2413
  output,
2463
2414
  parsedBody,
2464
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
2465
2415
  errorCode,
2466
2416
  });
2467
2417
  }
@@ -2472,12 +2422,12 @@ const de_ListMetricAttributionMetricsCommand = async (output, context) => {
2472
2422
  }
2473
2423
  const data = await parseBody(output.body, context);
2474
2424
  let contents = {};
2475
- contents = de_ListMetricAttributionMetricsResponse(data, context);
2425
+ contents = (0, smithy_client_1._json)(data);
2476
2426
  const response = {
2477
2427
  $metadata: deserializeMetadata(output),
2478
2428
  ...contents,
2479
2429
  };
2480
- return Promise.resolve(response);
2430
+ return response;
2481
2431
  };
2482
2432
  exports.de_ListMetricAttributionMetricsCommand = de_ListMetricAttributionMetricsCommand;
2483
2433
  const de_ListMetricAttributionMetricsCommandError = async (output, context) => {
@@ -2495,10 +2445,9 @@ const de_ListMetricAttributionMetricsCommandError = async (output, context) => {
2495
2445
  throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2496
2446
  default:
2497
2447
  const parsedBody = parsedOutput.body;
2498
- (0, smithy_client_1.throwDefaultError)({
2448
+ return throwDefaultError({
2499
2449
  output,
2500
2450
  parsedBody,
2501
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
2502
2451
  errorCode,
2503
2452
  });
2504
2453
  }
@@ -2514,7 +2463,7 @@ const de_ListMetricAttributionsCommand = async (output, context) => {
2514
2463
  $metadata: deserializeMetadata(output),
2515
2464
  ...contents,
2516
2465
  };
2517
- return Promise.resolve(response);
2466
+ return response;
2518
2467
  };
2519
2468
  exports.de_ListMetricAttributionsCommand = de_ListMetricAttributionsCommand;
2520
2469
  const de_ListMetricAttributionsCommandError = async (output, context) => {
@@ -2532,10 +2481,9 @@ const de_ListMetricAttributionsCommandError = async (output, context) => {
2532
2481
  throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2533
2482
  default:
2534
2483
  const parsedBody = parsedOutput.body;
2535
- (0, smithy_client_1.throwDefaultError)({
2484
+ return throwDefaultError({
2536
2485
  output,
2537
2486
  parsedBody,
2538
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
2539
2487
  errorCode,
2540
2488
  });
2541
2489
  }
@@ -2551,7 +2499,7 @@ const de_ListRecipesCommand = async (output, context) => {
2551
2499
  $metadata: deserializeMetadata(output),
2552
2500
  ...contents,
2553
2501
  };
2554
- return Promise.resolve(response);
2502
+ return response;
2555
2503
  };
2556
2504
  exports.de_ListRecipesCommand = de_ListRecipesCommand;
2557
2505
  const de_ListRecipesCommandError = async (output, context) => {
@@ -2569,10 +2517,9 @@ const de_ListRecipesCommandError = async (output, context) => {
2569
2517
  throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2570
2518
  default:
2571
2519
  const parsedBody = parsedOutput.body;
2572
- (0, smithy_client_1.throwDefaultError)({
2520
+ return throwDefaultError({
2573
2521
  output,
2574
2522
  parsedBody,
2575
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
2576
2523
  errorCode,
2577
2524
  });
2578
2525
  }
@@ -2588,7 +2535,7 @@ const de_ListRecommendersCommand = async (output, context) => {
2588
2535
  $metadata: deserializeMetadata(output),
2589
2536
  ...contents,
2590
2537
  };
2591
- return Promise.resolve(response);
2538
+ return response;
2592
2539
  };
2593
2540
  exports.de_ListRecommendersCommand = de_ListRecommendersCommand;
2594
2541
  const de_ListRecommendersCommandError = async (output, context) => {
@@ -2606,10 +2553,9 @@ const de_ListRecommendersCommandError = async (output, context) => {
2606
2553
  throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2607
2554
  default:
2608
2555
  const parsedBody = parsedOutput.body;
2609
- (0, smithy_client_1.throwDefaultError)({
2556
+ return throwDefaultError({
2610
2557
  output,
2611
2558
  parsedBody,
2612
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
2613
2559
  errorCode,
2614
2560
  });
2615
2561
  }
@@ -2625,7 +2571,7 @@ const de_ListSchemasCommand = async (output, context) => {
2625
2571
  $metadata: deserializeMetadata(output),
2626
2572
  ...contents,
2627
2573
  };
2628
- return Promise.resolve(response);
2574
+ return response;
2629
2575
  };
2630
2576
  exports.de_ListSchemasCommand = de_ListSchemasCommand;
2631
2577
  const de_ListSchemasCommandError = async (output, context) => {
@@ -2640,10 +2586,9 @@ const de_ListSchemasCommandError = async (output, context) => {
2640
2586
  throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2641
2587
  default:
2642
2588
  const parsedBody = parsedOutput.body;
2643
- (0, smithy_client_1.throwDefaultError)({
2589
+ return throwDefaultError({
2644
2590
  output,
2645
2591
  parsedBody,
2646
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
2647
2592
  errorCode,
2648
2593
  });
2649
2594
  }
@@ -2659,7 +2604,7 @@ const de_ListSolutionsCommand = async (output, context) => {
2659
2604
  $metadata: deserializeMetadata(output),
2660
2605
  ...contents,
2661
2606
  };
2662
- return Promise.resolve(response);
2607
+ return response;
2663
2608
  };
2664
2609
  exports.de_ListSolutionsCommand = de_ListSolutionsCommand;
2665
2610
  const de_ListSolutionsCommandError = async (output, context) => {
@@ -2677,10 +2622,9 @@ const de_ListSolutionsCommandError = async (output, context) => {
2677
2622
  throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2678
2623
  default:
2679
2624
  const parsedBody = parsedOutput.body;
2680
- (0, smithy_client_1.throwDefaultError)({
2625
+ return throwDefaultError({
2681
2626
  output,
2682
2627
  parsedBody,
2683
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
2684
2628
  errorCode,
2685
2629
  });
2686
2630
  }
@@ -2696,7 +2640,7 @@ const de_ListSolutionVersionsCommand = async (output, context) => {
2696
2640
  $metadata: deserializeMetadata(output),
2697
2641
  ...contents,
2698
2642
  };
2699
- return Promise.resolve(response);
2643
+ return response;
2700
2644
  };
2701
2645
  exports.de_ListSolutionVersionsCommand = de_ListSolutionVersionsCommand;
2702
2646
  const de_ListSolutionVersionsCommandError = async (output, context) => {
@@ -2717,10 +2661,9 @@ const de_ListSolutionVersionsCommandError = async (output, context) => {
2717
2661
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2718
2662
  default:
2719
2663
  const parsedBody = parsedOutput.body;
2720
- (0, smithy_client_1.throwDefaultError)({
2664
+ return throwDefaultError({
2721
2665
  output,
2722
2666
  parsedBody,
2723
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
2724
2667
  errorCode,
2725
2668
  });
2726
2669
  }
@@ -2731,12 +2674,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
2731
2674
  }
2732
2675
  const data = await parseBody(output.body, context);
2733
2676
  let contents = {};
2734
- contents = de_ListTagsForResourceResponse(data, context);
2677
+ contents = (0, smithy_client_1._json)(data);
2735
2678
  const response = {
2736
2679
  $metadata: deserializeMetadata(output),
2737
2680
  ...contents,
2738
2681
  };
2739
- return Promise.resolve(response);
2682
+ return response;
2740
2683
  };
2741
2684
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
2742
2685
  const de_ListTagsForResourceCommandError = async (output, context) => {
@@ -2757,10 +2700,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
2757
2700
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2758
2701
  default:
2759
2702
  const parsedBody = parsedOutput.body;
2760
- (0, smithy_client_1.throwDefaultError)({
2703
+ return throwDefaultError({
2761
2704
  output,
2762
2705
  parsedBody,
2763
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
2764
2706
  errorCode,
2765
2707
  });
2766
2708
  }
@@ -2771,12 +2713,12 @@ const de_StartRecommenderCommand = async (output, context) => {
2771
2713
  }
2772
2714
  const data = await parseBody(output.body, context);
2773
2715
  let contents = {};
2774
- contents = de_StartRecommenderResponse(data, context);
2716
+ contents = (0, smithy_client_1._json)(data);
2775
2717
  const response = {
2776
2718
  $metadata: deserializeMetadata(output),
2777
2719
  ...contents,
2778
2720
  };
2779
- return Promise.resolve(response);
2721
+ return response;
2780
2722
  };
2781
2723
  exports.de_StartRecommenderCommand = de_StartRecommenderCommand;
2782
2724
  const de_StartRecommenderCommandError = async (output, context) => {
@@ -2797,10 +2739,9 @@ const de_StartRecommenderCommandError = async (output, context) => {
2797
2739
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2798
2740
  default:
2799
2741
  const parsedBody = parsedOutput.body;
2800
- (0, smithy_client_1.throwDefaultError)({
2742
+ return throwDefaultError({
2801
2743
  output,
2802
2744
  parsedBody,
2803
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
2804
2745
  errorCode,
2805
2746
  });
2806
2747
  }
@@ -2811,12 +2752,12 @@ const de_StopRecommenderCommand = async (output, context) => {
2811
2752
  }
2812
2753
  const data = await parseBody(output.body, context);
2813
2754
  let contents = {};
2814
- contents = de_StopRecommenderResponse(data, context);
2755
+ contents = (0, smithy_client_1._json)(data);
2815
2756
  const response = {
2816
2757
  $metadata: deserializeMetadata(output),
2817
2758
  ...contents,
2818
2759
  };
2819
- return Promise.resolve(response);
2760
+ return response;
2820
2761
  };
2821
2762
  exports.de_StopRecommenderCommand = de_StopRecommenderCommand;
2822
2763
  const de_StopRecommenderCommandError = async (output, context) => {
@@ -2837,10 +2778,9 @@ const de_StopRecommenderCommandError = async (output, context) => {
2837
2778
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2838
2779
  default:
2839
2780
  const parsedBody = parsedOutput.body;
2840
- (0, smithy_client_1.throwDefaultError)({
2781
+ return throwDefaultError({
2841
2782
  output,
2842
2783
  parsedBody,
2843
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
2844
2784
  errorCode,
2845
2785
  });
2846
2786
  }
@@ -2853,7 +2793,7 @@ const de_StopSolutionVersionCreationCommand = async (output, context) => {
2853
2793
  const response = {
2854
2794
  $metadata: deserializeMetadata(output),
2855
2795
  };
2856
- return Promise.resolve(response);
2796
+ return response;
2857
2797
  };
2858
2798
  exports.de_StopSolutionVersionCreationCommand = de_StopSolutionVersionCreationCommand;
2859
2799
  const de_StopSolutionVersionCreationCommandError = async (output, context) => {
@@ -2874,10 +2814,9 @@ const de_StopSolutionVersionCreationCommandError = async (output, context) => {
2874
2814
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2875
2815
  default:
2876
2816
  const parsedBody = parsedOutput.body;
2877
- (0, smithy_client_1.throwDefaultError)({
2817
+ return throwDefaultError({
2878
2818
  output,
2879
2819
  parsedBody,
2880
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
2881
2820
  errorCode,
2882
2821
  });
2883
2822
  }
@@ -2888,12 +2827,12 @@ const de_TagResourceCommand = async (output, context) => {
2888
2827
  }
2889
2828
  const data = await parseBody(output.body, context);
2890
2829
  let contents = {};
2891
- contents = de_TagResourceResponse(data, context);
2830
+ contents = (0, smithy_client_1._json)(data);
2892
2831
  const response = {
2893
2832
  $metadata: deserializeMetadata(output),
2894
2833
  ...contents,
2895
2834
  };
2896
- return Promise.resolve(response);
2835
+ return response;
2897
2836
  };
2898
2837
  exports.de_TagResourceCommand = de_TagResourceCommand;
2899
2838
  const de_TagResourceCommandError = async (output, context) => {
@@ -2920,10 +2859,9 @@ const de_TagResourceCommandError = async (output, context) => {
2920
2859
  throw await de_TooManyTagsExceptionRes(parsedOutput, context);
2921
2860
  default:
2922
2861
  const parsedBody = parsedOutput.body;
2923
- (0, smithy_client_1.throwDefaultError)({
2862
+ return throwDefaultError({
2924
2863
  output,
2925
2864
  parsedBody,
2926
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
2927
2865
  errorCode,
2928
2866
  });
2929
2867
  }
@@ -2934,12 +2872,12 @@ const de_UntagResourceCommand = async (output, context) => {
2934
2872
  }
2935
2873
  const data = await parseBody(output.body, context);
2936
2874
  let contents = {};
2937
- contents = de_UntagResourceResponse(data, context);
2875
+ contents = (0, smithy_client_1._json)(data);
2938
2876
  const response = {
2939
2877
  $metadata: deserializeMetadata(output),
2940
2878
  ...contents,
2941
2879
  };
2942
- return Promise.resolve(response);
2880
+ return response;
2943
2881
  };
2944
2882
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
2945
2883
  const de_UntagResourceCommandError = async (output, context) => {
@@ -2963,10 +2901,9 @@ const de_UntagResourceCommandError = async (output, context) => {
2963
2901
  throw await de_TooManyTagKeysExceptionRes(parsedOutput, context);
2964
2902
  default:
2965
2903
  const parsedBody = parsedOutput.body;
2966
- (0, smithy_client_1.throwDefaultError)({
2904
+ return throwDefaultError({
2967
2905
  output,
2968
2906
  parsedBody,
2969
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
2970
2907
  errorCode,
2971
2908
  });
2972
2909
  }
@@ -2977,12 +2914,12 @@ const de_UpdateCampaignCommand = async (output, context) => {
2977
2914
  }
2978
2915
  const data = await parseBody(output.body, context);
2979
2916
  let contents = {};
2980
- contents = de_UpdateCampaignResponse(data, context);
2917
+ contents = (0, smithy_client_1._json)(data);
2981
2918
  const response = {
2982
2919
  $metadata: deserializeMetadata(output),
2983
2920
  ...contents,
2984
2921
  };
2985
- return Promise.resolve(response);
2922
+ return response;
2986
2923
  };
2987
2924
  exports.de_UpdateCampaignCommand = de_UpdateCampaignCommand;
2988
2925
  const de_UpdateCampaignCommandError = async (output, context) => {
@@ -3003,10 +2940,9 @@ const de_UpdateCampaignCommandError = async (output, context) => {
3003
2940
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3004
2941
  default:
3005
2942
  const parsedBody = parsedOutput.body;
3006
- (0, smithy_client_1.throwDefaultError)({
2943
+ return throwDefaultError({
3007
2944
  output,
3008
2945
  parsedBody,
3009
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
3010
2946
  errorCode,
3011
2947
  });
3012
2948
  }
@@ -3017,12 +2953,12 @@ const de_UpdateMetricAttributionCommand = async (output, context) => {
3017
2953
  }
3018
2954
  const data = await parseBody(output.body, context);
3019
2955
  let contents = {};
3020
- contents = de_UpdateMetricAttributionResponse(data, context);
2956
+ contents = (0, smithy_client_1._json)(data);
3021
2957
  const response = {
3022
2958
  $metadata: deserializeMetadata(output),
3023
2959
  ...contents,
3024
2960
  };
3025
- return Promise.resolve(response);
2961
+ return response;
3026
2962
  };
3027
2963
  exports.de_UpdateMetricAttributionCommand = de_UpdateMetricAttributionCommand;
3028
2964
  const de_UpdateMetricAttributionCommandError = async (output, context) => {
@@ -3046,10 +2982,9 @@ const de_UpdateMetricAttributionCommandError = async (output, context) => {
3046
2982
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3047
2983
  default:
3048
2984
  const parsedBody = parsedOutput.body;
3049
- (0, smithy_client_1.throwDefaultError)({
2985
+ return throwDefaultError({
3050
2986
  output,
3051
2987
  parsedBody,
3052
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
3053
2988
  errorCode,
3054
2989
  });
3055
2990
  }
@@ -3060,12 +2995,12 @@ const de_UpdateRecommenderCommand = async (output, context) => {
3060
2995
  }
3061
2996
  const data = await parseBody(output.body, context);
3062
2997
  let contents = {};
3063
- contents = de_UpdateRecommenderResponse(data, context);
2998
+ contents = (0, smithy_client_1._json)(data);
3064
2999
  const response = {
3065
3000
  $metadata: deserializeMetadata(output),
3066
3001
  ...contents,
3067
3002
  };
3068
- return Promise.resolve(response);
3003
+ return response;
3069
3004
  };
3070
3005
  exports.de_UpdateRecommenderCommand = de_UpdateRecommenderCommand;
3071
3006
  const de_UpdateRecommenderCommandError = async (output, context) => {
@@ -3086,17 +3021,16 @@ const de_UpdateRecommenderCommandError = async (output, context) => {
3086
3021
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3087
3022
  default:
3088
3023
  const parsedBody = parsedOutput.body;
3089
- (0, smithy_client_1.throwDefaultError)({
3024
+ return throwDefaultError({
3090
3025
  output,
3091
3026
  parsedBody,
3092
- exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
3093
3027
  errorCode,
3094
3028
  });
3095
3029
  }
3096
3030
  };
3097
3031
  const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
3098
3032
  const body = parsedOutput.body;
3099
- const deserialized = de_InvalidInputException(body, context);
3033
+ const deserialized = (0, smithy_client_1._json)(body);
3100
3034
  const exception = new models_0_1.InvalidInputException({
3101
3035
  $metadata: deserializeMetadata(parsedOutput),
3102
3036
  ...deserialized,
@@ -3105,7 +3039,7 @@ const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
3105
3039
  };
3106
3040
  const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
3107
3041
  const body = parsedOutput.body;
3108
- const deserialized = de_InvalidNextTokenException(body, context);
3042
+ const deserialized = (0, smithy_client_1._json)(body);
3109
3043
  const exception = new models_0_1.InvalidNextTokenException({
3110
3044
  $metadata: deserializeMetadata(parsedOutput),
3111
3045
  ...deserialized,
@@ -3114,7 +3048,7 @@ const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
3114
3048
  };
3115
3049
  const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
3116
3050
  const body = parsedOutput.body;
3117
- const deserialized = de_LimitExceededException(body, context);
3051
+ const deserialized = (0, smithy_client_1._json)(body);
3118
3052
  const exception = new models_0_1.LimitExceededException({
3119
3053
  $metadata: deserializeMetadata(parsedOutput),
3120
3054
  ...deserialized,
@@ -3123,7 +3057,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
3123
3057
  };
3124
3058
  const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
3125
3059
  const body = parsedOutput.body;
3126
- const deserialized = de_ResourceAlreadyExistsException(body, context);
3060
+ const deserialized = (0, smithy_client_1._json)(body);
3127
3061
  const exception = new models_0_1.ResourceAlreadyExistsException({
3128
3062
  $metadata: deserializeMetadata(parsedOutput),
3129
3063
  ...deserialized,
@@ -3132,7 +3066,7 @@ const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
3132
3066
  };
3133
3067
  const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
3134
3068
  const body = parsedOutput.body;
3135
- const deserialized = de_ResourceInUseException(body, context);
3069
+ const deserialized = (0, smithy_client_1._json)(body);
3136
3070
  const exception = new models_0_1.ResourceInUseException({
3137
3071
  $metadata: deserializeMetadata(parsedOutput),
3138
3072
  ...deserialized,
@@ -3141,7 +3075,7 @@ const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
3141
3075
  };
3142
3076
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
3143
3077
  const body = parsedOutput.body;
3144
- const deserialized = de_ResourceNotFoundException(body, context);
3078
+ const deserialized = (0, smithy_client_1._json)(body);
3145
3079
  const exception = new models_0_1.ResourceNotFoundException({
3146
3080
  $metadata: deserializeMetadata(parsedOutput),
3147
3081
  ...deserialized,
@@ -3150,7 +3084,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
3150
3084
  };
3151
3085
  const de_TooManyTagKeysExceptionRes = async (parsedOutput, context) => {
3152
3086
  const body = parsedOutput.body;
3153
- const deserialized = de_TooManyTagKeysException(body, context);
3087
+ const deserialized = (0, smithy_client_1._json)(body);
3154
3088
  const exception = new models_0_1.TooManyTagKeysException({
3155
3089
  $metadata: deserializeMetadata(parsedOutput),
3156
3090
  ...deserialized,
@@ -3159,86 +3093,19 @@ const de_TooManyTagKeysExceptionRes = async (parsedOutput, context) => {
3159
3093
  };
3160
3094
  const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
3161
3095
  const body = parsedOutput.body;
3162
- const deserialized = de_TooManyTagsException(body, context);
3096
+ const deserialized = (0, smithy_client_1._json)(body);
3163
3097
  const exception = new models_0_1.TooManyTagsException({
3164
3098
  $metadata: deserializeMetadata(parsedOutput),
3165
3099
  ...deserialized,
3166
3100
  });
3167
3101
  return (0, smithy_client_1.decorateServiceException)(exception, body);
3168
3102
  };
3169
- const se_ArnList = (input, context) => {
3170
- return input
3171
- .filter((e) => e != null)
3172
- .map((entry) => {
3173
- return entry;
3174
- });
3175
- };
3176
- const se_AutoMLConfig = (input, context) => {
3177
- return {
3178
- ...(input.metricName != null && { metricName: input.metricName }),
3179
- ...(input.recipeList != null && { recipeList: se_ArnList(input.recipeList, context) }),
3180
- };
3181
- };
3182
- const se_BatchInferenceJobConfig = (input, context) => {
3183
- return {
3184
- ...(input.itemExplorationConfig != null && {
3185
- itemExplorationConfig: se_HyperParameters(input.itemExplorationConfig, context),
3186
- }),
3187
- };
3188
- };
3189
- const se_BatchInferenceJobInput = (input, context) => {
3190
- return {
3191
- ...(input.s3DataSource != null && { s3DataSource: se_S3DataConfig(input.s3DataSource, context) }),
3192
- };
3193
- };
3194
- const se_BatchInferenceJobOutput = (input, context) => {
3195
- return {
3196
- ...(input.s3DataDestination != null && { s3DataDestination: se_S3DataConfig(input.s3DataDestination, context) }),
3197
- };
3198
- };
3199
- const se_BatchSegmentJobInput = (input, context) => {
3200
- return {
3201
- ...(input.s3DataSource != null && { s3DataSource: se_S3DataConfig(input.s3DataSource, context) }),
3202
- };
3203
- };
3204
- const se_BatchSegmentJobOutput = (input, context) => {
3205
- return {
3206
- ...(input.s3DataDestination != null && { s3DataDestination: se_S3DataConfig(input.s3DataDestination, context) }),
3207
- };
3208
- };
3209
- const se_CampaignConfig = (input, context) => {
3210
- return {
3211
- ...(input.itemExplorationConfig != null && {
3212
- itemExplorationConfig: se_HyperParameters(input.itemExplorationConfig, context),
3213
- }),
3214
- };
3215
- };
3216
- const se_CategoricalHyperParameterRange = (input, context) => {
3217
- return {
3218
- ...(input.name != null && { name: input.name }),
3219
- ...(input.values != null && { values: se_CategoricalValues(input.values, context) }),
3220
- };
3221
- };
3222
- const se_CategoricalHyperParameterRanges = (input, context) => {
3223
- return input
3224
- .filter((e) => e != null)
3225
- .map((entry) => {
3226
- return se_CategoricalHyperParameterRange(entry, context);
3227
- });
3228
- };
3229
- const se_CategoricalValues = (input, context) => {
3230
- return input
3231
- .filter((e) => e != null)
3232
- .map((entry) => {
3233
- return entry;
3234
- });
3235
- };
3236
3103
  const se_ContinuousHyperParameterRange = (input, context) => {
3237
- return {
3238
- ...(input.maxValue != null && { maxValue: (0, smithy_client_1.serializeFloat)(input.maxValue) }),
3239
- ...(input.minValue != null && { minValue: (0, smithy_client_1.serializeFloat)(input.minValue) }),
3240
- ...(input.name != null && { name: input.name }),
3241
- };
3104
+ return (0, smithy_client_1.take)(input, {
3105
+ maxValue: smithy_client_1.serializeFloat,
3106
+ minValue: smithy_client_1.serializeFloat,
3107
+ name: [],
3108
+ });
3242
3109
  };
3243
3110
  const se_ContinuousHyperParameterRanges = (input, context) => {
3244
3111
  return input
@@ -3247,1690 +3114,649 @@ const se_ContinuousHyperParameterRanges = (input, context) => {
3247
3114
  return se_ContinuousHyperParameterRange(entry, context);
3248
3115
  });
3249
3116
  };
3250
- const se_CreateBatchInferenceJobRequest = (input, context) => {
3251
- return {
3252
- ...(input.batchInferenceJobConfig != null && {
3253
- batchInferenceJobConfig: se_BatchInferenceJobConfig(input.batchInferenceJobConfig, context),
3254
- }),
3255
- ...(input.filterArn != null && { filterArn: input.filterArn }),
3256
- ...(input.jobInput != null && { jobInput: se_BatchInferenceJobInput(input.jobInput, context) }),
3257
- ...(input.jobName != null && { jobName: input.jobName }),
3258
- ...(input.jobOutput != null && { jobOutput: se_BatchInferenceJobOutput(input.jobOutput, context) }),
3259
- ...(input.numResults != null && { numResults: input.numResults }),
3260
- ...(input.roleArn != null && { roleArn: input.roleArn }),
3261
- ...(input.solutionVersionArn != null && { solutionVersionArn: input.solutionVersionArn }),
3262
- ...(input.tags != null && { tags: se_Tags(input.tags, context) }),
3263
- };
3264
- };
3265
- const se_CreateBatchSegmentJobRequest = (input, context) => {
3266
- return {
3267
- ...(input.filterArn != null && { filterArn: input.filterArn }),
3268
- ...(input.jobInput != null && { jobInput: se_BatchSegmentJobInput(input.jobInput, context) }),
3269
- ...(input.jobName != null && { jobName: input.jobName }),
3270
- ...(input.jobOutput != null && { jobOutput: se_BatchSegmentJobOutput(input.jobOutput, context) }),
3271
- ...(input.numResults != null && { numResults: input.numResults }),
3272
- ...(input.roleArn != null && { roleArn: input.roleArn }),
3273
- ...(input.solutionVersionArn != null && { solutionVersionArn: input.solutionVersionArn }),
3274
- ...(input.tags != null && { tags: se_Tags(input.tags, context) }),
3275
- };
3276
- };
3277
- const se_CreateCampaignRequest = (input, context) => {
3278
- return {
3279
- ...(input.campaignConfig != null && { campaignConfig: se_CampaignConfig(input.campaignConfig, context) }),
3280
- ...(input.minProvisionedTPS != null && { minProvisionedTPS: input.minProvisionedTPS }),
3281
- ...(input.name != null && { name: input.name }),
3282
- ...(input.solutionVersionArn != null && { solutionVersionArn: input.solutionVersionArn }),
3283
- ...(input.tags != null && { tags: se_Tags(input.tags, context) }),
3284
- };
3285
- };
3286
- const se_CreateDatasetExportJobRequest = (input, context) => {
3287
- return {
3288
- ...(input.datasetArn != null && { datasetArn: input.datasetArn }),
3289
- ...(input.ingestionMode != null && { ingestionMode: input.ingestionMode }),
3290
- ...(input.jobName != null && { jobName: input.jobName }),
3291
- ...(input.jobOutput != null && { jobOutput: se_DatasetExportJobOutput(input.jobOutput, context) }),
3292
- ...(input.roleArn != null && { roleArn: input.roleArn }),
3293
- ...(input.tags != null && { tags: se_Tags(input.tags, context) }),
3294
- };
3295
- };
3296
- const se_CreateDatasetGroupRequest = (input, context) => {
3297
- return {
3298
- ...(input.domain != null && { domain: input.domain }),
3299
- ...(input.kmsKeyArn != null && { kmsKeyArn: input.kmsKeyArn }),
3300
- ...(input.name != null && { name: input.name }),
3301
- ...(input.roleArn != null && { roleArn: input.roleArn }),
3302
- ...(input.tags != null && { tags: se_Tags(input.tags, context) }),
3303
- };
3304
- };
3305
- const se_CreateDatasetImportJobRequest = (input, context) => {
3306
- return {
3307
- ...(input.dataSource != null && { dataSource: se_DataSource(input.dataSource, context) }),
3308
- ...(input.datasetArn != null && { datasetArn: input.datasetArn }),
3309
- ...(input.importMode != null && { importMode: input.importMode }),
3310
- ...(input.jobName != null && { jobName: input.jobName }),
3311
- ...(input.publishAttributionMetricsToS3 != null && {
3312
- publishAttributionMetricsToS3: input.publishAttributionMetricsToS3,
3313
- }),
3314
- ...(input.roleArn != null && { roleArn: input.roleArn }),
3315
- ...(input.tags != null && { tags: se_Tags(input.tags, context) }),
3316
- };
3317
- };
3318
- const se_CreateDatasetRequest = (input, context) => {
3319
- return {
3320
- ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3321
- ...(input.datasetType != null && { datasetType: input.datasetType }),
3322
- ...(input.name != null && { name: input.name }),
3323
- ...(input.schemaArn != null && { schemaArn: input.schemaArn }),
3324
- ...(input.tags != null && { tags: se_Tags(input.tags, context) }),
3325
- };
3326
- };
3327
- const se_CreateEventTrackerRequest = (input, context) => {
3328
- return {
3329
- ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3330
- ...(input.name != null && { name: input.name }),
3331
- ...(input.tags != null && { tags: se_Tags(input.tags, context) }),
3332
- };
3333
- };
3334
- const se_CreateFilterRequest = (input, context) => {
3335
- return {
3336
- ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3337
- ...(input.filterExpression != null && { filterExpression: input.filterExpression }),
3338
- ...(input.name != null && { name: input.name }),
3339
- ...(input.tags != null && { tags: se_Tags(input.tags, context) }),
3340
- };
3341
- };
3342
- const se_CreateMetricAttributionRequest = (input, context) => {
3343
- return {
3344
- ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3345
- ...(input.metrics != null && { metrics: se_MetricAttributes(input.metrics, context) }),
3346
- ...(input.metricsOutputConfig != null && {
3347
- metricsOutputConfig: se_MetricAttributionOutput(input.metricsOutputConfig, context),
3348
- }),
3349
- ...(input.name != null && { name: input.name }),
3350
- };
3351
- };
3352
- const se_CreateRecommenderRequest = (input, context) => {
3353
- return {
3354
- ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3355
- ...(input.name != null && { name: input.name }),
3356
- ...(input.recipeArn != null && { recipeArn: input.recipeArn }),
3357
- ...(input.recommenderConfig != null && {
3358
- recommenderConfig: se_RecommenderConfig(input.recommenderConfig, context),
3359
- }),
3360
- ...(input.tags != null && { tags: se_Tags(input.tags, context) }),
3361
- };
3362
- };
3363
- const se_CreateSchemaRequest = (input, context) => {
3364
- return {
3365
- ...(input.domain != null && { domain: input.domain }),
3366
- ...(input.name != null && { name: input.name }),
3367
- ...(input.schema != null && { schema: input.schema }),
3368
- };
3369
- };
3370
3117
  const se_CreateSolutionRequest = (input, context) => {
3371
- return {
3372
- ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3373
- ...(input.eventType != null && { eventType: input.eventType }),
3374
- ...(input.name != null && { name: input.name }),
3375
- ...(input.performAutoML != null && { performAutoML: input.performAutoML }),
3376
- ...(input.performHPO != null && { performHPO: input.performHPO }),
3377
- ...(input.recipeArn != null && { recipeArn: input.recipeArn }),
3378
- ...(input.solutionConfig != null && { solutionConfig: se_SolutionConfig(input.solutionConfig, context) }),
3379
- ...(input.tags != null && { tags: se_Tags(input.tags, context) }),
3380
- };
3381
- };
3382
- const se_CreateSolutionVersionRequest = (input, context) => {
3383
- return {
3384
- ...(input.name != null && { name: input.name }),
3385
- ...(input.solutionArn != null && { solutionArn: input.solutionArn }),
3386
- ...(input.tags != null && { tags: se_Tags(input.tags, context) }),
3387
- ...(input.trainingMode != null && { trainingMode: input.trainingMode }),
3388
- };
3389
- };
3390
- const se_DatasetExportJobOutput = (input, context) => {
3391
- return {
3392
- ...(input.s3DataDestination != null && { s3DataDestination: se_S3DataConfig(input.s3DataDestination, context) }),
3393
- };
3394
- };
3395
- const se_DataSource = (input, context) => {
3396
- return {
3397
- ...(input.dataLocation != null && { dataLocation: input.dataLocation }),
3398
- };
3399
- };
3400
- const se_DeleteCampaignRequest = (input, context) => {
3401
- return {
3402
- ...(input.campaignArn != null && { campaignArn: input.campaignArn }),
3403
- };
3404
- };
3405
- const se_DeleteDatasetGroupRequest = (input, context) => {
3406
- return {
3407
- ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3408
- };
3409
- };
3410
- const se_DeleteDatasetRequest = (input, context) => {
3411
- return {
3412
- ...(input.datasetArn != null && { datasetArn: input.datasetArn }),
3413
- };
3414
- };
3415
- const se_DeleteEventTrackerRequest = (input, context) => {
3416
- return {
3417
- ...(input.eventTrackerArn != null && { eventTrackerArn: input.eventTrackerArn }),
3418
- };
3419
- };
3420
- const se_DeleteFilterRequest = (input, context) => {
3421
- return {
3422
- ...(input.filterArn != null && { filterArn: input.filterArn }),
3423
- };
3424
- };
3425
- const se_DeleteMetricAttributionRequest = (input, context) => {
3426
- return {
3427
- ...(input.metricAttributionArn != null && { metricAttributionArn: input.metricAttributionArn }),
3428
- };
3429
- };
3430
- const se_DeleteRecommenderRequest = (input, context) => {
3431
- return {
3432
- ...(input.recommenderArn != null && { recommenderArn: input.recommenderArn }),
3433
- };
3434
- };
3435
- const se_DeleteSchemaRequest = (input, context) => {
3436
- return {
3437
- ...(input.schemaArn != null && { schemaArn: input.schemaArn }),
3438
- };
3439
- };
3440
- const se_DeleteSolutionRequest = (input, context) => {
3441
- return {
3442
- ...(input.solutionArn != null && { solutionArn: input.solutionArn }),
3443
- };
3444
- };
3445
- const se_DescribeAlgorithmRequest = (input, context) => {
3446
- return {
3447
- ...(input.algorithmArn != null && { algorithmArn: input.algorithmArn }),
3448
- };
3449
- };
3450
- const se_DescribeBatchInferenceJobRequest = (input, context) => {
3451
- return {
3452
- ...(input.batchInferenceJobArn != null && { batchInferenceJobArn: input.batchInferenceJobArn }),
3453
- };
3454
- };
3455
- const se_DescribeBatchSegmentJobRequest = (input, context) => {
3456
- return {
3457
- ...(input.batchSegmentJobArn != null && { batchSegmentJobArn: input.batchSegmentJobArn }),
3458
- };
3459
- };
3460
- const se_DescribeCampaignRequest = (input, context) => {
3461
- return {
3462
- ...(input.campaignArn != null && { campaignArn: input.campaignArn }),
3463
- };
3464
- };
3465
- const se_DescribeDatasetExportJobRequest = (input, context) => {
3466
- return {
3467
- ...(input.datasetExportJobArn != null && { datasetExportJobArn: input.datasetExportJobArn }),
3468
- };
3469
- };
3470
- const se_DescribeDatasetGroupRequest = (input, context) => {
3471
- return {
3472
- ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3473
- };
3474
- };
3475
- const se_DescribeDatasetImportJobRequest = (input, context) => {
3476
- return {
3477
- ...(input.datasetImportJobArn != null && { datasetImportJobArn: input.datasetImportJobArn }),
3478
- };
3479
- };
3480
- const se_DescribeDatasetRequest = (input, context) => {
3481
- return {
3482
- ...(input.datasetArn != null && { datasetArn: input.datasetArn }),
3483
- };
3484
- };
3485
- const se_DescribeEventTrackerRequest = (input, context) => {
3486
- return {
3487
- ...(input.eventTrackerArn != null && { eventTrackerArn: input.eventTrackerArn }),
3488
- };
3489
- };
3490
- const se_DescribeFeatureTransformationRequest = (input, context) => {
3491
- return {
3492
- ...(input.featureTransformationArn != null && { featureTransformationArn: input.featureTransformationArn }),
3493
- };
3494
- };
3495
- const se_DescribeFilterRequest = (input, context) => {
3496
- return {
3497
- ...(input.filterArn != null && { filterArn: input.filterArn }),
3498
- };
3499
- };
3500
- const se_DescribeMetricAttributionRequest = (input, context) => {
3501
- return {
3502
- ...(input.metricAttributionArn != null && { metricAttributionArn: input.metricAttributionArn }),
3503
- };
3504
- };
3505
- const se_DescribeRecipeRequest = (input, context) => {
3506
- return {
3507
- ...(input.recipeArn != null && { recipeArn: input.recipeArn }),
3508
- };
3509
- };
3510
- const se_DescribeRecommenderRequest = (input, context) => {
3511
- return {
3512
- ...(input.recommenderArn != null && { recommenderArn: input.recommenderArn }),
3513
- };
3514
- };
3515
- const se_DescribeSchemaRequest = (input, context) => {
3516
- return {
3517
- ...(input.schemaArn != null && { schemaArn: input.schemaArn }),
3518
- };
3519
- };
3520
- const se_DescribeSolutionRequest = (input, context) => {
3521
- return {
3522
- ...(input.solutionArn != null && { solutionArn: input.solutionArn }),
3523
- };
3524
- };
3525
- const se_DescribeSolutionVersionRequest = (input, context) => {
3526
- return {
3527
- ...(input.solutionVersionArn != null && { solutionVersionArn: input.solutionVersionArn }),
3528
- };
3529
- };
3530
- const se_FeatureTransformationParameters = (input, context) => {
3531
- return Object.entries(input).reduce((acc, [key, value]) => {
3532
- if (value === null) {
3533
- return acc;
3534
- }
3535
- acc[key] = value;
3536
- return acc;
3537
- }, {});
3538
- };
3539
- const se_GetSolutionMetricsRequest = (input, context) => {
3540
- return {
3541
- ...(input.solutionVersionArn != null && { solutionVersionArn: input.solutionVersionArn }),
3542
- };
3543
- };
3544
- const se_HPOConfig = (input, context) => {
3545
- return {
3546
- ...(input.algorithmHyperParameterRanges != null && {
3547
- algorithmHyperParameterRanges: se_HyperParameterRanges(input.algorithmHyperParameterRanges, context),
3548
- }),
3549
- ...(input.hpoObjective != null && { hpoObjective: se_HPOObjective(input.hpoObjective, context) }),
3550
- ...(input.hpoResourceConfig != null && {
3551
- hpoResourceConfig: se_HPOResourceConfig(input.hpoResourceConfig, context),
3552
- }),
3553
- };
3554
- };
3555
- const se_HPOObjective = (input, context) => {
3556
- return {
3557
- ...(input.metricName != null && { metricName: input.metricName }),
3558
- ...(input.metricRegex != null && { metricRegex: input.metricRegex }),
3559
- ...(input.type != null && { type: input.type }),
3560
- };
3561
- };
3562
- const se_HPOResourceConfig = (input, context) => {
3563
- return {
3564
- ...(input.maxNumberOfTrainingJobs != null && { maxNumberOfTrainingJobs: input.maxNumberOfTrainingJobs }),
3565
- ...(input.maxParallelTrainingJobs != null && { maxParallelTrainingJobs: input.maxParallelTrainingJobs }),
3566
- };
3567
- };
3568
- const se_HyperParameterRanges = (input, context) => {
3569
- return {
3570
- ...(input.categoricalHyperParameterRanges != null && {
3571
- categoricalHyperParameterRanges: se_CategoricalHyperParameterRanges(input.categoricalHyperParameterRanges, context),
3572
- }),
3573
- ...(input.continuousHyperParameterRanges != null && {
3574
- continuousHyperParameterRanges: se_ContinuousHyperParameterRanges(input.continuousHyperParameterRanges, context),
3575
- }),
3576
- ...(input.integerHyperParameterRanges != null && {
3577
- integerHyperParameterRanges: se_IntegerHyperParameterRanges(input.integerHyperParameterRanges, context),
3578
- }),
3579
- };
3580
- };
3581
- const se_HyperParameters = (input, context) => {
3582
- return Object.entries(input).reduce((acc, [key, value]) => {
3583
- if (value === null) {
3584
- return acc;
3585
- }
3586
- acc[key] = value;
3587
- return acc;
3588
- }, {});
3589
- };
3590
- const se_IntegerHyperParameterRange = (input, context) => {
3591
- return {
3592
- ...(input.maxValue != null && { maxValue: input.maxValue }),
3593
- ...(input.minValue != null && { minValue: input.minValue }),
3594
- ...(input.name != null && { name: input.name }),
3595
- };
3596
- };
3597
- const se_IntegerHyperParameterRanges = (input, context) => {
3598
- return input
3599
- .filter((e) => e != null)
3600
- .map((entry) => {
3601
- return se_IntegerHyperParameterRange(entry, context);
3118
+ return (0, smithy_client_1.take)(input, {
3119
+ datasetGroupArn: [],
3120
+ eventType: [],
3121
+ name: [],
3122
+ performAutoML: [],
3123
+ performHPO: [],
3124
+ recipeArn: [],
3125
+ solutionConfig: (_) => se_SolutionConfig(_, context),
3126
+ tags: smithy_client_1._json,
3602
3127
  });
3603
3128
  };
3604
- const se_ListBatchInferenceJobsRequest = (input, context) => {
3605
- return {
3606
- ...(input.maxResults != null && { maxResults: input.maxResults }),
3607
- ...(input.nextToken != null && { nextToken: input.nextToken }),
3608
- ...(input.solutionVersionArn != null && { solutionVersionArn: input.solutionVersionArn }),
3609
- };
3610
- };
3611
- const se_ListBatchSegmentJobsRequest = (input, context) => {
3612
- return {
3613
- ...(input.maxResults != null && { maxResults: input.maxResults }),
3614
- ...(input.nextToken != null && { nextToken: input.nextToken }),
3615
- ...(input.solutionVersionArn != null && { solutionVersionArn: input.solutionVersionArn }),
3616
- };
3617
- };
3618
- const se_ListCampaignsRequest = (input, context) => {
3619
- return {
3620
- ...(input.maxResults != null && { maxResults: input.maxResults }),
3621
- ...(input.nextToken != null && { nextToken: input.nextToken }),
3622
- ...(input.solutionArn != null && { solutionArn: input.solutionArn }),
3623
- };
3624
- };
3625
- const se_ListDatasetExportJobsRequest = (input, context) => {
3626
- return {
3627
- ...(input.datasetArn != null && { datasetArn: input.datasetArn }),
3628
- ...(input.maxResults != null && { maxResults: input.maxResults }),
3629
- ...(input.nextToken != null && { nextToken: input.nextToken }),
3630
- };
3631
- };
3632
- const se_ListDatasetGroupsRequest = (input, context) => {
3633
- return {
3634
- ...(input.maxResults != null && { maxResults: input.maxResults }),
3635
- ...(input.nextToken != null && { nextToken: input.nextToken }),
3636
- };
3637
- };
3638
- const se_ListDatasetImportJobsRequest = (input, context) => {
3639
- return {
3640
- ...(input.datasetArn != null && { datasetArn: input.datasetArn }),
3641
- ...(input.maxResults != null && { maxResults: input.maxResults }),
3642
- ...(input.nextToken != null && { nextToken: input.nextToken }),
3643
- };
3644
- };
3645
- const se_ListDatasetsRequest = (input, context) => {
3646
- return {
3647
- ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3648
- ...(input.maxResults != null && { maxResults: input.maxResults }),
3649
- ...(input.nextToken != null && { nextToken: input.nextToken }),
3650
- };
3651
- };
3652
- const se_ListEventTrackersRequest = (input, context) => {
3653
- return {
3654
- ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3655
- ...(input.maxResults != null && { maxResults: input.maxResults }),
3656
- ...(input.nextToken != null && { nextToken: input.nextToken }),
3657
- };
3658
- };
3659
- const se_ListFiltersRequest = (input, context) => {
3660
- return {
3661
- ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3662
- ...(input.maxResults != null && { maxResults: input.maxResults }),
3663
- ...(input.nextToken != null && { nextToken: input.nextToken }),
3664
- };
3665
- };
3666
- const se_ListMetricAttributionMetricsRequest = (input, context) => {
3667
- return {
3668
- ...(input.maxResults != null && { maxResults: input.maxResults }),
3669
- ...(input.metricAttributionArn != null && { metricAttributionArn: input.metricAttributionArn }),
3670
- ...(input.nextToken != null && { nextToken: input.nextToken }),
3671
- };
3672
- };
3673
- const se_ListMetricAttributionsRequest = (input, context) => {
3674
- return {
3675
- ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3676
- ...(input.maxResults != null && { maxResults: input.maxResults }),
3677
- ...(input.nextToken != null && { nextToken: input.nextToken }),
3678
- };
3679
- };
3680
- const se_ListRecipesRequest = (input, context) => {
3681
- return {
3682
- ...(input.domain != null && { domain: input.domain }),
3683
- ...(input.maxResults != null && { maxResults: input.maxResults }),
3684
- ...(input.nextToken != null && { nextToken: input.nextToken }),
3685
- ...(input.recipeProvider != null && { recipeProvider: input.recipeProvider }),
3686
- };
3687
- };
3688
- const se_ListRecommendersRequest = (input, context) => {
3689
- return {
3690
- ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3691
- ...(input.maxResults != null && { maxResults: input.maxResults }),
3692
- ...(input.nextToken != null && { nextToken: input.nextToken }),
3693
- };
3694
- };
3695
- const se_ListSchemasRequest = (input, context) => {
3696
- return {
3697
- ...(input.maxResults != null && { maxResults: input.maxResults }),
3698
- ...(input.nextToken != null && { nextToken: input.nextToken }),
3699
- };
3700
- };
3701
- const se_ListSolutionsRequest = (input, context) => {
3702
- return {
3703
- ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3704
- ...(input.maxResults != null && { maxResults: input.maxResults }),
3705
- ...(input.nextToken != null && { nextToken: input.nextToken }),
3706
- };
3707
- };
3708
- const se_ListSolutionVersionsRequest = (input, context) => {
3709
- return {
3710
- ...(input.maxResults != null && { maxResults: input.maxResults }),
3711
- ...(input.nextToken != null && { nextToken: input.nextToken }),
3712
- ...(input.solutionArn != null && { solutionArn: input.solutionArn }),
3713
- };
3714
- };
3715
- const se_ListTagsForResourceRequest = (input, context) => {
3716
- return {
3717
- ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
3718
- };
3719
- };
3720
- const se_MetricAttribute = (input, context) => {
3721
- return {
3722
- ...(input.eventType != null && { eventType: input.eventType }),
3723
- ...(input.expression != null && { expression: input.expression }),
3724
- ...(input.metricName != null && { metricName: input.metricName }),
3725
- };
3726
- };
3727
- const se_MetricAttributes = (input, context) => {
3728
- return input
3729
- .filter((e) => e != null)
3730
- .map((entry) => {
3731
- return se_MetricAttribute(entry, context);
3129
+ const se_HPOConfig = (input, context) => {
3130
+ return (0, smithy_client_1.take)(input, {
3131
+ algorithmHyperParameterRanges: (_) => se_HyperParameterRanges(_, context),
3132
+ hpoObjective: smithy_client_1._json,
3133
+ hpoResourceConfig: smithy_client_1._json,
3732
3134
  });
3733
3135
  };
3734
- const se_MetricAttributesNamesList = (input, context) => {
3735
- return input
3736
- .filter((e) => e != null)
3737
- .map((entry) => {
3738
- return entry;
3136
+ const se_HyperParameterRanges = (input, context) => {
3137
+ return (0, smithy_client_1.take)(input, {
3138
+ categoricalHyperParameterRanges: smithy_client_1._json,
3139
+ continuousHyperParameterRanges: (_) => se_ContinuousHyperParameterRanges(_, context),
3140
+ integerHyperParameterRanges: smithy_client_1._json,
3739
3141
  });
3740
3142
  };
3741
- const se_MetricAttributionOutput = (input, context) => {
3742
- return {
3743
- ...(input.roleArn != null && { roleArn: input.roleArn }),
3744
- ...(input.s3DataDestination != null && { s3DataDestination: se_S3DataConfig(input.s3DataDestination, context) }),
3745
- };
3746
- };
3747
- const se_OptimizationObjective = (input, context) => {
3748
- return {
3749
- ...(input.itemAttribute != null && { itemAttribute: input.itemAttribute }),
3750
- ...(input.objectiveSensitivity != null && { objectiveSensitivity: input.objectiveSensitivity }),
3751
- };
3752
- };
3753
- const se_RecommenderConfig = (input, context) => {
3754
- return {
3755
- ...(input.itemExplorationConfig != null && {
3756
- itemExplorationConfig: se_HyperParameters(input.itemExplorationConfig, context),
3757
- }),
3758
- ...(input.minRecommendationRequestsPerSecond != null && {
3759
- minRecommendationRequestsPerSecond: input.minRecommendationRequestsPerSecond,
3760
- }),
3761
- };
3762
- };
3763
- const se_S3DataConfig = (input, context) => {
3764
- return {
3765
- ...(input.kmsKeyArn != null && { kmsKeyArn: input.kmsKeyArn }),
3766
- ...(input.path != null && { path: input.path }),
3767
- };
3768
- };
3769
3143
  const se_SolutionConfig = (input, context) => {
3770
- return {
3771
- ...(input.algorithmHyperParameters != null && {
3772
- algorithmHyperParameters: se_HyperParameters(input.algorithmHyperParameters, context),
3773
- }),
3774
- ...(input.autoMLConfig != null && { autoMLConfig: se_AutoMLConfig(input.autoMLConfig, context) }),
3775
- ...(input.eventValueThreshold != null && { eventValueThreshold: input.eventValueThreshold }),
3776
- ...(input.featureTransformationParameters != null && {
3777
- featureTransformationParameters: se_FeatureTransformationParameters(input.featureTransformationParameters, context),
3778
- }),
3779
- ...(input.hpoConfig != null && { hpoConfig: se_HPOConfig(input.hpoConfig, context) }),
3780
- ...(input.optimizationObjective != null && {
3781
- optimizationObjective: se_OptimizationObjective(input.optimizationObjective, context),
3782
- }),
3783
- };
3784
- };
3785
- const se_StartRecommenderRequest = (input, context) => {
3786
- return {
3787
- ...(input.recommenderArn != null && { recommenderArn: input.recommenderArn }),
3788
- };
3789
- };
3790
- const se_StopRecommenderRequest = (input, context) => {
3791
- return {
3792
- ...(input.recommenderArn != null && { recommenderArn: input.recommenderArn }),
3793
- };
3794
- };
3795
- const se_StopSolutionVersionCreationRequest = (input, context) => {
3796
- return {
3797
- ...(input.solutionVersionArn != null && { solutionVersionArn: input.solutionVersionArn }),
3798
- };
3799
- };
3800
- const se_Tag = (input, context) => {
3801
- return {
3802
- ...(input.tagKey != null && { tagKey: input.tagKey }),
3803
- ...(input.tagValue != null && { tagValue: input.tagValue }),
3804
- };
3805
- };
3806
- const se_TagKeys = (input, context) => {
3807
- return input
3808
- .filter((e) => e != null)
3809
- .map((entry) => {
3810
- return entry;
3144
+ return (0, smithy_client_1.take)(input, {
3145
+ algorithmHyperParameters: smithy_client_1._json,
3146
+ autoMLConfig: smithy_client_1._json,
3147
+ eventValueThreshold: [],
3148
+ featureTransformationParameters: smithy_client_1._json,
3149
+ hpoConfig: (_) => se_HPOConfig(_, context),
3150
+ optimizationObjective: smithy_client_1._json,
3811
3151
  });
3812
3152
  };
3813
- const se_TagResourceRequest = (input, context) => {
3814
- return {
3815
- ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
3816
- ...(input.tags != null && { tags: se_Tags(input.tags, context) }),
3817
- };
3818
- };
3819
- const se_Tags = (input, context) => {
3820
- return input
3821
- .filter((e) => e != null)
3822
- .map((entry) => {
3823
- return se_Tag(entry, context);
3824
- });
3825
- };
3826
- const se_UntagResourceRequest = (input, context) => {
3827
- return {
3828
- ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
3829
- ...(input.tagKeys != null && { tagKeys: se_TagKeys(input.tagKeys, context) }),
3830
- };
3831
- };
3832
- const se_UpdateCampaignRequest = (input, context) => {
3833
- return {
3834
- ...(input.campaignArn != null && { campaignArn: input.campaignArn }),
3835
- ...(input.campaignConfig != null && { campaignConfig: se_CampaignConfig(input.campaignConfig, context) }),
3836
- ...(input.minProvisionedTPS != null && { minProvisionedTPS: input.minProvisionedTPS }),
3837
- ...(input.solutionVersionArn != null && { solutionVersionArn: input.solutionVersionArn }),
3838
- };
3839
- };
3840
- const se_UpdateMetricAttributionRequest = (input, context) => {
3841
- return {
3842
- ...(input.addMetrics != null && { addMetrics: se_MetricAttributes(input.addMetrics, context) }),
3843
- ...(input.metricAttributionArn != null && { metricAttributionArn: input.metricAttributionArn }),
3844
- ...(input.metricsOutputConfig != null && {
3845
- metricsOutputConfig: se_MetricAttributionOutput(input.metricsOutputConfig, context),
3846
- }),
3847
- ...(input.removeMetrics != null && { removeMetrics: se_MetricAttributesNamesList(input.removeMetrics, context) }),
3848
- };
3849
- };
3850
- const se_UpdateRecommenderRequest = (input, context) => {
3851
- return {
3852
- ...(input.recommenderArn != null && { recommenderArn: input.recommenderArn }),
3853
- ...(input.recommenderConfig != null && {
3854
- recommenderConfig: se_RecommenderConfig(input.recommenderConfig, context),
3855
- }),
3856
- };
3857
- };
3858
3153
  const de_Algorithm = (output, context) => {
3859
- return {
3860
- algorithmArn: (0, smithy_client_1.expectString)(output.algorithmArn),
3861
- algorithmImage: output.algorithmImage != null ? de_AlgorithmImage(output.algorithmImage, context) : undefined,
3862
- creationDateTime: output.creationDateTime != null
3863
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
3864
- : undefined,
3865
- defaultHyperParameterRanges: output.defaultHyperParameterRanges != null
3866
- ? de_DefaultHyperParameterRanges(output.defaultHyperParameterRanges, context)
3867
- : undefined,
3868
- defaultHyperParameters: output.defaultHyperParameters != null ? de_HyperParameters(output.defaultHyperParameters, context) : undefined,
3869
- defaultResourceConfig: output.defaultResourceConfig != null ? de_ResourceConfig(output.defaultResourceConfig, context) : undefined,
3870
- lastUpdatedDateTime: output.lastUpdatedDateTime != null
3871
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
3872
- : undefined,
3873
- name: (0, smithy_client_1.expectString)(output.name),
3874
- roleArn: (0, smithy_client_1.expectString)(output.roleArn),
3875
- trainingInputMode: (0, smithy_client_1.expectString)(output.trainingInputMode),
3876
- };
3877
- };
3878
- const de_AlgorithmImage = (output, context) => {
3879
- return {
3880
- dockerURI: (0, smithy_client_1.expectString)(output.dockerURI),
3881
- name: (0, smithy_client_1.expectString)(output.name),
3882
- };
3883
- };
3884
- const de_ArnList = (output, context) => {
3885
- const retVal = (output || [])
3886
- .filter((e) => e != null)
3887
- .map((entry) => {
3888
- if (entry === null) {
3889
- return null;
3890
- }
3891
- return (0, smithy_client_1.expectString)(entry);
3154
+ return (0, smithy_client_1.take)(output, {
3155
+ algorithmArn: smithy_client_1.expectString,
3156
+ algorithmImage: smithy_client_1._json,
3157
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3158
+ defaultHyperParameterRanges: (_) => de_DefaultHyperParameterRanges(_, context),
3159
+ defaultHyperParameters: smithy_client_1._json,
3160
+ defaultResourceConfig: smithy_client_1._json,
3161
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3162
+ name: smithy_client_1.expectString,
3163
+ roleArn: smithy_client_1.expectString,
3164
+ trainingInputMode: smithy_client_1.expectString,
3892
3165
  });
3893
- return retVal;
3894
- };
3895
- const de_AutoMLConfig = (output, context) => {
3896
- return {
3897
- metricName: (0, smithy_client_1.expectString)(output.metricName),
3898
- recipeList: output.recipeList != null ? de_ArnList(output.recipeList, context) : undefined,
3899
- };
3900
- };
3901
- const de_AutoMLResult = (output, context) => {
3902
- return {
3903
- bestRecipeArn: (0, smithy_client_1.expectString)(output.bestRecipeArn),
3904
- };
3905
3166
  };
3906
3167
  const de_BatchInferenceJob = (output, context) => {
3907
- return {
3908
- batchInferenceJobArn: (0, smithy_client_1.expectString)(output.batchInferenceJobArn),
3909
- batchInferenceJobConfig: output.batchInferenceJobConfig != null
3910
- ? de_BatchInferenceJobConfig(output.batchInferenceJobConfig, context)
3911
- : undefined,
3912
- creationDateTime: output.creationDateTime != null
3913
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
3914
- : undefined,
3915
- failureReason: (0, smithy_client_1.expectString)(output.failureReason),
3916
- filterArn: (0, smithy_client_1.expectString)(output.filterArn),
3917
- jobInput: output.jobInput != null ? de_BatchInferenceJobInput(output.jobInput, context) : undefined,
3918
- jobName: (0, smithy_client_1.expectString)(output.jobName),
3919
- jobOutput: output.jobOutput != null ? de_BatchInferenceJobOutput(output.jobOutput, context) : undefined,
3920
- lastUpdatedDateTime: output.lastUpdatedDateTime != null
3921
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
3922
- : undefined,
3923
- numResults: (0, smithy_client_1.expectInt32)(output.numResults),
3924
- roleArn: (0, smithy_client_1.expectString)(output.roleArn),
3925
- solutionVersionArn: (0, smithy_client_1.expectString)(output.solutionVersionArn),
3926
- status: (0, smithy_client_1.expectString)(output.status),
3927
- };
3928
- };
3929
- const de_BatchInferenceJobConfig = (output, context) => {
3930
- return {
3931
- itemExplorationConfig: output.itemExplorationConfig != null ? de_HyperParameters(output.itemExplorationConfig, context) : undefined,
3932
- };
3933
- };
3934
- const de_BatchInferenceJobInput = (output, context) => {
3935
- return {
3936
- s3DataSource: output.s3DataSource != null ? de_S3DataConfig(output.s3DataSource, context) : undefined,
3937
- };
3938
- };
3939
- const de_BatchInferenceJobOutput = (output, context) => {
3940
- return {
3941
- s3DataDestination: output.s3DataDestination != null ? de_S3DataConfig(output.s3DataDestination, context) : undefined,
3942
- };
3168
+ return (0, smithy_client_1.take)(output, {
3169
+ batchInferenceJobArn: smithy_client_1.expectString,
3170
+ batchInferenceJobConfig: smithy_client_1._json,
3171
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3172
+ failureReason: smithy_client_1.expectString,
3173
+ filterArn: smithy_client_1.expectString,
3174
+ jobInput: smithy_client_1._json,
3175
+ jobName: smithy_client_1.expectString,
3176
+ jobOutput: smithy_client_1._json,
3177
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3178
+ numResults: smithy_client_1.expectInt32,
3179
+ roleArn: smithy_client_1.expectString,
3180
+ solutionVersionArn: smithy_client_1.expectString,
3181
+ status: smithy_client_1.expectString,
3182
+ });
3943
3183
  };
3944
3184
  const de_BatchInferenceJobs = (output, context) => {
3945
3185
  const retVal = (output || [])
3946
3186
  .filter((e) => e != null)
3947
3187
  .map((entry) => {
3948
- if (entry === null) {
3949
- return null;
3950
- }
3951
3188
  return de_BatchInferenceJobSummary(entry, context);
3952
3189
  });
3953
3190
  return retVal;
3954
3191
  };
3955
3192
  const de_BatchInferenceJobSummary = (output, context) => {
3956
- return {
3957
- batchInferenceJobArn: (0, smithy_client_1.expectString)(output.batchInferenceJobArn),
3958
- creationDateTime: output.creationDateTime != null
3959
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
3960
- : undefined,
3961
- failureReason: (0, smithy_client_1.expectString)(output.failureReason),
3962
- jobName: (0, smithy_client_1.expectString)(output.jobName),
3963
- lastUpdatedDateTime: output.lastUpdatedDateTime != null
3964
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
3965
- : undefined,
3966
- solutionVersionArn: (0, smithy_client_1.expectString)(output.solutionVersionArn),
3967
- status: (0, smithy_client_1.expectString)(output.status),
3968
- };
3193
+ return (0, smithy_client_1.take)(output, {
3194
+ batchInferenceJobArn: smithy_client_1.expectString,
3195
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3196
+ failureReason: smithy_client_1.expectString,
3197
+ jobName: smithy_client_1.expectString,
3198
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3199
+ solutionVersionArn: smithy_client_1.expectString,
3200
+ status: smithy_client_1.expectString,
3201
+ });
3969
3202
  };
3970
3203
  const de_BatchSegmentJob = (output, context) => {
3971
- return {
3972
- batchSegmentJobArn: (0, smithy_client_1.expectString)(output.batchSegmentJobArn),
3973
- creationDateTime: output.creationDateTime != null
3974
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
3975
- : undefined,
3976
- failureReason: (0, smithy_client_1.expectString)(output.failureReason),
3977
- filterArn: (0, smithy_client_1.expectString)(output.filterArn),
3978
- jobInput: output.jobInput != null ? de_BatchSegmentJobInput(output.jobInput, context) : undefined,
3979
- jobName: (0, smithy_client_1.expectString)(output.jobName),
3980
- jobOutput: output.jobOutput != null ? de_BatchSegmentJobOutput(output.jobOutput, context) : undefined,
3981
- lastUpdatedDateTime: output.lastUpdatedDateTime != null
3982
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
3983
- : undefined,
3984
- numResults: (0, smithy_client_1.expectInt32)(output.numResults),
3985
- roleArn: (0, smithy_client_1.expectString)(output.roleArn),
3986
- solutionVersionArn: (0, smithy_client_1.expectString)(output.solutionVersionArn),
3987
- status: (0, smithy_client_1.expectString)(output.status),
3988
- };
3989
- };
3990
- const de_BatchSegmentJobInput = (output, context) => {
3991
- return {
3992
- s3DataSource: output.s3DataSource != null ? de_S3DataConfig(output.s3DataSource, context) : undefined,
3993
- };
3994
- };
3995
- const de_BatchSegmentJobOutput = (output, context) => {
3996
- return {
3997
- s3DataDestination: output.s3DataDestination != null ? de_S3DataConfig(output.s3DataDestination, context) : undefined,
3998
- };
3204
+ return (0, smithy_client_1.take)(output, {
3205
+ batchSegmentJobArn: smithy_client_1.expectString,
3206
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3207
+ failureReason: smithy_client_1.expectString,
3208
+ filterArn: smithy_client_1.expectString,
3209
+ jobInput: smithy_client_1._json,
3210
+ jobName: smithy_client_1.expectString,
3211
+ jobOutput: smithy_client_1._json,
3212
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3213
+ numResults: smithy_client_1.expectInt32,
3214
+ roleArn: smithy_client_1.expectString,
3215
+ solutionVersionArn: smithy_client_1.expectString,
3216
+ status: smithy_client_1.expectString,
3217
+ });
3999
3218
  };
4000
3219
  const de_BatchSegmentJobs = (output, context) => {
4001
3220
  const retVal = (output || [])
4002
3221
  .filter((e) => e != null)
4003
3222
  .map((entry) => {
4004
- if (entry === null) {
4005
- return null;
4006
- }
4007
3223
  return de_BatchSegmentJobSummary(entry, context);
4008
3224
  });
4009
3225
  return retVal;
4010
3226
  };
4011
3227
  const de_BatchSegmentJobSummary = (output, context) => {
4012
- return {
4013
- batchSegmentJobArn: (0, smithy_client_1.expectString)(output.batchSegmentJobArn),
4014
- creationDateTime: output.creationDateTime != null
4015
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4016
- : undefined,
4017
- failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4018
- jobName: (0, smithy_client_1.expectString)(output.jobName),
4019
- lastUpdatedDateTime: output.lastUpdatedDateTime != null
4020
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4021
- : undefined,
4022
- solutionVersionArn: (0, smithy_client_1.expectString)(output.solutionVersionArn),
4023
- status: (0, smithy_client_1.expectString)(output.status),
4024
- };
3228
+ return (0, smithy_client_1.take)(output, {
3229
+ batchSegmentJobArn: smithy_client_1.expectString,
3230
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3231
+ failureReason: smithy_client_1.expectString,
3232
+ jobName: smithy_client_1.expectString,
3233
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3234
+ solutionVersionArn: smithy_client_1.expectString,
3235
+ status: smithy_client_1.expectString,
3236
+ });
4025
3237
  };
4026
3238
  const de_Campaign = (output, context) => {
4027
- return {
4028
- campaignArn: (0, smithy_client_1.expectString)(output.campaignArn),
4029
- campaignConfig: output.campaignConfig != null ? de_CampaignConfig(output.campaignConfig, context) : undefined,
4030
- creationDateTime: output.creationDateTime != null
4031
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4032
- : undefined,
4033
- failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4034
- lastUpdatedDateTime: output.lastUpdatedDateTime != null
4035
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4036
- : undefined,
4037
- latestCampaignUpdate: output.latestCampaignUpdate != null ? de_CampaignUpdateSummary(output.latestCampaignUpdate, context) : undefined,
4038
- minProvisionedTPS: (0, smithy_client_1.expectInt32)(output.minProvisionedTPS),
4039
- name: (0, smithy_client_1.expectString)(output.name),
4040
- solutionVersionArn: (0, smithy_client_1.expectString)(output.solutionVersionArn),
4041
- status: (0, smithy_client_1.expectString)(output.status),
4042
- };
4043
- };
4044
- const de_CampaignConfig = (output, context) => {
4045
- return {
4046
- itemExplorationConfig: output.itemExplorationConfig != null ? de_HyperParameters(output.itemExplorationConfig, context) : undefined,
4047
- };
3239
+ return (0, smithy_client_1.take)(output, {
3240
+ campaignArn: smithy_client_1.expectString,
3241
+ campaignConfig: smithy_client_1._json,
3242
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3243
+ failureReason: smithy_client_1.expectString,
3244
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3245
+ latestCampaignUpdate: (_) => de_CampaignUpdateSummary(_, context),
3246
+ minProvisionedTPS: smithy_client_1.expectInt32,
3247
+ name: smithy_client_1.expectString,
3248
+ solutionVersionArn: smithy_client_1.expectString,
3249
+ status: smithy_client_1.expectString,
3250
+ });
4048
3251
  };
4049
3252
  const de_Campaigns = (output, context) => {
4050
3253
  const retVal = (output || [])
4051
3254
  .filter((e) => e != null)
4052
3255
  .map((entry) => {
4053
- if (entry === null) {
4054
- return null;
4055
- }
4056
3256
  return de_CampaignSummary(entry, context);
4057
3257
  });
4058
3258
  return retVal;
4059
3259
  };
4060
3260
  const de_CampaignSummary = (output, context) => {
4061
- return {
4062
- campaignArn: (0, smithy_client_1.expectString)(output.campaignArn),
4063
- creationDateTime: output.creationDateTime != null
4064
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4065
- : undefined,
4066
- failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4067
- lastUpdatedDateTime: output.lastUpdatedDateTime != null
4068
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4069
- : undefined,
4070
- name: (0, smithy_client_1.expectString)(output.name),
4071
- status: (0, smithy_client_1.expectString)(output.status),
4072
- };
4073
- };
4074
- const de_CampaignUpdateSummary = (output, context) => {
4075
- return {
4076
- campaignConfig: output.campaignConfig != null ? de_CampaignConfig(output.campaignConfig, context) : undefined,
4077
- creationDateTime: output.creationDateTime != null
4078
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4079
- : undefined,
4080
- failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4081
- lastUpdatedDateTime: output.lastUpdatedDateTime != null
4082
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4083
- : undefined,
4084
- minProvisionedTPS: (0, smithy_client_1.expectInt32)(output.minProvisionedTPS),
4085
- solutionVersionArn: (0, smithy_client_1.expectString)(output.solutionVersionArn),
4086
- status: (0, smithy_client_1.expectString)(output.status),
4087
- };
4088
- };
4089
- const de_CategoricalHyperParameterRange = (output, context) => {
4090
- return {
4091
- name: (0, smithy_client_1.expectString)(output.name),
4092
- values: output.values != null ? de_CategoricalValues(output.values, context) : undefined,
4093
- };
4094
- };
4095
- const de_CategoricalHyperParameterRanges = (output, context) => {
4096
- const retVal = (output || [])
4097
- .filter((e) => e != null)
4098
- .map((entry) => {
4099
- if (entry === null) {
4100
- return null;
4101
- }
4102
- return de_CategoricalHyperParameterRange(entry, context);
3261
+ return (0, smithy_client_1.take)(output, {
3262
+ campaignArn: smithy_client_1.expectString,
3263
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3264
+ failureReason: smithy_client_1.expectString,
3265
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3266
+ name: smithy_client_1.expectString,
3267
+ status: smithy_client_1.expectString,
4103
3268
  });
4104
- return retVal;
4105
3269
  };
4106
- const de_CategoricalValues = (output, context) => {
4107
- const retVal = (output || [])
4108
- .filter((e) => e != null)
4109
- .map((entry) => {
4110
- if (entry === null) {
4111
- return null;
4112
- }
4113
- return (0, smithy_client_1.expectString)(entry);
3270
+ const de_CampaignUpdateSummary = (output, context) => {
3271
+ return (0, smithy_client_1.take)(output, {
3272
+ campaignConfig: smithy_client_1._json,
3273
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3274
+ failureReason: smithy_client_1.expectString,
3275
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3276
+ minProvisionedTPS: smithy_client_1.expectInt32,
3277
+ solutionVersionArn: smithy_client_1.expectString,
3278
+ status: smithy_client_1.expectString,
4114
3279
  });
4115
- return retVal;
4116
3280
  };
4117
3281
  const de_ContinuousHyperParameterRange = (output, context) => {
4118
- return {
4119
- maxValue: (0, smithy_client_1.limitedParseDouble)(output.maxValue),
4120
- minValue: (0, smithy_client_1.limitedParseDouble)(output.minValue),
4121
- name: (0, smithy_client_1.expectString)(output.name),
4122
- };
3282
+ return (0, smithy_client_1.take)(output, {
3283
+ maxValue: smithy_client_1.limitedParseDouble,
3284
+ minValue: smithy_client_1.limitedParseDouble,
3285
+ name: smithy_client_1.expectString,
3286
+ });
4123
3287
  };
4124
3288
  const de_ContinuousHyperParameterRanges = (output, context) => {
4125
3289
  const retVal = (output || [])
4126
3290
  .filter((e) => e != null)
4127
3291
  .map((entry) => {
4128
- if (entry === null) {
4129
- return null;
4130
- }
4131
3292
  return de_ContinuousHyperParameterRange(entry, context);
4132
3293
  });
4133
3294
  return retVal;
4134
3295
  };
4135
- const de_CreateBatchInferenceJobResponse = (output, context) => {
4136
- return {
4137
- batchInferenceJobArn: (0, smithy_client_1.expectString)(output.batchInferenceJobArn),
4138
- };
4139
- };
4140
- const de_CreateBatchSegmentJobResponse = (output, context) => {
4141
- return {
4142
- batchSegmentJobArn: (0, smithy_client_1.expectString)(output.batchSegmentJobArn),
4143
- };
4144
- };
4145
- const de_CreateCampaignResponse = (output, context) => {
4146
- return {
4147
- campaignArn: (0, smithy_client_1.expectString)(output.campaignArn),
4148
- };
4149
- };
4150
- const de_CreateDatasetExportJobResponse = (output, context) => {
4151
- return {
4152
- datasetExportJobArn: (0, smithy_client_1.expectString)(output.datasetExportJobArn),
4153
- };
4154
- };
4155
- const de_CreateDatasetGroupResponse = (output, context) => {
4156
- return {
4157
- datasetGroupArn: (0, smithy_client_1.expectString)(output.datasetGroupArn),
4158
- domain: (0, smithy_client_1.expectString)(output.domain),
4159
- };
4160
- };
4161
- const de_CreateDatasetImportJobResponse = (output, context) => {
4162
- return {
4163
- datasetImportJobArn: (0, smithy_client_1.expectString)(output.datasetImportJobArn),
4164
- };
4165
- };
4166
- const de_CreateDatasetResponse = (output, context) => {
4167
- return {
4168
- datasetArn: (0, smithy_client_1.expectString)(output.datasetArn),
4169
- };
4170
- };
4171
- const de_CreateEventTrackerResponse = (output, context) => {
4172
- return {
4173
- eventTrackerArn: (0, smithy_client_1.expectString)(output.eventTrackerArn),
4174
- trackingId: (0, smithy_client_1.expectString)(output.trackingId),
4175
- };
4176
- };
4177
- const de_CreateFilterResponse = (output, context) => {
4178
- return {
4179
- filterArn: (0, smithy_client_1.expectString)(output.filterArn),
4180
- };
4181
- };
4182
- const de_CreateMetricAttributionResponse = (output, context) => {
4183
- return {
4184
- metricAttributionArn: (0, smithy_client_1.expectString)(output.metricAttributionArn),
4185
- };
4186
- };
4187
- const de_CreateRecommenderResponse = (output, context) => {
4188
- return {
4189
- recommenderArn: (0, smithy_client_1.expectString)(output.recommenderArn),
4190
- };
4191
- };
4192
- const de_CreateSchemaResponse = (output, context) => {
4193
- return {
4194
- schemaArn: (0, smithy_client_1.expectString)(output.schemaArn),
4195
- };
4196
- };
4197
- const de_CreateSolutionResponse = (output, context) => {
4198
- return {
4199
- solutionArn: (0, smithy_client_1.expectString)(output.solutionArn),
4200
- };
4201
- };
4202
- const de_CreateSolutionVersionResponse = (output, context) => {
4203
- return {
4204
- solutionVersionArn: (0, smithy_client_1.expectString)(output.solutionVersionArn),
4205
- };
4206
- };
4207
3296
  const de_Dataset = (output, context) => {
4208
- return {
4209
- creationDateTime: output.creationDateTime != null
4210
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4211
- : undefined,
4212
- datasetArn: (0, smithy_client_1.expectString)(output.datasetArn),
4213
- datasetGroupArn: (0, smithy_client_1.expectString)(output.datasetGroupArn),
4214
- datasetType: (0, smithy_client_1.expectString)(output.datasetType),
4215
- lastUpdatedDateTime: output.lastUpdatedDateTime != null
4216
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4217
- : undefined,
4218
- name: (0, smithy_client_1.expectString)(output.name),
4219
- schemaArn: (0, smithy_client_1.expectString)(output.schemaArn),
4220
- status: (0, smithy_client_1.expectString)(output.status),
4221
- };
3297
+ return (0, smithy_client_1.take)(output, {
3298
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3299
+ datasetArn: smithy_client_1.expectString,
3300
+ datasetGroupArn: smithy_client_1.expectString,
3301
+ datasetType: smithy_client_1.expectString,
3302
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3303
+ name: smithy_client_1.expectString,
3304
+ schemaArn: smithy_client_1.expectString,
3305
+ status: smithy_client_1.expectString,
3306
+ });
4222
3307
  };
4223
3308
  const de_DatasetExportJob = (output, context) => {
4224
- return {
4225
- creationDateTime: output.creationDateTime != null
4226
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4227
- : undefined,
4228
- datasetArn: (0, smithy_client_1.expectString)(output.datasetArn),
4229
- datasetExportJobArn: (0, smithy_client_1.expectString)(output.datasetExportJobArn),
4230
- failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4231
- ingestionMode: (0, smithy_client_1.expectString)(output.ingestionMode),
4232
- jobName: (0, smithy_client_1.expectString)(output.jobName),
4233
- jobOutput: output.jobOutput != null ? de_DatasetExportJobOutput(output.jobOutput, context) : undefined,
4234
- lastUpdatedDateTime: output.lastUpdatedDateTime != null
4235
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4236
- : undefined,
4237
- roleArn: (0, smithy_client_1.expectString)(output.roleArn),
4238
- status: (0, smithy_client_1.expectString)(output.status),
4239
- };
4240
- };
4241
- const de_DatasetExportJobOutput = (output, context) => {
4242
- return {
4243
- s3DataDestination: output.s3DataDestination != null ? de_S3DataConfig(output.s3DataDestination, context) : undefined,
4244
- };
3309
+ return (0, smithy_client_1.take)(output, {
3310
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3311
+ datasetArn: smithy_client_1.expectString,
3312
+ datasetExportJobArn: smithy_client_1.expectString,
3313
+ failureReason: smithy_client_1.expectString,
3314
+ ingestionMode: smithy_client_1.expectString,
3315
+ jobName: smithy_client_1.expectString,
3316
+ jobOutput: smithy_client_1._json,
3317
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3318
+ roleArn: smithy_client_1.expectString,
3319
+ status: smithy_client_1.expectString,
3320
+ });
4245
3321
  };
4246
3322
  const de_DatasetExportJobs = (output, context) => {
4247
3323
  const retVal = (output || [])
4248
3324
  .filter((e) => e != null)
4249
3325
  .map((entry) => {
4250
- if (entry === null) {
4251
- return null;
4252
- }
4253
3326
  return de_DatasetExportJobSummary(entry, context);
4254
3327
  });
4255
3328
  return retVal;
4256
3329
  };
4257
3330
  const de_DatasetExportJobSummary = (output, context) => {
4258
- return {
4259
- creationDateTime: output.creationDateTime != null
4260
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4261
- : undefined,
4262
- datasetExportJobArn: (0, smithy_client_1.expectString)(output.datasetExportJobArn),
4263
- failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4264
- jobName: (0, smithy_client_1.expectString)(output.jobName),
4265
- lastUpdatedDateTime: output.lastUpdatedDateTime != null
4266
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4267
- : undefined,
4268
- status: (0, smithy_client_1.expectString)(output.status),
4269
- };
3331
+ return (0, smithy_client_1.take)(output, {
3332
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3333
+ datasetExportJobArn: smithy_client_1.expectString,
3334
+ failureReason: smithy_client_1.expectString,
3335
+ jobName: smithy_client_1.expectString,
3336
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3337
+ status: smithy_client_1.expectString,
3338
+ });
4270
3339
  };
4271
3340
  const de_DatasetGroup = (output, context) => {
4272
- return {
4273
- creationDateTime: output.creationDateTime != null
4274
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4275
- : undefined,
4276
- datasetGroupArn: (0, smithy_client_1.expectString)(output.datasetGroupArn),
4277
- domain: (0, smithy_client_1.expectString)(output.domain),
4278
- failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4279
- kmsKeyArn: (0, smithy_client_1.expectString)(output.kmsKeyArn),
4280
- lastUpdatedDateTime: output.lastUpdatedDateTime != null
4281
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4282
- : undefined,
4283
- name: (0, smithy_client_1.expectString)(output.name),
4284
- roleArn: (0, smithy_client_1.expectString)(output.roleArn),
4285
- status: (0, smithy_client_1.expectString)(output.status),
4286
- };
3341
+ return (0, smithy_client_1.take)(output, {
3342
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3343
+ datasetGroupArn: smithy_client_1.expectString,
3344
+ domain: smithy_client_1.expectString,
3345
+ failureReason: smithy_client_1.expectString,
3346
+ kmsKeyArn: smithy_client_1.expectString,
3347
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3348
+ name: smithy_client_1.expectString,
3349
+ roleArn: smithy_client_1.expectString,
3350
+ status: smithy_client_1.expectString,
3351
+ });
4287
3352
  };
4288
3353
  const de_DatasetGroups = (output, context) => {
4289
3354
  const retVal = (output || [])
4290
3355
  .filter((e) => e != null)
4291
3356
  .map((entry) => {
4292
- if (entry === null) {
4293
- return null;
4294
- }
4295
3357
  return de_DatasetGroupSummary(entry, context);
4296
3358
  });
4297
3359
  return retVal;
4298
3360
  };
4299
3361
  const de_DatasetGroupSummary = (output, context) => {
4300
- return {
4301
- creationDateTime: output.creationDateTime != null
4302
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4303
- : undefined,
4304
- datasetGroupArn: (0, smithy_client_1.expectString)(output.datasetGroupArn),
4305
- domain: (0, smithy_client_1.expectString)(output.domain),
4306
- failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4307
- lastUpdatedDateTime: output.lastUpdatedDateTime != null
4308
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4309
- : undefined,
4310
- name: (0, smithy_client_1.expectString)(output.name),
4311
- status: (0, smithy_client_1.expectString)(output.status),
4312
- };
3362
+ return (0, smithy_client_1.take)(output, {
3363
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3364
+ datasetGroupArn: smithy_client_1.expectString,
3365
+ domain: smithy_client_1.expectString,
3366
+ failureReason: smithy_client_1.expectString,
3367
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3368
+ name: smithy_client_1.expectString,
3369
+ status: smithy_client_1.expectString,
3370
+ });
4313
3371
  };
4314
3372
  const de_DatasetImportJob = (output, context) => {
4315
- return {
4316
- creationDateTime: output.creationDateTime != null
4317
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4318
- : undefined,
4319
- dataSource: output.dataSource != null ? de_DataSource(output.dataSource, context) : undefined,
4320
- datasetArn: (0, smithy_client_1.expectString)(output.datasetArn),
4321
- datasetImportJobArn: (0, smithy_client_1.expectString)(output.datasetImportJobArn),
4322
- failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4323
- importMode: (0, smithy_client_1.expectString)(output.importMode),
4324
- jobName: (0, smithy_client_1.expectString)(output.jobName),
4325
- lastUpdatedDateTime: output.lastUpdatedDateTime != null
4326
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4327
- : undefined,
4328
- publishAttributionMetricsToS3: (0, smithy_client_1.expectBoolean)(output.publishAttributionMetricsToS3),
4329
- roleArn: (0, smithy_client_1.expectString)(output.roleArn),
4330
- status: (0, smithy_client_1.expectString)(output.status),
4331
- };
3373
+ return (0, smithy_client_1.take)(output, {
3374
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3375
+ dataSource: smithy_client_1._json,
3376
+ datasetArn: smithy_client_1.expectString,
3377
+ datasetImportJobArn: smithy_client_1.expectString,
3378
+ failureReason: smithy_client_1.expectString,
3379
+ importMode: smithy_client_1.expectString,
3380
+ jobName: smithy_client_1.expectString,
3381
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3382
+ publishAttributionMetricsToS3: smithy_client_1.expectBoolean,
3383
+ roleArn: smithy_client_1.expectString,
3384
+ status: smithy_client_1.expectString,
3385
+ });
4332
3386
  };
4333
3387
  const de_DatasetImportJobs = (output, context) => {
4334
3388
  const retVal = (output || [])
4335
3389
  .filter((e) => e != null)
4336
3390
  .map((entry) => {
4337
- if (entry === null) {
4338
- return null;
4339
- }
4340
3391
  return de_DatasetImportJobSummary(entry, context);
4341
3392
  });
4342
3393
  return retVal;
4343
3394
  };
4344
3395
  const de_DatasetImportJobSummary = (output, context) => {
4345
- return {
4346
- creationDateTime: output.creationDateTime != null
4347
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4348
- : undefined,
4349
- datasetImportJobArn: (0, smithy_client_1.expectString)(output.datasetImportJobArn),
4350
- failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4351
- importMode: (0, smithy_client_1.expectString)(output.importMode),
4352
- jobName: (0, smithy_client_1.expectString)(output.jobName),
4353
- lastUpdatedDateTime: output.lastUpdatedDateTime != null
4354
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4355
- : undefined,
4356
- status: (0, smithy_client_1.expectString)(output.status),
4357
- };
3396
+ return (0, smithy_client_1.take)(output, {
3397
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3398
+ datasetImportJobArn: smithy_client_1.expectString,
3399
+ failureReason: smithy_client_1.expectString,
3400
+ importMode: smithy_client_1.expectString,
3401
+ jobName: smithy_client_1.expectString,
3402
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3403
+ status: smithy_client_1.expectString,
3404
+ });
4358
3405
  };
4359
3406
  const de_Datasets = (output, context) => {
4360
3407
  const retVal = (output || [])
4361
3408
  .filter((e) => e != null)
4362
3409
  .map((entry) => {
4363
- if (entry === null) {
4364
- return null;
4365
- }
4366
3410
  return de_DatasetSummary(entry, context);
4367
3411
  });
4368
3412
  return retVal;
4369
3413
  };
4370
3414
  const de_DatasetSchema = (output, context) => {
4371
- return {
4372
- creationDateTime: output.creationDateTime != null
4373
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4374
- : undefined,
4375
- domain: (0, smithy_client_1.expectString)(output.domain),
4376
- lastUpdatedDateTime: output.lastUpdatedDateTime != null
4377
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4378
- : undefined,
4379
- name: (0, smithy_client_1.expectString)(output.name),
4380
- schema: (0, smithy_client_1.expectString)(output.schema),
4381
- schemaArn: (0, smithy_client_1.expectString)(output.schemaArn),
4382
- };
3415
+ return (0, smithy_client_1.take)(output, {
3416
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3417
+ domain: smithy_client_1.expectString,
3418
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3419
+ name: smithy_client_1.expectString,
3420
+ schema: smithy_client_1.expectString,
3421
+ schemaArn: smithy_client_1.expectString,
3422
+ });
4383
3423
  };
4384
3424
  const de_DatasetSchemaSummary = (output, context) => {
4385
- return {
4386
- creationDateTime: output.creationDateTime != null
4387
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4388
- : undefined,
4389
- domain: (0, smithy_client_1.expectString)(output.domain),
4390
- lastUpdatedDateTime: output.lastUpdatedDateTime != null
4391
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4392
- : undefined,
4393
- name: (0, smithy_client_1.expectString)(output.name),
4394
- schemaArn: (0, smithy_client_1.expectString)(output.schemaArn),
4395
- };
3425
+ return (0, smithy_client_1.take)(output, {
3426
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3427
+ domain: smithy_client_1.expectString,
3428
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3429
+ name: smithy_client_1.expectString,
3430
+ schemaArn: smithy_client_1.expectString,
3431
+ });
4396
3432
  };
4397
3433
  const de_DatasetSummary = (output, context) => {
4398
- return {
4399
- creationDateTime: output.creationDateTime != null
4400
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4401
- : undefined,
4402
- datasetArn: (0, smithy_client_1.expectString)(output.datasetArn),
4403
- datasetType: (0, smithy_client_1.expectString)(output.datasetType),
4404
- lastUpdatedDateTime: output.lastUpdatedDateTime != null
4405
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4406
- : undefined,
4407
- name: (0, smithy_client_1.expectString)(output.name),
4408
- status: (0, smithy_client_1.expectString)(output.status),
4409
- };
4410
- };
4411
- const de_DataSource = (output, context) => {
4412
- return {
4413
- dataLocation: (0, smithy_client_1.expectString)(output.dataLocation),
4414
- };
4415
- };
4416
- const de_DefaultCategoricalHyperParameterRange = (output, context) => {
4417
- return {
4418
- isTunable: (0, smithy_client_1.expectBoolean)(output.isTunable),
4419
- name: (0, smithy_client_1.expectString)(output.name),
4420
- values: output.values != null ? de_CategoricalValues(output.values, context) : undefined,
4421
- };
4422
- };
4423
- const de_DefaultCategoricalHyperParameterRanges = (output, context) => {
4424
- const retVal = (output || [])
4425
- .filter((e) => e != null)
4426
- .map((entry) => {
4427
- if (entry === null) {
4428
- return null;
4429
- }
4430
- return de_DefaultCategoricalHyperParameterRange(entry, context);
3434
+ return (0, smithy_client_1.take)(output, {
3435
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3436
+ datasetArn: smithy_client_1.expectString,
3437
+ datasetType: smithy_client_1.expectString,
3438
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3439
+ name: smithy_client_1.expectString,
3440
+ status: smithy_client_1.expectString,
4431
3441
  });
4432
- return retVal;
4433
3442
  };
4434
3443
  const de_DefaultContinuousHyperParameterRange = (output, context) => {
4435
- return {
4436
- isTunable: (0, smithy_client_1.expectBoolean)(output.isTunable),
4437
- maxValue: (0, smithy_client_1.limitedParseDouble)(output.maxValue),
4438
- minValue: (0, smithy_client_1.limitedParseDouble)(output.minValue),
4439
- name: (0, smithy_client_1.expectString)(output.name),
4440
- };
3444
+ return (0, smithy_client_1.take)(output, {
3445
+ isTunable: smithy_client_1.expectBoolean,
3446
+ maxValue: smithy_client_1.limitedParseDouble,
3447
+ minValue: smithy_client_1.limitedParseDouble,
3448
+ name: smithy_client_1.expectString,
3449
+ });
4441
3450
  };
4442
3451
  const de_DefaultContinuousHyperParameterRanges = (output, context) => {
4443
3452
  const retVal = (output || [])
4444
3453
  .filter((e) => e != null)
4445
3454
  .map((entry) => {
4446
- if (entry === null) {
4447
- return null;
4448
- }
4449
3455
  return de_DefaultContinuousHyperParameterRange(entry, context);
4450
3456
  });
4451
3457
  return retVal;
4452
3458
  };
4453
3459
  const de_DefaultHyperParameterRanges = (output, context) => {
4454
- return {
4455
- categoricalHyperParameterRanges: output.categoricalHyperParameterRanges != null
4456
- ? de_DefaultCategoricalHyperParameterRanges(output.categoricalHyperParameterRanges, context)
4457
- : undefined,
4458
- continuousHyperParameterRanges: output.continuousHyperParameterRanges != null
4459
- ? de_DefaultContinuousHyperParameterRanges(output.continuousHyperParameterRanges, context)
4460
- : undefined,
4461
- integerHyperParameterRanges: output.integerHyperParameterRanges != null
4462
- ? de_DefaultIntegerHyperParameterRanges(output.integerHyperParameterRanges, context)
4463
- : undefined,
4464
- };
4465
- };
4466
- const de_DefaultIntegerHyperParameterRange = (output, context) => {
4467
- return {
4468
- isTunable: (0, smithy_client_1.expectBoolean)(output.isTunable),
4469
- maxValue: (0, smithy_client_1.expectInt32)(output.maxValue),
4470
- minValue: (0, smithy_client_1.expectInt32)(output.minValue),
4471
- name: (0, smithy_client_1.expectString)(output.name),
4472
- };
4473
- };
4474
- const de_DefaultIntegerHyperParameterRanges = (output, context) => {
4475
- const retVal = (output || [])
4476
- .filter((e) => e != null)
4477
- .map((entry) => {
4478
- if (entry === null) {
4479
- return null;
4480
- }
4481
- return de_DefaultIntegerHyperParameterRange(entry, context);
3460
+ return (0, smithy_client_1.take)(output, {
3461
+ categoricalHyperParameterRanges: smithy_client_1._json,
3462
+ continuousHyperParameterRanges: (_) => de_DefaultContinuousHyperParameterRanges(_, context),
3463
+ integerHyperParameterRanges: smithy_client_1._json,
4482
3464
  });
4483
- return retVal;
4484
3465
  };
4485
3466
  const de_DescribeAlgorithmResponse = (output, context) => {
4486
- return {
4487
- algorithm: output.algorithm != null ? de_Algorithm(output.algorithm, context) : undefined,
4488
- };
3467
+ return (0, smithy_client_1.take)(output, {
3468
+ algorithm: (_) => de_Algorithm(_, context),
3469
+ });
4489
3470
  };
4490
3471
  const de_DescribeBatchInferenceJobResponse = (output, context) => {
4491
- return {
4492
- batchInferenceJob: output.batchInferenceJob != null ? de_BatchInferenceJob(output.batchInferenceJob, context) : undefined,
4493
- };
3472
+ return (0, smithy_client_1.take)(output, {
3473
+ batchInferenceJob: (_) => de_BatchInferenceJob(_, context),
3474
+ });
4494
3475
  };
4495
3476
  const de_DescribeBatchSegmentJobResponse = (output, context) => {
4496
- return {
4497
- batchSegmentJob: output.batchSegmentJob != null ? de_BatchSegmentJob(output.batchSegmentJob, context) : undefined,
4498
- };
3477
+ return (0, smithy_client_1.take)(output, {
3478
+ batchSegmentJob: (_) => de_BatchSegmentJob(_, context),
3479
+ });
4499
3480
  };
4500
3481
  const de_DescribeCampaignResponse = (output, context) => {
4501
- return {
4502
- campaign: output.campaign != null ? de_Campaign(output.campaign, context) : undefined,
4503
- };
3482
+ return (0, smithy_client_1.take)(output, {
3483
+ campaign: (_) => de_Campaign(_, context),
3484
+ });
4504
3485
  };
4505
3486
  const de_DescribeDatasetExportJobResponse = (output, context) => {
4506
- return {
4507
- datasetExportJob: output.datasetExportJob != null ? de_DatasetExportJob(output.datasetExportJob, context) : undefined,
4508
- };
3487
+ return (0, smithy_client_1.take)(output, {
3488
+ datasetExportJob: (_) => de_DatasetExportJob(_, context),
3489
+ });
4509
3490
  };
4510
3491
  const de_DescribeDatasetGroupResponse = (output, context) => {
4511
- return {
4512
- datasetGroup: output.datasetGroup != null ? de_DatasetGroup(output.datasetGroup, context) : undefined,
4513
- };
3492
+ return (0, smithy_client_1.take)(output, {
3493
+ datasetGroup: (_) => de_DatasetGroup(_, context),
3494
+ });
4514
3495
  };
4515
3496
  const de_DescribeDatasetImportJobResponse = (output, context) => {
4516
- return {
4517
- datasetImportJob: output.datasetImportJob != null ? de_DatasetImportJob(output.datasetImportJob, context) : undefined,
4518
- };
3497
+ return (0, smithy_client_1.take)(output, {
3498
+ datasetImportJob: (_) => de_DatasetImportJob(_, context),
3499
+ });
4519
3500
  };
4520
3501
  const de_DescribeDatasetResponse = (output, context) => {
4521
- return {
4522
- dataset: output.dataset != null ? de_Dataset(output.dataset, context) : undefined,
4523
- };
3502
+ return (0, smithy_client_1.take)(output, {
3503
+ dataset: (_) => de_Dataset(_, context),
3504
+ });
4524
3505
  };
4525
3506
  const de_DescribeEventTrackerResponse = (output, context) => {
4526
- return {
4527
- eventTracker: output.eventTracker != null ? de_EventTracker(output.eventTracker, context) : undefined,
4528
- };
3507
+ return (0, smithy_client_1.take)(output, {
3508
+ eventTracker: (_) => de_EventTracker(_, context),
3509
+ });
4529
3510
  };
4530
3511
  const de_DescribeFeatureTransformationResponse = (output, context) => {
4531
- return {
4532
- featureTransformation: output.featureTransformation != null
4533
- ? de_FeatureTransformation(output.featureTransformation, context)
4534
- : undefined,
4535
- };
3512
+ return (0, smithy_client_1.take)(output, {
3513
+ featureTransformation: (_) => de_FeatureTransformation(_, context),
3514
+ });
4536
3515
  };
4537
3516
  const de_DescribeFilterResponse = (output, context) => {
4538
- return {
4539
- filter: output.filter != null ? de_Filter(output.filter, context) : undefined,
4540
- };
3517
+ return (0, smithy_client_1.take)(output, {
3518
+ filter: (_) => de_Filter(_, context),
3519
+ });
4541
3520
  };
4542
3521
  const de_DescribeMetricAttributionResponse = (output, context) => {
4543
- return {
4544
- metricAttribution: output.metricAttribution != null ? de_MetricAttribution(output.metricAttribution, context) : undefined,
4545
- };
3522
+ return (0, smithy_client_1.take)(output, {
3523
+ metricAttribution: (_) => de_MetricAttribution(_, context),
3524
+ });
4546
3525
  };
4547
3526
  const de_DescribeRecipeResponse = (output, context) => {
4548
- return {
4549
- recipe: output.recipe != null ? de_Recipe(output.recipe, context) : undefined,
4550
- };
3527
+ return (0, smithy_client_1.take)(output, {
3528
+ recipe: (_) => de_Recipe(_, context),
3529
+ });
4551
3530
  };
4552
3531
  const de_DescribeRecommenderResponse = (output, context) => {
4553
- return {
4554
- recommender: output.recommender != null ? de_Recommender(output.recommender, context) : undefined,
4555
- };
3532
+ return (0, smithy_client_1.take)(output, {
3533
+ recommender: (_) => de_Recommender(_, context),
3534
+ });
4556
3535
  };
4557
3536
  const de_DescribeSchemaResponse = (output, context) => {
4558
- return {
4559
- schema: output.schema != null ? de_DatasetSchema(output.schema, context) : undefined,
4560
- };
3537
+ return (0, smithy_client_1.take)(output, {
3538
+ schema: (_) => de_DatasetSchema(_, context),
3539
+ });
4561
3540
  };
4562
3541
  const de_DescribeSolutionResponse = (output, context) => {
4563
- return {
4564
- solution: output.solution != null ? de_Solution(output.solution, context) : undefined,
4565
- };
3542
+ return (0, smithy_client_1.take)(output, {
3543
+ solution: (_) => de_Solution(_, context),
3544
+ });
4566
3545
  };
4567
3546
  const de_DescribeSolutionVersionResponse = (output, context) => {
4568
- return {
4569
- solutionVersion: output.solutionVersion != null ? de_SolutionVersion(output.solutionVersion, context) : undefined,
4570
- };
3547
+ return (0, smithy_client_1.take)(output, {
3548
+ solutionVersion: (_) => de_SolutionVersion(_, context),
3549
+ });
4571
3550
  };
4572
3551
  const de_EventTracker = (output, context) => {
4573
- return {
4574
- accountId: (0, smithy_client_1.expectString)(output.accountId),
4575
- creationDateTime: output.creationDateTime != null
4576
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4577
- : undefined,
4578
- datasetGroupArn: (0, smithy_client_1.expectString)(output.datasetGroupArn),
4579
- eventTrackerArn: (0, smithy_client_1.expectString)(output.eventTrackerArn),
4580
- lastUpdatedDateTime: output.lastUpdatedDateTime != null
4581
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4582
- : undefined,
4583
- name: (0, smithy_client_1.expectString)(output.name),
4584
- status: (0, smithy_client_1.expectString)(output.status),
4585
- trackingId: (0, smithy_client_1.expectString)(output.trackingId),
4586
- };
3552
+ return (0, smithy_client_1.take)(output, {
3553
+ accountId: smithy_client_1.expectString,
3554
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3555
+ datasetGroupArn: smithy_client_1.expectString,
3556
+ eventTrackerArn: smithy_client_1.expectString,
3557
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3558
+ name: smithy_client_1.expectString,
3559
+ status: smithy_client_1.expectString,
3560
+ trackingId: smithy_client_1.expectString,
3561
+ });
4587
3562
  };
4588
3563
  const de_EventTrackers = (output, context) => {
4589
3564
  const retVal = (output || [])
4590
3565
  .filter((e) => e != null)
4591
3566
  .map((entry) => {
4592
- if (entry === null) {
4593
- return null;
4594
- }
4595
3567
  return de_EventTrackerSummary(entry, context);
4596
3568
  });
4597
3569
  return retVal;
4598
3570
  };
4599
3571
  const de_EventTrackerSummary = (output, context) => {
4600
- return {
4601
- creationDateTime: output.creationDateTime != null
4602
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4603
- : undefined,
4604
- eventTrackerArn: (0, smithy_client_1.expectString)(output.eventTrackerArn),
4605
- lastUpdatedDateTime: output.lastUpdatedDateTime != null
4606
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4607
- : undefined,
4608
- name: (0, smithy_client_1.expectString)(output.name),
4609
- status: (0, smithy_client_1.expectString)(output.status),
4610
- };
3572
+ return (0, smithy_client_1.take)(output, {
3573
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3574
+ eventTrackerArn: smithy_client_1.expectString,
3575
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3576
+ name: smithy_client_1.expectString,
3577
+ status: smithy_client_1.expectString,
3578
+ });
4611
3579
  };
4612
3580
  const de_FeatureTransformation = (output, context) => {
4613
- return {
4614
- creationDateTime: output.creationDateTime != null
4615
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4616
- : undefined,
4617
- defaultParameters: output.defaultParameters != null ? de_FeaturizationParameters(output.defaultParameters, context) : undefined,
4618
- featureTransformationArn: (0, smithy_client_1.expectString)(output.featureTransformationArn),
4619
- lastUpdatedDateTime: output.lastUpdatedDateTime != null
4620
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4621
- : undefined,
4622
- name: (0, smithy_client_1.expectString)(output.name),
4623
- status: (0, smithy_client_1.expectString)(output.status),
4624
- };
4625
- };
4626
- const de_FeatureTransformationParameters = (output, context) => {
4627
- return Object.entries(output).reduce((acc, [key, value]) => {
4628
- if (value === null) {
4629
- return acc;
4630
- }
4631
- acc[key] = (0, smithy_client_1.expectString)(value);
4632
- return acc;
4633
- }, {});
4634
- };
4635
- const de_FeaturizationParameters = (output, context) => {
4636
- return Object.entries(output).reduce((acc, [key, value]) => {
4637
- if (value === null) {
4638
- return acc;
4639
- }
4640
- acc[key] = (0, smithy_client_1.expectString)(value);
4641
- return acc;
4642
- }, {});
3581
+ return (0, smithy_client_1.take)(output, {
3582
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3583
+ defaultParameters: smithy_client_1._json,
3584
+ featureTransformationArn: smithy_client_1.expectString,
3585
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3586
+ name: smithy_client_1.expectString,
3587
+ status: smithy_client_1.expectString,
3588
+ });
4643
3589
  };
4644
3590
  const de_Filter = (output, context) => {
4645
- return {
4646
- creationDateTime: output.creationDateTime != null
4647
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4648
- : undefined,
4649
- datasetGroupArn: (0, smithy_client_1.expectString)(output.datasetGroupArn),
4650
- failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4651
- filterArn: (0, smithy_client_1.expectString)(output.filterArn),
4652
- filterExpression: (0, smithy_client_1.expectString)(output.filterExpression),
4653
- lastUpdatedDateTime: output.lastUpdatedDateTime != null
4654
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4655
- : undefined,
4656
- name: (0, smithy_client_1.expectString)(output.name),
4657
- status: (0, smithy_client_1.expectString)(output.status),
4658
- };
3591
+ return (0, smithy_client_1.take)(output, {
3592
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3593
+ datasetGroupArn: smithy_client_1.expectString,
3594
+ failureReason: smithy_client_1.expectString,
3595
+ filterArn: smithy_client_1.expectString,
3596
+ filterExpression: smithy_client_1.expectString,
3597
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3598
+ name: smithy_client_1.expectString,
3599
+ status: smithy_client_1.expectString,
3600
+ });
4659
3601
  };
4660
3602
  const de_Filters = (output, context) => {
4661
3603
  const retVal = (output || [])
4662
3604
  .filter((e) => e != null)
4663
3605
  .map((entry) => {
4664
- if (entry === null) {
4665
- return null;
4666
- }
4667
3606
  return de_FilterSummary(entry, context);
4668
3607
  });
4669
3608
  return retVal;
4670
3609
  };
4671
3610
  const de_FilterSummary = (output, context) => {
4672
- return {
4673
- creationDateTime: output.creationDateTime != null
4674
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4675
- : undefined,
4676
- datasetGroupArn: (0, smithy_client_1.expectString)(output.datasetGroupArn),
4677
- failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4678
- filterArn: (0, smithy_client_1.expectString)(output.filterArn),
4679
- lastUpdatedDateTime: output.lastUpdatedDateTime != null
4680
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4681
- : undefined,
4682
- name: (0, smithy_client_1.expectString)(output.name),
4683
- status: (0, smithy_client_1.expectString)(output.status),
4684
- };
3611
+ return (0, smithy_client_1.take)(output, {
3612
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3613
+ datasetGroupArn: smithy_client_1.expectString,
3614
+ failureReason: smithy_client_1.expectString,
3615
+ filterArn: smithy_client_1.expectString,
3616
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3617
+ name: smithy_client_1.expectString,
3618
+ status: smithy_client_1.expectString,
3619
+ });
4685
3620
  };
4686
3621
  const de_GetSolutionMetricsResponse = (output, context) => {
4687
- return {
4688
- metrics: output.metrics != null ? de_Metrics(output.metrics, context) : undefined,
4689
- solutionVersionArn: (0, smithy_client_1.expectString)(output.solutionVersionArn),
4690
- };
3622
+ return (0, smithy_client_1.take)(output, {
3623
+ metrics: (_) => de_Metrics(_, context),
3624
+ solutionVersionArn: smithy_client_1.expectString,
3625
+ });
4691
3626
  };
4692
3627
  const de_HPOConfig = (output, context) => {
4693
- return {
4694
- algorithmHyperParameterRanges: output.algorithmHyperParameterRanges != null
4695
- ? de_HyperParameterRanges(output.algorithmHyperParameterRanges, context)
4696
- : undefined,
4697
- hpoObjective: output.hpoObjective != null ? de_HPOObjective(output.hpoObjective, context) : undefined,
4698
- hpoResourceConfig: output.hpoResourceConfig != null ? de_HPOResourceConfig(output.hpoResourceConfig, context) : undefined,
4699
- };
4700
- };
4701
- const de_HPOObjective = (output, context) => {
4702
- return {
4703
- metricName: (0, smithy_client_1.expectString)(output.metricName),
4704
- metricRegex: (0, smithy_client_1.expectString)(output.metricRegex),
4705
- type: (0, smithy_client_1.expectString)(output.type),
4706
- };
4707
- };
4708
- const de_HPOResourceConfig = (output, context) => {
4709
- return {
4710
- maxNumberOfTrainingJobs: (0, smithy_client_1.expectString)(output.maxNumberOfTrainingJobs),
4711
- maxParallelTrainingJobs: (0, smithy_client_1.expectString)(output.maxParallelTrainingJobs),
4712
- };
3628
+ return (0, smithy_client_1.take)(output, {
3629
+ algorithmHyperParameterRanges: (_) => de_HyperParameterRanges(_, context),
3630
+ hpoObjective: smithy_client_1._json,
3631
+ hpoResourceConfig: smithy_client_1._json,
3632
+ });
4713
3633
  };
4714
3634
  const de_HyperParameterRanges = (output, context) => {
4715
- return {
4716
- categoricalHyperParameterRanges: output.categoricalHyperParameterRanges != null
4717
- ? de_CategoricalHyperParameterRanges(output.categoricalHyperParameterRanges, context)
4718
- : undefined,
4719
- continuousHyperParameterRanges: output.continuousHyperParameterRanges != null
4720
- ? de_ContinuousHyperParameterRanges(output.continuousHyperParameterRanges, context)
4721
- : undefined,
4722
- integerHyperParameterRanges: output.integerHyperParameterRanges != null
4723
- ? de_IntegerHyperParameterRanges(output.integerHyperParameterRanges, context)
4724
- : undefined,
4725
- };
4726
- };
4727
- const de_HyperParameters = (output, context) => {
4728
- return Object.entries(output).reduce((acc, [key, value]) => {
4729
- if (value === null) {
4730
- return acc;
4731
- }
4732
- acc[key] = (0, smithy_client_1.expectString)(value);
4733
- return acc;
4734
- }, {});
4735
- };
4736
- const de_IntegerHyperParameterRange = (output, context) => {
4737
- return {
4738
- maxValue: (0, smithy_client_1.expectInt32)(output.maxValue),
4739
- minValue: (0, smithy_client_1.expectInt32)(output.minValue),
4740
- name: (0, smithy_client_1.expectString)(output.name),
4741
- };
4742
- };
4743
- const de_IntegerHyperParameterRanges = (output, context) => {
4744
- const retVal = (output || [])
4745
- .filter((e) => e != null)
4746
- .map((entry) => {
4747
- if (entry === null) {
4748
- return null;
4749
- }
4750
- return de_IntegerHyperParameterRange(entry, context);
3635
+ return (0, smithy_client_1.take)(output, {
3636
+ categoricalHyperParameterRanges: smithy_client_1._json,
3637
+ continuousHyperParameterRanges: (_) => de_ContinuousHyperParameterRanges(_, context),
3638
+ integerHyperParameterRanges: smithy_client_1._json,
4751
3639
  });
4752
- return retVal;
4753
- };
4754
- const de_InvalidInputException = (output, context) => {
4755
- return {
4756
- message: (0, smithy_client_1.expectString)(output.message),
4757
- };
4758
- };
4759
- const de_InvalidNextTokenException = (output, context) => {
4760
- return {
4761
- message: (0, smithy_client_1.expectString)(output.message),
4762
- };
4763
- };
4764
- const de_LimitExceededException = (output, context) => {
4765
- return {
4766
- message: (0, smithy_client_1.expectString)(output.message),
4767
- };
4768
3640
  };
4769
3641
  const de_ListBatchInferenceJobsResponse = (output, context) => {
4770
- return {
4771
- batchInferenceJobs: output.batchInferenceJobs != null ? de_BatchInferenceJobs(output.batchInferenceJobs, context) : undefined,
4772
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4773
- };
3642
+ return (0, smithy_client_1.take)(output, {
3643
+ batchInferenceJobs: (_) => de_BatchInferenceJobs(_, context),
3644
+ nextToken: smithy_client_1.expectString,
3645
+ });
4774
3646
  };
4775
3647
  const de_ListBatchSegmentJobsResponse = (output, context) => {
4776
- return {
4777
- batchSegmentJobs: output.batchSegmentJobs != null ? de_BatchSegmentJobs(output.batchSegmentJobs, context) : undefined,
4778
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4779
- };
3648
+ return (0, smithy_client_1.take)(output, {
3649
+ batchSegmentJobs: (_) => de_BatchSegmentJobs(_, context),
3650
+ nextToken: smithy_client_1.expectString,
3651
+ });
4780
3652
  };
4781
3653
  const de_ListCampaignsResponse = (output, context) => {
4782
- return {
4783
- campaigns: output.campaigns != null ? de_Campaigns(output.campaigns, context) : undefined,
4784
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4785
- };
3654
+ return (0, smithy_client_1.take)(output, {
3655
+ campaigns: (_) => de_Campaigns(_, context),
3656
+ nextToken: smithy_client_1.expectString,
3657
+ });
4786
3658
  };
4787
3659
  const de_ListDatasetExportJobsResponse = (output, context) => {
4788
- return {
4789
- datasetExportJobs: output.datasetExportJobs != null ? de_DatasetExportJobs(output.datasetExportJobs, context) : undefined,
4790
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4791
- };
3660
+ return (0, smithy_client_1.take)(output, {
3661
+ datasetExportJobs: (_) => de_DatasetExportJobs(_, context),
3662
+ nextToken: smithy_client_1.expectString,
3663
+ });
4792
3664
  };
4793
3665
  const de_ListDatasetGroupsResponse = (output, context) => {
4794
- return {
4795
- datasetGroups: output.datasetGroups != null ? de_DatasetGroups(output.datasetGroups, context) : undefined,
4796
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4797
- };
3666
+ return (0, smithy_client_1.take)(output, {
3667
+ datasetGroups: (_) => de_DatasetGroups(_, context),
3668
+ nextToken: smithy_client_1.expectString,
3669
+ });
4798
3670
  };
4799
3671
  const de_ListDatasetImportJobsResponse = (output, context) => {
4800
- return {
4801
- datasetImportJobs: output.datasetImportJobs != null ? de_DatasetImportJobs(output.datasetImportJobs, context) : undefined,
4802
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4803
- };
3672
+ return (0, smithy_client_1.take)(output, {
3673
+ datasetImportJobs: (_) => de_DatasetImportJobs(_, context),
3674
+ nextToken: smithy_client_1.expectString,
3675
+ });
4804
3676
  };
4805
3677
  const de_ListDatasetsResponse = (output, context) => {
4806
- return {
4807
- datasets: output.datasets != null ? de_Datasets(output.datasets, context) : undefined,
4808
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4809
- };
3678
+ return (0, smithy_client_1.take)(output, {
3679
+ datasets: (_) => de_Datasets(_, context),
3680
+ nextToken: smithy_client_1.expectString,
3681
+ });
4810
3682
  };
4811
3683
  const de_ListEventTrackersResponse = (output, context) => {
4812
- return {
4813
- eventTrackers: output.eventTrackers != null ? de_EventTrackers(output.eventTrackers, context) : undefined,
4814
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4815
- };
3684
+ return (0, smithy_client_1.take)(output, {
3685
+ eventTrackers: (_) => de_EventTrackers(_, context),
3686
+ nextToken: smithy_client_1.expectString,
3687
+ });
4816
3688
  };
4817
3689
  const de_ListFiltersResponse = (output, context) => {
4818
- return {
4819
- Filters: output.Filters != null ? de_Filters(output.Filters, context) : undefined,
4820
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4821
- };
4822
- };
4823
- const de_ListMetricAttributionMetricsResponse = (output, context) => {
4824
- return {
4825
- metrics: output.metrics != null ? de_MetricAttributes(output.metrics, context) : undefined,
4826
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4827
- };
3690
+ return (0, smithy_client_1.take)(output, {
3691
+ Filters: (_) => de_Filters(_, context),
3692
+ nextToken: smithy_client_1.expectString,
3693
+ });
4828
3694
  };
4829
3695
  const de_ListMetricAttributionsResponse = (output, context) => {
4830
- return {
4831
- metricAttributions: output.metricAttributions != null ? de_MetricAttributions(output.metricAttributions, context) : undefined,
4832
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4833
- };
3696
+ return (0, smithy_client_1.take)(output, {
3697
+ metricAttributions: (_) => de_MetricAttributions(_, context),
3698
+ nextToken: smithy_client_1.expectString,
3699
+ });
4834
3700
  };
4835
3701
  const de_ListRecipesResponse = (output, context) => {
4836
- return {
4837
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4838
- recipes: output.recipes != null ? de_Recipes(output.recipes, context) : undefined,
4839
- };
3702
+ return (0, smithy_client_1.take)(output, {
3703
+ nextToken: smithy_client_1.expectString,
3704
+ recipes: (_) => de_Recipes(_, context),
3705
+ });
4840
3706
  };
4841
3707
  const de_ListRecommendersResponse = (output, context) => {
4842
- return {
4843
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4844
- recommenders: output.recommenders != null ? de_Recommenders(output.recommenders, context) : undefined,
4845
- };
3708
+ return (0, smithy_client_1.take)(output, {
3709
+ nextToken: smithy_client_1.expectString,
3710
+ recommenders: (_) => de_Recommenders(_, context),
3711
+ });
4846
3712
  };
4847
3713
  const de_ListSchemasResponse = (output, context) => {
4848
- return {
4849
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4850
- schemas: output.schemas != null ? de_Schemas(output.schemas, context) : undefined,
4851
- };
3714
+ return (0, smithy_client_1.take)(output, {
3715
+ nextToken: smithy_client_1.expectString,
3716
+ schemas: (_) => de_Schemas(_, context),
3717
+ });
4852
3718
  };
4853
3719
  const de_ListSolutionsResponse = (output, context) => {
4854
- return {
4855
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4856
- solutions: output.solutions != null ? de_Solutions(output.solutions, context) : undefined,
4857
- };
3720
+ return (0, smithy_client_1.take)(output, {
3721
+ nextToken: smithy_client_1.expectString,
3722
+ solutions: (_) => de_Solutions(_, context),
3723
+ });
4858
3724
  };
4859
3725
  const de_ListSolutionVersionsResponse = (output, context) => {
4860
- return {
4861
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4862
- solutionVersions: output.solutionVersions != null ? de_SolutionVersions(output.solutionVersions, context) : undefined,
4863
- };
4864
- };
4865
- const de_ListTagsForResourceResponse = (output, context) => {
4866
- return {
4867
- tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
4868
- };
4869
- };
4870
- const de_MetricAttribute = (output, context) => {
4871
- return {
4872
- eventType: (0, smithy_client_1.expectString)(output.eventType),
4873
- expression: (0, smithy_client_1.expectString)(output.expression),
4874
- metricName: (0, smithy_client_1.expectString)(output.metricName),
4875
- };
4876
- };
4877
- const de_MetricAttributes = (output, context) => {
4878
- const retVal = (output || [])
4879
- .filter((e) => e != null)
4880
- .map((entry) => {
4881
- if (entry === null) {
4882
- return null;
4883
- }
4884
- return de_MetricAttribute(entry, context);
3726
+ return (0, smithy_client_1.take)(output, {
3727
+ nextToken: smithy_client_1.expectString,
3728
+ solutionVersions: (_) => de_SolutionVersions(_, context),
4885
3729
  });
4886
- return retVal;
4887
3730
  };
4888
3731
  const de_MetricAttribution = (output, context) => {
4889
- return {
4890
- creationDateTime: output.creationDateTime != null
4891
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4892
- : undefined,
4893
- datasetGroupArn: (0, smithy_client_1.expectString)(output.datasetGroupArn),
4894
- failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4895
- lastUpdatedDateTime: output.lastUpdatedDateTime != null
4896
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4897
- : undefined,
4898
- metricAttributionArn: (0, smithy_client_1.expectString)(output.metricAttributionArn),
4899
- metricsOutputConfig: output.metricsOutputConfig != null ? de_MetricAttributionOutput(output.metricsOutputConfig, context) : undefined,
4900
- name: (0, smithy_client_1.expectString)(output.name),
4901
- status: (0, smithy_client_1.expectString)(output.status),
4902
- };
4903
- };
4904
- const de_MetricAttributionOutput = (output, context) => {
4905
- return {
4906
- roleArn: (0, smithy_client_1.expectString)(output.roleArn),
4907
- s3DataDestination: output.s3DataDestination != null ? de_S3DataConfig(output.s3DataDestination, context) : undefined,
4908
- };
3732
+ return (0, smithy_client_1.take)(output, {
3733
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3734
+ datasetGroupArn: smithy_client_1.expectString,
3735
+ failureReason: smithy_client_1.expectString,
3736
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3737
+ metricAttributionArn: smithy_client_1.expectString,
3738
+ metricsOutputConfig: smithy_client_1._json,
3739
+ name: smithy_client_1.expectString,
3740
+ status: smithy_client_1.expectString,
3741
+ });
4909
3742
  };
4910
3743
  const de_MetricAttributions = (output, context) => {
4911
3744
  const retVal = (output || [])
4912
3745
  .filter((e) => e != null)
4913
3746
  .map((entry) => {
4914
- if (entry === null) {
4915
- return null;
4916
- }
4917
3747
  return de_MetricAttributionSummary(entry, context);
4918
3748
  });
4919
3749
  return retVal;
4920
3750
  };
4921
3751
  const de_MetricAttributionSummary = (output, context) => {
4922
- return {
4923
- creationDateTime: output.creationDateTime != null
4924
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4925
- : undefined,
4926
- failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4927
- lastUpdatedDateTime: output.lastUpdatedDateTime != null
4928
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4929
- : undefined,
4930
- metricAttributionArn: (0, smithy_client_1.expectString)(output.metricAttributionArn),
4931
- name: (0, smithy_client_1.expectString)(output.name),
4932
- status: (0, smithy_client_1.expectString)(output.status),
4933
- };
3752
+ return (0, smithy_client_1.take)(output, {
3753
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3754
+ failureReason: smithy_client_1.expectString,
3755
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3756
+ metricAttributionArn: smithy_client_1.expectString,
3757
+ name: smithy_client_1.expectString,
3758
+ status: smithy_client_1.expectString,
3759
+ });
4934
3760
  };
4935
3761
  const de_Metrics = (output, context) => {
4936
3762
  return Object.entries(output).reduce((acc, [key, value]) => {
@@ -4941,338 +3767,170 @@ const de_Metrics = (output, context) => {
4941
3767
  return acc;
4942
3768
  }, {});
4943
3769
  };
4944
- const de_OptimizationObjective = (output, context) => {
4945
- return {
4946
- itemAttribute: (0, smithy_client_1.expectString)(output.itemAttribute),
4947
- objectiveSensitivity: (0, smithy_client_1.expectString)(output.objectiveSensitivity),
4948
- };
4949
- };
4950
3770
  const de_Recipe = (output, context) => {
4951
- return {
4952
- algorithmArn: (0, smithy_client_1.expectString)(output.algorithmArn),
4953
- creationDateTime: output.creationDateTime != null
4954
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4955
- : undefined,
4956
- description: (0, smithy_client_1.expectString)(output.description),
4957
- featureTransformationArn: (0, smithy_client_1.expectString)(output.featureTransformationArn),
4958
- lastUpdatedDateTime: output.lastUpdatedDateTime != null
4959
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4960
- : undefined,
4961
- name: (0, smithy_client_1.expectString)(output.name),
4962
- recipeArn: (0, smithy_client_1.expectString)(output.recipeArn),
4963
- recipeType: (0, smithy_client_1.expectString)(output.recipeType),
4964
- status: (0, smithy_client_1.expectString)(output.status),
4965
- };
3771
+ return (0, smithy_client_1.take)(output, {
3772
+ algorithmArn: smithy_client_1.expectString,
3773
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3774
+ description: smithy_client_1.expectString,
3775
+ featureTransformationArn: smithy_client_1.expectString,
3776
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3777
+ name: smithy_client_1.expectString,
3778
+ recipeArn: smithy_client_1.expectString,
3779
+ recipeType: smithy_client_1.expectString,
3780
+ status: smithy_client_1.expectString,
3781
+ });
4966
3782
  };
4967
3783
  const de_Recipes = (output, context) => {
4968
3784
  const retVal = (output || [])
4969
3785
  .filter((e) => e != null)
4970
3786
  .map((entry) => {
4971
- if (entry === null) {
4972
- return null;
4973
- }
4974
3787
  return de_RecipeSummary(entry, context);
4975
3788
  });
4976
3789
  return retVal;
4977
3790
  };
4978
3791
  const de_RecipeSummary = (output, context) => {
4979
- return {
4980
- creationDateTime: output.creationDateTime != null
4981
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4982
- : undefined,
4983
- domain: (0, smithy_client_1.expectString)(output.domain),
4984
- lastUpdatedDateTime: output.lastUpdatedDateTime != null
4985
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4986
- : undefined,
4987
- name: (0, smithy_client_1.expectString)(output.name),
4988
- recipeArn: (0, smithy_client_1.expectString)(output.recipeArn),
4989
- status: (0, smithy_client_1.expectString)(output.status),
4990
- };
3792
+ return (0, smithy_client_1.take)(output, {
3793
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3794
+ domain: smithy_client_1.expectString,
3795
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3796
+ name: smithy_client_1.expectString,
3797
+ recipeArn: smithy_client_1.expectString,
3798
+ status: smithy_client_1.expectString,
3799
+ });
4991
3800
  };
4992
3801
  const de_Recommender = (output, context) => {
4993
- return {
4994
- creationDateTime: output.creationDateTime != null
4995
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4996
- : undefined,
4997
- datasetGroupArn: (0, smithy_client_1.expectString)(output.datasetGroupArn),
4998
- failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4999
- lastUpdatedDateTime: output.lastUpdatedDateTime != null
5000
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
5001
- : undefined,
5002
- latestRecommenderUpdate: output.latestRecommenderUpdate != null
5003
- ? de_RecommenderUpdateSummary(output.latestRecommenderUpdate, context)
5004
- : undefined,
5005
- modelMetrics: output.modelMetrics != null ? de_Metrics(output.modelMetrics, context) : undefined,
5006
- name: (0, smithy_client_1.expectString)(output.name),
5007
- recipeArn: (0, smithy_client_1.expectString)(output.recipeArn),
5008
- recommenderArn: (0, smithy_client_1.expectString)(output.recommenderArn),
5009
- recommenderConfig: output.recommenderConfig != null ? de_RecommenderConfig(output.recommenderConfig, context) : undefined,
5010
- status: (0, smithy_client_1.expectString)(output.status),
5011
- };
5012
- };
5013
- const de_RecommenderConfig = (output, context) => {
5014
- return {
5015
- itemExplorationConfig: output.itemExplorationConfig != null ? de_HyperParameters(output.itemExplorationConfig, context) : undefined,
5016
- minRecommendationRequestsPerSecond: (0, smithy_client_1.expectInt32)(output.minRecommendationRequestsPerSecond),
5017
- };
3802
+ return (0, smithy_client_1.take)(output, {
3803
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3804
+ datasetGroupArn: smithy_client_1.expectString,
3805
+ failureReason: smithy_client_1.expectString,
3806
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3807
+ latestRecommenderUpdate: (_) => de_RecommenderUpdateSummary(_, context),
3808
+ modelMetrics: (_) => de_Metrics(_, context),
3809
+ name: smithy_client_1.expectString,
3810
+ recipeArn: smithy_client_1.expectString,
3811
+ recommenderArn: smithy_client_1.expectString,
3812
+ recommenderConfig: smithy_client_1._json,
3813
+ status: smithy_client_1.expectString,
3814
+ });
5018
3815
  };
5019
3816
  const de_Recommenders = (output, context) => {
5020
3817
  const retVal = (output || [])
5021
3818
  .filter((e) => e != null)
5022
3819
  .map((entry) => {
5023
- if (entry === null) {
5024
- return null;
5025
- }
5026
3820
  return de_RecommenderSummary(entry, context);
5027
3821
  });
5028
3822
  return retVal;
5029
3823
  };
5030
3824
  const de_RecommenderSummary = (output, context) => {
5031
- return {
5032
- creationDateTime: output.creationDateTime != null
5033
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
5034
- : undefined,
5035
- datasetGroupArn: (0, smithy_client_1.expectString)(output.datasetGroupArn),
5036
- lastUpdatedDateTime: output.lastUpdatedDateTime != null
5037
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
5038
- : undefined,
5039
- name: (0, smithy_client_1.expectString)(output.name),
5040
- recipeArn: (0, smithy_client_1.expectString)(output.recipeArn),
5041
- recommenderArn: (0, smithy_client_1.expectString)(output.recommenderArn),
5042
- recommenderConfig: output.recommenderConfig != null ? de_RecommenderConfig(output.recommenderConfig, context) : undefined,
5043
- status: (0, smithy_client_1.expectString)(output.status),
5044
- };
3825
+ return (0, smithy_client_1.take)(output, {
3826
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3827
+ datasetGroupArn: smithy_client_1.expectString,
3828
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3829
+ name: smithy_client_1.expectString,
3830
+ recipeArn: smithy_client_1.expectString,
3831
+ recommenderArn: smithy_client_1.expectString,
3832
+ recommenderConfig: smithy_client_1._json,
3833
+ status: smithy_client_1.expectString,
3834
+ });
5045
3835
  };
5046
3836
  const de_RecommenderUpdateSummary = (output, context) => {
5047
- return {
5048
- creationDateTime: output.creationDateTime != null
5049
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
5050
- : undefined,
5051
- failureReason: (0, smithy_client_1.expectString)(output.failureReason),
5052
- lastUpdatedDateTime: output.lastUpdatedDateTime != null
5053
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
5054
- : undefined,
5055
- recommenderConfig: output.recommenderConfig != null ? de_RecommenderConfig(output.recommenderConfig, context) : undefined,
5056
- status: (0, smithy_client_1.expectString)(output.status),
5057
- };
5058
- };
5059
- const de_ResourceAlreadyExistsException = (output, context) => {
5060
- return {
5061
- message: (0, smithy_client_1.expectString)(output.message),
5062
- };
5063
- };
5064
- const de_ResourceConfig = (output, context) => {
5065
- return Object.entries(output).reduce((acc, [key, value]) => {
5066
- if (value === null) {
5067
- return acc;
5068
- }
5069
- acc[key] = (0, smithy_client_1.expectString)(value);
5070
- return acc;
5071
- }, {});
5072
- };
5073
- const de_ResourceInUseException = (output, context) => {
5074
- return {
5075
- message: (0, smithy_client_1.expectString)(output.message),
5076
- };
5077
- };
5078
- const de_ResourceNotFoundException = (output, context) => {
5079
- return {
5080
- message: (0, smithy_client_1.expectString)(output.message),
5081
- };
5082
- };
5083
- const de_S3DataConfig = (output, context) => {
5084
- return {
5085
- kmsKeyArn: (0, smithy_client_1.expectString)(output.kmsKeyArn),
5086
- path: (0, smithy_client_1.expectString)(output.path),
5087
- };
3837
+ return (0, smithy_client_1.take)(output, {
3838
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3839
+ failureReason: smithy_client_1.expectString,
3840
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3841
+ recommenderConfig: smithy_client_1._json,
3842
+ status: smithy_client_1.expectString,
3843
+ });
5088
3844
  };
5089
3845
  const de_Schemas = (output, context) => {
5090
3846
  const retVal = (output || [])
5091
3847
  .filter((e) => e != null)
5092
3848
  .map((entry) => {
5093
- if (entry === null) {
5094
- return null;
5095
- }
5096
3849
  return de_DatasetSchemaSummary(entry, context);
5097
3850
  });
5098
3851
  return retVal;
5099
3852
  };
5100
3853
  const de_Solution = (output, context) => {
5101
- return {
5102
- autoMLResult: output.autoMLResult != null ? de_AutoMLResult(output.autoMLResult, context) : undefined,
5103
- creationDateTime: output.creationDateTime != null
5104
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
5105
- : undefined,
5106
- datasetGroupArn: (0, smithy_client_1.expectString)(output.datasetGroupArn),
5107
- eventType: (0, smithy_client_1.expectString)(output.eventType),
5108
- lastUpdatedDateTime: output.lastUpdatedDateTime != null
5109
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
5110
- : undefined,
5111
- latestSolutionVersion: output.latestSolutionVersion != null
5112
- ? de_SolutionVersionSummary(output.latestSolutionVersion, context)
5113
- : undefined,
5114
- name: (0, smithy_client_1.expectString)(output.name),
5115
- performAutoML: (0, smithy_client_1.expectBoolean)(output.performAutoML),
5116
- performHPO: (0, smithy_client_1.expectBoolean)(output.performHPO),
5117
- recipeArn: (0, smithy_client_1.expectString)(output.recipeArn),
5118
- solutionArn: (0, smithy_client_1.expectString)(output.solutionArn),
5119
- solutionConfig: output.solutionConfig != null ? de_SolutionConfig(output.solutionConfig, context) : undefined,
5120
- status: (0, smithy_client_1.expectString)(output.status),
5121
- };
3854
+ return (0, smithy_client_1.take)(output, {
3855
+ autoMLResult: smithy_client_1._json,
3856
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3857
+ datasetGroupArn: smithy_client_1.expectString,
3858
+ eventType: smithy_client_1.expectString,
3859
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3860
+ latestSolutionVersion: (_) => de_SolutionVersionSummary(_, context),
3861
+ name: smithy_client_1.expectString,
3862
+ performAutoML: smithy_client_1.expectBoolean,
3863
+ performHPO: smithy_client_1.expectBoolean,
3864
+ recipeArn: smithy_client_1.expectString,
3865
+ solutionArn: smithy_client_1.expectString,
3866
+ solutionConfig: (_) => de_SolutionConfig(_, context),
3867
+ status: smithy_client_1.expectString,
3868
+ });
5122
3869
  };
5123
3870
  const de_SolutionConfig = (output, context) => {
5124
- return {
5125
- algorithmHyperParameters: output.algorithmHyperParameters != null
5126
- ? de_HyperParameters(output.algorithmHyperParameters, context)
5127
- : undefined,
5128
- autoMLConfig: output.autoMLConfig != null ? de_AutoMLConfig(output.autoMLConfig, context) : undefined,
5129
- eventValueThreshold: (0, smithy_client_1.expectString)(output.eventValueThreshold),
5130
- featureTransformationParameters: output.featureTransformationParameters != null
5131
- ? de_FeatureTransformationParameters(output.featureTransformationParameters, context)
5132
- : undefined,
5133
- hpoConfig: output.hpoConfig != null ? de_HPOConfig(output.hpoConfig, context) : undefined,
5134
- optimizationObjective: output.optimizationObjective != null
5135
- ? de_OptimizationObjective(output.optimizationObjective, context)
5136
- : undefined,
5137
- };
3871
+ return (0, smithy_client_1.take)(output, {
3872
+ algorithmHyperParameters: smithy_client_1._json,
3873
+ autoMLConfig: smithy_client_1._json,
3874
+ eventValueThreshold: smithy_client_1.expectString,
3875
+ featureTransformationParameters: smithy_client_1._json,
3876
+ hpoConfig: (_) => de_HPOConfig(_, context),
3877
+ optimizationObjective: smithy_client_1._json,
3878
+ });
5138
3879
  };
5139
3880
  const de_Solutions = (output, context) => {
5140
3881
  const retVal = (output || [])
5141
3882
  .filter((e) => e != null)
5142
3883
  .map((entry) => {
5143
- if (entry === null) {
5144
- return null;
5145
- }
5146
3884
  return de_SolutionSummary(entry, context);
5147
3885
  });
5148
3886
  return retVal;
5149
3887
  };
5150
3888
  const de_SolutionSummary = (output, context) => {
5151
- return {
5152
- creationDateTime: output.creationDateTime != null
5153
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
5154
- : undefined,
5155
- lastUpdatedDateTime: output.lastUpdatedDateTime != null
5156
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
5157
- : undefined,
5158
- name: (0, smithy_client_1.expectString)(output.name),
5159
- recipeArn: (0, smithy_client_1.expectString)(output.recipeArn),
5160
- solutionArn: (0, smithy_client_1.expectString)(output.solutionArn),
5161
- status: (0, smithy_client_1.expectString)(output.status),
5162
- };
3889
+ return (0, smithy_client_1.take)(output, {
3890
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3891
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3892
+ name: smithy_client_1.expectString,
3893
+ recipeArn: smithy_client_1.expectString,
3894
+ solutionArn: smithy_client_1.expectString,
3895
+ status: smithy_client_1.expectString,
3896
+ });
5163
3897
  };
5164
3898
  const de_SolutionVersion = (output, context) => {
5165
- return {
5166
- creationDateTime: output.creationDateTime != null
5167
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
5168
- : undefined,
5169
- datasetGroupArn: (0, smithy_client_1.expectString)(output.datasetGroupArn),
5170
- eventType: (0, smithy_client_1.expectString)(output.eventType),
5171
- failureReason: (0, smithy_client_1.expectString)(output.failureReason),
5172
- lastUpdatedDateTime: output.lastUpdatedDateTime != null
5173
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
5174
- : undefined,
5175
- name: (0, smithy_client_1.expectString)(output.name),
5176
- performAutoML: (0, smithy_client_1.expectBoolean)(output.performAutoML),
5177
- performHPO: (0, smithy_client_1.expectBoolean)(output.performHPO),
5178
- recipeArn: (0, smithy_client_1.expectString)(output.recipeArn),
5179
- solutionArn: (0, smithy_client_1.expectString)(output.solutionArn),
5180
- solutionConfig: output.solutionConfig != null ? de_SolutionConfig(output.solutionConfig, context) : undefined,
5181
- solutionVersionArn: (0, smithy_client_1.expectString)(output.solutionVersionArn),
5182
- status: (0, smithy_client_1.expectString)(output.status),
5183
- trainingHours: (0, smithy_client_1.limitedParseDouble)(output.trainingHours),
5184
- trainingMode: (0, smithy_client_1.expectString)(output.trainingMode),
5185
- tunedHPOParams: output.tunedHPOParams != null ? de_TunedHPOParams(output.tunedHPOParams, context) : undefined,
5186
- };
3899
+ return (0, smithy_client_1.take)(output, {
3900
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3901
+ datasetGroupArn: smithy_client_1.expectString,
3902
+ eventType: smithy_client_1.expectString,
3903
+ failureReason: smithy_client_1.expectString,
3904
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3905
+ name: smithy_client_1.expectString,
3906
+ performAutoML: smithy_client_1.expectBoolean,
3907
+ performHPO: smithy_client_1.expectBoolean,
3908
+ recipeArn: smithy_client_1.expectString,
3909
+ solutionArn: smithy_client_1.expectString,
3910
+ solutionConfig: (_) => de_SolutionConfig(_, context),
3911
+ solutionVersionArn: smithy_client_1.expectString,
3912
+ status: smithy_client_1.expectString,
3913
+ trainingHours: smithy_client_1.limitedParseDouble,
3914
+ trainingMode: smithy_client_1.expectString,
3915
+ tunedHPOParams: smithy_client_1._json,
3916
+ });
5187
3917
  };
5188
3918
  const de_SolutionVersions = (output, context) => {
5189
3919
  const retVal = (output || [])
5190
3920
  .filter((e) => e != null)
5191
3921
  .map((entry) => {
5192
- if (entry === null) {
5193
- return null;
5194
- }
5195
3922
  return de_SolutionVersionSummary(entry, context);
5196
3923
  });
5197
3924
  return retVal;
5198
3925
  };
5199
3926
  const de_SolutionVersionSummary = (output, context) => {
5200
- return {
5201
- creationDateTime: output.creationDateTime != null
5202
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
5203
- : undefined,
5204
- failureReason: (0, smithy_client_1.expectString)(output.failureReason),
5205
- lastUpdatedDateTime: output.lastUpdatedDateTime != null
5206
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
5207
- : undefined,
5208
- solutionVersionArn: (0, smithy_client_1.expectString)(output.solutionVersionArn),
5209
- status: (0, smithy_client_1.expectString)(output.status),
5210
- };
5211
- };
5212
- const de_StartRecommenderResponse = (output, context) => {
5213
- return {
5214
- recommenderArn: (0, smithy_client_1.expectString)(output.recommenderArn),
5215
- };
5216
- };
5217
- const de_StopRecommenderResponse = (output, context) => {
5218
- return {
5219
- recommenderArn: (0, smithy_client_1.expectString)(output.recommenderArn),
5220
- };
5221
- };
5222
- const de_Tag = (output, context) => {
5223
- return {
5224
- tagKey: (0, smithy_client_1.expectString)(output.tagKey),
5225
- tagValue: (0, smithy_client_1.expectString)(output.tagValue),
5226
- };
5227
- };
5228
- const de_TagResourceResponse = (output, context) => {
5229
- return {};
5230
- };
5231
- const de_Tags = (output, context) => {
5232
- const retVal = (output || [])
5233
- .filter((e) => e != null)
5234
- .map((entry) => {
5235
- if (entry === null) {
5236
- return null;
5237
- }
5238
- return de_Tag(entry, context);
3927
+ return (0, smithy_client_1.take)(output, {
3928
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3929
+ failureReason: smithy_client_1.expectString,
3930
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3931
+ solutionVersionArn: smithy_client_1.expectString,
3932
+ status: smithy_client_1.expectString,
5239
3933
  });
5240
- return retVal;
5241
- };
5242
- const de_TooManyTagKeysException = (output, context) => {
5243
- return {
5244
- message: (0, smithy_client_1.expectString)(output.message),
5245
- };
5246
- };
5247
- const de_TooManyTagsException = (output, context) => {
5248
- return {
5249
- message: (0, smithy_client_1.expectString)(output.message),
5250
- };
5251
- };
5252
- const de_TunedHPOParams = (output, context) => {
5253
- return {
5254
- algorithmHyperParameters: output.algorithmHyperParameters != null
5255
- ? de_HyperParameters(output.algorithmHyperParameters, context)
5256
- : undefined,
5257
- };
5258
- };
5259
- const de_UntagResourceResponse = (output, context) => {
5260
- return {};
5261
- };
5262
- const de_UpdateCampaignResponse = (output, context) => {
5263
- return {
5264
- campaignArn: (0, smithy_client_1.expectString)(output.campaignArn),
5265
- };
5266
- };
5267
- const de_UpdateMetricAttributionResponse = (output, context) => {
5268
- return {
5269
- metricAttributionArn: (0, smithy_client_1.expectString)(output.metricAttributionArn),
5270
- };
5271
- };
5272
- const de_UpdateRecommenderResponse = (output, context) => {
5273
- return {
5274
- recommenderArn: (0, smithy_client_1.expectString)(output.recommenderArn),
5275
- };
5276
3934
  };
5277
3935
  const deserializeMetadata = (output) => ({
5278
3936
  httpStatusCode: output.statusCode,
@@ -5287,6 +3945,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
5287
3945
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
5288
3946
  };
5289
3947
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
3948
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(PersonalizeServiceException_1.PersonalizeServiceException);
5290
3949
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
5291
3950
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
5292
3951
  const contents = {