@aws-sdk/client-controltower 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 +24 -489
- package/dist-es/protocols/Aws_restJson1.js +23 -488
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -592,7 +592,7 @@ var se_UpdateLandingZoneCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
592
592
|
}, "se_UpdateLandingZoneCommand");
|
|
593
593
|
var de_CreateLandingZoneCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
594
594
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
595
|
-
return
|
|
595
|
+
return de_CommandError(output, context);
|
|
596
596
|
}
|
|
597
597
|
const contents = (0, import_smithy_client.map)({
|
|
598
598
|
$metadata: deserializeMetadata(output)
|
|
@@ -605,40 +605,9 @@ var de_CreateLandingZoneCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
605
605
|
Object.assign(contents, doc);
|
|
606
606
|
return contents;
|
|
607
607
|
}, "de_CreateLandingZoneCommand");
|
|
608
|
-
var de_CreateLandingZoneCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
609
|
-
const parsedOutput = {
|
|
610
|
-
...output,
|
|
611
|
-
body: await parseErrorBody(output.body, context)
|
|
612
|
-
};
|
|
613
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
614
|
-
switch (errorCode) {
|
|
615
|
-
case "AccessDeniedException":
|
|
616
|
-
case "com.amazonaws.controltower#AccessDeniedException":
|
|
617
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
618
|
-
case "ConflictException":
|
|
619
|
-
case "com.amazonaws.controltower#ConflictException":
|
|
620
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
621
|
-
case "InternalServerException":
|
|
622
|
-
case "com.amazonaws.controltower#InternalServerException":
|
|
623
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
624
|
-
case "ThrottlingException":
|
|
625
|
-
case "com.amazonaws.controltower#ThrottlingException":
|
|
626
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
627
|
-
case "ValidationException":
|
|
628
|
-
case "com.amazonaws.controltower#ValidationException":
|
|
629
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
630
|
-
default:
|
|
631
|
-
const parsedBody = parsedOutput.body;
|
|
632
|
-
return throwDefaultError({
|
|
633
|
-
output,
|
|
634
|
-
parsedBody,
|
|
635
|
-
errorCode
|
|
636
|
-
});
|
|
637
|
-
}
|
|
638
|
-
}, "de_CreateLandingZoneCommandError");
|
|
639
608
|
var de_DeleteLandingZoneCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
640
609
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
641
|
-
return
|
|
610
|
+
return de_CommandError(output, context);
|
|
642
611
|
}
|
|
643
612
|
const contents = (0, import_smithy_client.map)({
|
|
644
613
|
$metadata: deserializeMetadata(output)
|
|
@@ -650,43 +619,9 @@ var de_DeleteLandingZoneCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
650
619
|
Object.assign(contents, doc);
|
|
651
620
|
return contents;
|
|
652
621
|
}, "de_DeleteLandingZoneCommand");
|
|
653
|
-
var de_DeleteLandingZoneCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
654
|
-
const parsedOutput = {
|
|
655
|
-
...output,
|
|
656
|
-
body: await parseErrorBody(output.body, context)
|
|
657
|
-
};
|
|
658
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
659
|
-
switch (errorCode) {
|
|
660
|
-
case "AccessDeniedException":
|
|
661
|
-
case "com.amazonaws.controltower#AccessDeniedException":
|
|
662
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
663
|
-
case "ConflictException":
|
|
664
|
-
case "com.amazonaws.controltower#ConflictException":
|
|
665
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
666
|
-
case "InternalServerException":
|
|
667
|
-
case "com.amazonaws.controltower#InternalServerException":
|
|
668
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
669
|
-
case "ResourceNotFoundException":
|
|
670
|
-
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
671
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
672
|
-
case "ThrottlingException":
|
|
673
|
-
case "com.amazonaws.controltower#ThrottlingException":
|
|
674
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
675
|
-
case "ValidationException":
|
|
676
|
-
case "com.amazonaws.controltower#ValidationException":
|
|
677
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
678
|
-
default:
|
|
679
|
-
const parsedBody = parsedOutput.body;
|
|
680
|
-
return throwDefaultError({
|
|
681
|
-
output,
|
|
682
|
-
parsedBody,
|
|
683
|
-
errorCode
|
|
684
|
-
});
|
|
685
|
-
}
|
|
686
|
-
}, "de_DeleteLandingZoneCommandError");
|
|
687
622
|
var de_DisableControlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
688
623
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
689
|
-
return
|
|
624
|
+
return de_CommandError(output, context);
|
|
690
625
|
}
|
|
691
626
|
const contents = (0, import_smithy_client.map)({
|
|
692
627
|
$metadata: deserializeMetadata(output)
|
|
@@ -698,46 +633,9 @@ var de_DisableControlCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
698
633
|
Object.assign(contents, doc);
|
|
699
634
|
return contents;
|
|
700
635
|
}, "de_DisableControlCommand");
|
|
701
|
-
var de_DisableControlCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
702
|
-
const parsedOutput = {
|
|
703
|
-
...output,
|
|
704
|
-
body: await parseErrorBody(output.body, context)
|
|
705
|
-
};
|
|
706
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
707
|
-
switch (errorCode) {
|
|
708
|
-
case "AccessDeniedException":
|
|
709
|
-
case "com.amazonaws.controltower#AccessDeniedException":
|
|
710
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
711
|
-
case "ConflictException":
|
|
712
|
-
case "com.amazonaws.controltower#ConflictException":
|
|
713
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
714
|
-
case "InternalServerException":
|
|
715
|
-
case "com.amazonaws.controltower#InternalServerException":
|
|
716
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
717
|
-
case "ResourceNotFoundException":
|
|
718
|
-
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
719
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
720
|
-
case "ServiceQuotaExceededException":
|
|
721
|
-
case "com.amazonaws.controltower#ServiceQuotaExceededException":
|
|
722
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
723
|
-
case "ThrottlingException":
|
|
724
|
-
case "com.amazonaws.controltower#ThrottlingException":
|
|
725
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
726
|
-
case "ValidationException":
|
|
727
|
-
case "com.amazonaws.controltower#ValidationException":
|
|
728
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
729
|
-
default:
|
|
730
|
-
const parsedBody = parsedOutput.body;
|
|
731
|
-
return throwDefaultError({
|
|
732
|
-
output,
|
|
733
|
-
parsedBody,
|
|
734
|
-
errorCode
|
|
735
|
-
});
|
|
736
|
-
}
|
|
737
|
-
}, "de_DisableControlCommandError");
|
|
738
636
|
var de_EnableControlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
739
637
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
740
|
-
return
|
|
638
|
+
return de_CommandError(output, context);
|
|
741
639
|
}
|
|
742
640
|
const contents = (0, import_smithy_client.map)({
|
|
743
641
|
$metadata: deserializeMetadata(output)
|
|
@@ -750,46 +648,9 @@ var de_EnableControlCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
750
648
|
Object.assign(contents, doc);
|
|
751
649
|
return contents;
|
|
752
650
|
}, "de_EnableControlCommand");
|
|
753
|
-
var de_EnableControlCommandError = /* @__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.controltower#AccessDeniedException":
|
|
762
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
763
|
-
case "ConflictException":
|
|
764
|
-
case "com.amazonaws.controltower#ConflictException":
|
|
765
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
766
|
-
case "InternalServerException":
|
|
767
|
-
case "com.amazonaws.controltower#InternalServerException":
|
|
768
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
769
|
-
case "ResourceNotFoundException":
|
|
770
|
-
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
771
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
772
|
-
case "ServiceQuotaExceededException":
|
|
773
|
-
case "com.amazonaws.controltower#ServiceQuotaExceededException":
|
|
774
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
775
|
-
case "ThrottlingException":
|
|
776
|
-
case "com.amazonaws.controltower#ThrottlingException":
|
|
777
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
778
|
-
case "ValidationException":
|
|
779
|
-
case "com.amazonaws.controltower#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_EnableControlCommandError");
|
|
790
651
|
var de_GetControlOperationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
791
652
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
792
|
-
return
|
|
653
|
+
return de_CommandError(output, context);
|
|
793
654
|
}
|
|
794
655
|
const contents = (0, import_smithy_client.map)({
|
|
795
656
|
$metadata: deserializeMetadata(output)
|
|
@@ -801,40 +662,9 @@ var de_GetControlOperationCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
801
662
|
Object.assign(contents, doc);
|
|
802
663
|
return contents;
|
|
803
664
|
}, "de_GetControlOperationCommand");
|
|
804
|
-
var de_GetControlOperationCommandError = /* @__PURE__ */ __name(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.controltower#AccessDeniedException":
|
|
813
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
814
|
-
case "InternalServerException":
|
|
815
|
-
case "com.amazonaws.controltower#InternalServerException":
|
|
816
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
817
|
-
case "ResourceNotFoundException":
|
|
818
|
-
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
819
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
820
|
-
case "ThrottlingException":
|
|
821
|
-
case "com.amazonaws.controltower#ThrottlingException":
|
|
822
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
823
|
-
case "ValidationException":
|
|
824
|
-
case "com.amazonaws.controltower#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
|
-
}, "de_GetControlOperationCommandError");
|
|
835
665
|
var de_GetEnabledControlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
836
666
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
837
|
-
return
|
|
667
|
+
return de_CommandError(output, context);
|
|
838
668
|
}
|
|
839
669
|
const contents = (0, import_smithy_client.map)({
|
|
840
670
|
$metadata: deserializeMetadata(output)
|
|
@@ -846,40 +676,9 @@ var de_GetEnabledControlCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
846
676
|
Object.assign(contents, doc);
|
|
847
677
|
return contents;
|
|
848
678
|
}, "de_GetEnabledControlCommand");
|
|
849
|
-
var de_GetEnabledControlCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
850
|
-
const parsedOutput = {
|
|
851
|
-
...output,
|
|
852
|
-
body: await parseErrorBody(output.body, context)
|
|
853
|
-
};
|
|
854
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
855
|
-
switch (errorCode) {
|
|
856
|
-
case "AccessDeniedException":
|
|
857
|
-
case "com.amazonaws.controltower#AccessDeniedException":
|
|
858
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
859
|
-
case "InternalServerException":
|
|
860
|
-
case "com.amazonaws.controltower#InternalServerException":
|
|
861
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
862
|
-
case "ResourceNotFoundException":
|
|
863
|
-
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
864
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
865
|
-
case "ThrottlingException":
|
|
866
|
-
case "com.amazonaws.controltower#ThrottlingException":
|
|
867
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
868
|
-
case "ValidationException":
|
|
869
|
-
case "com.amazonaws.controltower#ValidationException":
|
|
870
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
871
|
-
default:
|
|
872
|
-
const parsedBody = parsedOutput.body;
|
|
873
|
-
return throwDefaultError({
|
|
874
|
-
output,
|
|
875
|
-
parsedBody,
|
|
876
|
-
errorCode
|
|
877
|
-
});
|
|
878
|
-
}
|
|
879
|
-
}, "de_GetEnabledControlCommandError");
|
|
880
679
|
var de_GetLandingZoneCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
881
680
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
882
|
-
return
|
|
681
|
+
return de_CommandError(output, context);
|
|
883
682
|
}
|
|
884
683
|
const contents = (0, import_smithy_client.map)({
|
|
885
684
|
$metadata: deserializeMetadata(output)
|
|
@@ -891,40 +690,9 @@ var de_GetLandingZoneCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
891
690
|
Object.assign(contents, doc);
|
|
892
691
|
return contents;
|
|
893
692
|
}, "de_GetLandingZoneCommand");
|
|
894
|
-
var de_GetLandingZoneCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
895
|
-
const parsedOutput = {
|
|
896
|
-
...output,
|
|
897
|
-
body: await parseErrorBody(output.body, context)
|
|
898
|
-
};
|
|
899
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
900
|
-
switch (errorCode) {
|
|
901
|
-
case "AccessDeniedException":
|
|
902
|
-
case "com.amazonaws.controltower#AccessDeniedException":
|
|
903
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
904
|
-
case "InternalServerException":
|
|
905
|
-
case "com.amazonaws.controltower#InternalServerException":
|
|
906
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
907
|
-
case "ResourceNotFoundException":
|
|
908
|
-
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
909
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
910
|
-
case "ThrottlingException":
|
|
911
|
-
case "com.amazonaws.controltower#ThrottlingException":
|
|
912
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
913
|
-
case "ValidationException":
|
|
914
|
-
case "com.amazonaws.controltower#ValidationException":
|
|
915
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
916
|
-
default:
|
|
917
|
-
const parsedBody = parsedOutput.body;
|
|
918
|
-
return throwDefaultError({
|
|
919
|
-
output,
|
|
920
|
-
parsedBody,
|
|
921
|
-
errorCode
|
|
922
|
-
});
|
|
923
|
-
}
|
|
924
|
-
}, "de_GetLandingZoneCommandError");
|
|
925
693
|
var de_GetLandingZoneOperationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
926
694
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
927
|
-
return
|
|
695
|
+
return de_CommandError(output, context);
|
|
928
696
|
}
|
|
929
697
|
const contents = (0, import_smithy_client.map)({
|
|
930
698
|
$metadata: deserializeMetadata(output)
|
|
@@ -936,40 +704,9 @@ var de_GetLandingZoneOperationCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
936
704
|
Object.assign(contents, doc);
|
|
937
705
|
return contents;
|
|
938
706
|
}, "de_GetLandingZoneOperationCommand");
|
|
939
|
-
var de_GetLandingZoneOperationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
940
|
-
const parsedOutput = {
|
|
941
|
-
...output,
|
|
942
|
-
body: await parseErrorBody(output.body, context)
|
|
943
|
-
};
|
|
944
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
945
|
-
switch (errorCode) {
|
|
946
|
-
case "AccessDeniedException":
|
|
947
|
-
case "com.amazonaws.controltower#AccessDeniedException":
|
|
948
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
949
|
-
case "InternalServerException":
|
|
950
|
-
case "com.amazonaws.controltower#InternalServerException":
|
|
951
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
952
|
-
case "ResourceNotFoundException":
|
|
953
|
-
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
954
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
955
|
-
case "ThrottlingException":
|
|
956
|
-
case "com.amazonaws.controltower#ThrottlingException":
|
|
957
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
958
|
-
case "ValidationException":
|
|
959
|
-
case "com.amazonaws.controltower#ValidationException":
|
|
960
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
961
|
-
default:
|
|
962
|
-
const parsedBody = parsedOutput.body;
|
|
963
|
-
return throwDefaultError({
|
|
964
|
-
output,
|
|
965
|
-
parsedBody,
|
|
966
|
-
errorCode
|
|
967
|
-
});
|
|
968
|
-
}
|
|
969
|
-
}, "de_GetLandingZoneOperationCommandError");
|
|
970
707
|
var de_ListEnabledControlsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
971
708
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
972
|
-
return
|
|
709
|
+
return de_CommandError(output, context);
|
|
973
710
|
}
|
|
974
711
|
const contents = (0, import_smithy_client.map)({
|
|
975
712
|
$metadata: deserializeMetadata(output)
|
|
@@ -982,40 +719,9 @@ var de_ListEnabledControlsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
982
719
|
Object.assign(contents, doc);
|
|
983
720
|
return contents;
|
|
984
721
|
}, "de_ListEnabledControlsCommand");
|
|
985
|
-
var de_ListEnabledControlsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
986
|
-
const parsedOutput = {
|
|
987
|
-
...output,
|
|
988
|
-
body: await parseErrorBody(output.body, context)
|
|
989
|
-
};
|
|
990
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
991
|
-
switch (errorCode) {
|
|
992
|
-
case "AccessDeniedException":
|
|
993
|
-
case "com.amazonaws.controltower#AccessDeniedException":
|
|
994
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
995
|
-
case "InternalServerException":
|
|
996
|
-
case "com.amazonaws.controltower#InternalServerException":
|
|
997
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
998
|
-
case "ResourceNotFoundException":
|
|
999
|
-
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
1000
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1001
|
-
case "ThrottlingException":
|
|
1002
|
-
case "com.amazonaws.controltower#ThrottlingException":
|
|
1003
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1004
|
-
case "ValidationException":
|
|
1005
|
-
case "com.amazonaws.controltower#ValidationException":
|
|
1006
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1007
|
-
default:
|
|
1008
|
-
const parsedBody = parsedOutput.body;
|
|
1009
|
-
return throwDefaultError({
|
|
1010
|
-
output,
|
|
1011
|
-
parsedBody,
|
|
1012
|
-
errorCode
|
|
1013
|
-
});
|
|
1014
|
-
}
|
|
1015
|
-
}, "de_ListEnabledControlsCommandError");
|
|
1016
722
|
var de_ListLandingZonesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1017
723
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1018
|
-
return
|
|
724
|
+
return de_CommandError(output, context);
|
|
1019
725
|
}
|
|
1020
726
|
const contents = (0, import_smithy_client.map)({
|
|
1021
727
|
$metadata: deserializeMetadata(output)
|
|
@@ -1028,37 +734,9 @@ var de_ListLandingZonesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1028
734
|
Object.assign(contents, doc);
|
|
1029
735
|
return contents;
|
|
1030
736
|
}, "de_ListLandingZonesCommand");
|
|
1031
|
-
var de_ListLandingZonesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1032
|
-
const parsedOutput = {
|
|
1033
|
-
...output,
|
|
1034
|
-
body: await parseErrorBody(output.body, context)
|
|
1035
|
-
};
|
|
1036
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1037
|
-
switch (errorCode) {
|
|
1038
|
-
case "AccessDeniedException":
|
|
1039
|
-
case "com.amazonaws.controltower#AccessDeniedException":
|
|
1040
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1041
|
-
case "InternalServerException":
|
|
1042
|
-
case "com.amazonaws.controltower#InternalServerException":
|
|
1043
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1044
|
-
case "ThrottlingException":
|
|
1045
|
-
case "com.amazonaws.controltower#ThrottlingException":
|
|
1046
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1047
|
-
case "ValidationException":
|
|
1048
|
-
case "com.amazonaws.controltower#ValidationException":
|
|
1049
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1050
|
-
default:
|
|
1051
|
-
const parsedBody = parsedOutput.body;
|
|
1052
|
-
return throwDefaultError({
|
|
1053
|
-
output,
|
|
1054
|
-
parsedBody,
|
|
1055
|
-
errorCode
|
|
1056
|
-
});
|
|
1057
|
-
}
|
|
1058
|
-
}, "de_ListLandingZonesCommandError");
|
|
1059
737
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1060
738
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1061
|
-
return
|
|
739
|
+
return de_CommandError(output, context);
|
|
1062
740
|
}
|
|
1063
741
|
const contents = (0, import_smithy_client.map)({
|
|
1064
742
|
$metadata: deserializeMetadata(output)
|
|
@@ -1070,34 +748,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1070
748
|
Object.assign(contents, doc);
|
|
1071
749
|
return contents;
|
|
1072
750
|
}, "de_ListTagsForResourceCommand");
|
|
1073
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1074
|
-
const parsedOutput = {
|
|
1075
|
-
...output,
|
|
1076
|
-
body: await parseErrorBody(output.body, context)
|
|
1077
|
-
};
|
|
1078
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1079
|
-
switch (errorCode) {
|
|
1080
|
-
case "InternalServerException":
|
|
1081
|
-
case "com.amazonaws.controltower#InternalServerException":
|
|
1082
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1083
|
-
case "ResourceNotFoundException":
|
|
1084
|
-
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
1085
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1086
|
-
case "ValidationException":
|
|
1087
|
-
case "com.amazonaws.controltower#ValidationException":
|
|
1088
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1089
|
-
default:
|
|
1090
|
-
const parsedBody = parsedOutput.body;
|
|
1091
|
-
return throwDefaultError({
|
|
1092
|
-
output,
|
|
1093
|
-
parsedBody,
|
|
1094
|
-
errorCode
|
|
1095
|
-
});
|
|
1096
|
-
}
|
|
1097
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1098
751
|
var de_ResetLandingZoneCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1099
752
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1100
|
-
return
|
|
753
|
+
return de_CommandError(output, context);
|
|
1101
754
|
}
|
|
1102
755
|
const contents = (0, import_smithy_client.map)({
|
|
1103
756
|
$metadata: deserializeMetadata(output)
|
|
@@ -1109,43 +762,9 @@ var de_ResetLandingZoneCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1109
762
|
Object.assign(contents, doc);
|
|
1110
763
|
return contents;
|
|
1111
764
|
}, "de_ResetLandingZoneCommand");
|
|
1112
|
-
var de_ResetLandingZoneCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1113
|
-
const parsedOutput = {
|
|
1114
|
-
...output,
|
|
1115
|
-
body: await parseErrorBody(output.body, context)
|
|
1116
|
-
};
|
|
1117
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1118
|
-
switch (errorCode) {
|
|
1119
|
-
case "AccessDeniedException":
|
|
1120
|
-
case "com.amazonaws.controltower#AccessDeniedException":
|
|
1121
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1122
|
-
case "ConflictException":
|
|
1123
|
-
case "com.amazonaws.controltower#ConflictException":
|
|
1124
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1125
|
-
case "InternalServerException":
|
|
1126
|
-
case "com.amazonaws.controltower#InternalServerException":
|
|
1127
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1128
|
-
case "ResourceNotFoundException":
|
|
1129
|
-
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
1130
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1131
|
-
case "ThrottlingException":
|
|
1132
|
-
case "com.amazonaws.controltower#ThrottlingException":
|
|
1133
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1134
|
-
case "ValidationException":
|
|
1135
|
-
case "com.amazonaws.controltower#ValidationException":
|
|
1136
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1137
|
-
default:
|
|
1138
|
-
const parsedBody = parsedOutput.body;
|
|
1139
|
-
return throwDefaultError({
|
|
1140
|
-
output,
|
|
1141
|
-
parsedBody,
|
|
1142
|
-
errorCode
|
|
1143
|
-
});
|
|
1144
|
-
}
|
|
1145
|
-
}, "de_ResetLandingZoneCommandError");
|
|
1146
765
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1147
766
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1148
|
-
return
|
|
767
|
+
return de_CommandError(output, context);
|
|
1149
768
|
}
|
|
1150
769
|
const contents = (0, import_smithy_client.map)({
|
|
1151
770
|
$metadata: deserializeMetadata(output)
|
|
@@ -1153,34 +772,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1153
772
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1154
773
|
return contents;
|
|
1155
774
|
}, "de_TagResourceCommand");
|
|
1156
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1157
|
-
const parsedOutput = {
|
|
1158
|
-
...output,
|
|
1159
|
-
body: await parseErrorBody(output.body, context)
|
|
1160
|
-
};
|
|
1161
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1162
|
-
switch (errorCode) {
|
|
1163
|
-
case "InternalServerException":
|
|
1164
|
-
case "com.amazonaws.controltower#InternalServerException":
|
|
1165
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1166
|
-
case "ResourceNotFoundException":
|
|
1167
|
-
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
1168
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1169
|
-
case "ValidationException":
|
|
1170
|
-
case "com.amazonaws.controltower#ValidationException":
|
|
1171
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1172
|
-
default:
|
|
1173
|
-
const parsedBody = parsedOutput.body;
|
|
1174
|
-
return throwDefaultError({
|
|
1175
|
-
output,
|
|
1176
|
-
parsedBody,
|
|
1177
|
-
errorCode
|
|
1178
|
-
});
|
|
1179
|
-
}
|
|
1180
|
-
}, "de_TagResourceCommandError");
|
|
1181
775
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1182
776
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1183
|
-
return
|
|
777
|
+
return de_CommandError(output, context);
|
|
1184
778
|
}
|
|
1185
779
|
const contents = (0, import_smithy_client.map)({
|
|
1186
780
|
$metadata: deserializeMetadata(output)
|
|
@@ -1188,34 +782,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1188
782
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1189
783
|
return contents;
|
|
1190
784
|
}, "de_UntagResourceCommand");
|
|
1191
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1192
|
-
const parsedOutput = {
|
|
1193
|
-
...output,
|
|
1194
|
-
body: await parseErrorBody(output.body, context)
|
|
1195
|
-
};
|
|
1196
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1197
|
-
switch (errorCode) {
|
|
1198
|
-
case "InternalServerException":
|
|
1199
|
-
case "com.amazonaws.controltower#InternalServerException":
|
|
1200
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1201
|
-
case "ResourceNotFoundException":
|
|
1202
|
-
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
1203
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1204
|
-
case "ValidationException":
|
|
1205
|
-
case "com.amazonaws.controltower#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
|
-
}, "de_UntagResourceCommandError");
|
|
1216
785
|
var de_UpdateEnabledControlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1217
786
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1218
|
-
return
|
|
787
|
+
return de_CommandError(output, context);
|
|
1219
788
|
}
|
|
1220
789
|
const contents = (0, import_smithy_client.map)({
|
|
1221
790
|
$metadata: deserializeMetadata(output)
|
|
@@ -1227,46 +796,9 @@ var de_UpdateEnabledControlCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1227
796
|
Object.assign(contents, doc);
|
|
1228
797
|
return contents;
|
|
1229
798
|
}, "de_UpdateEnabledControlCommand");
|
|
1230
|
-
var de_UpdateEnabledControlCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1231
|
-
const parsedOutput = {
|
|
1232
|
-
...output,
|
|
1233
|
-
body: await parseErrorBody(output.body, context)
|
|
1234
|
-
};
|
|
1235
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1236
|
-
switch (errorCode) {
|
|
1237
|
-
case "AccessDeniedException":
|
|
1238
|
-
case "com.amazonaws.controltower#AccessDeniedException":
|
|
1239
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1240
|
-
case "ConflictException":
|
|
1241
|
-
case "com.amazonaws.controltower#ConflictException":
|
|
1242
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1243
|
-
case "InternalServerException":
|
|
1244
|
-
case "com.amazonaws.controltower#InternalServerException":
|
|
1245
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1246
|
-
case "ResourceNotFoundException":
|
|
1247
|
-
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
1248
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1249
|
-
case "ServiceQuotaExceededException":
|
|
1250
|
-
case "com.amazonaws.controltower#ServiceQuotaExceededException":
|
|
1251
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1252
|
-
case "ThrottlingException":
|
|
1253
|
-
case "com.amazonaws.controltower#ThrottlingException":
|
|
1254
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1255
|
-
case "ValidationException":
|
|
1256
|
-
case "com.amazonaws.controltower#ValidationException":
|
|
1257
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1258
|
-
default:
|
|
1259
|
-
const parsedBody = parsedOutput.body;
|
|
1260
|
-
return throwDefaultError({
|
|
1261
|
-
output,
|
|
1262
|
-
parsedBody,
|
|
1263
|
-
errorCode
|
|
1264
|
-
});
|
|
1265
|
-
}
|
|
1266
|
-
}, "de_UpdateEnabledControlCommandError");
|
|
1267
799
|
var de_UpdateLandingZoneCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1268
800
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1269
|
-
return
|
|
801
|
+
return de_CommandError(output, context);
|
|
1270
802
|
}
|
|
1271
803
|
const contents = (0, import_smithy_client.map)({
|
|
1272
804
|
$metadata: deserializeMetadata(output)
|
|
@@ -1278,7 +810,7 @@ var de_UpdateLandingZoneCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1278
810
|
Object.assign(contents, doc);
|
|
1279
811
|
return contents;
|
|
1280
812
|
}, "de_UpdateLandingZoneCommand");
|
|
1281
|
-
var
|
|
813
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1282
814
|
const parsedOutput = {
|
|
1283
815
|
...output,
|
|
1284
816
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1294,15 +826,18 @@ var de_UpdateLandingZoneCommandError = /* @__PURE__ */ __name(async (output, con
|
|
|
1294
826
|
case "InternalServerException":
|
|
1295
827
|
case "com.amazonaws.controltower#InternalServerException":
|
|
1296
828
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1297
|
-
case "ResourceNotFoundException":
|
|
1298
|
-
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
1299
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1300
829
|
case "ThrottlingException":
|
|
1301
830
|
case "com.amazonaws.controltower#ThrottlingException":
|
|
1302
831
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1303
832
|
case "ValidationException":
|
|
1304
833
|
case "com.amazonaws.controltower#ValidationException":
|
|
1305
834
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
835
|
+
case "ResourceNotFoundException":
|
|
836
|
+
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
837
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
838
|
+
case "ServiceQuotaExceededException":
|
|
839
|
+
case "com.amazonaws.controltower#ServiceQuotaExceededException":
|
|
840
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1306
841
|
default:
|
|
1307
842
|
const parsedBody = parsedOutput.body;
|
|
1308
843
|
return throwDefaultError({
|
|
@@ -1311,7 +846,7 @@ var de_UpdateLandingZoneCommandError = /* @__PURE__ */ __name(async (output, con
|
|
|
1311
846
|
errorCode
|
|
1312
847
|
});
|
|
1313
848
|
}
|
|
1314
|
-
}, "
|
|
849
|
+
}, "de_CommandError");
|
|
1315
850
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(ControlTowerServiceException);
|
|
1316
851
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1317
852
|
const contents = (0, import_smithy_client.map)({});
|
|
@@ -223,7 +223,7 @@ export const se_UpdateLandingZoneCommand = async (input, context) => {
|
|
|
223
223
|
};
|
|
224
224
|
export const de_CreateLandingZoneCommand = async (output, context) => {
|
|
225
225
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
226
|
-
return
|
|
226
|
+
return de_CommandError(output, context);
|
|
227
227
|
}
|
|
228
228
|
const contents = map({
|
|
229
229
|
$metadata: deserializeMetadata(output),
|
|
@@ -236,40 +236,9 @@ export const de_CreateLandingZoneCommand = async (output, context) => {
|
|
|
236
236
|
Object.assign(contents, doc);
|
|
237
237
|
return contents;
|
|
238
238
|
};
|
|
239
|
-
const de_CreateLandingZoneCommandError = async (output, context) => {
|
|
240
|
-
const parsedOutput = {
|
|
241
|
-
...output,
|
|
242
|
-
body: await parseErrorBody(output.body, context),
|
|
243
|
-
};
|
|
244
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
245
|
-
switch (errorCode) {
|
|
246
|
-
case "AccessDeniedException":
|
|
247
|
-
case "com.amazonaws.controltower#AccessDeniedException":
|
|
248
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
249
|
-
case "ConflictException":
|
|
250
|
-
case "com.amazonaws.controltower#ConflictException":
|
|
251
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
252
|
-
case "InternalServerException":
|
|
253
|
-
case "com.amazonaws.controltower#InternalServerException":
|
|
254
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
255
|
-
case "ThrottlingException":
|
|
256
|
-
case "com.amazonaws.controltower#ThrottlingException":
|
|
257
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
258
|
-
case "ValidationException":
|
|
259
|
-
case "com.amazonaws.controltower#ValidationException":
|
|
260
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
261
|
-
default:
|
|
262
|
-
const parsedBody = parsedOutput.body;
|
|
263
|
-
return throwDefaultError({
|
|
264
|
-
output,
|
|
265
|
-
parsedBody,
|
|
266
|
-
errorCode,
|
|
267
|
-
});
|
|
268
|
-
}
|
|
269
|
-
};
|
|
270
239
|
export const de_DeleteLandingZoneCommand = async (output, context) => {
|
|
271
240
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
272
|
-
return
|
|
241
|
+
return de_CommandError(output, context);
|
|
273
242
|
}
|
|
274
243
|
const contents = map({
|
|
275
244
|
$metadata: deserializeMetadata(output),
|
|
@@ -281,43 +250,9 @@ export const de_DeleteLandingZoneCommand = async (output, context) => {
|
|
|
281
250
|
Object.assign(contents, doc);
|
|
282
251
|
return contents;
|
|
283
252
|
};
|
|
284
|
-
const de_DeleteLandingZoneCommandError = async (output, context) => {
|
|
285
|
-
const parsedOutput = {
|
|
286
|
-
...output,
|
|
287
|
-
body: await parseErrorBody(output.body, context),
|
|
288
|
-
};
|
|
289
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
290
|
-
switch (errorCode) {
|
|
291
|
-
case "AccessDeniedException":
|
|
292
|
-
case "com.amazonaws.controltower#AccessDeniedException":
|
|
293
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
294
|
-
case "ConflictException":
|
|
295
|
-
case "com.amazonaws.controltower#ConflictException":
|
|
296
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
297
|
-
case "InternalServerException":
|
|
298
|
-
case "com.amazonaws.controltower#InternalServerException":
|
|
299
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
300
|
-
case "ResourceNotFoundException":
|
|
301
|
-
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
302
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
303
|
-
case "ThrottlingException":
|
|
304
|
-
case "com.amazonaws.controltower#ThrottlingException":
|
|
305
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
306
|
-
case "ValidationException":
|
|
307
|
-
case "com.amazonaws.controltower#ValidationException":
|
|
308
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
309
|
-
default:
|
|
310
|
-
const parsedBody = parsedOutput.body;
|
|
311
|
-
return throwDefaultError({
|
|
312
|
-
output,
|
|
313
|
-
parsedBody,
|
|
314
|
-
errorCode,
|
|
315
|
-
});
|
|
316
|
-
}
|
|
317
|
-
};
|
|
318
253
|
export const de_DisableControlCommand = async (output, context) => {
|
|
319
254
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
320
|
-
return
|
|
255
|
+
return de_CommandError(output, context);
|
|
321
256
|
}
|
|
322
257
|
const contents = map({
|
|
323
258
|
$metadata: deserializeMetadata(output),
|
|
@@ -329,46 +264,9 @@ export const de_DisableControlCommand = async (output, context) => {
|
|
|
329
264
|
Object.assign(contents, doc);
|
|
330
265
|
return contents;
|
|
331
266
|
};
|
|
332
|
-
const de_DisableControlCommandError = async (output, context) => {
|
|
333
|
-
const parsedOutput = {
|
|
334
|
-
...output,
|
|
335
|
-
body: await parseErrorBody(output.body, context),
|
|
336
|
-
};
|
|
337
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
338
|
-
switch (errorCode) {
|
|
339
|
-
case "AccessDeniedException":
|
|
340
|
-
case "com.amazonaws.controltower#AccessDeniedException":
|
|
341
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
342
|
-
case "ConflictException":
|
|
343
|
-
case "com.amazonaws.controltower#ConflictException":
|
|
344
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
345
|
-
case "InternalServerException":
|
|
346
|
-
case "com.amazonaws.controltower#InternalServerException":
|
|
347
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
348
|
-
case "ResourceNotFoundException":
|
|
349
|
-
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
350
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
351
|
-
case "ServiceQuotaExceededException":
|
|
352
|
-
case "com.amazonaws.controltower#ServiceQuotaExceededException":
|
|
353
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
354
|
-
case "ThrottlingException":
|
|
355
|
-
case "com.amazonaws.controltower#ThrottlingException":
|
|
356
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
357
|
-
case "ValidationException":
|
|
358
|
-
case "com.amazonaws.controltower#ValidationException":
|
|
359
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
360
|
-
default:
|
|
361
|
-
const parsedBody = parsedOutput.body;
|
|
362
|
-
return throwDefaultError({
|
|
363
|
-
output,
|
|
364
|
-
parsedBody,
|
|
365
|
-
errorCode,
|
|
366
|
-
});
|
|
367
|
-
}
|
|
368
|
-
};
|
|
369
267
|
export const de_EnableControlCommand = async (output, context) => {
|
|
370
268
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
371
|
-
return
|
|
269
|
+
return de_CommandError(output, context);
|
|
372
270
|
}
|
|
373
271
|
const contents = map({
|
|
374
272
|
$metadata: deserializeMetadata(output),
|
|
@@ -381,46 +279,9 @@ export const de_EnableControlCommand = async (output, context) => {
|
|
|
381
279
|
Object.assign(contents, doc);
|
|
382
280
|
return contents;
|
|
383
281
|
};
|
|
384
|
-
const de_EnableControlCommandError = async (output, context) => {
|
|
385
|
-
const parsedOutput = {
|
|
386
|
-
...output,
|
|
387
|
-
body: await parseErrorBody(output.body, context),
|
|
388
|
-
};
|
|
389
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
390
|
-
switch (errorCode) {
|
|
391
|
-
case "AccessDeniedException":
|
|
392
|
-
case "com.amazonaws.controltower#AccessDeniedException":
|
|
393
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
394
|
-
case "ConflictException":
|
|
395
|
-
case "com.amazonaws.controltower#ConflictException":
|
|
396
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
397
|
-
case "InternalServerException":
|
|
398
|
-
case "com.amazonaws.controltower#InternalServerException":
|
|
399
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
400
|
-
case "ResourceNotFoundException":
|
|
401
|
-
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
402
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
403
|
-
case "ServiceQuotaExceededException":
|
|
404
|
-
case "com.amazonaws.controltower#ServiceQuotaExceededException":
|
|
405
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
406
|
-
case "ThrottlingException":
|
|
407
|
-
case "com.amazonaws.controltower#ThrottlingException":
|
|
408
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
409
|
-
case "ValidationException":
|
|
410
|
-
case "com.amazonaws.controltower#ValidationException":
|
|
411
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
412
|
-
default:
|
|
413
|
-
const parsedBody = parsedOutput.body;
|
|
414
|
-
return throwDefaultError({
|
|
415
|
-
output,
|
|
416
|
-
parsedBody,
|
|
417
|
-
errorCode,
|
|
418
|
-
});
|
|
419
|
-
}
|
|
420
|
-
};
|
|
421
282
|
export const de_GetControlOperationCommand = async (output, context) => {
|
|
422
283
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
423
|
-
return
|
|
284
|
+
return de_CommandError(output, context);
|
|
424
285
|
}
|
|
425
286
|
const contents = map({
|
|
426
287
|
$metadata: deserializeMetadata(output),
|
|
@@ -432,40 +293,9 @@ export const de_GetControlOperationCommand = async (output, context) => {
|
|
|
432
293
|
Object.assign(contents, doc);
|
|
433
294
|
return contents;
|
|
434
295
|
};
|
|
435
|
-
const de_GetControlOperationCommandError = async (output, context) => {
|
|
436
|
-
const parsedOutput = {
|
|
437
|
-
...output,
|
|
438
|
-
body: await parseErrorBody(output.body, context),
|
|
439
|
-
};
|
|
440
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
441
|
-
switch (errorCode) {
|
|
442
|
-
case "AccessDeniedException":
|
|
443
|
-
case "com.amazonaws.controltower#AccessDeniedException":
|
|
444
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
445
|
-
case "InternalServerException":
|
|
446
|
-
case "com.amazonaws.controltower#InternalServerException":
|
|
447
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
448
|
-
case "ResourceNotFoundException":
|
|
449
|
-
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
450
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
451
|
-
case "ThrottlingException":
|
|
452
|
-
case "com.amazonaws.controltower#ThrottlingException":
|
|
453
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
454
|
-
case "ValidationException":
|
|
455
|
-
case "com.amazonaws.controltower#ValidationException":
|
|
456
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
457
|
-
default:
|
|
458
|
-
const parsedBody = parsedOutput.body;
|
|
459
|
-
return throwDefaultError({
|
|
460
|
-
output,
|
|
461
|
-
parsedBody,
|
|
462
|
-
errorCode,
|
|
463
|
-
});
|
|
464
|
-
}
|
|
465
|
-
};
|
|
466
296
|
export const de_GetEnabledControlCommand = async (output, context) => {
|
|
467
297
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
468
|
-
return
|
|
298
|
+
return de_CommandError(output, context);
|
|
469
299
|
}
|
|
470
300
|
const contents = map({
|
|
471
301
|
$metadata: deserializeMetadata(output),
|
|
@@ -477,40 +307,9 @@ export const de_GetEnabledControlCommand = async (output, context) => {
|
|
|
477
307
|
Object.assign(contents, doc);
|
|
478
308
|
return contents;
|
|
479
309
|
};
|
|
480
|
-
const de_GetEnabledControlCommandError = async (output, context) => {
|
|
481
|
-
const parsedOutput = {
|
|
482
|
-
...output,
|
|
483
|
-
body: await parseErrorBody(output.body, context),
|
|
484
|
-
};
|
|
485
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
486
|
-
switch (errorCode) {
|
|
487
|
-
case "AccessDeniedException":
|
|
488
|
-
case "com.amazonaws.controltower#AccessDeniedException":
|
|
489
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
490
|
-
case "InternalServerException":
|
|
491
|
-
case "com.amazonaws.controltower#InternalServerException":
|
|
492
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
493
|
-
case "ResourceNotFoundException":
|
|
494
|
-
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
495
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
496
|
-
case "ThrottlingException":
|
|
497
|
-
case "com.amazonaws.controltower#ThrottlingException":
|
|
498
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
499
|
-
case "ValidationException":
|
|
500
|
-
case "com.amazonaws.controltower#ValidationException":
|
|
501
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
502
|
-
default:
|
|
503
|
-
const parsedBody = parsedOutput.body;
|
|
504
|
-
return throwDefaultError({
|
|
505
|
-
output,
|
|
506
|
-
parsedBody,
|
|
507
|
-
errorCode,
|
|
508
|
-
});
|
|
509
|
-
}
|
|
510
|
-
};
|
|
511
310
|
export const de_GetLandingZoneCommand = async (output, context) => {
|
|
512
311
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
513
|
-
return
|
|
312
|
+
return de_CommandError(output, context);
|
|
514
313
|
}
|
|
515
314
|
const contents = map({
|
|
516
315
|
$metadata: deserializeMetadata(output),
|
|
@@ -522,40 +321,9 @@ export const de_GetLandingZoneCommand = async (output, context) => {
|
|
|
522
321
|
Object.assign(contents, doc);
|
|
523
322
|
return contents;
|
|
524
323
|
};
|
|
525
|
-
const de_GetLandingZoneCommandError = async (output, context) => {
|
|
526
|
-
const parsedOutput = {
|
|
527
|
-
...output,
|
|
528
|
-
body: await parseErrorBody(output.body, context),
|
|
529
|
-
};
|
|
530
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
531
|
-
switch (errorCode) {
|
|
532
|
-
case "AccessDeniedException":
|
|
533
|
-
case "com.amazonaws.controltower#AccessDeniedException":
|
|
534
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
535
|
-
case "InternalServerException":
|
|
536
|
-
case "com.amazonaws.controltower#InternalServerException":
|
|
537
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
538
|
-
case "ResourceNotFoundException":
|
|
539
|
-
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
540
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
541
|
-
case "ThrottlingException":
|
|
542
|
-
case "com.amazonaws.controltower#ThrottlingException":
|
|
543
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
544
|
-
case "ValidationException":
|
|
545
|
-
case "com.amazonaws.controltower#ValidationException":
|
|
546
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
547
|
-
default:
|
|
548
|
-
const parsedBody = parsedOutput.body;
|
|
549
|
-
return throwDefaultError({
|
|
550
|
-
output,
|
|
551
|
-
parsedBody,
|
|
552
|
-
errorCode,
|
|
553
|
-
});
|
|
554
|
-
}
|
|
555
|
-
};
|
|
556
324
|
export const de_GetLandingZoneOperationCommand = async (output, context) => {
|
|
557
325
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
558
|
-
return
|
|
326
|
+
return de_CommandError(output, context);
|
|
559
327
|
}
|
|
560
328
|
const contents = map({
|
|
561
329
|
$metadata: deserializeMetadata(output),
|
|
@@ -567,40 +335,9 @@ export const de_GetLandingZoneOperationCommand = async (output, context) => {
|
|
|
567
335
|
Object.assign(contents, doc);
|
|
568
336
|
return contents;
|
|
569
337
|
};
|
|
570
|
-
const de_GetLandingZoneOperationCommandError = async (output, context) => {
|
|
571
|
-
const parsedOutput = {
|
|
572
|
-
...output,
|
|
573
|
-
body: await parseErrorBody(output.body, context),
|
|
574
|
-
};
|
|
575
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
576
|
-
switch (errorCode) {
|
|
577
|
-
case "AccessDeniedException":
|
|
578
|
-
case "com.amazonaws.controltower#AccessDeniedException":
|
|
579
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
580
|
-
case "InternalServerException":
|
|
581
|
-
case "com.amazonaws.controltower#InternalServerException":
|
|
582
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
583
|
-
case "ResourceNotFoundException":
|
|
584
|
-
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
585
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
586
|
-
case "ThrottlingException":
|
|
587
|
-
case "com.amazonaws.controltower#ThrottlingException":
|
|
588
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
589
|
-
case "ValidationException":
|
|
590
|
-
case "com.amazonaws.controltower#ValidationException":
|
|
591
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
592
|
-
default:
|
|
593
|
-
const parsedBody = parsedOutput.body;
|
|
594
|
-
return throwDefaultError({
|
|
595
|
-
output,
|
|
596
|
-
parsedBody,
|
|
597
|
-
errorCode,
|
|
598
|
-
});
|
|
599
|
-
}
|
|
600
|
-
};
|
|
601
338
|
export const de_ListEnabledControlsCommand = async (output, context) => {
|
|
602
339
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
603
|
-
return
|
|
340
|
+
return de_CommandError(output, context);
|
|
604
341
|
}
|
|
605
342
|
const contents = map({
|
|
606
343
|
$metadata: deserializeMetadata(output),
|
|
@@ -613,40 +350,9 @@ export const de_ListEnabledControlsCommand = async (output, context) => {
|
|
|
613
350
|
Object.assign(contents, doc);
|
|
614
351
|
return contents;
|
|
615
352
|
};
|
|
616
|
-
const de_ListEnabledControlsCommandError = async (output, context) => {
|
|
617
|
-
const parsedOutput = {
|
|
618
|
-
...output,
|
|
619
|
-
body: await parseErrorBody(output.body, context),
|
|
620
|
-
};
|
|
621
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
622
|
-
switch (errorCode) {
|
|
623
|
-
case "AccessDeniedException":
|
|
624
|
-
case "com.amazonaws.controltower#AccessDeniedException":
|
|
625
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
626
|
-
case "InternalServerException":
|
|
627
|
-
case "com.amazonaws.controltower#InternalServerException":
|
|
628
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
629
|
-
case "ResourceNotFoundException":
|
|
630
|
-
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
631
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
632
|
-
case "ThrottlingException":
|
|
633
|
-
case "com.amazonaws.controltower#ThrottlingException":
|
|
634
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
635
|
-
case "ValidationException":
|
|
636
|
-
case "com.amazonaws.controltower#ValidationException":
|
|
637
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
638
|
-
default:
|
|
639
|
-
const parsedBody = parsedOutput.body;
|
|
640
|
-
return throwDefaultError({
|
|
641
|
-
output,
|
|
642
|
-
parsedBody,
|
|
643
|
-
errorCode,
|
|
644
|
-
});
|
|
645
|
-
}
|
|
646
|
-
};
|
|
647
353
|
export const de_ListLandingZonesCommand = async (output, context) => {
|
|
648
354
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
649
|
-
return
|
|
355
|
+
return de_CommandError(output, context);
|
|
650
356
|
}
|
|
651
357
|
const contents = map({
|
|
652
358
|
$metadata: deserializeMetadata(output),
|
|
@@ -659,37 +365,9 @@ export const de_ListLandingZonesCommand = async (output, context) => {
|
|
|
659
365
|
Object.assign(contents, doc);
|
|
660
366
|
return contents;
|
|
661
367
|
};
|
|
662
|
-
const de_ListLandingZonesCommandError = async (output, context) => {
|
|
663
|
-
const parsedOutput = {
|
|
664
|
-
...output,
|
|
665
|
-
body: await parseErrorBody(output.body, context),
|
|
666
|
-
};
|
|
667
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
668
|
-
switch (errorCode) {
|
|
669
|
-
case "AccessDeniedException":
|
|
670
|
-
case "com.amazonaws.controltower#AccessDeniedException":
|
|
671
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
672
|
-
case "InternalServerException":
|
|
673
|
-
case "com.amazonaws.controltower#InternalServerException":
|
|
674
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
675
|
-
case "ThrottlingException":
|
|
676
|
-
case "com.amazonaws.controltower#ThrottlingException":
|
|
677
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
678
|
-
case "ValidationException":
|
|
679
|
-
case "com.amazonaws.controltower#ValidationException":
|
|
680
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
681
|
-
default:
|
|
682
|
-
const parsedBody = parsedOutput.body;
|
|
683
|
-
return throwDefaultError({
|
|
684
|
-
output,
|
|
685
|
-
parsedBody,
|
|
686
|
-
errorCode,
|
|
687
|
-
});
|
|
688
|
-
}
|
|
689
|
-
};
|
|
690
368
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
691
369
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
692
|
-
return
|
|
370
|
+
return de_CommandError(output, context);
|
|
693
371
|
}
|
|
694
372
|
const contents = map({
|
|
695
373
|
$metadata: deserializeMetadata(output),
|
|
@@ -701,34 +379,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
701
379
|
Object.assign(contents, doc);
|
|
702
380
|
return contents;
|
|
703
381
|
};
|
|
704
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
705
|
-
const parsedOutput = {
|
|
706
|
-
...output,
|
|
707
|
-
body: await parseErrorBody(output.body, context),
|
|
708
|
-
};
|
|
709
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
710
|
-
switch (errorCode) {
|
|
711
|
-
case "InternalServerException":
|
|
712
|
-
case "com.amazonaws.controltower#InternalServerException":
|
|
713
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
714
|
-
case "ResourceNotFoundException":
|
|
715
|
-
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
716
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
717
|
-
case "ValidationException":
|
|
718
|
-
case "com.amazonaws.controltower#ValidationException":
|
|
719
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
720
|
-
default:
|
|
721
|
-
const parsedBody = parsedOutput.body;
|
|
722
|
-
return throwDefaultError({
|
|
723
|
-
output,
|
|
724
|
-
parsedBody,
|
|
725
|
-
errorCode,
|
|
726
|
-
});
|
|
727
|
-
}
|
|
728
|
-
};
|
|
729
382
|
export const de_ResetLandingZoneCommand = async (output, context) => {
|
|
730
383
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
731
|
-
return
|
|
384
|
+
return de_CommandError(output, context);
|
|
732
385
|
}
|
|
733
386
|
const contents = map({
|
|
734
387
|
$metadata: deserializeMetadata(output),
|
|
@@ -740,43 +393,9 @@ export const de_ResetLandingZoneCommand = async (output, context) => {
|
|
|
740
393
|
Object.assign(contents, doc);
|
|
741
394
|
return contents;
|
|
742
395
|
};
|
|
743
|
-
const de_ResetLandingZoneCommandError = async (output, context) => {
|
|
744
|
-
const parsedOutput = {
|
|
745
|
-
...output,
|
|
746
|
-
body: await parseErrorBody(output.body, context),
|
|
747
|
-
};
|
|
748
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
749
|
-
switch (errorCode) {
|
|
750
|
-
case "AccessDeniedException":
|
|
751
|
-
case "com.amazonaws.controltower#AccessDeniedException":
|
|
752
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
753
|
-
case "ConflictException":
|
|
754
|
-
case "com.amazonaws.controltower#ConflictException":
|
|
755
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
756
|
-
case "InternalServerException":
|
|
757
|
-
case "com.amazonaws.controltower#InternalServerException":
|
|
758
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
759
|
-
case "ResourceNotFoundException":
|
|
760
|
-
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
761
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
762
|
-
case "ThrottlingException":
|
|
763
|
-
case "com.amazonaws.controltower#ThrottlingException":
|
|
764
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
765
|
-
case "ValidationException":
|
|
766
|
-
case "com.amazonaws.controltower#ValidationException":
|
|
767
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
768
|
-
default:
|
|
769
|
-
const parsedBody = parsedOutput.body;
|
|
770
|
-
return throwDefaultError({
|
|
771
|
-
output,
|
|
772
|
-
parsedBody,
|
|
773
|
-
errorCode,
|
|
774
|
-
});
|
|
775
|
-
}
|
|
776
|
-
};
|
|
777
396
|
export const de_TagResourceCommand = async (output, context) => {
|
|
778
397
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
779
|
-
return
|
|
398
|
+
return de_CommandError(output, context);
|
|
780
399
|
}
|
|
781
400
|
const contents = map({
|
|
782
401
|
$metadata: deserializeMetadata(output),
|
|
@@ -784,34 +403,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
784
403
|
await collectBody(output.body, context);
|
|
785
404
|
return contents;
|
|
786
405
|
};
|
|
787
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
788
|
-
const parsedOutput = {
|
|
789
|
-
...output,
|
|
790
|
-
body: await parseErrorBody(output.body, context),
|
|
791
|
-
};
|
|
792
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
793
|
-
switch (errorCode) {
|
|
794
|
-
case "InternalServerException":
|
|
795
|
-
case "com.amazonaws.controltower#InternalServerException":
|
|
796
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
797
|
-
case "ResourceNotFoundException":
|
|
798
|
-
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
799
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
800
|
-
case "ValidationException":
|
|
801
|
-
case "com.amazonaws.controltower#ValidationException":
|
|
802
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
803
|
-
default:
|
|
804
|
-
const parsedBody = parsedOutput.body;
|
|
805
|
-
return throwDefaultError({
|
|
806
|
-
output,
|
|
807
|
-
parsedBody,
|
|
808
|
-
errorCode,
|
|
809
|
-
});
|
|
810
|
-
}
|
|
811
|
-
};
|
|
812
406
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
813
407
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
814
|
-
return
|
|
408
|
+
return de_CommandError(output, context);
|
|
815
409
|
}
|
|
816
410
|
const contents = map({
|
|
817
411
|
$metadata: deserializeMetadata(output),
|
|
@@ -819,34 +413,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
819
413
|
await collectBody(output.body, context);
|
|
820
414
|
return contents;
|
|
821
415
|
};
|
|
822
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
823
|
-
const parsedOutput = {
|
|
824
|
-
...output,
|
|
825
|
-
body: await parseErrorBody(output.body, context),
|
|
826
|
-
};
|
|
827
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
828
|
-
switch (errorCode) {
|
|
829
|
-
case "InternalServerException":
|
|
830
|
-
case "com.amazonaws.controltower#InternalServerException":
|
|
831
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
832
|
-
case "ResourceNotFoundException":
|
|
833
|
-
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
834
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
835
|
-
case "ValidationException":
|
|
836
|
-
case "com.amazonaws.controltower#ValidationException":
|
|
837
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
838
|
-
default:
|
|
839
|
-
const parsedBody = parsedOutput.body;
|
|
840
|
-
return throwDefaultError({
|
|
841
|
-
output,
|
|
842
|
-
parsedBody,
|
|
843
|
-
errorCode,
|
|
844
|
-
});
|
|
845
|
-
}
|
|
846
|
-
};
|
|
847
416
|
export const de_UpdateEnabledControlCommand = async (output, context) => {
|
|
848
417
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
849
|
-
return
|
|
418
|
+
return de_CommandError(output, context);
|
|
850
419
|
}
|
|
851
420
|
const contents = map({
|
|
852
421
|
$metadata: deserializeMetadata(output),
|
|
@@ -858,46 +427,9 @@ export const de_UpdateEnabledControlCommand = async (output, context) => {
|
|
|
858
427
|
Object.assign(contents, doc);
|
|
859
428
|
return contents;
|
|
860
429
|
};
|
|
861
|
-
const de_UpdateEnabledControlCommandError = async (output, context) => {
|
|
862
|
-
const parsedOutput = {
|
|
863
|
-
...output,
|
|
864
|
-
body: await parseErrorBody(output.body, context),
|
|
865
|
-
};
|
|
866
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
867
|
-
switch (errorCode) {
|
|
868
|
-
case "AccessDeniedException":
|
|
869
|
-
case "com.amazonaws.controltower#AccessDeniedException":
|
|
870
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
871
|
-
case "ConflictException":
|
|
872
|
-
case "com.amazonaws.controltower#ConflictException":
|
|
873
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
874
|
-
case "InternalServerException":
|
|
875
|
-
case "com.amazonaws.controltower#InternalServerException":
|
|
876
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
877
|
-
case "ResourceNotFoundException":
|
|
878
|
-
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
879
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
880
|
-
case "ServiceQuotaExceededException":
|
|
881
|
-
case "com.amazonaws.controltower#ServiceQuotaExceededException":
|
|
882
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
883
|
-
case "ThrottlingException":
|
|
884
|
-
case "com.amazonaws.controltower#ThrottlingException":
|
|
885
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
886
|
-
case "ValidationException":
|
|
887
|
-
case "com.amazonaws.controltower#ValidationException":
|
|
888
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
889
|
-
default:
|
|
890
|
-
const parsedBody = parsedOutput.body;
|
|
891
|
-
return throwDefaultError({
|
|
892
|
-
output,
|
|
893
|
-
parsedBody,
|
|
894
|
-
errorCode,
|
|
895
|
-
});
|
|
896
|
-
}
|
|
897
|
-
};
|
|
898
430
|
export const de_UpdateLandingZoneCommand = async (output, context) => {
|
|
899
431
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
900
|
-
return
|
|
432
|
+
return de_CommandError(output, context);
|
|
901
433
|
}
|
|
902
434
|
const contents = map({
|
|
903
435
|
$metadata: deserializeMetadata(output),
|
|
@@ -909,7 +441,7 @@ export const de_UpdateLandingZoneCommand = async (output, context) => {
|
|
|
909
441
|
Object.assign(contents, doc);
|
|
910
442
|
return contents;
|
|
911
443
|
};
|
|
912
|
-
const
|
|
444
|
+
const de_CommandError = async (output, context) => {
|
|
913
445
|
const parsedOutput = {
|
|
914
446
|
...output,
|
|
915
447
|
body: await parseErrorBody(output.body, context),
|
|
@@ -925,15 +457,18 @@ const de_UpdateLandingZoneCommandError = async (output, context) => {
|
|
|
925
457
|
case "InternalServerException":
|
|
926
458
|
case "com.amazonaws.controltower#InternalServerException":
|
|
927
459
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
928
|
-
case "ResourceNotFoundException":
|
|
929
|
-
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
930
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
931
460
|
case "ThrottlingException":
|
|
932
461
|
case "com.amazonaws.controltower#ThrottlingException":
|
|
933
462
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
934
463
|
case "ValidationException":
|
|
935
464
|
case "com.amazonaws.controltower#ValidationException":
|
|
936
465
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
466
|
+
case "ResourceNotFoundException":
|
|
467
|
+
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
468
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
469
|
+
case "ServiceQuotaExceededException":
|
|
470
|
+
case "com.amazonaws.controltower#ServiceQuotaExceededException":
|
|
471
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
937
472
|
default:
|
|
938
473
|
const parsedBody = parsedOutput.body;
|
|
939
474
|
return throwDefaultError({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-controltower",
|
|
3
3
|
"description": "AWS SDK for JavaScript Controltower Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.509.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-controltower",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.507.0",
|
|
24
24
|
"@aws-sdk/core": "3.496.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.509.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.502.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.502.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.502.0",
|