@aws-sdk/client-lookoutequipment 3.141.0 → 3.150.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_0.js +120 -198
- package/dist-es/protocols/Aws_json1_0.js +193 -199
- package/package.json +11 -6
|
@@ -265,7 +265,6 @@ const deserializeAws_json1_0CreateDatasetCommandError = async (output, context)
|
|
|
265
265
|
...output,
|
|
266
266
|
body: await parseBody(output.body, context),
|
|
267
267
|
};
|
|
268
|
-
let response;
|
|
269
268
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
270
269
|
switch (errorCode) {
|
|
271
270
|
case "AccessDeniedException":
|
|
@@ -288,14 +287,12 @@ const deserializeAws_json1_0CreateDatasetCommandError = async (output, context)
|
|
|
288
287
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
289
288
|
default:
|
|
290
289
|
const parsedBody = parsedOutput.body;
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
$metadata,
|
|
290
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
291
|
+
output,
|
|
292
|
+
parsedBody,
|
|
293
|
+
exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
|
|
294
|
+
errorCode,
|
|
297
295
|
});
|
|
298
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
299
296
|
}
|
|
300
297
|
};
|
|
301
298
|
const deserializeAws_json1_0CreateInferenceSchedulerCommand = async (output, context) => {
|
|
@@ -317,7 +314,6 @@ const deserializeAws_json1_0CreateInferenceSchedulerCommandError = async (output
|
|
|
317
314
|
...output,
|
|
318
315
|
body: await parseBody(output.body, context),
|
|
319
316
|
};
|
|
320
|
-
let response;
|
|
321
317
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
322
318
|
switch (errorCode) {
|
|
323
319
|
case "AccessDeniedException":
|
|
@@ -343,14 +339,12 @@ const deserializeAws_json1_0CreateInferenceSchedulerCommandError = async (output
|
|
|
343
339
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
344
340
|
default:
|
|
345
341
|
const parsedBody = parsedOutput.body;
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
$metadata,
|
|
342
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
343
|
+
output,
|
|
344
|
+
parsedBody,
|
|
345
|
+
exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
|
|
346
|
+
errorCode,
|
|
352
347
|
});
|
|
353
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
354
348
|
}
|
|
355
349
|
};
|
|
356
350
|
const deserializeAws_json1_0CreateModelCommand = async (output, context) => {
|
|
@@ -372,7 +366,6 @@ const deserializeAws_json1_0CreateModelCommandError = async (output, context) =>
|
|
|
372
366
|
...output,
|
|
373
367
|
body: await parseBody(output.body, context),
|
|
374
368
|
};
|
|
375
|
-
let response;
|
|
376
369
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
377
370
|
switch (errorCode) {
|
|
378
371
|
case "AccessDeniedException":
|
|
@@ -398,14 +391,12 @@ const deserializeAws_json1_0CreateModelCommandError = async (output, context) =>
|
|
|
398
391
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
399
392
|
default:
|
|
400
393
|
const parsedBody = parsedOutput.body;
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
$metadata,
|
|
394
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
395
|
+
output,
|
|
396
|
+
parsedBody,
|
|
397
|
+
exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
|
|
398
|
+
errorCode,
|
|
407
399
|
});
|
|
408
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
409
400
|
}
|
|
410
401
|
};
|
|
411
402
|
const deserializeAws_json1_0DeleteDatasetCommand = async (output, context) => {
|
|
@@ -424,7 +415,6 @@ const deserializeAws_json1_0DeleteDatasetCommandError = async (output, context)
|
|
|
424
415
|
...output,
|
|
425
416
|
body: await parseBody(output.body, context),
|
|
426
417
|
};
|
|
427
|
-
let response;
|
|
428
418
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
429
419
|
switch (errorCode) {
|
|
430
420
|
case "AccessDeniedException":
|
|
@@ -444,14 +434,12 @@ const deserializeAws_json1_0DeleteDatasetCommandError = async (output, context)
|
|
|
444
434
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
445
435
|
default:
|
|
446
436
|
const parsedBody = parsedOutput.body;
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
$metadata,
|
|
437
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
438
|
+
output,
|
|
439
|
+
parsedBody,
|
|
440
|
+
exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
|
|
441
|
+
errorCode,
|
|
453
442
|
});
|
|
454
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
455
443
|
}
|
|
456
444
|
};
|
|
457
445
|
const deserializeAws_json1_0DeleteInferenceSchedulerCommand = async (output, context) => {
|
|
@@ -470,7 +458,6 @@ const deserializeAws_json1_0DeleteInferenceSchedulerCommandError = async (output
|
|
|
470
458
|
...output,
|
|
471
459
|
body: await parseBody(output.body, context),
|
|
472
460
|
};
|
|
473
|
-
let response;
|
|
474
461
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
475
462
|
switch (errorCode) {
|
|
476
463
|
case "AccessDeniedException":
|
|
@@ -493,14 +480,12 @@ const deserializeAws_json1_0DeleteInferenceSchedulerCommandError = async (output
|
|
|
493
480
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
494
481
|
default:
|
|
495
482
|
const parsedBody = parsedOutput.body;
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
$metadata,
|
|
483
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
484
|
+
output,
|
|
485
|
+
parsedBody,
|
|
486
|
+
exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
|
|
487
|
+
errorCode,
|
|
502
488
|
});
|
|
503
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
504
489
|
}
|
|
505
490
|
};
|
|
506
491
|
const deserializeAws_json1_0DeleteModelCommand = async (output, context) => {
|
|
@@ -519,7 +504,6 @@ const deserializeAws_json1_0DeleteModelCommandError = async (output, context) =>
|
|
|
519
504
|
...output,
|
|
520
505
|
body: await parseBody(output.body, context),
|
|
521
506
|
};
|
|
522
|
-
let response;
|
|
523
507
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
524
508
|
switch (errorCode) {
|
|
525
509
|
case "AccessDeniedException":
|
|
@@ -539,14 +523,12 @@ const deserializeAws_json1_0DeleteModelCommandError = async (output, context) =>
|
|
|
539
523
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
540
524
|
default:
|
|
541
525
|
const parsedBody = parsedOutput.body;
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
$metadata,
|
|
526
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
527
|
+
output,
|
|
528
|
+
parsedBody,
|
|
529
|
+
exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
|
|
530
|
+
errorCode,
|
|
548
531
|
});
|
|
549
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
550
532
|
}
|
|
551
533
|
};
|
|
552
534
|
const deserializeAws_json1_0DescribeDataIngestionJobCommand = async (output, context) => {
|
|
@@ -568,7 +550,6 @@ const deserializeAws_json1_0DescribeDataIngestionJobCommandError = async (output
|
|
|
568
550
|
...output,
|
|
569
551
|
body: await parseBody(output.body, context),
|
|
570
552
|
};
|
|
571
|
-
let response;
|
|
572
553
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
573
554
|
switch (errorCode) {
|
|
574
555
|
case "AccessDeniedException":
|
|
@@ -588,14 +569,12 @@ const deserializeAws_json1_0DescribeDataIngestionJobCommandError = async (output
|
|
|
588
569
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
589
570
|
default:
|
|
590
571
|
const parsedBody = parsedOutput.body;
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
$metadata,
|
|
572
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
573
|
+
output,
|
|
574
|
+
parsedBody,
|
|
575
|
+
exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
|
|
576
|
+
errorCode,
|
|
597
577
|
});
|
|
598
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
599
578
|
}
|
|
600
579
|
};
|
|
601
580
|
const deserializeAws_json1_0DescribeDatasetCommand = async (output, context) => {
|
|
@@ -617,7 +596,6 @@ const deserializeAws_json1_0DescribeDatasetCommandError = async (output, context
|
|
|
617
596
|
...output,
|
|
618
597
|
body: await parseBody(output.body, context),
|
|
619
598
|
};
|
|
620
|
-
let response;
|
|
621
599
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
622
600
|
switch (errorCode) {
|
|
623
601
|
case "AccessDeniedException":
|
|
@@ -637,14 +615,12 @@ const deserializeAws_json1_0DescribeDatasetCommandError = async (output, context
|
|
|
637
615
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
638
616
|
default:
|
|
639
617
|
const parsedBody = parsedOutput.body;
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
$metadata,
|
|
618
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
619
|
+
output,
|
|
620
|
+
parsedBody,
|
|
621
|
+
exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
|
|
622
|
+
errorCode,
|
|
646
623
|
});
|
|
647
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
648
624
|
}
|
|
649
625
|
};
|
|
650
626
|
const deserializeAws_json1_0DescribeInferenceSchedulerCommand = async (output, context) => {
|
|
@@ -666,7 +642,6 @@ const deserializeAws_json1_0DescribeInferenceSchedulerCommandError = async (outp
|
|
|
666
642
|
...output,
|
|
667
643
|
body: await parseBody(output.body, context),
|
|
668
644
|
};
|
|
669
|
-
let response;
|
|
670
645
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
671
646
|
switch (errorCode) {
|
|
672
647
|
case "AccessDeniedException":
|
|
@@ -686,14 +661,12 @@ const deserializeAws_json1_0DescribeInferenceSchedulerCommandError = async (outp
|
|
|
686
661
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
687
662
|
default:
|
|
688
663
|
const parsedBody = parsedOutput.body;
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
$metadata,
|
|
664
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
665
|
+
output,
|
|
666
|
+
parsedBody,
|
|
667
|
+
exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
|
|
668
|
+
errorCode,
|
|
695
669
|
});
|
|
696
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
697
670
|
}
|
|
698
671
|
};
|
|
699
672
|
const deserializeAws_json1_0DescribeModelCommand = async (output, context) => {
|
|
@@ -715,7 +688,6 @@ const deserializeAws_json1_0DescribeModelCommandError = async (output, context)
|
|
|
715
688
|
...output,
|
|
716
689
|
body: await parseBody(output.body, context),
|
|
717
690
|
};
|
|
718
|
-
let response;
|
|
719
691
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
720
692
|
switch (errorCode) {
|
|
721
693
|
case "AccessDeniedException":
|
|
@@ -735,14 +707,12 @@ const deserializeAws_json1_0DescribeModelCommandError = async (output, context)
|
|
|
735
707
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
736
708
|
default:
|
|
737
709
|
const parsedBody = parsedOutput.body;
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
$metadata,
|
|
710
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
711
|
+
output,
|
|
712
|
+
parsedBody,
|
|
713
|
+
exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
|
|
714
|
+
errorCode,
|
|
744
715
|
});
|
|
745
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
746
716
|
}
|
|
747
717
|
};
|
|
748
718
|
const deserializeAws_json1_0ListDataIngestionJobsCommand = async (output, context) => {
|
|
@@ -764,7 +734,6 @@ const deserializeAws_json1_0ListDataIngestionJobsCommandError = async (output, c
|
|
|
764
734
|
...output,
|
|
765
735
|
body: await parseBody(output.body, context),
|
|
766
736
|
};
|
|
767
|
-
let response;
|
|
768
737
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
769
738
|
switch (errorCode) {
|
|
770
739
|
case "AccessDeniedException":
|
|
@@ -781,14 +750,12 @@ const deserializeAws_json1_0ListDataIngestionJobsCommandError = async (output, c
|
|
|
781
750
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
782
751
|
default:
|
|
783
752
|
const parsedBody = parsedOutput.body;
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
$metadata,
|
|
753
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
754
|
+
output,
|
|
755
|
+
parsedBody,
|
|
756
|
+
exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
|
|
757
|
+
errorCode,
|
|
790
758
|
});
|
|
791
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
792
759
|
}
|
|
793
760
|
};
|
|
794
761
|
const deserializeAws_json1_0ListDatasetsCommand = async (output, context) => {
|
|
@@ -810,7 +777,6 @@ const deserializeAws_json1_0ListDatasetsCommandError = async (output, context) =
|
|
|
810
777
|
...output,
|
|
811
778
|
body: await parseBody(output.body, context),
|
|
812
779
|
};
|
|
813
|
-
let response;
|
|
814
780
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
815
781
|
switch (errorCode) {
|
|
816
782
|
case "AccessDeniedException":
|
|
@@ -827,14 +793,12 @@ const deserializeAws_json1_0ListDatasetsCommandError = async (output, context) =
|
|
|
827
793
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
828
794
|
default:
|
|
829
795
|
const parsedBody = parsedOutput.body;
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
$metadata,
|
|
796
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
797
|
+
output,
|
|
798
|
+
parsedBody,
|
|
799
|
+
exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
|
|
800
|
+
errorCode,
|
|
836
801
|
});
|
|
837
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
838
802
|
}
|
|
839
803
|
};
|
|
840
804
|
const deserializeAws_json1_0ListInferenceEventsCommand = async (output, context) => {
|
|
@@ -856,7 +820,6 @@ const deserializeAws_json1_0ListInferenceEventsCommandError = async (output, con
|
|
|
856
820
|
...output,
|
|
857
821
|
body: await parseBody(output.body, context),
|
|
858
822
|
};
|
|
859
|
-
let response;
|
|
860
823
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
861
824
|
switch (errorCode) {
|
|
862
825
|
case "AccessDeniedException":
|
|
@@ -876,14 +839,12 @@ const deserializeAws_json1_0ListInferenceEventsCommandError = async (output, con
|
|
|
876
839
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
877
840
|
default:
|
|
878
841
|
const parsedBody = parsedOutput.body;
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
$metadata,
|
|
842
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
843
|
+
output,
|
|
844
|
+
parsedBody,
|
|
845
|
+
exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
|
|
846
|
+
errorCode,
|
|
885
847
|
});
|
|
886
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
887
848
|
}
|
|
888
849
|
};
|
|
889
850
|
const deserializeAws_json1_0ListInferenceExecutionsCommand = async (output, context) => {
|
|
@@ -905,7 +866,6 @@ const deserializeAws_json1_0ListInferenceExecutionsCommandError = async (output,
|
|
|
905
866
|
...output,
|
|
906
867
|
body: await parseBody(output.body, context),
|
|
907
868
|
};
|
|
908
|
-
let response;
|
|
909
869
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
910
870
|
switch (errorCode) {
|
|
911
871
|
case "AccessDeniedException":
|
|
@@ -925,14 +885,12 @@ const deserializeAws_json1_0ListInferenceExecutionsCommandError = async (output,
|
|
|
925
885
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
926
886
|
default:
|
|
927
887
|
const parsedBody = parsedOutput.body;
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
$metadata,
|
|
888
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
889
|
+
output,
|
|
890
|
+
parsedBody,
|
|
891
|
+
exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
|
|
892
|
+
errorCode,
|
|
934
893
|
});
|
|
935
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
936
894
|
}
|
|
937
895
|
};
|
|
938
896
|
const deserializeAws_json1_0ListInferenceSchedulersCommand = async (output, context) => {
|
|
@@ -954,7 +912,6 @@ const deserializeAws_json1_0ListInferenceSchedulersCommandError = async (output,
|
|
|
954
912
|
...output,
|
|
955
913
|
body: await parseBody(output.body, context),
|
|
956
914
|
};
|
|
957
|
-
let response;
|
|
958
915
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
959
916
|
switch (errorCode) {
|
|
960
917
|
case "AccessDeniedException":
|
|
@@ -971,14 +928,12 @@ const deserializeAws_json1_0ListInferenceSchedulersCommandError = async (output,
|
|
|
971
928
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
972
929
|
default:
|
|
973
930
|
const parsedBody = parsedOutput.body;
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
$metadata,
|
|
931
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
932
|
+
output,
|
|
933
|
+
parsedBody,
|
|
934
|
+
exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
|
|
935
|
+
errorCode,
|
|
980
936
|
});
|
|
981
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
982
937
|
}
|
|
983
938
|
};
|
|
984
939
|
const deserializeAws_json1_0ListModelsCommand = async (output, context) => {
|
|
@@ -1000,7 +955,6 @@ const deserializeAws_json1_0ListModelsCommandError = async (output, context) =>
|
|
|
1000
955
|
...output,
|
|
1001
956
|
body: await parseBody(output.body, context),
|
|
1002
957
|
};
|
|
1003
|
-
let response;
|
|
1004
958
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1005
959
|
switch (errorCode) {
|
|
1006
960
|
case "AccessDeniedException":
|
|
@@ -1017,14 +971,12 @@ const deserializeAws_json1_0ListModelsCommandError = async (output, context) =>
|
|
|
1017
971
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1018
972
|
default:
|
|
1019
973
|
const parsedBody = parsedOutput.body;
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
$metadata,
|
|
974
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
975
|
+
output,
|
|
976
|
+
parsedBody,
|
|
977
|
+
exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
|
|
978
|
+
errorCode,
|
|
1026
979
|
});
|
|
1027
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1028
980
|
}
|
|
1029
981
|
};
|
|
1030
982
|
const deserializeAws_json1_0ListSensorStatisticsCommand = async (output, context) => {
|
|
@@ -1046,7 +998,6 @@ const deserializeAws_json1_0ListSensorStatisticsCommandError = async (output, co
|
|
|
1046
998
|
...output,
|
|
1047
999
|
body: await parseBody(output.body, context),
|
|
1048
1000
|
};
|
|
1049
|
-
let response;
|
|
1050
1001
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1051
1002
|
switch (errorCode) {
|
|
1052
1003
|
case "AccessDeniedException":
|
|
@@ -1066,14 +1017,12 @@ const deserializeAws_json1_0ListSensorStatisticsCommandError = async (output, co
|
|
|
1066
1017
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1067
1018
|
default:
|
|
1068
1019
|
const parsedBody = parsedOutput.body;
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
$metadata,
|
|
1020
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1021
|
+
output,
|
|
1022
|
+
parsedBody,
|
|
1023
|
+
exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
|
|
1024
|
+
errorCode,
|
|
1075
1025
|
});
|
|
1076
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1077
1026
|
}
|
|
1078
1027
|
};
|
|
1079
1028
|
const deserializeAws_json1_0ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -1095,7 +1044,6 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
1095
1044
|
...output,
|
|
1096
1045
|
body: await parseBody(output.body, context),
|
|
1097
1046
|
};
|
|
1098
|
-
let response;
|
|
1099
1047
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1100
1048
|
switch (errorCode) {
|
|
1101
1049
|
case "AccessDeniedException":
|
|
@@ -1115,14 +1063,12 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
1115
1063
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1116
1064
|
default:
|
|
1117
1065
|
const parsedBody = parsedOutput.body;
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
$metadata,
|
|
1066
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1067
|
+
output,
|
|
1068
|
+
parsedBody,
|
|
1069
|
+
exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
|
|
1070
|
+
errorCode,
|
|
1124
1071
|
});
|
|
1125
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1126
1072
|
}
|
|
1127
1073
|
};
|
|
1128
1074
|
const deserializeAws_json1_0StartDataIngestionJobCommand = async (output, context) => {
|
|
@@ -1144,7 +1090,6 @@ const deserializeAws_json1_0StartDataIngestionJobCommandError = async (output, c
|
|
|
1144
1090
|
...output,
|
|
1145
1091
|
body: await parseBody(output.body, context),
|
|
1146
1092
|
};
|
|
1147
|
-
let response;
|
|
1148
1093
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1149
1094
|
switch (errorCode) {
|
|
1150
1095
|
case "AccessDeniedException":
|
|
@@ -1170,14 +1115,12 @@ const deserializeAws_json1_0StartDataIngestionJobCommandError = async (output, c
|
|
|
1170
1115
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1171
1116
|
default:
|
|
1172
1117
|
const parsedBody = parsedOutput.body;
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
$metadata,
|
|
1118
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1119
|
+
output,
|
|
1120
|
+
parsedBody,
|
|
1121
|
+
exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
|
|
1122
|
+
errorCode,
|
|
1179
1123
|
});
|
|
1180
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1181
1124
|
}
|
|
1182
1125
|
};
|
|
1183
1126
|
const deserializeAws_json1_0StartInferenceSchedulerCommand = async (output, context) => {
|
|
@@ -1199,7 +1142,6 @@ const deserializeAws_json1_0StartInferenceSchedulerCommandError = async (output,
|
|
|
1199
1142
|
...output,
|
|
1200
1143
|
body: await parseBody(output.body, context),
|
|
1201
1144
|
};
|
|
1202
|
-
let response;
|
|
1203
1145
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1204
1146
|
switch (errorCode) {
|
|
1205
1147
|
case "AccessDeniedException":
|
|
@@ -1222,14 +1164,12 @@ const deserializeAws_json1_0StartInferenceSchedulerCommandError = async (output,
|
|
|
1222
1164
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1223
1165
|
default:
|
|
1224
1166
|
const parsedBody = parsedOutput.body;
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
$metadata,
|
|
1167
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1168
|
+
output,
|
|
1169
|
+
parsedBody,
|
|
1170
|
+
exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
|
|
1171
|
+
errorCode,
|
|
1231
1172
|
});
|
|
1232
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1233
1173
|
}
|
|
1234
1174
|
};
|
|
1235
1175
|
const deserializeAws_json1_0StopInferenceSchedulerCommand = async (output, context) => {
|
|
@@ -1251,7 +1191,6 @@ const deserializeAws_json1_0StopInferenceSchedulerCommandError = async (output,
|
|
|
1251
1191
|
...output,
|
|
1252
1192
|
body: await parseBody(output.body, context),
|
|
1253
1193
|
};
|
|
1254
|
-
let response;
|
|
1255
1194
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1256
1195
|
switch (errorCode) {
|
|
1257
1196
|
case "AccessDeniedException":
|
|
@@ -1274,14 +1213,12 @@ const deserializeAws_json1_0StopInferenceSchedulerCommandError = async (output,
|
|
|
1274
1213
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1275
1214
|
default:
|
|
1276
1215
|
const parsedBody = parsedOutput.body;
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
$metadata,
|
|
1216
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1217
|
+
output,
|
|
1218
|
+
parsedBody,
|
|
1219
|
+
exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
|
|
1220
|
+
errorCode,
|
|
1283
1221
|
});
|
|
1284
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1285
1222
|
}
|
|
1286
1223
|
};
|
|
1287
1224
|
const deserializeAws_json1_0TagResourceCommand = async (output, context) => {
|
|
@@ -1303,7 +1240,6 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
1303
1240
|
...output,
|
|
1304
1241
|
body: await parseBody(output.body, context),
|
|
1305
1242
|
};
|
|
1306
|
-
let response;
|
|
1307
1243
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1308
1244
|
switch (errorCode) {
|
|
1309
1245
|
case "AccessDeniedException":
|
|
@@ -1326,14 +1262,12 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
1326
1262
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1327
1263
|
default:
|
|
1328
1264
|
const parsedBody = parsedOutput.body;
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
$metadata,
|
|
1265
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1266
|
+
output,
|
|
1267
|
+
parsedBody,
|
|
1268
|
+
exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
|
|
1269
|
+
errorCode,
|
|
1335
1270
|
});
|
|
1336
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1337
1271
|
}
|
|
1338
1272
|
};
|
|
1339
1273
|
const deserializeAws_json1_0UntagResourceCommand = async (output, context) => {
|
|
@@ -1355,7 +1289,6 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
1355
1289
|
...output,
|
|
1356
1290
|
body: await parseBody(output.body, context),
|
|
1357
1291
|
};
|
|
1358
|
-
let response;
|
|
1359
1292
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1360
1293
|
switch (errorCode) {
|
|
1361
1294
|
case "AccessDeniedException":
|
|
@@ -1375,14 +1308,12 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
1375
1308
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1376
1309
|
default:
|
|
1377
1310
|
const parsedBody = parsedOutput.body;
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
$metadata,
|
|
1311
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1312
|
+
output,
|
|
1313
|
+
parsedBody,
|
|
1314
|
+
exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
|
|
1315
|
+
errorCode,
|
|
1384
1316
|
});
|
|
1385
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1386
1317
|
}
|
|
1387
1318
|
};
|
|
1388
1319
|
const deserializeAws_json1_0UpdateInferenceSchedulerCommand = async (output, context) => {
|
|
@@ -1401,7 +1332,6 @@ const deserializeAws_json1_0UpdateInferenceSchedulerCommandError = async (output
|
|
|
1401
1332
|
...output,
|
|
1402
1333
|
body: await parseBody(output.body, context),
|
|
1403
1334
|
};
|
|
1404
|
-
let response;
|
|
1405
1335
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1406
1336
|
switch (errorCode) {
|
|
1407
1337
|
case "AccessDeniedException":
|
|
@@ -1424,14 +1354,12 @@ const deserializeAws_json1_0UpdateInferenceSchedulerCommandError = async (output
|
|
|
1424
1354
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1425
1355
|
default:
|
|
1426
1356
|
const parsedBody = parsedOutput.body;
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
$metadata,
|
|
1357
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1358
|
+
output,
|
|
1359
|
+
parsedBody,
|
|
1360
|
+
exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
|
|
1361
|
+
errorCode,
|
|
1433
1362
|
});
|
|
1434
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1435
1363
|
}
|
|
1436
1364
|
};
|
|
1437
1365
|
const deserializeAws_json1_0AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -1771,9 +1699,6 @@ const serializeAws_json1_0TagKeyList = (input, context) => {
|
|
|
1771
1699
|
return input
|
|
1772
1700
|
.filter((e) => e != null)
|
|
1773
1701
|
.map((entry) => {
|
|
1774
|
-
if (entry === null) {
|
|
1775
|
-
return null;
|
|
1776
|
-
}
|
|
1777
1702
|
return entry;
|
|
1778
1703
|
});
|
|
1779
1704
|
};
|
|
@@ -1781,9 +1706,6 @@ const serializeAws_json1_0TagList = (input, context) => {
|
|
|
1781
1706
|
return input
|
|
1782
1707
|
.filter((e) => e != null)
|
|
1783
1708
|
.map((entry) => {
|
|
1784
|
-
if (entry === null) {
|
|
1785
|
-
return null;
|
|
1786
|
-
}
|
|
1787
1709
|
return serializeAws_json1_0Tag(entry, context);
|
|
1788
1710
|
});
|
|
1789
1711
|
};
|