@aws-sdk/client-service-catalog-appregistry 3.51.0 → 3.54.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/CHANGELOG.md +30 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/ServiceCatalogAppRegistryServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +68 -2
- package/dist-cjs/protocols/Aws_restJson1.js +188 -633
- package/dist-es/index.js +1 -0
- package/dist-es/models/ServiceCatalogAppRegistryServiceException.js +12 -0
- package/dist-es/models/models_0.js +62 -1
- package/dist-es/protocols/Aws_restJson1.js +411 -723
- package/dist-types/ServiceCatalogAppRegistryClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/ServiceCatalogAppRegistryServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +41 -21
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/ServiceCatalogAppRegistryClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/ServiceCatalogAppRegistryServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +27 -21
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +33 -33
|
@@ -4,6 +4,8 @@ exports.deserializeAws_restJson1UpdateAttributeGroupCommand = exports.deserializ
|
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const uuid_1 = require("uuid");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const ServiceCatalogAppRegistryServiceException_1 = require("../models/ServiceCatalogAppRegistryServiceException");
|
|
7
9
|
const serializeAws_restJson1AssociateAttributeGroupCommand = async (input, context) => {
|
|
8
10
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
9
11
|
const headers = {};
|
|
@@ -697,51 +699,25 @@ const deserializeAws_restJson1AssociateAttributeGroupCommandError = async (outpu
|
|
|
697
699
|
switch (errorCode) {
|
|
698
700
|
case "InternalServerException":
|
|
699
701
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
700
|
-
|
|
701
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
702
|
-
name: errorCode,
|
|
703
|
-
$metadata: deserializeMetadata(output),
|
|
704
|
-
};
|
|
705
|
-
break;
|
|
702
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
706
703
|
case "ResourceNotFoundException":
|
|
707
704
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
708
|
-
|
|
709
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
710
|
-
name: errorCode,
|
|
711
|
-
$metadata: deserializeMetadata(output),
|
|
712
|
-
};
|
|
713
|
-
break;
|
|
705
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
714
706
|
case "ServiceQuotaExceededException":
|
|
715
707
|
case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException":
|
|
716
|
-
|
|
717
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
718
|
-
name: errorCode,
|
|
719
|
-
$metadata: deserializeMetadata(output),
|
|
720
|
-
};
|
|
721
|
-
break;
|
|
708
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
722
709
|
case "ValidationException":
|
|
723
710
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
724
|
-
|
|
725
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
726
|
-
name: errorCode,
|
|
727
|
-
$metadata: deserializeMetadata(output),
|
|
728
|
-
};
|
|
729
|
-
break;
|
|
711
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
730
712
|
default:
|
|
731
713
|
const parsedBody = parsedOutput.body;
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
...parsedBody,
|
|
735
|
-
name: `${errorCode}`,
|
|
736
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
714
|
+
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
715
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
737
716
|
$fault: "client",
|
|
738
717
|
$metadata: deserializeMetadata(output),
|
|
739
|
-
};
|
|
718
|
+
});
|
|
719
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
740
720
|
}
|
|
741
|
-
const message = response.message || response.Message || errorCode;
|
|
742
|
-
response.message = message;
|
|
743
|
-
delete response.Message;
|
|
744
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
745
721
|
};
|
|
746
722
|
const deserializeAws_restJson1AssociateResourceCommand = async (output, context) => {
|
|
747
723
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -773,51 +749,25 @@ const deserializeAws_restJson1AssociateResourceCommandError = async (output, con
|
|
|
773
749
|
switch (errorCode) {
|
|
774
750
|
case "ConflictException":
|
|
775
751
|
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
776
|
-
|
|
777
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
778
|
-
name: errorCode,
|
|
779
|
-
$metadata: deserializeMetadata(output),
|
|
780
|
-
};
|
|
781
|
-
break;
|
|
752
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
782
753
|
case "InternalServerException":
|
|
783
754
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
784
|
-
|
|
785
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
786
|
-
name: errorCode,
|
|
787
|
-
$metadata: deserializeMetadata(output),
|
|
788
|
-
};
|
|
789
|
-
break;
|
|
755
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
790
756
|
case "ResourceNotFoundException":
|
|
791
757
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
792
|
-
|
|
793
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
794
|
-
name: errorCode,
|
|
795
|
-
$metadata: deserializeMetadata(output),
|
|
796
|
-
};
|
|
797
|
-
break;
|
|
758
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
798
759
|
case "ServiceQuotaExceededException":
|
|
799
760
|
case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException":
|
|
800
|
-
|
|
801
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
802
|
-
name: errorCode,
|
|
803
|
-
$metadata: deserializeMetadata(output),
|
|
804
|
-
};
|
|
805
|
-
break;
|
|
761
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
806
762
|
default:
|
|
807
763
|
const parsedBody = parsedOutput.body;
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
...parsedBody,
|
|
811
|
-
name: `${errorCode}`,
|
|
812
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
764
|
+
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
765
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
813
766
|
$fault: "client",
|
|
814
767
|
$metadata: deserializeMetadata(output),
|
|
815
|
-
};
|
|
768
|
+
});
|
|
769
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
816
770
|
}
|
|
817
|
-
const message = response.message || response.Message || errorCode;
|
|
818
|
-
response.message = message;
|
|
819
|
-
delete response.Message;
|
|
820
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
821
771
|
};
|
|
822
772
|
const deserializeAws_restJson1CreateApplicationCommand = async (output, context) => {
|
|
823
773
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -845,43 +795,22 @@ const deserializeAws_restJson1CreateApplicationCommandError = async (output, con
|
|
|
845
795
|
switch (errorCode) {
|
|
846
796
|
case "ConflictException":
|
|
847
797
|
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
848
|
-
|
|
849
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
850
|
-
name: errorCode,
|
|
851
|
-
$metadata: deserializeMetadata(output),
|
|
852
|
-
};
|
|
853
|
-
break;
|
|
798
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
854
799
|
case "InternalServerException":
|
|
855
800
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
856
|
-
|
|
857
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
858
|
-
name: errorCode,
|
|
859
|
-
$metadata: deserializeMetadata(output),
|
|
860
|
-
};
|
|
861
|
-
break;
|
|
801
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
862
802
|
case "ServiceQuotaExceededException":
|
|
863
803
|
case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException":
|
|
864
|
-
|
|
865
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
866
|
-
name: errorCode,
|
|
867
|
-
$metadata: deserializeMetadata(output),
|
|
868
|
-
};
|
|
869
|
-
break;
|
|
804
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
870
805
|
default:
|
|
871
806
|
const parsedBody = parsedOutput.body;
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
...parsedBody,
|
|
875
|
-
name: `${errorCode}`,
|
|
876
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
807
|
+
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
808
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
877
809
|
$fault: "client",
|
|
878
810
|
$metadata: deserializeMetadata(output),
|
|
879
|
-
};
|
|
811
|
+
});
|
|
812
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
880
813
|
}
|
|
881
|
-
const message = response.message || response.Message || errorCode;
|
|
882
|
-
response.message = message;
|
|
883
|
-
delete response.Message;
|
|
884
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
885
814
|
};
|
|
886
815
|
const deserializeAws_restJson1CreateAttributeGroupCommand = async (output, context) => {
|
|
887
816
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -909,51 +838,25 @@ const deserializeAws_restJson1CreateAttributeGroupCommandError = async (output,
|
|
|
909
838
|
switch (errorCode) {
|
|
910
839
|
case "ConflictException":
|
|
911
840
|
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
912
|
-
|
|
913
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
914
|
-
name: errorCode,
|
|
915
|
-
$metadata: deserializeMetadata(output),
|
|
916
|
-
};
|
|
917
|
-
break;
|
|
841
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
918
842
|
case "InternalServerException":
|
|
919
843
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
920
|
-
|
|
921
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
922
|
-
name: errorCode,
|
|
923
|
-
$metadata: deserializeMetadata(output),
|
|
924
|
-
};
|
|
925
|
-
break;
|
|
844
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
926
845
|
case "ServiceQuotaExceededException":
|
|
927
846
|
case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException":
|
|
928
|
-
|
|
929
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
930
|
-
name: errorCode,
|
|
931
|
-
$metadata: deserializeMetadata(output),
|
|
932
|
-
};
|
|
933
|
-
break;
|
|
847
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
934
848
|
case "ValidationException":
|
|
935
849
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
936
|
-
|
|
937
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
938
|
-
name: errorCode,
|
|
939
|
-
$metadata: deserializeMetadata(output),
|
|
940
|
-
};
|
|
941
|
-
break;
|
|
850
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
942
851
|
default:
|
|
943
852
|
const parsedBody = parsedOutput.body;
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
...parsedBody,
|
|
947
|
-
name: `${errorCode}`,
|
|
948
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
853
|
+
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
854
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
949
855
|
$fault: "client",
|
|
950
856
|
$metadata: deserializeMetadata(output),
|
|
951
|
-
};
|
|
857
|
+
});
|
|
858
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
952
859
|
}
|
|
953
|
-
const message = response.message || response.Message || errorCode;
|
|
954
|
-
response.message = message;
|
|
955
|
-
delete response.Message;
|
|
956
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
957
860
|
};
|
|
958
861
|
const deserializeAws_restJson1DeleteApplicationCommand = async (output, context) => {
|
|
959
862
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -981,43 +884,22 @@ const deserializeAws_restJson1DeleteApplicationCommandError = async (output, con
|
|
|
981
884
|
switch (errorCode) {
|
|
982
885
|
case "InternalServerException":
|
|
983
886
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
984
|
-
|
|
985
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
986
|
-
name: errorCode,
|
|
987
|
-
$metadata: deserializeMetadata(output),
|
|
988
|
-
};
|
|
989
|
-
break;
|
|
887
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
990
888
|
case "ResourceNotFoundException":
|
|
991
889
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
992
|
-
|
|
993
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
994
|
-
name: errorCode,
|
|
995
|
-
$metadata: deserializeMetadata(output),
|
|
996
|
-
};
|
|
997
|
-
break;
|
|
890
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
998
891
|
case "ValidationException":
|
|
999
892
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1000
|
-
|
|
1001
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1002
|
-
name: errorCode,
|
|
1003
|
-
$metadata: deserializeMetadata(output),
|
|
1004
|
-
};
|
|
1005
|
-
break;
|
|
893
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1006
894
|
default:
|
|
1007
895
|
const parsedBody = parsedOutput.body;
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
...parsedBody,
|
|
1011
|
-
name: `${errorCode}`,
|
|
1012
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
896
|
+
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
897
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1013
898
|
$fault: "client",
|
|
1014
899
|
$metadata: deserializeMetadata(output),
|
|
1015
|
-
};
|
|
900
|
+
});
|
|
901
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1016
902
|
}
|
|
1017
|
-
const message = response.message || response.Message || errorCode;
|
|
1018
|
-
response.message = message;
|
|
1019
|
-
delete response.Message;
|
|
1020
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1021
903
|
};
|
|
1022
904
|
const deserializeAws_restJson1DeleteAttributeGroupCommand = async (output, context) => {
|
|
1023
905
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1045,43 +927,22 @@ const deserializeAws_restJson1DeleteAttributeGroupCommandError = async (output,
|
|
|
1045
927
|
switch (errorCode) {
|
|
1046
928
|
case "InternalServerException":
|
|
1047
929
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1048
|
-
|
|
1049
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1050
|
-
name: errorCode,
|
|
1051
|
-
$metadata: deserializeMetadata(output),
|
|
1052
|
-
};
|
|
1053
|
-
break;
|
|
930
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1054
931
|
case "ResourceNotFoundException":
|
|
1055
932
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1056
|
-
|
|
1057
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1058
|
-
name: errorCode,
|
|
1059
|
-
$metadata: deserializeMetadata(output),
|
|
1060
|
-
};
|
|
1061
|
-
break;
|
|
933
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1062
934
|
case "ValidationException":
|
|
1063
935
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1064
|
-
|
|
1065
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1066
|
-
name: errorCode,
|
|
1067
|
-
$metadata: deserializeMetadata(output),
|
|
1068
|
-
};
|
|
1069
|
-
break;
|
|
936
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1070
937
|
default:
|
|
1071
938
|
const parsedBody = parsedOutput.body;
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
...parsedBody,
|
|
1075
|
-
name: `${errorCode}`,
|
|
1076
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
939
|
+
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
940
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1077
941
|
$fault: "client",
|
|
1078
942
|
$metadata: deserializeMetadata(output),
|
|
1079
|
-
};
|
|
943
|
+
});
|
|
944
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1080
945
|
}
|
|
1081
|
-
const message = response.message || response.Message || errorCode;
|
|
1082
|
-
response.message = message;
|
|
1083
|
-
delete response.Message;
|
|
1084
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1085
946
|
};
|
|
1086
947
|
const deserializeAws_restJson1DisassociateAttributeGroupCommand = async (output, context) => {
|
|
1087
948
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1113,43 +974,22 @@ const deserializeAws_restJson1DisassociateAttributeGroupCommandError = async (ou
|
|
|
1113
974
|
switch (errorCode) {
|
|
1114
975
|
case "InternalServerException":
|
|
1115
976
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1116
|
-
|
|
1117
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1118
|
-
name: errorCode,
|
|
1119
|
-
$metadata: deserializeMetadata(output),
|
|
1120
|
-
};
|
|
1121
|
-
break;
|
|
977
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1122
978
|
case "ResourceNotFoundException":
|
|
1123
979
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1124
|
-
|
|
1125
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1126
|
-
name: errorCode,
|
|
1127
|
-
$metadata: deserializeMetadata(output),
|
|
1128
|
-
};
|
|
1129
|
-
break;
|
|
980
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1130
981
|
case "ValidationException":
|
|
1131
982
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1132
|
-
|
|
1133
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1134
|
-
name: errorCode,
|
|
1135
|
-
$metadata: deserializeMetadata(output),
|
|
1136
|
-
};
|
|
1137
|
-
break;
|
|
983
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1138
984
|
default:
|
|
1139
985
|
const parsedBody = parsedOutput.body;
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
...parsedBody,
|
|
1143
|
-
name: `${errorCode}`,
|
|
1144
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
986
|
+
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
987
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1145
988
|
$fault: "client",
|
|
1146
989
|
$metadata: deserializeMetadata(output),
|
|
1147
|
-
};
|
|
990
|
+
});
|
|
991
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1148
992
|
}
|
|
1149
|
-
const message = response.message || response.Message || errorCode;
|
|
1150
|
-
response.message = message;
|
|
1151
|
-
delete response.Message;
|
|
1152
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1153
993
|
};
|
|
1154
994
|
const deserializeAws_restJson1DisassociateResourceCommand = async (output, context) => {
|
|
1155
995
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1181,35 +1021,19 @@ const deserializeAws_restJson1DisassociateResourceCommandError = async (output,
|
|
|
1181
1021
|
switch (errorCode) {
|
|
1182
1022
|
case "InternalServerException":
|
|
1183
1023
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1184
|
-
|
|
1185
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1186
|
-
name: errorCode,
|
|
1187
|
-
$metadata: deserializeMetadata(output),
|
|
1188
|
-
};
|
|
1189
|
-
break;
|
|
1024
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1190
1025
|
case "ResourceNotFoundException":
|
|
1191
1026
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1192
|
-
|
|
1193
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1194
|
-
name: errorCode,
|
|
1195
|
-
$metadata: deserializeMetadata(output),
|
|
1196
|
-
};
|
|
1197
|
-
break;
|
|
1027
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1198
1028
|
default:
|
|
1199
1029
|
const parsedBody = parsedOutput.body;
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
...parsedBody,
|
|
1203
|
-
name: `${errorCode}`,
|
|
1204
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1030
|
+
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
1031
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1205
1032
|
$fault: "client",
|
|
1206
1033
|
$metadata: deserializeMetadata(output),
|
|
1207
|
-
};
|
|
1034
|
+
});
|
|
1035
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1208
1036
|
}
|
|
1209
|
-
const message = response.message || response.Message || errorCode;
|
|
1210
|
-
response.message = message;
|
|
1211
|
-
delete response.Message;
|
|
1212
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1213
1037
|
};
|
|
1214
1038
|
const deserializeAws_restJson1GetApplicationCommand = async (output, context) => {
|
|
1215
1039
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1269,43 +1093,22 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
|
|
|
1269
1093
|
switch (errorCode) {
|
|
1270
1094
|
case "InternalServerException":
|
|
1271
1095
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1272
|
-
|
|
1273
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1274
|
-
name: errorCode,
|
|
1275
|
-
$metadata: deserializeMetadata(output),
|
|
1276
|
-
};
|
|
1277
|
-
break;
|
|
1096
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1278
1097
|
case "ResourceNotFoundException":
|
|
1279
1098
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1280
|
-
|
|
1281
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1282
|
-
name: errorCode,
|
|
1283
|
-
$metadata: deserializeMetadata(output),
|
|
1284
|
-
};
|
|
1285
|
-
break;
|
|
1099
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1286
1100
|
case "ValidationException":
|
|
1287
1101
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1288
|
-
|
|
1289
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1290
|
-
name: errorCode,
|
|
1291
|
-
$metadata: deserializeMetadata(output),
|
|
1292
|
-
};
|
|
1293
|
-
break;
|
|
1102
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1294
1103
|
default:
|
|
1295
1104
|
const parsedBody = parsedOutput.body;
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
...parsedBody,
|
|
1299
|
-
name: `${errorCode}`,
|
|
1300
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1105
|
+
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
1106
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1301
1107
|
$fault: "client",
|
|
1302
1108
|
$metadata: deserializeMetadata(output),
|
|
1303
|
-
};
|
|
1109
|
+
});
|
|
1110
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1304
1111
|
}
|
|
1305
|
-
const message = response.message || response.Message || errorCode;
|
|
1306
|
-
response.message = message;
|
|
1307
|
-
delete response.Message;
|
|
1308
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1309
1112
|
};
|
|
1310
1113
|
const deserializeAws_restJson1GetAssociatedResourceCommand = async (output, context) => {
|
|
1311
1114
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1333,43 +1136,22 @@ const deserializeAws_restJson1GetAssociatedResourceCommandError = async (output,
|
|
|
1333
1136
|
switch (errorCode) {
|
|
1334
1137
|
case "InternalServerException":
|
|
1335
1138
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1336
|
-
|
|
1337
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1338
|
-
name: errorCode,
|
|
1339
|
-
$metadata: deserializeMetadata(output),
|
|
1340
|
-
};
|
|
1341
|
-
break;
|
|
1139
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1342
1140
|
case "ResourceNotFoundException":
|
|
1343
1141
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1344
|
-
|
|
1345
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1346
|
-
name: errorCode,
|
|
1347
|
-
$metadata: deserializeMetadata(output),
|
|
1348
|
-
};
|
|
1349
|
-
break;
|
|
1142
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1350
1143
|
case "ValidationException":
|
|
1351
1144
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1352
|
-
|
|
1353
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1354
|
-
name: errorCode,
|
|
1355
|
-
$metadata: deserializeMetadata(output),
|
|
1356
|
-
};
|
|
1357
|
-
break;
|
|
1145
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1358
1146
|
default:
|
|
1359
1147
|
const parsedBody = parsedOutput.body;
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
...parsedBody,
|
|
1363
|
-
name: `${errorCode}`,
|
|
1364
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1148
|
+
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
1149
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1365
1150
|
$fault: "client",
|
|
1366
1151
|
$metadata: deserializeMetadata(output),
|
|
1367
|
-
};
|
|
1152
|
+
});
|
|
1153
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1368
1154
|
}
|
|
1369
|
-
const message = response.message || response.Message || errorCode;
|
|
1370
|
-
response.message = message;
|
|
1371
|
-
delete response.Message;
|
|
1372
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1373
1155
|
};
|
|
1374
1156
|
const deserializeAws_restJson1GetAttributeGroupCommand = async (output, context) => {
|
|
1375
1157
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1425,43 +1207,22 @@ const deserializeAws_restJson1GetAttributeGroupCommandError = async (output, con
|
|
|
1425
1207
|
switch (errorCode) {
|
|
1426
1208
|
case "InternalServerException":
|
|
1427
1209
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1428
|
-
|
|
1429
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1430
|
-
name: errorCode,
|
|
1431
|
-
$metadata: deserializeMetadata(output),
|
|
1432
|
-
};
|
|
1433
|
-
break;
|
|
1210
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1434
1211
|
case "ResourceNotFoundException":
|
|
1435
1212
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1436
|
-
|
|
1437
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1438
|
-
name: errorCode,
|
|
1439
|
-
$metadata: deserializeMetadata(output),
|
|
1440
|
-
};
|
|
1441
|
-
break;
|
|
1213
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1442
1214
|
case "ValidationException":
|
|
1443
1215
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1444
|
-
|
|
1445
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1446
|
-
name: errorCode,
|
|
1447
|
-
$metadata: deserializeMetadata(output),
|
|
1448
|
-
};
|
|
1449
|
-
break;
|
|
1216
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1450
1217
|
default:
|
|
1451
1218
|
const parsedBody = parsedOutput.body;
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
...parsedBody,
|
|
1455
|
-
name: `${errorCode}`,
|
|
1456
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1219
|
+
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
1220
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1457
1221
|
$fault: "client",
|
|
1458
1222
|
$metadata: deserializeMetadata(output),
|
|
1459
|
-
};
|
|
1223
|
+
});
|
|
1224
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1460
1225
|
}
|
|
1461
|
-
const message = response.message || response.Message || errorCode;
|
|
1462
|
-
response.message = message;
|
|
1463
|
-
delete response.Message;
|
|
1464
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1465
1226
|
};
|
|
1466
1227
|
const deserializeAws_restJson1ListApplicationsCommand = async (output, context) => {
|
|
1467
1228
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1493,35 +1254,19 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
|
|
|
1493
1254
|
switch (errorCode) {
|
|
1494
1255
|
case "InternalServerException":
|
|
1495
1256
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1496
|
-
|
|
1497
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1498
|
-
name: errorCode,
|
|
1499
|
-
$metadata: deserializeMetadata(output),
|
|
1500
|
-
};
|
|
1501
|
-
break;
|
|
1257
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1502
1258
|
case "ValidationException":
|
|
1503
1259
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1504
|
-
|
|
1505
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1506
|
-
name: errorCode,
|
|
1507
|
-
$metadata: deserializeMetadata(output),
|
|
1508
|
-
};
|
|
1509
|
-
break;
|
|
1260
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1510
1261
|
default:
|
|
1511
1262
|
const parsedBody = parsedOutput.body;
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
...parsedBody,
|
|
1515
|
-
name: `${errorCode}`,
|
|
1516
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1263
|
+
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
1264
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1517
1265
|
$fault: "client",
|
|
1518
1266
|
$metadata: deserializeMetadata(output),
|
|
1519
|
-
};
|
|
1267
|
+
});
|
|
1268
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1520
1269
|
}
|
|
1521
|
-
const message = response.message || response.Message || errorCode;
|
|
1522
|
-
response.message = message;
|
|
1523
|
-
delete response.Message;
|
|
1524
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1525
1270
|
};
|
|
1526
1271
|
const deserializeAws_restJson1ListAssociatedAttributeGroupsCommand = async (output, context) => {
|
|
1527
1272
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1553,43 +1298,22 @@ const deserializeAws_restJson1ListAssociatedAttributeGroupsCommandError = async
|
|
|
1553
1298
|
switch (errorCode) {
|
|
1554
1299
|
case "InternalServerException":
|
|
1555
1300
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1556
|
-
|
|
1557
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1558
|
-
name: errorCode,
|
|
1559
|
-
$metadata: deserializeMetadata(output),
|
|
1560
|
-
};
|
|
1561
|
-
break;
|
|
1301
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1562
1302
|
case "ResourceNotFoundException":
|
|
1563
1303
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1564
|
-
|
|
1565
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1566
|
-
name: errorCode,
|
|
1567
|
-
$metadata: deserializeMetadata(output),
|
|
1568
|
-
};
|
|
1569
|
-
break;
|
|
1304
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1570
1305
|
case "ValidationException":
|
|
1571
1306
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1572
|
-
|
|
1573
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1574
|
-
name: errorCode,
|
|
1575
|
-
$metadata: deserializeMetadata(output),
|
|
1576
|
-
};
|
|
1577
|
-
break;
|
|
1307
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1578
1308
|
default:
|
|
1579
1309
|
const parsedBody = parsedOutput.body;
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
...parsedBody,
|
|
1583
|
-
name: `${errorCode}`,
|
|
1584
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1310
|
+
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
1311
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1585
1312
|
$fault: "client",
|
|
1586
1313
|
$metadata: deserializeMetadata(output),
|
|
1587
|
-
};
|
|
1314
|
+
});
|
|
1315
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1588
1316
|
}
|
|
1589
|
-
const message = response.message || response.Message || errorCode;
|
|
1590
|
-
response.message = message;
|
|
1591
|
-
delete response.Message;
|
|
1592
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1593
1317
|
};
|
|
1594
1318
|
const deserializeAws_restJson1ListAssociatedResourcesCommand = async (output, context) => {
|
|
1595
1319
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1621,43 +1345,22 @@ const deserializeAws_restJson1ListAssociatedResourcesCommandError = async (outpu
|
|
|
1621
1345
|
switch (errorCode) {
|
|
1622
1346
|
case "InternalServerException":
|
|
1623
1347
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1624
|
-
|
|
1625
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1626
|
-
name: errorCode,
|
|
1627
|
-
$metadata: deserializeMetadata(output),
|
|
1628
|
-
};
|
|
1629
|
-
break;
|
|
1348
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1630
1349
|
case "ResourceNotFoundException":
|
|
1631
1350
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1632
|
-
|
|
1633
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1634
|
-
name: errorCode,
|
|
1635
|
-
$metadata: deserializeMetadata(output),
|
|
1636
|
-
};
|
|
1637
|
-
break;
|
|
1351
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1638
1352
|
case "ValidationException":
|
|
1639
1353
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1640
|
-
|
|
1641
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1642
|
-
name: errorCode,
|
|
1643
|
-
$metadata: deserializeMetadata(output),
|
|
1644
|
-
};
|
|
1645
|
-
break;
|
|
1354
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1646
1355
|
default:
|
|
1647
1356
|
const parsedBody = parsedOutput.body;
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
...parsedBody,
|
|
1651
|
-
name: `${errorCode}`,
|
|
1652
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1357
|
+
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
1358
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1653
1359
|
$fault: "client",
|
|
1654
1360
|
$metadata: deserializeMetadata(output),
|
|
1655
|
-
};
|
|
1361
|
+
});
|
|
1362
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1656
1363
|
}
|
|
1657
|
-
const message = response.message || response.Message || errorCode;
|
|
1658
|
-
response.message = message;
|
|
1659
|
-
delete response.Message;
|
|
1660
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1661
1364
|
};
|
|
1662
1365
|
const deserializeAws_restJson1ListAttributeGroupsCommand = async (output, context) => {
|
|
1663
1366
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1689,35 +1392,19 @@ const deserializeAws_restJson1ListAttributeGroupsCommandError = async (output, c
|
|
|
1689
1392
|
switch (errorCode) {
|
|
1690
1393
|
case "InternalServerException":
|
|
1691
1394
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1692
|
-
|
|
1693
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1694
|
-
name: errorCode,
|
|
1695
|
-
$metadata: deserializeMetadata(output),
|
|
1696
|
-
};
|
|
1697
|
-
break;
|
|
1395
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1698
1396
|
case "ValidationException":
|
|
1699
1397
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1700
|
-
|
|
1701
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1702
|
-
name: errorCode,
|
|
1703
|
-
$metadata: deserializeMetadata(output),
|
|
1704
|
-
};
|
|
1705
|
-
break;
|
|
1398
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1706
1399
|
default:
|
|
1707
1400
|
const parsedBody = parsedOutput.body;
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
...parsedBody,
|
|
1711
|
-
name: `${errorCode}`,
|
|
1712
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1401
|
+
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
1402
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1713
1403
|
$fault: "client",
|
|
1714
1404
|
$metadata: deserializeMetadata(output),
|
|
1715
|
-
};
|
|
1405
|
+
});
|
|
1406
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1716
1407
|
}
|
|
1717
|
-
const message = response.message || response.Message || errorCode;
|
|
1718
|
-
response.message = message;
|
|
1719
|
-
delete response.Message;
|
|
1720
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1721
1408
|
};
|
|
1722
1409
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
1723
1410
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1745,43 +1432,22 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1745
1432
|
switch (errorCode) {
|
|
1746
1433
|
case "InternalServerException":
|
|
1747
1434
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1748
|
-
|
|
1749
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1750
|
-
name: errorCode,
|
|
1751
|
-
$metadata: deserializeMetadata(output),
|
|
1752
|
-
};
|
|
1753
|
-
break;
|
|
1435
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1754
1436
|
case "ResourceNotFoundException":
|
|
1755
1437
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1756
|
-
|
|
1757
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1758
|
-
name: errorCode,
|
|
1759
|
-
$metadata: deserializeMetadata(output),
|
|
1760
|
-
};
|
|
1761
|
-
break;
|
|
1438
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1762
1439
|
case "ValidationException":
|
|
1763
1440
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1764
|
-
|
|
1765
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1766
|
-
name: errorCode,
|
|
1767
|
-
$metadata: deserializeMetadata(output),
|
|
1768
|
-
};
|
|
1769
|
-
break;
|
|
1441
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1770
1442
|
default:
|
|
1771
1443
|
const parsedBody = parsedOutput.body;
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
...parsedBody,
|
|
1775
|
-
name: `${errorCode}`,
|
|
1776
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1444
|
+
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
1445
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1777
1446
|
$fault: "client",
|
|
1778
1447
|
$metadata: deserializeMetadata(output),
|
|
1779
|
-
};
|
|
1448
|
+
});
|
|
1449
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1780
1450
|
}
|
|
1781
|
-
const message = response.message || response.Message || errorCode;
|
|
1782
|
-
response.message = message;
|
|
1783
|
-
delete response.Message;
|
|
1784
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1785
1451
|
};
|
|
1786
1452
|
const deserializeAws_restJson1SyncResourceCommand = async (output, context) => {
|
|
1787
1453
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1817,43 +1483,22 @@ const deserializeAws_restJson1SyncResourceCommandError = async (output, context)
|
|
|
1817
1483
|
switch (errorCode) {
|
|
1818
1484
|
case "ConflictException":
|
|
1819
1485
|
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
1820
|
-
|
|
1821
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1822
|
-
name: errorCode,
|
|
1823
|
-
$metadata: deserializeMetadata(output),
|
|
1824
|
-
};
|
|
1825
|
-
break;
|
|
1486
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1826
1487
|
case "InternalServerException":
|
|
1827
1488
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1828
|
-
|
|
1829
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1830
|
-
name: errorCode,
|
|
1831
|
-
$metadata: deserializeMetadata(output),
|
|
1832
|
-
};
|
|
1833
|
-
break;
|
|
1489
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1834
1490
|
case "ResourceNotFoundException":
|
|
1835
1491
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1836
|
-
|
|
1837
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1838
|
-
name: errorCode,
|
|
1839
|
-
$metadata: deserializeMetadata(output),
|
|
1840
|
-
};
|
|
1841
|
-
break;
|
|
1492
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1842
1493
|
default:
|
|
1843
1494
|
const parsedBody = parsedOutput.body;
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
...parsedBody,
|
|
1847
|
-
name: `${errorCode}`,
|
|
1848
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1495
|
+
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
1496
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1849
1497
|
$fault: "client",
|
|
1850
1498
|
$metadata: deserializeMetadata(output),
|
|
1851
|
-
};
|
|
1499
|
+
});
|
|
1500
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1852
1501
|
}
|
|
1853
|
-
const message = response.message || response.Message || errorCode;
|
|
1854
|
-
response.message = message;
|
|
1855
|
-
delete response.Message;
|
|
1856
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1857
1502
|
};
|
|
1858
1503
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
1859
1504
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1877,43 +1522,22 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1877
1522
|
switch (errorCode) {
|
|
1878
1523
|
case "InternalServerException":
|
|
1879
1524
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1880
|
-
|
|
1881
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1882
|
-
name: errorCode,
|
|
1883
|
-
$metadata: deserializeMetadata(output),
|
|
1884
|
-
};
|
|
1885
|
-
break;
|
|
1525
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1886
1526
|
case "ResourceNotFoundException":
|
|
1887
1527
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1888
|
-
|
|
1889
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1890
|
-
name: errorCode,
|
|
1891
|
-
$metadata: deserializeMetadata(output),
|
|
1892
|
-
};
|
|
1893
|
-
break;
|
|
1528
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1894
1529
|
case "ValidationException":
|
|
1895
1530
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1896
|
-
|
|
1897
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1898
|
-
name: errorCode,
|
|
1899
|
-
$metadata: deserializeMetadata(output),
|
|
1900
|
-
};
|
|
1901
|
-
break;
|
|
1531
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1902
1532
|
default:
|
|
1903
1533
|
const parsedBody = parsedOutput.body;
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
...parsedBody,
|
|
1907
|
-
name: `${errorCode}`,
|
|
1908
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1534
|
+
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
1535
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1909
1536
|
$fault: "client",
|
|
1910
1537
|
$metadata: deserializeMetadata(output),
|
|
1911
|
-
};
|
|
1538
|
+
});
|
|
1539
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1912
1540
|
}
|
|
1913
|
-
const message = response.message || response.Message || errorCode;
|
|
1914
|
-
response.message = message;
|
|
1915
|
-
delete response.Message;
|
|
1916
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1917
1541
|
};
|
|
1918
1542
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
1919
1543
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1937,43 +1561,22 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1937
1561
|
switch (errorCode) {
|
|
1938
1562
|
case "InternalServerException":
|
|
1939
1563
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1940
|
-
|
|
1941
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1942
|
-
name: errorCode,
|
|
1943
|
-
$metadata: deserializeMetadata(output),
|
|
1944
|
-
};
|
|
1945
|
-
break;
|
|
1564
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1946
1565
|
case "ResourceNotFoundException":
|
|
1947
1566
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1948
|
-
|
|
1949
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1950
|
-
name: errorCode,
|
|
1951
|
-
$metadata: deserializeMetadata(output),
|
|
1952
|
-
};
|
|
1953
|
-
break;
|
|
1567
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1954
1568
|
case "ValidationException":
|
|
1955
1569
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1956
|
-
|
|
1957
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1958
|
-
name: errorCode,
|
|
1959
|
-
$metadata: deserializeMetadata(output),
|
|
1960
|
-
};
|
|
1961
|
-
break;
|
|
1570
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1962
1571
|
default:
|
|
1963
1572
|
const parsedBody = parsedOutput.body;
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
...parsedBody,
|
|
1967
|
-
name: `${errorCode}`,
|
|
1968
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1573
|
+
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
1574
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1969
1575
|
$fault: "client",
|
|
1970
1576
|
$metadata: deserializeMetadata(output),
|
|
1971
|
-
};
|
|
1577
|
+
});
|
|
1578
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1972
1579
|
}
|
|
1973
|
-
const message = response.message || response.Message || errorCode;
|
|
1974
|
-
response.message = message;
|
|
1975
|
-
delete response.Message;
|
|
1976
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1977
1580
|
};
|
|
1978
1581
|
const deserializeAws_restJson1UpdateApplicationCommand = async (output, context) => {
|
|
1979
1582
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2001,43 +1604,22 @@ const deserializeAws_restJson1UpdateApplicationCommandError = async (output, con
|
|
|
2001
1604
|
switch (errorCode) {
|
|
2002
1605
|
case "ConflictException":
|
|
2003
1606
|
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
2004
|
-
|
|
2005
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2006
|
-
name: errorCode,
|
|
2007
|
-
$metadata: deserializeMetadata(output),
|
|
2008
|
-
};
|
|
2009
|
-
break;
|
|
1607
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2010
1608
|
case "InternalServerException":
|
|
2011
1609
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
2012
|
-
|
|
2013
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2014
|
-
name: errorCode,
|
|
2015
|
-
$metadata: deserializeMetadata(output),
|
|
2016
|
-
};
|
|
2017
|
-
break;
|
|
1610
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2018
1611
|
case "ResourceNotFoundException":
|
|
2019
1612
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
2020
|
-
|
|
2021
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2022
|
-
name: errorCode,
|
|
2023
|
-
$metadata: deserializeMetadata(output),
|
|
2024
|
-
};
|
|
2025
|
-
break;
|
|
1613
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2026
1614
|
default:
|
|
2027
1615
|
const parsedBody = parsedOutput.body;
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
...parsedBody,
|
|
2031
|
-
name: `${errorCode}`,
|
|
2032
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1616
|
+
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
1617
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2033
1618
|
$fault: "client",
|
|
2034
1619
|
$metadata: deserializeMetadata(output),
|
|
2035
|
-
};
|
|
1620
|
+
});
|
|
1621
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2036
1622
|
}
|
|
2037
|
-
const message = response.message || response.Message || errorCode;
|
|
2038
|
-
response.message = message;
|
|
2039
|
-
delete response.Message;
|
|
2040
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2041
1623
|
};
|
|
2042
1624
|
const deserializeAws_restJson1UpdateAttributeGroupCommand = async (output, context) => {
|
|
2043
1625
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2065,116 +1647,85 @@ const deserializeAws_restJson1UpdateAttributeGroupCommandError = async (output,
|
|
|
2065
1647
|
switch (errorCode) {
|
|
2066
1648
|
case "ConflictException":
|
|
2067
1649
|
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
2068
|
-
|
|
2069
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2070
|
-
name: errorCode,
|
|
2071
|
-
$metadata: deserializeMetadata(output),
|
|
2072
|
-
};
|
|
2073
|
-
break;
|
|
1650
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2074
1651
|
case "InternalServerException":
|
|
2075
1652
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
2076
|
-
|
|
2077
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2078
|
-
name: errorCode,
|
|
2079
|
-
$metadata: deserializeMetadata(output),
|
|
2080
|
-
};
|
|
2081
|
-
break;
|
|
1653
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2082
1654
|
case "ResourceNotFoundException":
|
|
2083
1655
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
2084
|
-
|
|
2085
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2086
|
-
name: errorCode,
|
|
2087
|
-
$metadata: deserializeMetadata(output),
|
|
2088
|
-
};
|
|
2089
|
-
break;
|
|
1656
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2090
1657
|
case "ValidationException":
|
|
2091
1658
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
2092
|
-
|
|
2093
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2094
|
-
name: errorCode,
|
|
2095
|
-
$metadata: deserializeMetadata(output),
|
|
2096
|
-
};
|
|
2097
|
-
break;
|
|
1659
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2098
1660
|
default:
|
|
2099
1661
|
const parsedBody = parsedOutput.body;
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
...parsedBody,
|
|
2103
|
-
name: `${errorCode}`,
|
|
2104
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1662
|
+
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
1663
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2105
1664
|
$fault: "client",
|
|
2106
1665
|
$metadata: deserializeMetadata(output),
|
|
2107
|
-
};
|
|
1666
|
+
});
|
|
1667
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2108
1668
|
}
|
|
2109
|
-
const message = response.message || response.Message || errorCode;
|
|
2110
|
-
response.message = message;
|
|
2111
|
-
delete response.Message;
|
|
2112
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2113
1669
|
};
|
|
2114
1670
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
2115
|
-
const contents = {
|
|
2116
|
-
name: "ConflictException",
|
|
2117
|
-
$fault: "client",
|
|
2118
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2119
|
-
message: undefined,
|
|
2120
|
-
};
|
|
1671
|
+
const contents = {};
|
|
2121
1672
|
const data = parsedOutput.body;
|
|
2122
1673
|
if (data.message !== undefined && data.message !== null) {
|
|
2123
1674
|
contents.message = smithy_client_1.expectString(data.message);
|
|
2124
1675
|
}
|
|
2125
|
-
|
|
1676
|
+
const exception = new models_0_1.ConflictException({
|
|
1677
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1678
|
+
...contents,
|
|
1679
|
+
});
|
|
1680
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2126
1681
|
};
|
|
2127
1682
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
2128
|
-
const contents = {
|
|
2129
|
-
name: "InternalServerException",
|
|
2130
|
-
$fault: "server",
|
|
2131
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2132
|
-
message: undefined,
|
|
2133
|
-
};
|
|
1683
|
+
const contents = {};
|
|
2134
1684
|
const data = parsedOutput.body;
|
|
2135
1685
|
if (data.message !== undefined && data.message !== null) {
|
|
2136
1686
|
contents.message = smithy_client_1.expectString(data.message);
|
|
2137
1687
|
}
|
|
2138
|
-
|
|
1688
|
+
const exception = new models_0_1.InternalServerException({
|
|
1689
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1690
|
+
...contents,
|
|
1691
|
+
});
|
|
1692
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2139
1693
|
};
|
|
2140
1694
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2141
|
-
const contents = {
|
|
2142
|
-
name: "ResourceNotFoundException",
|
|
2143
|
-
$fault: "client",
|
|
2144
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2145
|
-
message: undefined,
|
|
2146
|
-
};
|
|
1695
|
+
const contents = {};
|
|
2147
1696
|
const data = parsedOutput.body;
|
|
2148
1697
|
if (data.message !== undefined && data.message !== null) {
|
|
2149
1698
|
contents.message = smithy_client_1.expectString(data.message);
|
|
2150
1699
|
}
|
|
2151
|
-
|
|
1700
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
1701
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1702
|
+
...contents,
|
|
1703
|
+
});
|
|
1704
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2152
1705
|
};
|
|
2153
1706
|
const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
2154
|
-
const contents = {
|
|
2155
|
-
name: "ServiceQuotaExceededException",
|
|
2156
|
-
$fault: "client",
|
|
2157
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2158
|
-
message: undefined,
|
|
2159
|
-
};
|
|
1707
|
+
const contents = {};
|
|
2160
1708
|
const data = parsedOutput.body;
|
|
2161
1709
|
if (data.message !== undefined && data.message !== null) {
|
|
2162
1710
|
contents.message = smithy_client_1.expectString(data.message);
|
|
2163
1711
|
}
|
|
2164
|
-
|
|
1712
|
+
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1713
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1714
|
+
...contents,
|
|
1715
|
+
});
|
|
1716
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2165
1717
|
};
|
|
2166
1718
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
2167
|
-
const contents = {
|
|
2168
|
-
name: "ValidationException",
|
|
2169
|
-
$fault: "client",
|
|
2170
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2171
|
-
message: undefined,
|
|
2172
|
-
};
|
|
1719
|
+
const contents = {};
|
|
2173
1720
|
const data = parsedOutput.body;
|
|
2174
1721
|
if (data.message !== undefined && data.message !== null) {
|
|
2175
1722
|
contents.message = smithy_client_1.expectString(data.message);
|
|
2176
1723
|
}
|
|
2177
|
-
|
|
1724
|
+
const exception = new models_0_1.ValidationException({
|
|
1725
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1726
|
+
...contents,
|
|
1727
|
+
});
|
|
1728
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2178
1729
|
};
|
|
2179
1730
|
const serializeAws_restJson1Tags = (input, context) => {
|
|
2180
1731
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
@@ -2205,7 +1756,7 @@ const deserializeAws_restJson1Application = (output, context) => {
|
|
|
2205
1756
|
};
|
|
2206
1757
|
};
|
|
2207
1758
|
const deserializeAws_restJson1ApplicationSummaries = (output, context) => {
|
|
2208
|
-
|
|
1759
|
+
const retVal = (output || [])
|
|
2209
1760
|
.filter((e) => e != null)
|
|
2210
1761
|
.map((entry) => {
|
|
2211
1762
|
if (entry === null) {
|
|
@@ -2213,6 +1764,7 @@ const deserializeAws_restJson1ApplicationSummaries = (output, context) => {
|
|
|
2213
1764
|
}
|
|
2214
1765
|
return deserializeAws_restJson1ApplicationSummary(entry, context);
|
|
2215
1766
|
});
|
|
1767
|
+
return retVal;
|
|
2216
1768
|
};
|
|
2217
1769
|
const deserializeAws_restJson1ApplicationSummary = (output, context) => {
|
|
2218
1770
|
return {
|
|
@@ -2246,7 +1798,7 @@ const deserializeAws_restJson1AttributeGroup = (output, context) => {
|
|
|
2246
1798
|
};
|
|
2247
1799
|
};
|
|
2248
1800
|
const deserializeAws_restJson1AttributeGroupIds = (output, context) => {
|
|
2249
|
-
|
|
1801
|
+
const retVal = (output || [])
|
|
2250
1802
|
.filter((e) => e != null)
|
|
2251
1803
|
.map((entry) => {
|
|
2252
1804
|
if (entry === null) {
|
|
@@ -2254,9 +1806,10 @@ const deserializeAws_restJson1AttributeGroupIds = (output, context) => {
|
|
|
2254
1806
|
}
|
|
2255
1807
|
return smithy_client_1.expectString(entry);
|
|
2256
1808
|
});
|
|
1809
|
+
return retVal;
|
|
2257
1810
|
};
|
|
2258
1811
|
const deserializeAws_restJson1AttributeGroupSummaries = (output, context) => {
|
|
2259
|
-
|
|
1812
|
+
const retVal = (output || [])
|
|
2260
1813
|
.filter((e) => e != null)
|
|
2261
1814
|
.map((entry) => {
|
|
2262
1815
|
if (entry === null) {
|
|
@@ -2264,6 +1817,7 @@ const deserializeAws_restJson1AttributeGroupSummaries = (output, context) => {
|
|
|
2264
1817
|
}
|
|
2265
1818
|
return deserializeAws_restJson1AttributeGroupSummary(entry, context);
|
|
2266
1819
|
});
|
|
1820
|
+
return retVal;
|
|
2267
1821
|
};
|
|
2268
1822
|
const deserializeAws_restJson1AttributeGroupSummary = (output, context) => {
|
|
2269
1823
|
return {
|
|
@@ -2319,7 +1873,7 @@ const deserializeAws_restJson1ResourceIntegrations = (output, context) => {
|
|
|
2319
1873
|
};
|
|
2320
1874
|
};
|
|
2321
1875
|
const deserializeAws_restJson1Resources = (output, context) => {
|
|
2322
|
-
|
|
1876
|
+
const retVal = (output || [])
|
|
2323
1877
|
.filter((e) => e != null)
|
|
2324
1878
|
.map((entry) => {
|
|
2325
1879
|
if (entry === null) {
|
|
@@ -2327,6 +1881,7 @@ const deserializeAws_restJson1Resources = (output, context) => {
|
|
|
2327
1881
|
}
|
|
2328
1882
|
return deserializeAws_restJson1ResourceInfo(entry, context);
|
|
2329
1883
|
});
|
|
1884
|
+
return retVal;
|
|
2330
1885
|
};
|
|
2331
1886
|
const deserializeAws_restJson1Tags = (output, context) => {
|
|
2332
1887
|
return Object.entries(output).reduce((acc, [key, value]) => {
|