@aws-sdk/client-personalize 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 +133 -1783
- package/dist-es/protocols/Aws_json1_1.js +166 -1816
- package/package.json +3 -3
|
@@ -406,7 +406,7 @@ export const se_UpdateRecommenderCommand = async (input, context) => {
|
|
|
406
406
|
};
|
|
407
407
|
export const de_CreateBatchInferenceJobCommand = async (output, context) => {
|
|
408
408
|
if (output.statusCode >= 300) {
|
|
409
|
-
return
|
|
409
|
+
return de_CommandError(output, context);
|
|
410
410
|
}
|
|
411
411
|
const data = await parseBody(output.body, context);
|
|
412
412
|
let contents = {};
|
|
@@ -417,43 +417,9 @@ export const de_CreateBatchInferenceJobCommand = async (output, context) => {
|
|
|
417
417
|
};
|
|
418
418
|
return response;
|
|
419
419
|
};
|
|
420
|
-
const de_CreateBatchInferenceJobCommandError = async (output, context) => {
|
|
421
|
-
const parsedOutput = {
|
|
422
|
-
...output,
|
|
423
|
-
body: await parseErrorBody(output.body, context),
|
|
424
|
-
};
|
|
425
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
426
|
-
switch (errorCode) {
|
|
427
|
-
case "InvalidInputException":
|
|
428
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
429
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
430
|
-
case "LimitExceededException":
|
|
431
|
-
case "com.amazonaws.personalize#LimitExceededException":
|
|
432
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
433
|
-
case "ResourceAlreadyExistsException":
|
|
434
|
-
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
435
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
436
|
-
case "ResourceInUseException":
|
|
437
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
438
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
439
|
-
case "ResourceNotFoundException":
|
|
440
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
441
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
442
|
-
case "TooManyTagsException":
|
|
443
|
-
case "com.amazonaws.personalize#TooManyTagsException":
|
|
444
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
445
|
-
default:
|
|
446
|
-
const parsedBody = parsedOutput.body;
|
|
447
|
-
return throwDefaultError({
|
|
448
|
-
output,
|
|
449
|
-
parsedBody,
|
|
450
|
-
errorCode,
|
|
451
|
-
});
|
|
452
|
-
}
|
|
453
|
-
};
|
|
454
420
|
export const de_CreateBatchSegmentJobCommand = async (output, context) => {
|
|
455
421
|
if (output.statusCode >= 300) {
|
|
456
|
-
return
|
|
422
|
+
return de_CommandError(output, context);
|
|
457
423
|
}
|
|
458
424
|
const data = await parseBody(output.body, context);
|
|
459
425
|
let contents = {};
|
|
@@ -464,43 +430,9 @@ export const de_CreateBatchSegmentJobCommand = async (output, context) => {
|
|
|
464
430
|
};
|
|
465
431
|
return response;
|
|
466
432
|
};
|
|
467
|
-
const de_CreateBatchSegmentJobCommandError = async (output, context) => {
|
|
468
|
-
const parsedOutput = {
|
|
469
|
-
...output,
|
|
470
|
-
body: await parseErrorBody(output.body, context),
|
|
471
|
-
};
|
|
472
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
473
|
-
switch (errorCode) {
|
|
474
|
-
case "InvalidInputException":
|
|
475
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
476
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
477
|
-
case "LimitExceededException":
|
|
478
|
-
case "com.amazonaws.personalize#LimitExceededException":
|
|
479
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
480
|
-
case "ResourceAlreadyExistsException":
|
|
481
|
-
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
482
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
483
|
-
case "ResourceInUseException":
|
|
484
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
485
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
486
|
-
case "ResourceNotFoundException":
|
|
487
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
488
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
489
|
-
case "TooManyTagsException":
|
|
490
|
-
case "com.amazonaws.personalize#TooManyTagsException":
|
|
491
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
492
|
-
default:
|
|
493
|
-
const parsedBody = parsedOutput.body;
|
|
494
|
-
return throwDefaultError({
|
|
495
|
-
output,
|
|
496
|
-
parsedBody,
|
|
497
|
-
errorCode,
|
|
498
|
-
});
|
|
499
|
-
}
|
|
500
|
-
};
|
|
501
433
|
export const de_CreateCampaignCommand = async (output, context) => {
|
|
502
434
|
if (output.statusCode >= 300) {
|
|
503
|
-
return
|
|
435
|
+
return de_CommandError(output, context);
|
|
504
436
|
}
|
|
505
437
|
const data = await parseBody(output.body, context);
|
|
506
438
|
let contents = {};
|
|
@@ -511,43 +443,9 @@ export const de_CreateCampaignCommand = async (output, context) => {
|
|
|
511
443
|
};
|
|
512
444
|
return response;
|
|
513
445
|
};
|
|
514
|
-
const de_CreateCampaignCommandError = async (output, context) => {
|
|
515
|
-
const parsedOutput = {
|
|
516
|
-
...output,
|
|
517
|
-
body: await parseErrorBody(output.body, context),
|
|
518
|
-
};
|
|
519
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
520
|
-
switch (errorCode) {
|
|
521
|
-
case "InvalidInputException":
|
|
522
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
523
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
524
|
-
case "LimitExceededException":
|
|
525
|
-
case "com.amazonaws.personalize#LimitExceededException":
|
|
526
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
527
|
-
case "ResourceAlreadyExistsException":
|
|
528
|
-
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
529
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
530
|
-
case "ResourceInUseException":
|
|
531
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
532
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
533
|
-
case "ResourceNotFoundException":
|
|
534
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
535
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
536
|
-
case "TooManyTagsException":
|
|
537
|
-
case "com.amazonaws.personalize#TooManyTagsException":
|
|
538
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
539
|
-
default:
|
|
540
|
-
const parsedBody = parsedOutput.body;
|
|
541
|
-
return throwDefaultError({
|
|
542
|
-
output,
|
|
543
|
-
parsedBody,
|
|
544
|
-
errorCode,
|
|
545
|
-
});
|
|
546
|
-
}
|
|
547
|
-
};
|
|
548
446
|
export const de_CreateDatasetCommand = async (output, context) => {
|
|
549
447
|
if (output.statusCode >= 300) {
|
|
550
|
-
return
|
|
448
|
+
return de_CommandError(output, context);
|
|
551
449
|
}
|
|
552
450
|
const data = await parseBody(output.body, context);
|
|
553
451
|
let contents = {};
|
|
@@ -558,43 +456,9 @@ export const de_CreateDatasetCommand = async (output, context) => {
|
|
|
558
456
|
};
|
|
559
457
|
return response;
|
|
560
458
|
};
|
|
561
|
-
const de_CreateDatasetCommandError = async (output, context) => {
|
|
562
|
-
const parsedOutput = {
|
|
563
|
-
...output,
|
|
564
|
-
body: await parseErrorBody(output.body, context),
|
|
565
|
-
};
|
|
566
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
567
|
-
switch (errorCode) {
|
|
568
|
-
case "InvalidInputException":
|
|
569
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
570
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
571
|
-
case "LimitExceededException":
|
|
572
|
-
case "com.amazonaws.personalize#LimitExceededException":
|
|
573
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
574
|
-
case "ResourceAlreadyExistsException":
|
|
575
|
-
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
576
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
577
|
-
case "ResourceInUseException":
|
|
578
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
579
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
580
|
-
case "ResourceNotFoundException":
|
|
581
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
582
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
583
|
-
case "TooManyTagsException":
|
|
584
|
-
case "com.amazonaws.personalize#TooManyTagsException":
|
|
585
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
586
|
-
default:
|
|
587
|
-
const parsedBody = parsedOutput.body;
|
|
588
|
-
return throwDefaultError({
|
|
589
|
-
output,
|
|
590
|
-
parsedBody,
|
|
591
|
-
errorCode,
|
|
592
|
-
});
|
|
593
|
-
}
|
|
594
|
-
};
|
|
595
459
|
export const de_CreateDatasetExportJobCommand = async (output, context) => {
|
|
596
460
|
if (output.statusCode >= 300) {
|
|
597
|
-
return
|
|
461
|
+
return de_CommandError(output, context);
|
|
598
462
|
}
|
|
599
463
|
const data = await parseBody(output.body, context);
|
|
600
464
|
let contents = {};
|
|
@@ -605,43 +469,9 @@ export const de_CreateDatasetExportJobCommand = async (output, context) => {
|
|
|
605
469
|
};
|
|
606
470
|
return response;
|
|
607
471
|
};
|
|
608
|
-
const de_CreateDatasetExportJobCommandError = async (output, context) => {
|
|
609
|
-
const parsedOutput = {
|
|
610
|
-
...output,
|
|
611
|
-
body: await parseErrorBody(output.body, context),
|
|
612
|
-
};
|
|
613
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
614
|
-
switch (errorCode) {
|
|
615
|
-
case "InvalidInputException":
|
|
616
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
617
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
618
|
-
case "LimitExceededException":
|
|
619
|
-
case "com.amazonaws.personalize#LimitExceededException":
|
|
620
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
621
|
-
case "ResourceAlreadyExistsException":
|
|
622
|
-
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
623
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
624
|
-
case "ResourceInUseException":
|
|
625
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
626
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
627
|
-
case "ResourceNotFoundException":
|
|
628
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
629
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
630
|
-
case "TooManyTagsException":
|
|
631
|
-
case "com.amazonaws.personalize#TooManyTagsException":
|
|
632
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
633
|
-
default:
|
|
634
|
-
const parsedBody = parsedOutput.body;
|
|
635
|
-
return throwDefaultError({
|
|
636
|
-
output,
|
|
637
|
-
parsedBody,
|
|
638
|
-
errorCode,
|
|
639
|
-
});
|
|
640
|
-
}
|
|
641
|
-
};
|
|
642
472
|
export const de_CreateDatasetGroupCommand = async (output, context) => {
|
|
643
473
|
if (output.statusCode >= 300) {
|
|
644
|
-
return
|
|
474
|
+
return de_CommandError(output, context);
|
|
645
475
|
}
|
|
646
476
|
const data = await parseBody(output.body, context);
|
|
647
477
|
let contents = {};
|
|
@@ -652,37 +482,22 @@ export const de_CreateDatasetGroupCommand = async (output, context) => {
|
|
|
652
482
|
};
|
|
653
483
|
return response;
|
|
654
484
|
};
|
|
655
|
-
const
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
body: await parseErrorBody(output.body, context),
|
|
659
|
-
};
|
|
660
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
661
|
-
switch (errorCode) {
|
|
662
|
-
case "InvalidInputException":
|
|
663
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
664
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
665
|
-
case "LimitExceededException":
|
|
666
|
-
case "com.amazonaws.personalize#LimitExceededException":
|
|
667
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
668
|
-
case "ResourceAlreadyExistsException":
|
|
669
|
-
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
670
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
671
|
-
case "TooManyTagsException":
|
|
672
|
-
case "com.amazonaws.personalize#TooManyTagsException":
|
|
673
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
674
|
-
default:
|
|
675
|
-
const parsedBody = parsedOutput.body;
|
|
676
|
-
return throwDefaultError({
|
|
677
|
-
output,
|
|
678
|
-
parsedBody,
|
|
679
|
-
errorCode,
|
|
680
|
-
});
|
|
485
|
+
export const de_CreateDatasetImportJobCommand = async (output, context) => {
|
|
486
|
+
if (output.statusCode >= 300) {
|
|
487
|
+
return de_CommandError(output, context);
|
|
681
488
|
}
|
|
489
|
+
const data = await parseBody(output.body, context);
|
|
490
|
+
let contents = {};
|
|
491
|
+
contents = _json(data);
|
|
492
|
+
const response = {
|
|
493
|
+
$metadata: deserializeMetadata(output),
|
|
494
|
+
...contents,
|
|
495
|
+
};
|
|
496
|
+
return response;
|
|
682
497
|
};
|
|
683
|
-
export const
|
|
498
|
+
export const de_CreateEventTrackerCommand = async (output, context) => {
|
|
684
499
|
if (output.statusCode >= 300) {
|
|
685
|
-
return
|
|
500
|
+
return de_CommandError(output, context);
|
|
686
501
|
}
|
|
687
502
|
const data = await parseBody(output.body, context);
|
|
688
503
|
let contents = {};
|
|
@@ -693,43 +508,35 @@ export const de_CreateDatasetImportJobCommand = async (output, context) => {
|
|
|
693
508
|
};
|
|
694
509
|
return response;
|
|
695
510
|
};
|
|
696
|
-
const
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
511
|
+
export const de_CreateFilterCommand = async (output, context) => {
|
|
512
|
+
if (output.statusCode >= 300) {
|
|
513
|
+
return de_CommandError(output, context);
|
|
514
|
+
}
|
|
515
|
+
const data = await parseBody(output.body, context);
|
|
516
|
+
let contents = {};
|
|
517
|
+
contents = _json(data);
|
|
518
|
+
const response = {
|
|
519
|
+
$metadata: deserializeMetadata(output),
|
|
520
|
+
...contents,
|
|
700
521
|
};
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
case "LimitExceededException":
|
|
707
|
-
case "com.amazonaws.personalize#LimitExceededException":
|
|
708
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
709
|
-
case "ResourceAlreadyExistsException":
|
|
710
|
-
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
711
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
712
|
-
case "ResourceInUseException":
|
|
713
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
714
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
715
|
-
case "ResourceNotFoundException":
|
|
716
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
717
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
718
|
-
case "TooManyTagsException":
|
|
719
|
-
case "com.amazonaws.personalize#TooManyTagsException":
|
|
720
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
721
|
-
default:
|
|
722
|
-
const parsedBody = parsedOutput.body;
|
|
723
|
-
return throwDefaultError({
|
|
724
|
-
output,
|
|
725
|
-
parsedBody,
|
|
726
|
-
errorCode,
|
|
727
|
-
});
|
|
522
|
+
return response;
|
|
523
|
+
};
|
|
524
|
+
export const de_CreateMetricAttributionCommand = async (output, context) => {
|
|
525
|
+
if (output.statusCode >= 300) {
|
|
526
|
+
return de_CommandError(output, context);
|
|
728
527
|
}
|
|
528
|
+
const data = await parseBody(output.body, context);
|
|
529
|
+
let contents = {};
|
|
530
|
+
contents = _json(data);
|
|
531
|
+
const response = {
|
|
532
|
+
$metadata: deserializeMetadata(output),
|
|
533
|
+
...contents,
|
|
534
|
+
};
|
|
535
|
+
return response;
|
|
729
536
|
};
|
|
730
|
-
export const
|
|
537
|
+
export const de_CreateRecommenderCommand = async (output, context) => {
|
|
731
538
|
if (output.statusCode >= 300) {
|
|
732
|
-
return
|
|
539
|
+
return de_CommandError(output, context);
|
|
733
540
|
}
|
|
734
541
|
const data = await parseBody(output.body, context);
|
|
735
542
|
let contents = {};
|
|
@@ -740,178 +547,9 @@ export const de_CreateEventTrackerCommand = async (output, context) => {
|
|
|
740
547
|
};
|
|
741
548
|
return response;
|
|
742
549
|
};
|
|
743
|
-
const de_CreateEventTrackerCommandError = async (output, context) => {
|
|
744
|
-
const parsedOutput = {
|
|
745
|
-
...output,
|
|
746
|
-
body: await parseErrorBody(output.body, context),
|
|
747
|
-
};
|
|
748
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
749
|
-
switch (errorCode) {
|
|
750
|
-
case "InvalidInputException":
|
|
751
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
752
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
753
|
-
case "LimitExceededException":
|
|
754
|
-
case "com.amazonaws.personalize#LimitExceededException":
|
|
755
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
756
|
-
case "ResourceAlreadyExistsException":
|
|
757
|
-
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
758
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
759
|
-
case "ResourceInUseException":
|
|
760
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
761
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
762
|
-
case "ResourceNotFoundException":
|
|
763
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
764
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
765
|
-
case "TooManyTagsException":
|
|
766
|
-
case "com.amazonaws.personalize#TooManyTagsException":
|
|
767
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
768
|
-
default:
|
|
769
|
-
const parsedBody = parsedOutput.body;
|
|
770
|
-
return throwDefaultError({
|
|
771
|
-
output,
|
|
772
|
-
parsedBody,
|
|
773
|
-
errorCode,
|
|
774
|
-
});
|
|
775
|
-
}
|
|
776
|
-
};
|
|
777
|
-
export const de_CreateFilterCommand = async (output, context) => {
|
|
778
|
-
if (output.statusCode >= 300) {
|
|
779
|
-
return de_CreateFilterCommandError(output, context);
|
|
780
|
-
}
|
|
781
|
-
const data = await parseBody(output.body, context);
|
|
782
|
-
let contents = {};
|
|
783
|
-
contents = _json(data);
|
|
784
|
-
const response = {
|
|
785
|
-
$metadata: deserializeMetadata(output),
|
|
786
|
-
...contents,
|
|
787
|
-
};
|
|
788
|
-
return response;
|
|
789
|
-
};
|
|
790
|
-
const de_CreateFilterCommandError = async (output, context) => {
|
|
791
|
-
const parsedOutput = {
|
|
792
|
-
...output,
|
|
793
|
-
body: await parseErrorBody(output.body, context),
|
|
794
|
-
};
|
|
795
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
796
|
-
switch (errorCode) {
|
|
797
|
-
case "InvalidInputException":
|
|
798
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
799
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
800
|
-
case "LimitExceededException":
|
|
801
|
-
case "com.amazonaws.personalize#LimitExceededException":
|
|
802
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
803
|
-
case "ResourceAlreadyExistsException":
|
|
804
|
-
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
805
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
806
|
-
case "ResourceNotFoundException":
|
|
807
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
808
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
809
|
-
case "TooManyTagsException":
|
|
810
|
-
case "com.amazonaws.personalize#TooManyTagsException":
|
|
811
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
812
|
-
default:
|
|
813
|
-
const parsedBody = parsedOutput.body;
|
|
814
|
-
return throwDefaultError({
|
|
815
|
-
output,
|
|
816
|
-
parsedBody,
|
|
817
|
-
errorCode,
|
|
818
|
-
});
|
|
819
|
-
}
|
|
820
|
-
};
|
|
821
|
-
export const de_CreateMetricAttributionCommand = async (output, context) => {
|
|
822
|
-
if (output.statusCode >= 300) {
|
|
823
|
-
return de_CreateMetricAttributionCommandError(output, context);
|
|
824
|
-
}
|
|
825
|
-
const data = await parseBody(output.body, context);
|
|
826
|
-
let contents = {};
|
|
827
|
-
contents = _json(data);
|
|
828
|
-
const response = {
|
|
829
|
-
$metadata: deserializeMetadata(output),
|
|
830
|
-
...contents,
|
|
831
|
-
};
|
|
832
|
-
return response;
|
|
833
|
-
};
|
|
834
|
-
const de_CreateMetricAttributionCommandError = async (output, context) => {
|
|
835
|
-
const parsedOutput = {
|
|
836
|
-
...output,
|
|
837
|
-
body: await parseErrorBody(output.body, context),
|
|
838
|
-
};
|
|
839
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
840
|
-
switch (errorCode) {
|
|
841
|
-
case "InvalidInputException":
|
|
842
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
843
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
844
|
-
case "LimitExceededException":
|
|
845
|
-
case "com.amazonaws.personalize#LimitExceededException":
|
|
846
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
847
|
-
case "ResourceAlreadyExistsException":
|
|
848
|
-
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
849
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
850
|
-
case "ResourceInUseException":
|
|
851
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
852
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
853
|
-
case "ResourceNotFoundException":
|
|
854
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
855
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
856
|
-
default:
|
|
857
|
-
const parsedBody = parsedOutput.body;
|
|
858
|
-
return throwDefaultError({
|
|
859
|
-
output,
|
|
860
|
-
parsedBody,
|
|
861
|
-
errorCode,
|
|
862
|
-
});
|
|
863
|
-
}
|
|
864
|
-
};
|
|
865
|
-
export const de_CreateRecommenderCommand = async (output, context) => {
|
|
866
|
-
if (output.statusCode >= 300) {
|
|
867
|
-
return de_CreateRecommenderCommandError(output, context);
|
|
868
|
-
}
|
|
869
|
-
const data = await parseBody(output.body, context);
|
|
870
|
-
let contents = {};
|
|
871
|
-
contents = _json(data);
|
|
872
|
-
const response = {
|
|
873
|
-
$metadata: deserializeMetadata(output),
|
|
874
|
-
...contents,
|
|
875
|
-
};
|
|
876
|
-
return response;
|
|
877
|
-
};
|
|
878
|
-
const de_CreateRecommenderCommandError = async (output, context) => {
|
|
879
|
-
const parsedOutput = {
|
|
880
|
-
...output,
|
|
881
|
-
body: await parseErrorBody(output.body, context),
|
|
882
|
-
};
|
|
883
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
884
|
-
switch (errorCode) {
|
|
885
|
-
case "InvalidInputException":
|
|
886
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
887
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
888
|
-
case "LimitExceededException":
|
|
889
|
-
case "com.amazonaws.personalize#LimitExceededException":
|
|
890
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
891
|
-
case "ResourceAlreadyExistsException":
|
|
892
|
-
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
893
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
894
|
-
case "ResourceInUseException":
|
|
895
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
896
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
897
|
-
case "ResourceNotFoundException":
|
|
898
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
899
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
900
|
-
case "TooManyTagsException":
|
|
901
|
-
case "com.amazonaws.personalize#TooManyTagsException":
|
|
902
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
903
|
-
default:
|
|
904
|
-
const parsedBody = parsedOutput.body;
|
|
905
|
-
return throwDefaultError({
|
|
906
|
-
output,
|
|
907
|
-
parsedBody,
|
|
908
|
-
errorCode,
|
|
909
|
-
});
|
|
910
|
-
}
|
|
911
|
-
};
|
|
912
550
|
export const de_CreateSchemaCommand = async (output, context) => {
|
|
913
551
|
if (output.statusCode >= 300) {
|
|
914
|
-
return
|
|
552
|
+
return de_CommandError(output, context);
|
|
915
553
|
}
|
|
916
554
|
const data = await parseBody(output.body, context);
|
|
917
555
|
let contents = {};
|
|
@@ -922,34 +560,9 @@ export const de_CreateSchemaCommand = async (output, context) => {
|
|
|
922
560
|
};
|
|
923
561
|
return response;
|
|
924
562
|
};
|
|
925
|
-
const de_CreateSchemaCommandError = async (output, context) => {
|
|
926
|
-
const parsedOutput = {
|
|
927
|
-
...output,
|
|
928
|
-
body: await parseErrorBody(output.body, context),
|
|
929
|
-
};
|
|
930
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
931
|
-
switch (errorCode) {
|
|
932
|
-
case "InvalidInputException":
|
|
933
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
934
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
935
|
-
case "LimitExceededException":
|
|
936
|
-
case "com.amazonaws.personalize#LimitExceededException":
|
|
937
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
938
|
-
case "ResourceAlreadyExistsException":
|
|
939
|
-
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
940
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
941
|
-
default:
|
|
942
|
-
const parsedBody = parsedOutput.body;
|
|
943
|
-
return throwDefaultError({
|
|
944
|
-
output,
|
|
945
|
-
parsedBody,
|
|
946
|
-
errorCode,
|
|
947
|
-
});
|
|
948
|
-
}
|
|
949
|
-
};
|
|
950
563
|
export const de_CreateSolutionCommand = async (output, context) => {
|
|
951
564
|
if (output.statusCode >= 300) {
|
|
952
|
-
return
|
|
565
|
+
return de_CommandError(output, context);
|
|
953
566
|
}
|
|
954
567
|
const data = await parseBody(output.body, context);
|
|
955
568
|
let contents = {};
|
|
@@ -960,43 +573,9 @@ export const de_CreateSolutionCommand = async (output, context) => {
|
|
|
960
573
|
};
|
|
961
574
|
return response;
|
|
962
575
|
};
|
|
963
|
-
const de_CreateSolutionCommandError = async (output, context) => {
|
|
964
|
-
const parsedOutput = {
|
|
965
|
-
...output,
|
|
966
|
-
body: await parseErrorBody(output.body, context),
|
|
967
|
-
};
|
|
968
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
969
|
-
switch (errorCode) {
|
|
970
|
-
case "InvalidInputException":
|
|
971
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
972
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
973
|
-
case "LimitExceededException":
|
|
974
|
-
case "com.amazonaws.personalize#LimitExceededException":
|
|
975
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
976
|
-
case "ResourceAlreadyExistsException":
|
|
977
|
-
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
978
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
979
|
-
case "ResourceInUseException":
|
|
980
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
981
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
982
|
-
case "ResourceNotFoundException":
|
|
983
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
984
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
985
|
-
case "TooManyTagsException":
|
|
986
|
-
case "com.amazonaws.personalize#TooManyTagsException":
|
|
987
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
988
|
-
default:
|
|
989
|
-
const parsedBody = parsedOutput.body;
|
|
990
|
-
return throwDefaultError({
|
|
991
|
-
output,
|
|
992
|
-
parsedBody,
|
|
993
|
-
errorCode,
|
|
994
|
-
});
|
|
995
|
-
}
|
|
996
|
-
};
|
|
997
576
|
export const de_CreateSolutionVersionCommand = async (output, context) => {
|
|
998
577
|
if (output.statusCode >= 300) {
|
|
999
|
-
return
|
|
578
|
+
return de_CommandError(output, context);
|
|
1000
579
|
}
|
|
1001
580
|
const data = await parseBody(output.body, context);
|
|
1002
581
|
let contents = {};
|
|
@@ -1007,43 +586,9 @@ export const de_CreateSolutionVersionCommand = async (output, context) => {
|
|
|
1007
586
|
};
|
|
1008
587
|
return response;
|
|
1009
588
|
};
|
|
1010
|
-
const de_CreateSolutionVersionCommandError = async (output, context) => {
|
|
1011
|
-
const parsedOutput = {
|
|
1012
|
-
...output,
|
|
1013
|
-
body: await parseErrorBody(output.body, context),
|
|
1014
|
-
};
|
|
1015
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1016
|
-
switch (errorCode) {
|
|
1017
|
-
case "InvalidInputException":
|
|
1018
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1019
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1020
|
-
case "LimitExceededException":
|
|
1021
|
-
case "com.amazonaws.personalize#LimitExceededException":
|
|
1022
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1023
|
-
case "ResourceAlreadyExistsException":
|
|
1024
|
-
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
1025
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1026
|
-
case "ResourceInUseException":
|
|
1027
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1028
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1029
|
-
case "ResourceNotFoundException":
|
|
1030
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1031
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1032
|
-
case "TooManyTagsException":
|
|
1033
|
-
case "com.amazonaws.personalize#TooManyTagsException":
|
|
1034
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1035
|
-
default:
|
|
1036
|
-
const parsedBody = parsedOutput.body;
|
|
1037
|
-
return throwDefaultError({
|
|
1038
|
-
output,
|
|
1039
|
-
parsedBody,
|
|
1040
|
-
errorCode,
|
|
1041
|
-
});
|
|
1042
|
-
}
|
|
1043
|
-
};
|
|
1044
589
|
export const de_DeleteCampaignCommand = async (output, context) => {
|
|
1045
590
|
if (output.statusCode >= 300) {
|
|
1046
|
-
return
|
|
591
|
+
return de_CommandError(output, context);
|
|
1047
592
|
}
|
|
1048
593
|
await collectBody(output.body, context);
|
|
1049
594
|
const response = {
|
|
@@ -1051,34 +596,9 @@ export const de_DeleteCampaignCommand = async (output, context) => {
|
|
|
1051
596
|
};
|
|
1052
597
|
return response;
|
|
1053
598
|
};
|
|
1054
|
-
const de_DeleteCampaignCommandError = async (output, context) => {
|
|
1055
|
-
const parsedOutput = {
|
|
1056
|
-
...output,
|
|
1057
|
-
body: await parseErrorBody(output.body, context),
|
|
1058
|
-
};
|
|
1059
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1060
|
-
switch (errorCode) {
|
|
1061
|
-
case "InvalidInputException":
|
|
1062
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1063
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1064
|
-
case "ResourceInUseException":
|
|
1065
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1066
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1067
|
-
case "ResourceNotFoundException":
|
|
1068
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1069
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1070
|
-
default:
|
|
1071
|
-
const parsedBody = parsedOutput.body;
|
|
1072
|
-
return throwDefaultError({
|
|
1073
|
-
output,
|
|
1074
|
-
parsedBody,
|
|
1075
|
-
errorCode,
|
|
1076
|
-
});
|
|
1077
|
-
}
|
|
1078
|
-
};
|
|
1079
599
|
export const de_DeleteDatasetCommand = async (output, context) => {
|
|
1080
600
|
if (output.statusCode >= 300) {
|
|
1081
|
-
return
|
|
601
|
+
return de_CommandError(output, context);
|
|
1082
602
|
}
|
|
1083
603
|
await collectBody(output.body, context);
|
|
1084
604
|
const response = {
|
|
@@ -1086,34 +606,9 @@ export const de_DeleteDatasetCommand = async (output, context) => {
|
|
|
1086
606
|
};
|
|
1087
607
|
return response;
|
|
1088
608
|
};
|
|
1089
|
-
const de_DeleteDatasetCommandError = async (output, context) => {
|
|
1090
|
-
const parsedOutput = {
|
|
1091
|
-
...output,
|
|
1092
|
-
body: await parseErrorBody(output.body, context),
|
|
1093
|
-
};
|
|
1094
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1095
|
-
switch (errorCode) {
|
|
1096
|
-
case "InvalidInputException":
|
|
1097
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1098
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1099
|
-
case "ResourceInUseException":
|
|
1100
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1101
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1102
|
-
case "ResourceNotFoundException":
|
|
1103
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1104
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1105
|
-
default:
|
|
1106
|
-
const parsedBody = parsedOutput.body;
|
|
1107
|
-
return throwDefaultError({
|
|
1108
|
-
output,
|
|
1109
|
-
parsedBody,
|
|
1110
|
-
errorCode,
|
|
1111
|
-
});
|
|
1112
|
-
}
|
|
1113
|
-
};
|
|
1114
609
|
export const de_DeleteDatasetGroupCommand = async (output, context) => {
|
|
1115
610
|
if (output.statusCode >= 300) {
|
|
1116
|
-
return
|
|
611
|
+
return de_CommandError(output, context);
|
|
1117
612
|
}
|
|
1118
613
|
await collectBody(output.body, context);
|
|
1119
614
|
const response = {
|
|
@@ -1121,34 +616,9 @@ export const de_DeleteDatasetGroupCommand = async (output, context) => {
|
|
|
1121
616
|
};
|
|
1122
617
|
return response;
|
|
1123
618
|
};
|
|
1124
|
-
const de_DeleteDatasetGroupCommandError = async (output, context) => {
|
|
1125
|
-
const parsedOutput = {
|
|
1126
|
-
...output,
|
|
1127
|
-
body: await parseErrorBody(output.body, context),
|
|
1128
|
-
};
|
|
1129
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1130
|
-
switch (errorCode) {
|
|
1131
|
-
case "InvalidInputException":
|
|
1132
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1133
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1134
|
-
case "ResourceInUseException":
|
|
1135
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1136
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1137
|
-
case "ResourceNotFoundException":
|
|
1138
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1139
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1140
|
-
default:
|
|
1141
|
-
const parsedBody = parsedOutput.body;
|
|
1142
|
-
return throwDefaultError({
|
|
1143
|
-
output,
|
|
1144
|
-
parsedBody,
|
|
1145
|
-
errorCode,
|
|
1146
|
-
});
|
|
1147
|
-
}
|
|
1148
|
-
};
|
|
1149
619
|
export const de_DeleteEventTrackerCommand = async (output, context) => {
|
|
1150
620
|
if (output.statusCode >= 300) {
|
|
1151
|
-
return
|
|
621
|
+
return de_CommandError(output, context);
|
|
1152
622
|
}
|
|
1153
623
|
await collectBody(output.body, context);
|
|
1154
624
|
const response = {
|
|
@@ -1156,34 +626,9 @@ export const de_DeleteEventTrackerCommand = async (output, context) => {
|
|
|
1156
626
|
};
|
|
1157
627
|
return response;
|
|
1158
628
|
};
|
|
1159
|
-
const de_DeleteEventTrackerCommandError = async (output, context) => {
|
|
1160
|
-
const parsedOutput = {
|
|
1161
|
-
...output,
|
|
1162
|
-
body: await parseErrorBody(output.body, context),
|
|
1163
|
-
};
|
|
1164
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1165
|
-
switch (errorCode) {
|
|
1166
|
-
case "InvalidInputException":
|
|
1167
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1168
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1169
|
-
case "ResourceInUseException":
|
|
1170
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1171
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1172
|
-
case "ResourceNotFoundException":
|
|
1173
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1174
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1175
|
-
default:
|
|
1176
|
-
const parsedBody = parsedOutput.body;
|
|
1177
|
-
return throwDefaultError({
|
|
1178
|
-
output,
|
|
1179
|
-
parsedBody,
|
|
1180
|
-
errorCode,
|
|
1181
|
-
});
|
|
1182
|
-
}
|
|
1183
|
-
};
|
|
1184
629
|
export const de_DeleteFilterCommand = async (output, context) => {
|
|
1185
630
|
if (output.statusCode >= 300) {
|
|
1186
|
-
return
|
|
631
|
+
return de_CommandError(output, context);
|
|
1187
632
|
}
|
|
1188
633
|
await collectBody(output.body, context);
|
|
1189
634
|
const response = {
|
|
@@ -1191,34 +636,9 @@ export const de_DeleteFilterCommand = async (output, context) => {
|
|
|
1191
636
|
};
|
|
1192
637
|
return response;
|
|
1193
638
|
};
|
|
1194
|
-
const de_DeleteFilterCommandError = async (output, context) => {
|
|
1195
|
-
const parsedOutput = {
|
|
1196
|
-
...output,
|
|
1197
|
-
body: await parseErrorBody(output.body, context),
|
|
1198
|
-
};
|
|
1199
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1200
|
-
switch (errorCode) {
|
|
1201
|
-
case "InvalidInputException":
|
|
1202
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1203
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1204
|
-
case "ResourceInUseException":
|
|
1205
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1206
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1207
|
-
case "ResourceNotFoundException":
|
|
1208
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1209
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1210
|
-
default:
|
|
1211
|
-
const parsedBody = parsedOutput.body;
|
|
1212
|
-
return throwDefaultError({
|
|
1213
|
-
output,
|
|
1214
|
-
parsedBody,
|
|
1215
|
-
errorCode,
|
|
1216
|
-
});
|
|
1217
|
-
}
|
|
1218
|
-
};
|
|
1219
639
|
export const de_DeleteMetricAttributionCommand = async (output, context) => {
|
|
1220
640
|
if (output.statusCode >= 300) {
|
|
1221
|
-
return
|
|
641
|
+
return de_CommandError(output, context);
|
|
1222
642
|
}
|
|
1223
643
|
await collectBody(output.body, context);
|
|
1224
644
|
const response = {
|
|
@@ -1226,34 +646,9 @@ export const de_DeleteMetricAttributionCommand = async (output, context) => {
|
|
|
1226
646
|
};
|
|
1227
647
|
return response;
|
|
1228
648
|
};
|
|
1229
|
-
const de_DeleteMetricAttributionCommandError = async (output, context) => {
|
|
1230
|
-
const parsedOutput = {
|
|
1231
|
-
...output,
|
|
1232
|
-
body: await parseErrorBody(output.body, context),
|
|
1233
|
-
};
|
|
1234
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1235
|
-
switch (errorCode) {
|
|
1236
|
-
case "InvalidInputException":
|
|
1237
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1238
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1239
|
-
case "ResourceInUseException":
|
|
1240
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1241
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1242
|
-
case "ResourceNotFoundException":
|
|
1243
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1244
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1245
|
-
default:
|
|
1246
|
-
const parsedBody = parsedOutput.body;
|
|
1247
|
-
return throwDefaultError({
|
|
1248
|
-
output,
|
|
1249
|
-
parsedBody,
|
|
1250
|
-
errorCode,
|
|
1251
|
-
});
|
|
1252
|
-
}
|
|
1253
|
-
};
|
|
1254
649
|
export const de_DeleteRecommenderCommand = async (output, context) => {
|
|
1255
650
|
if (output.statusCode >= 300) {
|
|
1256
|
-
return
|
|
651
|
+
return de_CommandError(output, context);
|
|
1257
652
|
}
|
|
1258
653
|
await collectBody(output.body, context);
|
|
1259
654
|
const response = {
|
|
@@ -1261,34 +656,9 @@ export const de_DeleteRecommenderCommand = async (output, context) => {
|
|
|
1261
656
|
};
|
|
1262
657
|
return response;
|
|
1263
658
|
};
|
|
1264
|
-
const de_DeleteRecommenderCommandError = async (output, context) => {
|
|
1265
|
-
const parsedOutput = {
|
|
1266
|
-
...output,
|
|
1267
|
-
body: await parseErrorBody(output.body, context),
|
|
1268
|
-
};
|
|
1269
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1270
|
-
switch (errorCode) {
|
|
1271
|
-
case "InvalidInputException":
|
|
1272
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1273
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1274
|
-
case "ResourceInUseException":
|
|
1275
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1276
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1277
|
-
case "ResourceNotFoundException":
|
|
1278
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1279
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1280
|
-
default:
|
|
1281
|
-
const parsedBody = parsedOutput.body;
|
|
1282
|
-
return throwDefaultError({
|
|
1283
|
-
output,
|
|
1284
|
-
parsedBody,
|
|
1285
|
-
errorCode,
|
|
1286
|
-
});
|
|
1287
|
-
}
|
|
1288
|
-
};
|
|
1289
659
|
export const de_DeleteSchemaCommand = async (output, context) => {
|
|
1290
660
|
if (output.statusCode >= 300) {
|
|
1291
|
-
return
|
|
661
|
+
return de_CommandError(output, context);
|
|
1292
662
|
}
|
|
1293
663
|
await collectBody(output.body, context);
|
|
1294
664
|
const response = {
|
|
@@ -1296,104 +666,32 @@ export const de_DeleteSchemaCommand = async (output, context) => {
|
|
|
1296
666
|
};
|
|
1297
667
|
return response;
|
|
1298
668
|
};
|
|
1299
|
-
const de_DeleteSchemaCommandError = async (output, context) => {
|
|
1300
|
-
const parsedOutput = {
|
|
1301
|
-
...output,
|
|
1302
|
-
body: await parseErrorBody(output.body, context),
|
|
1303
|
-
};
|
|
1304
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1305
|
-
switch (errorCode) {
|
|
1306
|
-
case "InvalidInputException":
|
|
1307
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1308
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1309
|
-
case "ResourceInUseException":
|
|
1310
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1311
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1312
|
-
case "ResourceNotFoundException":
|
|
1313
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1314
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1315
|
-
default:
|
|
1316
|
-
const parsedBody = parsedOutput.body;
|
|
1317
|
-
return throwDefaultError({
|
|
1318
|
-
output,
|
|
1319
|
-
parsedBody,
|
|
1320
|
-
errorCode,
|
|
1321
|
-
});
|
|
1322
|
-
}
|
|
1323
|
-
};
|
|
1324
669
|
export const de_DeleteSolutionCommand = async (output, context) => {
|
|
1325
670
|
if (output.statusCode >= 300) {
|
|
1326
|
-
return
|
|
671
|
+
return de_CommandError(output, context);
|
|
1327
672
|
}
|
|
1328
673
|
await collectBody(output.body, context);
|
|
1329
674
|
const response = {
|
|
1330
675
|
$metadata: deserializeMetadata(output),
|
|
1331
676
|
};
|
|
1332
|
-
return response;
|
|
1333
|
-
};
|
|
1334
|
-
const
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
body: await parseErrorBody(output.body, context),
|
|
1338
|
-
};
|
|
1339
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1340
|
-
switch (errorCode) {
|
|
1341
|
-
case "InvalidInputException":
|
|
1342
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1343
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1344
|
-
case "ResourceInUseException":
|
|
1345
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1346
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1347
|
-
case "ResourceNotFoundException":
|
|
1348
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1349
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1350
|
-
default:
|
|
1351
|
-
const parsedBody = parsedOutput.body;
|
|
1352
|
-
return throwDefaultError({
|
|
1353
|
-
output,
|
|
1354
|
-
parsedBody,
|
|
1355
|
-
errorCode,
|
|
1356
|
-
});
|
|
1357
|
-
}
|
|
1358
|
-
};
|
|
1359
|
-
export const de_DescribeAlgorithmCommand = async (output, context) => {
|
|
1360
|
-
if (output.statusCode >= 300) {
|
|
1361
|
-
return de_DescribeAlgorithmCommandError(output, context);
|
|
1362
|
-
}
|
|
1363
|
-
const data = await parseBody(output.body, context);
|
|
1364
|
-
let contents = {};
|
|
1365
|
-
contents = de_DescribeAlgorithmResponse(data, context);
|
|
1366
|
-
const response = {
|
|
1367
|
-
$metadata: deserializeMetadata(output),
|
|
1368
|
-
...contents,
|
|
1369
|
-
};
|
|
1370
|
-
return response;
|
|
1371
|
-
};
|
|
1372
|
-
const de_DescribeAlgorithmCommandError = async (output, context) => {
|
|
1373
|
-
const parsedOutput = {
|
|
1374
|
-
...output,
|
|
1375
|
-
body: await parseErrorBody(output.body, context),
|
|
1376
|
-
};
|
|
1377
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1378
|
-
switch (errorCode) {
|
|
1379
|
-
case "InvalidInputException":
|
|
1380
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1381
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1382
|
-
case "ResourceNotFoundException":
|
|
1383
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1384
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1385
|
-
default:
|
|
1386
|
-
const parsedBody = parsedOutput.body;
|
|
1387
|
-
return throwDefaultError({
|
|
1388
|
-
output,
|
|
1389
|
-
parsedBody,
|
|
1390
|
-
errorCode,
|
|
1391
|
-
});
|
|
677
|
+
return response;
|
|
678
|
+
};
|
|
679
|
+
export const de_DescribeAlgorithmCommand = async (output, context) => {
|
|
680
|
+
if (output.statusCode >= 300) {
|
|
681
|
+
return de_CommandError(output, context);
|
|
1392
682
|
}
|
|
683
|
+
const data = await parseBody(output.body, context);
|
|
684
|
+
let contents = {};
|
|
685
|
+
contents = de_DescribeAlgorithmResponse(data, context);
|
|
686
|
+
const response = {
|
|
687
|
+
$metadata: deserializeMetadata(output),
|
|
688
|
+
...contents,
|
|
689
|
+
};
|
|
690
|
+
return response;
|
|
1393
691
|
};
|
|
1394
692
|
export const de_DescribeBatchInferenceJobCommand = async (output, context) => {
|
|
1395
693
|
if (output.statusCode >= 300) {
|
|
1396
|
-
return
|
|
694
|
+
return de_CommandError(output, context);
|
|
1397
695
|
}
|
|
1398
696
|
const data = await parseBody(output.body, context);
|
|
1399
697
|
let contents = {};
|
|
@@ -1404,31 +702,9 @@ export const de_DescribeBatchInferenceJobCommand = async (output, context) => {
|
|
|
1404
702
|
};
|
|
1405
703
|
return response;
|
|
1406
704
|
};
|
|
1407
|
-
const de_DescribeBatchInferenceJobCommandError = async (output, context) => {
|
|
1408
|
-
const parsedOutput = {
|
|
1409
|
-
...output,
|
|
1410
|
-
body: await parseErrorBody(output.body, context),
|
|
1411
|
-
};
|
|
1412
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1413
|
-
switch (errorCode) {
|
|
1414
|
-
case "InvalidInputException":
|
|
1415
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1416
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1417
|
-
case "ResourceNotFoundException":
|
|
1418
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1419
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1420
|
-
default:
|
|
1421
|
-
const parsedBody = parsedOutput.body;
|
|
1422
|
-
return throwDefaultError({
|
|
1423
|
-
output,
|
|
1424
|
-
parsedBody,
|
|
1425
|
-
errorCode,
|
|
1426
|
-
});
|
|
1427
|
-
}
|
|
1428
|
-
};
|
|
1429
705
|
export const de_DescribeBatchSegmentJobCommand = async (output, context) => {
|
|
1430
706
|
if (output.statusCode >= 300) {
|
|
1431
|
-
return
|
|
707
|
+
return de_CommandError(output, context);
|
|
1432
708
|
}
|
|
1433
709
|
const data = await parseBody(output.body, context);
|
|
1434
710
|
let contents = {};
|
|
@@ -1439,31 +715,9 @@ export const de_DescribeBatchSegmentJobCommand = async (output, context) => {
|
|
|
1439
715
|
};
|
|
1440
716
|
return response;
|
|
1441
717
|
};
|
|
1442
|
-
const de_DescribeBatchSegmentJobCommandError = async (output, context) => {
|
|
1443
|
-
const parsedOutput = {
|
|
1444
|
-
...output,
|
|
1445
|
-
body: await parseErrorBody(output.body, context),
|
|
1446
|
-
};
|
|
1447
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1448
|
-
switch (errorCode) {
|
|
1449
|
-
case "InvalidInputException":
|
|
1450
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1451
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1452
|
-
case "ResourceNotFoundException":
|
|
1453
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1454
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1455
|
-
default:
|
|
1456
|
-
const parsedBody = parsedOutput.body;
|
|
1457
|
-
return throwDefaultError({
|
|
1458
|
-
output,
|
|
1459
|
-
parsedBody,
|
|
1460
|
-
errorCode,
|
|
1461
|
-
});
|
|
1462
|
-
}
|
|
1463
|
-
};
|
|
1464
718
|
export const de_DescribeCampaignCommand = async (output, context) => {
|
|
1465
719
|
if (output.statusCode >= 300) {
|
|
1466
|
-
return
|
|
720
|
+
return de_CommandError(output, context);
|
|
1467
721
|
}
|
|
1468
722
|
const data = await parseBody(output.body, context);
|
|
1469
723
|
let contents = {};
|
|
@@ -1474,31 +728,9 @@ export const de_DescribeCampaignCommand = async (output, context) => {
|
|
|
1474
728
|
};
|
|
1475
729
|
return response;
|
|
1476
730
|
};
|
|
1477
|
-
const de_DescribeCampaignCommandError = async (output, context) => {
|
|
1478
|
-
const parsedOutput = {
|
|
1479
|
-
...output,
|
|
1480
|
-
body: await parseErrorBody(output.body, context),
|
|
1481
|
-
};
|
|
1482
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1483
|
-
switch (errorCode) {
|
|
1484
|
-
case "InvalidInputException":
|
|
1485
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1486
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1487
|
-
case "ResourceNotFoundException":
|
|
1488
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1489
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1490
|
-
default:
|
|
1491
|
-
const parsedBody = parsedOutput.body;
|
|
1492
|
-
return throwDefaultError({
|
|
1493
|
-
output,
|
|
1494
|
-
parsedBody,
|
|
1495
|
-
errorCode,
|
|
1496
|
-
});
|
|
1497
|
-
}
|
|
1498
|
-
};
|
|
1499
731
|
export const de_DescribeDatasetCommand = async (output, context) => {
|
|
1500
732
|
if (output.statusCode >= 300) {
|
|
1501
|
-
return
|
|
733
|
+
return de_CommandError(output, context);
|
|
1502
734
|
}
|
|
1503
735
|
const data = await parseBody(output.body, context);
|
|
1504
736
|
let contents = {};
|
|
@@ -1509,31 +741,9 @@ export const de_DescribeDatasetCommand = async (output, context) => {
|
|
|
1509
741
|
};
|
|
1510
742
|
return response;
|
|
1511
743
|
};
|
|
1512
|
-
const de_DescribeDatasetCommandError = async (output, context) => {
|
|
1513
|
-
const parsedOutput = {
|
|
1514
|
-
...output,
|
|
1515
|
-
body: await parseErrorBody(output.body, context),
|
|
1516
|
-
};
|
|
1517
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1518
|
-
switch (errorCode) {
|
|
1519
|
-
case "InvalidInputException":
|
|
1520
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1521
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1522
|
-
case "ResourceNotFoundException":
|
|
1523
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1524
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1525
|
-
default:
|
|
1526
|
-
const parsedBody = parsedOutput.body;
|
|
1527
|
-
return throwDefaultError({
|
|
1528
|
-
output,
|
|
1529
|
-
parsedBody,
|
|
1530
|
-
errorCode,
|
|
1531
|
-
});
|
|
1532
|
-
}
|
|
1533
|
-
};
|
|
1534
744
|
export const de_DescribeDatasetExportJobCommand = async (output, context) => {
|
|
1535
745
|
if (output.statusCode >= 300) {
|
|
1536
|
-
return
|
|
746
|
+
return de_CommandError(output, context);
|
|
1537
747
|
}
|
|
1538
748
|
const data = await parseBody(output.body, context);
|
|
1539
749
|
let contents = {};
|
|
@@ -1544,31 +754,9 @@ export const de_DescribeDatasetExportJobCommand = async (output, context) => {
|
|
|
1544
754
|
};
|
|
1545
755
|
return response;
|
|
1546
756
|
};
|
|
1547
|
-
const de_DescribeDatasetExportJobCommandError = async (output, context) => {
|
|
1548
|
-
const parsedOutput = {
|
|
1549
|
-
...output,
|
|
1550
|
-
body: await parseErrorBody(output.body, context),
|
|
1551
|
-
};
|
|
1552
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1553
|
-
switch (errorCode) {
|
|
1554
|
-
case "InvalidInputException":
|
|
1555
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1556
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1557
|
-
case "ResourceNotFoundException":
|
|
1558
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1559
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1560
|
-
default:
|
|
1561
|
-
const parsedBody = parsedOutput.body;
|
|
1562
|
-
return throwDefaultError({
|
|
1563
|
-
output,
|
|
1564
|
-
parsedBody,
|
|
1565
|
-
errorCode,
|
|
1566
|
-
});
|
|
1567
|
-
}
|
|
1568
|
-
};
|
|
1569
757
|
export const de_DescribeDatasetGroupCommand = async (output, context) => {
|
|
1570
758
|
if (output.statusCode >= 300) {
|
|
1571
|
-
return
|
|
759
|
+
return de_CommandError(output, context);
|
|
1572
760
|
}
|
|
1573
761
|
const data = await parseBody(output.body, context);
|
|
1574
762
|
let contents = {};
|
|
@@ -1579,31 +767,9 @@ export const de_DescribeDatasetGroupCommand = async (output, context) => {
|
|
|
1579
767
|
};
|
|
1580
768
|
return response;
|
|
1581
769
|
};
|
|
1582
|
-
const de_DescribeDatasetGroupCommandError = async (output, context) => {
|
|
1583
|
-
const parsedOutput = {
|
|
1584
|
-
...output,
|
|
1585
|
-
body: await parseErrorBody(output.body, context),
|
|
1586
|
-
};
|
|
1587
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1588
|
-
switch (errorCode) {
|
|
1589
|
-
case "InvalidInputException":
|
|
1590
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1591
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1592
|
-
case "ResourceNotFoundException":
|
|
1593
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1594
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1595
|
-
default:
|
|
1596
|
-
const parsedBody = parsedOutput.body;
|
|
1597
|
-
return throwDefaultError({
|
|
1598
|
-
output,
|
|
1599
|
-
parsedBody,
|
|
1600
|
-
errorCode,
|
|
1601
|
-
});
|
|
1602
|
-
}
|
|
1603
|
-
};
|
|
1604
770
|
export const de_DescribeDatasetImportJobCommand = async (output, context) => {
|
|
1605
771
|
if (output.statusCode >= 300) {
|
|
1606
|
-
return
|
|
772
|
+
return de_CommandError(output, context);
|
|
1607
773
|
}
|
|
1608
774
|
const data = await parseBody(output.body, context);
|
|
1609
775
|
let contents = {};
|
|
@@ -1614,31 +780,9 @@ export const de_DescribeDatasetImportJobCommand = async (output, context) => {
|
|
|
1614
780
|
};
|
|
1615
781
|
return response;
|
|
1616
782
|
};
|
|
1617
|
-
const de_DescribeDatasetImportJobCommandError = async (output, context) => {
|
|
1618
|
-
const parsedOutput = {
|
|
1619
|
-
...output,
|
|
1620
|
-
body: await parseErrorBody(output.body, context),
|
|
1621
|
-
};
|
|
1622
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1623
|
-
switch (errorCode) {
|
|
1624
|
-
case "InvalidInputException":
|
|
1625
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1626
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1627
|
-
case "ResourceNotFoundException":
|
|
1628
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1629
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1630
|
-
default:
|
|
1631
|
-
const parsedBody = parsedOutput.body;
|
|
1632
|
-
return throwDefaultError({
|
|
1633
|
-
output,
|
|
1634
|
-
parsedBody,
|
|
1635
|
-
errorCode,
|
|
1636
|
-
});
|
|
1637
|
-
}
|
|
1638
|
-
};
|
|
1639
783
|
export const de_DescribeEventTrackerCommand = async (output, context) => {
|
|
1640
784
|
if (output.statusCode >= 300) {
|
|
1641
|
-
return
|
|
785
|
+
return de_CommandError(output, context);
|
|
1642
786
|
}
|
|
1643
787
|
const data = await parseBody(output.body, context);
|
|
1644
788
|
let contents = {};
|
|
@@ -1649,31 +793,9 @@ export const de_DescribeEventTrackerCommand = async (output, context) => {
|
|
|
1649
793
|
};
|
|
1650
794
|
return response;
|
|
1651
795
|
};
|
|
1652
|
-
const de_DescribeEventTrackerCommandError = async (output, context) => {
|
|
1653
|
-
const parsedOutput = {
|
|
1654
|
-
...output,
|
|
1655
|
-
body: await parseErrorBody(output.body, context),
|
|
1656
|
-
};
|
|
1657
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1658
|
-
switch (errorCode) {
|
|
1659
|
-
case "InvalidInputException":
|
|
1660
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1661
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1662
|
-
case "ResourceNotFoundException":
|
|
1663
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1664
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1665
|
-
default:
|
|
1666
|
-
const parsedBody = parsedOutput.body;
|
|
1667
|
-
return throwDefaultError({
|
|
1668
|
-
output,
|
|
1669
|
-
parsedBody,
|
|
1670
|
-
errorCode,
|
|
1671
|
-
});
|
|
1672
|
-
}
|
|
1673
|
-
};
|
|
1674
796
|
export const de_DescribeFeatureTransformationCommand = async (output, context) => {
|
|
1675
797
|
if (output.statusCode >= 300) {
|
|
1676
|
-
return
|
|
798
|
+
return de_CommandError(output, context);
|
|
1677
799
|
}
|
|
1678
800
|
const data = await parseBody(output.body, context);
|
|
1679
801
|
let contents = {};
|
|
@@ -1684,31 +806,9 @@ export const de_DescribeFeatureTransformationCommand = async (output, context) =
|
|
|
1684
806
|
};
|
|
1685
807
|
return response;
|
|
1686
808
|
};
|
|
1687
|
-
const de_DescribeFeatureTransformationCommandError = async (output, context) => {
|
|
1688
|
-
const parsedOutput = {
|
|
1689
|
-
...output,
|
|
1690
|
-
body: await parseErrorBody(output.body, context),
|
|
1691
|
-
};
|
|
1692
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1693
|
-
switch (errorCode) {
|
|
1694
|
-
case "InvalidInputException":
|
|
1695
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1696
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1697
|
-
case "ResourceNotFoundException":
|
|
1698
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1699
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1700
|
-
default:
|
|
1701
|
-
const parsedBody = parsedOutput.body;
|
|
1702
|
-
return throwDefaultError({
|
|
1703
|
-
output,
|
|
1704
|
-
parsedBody,
|
|
1705
|
-
errorCode,
|
|
1706
|
-
});
|
|
1707
|
-
}
|
|
1708
|
-
};
|
|
1709
809
|
export const de_DescribeFilterCommand = async (output, context) => {
|
|
1710
810
|
if (output.statusCode >= 300) {
|
|
1711
|
-
return
|
|
811
|
+
return de_CommandError(output, context);
|
|
1712
812
|
}
|
|
1713
813
|
const data = await parseBody(output.body, context);
|
|
1714
814
|
let contents = {};
|
|
@@ -1716,69 +816,25 @@ export const de_DescribeFilterCommand = async (output, context) => {
|
|
|
1716
816
|
const response = {
|
|
1717
817
|
$metadata: deserializeMetadata(output),
|
|
1718
818
|
...contents,
|
|
1719
|
-
};
|
|
1720
|
-
return response;
|
|
1721
|
-
};
|
|
1722
|
-
const
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
body: await parseErrorBody(output.body, context),
|
|
1726
|
-
};
|
|
1727
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1728
|
-
switch (errorCode) {
|
|
1729
|
-
case "InvalidInputException":
|
|
1730
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1731
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1732
|
-
case "ResourceNotFoundException":
|
|
1733
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1734
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1735
|
-
default:
|
|
1736
|
-
const parsedBody = parsedOutput.body;
|
|
1737
|
-
return throwDefaultError({
|
|
1738
|
-
output,
|
|
1739
|
-
parsedBody,
|
|
1740
|
-
errorCode,
|
|
1741
|
-
});
|
|
1742
|
-
}
|
|
1743
|
-
};
|
|
1744
|
-
export const de_DescribeMetricAttributionCommand = async (output, context) => {
|
|
1745
|
-
if (output.statusCode >= 300) {
|
|
1746
|
-
return de_DescribeMetricAttributionCommandError(output, context);
|
|
1747
|
-
}
|
|
1748
|
-
const data = await parseBody(output.body, context);
|
|
1749
|
-
let contents = {};
|
|
1750
|
-
contents = de_DescribeMetricAttributionResponse(data, context);
|
|
1751
|
-
const response = {
|
|
1752
|
-
$metadata: deserializeMetadata(output),
|
|
1753
|
-
...contents,
|
|
1754
|
-
};
|
|
1755
|
-
return response;
|
|
1756
|
-
};
|
|
1757
|
-
const de_DescribeMetricAttributionCommandError = async (output, context) => {
|
|
1758
|
-
const parsedOutput = {
|
|
1759
|
-
...output,
|
|
1760
|
-
body: await parseErrorBody(output.body, context),
|
|
1761
|
-
};
|
|
1762
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1763
|
-
switch (errorCode) {
|
|
1764
|
-
case "InvalidInputException":
|
|
1765
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1766
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1767
|
-
case "ResourceNotFoundException":
|
|
1768
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1769
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1770
|
-
default:
|
|
1771
|
-
const parsedBody = parsedOutput.body;
|
|
1772
|
-
return throwDefaultError({
|
|
1773
|
-
output,
|
|
1774
|
-
parsedBody,
|
|
1775
|
-
errorCode,
|
|
1776
|
-
});
|
|
819
|
+
};
|
|
820
|
+
return response;
|
|
821
|
+
};
|
|
822
|
+
export const de_DescribeMetricAttributionCommand = async (output, context) => {
|
|
823
|
+
if (output.statusCode >= 300) {
|
|
824
|
+
return de_CommandError(output, context);
|
|
1777
825
|
}
|
|
826
|
+
const data = await parseBody(output.body, context);
|
|
827
|
+
let contents = {};
|
|
828
|
+
contents = de_DescribeMetricAttributionResponse(data, context);
|
|
829
|
+
const response = {
|
|
830
|
+
$metadata: deserializeMetadata(output),
|
|
831
|
+
...contents,
|
|
832
|
+
};
|
|
833
|
+
return response;
|
|
1778
834
|
};
|
|
1779
835
|
export const de_DescribeRecipeCommand = async (output, context) => {
|
|
1780
836
|
if (output.statusCode >= 300) {
|
|
1781
|
-
return
|
|
837
|
+
return de_CommandError(output, context);
|
|
1782
838
|
}
|
|
1783
839
|
const data = await parseBody(output.body, context);
|
|
1784
840
|
let contents = {};
|
|
@@ -1789,31 +845,9 @@ export const de_DescribeRecipeCommand = async (output, context) => {
|
|
|
1789
845
|
};
|
|
1790
846
|
return response;
|
|
1791
847
|
};
|
|
1792
|
-
const de_DescribeRecipeCommandError = async (output, context) => {
|
|
1793
|
-
const parsedOutput = {
|
|
1794
|
-
...output,
|
|
1795
|
-
body: await parseErrorBody(output.body, context),
|
|
1796
|
-
};
|
|
1797
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1798
|
-
switch (errorCode) {
|
|
1799
|
-
case "InvalidInputException":
|
|
1800
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1801
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1802
|
-
case "ResourceNotFoundException":
|
|
1803
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1804
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1805
|
-
default:
|
|
1806
|
-
const parsedBody = parsedOutput.body;
|
|
1807
|
-
return throwDefaultError({
|
|
1808
|
-
output,
|
|
1809
|
-
parsedBody,
|
|
1810
|
-
errorCode,
|
|
1811
|
-
});
|
|
1812
|
-
}
|
|
1813
|
-
};
|
|
1814
848
|
export const de_DescribeRecommenderCommand = async (output, context) => {
|
|
1815
849
|
if (output.statusCode >= 300) {
|
|
1816
|
-
return
|
|
850
|
+
return de_CommandError(output, context);
|
|
1817
851
|
}
|
|
1818
852
|
const data = await parseBody(output.body, context);
|
|
1819
853
|
let contents = {};
|
|
@@ -1824,31 +858,9 @@ export const de_DescribeRecommenderCommand = async (output, context) => {
|
|
|
1824
858
|
};
|
|
1825
859
|
return response;
|
|
1826
860
|
};
|
|
1827
|
-
const de_DescribeRecommenderCommandError = async (output, context) => {
|
|
1828
|
-
const parsedOutput = {
|
|
1829
|
-
...output,
|
|
1830
|
-
body: await parseErrorBody(output.body, context),
|
|
1831
|
-
};
|
|
1832
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1833
|
-
switch (errorCode) {
|
|
1834
|
-
case "InvalidInputException":
|
|
1835
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1836
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1837
|
-
case "ResourceNotFoundException":
|
|
1838
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1839
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1840
|
-
default:
|
|
1841
|
-
const parsedBody = parsedOutput.body;
|
|
1842
|
-
return throwDefaultError({
|
|
1843
|
-
output,
|
|
1844
|
-
parsedBody,
|
|
1845
|
-
errorCode,
|
|
1846
|
-
});
|
|
1847
|
-
}
|
|
1848
|
-
};
|
|
1849
861
|
export const de_DescribeSchemaCommand = async (output, context) => {
|
|
1850
862
|
if (output.statusCode >= 300) {
|
|
1851
|
-
return
|
|
863
|
+
return de_CommandError(output, context);
|
|
1852
864
|
}
|
|
1853
865
|
const data = await parseBody(output.body, context);
|
|
1854
866
|
let contents = {};
|
|
@@ -1859,31 +871,9 @@ export const de_DescribeSchemaCommand = async (output, context) => {
|
|
|
1859
871
|
};
|
|
1860
872
|
return response;
|
|
1861
873
|
};
|
|
1862
|
-
const de_DescribeSchemaCommandError = async (output, context) => {
|
|
1863
|
-
const parsedOutput = {
|
|
1864
|
-
...output,
|
|
1865
|
-
body: await parseErrorBody(output.body, context),
|
|
1866
|
-
};
|
|
1867
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1868
|
-
switch (errorCode) {
|
|
1869
|
-
case "InvalidInputException":
|
|
1870
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1871
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1872
|
-
case "ResourceNotFoundException":
|
|
1873
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1874
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1875
|
-
default:
|
|
1876
|
-
const parsedBody = parsedOutput.body;
|
|
1877
|
-
return throwDefaultError({
|
|
1878
|
-
output,
|
|
1879
|
-
parsedBody,
|
|
1880
|
-
errorCode,
|
|
1881
|
-
});
|
|
1882
|
-
}
|
|
1883
|
-
};
|
|
1884
874
|
export const de_DescribeSolutionCommand = async (output, context) => {
|
|
1885
875
|
if (output.statusCode >= 300) {
|
|
1886
|
-
return
|
|
876
|
+
return de_CommandError(output, context);
|
|
1887
877
|
}
|
|
1888
878
|
const data = await parseBody(output.body, context);
|
|
1889
879
|
let contents = {};
|
|
@@ -1894,31 +884,9 @@ export const de_DescribeSolutionCommand = async (output, context) => {
|
|
|
1894
884
|
};
|
|
1895
885
|
return response;
|
|
1896
886
|
};
|
|
1897
|
-
const de_DescribeSolutionCommandError = async (output, context) => {
|
|
1898
|
-
const parsedOutput = {
|
|
1899
|
-
...output,
|
|
1900
|
-
body: await parseErrorBody(output.body, context),
|
|
1901
|
-
};
|
|
1902
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1903
|
-
switch (errorCode) {
|
|
1904
|
-
case "InvalidInputException":
|
|
1905
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1906
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1907
|
-
case "ResourceNotFoundException":
|
|
1908
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1909
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1910
|
-
default:
|
|
1911
|
-
const parsedBody = parsedOutput.body;
|
|
1912
|
-
return throwDefaultError({
|
|
1913
|
-
output,
|
|
1914
|
-
parsedBody,
|
|
1915
|
-
errorCode,
|
|
1916
|
-
});
|
|
1917
|
-
}
|
|
1918
|
-
};
|
|
1919
887
|
export const de_DescribeSolutionVersionCommand = async (output, context) => {
|
|
1920
888
|
if (output.statusCode >= 300) {
|
|
1921
|
-
return
|
|
889
|
+
return de_CommandError(output, context);
|
|
1922
890
|
}
|
|
1923
891
|
const data = await parseBody(output.body, context);
|
|
1924
892
|
let contents = {};
|
|
@@ -1929,31 +897,9 @@ export const de_DescribeSolutionVersionCommand = async (output, context) => {
|
|
|
1929
897
|
};
|
|
1930
898
|
return response;
|
|
1931
899
|
};
|
|
1932
|
-
const de_DescribeSolutionVersionCommandError = async (output, context) => {
|
|
1933
|
-
const parsedOutput = {
|
|
1934
|
-
...output,
|
|
1935
|
-
body: await parseErrorBody(output.body, context),
|
|
1936
|
-
};
|
|
1937
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1938
|
-
switch (errorCode) {
|
|
1939
|
-
case "InvalidInputException":
|
|
1940
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1941
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1942
|
-
case "ResourceNotFoundException":
|
|
1943
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1944
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1945
|
-
default:
|
|
1946
|
-
const parsedBody = parsedOutput.body;
|
|
1947
|
-
return throwDefaultError({
|
|
1948
|
-
output,
|
|
1949
|
-
parsedBody,
|
|
1950
|
-
errorCode,
|
|
1951
|
-
});
|
|
1952
|
-
}
|
|
1953
|
-
};
|
|
1954
900
|
export const de_GetSolutionMetricsCommand = async (output, context) => {
|
|
1955
901
|
if (output.statusCode >= 300) {
|
|
1956
|
-
return
|
|
902
|
+
return de_CommandError(output, context);
|
|
1957
903
|
}
|
|
1958
904
|
const data = await parseBody(output.body, context);
|
|
1959
905
|
let contents = {};
|
|
@@ -1964,34 +910,9 @@ export const de_GetSolutionMetricsCommand = async (output, context) => {
|
|
|
1964
910
|
};
|
|
1965
911
|
return response;
|
|
1966
912
|
};
|
|
1967
|
-
const de_GetSolutionMetricsCommandError = async (output, context) => {
|
|
1968
|
-
const parsedOutput = {
|
|
1969
|
-
...output,
|
|
1970
|
-
body: await parseErrorBody(output.body, context),
|
|
1971
|
-
};
|
|
1972
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1973
|
-
switch (errorCode) {
|
|
1974
|
-
case "InvalidInputException":
|
|
1975
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1976
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1977
|
-
case "ResourceInUseException":
|
|
1978
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1979
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1980
|
-
case "ResourceNotFoundException":
|
|
1981
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1982
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1983
|
-
default:
|
|
1984
|
-
const parsedBody = parsedOutput.body;
|
|
1985
|
-
return throwDefaultError({
|
|
1986
|
-
output,
|
|
1987
|
-
parsedBody,
|
|
1988
|
-
errorCode,
|
|
1989
|
-
});
|
|
1990
|
-
}
|
|
1991
|
-
};
|
|
1992
913
|
export const de_ListBatchInferenceJobsCommand = async (output, context) => {
|
|
1993
914
|
if (output.statusCode >= 300) {
|
|
1994
|
-
return
|
|
915
|
+
return de_CommandError(output, context);
|
|
1995
916
|
}
|
|
1996
917
|
const data = await parseBody(output.body, context);
|
|
1997
918
|
let contents = {};
|
|
@@ -2002,31 +923,9 @@ export const de_ListBatchInferenceJobsCommand = async (output, context) => {
|
|
|
2002
923
|
};
|
|
2003
924
|
return response;
|
|
2004
925
|
};
|
|
2005
|
-
const de_ListBatchInferenceJobsCommandError = async (output, context) => {
|
|
2006
|
-
const parsedOutput = {
|
|
2007
|
-
...output,
|
|
2008
|
-
body: await parseErrorBody(output.body, context),
|
|
2009
|
-
};
|
|
2010
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2011
|
-
switch (errorCode) {
|
|
2012
|
-
case "InvalidInputException":
|
|
2013
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2014
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2015
|
-
case "InvalidNextTokenException":
|
|
2016
|
-
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
2017
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2018
|
-
default:
|
|
2019
|
-
const parsedBody = parsedOutput.body;
|
|
2020
|
-
return throwDefaultError({
|
|
2021
|
-
output,
|
|
2022
|
-
parsedBody,
|
|
2023
|
-
errorCode,
|
|
2024
|
-
});
|
|
2025
|
-
}
|
|
2026
|
-
};
|
|
2027
926
|
export const de_ListBatchSegmentJobsCommand = async (output, context) => {
|
|
2028
927
|
if (output.statusCode >= 300) {
|
|
2029
|
-
return
|
|
928
|
+
return de_CommandError(output, context);
|
|
2030
929
|
}
|
|
2031
930
|
const data = await parseBody(output.body, context);
|
|
2032
931
|
let contents = {};
|
|
@@ -2037,31 +936,9 @@ export const de_ListBatchSegmentJobsCommand = async (output, context) => {
|
|
|
2037
936
|
};
|
|
2038
937
|
return response;
|
|
2039
938
|
};
|
|
2040
|
-
const de_ListBatchSegmentJobsCommandError = async (output, context) => {
|
|
2041
|
-
const parsedOutput = {
|
|
2042
|
-
...output,
|
|
2043
|
-
body: await parseErrorBody(output.body, context),
|
|
2044
|
-
};
|
|
2045
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2046
|
-
switch (errorCode) {
|
|
2047
|
-
case "InvalidInputException":
|
|
2048
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2049
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2050
|
-
case "InvalidNextTokenException":
|
|
2051
|
-
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
2052
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2053
|
-
default:
|
|
2054
|
-
const parsedBody = parsedOutput.body;
|
|
2055
|
-
return throwDefaultError({
|
|
2056
|
-
output,
|
|
2057
|
-
parsedBody,
|
|
2058
|
-
errorCode,
|
|
2059
|
-
});
|
|
2060
|
-
}
|
|
2061
|
-
};
|
|
2062
939
|
export const de_ListCampaignsCommand = async (output, context) => {
|
|
2063
940
|
if (output.statusCode >= 300) {
|
|
2064
|
-
return
|
|
941
|
+
return de_CommandError(output, context);
|
|
2065
942
|
}
|
|
2066
943
|
const data = await parseBody(output.body, context);
|
|
2067
944
|
let contents = {};
|
|
@@ -2072,31 +949,9 @@ export const de_ListCampaignsCommand = async (output, context) => {
|
|
|
2072
949
|
};
|
|
2073
950
|
return response;
|
|
2074
951
|
};
|
|
2075
|
-
const de_ListCampaignsCommandError = async (output, context) => {
|
|
2076
|
-
const parsedOutput = {
|
|
2077
|
-
...output,
|
|
2078
|
-
body: await parseErrorBody(output.body, context),
|
|
2079
|
-
};
|
|
2080
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2081
|
-
switch (errorCode) {
|
|
2082
|
-
case "InvalidInputException":
|
|
2083
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2084
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2085
|
-
case "InvalidNextTokenException":
|
|
2086
|
-
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
2087
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2088
|
-
default:
|
|
2089
|
-
const parsedBody = parsedOutput.body;
|
|
2090
|
-
return throwDefaultError({
|
|
2091
|
-
output,
|
|
2092
|
-
parsedBody,
|
|
2093
|
-
errorCode,
|
|
2094
|
-
});
|
|
2095
|
-
}
|
|
2096
|
-
};
|
|
2097
952
|
export const de_ListDatasetExportJobsCommand = async (output, context) => {
|
|
2098
953
|
if (output.statusCode >= 300) {
|
|
2099
|
-
return
|
|
954
|
+
return de_CommandError(output, context);
|
|
2100
955
|
}
|
|
2101
956
|
const data = await parseBody(output.body, context);
|
|
2102
957
|
let contents = {};
|
|
@@ -2105,65 +960,24 @@ export const de_ListDatasetExportJobsCommand = async (output, context) => {
|
|
|
2105
960
|
$metadata: deserializeMetadata(output),
|
|
2106
961
|
...contents,
|
|
2107
962
|
};
|
|
2108
|
-
return response;
|
|
2109
|
-
};
|
|
2110
|
-
const
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
body: await parseErrorBody(output.body, context),
|
|
2114
|
-
};
|
|
2115
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2116
|
-
switch (errorCode) {
|
|
2117
|
-
case "InvalidInputException":
|
|
2118
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2119
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2120
|
-
case "InvalidNextTokenException":
|
|
2121
|
-
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
2122
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2123
|
-
default:
|
|
2124
|
-
const parsedBody = parsedOutput.body;
|
|
2125
|
-
return throwDefaultError({
|
|
2126
|
-
output,
|
|
2127
|
-
parsedBody,
|
|
2128
|
-
errorCode,
|
|
2129
|
-
});
|
|
2130
|
-
}
|
|
2131
|
-
};
|
|
2132
|
-
export const de_ListDatasetGroupsCommand = async (output, context) => {
|
|
2133
|
-
if (output.statusCode >= 300) {
|
|
2134
|
-
return de_ListDatasetGroupsCommandError(output, context);
|
|
2135
|
-
}
|
|
2136
|
-
const data = await parseBody(output.body, context);
|
|
2137
|
-
let contents = {};
|
|
2138
|
-
contents = de_ListDatasetGroupsResponse(data, context);
|
|
2139
|
-
const response = {
|
|
2140
|
-
$metadata: deserializeMetadata(output),
|
|
2141
|
-
...contents,
|
|
2142
|
-
};
|
|
2143
|
-
return response;
|
|
2144
|
-
};
|
|
2145
|
-
const de_ListDatasetGroupsCommandError = async (output, context) => {
|
|
2146
|
-
const parsedOutput = {
|
|
2147
|
-
...output,
|
|
2148
|
-
body: await parseErrorBody(output.body, context),
|
|
2149
|
-
};
|
|
2150
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2151
|
-
switch (errorCode) {
|
|
2152
|
-
case "InvalidNextTokenException":
|
|
2153
|
-
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
2154
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2155
|
-
default:
|
|
2156
|
-
const parsedBody = parsedOutput.body;
|
|
2157
|
-
return throwDefaultError({
|
|
2158
|
-
output,
|
|
2159
|
-
parsedBody,
|
|
2160
|
-
errorCode,
|
|
2161
|
-
});
|
|
963
|
+
return response;
|
|
964
|
+
};
|
|
965
|
+
export const de_ListDatasetGroupsCommand = async (output, context) => {
|
|
966
|
+
if (output.statusCode >= 300) {
|
|
967
|
+
return de_CommandError(output, context);
|
|
2162
968
|
}
|
|
969
|
+
const data = await parseBody(output.body, context);
|
|
970
|
+
let contents = {};
|
|
971
|
+
contents = de_ListDatasetGroupsResponse(data, context);
|
|
972
|
+
const response = {
|
|
973
|
+
$metadata: deserializeMetadata(output),
|
|
974
|
+
...contents,
|
|
975
|
+
};
|
|
976
|
+
return response;
|
|
2163
977
|
};
|
|
2164
978
|
export const de_ListDatasetImportJobsCommand = async (output, context) => {
|
|
2165
979
|
if (output.statusCode >= 300) {
|
|
2166
|
-
return
|
|
980
|
+
return de_CommandError(output, context);
|
|
2167
981
|
}
|
|
2168
982
|
const data = await parseBody(output.body, context);
|
|
2169
983
|
let contents = {};
|
|
@@ -2174,31 +988,9 @@ export const de_ListDatasetImportJobsCommand = async (output, context) => {
|
|
|
2174
988
|
};
|
|
2175
989
|
return response;
|
|
2176
990
|
};
|
|
2177
|
-
const de_ListDatasetImportJobsCommandError = async (output, context) => {
|
|
2178
|
-
const parsedOutput = {
|
|
2179
|
-
...output,
|
|
2180
|
-
body: await parseErrorBody(output.body, context),
|
|
2181
|
-
};
|
|
2182
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2183
|
-
switch (errorCode) {
|
|
2184
|
-
case "InvalidInputException":
|
|
2185
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2186
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2187
|
-
case "InvalidNextTokenException":
|
|
2188
|
-
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
2189
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2190
|
-
default:
|
|
2191
|
-
const parsedBody = parsedOutput.body;
|
|
2192
|
-
return throwDefaultError({
|
|
2193
|
-
output,
|
|
2194
|
-
parsedBody,
|
|
2195
|
-
errorCode,
|
|
2196
|
-
});
|
|
2197
|
-
}
|
|
2198
|
-
};
|
|
2199
991
|
export const de_ListDatasetsCommand = async (output, context) => {
|
|
2200
992
|
if (output.statusCode >= 300) {
|
|
2201
|
-
return
|
|
993
|
+
return de_CommandError(output, context);
|
|
2202
994
|
}
|
|
2203
995
|
const data = await parseBody(output.body, context);
|
|
2204
996
|
let contents = {};
|
|
@@ -2209,31 +1001,9 @@ export const de_ListDatasetsCommand = async (output, context) => {
|
|
|
2209
1001
|
};
|
|
2210
1002
|
return response;
|
|
2211
1003
|
};
|
|
2212
|
-
const de_ListDatasetsCommandError = async (output, context) => {
|
|
2213
|
-
const parsedOutput = {
|
|
2214
|
-
...output,
|
|
2215
|
-
body: await parseErrorBody(output.body, context),
|
|
2216
|
-
};
|
|
2217
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2218
|
-
switch (errorCode) {
|
|
2219
|
-
case "InvalidInputException":
|
|
2220
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2221
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2222
|
-
case "InvalidNextTokenException":
|
|
2223
|
-
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
2224
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2225
|
-
default:
|
|
2226
|
-
const parsedBody = parsedOutput.body;
|
|
2227
|
-
return throwDefaultError({
|
|
2228
|
-
output,
|
|
2229
|
-
parsedBody,
|
|
2230
|
-
errorCode,
|
|
2231
|
-
});
|
|
2232
|
-
}
|
|
2233
|
-
};
|
|
2234
1004
|
export const de_ListEventTrackersCommand = async (output, context) => {
|
|
2235
1005
|
if (output.statusCode >= 300) {
|
|
2236
|
-
return
|
|
1006
|
+
return de_CommandError(output, context);
|
|
2237
1007
|
}
|
|
2238
1008
|
const data = await parseBody(output.body, context);
|
|
2239
1009
|
let contents = {};
|
|
@@ -2244,31 +1014,9 @@ export const de_ListEventTrackersCommand = async (output, context) => {
|
|
|
2244
1014
|
};
|
|
2245
1015
|
return response;
|
|
2246
1016
|
};
|
|
2247
|
-
const de_ListEventTrackersCommandError = async (output, context) => {
|
|
2248
|
-
const parsedOutput = {
|
|
2249
|
-
...output,
|
|
2250
|
-
body: await parseErrorBody(output.body, context),
|
|
2251
|
-
};
|
|
2252
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2253
|
-
switch (errorCode) {
|
|
2254
|
-
case "InvalidInputException":
|
|
2255
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2256
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2257
|
-
case "InvalidNextTokenException":
|
|
2258
|
-
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
2259
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2260
|
-
default:
|
|
2261
|
-
const parsedBody = parsedOutput.body;
|
|
2262
|
-
return throwDefaultError({
|
|
2263
|
-
output,
|
|
2264
|
-
parsedBody,
|
|
2265
|
-
errorCode,
|
|
2266
|
-
});
|
|
2267
|
-
}
|
|
2268
|
-
};
|
|
2269
1017
|
export const de_ListFiltersCommand = async (output, context) => {
|
|
2270
1018
|
if (output.statusCode >= 300) {
|
|
2271
|
-
return
|
|
1019
|
+
return de_CommandError(output, context);
|
|
2272
1020
|
}
|
|
2273
1021
|
const data = await parseBody(output.body, context);
|
|
2274
1022
|
let contents = {};
|
|
@@ -2279,31 +1027,9 @@ export const de_ListFiltersCommand = async (output, context) => {
|
|
|
2279
1027
|
};
|
|
2280
1028
|
return response;
|
|
2281
1029
|
};
|
|
2282
|
-
const de_ListFiltersCommandError = async (output, context) => {
|
|
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 "InvalidInputException":
|
|
2290
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2291
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2292
|
-
case "InvalidNextTokenException":
|
|
2293
|
-
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
2294
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2295
|
-
default:
|
|
2296
|
-
const parsedBody = parsedOutput.body;
|
|
2297
|
-
return throwDefaultError({
|
|
2298
|
-
output,
|
|
2299
|
-
parsedBody,
|
|
2300
|
-
errorCode,
|
|
2301
|
-
});
|
|
2302
|
-
}
|
|
2303
|
-
};
|
|
2304
1030
|
export const de_ListMetricAttributionMetricsCommand = async (output, context) => {
|
|
2305
1031
|
if (output.statusCode >= 300) {
|
|
2306
|
-
return
|
|
1032
|
+
return de_CommandError(output, context);
|
|
2307
1033
|
}
|
|
2308
1034
|
const data = await parseBody(output.body, context);
|
|
2309
1035
|
let contents = {};
|
|
@@ -2314,31 +1040,9 @@ export const de_ListMetricAttributionMetricsCommand = async (output, context) =>
|
|
|
2314
1040
|
};
|
|
2315
1041
|
return response;
|
|
2316
1042
|
};
|
|
2317
|
-
const de_ListMetricAttributionMetricsCommandError = async (output, context) => {
|
|
2318
|
-
const parsedOutput = {
|
|
2319
|
-
...output,
|
|
2320
|
-
body: await parseErrorBody(output.body, context),
|
|
2321
|
-
};
|
|
2322
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2323
|
-
switch (errorCode) {
|
|
2324
|
-
case "InvalidInputException":
|
|
2325
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2326
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2327
|
-
case "InvalidNextTokenException":
|
|
2328
|
-
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
2329
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2330
|
-
default:
|
|
2331
|
-
const parsedBody = parsedOutput.body;
|
|
2332
|
-
return throwDefaultError({
|
|
2333
|
-
output,
|
|
2334
|
-
parsedBody,
|
|
2335
|
-
errorCode,
|
|
2336
|
-
});
|
|
2337
|
-
}
|
|
2338
|
-
};
|
|
2339
1043
|
export const de_ListMetricAttributionsCommand = async (output, context) => {
|
|
2340
1044
|
if (output.statusCode >= 300) {
|
|
2341
|
-
return
|
|
1045
|
+
return de_CommandError(output, context);
|
|
2342
1046
|
}
|
|
2343
1047
|
const data = await parseBody(output.body, context);
|
|
2344
1048
|
let contents = {};
|
|
@@ -2349,31 +1053,9 @@ export const de_ListMetricAttributionsCommand = async (output, context) => {
|
|
|
2349
1053
|
};
|
|
2350
1054
|
return response;
|
|
2351
1055
|
};
|
|
2352
|
-
const de_ListMetricAttributionsCommandError = async (output, context) => {
|
|
2353
|
-
const parsedOutput = {
|
|
2354
|
-
...output,
|
|
2355
|
-
body: await parseErrorBody(output.body, context),
|
|
2356
|
-
};
|
|
2357
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2358
|
-
switch (errorCode) {
|
|
2359
|
-
case "InvalidInputException":
|
|
2360
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2361
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2362
|
-
case "InvalidNextTokenException":
|
|
2363
|
-
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
2364
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2365
|
-
default:
|
|
2366
|
-
const parsedBody = parsedOutput.body;
|
|
2367
|
-
return throwDefaultError({
|
|
2368
|
-
output,
|
|
2369
|
-
parsedBody,
|
|
2370
|
-
errorCode,
|
|
2371
|
-
});
|
|
2372
|
-
}
|
|
2373
|
-
};
|
|
2374
1056
|
export const de_ListRecipesCommand = async (output, context) => {
|
|
2375
1057
|
if (output.statusCode >= 300) {
|
|
2376
|
-
return
|
|
1058
|
+
return de_CommandError(output, context);
|
|
2377
1059
|
}
|
|
2378
1060
|
const data = await parseBody(output.body, context);
|
|
2379
1061
|
let contents = {};
|
|
@@ -2384,31 +1066,9 @@ export const de_ListRecipesCommand = async (output, context) => {
|
|
|
2384
1066
|
};
|
|
2385
1067
|
return response;
|
|
2386
1068
|
};
|
|
2387
|
-
const de_ListRecipesCommandError = async (output, context) => {
|
|
2388
|
-
const parsedOutput = {
|
|
2389
|
-
...output,
|
|
2390
|
-
body: await parseErrorBody(output.body, context),
|
|
2391
|
-
};
|
|
2392
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2393
|
-
switch (errorCode) {
|
|
2394
|
-
case "InvalidInputException":
|
|
2395
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2396
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2397
|
-
case "InvalidNextTokenException":
|
|
2398
|
-
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
2399
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2400
|
-
default:
|
|
2401
|
-
const parsedBody = parsedOutput.body;
|
|
2402
|
-
return throwDefaultError({
|
|
2403
|
-
output,
|
|
2404
|
-
parsedBody,
|
|
2405
|
-
errorCode,
|
|
2406
|
-
});
|
|
2407
|
-
}
|
|
2408
|
-
};
|
|
2409
1069
|
export const de_ListRecommendersCommand = async (output, context) => {
|
|
2410
1070
|
if (output.statusCode >= 300) {
|
|
2411
|
-
return
|
|
1071
|
+
return de_CommandError(output, context);
|
|
2412
1072
|
}
|
|
2413
1073
|
const data = await parseBody(output.body, context);
|
|
2414
1074
|
let contents = {};
|
|
@@ -2419,31 +1079,9 @@ export const de_ListRecommendersCommand = async (output, context) => {
|
|
|
2419
1079
|
};
|
|
2420
1080
|
return response;
|
|
2421
1081
|
};
|
|
2422
|
-
const de_ListRecommendersCommandError = async (output, context) => {
|
|
2423
|
-
const parsedOutput = {
|
|
2424
|
-
...output,
|
|
2425
|
-
body: await parseErrorBody(output.body, context),
|
|
2426
|
-
};
|
|
2427
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2428
|
-
switch (errorCode) {
|
|
2429
|
-
case "InvalidInputException":
|
|
2430
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2431
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2432
|
-
case "InvalidNextTokenException":
|
|
2433
|
-
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
2434
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2435
|
-
default:
|
|
2436
|
-
const parsedBody = parsedOutput.body;
|
|
2437
|
-
return throwDefaultError({
|
|
2438
|
-
output,
|
|
2439
|
-
parsedBody,
|
|
2440
|
-
errorCode,
|
|
2441
|
-
});
|
|
2442
|
-
}
|
|
2443
|
-
};
|
|
2444
1082
|
export const de_ListSchemasCommand = async (output, context) => {
|
|
2445
1083
|
if (output.statusCode >= 300) {
|
|
2446
|
-
return
|
|
1084
|
+
return de_CommandError(output, context);
|
|
2447
1085
|
}
|
|
2448
1086
|
const data = await parseBody(output.body, context);
|
|
2449
1087
|
let contents = {};
|
|
@@ -2454,28 +1092,9 @@ export const de_ListSchemasCommand = async (output, context) => {
|
|
|
2454
1092
|
};
|
|
2455
1093
|
return response;
|
|
2456
1094
|
};
|
|
2457
|
-
const de_ListSchemasCommandError = async (output, context) => {
|
|
2458
|
-
const parsedOutput = {
|
|
2459
|
-
...output,
|
|
2460
|
-
body: await parseErrorBody(output.body, context),
|
|
2461
|
-
};
|
|
2462
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2463
|
-
switch (errorCode) {
|
|
2464
|
-
case "InvalidNextTokenException":
|
|
2465
|
-
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
2466
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2467
|
-
default:
|
|
2468
|
-
const parsedBody = parsedOutput.body;
|
|
2469
|
-
return throwDefaultError({
|
|
2470
|
-
output,
|
|
2471
|
-
parsedBody,
|
|
2472
|
-
errorCode,
|
|
2473
|
-
});
|
|
2474
|
-
}
|
|
2475
|
-
};
|
|
2476
1095
|
export const de_ListSolutionsCommand = async (output, context) => {
|
|
2477
1096
|
if (output.statusCode >= 300) {
|
|
2478
|
-
return
|
|
1097
|
+
return de_CommandError(output, context);
|
|
2479
1098
|
}
|
|
2480
1099
|
const data = await parseBody(output.body, context);
|
|
2481
1100
|
let contents = {};
|
|
@@ -2483,72 +1102,25 @@ export const de_ListSolutionsCommand = async (output, context) => {
|
|
|
2483
1102
|
const response = {
|
|
2484
1103
|
$metadata: deserializeMetadata(output),
|
|
2485
1104
|
...contents,
|
|
2486
|
-
};
|
|
2487
|
-
return response;
|
|
2488
|
-
};
|
|
2489
|
-
const
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
body: await parseErrorBody(output.body, context),
|
|
2493
|
-
};
|
|
2494
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2495
|
-
switch (errorCode) {
|
|
2496
|
-
case "InvalidInputException":
|
|
2497
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2498
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2499
|
-
case "InvalidNextTokenException":
|
|
2500
|
-
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
2501
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2502
|
-
default:
|
|
2503
|
-
const parsedBody = parsedOutput.body;
|
|
2504
|
-
return throwDefaultError({
|
|
2505
|
-
output,
|
|
2506
|
-
parsedBody,
|
|
2507
|
-
errorCode,
|
|
2508
|
-
});
|
|
2509
|
-
}
|
|
2510
|
-
};
|
|
2511
|
-
export const de_ListSolutionVersionsCommand = async (output, context) => {
|
|
2512
|
-
if (output.statusCode >= 300) {
|
|
2513
|
-
return de_ListSolutionVersionsCommandError(output, context);
|
|
2514
|
-
}
|
|
2515
|
-
const data = await parseBody(output.body, context);
|
|
2516
|
-
let contents = {};
|
|
2517
|
-
contents = de_ListSolutionVersionsResponse(data, context);
|
|
2518
|
-
const response = {
|
|
2519
|
-
$metadata: deserializeMetadata(output),
|
|
2520
|
-
...contents,
|
|
2521
|
-
};
|
|
2522
|
-
return response;
|
|
2523
|
-
};
|
|
2524
|
-
const de_ListSolutionVersionsCommandError = async (output, context) => {
|
|
2525
|
-
const parsedOutput = {
|
|
2526
|
-
...output,
|
|
2527
|
-
body: await parseErrorBody(output.body, context),
|
|
2528
|
-
};
|
|
2529
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2530
|
-
switch (errorCode) {
|
|
2531
|
-
case "InvalidInputException":
|
|
2532
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2533
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2534
|
-
case "InvalidNextTokenException":
|
|
2535
|
-
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
2536
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2537
|
-
case "ResourceNotFoundException":
|
|
2538
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2539
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2540
|
-
default:
|
|
2541
|
-
const parsedBody = parsedOutput.body;
|
|
2542
|
-
return throwDefaultError({
|
|
2543
|
-
output,
|
|
2544
|
-
parsedBody,
|
|
2545
|
-
errorCode,
|
|
2546
|
-
});
|
|
1105
|
+
};
|
|
1106
|
+
return response;
|
|
1107
|
+
};
|
|
1108
|
+
export const de_ListSolutionVersionsCommand = async (output, context) => {
|
|
1109
|
+
if (output.statusCode >= 300) {
|
|
1110
|
+
return de_CommandError(output, context);
|
|
2547
1111
|
}
|
|
1112
|
+
const data = await parseBody(output.body, context);
|
|
1113
|
+
let contents = {};
|
|
1114
|
+
contents = de_ListSolutionVersionsResponse(data, context);
|
|
1115
|
+
const response = {
|
|
1116
|
+
$metadata: deserializeMetadata(output),
|
|
1117
|
+
...contents,
|
|
1118
|
+
};
|
|
1119
|
+
return response;
|
|
2548
1120
|
};
|
|
2549
1121
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2550
1122
|
if (output.statusCode >= 300) {
|
|
2551
|
-
return
|
|
1123
|
+
return de_CommandError(output, context);
|
|
2552
1124
|
}
|
|
2553
1125
|
const data = await parseBody(output.body, context);
|
|
2554
1126
|
let contents = {};
|
|
@@ -2559,34 +1131,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
2559
1131
|
};
|
|
2560
1132
|
return response;
|
|
2561
1133
|
};
|
|
2562
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2563
|
-
const parsedOutput = {
|
|
2564
|
-
...output,
|
|
2565
|
-
body: await parseErrorBody(output.body, context),
|
|
2566
|
-
};
|
|
2567
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2568
|
-
switch (errorCode) {
|
|
2569
|
-
case "InvalidInputException":
|
|
2570
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2571
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2572
|
-
case "ResourceInUseException":
|
|
2573
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
2574
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2575
|
-
case "ResourceNotFoundException":
|
|
2576
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2577
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2578
|
-
default:
|
|
2579
|
-
const parsedBody = parsedOutput.body;
|
|
2580
|
-
return throwDefaultError({
|
|
2581
|
-
output,
|
|
2582
|
-
parsedBody,
|
|
2583
|
-
errorCode,
|
|
2584
|
-
});
|
|
2585
|
-
}
|
|
2586
|
-
};
|
|
2587
1134
|
export const de_StartRecommenderCommand = async (output, context) => {
|
|
2588
1135
|
if (output.statusCode >= 300) {
|
|
2589
|
-
return
|
|
1136
|
+
return de_CommandError(output, context);
|
|
2590
1137
|
}
|
|
2591
1138
|
const data = await parseBody(output.body, context);
|
|
2592
1139
|
let contents = {};
|
|
@@ -2597,34 +1144,9 @@ export const de_StartRecommenderCommand = async (output, context) => {
|
|
|
2597
1144
|
};
|
|
2598
1145
|
return response;
|
|
2599
1146
|
};
|
|
2600
|
-
const de_StartRecommenderCommandError = async (output, context) => {
|
|
2601
|
-
const parsedOutput = {
|
|
2602
|
-
...output,
|
|
2603
|
-
body: await parseErrorBody(output.body, context),
|
|
2604
|
-
};
|
|
2605
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2606
|
-
switch (errorCode) {
|
|
2607
|
-
case "InvalidInputException":
|
|
2608
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2609
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2610
|
-
case "ResourceInUseException":
|
|
2611
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
2612
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2613
|
-
case "ResourceNotFoundException":
|
|
2614
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2615
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2616
|
-
default:
|
|
2617
|
-
const parsedBody = parsedOutput.body;
|
|
2618
|
-
return throwDefaultError({
|
|
2619
|
-
output,
|
|
2620
|
-
parsedBody,
|
|
2621
|
-
errorCode,
|
|
2622
|
-
});
|
|
2623
|
-
}
|
|
2624
|
-
};
|
|
2625
1147
|
export const de_StopRecommenderCommand = async (output, context) => {
|
|
2626
1148
|
if (output.statusCode >= 300) {
|
|
2627
|
-
return
|
|
1149
|
+
return de_CommandError(output, context);
|
|
2628
1150
|
}
|
|
2629
1151
|
const data = await parseBody(output.body, context);
|
|
2630
1152
|
let contents = {};
|
|
@@ -2635,34 +1157,9 @@ export const de_StopRecommenderCommand = async (output, context) => {
|
|
|
2635
1157
|
};
|
|
2636
1158
|
return response;
|
|
2637
1159
|
};
|
|
2638
|
-
const de_StopRecommenderCommandError = async (output, context) => {
|
|
2639
|
-
const parsedOutput = {
|
|
2640
|
-
...output,
|
|
2641
|
-
body: await parseErrorBody(output.body, context),
|
|
2642
|
-
};
|
|
2643
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2644
|
-
switch (errorCode) {
|
|
2645
|
-
case "InvalidInputException":
|
|
2646
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2647
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2648
|
-
case "ResourceInUseException":
|
|
2649
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
2650
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2651
|
-
case "ResourceNotFoundException":
|
|
2652
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2653
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2654
|
-
default:
|
|
2655
|
-
const parsedBody = parsedOutput.body;
|
|
2656
|
-
return throwDefaultError({
|
|
2657
|
-
output,
|
|
2658
|
-
parsedBody,
|
|
2659
|
-
errorCode,
|
|
2660
|
-
});
|
|
2661
|
-
}
|
|
2662
|
-
};
|
|
2663
1160
|
export const de_StopSolutionVersionCreationCommand = async (output, context) => {
|
|
2664
1161
|
if (output.statusCode >= 300) {
|
|
2665
|
-
return
|
|
1162
|
+
return de_CommandError(output, context);
|
|
2666
1163
|
}
|
|
2667
1164
|
await collectBody(output.body, context);
|
|
2668
1165
|
const response = {
|
|
@@ -2670,34 +1167,9 @@ export const de_StopSolutionVersionCreationCommand = async (output, context) =>
|
|
|
2670
1167
|
};
|
|
2671
1168
|
return response;
|
|
2672
1169
|
};
|
|
2673
|
-
const de_StopSolutionVersionCreationCommandError = async (output, context) => {
|
|
2674
|
-
const parsedOutput = {
|
|
2675
|
-
...output,
|
|
2676
|
-
body: await parseErrorBody(output.body, context),
|
|
2677
|
-
};
|
|
2678
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2679
|
-
switch (errorCode) {
|
|
2680
|
-
case "InvalidInputException":
|
|
2681
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2682
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2683
|
-
case "ResourceInUseException":
|
|
2684
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
2685
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2686
|
-
case "ResourceNotFoundException":
|
|
2687
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2688
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2689
|
-
default:
|
|
2690
|
-
const parsedBody = parsedOutput.body;
|
|
2691
|
-
return throwDefaultError({
|
|
2692
|
-
output,
|
|
2693
|
-
parsedBody,
|
|
2694
|
-
errorCode,
|
|
2695
|
-
});
|
|
2696
|
-
}
|
|
2697
|
-
};
|
|
2698
1170
|
export const de_TagResourceCommand = async (output, context) => {
|
|
2699
1171
|
if (output.statusCode >= 300) {
|
|
2700
|
-
return
|
|
1172
|
+
return de_CommandError(output, context);
|
|
2701
1173
|
}
|
|
2702
1174
|
const data = await parseBody(output.body, context);
|
|
2703
1175
|
let contents = {};
|
|
@@ -2708,40 +1180,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
2708
1180
|
};
|
|
2709
1181
|
return response;
|
|
2710
1182
|
};
|
|
2711
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
2712
|
-
const parsedOutput = {
|
|
2713
|
-
...output,
|
|
2714
|
-
body: await parseErrorBody(output.body, context),
|
|
2715
|
-
};
|
|
2716
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2717
|
-
switch (errorCode) {
|
|
2718
|
-
case "InvalidInputException":
|
|
2719
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2720
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2721
|
-
case "LimitExceededException":
|
|
2722
|
-
case "com.amazonaws.personalize#LimitExceededException":
|
|
2723
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2724
|
-
case "ResourceInUseException":
|
|
2725
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
2726
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2727
|
-
case "ResourceNotFoundException":
|
|
2728
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2729
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2730
|
-
case "TooManyTagsException":
|
|
2731
|
-
case "com.amazonaws.personalize#TooManyTagsException":
|
|
2732
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
2733
|
-
default:
|
|
2734
|
-
const parsedBody = parsedOutput.body;
|
|
2735
|
-
return throwDefaultError({
|
|
2736
|
-
output,
|
|
2737
|
-
parsedBody,
|
|
2738
|
-
errorCode,
|
|
2739
|
-
});
|
|
2740
|
-
}
|
|
2741
|
-
};
|
|
2742
1183
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
2743
1184
|
if (output.statusCode >= 300) {
|
|
2744
|
-
return
|
|
1185
|
+
return de_CommandError(output, context);
|
|
2745
1186
|
}
|
|
2746
1187
|
const data = await parseBody(output.body, context);
|
|
2747
1188
|
let contents = {};
|
|
@@ -2752,37 +1193,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
2752
1193
|
};
|
|
2753
1194
|
return response;
|
|
2754
1195
|
};
|
|
2755
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
2756
|
-
const parsedOutput = {
|
|
2757
|
-
...output,
|
|
2758
|
-
body: await parseErrorBody(output.body, context),
|
|
2759
|
-
};
|
|
2760
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2761
|
-
switch (errorCode) {
|
|
2762
|
-
case "InvalidInputException":
|
|
2763
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2764
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2765
|
-
case "ResourceInUseException":
|
|
2766
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
2767
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2768
|
-
case "ResourceNotFoundException":
|
|
2769
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2770
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2771
|
-
case "TooManyTagKeysException":
|
|
2772
|
-
case "com.amazonaws.personalize#TooManyTagKeysException":
|
|
2773
|
-
throw await de_TooManyTagKeysExceptionRes(parsedOutput, context);
|
|
2774
|
-
default:
|
|
2775
|
-
const parsedBody = parsedOutput.body;
|
|
2776
|
-
return throwDefaultError({
|
|
2777
|
-
output,
|
|
2778
|
-
parsedBody,
|
|
2779
|
-
errorCode,
|
|
2780
|
-
});
|
|
2781
|
-
}
|
|
2782
|
-
};
|
|
2783
1196
|
export const de_UpdateCampaignCommand = async (output, context) => {
|
|
2784
1197
|
if (output.statusCode >= 300) {
|
|
2785
|
-
return
|
|
1198
|
+
return de_CommandError(output, context);
|
|
2786
1199
|
}
|
|
2787
1200
|
const data = await parseBody(output.body, context);
|
|
2788
1201
|
let contents = {};
|
|
@@ -2793,34 +1206,9 @@ export const de_UpdateCampaignCommand = async (output, context) => {
|
|
|
2793
1206
|
};
|
|
2794
1207
|
return response;
|
|
2795
1208
|
};
|
|
2796
|
-
const de_UpdateCampaignCommandError = async (output, context) => {
|
|
2797
|
-
const parsedOutput = {
|
|
2798
|
-
...output,
|
|
2799
|
-
body: await parseErrorBody(output.body, context),
|
|
2800
|
-
};
|
|
2801
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2802
|
-
switch (errorCode) {
|
|
2803
|
-
case "InvalidInputException":
|
|
2804
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2805
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2806
|
-
case "ResourceInUseException":
|
|
2807
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
2808
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2809
|
-
case "ResourceNotFoundException":
|
|
2810
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2811
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2812
|
-
default:
|
|
2813
|
-
const parsedBody = parsedOutput.body;
|
|
2814
|
-
return throwDefaultError({
|
|
2815
|
-
output,
|
|
2816
|
-
parsedBody,
|
|
2817
|
-
errorCode,
|
|
2818
|
-
});
|
|
2819
|
-
}
|
|
2820
|
-
};
|
|
2821
1209
|
export const de_UpdateDatasetCommand = async (output, context) => {
|
|
2822
1210
|
if (output.statusCode >= 300) {
|
|
2823
|
-
return
|
|
1211
|
+
return de_CommandError(output, context);
|
|
2824
1212
|
}
|
|
2825
1213
|
const data = await parseBody(output.body, context);
|
|
2826
1214
|
let contents = {};
|
|
@@ -2831,34 +1219,9 @@ export const de_UpdateDatasetCommand = async (output, context) => {
|
|
|
2831
1219
|
};
|
|
2832
1220
|
return response;
|
|
2833
1221
|
};
|
|
2834
|
-
const de_UpdateDatasetCommandError = async (output, context) => {
|
|
2835
|
-
const parsedOutput = {
|
|
2836
|
-
...output,
|
|
2837
|
-
body: await parseErrorBody(output.body, context),
|
|
2838
|
-
};
|
|
2839
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2840
|
-
switch (errorCode) {
|
|
2841
|
-
case "InvalidInputException":
|
|
2842
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2843
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2844
|
-
case "ResourceInUseException":
|
|
2845
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
2846
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2847
|
-
case "ResourceNotFoundException":
|
|
2848
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2849
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2850
|
-
default:
|
|
2851
|
-
const parsedBody = parsedOutput.body;
|
|
2852
|
-
return throwDefaultError({
|
|
2853
|
-
output,
|
|
2854
|
-
parsedBody,
|
|
2855
|
-
errorCode,
|
|
2856
|
-
});
|
|
2857
|
-
}
|
|
2858
|
-
};
|
|
2859
1222
|
export const de_UpdateMetricAttributionCommand = async (output, context) => {
|
|
2860
1223
|
if (output.statusCode >= 300) {
|
|
2861
|
-
return
|
|
1224
|
+
return de_CommandError(output, context);
|
|
2862
1225
|
}
|
|
2863
1226
|
const data = await parseBody(output.body, context);
|
|
2864
1227
|
let contents = {};
|
|
@@ -2869,37 +1232,9 @@ export const de_UpdateMetricAttributionCommand = async (output, context) => {
|
|
|
2869
1232
|
};
|
|
2870
1233
|
return response;
|
|
2871
1234
|
};
|
|
2872
|
-
const de_UpdateMetricAttributionCommandError = async (output, context) => {
|
|
2873
|
-
const parsedOutput = {
|
|
2874
|
-
...output,
|
|
2875
|
-
body: await parseErrorBody(output.body, context),
|
|
2876
|
-
};
|
|
2877
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2878
|
-
switch (errorCode) {
|
|
2879
|
-
case "InvalidInputException":
|
|
2880
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2881
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2882
|
-
case "ResourceAlreadyExistsException":
|
|
2883
|
-
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
2884
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2885
|
-
case "ResourceInUseException":
|
|
2886
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
2887
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2888
|
-
case "ResourceNotFoundException":
|
|
2889
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2890
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2891
|
-
default:
|
|
2892
|
-
const parsedBody = parsedOutput.body;
|
|
2893
|
-
return throwDefaultError({
|
|
2894
|
-
output,
|
|
2895
|
-
parsedBody,
|
|
2896
|
-
errorCode,
|
|
2897
|
-
});
|
|
2898
|
-
}
|
|
2899
|
-
};
|
|
2900
1235
|
export const de_UpdateRecommenderCommand = async (output, context) => {
|
|
2901
1236
|
if (output.statusCode >= 300) {
|
|
2902
|
-
return
|
|
1237
|
+
return de_CommandError(output, context);
|
|
2903
1238
|
}
|
|
2904
1239
|
const data = await parseBody(output.body, context);
|
|
2905
1240
|
let contents = {};
|
|
@@ -2910,7 +1245,7 @@ export const de_UpdateRecommenderCommand = async (output, context) => {
|
|
|
2910
1245
|
};
|
|
2911
1246
|
return response;
|
|
2912
1247
|
};
|
|
2913
|
-
const
|
|
1248
|
+
const de_CommandError = async (output, context) => {
|
|
2914
1249
|
const parsedOutput = {
|
|
2915
1250
|
...output,
|
|
2916
1251
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2920,12 +1255,27 @@ const de_UpdateRecommenderCommandError = async (output, context) => {
|
|
|
2920
1255
|
case "InvalidInputException":
|
|
2921
1256
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
2922
1257
|
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1258
|
+
case "LimitExceededException":
|
|
1259
|
+
case "com.amazonaws.personalize#LimitExceededException":
|
|
1260
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1261
|
+
case "ResourceAlreadyExistsException":
|
|
1262
|
+
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
1263
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2923
1264
|
case "ResourceInUseException":
|
|
2924
1265
|
case "com.amazonaws.personalize#ResourceInUseException":
|
|
2925
1266
|
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2926
1267
|
case "ResourceNotFoundException":
|
|
2927
1268
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2928
1269
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1270
|
+
case "TooManyTagsException":
|
|
1271
|
+
case "com.amazonaws.personalize#TooManyTagsException":
|
|
1272
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1273
|
+
case "InvalidNextTokenException":
|
|
1274
|
+
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
1275
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1276
|
+
case "TooManyTagKeysException":
|
|
1277
|
+
case "com.amazonaws.personalize#TooManyTagKeysException":
|
|
1278
|
+
throw await de_TooManyTagKeysExceptionRes(parsedOutput, context);
|
|
2929
1279
|
default:
|
|
2930
1280
|
const parsedBody = parsedOutput.body;
|
|
2931
1281
|
return throwDefaultError({
|