@aws-sdk/client-resource-groups 3.503.1 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +52 -618
- package/dist-es/protocols/Aws_restJson1.js +44 -610
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -627,7 +627,7 @@ var se_UpdateGroupQueryCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
627
627
|
}, "se_UpdateGroupQueryCommand");
|
|
628
628
|
var de_CreateGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
629
629
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
630
|
-
return
|
|
630
|
+
return de_CommandError(output, context);
|
|
631
631
|
}
|
|
632
632
|
const contents = (0, import_smithy_client.map)({
|
|
633
633
|
$metadata: deserializeMetadata(output)
|
|
@@ -642,40 +642,9 @@ var de_CreateGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
642
642
|
Object.assign(contents, doc);
|
|
643
643
|
return contents;
|
|
644
644
|
}, "de_CreateGroupCommand");
|
|
645
|
-
var de_CreateGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
646
|
-
const parsedOutput = {
|
|
647
|
-
...output,
|
|
648
|
-
body: await parseErrorBody(output.body, context)
|
|
649
|
-
};
|
|
650
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
651
|
-
switch (errorCode) {
|
|
652
|
-
case "BadRequestException":
|
|
653
|
-
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
654
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
655
|
-
case "ForbiddenException":
|
|
656
|
-
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
657
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
658
|
-
case "InternalServerErrorException":
|
|
659
|
-
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
660
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
661
|
-
case "MethodNotAllowedException":
|
|
662
|
-
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
663
|
-
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
664
|
-
case "TooManyRequestsException":
|
|
665
|
-
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
666
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
667
|
-
default:
|
|
668
|
-
const parsedBody = parsedOutput.body;
|
|
669
|
-
return throwDefaultError({
|
|
670
|
-
output,
|
|
671
|
-
parsedBody,
|
|
672
|
-
errorCode
|
|
673
|
-
});
|
|
674
|
-
}
|
|
675
|
-
}, "de_CreateGroupCommandError");
|
|
676
645
|
var de_DeleteGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
677
646
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
678
|
-
return
|
|
647
|
+
return de_CommandError(output, context);
|
|
679
648
|
}
|
|
680
649
|
const contents = (0, import_smithy_client.map)({
|
|
681
650
|
$metadata: deserializeMetadata(output)
|
|
@@ -687,43 +656,9 @@ var de_DeleteGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
687
656
|
Object.assign(contents, doc);
|
|
688
657
|
return contents;
|
|
689
658
|
}, "de_DeleteGroupCommand");
|
|
690
|
-
var de_DeleteGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
691
|
-
const parsedOutput = {
|
|
692
|
-
...output,
|
|
693
|
-
body: await parseErrorBody(output.body, context)
|
|
694
|
-
};
|
|
695
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
696
|
-
switch (errorCode) {
|
|
697
|
-
case "BadRequestException":
|
|
698
|
-
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
699
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
700
|
-
case "ForbiddenException":
|
|
701
|
-
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
702
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
703
|
-
case "InternalServerErrorException":
|
|
704
|
-
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
705
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
706
|
-
case "MethodNotAllowedException":
|
|
707
|
-
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
708
|
-
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
709
|
-
case "NotFoundException":
|
|
710
|
-
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
711
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
712
|
-
case "TooManyRequestsException":
|
|
713
|
-
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
714
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
715
|
-
default:
|
|
716
|
-
const parsedBody = parsedOutput.body;
|
|
717
|
-
return throwDefaultError({
|
|
718
|
-
output,
|
|
719
|
-
parsedBody,
|
|
720
|
-
errorCode
|
|
721
|
-
});
|
|
722
|
-
}
|
|
723
|
-
}, "de_DeleteGroupCommandError");
|
|
724
659
|
var de_GetAccountSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
725
660
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
726
|
-
return
|
|
661
|
+
return de_CommandError(output, context);
|
|
727
662
|
}
|
|
728
663
|
const contents = (0, import_smithy_client.map)({
|
|
729
664
|
$metadata: deserializeMetadata(output)
|
|
@@ -735,40 +670,9 @@ var de_GetAccountSettingsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
735
670
|
Object.assign(contents, doc);
|
|
736
671
|
return contents;
|
|
737
672
|
}, "de_GetAccountSettingsCommand");
|
|
738
|
-
var de_GetAccountSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
739
|
-
const parsedOutput = {
|
|
740
|
-
...output,
|
|
741
|
-
body: await parseErrorBody(output.body, context)
|
|
742
|
-
};
|
|
743
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
744
|
-
switch (errorCode) {
|
|
745
|
-
case "BadRequestException":
|
|
746
|
-
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
747
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
748
|
-
case "ForbiddenException":
|
|
749
|
-
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
750
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
751
|
-
case "InternalServerErrorException":
|
|
752
|
-
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
753
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
754
|
-
case "MethodNotAllowedException":
|
|
755
|
-
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
756
|
-
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
757
|
-
case "TooManyRequestsException":
|
|
758
|
-
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
759
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
760
|
-
default:
|
|
761
|
-
const parsedBody = parsedOutput.body;
|
|
762
|
-
return throwDefaultError({
|
|
763
|
-
output,
|
|
764
|
-
parsedBody,
|
|
765
|
-
errorCode
|
|
766
|
-
});
|
|
767
|
-
}
|
|
768
|
-
}, "de_GetAccountSettingsCommandError");
|
|
769
673
|
var de_GetGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
770
674
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
771
|
-
return
|
|
675
|
+
return de_CommandError(output, context);
|
|
772
676
|
}
|
|
773
677
|
const contents = (0, import_smithy_client.map)({
|
|
774
678
|
$metadata: deserializeMetadata(output)
|
|
@@ -780,43 +684,9 @@ var de_GetGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
780
684
|
Object.assign(contents, doc);
|
|
781
685
|
return contents;
|
|
782
686
|
}, "de_GetGroupCommand");
|
|
783
|
-
var de_GetGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
784
|
-
const parsedOutput = {
|
|
785
|
-
...output,
|
|
786
|
-
body: await parseErrorBody(output.body, context)
|
|
787
|
-
};
|
|
788
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
789
|
-
switch (errorCode) {
|
|
790
|
-
case "BadRequestException":
|
|
791
|
-
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
792
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
793
|
-
case "ForbiddenException":
|
|
794
|
-
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
795
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
796
|
-
case "InternalServerErrorException":
|
|
797
|
-
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
798
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
799
|
-
case "MethodNotAllowedException":
|
|
800
|
-
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
801
|
-
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
802
|
-
case "NotFoundException":
|
|
803
|
-
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
804
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
805
|
-
case "TooManyRequestsException":
|
|
806
|
-
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
807
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
808
|
-
default:
|
|
809
|
-
const parsedBody = parsedOutput.body;
|
|
810
|
-
return throwDefaultError({
|
|
811
|
-
output,
|
|
812
|
-
parsedBody,
|
|
813
|
-
errorCode
|
|
814
|
-
});
|
|
815
|
-
}
|
|
816
|
-
}, "de_GetGroupCommandError");
|
|
817
687
|
var de_GetGroupConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
818
688
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
819
|
-
return
|
|
689
|
+
return de_CommandError(output, context);
|
|
820
690
|
}
|
|
821
691
|
const contents = (0, import_smithy_client.map)({
|
|
822
692
|
$metadata: deserializeMetadata(output)
|
|
@@ -828,43 +698,9 @@ var de_GetGroupConfigurationCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
828
698
|
Object.assign(contents, doc);
|
|
829
699
|
return contents;
|
|
830
700
|
}, "de_GetGroupConfigurationCommand");
|
|
831
|
-
var de_GetGroupConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
832
|
-
const parsedOutput = {
|
|
833
|
-
...output,
|
|
834
|
-
body: await parseErrorBody(output.body, context)
|
|
835
|
-
};
|
|
836
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
837
|
-
switch (errorCode) {
|
|
838
|
-
case "BadRequestException":
|
|
839
|
-
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
840
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
841
|
-
case "ForbiddenException":
|
|
842
|
-
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
843
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
844
|
-
case "InternalServerErrorException":
|
|
845
|
-
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
846
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
847
|
-
case "MethodNotAllowedException":
|
|
848
|
-
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
849
|
-
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
850
|
-
case "NotFoundException":
|
|
851
|
-
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
852
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
853
|
-
case "TooManyRequestsException":
|
|
854
|
-
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
855
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
856
|
-
default:
|
|
857
|
-
const parsedBody = parsedOutput.body;
|
|
858
|
-
return throwDefaultError({
|
|
859
|
-
output,
|
|
860
|
-
parsedBody,
|
|
861
|
-
errorCode
|
|
862
|
-
});
|
|
863
|
-
}
|
|
864
|
-
}, "de_GetGroupConfigurationCommandError");
|
|
865
701
|
var de_GetGroupQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
866
702
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
867
|
-
return
|
|
703
|
+
return de_CommandError(output, context);
|
|
868
704
|
}
|
|
869
705
|
const contents = (0, import_smithy_client.map)({
|
|
870
706
|
$metadata: deserializeMetadata(output)
|
|
@@ -876,43 +712,9 @@ var de_GetGroupQueryCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
876
712
|
Object.assign(contents, doc);
|
|
877
713
|
return contents;
|
|
878
714
|
}, "de_GetGroupQueryCommand");
|
|
879
|
-
var de_GetGroupQueryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
880
|
-
const parsedOutput = {
|
|
881
|
-
...output,
|
|
882
|
-
body: await parseErrorBody(output.body, context)
|
|
883
|
-
};
|
|
884
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
885
|
-
switch (errorCode) {
|
|
886
|
-
case "BadRequestException":
|
|
887
|
-
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
888
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
889
|
-
case "ForbiddenException":
|
|
890
|
-
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
891
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
892
|
-
case "InternalServerErrorException":
|
|
893
|
-
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
894
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
895
|
-
case "MethodNotAllowedException":
|
|
896
|
-
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
897
|
-
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
898
|
-
case "NotFoundException":
|
|
899
|
-
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
900
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
901
|
-
case "TooManyRequestsException":
|
|
902
|
-
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
903
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
904
|
-
default:
|
|
905
|
-
const parsedBody = parsedOutput.body;
|
|
906
|
-
return throwDefaultError({
|
|
907
|
-
output,
|
|
908
|
-
parsedBody,
|
|
909
|
-
errorCode
|
|
910
|
-
});
|
|
911
|
-
}
|
|
912
|
-
}, "de_GetGroupQueryCommandError");
|
|
913
715
|
var de_GetTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
914
716
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
915
|
-
return
|
|
717
|
+
return de_CommandError(output, context);
|
|
916
718
|
}
|
|
917
719
|
const contents = (0, import_smithy_client.map)({
|
|
918
720
|
$metadata: deserializeMetadata(output)
|
|
@@ -925,43 +727,9 @@ var de_GetTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
925
727
|
Object.assign(contents, doc);
|
|
926
728
|
return contents;
|
|
927
729
|
}, "de_GetTagsCommand");
|
|
928
|
-
var de_GetTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
929
|
-
const parsedOutput = {
|
|
930
|
-
...output,
|
|
931
|
-
body: await parseErrorBody(output.body, context)
|
|
932
|
-
};
|
|
933
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
934
|
-
switch (errorCode) {
|
|
935
|
-
case "BadRequestException":
|
|
936
|
-
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
937
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
938
|
-
case "ForbiddenException":
|
|
939
|
-
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
940
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
941
|
-
case "InternalServerErrorException":
|
|
942
|
-
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
943
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
944
|
-
case "MethodNotAllowedException":
|
|
945
|
-
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
946
|
-
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
947
|
-
case "NotFoundException":
|
|
948
|
-
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
949
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
950
|
-
case "TooManyRequestsException":
|
|
951
|
-
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
952
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
953
|
-
default:
|
|
954
|
-
const parsedBody = parsedOutput.body;
|
|
955
|
-
return throwDefaultError({
|
|
956
|
-
output,
|
|
957
|
-
parsedBody,
|
|
958
|
-
errorCode
|
|
959
|
-
});
|
|
960
|
-
}
|
|
961
|
-
}, "de_GetTagsCommandError");
|
|
962
730
|
var de_GroupResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
963
731
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
964
|
-
return
|
|
732
|
+
return de_CommandError(output, context);
|
|
965
733
|
}
|
|
966
734
|
const contents = (0, import_smithy_client.map)({
|
|
967
735
|
$metadata: deserializeMetadata(output)
|
|
@@ -975,144 +743,42 @@ var de_GroupResourcesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
975
743
|
Object.assign(contents, doc);
|
|
976
744
|
return contents;
|
|
977
745
|
}, "de_GroupResourcesCommand");
|
|
978
|
-
var de_GroupResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
979
|
-
const parsedOutput = {
|
|
980
|
-
...output,
|
|
981
|
-
body: await parseErrorBody(output.body, context)
|
|
982
|
-
};
|
|
983
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
984
|
-
switch (errorCode) {
|
|
985
|
-
case "BadRequestException":
|
|
986
|
-
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
987
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
988
|
-
case "ForbiddenException":
|
|
989
|
-
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
990
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
991
|
-
case "InternalServerErrorException":
|
|
992
|
-
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
993
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
994
|
-
case "MethodNotAllowedException":
|
|
995
|
-
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
996
|
-
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
997
|
-
case "NotFoundException":
|
|
998
|
-
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
999
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1000
|
-
case "TooManyRequestsException":
|
|
1001
|
-
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1002
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1003
|
-
default:
|
|
1004
|
-
const parsedBody = parsedOutput.body;
|
|
1005
|
-
return throwDefaultError({
|
|
1006
|
-
output,
|
|
1007
|
-
parsedBody,
|
|
1008
|
-
errorCode
|
|
1009
|
-
});
|
|
1010
|
-
}
|
|
1011
|
-
}, "de_GroupResourcesCommandError");
|
|
1012
746
|
var de_ListGroupResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1013
747
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1014
|
-
return
|
|
1015
|
-
}
|
|
1016
|
-
const contents = (0, import_smithy_client.map)({
|
|
1017
|
-
$metadata: deserializeMetadata(output)
|
|
1018
|
-
});
|
|
1019
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1020
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1021
|
-
NextToken: import_smithy_client.expectString,
|
|
1022
|
-
QueryErrors: import_smithy_client._json,
|
|
1023
|
-
ResourceIdentifiers: import_smithy_client._json,
|
|
1024
|
-
Resources: import_smithy_client._json
|
|
1025
|
-
});
|
|
1026
|
-
Object.assign(contents, doc);
|
|
1027
|
-
return contents;
|
|
1028
|
-
}, "de_ListGroupResourcesCommand");
|
|
1029
|
-
var de_ListGroupResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1030
|
-
const parsedOutput = {
|
|
1031
|
-
...output,
|
|
1032
|
-
body: await parseErrorBody(output.body, context)
|
|
1033
|
-
};
|
|
1034
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1035
|
-
switch (errorCode) {
|
|
1036
|
-
case "BadRequestException":
|
|
1037
|
-
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
1038
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1039
|
-
case "ForbiddenException":
|
|
1040
|
-
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
1041
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1042
|
-
case "InternalServerErrorException":
|
|
1043
|
-
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1044
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1045
|
-
case "MethodNotAllowedException":
|
|
1046
|
-
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1047
|
-
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
1048
|
-
case "NotFoundException":
|
|
1049
|
-
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
1050
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1051
|
-
case "TooManyRequestsException":
|
|
1052
|
-
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1053
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1054
|
-
case "UnauthorizedException":
|
|
1055
|
-
case "com.amazonaws.resourcegroups#UnauthorizedException":
|
|
1056
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1057
|
-
default:
|
|
1058
|
-
const parsedBody = parsedOutput.body;
|
|
1059
|
-
return throwDefaultError({
|
|
1060
|
-
output,
|
|
1061
|
-
parsedBody,
|
|
1062
|
-
errorCode
|
|
1063
|
-
});
|
|
1064
|
-
}
|
|
1065
|
-
}, "de_ListGroupResourcesCommandError");
|
|
1066
|
-
var de_ListGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1067
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1068
|
-
return de_ListGroupsCommandError(output, context);
|
|
748
|
+
return de_CommandError(output, context);
|
|
1069
749
|
}
|
|
1070
750
|
const contents = (0, import_smithy_client.map)({
|
|
1071
|
-
$metadata: deserializeMetadata(output)
|
|
1072
|
-
});
|
|
1073
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1074
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
};
|
|
1087
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1088
|
-
switch (errorCode) {
|
|
1089
|
-
case "BadRequestException":
|
|
1090
|
-
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
1091
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1092
|
-
case "ForbiddenException":
|
|
1093
|
-
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
1094
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1095
|
-
case "InternalServerErrorException":
|
|
1096
|
-
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1097
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1098
|
-
case "MethodNotAllowedException":
|
|
1099
|
-
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1100
|
-
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
1101
|
-
case "TooManyRequestsException":
|
|
1102
|
-
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1103
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1104
|
-
default:
|
|
1105
|
-
const parsedBody = parsedOutput.body;
|
|
1106
|
-
return throwDefaultError({
|
|
1107
|
-
output,
|
|
1108
|
-
parsedBody,
|
|
1109
|
-
errorCode
|
|
1110
|
-
});
|
|
751
|
+
$metadata: deserializeMetadata(output)
|
|
752
|
+
});
|
|
753
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
754
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
755
|
+
NextToken: import_smithy_client.expectString,
|
|
756
|
+
QueryErrors: import_smithy_client._json,
|
|
757
|
+
ResourceIdentifiers: import_smithy_client._json,
|
|
758
|
+
Resources: import_smithy_client._json
|
|
759
|
+
});
|
|
760
|
+
Object.assign(contents, doc);
|
|
761
|
+
return contents;
|
|
762
|
+
}, "de_ListGroupResourcesCommand");
|
|
763
|
+
var de_ListGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
764
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
765
|
+
return de_CommandError(output, context);
|
|
1111
766
|
}
|
|
1112
|
-
|
|
767
|
+
const contents = (0, import_smithy_client.map)({
|
|
768
|
+
$metadata: deserializeMetadata(output)
|
|
769
|
+
});
|
|
770
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
771
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
772
|
+
GroupIdentifiers: import_smithy_client._json,
|
|
773
|
+
Groups: import_smithy_client._json,
|
|
774
|
+
NextToken: import_smithy_client.expectString
|
|
775
|
+
});
|
|
776
|
+
Object.assign(contents, doc);
|
|
777
|
+
return contents;
|
|
778
|
+
}, "de_ListGroupsCommand");
|
|
1113
779
|
var de_PutGroupConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1114
780
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1115
|
-
return
|
|
781
|
+
return de_CommandError(output, context);
|
|
1116
782
|
}
|
|
1117
783
|
const contents = (0, import_smithy_client.map)({
|
|
1118
784
|
$metadata: deserializeMetadata(output)
|
|
@@ -1120,43 +786,9 @@ var de_PutGroupConfigurationCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1120
786
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1121
787
|
return contents;
|
|
1122
788
|
}, "de_PutGroupConfigurationCommand");
|
|
1123
|
-
var de_PutGroupConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1124
|
-
const parsedOutput = {
|
|
1125
|
-
...output,
|
|
1126
|
-
body: await parseErrorBody(output.body, context)
|
|
1127
|
-
};
|
|
1128
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1129
|
-
switch (errorCode) {
|
|
1130
|
-
case "BadRequestException":
|
|
1131
|
-
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
1132
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1133
|
-
case "ForbiddenException":
|
|
1134
|
-
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
1135
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1136
|
-
case "InternalServerErrorException":
|
|
1137
|
-
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1138
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1139
|
-
case "MethodNotAllowedException":
|
|
1140
|
-
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1141
|
-
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
1142
|
-
case "NotFoundException":
|
|
1143
|
-
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
1144
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1145
|
-
case "TooManyRequestsException":
|
|
1146
|
-
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1147
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1148
|
-
default:
|
|
1149
|
-
const parsedBody = parsedOutput.body;
|
|
1150
|
-
return throwDefaultError({
|
|
1151
|
-
output,
|
|
1152
|
-
parsedBody,
|
|
1153
|
-
errorCode
|
|
1154
|
-
});
|
|
1155
|
-
}
|
|
1156
|
-
}, "de_PutGroupConfigurationCommandError");
|
|
1157
789
|
var de_SearchResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1158
790
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1159
|
-
return
|
|
791
|
+
return de_CommandError(output, context);
|
|
1160
792
|
}
|
|
1161
793
|
const contents = (0, import_smithy_client.map)({
|
|
1162
794
|
$metadata: deserializeMetadata(output)
|
|
@@ -1170,43 +802,9 @@ var de_SearchResourcesCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1170
802
|
Object.assign(contents, doc);
|
|
1171
803
|
return contents;
|
|
1172
804
|
}, "de_SearchResourcesCommand");
|
|
1173
|
-
var de_SearchResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1174
|
-
const parsedOutput = {
|
|
1175
|
-
...output,
|
|
1176
|
-
body: await parseErrorBody(output.body, context)
|
|
1177
|
-
};
|
|
1178
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1179
|
-
switch (errorCode) {
|
|
1180
|
-
case "BadRequestException":
|
|
1181
|
-
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
1182
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1183
|
-
case "ForbiddenException":
|
|
1184
|
-
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
1185
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1186
|
-
case "InternalServerErrorException":
|
|
1187
|
-
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1188
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1189
|
-
case "MethodNotAllowedException":
|
|
1190
|
-
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1191
|
-
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
1192
|
-
case "TooManyRequestsException":
|
|
1193
|
-
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1194
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1195
|
-
case "UnauthorizedException":
|
|
1196
|
-
case "com.amazonaws.resourcegroups#UnauthorizedException":
|
|
1197
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1198
|
-
default:
|
|
1199
|
-
const parsedBody = parsedOutput.body;
|
|
1200
|
-
return throwDefaultError({
|
|
1201
|
-
output,
|
|
1202
|
-
parsedBody,
|
|
1203
|
-
errorCode
|
|
1204
|
-
});
|
|
1205
|
-
}
|
|
1206
|
-
}, "de_SearchResourcesCommandError");
|
|
1207
805
|
var de_TagCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1208
806
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1209
|
-
return
|
|
807
|
+
return de_CommandError(output, context);
|
|
1210
808
|
}
|
|
1211
809
|
const contents = (0, import_smithy_client.map)({
|
|
1212
810
|
$metadata: deserializeMetadata(output)
|
|
@@ -1219,43 +817,9 @@ var de_TagCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1219
817
|
Object.assign(contents, doc);
|
|
1220
818
|
return contents;
|
|
1221
819
|
}, "de_TagCommand");
|
|
1222
|
-
var de_TagCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1223
|
-
const parsedOutput = {
|
|
1224
|
-
...output,
|
|
1225
|
-
body: await parseErrorBody(output.body, context)
|
|
1226
|
-
};
|
|
1227
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1228
|
-
switch (errorCode) {
|
|
1229
|
-
case "BadRequestException":
|
|
1230
|
-
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
1231
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1232
|
-
case "ForbiddenException":
|
|
1233
|
-
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
1234
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1235
|
-
case "InternalServerErrorException":
|
|
1236
|
-
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1237
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1238
|
-
case "MethodNotAllowedException":
|
|
1239
|
-
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1240
|
-
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
1241
|
-
case "NotFoundException":
|
|
1242
|
-
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
1243
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1244
|
-
case "TooManyRequestsException":
|
|
1245
|
-
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1246
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1247
|
-
default:
|
|
1248
|
-
const parsedBody = parsedOutput.body;
|
|
1249
|
-
return throwDefaultError({
|
|
1250
|
-
output,
|
|
1251
|
-
parsedBody,
|
|
1252
|
-
errorCode
|
|
1253
|
-
});
|
|
1254
|
-
}
|
|
1255
|
-
}, "de_TagCommandError");
|
|
1256
820
|
var de_UngroupResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1257
821
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1258
|
-
return
|
|
822
|
+
return de_CommandError(output, context);
|
|
1259
823
|
}
|
|
1260
824
|
const contents = (0, import_smithy_client.map)({
|
|
1261
825
|
$metadata: deserializeMetadata(output)
|
|
@@ -1269,43 +833,9 @@ var de_UngroupResourcesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1269
833
|
Object.assign(contents, doc);
|
|
1270
834
|
return contents;
|
|
1271
835
|
}, "de_UngroupResourcesCommand");
|
|
1272
|
-
var de_UngroupResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1273
|
-
const parsedOutput = {
|
|
1274
|
-
...output,
|
|
1275
|
-
body: await parseErrorBody(output.body, context)
|
|
1276
|
-
};
|
|
1277
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1278
|
-
switch (errorCode) {
|
|
1279
|
-
case "BadRequestException":
|
|
1280
|
-
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
1281
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1282
|
-
case "ForbiddenException":
|
|
1283
|
-
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
1284
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1285
|
-
case "InternalServerErrorException":
|
|
1286
|
-
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1287
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1288
|
-
case "MethodNotAllowedException":
|
|
1289
|
-
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1290
|
-
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
1291
|
-
case "NotFoundException":
|
|
1292
|
-
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
1293
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1294
|
-
case "TooManyRequestsException":
|
|
1295
|
-
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1296
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1297
|
-
default:
|
|
1298
|
-
const parsedBody = parsedOutput.body;
|
|
1299
|
-
return throwDefaultError({
|
|
1300
|
-
output,
|
|
1301
|
-
parsedBody,
|
|
1302
|
-
errorCode
|
|
1303
|
-
});
|
|
1304
|
-
}
|
|
1305
|
-
}, "de_UngroupResourcesCommandError");
|
|
1306
836
|
var de_UntagCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1307
837
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1308
|
-
return
|
|
838
|
+
return de_CommandError(output, context);
|
|
1309
839
|
}
|
|
1310
840
|
const contents = (0, import_smithy_client.map)({
|
|
1311
841
|
$metadata: deserializeMetadata(output)
|
|
@@ -1318,43 +848,9 @@ var de_UntagCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1318
848
|
Object.assign(contents, doc);
|
|
1319
849
|
return contents;
|
|
1320
850
|
}, "de_UntagCommand");
|
|
1321
|
-
var de_UntagCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1322
|
-
const parsedOutput = {
|
|
1323
|
-
...output,
|
|
1324
|
-
body: await parseErrorBody(output.body, context)
|
|
1325
|
-
};
|
|
1326
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1327
|
-
switch (errorCode) {
|
|
1328
|
-
case "BadRequestException":
|
|
1329
|
-
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
1330
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1331
|
-
case "ForbiddenException":
|
|
1332
|
-
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
1333
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1334
|
-
case "InternalServerErrorException":
|
|
1335
|
-
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1336
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1337
|
-
case "MethodNotAllowedException":
|
|
1338
|
-
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1339
|
-
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
1340
|
-
case "NotFoundException":
|
|
1341
|
-
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
1342
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1343
|
-
case "TooManyRequestsException":
|
|
1344
|
-
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1345
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1346
|
-
default:
|
|
1347
|
-
const parsedBody = parsedOutput.body;
|
|
1348
|
-
return throwDefaultError({
|
|
1349
|
-
output,
|
|
1350
|
-
parsedBody,
|
|
1351
|
-
errorCode
|
|
1352
|
-
});
|
|
1353
|
-
}
|
|
1354
|
-
}, "de_UntagCommandError");
|
|
1355
851
|
var de_UpdateAccountSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1356
852
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1357
|
-
return
|
|
853
|
+
return de_CommandError(output, context);
|
|
1358
854
|
}
|
|
1359
855
|
const contents = (0, import_smithy_client.map)({
|
|
1360
856
|
$metadata: deserializeMetadata(output)
|
|
@@ -1366,40 +862,9 @@ var de_UpdateAccountSettingsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1366
862
|
Object.assign(contents, doc);
|
|
1367
863
|
return contents;
|
|
1368
864
|
}, "de_UpdateAccountSettingsCommand");
|
|
1369
|
-
var de_UpdateAccountSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1370
|
-
const parsedOutput = {
|
|
1371
|
-
...output,
|
|
1372
|
-
body: await parseErrorBody(output.body, context)
|
|
1373
|
-
};
|
|
1374
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1375
|
-
switch (errorCode) {
|
|
1376
|
-
case "BadRequestException":
|
|
1377
|
-
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
1378
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1379
|
-
case "ForbiddenException":
|
|
1380
|
-
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
1381
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1382
|
-
case "InternalServerErrorException":
|
|
1383
|
-
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1384
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1385
|
-
case "MethodNotAllowedException":
|
|
1386
|
-
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1387
|
-
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
1388
|
-
case "TooManyRequestsException":
|
|
1389
|
-
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1390
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1391
|
-
default:
|
|
1392
|
-
const parsedBody = parsedOutput.body;
|
|
1393
|
-
return throwDefaultError({
|
|
1394
|
-
output,
|
|
1395
|
-
parsedBody,
|
|
1396
|
-
errorCode
|
|
1397
|
-
});
|
|
1398
|
-
}
|
|
1399
|
-
}, "de_UpdateAccountSettingsCommandError");
|
|
1400
865
|
var de_UpdateGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1401
866
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1402
|
-
return
|
|
867
|
+
return de_CommandError(output, context);
|
|
1403
868
|
}
|
|
1404
869
|
const contents = (0, import_smithy_client.map)({
|
|
1405
870
|
$metadata: deserializeMetadata(output)
|
|
@@ -1411,43 +876,9 @@ var de_UpdateGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1411
876
|
Object.assign(contents, doc);
|
|
1412
877
|
return contents;
|
|
1413
878
|
}, "de_UpdateGroupCommand");
|
|
1414
|
-
var de_UpdateGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1415
|
-
const parsedOutput = {
|
|
1416
|
-
...output,
|
|
1417
|
-
body: await parseErrorBody(output.body, context)
|
|
1418
|
-
};
|
|
1419
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1420
|
-
switch (errorCode) {
|
|
1421
|
-
case "BadRequestException":
|
|
1422
|
-
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
1423
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1424
|
-
case "ForbiddenException":
|
|
1425
|
-
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
1426
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1427
|
-
case "InternalServerErrorException":
|
|
1428
|
-
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1429
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1430
|
-
case "MethodNotAllowedException":
|
|
1431
|
-
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1432
|
-
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
1433
|
-
case "NotFoundException":
|
|
1434
|
-
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
1435
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1436
|
-
case "TooManyRequestsException":
|
|
1437
|
-
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1438
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1439
|
-
default:
|
|
1440
|
-
const parsedBody = parsedOutput.body;
|
|
1441
|
-
return throwDefaultError({
|
|
1442
|
-
output,
|
|
1443
|
-
parsedBody,
|
|
1444
|
-
errorCode
|
|
1445
|
-
});
|
|
1446
|
-
}
|
|
1447
|
-
}, "de_UpdateGroupCommandError");
|
|
1448
879
|
var de_UpdateGroupQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1449
880
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1450
|
-
return
|
|
881
|
+
return de_CommandError(output, context);
|
|
1451
882
|
}
|
|
1452
883
|
const contents = (0, import_smithy_client.map)({
|
|
1453
884
|
$metadata: deserializeMetadata(output)
|
|
@@ -1459,7 +890,7 @@ var de_UpdateGroupQueryCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1459
890
|
Object.assign(contents, doc);
|
|
1460
891
|
return contents;
|
|
1461
892
|
}, "de_UpdateGroupQueryCommand");
|
|
1462
|
-
var
|
|
893
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1463
894
|
const parsedOutput = {
|
|
1464
895
|
...output,
|
|
1465
896
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1478,12 +909,15 @@ var de_UpdateGroupQueryCommandError = /* @__PURE__ */ __name(async (output, cont
|
|
|
1478
909
|
case "MethodNotAllowedException":
|
|
1479
910
|
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1480
911
|
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
1481
|
-
case "NotFoundException":
|
|
1482
|
-
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
1483
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1484
912
|
case "TooManyRequestsException":
|
|
1485
913
|
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1486
914
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
915
|
+
case "NotFoundException":
|
|
916
|
+
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
917
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
918
|
+
case "UnauthorizedException":
|
|
919
|
+
case "com.amazonaws.resourcegroups#UnauthorizedException":
|
|
920
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1487
921
|
default:
|
|
1488
922
|
const parsedBody = parsedOutput.body;
|
|
1489
923
|
return throwDefaultError({
|
|
@@ -1492,7 +926,7 @@ var de_UpdateGroupQueryCommandError = /* @__PURE__ */ __name(async (output, cont
|
|
|
1492
926
|
errorCode
|
|
1493
927
|
});
|
|
1494
928
|
}
|
|
1495
|
-
}, "
|
|
929
|
+
}, "de_CommandError");
|
|
1496
930
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(ResourceGroupsServiceException);
|
|
1497
931
|
var de_BadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1498
932
|
const contents = (0, import_smithy_client.map)({});
|