@aws-sdk/client-route53-recovery-control-config 3.504.0 → 3.509.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +62 -748
- package/dist-es/protocols/Aws_restJson1.js +53 -739
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -636,7 +636,7 @@ var se_UpdateSafetyRuleCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
636
636
|
}, "se_UpdateSafetyRuleCommand");
|
|
637
637
|
var de_CreateClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
638
638
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
639
|
-
return
|
|
639
|
+
return de_CommandError(output, context);
|
|
640
640
|
}
|
|
641
641
|
const contents = (0, import_smithy_client.map)({
|
|
642
642
|
$metadata: deserializeMetadata(output)
|
|
@@ -648,46 +648,9 @@ var de_CreateClusterCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
648
648
|
Object.assign(contents, doc);
|
|
649
649
|
return contents;
|
|
650
650
|
}, "de_CreateClusterCommand");
|
|
651
|
-
var de_CreateClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
652
|
-
const parsedOutput = {
|
|
653
|
-
...output,
|
|
654
|
-
body: await parseErrorBody(output.body, context)
|
|
655
|
-
};
|
|
656
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
657
|
-
switch (errorCode) {
|
|
658
|
-
case "AccessDeniedException":
|
|
659
|
-
case "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException":
|
|
660
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
661
|
-
case "ConflictException":
|
|
662
|
-
case "com.amazonaws.route53recoverycontrolconfig#ConflictException":
|
|
663
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
664
|
-
case "InternalServerException":
|
|
665
|
-
case "com.amazonaws.route53recoverycontrolconfig#InternalServerException":
|
|
666
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
667
|
-
case "ResourceNotFoundException":
|
|
668
|
-
case "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException":
|
|
669
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
670
|
-
case "ServiceQuotaExceededException":
|
|
671
|
-
case "com.amazonaws.route53recoverycontrolconfig#ServiceQuotaExceededException":
|
|
672
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
673
|
-
case "ThrottlingException":
|
|
674
|
-
case "com.amazonaws.route53recoverycontrolconfig#ThrottlingException":
|
|
675
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
676
|
-
case "ValidationException":
|
|
677
|
-
case "com.amazonaws.route53recoverycontrolconfig#ValidationException":
|
|
678
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
679
|
-
default:
|
|
680
|
-
const parsedBody = parsedOutput.body;
|
|
681
|
-
return throwDefaultError({
|
|
682
|
-
output,
|
|
683
|
-
parsedBody,
|
|
684
|
-
errorCode
|
|
685
|
-
});
|
|
686
|
-
}
|
|
687
|
-
}, "de_CreateClusterCommandError");
|
|
688
651
|
var de_CreateControlPanelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
689
652
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
690
|
-
return
|
|
653
|
+
return de_CommandError(output, context);
|
|
691
654
|
}
|
|
692
655
|
const contents = (0, import_smithy_client.map)({
|
|
693
656
|
$metadata: deserializeMetadata(output)
|
|
@@ -699,46 +662,9 @@ var de_CreateControlPanelCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
699
662
|
Object.assign(contents, doc);
|
|
700
663
|
return contents;
|
|
701
664
|
}, "de_CreateControlPanelCommand");
|
|
702
|
-
var de_CreateControlPanelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
703
|
-
const parsedOutput = {
|
|
704
|
-
...output,
|
|
705
|
-
body: await parseErrorBody(output.body, context)
|
|
706
|
-
};
|
|
707
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
708
|
-
switch (errorCode) {
|
|
709
|
-
case "AccessDeniedException":
|
|
710
|
-
case "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException":
|
|
711
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
712
|
-
case "ConflictException":
|
|
713
|
-
case "com.amazonaws.route53recoverycontrolconfig#ConflictException":
|
|
714
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
715
|
-
case "InternalServerException":
|
|
716
|
-
case "com.amazonaws.route53recoverycontrolconfig#InternalServerException":
|
|
717
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
718
|
-
case "ResourceNotFoundException":
|
|
719
|
-
case "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException":
|
|
720
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
721
|
-
case "ServiceQuotaExceededException":
|
|
722
|
-
case "com.amazonaws.route53recoverycontrolconfig#ServiceQuotaExceededException":
|
|
723
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
724
|
-
case "ThrottlingException":
|
|
725
|
-
case "com.amazonaws.route53recoverycontrolconfig#ThrottlingException":
|
|
726
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
727
|
-
case "ValidationException":
|
|
728
|
-
case "com.amazonaws.route53recoverycontrolconfig#ValidationException":
|
|
729
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
730
|
-
default:
|
|
731
|
-
const parsedBody = parsedOutput.body;
|
|
732
|
-
return throwDefaultError({
|
|
733
|
-
output,
|
|
734
|
-
parsedBody,
|
|
735
|
-
errorCode
|
|
736
|
-
});
|
|
737
|
-
}
|
|
738
|
-
}, "de_CreateControlPanelCommandError");
|
|
739
665
|
var de_CreateRoutingControlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
740
666
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
741
|
-
return
|
|
667
|
+
return de_CommandError(output, context);
|
|
742
668
|
}
|
|
743
669
|
const contents = (0, import_smithy_client.map)({
|
|
744
670
|
$metadata: deserializeMetadata(output)
|
|
@@ -750,46 +676,9 @@ var de_CreateRoutingControlCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
750
676
|
Object.assign(contents, doc);
|
|
751
677
|
return contents;
|
|
752
678
|
}, "de_CreateRoutingControlCommand");
|
|
753
|
-
var de_CreateRoutingControlCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
754
|
-
const parsedOutput = {
|
|
755
|
-
...output,
|
|
756
|
-
body: await parseErrorBody(output.body, context)
|
|
757
|
-
};
|
|
758
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
759
|
-
switch (errorCode) {
|
|
760
|
-
case "AccessDeniedException":
|
|
761
|
-
case "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException":
|
|
762
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
763
|
-
case "ConflictException":
|
|
764
|
-
case "com.amazonaws.route53recoverycontrolconfig#ConflictException":
|
|
765
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
766
|
-
case "InternalServerException":
|
|
767
|
-
case "com.amazonaws.route53recoverycontrolconfig#InternalServerException":
|
|
768
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
769
|
-
case "ResourceNotFoundException":
|
|
770
|
-
case "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException":
|
|
771
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
772
|
-
case "ServiceQuotaExceededException":
|
|
773
|
-
case "com.amazonaws.route53recoverycontrolconfig#ServiceQuotaExceededException":
|
|
774
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
775
|
-
case "ThrottlingException":
|
|
776
|
-
case "com.amazonaws.route53recoverycontrolconfig#ThrottlingException":
|
|
777
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
778
|
-
case "ValidationException":
|
|
779
|
-
case "com.amazonaws.route53recoverycontrolconfig#ValidationException":
|
|
780
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
781
|
-
default:
|
|
782
|
-
const parsedBody = parsedOutput.body;
|
|
783
|
-
return throwDefaultError({
|
|
784
|
-
output,
|
|
785
|
-
parsedBody,
|
|
786
|
-
errorCode
|
|
787
|
-
});
|
|
788
|
-
}
|
|
789
|
-
}, "de_CreateRoutingControlCommandError");
|
|
790
679
|
var de_CreateSafetyRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
791
680
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
792
|
-
return
|
|
681
|
+
return de_CommandError(output, context);
|
|
793
682
|
}
|
|
794
683
|
const contents = (0, import_smithy_client.map)({
|
|
795
684
|
$metadata: deserializeMetadata(output)
|
|
@@ -802,31 +691,9 @@ var de_CreateSafetyRuleCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
802
691
|
Object.assign(contents, doc);
|
|
803
692
|
return contents;
|
|
804
693
|
}, "de_CreateSafetyRuleCommand");
|
|
805
|
-
var de_CreateSafetyRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
806
|
-
const parsedOutput = {
|
|
807
|
-
...output,
|
|
808
|
-
body: await parseErrorBody(output.body, context)
|
|
809
|
-
};
|
|
810
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
811
|
-
switch (errorCode) {
|
|
812
|
-
case "InternalServerException":
|
|
813
|
-
case "com.amazonaws.route53recoverycontrolconfig#InternalServerException":
|
|
814
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
815
|
-
case "ValidationException":
|
|
816
|
-
case "com.amazonaws.route53recoverycontrolconfig#ValidationException":
|
|
817
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
818
|
-
default:
|
|
819
|
-
const parsedBody = parsedOutput.body;
|
|
820
|
-
return throwDefaultError({
|
|
821
|
-
output,
|
|
822
|
-
parsedBody,
|
|
823
|
-
errorCode
|
|
824
|
-
});
|
|
825
|
-
}
|
|
826
|
-
}, "de_CreateSafetyRuleCommandError");
|
|
827
694
|
var de_DeleteClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
828
695
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
829
|
-
return
|
|
696
|
+
return de_CommandError(output, context);
|
|
830
697
|
}
|
|
831
698
|
const contents = (0, import_smithy_client.map)({
|
|
832
699
|
$metadata: deserializeMetadata(output)
|
|
@@ -834,43 +701,9 @@ var de_DeleteClusterCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
834
701
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
835
702
|
return contents;
|
|
836
703
|
}, "de_DeleteClusterCommand");
|
|
837
|
-
var de_DeleteClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
838
|
-
const parsedOutput = {
|
|
839
|
-
...output,
|
|
840
|
-
body: await parseErrorBody(output.body, context)
|
|
841
|
-
};
|
|
842
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
843
|
-
switch (errorCode) {
|
|
844
|
-
case "AccessDeniedException":
|
|
845
|
-
case "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException":
|
|
846
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
847
|
-
case "ConflictException":
|
|
848
|
-
case "com.amazonaws.route53recoverycontrolconfig#ConflictException":
|
|
849
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
850
|
-
case "InternalServerException":
|
|
851
|
-
case "com.amazonaws.route53recoverycontrolconfig#InternalServerException":
|
|
852
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
853
|
-
case "ResourceNotFoundException":
|
|
854
|
-
case "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException":
|
|
855
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
856
|
-
case "ThrottlingException":
|
|
857
|
-
case "com.amazonaws.route53recoverycontrolconfig#ThrottlingException":
|
|
858
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
859
|
-
case "ValidationException":
|
|
860
|
-
case "com.amazonaws.route53recoverycontrolconfig#ValidationException":
|
|
861
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
862
|
-
default:
|
|
863
|
-
const parsedBody = parsedOutput.body;
|
|
864
|
-
return throwDefaultError({
|
|
865
|
-
output,
|
|
866
|
-
parsedBody,
|
|
867
|
-
errorCode
|
|
868
|
-
});
|
|
869
|
-
}
|
|
870
|
-
}, "de_DeleteClusterCommandError");
|
|
871
704
|
var de_DeleteControlPanelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
872
705
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
873
|
-
return
|
|
706
|
+
return de_CommandError(output, context);
|
|
874
707
|
}
|
|
875
708
|
const contents = (0, import_smithy_client.map)({
|
|
876
709
|
$metadata: deserializeMetadata(output)
|
|
@@ -878,43 +711,9 @@ var de_DeleteControlPanelCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
878
711
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
879
712
|
return contents;
|
|
880
713
|
}, "de_DeleteControlPanelCommand");
|
|
881
|
-
var de_DeleteControlPanelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
882
|
-
const parsedOutput = {
|
|
883
|
-
...output,
|
|
884
|
-
body: await parseErrorBody(output.body, context)
|
|
885
|
-
};
|
|
886
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
887
|
-
switch (errorCode) {
|
|
888
|
-
case "AccessDeniedException":
|
|
889
|
-
case "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException":
|
|
890
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
891
|
-
case "ConflictException":
|
|
892
|
-
case "com.amazonaws.route53recoverycontrolconfig#ConflictException":
|
|
893
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
894
|
-
case "InternalServerException":
|
|
895
|
-
case "com.amazonaws.route53recoverycontrolconfig#InternalServerException":
|
|
896
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
897
|
-
case "ResourceNotFoundException":
|
|
898
|
-
case "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException":
|
|
899
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
900
|
-
case "ThrottlingException":
|
|
901
|
-
case "com.amazonaws.route53recoverycontrolconfig#ThrottlingException":
|
|
902
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
903
|
-
case "ValidationException":
|
|
904
|
-
case "com.amazonaws.route53recoverycontrolconfig#ValidationException":
|
|
905
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
906
|
-
default:
|
|
907
|
-
const parsedBody = parsedOutput.body;
|
|
908
|
-
return throwDefaultError({
|
|
909
|
-
output,
|
|
910
|
-
parsedBody,
|
|
911
|
-
errorCode
|
|
912
|
-
});
|
|
913
|
-
}
|
|
914
|
-
}, "de_DeleteControlPanelCommandError");
|
|
915
714
|
var de_DeleteRoutingControlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
916
715
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
917
|
-
return
|
|
716
|
+
return de_CommandError(output, context);
|
|
918
717
|
}
|
|
919
718
|
const contents = (0, import_smithy_client.map)({
|
|
920
719
|
$metadata: deserializeMetadata(output)
|
|
@@ -922,43 +721,9 @@ var de_DeleteRoutingControlCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
922
721
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
923
722
|
return contents;
|
|
924
723
|
}, "de_DeleteRoutingControlCommand");
|
|
925
|
-
var de_DeleteRoutingControlCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
926
|
-
const parsedOutput = {
|
|
927
|
-
...output,
|
|
928
|
-
body: await parseErrorBody(output.body, context)
|
|
929
|
-
};
|
|
930
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
931
|
-
switch (errorCode) {
|
|
932
|
-
case "AccessDeniedException":
|
|
933
|
-
case "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException":
|
|
934
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
935
|
-
case "ConflictException":
|
|
936
|
-
case "com.amazonaws.route53recoverycontrolconfig#ConflictException":
|
|
937
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
938
|
-
case "InternalServerException":
|
|
939
|
-
case "com.amazonaws.route53recoverycontrolconfig#InternalServerException":
|
|
940
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
941
|
-
case "ResourceNotFoundException":
|
|
942
|
-
case "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException":
|
|
943
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
944
|
-
case "ThrottlingException":
|
|
945
|
-
case "com.amazonaws.route53recoverycontrolconfig#ThrottlingException":
|
|
946
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
947
|
-
case "ValidationException":
|
|
948
|
-
case "com.amazonaws.route53recoverycontrolconfig#ValidationException":
|
|
949
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
950
|
-
default:
|
|
951
|
-
const parsedBody = parsedOutput.body;
|
|
952
|
-
return throwDefaultError({
|
|
953
|
-
output,
|
|
954
|
-
parsedBody,
|
|
955
|
-
errorCode
|
|
956
|
-
});
|
|
957
|
-
}
|
|
958
|
-
}, "de_DeleteRoutingControlCommandError");
|
|
959
724
|
var de_DeleteSafetyRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
960
725
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
961
|
-
return
|
|
726
|
+
return de_CommandError(output, context);
|
|
962
727
|
}
|
|
963
728
|
const contents = (0, import_smithy_client.map)({
|
|
964
729
|
$metadata: deserializeMetadata(output)
|
|
@@ -966,34 +731,9 @@ var de_DeleteSafetyRuleCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
966
731
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
967
732
|
return contents;
|
|
968
733
|
}, "de_DeleteSafetyRuleCommand");
|
|
969
|
-
var de_DeleteSafetyRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
970
|
-
const parsedOutput = {
|
|
971
|
-
...output,
|
|
972
|
-
body: await parseErrorBody(output.body, context)
|
|
973
|
-
};
|
|
974
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
975
|
-
switch (errorCode) {
|
|
976
|
-
case "InternalServerException":
|
|
977
|
-
case "com.amazonaws.route53recoverycontrolconfig#InternalServerException":
|
|
978
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
979
|
-
case "ResourceNotFoundException":
|
|
980
|
-
case "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException":
|
|
981
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
982
|
-
case "ValidationException":
|
|
983
|
-
case "com.amazonaws.route53recoverycontrolconfig#ValidationException":
|
|
984
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
985
|
-
default:
|
|
986
|
-
const parsedBody = parsedOutput.body;
|
|
987
|
-
return throwDefaultError({
|
|
988
|
-
output,
|
|
989
|
-
parsedBody,
|
|
990
|
-
errorCode
|
|
991
|
-
});
|
|
992
|
-
}
|
|
993
|
-
}, "de_DeleteSafetyRuleCommandError");
|
|
994
734
|
var de_DescribeClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
995
735
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
996
|
-
return
|
|
736
|
+
return de_CommandError(output, context);
|
|
997
737
|
}
|
|
998
738
|
const contents = (0, import_smithy_client.map)({
|
|
999
739
|
$metadata: deserializeMetadata(output)
|
|
@@ -1005,43 +745,9 @@ var de_DescribeClusterCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1005
745
|
Object.assign(contents, doc);
|
|
1006
746
|
return contents;
|
|
1007
747
|
}, "de_DescribeClusterCommand");
|
|
1008
|
-
var de_DescribeClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1009
|
-
const parsedOutput = {
|
|
1010
|
-
...output,
|
|
1011
|
-
body: await parseErrorBody(output.body, context)
|
|
1012
|
-
};
|
|
1013
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1014
|
-
switch (errorCode) {
|
|
1015
|
-
case "AccessDeniedException":
|
|
1016
|
-
case "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException":
|
|
1017
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1018
|
-
case "ConflictException":
|
|
1019
|
-
case "com.amazonaws.route53recoverycontrolconfig#ConflictException":
|
|
1020
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1021
|
-
case "InternalServerException":
|
|
1022
|
-
case "com.amazonaws.route53recoverycontrolconfig#InternalServerException":
|
|
1023
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1024
|
-
case "ResourceNotFoundException":
|
|
1025
|
-
case "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException":
|
|
1026
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1027
|
-
case "ThrottlingException":
|
|
1028
|
-
case "com.amazonaws.route53recoverycontrolconfig#ThrottlingException":
|
|
1029
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1030
|
-
case "ValidationException":
|
|
1031
|
-
case "com.amazonaws.route53recoverycontrolconfig#ValidationException":
|
|
1032
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1033
|
-
default:
|
|
1034
|
-
const parsedBody = parsedOutput.body;
|
|
1035
|
-
return throwDefaultError({
|
|
1036
|
-
output,
|
|
1037
|
-
parsedBody,
|
|
1038
|
-
errorCode
|
|
1039
|
-
});
|
|
1040
|
-
}
|
|
1041
|
-
}, "de_DescribeClusterCommandError");
|
|
1042
748
|
var de_DescribeControlPanelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1043
749
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1044
|
-
return
|
|
750
|
+
return de_CommandError(output, context);
|
|
1045
751
|
}
|
|
1046
752
|
const contents = (0, import_smithy_client.map)({
|
|
1047
753
|
$metadata: deserializeMetadata(output)
|
|
@@ -1053,43 +759,9 @@ var de_DescribeControlPanelCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1053
759
|
Object.assign(contents, doc);
|
|
1054
760
|
return contents;
|
|
1055
761
|
}, "de_DescribeControlPanelCommand");
|
|
1056
|
-
var de_DescribeControlPanelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1057
|
-
const parsedOutput = {
|
|
1058
|
-
...output,
|
|
1059
|
-
body: await parseErrorBody(output.body, context)
|
|
1060
|
-
};
|
|
1061
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1062
|
-
switch (errorCode) {
|
|
1063
|
-
case "AccessDeniedException":
|
|
1064
|
-
case "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException":
|
|
1065
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1066
|
-
case "ConflictException":
|
|
1067
|
-
case "com.amazonaws.route53recoverycontrolconfig#ConflictException":
|
|
1068
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1069
|
-
case "InternalServerException":
|
|
1070
|
-
case "com.amazonaws.route53recoverycontrolconfig#InternalServerException":
|
|
1071
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1072
|
-
case "ResourceNotFoundException":
|
|
1073
|
-
case "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException":
|
|
1074
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1075
|
-
case "ThrottlingException":
|
|
1076
|
-
case "com.amazonaws.route53recoverycontrolconfig#ThrottlingException":
|
|
1077
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1078
|
-
case "ValidationException":
|
|
1079
|
-
case "com.amazonaws.route53recoverycontrolconfig#ValidationException":
|
|
1080
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1081
|
-
default:
|
|
1082
|
-
const parsedBody = parsedOutput.body;
|
|
1083
|
-
return throwDefaultError({
|
|
1084
|
-
output,
|
|
1085
|
-
parsedBody,
|
|
1086
|
-
errorCode
|
|
1087
|
-
});
|
|
1088
|
-
}
|
|
1089
|
-
}, "de_DescribeControlPanelCommandError");
|
|
1090
762
|
var de_DescribeRoutingControlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1091
763
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1092
|
-
return
|
|
764
|
+
return de_CommandError(output, context);
|
|
1093
765
|
}
|
|
1094
766
|
const contents = (0, import_smithy_client.map)({
|
|
1095
767
|
$metadata: deserializeMetadata(output)
|
|
@@ -1101,43 +773,9 @@ var de_DescribeRoutingControlCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1101
773
|
Object.assign(contents, doc);
|
|
1102
774
|
return contents;
|
|
1103
775
|
}, "de_DescribeRoutingControlCommand");
|
|
1104
|
-
var de_DescribeRoutingControlCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1105
|
-
const parsedOutput = {
|
|
1106
|
-
...output,
|
|
1107
|
-
body: await parseErrorBody(output.body, context)
|
|
1108
|
-
};
|
|
1109
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1110
|
-
switch (errorCode) {
|
|
1111
|
-
case "AccessDeniedException":
|
|
1112
|
-
case "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException":
|
|
1113
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1114
|
-
case "ConflictException":
|
|
1115
|
-
case "com.amazonaws.route53recoverycontrolconfig#ConflictException":
|
|
1116
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1117
|
-
case "InternalServerException":
|
|
1118
|
-
case "com.amazonaws.route53recoverycontrolconfig#InternalServerException":
|
|
1119
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1120
|
-
case "ResourceNotFoundException":
|
|
1121
|
-
case "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException":
|
|
1122
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1123
|
-
case "ThrottlingException":
|
|
1124
|
-
case "com.amazonaws.route53recoverycontrolconfig#ThrottlingException":
|
|
1125
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1126
|
-
case "ValidationException":
|
|
1127
|
-
case "com.amazonaws.route53recoverycontrolconfig#ValidationException":
|
|
1128
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1129
|
-
default:
|
|
1130
|
-
const parsedBody = parsedOutput.body;
|
|
1131
|
-
return throwDefaultError({
|
|
1132
|
-
output,
|
|
1133
|
-
parsedBody,
|
|
1134
|
-
errorCode
|
|
1135
|
-
});
|
|
1136
|
-
}
|
|
1137
|
-
}, "de_DescribeRoutingControlCommandError");
|
|
1138
776
|
var de_DescribeSafetyRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1139
777
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1140
|
-
return
|
|
778
|
+
return de_CommandError(output, context);
|
|
1141
779
|
}
|
|
1142
780
|
const contents = (0, import_smithy_client.map)({
|
|
1143
781
|
$metadata: deserializeMetadata(output)
|
|
@@ -1150,31 +788,9 @@ var de_DescribeSafetyRuleCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1150
788
|
Object.assign(contents, doc);
|
|
1151
789
|
return contents;
|
|
1152
790
|
}, "de_DescribeSafetyRuleCommand");
|
|
1153
|
-
var de_DescribeSafetyRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1154
|
-
const parsedOutput = {
|
|
1155
|
-
...output,
|
|
1156
|
-
body: await parseErrorBody(output.body, context)
|
|
1157
|
-
};
|
|
1158
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1159
|
-
switch (errorCode) {
|
|
1160
|
-
case "ResourceNotFoundException":
|
|
1161
|
-
case "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException":
|
|
1162
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1163
|
-
case "ValidationException":
|
|
1164
|
-
case "com.amazonaws.route53recoverycontrolconfig#ValidationException":
|
|
1165
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1166
|
-
default:
|
|
1167
|
-
const parsedBody = parsedOutput.body;
|
|
1168
|
-
return throwDefaultError({
|
|
1169
|
-
output,
|
|
1170
|
-
parsedBody,
|
|
1171
|
-
errorCode
|
|
1172
|
-
});
|
|
1173
|
-
}
|
|
1174
|
-
}, "de_DescribeSafetyRuleCommandError");
|
|
1175
791
|
var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1176
792
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1177
|
-
return
|
|
793
|
+
return de_CommandError(output, context);
|
|
1178
794
|
}
|
|
1179
795
|
const contents = (0, import_smithy_client.map)({
|
|
1180
796
|
$metadata: deserializeMetadata(output)
|
|
@@ -1186,117 +802,39 @@ var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1186
802
|
Object.assign(contents, doc);
|
|
1187
803
|
return contents;
|
|
1188
804
|
}, "de_GetResourcePolicyCommand");
|
|
1189
|
-
var de_GetResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1190
|
-
const parsedOutput = {
|
|
1191
|
-
...output,
|
|
1192
|
-
body: await parseErrorBody(output.body, context)
|
|
1193
|
-
};
|
|
1194
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1195
|
-
switch (errorCode) {
|
|
1196
|
-
case "InternalServerException":
|
|
1197
|
-
case "com.amazonaws.route53recoverycontrolconfig#InternalServerException":
|
|
1198
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1199
|
-
case "ResourceNotFoundException":
|
|
1200
|
-
case "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException":
|
|
1201
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1202
|
-
default:
|
|
1203
|
-
const parsedBody = parsedOutput.body;
|
|
1204
|
-
return throwDefaultError({
|
|
1205
|
-
output,
|
|
1206
|
-
parsedBody,
|
|
1207
|
-
errorCode
|
|
1208
|
-
});
|
|
1209
|
-
}
|
|
1210
|
-
}, "de_GetResourcePolicyCommandError");
|
|
1211
805
|
var de_ListAssociatedRoute53HealthChecksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1212
806
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1213
|
-
return
|
|
1214
|
-
}
|
|
1215
|
-
const contents = (0, import_smithy_client.map)({
|
|
1216
|
-
$metadata: deserializeMetadata(output)
|
|
1217
|
-
});
|
|
1218
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1219
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1220
|
-
HealthCheckIds: import_smithy_client._json,
|
|
1221
|
-
NextToken: import_smithy_client.expectString
|
|
1222
|
-
});
|
|
1223
|
-
Object.assign(contents, doc);
|
|
1224
|
-
return contents;
|
|
1225
|
-
}, "de_ListAssociatedRoute53HealthChecksCommand");
|
|
1226
|
-
var de_ListAssociatedRoute53HealthChecksCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1227
|
-
const parsedOutput = {
|
|
1228
|
-
...output,
|
|
1229
|
-
body: await parseErrorBody(output.body, context)
|
|
1230
|
-
};
|
|
1231
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1232
|
-
switch (errorCode) {
|
|
1233
|
-
case "InternalServerException":
|
|
1234
|
-
case "com.amazonaws.route53recoverycontrolconfig#InternalServerException":
|
|
1235
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1236
|
-
case "ResourceNotFoundException":
|
|
1237
|
-
case "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException":
|
|
1238
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1239
|
-
case "ValidationException":
|
|
1240
|
-
case "com.amazonaws.route53recoverycontrolconfig#ValidationException":
|
|
1241
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1242
|
-
default:
|
|
1243
|
-
const parsedBody = parsedOutput.body;
|
|
1244
|
-
return throwDefaultError({
|
|
1245
|
-
output,
|
|
1246
|
-
parsedBody,
|
|
1247
|
-
errorCode
|
|
1248
|
-
});
|
|
1249
|
-
}
|
|
1250
|
-
}, "de_ListAssociatedRoute53HealthChecksCommandError");
|
|
1251
|
-
var de_ListClustersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1252
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1253
|
-
return de_ListClustersCommandError(output, context);
|
|
807
|
+
return de_CommandError(output, context);
|
|
1254
808
|
}
|
|
1255
|
-
const contents = (0, import_smithy_client.map)({
|
|
1256
|
-
$metadata: deserializeMetadata(output)
|
|
1257
|
-
});
|
|
1258
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1259
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1260
|
-
|
|
1261
|
-
NextToken: import_smithy_client.expectString
|
|
1262
|
-
});
|
|
1263
|
-
Object.assign(contents, doc);
|
|
1264
|
-
return contents;
|
|
1265
|
-
}, "
|
|
1266
|
-
var
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
body: await parseErrorBody(output.body, context)
|
|
1270
|
-
};
|
|
1271
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1272
|
-
switch (errorCode) {
|
|
1273
|
-
case "AccessDeniedException":
|
|
1274
|
-
case "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException":
|
|
1275
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1276
|
-
case "InternalServerException":
|
|
1277
|
-
case "com.amazonaws.route53recoverycontrolconfig#InternalServerException":
|
|
1278
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1279
|
-
case "ResourceNotFoundException":
|
|
1280
|
-
case "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException":
|
|
1281
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1282
|
-
case "ThrottlingException":
|
|
1283
|
-
case "com.amazonaws.route53recoverycontrolconfig#ThrottlingException":
|
|
1284
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1285
|
-
case "ValidationException":
|
|
1286
|
-
case "com.amazonaws.route53recoverycontrolconfig#ValidationException":
|
|
1287
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1288
|
-
default:
|
|
1289
|
-
const parsedBody = parsedOutput.body;
|
|
1290
|
-
return throwDefaultError({
|
|
1291
|
-
output,
|
|
1292
|
-
parsedBody,
|
|
1293
|
-
errorCode
|
|
1294
|
-
});
|
|
809
|
+
const contents = (0, import_smithy_client.map)({
|
|
810
|
+
$metadata: deserializeMetadata(output)
|
|
811
|
+
});
|
|
812
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
813
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
814
|
+
HealthCheckIds: import_smithy_client._json,
|
|
815
|
+
NextToken: import_smithy_client.expectString
|
|
816
|
+
});
|
|
817
|
+
Object.assign(contents, doc);
|
|
818
|
+
return contents;
|
|
819
|
+
}, "de_ListAssociatedRoute53HealthChecksCommand");
|
|
820
|
+
var de_ListClustersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
821
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
822
|
+
return de_CommandError(output, context);
|
|
1295
823
|
}
|
|
1296
|
-
|
|
824
|
+
const contents = (0, import_smithy_client.map)({
|
|
825
|
+
$metadata: deserializeMetadata(output)
|
|
826
|
+
});
|
|
827
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
828
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
829
|
+
Clusters: import_smithy_client._json,
|
|
830
|
+
NextToken: import_smithy_client.expectString
|
|
831
|
+
});
|
|
832
|
+
Object.assign(contents, doc);
|
|
833
|
+
return contents;
|
|
834
|
+
}, "de_ListClustersCommand");
|
|
1297
835
|
var de_ListControlPanelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1298
836
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1299
|
-
return
|
|
837
|
+
return de_CommandError(output, context);
|
|
1300
838
|
}
|
|
1301
839
|
const contents = (0, import_smithy_client.map)({
|
|
1302
840
|
$metadata: deserializeMetadata(output)
|
|
@@ -1309,40 +847,9 @@ var de_ListControlPanelsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1309
847
|
Object.assign(contents, doc);
|
|
1310
848
|
return contents;
|
|
1311
849
|
}, "de_ListControlPanelsCommand");
|
|
1312
|
-
var de_ListControlPanelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1313
|
-
const parsedOutput = {
|
|
1314
|
-
...output,
|
|
1315
|
-
body: await parseErrorBody(output.body, context)
|
|
1316
|
-
};
|
|
1317
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1318
|
-
switch (errorCode) {
|
|
1319
|
-
case "AccessDeniedException":
|
|
1320
|
-
case "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException":
|
|
1321
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1322
|
-
case "InternalServerException":
|
|
1323
|
-
case "com.amazonaws.route53recoverycontrolconfig#InternalServerException":
|
|
1324
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1325
|
-
case "ResourceNotFoundException":
|
|
1326
|
-
case "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException":
|
|
1327
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1328
|
-
case "ThrottlingException":
|
|
1329
|
-
case "com.amazonaws.route53recoverycontrolconfig#ThrottlingException":
|
|
1330
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1331
|
-
case "ValidationException":
|
|
1332
|
-
case "com.amazonaws.route53recoverycontrolconfig#ValidationException":
|
|
1333
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1334
|
-
default:
|
|
1335
|
-
const parsedBody = parsedOutput.body;
|
|
1336
|
-
return throwDefaultError({
|
|
1337
|
-
output,
|
|
1338
|
-
parsedBody,
|
|
1339
|
-
errorCode
|
|
1340
|
-
});
|
|
1341
|
-
}
|
|
1342
|
-
}, "de_ListControlPanelsCommandError");
|
|
1343
850
|
var de_ListRoutingControlsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1344
851
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1345
|
-
return
|
|
852
|
+
return de_CommandError(output, context);
|
|
1346
853
|
}
|
|
1347
854
|
const contents = (0, import_smithy_client.map)({
|
|
1348
855
|
$metadata: deserializeMetadata(output)
|
|
@@ -1355,40 +862,9 @@ var de_ListRoutingControlsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1355
862
|
Object.assign(contents, doc);
|
|
1356
863
|
return contents;
|
|
1357
864
|
}, "de_ListRoutingControlsCommand");
|
|
1358
|
-
var de_ListRoutingControlsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1359
|
-
const parsedOutput = {
|
|
1360
|
-
...output,
|
|
1361
|
-
body: await parseErrorBody(output.body, context)
|
|
1362
|
-
};
|
|
1363
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1364
|
-
switch (errorCode) {
|
|
1365
|
-
case "AccessDeniedException":
|
|
1366
|
-
case "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException":
|
|
1367
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1368
|
-
case "InternalServerException":
|
|
1369
|
-
case "com.amazonaws.route53recoverycontrolconfig#InternalServerException":
|
|
1370
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1371
|
-
case "ResourceNotFoundException":
|
|
1372
|
-
case "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException":
|
|
1373
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1374
|
-
case "ThrottlingException":
|
|
1375
|
-
case "com.amazonaws.route53recoverycontrolconfig#ThrottlingException":
|
|
1376
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1377
|
-
case "ValidationException":
|
|
1378
|
-
case "com.amazonaws.route53recoverycontrolconfig#ValidationException":
|
|
1379
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1380
|
-
default:
|
|
1381
|
-
const parsedBody = parsedOutput.body;
|
|
1382
|
-
return throwDefaultError({
|
|
1383
|
-
output,
|
|
1384
|
-
parsedBody,
|
|
1385
|
-
errorCode
|
|
1386
|
-
});
|
|
1387
|
-
}
|
|
1388
|
-
}, "de_ListRoutingControlsCommandError");
|
|
1389
865
|
var de_ListSafetyRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1390
866
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1391
|
-
return
|
|
867
|
+
return de_CommandError(output, context);
|
|
1392
868
|
}
|
|
1393
869
|
const contents = (0, import_smithy_client.map)({
|
|
1394
870
|
$metadata: deserializeMetadata(output)
|
|
@@ -1401,40 +877,9 @@ var de_ListSafetyRulesCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1401
877
|
Object.assign(contents, doc);
|
|
1402
878
|
return contents;
|
|
1403
879
|
}, "de_ListSafetyRulesCommand");
|
|
1404
|
-
var de_ListSafetyRulesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1405
|
-
const parsedOutput = {
|
|
1406
|
-
...output,
|
|
1407
|
-
body: await parseErrorBody(output.body, context)
|
|
1408
|
-
};
|
|
1409
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1410
|
-
switch (errorCode) {
|
|
1411
|
-
case "AccessDeniedException":
|
|
1412
|
-
case "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException":
|
|
1413
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1414
|
-
case "InternalServerException":
|
|
1415
|
-
case "com.amazonaws.route53recoverycontrolconfig#InternalServerException":
|
|
1416
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1417
|
-
case "ResourceNotFoundException":
|
|
1418
|
-
case "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException":
|
|
1419
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1420
|
-
case "ThrottlingException":
|
|
1421
|
-
case "com.amazonaws.route53recoverycontrolconfig#ThrottlingException":
|
|
1422
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1423
|
-
case "ValidationException":
|
|
1424
|
-
case "com.amazonaws.route53recoverycontrolconfig#ValidationException":
|
|
1425
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1426
|
-
default:
|
|
1427
|
-
const parsedBody = parsedOutput.body;
|
|
1428
|
-
return throwDefaultError({
|
|
1429
|
-
output,
|
|
1430
|
-
parsedBody,
|
|
1431
|
-
errorCode
|
|
1432
|
-
});
|
|
1433
|
-
}
|
|
1434
|
-
}, "de_ListSafetyRulesCommandError");
|
|
1435
880
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1436
881
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1437
|
-
return
|
|
882
|
+
return de_CommandError(output, context);
|
|
1438
883
|
}
|
|
1439
884
|
const contents = (0, import_smithy_client.map)({
|
|
1440
885
|
$metadata: deserializeMetadata(output)
|
|
@@ -1446,34 +891,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1446
891
|
Object.assign(contents, doc);
|
|
1447
892
|
return contents;
|
|
1448
893
|
}, "de_ListTagsForResourceCommand");
|
|
1449
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1450
|
-
const parsedOutput = {
|
|
1451
|
-
...output,
|
|
1452
|
-
body: await parseErrorBody(output.body, context)
|
|
1453
|
-
};
|
|
1454
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1455
|
-
switch (errorCode) {
|
|
1456
|
-
case "InternalServerException":
|
|
1457
|
-
case "com.amazonaws.route53recoverycontrolconfig#InternalServerException":
|
|
1458
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1459
|
-
case "ResourceNotFoundException":
|
|
1460
|
-
case "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException":
|
|
1461
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1462
|
-
case "ValidationException":
|
|
1463
|
-
case "com.amazonaws.route53recoverycontrolconfig#ValidationException":
|
|
1464
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1465
|
-
default:
|
|
1466
|
-
const parsedBody = parsedOutput.body;
|
|
1467
|
-
return throwDefaultError({
|
|
1468
|
-
output,
|
|
1469
|
-
parsedBody,
|
|
1470
|
-
errorCode
|
|
1471
|
-
});
|
|
1472
|
-
}
|
|
1473
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1474
894
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1475
895
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1476
|
-
return
|
|
896
|
+
return de_CommandError(output, context);
|
|
1477
897
|
}
|
|
1478
898
|
const contents = (0, import_smithy_client.map)({
|
|
1479
899
|
$metadata: deserializeMetadata(output)
|
|
@@ -1481,34 +901,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1481
901
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1482
902
|
return contents;
|
|
1483
903
|
}, "de_TagResourceCommand");
|
|
1484
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1485
|
-
const parsedOutput = {
|
|
1486
|
-
...output,
|
|
1487
|
-
body: await parseErrorBody(output.body, context)
|
|
1488
|
-
};
|
|
1489
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1490
|
-
switch (errorCode) {
|
|
1491
|
-
case "InternalServerException":
|
|
1492
|
-
case "com.amazonaws.route53recoverycontrolconfig#InternalServerException":
|
|
1493
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1494
|
-
case "ResourceNotFoundException":
|
|
1495
|
-
case "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException":
|
|
1496
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1497
|
-
case "ValidationException":
|
|
1498
|
-
case "com.amazonaws.route53recoverycontrolconfig#ValidationException":
|
|
1499
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1500
|
-
default:
|
|
1501
|
-
const parsedBody = parsedOutput.body;
|
|
1502
|
-
return throwDefaultError({
|
|
1503
|
-
output,
|
|
1504
|
-
parsedBody,
|
|
1505
|
-
errorCode
|
|
1506
|
-
});
|
|
1507
|
-
}
|
|
1508
|
-
}, "de_TagResourceCommandError");
|
|
1509
904
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1510
905
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1511
|
-
return
|
|
906
|
+
return de_CommandError(output, context);
|
|
1512
907
|
}
|
|
1513
908
|
const contents = (0, import_smithy_client.map)({
|
|
1514
909
|
$metadata: deserializeMetadata(output)
|
|
@@ -1516,34 +911,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1516
911
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1517
912
|
return contents;
|
|
1518
913
|
}, "de_UntagResourceCommand");
|
|
1519
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1520
|
-
const parsedOutput = {
|
|
1521
|
-
...output,
|
|
1522
|
-
body: await parseErrorBody(output.body, context)
|
|
1523
|
-
};
|
|
1524
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1525
|
-
switch (errorCode) {
|
|
1526
|
-
case "InternalServerException":
|
|
1527
|
-
case "com.amazonaws.route53recoverycontrolconfig#InternalServerException":
|
|
1528
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1529
|
-
case "ResourceNotFoundException":
|
|
1530
|
-
case "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException":
|
|
1531
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1532
|
-
case "ValidationException":
|
|
1533
|
-
case "com.amazonaws.route53recoverycontrolconfig#ValidationException":
|
|
1534
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1535
|
-
default:
|
|
1536
|
-
const parsedBody = parsedOutput.body;
|
|
1537
|
-
return throwDefaultError({
|
|
1538
|
-
output,
|
|
1539
|
-
parsedBody,
|
|
1540
|
-
errorCode
|
|
1541
|
-
});
|
|
1542
|
-
}
|
|
1543
|
-
}, "de_UntagResourceCommandError");
|
|
1544
914
|
var de_UpdateControlPanelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1545
915
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1546
|
-
return
|
|
916
|
+
return de_CommandError(output, context);
|
|
1547
917
|
}
|
|
1548
918
|
const contents = (0, import_smithy_client.map)({
|
|
1549
919
|
$metadata: deserializeMetadata(output)
|
|
@@ -1555,43 +925,9 @@ var de_UpdateControlPanelCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1555
925
|
Object.assign(contents, doc);
|
|
1556
926
|
return contents;
|
|
1557
927
|
}, "de_UpdateControlPanelCommand");
|
|
1558
|
-
var de_UpdateControlPanelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1559
|
-
const parsedOutput = {
|
|
1560
|
-
...output,
|
|
1561
|
-
body: await parseErrorBody(output.body, context)
|
|
1562
|
-
};
|
|
1563
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1564
|
-
switch (errorCode) {
|
|
1565
|
-
case "AccessDeniedException":
|
|
1566
|
-
case "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException":
|
|
1567
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1568
|
-
case "ConflictException":
|
|
1569
|
-
case "com.amazonaws.route53recoverycontrolconfig#ConflictException":
|
|
1570
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1571
|
-
case "InternalServerException":
|
|
1572
|
-
case "com.amazonaws.route53recoverycontrolconfig#InternalServerException":
|
|
1573
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1574
|
-
case "ResourceNotFoundException":
|
|
1575
|
-
case "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException":
|
|
1576
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1577
|
-
case "ThrottlingException":
|
|
1578
|
-
case "com.amazonaws.route53recoverycontrolconfig#ThrottlingException":
|
|
1579
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1580
|
-
case "ValidationException":
|
|
1581
|
-
case "com.amazonaws.route53recoverycontrolconfig#ValidationException":
|
|
1582
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1583
|
-
default:
|
|
1584
|
-
const parsedBody = parsedOutput.body;
|
|
1585
|
-
return throwDefaultError({
|
|
1586
|
-
output,
|
|
1587
|
-
parsedBody,
|
|
1588
|
-
errorCode
|
|
1589
|
-
});
|
|
1590
|
-
}
|
|
1591
|
-
}, "de_UpdateControlPanelCommandError");
|
|
1592
928
|
var de_UpdateRoutingControlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1593
929
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1594
|
-
return
|
|
930
|
+
return de_CommandError(output, context);
|
|
1595
931
|
}
|
|
1596
932
|
const contents = (0, import_smithy_client.map)({
|
|
1597
933
|
$metadata: deserializeMetadata(output)
|
|
@@ -1603,43 +939,9 @@ var de_UpdateRoutingControlCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1603
939
|
Object.assign(contents, doc);
|
|
1604
940
|
return contents;
|
|
1605
941
|
}, "de_UpdateRoutingControlCommand");
|
|
1606
|
-
var de_UpdateRoutingControlCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1607
|
-
const parsedOutput = {
|
|
1608
|
-
...output,
|
|
1609
|
-
body: await parseErrorBody(output.body, context)
|
|
1610
|
-
};
|
|
1611
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1612
|
-
switch (errorCode) {
|
|
1613
|
-
case "AccessDeniedException":
|
|
1614
|
-
case "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException":
|
|
1615
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1616
|
-
case "ConflictException":
|
|
1617
|
-
case "com.amazonaws.route53recoverycontrolconfig#ConflictException":
|
|
1618
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1619
|
-
case "InternalServerException":
|
|
1620
|
-
case "com.amazonaws.route53recoverycontrolconfig#InternalServerException":
|
|
1621
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1622
|
-
case "ResourceNotFoundException":
|
|
1623
|
-
case "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException":
|
|
1624
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1625
|
-
case "ThrottlingException":
|
|
1626
|
-
case "com.amazonaws.route53recoverycontrolconfig#ThrottlingException":
|
|
1627
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1628
|
-
case "ValidationException":
|
|
1629
|
-
case "com.amazonaws.route53recoverycontrolconfig#ValidationException":
|
|
1630
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1631
|
-
default:
|
|
1632
|
-
const parsedBody = parsedOutput.body;
|
|
1633
|
-
return throwDefaultError({
|
|
1634
|
-
output,
|
|
1635
|
-
parsedBody,
|
|
1636
|
-
errorCode
|
|
1637
|
-
});
|
|
1638
|
-
}
|
|
1639
|
-
}, "de_UpdateRoutingControlCommandError");
|
|
1640
942
|
var de_UpdateSafetyRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1641
943
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1642
|
-
return
|
|
944
|
+
return de_CommandError(output, context);
|
|
1643
945
|
}
|
|
1644
946
|
const contents = (0, import_smithy_client.map)({
|
|
1645
947
|
$metadata: deserializeMetadata(output)
|
|
@@ -1652,19 +954,31 @@ var de_UpdateSafetyRuleCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1652
954
|
Object.assign(contents, doc);
|
|
1653
955
|
return contents;
|
|
1654
956
|
}, "de_UpdateSafetyRuleCommand");
|
|
1655
|
-
var
|
|
957
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1656
958
|
const parsedOutput = {
|
|
1657
959
|
...output,
|
|
1658
960
|
body: await parseErrorBody(output.body, context)
|
|
1659
961
|
};
|
|
1660
962
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1661
963
|
switch (errorCode) {
|
|
964
|
+
case "AccessDeniedException":
|
|
965
|
+
case "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException":
|
|
966
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
967
|
+
case "ConflictException":
|
|
968
|
+
case "com.amazonaws.route53recoverycontrolconfig#ConflictException":
|
|
969
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1662
970
|
case "InternalServerException":
|
|
1663
971
|
case "com.amazonaws.route53recoverycontrolconfig#InternalServerException":
|
|
1664
972
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1665
973
|
case "ResourceNotFoundException":
|
|
1666
974
|
case "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException":
|
|
1667
975
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
976
|
+
case "ServiceQuotaExceededException":
|
|
977
|
+
case "com.amazonaws.route53recoverycontrolconfig#ServiceQuotaExceededException":
|
|
978
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
979
|
+
case "ThrottlingException":
|
|
980
|
+
case "com.amazonaws.route53recoverycontrolconfig#ThrottlingException":
|
|
981
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1668
982
|
case "ValidationException":
|
|
1669
983
|
case "com.amazonaws.route53recoverycontrolconfig#ValidationException":
|
|
1670
984
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -1676,7 +990,7 @@ var de_UpdateSafetyRuleCommandError = /* @__PURE__ */ __name(async (output, cont
|
|
|
1676
990
|
errorCode
|
|
1677
991
|
});
|
|
1678
992
|
}
|
|
1679
|
-
}, "
|
|
993
|
+
}, "de_CommandError");
|
|
1680
994
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(Route53RecoveryControlConfigServiceException);
|
|
1681
995
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1682
996
|
const contents = (0, import_smithy_client.map)({});
|