@aws-sdk/client-service-catalog-appregistry 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 +43 -645
- package/dist-es/protocols/Aws_restJson1.js +32 -634
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -633,7 +633,7 @@ var se_UpdateAttributeGroupCommand = /* @__PURE__ */ __name(async (input, contex
|
|
|
633
633
|
}, "se_UpdateAttributeGroupCommand");
|
|
634
634
|
var de_AssociateAttributeGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
635
635
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
636
|
-
return
|
|
636
|
+
return de_CommandError(output, context);
|
|
637
637
|
}
|
|
638
638
|
const contents = (0, import_smithy_client.map)({
|
|
639
639
|
$metadata: deserializeMetadata(output)
|
|
@@ -646,40 +646,9 @@ var de_AssociateAttributeGroupCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
646
646
|
Object.assign(contents, doc);
|
|
647
647
|
return contents;
|
|
648
648
|
}, "de_AssociateAttributeGroupCommand");
|
|
649
|
-
var de_AssociateAttributeGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
650
|
-
const parsedOutput = {
|
|
651
|
-
...output,
|
|
652
|
-
body: await parseErrorBody(output.body, context)
|
|
653
|
-
};
|
|
654
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
655
|
-
switch (errorCode) {
|
|
656
|
-
case "ConflictException":
|
|
657
|
-
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
658
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
659
|
-
case "InternalServerException":
|
|
660
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
661
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
662
|
-
case "ResourceNotFoundException":
|
|
663
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
664
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
665
|
-
case "ServiceQuotaExceededException":
|
|
666
|
-
case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException":
|
|
667
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
668
|
-
case "ValidationException":
|
|
669
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
670
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
671
|
-
default:
|
|
672
|
-
const parsedBody = parsedOutput.body;
|
|
673
|
-
return throwDefaultError({
|
|
674
|
-
output,
|
|
675
|
-
parsedBody,
|
|
676
|
-
errorCode
|
|
677
|
-
});
|
|
678
|
-
}
|
|
679
|
-
}, "de_AssociateAttributeGroupCommandError");
|
|
680
649
|
var de_AssociateResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
681
650
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
682
|
-
return
|
|
651
|
+
return de_CommandError(output, context);
|
|
683
652
|
}
|
|
684
653
|
const contents = (0, import_smithy_client.map)({
|
|
685
654
|
$metadata: deserializeMetadata(output)
|
|
@@ -693,43 +662,9 @@ var de_AssociateResourceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
693
662
|
Object.assign(contents, doc);
|
|
694
663
|
return contents;
|
|
695
664
|
}, "de_AssociateResourceCommand");
|
|
696
|
-
var de_AssociateResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
697
|
-
const parsedOutput = {
|
|
698
|
-
...output,
|
|
699
|
-
body: await parseErrorBody(output.body, context)
|
|
700
|
-
};
|
|
701
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
702
|
-
switch (errorCode) {
|
|
703
|
-
case "ConflictException":
|
|
704
|
-
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
705
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
706
|
-
case "InternalServerException":
|
|
707
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
708
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
709
|
-
case "ResourceNotFoundException":
|
|
710
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
711
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
712
|
-
case "ServiceQuotaExceededException":
|
|
713
|
-
case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException":
|
|
714
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
715
|
-
case "ThrottlingException":
|
|
716
|
-
case "com.amazonaws.servicecatalogappregistry#ThrottlingException":
|
|
717
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
718
|
-
case "ValidationException":
|
|
719
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
720
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
721
|
-
default:
|
|
722
|
-
const parsedBody = parsedOutput.body;
|
|
723
|
-
return throwDefaultError({
|
|
724
|
-
output,
|
|
725
|
-
parsedBody,
|
|
726
|
-
errorCode
|
|
727
|
-
});
|
|
728
|
-
}
|
|
729
|
-
}, "de_AssociateResourceCommandError");
|
|
730
665
|
var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
731
666
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
732
|
-
return
|
|
667
|
+
return de_CommandError(output, context);
|
|
733
668
|
}
|
|
734
669
|
const contents = (0, import_smithy_client.map)({
|
|
735
670
|
$metadata: deserializeMetadata(output)
|
|
@@ -741,40 +676,9 @@ var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
741
676
|
Object.assign(contents, doc);
|
|
742
677
|
return contents;
|
|
743
678
|
}, "de_CreateApplicationCommand");
|
|
744
|
-
var de_CreateApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
745
|
-
const parsedOutput = {
|
|
746
|
-
...output,
|
|
747
|
-
body: await parseErrorBody(output.body, context)
|
|
748
|
-
};
|
|
749
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
750
|
-
switch (errorCode) {
|
|
751
|
-
case "ConflictException":
|
|
752
|
-
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
753
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
754
|
-
case "InternalServerException":
|
|
755
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
756
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
757
|
-
case "ServiceQuotaExceededException":
|
|
758
|
-
case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException":
|
|
759
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
760
|
-
case "ThrottlingException":
|
|
761
|
-
case "com.amazonaws.servicecatalogappregistry#ThrottlingException":
|
|
762
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
763
|
-
case "ValidationException":
|
|
764
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
765
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
766
|
-
default:
|
|
767
|
-
const parsedBody = parsedOutput.body;
|
|
768
|
-
return throwDefaultError({
|
|
769
|
-
output,
|
|
770
|
-
parsedBody,
|
|
771
|
-
errorCode
|
|
772
|
-
});
|
|
773
|
-
}
|
|
774
|
-
}, "de_CreateApplicationCommandError");
|
|
775
679
|
var de_CreateAttributeGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
776
680
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
777
|
-
return
|
|
681
|
+
return de_CommandError(output, context);
|
|
778
682
|
}
|
|
779
683
|
const contents = (0, import_smithy_client.map)({
|
|
780
684
|
$metadata: deserializeMetadata(output)
|
|
@@ -786,37 +690,9 @@ var de_CreateAttributeGroupCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
786
690
|
Object.assign(contents, doc);
|
|
787
691
|
return contents;
|
|
788
692
|
}, "de_CreateAttributeGroupCommand");
|
|
789
|
-
var de_CreateAttributeGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
790
|
-
const parsedOutput = {
|
|
791
|
-
...output,
|
|
792
|
-
body: await parseErrorBody(output.body, context)
|
|
793
|
-
};
|
|
794
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
795
|
-
switch (errorCode) {
|
|
796
|
-
case "ConflictException":
|
|
797
|
-
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
798
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
799
|
-
case "InternalServerException":
|
|
800
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
801
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
802
|
-
case "ServiceQuotaExceededException":
|
|
803
|
-
case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException":
|
|
804
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
805
|
-
case "ValidationException":
|
|
806
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
807
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
808
|
-
default:
|
|
809
|
-
const parsedBody = parsedOutput.body;
|
|
810
|
-
return throwDefaultError({
|
|
811
|
-
output,
|
|
812
|
-
parsedBody,
|
|
813
|
-
errorCode
|
|
814
|
-
});
|
|
815
|
-
}
|
|
816
|
-
}, "de_CreateAttributeGroupCommandError");
|
|
817
693
|
var de_DeleteApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
818
694
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
819
|
-
return
|
|
695
|
+
return de_CommandError(output, context);
|
|
820
696
|
}
|
|
821
697
|
const contents = (0, import_smithy_client.map)({
|
|
822
698
|
$metadata: deserializeMetadata(output)
|
|
@@ -828,34 +704,9 @@ var de_DeleteApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
828
704
|
Object.assign(contents, doc);
|
|
829
705
|
return contents;
|
|
830
706
|
}, "de_DeleteApplicationCommand");
|
|
831
|
-
var de_DeleteApplicationCommandError = /* @__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 "InternalServerException":
|
|
839
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
840
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
841
|
-
case "ResourceNotFoundException":
|
|
842
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
843
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
844
|
-
case "ValidationException":
|
|
845
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
846
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
847
|
-
default:
|
|
848
|
-
const parsedBody = parsedOutput.body;
|
|
849
|
-
return throwDefaultError({
|
|
850
|
-
output,
|
|
851
|
-
parsedBody,
|
|
852
|
-
errorCode
|
|
853
|
-
});
|
|
854
|
-
}
|
|
855
|
-
}, "de_DeleteApplicationCommandError");
|
|
856
707
|
var de_DeleteAttributeGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
857
708
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
858
|
-
return
|
|
709
|
+
return de_CommandError(output, context);
|
|
859
710
|
}
|
|
860
711
|
const contents = (0, import_smithy_client.map)({
|
|
861
712
|
$metadata: deserializeMetadata(output)
|
|
@@ -867,34 +718,9 @@ var de_DeleteAttributeGroupCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
867
718
|
Object.assign(contents, doc);
|
|
868
719
|
return contents;
|
|
869
720
|
}, "de_DeleteAttributeGroupCommand");
|
|
870
|
-
var de_DeleteAttributeGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
871
|
-
const parsedOutput = {
|
|
872
|
-
...output,
|
|
873
|
-
body: await parseErrorBody(output.body, context)
|
|
874
|
-
};
|
|
875
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
876
|
-
switch (errorCode) {
|
|
877
|
-
case "InternalServerException":
|
|
878
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
879
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
880
|
-
case "ResourceNotFoundException":
|
|
881
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
882
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
883
|
-
case "ValidationException":
|
|
884
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
885
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
886
|
-
default:
|
|
887
|
-
const parsedBody = parsedOutput.body;
|
|
888
|
-
return throwDefaultError({
|
|
889
|
-
output,
|
|
890
|
-
parsedBody,
|
|
891
|
-
errorCode
|
|
892
|
-
});
|
|
893
|
-
}
|
|
894
|
-
}, "de_DeleteAttributeGroupCommandError");
|
|
895
721
|
var de_DisassociateAttributeGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
896
722
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
897
|
-
return
|
|
723
|
+
return de_CommandError(output, context);
|
|
898
724
|
}
|
|
899
725
|
const contents = (0, import_smithy_client.map)({
|
|
900
726
|
$metadata: deserializeMetadata(output)
|
|
@@ -907,34 +733,9 @@ var de_DisassociateAttributeGroupCommand = /* @__PURE__ */ __name(async (output,
|
|
|
907
733
|
Object.assign(contents, doc);
|
|
908
734
|
return contents;
|
|
909
735
|
}, "de_DisassociateAttributeGroupCommand");
|
|
910
|
-
var de_DisassociateAttributeGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
911
|
-
const parsedOutput = {
|
|
912
|
-
...output,
|
|
913
|
-
body: await parseErrorBody(output.body, context)
|
|
914
|
-
};
|
|
915
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
916
|
-
switch (errorCode) {
|
|
917
|
-
case "InternalServerException":
|
|
918
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
919
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
920
|
-
case "ResourceNotFoundException":
|
|
921
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
922
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
923
|
-
case "ValidationException":
|
|
924
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
925
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
926
|
-
default:
|
|
927
|
-
const parsedBody = parsedOutput.body;
|
|
928
|
-
return throwDefaultError({
|
|
929
|
-
output,
|
|
930
|
-
parsedBody,
|
|
931
|
-
errorCode
|
|
932
|
-
});
|
|
933
|
-
}
|
|
934
|
-
}, "de_DisassociateAttributeGroupCommandError");
|
|
935
736
|
var de_DisassociateResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
936
737
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
937
|
-
return
|
|
738
|
+
return de_CommandError(output, context);
|
|
938
739
|
}
|
|
939
740
|
const contents = (0, import_smithy_client.map)({
|
|
940
741
|
$metadata: deserializeMetadata(output)
|
|
@@ -947,37 +748,9 @@ var de_DisassociateResourceCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
947
748
|
Object.assign(contents, doc);
|
|
948
749
|
return contents;
|
|
949
750
|
}, "de_DisassociateResourceCommand");
|
|
950
|
-
var de_DisassociateResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
951
|
-
const parsedOutput = {
|
|
952
|
-
...output,
|
|
953
|
-
body: await parseErrorBody(output.body, context)
|
|
954
|
-
};
|
|
955
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
956
|
-
switch (errorCode) {
|
|
957
|
-
case "InternalServerException":
|
|
958
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
959
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
960
|
-
case "ResourceNotFoundException":
|
|
961
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
962
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
963
|
-
case "ThrottlingException":
|
|
964
|
-
case "com.amazonaws.servicecatalogappregistry#ThrottlingException":
|
|
965
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
966
|
-
case "ValidationException":
|
|
967
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
968
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
969
|
-
default:
|
|
970
|
-
const parsedBody = parsedOutput.body;
|
|
971
|
-
return throwDefaultError({
|
|
972
|
-
output,
|
|
973
|
-
parsedBody,
|
|
974
|
-
errorCode
|
|
975
|
-
});
|
|
976
|
-
}
|
|
977
|
-
}, "de_DisassociateResourceCommandError");
|
|
978
751
|
var de_GetApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
979
752
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
980
|
-
return
|
|
753
|
+
return de_CommandError(output, context);
|
|
981
754
|
}
|
|
982
755
|
const contents = (0, import_smithy_client.map)({
|
|
983
756
|
$metadata: deserializeMetadata(output)
|
|
@@ -998,37 +771,9 @@ var de_GetApplicationCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
998
771
|
Object.assign(contents, doc);
|
|
999
772
|
return contents;
|
|
1000
773
|
}, "de_GetApplicationCommand");
|
|
1001
|
-
var de_GetApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1002
|
-
const parsedOutput = {
|
|
1003
|
-
...output,
|
|
1004
|
-
body: await parseErrorBody(output.body, context)
|
|
1005
|
-
};
|
|
1006
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1007
|
-
switch (errorCode) {
|
|
1008
|
-
case "ConflictException":
|
|
1009
|
-
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
1010
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1011
|
-
case "InternalServerException":
|
|
1012
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1013
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1014
|
-
case "ResourceNotFoundException":
|
|
1015
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1016
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1017
|
-
case "ValidationException":
|
|
1018
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1019
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1020
|
-
default:
|
|
1021
|
-
const parsedBody = parsedOutput.body;
|
|
1022
|
-
return throwDefaultError({
|
|
1023
|
-
output,
|
|
1024
|
-
parsedBody,
|
|
1025
|
-
errorCode
|
|
1026
|
-
});
|
|
1027
|
-
}
|
|
1028
|
-
}, "de_GetApplicationCommandError");
|
|
1029
774
|
var de_GetAssociatedResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1030
775
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1031
|
-
return
|
|
776
|
+
return de_CommandError(output, context);
|
|
1032
777
|
}
|
|
1033
778
|
const contents = (0, import_smithy_client.map)({
|
|
1034
779
|
$metadata: deserializeMetadata(output)
|
|
@@ -1042,34 +787,9 @@ var de_GetAssociatedResourceCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1042
787
|
Object.assign(contents, doc);
|
|
1043
788
|
return contents;
|
|
1044
789
|
}, "de_GetAssociatedResourceCommand");
|
|
1045
|
-
var de_GetAssociatedResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1046
|
-
const parsedOutput = {
|
|
1047
|
-
...output,
|
|
1048
|
-
body: await parseErrorBody(output.body, context)
|
|
1049
|
-
};
|
|
1050
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1051
|
-
switch (errorCode) {
|
|
1052
|
-
case "InternalServerException":
|
|
1053
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1054
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1055
|
-
case "ResourceNotFoundException":
|
|
1056
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1057
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1058
|
-
case "ValidationException":
|
|
1059
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1060
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1061
|
-
default:
|
|
1062
|
-
const parsedBody = parsedOutput.body;
|
|
1063
|
-
return throwDefaultError({
|
|
1064
|
-
output,
|
|
1065
|
-
parsedBody,
|
|
1066
|
-
errorCode
|
|
1067
|
-
});
|
|
1068
|
-
}
|
|
1069
|
-
}, "de_GetAssociatedResourceCommandError");
|
|
1070
790
|
var de_GetAttributeGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1071
791
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1072
|
-
return
|
|
792
|
+
return de_CommandError(output, context);
|
|
1073
793
|
}
|
|
1074
794
|
const contents = (0, import_smithy_client.map)({
|
|
1075
795
|
$metadata: deserializeMetadata(output)
|
|
@@ -1089,37 +809,9 @@ var de_GetAttributeGroupCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1089
809
|
Object.assign(contents, doc);
|
|
1090
810
|
return contents;
|
|
1091
811
|
}, "de_GetAttributeGroupCommand");
|
|
1092
|
-
var de_GetAttributeGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1093
|
-
const parsedOutput = {
|
|
1094
|
-
...output,
|
|
1095
|
-
body: await parseErrorBody(output.body, context)
|
|
1096
|
-
};
|
|
1097
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1098
|
-
switch (errorCode) {
|
|
1099
|
-
case "ConflictException":
|
|
1100
|
-
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
1101
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1102
|
-
case "InternalServerException":
|
|
1103
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1104
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1105
|
-
case "ResourceNotFoundException":
|
|
1106
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1107
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1108
|
-
case "ValidationException":
|
|
1109
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1110
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1111
|
-
default:
|
|
1112
|
-
const parsedBody = parsedOutput.body;
|
|
1113
|
-
return throwDefaultError({
|
|
1114
|
-
output,
|
|
1115
|
-
parsedBody,
|
|
1116
|
-
errorCode
|
|
1117
|
-
});
|
|
1118
|
-
}
|
|
1119
|
-
}, "de_GetAttributeGroupCommandError");
|
|
1120
812
|
var de_GetConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1121
813
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1122
|
-
return
|
|
814
|
+
return de_CommandError(output, context);
|
|
1123
815
|
}
|
|
1124
816
|
const contents = (0, import_smithy_client.map)({
|
|
1125
817
|
$metadata: deserializeMetadata(output)
|
|
@@ -1131,65 +823,24 @@ var de_GetConfigurationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1131
823
|
Object.assign(contents, doc);
|
|
1132
824
|
return contents;
|
|
1133
825
|
}, "de_GetConfigurationCommand");
|
|
1134
|
-
var de_GetConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1135
|
-
const parsedOutput = {
|
|
1136
|
-
...output,
|
|
1137
|
-
body: await parseErrorBody(output.body, context)
|
|
1138
|
-
};
|
|
1139
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1140
|
-
switch (errorCode) {
|
|
1141
|
-
case "InternalServerException":
|
|
1142
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1143
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1144
|
-
default:
|
|
1145
|
-
const parsedBody = parsedOutput.body;
|
|
1146
|
-
return throwDefaultError({
|
|
1147
|
-
output,
|
|
1148
|
-
parsedBody,
|
|
1149
|
-
errorCode
|
|
1150
|
-
});
|
|
1151
|
-
}
|
|
1152
|
-
}, "de_GetConfigurationCommandError");
|
|
1153
826
|
var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1154
827
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1155
|
-
return
|
|
1156
|
-
}
|
|
1157
|
-
const contents = (0, import_smithy_client.map)({
|
|
1158
|
-
$metadata: deserializeMetadata(output)
|
|
1159
|
-
});
|
|
1160
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1161
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1162
|
-
applications: (_) => de_ApplicationSummaries(_, context),
|
|
1163
|
-
nextToken: import_smithy_client.expectString
|
|
1164
|
-
});
|
|
1165
|
-
Object.assign(contents, doc);
|
|
1166
|
-
return contents;
|
|
1167
|
-
}, "de_ListApplicationsCommand");
|
|
1168
|
-
var de_ListApplicationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1169
|
-
const parsedOutput = {
|
|
1170
|
-
...output,
|
|
1171
|
-
body: await parseErrorBody(output.body, context)
|
|
1172
|
-
};
|
|
1173
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1174
|
-
switch (errorCode) {
|
|
1175
|
-
case "InternalServerException":
|
|
1176
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1177
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1178
|
-
case "ValidationException":
|
|
1179
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1180
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1181
|
-
default:
|
|
1182
|
-
const parsedBody = parsedOutput.body;
|
|
1183
|
-
return throwDefaultError({
|
|
1184
|
-
output,
|
|
1185
|
-
parsedBody,
|
|
1186
|
-
errorCode
|
|
1187
|
-
});
|
|
828
|
+
return de_CommandError(output, context);
|
|
1188
829
|
}
|
|
1189
|
-
|
|
830
|
+
const contents = (0, import_smithy_client.map)({
|
|
831
|
+
$metadata: deserializeMetadata(output)
|
|
832
|
+
});
|
|
833
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
834
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
835
|
+
applications: (_) => de_ApplicationSummaries(_, context),
|
|
836
|
+
nextToken: import_smithy_client.expectString
|
|
837
|
+
});
|
|
838
|
+
Object.assign(contents, doc);
|
|
839
|
+
return contents;
|
|
840
|
+
}, "de_ListApplicationsCommand");
|
|
1190
841
|
var de_ListAssociatedAttributeGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1191
842
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1192
|
-
return
|
|
843
|
+
return de_CommandError(output, context);
|
|
1193
844
|
}
|
|
1194
845
|
const contents = (0, import_smithy_client.map)({
|
|
1195
846
|
$metadata: deserializeMetadata(output)
|
|
@@ -1202,34 +853,9 @@ var de_ListAssociatedAttributeGroupsCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1202
853
|
Object.assign(contents, doc);
|
|
1203
854
|
return contents;
|
|
1204
855
|
}, "de_ListAssociatedAttributeGroupsCommand");
|
|
1205
|
-
var de_ListAssociatedAttributeGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1206
|
-
const parsedOutput = {
|
|
1207
|
-
...output,
|
|
1208
|
-
body: await parseErrorBody(output.body, context)
|
|
1209
|
-
};
|
|
1210
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1211
|
-
switch (errorCode) {
|
|
1212
|
-
case "InternalServerException":
|
|
1213
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1214
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1215
|
-
case "ResourceNotFoundException":
|
|
1216
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1217
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1218
|
-
case "ValidationException":
|
|
1219
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1220
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1221
|
-
default:
|
|
1222
|
-
const parsedBody = parsedOutput.body;
|
|
1223
|
-
return throwDefaultError({
|
|
1224
|
-
output,
|
|
1225
|
-
parsedBody,
|
|
1226
|
-
errorCode
|
|
1227
|
-
});
|
|
1228
|
-
}
|
|
1229
|
-
}, "de_ListAssociatedAttributeGroupsCommandError");
|
|
1230
856
|
var de_ListAssociatedResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1231
857
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1232
|
-
return
|
|
858
|
+
return de_CommandError(output, context);
|
|
1233
859
|
}
|
|
1234
860
|
const contents = (0, import_smithy_client.map)({
|
|
1235
861
|
$metadata: deserializeMetadata(output)
|
|
@@ -1242,34 +868,9 @@ var de_ListAssociatedResourcesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1242
868
|
Object.assign(contents, doc);
|
|
1243
869
|
return contents;
|
|
1244
870
|
}, "de_ListAssociatedResourcesCommand");
|
|
1245
|
-
var de_ListAssociatedResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1246
|
-
const parsedOutput = {
|
|
1247
|
-
...output,
|
|
1248
|
-
body: await parseErrorBody(output.body, context)
|
|
1249
|
-
};
|
|
1250
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1251
|
-
switch (errorCode) {
|
|
1252
|
-
case "InternalServerException":
|
|
1253
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1254
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1255
|
-
case "ResourceNotFoundException":
|
|
1256
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1257
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1258
|
-
case "ValidationException":
|
|
1259
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1260
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1261
|
-
default:
|
|
1262
|
-
const parsedBody = parsedOutput.body;
|
|
1263
|
-
return throwDefaultError({
|
|
1264
|
-
output,
|
|
1265
|
-
parsedBody,
|
|
1266
|
-
errorCode
|
|
1267
|
-
});
|
|
1268
|
-
}
|
|
1269
|
-
}, "de_ListAssociatedResourcesCommandError");
|
|
1270
871
|
var de_ListAttributeGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1271
872
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1272
|
-
return
|
|
873
|
+
return de_CommandError(output, context);
|
|
1273
874
|
}
|
|
1274
875
|
const contents = (0, import_smithy_client.map)({
|
|
1275
876
|
$metadata: deserializeMetadata(output)
|
|
@@ -1282,31 +883,9 @@ var de_ListAttributeGroupsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1282
883
|
Object.assign(contents, doc);
|
|
1283
884
|
return contents;
|
|
1284
885
|
}, "de_ListAttributeGroupsCommand");
|
|
1285
|
-
var de_ListAttributeGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1286
|
-
const parsedOutput = {
|
|
1287
|
-
...output,
|
|
1288
|
-
body: await parseErrorBody(output.body, context)
|
|
1289
|
-
};
|
|
1290
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1291
|
-
switch (errorCode) {
|
|
1292
|
-
case "InternalServerException":
|
|
1293
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1294
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1295
|
-
case "ValidationException":
|
|
1296
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1297
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1298
|
-
default:
|
|
1299
|
-
const parsedBody = parsedOutput.body;
|
|
1300
|
-
return throwDefaultError({
|
|
1301
|
-
output,
|
|
1302
|
-
parsedBody,
|
|
1303
|
-
errorCode
|
|
1304
|
-
});
|
|
1305
|
-
}
|
|
1306
|
-
}, "de_ListAttributeGroupsCommandError");
|
|
1307
886
|
var de_ListAttributeGroupsForApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1308
887
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1309
|
-
return
|
|
888
|
+
return de_CommandError(output, context);
|
|
1310
889
|
}
|
|
1311
890
|
const contents = (0, import_smithy_client.map)({
|
|
1312
891
|
$metadata: deserializeMetadata(output)
|
|
@@ -1319,34 +898,9 @@ var de_ListAttributeGroupsForApplicationCommand = /* @__PURE__ */ __name(async (
|
|
|
1319
898
|
Object.assign(contents, doc);
|
|
1320
899
|
return contents;
|
|
1321
900
|
}, "de_ListAttributeGroupsForApplicationCommand");
|
|
1322
|
-
var de_ListAttributeGroupsForApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1323
|
-
const parsedOutput = {
|
|
1324
|
-
...output,
|
|
1325
|
-
body: await parseErrorBody(output.body, context)
|
|
1326
|
-
};
|
|
1327
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1328
|
-
switch (errorCode) {
|
|
1329
|
-
case "InternalServerException":
|
|
1330
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1331
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1332
|
-
case "ResourceNotFoundException":
|
|
1333
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1334
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1335
|
-
case "ValidationException":
|
|
1336
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1337
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1338
|
-
default:
|
|
1339
|
-
const parsedBody = parsedOutput.body;
|
|
1340
|
-
return throwDefaultError({
|
|
1341
|
-
output,
|
|
1342
|
-
parsedBody,
|
|
1343
|
-
errorCode
|
|
1344
|
-
});
|
|
1345
|
-
}
|
|
1346
|
-
}, "de_ListAttributeGroupsForApplicationCommandError");
|
|
1347
901
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1348
902
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1349
|
-
return
|
|
903
|
+
return de_CommandError(output, context);
|
|
1350
904
|
}
|
|
1351
905
|
const contents = (0, import_smithy_client.map)({
|
|
1352
906
|
$metadata: deserializeMetadata(output)
|
|
@@ -1358,34 +912,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1358
912
|
Object.assign(contents, doc);
|
|
1359
913
|
return contents;
|
|
1360
914
|
}, "de_ListTagsForResourceCommand");
|
|
1361
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1362
|
-
const parsedOutput = {
|
|
1363
|
-
...output,
|
|
1364
|
-
body: await parseErrorBody(output.body, context)
|
|
1365
|
-
};
|
|
1366
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1367
|
-
switch (errorCode) {
|
|
1368
|
-
case "InternalServerException":
|
|
1369
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1370
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1371
|
-
case "ResourceNotFoundException":
|
|
1372
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1373
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1374
|
-
case "ValidationException":
|
|
1375
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1376
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1377
|
-
default:
|
|
1378
|
-
const parsedBody = parsedOutput.body;
|
|
1379
|
-
return throwDefaultError({
|
|
1380
|
-
output,
|
|
1381
|
-
parsedBody,
|
|
1382
|
-
errorCode
|
|
1383
|
-
});
|
|
1384
|
-
}
|
|
1385
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1386
915
|
var de_PutConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1387
916
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1388
|
-
return
|
|
917
|
+
return de_CommandError(output, context);
|
|
1389
918
|
}
|
|
1390
919
|
const contents = (0, import_smithy_client.map)({
|
|
1391
920
|
$metadata: deserializeMetadata(output)
|
|
@@ -1393,34 +922,9 @@ var de_PutConfigurationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1393
922
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1394
923
|
return contents;
|
|
1395
924
|
}, "de_PutConfigurationCommand");
|
|
1396
|
-
var de_PutConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1397
|
-
const parsedOutput = {
|
|
1398
|
-
...output,
|
|
1399
|
-
body: await parseErrorBody(output.body, context)
|
|
1400
|
-
};
|
|
1401
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1402
|
-
switch (errorCode) {
|
|
1403
|
-
case "ConflictException":
|
|
1404
|
-
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
1405
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1406
|
-
case "InternalServerException":
|
|
1407
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1408
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1409
|
-
case "ValidationException":
|
|
1410
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1411
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1412
|
-
default:
|
|
1413
|
-
const parsedBody = parsedOutput.body;
|
|
1414
|
-
return throwDefaultError({
|
|
1415
|
-
output,
|
|
1416
|
-
parsedBody,
|
|
1417
|
-
errorCode
|
|
1418
|
-
});
|
|
1419
|
-
}
|
|
1420
|
-
}, "de_PutConfigurationCommandError");
|
|
1421
925
|
var de_SyncResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1422
926
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1423
|
-
return
|
|
927
|
+
return de_CommandError(output, context);
|
|
1424
928
|
}
|
|
1425
929
|
const contents = (0, import_smithy_client.map)({
|
|
1426
930
|
$metadata: deserializeMetadata(output)
|
|
@@ -1434,40 +938,9 @@ var de_SyncResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1434
938
|
Object.assign(contents, doc);
|
|
1435
939
|
return contents;
|
|
1436
940
|
}, "de_SyncResourceCommand");
|
|
1437
|
-
var de_SyncResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1438
|
-
const parsedOutput = {
|
|
1439
|
-
...output,
|
|
1440
|
-
body: await parseErrorBody(output.body, context)
|
|
1441
|
-
};
|
|
1442
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1443
|
-
switch (errorCode) {
|
|
1444
|
-
case "ConflictException":
|
|
1445
|
-
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
1446
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1447
|
-
case "InternalServerException":
|
|
1448
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1449
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1450
|
-
case "ResourceNotFoundException":
|
|
1451
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1452
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1453
|
-
case "ThrottlingException":
|
|
1454
|
-
case "com.amazonaws.servicecatalogappregistry#ThrottlingException":
|
|
1455
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1456
|
-
case "ValidationException":
|
|
1457
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1458
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1459
|
-
default:
|
|
1460
|
-
const parsedBody = parsedOutput.body;
|
|
1461
|
-
return throwDefaultError({
|
|
1462
|
-
output,
|
|
1463
|
-
parsedBody,
|
|
1464
|
-
errorCode
|
|
1465
|
-
});
|
|
1466
|
-
}
|
|
1467
|
-
}, "de_SyncResourceCommandError");
|
|
1468
941
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1469
942
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1470
|
-
return
|
|
943
|
+
return de_CommandError(output, context);
|
|
1471
944
|
}
|
|
1472
945
|
const contents = (0, import_smithy_client.map)({
|
|
1473
946
|
$metadata: deserializeMetadata(output)
|
|
@@ -1475,34 +948,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1475
948
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1476
949
|
return contents;
|
|
1477
950
|
}, "de_TagResourceCommand");
|
|
1478
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1479
|
-
const parsedOutput = {
|
|
1480
|
-
...output,
|
|
1481
|
-
body: await parseErrorBody(output.body, context)
|
|
1482
|
-
};
|
|
1483
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1484
|
-
switch (errorCode) {
|
|
1485
|
-
case "InternalServerException":
|
|
1486
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1487
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1488
|
-
case "ResourceNotFoundException":
|
|
1489
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1490
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1491
|
-
case "ValidationException":
|
|
1492
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1493
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1494
|
-
default:
|
|
1495
|
-
const parsedBody = parsedOutput.body;
|
|
1496
|
-
return throwDefaultError({
|
|
1497
|
-
output,
|
|
1498
|
-
parsedBody,
|
|
1499
|
-
errorCode
|
|
1500
|
-
});
|
|
1501
|
-
}
|
|
1502
|
-
}, "de_TagResourceCommandError");
|
|
1503
951
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1504
952
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1505
|
-
return
|
|
953
|
+
return de_CommandError(output, context);
|
|
1506
954
|
}
|
|
1507
955
|
const contents = (0, import_smithy_client.map)({
|
|
1508
956
|
$metadata: deserializeMetadata(output)
|
|
@@ -1510,34 +958,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1510
958
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1511
959
|
return contents;
|
|
1512
960
|
}, "de_UntagResourceCommand");
|
|
1513
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1514
|
-
const parsedOutput = {
|
|
1515
|
-
...output,
|
|
1516
|
-
body: await parseErrorBody(output.body, context)
|
|
1517
|
-
};
|
|
1518
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1519
|
-
switch (errorCode) {
|
|
1520
|
-
case "InternalServerException":
|
|
1521
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1522
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1523
|
-
case "ResourceNotFoundException":
|
|
1524
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1525
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1526
|
-
case "ValidationException":
|
|
1527
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1528
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1529
|
-
default:
|
|
1530
|
-
const parsedBody = parsedOutput.body;
|
|
1531
|
-
return throwDefaultError({
|
|
1532
|
-
output,
|
|
1533
|
-
parsedBody,
|
|
1534
|
-
errorCode
|
|
1535
|
-
});
|
|
1536
|
-
}
|
|
1537
|
-
}, "de_UntagResourceCommandError");
|
|
1538
961
|
var de_UpdateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1539
962
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1540
|
-
return
|
|
963
|
+
return de_CommandError(output, context);
|
|
1541
964
|
}
|
|
1542
965
|
const contents = (0, import_smithy_client.map)({
|
|
1543
966
|
$metadata: deserializeMetadata(output)
|
|
@@ -1549,40 +972,9 @@ var de_UpdateApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1549
972
|
Object.assign(contents, doc);
|
|
1550
973
|
return contents;
|
|
1551
974
|
}, "de_UpdateApplicationCommand");
|
|
1552
|
-
var de_UpdateApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1553
|
-
const parsedOutput = {
|
|
1554
|
-
...output,
|
|
1555
|
-
body: await parseErrorBody(output.body, context)
|
|
1556
|
-
};
|
|
1557
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1558
|
-
switch (errorCode) {
|
|
1559
|
-
case "ConflictException":
|
|
1560
|
-
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
1561
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1562
|
-
case "InternalServerException":
|
|
1563
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1564
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1565
|
-
case "ResourceNotFoundException":
|
|
1566
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1567
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1568
|
-
case "ThrottlingException":
|
|
1569
|
-
case "com.amazonaws.servicecatalogappregistry#ThrottlingException":
|
|
1570
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1571
|
-
case "ValidationException":
|
|
1572
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1573
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1574
|
-
default:
|
|
1575
|
-
const parsedBody = parsedOutput.body;
|
|
1576
|
-
return throwDefaultError({
|
|
1577
|
-
output,
|
|
1578
|
-
parsedBody,
|
|
1579
|
-
errorCode
|
|
1580
|
-
});
|
|
1581
|
-
}
|
|
1582
|
-
}, "de_UpdateApplicationCommandError");
|
|
1583
975
|
var de_UpdateAttributeGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1584
976
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1585
|
-
return
|
|
977
|
+
return de_CommandError(output, context);
|
|
1586
978
|
}
|
|
1587
979
|
const contents = (0, import_smithy_client.map)({
|
|
1588
980
|
$metadata: deserializeMetadata(output)
|
|
@@ -1594,7 +986,7 @@ var de_UpdateAttributeGroupCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1594
986
|
Object.assign(contents, doc);
|
|
1595
987
|
return contents;
|
|
1596
988
|
}, "de_UpdateAttributeGroupCommand");
|
|
1597
|
-
var
|
|
989
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1598
990
|
const parsedOutput = {
|
|
1599
991
|
...output,
|
|
1600
992
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1610,9 +1002,15 @@ var de_UpdateAttributeGroupCommandError = /* @__PURE__ */ __name(async (output,
|
|
|
1610
1002
|
case "ResourceNotFoundException":
|
|
1611
1003
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1612
1004
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1005
|
+
case "ServiceQuotaExceededException":
|
|
1006
|
+
case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException":
|
|
1007
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1613
1008
|
case "ValidationException":
|
|
1614
1009
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1615
1010
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1011
|
+
case "ThrottlingException":
|
|
1012
|
+
case "com.amazonaws.servicecatalogappregistry#ThrottlingException":
|
|
1013
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1616
1014
|
default:
|
|
1617
1015
|
const parsedBody = parsedOutput.body;
|
|
1618
1016
|
return throwDefaultError({
|
|
@@ -1621,7 +1019,7 @@ var de_UpdateAttributeGroupCommandError = /* @__PURE__ */ __name(async (output,
|
|
|
1621
1019
|
errorCode
|
|
1622
1020
|
});
|
|
1623
1021
|
}
|
|
1624
|
-
}, "
|
|
1022
|
+
}, "de_CommandError");
|
|
1625
1023
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(ServiceCatalogAppRegistryServiceException);
|
|
1626
1024
|
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1627
1025
|
const contents = (0, import_smithy_client.map)({});
|