@aws-sdk/client-entityresolution 3.504.0 → 3.507.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 +36 -821
- package/dist-es/protocols/Aws_restJson1.js +53 -838
- package/package.json +3 -3
|
@@ -341,7 +341,7 @@ export const se_UpdateSchemaMappingCommand = async (input, context) => {
|
|
|
341
341
|
};
|
|
342
342
|
export const de_CreateIdMappingWorkflowCommand = async (output, context) => {
|
|
343
343
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
344
|
-
return
|
|
344
|
+
return de_CommandError(output, context);
|
|
345
345
|
}
|
|
346
346
|
const contents = map({
|
|
347
347
|
$metadata: deserializeMetadata(output),
|
|
@@ -359,43 +359,9 @@ export const de_CreateIdMappingWorkflowCommand = async (output, context) => {
|
|
|
359
359
|
Object.assign(contents, doc);
|
|
360
360
|
return contents;
|
|
361
361
|
};
|
|
362
|
-
const de_CreateIdMappingWorkflowCommandError = async (output, context) => {
|
|
363
|
-
const parsedOutput = {
|
|
364
|
-
...output,
|
|
365
|
-
body: await parseErrorBody(output.body, context),
|
|
366
|
-
};
|
|
367
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
368
|
-
switch (errorCode) {
|
|
369
|
-
case "AccessDeniedException":
|
|
370
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
371
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
372
|
-
case "ConflictException":
|
|
373
|
-
case "com.amazonaws.entityresolution#ConflictException":
|
|
374
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
375
|
-
case "ExceedsLimitException":
|
|
376
|
-
case "com.amazonaws.entityresolution#ExceedsLimitException":
|
|
377
|
-
throw await de_ExceedsLimitExceptionRes(parsedOutput, context);
|
|
378
|
-
case "InternalServerException":
|
|
379
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
380
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
381
|
-
case "ThrottlingException":
|
|
382
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
383
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
384
|
-
case "ValidationException":
|
|
385
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
386
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
387
|
-
default:
|
|
388
|
-
const parsedBody = parsedOutput.body;
|
|
389
|
-
return throwDefaultError({
|
|
390
|
-
output,
|
|
391
|
-
parsedBody,
|
|
392
|
-
errorCode,
|
|
393
|
-
});
|
|
394
|
-
}
|
|
395
|
-
};
|
|
396
362
|
export const de_CreateMatchingWorkflowCommand = async (output, context) => {
|
|
397
363
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
398
|
-
return
|
|
364
|
+
return de_CommandError(output, context);
|
|
399
365
|
}
|
|
400
366
|
const contents = map({
|
|
401
367
|
$metadata: deserializeMetadata(output),
|
|
@@ -414,43 +380,9 @@ export const de_CreateMatchingWorkflowCommand = async (output, context) => {
|
|
|
414
380
|
Object.assign(contents, doc);
|
|
415
381
|
return contents;
|
|
416
382
|
};
|
|
417
|
-
const de_CreateMatchingWorkflowCommandError = async (output, context) => {
|
|
418
|
-
const parsedOutput = {
|
|
419
|
-
...output,
|
|
420
|
-
body: await parseErrorBody(output.body, context),
|
|
421
|
-
};
|
|
422
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
423
|
-
switch (errorCode) {
|
|
424
|
-
case "AccessDeniedException":
|
|
425
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
426
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
427
|
-
case "ConflictException":
|
|
428
|
-
case "com.amazonaws.entityresolution#ConflictException":
|
|
429
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
430
|
-
case "ExceedsLimitException":
|
|
431
|
-
case "com.amazonaws.entityresolution#ExceedsLimitException":
|
|
432
|
-
throw await de_ExceedsLimitExceptionRes(parsedOutput, context);
|
|
433
|
-
case "InternalServerException":
|
|
434
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
435
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
436
|
-
case "ThrottlingException":
|
|
437
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
438
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
439
|
-
case "ValidationException":
|
|
440
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
441
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
442
|
-
default:
|
|
443
|
-
const parsedBody = parsedOutput.body;
|
|
444
|
-
return throwDefaultError({
|
|
445
|
-
output,
|
|
446
|
-
parsedBody,
|
|
447
|
-
errorCode,
|
|
448
|
-
});
|
|
449
|
-
}
|
|
450
|
-
};
|
|
451
383
|
export const de_CreateSchemaMappingCommand = async (output, context) => {
|
|
452
384
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
453
|
-
return
|
|
385
|
+
return de_CommandError(output, context);
|
|
454
386
|
}
|
|
455
387
|
const contents = map({
|
|
456
388
|
$metadata: deserializeMetadata(output),
|
|
@@ -465,43 +397,9 @@ export const de_CreateSchemaMappingCommand = async (output, context) => {
|
|
|
465
397
|
Object.assign(contents, doc);
|
|
466
398
|
return contents;
|
|
467
399
|
};
|
|
468
|
-
const de_CreateSchemaMappingCommandError = async (output, context) => {
|
|
469
|
-
const parsedOutput = {
|
|
470
|
-
...output,
|
|
471
|
-
body: await parseErrorBody(output.body, context),
|
|
472
|
-
};
|
|
473
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
474
|
-
switch (errorCode) {
|
|
475
|
-
case "AccessDeniedException":
|
|
476
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
477
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
478
|
-
case "ConflictException":
|
|
479
|
-
case "com.amazonaws.entityresolution#ConflictException":
|
|
480
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
481
|
-
case "ExceedsLimitException":
|
|
482
|
-
case "com.amazonaws.entityresolution#ExceedsLimitException":
|
|
483
|
-
throw await de_ExceedsLimitExceptionRes(parsedOutput, context);
|
|
484
|
-
case "InternalServerException":
|
|
485
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
486
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
487
|
-
case "ThrottlingException":
|
|
488
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
489
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
490
|
-
case "ValidationException":
|
|
491
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
492
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
493
|
-
default:
|
|
494
|
-
const parsedBody = parsedOutput.body;
|
|
495
|
-
return throwDefaultError({
|
|
496
|
-
output,
|
|
497
|
-
parsedBody,
|
|
498
|
-
errorCode,
|
|
499
|
-
});
|
|
500
|
-
}
|
|
501
|
-
};
|
|
502
400
|
export const de_DeleteIdMappingWorkflowCommand = async (output, context) => {
|
|
503
401
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
504
|
-
return
|
|
402
|
+
return de_CommandError(output, context);
|
|
505
403
|
}
|
|
506
404
|
const contents = map({
|
|
507
405
|
$metadata: deserializeMetadata(output),
|
|
@@ -513,37 +411,9 @@ export const de_DeleteIdMappingWorkflowCommand = async (output, context) => {
|
|
|
513
411
|
Object.assign(contents, doc);
|
|
514
412
|
return contents;
|
|
515
413
|
};
|
|
516
|
-
const de_DeleteIdMappingWorkflowCommandError = async (output, context) => {
|
|
517
|
-
const parsedOutput = {
|
|
518
|
-
...output,
|
|
519
|
-
body: await parseErrorBody(output.body, context),
|
|
520
|
-
};
|
|
521
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
522
|
-
switch (errorCode) {
|
|
523
|
-
case "AccessDeniedException":
|
|
524
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
525
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
526
|
-
case "InternalServerException":
|
|
527
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
528
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
529
|
-
case "ThrottlingException":
|
|
530
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
531
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
532
|
-
case "ValidationException":
|
|
533
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
534
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
535
|
-
default:
|
|
536
|
-
const parsedBody = parsedOutput.body;
|
|
537
|
-
return throwDefaultError({
|
|
538
|
-
output,
|
|
539
|
-
parsedBody,
|
|
540
|
-
errorCode,
|
|
541
|
-
});
|
|
542
|
-
}
|
|
543
|
-
};
|
|
544
414
|
export const de_DeleteMatchingWorkflowCommand = async (output, context) => {
|
|
545
415
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
546
|
-
return
|
|
416
|
+
return de_CommandError(output, context);
|
|
547
417
|
}
|
|
548
418
|
const contents = map({
|
|
549
419
|
$metadata: deserializeMetadata(output),
|
|
@@ -555,37 +425,9 @@ export const de_DeleteMatchingWorkflowCommand = async (output, context) => {
|
|
|
555
425
|
Object.assign(contents, doc);
|
|
556
426
|
return contents;
|
|
557
427
|
};
|
|
558
|
-
const de_DeleteMatchingWorkflowCommandError = async (output, context) => {
|
|
559
|
-
const parsedOutput = {
|
|
560
|
-
...output,
|
|
561
|
-
body: await parseErrorBody(output.body, context),
|
|
562
|
-
};
|
|
563
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
564
|
-
switch (errorCode) {
|
|
565
|
-
case "AccessDeniedException":
|
|
566
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
567
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
568
|
-
case "InternalServerException":
|
|
569
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
570
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
571
|
-
case "ThrottlingException":
|
|
572
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
573
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
574
|
-
case "ValidationException":
|
|
575
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
576
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
577
|
-
default:
|
|
578
|
-
const parsedBody = parsedOutput.body;
|
|
579
|
-
return throwDefaultError({
|
|
580
|
-
output,
|
|
581
|
-
parsedBody,
|
|
582
|
-
errorCode,
|
|
583
|
-
});
|
|
584
|
-
}
|
|
585
|
-
};
|
|
586
428
|
export const de_DeleteSchemaMappingCommand = async (output, context) => {
|
|
587
429
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
588
|
-
return
|
|
430
|
+
return de_CommandError(output, context);
|
|
589
431
|
}
|
|
590
432
|
const contents = map({
|
|
591
433
|
$metadata: deserializeMetadata(output),
|
|
@@ -597,40 +439,9 @@ export const de_DeleteSchemaMappingCommand = async (output, context) => {
|
|
|
597
439
|
Object.assign(contents, doc);
|
|
598
440
|
return contents;
|
|
599
441
|
};
|
|
600
|
-
const de_DeleteSchemaMappingCommandError = async (output, context) => {
|
|
601
|
-
const parsedOutput = {
|
|
602
|
-
...output,
|
|
603
|
-
body: await parseErrorBody(output.body, context),
|
|
604
|
-
};
|
|
605
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
606
|
-
switch (errorCode) {
|
|
607
|
-
case "AccessDeniedException":
|
|
608
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
609
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
610
|
-
case "ConflictException":
|
|
611
|
-
case "com.amazonaws.entityresolution#ConflictException":
|
|
612
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
613
|
-
case "InternalServerException":
|
|
614
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
615
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
616
|
-
case "ThrottlingException":
|
|
617
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
618
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
619
|
-
case "ValidationException":
|
|
620
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
621
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
622
|
-
default:
|
|
623
|
-
const parsedBody = parsedOutput.body;
|
|
624
|
-
return throwDefaultError({
|
|
625
|
-
output,
|
|
626
|
-
parsedBody,
|
|
627
|
-
errorCode,
|
|
628
|
-
});
|
|
629
|
-
}
|
|
630
|
-
};
|
|
631
442
|
export const de_GetIdMappingJobCommand = async (output, context) => {
|
|
632
443
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
633
|
-
return
|
|
444
|
+
return de_CommandError(output, context);
|
|
634
445
|
}
|
|
635
446
|
const contents = map({
|
|
636
447
|
$metadata: deserializeMetadata(output),
|
|
@@ -647,40 +458,9 @@ export const de_GetIdMappingJobCommand = async (output, context) => {
|
|
|
647
458
|
Object.assign(contents, doc);
|
|
648
459
|
return contents;
|
|
649
460
|
};
|
|
650
|
-
const de_GetIdMappingJobCommandError = async (output, context) => {
|
|
651
|
-
const parsedOutput = {
|
|
652
|
-
...output,
|
|
653
|
-
body: await parseErrorBody(output.body, context),
|
|
654
|
-
};
|
|
655
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
656
|
-
switch (errorCode) {
|
|
657
|
-
case "AccessDeniedException":
|
|
658
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
659
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
660
|
-
case "InternalServerException":
|
|
661
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
662
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
663
|
-
case "ResourceNotFoundException":
|
|
664
|
-
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
665
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
666
|
-
case "ThrottlingException":
|
|
667
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
668
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
669
|
-
case "ValidationException":
|
|
670
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
671
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
672
|
-
default:
|
|
673
|
-
const parsedBody = parsedOutput.body;
|
|
674
|
-
return throwDefaultError({
|
|
675
|
-
output,
|
|
676
|
-
parsedBody,
|
|
677
|
-
errorCode,
|
|
678
|
-
});
|
|
679
|
-
}
|
|
680
|
-
};
|
|
681
461
|
export const de_GetIdMappingWorkflowCommand = async (output, context) => {
|
|
682
462
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
683
|
-
return
|
|
463
|
+
return de_CommandError(output, context);
|
|
684
464
|
}
|
|
685
465
|
const contents = map({
|
|
686
466
|
$metadata: deserializeMetadata(output),
|
|
@@ -701,40 +481,9 @@ export const de_GetIdMappingWorkflowCommand = async (output, context) => {
|
|
|
701
481
|
Object.assign(contents, doc);
|
|
702
482
|
return contents;
|
|
703
483
|
};
|
|
704
|
-
const de_GetIdMappingWorkflowCommandError = async (output, context) => {
|
|
705
|
-
const parsedOutput = {
|
|
706
|
-
...output,
|
|
707
|
-
body: await parseErrorBody(output.body, context),
|
|
708
|
-
};
|
|
709
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
710
|
-
switch (errorCode) {
|
|
711
|
-
case "AccessDeniedException":
|
|
712
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
713
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
714
|
-
case "InternalServerException":
|
|
715
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
716
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
717
|
-
case "ResourceNotFoundException":
|
|
718
|
-
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
719
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
720
|
-
case "ThrottlingException":
|
|
721
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
722
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
723
|
-
case "ValidationException":
|
|
724
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
725
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
726
|
-
default:
|
|
727
|
-
const parsedBody = parsedOutput.body;
|
|
728
|
-
return throwDefaultError({
|
|
729
|
-
output,
|
|
730
|
-
parsedBody,
|
|
731
|
-
errorCode,
|
|
732
|
-
});
|
|
733
|
-
}
|
|
734
|
-
};
|
|
735
484
|
export const de_GetMatchIdCommand = async (output, context) => {
|
|
736
485
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
737
|
-
return
|
|
486
|
+
return de_CommandError(output, context);
|
|
738
487
|
}
|
|
739
488
|
const contents = map({
|
|
740
489
|
$metadata: deserializeMetadata(output),
|
|
@@ -746,40 +495,9 @@ export const de_GetMatchIdCommand = async (output, context) => {
|
|
|
746
495
|
Object.assign(contents, doc);
|
|
747
496
|
return contents;
|
|
748
497
|
};
|
|
749
|
-
const de_GetMatchIdCommandError = async (output, context) => {
|
|
750
|
-
const parsedOutput = {
|
|
751
|
-
...output,
|
|
752
|
-
body: await parseErrorBody(output.body, context),
|
|
753
|
-
};
|
|
754
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
755
|
-
switch (errorCode) {
|
|
756
|
-
case "AccessDeniedException":
|
|
757
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
758
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
759
|
-
case "InternalServerException":
|
|
760
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
761
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
762
|
-
case "ResourceNotFoundException":
|
|
763
|
-
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
764
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
765
|
-
case "ThrottlingException":
|
|
766
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
767
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
768
|
-
case "ValidationException":
|
|
769
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
770
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
771
|
-
default:
|
|
772
|
-
const parsedBody = parsedOutput.body;
|
|
773
|
-
return throwDefaultError({
|
|
774
|
-
output,
|
|
775
|
-
parsedBody,
|
|
776
|
-
errorCode,
|
|
777
|
-
});
|
|
778
|
-
}
|
|
779
|
-
};
|
|
780
498
|
export const de_GetMatchingJobCommand = async (output, context) => {
|
|
781
499
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
782
|
-
return
|
|
500
|
+
return de_CommandError(output, context);
|
|
783
501
|
}
|
|
784
502
|
const contents = map({
|
|
785
503
|
$metadata: deserializeMetadata(output),
|
|
@@ -796,40 +514,9 @@ export const de_GetMatchingJobCommand = async (output, context) => {
|
|
|
796
514
|
Object.assign(contents, doc);
|
|
797
515
|
return contents;
|
|
798
516
|
};
|
|
799
|
-
const de_GetMatchingJobCommandError = async (output, context) => {
|
|
800
|
-
const parsedOutput = {
|
|
801
|
-
...output,
|
|
802
|
-
body: await parseErrorBody(output.body, context),
|
|
803
|
-
};
|
|
804
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
805
|
-
switch (errorCode) {
|
|
806
|
-
case "AccessDeniedException":
|
|
807
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
808
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
809
|
-
case "InternalServerException":
|
|
810
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
811
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
812
|
-
case "ResourceNotFoundException":
|
|
813
|
-
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
814
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
815
|
-
case "ThrottlingException":
|
|
816
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
817
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
818
|
-
case "ValidationException":
|
|
819
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
820
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
821
|
-
default:
|
|
822
|
-
const parsedBody = parsedOutput.body;
|
|
823
|
-
return throwDefaultError({
|
|
824
|
-
output,
|
|
825
|
-
parsedBody,
|
|
826
|
-
errorCode,
|
|
827
|
-
});
|
|
828
|
-
}
|
|
829
|
-
};
|
|
830
517
|
export const de_GetMatchingWorkflowCommand = async (output, context) => {
|
|
831
518
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
832
|
-
return
|
|
519
|
+
return de_CommandError(output, context);
|
|
833
520
|
}
|
|
834
521
|
const contents = map({
|
|
835
522
|
$metadata: deserializeMetadata(output),
|
|
@@ -851,40 +538,9 @@ export const de_GetMatchingWorkflowCommand = async (output, context) => {
|
|
|
851
538
|
Object.assign(contents, doc);
|
|
852
539
|
return contents;
|
|
853
540
|
};
|
|
854
|
-
const de_GetMatchingWorkflowCommandError = async (output, context) => {
|
|
855
|
-
const parsedOutput = {
|
|
856
|
-
...output,
|
|
857
|
-
body: await parseErrorBody(output.body, context),
|
|
858
|
-
};
|
|
859
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
860
|
-
switch (errorCode) {
|
|
861
|
-
case "AccessDeniedException":
|
|
862
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
863
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
864
|
-
case "InternalServerException":
|
|
865
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
866
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
867
|
-
case "ResourceNotFoundException":
|
|
868
|
-
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
869
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
870
|
-
case "ThrottlingException":
|
|
871
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
872
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
873
|
-
case "ValidationException":
|
|
874
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
875
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
876
|
-
default:
|
|
877
|
-
const parsedBody = parsedOutput.body;
|
|
878
|
-
return throwDefaultError({
|
|
879
|
-
output,
|
|
880
|
-
parsedBody,
|
|
881
|
-
errorCode,
|
|
882
|
-
});
|
|
883
|
-
}
|
|
884
|
-
};
|
|
885
541
|
export const de_GetProviderServiceCommand = async (output, context) => {
|
|
886
542
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
887
|
-
return
|
|
543
|
+
return de_CommandError(output, context);
|
|
888
544
|
}
|
|
889
545
|
const contents = map({
|
|
890
546
|
$metadata: deserializeMetadata(output),
|
|
@@ -905,40 +561,9 @@ export const de_GetProviderServiceCommand = async (output, context) => {
|
|
|
905
561
|
Object.assign(contents, doc);
|
|
906
562
|
return contents;
|
|
907
563
|
};
|
|
908
|
-
const de_GetProviderServiceCommandError = async (output, context) => {
|
|
909
|
-
const parsedOutput = {
|
|
910
|
-
...output,
|
|
911
|
-
body: await parseErrorBody(output.body, context),
|
|
912
|
-
};
|
|
913
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
914
|
-
switch (errorCode) {
|
|
915
|
-
case "AccessDeniedException":
|
|
916
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
917
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
918
|
-
case "InternalServerException":
|
|
919
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
920
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
921
|
-
case "ResourceNotFoundException":
|
|
922
|
-
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
923
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
924
|
-
case "ThrottlingException":
|
|
925
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
926
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
927
|
-
case "ValidationException":
|
|
928
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
929
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
930
|
-
default:
|
|
931
|
-
const parsedBody = parsedOutput.body;
|
|
932
|
-
return throwDefaultError({
|
|
933
|
-
output,
|
|
934
|
-
parsedBody,
|
|
935
|
-
errorCode,
|
|
936
|
-
});
|
|
937
|
-
}
|
|
938
|
-
};
|
|
939
564
|
export const de_GetSchemaMappingCommand = async (output, context) => {
|
|
940
565
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
941
|
-
return
|
|
566
|
+
return de_CommandError(output, context);
|
|
942
567
|
}
|
|
943
568
|
const contents = map({
|
|
944
569
|
$metadata: deserializeMetadata(output),
|
|
@@ -957,40 +582,9 @@ export const de_GetSchemaMappingCommand = async (output, context) => {
|
|
|
957
582
|
Object.assign(contents, doc);
|
|
958
583
|
return contents;
|
|
959
584
|
};
|
|
960
|
-
const de_GetSchemaMappingCommandError = async (output, context) => {
|
|
961
|
-
const parsedOutput = {
|
|
962
|
-
...output,
|
|
963
|
-
body: await parseErrorBody(output.body, context),
|
|
964
|
-
};
|
|
965
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
966
|
-
switch (errorCode) {
|
|
967
|
-
case "AccessDeniedException":
|
|
968
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
969
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
970
|
-
case "InternalServerException":
|
|
971
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
972
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
973
|
-
case "ResourceNotFoundException":
|
|
974
|
-
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
975
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
976
|
-
case "ThrottlingException":
|
|
977
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
978
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
979
|
-
case "ValidationException":
|
|
980
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
981
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
982
|
-
default:
|
|
983
|
-
const parsedBody = parsedOutput.body;
|
|
984
|
-
return throwDefaultError({
|
|
985
|
-
output,
|
|
986
|
-
parsedBody,
|
|
987
|
-
errorCode,
|
|
988
|
-
});
|
|
989
|
-
}
|
|
990
|
-
};
|
|
991
585
|
export const de_ListIdMappingJobsCommand = async (output, context) => {
|
|
992
586
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
993
|
-
return
|
|
587
|
+
return de_CommandError(output, context);
|
|
994
588
|
}
|
|
995
589
|
const contents = map({
|
|
996
590
|
$metadata: deserializeMetadata(output),
|
|
@@ -1003,40 +597,9 @@ export const de_ListIdMappingJobsCommand = async (output, context) => {
|
|
|
1003
597
|
Object.assign(contents, doc);
|
|
1004
598
|
return contents;
|
|
1005
599
|
};
|
|
1006
|
-
const de_ListIdMappingJobsCommandError = async (output, context) => {
|
|
1007
|
-
const parsedOutput = {
|
|
1008
|
-
...output,
|
|
1009
|
-
body: await parseErrorBody(output.body, context),
|
|
1010
|
-
};
|
|
1011
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1012
|
-
switch (errorCode) {
|
|
1013
|
-
case "AccessDeniedException":
|
|
1014
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
1015
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1016
|
-
case "InternalServerException":
|
|
1017
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
1018
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1019
|
-
case "ResourceNotFoundException":
|
|
1020
|
-
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
1021
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1022
|
-
case "ThrottlingException":
|
|
1023
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
1024
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1025
|
-
case "ValidationException":
|
|
1026
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
1027
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1028
|
-
default:
|
|
1029
|
-
const parsedBody = parsedOutput.body;
|
|
1030
|
-
return throwDefaultError({
|
|
1031
|
-
output,
|
|
1032
|
-
parsedBody,
|
|
1033
|
-
errorCode,
|
|
1034
|
-
});
|
|
1035
|
-
}
|
|
1036
|
-
};
|
|
1037
600
|
export const de_ListIdMappingWorkflowsCommand = async (output, context) => {
|
|
1038
601
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1039
|
-
return
|
|
602
|
+
return de_CommandError(output, context);
|
|
1040
603
|
}
|
|
1041
604
|
const contents = map({
|
|
1042
605
|
$metadata: deserializeMetadata(output),
|
|
@@ -1049,37 +612,9 @@ export const de_ListIdMappingWorkflowsCommand = async (output, context) => {
|
|
|
1049
612
|
Object.assign(contents, doc);
|
|
1050
613
|
return contents;
|
|
1051
614
|
};
|
|
1052
|
-
const de_ListIdMappingWorkflowsCommandError = async (output, context) => {
|
|
1053
|
-
const parsedOutput = {
|
|
1054
|
-
...output,
|
|
1055
|
-
body: await parseErrorBody(output.body, context),
|
|
1056
|
-
};
|
|
1057
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1058
|
-
switch (errorCode) {
|
|
1059
|
-
case "AccessDeniedException":
|
|
1060
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
1061
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1062
|
-
case "InternalServerException":
|
|
1063
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
1064
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1065
|
-
case "ThrottlingException":
|
|
1066
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
1067
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1068
|
-
case "ValidationException":
|
|
1069
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
1070
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1071
|
-
default:
|
|
1072
|
-
const parsedBody = parsedOutput.body;
|
|
1073
|
-
return throwDefaultError({
|
|
1074
|
-
output,
|
|
1075
|
-
parsedBody,
|
|
1076
|
-
errorCode,
|
|
1077
|
-
});
|
|
1078
|
-
}
|
|
1079
|
-
};
|
|
1080
615
|
export const de_ListMatchingJobsCommand = async (output, context) => {
|
|
1081
616
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1082
|
-
return
|
|
617
|
+
return de_CommandError(output, context);
|
|
1083
618
|
}
|
|
1084
619
|
const contents = map({
|
|
1085
620
|
$metadata: deserializeMetadata(output),
|
|
@@ -1092,126 +627,39 @@ export const de_ListMatchingJobsCommand = async (output, context) => {
|
|
|
1092
627
|
Object.assign(contents, doc);
|
|
1093
628
|
return contents;
|
|
1094
629
|
};
|
|
1095
|
-
const de_ListMatchingJobsCommandError = async (output, context) => {
|
|
1096
|
-
const parsedOutput = {
|
|
1097
|
-
...output,
|
|
1098
|
-
body: await parseErrorBody(output.body, context),
|
|
1099
|
-
};
|
|
1100
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1101
|
-
switch (errorCode) {
|
|
1102
|
-
case "AccessDeniedException":
|
|
1103
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
1104
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1105
|
-
case "InternalServerException":
|
|
1106
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
1107
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1108
|
-
case "ResourceNotFoundException":
|
|
1109
|
-
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
1110
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1111
|
-
case "ThrottlingException":
|
|
1112
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
1113
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1114
|
-
case "ValidationException":
|
|
1115
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
1116
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1117
|
-
default:
|
|
1118
|
-
const parsedBody = parsedOutput.body;
|
|
1119
|
-
return throwDefaultError({
|
|
1120
|
-
output,
|
|
1121
|
-
parsedBody,
|
|
1122
|
-
errorCode,
|
|
1123
|
-
});
|
|
1124
|
-
}
|
|
1125
|
-
};
|
|
1126
630
|
export const de_ListMatchingWorkflowsCommand = async (output, context) => {
|
|
1127
631
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1128
|
-
return
|
|
1129
|
-
}
|
|
1130
|
-
const contents = map({
|
|
1131
|
-
$metadata: deserializeMetadata(output),
|
|
1132
|
-
});
|
|
1133
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1134
|
-
const doc = take(data, {
|
|
1135
|
-
nextToken: __expectString,
|
|
1136
|
-
workflowSummaries: (_) => de_MatchingWorkflowList(_, context),
|
|
1137
|
-
});
|
|
1138
|
-
Object.assign(contents, doc);
|
|
1139
|
-
return contents;
|
|
1140
|
-
};
|
|
1141
|
-
const de_ListMatchingWorkflowsCommandError = async (output, context) => {
|
|
1142
|
-
const parsedOutput = {
|
|
1143
|
-
...output,
|
|
1144
|
-
body: await parseErrorBody(output.body, context),
|
|
1145
|
-
};
|
|
1146
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1147
|
-
switch (errorCode) {
|
|
1148
|
-
case "AccessDeniedException":
|
|
1149
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
1150
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1151
|
-
case "InternalServerException":
|
|
1152
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
1153
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1154
|
-
case "ThrottlingException":
|
|
1155
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
1156
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1157
|
-
case "ValidationException":
|
|
1158
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
1159
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1160
|
-
default:
|
|
1161
|
-
const parsedBody = parsedOutput.body;
|
|
1162
|
-
return throwDefaultError({
|
|
1163
|
-
output,
|
|
1164
|
-
parsedBody,
|
|
1165
|
-
errorCode,
|
|
1166
|
-
});
|
|
1167
|
-
}
|
|
1168
|
-
};
|
|
1169
|
-
export const de_ListProviderServicesCommand = async (output, context) => {
|
|
1170
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1171
|
-
return de_ListProviderServicesCommandError(output, context);
|
|
632
|
+
return de_CommandError(output, context);
|
|
1172
633
|
}
|
|
1173
634
|
const contents = map({
|
|
1174
635
|
$metadata: deserializeMetadata(output),
|
|
1175
636
|
});
|
|
1176
637
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1177
|
-
const doc = take(data, {
|
|
1178
|
-
nextToken: __expectString,
|
|
1179
|
-
|
|
1180
|
-
});
|
|
1181
|
-
Object.assign(contents, doc);
|
|
1182
|
-
return contents;
|
|
1183
|
-
};
|
|
1184
|
-
const
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
body: await parseErrorBody(output.body, context),
|
|
1188
|
-
};
|
|
1189
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1190
|
-
switch (errorCode) {
|
|
1191
|
-
case "AccessDeniedException":
|
|
1192
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
1193
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1194
|
-
case "InternalServerException":
|
|
1195
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
1196
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1197
|
-
case "ThrottlingException":
|
|
1198
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
1199
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1200
|
-
case "ValidationException":
|
|
1201
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
1202
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1203
|
-
default:
|
|
1204
|
-
const parsedBody = parsedOutput.body;
|
|
1205
|
-
return throwDefaultError({
|
|
1206
|
-
output,
|
|
1207
|
-
parsedBody,
|
|
1208
|
-
errorCode,
|
|
1209
|
-
});
|
|
638
|
+
const doc = take(data, {
|
|
639
|
+
nextToken: __expectString,
|
|
640
|
+
workflowSummaries: (_) => de_MatchingWorkflowList(_, context),
|
|
641
|
+
});
|
|
642
|
+
Object.assign(contents, doc);
|
|
643
|
+
return contents;
|
|
644
|
+
};
|
|
645
|
+
export const de_ListProviderServicesCommand = async (output, context) => {
|
|
646
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
647
|
+
return de_CommandError(output, context);
|
|
1210
648
|
}
|
|
649
|
+
const contents = map({
|
|
650
|
+
$metadata: deserializeMetadata(output),
|
|
651
|
+
});
|
|
652
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
653
|
+
const doc = take(data, {
|
|
654
|
+
nextToken: __expectString,
|
|
655
|
+
providerServiceSummaries: _json,
|
|
656
|
+
});
|
|
657
|
+
Object.assign(contents, doc);
|
|
658
|
+
return contents;
|
|
1211
659
|
};
|
|
1212
660
|
export const de_ListSchemaMappingsCommand = async (output, context) => {
|
|
1213
661
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1214
|
-
return
|
|
662
|
+
return de_CommandError(output, context);
|
|
1215
663
|
}
|
|
1216
664
|
const contents = map({
|
|
1217
665
|
$metadata: deserializeMetadata(output),
|
|
@@ -1224,37 +672,9 @@ export const de_ListSchemaMappingsCommand = async (output, context) => {
|
|
|
1224
672
|
Object.assign(contents, doc);
|
|
1225
673
|
return contents;
|
|
1226
674
|
};
|
|
1227
|
-
const de_ListSchemaMappingsCommandError = async (output, context) => {
|
|
1228
|
-
const parsedOutput = {
|
|
1229
|
-
...output,
|
|
1230
|
-
body: await parseErrorBody(output.body, context),
|
|
1231
|
-
};
|
|
1232
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1233
|
-
switch (errorCode) {
|
|
1234
|
-
case "AccessDeniedException":
|
|
1235
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
1236
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1237
|
-
case "InternalServerException":
|
|
1238
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
1239
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1240
|
-
case "ThrottlingException":
|
|
1241
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
1242
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1243
|
-
case "ValidationException":
|
|
1244
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
1245
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1246
|
-
default:
|
|
1247
|
-
const parsedBody = parsedOutput.body;
|
|
1248
|
-
return throwDefaultError({
|
|
1249
|
-
output,
|
|
1250
|
-
parsedBody,
|
|
1251
|
-
errorCode,
|
|
1252
|
-
});
|
|
1253
|
-
}
|
|
1254
|
-
};
|
|
1255
675
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1256
676
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1257
|
-
return
|
|
677
|
+
return de_CommandError(output, context);
|
|
1258
678
|
}
|
|
1259
679
|
const contents = map({
|
|
1260
680
|
$metadata: deserializeMetadata(output),
|
|
@@ -1266,34 +686,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1266
686
|
Object.assign(contents, doc);
|
|
1267
687
|
return contents;
|
|
1268
688
|
};
|
|
1269
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1270
|
-
const parsedOutput = {
|
|
1271
|
-
...output,
|
|
1272
|
-
body: await parseErrorBody(output.body, context),
|
|
1273
|
-
};
|
|
1274
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1275
|
-
switch (errorCode) {
|
|
1276
|
-
case "InternalServerException":
|
|
1277
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
1278
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1279
|
-
case "ResourceNotFoundException":
|
|
1280
|
-
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
1281
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1282
|
-
case "ValidationException":
|
|
1283
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
1284
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1285
|
-
default:
|
|
1286
|
-
const parsedBody = parsedOutput.body;
|
|
1287
|
-
return throwDefaultError({
|
|
1288
|
-
output,
|
|
1289
|
-
parsedBody,
|
|
1290
|
-
errorCode,
|
|
1291
|
-
});
|
|
1292
|
-
}
|
|
1293
|
-
};
|
|
1294
689
|
export const de_StartIdMappingJobCommand = async (output, context) => {
|
|
1295
690
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1296
|
-
return
|
|
691
|
+
return de_CommandError(output, context);
|
|
1297
692
|
}
|
|
1298
693
|
const contents = map({
|
|
1299
694
|
$metadata: deserializeMetadata(output),
|
|
@@ -1305,46 +700,9 @@ export const de_StartIdMappingJobCommand = async (output, context) => {
|
|
|
1305
700
|
Object.assign(contents, doc);
|
|
1306
701
|
return contents;
|
|
1307
702
|
};
|
|
1308
|
-
const de_StartIdMappingJobCommandError = async (output, context) => {
|
|
1309
|
-
const parsedOutput = {
|
|
1310
|
-
...output,
|
|
1311
|
-
body: await parseErrorBody(output.body, context),
|
|
1312
|
-
};
|
|
1313
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1314
|
-
switch (errorCode) {
|
|
1315
|
-
case "AccessDeniedException":
|
|
1316
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
1317
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1318
|
-
case "ConflictException":
|
|
1319
|
-
case "com.amazonaws.entityresolution#ConflictException":
|
|
1320
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1321
|
-
case "ExceedsLimitException":
|
|
1322
|
-
case "com.amazonaws.entityresolution#ExceedsLimitException":
|
|
1323
|
-
throw await de_ExceedsLimitExceptionRes(parsedOutput, context);
|
|
1324
|
-
case "InternalServerException":
|
|
1325
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
1326
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1327
|
-
case "ResourceNotFoundException":
|
|
1328
|
-
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
1329
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1330
|
-
case "ThrottlingException":
|
|
1331
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
1332
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1333
|
-
case "ValidationException":
|
|
1334
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
1335
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1336
|
-
default:
|
|
1337
|
-
const parsedBody = parsedOutput.body;
|
|
1338
|
-
return throwDefaultError({
|
|
1339
|
-
output,
|
|
1340
|
-
parsedBody,
|
|
1341
|
-
errorCode,
|
|
1342
|
-
});
|
|
1343
|
-
}
|
|
1344
|
-
};
|
|
1345
703
|
export const de_StartMatchingJobCommand = async (output, context) => {
|
|
1346
704
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1347
|
-
return
|
|
705
|
+
return de_CommandError(output, context);
|
|
1348
706
|
}
|
|
1349
707
|
const contents = map({
|
|
1350
708
|
$metadata: deserializeMetadata(output),
|
|
@@ -1356,46 +714,9 @@ export const de_StartMatchingJobCommand = async (output, context) => {
|
|
|
1356
714
|
Object.assign(contents, doc);
|
|
1357
715
|
return contents;
|
|
1358
716
|
};
|
|
1359
|
-
const de_StartMatchingJobCommandError = async (output, context) => {
|
|
1360
|
-
const parsedOutput = {
|
|
1361
|
-
...output,
|
|
1362
|
-
body: await parseErrorBody(output.body, context),
|
|
1363
|
-
};
|
|
1364
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1365
|
-
switch (errorCode) {
|
|
1366
|
-
case "AccessDeniedException":
|
|
1367
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
1368
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1369
|
-
case "ConflictException":
|
|
1370
|
-
case "com.amazonaws.entityresolution#ConflictException":
|
|
1371
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1372
|
-
case "ExceedsLimitException":
|
|
1373
|
-
case "com.amazonaws.entityresolution#ExceedsLimitException":
|
|
1374
|
-
throw await de_ExceedsLimitExceptionRes(parsedOutput, context);
|
|
1375
|
-
case "InternalServerException":
|
|
1376
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
1377
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1378
|
-
case "ResourceNotFoundException":
|
|
1379
|
-
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
1380
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1381
|
-
case "ThrottlingException":
|
|
1382
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
1383
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1384
|
-
case "ValidationException":
|
|
1385
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
1386
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1387
|
-
default:
|
|
1388
|
-
const parsedBody = parsedOutput.body;
|
|
1389
|
-
return throwDefaultError({
|
|
1390
|
-
output,
|
|
1391
|
-
parsedBody,
|
|
1392
|
-
errorCode,
|
|
1393
|
-
});
|
|
1394
|
-
}
|
|
1395
|
-
};
|
|
1396
717
|
export const de_TagResourceCommand = async (output, context) => {
|
|
1397
718
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1398
|
-
return
|
|
719
|
+
return de_CommandError(output, context);
|
|
1399
720
|
}
|
|
1400
721
|
const contents = map({
|
|
1401
722
|
$metadata: deserializeMetadata(output),
|
|
@@ -1403,34 +724,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1403
724
|
await collectBody(output.body, context);
|
|
1404
725
|
return contents;
|
|
1405
726
|
};
|
|
1406
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1407
|
-
const parsedOutput = {
|
|
1408
|
-
...output,
|
|
1409
|
-
body: await parseErrorBody(output.body, context),
|
|
1410
|
-
};
|
|
1411
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1412
|
-
switch (errorCode) {
|
|
1413
|
-
case "InternalServerException":
|
|
1414
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
1415
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1416
|
-
case "ResourceNotFoundException":
|
|
1417
|
-
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
1418
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1419
|
-
case "ValidationException":
|
|
1420
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
1421
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1422
|
-
default:
|
|
1423
|
-
const parsedBody = parsedOutput.body;
|
|
1424
|
-
return throwDefaultError({
|
|
1425
|
-
output,
|
|
1426
|
-
parsedBody,
|
|
1427
|
-
errorCode,
|
|
1428
|
-
});
|
|
1429
|
-
}
|
|
1430
|
-
};
|
|
1431
727
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
1432
728
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1433
|
-
return
|
|
729
|
+
return de_CommandError(output, context);
|
|
1434
730
|
}
|
|
1435
731
|
const contents = map({
|
|
1436
732
|
$metadata: deserializeMetadata(output),
|
|
@@ -1438,31 +734,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1438
734
|
await collectBody(output.body, context);
|
|
1439
735
|
return contents;
|
|
1440
736
|
};
|
|
1441
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1442
|
-
const parsedOutput = {
|
|
1443
|
-
...output,
|
|
1444
|
-
body: await parseErrorBody(output.body, context),
|
|
1445
|
-
};
|
|
1446
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1447
|
-
switch (errorCode) {
|
|
1448
|
-
case "InternalServerException":
|
|
1449
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
1450
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1451
|
-
case "ResourceNotFoundException":
|
|
1452
|
-
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
1453
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1454
|
-
default:
|
|
1455
|
-
const parsedBody = parsedOutput.body;
|
|
1456
|
-
return throwDefaultError({
|
|
1457
|
-
output,
|
|
1458
|
-
parsedBody,
|
|
1459
|
-
errorCode,
|
|
1460
|
-
});
|
|
1461
|
-
}
|
|
1462
|
-
};
|
|
1463
737
|
export const de_UpdateIdMappingWorkflowCommand = async (output, context) => {
|
|
1464
738
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1465
|
-
return
|
|
739
|
+
return de_CommandError(output, context);
|
|
1466
740
|
}
|
|
1467
741
|
const contents = map({
|
|
1468
742
|
$metadata: deserializeMetadata(output),
|
|
@@ -1480,40 +754,9 @@ export const de_UpdateIdMappingWorkflowCommand = async (output, context) => {
|
|
|
1480
754
|
Object.assign(contents, doc);
|
|
1481
755
|
return contents;
|
|
1482
756
|
};
|
|
1483
|
-
const de_UpdateIdMappingWorkflowCommandError = async (output, context) => {
|
|
1484
|
-
const parsedOutput = {
|
|
1485
|
-
...output,
|
|
1486
|
-
body: await parseErrorBody(output.body, context),
|
|
1487
|
-
};
|
|
1488
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1489
|
-
switch (errorCode) {
|
|
1490
|
-
case "AccessDeniedException":
|
|
1491
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
1492
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1493
|
-
case "InternalServerException":
|
|
1494
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
1495
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1496
|
-
case "ResourceNotFoundException":
|
|
1497
|
-
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
1498
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1499
|
-
case "ThrottlingException":
|
|
1500
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
1501
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1502
|
-
case "ValidationException":
|
|
1503
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
1504
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1505
|
-
default:
|
|
1506
|
-
const parsedBody = parsedOutput.body;
|
|
1507
|
-
return throwDefaultError({
|
|
1508
|
-
output,
|
|
1509
|
-
parsedBody,
|
|
1510
|
-
errorCode,
|
|
1511
|
-
});
|
|
1512
|
-
}
|
|
1513
|
-
};
|
|
1514
757
|
export const de_UpdateMatchingWorkflowCommand = async (output, context) => {
|
|
1515
758
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1516
|
-
return
|
|
759
|
+
return de_CommandError(output, context);
|
|
1517
760
|
}
|
|
1518
761
|
const contents = map({
|
|
1519
762
|
$metadata: deserializeMetadata(output),
|
|
@@ -1531,40 +774,9 @@ export const de_UpdateMatchingWorkflowCommand = async (output, context) => {
|
|
|
1531
774
|
Object.assign(contents, doc);
|
|
1532
775
|
return contents;
|
|
1533
776
|
};
|
|
1534
|
-
const de_UpdateMatchingWorkflowCommandError = async (output, context) => {
|
|
1535
|
-
const parsedOutput = {
|
|
1536
|
-
...output,
|
|
1537
|
-
body: await parseErrorBody(output.body, context),
|
|
1538
|
-
};
|
|
1539
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1540
|
-
switch (errorCode) {
|
|
1541
|
-
case "AccessDeniedException":
|
|
1542
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
1543
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1544
|
-
case "InternalServerException":
|
|
1545
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
1546
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1547
|
-
case "ResourceNotFoundException":
|
|
1548
|
-
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
1549
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1550
|
-
case "ThrottlingException":
|
|
1551
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
1552
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1553
|
-
case "ValidationException":
|
|
1554
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
1555
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1556
|
-
default:
|
|
1557
|
-
const parsedBody = parsedOutput.body;
|
|
1558
|
-
return throwDefaultError({
|
|
1559
|
-
output,
|
|
1560
|
-
parsedBody,
|
|
1561
|
-
errorCode,
|
|
1562
|
-
});
|
|
1563
|
-
}
|
|
1564
|
-
};
|
|
1565
777
|
export const de_UpdateSchemaMappingCommand = async (output, context) => {
|
|
1566
778
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1567
|
-
return
|
|
779
|
+
return de_CommandError(output, context);
|
|
1568
780
|
}
|
|
1569
781
|
const contents = map({
|
|
1570
782
|
$metadata: deserializeMetadata(output),
|
|
@@ -1579,7 +791,7 @@ export const de_UpdateSchemaMappingCommand = async (output, context) => {
|
|
|
1579
791
|
Object.assign(contents, doc);
|
|
1580
792
|
return contents;
|
|
1581
793
|
};
|
|
1582
|
-
const
|
|
794
|
+
const de_CommandError = async (output, context) => {
|
|
1583
795
|
const parsedOutput = {
|
|
1584
796
|
...output,
|
|
1585
797
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1592,18 +804,21 @@ const de_UpdateSchemaMappingCommandError = async (output, context) => {
|
|
|
1592
804
|
case "ConflictException":
|
|
1593
805
|
case "com.amazonaws.entityresolution#ConflictException":
|
|
1594
806
|
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
807
|
+
case "ExceedsLimitException":
|
|
808
|
+
case "com.amazonaws.entityresolution#ExceedsLimitException":
|
|
809
|
+
throw await de_ExceedsLimitExceptionRes(parsedOutput, context);
|
|
1595
810
|
case "InternalServerException":
|
|
1596
811
|
case "com.amazonaws.entityresolution#InternalServerException":
|
|
1597
812
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1598
|
-
case "ResourceNotFoundException":
|
|
1599
|
-
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
1600
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1601
813
|
case "ThrottlingException":
|
|
1602
814
|
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
1603
815
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1604
816
|
case "ValidationException":
|
|
1605
817
|
case "com.amazonaws.entityresolution#ValidationException":
|
|
1606
818
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
819
|
+
case "ResourceNotFoundException":
|
|
820
|
+
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
821
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1607
822
|
default:
|
|
1608
823
|
const parsedBody = parsedOutput.body;
|
|
1609
824
|
return throwDefaultError({
|