@aws-sdk/client-route53-recovery-readiness 3.503.1 → 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 +73 -992
- package/dist-es/protocols/Aws_restJson1.js +64 -983
- package/package.json +3 -3
|
@@ -393,7 +393,7 @@ export const se_UpdateResourceSetCommand = async (input, context) => {
|
|
|
393
393
|
};
|
|
394
394
|
export const de_CreateCellCommand = async (output, context) => {
|
|
395
395
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
396
|
-
return
|
|
396
|
+
return de_CommandError(output, context);
|
|
397
397
|
}
|
|
398
398
|
const contents = map({
|
|
399
399
|
$metadata: deserializeMetadata(output),
|
|
@@ -409,40 +409,9 @@ export const de_CreateCellCommand = async (output, context) => {
|
|
|
409
409
|
Object.assign(contents, doc);
|
|
410
410
|
return contents;
|
|
411
411
|
};
|
|
412
|
-
const de_CreateCellCommandError = async (output, context) => {
|
|
413
|
-
const parsedOutput = {
|
|
414
|
-
...output,
|
|
415
|
-
body: await parseErrorBody(output.body, context),
|
|
416
|
-
};
|
|
417
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
418
|
-
switch (errorCode) {
|
|
419
|
-
case "AccessDeniedException":
|
|
420
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
421
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
422
|
-
case "ConflictException":
|
|
423
|
-
case "com.amazonaws.route53recoveryreadiness#ConflictException":
|
|
424
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
425
|
-
case "InternalServerException":
|
|
426
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
427
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
428
|
-
case "ThrottlingException":
|
|
429
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
430
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
431
|
-
case "ValidationException":
|
|
432
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
433
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
434
|
-
default:
|
|
435
|
-
const parsedBody = parsedOutput.body;
|
|
436
|
-
return throwDefaultError({
|
|
437
|
-
output,
|
|
438
|
-
parsedBody,
|
|
439
|
-
errorCode,
|
|
440
|
-
});
|
|
441
|
-
}
|
|
442
|
-
};
|
|
443
412
|
export const de_CreateCrossAccountAuthorizationCommand = async (output, context) => {
|
|
444
413
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
445
|
-
return
|
|
414
|
+
return de_CommandError(output, context);
|
|
446
415
|
}
|
|
447
416
|
const contents = map({
|
|
448
417
|
$metadata: deserializeMetadata(output),
|
|
@@ -454,40 +423,9 @@ export const de_CreateCrossAccountAuthorizationCommand = async (output, context)
|
|
|
454
423
|
Object.assign(contents, doc);
|
|
455
424
|
return contents;
|
|
456
425
|
};
|
|
457
|
-
const de_CreateCrossAccountAuthorizationCommandError = async (output, context) => {
|
|
458
|
-
const parsedOutput = {
|
|
459
|
-
...output,
|
|
460
|
-
body: await parseErrorBody(output.body, context),
|
|
461
|
-
};
|
|
462
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
463
|
-
switch (errorCode) {
|
|
464
|
-
case "AccessDeniedException":
|
|
465
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
466
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
467
|
-
case "ConflictException":
|
|
468
|
-
case "com.amazonaws.route53recoveryreadiness#ConflictException":
|
|
469
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
470
|
-
case "InternalServerException":
|
|
471
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
472
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
473
|
-
case "ThrottlingException":
|
|
474
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
475
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
476
|
-
case "ValidationException":
|
|
477
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
478
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
479
|
-
default:
|
|
480
|
-
const parsedBody = parsedOutput.body;
|
|
481
|
-
return throwDefaultError({
|
|
482
|
-
output,
|
|
483
|
-
parsedBody,
|
|
484
|
-
errorCode,
|
|
485
|
-
});
|
|
486
|
-
}
|
|
487
|
-
};
|
|
488
426
|
export const de_CreateReadinessCheckCommand = async (output, context) => {
|
|
489
427
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
490
|
-
return
|
|
428
|
+
return de_CommandError(output, context);
|
|
491
429
|
}
|
|
492
430
|
const contents = map({
|
|
493
431
|
$metadata: deserializeMetadata(output),
|
|
@@ -502,40 +440,9 @@ export const de_CreateReadinessCheckCommand = async (output, context) => {
|
|
|
502
440
|
Object.assign(contents, doc);
|
|
503
441
|
return contents;
|
|
504
442
|
};
|
|
505
|
-
const de_CreateReadinessCheckCommandError = async (output, context) => {
|
|
506
|
-
const parsedOutput = {
|
|
507
|
-
...output,
|
|
508
|
-
body: await parseErrorBody(output.body, context),
|
|
509
|
-
};
|
|
510
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
511
|
-
switch (errorCode) {
|
|
512
|
-
case "AccessDeniedException":
|
|
513
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
514
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
515
|
-
case "ConflictException":
|
|
516
|
-
case "com.amazonaws.route53recoveryreadiness#ConflictException":
|
|
517
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
518
|
-
case "InternalServerException":
|
|
519
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
520
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
521
|
-
case "ThrottlingException":
|
|
522
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
523
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
524
|
-
case "ValidationException":
|
|
525
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
526
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
527
|
-
default:
|
|
528
|
-
const parsedBody = parsedOutput.body;
|
|
529
|
-
return throwDefaultError({
|
|
530
|
-
output,
|
|
531
|
-
parsedBody,
|
|
532
|
-
errorCode,
|
|
533
|
-
});
|
|
534
|
-
}
|
|
535
|
-
};
|
|
536
443
|
export const de_CreateRecoveryGroupCommand = async (output, context) => {
|
|
537
444
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
538
|
-
return
|
|
445
|
+
return de_CommandError(output, context);
|
|
539
446
|
}
|
|
540
447
|
const contents = map({
|
|
541
448
|
$metadata: deserializeMetadata(output),
|
|
@@ -550,40 +457,9 @@ export const de_CreateRecoveryGroupCommand = async (output, context) => {
|
|
|
550
457
|
Object.assign(contents, doc);
|
|
551
458
|
return contents;
|
|
552
459
|
};
|
|
553
|
-
const de_CreateRecoveryGroupCommandError = async (output, context) => {
|
|
554
|
-
const parsedOutput = {
|
|
555
|
-
...output,
|
|
556
|
-
body: await parseErrorBody(output.body, context),
|
|
557
|
-
};
|
|
558
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
559
|
-
switch (errorCode) {
|
|
560
|
-
case "AccessDeniedException":
|
|
561
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
562
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
563
|
-
case "ConflictException":
|
|
564
|
-
case "com.amazonaws.route53recoveryreadiness#ConflictException":
|
|
565
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
566
|
-
case "InternalServerException":
|
|
567
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
568
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
569
|
-
case "ThrottlingException":
|
|
570
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
571
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
572
|
-
case "ValidationException":
|
|
573
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
574
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
575
|
-
default:
|
|
576
|
-
const parsedBody = parsedOutput.body;
|
|
577
|
-
return throwDefaultError({
|
|
578
|
-
output,
|
|
579
|
-
parsedBody,
|
|
580
|
-
errorCode,
|
|
581
|
-
});
|
|
582
|
-
}
|
|
583
|
-
};
|
|
584
460
|
export const de_CreateResourceSetCommand = async (output, context) => {
|
|
585
461
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
586
|
-
return
|
|
462
|
+
return de_CommandError(output, context);
|
|
587
463
|
}
|
|
588
464
|
const contents = map({
|
|
589
465
|
$metadata: deserializeMetadata(output),
|
|
@@ -599,40 +475,9 @@ export const de_CreateResourceSetCommand = async (output, context) => {
|
|
|
599
475
|
Object.assign(contents, doc);
|
|
600
476
|
return contents;
|
|
601
477
|
};
|
|
602
|
-
const de_CreateResourceSetCommandError = async (output, context) => {
|
|
603
|
-
const parsedOutput = {
|
|
604
|
-
...output,
|
|
605
|
-
body: await parseErrorBody(output.body, context),
|
|
606
|
-
};
|
|
607
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
608
|
-
switch (errorCode) {
|
|
609
|
-
case "AccessDeniedException":
|
|
610
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
611
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
612
|
-
case "ConflictException":
|
|
613
|
-
case "com.amazonaws.route53recoveryreadiness#ConflictException":
|
|
614
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
615
|
-
case "InternalServerException":
|
|
616
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
617
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
618
|
-
case "ThrottlingException":
|
|
619
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
620
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
621
|
-
case "ValidationException":
|
|
622
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
623
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
624
|
-
default:
|
|
625
|
-
const parsedBody = parsedOutput.body;
|
|
626
|
-
return throwDefaultError({
|
|
627
|
-
output,
|
|
628
|
-
parsedBody,
|
|
629
|
-
errorCode,
|
|
630
|
-
});
|
|
631
|
-
}
|
|
632
|
-
};
|
|
633
478
|
export const de_DeleteCellCommand = async (output, context) => {
|
|
634
479
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
635
|
-
return
|
|
480
|
+
return de_CommandError(output, context);
|
|
636
481
|
}
|
|
637
482
|
const contents = map({
|
|
638
483
|
$metadata: deserializeMetadata(output),
|
|
@@ -640,40 +485,9 @@ export const de_DeleteCellCommand = async (output, context) => {
|
|
|
640
485
|
await collectBody(output.body, context);
|
|
641
486
|
return contents;
|
|
642
487
|
};
|
|
643
|
-
const de_DeleteCellCommandError = async (output, context) => {
|
|
644
|
-
const parsedOutput = {
|
|
645
|
-
...output,
|
|
646
|
-
body: await parseErrorBody(output.body, context),
|
|
647
|
-
};
|
|
648
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
649
|
-
switch (errorCode) {
|
|
650
|
-
case "AccessDeniedException":
|
|
651
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
652
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
653
|
-
case "InternalServerException":
|
|
654
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
655
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
656
|
-
case "ResourceNotFoundException":
|
|
657
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
658
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
659
|
-
case "ThrottlingException":
|
|
660
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
661
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
662
|
-
case "ValidationException":
|
|
663
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
664
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
665
|
-
default:
|
|
666
|
-
const parsedBody = parsedOutput.body;
|
|
667
|
-
return throwDefaultError({
|
|
668
|
-
output,
|
|
669
|
-
parsedBody,
|
|
670
|
-
errorCode,
|
|
671
|
-
});
|
|
672
|
-
}
|
|
673
|
-
};
|
|
674
488
|
export const de_DeleteCrossAccountAuthorizationCommand = async (output, context) => {
|
|
675
489
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
676
|
-
return
|
|
490
|
+
return de_CommandError(output, context);
|
|
677
491
|
}
|
|
678
492
|
const contents = map({
|
|
679
493
|
$metadata: deserializeMetadata(output),
|
|
@@ -681,37 +495,9 @@ export const de_DeleteCrossAccountAuthorizationCommand = async (output, context)
|
|
|
681
495
|
await collectBody(output.body, context);
|
|
682
496
|
return contents;
|
|
683
497
|
};
|
|
684
|
-
const de_DeleteCrossAccountAuthorizationCommandError = async (output, context) => {
|
|
685
|
-
const parsedOutput = {
|
|
686
|
-
...output,
|
|
687
|
-
body: await parseErrorBody(output.body, context),
|
|
688
|
-
};
|
|
689
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
690
|
-
switch (errorCode) {
|
|
691
|
-
case "AccessDeniedException":
|
|
692
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
693
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
694
|
-
case "InternalServerException":
|
|
695
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
696
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
697
|
-
case "ThrottlingException":
|
|
698
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
699
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
700
|
-
case "ValidationException":
|
|
701
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
702
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
703
|
-
default:
|
|
704
|
-
const parsedBody = parsedOutput.body;
|
|
705
|
-
return throwDefaultError({
|
|
706
|
-
output,
|
|
707
|
-
parsedBody,
|
|
708
|
-
errorCode,
|
|
709
|
-
});
|
|
710
|
-
}
|
|
711
|
-
};
|
|
712
498
|
export const de_DeleteReadinessCheckCommand = async (output, context) => {
|
|
713
499
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
714
|
-
return
|
|
500
|
+
return de_CommandError(output, context);
|
|
715
501
|
}
|
|
716
502
|
const contents = map({
|
|
717
503
|
$metadata: deserializeMetadata(output),
|
|
@@ -719,40 +505,9 @@ export const de_DeleteReadinessCheckCommand = async (output, context) => {
|
|
|
719
505
|
await collectBody(output.body, context);
|
|
720
506
|
return contents;
|
|
721
507
|
};
|
|
722
|
-
const de_DeleteReadinessCheckCommandError = async (output, context) => {
|
|
723
|
-
const parsedOutput = {
|
|
724
|
-
...output,
|
|
725
|
-
body: await parseErrorBody(output.body, context),
|
|
726
|
-
};
|
|
727
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
728
|
-
switch (errorCode) {
|
|
729
|
-
case "AccessDeniedException":
|
|
730
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
731
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
732
|
-
case "InternalServerException":
|
|
733
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
734
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
735
|
-
case "ResourceNotFoundException":
|
|
736
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
737
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
738
|
-
case "ThrottlingException":
|
|
739
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
740
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
741
|
-
case "ValidationException":
|
|
742
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
743
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
744
|
-
default:
|
|
745
|
-
const parsedBody = parsedOutput.body;
|
|
746
|
-
return throwDefaultError({
|
|
747
|
-
output,
|
|
748
|
-
parsedBody,
|
|
749
|
-
errorCode,
|
|
750
|
-
});
|
|
751
|
-
}
|
|
752
|
-
};
|
|
753
508
|
export const de_DeleteRecoveryGroupCommand = async (output, context) => {
|
|
754
509
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
755
|
-
return
|
|
510
|
+
return de_CommandError(output, context);
|
|
756
511
|
}
|
|
757
512
|
const contents = map({
|
|
758
513
|
$metadata: deserializeMetadata(output),
|
|
@@ -760,40 +515,9 @@ export const de_DeleteRecoveryGroupCommand = async (output, context) => {
|
|
|
760
515
|
await collectBody(output.body, context);
|
|
761
516
|
return contents;
|
|
762
517
|
};
|
|
763
|
-
const de_DeleteRecoveryGroupCommandError = async (output, context) => {
|
|
764
|
-
const parsedOutput = {
|
|
765
|
-
...output,
|
|
766
|
-
body: await parseErrorBody(output.body, context),
|
|
767
|
-
};
|
|
768
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
769
|
-
switch (errorCode) {
|
|
770
|
-
case "AccessDeniedException":
|
|
771
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
772
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
773
|
-
case "InternalServerException":
|
|
774
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
775
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
776
|
-
case "ResourceNotFoundException":
|
|
777
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
778
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
779
|
-
case "ThrottlingException":
|
|
780
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
781
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
782
|
-
case "ValidationException":
|
|
783
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
784
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
785
|
-
default:
|
|
786
|
-
const parsedBody = parsedOutput.body;
|
|
787
|
-
return throwDefaultError({
|
|
788
|
-
output,
|
|
789
|
-
parsedBody,
|
|
790
|
-
errorCode,
|
|
791
|
-
});
|
|
792
|
-
}
|
|
793
|
-
};
|
|
794
518
|
export const de_DeleteResourceSetCommand = async (output, context) => {
|
|
795
519
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
796
|
-
return
|
|
520
|
+
return de_CommandError(output, context);
|
|
797
521
|
}
|
|
798
522
|
const contents = map({
|
|
799
523
|
$metadata: deserializeMetadata(output),
|
|
@@ -801,40 +525,9 @@ export const de_DeleteResourceSetCommand = async (output, context) => {
|
|
|
801
525
|
await collectBody(output.body, context);
|
|
802
526
|
return contents;
|
|
803
527
|
};
|
|
804
|
-
const de_DeleteResourceSetCommandError = async (output, context) => {
|
|
805
|
-
const parsedOutput = {
|
|
806
|
-
...output,
|
|
807
|
-
body: await parseErrorBody(output.body, context),
|
|
808
|
-
};
|
|
809
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
810
|
-
switch (errorCode) {
|
|
811
|
-
case "AccessDeniedException":
|
|
812
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
813
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
814
|
-
case "InternalServerException":
|
|
815
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
816
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
817
|
-
case "ResourceNotFoundException":
|
|
818
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
819
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
820
|
-
case "ThrottlingException":
|
|
821
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
822
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
823
|
-
case "ValidationException":
|
|
824
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
825
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
826
|
-
default:
|
|
827
|
-
const parsedBody = parsedOutput.body;
|
|
828
|
-
return throwDefaultError({
|
|
829
|
-
output,
|
|
830
|
-
parsedBody,
|
|
831
|
-
errorCode,
|
|
832
|
-
});
|
|
833
|
-
}
|
|
834
|
-
};
|
|
835
528
|
export const de_GetArchitectureRecommendationsCommand = async (output, context) => {
|
|
836
529
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
837
|
-
return
|
|
530
|
+
return de_CommandError(output, context);
|
|
838
531
|
}
|
|
839
532
|
const contents = map({
|
|
840
533
|
$metadata: deserializeMetadata(output),
|
|
@@ -848,40 +541,9 @@ export const de_GetArchitectureRecommendationsCommand = async (output, context)
|
|
|
848
541
|
Object.assign(contents, doc);
|
|
849
542
|
return contents;
|
|
850
543
|
};
|
|
851
|
-
const de_GetArchitectureRecommendationsCommandError = async (output, context) => {
|
|
852
|
-
const parsedOutput = {
|
|
853
|
-
...output,
|
|
854
|
-
body: await parseErrorBody(output.body, context),
|
|
855
|
-
};
|
|
856
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
857
|
-
switch (errorCode) {
|
|
858
|
-
case "AccessDeniedException":
|
|
859
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
860
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
861
|
-
case "InternalServerException":
|
|
862
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
863
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
864
|
-
case "ResourceNotFoundException":
|
|
865
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
866
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
867
|
-
case "ThrottlingException":
|
|
868
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
869
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
870
|
-
case "ValidationException":
|
|
871
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
872
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
873
|
-
default:
|
|
874
|
-
const parsedBody = parsedOutput.body;
|
|
875
|
-
return throwDefaultError({
|
|
876
|
-
output,
|
|
877
|
-
parsedBody,
|
|
878
|
-
errorCode,
|
|
879
|
-
});
|
|
880
|
-
}
|
|
881
|
-
};
|
|
882
544
|
export const de_GetCellCommand = async (output, context) => {
|
|
883
545
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
884
|
-
return
|
|
546
|
+
return de_CommandError(output, context);
|
|
885
547
|
}
|
|
886
548
|
const contents = map({
|
|
887
549
|
$metadata: deserializeMetadata(output),
|
|
@@ -897,135 +559,42 @@ export const de_GetCellCommand = async (output, context) => {
|
|
|
897
559
|
Object.assign(contents, doc);
|
|
898
560
|
return contents;
|
|
899
561
|
};
|
|
900
|
-
const de_GetCellCommandError = async (output, context) => {
|
|
901
|
-
const parsedOutput = {
|
|
902
|
-
...output,
|
|
903
|
-
body: await parseErrorBody(output.body, context),
|
|
904
|
-
};
|
|
905
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
906
|
-
switch (errorCode) {
|
|
907
|
-
case "AccessDeniedException":
|
|
908
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
909
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
910
|
-
case "InternalServerException":
|
|
911
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
912
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
913
|
-
case "ResourceNotFoundException":
|
|
914
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
915
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
916
|
-
case "ThrottlingException":
|
|
917
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
918
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
919
|
-
case "ValidationException":
|
|
920
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
921
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
922
|
-
default:
|
|
923
|
-
const parsedBody = parsedOutput.body;
|
|
924
|
-
return throwDefaultError({
|
|
925
|
-
output,
|
|
926
|
-
parsedBody,
|
|
927
|
-
errorCode,
|
|
928
|
-
});
|
|
929
|
-
}
|
|
930
|
-
};
|
|
931
562
|
export const de_GetCellReadinessSummaryCommand = async (output, context) => {
|
|
932
563
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
933
|
-
return
|
|
564
|
+
return de_CommandError(output, context);
|
|
934
565
|
}
|
|
935
566
|
const contents = map({
|
|
936
567
|
$metadata: deserializeMetadata(output),
|
|
937
568
|
});
|
|
938
569
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
939
570
|
const doc = take(data, {
|
|
940
|
-
NextToken: [, __expectString, `nextToken`],
|
|
941
|
-
Readiness: [, __expectString, `readiness`],
|
|
942
|
-
ReadinessChecks: [, (_) => de___listOfReadinessCheckSummary(_, context), `readinessChecks`],
|
|
943
|
-
});
|
|
944
|
-
Object.assign(contents, doc);
|
|
945
|
-
return contents;
|
|
946
|
-
};
|
|
947
|
-
const
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
body: await parseErrorBody(output.body, context),
|
|
951
|
-
};
|
|
952
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
953
|
-
switch (errorCode) {
|
|
954
|
-
case "AccessDeniedException":
|
|
955
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
956
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
957
|
-
case "InternalServerException":
|
|
958
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
959
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
960
|
-
case "ResourceNotFoundException":
|
|
961
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
962
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
963
|
-
case "ThrottlingException":
|
|
964
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
965
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
966
|
-
case "ValidationException":
|
|
967
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
968
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
969
|
-
default:
|
|
970
|
-
const parsedBody = parsedOutput.body;
|
|
971
|
-
return throwDefaultError({
|
|
972
|
-
output,
|
|
973
|
-
parsedBody,
|
|
974
|
-
errorCode,
|
|
975
|
-
});
|
|
976
|
-
}
|
|
977
|
-
};
|
|
978
|
-
export const de_GetReadinessCheckCommand = async (output, context) => {
|
|
979
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
980
|
-
return de_GetReadinessCheckCommandError(output, context);
|
|
981
|
-
}
|
|
982
|
-
const contents = map({
|
|
983
|
-
$metadata: deserializeMetadata(output),
|
|
984
|
-
});
|
|
985
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
986
|
-
const doc = take(data, {
|
|
987
|
-
ReadinessCheckArn: [, __expectString, `readinessCheckArn`],
|
|
988
|
-
ReadinessCheckName: [, __expectString, `readinessCheckName`],
|
|
989
|
-
ResourceSet: [, __expectString, `resourceSet`],
|
|
990
|
-
Tags: [, _json, `tags`],
|
|
991
|
-
});
|
|
992
|
-
Object.assign(contents, doc);
|
|
993
|
-
return contents;
|
|
994
|
-
};
|
|
995
|
-
const de_GetReadinessCheckCommandError = async (output, context) => {
|
|
996
|
-
const parsedOutput = {
|
|
997
|
-
...output,
|
|
998
|
-
body: await parseErrorBody(output.body, context),
|
|
999
|
-
};
|
|
1000
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1001
|
-
switch (errorCode) {
|
|
1002
|
-
case "AccessDeniedException":
|
|
1003
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1004
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1005
|
-
case "InternalServerException":
|
|
1006
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1007
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1008
|
-
case "ResourceNotFoundException":
|
|
1009
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1010
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1011
|
-
case "ThrottlingException":
|
|
1012
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1013
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1014
|
-
case "ValidationException":
|
|
1015
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1016
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1017
|
-
default:
|
|
1018
|
-
const parsedBody = parsedOutput.body;
|
|
1019
|
-
return throwDefaultError({
|
|
1020
|
-
output,
|
|
1021
|
-
parsedBody,
|
|
1022
|
-
errorCode,
|
|
1023
|
-
});
|
|
571
|
+
NextToken: [, __expectString, `nextToken`],
|
|
572
|
+
Readiness: [, __expectString, `readiness`],
|
|
573
|
+
ReadinessChecks: [, (_) => de___listOfReadinessCheckSummary(_, context), `readinessChecks`],
|
|
574
|
+
});
|
|
575
|
+
Object.assign(contents, doc);
|
|
576
|
+
return contents;
|
|
577
|
+
};
|
|
578
|
+
export const de_GetReadinessCheckCommand = async (output, context) => {
|
|
579
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
580
|
+
return de_CommandError(output, context);
|
|
1024
581
|
}
|
|
582
|
+
const contents = map({
|
|
583
|
+
$metadata: deserializeMetadata(output),
|
|
584
|
+
});
|
|
585
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
586
|
+
const doc = take(data, {
|
|
587
|
+
ReadinessCheckArn: [, __expectString, `readinessCheckArn`],
|
|
588
|
+
ReadinessCheckName: [, __expectString, `readinessCheckName`],
|
|
589
|
+
ResourceSet: [, __expectString, `resourceSet`],
|
|
590
|
+
Tags: [, _json, `tags`],
|
|
591
|
+
});
|
|
592
|
+
Object.assign(contents, doc);
|
|
593
|
+
return contents;
|
|
1025
594
|
};
|
|
1026
595
|
export const de_GetReadinessCheckResourceStatusCommand = async (output, context) => {
|
|
1027
596
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1028
|
-
return
|
|
597
|
+
return de_CommandError(output, context);
|
|
1029
598
|
}
|
|
1030
599
|
const contents = map({
|
|
1031
600
|
$metadata: deserializeMetadata(output),
|
|
@@ -1039,40 +608,9 @@ export const de_GetReadinessCheckResourceStatusCommand = async (output, context)
|
|
|
1039
608
|
Object.assign(contents, doc);
|
|
1040
609
|
return contents;
|
|
1041
610
|
};
|
|
1042
|
-
const de_GetReadinessCheckResourceStatusCommandError = async (output, context) => {
|
|
1043
|
-
const parsedOutput = {
|
|
1044
|
-
...output,
|
|
1045
|
-
body: await parseErrorBody(output.body, context),
|
|
1046
|
-
};
|
|
1047
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1048
|
-
switch (errorCode) {
|
|
1049
|
-
case "AccessDeniedException":
|
|
1050
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1051
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1052
|
-
case "InternalServerException":
|
|
1053
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1054
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1055
|
-
case "ResourceNotFoundException":
|
|
1056
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1057
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1058
|
-
case "ThrottlingException":
|
|
1059
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1060
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1061
|
-
case "ValidationException":
|
|
1062
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1063
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1064
|
-
default:
|
|
1065
|
-
const parsedBody = parsedOutput.body;
|
|
1066
|
-
return throwDefaultError({
|
|
1067
|
-
output,
|
|
1068
|
-
parsedBody,
|
|
1069
|
-
errorCode,
|
|
1070
|
-
});
|
|
1071
|
-
}
|
|
1072
|
-
};
|
|
1073
611
|
export const de_GetReadinessCheckStatusCommand = async (output, context) => {
|
|
1074
612
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1075
|
-
return
|
|
613
|
+
return de_CommandError(output, context);
|
|
1076
614
|
}
|
|
1077
615
|
const contents = map({
|
|
1078
616
|
$metadata: deserializeMetadata(output),
|
|
@@ -1087,40 +625,9 @@ export const de_GetReadinessCheckStatusCommand = async (output, context) => {
|
|
|
1087
625
|
Object.assign(contents, doc);
|
|
1088
626
|
return contents;
|
|
1089
627
|
};
|
|
1090
|
-
const de_GetReadinessCheckStatusCommandError = async (output, context) => {
|
|
1091
|
-
const parsedOutput = {
|
|
1092
|
-
...output,
|
|
1093
|
-
body: await parseErrorBody(output.body, context),
|
|
1094
|
-
};
|
|
1095
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1096
|
-
switch (errorCode) {
|
|
1097
|
-
case "AccessDeniedException":
|
|
1098
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1099
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1100
|
-
case "InternalServerException":
|
|
1101
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1102
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1103
|
-
case "ResourceNotFoundException":
|
|
1104
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1105
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1106
|
-
case "ThrottlingException":
|
|
1107
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1108
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1109
|
-
case "ValidationException":
|
|
1110
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1111
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1112
|
-
default:
|
|
1113
|
-
const parsedBody = parsedOutput.body;
|
|
1114
|
-
return throwDefaultError({
|
|
1115
|
-
output,
|
|
1116
|
-
parsedBody,
|
|
1117
|
-
errorCode,
|
|
1118
|
-
});
|
|
1119
|
-
}
|
|
1120
|
-
};
|
|
1121
628
|
export const de_GetRecoveryGroupCommand = async (output, context) => {
|
|
1122
629
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1123
|
-
return
|
|
630
|
+
return de_CommandError(output, context);
|
|
1124
631
|
}
|
|
1125
632
|
const contents = map({
|
|
1126
633
|
$metadata: deserializeMetadata(output),
|
|
@@ -1135,40 +642,9 @@ export const de_GetRecoveryGroupCommand = async (output, context) => {
|
|
|
1135
642
|
Object.assign(contents, doc);
|
|
1136
643
|
return contents;
|
|
1137
644
|
};
|
|
1138
|
-
const de_GetRecoveryGroupCommandError = async (output, context) => {
|
|
1139
|
-
const parsedOutput = {
|
|
1140
|
-
...output,
|
|
1141
|
-
body: await parseErrorBody(output.body, context),
|
|
1142
|
-
};
|
|
1143
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1144
|
-
switch (errorCode) {
|
|
1145
|
-
case "AccessDeniedException":
|
|
1146
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1147
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1148
|
-
case "InternalServerException":
|
|
1149
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1150
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1151
|
-
case "ResourceNotFoundException":
|
|
1152
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1153
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1154
|
-
case "ThrottlingException":
|
|
1155
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1156
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1157
|
-
case "ValidationException":
|
|
1158
|
-
case "com.amazonaws.route53recoveryreadiness#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
645
|
export const de_GetRecoveryGroupReadinessSummaryCommand = async (output, context) => {
|
|
1170
646
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1171
|
-
return
|
|
647
|
+
return de_CommandError(output, context);
|
|
1172
648
|
}
|
|
1173
649
|
const contents = map({
|
|
1174
650
|
$metadata: deserializeMetadata(output),
|
|
@@ -1182,40 +658,9 @@ export const de_GetRecoveryGroupReadinessSummaryCommand = async (output, context
|
|
|
1182
658
|
Object.assign(contents, doc);
|
|
1183
659
|
return contents;
|
|
1184
660
|
};
|
|
1185
|
-
const de_GetRecoveryGroupReadinessSummaryCommandError = async (output, context) => {
|
|
1186
|
-
const parsedOutput = {
|
|
1187
|
-
...output,
|
|
1188
|
-
body: await parseErrorBody(output.body, context),
|
|
1189
|
-
};
|
|
1190
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1191
|
-
switch (errorCode) {
|
|
1192
|
-
case "AccessDeniedException":
|
|
1193
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1194
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1195
|
-
case "InternalServerException":
|
|
1196
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1197
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1198
|
-
case "ResourceNotFoundException":
|
|
1199
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1200
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1201
|
-
case "ThrottlingException":
|
|
1202
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1203
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1204
|
-
case "ValidationException":
|
|
1205
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1206
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1207
|
-
default:
|
|
1208
|
-
const parsedBody = parsedOutput.body;
|
|
1209
|
-
return throwDefaultError({
|
|
1210
|
-
output,
|
|
1211
|
-
parsedBody,
|
|
1212
|
-
errorCode,
|
|
1213
|
-
});
|
|
1214
|
-
}
|
|
1215
|
-
};
|
|
1216
661
|
export const de_GetResourceSetCommand = async (output, context) => {
|
|
1217
662
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1218
|
-
return
|
|
663
|
+
return de_CommandError(output, context);
|
|
1219
664
|
}
|
|
1220
665
|
const contents = map({
|
|
1221
666
|
$metadata: deserializeMetadata(output),
|
|
@@ -1231,40 +676,9 @@ export const de_GetResourceSetCommand = async (output, context) => {
|
|
|
1231
676
|
Object.assign(contents, doc);
|
|
1232
677
|
return contents;
|
|
1233
678
|
};
|
|
1234
|
-
const de_GetResourceSetCommandError = async (output, context) => {
|
|
1235
|
-
const parsedOutput = {
|
|
1236
|
-
...output,
|
|
1237
|
-
body: await parseErrorBody(output.body, context),
|
|
1238
|
-
};
|
|
1239
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1240
|
-
switch (errorCode) {
|
|
1241
|
-
case "AccessDeniedException":
|
|
1242
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1243
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1244
|
-
case "InternalServerException":
|
|
1245
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1246
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1247
|
-
case "ResourceNotFoundException":
|
|
1248
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1249
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1250
|
-
case "ThrottlingException":
|
|
1251
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1252
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1253
|
-
case "ValidationException":
|
|
1254
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1255
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1256
|
-
default:
|
|
1257
|
-
const parsedBody = parsedOutput.body;
|
|
1258
|
-
return throwDefaultError({
|
|
1259
|
-
output,
|
|
1260
|
-
parsedBody,
|
|
1261
|
-
errorCode,
|
|
1262
|
-
});
|
|
1263
|
-
}
|
|
1264
|
-
};
|
|
1265
679
|
export const de_ListCellsCommand = async (output, context) => {
|
|
1266
680
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1267
|
-
return
|
|
681
|
+
return de_CommandError(output, context);
|
|
1268
682
|
}
|
|
1269
683
|
const contents = map({
|
|
1270
684
|
$metadata: deserializeMetadata(output),
|
|
@@ -1277,37 +691,9 @@ export const de_ListCellsCommand = async (output, context) => {
|
|
|
1277
691
|
Object.assign(contents, doc);
|
|
1278
692
|
return contents;
|
|
1279
693
|
};
|
|
1280
|
-
const de_ListCellsCommandError = async (output, context) => {
|
|
1281
|
-
const parsedOutput = {
|
|
1282
|
-
...output,
|
|
1283
|
-
body: await parseErrorBody(output.body, context),
|
|
1284
|
-
};
|
|
1285
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1286
|
-
switch (errorCode) {
|
|
1287
|
-
case "AccessDeniedException":
|
|
1288
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1289
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1290
|
-
case "InternalServerException":
|
|
1291
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1292
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1293
|
-
case "ThrottlingException":
|
|
1294
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1295
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1296
|
-
case "ValidationException":
|
|
1297
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1298
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1299
|
-
default:
|
|
1300
|
-
const parsedBody = parsedOutput.body;
|
|
1301
|
-
return throwDefaultError({
|
|
1302
|
-
output,
|
|
1303
|
-
parsedBody,
|
|
1304
|
-
errorCode,
|
|
1305
|
-
});
|
|
1306
|
-
}
|
|
1307
|
-
};
|
|
1308
694
|
export const de_ListCrossAccountAuthorizationsCommand = async (output, context) => {
|
|
1309
695
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1310
|
-
return
|
|
696
|
+
return de_CommandError(output, context);
|
|
1311
697
|
}
|
|
1312
698
|
const contents = map({
|
|
1313
699
|
$metadata: deserializeMetadata(output),
|
|
@@ -1320,37 +706,9 @@ export const de_ListCrossAccountAuthorizationsCommand = async (output, context)
|
|
|
1320
706
|
Object.assign(contents, doc);
|
|
1321
707
|
return contents;
|
|
1322
708
|
};
|
|
1323
|
-
const de_ListCrossAccountAuthorizationsCommandError = async (output, context) => {
|
|
1324
|
-
const parsedOutput = {
|
|
1325
|
-
...output,
|
|
1326
|
-
body: await parseErrorBody(output.body, context),
|
|
1327
|
-
};
|
|
1328
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1329
|
-
switch (errorCode) {
|
|
1330
|
-
case "AccessDeniedException":
|
|
1331
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1332
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1333
|
-
case "InternalServerException":
|
|
1334
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1335
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1336
|
-
case "ThrottlingException":
|
|
1337
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1338
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1339
|
-
case "ValidationException":
|
|
1340
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1341
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1342
|
-
default:
|
|
1343
|
-
const parsedBody = parsedOutput.body;
|
|
1344
|
-
return throwDefaultError({
|
|
1345
|
-
output,
|
|
1346
|
-
parsedBody,
|
|
1347
|
-
errorCode,
|
|
1348
|
-
});
|
|
1349
|
-
}
|
|
1350
|
-
};
|
|
1351
709
|
export const de_ListReadinessChecksCommand = async (output, context) => {
|
|
1352
710
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1353
|
-
return
|
|
711
|
+
return de_CommandError(output, context);
|
|
1354
712
|
}
|
|
1355
713
|
const contents = map({
|
|
1356
714
|
$metadata: deserializeMetadata(output),
|
|
@@ -1358,42 +716,14 @@ export const de_ListReadinessChecksCommand = async (output, context) => {
|
|
|
1358
716
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1359
717
|
const doc = take(data, {
|
|
1360
718
|
NextToken: [, __expectString, `nextToken`],
|
|
1361
|
-
ReadinessChecks: [, (_) => de___listOfReadinessCheckOutput(_, context), `readinessChecks`],
|
|
1362
|
-
});
|
|
1363
|
-
Object.assign(contents, doc);
|
|
1364
|
-
return contents;
|
|
1365
|
-
};
|
|
1366
|
-
const de_ListReadinessChecksCommandError = async (output, context) => {
|
|
1367
|
-
const parsedOutput = {
|
|
1368
|
-
...output,
|
|
1369
|
-
body: await parseErrorBody(output.body, context),
|
|
1370
|
-
};
|
|
1371
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1372
|
-
switch (errorCode) {
|
|
1373
|
-
case "AccessDeniedException":
|
|
1374
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1375
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1376
|
-
case "InternalServerException":
|
|
1377
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1378
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1379
|
-
case "ThrottlingException":
|
|
1380
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1381
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1382
|
-
case "ValidationException":
|
|
1383
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1384
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1385
|
-
default:
|
|
1386
|
-
const parsedBody = parsedOutput.body;
|
|
1387
|
-
return throwDefaultError({
|
|
1388
|
-
output,
|
|
1389
|
-
parsedBody,
|
|
1390
|
-
errorCode,
|
|
1391
|
-
});
|
|
1392
|
-
}
|
|
719
|
+
ReadinessChecks: [, (_) => de___listOfReadinessCheckOutput(_, context), `readinessChecks`],
|
|
720
|
+
});
|
|
721
|
+
Object.assign(contents, doc);
|
|
722
|
+
return contents;
|
|
1393
723
|
};
|
|
1394
724
|
export const de_ListRecoveryGroupsCommand = async (output, context) => {
|
|
1395
725
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1396
|
-
return
|
|
726
|
+
return de_CommandError(output, context);
|
|
1397
727
|
}
|
|
1398
728
|
const contents = map({
|
|
1399
729
|
$metadata: deserializeMetadata(output),
|
|
@@ -1406,37 +736,9 @@ export const de_ListRecoveryGroupsCommand = async (output, context) => {
|
|
|
1406
736
|
Object.assign(contents, doc);
|
|
1407
737
|
return contents;
|
|
1408
738
|
};
|
|
1409
|
-
const de_ListRecoveryGroupsCommandError = async (output, context) => {
|
|
1410
|
-
const parsedOutput = {
|
|
1411
|
-
...output,
|
|
1412
|
-
body: await parseErrorBody(output.body, context),
|
|
1413
|
-
};
|
|
1414
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1415
|
-
switch (errorCode) {
|
|
1416
|
-
case "AccessDeniedException":
|
|
1417
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1418
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1419
|
-
case "InternalServerException":
|
|
1420
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1421
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1422
|
-
case "ThrottlingException":
|
|
1423
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1424
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1425
|
-
case "ValidationException":
|
|
1426
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1427
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1428
|
-
default:
|
|
1429
|
-
const parsedBody = parsedOutput.body;
|
|
1430
|
-
return throwDefaultError({
|
|
1431
|
-
output,
|
|
1432
|
-
parsedBody,
|
|
1433
|
-
errorCode,
|
|
1434
|
-
});
|
|
1435
|
-
}
|
|
1436
|
-
};
|
|
1437
739
|
export const de_ListResourceSetsCommand = async (output, context) => {
|
|
1438
740
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1439
|
-
return
|
|
741
|
+
return de_CommandError(output, context);
|
|
1440
742
|
}
|
|
1441
743
|
const contents = map({
|
|
1442
744
|
$metadata: deserializeMetadata(output),
|
|
@@ -1449,37 +751,9 @@ export const de_ListResourceSetsCommand = async (output, context) => {
|
|
|
1449
751
|
Object.assign(contents, doc);
|
|
1450
752
|
return contents;
|
|
1451
753
|
};
|
|
1452
|
-
const de_ListResourceSetsCommandError = async (output, context) => {
|
|
1453
|
-
const parsedOutput = {
|
|
1454
|
-
...output,
|
|
1455
|
-
body: await parseErrorBody(output.body, context),
|
|
1456
|
-
};
|
|
1457
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1458
|
-
switch (errorCode) {
|
|
1459
|
-
case "AccessDeniedException":
|
|
1460
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1461
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1462
|
-
case "InternalServerException":
|
|
1463
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1464
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1465
|
-
case "ThrottlingException":
|
|
1466
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1467
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1468
|
-
case "ValidationException":
|
|
1469
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1470
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1471
|
-
default:
|
|
1472
|
-
const parsedBody = parsedOutput.body;
|
|
1473
|
-
return throwDefaultError({
|
|
1474
|
-
output,
|
|
1475
|
-
parsedBody,
|
|
1476
|
-
errorCode,
|
|
1477
|
-
});
|
|
1478
|
-
}
|
|
1479
|
-
};
|
|
1480
754
|
export const de_ListRulesCommand = async (output, context) => {
|
|
1481
755
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1482
|
-
return
|
|
756
|
+
return de_CommandError(output, context);
|
|
1483
757
|
}
|
|
1484
758
|
const contents = map({
|
|
1485
759
|
$metadata: deserializeMetadata(output),
|
|
@@ -1492,37 +766,9 @@ export const de_ListRulesCommand = async (output, context) => {
|
|
|
1492
766
|
Object.assign(contents, doc);
|
|
1493
767
|
return contents;
|
|
1494
768
|
};
|
|
1495
|
-
const de_ListRulesCommandError = async (output, context) => {
|
|
1496
|
-
const parsedOutput = {
|
|
1497
|
-
...output,
|
|
1498
|
-
body: await parseErrorBody(output.body, context),
|
|
1499
|
-
};
|
|
1500
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1501
|
-
switch (errorCode) {
|
|
1502
|
-
case "AccessDeniedException":
|
|
1503
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1504
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1505
|
-
case "InternalServerException":
|
|
1506
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1507
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1508
|
-
case "ThrottlingException":
|
|
1509
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1510
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1511
|
-
case "ValidationException":
|
|
1512
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1513
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1514
|
-
default:
|
|
1515
|
-
const parsedBody = parsedOutput.body;
|
|
1516
|
-
return throwDefaultError({
|
|
1517
|
-
output,
|
|
1518
|
-
parsedBody,
|
|
1519
|
-
errorCode,
|
|
1520
|
-
});
|
|
1521
|
-
}
|
|
1522
|
-
};
|
|
1523
769
|
export const de_ListTagsForResourcesCommand = async (output, context) => {
|
|
1524
770
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1525
|
-
return
|
|
771
|
+
return de_CommandError(output, context);
|
|
1526
772
|
}
|
|
1527
773
|
const contents = map({
|
|
1528
774
|
$metadata: deserializeMetadata(output),
|
|
@@ -1534,34 +780,9 @@ export const de_ListTagsForResourcesCommand = async (output, context) => {
|
|
|
1534
780
|
Object.assign(contents, doc);
|
|
1535
781
|
return contents;
|
|
1536
782
|
};
|
|
1537
|
-
const de_ListTagsForResourcesCommandError = async (output, context) => {
|
|
1538
|
-
const parsedOutput = {
|
|
1539
|
-
...output,
|
|
1540
|
-
body: await parseErrorBody(output.body, context),
|
|
1541
|
-
};
|
|
1542
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1543
|
-
switch (errorCode) {
|
|
1544
|
-
case "InternalServerException":
|
|
1545
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1546
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1547
|
-
case "ResourceNotFoundException":
|
|
1548
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1549
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1550
|
-
case "ValidationException":
|
|
1551
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1552
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1553
|
-
default:
|
|
1554
|
-
const parsedBody = parsedOutput.body;
|
|
1555
|
-
return throwDefaultError({
|
|
1556
|
-
output,
|
|
1557
|
-
parsedBody,
|
|
1558
|
-
errorCode,
|
|
1559
|
-
});
|
|
1560
|
-
}
|
|
1561
|
-
};
|
|
1562
783
|
export const de_TagResourceCommand = async (output, context) => {
|
|
1563
784
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1564
|
-
return
|
|
785
|
+
return de_CommandError(output, context);
|
|
1565
786
|
}
|
|
1566
787
|
const contents = map({
|
|
1567
788
|
$metadata: deserializeMetadata(output),
|
|
@@ -1569,34 +790,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1569
790
|
await collectBody(output.body, context);
|
|
1570
791
|
return contents;
|
|
1571
792
|
};
|
|
1572
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1573
|
-
const parsedOutput = {
|
|
1574
|
-
...output,
|
|
1575
|
-
body: await parseErrorBody(output.body, context),
|
|
1576
|
-
};
|
|
1577
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1578
|
-
switch (errorCode) {
|
|
1579
|
-
case "InternalServerException":
|
|
1580
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1581
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1582
|
-
case "ResourceNotFoundException":
|
|
1583
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1584
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1585
|
-
case "ValidationException":
|
|
1586
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1587
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1588
|
-
default:
|
|
1589
|
-
const parsedBody = parsedOutput.body;
|
|
1590
|
-
return throwDefaultError({
|
|
1591
|
-
output,
|
|
1592
|
-
parsedBody,
|
|
1593
|
-
errorCode,
|
|
1594
|
-
});
|
|
1595
|
-
}
|
|
1596
|
-
};
|
|
1597
793
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
1598
794
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1599
|
-
return
|
|
795
|
+
return de_CommandError(output, context);
|
|
1600
796
|
}
|
|
1601
797
|
const contents = map({
|
|
1602
798
|
$metadata: deserializeMetadata(output),
|
|
@@ -1604,34 +800,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1604
800
|
await collectBody(output.body, context);
|
|
1605
801
|
return contents;
|
|
1606
802
|
};
|
|
1607
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1608
|
-
const parsedOutput = {
|
|
1609
|
-
...output,
|
|
1610
|
-
body: await parseErrorBody(output.body, context),
|
|
1611
|
-
};
|
|
1612
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1613
|
-
switch (errorCode) {
|
|
1614
|
-
case "InternalServerException":
|
|
1615
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1616
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1617
|
-
case "ResourceNotFoundException":
|
|
1618
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1619
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1620
|
-
case "ValidationException":
|
|
1621
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1622
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1623
|
-
default:
|
|
1624
|
-
const parsedBody = parsedOutput.body;
|
|
1625
|
-
return throwDefaultError({
|
|
1626
|
-
output,
|
|
1627
|
-
parsedBody,
|
|
1628
|
-
errorCode,
|
|
1629
|
-
});
|
|
1630
|
-
}
|
|
1631
|
-
};
|
|
1632
803
|
export const de_UpdateCellCommand = async (output, context) => {
|
|
1633
804
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1634
|
-
return
|
|
805
|
+
return de_CommandError(output, context);
|
|
1635
806
|
}
|
|
1636
807
|
const contents = map({
|
|
1637
808
|
$metadata: deserializeMetadata(output),
|
|
@@ -1647,40 +818,9 @@ export const de_UpdateCellCommand = async (output, context) => {
|
|
|
1647
818
|
Object.assign(contents, doc);
|
|
1648
819
|
return contents;
|
|
1649
820
|
};
|
|
1650
|
-
const de_UpdateCellCommandError = async (output, context) => {
|
|
1651
|
-
const parsedOutput = {
|
|
1652
|
-
...output,
|
|
1653
|
-
body: await parseErrorBody(output.body, context),
|
|
1654
|
-
};
|
|
1655
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1656
|
-
switch (errorCode) {
|
|
1657
|
-
case "AccessDeniedException":
|
|
1658
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1659
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1660
|
-
case "InternalServerException":
|
|
1661
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1662
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1663
|
-
case "ResourceNotFoundException":
|
|
1664
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1665
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1666
|
-
case "ThrottlingException":
|
|
1667
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1668
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1669
|
-
case "ValidationException":
|
|
1670
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1671
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1672
|
-
default:
|
|
1673
|
-
const parsedBody = parsedOutput.body;
|
|
1674
|
-
return throwDefaultError({
|
|
1675
|
-
output,
|
|
1676
|
-
parsedBody,
|
|
1677
|
-
errorCode,
|
|
1678
|
-
});
|
|
1679
|
-
}
|
|
1680
|
-
};
|
|
1681
821
|
export const de_UpdateReadinessCheckCommand = async (output, context) => {
|
|
1682
822
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1683
|
-
return
|
|
823
|
+
return de_CommandError(output, context);
|
|
1684
824
|
}
|
|
1685
825
|
const contents = map({
|
|
1686
826
|
$metadata: deserializeMetadata(output),
|
|
@@ -1695,40 +835,9 @@ export const de_UpdateReadinessCheckCommand = async (output, context) => {
|
|
|
1695
835
|
Object.assign(contents, doc);
|
|
1696
836
|
return contents;
|
|
1697
837
|
};
|
|
1698
|
-
const de_UpdateReadinessCheckCommandError = async (output, context) => {
|
|
1699
|
-
const parsedOutput = {
|
|
1700
|
-
...output,
|
|
1701
|
-
body: await parseErrorBody(output.body, context),
|
|
1702
|
-
};
|
|
1703
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1704
|
-
switch (errorCode) {
|
|
1705
|
-
case "AccessDeniedException":
|
|
1706
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1707
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1708
|
-
case "InternalServerException":
|
|
1709
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1710
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1711
|
-
case "ResourceNotFoundException":
|
|
1712
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1713
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1714
|
-
case "ThrottlingException":
|
|
1715
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1716
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1717
|
-
case "ValidationException":
|
|
1718
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1719
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1720
|
-
default:
|
|
1721
|
-
const parsedBody = parsedOutput.body;
|
|
1722
|
-
return throwDefaultError({
|
|
1723
|
-
output,
|
|
1724
|
-
parsedBody,
|
|
1725
|
-
errorCode,
|
|
1726
|
-
});
|
|
1727
|
-
}
|
|
1728
|
-
};
|
|
1729
838
|
export const de_UpdateRecoveryGroupCommand = async (output, context) => {
|
|
1730
839
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1731
|
-
return
|
|
840
|
+
return de_CommandError(output, context);
|
|
1732
841
|
}
|
|
1733
842
|
const contents = map({
|
|
1734
843
|
$metadata: deserializeMetadata(output),
|
|
@@ -1743,40 +852,9 @@ export const de_UpdateRecoveryGroupCommand = async (output, context) => {
|
|
|
1743
852
|
Object.assign(contents, doc);
|
|
1744
853
|
return contents;
|
|
1745
854
|
};
|
|
1746
|
-
const de_UpdateRecoveryGroupCommandError = async (output, context) => {
|
|
1747
|
-
const parsedOutput = {
|
|
1748
|
-
...output,
|
|
1749
|
-
body: await parseErrorBody(output.body, context),
|
|
1750
|
-
};
|
|
1751
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1752
|
-
switch (errorCode) {
|
|
1753
|
-
case "AccessDeniedException":
|
|
1754
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1755
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1756
|
-
case "InternalServerException":
|
|
1757
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1758
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1759
|
-
case "ResourceNotFoundException":
|
|
1760
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1761
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1762
|
-
case "ThrottlingException":
|
|
1763
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1764
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1765
|
-
case "ValidationException":
|
|
1766
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1767
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1768
|
-
default:
|
|
1769
|
-
const parsedBody = parsedOutput.body;
|
|
1770
|
-
return throwDefaultError({
|
|
1771
|
-
output,
|
|
1772
|
-
parsedBody,
|
|
1773
|
-
errorCode,
|
|
1774
|
-
});
|
|
1775
|
-
}
|
|
1776
|
-
};
|
|
1777
855
|
export const de_UpdateResourceSetCommand = async (output, context) => {
|
|
1778
856
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1779
|
-
return
|
|
857
|
+
return de_CommandError(output, context);
|
|
1780
858
|
}
|
|
1781
859
|
const contents = map({
|
|
1782
860
|
$metadata: deserializeMetadata(output),
|
|
@@ -1792,7 +870,7 @@ export const de_UpdateResourceSetCommand = async (output, context) => {
|
|
|
1792
870
|
Object.assign(contents, doc);
|
|
1793
871
|
return contents;
|
|
1794
872
|
};
|
|
1795
|
-
const
|
|
873
|
+
const de_CommandError = async (output, context) => {
|
|
1796
874
|
const parsedOutput = {
|
|
1797
875
|
...output,
|
|
1798
876
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1802,18 +880,21 @@ const de_UpdateResourceSetCommandError = async (output, context) => {
|
|
|
1802
880
|
case "AccessDeniedException":
|
|
1803
881
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1804
882
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
883
|
+
case "ConflictException":
|
|
884
|
+
case "com.amazonaws.route53recoveryreadiness#ConflictException":
|
|
885
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1805
886
|
case "InternalServerException":
|
|
1806
887
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1807
888
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1808
|
-
case "ResourceNotFoundException":
|
|
1809
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1810
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1811
889
|
case "ThrottlingException":
|
|
1812
890
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1813
891
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1814
892
|
case "ValidationException":
|
|
1815
893
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1816
894
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
895
|
+
case "ResourceNotFoundException":
|
|
896
|
+
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
897
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1817
898
|
default:
|
|
1818
899
|
const parsedBody = parsedOutput.body;
|
|
1819
900
|
return throwDefaultError({
|