@aws-sdk/client-machine-learning 3.312.0 → 3.315.0

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