@aws-sdk/client-frauddetector 3.504.0 → 3.509.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +128 -2357
- package/dist-es/protocols/Aws_json1_1.js +194 -2423
- package/package.json +3 -3
|
@@ -441,7 +441,7 @@ export const se_UpdateVariableCommand = async (input, context) => {
|
|
|
441
441
|
};
|
|
442
442
|
export const de_BatchCreateVariableCommand = async (output, context) => {
|
|
443
443
|
if (output.statusCode >= 300) {
|
|
444
|
-
return
|
|
444
|
+
return de_CommandError(output, context);
|
|
445
445
|
}
|
|
446
446
|
const data = await parseBody(output.body, context);
|
|
447
447
|
let contents = {};
|
|
@@ -452,37 +452,9 @@ export const de_BatchCreateVariableCommand = async (output, context) => {
|
|
|
452
452
|
};
|
|
453
453
|
return response;
|
|
454
454
|
};
|
|
455
|
-
const de_BatchCreateVariableCommandError = async (output, context) => {
|
|
456
|
-
const parsedOutput = {
|
|
457
|
-
...output,
|
|
458
|
-
body: await parseErrorBody(output.body, context),
|
|
459
|
-
};
|
|
460
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
461
|
-
switch (errorCode) {
|
|
462
|
-
case "AccessDeniedException":
|
|
463
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
464
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
465
|
-
case "InternalServerException":
|
|
466
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
467
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
468
|
-
case "ThrottlingException":
|
|
469
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
470
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
471
|
-
case "ValidationException":
|
|
472
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
473
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
474
|
-
default:
|
|
475
|
-
const parsedBody = parsedOutput.body;
|
|
476
|
-
return throwDefaultError({
|
|
477
|
-
output,
|
|
478
|
-
parsedBody,
|
|
479
|
-
errorCode,
|
|
480
|
-
});
|
|
481
|
-
}
|
|
482
|
-
};
|
|
483
455
|
export const de_BatchGetVariableCommand = async (output, context) => {
|
|
484
456
|
if (output.statusCode >= 300) {
|
|
485
|
-
return
|
|
457
|
+
return de_CommandError(output, context);
|
|
486
458
|
}
|
|
487
459
|
const data = await parseBody(output.body, context);
|
|
488
460
|
let contents = {};
|
|
@@ -493,37 +465,9 @@ export const de_BatchGetVariableCommand = async (output, context) => {
|
|
|
493
465
|
};
|
|
494
466
|
return response;
|
|
495
467
|
};
|
|
496
|
-
const de_BatchGetVariableCommandError = async (output, context) => {
|
|
497
|
-
const parsedOutput = {
|
|
498
|
-
...output,
|
|
499
|
-
body: await parseErrorBody(output.body, context),
|
|
500
|
-
};
|
|
501
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
502
|
-
switch (errorCode) {
|
|
503
|
-
case "AccessDeniedException":
|
|
504
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
505
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
506
|
-
case "InternalServerException":
|
|
507
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
508
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
509
|
-
case "ThrottlingException":
|
|
510
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
511
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
512
|
-
case "ValidationException":
|
|
513
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
514
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
515
|
-
default:
|
|
516
|
-
const parsedBody = parsedOutput.body;
|
|
517
|
-
return throwDefaultError({
|
|
518
|
-
output,
|
|
519
|
-
parsedBody,
|
|
520
|
-
errorCode,
|
|
521
|
-
});
|
|
522
|
-
}
|
|
523
|
-
};
|
|
524
468
|
export const de_CancelBatchImportJobCommand = async (output, context) => {
|
|
525
469
|
if (output.statusCode >= 300) {
|
|
526
|
-
return
|
|
470
|
+
return de_CommandError(output, context);
|
|
527
471
|
}
|
|
528
472
|
const data = await parseBody(output.body, context);
|
|
529
473
|
let contents = {};
|
|
@@ -534,40 +478,9 @@ export const de_CancelBatchImportJobCommand = async (output, context) => {
|
|
|
534
478
|
};
|
|
535
479
|
return response;
|
|
536
480
|
};
|
|
537
|
-
const de_CancelBatchImportJobCommandError = async (output, context) => {
|
|
538
|
-
const parsedOutput = {
|
|
539
|
-
...output,
|
|
540
|
-
body: await parseErrorBody(output.body, context),
|
|
541
|
-
};
|
|
542
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
543
|
-
switch (errorCode) {
|
|
544
|
-
case "AccessDeniedException":
|
|
545
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
546
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
547
|
-
case "InternalServerException":
|
|
548
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
549
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
550
|
-
case "ResourceNotFoundException":
|
|
551
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
552
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
553
|
-
case "ThrottlingException":
|
|
554
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
555
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
556
|
-
case "ValidationException":
|
|
557
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
558
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
559
|
-
default:
|
|
560
|
-
const parsedBody = parsedOutput.body;
|
|
561
|
-
return throwDefaultError({
|
|
562
|
-
output,
|
|
563
|
-
parsedBody,
|
|
564
|
-
errorCode,
|
|
565
|
-
});
|
|
566
|
-
}
|
|
567
|
-
};
|
|
568
481
|
export const de_CancelBatchPredictionJobCommand = async (output, context) => {
|
|
569
482
|
if (output.statusCode >= 300) {
|
|
570
|
-
return
|
|
483
|
+
return de_CommandError(output, context);
|
|
571
484
|
}
|
|
572
485
|
const data = await parseBody(output.body, context);
|
|
573
486
|
let contents = {};
|
|
@@ -578,40 +491,9 @@ export const de_CancelBatchPredictionJobCommand = async (output, context) => {
|
|
|
578
491
|
};
|
|
579
492
|
return response;
|
|
580
493
|
};
|
|
581
|
-
const de_CancelBatchPredictionJobCommandError = async (output, context) => {
|
|
582
|
-
const parsedOutput = {
|
|
583
|
-
...output,
|
|
584
|
-
body: await parseErrorBody(output.body, context),
|
|
585
|
-
};
|
|
586
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
587
|
-
switch (errorCode) {
|
|
588
|
-
case "AccessDeniedException":
|
|
589
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
590
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
591
|
-
case "InternalServerException":
|
|
592
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
593
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
594
|
-
case "ResourceNotFoundException":
|
|
595
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
596
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
597
|
-
case "ThrottlingException":
|
|
598
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
599
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
600
|
-
case "ValidationException":
|
|
601
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
602
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
603
|
-
default:
|
|
604
|
-
const parsedBody = parsedOutput.body;
|
|
605
|
-
return throwDefaultError({
|
|
606
|
-
output,
|
|
607
|
-
parsedBody,
|
|
608
|
-
errorCode,
|
|
609
|
-
});
|
|
610
|
-
}
|
|
611
|
-
};
|
|
612
494
|
export const de_CreateBatchImportJobCommand = async (output, context) => {
|
|
613
495
|
if (output.statusCode >= 300) {
|
|
614
|
-
return
|
|
496
|
+
return de_CommandError(output, context);
|
|
615
497
|
}
|
|
616
498
|
const data = await parseBody(output.body, context);
|
|
617
499
|
let contents = {};
|
|
@@ -622,40 +504,9 @@ export const de_CreateBatchImportJobCommand = async (output, context) => {
|
|
|
622
504
|
};
|
|
623
505
|
return response;
|
|
624
506
|
};
|
|
625
|
-
const de_CreateBatchImportJobCommandError = async (output, context) => {
|
|
626
|
-
const parsedOutput = {
|
|
627
|
-
...output,
|
|
628
|
-
body: await parseErrorBody(output.body, context),
|
|
629
|
-
};
|
|
630
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
631
|
-
switch (errorCode) {
|
|
632
|
-
case "AccessDeniedException":
|
|
633
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
634
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
635
|
-
case "InternalServerException":
|
|
636
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
637
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
638
|
-
case "ResourceNotFoundException":
|
|
639
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
640
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
641
|
-
case "ThrottlingException":
|
|
642
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
643
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
644
|
-
case "ValidationException":
|
|
645
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
646
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
647
|
-
default:
|
|
648
|
-
const parsedBody = parsedOutput.body;
|
|
649
|
-
return throwDefaultError({
|
|
650
|
-
output,
|
|
651
|
-
parsedBody,
|
|
652
|
-
errorCode,
|
|
653
|
-
});
|
|
654
|
-
}
|
|
655
|
-
};
|
|
656
507
|
export const de_CreateBatchPredictionJobCommand = async (output, context) => {
|
|
657
508
|
if (output.statusCode >= 300) {
|
|
658
|
-
return
|
|
509
|
+
return de_CommandError(output, context);
|
|
659
510
|
}
|
|
660
511
|
const data = await parseBody(output.body, context);
|
|
661
512
|
let contents = {};
|
|
@@ -666,40 +517,9 @@ export const de_CreateBatchPredictionJobCommand = async (output, context) => {
|
|
|
666
517
|
};
|
|
667
518
|
return response;
|
|
668
519
|
};
|
|
669
|
-
const de_CreateBatchPredictionJobCommandError = async (output, context) => {
|
|
670
|
-
const parsedOutput = {
|
|
671
|
-
...output,
|
|
672
|
-
body: await parseErrorBody(output.body, context),
|
|
673
|
-
};
|
|
674
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
675
|
-
switch (errorCode) {
|
|
676
|
-
case "AccessDeniedException":
|
|
677
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
678
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
679
|
-
case "InternalServerException":
|
|
680
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
681
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
682
|
-
case "ResourceNotFoundException":
|
|
683
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
684
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
685
|
-
case "ThrottlingException":
|
|
686
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
687
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
688
|
-
case "ValidationException":
|
|
689
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
690
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
691
|
-
default:
|
|
692
|
-
const parsedBody = parsedOutput.body;
|
|
693
|
-
return throwDefaultError({
|
|
694
|
-
output,
|
|
695
|
-
parsedBody,
|
|
696
|
-
errorCode,
|
|
697
|
-
});
|
|
698
|
-
}
|
|
699
|
-
};
|
|
700
520
|
export const de_CreateDetectorVersionCommand = async (output, context) => {
|
|
701
521
|
if (output.statusCode >= 300) {
|
|
702
|
-
return
|
|
522
|
+
return de_CommandError(output, context);
|
|
703
523
|
}
|
|
704
524
|
const data = await parseBody(output.body, context);
|
|
705
525
|
let contents = {};
|
|
@@ -710,40 +530,9 @@ export const de_CreateDetectorVersionCommand = async (output, context) => {
|
|
|
710
530
|
};
|
|
711
531
|
return response;
|
|
712
532
|
};
|
|
713
|
-
const de_CreateDetectorVersionCommandError = async (output, context) => {
|
|
714
|
-
const parsedOutput = {
|
|
715
|
-
...output,
|
|
716
|
-
body: await parseErrorBody(output.body, context),
|
|
717
|
-
};
|
|
718
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
719
|
-
switch (errorCode) {
|
|
720
|
-
case "AccessDeniedException":
|
|
721
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
722
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
723
|
-
case "InternalServerException":
|
|
724
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
725
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
726
|
-
case "ResourceNotFoundException":
|
|
727
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
728
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
729
|
-
case "ThrottlingException":
|
|
730
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
731
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
732
|
-
case "ValidationException":
|
|
733
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
734
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
735
|
-
default:
|
|
736
|
-
const parsedBody = parsedOutput.body;
|
|
737
|
-
return throwDefaultError({
|
|
738
|
-
output,
|
|
739
|
-
parsedBody,
|
|
740
|
-
errorCode,
|
|
741
|
-
});
|
|
742
|
-
}
|
|
743
|
-
};
|
|
744
533
|
export const de_CreateListCommand = async (output, context) => {
|
|
745
534
|
if (output.statusCode >= 300) {
|
|
746
|
-
return
|
|
535
|
+
return de_CommandError(output, context);
|
|
747
536
|
}
|
|
748
537
|
const data = await parseBody(output.body, context);
|
|
749
538
|
let contents = {};
|
|
@@ -754,37 +543,22 @@ export const de_CreateListCommand = async (output, context) => {
|
|
|
754
543
|
};
|
|
755
544
|
return response;
|
|
756
545
|
};
|
|
757
|
-
const
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
body: await parseErrorBody(output.body, context),
|
|
761
|
-
};
|
|
762
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
763
|
-
switch (errorCode) {
|
|
764
|
-
case "AccessDeniedException":
|
|
765
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
766
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
767
|
-
case "InternalServerException":
|
|
768
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
769
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
770
|
-
case "ThrottlingException":
|
|
771
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
772
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
773
|
-
case "ValidationException":
|
|
774
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
775
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
776
|
-
default:
|
|
777
|
-
const parsedBody = parsedOutput.body;
|
|
778
|
-
return throwDefaultError({
|
|
779
|
-
output,
|
|
780
|
-
parsedBody,
|
|
781
|
-
errorCode,
|
|
782
|
-
});
|
|
546
|
+
export const de_CreateModelCommand = async (output, context) => {
|
|
547
|
+
if (output.statusCode >= 300) {
|
|
548
|
+
return de_CommandError(output, context);
|
|
783
549
|
}
|
|
550
|
+
const data = await parseBody(output.body, context);
|
|
551
|
+
let contents = {};
|
|
552
|
+
contents = _json(data);
|
|
553
|
+
const response = {
|
|
554
|
+
$metadata: deserializeMetadata(output),
|
|
555
|
+
...contents,
|
|
556
|
+
};
|
|
557
|
+
return response;
|
|
784
558
|
};
|
|
785
|
-
export const
|
|
559
|
+
export const de_CreateModelVersionCommand = async (output, context) => {
|
|
786
560
|
if (output.statusCode >= 300) {
|
|
787
|
-
return
|
|
561
|
+
return de_CommandError(output, context);
|
|
788
562
|
}
|
|
789
563
|
const data = await parseBody(output.body, context);
|
|
790
564
|
let contents = {};
|
|
@@ -795,37 +569,22 @@ export const de_CreateModelCommand = async (output, context) => {
|
|
|
795
569
|
};
|
|
796
570
|
return response;
|
|
797
571
|
};
|
|
798
|
-
const
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
572
|
+
export const de_CreateRuleCommand = async (output, context) => {
|
|
573
|
+
if (output.statusCode >= 300) {
|
|
574
|
+
return de_CommandError(output, context);
|
|
575
|
+
}
|
|
576
|
+
const data = await parseBody(output.body, context);
|
|
577
|
+
let contents = {};
|
|
578
|
+
contents = _json(data);
|
|
579
|
+
const response = {
|
|
580
|
+
$metadata: deserializeMetadata(output),
|
|
581
|
+
...contents,
|
|
802
582
|
};
|
|
803
|
-
|
|
804
|
-
switch (errorCode) {
|
|
805
|
-
case "AccessDeniedException":
|
|
806
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
807
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
808
|
-
case "InternalServerException":
|
|
809
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
810
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
811
|
-
case "ThrottlingException":
|
|
812
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
813
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
814
|
-
case "ValidationException":
|
|
815
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
816
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
817
|
-
default:
|
|
818
|
-
const parsedBody = parsedOutput.body;
|
|
819
|
-
return throwDefaultError({
|
|
820
|
-
output,
|
|
821
|
-
parsedBody,
|
|
822
|
-
errorCode,
|
|
823
|
-
});
|
|
824
|
-
}
|
|
583
|
+
return response;
|
|
825
584
|
};
|
|
826
|
-
export const
|
|
585
|
+
export const de_CreateVariableCommand = async (output, context) => {
|
|
827
586
|
if (output.statusCode >= 300) {
|
|
828
|
-
return
|
|
587
|
+
return de_CommandError(output, context);
|
|
829
588
|
}
|
|
830
589
|
const data = await parseBody(output.body, context);
|
|
831
590
|
let contents = {};
|
|
@@ -836,40 +595,9 @@ export const de_CreateModelVersionCommand = async (output, context) => {
|
|
|
836
595
|
};
|
|
837
596
|
return response;
|
|
838
597
|
};
|
|
839
|
-
const
|
|
840
|
-
const parsedOutput = {
|
|
841
|
-
...output,
|
|
842
|
-
body: await parseErrorBody(output.body, context),
|
|
843
|
-
};
|
|
844
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
845
|
-
switch (errorCode) {
|
|
846
|
-
case "AccessDeniedException":
|
|
847
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
848
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
849
|
-
case "InternalServerException":
|
|
850
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
851
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
852
|
-
case "ResourceNotFoundException":
|
|
853
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
854
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
855
|
-
case "ThrottlingException":
|
|
856
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
857
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
858
|
-
case "ValidationException":
|
|
859
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
860
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
861
|
-
default:
|
|
862
|
-
const parsedBody = parsedOutput.body;
|
|
863
|
-
return throwDefaultError({
|
|
864
|
-
output,
|
|
865
|
-
parsedBody,
|
|
866
|
-
errorCode,
|
|
867
|
-
});
|
|
868
|
-
}
|
|
869
|
-
};
|
|
870
|
-
export const de_CreateRuleCommand = async (output, context) => {
|
|
598
|
+
export const de_DeleteBatchImportJobCommand = async (output, context) => {
|
|
871
599
|
if (output.statusCode >= 300) {
|
|
872
|
-
return
|
|
600
|
+
return de_CommandError(output, context);
|
|
873
601
|
}
|
|
874
602
|
const data = await parseBody(output.body, context);
|
|
875
603
|
let contents = {};
|
|
@@ -880,37 +608,9 @@ export const de_CreateRuleCommand = async (output, context) => {
|
|
|
880
608
|
};
|
|
881
609
|
return response;
|
|
882
610
|
};
|
|
883
|
-
const
|
|
884
|
-
const parsedOutput = {
|
|
885
|
-
...output,
|
|
886
|
-
body: await parseErrorBody(output.body, context),
|
|
887
|
-
};
|
|
888
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
889
|
-
switch (errorCode) {
|
|
890
|
-
case "AccessDeniedException":
|
|
891
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
892
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
893
|
-
case "InternalServerException":
|
|
894
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
895
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
896
|
-
case "ThrottlingException":
|
|
897
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
898
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
899
|
-
case "ValidationException":
|
|
900
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
901
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
902
|
-
default:
|
|
903
|
-
const parsedBody = parsedOutput.body;
|
|
904
|
-
return throwDefaultError({
|
|
905
|
-
output,
|
|
906
|
-
parsedBody,
|
|
907
|
-
errorCode,
|
|
908
|
-
});
|
|
909
|
-
}
|
|
910
|
-
};
|
|
911
|
-
export const de_CreateVariableCommand = async (output, context) => {
|
|
611
|
+
export const de_DeleteBatchPredictionJobCommand = async (output, context) => {
|
|
912
612
|
if (output.statusCode >= 300) {
|
|
913
|
-
return
|
|
613
|
+
return de_CommandError(output, context);
|
|
914
614
|
}
|
|
915
615
|
const data = await parseBody(output.body, context);
|
|
916
616
|
let contents = {};
|
|
@@ -921,37 +621,9 @@ export const de_CreateVariableCommand = async (output, context) => {
|
|
|
921
621
|
};
|
|
922
622
|
return response;
|
|
923
623
|
};
|
|
924
|
-
const
|
|
925
|
-
const parsedOutput = {
|
|
926
|
-
...output,
|
|
927
|
-
body: await parseErrorBody(output.body, context),
|
|
928
|
-
};
|
|
929
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
930
|
-
switch (errorCode) {
|
|
931
|
-
case "AccessDeniedException":
|
|
932
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
933
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
934
|
-
case "InternalServerException":
|
|
935
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
936
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
937
|
-
case "ThrottlingException":
|
|
938
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
939
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
940
|
-
case "ValidationException":
|
|
941
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
942
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
943
|
-
default:
|
|
944
|
-
const parsedBody = parsedOutput.body;
|
|
945
|
-
return throwDefaultError({
|
|
946
|
-
output,
|
|
947
|
-
parsedBody,
|
|
948
|
-
errorCode,
|
|
949
|
-
});
|
|
950
|
-
}
|
|
951
|
-
};
|
|
952
|
-
export const de_DeleteBatchImportJobCommand = async (output, context) => {
|
|
624
|
+
export const de_DeleteDetectorCommand = async (output, context) => {
|
|
953
625
|
if (output.statusCode >= 300) {
|
|
954
|
-
return
|
|
626
|
+
return de_CommandError(output, context);
|
|
955
627
|
}
|
|
956
628
|
const data = await parseBody(output.body, context);
|
|
957
629
|
let contents = {};
|
|
@@ -962,37 +634,9 @@ export const de_DeleteBatchImportJobCommand = async (output, context) => {
|
|
|
962
634
|
};
|
|
963
635
|
return response;
|
|
964
636
|
};
|
|
965
|
-
const
|
|
966
|
-
const parsedOutput = {
|
|
967
|
-
...output,
|
|
968
|
-
body: await parseErrorBody(output.body, context),
|
|
969
|
-
};
|
|
970
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
971
|
-
switch (errorCode) {
|
|
972
|
-
case "AccessDeniedException":
|
|
973
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
974
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
975
|
-
case "InternalServerException":
|
|
976
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
977
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
978
|
-
case "ThrottlingException":
|
|
979
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
980
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
981
|
-
case "ValidationException":
|
|
982
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
983
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
984
|
-
default:
|
|
985
|
-
const parsedBody = parsedOutput.body;
|
|
986
|
-
return throwDefaultError({
|
|
987
|
-
output,
|
|
988
|
-
parsedBody,
|
|
989
|
-
errorCode,
|
|
990
|
-
});
|
|
991
|
-
}
|
|
992
|
-
};
|
|
993
|
-
export const de_DeleteBatchPredictionJobCommand = async (output, context) => {
|
|
637
|
+
export const de_DeleteDetectorVersionCommand = async (output, context) => {
|
|
994
638
|
if (output.statusCode >= 300) {
|
|
995
|
-
return
|
|
639
|
+
return de_CommandError(output, context);
|
|
996
640
|
}
|
|
997
641
|
const data = await parseBody(output.body, context);
|
|
998
642
|
let contents = {};
|
|
@@ -1003,37 +647,9 @@ export const de_DeleteBatchPredictionJobCommand = async (output, context) => {
|
|
|
1003
647
|
};
|
|
1004
648
|
return response;
|
|
1005
649
|
};
|
|
1006
|
-
const
|
|
1007
|
-
const parsedOutput = {
|
|
1008
|
-
...output,
|
|
1009
|
-
body: await parseErrorBody(output.body, context),
|
|
1010
|
-
};
|
|
1011
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1012
|
-
switch (errorCode) {
|
|
1013
|
-
case "AccessDeniedException":
|
|
1014
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1015
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1016
|
-
case "InternalServerException":
|
|
1017
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1018
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1019
|
-
case "ThrottlingException":
|
|
1020
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1021
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1022
|
-
case "ValidationException":
|
|
1023
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1024
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1025
|
-
default:
|
|
1026
|
-
const parsedBody = parsedOutput.body;
|
|
1027
|
-
return throwDefaultError({
|
|
1028
|
-
output,
|
|
1029
|
-
parsedBody,
|
|
1030
|
-
errorCode,
|
|
1031
|
-
});
|
|
1032
|
-
}
|
|
1033
|
-
};
|
|
1034
|
-
export const de_DeleteDetectorCommand = async (output, context) => {
|
|
650
|
+
export const de_DeleteEntityTypeCommand = async (output, context) => {
|
|
1035
651
|
if (output.statusCode >= 300) {
|
|
1036
|
-
return
|
|
652
|
+
return de_CommandError(output, context);
|
|
1037
653
|
}
|
|
1038
654
|
const data = await parseBody(output.body, context);
|
|
1039
655
|
let contents = {};
|
|
@@ -1044,40 +660,22 @@ export const de_DeleteDetectorCommand = async (output, context) => {
|
|
|
1044
660
|
};
|
|
1045
661
|
return response;
|
|
1046
662
|
};
|
|
1047
|
-
const
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
body: await parseErrorBody(output.body, context),
|
|
1051
|
-
};
|
|
1052
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1053
|
-
switch (errorCode) {
|
|
1054
|
-
case "AccessDeniedException":
|
|
1055
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1056
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1057
|
-
case "ConflictException":
|
|
1058
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
1059
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1060
|
-
case "InternalServerException":
|
|
1061
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1062
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1063
|
-
case "ThrottlingException":
|
|
1064
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1065
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1066
|
-
case "ValidationException":
|
|
1067
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1068
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1069
|
-
default:
|
|
1070
|
-
const parsedBody = parsedOutput.body;
|
|
1071
|
-
return throwDefaultError({
|
|
1072
|
-
output,
|
|
1073
|
-
parsedBody,
|
|
1074
|
-
errorCode,
|
|
1075
|
-
});
|
|
663
|
+
export const de_DeleteEventCommand = async (output, context) => {
|
|
664
|
+
if (output.statusCode >= 300) {
|
|
665
|
+
return de_CommandError(output, context);
|
|
1076
666
|
}
|
|
667
|
+
const data = await parseBody(output.body, context);
|
|
668
|
+
let contents = {};
|
|
669
|
+
contents = _json(data);
|
|
670
|
+
const response = {
|
|
671
|
+
$metadata: deserializeMetadata(output),
|
|
672
|
+
...contents,
|
|
673
|
+
};
|
|
674
|
+
return response;
|
|
1077
675
|
};
|
|
1078
|
-
export const
|
|
676
|
+
export const de_DeleteEventsByEventTypeCommand = async (output, context) => {
|
|
1079
677
|
if (output.statusCode >= 300) {
|
|
1080
|
-
return
|
|
678
|
+
return de_CommandError(output, context);
|
|
1081
679
|
}
|
|
1082
680
|
const data = await parseBody(output.body, context);
|
|
1083
681
|
let contents = {};
|
|
@@ -1088,43 +686,22 @@ export const de_DeleteDetectorVersionCommand = async (output, context) => {
|
|
|
1088
686
|
};
|
|
1089
687
|
return response;
|
|
1090
688
|
};
|
|
1091
|
-
const
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
body: await parseErrorBody(output.body, context),
|
|
1095
|
-
};
|
|
1096
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1097
|
-
switch (errorCode) {
|
|
1098
|
-
case "AccessDeniedException":
|
|
1099
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1100
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1101
|
-
case "ConflictException":
|
|
1102
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
1103
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1104
|
-
case "InternalServerException":
|
|
1105
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1106
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1107
|
-
case "ResourceNotFoundException":
|
|
1108
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
1109
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1110
|
-
case "ThrottlingException":
|
|
1111
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1112
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1113
|
-
case "ValidationException":
|
|
1114
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1115
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1116
|
-
default:
|
|
1117
|
-
const parsedBody = parsedOutput.body;
|
|
1118
|
-
return throwDefaultError({
|
|
1119
|
-
output,
|
|
1120
|
-
parsedBody,
|
|
1121
|
-
errorCode,
|
|
1122
|
-
});
|
|
689
|
+
export const de_DeleteEventTypeCommand = async (output, context) => {
|
|
690
|
+
if (output.statusCode >= 300) {
|
|
691
|
+
return de_CommandError(output, context);
|
|
1123
692
|
}
|
|
693
|
+
const data = await parseBody(output.body, context);
|
|
694
|
+
let contents = {};
|
|
695
|
+
contents = _json(data);
|
|
696
|
+
const response = {
|
|
697
|
+
$metadata: deserializeMetadata(output),
|
|
698
|
+
...contents,
|
|
699
|
+
};
|
|
700
|
+
return response;
|
|
1124
701
|
};
|
|
1125
|
-
export const
|
|
702
|
+
export const de_DeleteExternalModelCommand = async (output, context) => {
|
|
1126
703
|
if (output.statusCode >= 300) {
|
|
1127
|
-
return
|
|
704
|
+
return de_CommandError(output, context);
|
|
1128
705
|
}
|
|
1129
706
|
const data = await parseBody(output.body, context);
|
|
1130
707
|
let contents = {};
|
|
@@ -1135,40 +712,9 @@ export const de_DeleteEntityTypeCommand = async (output, context) => {
|
|
|
1135
712
|
};
|
|
1136
713
|
return response;
|
|
1137
714
|
};
|
|
1138
|
-
const
|
|
1139
|
-
const parsedOutput = {
|
|
1140
|
-
...output,
|
|
1141
|
-
body: await parseErrorBody(output.body, context),
|
|
1142
|
-
};
|
|
1143
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1144
|
-
switch (errorCode) {
|
|
1145
|
-
case "AccessDeniedException":
|
|
1146
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1147
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1148
|
-
case "ConflictException":
|
|
1149
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
1150
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1151
|
-
case "InternalServerException":
|
|
1152
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1153
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1154
|
-
case "ThrottlingException":
|
|
1155
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1156
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1157
|
-
case "ValidationException":
|
|
1158
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1159
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1160
|
-
default:
|
|
1161
|
-
const parsedBody = parsedOutput.body;
|
|
1162
|
-
return throwDefaultError({
|
|
1163
|
-
output,
|
|
1164
|
-
parsedBody,
|
|
1165
|
-
errorCode,
|
|
1166
|
-
});
|
|
1167
|
-
}
|
|
1168
|
-
};
|
|
1169
|
-
export const de_DeleteEventCommand = async (output, context) => {
|
|
715
|
+
export const de_DeleteLabelCommand = async (output, context) => {
|
|
1170
716
|
if (output.statusCode >= 300) {
|
|
1171
|
-
return
|
|
717
|
+
return de_CommandError(output, context);
|
|
1172
718
|
}
|
|
1173
719
|
const data = await parseBody(output.body, context);
|
|
1174
720
|
let contents = {};
|
|
@@ -1179,37 +725,9 @@ export const de_DeleteEventCommand = async (output, context) => {
|
|
|
1179
725
|
};
|
|
1180
726
|
return response;
|
|
1181
727
|
};
|
|
1182
|
-
const
|
|
1183
|
-
const parsedOutput = {
|
|
1184
|
-
...output,
|
|
1185
|
-
body: await parseErrorBody(output.body, context),
|
|
1186
|
-
};
|
|
1187
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1188
|
-
switch (errorCode) {
|
|
1189
|
-
case "AccessDeniedException":
|
|
1190
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1191
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1192
|
-
case "InternalServerException":
|
|
1193
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1194
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1195
|
-
case "ThrottlingException":
|
|
1196
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1197
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1198
|
-
case "ValidationException":
|
|
1199
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1200
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1201
|
-
default:
|
|
1202
|
-
const parsedBody = parsedOutput.body;
|
|
1203
|
-
return throwDefaultError({
|
|
1204
|
-
output,
|
|
1205
|
-
parsedBody,
|
|
1206
|
-
errorCode,
|
|
1207
|
-
});
|
|
1208
|
-
}
|
|
1209
|
-
};
|
|
1210
|
-
export const de_DeleteEventsByEventTypeCommand = async (output, context) => {
|
|
728
|
+
export const de_DeleteListCommand = async (output, context) => {
|
|
1211
729
|
if (output.statusCode >= 300) {
|
|
1212
|
-
return
|
|
730
|
+
return de_CommandError(output, context);
|
|
1213
731
|
}
|
|
1214
732
|
const data = await parseBody(output.body, context);
|
|
1215
733
|
let contents = {};
|
|
@@ -1220,43 +738,9 @@ export const de_DeleteEventsByEventTypeCommand = async (output, context) => {
|
|
|
1220
738
|
};
|
|
1221
739
|
return response;
|
|
1222
740
|
};
|
|
1223
|
-
const
|
|
1224
|
-
const parsedOutput = {
|
|
1225
|
-
...output,
|
|
1226
|
-
body: await parseErrorBody(output.body, context),
|
|
1227
|
-
};
|
|
1228
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1229
|
-
switch (errorCode) {
|
|
1230
|
-
case "AccessDeniedException":
|
|
1231
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1232
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1233
|
-
case "ConflictException":
|
|
1234
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
1235
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1236
|
-
case "InternalServerException":
|
|
1237
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1238
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1239
|
-
case "ResourceNotFoundException":
|
|
1240
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
1241
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1242
|
-
case "ThrottlingException":
|
|
1243
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1244
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1245
|
-
case "ValidationException":
|
|
1246
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1247
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1248
|
-
default:
|
|
1249
|
-
const parsedBody = parsedOutput.body;
|
|
1250
|
-
return throwDefaultError({
|
|
1251
|
-
output,
|
|
1252
|
-
parsedBody,
|
|
1253
|
-
errorCode,
|
|
1254
|
-
});
|
|
1255
|
-
}
|
|
1256
|
-
};
|
|
1257
|
-
export const de_DeleteEventTypeCommand = async (output, context) => {
|
|
741
|
+
export const de_DeleteModelCommand = async (output, context) => {
|
|
1258
742
|
if (output.statusCode >= 300) {
|
|
1259
|
-
return
|
|
743
|
+
return de_CommandError(output, context);
|
|
1260
744
|
}
|
|
1261
745
|
const data = await parseBody(output.body, context);
|
|
1262
746
|
let contents = {};
|
|
@@ -1267,40 +751,9 @@ export const de_DeleteEventTypeCommand = async (output, context) => {
|
|
|
1267
751
|
};
|
|
1268
752
|
return response;
|
|
1269
753
|
};
|
|
1270
|
-
const
|
|
1271
|
-
const parsedOutput = {
|
|
1272
|
-
...output,
|
|
1273
|
-
body: await parseErrorBody(output.body, context),
|
|
1274
|
-
};
|
|
1275
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1276
|
-
switch (errorCode) {
|
|
1277
|
-
case "AccessDeniedException":
|
|
1278
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1279
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1280
|
-
case "ConflictException":
|
|
1281
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
1282
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1283
|
-
case "InternalServerException":
|
|
1284
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1285
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1286
|
-
case "ThrottlingException":
|
|
1287
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1288
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1289
|
-
case "ValidationException":
|
|
1290
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1291
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1292
|
-
default:
|
|
1293
|
-
const parsedBody = parsedOutput.body;
|
|
1294
|
-
return throwDefaultError({
|
|
1295
|
-
output,
|
|
1296
|
-
parsedBody,
|
|
1297
|
-
errorCode,
|
|
1298
|
-
});
|
|
1299
|
-
}
|
|
1300
|
-
};
|
|
1301
|
-
export const de_DeleteExternalModelCommand = async (output, context) => {
|
|
754
|
+
export const de_DeleteModelVersionCommand = async (output, context) => {
|
|
1302
755
|
if (output.statusCode >= 300) {
|
|
1303
|
-
return
|
|
756
|
+
return de_CommandError(output, context);
|
|
1304
757
|
}
|
|
1305
758
|
const data = await parseBody(output.body, context);
|
|
1306
759
|
let contents = {};
|
|
@@ -1311,40 +764,9 @@ export const de_DeleteExternalModelCommand = async (output, context) => {
|
|
|
1311
764
|
};
|
|
1312
765
|
return response;
|
|
1313
766
|
};
|
|
1314
|
-
const
|
|
1315
|
-
const parsedOutput = {
|
|
1316
|
-
...output,
|
|
1317
|
-
body: await parseErrorBody(output.body, context),
|
|
1318
|
-
};
|
|
1319
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1320
|
-
switch (errorCode) {
|
|
1321
|
-
case "AccessDeniedException":
|
|
1322
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1323
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1324
|
-
case "ConflictException":
|
|
1325
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
1326
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1327
|
-
case "InternalServerException":
|
|
1328
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1329
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1330
|
-
case "ThrottlingException":
|
|
1331
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1332
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1333
|
-
case "ValidationException":
|
|
1334
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1335
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1336
|
-
default:
|
|
1337
|
-
const parsedBody = parsedOutput.body;
|
|
1338
|
-
return throwDefaultError({
|
|
1339
|
-
output,
|
|
1340
|
-
parsedBody,
|
|
1341
|
-
errorCode,
|
|
1342
|
-
});
|
|
1343
|
-
}
|
|
1344
|
-
};
|
|
1345
|
-
export const de_DeleteLabelCommand = async (output, context) => {
|
|
767
|
+
export const de_DeleteOutcomeCommand = async (output, context) => {
|
|
1346
768
|
if (output.statusCode >= 300) {
|
|
1347
|
-
return
|
|
769
|
+
return de_CommandError(output, context);
|
|
1348
770
|
}
|
|
1349
771
|
const data = await parseBody(output.body, context);
|
|
1350
772
|
let contents = {};
|
|
@@ -1355,37 +777,9 @@ export const de_DeleteLabelCommand = async (output, context) => {
|
|
|
1355
777
|
};
|
|
1356
778
|
return response;
|
|
1357
779
|
};
|
|
1358
|
-
const
|
|
1359
|
-
const parsedOutput = {
|
|
1360
|
-
...output,
|
|
1361
|
-
body: await parseErrorBody(output.body, context),
|
|
1362
|
-
};
|
|
1363
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1364
|
-
switch (errorCode) {
|
|
1365
|
-
case "ConflictException":
|
|
1366
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
1367
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1368
|
-
case "InternalServerException":
|
|
1369
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1370
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1371
|
-
case "ThrottlingException":
|
|
1372
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1373
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1374
|
-
case "ValidationException":
|
|
1375
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1376
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1377
|
-
default:
|
|
1378
|
-
const parsedBody = parsedOutput.body;
|
|
1379
|
-
return throwDefaultError({
|
|
1380
|
-
output,
|
|
1381
|
-
parsedBody,
|
|
1382
|
-
errorCode,
|
|
1383
|
-
});
|
|
1384
|
-
}
|
|
1385
|
-
};
|
|
1386
|
-
export const de_DeleteListCommand = async (output, context) => {
|
|
780
|
+
export const de_DeleteRuleCommand = async (output, context) => {
|
|
1387
781
|
if (output.statusCode >= 300) {
|
|
1388
|
-
return
|
|
782
|
+
return de_CommandError(output, context);
|
|
1389
783
|
}
|
|
1390
784
|
const data = await parseBody(output.body, context);
|
|
1391
785
|
let contents = {};
|
|
@@ -1396,40 +790,9 @@ export const de_DeleteListCommand = async (output, context) => {
|
|
|
1396
790
|
};
|
|
1397
791
|
return response;
|
|
1398
792
|
};
|
|
1399
|
-
const
|
|
1400
|
-
const parsedOutput = {
|
|
1401
|
-
...output,
|
|
1402
|
-
body: await parseErrorBody(output.body, context),
|
|
1403
|
-
};
|
|
1404
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1405
|
-
switch (errorCode) {
|
|
1406
|
-
case "AccessDeniedException":
|
|
1407
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1408
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1409
|
-
case "ConflictException":
|
|
1410
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
1411
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1412
|
-
case "InternalServerException":
|
|
1413
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1414
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1415
|
-
case "ThrottlingException":
|
|
1416
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1417
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1418
|
-
case "ValidationException":
|
|
1419
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1420
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1421
|
-
default:
|
|
1422
|
-
const parsedBody = parsedOutput.body;
|
|
1423
|
-
return throwDefaultError({
|
|
1424
|
-
output,
|
|
1425
|
-
parsedBody,
|
|
1426
|
-
errorCode,
|
|
1427
|
-
});
|
|
1428
|
-
}
|
|
1429
|
-
};
|
|
1430
|
-
export const de_DeleteModelCommand = async (output, context) => {
|
|
793
|
+
export const de_DeleteVariableCommand = async (output, context) => {
|
|
1431
794
|
if (output.statusCode >= 300) {
|
|
1432
|
-
return
|
|
795
|
+
return de_CommandError(output, context);
|
|
1433
796
|
}
|
|
1434
797
|
const data = await parseBody(output.body, context);
|
|
1435
798
|
let contents = {};
|
|
@@ -1440,40 +803,9 @@ export const de_DeleteModelCommand = async (output, context) => {
|
|
|
1440
803
|
};
|
|
1441
804
|
return response;
|
|
1442
805
|
};
|
|
1443
|
-
const
|
|
1444
|
-
const parsedOutput = {
|
|
1445
|
-
...output,
|
|
1446
|
-
body: await parseErrorBody(output.body, context),
|
|
1447
|
-
};
|
|
1448
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1449
|
-
switch (errorCode) {
|
|
1450
|
-
case "AccessDeniedException":
|
|
1451
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1452
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1453
|
-
case "ConflictException":
|
|
1454
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
1455
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1456
|
-
case "InternalServerException":
|
|
1457
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1458
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1459
|
-
case "ThrottlingException":
|
|
1460
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1461
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1462
|
-
case "ValidationException":
|
|
1463
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1464
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1465
|
-
default:
|
|
1466
|
-
const parsedBody = parsedOutput.body;
|
|
1467
|
-
return throwDefaultError({
|
|
1468
|
-
output,
|
|
1469
|
-
parsedBody,
|
|
1470
|
-
errorCode,
|
|
1471
|
-
});
|
|
1472
|
-
}
|
|
1473
|
-
};
|
|
1474
|
-
export const de_DeleteModelVersionCommand = async (output, context) => {
|
|
806
|
+
export const de_DescribeDetectorCommand = async (output, context) => {
|
|
1475
807
|
if (output.statusCode >= 300) {
|
|
1476
|
-
return
|
|
808
|
+
return de_CommandError(output, context);
|
|
1477
809
|
}
|
|
1478
810
|
const data = await parseBody(output.body, context);
|
|
1479
811
|
let contents = {};
|
|
@@ -1484,84 +816,22 @@ export const de_DeleteModelVersionCommand = async (output, context) => {
|
|
|
1484
816
|
};
|
|
1485
817
|
return response;
|
|
1486
818
|
};
|
|
1487
|
-
const
|
|
1488
|
-
const parsedOutput = {
|
|
1489
|
-
...output,
|
|
1490
|
-
body: await parseErrorBody(output.body, context),
|
|
1491
|
-
};
|
|
1492
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1493
|
-
switch (errorCode) {
|
|
1494
|
-
case "AccessDeniedException":
|
|
1495
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1496
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1497
|
-
case "ConflictException":
|
|
1498
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
1499
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1500
|
-
case "InternalServerException":
|
|
1501
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1502
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1503
|
-
case "ThrottlingException":
|
|
1504
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1505
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1506
|
-
case "ValidationException":
|
|
1507
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1508
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1509
|
-
default:
|
|
1510
|
-
const parsedBody = parsedOutput.body;
|
|
1511
|
-
return throwDefaultError({
|
|
1512
|
-
output,
|
|
1513
|
-
parsedBody,
|
|
1514
|
-
errorCode,
|
|
1515
|
-
});
|
|
1516
|
-
}
|
|
1517
|
-
};
|
|
1518
|
-
export const de_DeleteOutcomeCommand = async (output, context) => {
|
|
819
|
+
export const de_DescribeModelVersionsCommand = async (output, context) => {
|
|
1519
820
|
if (output.statusCode >= 300) {
|
|
1520
|
-
return
|
|
821
|
+
return de_CommandError(output, context);
|
|
1521
822
|
}
|
|
1522
823
|
const data = await parseBody(output.body, context);
|
|
1523
824
|
let contents = {};
|
|
1524
|
-
contents =
|
|
825
|
+
contents = de_DescribeModelVersionsResult(data, context);
|
|
1525
826
|
const response = {
|
|
1526
827
|
$metadata: deserializeMetadata(output),
|
|
1527
828
|
...contents,
|
|
1528
829
|
};
|
|
1529
830
|
return response;
|
|
1530
831
|
};
|
|
1531
|
-
const
|
|
1532
|
-
const parsedOutput = {
|
|
1533
|
-
...output,
|
|
1534
|
-
body: await parseErrorBody(output.body, context),
|
|
1535
|
-
};
|
|
1536
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1537
|
-
switch (errorCode) {
|
|
1538
|
-
case "AccessDeniedException":
|
|
1539
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1540
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1541
|
-
case "ConflictException":
|
|
1542
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
1543
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1544
|
-
case "InternalServerException":
|
|
1545
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1546
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1547
|
-
case "ThrottlingException":
|
|
1548
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1549
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1550
|
-
case "ValidationException":
|
|
1551
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1552
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1553
|
-
default:
|
|
1554
|
-
const parsedBody = parsedOutput.body;
|
|
1555
|
-
return throwDefaultError({
|
|
1556
|
-
output,
|
|
1557
|
-
parsedBody,
|
|
1558
|
-
errorCode,
|
|
1559
|
-
});
|
|
1560
|
-
}
|
|
1561
|
-
};
|
|
1562
|
-
export const de_DeleteRuleCommand = async (output, context) => {
|
|
832
|
+
export const de_GetBatchImportJobsCommand = async (output, context) => {
|
|
1563
833
|
if (output.statusCode >= 300) {
|
|
1564
|
-
return
|
|
834
|
+
return de_CommandError(output, context);
|
|
1565
835
|
}
|
|
1566
836
|
const data = await parseBody(output.body, context);
|
|
1567
837
|
let contents = {};
|
|
@@ -1572,40 +842,9 @@ export const de_DeleteRuleCommand = async (output, context) => {
|
|
|
1572
842
|
};
|
|
1573
843
|
return response;
|
|
1574
844
|
};
|
|
1575
|
-
const
|
|
1576
|
-
const parsedOutput = {
|
|
1577
|
-
...output,
|
|
1578
|
-
body: await parseErrorBody(output.body, context),
|
|
1579
|
-
};
|
|
1580
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1581
|
-
switch (errorCode) {
|
|
1582
|
-
case "AccessDeniedException":
|
|
1583
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1584
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1585
|
-
case "ConflictException":
|
|
1586
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
1587
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1588
|
-
case "InternalServerException":
|
|
1589
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1590
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1591
|
-
case "ThrottlingException":
|
|
1592
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1593
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1594
|
-
case "ValidationException":
|
|
1595
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1596
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1597
|
-
default:
|
|
1598
|
-
const parsedBody = parsedOutput.body;
|
|
1599
|
-
return throwDefaultError({
|
|
1600
|
-
output,
|
|
1601
|
-
parsedBody,
|
|
1602
|
-
errorCode,
|
|
1603
|
-
});
|
|
1604
|
-
}
|
|
1605
|
-
};
|
|
1606
|
-
export const de_DeleteVariableCommand = async (output, context) => {
|
|
845
|
+
export const de_GetBatchPredictionJobsCommand = async (output, context) => {
|
|
1607
846
|
if (output.statusCode >= 300) {
|
|
1608
|
-
return
|
|
847
|
+
return de_CommandError(output, context);
|
|
1609
848
|
}
|
|
1610
849
|
const data = await parseBody(output.body, context);
|
|
1611
850
|
let contents = {};
|
|
@@ -1616,40 +855,9 @@ export const de_DeleteVariableCommand = async (output, context) => {
|
|
|
1616
855
|
};
|
|
1617
856
|
return response;
|
|
1618
857
|
};
|
|
1619
|
-
const
|
|
1620
|
-
const parsedOutput = {
|
|
1621
|
-
...output,
|
|
1622
|
-
body: await parseErrorBody(output.body, context),
|
|
1623
|
-
};
|
|
1624
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1625
|
-
switch (errorCode) {
|
|
1626
|
-
case "AccessDeniedException":
|
|
1627
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1628
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1629
|
-
case "ConflictException":
|
|
1630
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
1631
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1632
|
-
case "InternalServerException":
|
|
1633
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1634
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1635
|
-
case "ThrottlingException":
|
|
1636
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1637
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1638
|
-
case "ValidationException":
|
|
1639
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1640
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1641
|
-
default:
|
|
1642
|
-
const parsedBody = parsedOutput.body;
|
|
1643
|
-
return throwDefaultError({
|
|
1644
|
-
output,
|
|
1645
|
-
parsedBody,
|
|
1646
|
-
errorCode,
|
|
1647
|
-
});
|
|
1648
|
-
}
|
|
1649
|
-
};
|
|
1650
|
-
export const de_DescribeDetectorCommand = async (output, context) => {
|
|
858
|
+
export const de_GetDeleteEventsByEventTypeStatusCommand = async (output, context) => {
|
|
1651
859
|
if (output.statusCode >= 300) {
|
|
1652
|
-
return
|
|
860
|
+
return de_CommandError(output, context);
|
|
1653
861
|
}
|
|
1654
862
|
const data = await parseBody(output.body, context);
|
|
1655
863
|
let contents = {};
|
|
@@ -1660,84 +868,22 @@ export const de_DescribeDetectorCommand = async (output, context) => {
|
|
|
1660
868
|
};
|
|
1661
869
|
return response;
|
|
1662
870
|
};
|
|
1663
|
-
const
|
|
1664
|
-
const parsedOutput = {
|
|
1665
|
-
...output,
|
|
1666
|
-
body: await parseErrorBody(output.body, context),
|
|
1667
|
-
};
|
|
1668
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1669
|
-
switch (errorCode) {
|
|
1670
|
-
case "AccessDeniedException":
|
|
1671
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1672
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1673
|
-
case "InternalServerException":
|
|
1674
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1675
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1676
|
-
case "ResourceNotFoundException":
|
|
1677
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
1678
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1679
|
-
case "ThrottlingException":
|
|
1680
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1681
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1682
|
-
case "ValidationException":
|
|
1683
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1684
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1685
|
-
default:
|
|
1686
|
-
const parsedBody = parsedOutput.body;
|
|
1687
|
-
return throwDefaultError({
|
|
1688
|
-
output,
|
|
1689
|
-
parsedBody,
|
|
1690
|
-
errorCode,
|
|
1691
|
-
});
|
|
1692
|
-
}
|
|
1693
|
-
};
|
|
1694
|
-
export const de_DescribeModelVersionsCommand = async (output, context) => {
|
|
871
|
+
export const de_GetDetectorsCommand = async (output, context) => {
|
|
1695
872
|
if (output.statusCode >= 300) {
|
|
1696
|
-
return
|
|
873
|
+
return de_CommandError(output, context);
|
|
1697
874
|
}
|
|
1698
875
|
const data = await parseBody(output.body, context);
|
|
1699
876
|
let contents = {};
|
|
1700
|
-
contents =
|
|
877
|
+
contents = _json(data);
|
|
1701
878
|
const response = {
|
|
1702
879
|
$metadata: deserializeMetadata(output),
|
|
1703
880
|
...contents,
|
|
1704
881
|
};
|
|
1705
882
|
return response;
|
|
1706
883
|
};
|
|
1707
|
-
const
|
|
1708
|
-
const parsedOutput = {
|
|
1709
|
-
...output,
|
|
1710
|
-
body: await parseErrorBody(output.body, context),
|
|
1711
|
-
};
|
|
1712
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1713
|
-
switch (errorCode) {
|
|
1714
|
-
case "AccessDeniedException":
|
|
1715
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1716
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1717
|
-
case "InternalServerException":
|
|
1718
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1719
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1720
|
-
case "ResourceNotFoundException":
|
|
1721
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
1722
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1723
|
-
case "ThrottlingException":
|
|
1724
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1725
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1726
|
-
case "ValidationException":
|
|
1727
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1728
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1729
|
-
default:
|
|
1730
|
-
const parsedBody = parsedOutput.body;
|
|
1731
|
-
return throwDefaultError({
|
|
1732
|
-
output,
|
|
1733
|
-
parsedBody,
|
|
1734
|
-
errorCode,
|
|
1735
|
-
});
|
|
1736
|
-
}
|
|
1737
|
-
};
|
|
1738
|
-
export const de_GetBatchImportJobsCommand = async (output, context) => {
|
|
884
|
+
export const de_GetDetectorVersionCommand = async (output, context) => {
|
|
1739
885
|
if (output.statusCode >= 300) {
|
|
1740
|
-
return
|
|
886
|
+
return de_CommandError(output, context);
|
|
1741
887
|
}
|
|
1742
888
|
const data = await parseBody(output.body, context);
|
|
1743
889
|
let contents = {};
|
|
@@ -1748,40 +894,9 @@ export const de_GetBatchImportJobsCommand = async (output, context) => {
|
|
|
1748
894
|
};
|
|
1749
895
|
return response;
|
|
1750
896
|
};
|
|
1751
|
-
const
|
|
1752
|
-
const parsedOutput = {
|
|
1753
|
-
...output,
|
|
1754
|
-
body: await parseErrorBody(output.body, context),
|
|
1755
|
-
};
|
|
1756
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1757
|
-
switch (errorCode) {
|
|
1758
|
-
case "AccessDeniedException":
|
|
1759
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1760
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1761
|
-
case "InternalServerException":
|
|
1762
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1763
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1764
|
-
case "ResourceNotFoundException":
|
|
1765
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
1766
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1767
|
-
case "ThrottlingException":
|
|
1768
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1769
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1770
|
-
case "ValidationException":
|
|
1771
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1772
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1773
|
-
default:
|
|
1774
|
-
const parsedBody = parsedOutput.body;
|
|
1775
|
-
return throwDefaultError({
|
|
1776
|
-
output,
|
|
1777
|
-
parsedBody,
|
|
1778
|
-
errorCode,
|
|
1779
|
-
});
|
|
1780
|
-
}
|
|
1781
|
-
};
|
|
1782
|
-
export const de_GetBatchPredictionJobsCommand = async (output, context) => {
|
|
897
|
+
export const de_GetEntityTypesCommand = async (output, context) => {
|
|
1783
898
|
if (output.statusCode >= 300) {
|
|
1784
|
-
return
|
|
899
|
+
return de_CommandError(output, context);
|
|
1785
900
|
}
|
|
1786
901
|
const data = await parseBody(output.body, context);
|
|
1787
902
|
let contents = {};
|
|
@@ -1792,40 +907,9 @@ export const de_GetBatchPredictionJobsCommand = async (output, context) => {
|
|
|
1792
907
|
};
|
|
1793
908
|
return response;
|
|
1794
909
|
};
|
|
1795
|
-
const
|
|
1796
|
-
const parsedOutput = {
|
|
1797
|
-
...output,
|
|
1798
|
-
body: await parseErrorBody(output.body, context),
|
|
1799
|
-
};
|
|
1800
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1801
|
-
switch (errorCode) {
|
|
1802
|
-
case "AccessDeniedException":
|
|
1803
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1804
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1805
|
-
case "InternalServerException":
|
|
1806
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1807
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1808
|
-
case "ResourceNotFoundException":
|
|
1809
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
1810
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1811
|
-
case "ThrottlingException":
|
|
1812
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1813
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1814
|
-
case "ValidationException":
|
|
1815
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1816
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1817
|
-
default:
|
|
1818
|
-
const parsedBody = parsedOutput.body;
|
|
1819
|
-
return throwDefaultError({
|
|
1820
|
-
output,
|
|
1821
|
-
parsedBody,
|
|
1822
|
-
errorCode,
|
|
1823
|
-
});
|
|
1824
|
-
}
|
|
1825
|
-
};
|
|
1826
|
-
export const de_GetDeleteEventsByEventTypeStatusCommand = async (output, context) => {
|
|
910
|
+
export const de_GetEventCommand = async (output, context) => {
|
|
1827
911
|
if (output.statusCode >= 300) {
|
|
1828
|
-
return
|
|
912
|
+
return de_CommandError(output, context);
|
|
1829
913
|
}
|
|
1830
914
|
const data = await parseBody(output.body, context);
|
|
1831
915
|
let contents = {};
|
|
@@ -1836,216 +920,9 @@ export const de_GetDeleteEventsByEventTypeStatusCommand = async (output, context
|
|
|
1836
920
|
};
|
|
1837
921
|
return response;
|
|
1838
922
|
};
|
|
1839
|
-
const de_GetDeleteEventsByEventTypeStatusCommandError = async (output, context) => {
|
|
1840
|
-
const parsedOutput = {
|
|
1841
|
-
...output,
|
|
1842
|
-
body: await parseErrorBody(output.body, context),
|
|
1843
|
-
};
|
|
1844
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1845
|
-
switch (errorCode) {
|
|
1846
|
-
case "AccessDeniedException":
|
|
1847
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1848
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1849
|
-
case "InternalServerException":
|
|
1850
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1851
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1852
|
-
case "ResourceNotFoundException":
|
|
1853
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
1854
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1855
|
-
case "ThrottlingException":
|
|
1856
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1857
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1858
|
-
case "ValidationException":
|
|
1859
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1860
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1861
|
-
default:
|
|
1862
|
-
const parsedBody = parsedOutput.body;
|
|
1863
|
-
return throwDefaultError({
|
|
1864
|
-
output,
|
|
1865
|
-
parsedBody,
|
|
1866
|
-
errorCode,
|
|
1867
|
-
});
|
|
1868
|
-
}
|
|
1869
|
-
};
|
|
1870
|
-
export const de_GetDetectorsCommand = async (output, context) => {
|
|
1871
|
-
if (output.statusCode >= 300) {
|
|
1872
|
-
return de_GetDetectorsCommandError(output, context);
|
|
1873
|
-
}
|
|
1874
|
-
const data = await parseBody(output.body, context);
|
|
1875
|
-
let contents = {};
|
|
1876
|
-
contents = _json(data);
|
|
1877
|
-
const response = {
|
|
1878
|
-
$metadata: deserializeMetadata(output),
|
|
1879
|
-
...contents,
|
|
1880
|
-
};
|
|
1881
|
-
return response;
|
|
1882
|
-
};
|
|
1883
|
-
const de_GetDetectorsCommandError = async (output, context) => {
|
|
1884
|
-
const parsedOutput = {
|
|
1885
|
-
...output,
|
|
1886
|
-
body: await parseErrorBody(output.body, context),
|
|
1887
|
-
};
|
|
1888
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1889
|
-
switch (errorCode) {
|
|
1890
|
-
case "AccessDeniedException":
|
|
1891
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1892
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1893
|
-
case "InternalServerException":
|
|
1894
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1895
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1896
|
-
case "ResourceNotFoundException":
|
|
1897
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
1898
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1899
|
-
case "ThrottlingException":
|
|
1900
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1901
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1902
|
-
case "ValidationException":
|
|
1903
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1904
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1905
|
-
default:
|
|
1906
|
-
const parsedBody = parsedOutput.body;
|
|
1907
|
-
return throwDefaultError({
|
|
1908
|
-
output,
|
|
1909
|
-
parsedBody,
|
|
1910
|
-
errorCode,
|
|
1911
|
-
});
|
|
1912
|
-
}
|
|
1913
|
-
};
|
|
1914
|
-
export const de_GetDetectorVersionCommand = async (output, context) => {
|
|
1915
|
-
if (output.statusCode >= 300) {
|
|
1916
|
-
return de_GetDetectorVersionCommandError(output, context);
|
|
1917
|
-
}
|
|
1918
|
-
const data = await parseBody(output.body, context);
|
|
1919
|
-
let contents = {};
|
|
1920
|
-
contents = _json(data);
|
|
1921
|
-
const response = {
|
|
1922
|
-
$metadata: deserializeMetadata(output),
|
|
1923
|
-
...contents,
|
|
1924
|
-
};
|
|
1925
|
-
return response;
|
|
1926
|
-
};
|
|
1927
|
-
const de_GetDetectorVersionCommandError = async (output, context) => {
|
|
1928
|
-
const parsedOutput = {
|
|
1929
|
-
...output,
|
|
1930
|
-
body: await parseErrorBody(output.body, context),
|
|
1931
|
-
};
|
|
1932
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1933
|
-
switch (errorCode) {
|
|
1934
|
-
case "AccessDeniedException":
|
|
1935
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1936
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1937
|
-
case "InternalServerException":
|
|
1938
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1939
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1940
|
-
case "ResourceNotFoundException":
|
|
1941
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
1942
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1943
|
-
case "ThrottlingException":
|
|
1944
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1945
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1946
|
-
case "ValidationException":
|
|
1947
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1948
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1949
|
-
default:
|
|
1950
|
-
const parsedBody = parsedOutput.body;
|
|
1951
|
-
return throwDefaultError({
|
|
1952
|
-
output,
|
|
1953
|
-
parsedBody,
|
|
1954
|
-
errorCode,
|
|
1955
|
-
});
|
|
1956
|
-
}
|
|
1957
|
-
};
|
|
1958
|
-
export const de_GetEntityTypesCommand = async (output, context) => {
|
|
1959
|
-
if (output.statusCode >= 300) {
|
|
1960
|
-
return de_GetEntityTypesCommandError(output, context);
|
|
1961
|
-
}
|
|
1962
|
-
const data = await parseBody(output.body, context);
|
|
1963
|
-
let contents = {};
|
|
1964
|
-
contents = _json(data);
|
|
1965
|
-
const response = {
|
|
1966
|
-
$metadata: deserializeMetadata(output),
|
|
1967
|
-
...contents,
|
|
1968
|
-
};
|
|
1969
|
-
return response;
|
|
1970
|
-
};
|
|
1971
|
-
const de_GetEntityTypesCommandError = async (output, context) => {
|
|
1972
|
-
const parsedOutput = {
|
|
1973
|
-
...output,
|
|
1974
|
-
body: await parseErrorBody(output.body, context),
|
|
1975
|
-
};
|
|
1976
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1977
|
-
switch (errorCode) {
|
|
1978
|
-
case "AccessDeniedException":
|
|
1979
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1980
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1981
|
-
case "InternalServerException":
|
|
1982
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1983
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1984
|
-
case "ResourceNotFoundException":
|
|
1985
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
1986
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1987
|
-
case "ThrottlingException":
|
|
1988
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1989
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1990
|
-
case "ValidationException":
|
|
1991
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1992
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1993
|
-
default:
|
|
1994
|
-
const parsedBody = parsedOutput.body;
|
|
1995
|
-
return throwDefaultError({
|
|
1996
|
-
output,
|
|
1997
|
-
parsedBody,
|
|
1998
|
-
errorCode,
|
|
1999
|
-
});
|
|
2000
|
-
}
|
|
2001
|
-
};
|
|
2002
|
-
export const de_GetEventCommand = async (output, context) => {
|
|
2003
|
-
if (output.statusCode >= 300) {
|
|
2004
|
-
return de_GetEventCommandError(output, context);
|
|
2005
|
-
}
|
|
2006
|
-
const data = await parseBody(output.body, context);
|
|
2007
|
-
let contents = {};
|
|
2008
|
-
contents = _json(data);
|
|
2009
|
-
const response = {
|
|
2010
|
-
$metadata: deserializeMetadata(output),
|
|
2011
|
-
...contents,
|
|
2012
|
-
};
|
|
2013
|
-
return response;
|
|
2014
|
-
};
|
|
2015
|
-
const de_GetEventCommandError = async (output, context) => {
|
|
2016
|
-
const parsedOutput = {
|
|
2017
|
-
...output,
|
|
2018
|
-
body: await parseErrorBody(output.body, context),
|
|
2019
|
-
};
|
|
2020
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2021
|
-
switch (errorCode) {
|
|
2022
|
-
case "AccessDeniedException":
|
|
2023
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2024
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2025
|
-
case "InternalServerException":
|
|
2026
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2027
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2028
|
-
case "ResourceNotFoundException":
|
|
2029
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2030
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2031
|
-
case "ThrottlingException":
|
|
2032
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2033
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2034
|
-
case "ValidationException":
|
|
2035
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2036
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2037
|
-
default:
|
|
2038
|
-
const parsedBody = parsedOutput.body;
|
|
2039
|
-
return throwDefaultError({
|
|
2040
|
-
output,
|
|
2041
|
-
parsedBody,
|
|
2042
|
-
errorCode,
|
|
2043
|
-
});
|
|
2044
|
-
}
|
|
2045
|
-
};
|
|
2046
923
|
export const de_GetEventPredictionCommand = async (output, context) => {
|
|
2047
924
|
if (output.statusCode >= 300) {
|
|
2048
|
-
return
|
|
925
|
+
return de_CommandError(output, context);
|
|
2049
926
|
}
|
|
2050
927
|
const data = await parseBody(output.body, context);
|
|
2051
928
|
let contents = {};
|
|
@@ -2056,178 +933,22 @@ export const de_GetEventPredictionCommand = async (output, context) => {
|
|
|
2056
933
|
};
|
|
2057
934
|
return response;
|
|
2058
935
|
};
|
|
2059
|
-
const de_GetEventPredictionCommandError = async (output, context) => {
|
|
2060
|
-
const parsedOutput = {
|
|
2061
|
-
...output,
|
|
2062
|
-
body: await parseErrorBody(output.body, context),
|
|
2063
|
-
};
|
|
2064
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2065
|
-
switch (errorCode) {
|
|
2066
|
-
case "AccessDeniedException":
|
|
2067
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2068
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2069
|
-
case "ConflictException":
|
|
2070
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
2071
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2072
|
-
case "InternalServerException":
|
|
2073
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2074
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2075
|
-
case "ResourceNotFoundException":
|
|
2076
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2077
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2078
|
-
case "ResourceUnavailableException":
|
|
2079
|
-
case "com.amazonaws.frauddetector#ResourceUnavailableException":
|
|
2080
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
2081
|
-
case "ThrottlingException":
|
|
2082
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2083
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2084
|
-
case "ValidationException":
|
|
2085
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2086
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2087
|
-
default:
|
|
2088
|
-
const parsedBody = parsedOutput.body;
|
|
2089
|
-
return throwDefaultError({
|
|
2090
|
-
output,
|
|
2091
|
-
parsedBody,
|
|
2092
|
-
errorCode,
|
|
2093
|
-
});
|
|
2094
|
-
}
|
|
2095
|
-
};
|
|
2096
936
|
export const de_GetEventPredictionMetadataCommand = async (output, context) => {
|
|
2097
937
|
if (output.statusCode >= 300) {
|
|
2098
|
-
return
|
|
938
|
+
return de_CommandError(output, context);
|
|
2099
939
|
}
|
|
2100
940
|
const data = await parseBody(output.body, context);
|
|
2101
941
|
let contents = {};
|
|
2102
942
|
contents = de_GetEventPredictionMetadataResult(data, context);
|
|
2103
943
|
const response = {
|
|
2104
944
|
$metadata: deserializeMetadata(output),
|
|
2105
|
-
...contents,
|
|
2106
|
-
};
|
|
2107
|
-
return response;
|
|
2108
|
-
};
|
|
2109
|
-
const de_GetEventPredictionMetadataCommandError = async (output, context) => {
|
|
2110
|
-
const parsedOutput = {
|
|
2111
|
-
...output,
|
|
2112
|
-
body: await parseErrorBody(output.body, context),
|
|
2113
|
-
};
|
|
2114
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2115
|
-
switch (errorCode) {
|
|
2116
|
-
case "AccessDeniedException":
|
|
2117
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2118
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2119
|
-
case "InternalServerException":
|
|
2120
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2121
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2122
|
-
case "ResourceNotFoundException":
|
|
2123
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2124
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2125
|
-
case "ThrottlingException":
|
|
2126
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2127
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2128
|
-
case "ValidationException":
|
|
2129
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2130
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2131
|
-
default:
|
|
2132
|
-
const parsedBody = parsedOutput.body;
|
|
2133
|
-
return throwDefaultError({
|
|
2134
|
-
output,
|
|
2135
|
-
parsedBody,
|
|
2136
|
-
errorCode,
|
|
2137
|
-
});
|
|
2138
|
-
}
|
|
2139
|
-
};
|
|
2140
|
-
export const de_GetEventTypesCommand = async (output, context) => {
|
|
2141
|
-
if (output.statusCode >= 300) {
|
|
2142
|
-
return de_GetEventTypesCommandError(output, context);
|
|
2143
|
-
}
|
|
2144
|
-
const data = await parseBody(output.body, context);
|
|
2145
|
-
let contents = {};
|
|
2146
|
-
contents = _json(data);
|
|
2147
|
-
const response = {
|
|
2148
|
-
$metadata: deserializeMetadata(output),
|
|
2149
|
-
...contents,
|
|
2150
|
-
};
|
|
2151
|
-
return response;
|
|
2152
|
-
};
|
|
2153
|
-
const de_GetEventTypesCommandError = async (output, context) => {
|
|
2154
|
-
const parsedOutput = {
|
|
2155
|
-
...output,
|
|
2156
|
-
body: await parseErrorBody(output.body, context),
|
|
2157
|
-
};
|
|
2158
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2159
|
-
switch (errorCode) {
|
|
2160
|
-
case "AccessDeniedException":
|
|
2161
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2162
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2163
|
-
case "InternalServerException":
|
|
2164
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2165
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2166
|
-
case "ResourceNotFoundException":
|
|
2167
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2168
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2169
|
-
case "ThrottlingException":
|
|
2170
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2171
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2172
|
-
case "ValidationException":
|
|
2173
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2174
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2175
|
-
default:
|
|
2176
|
-
const parsedBody = parsedOutput.body;
|
|
2177
|
-
return throwDefaultError({
|
|
2178
|
-
output,
|
|
2179
|
-
parsedBody,
|
|
2180
|
-
errorCode,
|
|
2181
|
-
});
|
|
2182
|
-
}
|
|
2183
|
-
};
|
|
2184
|
-
export const de_GetExternalModelsCommand = async (output, context) => {
|
|
2185
|
-
if (output.statusCode >= 300) {
|
|
2186
|
-
return de_GetExternalModelsCommandError(output, context);
|
|
2187
|
-
}
|
|
2188
|
-
const data = await parseBody(output.body, context);
|
|
2189
|
-
let contents = {};
|
|
2190
|
-
contents = _json(data);
|
|
2191
|
-
const response = {
|
|
2192
|
-
$metadata: deserializeMetadata(output),
|
|
2193
|
-
...contents,
|
|
2194
|
-
};
|
|
2195
|
-
return response;
|
|
2196
|
-
};
|
|
2197
|
-
const de_GetExternalModelsCommandError = async (output, context) => {
|
|
2198
|
-
const parsedOutput = {
|
|
2199
|
-
...output,
|
|
2200
|
-
body: await parseErrorBody(output.body, context),
|
|
2201
|
-
};
|
|
2202
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2203
|
-
switch (errorCode) {
|
|
2204
|
-
case "AccessDeniedException":
|
|
2205
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2206
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2207
|
-
case "InternalServerException":
|
|
2208
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2209
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2210
|
-
case "ResourceNotFoundException":
|
|
2211
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2212
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2213
|
-
case "ThrottlingException":
|
|
2214
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2215
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2216
|
-
case "ValidationException":
|
|
2217
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2218
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2219
|
-
default:
|
|
2220
|
-
const parsedBody = parsedOutput.body;
|
|
2221
|
-
return throwDefaultError({
|
|
2222
|
-
output,
|
|
2223
|
-
parsedBody,
|
|
2224
|
-
errorCode,
|
|
2225
|
-
});
|
|
2226
|
-
}
|
|
945
|
+
...contents,
|
|
946
|
+
};
|
|
947
|
+
return response;
|
|
2227
948
|
};
|
|
2228
|
-
export const
|
|
949
|
+
export const de_GetEventTypesCommand = async (output, context) => {
|
|
2229
950
|
if (output.statusCode >= 300) {
|
|
2230
|
-
return
|
|
951
|
+
return de_CommandError(output, context);
|
|
2231
952
|
}
|
|
2232
953
|
const data = await parseBody(output.body, context);
|
|
2233
954
|
let contents = {};
|
|
@@ -2238,37 +959,9 @@ export const de_GetKMSEncryptionKeyCommand = async (output, context) => {
|
|
|
2238
959
|
};
|
|
2239
960
|
return response;
|
|
2240
961
|
};
|
|
2241
|
-
const
|
|
2242
|
-
const parsedOutput = {
|
|
2243
|
-
...output,
|
|
2244
|
-
body: await parseErrorBody(output.body, context),
|
|
2245
|
-
};
|
|
2246
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2247
|
-
switch (errorCode) {
|
|
2248
|
-
case "AccessDeniedException":
|
|
2249
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2250
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2251
|
-
case "InternalServerException":
|
|
2252
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2253
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2254
|
-
case "ResourceNotFoundException":
|
|
2255
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2256
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2257
|
-
case "ThrottlingException":
|
|
2258
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2259
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2260
|
-
default:
|
|
2261
|
-
const parsedBody = parsedOutput.body;
|
|
2262
|
-
return throwDefaultError({
|
|
2263
|
-
output,
|
|
2264
|
-
parsedBody,
|
|
2265
|
-
errorCode,
|
|
2266
|
-
});
|
|
2267
|
-
}
|
|
2268
|
-
};
|
|
2269
|
-
export const de_GetLabelsCommand = async (output, context) => {
|
|
962
|
+
export const de_GetExternalModelsCommand = async (output, context) => {
|
|
2270
963
|
if (output.statusCode >= 300) {
|
|
2271
|
-
return
|
|
964
|
+
return de_CommandError(output, context);
|
|
2272
965
|
}
|
|
2273
966
|
const data = await parseBody(output.body, context);
|
|
2274
967
|
let contents = {};
|
|
@@ -2279,40 +972,9 @@ export const de_GetLabelsCommand = async (output, context) => {
|
|
|
2279
972
|
};
|
|
2280
973
|
return response;
|
|
2281
974
|
};
|
|
2282
|
-
const
|
|
2283
|
-
const parsedOutput = {
|
|
2284
|
-
...output,
|
|
2285
|
-
body: await parseErrorBody(output.body, context),
|
|
2286
|
-
};
|
|
2287
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2288
|
-
switch (errorCode) {
|
|
2289
|
-
case "AccessDeniedException":
|
|
2290
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2291
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2292
|
-
case "InternalServerException":
|
|
2293
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2294
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2295
|
-
case "ResourceNotFoundException":
|
|
2296
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2297
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2298
|
-
case "ThrottlingException":
|
|
2299
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2300
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2301
|
-
case "ValidationException":
|
|
2302
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2303
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2304
|
-
default:
|
|
2305
|
-
const parsedBody = parsedOutput.body;
|
|
2306
|
-
return throwDefaultError({
|
|
2307
|
-
output,
|
|
2308
|
-
parsedBody,
|
|
2309
|
-
errorCode,
|
|
2310
|
-
});
|
|
2311
|
-
}
|
|
2312
|
-
};
|
|
2313
|
-
export const de_GetListElementsCommand = async (output, context) => {
|
|
975
|
+
export const de_GetKMSEncryptionKeyCommand = async (output, context) => {
|
|
2314
976
|
if (output.statusCode >= 300) {
|
|
2315
|
-
return
|
|
977
|
+
return de_CommandError(output, context);
|
|
2316
978
|
}
|
|
2317
979
|
const data = await parseBody(output.body, context);
|
|
2318
980
|
let contents = {};
|
|
@@ -2323,40 +985,9 @@ export const de_GetListElementsCommand = async (output, context) => {
|
|
|
2323
985
|
};
|
|
2324
986
|
return response;
|
|
2325
987
|
};
|
|
2326
|
-
const
|
|
2327
|
-
const parsedOutput = {
|
|
2328
|
-
...output,
|
|
2329
|
-
body: await parseErrorBody(output.body, context),
|
|
2330
|
-
};
|
|
2331
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2332
|
-
switch (errorCode) {
|
|
2333
|
-
case "AccessDeniedException":
|
|
2334
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2335
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2336
|
-
case "InternalServerException":
|
|
2337
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2338
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2339
|
-
case "ResourceNotFoundException":
|
|
2340
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2341
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2342
|
-
case "ThrottlingException":
|
|
2343
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2344
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2345
|
-
case "ValidationException":
|
|
2346
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2347
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2348
|
-
default:
|
|
2349
|
-
const parsedBody = parsedOutput.body;
|
|
2350
|
-
return throwDefaultError({
|
|
2351
|
-
output,
|
|
2352
|
-
parsedBody,
|
|
2353
|
-
errorCode,
|
|
2354
|
-
});
|
|
2355
|
-
}
|
|
2356
|
-
};
|
|
2357
|
-
export const de_GetListsMetadataCommand = async (output, context) => {
|
|
988
|
+
export const de_GetLabelsCommand = async (output, context) => {
|
|
2358
989
|
if (output.statusCode >= 300) {
|
|
2359
|
-
return
|
|
990
|
+
return de_CommandError(output, context);
|
|
2360
991
|
}
|
|
2361
992
|
const data = await parseBody(output.body, context);
|
|
2362
993
|
let contents = {};
|
|
@@ -2367,40 +998,9 @@ export const de_GetListsMetadataCommand = async (output, context) => {
|
|
|
2367
998
|
};
|
|
2368
999
|
return response;
|
|
2369
1000
|
};
|
|
2370
|
-
const
|
|
2371
|
-
const parsedOutput = {
|
|
2372
|
-
...output,
|
|
2373
|
-
body: await parseErrorBody(output.body, context),
|
|
2374
|
-
};
|
|
2375
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2376
|
-
switch (errorCode) {
|
|
2377
|
-
case "AccessDeniedException":
|
|
2378
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2379
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2380
|
-
case "InternalServerException":
|
|
2381
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2382
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2383
|
-
case "ResourceNotFoundException":
|
|
2384
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2385
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2386
|
-
case "ThrottlingException":
|
|
2387
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2388
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2389
|
-
case "ValidationException":
|
|
2390
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2391
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2392
|
-
default:
|
|
2393
|
-
const parsedBody = parsedOutput.body;
|
|
2394
|
-
return throwDefaultError({
|
|
2395
|
-
output,
|
|
2396
|
-
parsedBody,
|
|
2397
|
-
errorCode,
|
|
2398
|
-
});
|
|
2399
|
-
}
|
|
2400
|
-
};
|
|
2401
|
-
export const de_GetModelsCommand = async (output, context) => {
|
|
1001
|
+
export const de_GetListElementsCommand = async (output, context) => {
|
|
2402
1002
|
if (output.statusCode >= 300) {
|
|
2403
|
-
return
|
|
1003
|
+
return de_CommandError(output, context);
|
|
2404
1004
|
}
|
|
2405
1005
|
const data = await parseBody(output.body, context);
|
|
2406
1006
|
let contents = {};
|
|
@@ -2411,40 +1011,9 @@ export const de_GetModelsCommand = async (output, context) => {
|
|
|
2411
1011
|
};
|
|
2412
1012
|
return response;
|
|
2413
1013
|
};
|
|
2414
|
-
const
|
|
2415
|
-
const parsedOutput = {
|
|
2416
|
-
...output,
|
|
2417
|
-
body: await parseErrorBody(output.body, context),
|
|
2418
|
-
};
|
|
2419
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2420
|
-
switch (errorCode) {
|
|
2421
|
-
case "AccessDeniedException":
|
|
2422
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2423
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2424
|
-
case "InternalServerException":
|
|
2425
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2426
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2427
|
-
case "ResourceNotFoundException":
|
|
2428
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2429
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2430
|
-
case "ThrottlingException":
|
|
2431
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2432
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2433
|
-
case "ValidationException":
|
|
2434
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2435
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2436
|
-
default:
|
|
2437
|
-
const parsedBody = parsedOutput.body;
|
|
2438
|
-
return throwDefaultError({
|
|
2439
|
-
output,
|
|
2440
|
-
parsedBody,
|
|
2441
|
-
errorCode,
|
|
2442
|
-
});
|
|
2443
|
-
}
|
|
2444
|
-
};
|
|
2445
|
-
export const de_GetModelVersionCommand = async (output, context) => {
|
|
1014
|
+
export const de_GetListsMetadataCommand = async (output, context) => {
|
|
2446
1015
|
if (output.statusCode >= 300) {
|
|
2447
|
-
return
|
|
1016
|
+
return de_CommandError(output, context);
|
|
2448
1017
|
}
|
|
2449
1018
|
const data = await parseBody(output.body, context);
|
|
2450
1019
|
let contents = {};
|
|
@@ -2455,40 +1024,9 @@ export const de_GetModelVersionCommand = async (output, context) => {
|
|
|
2455
1024
|
};
|
|
2456
1025
|
return response;
|
|
2457
1026
|
};
|
|
2458
|
-
const
|
|
2459
|
-
const parsedOutput = {
|
|
2460
|
-
...output,
|
|
2461
|
-
body: await parseErrorBody(output.body, context),
|
|
2462
|
-
};
|
|
2463
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2464
|
-
switch (errorCode) {
|
|
2465
|
-
case "AccessDeniedException":
|
|
2466
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2467
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2468
|
-
case "InternalServerException":
|
|
2469
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2470
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2471
|
-
case "ResourceNotFoundException":
|
|
2472
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2473
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2474
|
-
case "ThrottlingException":
|
|
2475
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2476
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2477
|
-
case "ValidationException":
|
|
2478
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2479
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2480
|
-
default:
|
|
2481
|
-
const parsedBody = parsedOutput.body;
|
|
2482
|
-
return throwDefaultError({
|
|
2483
|
-
output,
|
|
2484
|
-
parsedBody,
|
|
2485
|
-
errorCode,
|
|
2486
|
-
});
|
|
2487
|
-
}
|
|
2488
|
-
};
|
|
2489
|
-
export const de_GetOutcomesCommand = async (output, context) => {
|
|
1027
|
+
export const de_GetModelsCommand = async (output, context) => {
|
|
2490
1028
|
if (output.statusCode >= 300) {
|
|
2491
|
-
return
|
|
1029
|
+
return de_CommandError(output, context);
|
|
2492
1030
|
}
|
|
2493
1031
|
const data = await parseBody(output.body, context);
|
|
2494
1032
|
let contents = {};
|
|
@@ -2499,40 +1037,9 @@ export const de_GetOutcomesCommand = async (output, context) => {
|
|
|
2499
1037
|
};
|
|
2500
1038
|
return response;
|
|
2501
1039
|
};
|
|
2502
|
-
const
|
|
2503
|
-
const parsedOutput = {
|
|
2504
|
-
...output,
|
|
2505
|
-
body: await parseErrorBody(output.body, context),
|
|
2506
|
-
};
|
|
2507
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2508
|
-
switch (errorCode) {
|
|
2509
|
-
case "AccessDeniedException":
|
|
2510
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2511
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2512
|
-
case "InternalServerException":
|
|
2513
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2514
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2515
|
-
case "ResourceNotFoundException":
|
|
2516
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2517
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2518
|
-
case "ThrottlingException":
|
|
2519
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2520
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2521
|
-
case "ValidationException":
|
|
2522
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2523
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2524
|
-
default:
|
|
2525
|
-
const parsedBody = parsedOutput.body;
|
|
2526
|
-
return throwDefaultError({
|
|
2527
|
-
output,
|
|
2528
|
-
parsedBody,
|
|
2529
|
-
errorCode,
|
|
2530
|
-
});
|
|
2531
|
-
}
|
|
2532
|
-
};
|
|
2533
|
-
export const de_GetRulesCommand = async (output, context) => {
|
|
1040
|
+
export const de_GetModelVersionCommand = async (output, context) => {
|
|
2534
1041
|
if (output.statusCode >= 300) {
|
|
2535
|
-
return
|
|
1042
|
+
return de_CommandError(output, context);
|
|
2536
1043
|
}
|
|
2537
1044
|
const data = await parseBody(output.body, context);
|
|
2538
1045
|
let contents = {};
|
|
@@ -2543,40 +1050,22 @@ export const de_GetRulesCommand = async (output, context) => {
|
|
|
2543
1050
|
};
|
|
2544
1051
|
return response;
|
|
2545
1052
|
};
|
|
2546
|
-
const
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
body: await parseErrorBody(output.body, context),
|
|
2550
|
-
};
|
|
2551
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2552
|
-
switch (errorCode) {
|
|
2553
|
-
case "AccessDeniedException":
|
|
2554
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2555
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2556
|
-
case "InternalServerException":
|
|
2557
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2558
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2559
|
-
case "ResourceNotFoundException":
|
|
2560
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2561
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2562
|
-
case "ThrottlingException":
|
|
2563
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2564
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2565
|
-
case "ValidationException":
|
|
2566
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2567
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2568
|
-
default:
|
|
2569
|
-
const parsedBody = parsedOutput.body;
|
|
2570
|
-
return throwDefaultError({
|
|
2571
|
-
output,
|
|
2572
|
-
parsedBody,
|
|
2573
|
-
errorCode,
|
|
2574
|
-
});
|
|
1053
|
+
export const de_GetOutcomesCommand = async (output, context) => {
|
|
1054
|
+
if (output.statusCode >= 300) {
|
|
1055
|
+
return de_CommandError(output, context);
|
|
2575
1056
|
}
|
|
1057
|
+
const data = await parseBody(output.body, context);
|
|
1058
|
+
let contents = {};
|
|
1059
|
+
contents = _json(data);
|
|
1060
|
+
const response = {
|
|
1061
|
+
$metadata: deserializeMetadata(output),
|
|
1062
|
+
...contents,
|
|
1063
|
+
};
|
|
1064
|
+
return response;
|
|
2576
1065
|
};
|
|
2577
|
-
export const
|
|
1066
|
+
export const de_GetRulesCommand = async (output, context) => {
|
|
2578
1067
|
if (output.statusCode >= 300) {
|
|
2579
|
-
return
|
|
1068
|
+
return de_CommandError(output, context);
|
|
2580
1069
|
}
|
|
2581
1070
|
const data = await parseBody(output.body, context);
|
|
2582
1071
|
let contents = {};
|
|
@@ -2587,40 +1076,22 @@ export const de_GetVariablesCommand = async (output, context) => {
|
|
|
2587
1076
|
};
|
|
2588
1077
|
return response;
|
|
2589
1078
|
};
|
|
2590
|
-
const
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
body: await parseErrorBody(output.body, context),
|
|
2594
|
-
};
|
|
2595
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2596
|
-
switch (errorCode) {
|
|
2597
|
-
case "AccessDeniedException":
|
|
2598
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2599
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2600
|
-
case "InternalServerException":
|
|
2601
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2602
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2603
|
-
case "ResourceNotFoundException":
|
|
2604
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2605
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2606
|
-
case "ThrottlingException":
|
|
2607
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2608
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2609
|
-
case "ValidationException":
|
|
2610
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2611
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2612
|
-
default:
|
|
2613
|
-
const parsedBody = parsedOutput.body;
|
|
2614
|
-
return throwDefaultError({
|
|
2615
|
-
output,
|
|
2616
|
-
parsedBody,
|
|
2617
|
-
errorCode,
|
|
2618
|
-
});
|
|
1079
|
+
export const de_GetVariablesCommand = async (output, context) => {
|
|
1080
|
+
if (output.statusCode >= 300) {
|
|
1081
|
+
return de_CommandError(output, context);
|
|
2619
1082
|
}
|
|
1083
|
+
const data = await parseBody(output.body, context);
|
|
1084
|
+
let contents = {};
|
|
1085
|
+
contents = _json(data);
|
|
1086
|
+
const response = {
|
|
1087
|
+
$metadata: deserializeMetadata(output),
|
|
1088
|
+
...contents,
|
|
1089
|
+
};
|
|
1090
|
+
return response;
|
|
2620
1091
|
};
|
|
2621
1092
|
export const de_ListEventPredictionsCommand = async (output, context) => {
|
|
2622
1093
|
if (output.statusCode >= 300) {
|
|
2623
|
-
return
|
|
1094
|
+
return de_CommandError(output, context);
|
|
2624
1095
|
}
|
|
2625
1096
|
const data = await parseBody(output.body, context);
|
|
2626
1097
|
let contents = {};
|
|
@@ -2631,37 +1102,9 @@ export const de_ListEventPredictionsCommand = async (output, context) => {
|
|
|
2631
1102
|
};
|
|
2632
1103
|
return response;
|
|
2633
1104
|
};
|
|
2634
|
-
const de_ListEventPredictionsCommandError = async (output, context) => {
|
|
2635
|
-
const parsedOutput = {
|
|
2636
|
-
...output,
|
|
2637
|
-
body: await parseErrorBody(output.body, context),
|
|
2638
|
-
};
|
|
2639
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2640
|
-
switch (errorCode) {
|
|
2641
|
-
case "AccessDeniedException":
|
|
2642
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2643
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2644
|
-
case "InternalServerException":
|
|
2645
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2646
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2647
|
-
case "ThrottlingException":
|
|
2648
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2649
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2650
|
-
case "ValidationException":
|
|
2651
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2652
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2653
|
-
default:
|
|
2654
|
-
const parsedBody = parsedOutput.body;
|
|
2655
|
-
return throwDefaultError({
|
|
2656
|
-
output,
|
|
2657
|
-
parsedBody,
|
|
2658
|
-
errorCode,
|
|
2659
|
-
});
|
|
2660
|
-
}
|
|
2661
|
-
};
|
|
2662
1105
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2663
1106
|
if (output.statusCode >= 300) {
|
|
2664
|
-
return
|
|
1107
|
+
return de_CommandError(output, context);
|
|
2665
1108
|
}
|
|
2666
1109
|
const data = await parseBody(output.body, context);
|
|
2667
1110
|
let contents = {};
|
|
@@ -2672,37 +1115,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
2672
1115
|
};
|
|
2673
1116
|
return response;
|
|
2674
1117
|
};
|
|
2675
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2676
|
-
const parsedOutput = {
|
|
2677
|
-
...output,
|
|
2678
|
-
body: await parseErrorBody(output.body, context),
|
|
2679
|
-
};
|
|
2680
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2681
|
-
switch (errorCode) {
|
|
2682
|
-
case "AccessDeniedException":
|
|
2683
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2684
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2685
|
-
case "ResourceNotFoundException":
|
|
2686
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2687
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2688
|
-
case "ThrottlingException":
|
|
2689
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2690
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2691
|
-
case "ValidationException":
|
|
2692
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2693
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2694
|
-
default:
|
|
2695
|
-
const parsedBody = parsedOutput.body;
|
|
2696
|
-
return throwDefaultError({
|
|
2697
|
-
output,
|
|
2698
|
-
parsedBody,
|
|
2699
|
-
errorCode,
|
|
2700
|
-
});
|
|
2701
|
-
}
|
|
2702
|
-
};
|
|
2703
1118
|
export const de_PutDetectorCommand = async (output, context) => {
|
|
2704
1119
|
if (output.statusCode >= 300) {
|
|
2705
|
-
return
|
|
1120
|
+
return de_CommandError(output, context);
|
|
2706
1121
|
}
|
|
2707
1122
|
const data = await parseBody(output.body, context);
|
|
2708
1123
|
let contents = {};
|
|
@@ -2713,40 +1128,9 @@ export const de_PutDetectorCommand = async (output, context) => {
|
|
|
2713
1128
|
};
|
|
2714
1129
|
return response;
|
|
2715
1130
|
};
|
|
2716
|
-
const de_PutDetectorCommandError = async (output, context) => {
|
|
2717
|
-
const parsedOutput = {
|
|
2718
|
-
...output,
|
|
2719
|
-
body: await parseErrorBody(output.body, context),
|
|
2720
|
-
};
|
|
2721
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2722
|
-
switch (errorCode) {
|
|
2723
|
-
case "AccessDeniedException":
|
|
2724
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2725
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2726
|
-
case "ConflictException":
|
|
2727
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
2728
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2729
|
-
case "InternalServerException":
|
|
2730
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2731
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2732
|
-
case "ThrottlingException":
|
|
2733
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2734
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2735
|
-
case "ValidationException":
|
|
2736
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2737
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2738
|
-
default:
|
|
2739
|
-
const parsedBody = parsedOutput.body;
|
|
2740
|
-
return throwDefaultError({
|
|
2741
|
-
output,
|
|
2742
|
-
parsedBody,
|
|
2743
|
-
errorCode,
|
|
2744
|
-
});
|
|
2745
|
-
}
|
|
2746
|
-
};
|
|
2747
1131
|
export const de_PutEntityTypeCommand = async (output, context) => {
|
|
2748
1132
|
if (output.statusCode >= 300) {
|
|
2749
|
-
return
|
|
1133
|
+
return de_CommandError(output, context);
|
|
2750
1134
|
}
|
|
2751
1135
|
const data = await parseBody(output.body, context);
|
|
2752
1136
|
let contents = {};
|
|
@@ -2757,40 +1141,9 @@ export const de_PutEntityTypeCommand = async (output, context) => {
|
|
|
2757
1141
|
};
|
|
2758
1142
|
return response;
|
|
2759
1143
|
};
|
|
2760
|
-
const de_PutEntityTypeCommandError = async (output, context) => {
|
|
2761
|
-
const parsedOutput = {
|
|
2762
|
-
...output,
|
|
2763
|
-
body: await parseErrorBody(output.body, context),
|
|
2764
|
-
};
|
|
2765
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2766
|
-
switch (errorCode) {
|
|
2767
|
-
case "AccessDeniedException":
|
|
2768
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2769
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2770
|
-
case "ConflictException":
|
|
2771
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
2772
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2773
|
-
case "InternalServerException":
|
|
2774
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2775
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2776
|
-
case "ThrottlingException":
|
|
2777
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2778
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2779
|
-
case "ValidationException":
|
|
2780
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2781
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2782
|
-
default:
|
|
2783
|
-
const parsedBody = parsedOutput.body;
|
|
2784
|
-
return throwDefaultError({
|
|
2785
|
-
output,
|
|
2786
|
-
parsedBody,
|
|
2787
|
-
errorCode,
|
|
2788
|
-
});
|
|
2789
|
-
}
|
|
2790
|
-
};
|
|
2791
1144
|
export const de_PutEventTypeCommand = async (output, context) => {
|
|
2792
1145
|
if (output.statusCode >= 300) {
|
|
2793
|
-
return
|
|
1146
|
+
return de_CommandError(output, context);
|
|
2794
1147
|
}
|
|
2795
1148
|
const data = await parseBody(output.body, context);
|
|
2796
1149
|
let contents = {};
|
|
@@ -2801,40 +1154,9 @@ export const de_PutEventTypeCommand = async (output, context) => {
|
|
|
2801
1154
|
};
|
|
2802
1155
|
return response;
|
|
2803
1156
|
};
|
|
2804
|
-
const de_PutEventTypeCommandError = async (output, context) => {
|
|
2805
|
-
const parsedOutput = {
|
|
2806
|
-
...output,
|
|
2807
|
-
body: await parseErrorBody(output.body, context),
|
|
2808
|
-
};
|
|
2809
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2810
|
-
switch (errorCode) {
|
|
2811
|
-
case "AccessDeniedException":
|
|
2812
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2813
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2814
|
-
case "ConflictException":
|
|
2815
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
2816
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2817
|
-
case "InternalServerException":
|
|
2818
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2819
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2820
|
-
case "ThrottlingException":
|
|
2821
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2822
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2823
|
-
case "ValidationException":
|
|
2824
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2825
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2826
|
-
default:
|
|
2827
|
-
const parsedBody = parsedOutput.body;
|
|
2828
|
-
return throwDefaultError({
|
|
2829
|
-
output,
|
|
2830
|
-
parsedBody,
|
|
2831
|
-
errorCode,
|
|
2832
|
-
});
|
|
2833
|
-
}
|
|
2834
|
-
};
|
|
2835
1157
|
export const de_PutExternalModelCommand = async (output, context) => {
|
|
2836
1158
|
if (output.statusCode >= 300) {
|
|
2837
|
-
return
|
|
1159
|
+
return de_CommandError(output, context);
|
|
2838
1160
|
}
|
|
2839
1161
|
const data = await parseBody(output.body, context);
|
|
2840
1162
|
let contents = {};
|
|
@@ -2845,40 +1167,9 @@ export const de_PutExternalModelCommand = async (output, context) => {
|
|
|
2845
1167
|
};
|
|
2846
1168
|
return response;
|
|
2847
1169
|
};
|
|
2848
|
-
const de_PutExternalModelCommandError = async (output, context) => {
|
|
2849
|
-
const parsedOutput = {
|
|
2850
|
-
...output,
|
|
2851
|
-
body: await parseErrorBody(output.body, context),
|
|
2852
|
-
};
|
|
2853
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2854
|
-
switch (errorCode) {
|
|
2855
|
-
case "AccessDeniedException":
|
|
2856
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2857
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2858
|
-
case "ConflictException":
|
|
2859
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
2860
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2861
|
-
case "InternalServerException":
|
|
2862
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2863
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2864
|
-
case "ThrottlingException":
|
|
2865
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2866
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2867
|
-
case "ValidationException":
|
|
2868
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2869
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2870
|
-
default:
|
|
2871
|
-
const parsedBody = parsedOutput.body;
|
|
2872
|
-
return throwDefaultError({
|
|
2873
|
-
output,
|
|
2874
|
-
parsedBody,
|
|
2875
|
-
errorCode,
|
|
2876
|
-
});
|
|
2877
|
-
}
|
|
2878
|
-
};
|
|
2879
1170
|
export const de_PutKMSEncryptionKeyCommand = async (output, context) => {
|
|
2880
1171
|
if (output.statusCode >= 300) {
|
|
2881
|
-
return
|
|
1172
|
+
return de_CommandError(output, context);
|
|
2882
1173
|
}
|
|
2883
1174
|
const data = await parseBody(output.body, context);
|
|
2884
1175
|
let contents = {};
|
|
@@ -2887,45 +1178,11 @@ export const de_PutKMSEncryptionKeyCommand = async (output, context) => {
|
|
|
2887
1178
|
$metadata: deserializeMetadata(output),
|
|
2888
1179
|
...contents,
|
|
2889
1180
|
};
|
|
2890
|
-
return response;
|
|
2891
|
-
};
|
|
2892
|
-
const de_PutKMSEncryptionKeyCommandError = async (output, context) => {
|
|
2893
|
-
const parsedOutput = {
|
|
2894
|
-
...output,
|
|
2895
|
-
body: await parseErrorBody(output.body, context),
|
|
2896
|
-
};
|
|
2897
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2898
|
-
switch (errorCode) {
|
|
2899
|
-
case "AccessDeniedException":
|
|
2900
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2901
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2902
|
-
case "ConflictException":
|
|
2903
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
2904
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2905
|
-
case "InternalServerException":
|
|
2906
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2907
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2908
|
-
case "ResourceNotFoundException":
|
|
2909
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2910
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2911
|
-
case "ThrottlingException":
|
|
2912
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2913
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2914
|
-
case "ValidationException":
|
|
2915
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2916
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2917
|
-
default:
|
|
2918
|
-
const parsedBody = parsedOutput.body;
|
|
2919
|
-
return throwDefaultError({
|
|
2920
|
-
output,
|
|
2921
|
-
parsedBody,
|
|
2922
|
-
errorCode,
|
|
2923
|
-
});
|
|
2924
|
-
}
|
|
1181
|
+
return response;
|
|
2925
1182
|
};
|
|
2926
1183
|
export const de_PutLabelCommand = async (output, context) => {
|
|
2927
1184
|
if (output.statusCode >= 300) {
|
|
2928
|
-
return
|
|
1185
|
+
return de_CommandError(output, context);
|
|
2929
1186
|
}
|
|
2930
1187
|
const data = await parseBody(output.body, context);
|
|
2931
1188
|
let contents = {};
|
|
@@ -2936,40 +1193,9 @@ export const de_PutLabelCommand = async (output, context) => {
|
|
|
2936
1193
|
};
|
|
2937
1194
|
return response;
|
|
2938
1195
|
};
|
|
2939
|
-
const de_PutLabelCommandError = async (output, context) => {
|
|
2940
|
-
const parsedOutput = {
|
|
2941
|
-
...output,
|
|
2942
|
-
body: await parseErrorBody(output.body, context),
|
|
2943
|
-
};
|
|
2944
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2945
|
-
switch (errorCode) {
|
|
2946
|
-
case "AccessDeniedException":
|
|
2947
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2948
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2949
|
-
case "ConflictException":
|
|
2950
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
2951
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2952
|
-
case "InternalServerException":
|
|
2953
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2954
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2955
|
-
case "ThrottlingException":
|
|
2956
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2957
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2958
|
-
case "ValidationException":
|
|
2959
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2960
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2961
|
-
default:
|
|
2962
|
-
const parsedBody = parsedOutput.body;
|
|
2963
|
-
return throwDefaultError({
|
|
2964
|
-
output,
|
|
2965
|
-
parsedBody,
|
|
2966
|
-
errorCode,
|
|
2967
|
-
});
|
|
2968
|
-
}
|
|
2969
|
-
};
|
|
2970
1196
|
export const de_PutOutcomeCommand = async (output, context) => {
|
|
2971
1197
|
if (output.statusCode >= 300) {
|
|
2972
|
-
return
|
|
1198
|
+
return de_CommandError(output, context);
|
|
2973
1199
|
}
|
|
2974
1200
|
const data = await parseBody(output.body, context);
|
|
2975
1201
|
let contents = {};
|
|
@@ -2980,40 +1206,9 @@ export const de_PutOutcomeCommand = async (output, context) => {
|
|
|
2980
1206
|
};
|
|
2981
1207
|
return response;
|
|
2982
1208
|
};
|
|
2983
|
-
const de_PutOutcomeCommandError = async (output, context) => {
|
|
2984
|
-
const parsedOutput = {
|
|
2985
|
-
...output,
|
|
2986
|
-
body: await parseErrorBody(output.body, context),
|
|
2987
|
-
};
|
|
2988
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2989
|
-
switch (errorCode) {
|
|
2990
|
-
case "AccessDeniedException":
|
|
2991
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2992
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2993
|
-
case "ConflictException":
|
|
2994
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
2995
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2996
|
-
case "InternalServerException":
|
|
2997
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2998
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2999
|
-
case "ThrottlingException":
|
|
3000
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3001
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3002
|
-
case "ValidationException":
|
|
3003
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3004
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3005
|
-
default:
|
|
3006
|
-
const parsedBody = parsedOutput.body;
|
|
3007
|
-
return throwDefaultError({
|
|
3008
|
-
output,
|
|
3009
|
-
parsedBody,
|
|
3010
|
-
errorCode,
|
|
3011
|
-
});
|
|
3012
|
-
}
|
|
3013
|
-
};
|
|
3014
1209
|
export const de_SendEventCommand = async (output, context) => {
|
|
3015
1210
|
if (output.statusCode >= 300) {
|
|
3016
|
-
return
|
|
1211
|
+
return de_CommandError(output, context);
|
|
3017
1212
|
}
|
|
3018
1213
|
const data = await parseBody(output.body, context);
|
|
3019
1214
|
let contents = {};
|
|
@@ -3024,43 +1219,9 @@ export const de_SendEventCommand = async (output, context) => {
|
|
|
3024
1219
|
};
|
|
3025
1220
|
return response;
|
|
3026
1221
|
};
|
|
3027
|
-
const de_SendEventCommandError = async (output, context) => {
|
|
3028
|
-
const parsedOutput = {
|
|
3029
|
-
...output,
|
|
3030
|
-
body: await parseErrorBody(output.body, context),
|
|
3031
|
-
};
|
|
3032
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3033
|
-
switch (errorCode) {
|
|
3034
|
-
case "AccessDeniedException":
|
|
3035
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3036
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3037
|
-
case "ConflictException":
|
|
3038
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3039
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3040
|
-
case "InternalServerException":
|
|
3041
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3042
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3043
|
-
case "ResourceNotFoundException":
|
|
3044
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3045
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3046
|
-
case "ThrottlingException":
|
|
3047
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3048
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3049
|
-
case "ValidationException":
|
|
3050
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3051
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3052
|
-
default:
|
|
3053
|
-
const parsedBody = parsedOutput.body;
|
|
3054
|
-
return throwDefaultError({
|
|
3055
|
-
output,
|
|
3056
|
-
parsedBody,
|
|
3057
|
-
errorCode,
|
|
3058
|
-
});
|
|
3059
|
-
}
|
|
3060
|
-
};
|
|
3061
1222
|
export const de_TagResourceCommand = async (output, context) => {
|
|
3062
1223
|
if (output.statusCode >= 300) {
|
|
3063
|
-
return
|
|
1224
|
+
return de_CommandError(output, context);
|
|
3064
1225
|
}
|
|
3065
1226
|
const data = await parseBody(output.body, context);
|
|
3066
1227
|
let contents = {};
|
|
@@ -3071,37 +1232,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
3071
1232
|
};
|
|
3072
1233
|
return response;
|
|
3073
1234
|
};
|
|
3074
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
3075
|
-
const parsedOutput = {
|
|
3076
|
-
...output,
|
|
3077
|
-
body: await parseErrorBody(output.body, context),
|
|
3078
|
-
};
|
|
3079
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3080
|
-
switch (errorCode) {
|
|
3081
|
-
case "AccessDeniedException":
|
|
3082
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3083
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3084
|
-
case "ResourceNotFoundException":
|
|
3085
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3086
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3087
|
-
case "ThrottlingException":
|
|
3088
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3089
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3090
|
-
case "ValidationException":
|
|
3091
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3092
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3093
|
-
default:
|
|
3094
|
-
const parsedBody = parsedOutput.body;
|
|
3095
|
-
return throwDefaultError({
|
|
3096
|
-
output,
|
|
3097
|
-
parsedBody,
|
|
3098
|
-
errorCode,
|
|
3099
|
-
});
|
|
3100
|
-
}
|
|
3101
|
-
};
|
|
3102
1235
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
3103
1236
|
if (output.statusCode >= 300) {
|
|
3104
|
-
return
|
|
1237
|
+
return de_CommandError(output, context);
|
|
3105
1238
|
}
|
|
3106
1239
|
const data = await parseBody(output.body, context);
|
|
3107
1240
|
let contents = {};
|
|
@@ -3112,37 +1245,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
3112
1245
|
};
|
|
3113
1246
|
return response;
|
|
3114
1247
|
};
|
|
3115
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
3116
|
-
const parsedOutput = {
|
|
3117
|
-
...output,
|
|
3118
|
-
body: await parseErrorBody(output.body, context),
|
|
3119
|
-
};
|
|
3120
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3121
|
-
switch (errorCode) {
|
|
3122
|
-
case "AccessDeniedException":
|
|
3123
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3124
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3125
|
-
case "ResourceNotFoundException":
|
|
3126
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3127
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3128
|
-
case "ThrottlingException":
|
|
3129
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3130
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3131
|
-
case "ValidationException":
|
|
3132
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3133
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3134
|
-
default:
|
|
3135
|
-
const parsedBody = parsedOutput.body;
|
|
3136
|
-
return throwDefaultError({
|
|
3137
|
-
output,
|
|
3138
|
-
parsedBody,
|
|
3139
|
-
errorCode,
|
|
3140
|
-
});
|
|
3141
|
-
}
|
|
3142
|
-
};
|
|
3143
1248
|
export const de_UpdateDetectorVersionCommand = async (output, context) => {
|
|
3144
1249
|
if (output.statusCode >= 300) {
|
|
3145
|
-
return
|
|
1250
|
+
return de_CommandError(output, context);
|
|
3146
1251
|
}
|
|
3147
1252
|
const data = await parseBody(output.body, context);
|
|
3148
1253
|
let contents = {};
|
|
@@ -3153,87 +1258,9 @@ export const de_UpdateDetectorVersionCommand = async (output, context) => {
|
|
|
3153
1258
|
};
|
|
3154
1259
|
return response;
|
|
3155
1260
|
};
|
|
3156
|
-
const de_UpdateDetectorVersionCommandError = async (output, context) => {
|
|
3157
|
-
const parsedOutput = {
|
|
3158
|
-
...output,
|
|
3159
|
-
body: await parseErrorBody(output.body, context),
|
|
3160
|
-
};
|
|
3161
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3162
|
-
switch (errorCode) {
|
|
3163
|
-
case "AccessDeniedException":
|
|
3164
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3165
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3166
|
-
case "ConflictException":
|
|
3167
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3168
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3169
|
-
case "InternalServerException":
|
|
3170
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3171
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3172
|
-
case "ResourceNotFoundException":
|
|
3173
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3174
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3175
|
-
case "ThrottlingException":
|
|
3176
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3177
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3178
|
-
case "ValidationException":
|
|
3179
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3180
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3181
|
-
default:
|
|
3182
|
-
const parsedBody = parsedOutput.body;
|
|
3183
|
-
return throwDefaultError({
|
|
3184
|
-
output,
|
|
3185
|
-
parsedBody,
|
|
3186
|
-
errorCode,
|
|
3187
|
-
});
|
|
3188
|
-
}
|
|
3189
|
-
};
|
|
3190
1261
|
export const de_UpdateDetectorVersionMetadataCommand = async (output, context) => {
|
|
3191
1262
|
if (output.statusCode >= 300) {
|
|
3192
|
-
return
|
|
3193
|
-
}
|
|
3194
|
-
const data = await parseBody(output.body, context);
|
|
3195
|
-
let contents = {};
|
|
3196
|
-
contents = _json(data);
|
|
3197
|
-
const response = {
|
|
3198
|
-
$metadata: deserializeMetadata(output),
|
|
3199
|
-
...contents,
|
|
3200
|
-
};
|
|
3201
|
-
return response;
|
|
3202
|
-
};
|
|
3203
|
-
const de_UpdateDetectorVersionMetadataCommandError = async (output, context) => {
|
|
3204
|
-
const parsedOutput = {
|
|
3205
|
-
...output,
|
|
3206
|
-
body: await parseErrorBody(output.body, context),
|
|
3207
|
-
};
|
|
3208
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3209
|
-
switch (errorCode) {
|
|
3210
|
-
case "AccessDeniedException":
|
|
3211
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3212
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3213
|
-
case "ConflictException":
|
|
3214
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3215
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3216
|
-
case "InternalServerException":
|
|
3217
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3218
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3219
|
-
case "ThrottlingException":
|
|
3220
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3221
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3222
|
-
case "ValidationException":
|
|
3223
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3224
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3225
|
-
default:
|
|
3226
|
-
const parsedBody = parsedOutput.body;
|
|
3227
|
-
return throwDefaultError({
|
|
3228
|
-
output,
|
|
3229
|
-
parsedBody,
|
|
3230
|
-
errorCode,
|
|
3231
|
-
});
|
|
3232
|
-
}
|
|
3233
|
-
};
|
|
3234
|
-
export const de_UpdateDetectorVersionStatusCommand = async (output, context) => {
|
|
3235
|
-
if (output.statusCode >= 300) {
|
|
3236
|
-
return de_UpdateDetectorVersionStatusCommandError(output, context);
|
|
1263
|
+
return de_CommandError(output, context);
|
|
3237
1264
|
}
|
|
3238
1265
|
const data = await parseBody(output.body, context);
|
|
3239
1266
|
let contents = {};
|
|
@@ -3244,43 +1271,9 @@ export const de_UpdateDetectorVersionStatusCommand = async (output, context) =>
|
|
|
3244
1271
|
};
|
|
3245
1272
|
return response;
|
|
3246
1273
|
};
|
|
3247
|
-
const
|
|
3248
|
-
const parsedOutput = {
|
|
3249
|
-
...output,
|
|
3250
|
-
body: await parseErrorBody(output.body, context),
|
|
3251
|
-
};
|
|
3252
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3253
|
-
switch (errorCode) {
|
|
3254
|
-
case "AccessDeniedException":
|
|
3255
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3256
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3257
|
-
case "ConflictException":
|
|
3258
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3259
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3260
|
-
case "InternalServerException":
|
|
3261
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3262
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3263
|
-
case "ResourceNotFoundException":
|
|
3264
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3265
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3266
|
-
case "ThrottlingException":
|
|
3267
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3268
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3269
|
-
case "ValidationException":
|
|
3270
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3271
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3272
|
-
default:
|
|
3273
|
-
const parsedBody = parsedOutput.body;
|
|
3274
|
-
return throwDefaultError({
|
|
3275
|
-
output,
|
|
3276
|
-
parsedBody,
|
|
3277
|
-
errorCode,
|
|
3278
|
-
});
|
|
3279
|
-
}
|
|
3280
|
-
};
|
|
3281
|
-
export const de_UpdateEventLabelCommand = async (output, context) => {
|
|
1274
|
+
export const de_UpdateDetectorVersionStatusCommand = async (output, context) => {
|
|
3282
1275
|
if (output.statusCode >= 300) {
|
|
3283
|
-
return
|
|
1276
|
+
return de_CommandError(output, context);
|
|
3284
1277
|
}
|
|
3285
1278
|
const data = await parseBody(output.body, context);
|
|
3286
1279
|
let contents = {};
|
|
@@ -3291,43 +1284,22 @@ export const de_UpdateEventLabelCommand = async (output, context) => {
|
|
|
3291
1284
|
};
|
|
3292
1285
|
return response;
|
|
3293
1286
|
};
|
|
3294
|
-
const
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
body: await parseErrorBody(output.body, context),
|
|
3298
|
-
};
|
|
3299
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3300
|
-
switch (errorCode) {
|
|
3301
|
-
case "AccessDeniedException":
|
|
3302
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3303
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3304
|
-
case "ConflictException":
|
|
3305
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3306
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3307
|
-
case "InternalServerException":
|
|
3308
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3309
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3310
|
-
case "ResourceNotFoundException":
|
|
3311
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3312
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3313
|
-
case "ThrottlingException":
|
|
3314
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3315
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3316
|
-
case "ValidationException":
|
|
3317
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3318
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3319
|
-
default:
|
|
3320
|
-
const parsedBody = parsedOutput.body;
|
|
3321
|
-
return throwDefaultError({
|
|
3322
|
-
output,
|
|
3323
|
-
parsedBody,
|
|
3324
|
-
errorCode,
|
|
3325
|
-
});
|
|
1287
|
+
export const de_UpdateEventLabelCommand = async (output, context) => {
|
|
1288
|
+
if (output.statusCode >= 300) {
|
|
1289
|
+
return de_CommandError(output, context);
|
|
3326
1290
|
}
|
|
1291
|
+
const data = await parseBody(output.body, context);
|
|
1292
|
+
let contents = {};
|
|
1293
|
+
contents = _json(data);
|
|
1294
|
+
const response = {
|
|
1295
|
+
$metadata: deserializeMetadata(output),
|
|
1296
|
+
...contents,
|
|
1297
|
+
};
|
|
1298
|
+
return response;
|
|
3327
1299
|
};
|
|
3328
1300
|
export const de_UpdateListCommand = async (output, context) => {
|
|
3329
1301
|
if (output.statusCode >= 300) {
|
|
3330
|
-
return
|
|
1302
|
+
return de_CommandError(output, context);
|
|
3331
1303
|
}
|
|
3332
1304
|
const data = await parseBody(output.body, context);
|
|
3333
1305
|
let contents = {};
|
|
@@ -3338,43 +1310,9 @@ export const de_UpdateListCommand = async (output, context) => {
|
|
|
3338
1310
|
};
|
|
3339
1311
|
return response;
|
|
3340
1312
|
};
|
|
3341
|
-
const de_UpdateListCommandError = async (output, context) => {
|
|
3342
|
-
const parsedOutput = {
|
|
3343
|
-
...output,
|
|
3344
|
-
body: await parseErrorBody(output.body, context),
|
|
3345
|
-
};
|
|
3346
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3347
|
-
switch (errorCode) {
|
|
3348
|
-
case "AccessDeniedException":
|
|
3349
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3350
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3351
|
-
case "ConflictException":
|
|
3352
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3353
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3354
|
-
case "InternalServerException":
|
|
3355
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3356
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3357
|
-
case "ResourceNotFoundException":
|
|
3358
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3359
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3360
|
-
case "ThrottlingException":
|
|
3361
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3362
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3363
|
-
case "ValidationException":
|
|
3364
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3365
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3366
|
-
default:
|
|
3367
|
-
const parsedBody = parsedOutput.body;
|
|
3368
|
-
return throwDefaultError({
|
|
3369
|
-
output,
|
|
3370
|
-
parsedBody,
|
|
3371
|
-
errorCode,
|
|
3372
|
-
});
|
|
3373
|
-
}
|
|
3374
|
-
};
|
|
3375
1313
|
export const de_UpdateModelCommand = async (output, context) => {
|
|
3376
1314
|
if (output.statusCode >= 300) {
|
|
3377
|
-
return
|
|
1315
|
+
return de_CommandError(output, context);
|
|
3378
1316
|
}
|
|
3379
1317
|
const data = await parseBody(output.body, context);
|
|
3380
1318
|
let contents = {};
|
|
@@ -3385,43 +1323,9 @@ export const de_UpdateModelCommand = async (output, context) => {
|
|
|
3385
1323
|
};
|
|
3386
1324
|
return response;
|
|
3387
1325
|
};
|
|
3388
|
-
const de_UpdateModelCommandError = async (output, context) => {
|
|
3389
|
-
const parsedOutput = {
|
|
3390
|
-
...output,
|
|
3391
|
-
body: await parseErrorBody(output.body, context),
|
|
3392
|
-
};
|
|
3393
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3394
|
-
switch (errorCode) {
|
|
3395
|
-
case "AccessDeniedException":
|
|
3396
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3397
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3398
|
-
case "ConflictException":
|
|
3399
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3400
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3401
|
-
case "InternalServerException":
|
|
3402
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3403
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3404
|
-
case "ResourceNotFoundException":
|
|
3405
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3406
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3407
|
-
case "ThrottlingException":
|
|
3408
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3409
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3410
|
-
case "ValidationException":
|
|
3411
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3412
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3413
|
-
default:
|
|
3414
|
-
const parsedBody = parsedOutput.body;
|
|
3415
|
-
return throwDefaultError({
|
|
3416
|
-
output,
|
|
3417
|
-
parsedBody,
|
|
3418
|
-
errorCode,
|
|
3419
|
-
});
|
|
3420
|
-
}
|
|
3421
|
-
};
|
|
3422
1326
|
export const de_UpdateModelVersionCommand = async (output, context) => {
|
|
3423
1327
|
if (output.statusCode >= 300) {
|
|
3424
|
-
return
|
|
1328
|
+
return de_CommandError(output, context);
|
|
3425
1329
|
}
|
|
3426
1330
|
const data = await parseBody(output.body, context);
|
|
3427
1331
|
let contents = {};
|
|
@@ -3432,43 +1336,9 @@ export const de_UpdateModelVersionCommand = async (output, context) => {
|
|
|
3432
1336
|
};
|
|
3433
1337
|
return response;
|
|
3434
1338
|
};
|
|
3435
|
-
const de_UpdateModelVersionCommandError = async (output, context) => {
|
|
3436
|
-
const parsedOutput = {
|
|
3437
|
-
...output,
|
|
3438
|
-
body: await parseErrorBody(output.body, context),
|
|
3439
|
-
};
|
|
3440
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3441
|
-
switch (errorCode) {
|
|
3442
|
-
case "AccessDeniedException":
|
|
3443
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3444
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3445
|
-
case "ConflictException":
|
|
3446
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3447
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3448
|
-
case "InternalServerException":
|
|
3449
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3450
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3451
|
-
case "ResourceNotFoundException":
|
|
3452
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3453
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3454
|
-
case "ThrottlingException":
|
|
3455
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3456
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3457
|
-
case "ValidationException":
|
|
3458
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3459
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3460
|
-
default:
|
|
3461
|
-
const parsedBody = parsedOutput.body;
|
|
3462
|
-
return throwDefaultError({
|
|
3463
|
-
output,
|
|
3464
|
-
parsedBody,
|
|
3465
|
-
errorCode,
|
|
3466
|
-
});
|
|
3467
|
-
}
|
|
3468
|
-
};
|
|
3469
1339
|
export const de_UpdateModelVersionStatusCommand = async (output, context) => {
|
|
3470
1340
|
if (output.statusCode >= 300) {
|
|
3471
|
-
return
|
|
1341
|
+
return de_CommandError(output, context);
|
|
3472
1342
|
}
|
|
3473
1343
|
const data = await parseBody(output.body, context);
|
|
3474
1344
|
let contents = {};
|
|
@@ -3479,43 +1349,9 @@ export const de_UpdateModelVersionStatusCommand = async (output, context) => {
|
|
|
3479
1349
|
};
|
|
3480
1350
|
return response;
|
|
3481
1351
|
};
|
|
3482
|
-
const de_UpdateModelVersionStatusCommandError = async (output, context) => {
|
|
3483
|
-
const parsedOutput = {
|
|
3484
|
-
...output,
|
|
3485
|
-
body: await parseErrorBody(output.body, context),
|
|
3486
|
-
};
|
|
3487
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3488
|
-
switch (errorCode) {
|
|
3489
|
-
case "AccessDeniedException":
|
|
3490
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3491
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3492
|
-
case "ConflictException":
|
|
3493
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3494
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3495
|
-
case "InternalServerException":
|
|
3496
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3497
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3498
|
-
case "ResourceNotFoundException":
|
|
3499
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3500
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3501
|
-
case "ThrottlingException":
|
|
3502
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3503
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3504
|
-
case "ValidationException":
|
|
3505
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3506
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3507
|
-
default:
|
|
3508
|
-
const parsedBody = parsedOutput.body;
|
|
3509
|
-
return throwDefaultError({
|
|
3510
|
-
output,
|
|
3511
|
-
parsedBody,
|
|
3512
|
-
errorCode,
|
|
3513
|
-
});
|
|
3514
|
-
}
|
|
3515
|
-
};
|
|
3516
1352
|
export const de_UpdateRuleMetadataCommand = async (output, context) => {
|
|
3517
1353
|
if (output.statusCode >= 300) {
|
|
3518
|
-
return
|
|
1354
|
+
return de_CommandError(output, context);
|
|
3519
1355
|
}
|
|
3520
1356
|
const data = await parseBody(output.body, context);
|
|
3521
1357
|
let contents = {};
|
|
@@ -3526,43 +1362,9 @@ export const de_UpdateRuleMetadataCommand = async (output, context) => {
|
|
|
3526
1362
|
};
|
|
3527
1363
|
return response;
|
|
3528
1364
|
};
|
|
3529
|
-
const de_UpdateRuleMetadataCommandError = async (output, context) => {
|
|
3530
|
-
const parsedOutput = {
|
|
3531
|
-
...output,
|
|
3532
|
-
body: await parseErrorBody(output.body, context),
|
|
3533
|
-
};
|
|
3534
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3535
|
-
switch (errorCode) {
|
|
3536
|
-
case "AccessDeniedException":
|
|
3537
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3538
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3539
|
-
case "ConflictException":
|
|
3540
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3541
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3542
|
-
case "InternalServerException":
|
|
3543
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3544
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3545
|
-
case "ResourceNotFoundException":
|
|
3546
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3547
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3548
|
-
case "ThrottlingException":
|
|
3549
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3550
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3551
|
-
case "ValidationException":
|
|
3552
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3553
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3554
|
-
default:
|
|
3555
|
-
const parsedBody = parsedOutput.body;
|
|
3556
|
-
return throwDefaultError({
|
|
3557
|
-
output,
|
|
3558
|
-
parsedBody,
|
|
3559
|
-
errorCode,
|
|
3560
|
-
});
|
|
3561
|
-
}
|
|
3562
|
-
};
|
|
3563
1365
|
export const de_UpdateRuleVersionCommand = async (output, context) => {
|
|
3564
1366
|
if (output.statusCode >= 300) {
|
|
3565
|
-
return
|
|
1367
|
+
return de_CommandError(output, context);
|
|
3566
1368
|
}
|
|
3567
1369
|
const data = await parseBody(output.body, context);
|
|
3568
1370
|
let contents = {};
|
|
@@ -3573,43 +1375,9 @@ export const de_UpdateRuleVersionCommand = async (output, context) => {
|
|
|
3573
1375
|
};
|
|
3574
1376
|
return response;
|
|
3575
1377
|
};
|
|
3576
|
-
const de_UpdateRuleVersionCommandError = async (output, context) => {
|
|
3577
|
-
const parsedOutput = {
|
|
3578
|
-
...output,
|
|
3579
|
-
body: await parseErrorBody(output.body, context),
|
|
3580
|
-
};
|
|
3581
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3582
|
-
switch (errorCode) {
|
|
3583
|
-
case "AccessDeniedException":
|
|
3584
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3585
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3586
|
-
case "ConflictException":
|
|
3587
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3588
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3589
|
-
case "InternalServerException":
|
|
3590
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3591
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3592
|
-
case "ResourceNotFoundException":
|
|
3593
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3594
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3595
|
-
case "ThrottlingException":
|
|
3596
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3597
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3598
|
-
case "ValidationException":
|
|
3599
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3600
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3601
|
-
default:
|
|
3602
|
-
const parsedBody = parsedOutput.body;
|
|
3603
|
-
return throwDefaultError({
|
|
3604
|
-
output,
|
|
3605
|
-
parsedBody,
|
|
3606
|
-
errorCode,
|
|
3607
|
-
});
|
|
3608
|
-
}
|
|
3609
|
-
};
|
|
3610
1378
|
export const de_UpdateVariableCommand = async (output, context) => {
|
|
3611
1379
|
if (output.statusCode >= 300) {
|
|
3612
|
-
return
|
|
1380
|
+
return de_CommandError(output, context);
|
|
3613
1381
|
}
|
|
3614
1382
|
const data = await parseBody(output.body, context);
|
|
3615
1383
|
let contents = {};
|
|
@@ -3620,7 +1388,7 @@ export const de_UpdateVariableCommand = async (output, context) => {
|
|
|
3620
1388
|
};
|
|
3621
1389
|
return response;
|
|
3622
1390
|
};
|
|
3623
|
-
const
|
|
1391
|
+
const de_CommandError = async (output, context) => {
|
|
3624
1392
|
const parsedOutput = {
|
|
3625
1393
|
...output,
|
|
3626
1394
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3630,21 +1398,24 @@ const de_UpdateVariableCommandError = async (output, context) => {
|
|
|
3630
1398
|
case "AccessDeniedException":
|
|
3631
1399
|
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3632
1400
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3633
|
-
case "ConflictException":
|
|
3634
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3635
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3636
1401
|
case "InternalServerException":
|
|
3637
1402
|
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3638
1403
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3639
|
-
case "ResourceNotFoundException":
|
|
3640
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3641
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3642
1404
|
case "ThrottlingException":
|
|
3643
1405
|
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3644
1406
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3645
1407
|
case "ValidationException":
|
|
3646
1408
|
case "com.amazonaws.frauddetector#ValidationException":
|
|
3647
1409
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1410
|
+
case "ResourceNotFoundException":
|
|
1411
|
+
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
1412
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1413
|
+
case "ConflictException":
|
|
1414
|
+
case "com.amazonaws.frauddetector#ConflictException":
|
|
1415
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1416
|
+
case "ResourceUnavailableException":
|
|
1417
|
+
case "com.amazonaws.frauddetector#ResourceUnavailableException":
|
|
1418
|
+
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
3648
1419
|
default:
|
|
3649
1420
|
const parsedBody = parsedOutput.body;
|
|
3650
1421
|
return throwDefaultError({
|