@aws-sdk/client-chime-sdk-identity 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 +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/ChimeSDKIdentityServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +123 -2
- package/dist-cjs/protocols/Aws_restJson1.js +319 -1287
- package/dist-es/index.js +1 -0
- package/dist-es/models/ChimeSDKIdentityServiceException.js +12 -0
- package/dist-es/models/models_0.js +114 -1
- package/dist-es/protocols/Aws_restJson1.js +659 -1392
- package/dist-types/ChimeSDKIdentityClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/ChimeSDKIdentityServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +58 -25
- 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/ChimeSDKIdentityClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/ChimeSDKIdentityServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +42 -25
- 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_restJson1UpdateAppInstanceUserEndpointCommand = exports.d
|
|
|
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 ChimeSDKIdentityServiceException_1 = require("../models/ChimeSDKIdentityServiceException");
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
7
9
|
const serializeAws_restJson1CreateAppInstanceCommand = async (input, context) => {
|
|
8
10
|
var _a;
|
|
9
11
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -760,83 +762,37 @@ const deserializeAws_restJson1CreateAppInstanceCommandError = async (output, con
|
|
|
760
762
|
switch (errorCode) {
|
|
761
763
|
case "BadRequestException":
|
|
762
764
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
763
|
-
|
|
764
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
765
|
-
name: errorCode,
|
|
766
|
-
$metadata: deserializeMetadata(output),
|
|
767
|
-
};
|
|
768
|
-
break;
|
|
765
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
769
766
|
case "ConflictException":
|
|
770
767
|
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
771
|
-
|
|
772
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
773
|
-
name: errorCode,
|
|
774
|
-
$metadata: deserializeMetadata(output),
|
|
775
|
-
};
|
|
776
|
-
break;
|
|
768
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
777
769
|
case "ForbiddenException":
|
|
778
770
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
779
|
-
|
|
780
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
781
|
-
name: errorCode,
|
|
782
|
-
$metadata: deserializeMetadata(output),
|
|
783
|
-
};
|
|
784
|
-
break;
|
|
771
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
785
772
|
case "ResourceLimitExceededException":
|
|
786
773
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
787
|
-
|
|
788
|
-
...(await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
789
|
-
name: errorCode,
|
|
790
|
-
$metadata: deserializeMetadata(output),
|
|
791
|
-
};
|
|
792
|
-
break;
|
|
774
|
+
throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
793
775
|
case "ServiceFailureException":
|
|
794
776
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
795
|
-
|
|
796
|
-
...(await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)),
|
|
797
|
-
name: errorCode,
|
|
798
|
-
$metadata: deserializeMetadata(output),
|
|
799
|
-
};
|
|
800
|
-
break;
|
|
777
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
801
778
|
case "ServiceUnavailableException":
|
|
802
779
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
803
|
-
|
|
804
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
805
|
-
name: errorCode,
|
|
806
|
-
$metadata: deserializeMetadata(output),
|
|
807
|
-
};
|
|
808
|
-
break;
|
|
780
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
809
781
|
case "ThrottledClientException":
|
|
810
782
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
811
|
-
|
|
812
|
-
...(await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)),
|
|
813
|
-
name: errorCode,
|
|
814
|
-
$metadata: deserializeMetadata(output),
|
|
815
|
-
};
|
|
816
|
-
break;
|
|
783
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
817
784
|
case "UnauthorizedClientException":
|
|
818
785
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
819
|
-
|
|
820
|
-
...(await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)),
|
|
821
|
-
name: errorCode,
|
|
822
|
-
$metadata: deserializeMetadata(output),
|
|
823
|
-
};
|
|
824
|
-
break;
|
|
786
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
825
787
|
default:
|
|
826
788
|
const parsedBody = parsedOutput.body;
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
...parsedBody,
|
|
830
|
-
name: `${errorCode}`,
|
|
831
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
789
|
+
response = new ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException({
|
|
790
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
832
791
|
$fault: "client",
|
|
833
792
|
$metadata: deserializeMetadata(output),
|
|
834
|
-
};
|
|
793
|
+
});
|
|
794
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
835
795
|
}
|
|
836
|
-
const message = response.message || response.Message || errorCode;
|
|
837
|
-
response.message = message;
|
|
838
|
-
delete response.Message;
|
|
839
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
840
796
|
};
|
|
841
797
|
const deserializeAws_restJson1CreateAppInstanceAdminCommand = async (output, context) => {
|
|
842
798
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -868,83 +824,37 @@ const deserializeAws_restJson1CreateAppInstanceAdminCommandError = async (output
|
|
|
868
824
|
switch (errorCode) {
|
|
869
825
|
case "BadRequestException":
|
|
870
826
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
871
|
-
|
|
872
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
873
|
-
name: errorCode,
|
|
874
|
-
$metadata: deserializeMetadata(output),
|
|
875
|
-
};
|
|
876
|
-
break;
|
|
827
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
877
828
|
case "ConflictException":
|
|
878
829
|
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
879
|
-
|
|
880
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
881
|
-
name: errorCode,
|
|
882
|
-
$metadata: deserializeMetadata(output),
|
|
883
|
-
};
|
|
884
|
-
break;
|
|
830
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
885
831
|
case "ForbiddenException":
|
|
886
832
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
887
|
-
|
|
888
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
889
|
-
name: errorCode,
|
|
890
|
-
$metadata: deserializeMetadata(output),
|
|
891
|
-
};
|
|
892
|
-
break;
|
|
833
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
893
834
|
case "ResourceLimitExceededException":
|
|
894
835
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
895
|
-
|
|
896
|
-
...(await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
897
|
-
name: errorCode,
|
|
898
|
-
$metadata: deserializeMetadata(output),
|
|
899
|
-
};
|
|
900
|
-
break;
|
|
836
|
+
throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
901
837
|
case "ServiceFailureException":
|
|
902
838
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
903
|
-
|
|
904
|
-
...(await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)),
|
|
905
|
-
name: errorCode,
|
|
906
|
-
$metadata: deserializeMetadata(output),
|
|
907
|
-
};
|
|
908
|
-
break;
|
|
839
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
909
840
|
case "ServiceUnavailableException":
|
|
910
841
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
911
|
-
|
|
912
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
913
|
-
name: errorCode,
|
|
914
|
-
$metadata: deserializeMetadata(output),
|
|
915
|
-
};
|
|
916
|
-
break;
|
|
842
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
917
843
|
case "ThrottledClientException":
|
|
918
844
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
919
|
-
|
|
920
|
-
...(await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)),
|
|
921
|
-
name: errorCode,
|
|
922
|
-
$metadata: deserializeMetadata(output),
|
|
923
|
-
};
|
|
924
|
-
break;
|
|
845
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
925
846
|
case "UnauthorizedClientException":
|
|
926
847
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
927
|
-
|
|
928
|
-
...(await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)),
|
|
929
|
-
name: errorCode,
|
|
930
|
-
$metadata: deserializeMetadata(output),
|
|
931
|
-
};
|
|
932
|
-
break;
|
|
848
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
933
849
|
default:
|
|
934
850
|
const parsedBody = parsedOutput.body;
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
...parsedBody,
|
|
938
|
-
name: `${errorCode}`,
|
|
939
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
851
|
+
response = new ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException({
|
|
852
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
940
853
|
$fault: "client",
|
|
941
854
|
$metadata: deserializeMetadata(output),
|
|
942
|
-
};
|
|
855
|
+
});
|
|
856
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
943
857
|
}
|
|
944
|
-
const message = response.message || response.Message || errorCode;
|
|
945
|
-
response.message = message;
|
|
946
|
-
delete response.Message;
|
|
947
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
948
858
|
};
|
|
949
859
|
const deserializeAws_restJson1CreateAppInstanceUserCommand = async (output, context) => {
|
|
950
860
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -972,83 +882,37 @@ const deserializeAws_restJson1CreateAppInstanceUserCommandError = async (output,
|
|
|
972
882
|
switch (errorCode) {
|
|
973
883
|
case "BadRequestException":
|
|
974
884
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
975
|
-
|
|
976
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
977
|
-
name: errorCode,
|
|
978
|
-
$metadata: deserializeMetadata(output),
|
|
979
|
-
};
|
|
980
|
-
break;
|
|
885
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
981
886
|
case "ConflictException":
|
|
982
887
|
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
983
|
-
|
|
984
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
985
|
-
name: errorCode,
|
|
986
|
-
$metadata: deserializeMetadata(output),
|
|
987
|
-
};
|
|
988
|
-
break;
|
|
888
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
989
889
|
case "ForbiddenException":
|
|
990
890
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
991
|
-
|
|
992
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
993
|
-
name: errorCode,
|
|
994
|
-
$metadata: deserializeMetadata(output),
|
|
995
|
-
};
|
|
996
|
-
break;
|
|
891
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
997
892
|
case "ResourceLimitExceededException":
|
|
998
893
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
999
|
-
|
|
1000
|
-
...(await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1001
|
-
name: errorCode,
|
|
1002
|
-
$metadata: deserializeMetadata(output),
|
|
1003
|
-
};
|
|
1004
|
-
break;
|
|
894
|
+
throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
1005
895
|
case "ServiceFailureException":
|
|
1006
896
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1007
|
-
|
|
1008
|
-
...(await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)),
|
|
1009
|
-
name: errorCode,
|
|
1010
|
-
$metadata: deserializeMetadata(output),
|
|
1011
|
-
};
|
|
1012
|
-
break;
|
|
897
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
1013
898
|
case "ServiceUnavailableException":
|
|
1014
899
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1015
|
-
|
|
1016
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1017
|
-
name: errorCode,
|
|
1018
|
-
$metadata: deserializeMetadata(output),
|
|
1019
|
-
};
|
|
1020
|
-
break;
|
|
900
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1021
901
|
case "ThrottledClientException":
|
|
1022
902
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1023
|
-
|
|
1024
|
-
...(await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)),
|
|
1025
|
-
name: errorCode,
|
|
1026
|
-
$metadata: deserializeMetadata(output),
|
|
1027
|
-
};
|
|
1028
|
-
break;
|
|
903
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
1029
904
|
case "UnauthorizedClientException":
|
|
1030
905
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1031
|
-
|
|
1032
|
-
...(await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)),
|
|
1033
|
-
name: errorCode,
|
|
1034
|
-
$metadata: deserializeMetadata(output),
|
|
1035
|
-
};
|
|
1036
|
-
break;
|
|
906
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1037
907
|
default:
|
|
1038
908
|
const parsedBody = parsedOutput.body;
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
...parsedBody,
|
|
1042
|
-
name: `${errorCode}`,
|
|
1043
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
909
|
+
response = new ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException({
|
|
910
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1044
911
|
$fault: "client",
|
|
1045
912
|
$metadata: deserializeMetadata(output),
|
|
1046
|
-
};
|
|
913
|
+
});
|
|
914
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1047
915
|
}
|
|
1048
|
-
const message = response.message || response.Message || errorCode;
|
|
1049
|
-
response.message = message;
|
|
1050
|
-
delete response.Message;
|
|
1051
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1052
916
|
};
|
|
1053
917
|
const deserializeAws_restJson1DeleteAppInstanceCommand = async (output, context) => {
|
|
1054
918
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -1072,75 +936,34 @@ const deserializeAws_restJson1DeleteAppInstanceCommandError = async (output, con
|
|
|
1072
936
|
switch (errorCode) {
|
|
1073
937
|
case "BadRequestException":
|
|
1074
938
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1075
|
-
|
|
1076
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1077
|
-
name: errorCode,
|
|
1078
|
-
$metadata: deserializeMetadata(output),
|
|
1079
|
-
};
|
|
1080
|
-
break;
|
|
939
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1081
940
|
case "ForbiddenException":
|
|
1082
941
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1083
|
-
|
|
1084
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1085
|
-
name: errorCode,
|
|
1086
|
-
$metadata: deserializeMetadata(output),
|
|
1087
|
-
};
|
|
1088
|
-
break;
|
|
942
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1089
943
|
case "ResourceLimitExceededException":
|
|
1090
944
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1091
|
-
|
|
1092
|
-
...(await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1093
|
-
name: errorCode,
|
|
1094
|
-
$metadata: deserializeMetadata(output),
|
|
1095
|
-
};
|
|
1096
|
-
break;
|
|
945
|
+
throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
1097
946
|
case "ServiceFailureException":
|
|
1098
947
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1099
|
-
|
|
1100
|
-
...(await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)),
|
|
1101
|
-
name: errorCode,
|
|
1102
|
-
$metadata: deserializeMetadata(output),
|
|
1103
|
-
};
|
|
1104
|
-
break;
|
|
948
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
1105
949
|
case "ServiceUnavailableException":
|
|
1106
950
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1107
|
-
|
|
1108
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1109
|
-
name: errorCode,
|
|
1110
|
-
$metadata: deserializeMetadata(output),
|
|
1111
|
-
};
|
|
1112
|
-
break;
|
|
951
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1113
952
|
case "ThrottledClientException":
|
|
1114
953
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1115
|
-
|
|
1116
|
-
...(await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)),
|
|
1117
|
-
name: errorCode,
|
|
1118
|
-
$metadata: deserializeMetadata(output),
|
|
1119
|
-
};
|
|
1120
|
-
break;
|
|
954
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
1121
955
|
case "UnauthorizedClientException":
|
|
1122
956
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1123
|
-
|
|
1124
|
-
...(await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)),
|
|
1125
|
-
name: errorCode,
|
|
1126
|
-
$metadata: deserializeMetadata(output),
|
|
1127
|
-
};
|
|
1128
|
-
break;
|
|
957
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1129
958
|
default:
|
|
1130
959
|
const parsedBody = parsedOutput.body;
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
...parsedBody,
|
|
1134
|
-
name: `${errorCode}`,
|
|
1135
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
960
|
+
response = new ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException({
|
|
961
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1136
962
|
$fault: "client",
|
|
1137
963
|
$metadata: deserializeMetadata(output),
|
|
1138
|
-
};
|
|
964
|
+
});
|
|
965
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1139
966
|
}
|
|
1140
|
-
const message = response.message || response.Message || errorCode;
|
|
1141
|
-
response.message = message;
|
|
1142
|
-
delete response.Message;
|
|
1143
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1144
967
|
};
|
|
1145
968
|
const deserializeAws_restJson1DeleteAppInstanceAdminCommand = async (output, context) => {
|
|
1146
969
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -1164,83 +987,37 @@ const deserializeAws_restJson1DeleteAppInstanceAdminCommandError = async (output
|
|
|
1164
987
|
switch (errorCode) {
|
|
1165
988
|
case "BadRequestException":
|
|
1166
989
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1167
|
-
|
|
1168
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1169
|
-
name: errorCode,
|
|
1170
|
-
$metadata: deserializeMetadata(output),
|
|
1171
|
-
};
|
|
1172
|
-
break;
|
|
990
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1173
991
|
case "ConflictException":
|
|
1174
992
|
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
1175
|
-
|
|
1176
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1177
|
-
name: errorCode,
|
|
1178
|
-
$metadata: deserializeMetadata(output),
|
|
1179
|
-
};
|
|
1180
|
-
break;
|
|
993
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1181
994
|
case "ForbiddenException":
|
|
1182
995
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1183
|
-
|
|
1184
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1185
|
-
name: errorCode,
|
|
1186
|
-
$metadata: deserializeMetadata(output),
|
|
1187
|
-
};
|
|
1188
|
-
break;
|
|
996
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1189
997
|
case "ResourceLimitExceededException":
|
|
1190
998
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1191
|
-
|
|
1192
|
-
...(await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1193
|
-
name: errorCode,
|
|
1194
|
-
$metadata: deserializeMetadata(output),
|
|
1195
|
-
};
|
|
1196
|
-
break;
|
|
999
|
+
throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
1197
1000
|
case "ServiceFailureException":
|
|
1198
1001
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1199
|
-
|
|
1200
|
-
...(await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)),
|
|
1201
|
-
name: errorCode,
|
|
1202
|
-
$metadata: deserializeMetadata(output),
|
|
1203
|
-
};
|
|
1204
|
-
break;
|
|
1002
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
1205
1003
|
case "ServiceUnavailableException":
|
|
1206
1004
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1207
|
-
|
|
1208
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1209
|
-
name: errorCode,
|
|
1210
|
-
$metadata: deserializeMetadata(output),
|
|
1211
|
-
};
|
|
1212
|
-
break;
|
|
1005
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1213
1006
|
case "ThrottledClientException":
|
|
1214
1007
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1215
|
-
|
|
1216
|
-
...(await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)),
|
|
1217
|
-
name: errorCode,
|
|
1218
|
-
$metadata: deserializeMetadata(output),
|
|
1219
|
-
};
|
|
1220
|
-
break;
|
|
1008
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
1221
1009
|
case "UnauthorizedClientException":
|
|
1222
1010
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1223
|
-
|
|
1224
|
-
...(await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)),
|
|
1225
|
-
name: errorCode,
|
|
1226
|
-
$metadata: deserializeMetadata(output),
|
|
1227
|
-
};
|
|
1228
|
-
break;
|
|
1011
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1229
1012
|
default:
|
|
1230
1013
|
const parsedBody = parsedOutput.body;
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
...parsedBody,
|
|
1234
|
-
name: `${errorCode}`,
|
|
1235
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1014
|
+
response = new ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException({
|
|
1015
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1236
1016
|
$fault: "client",
|
|
1237
1017
|
$metadata: deserializeMetadata(output),
|
|
1238
|
-
};
|
|
1018
|
+
});
|
|
1019
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1239
1020
|
}
|
|
1240
|
-
const message = response.message || response.Message || errorCode;
|
|
1241
|
-
response.message = message;
|
|
1242
|
-
delete response.Message;
|
|
1243
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1244
1021
|
};
|
|
1245
1022
|
const deserializeAws_restJson1DeleteAppInstanceUserCommand = async (output, context) => {
|
|
1246
1023
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -1264,83 +1041,37 @@ const deserializeAws_restJson1DeleteAppInstanceUserCommandError = async (output,
|
|
|
1264
1041
|
switch (errorCode) {
|
|
1265
1042
|
case "BadRequestException":
|
|
1266
1043
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1267
|
-
|
|
1268
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1269
|
-
name: errorCode,
|
|
1270
|
-
$metadata: deserializeMetadata(output),
|
|
1271
|
-
};
|
|
1272
|
-
break;
|
|
1044
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1273
1045
|
case "ConflictException":
|
|
1274
1046
|
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
1275
|
-
|
|
1276
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1277
|
-
name: errorCode,
|
|
1278
|
-
$metadata: deserializeMetadata(output),
|
|
1279
|
-
};
|
|
1280
|
-
break;
|
|
1047
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1281
1048
|
case "ForbiddenException":
|
|
1282
1049
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1283
|
-
|
|
1284
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1285
|
-
name: errorCode,
|
|
1286
|
-
$metadata: deserializeMetadata(output),
|
|
1287
|
-
};
|
|
1288
|
-
break;
|
|
1050
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1289
1051
|
case "ResourceLimitExceededException":
|
|
1290
1052
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1291
|
-
|
|
1292
|
-
...(await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1293
|
-
name: errorCode,
|
|
1294
|
-
$metadata: deserializeMetadata(output),
|
|
1295
|
-
};
|
|
1296
|
-
break;
|
|
1053
|
+
throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
1297
1054
|
case "ServiceFailureException":
|
|
1298
1055
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1299
|
-
|
|
1300
|
-
...(await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)),
|
|
1301
|
-
name: errorCode,
|
|
1302
|
-
$metadata: deserializeMetadata(output),
|
|
1303
|
-
};
|
|
1304
|
-
break;
|
|
1056
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
1305
1057
|
case "ServiceUnavailableException":
|
|
1306
1058
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1307
|
-
|
|
1308
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1309
|
-
name: errorCode,
|
|
1310
|
-
$metadata: deserializeMetadata(output),
|
|
1311
|
-
};
|
|
1312
|
-
break;
|
|
1059
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1313
1060
|
case "ThrottledClientException":
|
|
1314
1061
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1315
|
-
|
|
1316
|
-
...(await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)),
|
|
1317
|
-
name: errorCode,
|
|
1318
|
-
$metadata: deserializeMetadata(output),
|
|
1319
|
-
};
|
|
1320
|
-
break;
|
|
1062
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
1321
1063
|
case "UnauthorizedClientException":
|
|
1322
1064
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1323
|
-
|
|
1324
|
-
...(await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)),
|
|
1325
|
-
name: errorCode,
|
|
1326
|
-
$metadata: deserializeMetadata(output),
|
|
1327
|
-
};
|
|
1328
|
-
break;
|
|
1065
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1329
1066
|
default:
|
|
1330
1067
|
const parsedBody = parsedOutput.body;
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
...parsedBody,
|
|
1334
|
-
name: `${errorCode}`,
|
|
1335
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1068
|
+
response = new ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException({
|
|
1069
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1336
1070
|
$fault: "client",
|
|
1337
1071
|
$metadata: deserializeMetadata(output),
|
|
1338
|
-
};
|
|
1072
|
+
});
|
|
1073
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1339
1074
|
}
|
|
1340
|
-
const message = response.message || response.Message || errorCode;
|
|
1341
|
-
response.message = message;
|
|
1342
|
-
delete response.Message;
|
|
1343
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1344
1075
|
};
|
|
1345
1076
|
const deserializeAws_restJson1DeregisterAppInstanceUserEndpointCommand = async (output, context) => {
|
|
1346
1077
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -1364,67 +1095,31 @@ const deserializeAws_restJson1DeregisterAppInstanceUserEndpointCommandError = as
|
|
|
1364
1095
|
switch (errorCode) {
|
|
1365
1096
|
case "BadRequestException":
|
|
1366
1097
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1367
|
-
|
|
1368
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1369
|
-
name: errorCode,
|
|
1370
|
-
$metadata: deserializeMetadata(output),
|
|
1371
|
-
};
|
|
1372
|
-
break;
|
|
1098
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1373
1099
|
case "ForbiddenException":
|
|
1374
1100
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1375
|
-
|
|
1376
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1377
|
-
name: errorCode,
|
|
1378
|
-
$metadata: deserializeMetadata(output),
|
|
1379
|
-
};
|
|
1380
|
-
break;
|
|
1101
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1381
1102
|
case "ServiceFailureException":
|
|
1382
1103
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1383
|
-
|
|
1384
|
-
...(await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)),
|
|
1385
|
-
name: errorCode,
|
|
1386
|
-
$metadata: deserializeMetadata(output),
|
|
1387
|
-
};
|
|
1388
|
-
break;
|
|
1104
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
1389
1105
|
case "ServiceUnavailableException":
|
|
1390
1106
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1391
|
-
|
|
1392
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1393
|
-
name: errorCode,
|
|
1394
|
-
$metadata: deserializeMetadata(output),
|
|
1395
|
-
};
|
|
1396
|
-
break;
|
|
1107
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1397
1108
|
case "ThrottledClientException":
|
|
1398
1109
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1399
|
-
|
|
1400
|
-
...(await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)),
|
|
1401
|
-
name: errorCode,
|
|
1402
|
-
$metadata: deserializeMetadata(output),
|
|
1403
|
-
};
|
|
1404
|
-
break;
|
|
1110
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
1405
1111
|
case "UnauthorizedClientException":
|
|
1406
1112
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1407
|
-
|
|
1408
|
-
...(await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)),
|
|
1409
|
-
name: errorCode,
|
|
1410
|
-
$metadata: deserializeMetadata(output),
|
|
1411
|
-
};
|
|
1412
|
-
break;
|
|
1113
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1413
1114
|
default:
|
|
1414
1115
|
const parsedBody = parsedOutput.body;
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
...parsedBody,
|
|
1418
|
-
name: `${errorCode}`,
|
|
1419
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1116
|
+
response = new ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException({
|
|
1117
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1420
1118
|
$fault: "client",
|
|
1421
1119
|
$metadata: deserializeMetadata(output),
|
|
1422
|
-
};
|
|
1120
|
+
});
|
|
1121
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1423
1122
|
}
|
|
1424
|
-
const message = response.message || response.Message || errorCode;
|
|
1425
|
-
response.message = message;
|
|
1426
|
-
delete response.Message;
|
|
1427
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1428
1123
|
};
|
|
1429
1124
|
const deserializeAws_restJson1DescribeAppInstanceCommand = async (output, context) => {
|
|
1430
1125
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1452,67 +1147,31 @@ const deserializeAws_restJson1DescribeAppInstanceCommandError = async (output, c
|
|
|
1452
1147
|
switch (errorCode) {
|
|
1453
1148
|
case "BadRequestException":
|
|
1454
1149
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1455
|
-
|
|
1456
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1457
|
-
name: errorCode,
|
|
1458
|
-
$metadata: deserializeMetadata(output),
|
|
1459
|
-
};
|
|
1460
|
-
break;
|
|
1150
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1461
1151
|
case "ForbiddenException":
|
|
1462
1152
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1463
|
-
|
|
1464
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1465
|
-
name: errorCode,
|
|
1466
|
-
$metadata: deserializeMetadata(output),
|
|
1467
|
-
};
|
|
1468
|
-
break;
|
|
1153
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1469
1154
|
case "ServiceFailureException":
|
|
1470
1155
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1471
|
-
|
|
1472
|
-
...(await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)),
|
|
1473
|
-
name: errorCode,
|
|
1474
|
-
$metadata: deserializeMetadata(output),
|
|
1475
|
-
};
|
|
1476
|
-
break;
|
|
1156
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
1477
1157
|
case "ServiceUnavailableException":
|
|
1478
1158
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1479
|
-
|
|
1480
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1481
|
-
name: errorCode,
|
|
1482
|
-
$metadata: deserializeMetadata(output),
|
|
1483
|
-
};
|
|
1484
|
-
break;
|
|
1159
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1485
1160
|
case "ThrottledClientException":
|
|
1486
1161
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1487
|
-
|
|
1488
|
-
...(await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)),
|
|
1489
|
-
name: errorCode,
|
|
1490
|
-
$metadata: deserializeMetadata(output),
|
|
1491
|
-
};
|
|
1492
|
-
break;
|
|
1162
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
1493
1163
|
case "UnauthorizedClientException":
|
|
1494
1164
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1495
|
-
|
|
1496
|
-
...(await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)),
|
|
1497
|
-
name: errorCode,
|
|
1498
|
-
$metadata: deserializeMetadata(output),
|
|
1499
|
-
};
|
|
1500
|
-
break;
|
|
1165
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1501
1166
|
default:
|
|
1502
1167
|
const parsedBody = parsedOutput.body;
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
...parsedBody,
|
|
1506
|
-
name: `${errorCode}`,
|
|
1507
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1168
|
+
response = new ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException({
|
|
1169
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1508
1170
|
$fault: "client",
|
|
1509
1171
|
$metadata: deserializeMetadata(output),
|
|
1510
|
-
};
|
|
1172
|
+
});
|
|
1173
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1511
1174
|
}
|
|
1512
|
-
const message = response.message || response.Message || errorCode;
|
|
1513
|
-
response.message = message;
|
|
1514
|
-
delete response.Message;
|
|
1515
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1516
1175
|
};
|
|
1517
1176
|
const deserializeAws_restJson1DescribeAppInstanceAdminCommand = async (output, context) => {
|
|
1518
1177
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1540,67 +1199,31 @@ const deserializeAws_restJson1DescribeAppInstanceAdminCommandError = async (outp
|
|
|
1540
1199
|
switch (errorCode) {
|
|
1541
1200
|
case "BadRequestException":
|
|
1542
1201
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1543
|
-
|
|
1544
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1545
|
-
name: errorCode,
|
|
1546
|
-
$metadata: deserializeMetadata(output),
|
|
1547
|
-
};
|
|
1548
|
-
break;
|
|
1202
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1549
1203
|
case "ForbiddenException":
|
|
1550
1204
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1551
|
-
|
|
1552
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1553
|
-
name: errorCode,
|
|
1554
|
-
$metadata: deserializeMetadata(output),
|
|
1555
|
-
};
|
|
1556
|
-
break;
|
|
1205
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1557
1206
|
case "ServiceFailureException":
|
|
1558
1207
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1559
|
-
|
|
1560
|
-
...(await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)),
|
|
1561
|
-
name: errorCode,
|
|
1562
|
-
$metadata: deserializeMetadata(output),
|
|
1563
|
-
};
|
|
1564
|
-
break;
|
|
1208
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
1565
1209
|
case "ServiceUnavailableException":
|
|
1566
1210
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1567
|
-
|
|
1568
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1569
|
-
name: errorCode,
|
|
1570
|
-
$metadata: deserializeMetadata(output),
|
|
1571
|
-
};
|
|
1572
|
-
break;
|
|
1211
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1573
1212
|
case "ThrottledClientException":
|
|
1574
1213
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1575
|
-
|
|
1576
|
-
...(await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)),
|
|
1577
|
-
name: errorCode,
|
|
1578
|
-
$metadata: deserializeMetadata(output),
|
|
1579
|
-
};
|
|
1580
|
-
break;
|
|
1214
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
1581
1215
|
case "UnauthorizedClientException":
|
|
1582
1216
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1583
|
-
|
|
1584
|
-
...(await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)),
|
|
1585
|
-
name: errorCode,
|
|
1586
|
-
$metadata: deserializeMetadata(output),
|
|
1587
|
-
};
|
|
1588
|
-
break;
|
|
1217
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1589
1218
|
default:
|
|
1590
1219
|
const parsedBody = parsedOutput.body;
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
...parsedBody,
|
|
1594
|
-
name: `${errorCode}`,
|
|
1595
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1220
|
+
response = new ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException({
|
|
1221
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1596
1222
|
$fault: "client",
|
|
1597
1223
|
$metadata: deserializeMetadata(output),
|
|
1598
|
-
};
|
|
1224
|
+
});
|
|
1225
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1599
1226
|
}
|
|
1600
|
-
const message = response.message || response.Message || errorCode;
|
|
1601
|
-
response.message = message;
|
|
1602
|
-
delete response.Message;
|
|
1603
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1604
1227
|
};
|
|
1605
1228
|
const deserializeAws_restJson1DescribeAppInstanceUserCommand = async (output, context) => {
|
|
1606
1229
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1628,67 +1251,31 @@ const deserializeAws_restJson1DescribeAppInstanceUserCommandError = async (outpu
|
|
|
1628
1251
|
switch (errorCode) {
|
|
1629
1252
|
case "BadRequestException":
|
|
1630
1253
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1631
|
-
|
|
1632
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1633
|
-
name: errorCode,
|
|
1634
|
-
$metadata: deserializeMetadata(output),
|
|
1635
|
-
};
|
|
1636
|
-
break;
|
|
1254
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1637
1255
|
case "ForbiddenException":
|
|
1638
1256
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1639
|
-
|
|
1640
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1641
|
-
name: errorCode,
|
|
1642
|
-
$metadata: deserializeMetadata(output),
|
|
1643
|
-
};
|
|
1644
|
-
break;
|
|
1257
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1645
1258
|
case "ServiceFailureException":
|
|
1646
1259
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1647
|
-
|
|
1648
|
-
...(await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)),
|
|
1649
|
-
name: errorCode,
|
|
1650
|
-
$metadata: deserializeMetadata(output),
|
|
1651
|
-
};
|
|
1652
|
-
break;
|
|
1260
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
1653
1261
|
case "ServiceUnavailableException":
|
|
1654
1262
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1655
|
-
|
|
1656
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1657
|
-
name: errorCode,
|
|
1658
|
-
$metadata: deserializeMetadata(output),
|
|
1659
|
-
};
|
|
1660
|
-
break;
|
|
1263
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1661
1264
|
case "ThrottledClientException":
|
|
1662
1265
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1663
|
-
|
|
1664
|
-
...(await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)),
|
|
1665
|
-
name: errorCode,
|
|
1666
|
-
$metadata: deserializeMetadata(output),
|
|
1667
|
-
};
|
|
1668
|
-
break;
|
|
1266
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
1669
1267
|
case "UnauthorizedClientException":
|
|
1670
1268
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1671
|
-
|
|
1672
|
-
...(await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)),
|
|
1673
|
-
name: errorCode,
|
|
1674
|
-
$metadata: deserializeMetadata(output),
|
|
1675
|
-
};
|
|
1676
|
-
break;
|
|
1269
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1677
1270
|
default:
|
|
1678
1271
|
const parsedBody = parsedOutput.body;
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
...parsedBody,
|
|
1682
|
-
name: `${errorCode}`,
|
|
1683
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1272
|
+
response = new ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException({
|
|
1273
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1684
1274
|
$fault: "client",
|
|
1685
1275
|
$metadata: deserializeMetadata(output),
|
|
1686
|
-
};
|
|
1276
|
+
});
|
|
1277
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1687
1278
|
}
|
|
1688
|
-
const message = response.message || response.Message || errorCode;
|
|
1689
|
-
response.message = message;
|
|
1690
|
-
delete response.Message;
|
|
1691
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1692
1279
|
};
|
|
1693
1280
|
const deserializeAws_restJson1DescribeAppInstanceUserEndpointCommand = async (output, context) => {
|
|
1694
1281
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1716,67 +1303,31 @@ const deserializeAws_restJson1DescribeAppInstanceUserEndpointCommandError = asyn
|
|
|
1716
1303
|
switch (errorCode) {
|
|
1717
1304
|
case "BadRequestException":
|
|
1718
1305
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1719
|
-
|
|
1720
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1721
|
-
name: errorCode,
|
|
1722
|
-
$metadata: deserializeMetadata(output),
|
|
1723
|
-
};
|
|
1724
|
-
break;
|
|
1306
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1725
1307
|
case "ForbiddenException":
|
|
1726
1308
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1727
|
-
|
|
1728
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1729
|
-
name: errorCode,
|
|
1730
|
-
$metadata: deserializeMetadata(output),
|
|
1731
|
-
};
|
|
1732
|
-
break;
|
|
1309
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1733
1310
|
case "ServiceFailureException":
|
|
1734
1311
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1735
|
-
|
|
1736
|
-
...(await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)),
|
|
1737
|
-
name: errorCode,
|
|
1738
|
-
$metadata: deserializeMetadata(output),
|
|
1739
|
-
};
|
|
1740
|
-
break;
|
|
1312
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
1741
1313
|
case "ServiceUnavailableException":
|
|
1742
1314
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1743
|
-
|
|
1744
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1745
|
-
name: errorCode,
|
|
1746
|
-
$metadata: deserializeMetadata(output),
|
|
1747
|
-
};
|
|
1748
|
-
break;
|
|
1315
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1749
1316
|
case "ThrottledClientException":
|
|
1750
1317
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1751
|
-
|
|
1752
|
-
...(await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)),
|
|
1753
|
-
name: errorCode,
|
|
1754
|
-
$metadata: deserializeMetadata(output),
|
|
1755
|
-
};
|
|
1756
|
-
break;
|
|
1318
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
1757
1319
|
case "UnauthorizedClientException":
|
|
1758
1320
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1759
|
-
|
|
1760
|
-
...(await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)),
|
|
1761
|
-
name: errorCode,
|
|
1762
|
-
$metadata: deserializeMetadata(output),
|
|
1763
|
-
};
|
|
1764
|
-
break;
|
|
1321
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1765
1322
|
default:
|
|
1766
1323
|
const parsedBody = parsedOutput.body;
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
...parsedBody,
|
|
1770
|
-
name: `${errorCode}`,
|
|
1771
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1324
|
+
response = new ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException({
|
|
1325
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1772
1326
|
$fault: "client",
|
|
1773
1327
|
$metadata: deserializeMetadata(output),
|
|
1774
|
-
};
|
|
1328
|
+
});
|
|
1329
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1775
1330
|
}
|
|
1776
|
-
const message = response.message || response.Message || errorCode;
|
|
1777
|
-
response.message = message;
|
|
1778
|
-
delete response.Message;
|
|
1779
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1780
1331
|
};
|
|
1781
1332
|
const deserializeAws_restJson1GetAppInstanceRetentionSettingsCommand = async (output, context) => {
|
|
1782
1333
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1808,67 +1359,31 @@ const deserializeAws_restJson1GetAppInstanceRetentionSettingsCommandError = asyn
|
|
|
1808
1359
|
switch (errorCode) {
|
|
1809
1360
|
case "BadRequestException":
|
|
1810
1361
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1811
|
-
|
|
1812
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1813
|
-
name: errorCode,
|
|
1814
|
-
$metadata: deserializeMetadata(output),
|
|
1815
|
-
};
|
|
1816
|
-
break;
|
|
1362
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1817
1363
|
case "ForbiddenException":
|
|
1818
1364
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1819
|
-
|
|
1820
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1821
|
-
name: errorCode,
|
|
1822
|
-
$metadata: deserializeMetadata(output),
|
|
1823
|
-
};
|
|
1824
|
-
break;
|
|
1365
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1825
1366
|
case "ServiceFailureException":
|
|
1826
1367
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1827
|
-
|
|
1828
|
-
...(await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)),
|
|
1829
|
-
name: errorCode,
|
|
1830
|
-
$metadata: deserializeMetadata(output),
|
|
1831
|
-
};
|
|
1832
|
-
break;
|
|
1368
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
1833
1369
|
case "ServiceUnavailableException":
|
|
1834
1370
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1835
|
-
|
|
1836
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1837
|
-
name: errorCode,
|
|
1838
|
-
$metadata: deserializeMetadata(output),
|
|
1839
|
-
};
|
|
1840
|
-
break;
|
|
1371
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1841
1372
|
case "ThrottledClientException":
|
|
1842
1373
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1843
|
-
|
|
1844
|
-
...(await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)),
|
|
1845
|
-
name: errorCode,
|
|
1846
|
-
$metadata: deserializeMetadata(output),
|
|
1847
|
-
};
|
|
1848
|
-
break;
|
|
1374
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
1849
1375
|
case "UnauthorizedClientException":
|
|
1850
1376
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1851
|
-
|
|
1852
|
-
...(await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)),
|
|
1853
|
-
name: errorCode,
|
|
1854
|
-
$metadata: deserializeMetadata(output),
|
|
1855
|
-
};
|
|
1856
|
-
break;
|
|
1377
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1857
1378
|
default:
|
|
1858
1379
|
const parsedBody = parsedOutput.body;
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
...parsedBody,
|
|
1862
|
-
name: `${errorCode}`,
|
|
1863
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1380
|
+
response = new ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException({
|
|
1381
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1864
1382
|
$fault: "client",
|
|
1865
1383
|
$metadata: deserializeMetadata(output),
|
|
1866
|
-
};
|
|
1384
|
+
});
|
|
1385
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1867
1386
|
}
|
|
1868
|
-
const message = response.message || response.Message || errorCode;
|
|
1869
|
-
response.message = message;
|
|
1870
|
-
delete response.Message;
|
|
1871
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1872
1387
|
};
|
|
1873
1388
|
const deserializeAws_restJson1ListAppInstanceAdminsCommand = async (output, context) => {
|
|
1874
1389
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1904,75 +1419,34 @@ const deserializeAws_restJson1ListAppInstanceAdminsCommandError = async (output,
|
|
|
1904
1419
|
switch (errorCode) {
|
|
1905
1420
|
case "BadRequestException":
|
|
1906
1421
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1907
|
-
|
|
1908
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1909
|
-
name: errorCode,
|
|
1910
|
-
$metadata: deserializeMetadata(output),
|
|
1911
|
-
};
|
|
1912
|
-
break;
|
|
1422
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1913
1423
|
case "ForbiddenException":
|
|
1914
1424
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1915
|
-
|
|
1916
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1917
|
-
name: errorCode,
|
|
1918
|
-
$metadata: deserializeMetadata(output),
|
|
1919
|
-
};
|
|
1920
|
-
break;
|
|
1425
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1921
1426
|
case "ResourceLimitExceededException":
|
|
1922
1427
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1923
|
-
|
|
1924
|
-
...(await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1925
|
-
name: errorCode,
|
|
1926
|
-
$metadata: deserializeMetadata(output),
|
|
1927
|
-
};
|
|
1928
|
-
break;
|
|
1428
|
+
throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
1929
1429
|
case "ServiceFailureException":
|
|
1930
1430
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1931
|
-
|
|
1932
|
-
...(await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)),
|
|
1933
|
-
name: errorCode,
|
|
1934
|
-
$metadata: deserializeMetadata(output),
|
|
1935
|
-
};
|
|
1936
|
-
break;
|
|
1431
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
1937
1432
|
case "ServiceUnavailableException":
|
|
1938
1433
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1939
|
-
|
|
1940
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1941
|
-
name: errorCode,
|
|
1942
|
-
$metadata: deserializeMetadata(output),
|
|
1943
|
-
};
|
|
1944
|
-
break;
|
|
1434
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1945
1435
|
case "ThrottledClientException":
|
|
1946
1436
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1947
|
-
|
|
1948
|
-
...(await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)),
|
|
1949
|
-
name: errorCode,
|
|
1950
|
-
$metadata: deserializeMetadata(output),
|
|
1951
|
-
};
|
|
1952
|
-
break;
|
|
1437
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
1953
1438
|
case "UnauthorizedClientException":
|
|
1954
1439
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1955
|
-
|
|
1956
|
-
...(await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)),
|
|
1957
|
-
name: errorCode,
|
|
1958
|
-
$metadata: deserializeMetadata(output),
|
|
1959
|
-
};
|
|
1960
|
-
break;
|
|
1440
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1961
1441
|
default:
|
|
1962
1442
|
const parsedBody = parsedOutput.body;
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
...parsedBody,
|
|
1966
|
-
name: `${errorCode}`,
|
|
1967
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1443
|
+
response = new ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException({
|
|
1444
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1968
1445
|
$fault: "client",
|
|
1969
1446
|
$metadata: deserializeMetadata(output),
|
|
1970
|
-
};
|
|
1447
|
+
});
|
|
1448
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1971
1449
|
}
|
|
1972
|
-
const message = response.message || response.Message || errorCode;
|
|
1973
|
-
response.message = message;
|
|
1974
|
-
delete response.Message;
|
|
1975
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1976
1450
|
};
|
|
1977
1451
|
const deserializeAws_restJson1ListAppInstancesCommand = async (output, context) => {
|
|
1978
1452
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2004,67 +1478,31 @@ const deserializeAws_restJson1ListAppInstancesCommandError = async (output, cont
|
|
|
2004
1478
|
switch (errorCode) {
|
|
2005
1479
|
case "BadRequestException":
|
|
2006
1480
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
2007
|
-
|
|
2008
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2009
|
-
name: errorCode,
|
|
2010
|
-
$metadata: deserializeMetadata(output),
|
|
2011
|
-
};
|
|
2012
|
-
break;
|
|
1481
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2013
1482
|
case "ForbiddenException":
|
|
2014
1483
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
2015
|
-
|
|
2016
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
2017
|
-
name: errorCode,
|
|
2018
|
-
$metadata: deserializeMetadata(output),
|
|
2019
|
-
};
|
|
2020
|
-
break;
|
|
1484
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2021
1485
|
case "ServiceFailureException":
|
|
2022
1486
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
2023
|
-
|
|
2024
|
-
...(await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)),
|
|
2025
|
-
name: errorCode,
|
|
2026
|
-
$metadata: deserializeMetadata(output),
|
|
2027
|
-
};
|
|
2028
|
-
break;
|
|
1487
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
2029
1488
|
case "ServiceUnavailableException":
|
|
2030
1489
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
2031
|
-
|
|
2032
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2033
|
-
name: errorCode,
|
|
2034
|
-
$metadata: deserializeMetadata(output),
|
|
2035
|
-
};
|
|
2036
|
-
break;
|
|
1490
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2037
1491
|
case "ThrottledClientException":
|
|
2038
1492
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
2039
|
-
|
|
2040
|
-
...(await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)),
|
|
2041
|
-
name: errorCode,
|
|
2042
|
-
$metadata: deserializeMetadata(output),
|
|
2043
|
-
};
|
|
2044
|
-
break;
|
|
1493
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
2045
1494
|
case "UnauthorizedClientException":
|
|
2046
1495
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
2047
|
-
|
|
2048
|
-
...(await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)),
|
|
2049
|
-
name: errorCode,
|
|
2050
|
-
$metadata: deserializeMetadata(output),
|
|
2051
|
-
};
|
|
2052
|
-
break;
|
|
1496
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2053
1497
|
default:
|
|
2054
1498
|
const parsedBody = parsedOutput.body;
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
...parsedBody,
|
|
2058
|
-
name: `${errorCode}`,
|
|
2059
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1499
|
+
response = new ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException({
|
|
1500
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2060
1501
|
$fault: "client",
|
|
2061
1502
|
$metadata: deserializeMetadata(output),
|
|
2062
|
-
};
|
|
1503
|
+
});
|
|
1504
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2063
1505
|
}
|
|
2064
|
-
const message = response.message || response.Message || errorCode;
|
|
2065
|
-
response.message = message;
|
|
2066
|
-
delete response.Message;
|
|
2067
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2068
1506
|
};
|
|
2069
1507
|
const deserializeAws_restJson1ListAppInstanceUserEndpointsCommand = async (output, context) => {
|
|
2070
1508
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2096,67 +1534,31 @@ const deserializeAws_restJson1ListAppInstanceUserEndpointsCommandError = async (
|
|
|
2096
1534
|
switch (errorCode) {
|
|
2097
1535
|
case "BadRequestException":
|
|
2098
1536
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
2099
|
-
|
|
2100
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2101
|
-
name: errorCode,
|
|
2102
|
-
$metadata: deserializeMetadata(output),
|
|
2103
|
-
};
|
|
2104
|
-
break;
|
|
1537
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2105
1538
|
case "ForbiddenException":
|
|
2106
1539
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
2107
|
-
|
|
2108
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
2109
|
-
name: errorCode,
|
|
2110
|
-
$metadata: deserializeMetadata(output),
|
|
2111
|
-
};
|
|
2112
|
-
break;
|
|
1540
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2113
1541
|
case "ServiceFailureException":
|
|
2114
1542
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
2115
|
-
|
|
2116
|
-
...(await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)),
|
|
2117
|
-
name: errorCode,
|
|
2118
|
-
$metadata: deserializeMetadata(output),
|
|
2119
|
-
};
|
|
2120
|
-
break;
|
|
1543
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
2121
1544
|
case "ServiceUnavailableException":
|
|
2122
1545
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
2123
|
-
|
|
2124
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2125
|
-
name: errorCode,
|
|
2126
|
-
$metadata: deserializeMetadata(output),
|
|
2127
|
-
};
|
|
2128
|
-
break;
|
|
1546
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2129
1547
|
case "ThrottledClientException":
|
|
2130
1548
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
2131
|
-
|
|
2132
|
-
...(await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)),
|
|
2133
|
-
name: errorCode,
|
|
2134
|
-
$metadata: deserializeMetadata(output),
|
|
2135
|
-
};
|
|
2136
|
-
break;
|
|
1549
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
2137
1550
|
case "UnauthorizedClientException":
|
|
2138
1551
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
2139
|
-
|
|
2140
|
-
...(await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)),
|
|
2141
|
-
name: errorCode,
|
|
2142
|
-
$metadata: deserializeMetadata(output),
|
|
2143
|
-
};
|
|
2144
|
-
break;
|
|
1552
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2145
1553
|
default:
|
|
2146
1554
|
const parsedBody = parsedOutput.body;
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
...parsedBody,
|
|
2150
|
-
name: `${errorCode}`,
|
|
2151
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1555
|
+
response = new ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException({
|
|
1556
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2152
1557
|
$fault: "client",
|
|
2153
1558
|
$metadata: deserializeMetadata(output),
|
|
2154
|
-
};
|
|
1559
|
+
});
|
|
1560
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2155
1561
|
}
|
|
2156
|
-
const message = response.message || response.Message || errorCode;
|
|
2157
|
-
response.message = message;
|
|
2158
|
-
delete response.Message;
|
|
2159
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2160
1562
|
};
|
|
2161
1563
|
const deserializeAws_restJson1ListAppInstanceUsersCommand = async (output, context) => {
|
|
2162
1564
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2192,67 +1594,31 @@ const deserializeAws_restJson1ListAppInstanceUsersCommandError = async (output,
|
|
|
2192
1594
|
switch (errorCode) {
|
|
2193
1595
|
case "BadRequestException":
|
|
2194
1596
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
2195
|
-
|
|
2196
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2197
|
-
name: errorCode,
|
|
2198
|
-
$metadata: deserializeMetadata(output),
|
|
2199
|
-
};
|
|
2200
|
-
break;
|
|
1597
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2201
1598
|
case "ForbiddenException":
|
|
2202
1599
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
2203
|
-
|
|
2204
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
2205
|
-
name: errorCode,
|
|
2206
|
-
$metadata: deserializeMetadata(output),
|
|
2207
|
-
};
|
|
2208
|
-
break;
|
|
1600
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2209
1601
|
case "ServiceFailureException":
|
|
2210
1602
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
2211
|
-
|
|
2212
|
-
...(await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)),
|
|
2213
|
-
name: errorCode,
|
|
2214
|
-
$metadata: deserializeMetadata(output),
|
|
2215
|
-
};
|
|
2216
|
-
break;
|
|
1603
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
2217
1604
|
case "ServiceUnavailableException":
|
|
2218
1605
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
2219
|
-
|
|
2220
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2221
|
-
name: errorCode,
|
|
2222
|
-
$metadata: deserializeMetadata(output),
|
|
2223
|
-
};
|
|
2224
|
-
break;
|
|
1606
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2225
1607
|
case "ThrottledClientException":
|
|
2226
1608
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
2227
|
-
|
|
2228
|
-
...(await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)),
|
|
2229
|
-
name: errorCode,
|
|
2230
|
-
$metadata: deserializeMetadata(output),
|
|
2231
|
-
};
|
|
2232
|
-
break;
|
|
1609
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
2233
1610
|
case "UnauthorizedClientException":
|
|
2234
1611
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
2235
|
-
|
|
2236
|
-
...(await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)),
|
|
2237
|
-
name: errorCode,
|
|
2238
|
-
$metadata: deserializeMetadata(output),
|
|
2239
|
-
};
|
|
2240
|
-
break;
|
|
1612
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2241
1613
|
default:
|
|
2242
1614
|
const parsedBody = parsedOutput.body;
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
...parsedBody,
|
|
2246
|
-
name: `${errorCode}`,
|
|
2247
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1615
|
+
response = new ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException({
|
|
1616
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2248
1617
|
$fault: "client",
|
|
2249
1618
|
$metadata: deserializeMetadata(output),
|
|
2250
|
-
};
|
|
1619
|
+
});
|
|
1620
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2251
1621
|
}
|
|
2252
|
-
const message = response.message || response.Message || errorCode;
|
|
2253
|
-
response.message = message;
|
|
2254
|
-
delete response.Message;
|
|
2255
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2256
1622
|
};
|
|
2257
1623
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
2258
1624
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2280,67 +1646,31 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2280
1646
|
switch (errorCode) {
|
|
2281
1647
|
case "BadRequestException":
|
|
2282
1648
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
2283
|
-
|
|
2284
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2285
|
-
name: errorCode,
|
|
2286
|
-
$metadata: deserializeMetadata(output),
|
|
2287
|
-
};
|
|
2288
|
-
break;
|
|
1649
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2289
1650
|
case "ForbiddenException":
|
|
2290
1651
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
2291
|
-
|
|
2292
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
2293
|
-
name: errorCode,
|
|
2294
|
-
$metadata: deserializeMetadata(output),
|
|
2295
|
-
};
|
|
2296
|
-
break;
|
|
1652
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2297
1653
|
case "ServiceFailureException":
|
|
2298
1654
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
2299
|
-
|
|
2300
|
-
...(await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)),
|
|
2301
|
-
name: errorCode,
|
|
2302
|
-
$metadata: deserializeMetadata(output),
|
|
2303
|
-
};
|
|
2304
|
-
break;
|
|
1655
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
2305
1656
|
case "ServiceUnavailableException":
|
|
2306
1657
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
2307
|
-
|
|
2308
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2309
|
-
name: errorCode,
|
|
2310
|
-
$metadata: deserializeMetadata(output),
|
|
2311
|
-
};
|
|
2312
|
-
break;
|
|
1658
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2313
1659
|
case "ThrottledClientException":
|
|
2314
1660
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
2315
|
-
|
|
2316
|
-
...(await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)),
|
|
2317
|
-
name: errorCode,
|
|
2318
|
-
$metadata: deserializeMetadata(output),
|
|
2319
|
-
};
|
|
2320
|
-
break;
|
|
1661
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
2321
1662
|
case "UnauthorizedClientException":
|
|
2322
1663
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
2323
|
-
|
|
2324
|
-
...(await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)),
|
|
2325
|
-
name: errorCode,
|
|
2326
|
-
$metadata: deserializeMetadata(output),
|
|
2327
|
-
};
|
|
2328
|
-
break;
|
|
1664
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2329
1665
|
default:
|
|
2330
1666
|
const parsedBody = parsedOutput.body;
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
...parsedBody,
|
|
2334
|
-
name: `${errorCode}`,
|
|
2335
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1667
|
+
response = new ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException({
|
|
1668
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2336
1669
|
$fault: "client",
|
|
2337
1670
|
$metadata: deserializeMetadata(output),
|
|
2338
|
-
};
|
|
1671
|
+
});
|
|
1672
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2339
1673
|
}
|
|
2340
|
-
const message = response.message || response.Message || errorCode;
|
|
2341
|
-
response.message = message;
|
|
2342
|
-
delete response.Message;
|
|
2343
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2344
1674
|
};
|
|
2345
1675
|
const deserializeAws_restJson1PutAppInstanceRetentionSettingsCommand = async (output, context) => {
|
|
2346
1676
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2372,67 +1702,31 @@ const deserializeAws_restJson1PutAppInstanceRetentionSettingsCommandError = asyn
|
|
|
2372
1702
|
switch (errorCode) {
|
|
2373
1703
|
case "BadRequestException":
|
|
2374
1704
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
2375
|
-
|
|
2376
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2377
|
-
name: errorCode,
|
|
2378
|
-
$metadata: deserializeMetadata(output),
|
|
2379
|
-
};
|
|
2380
|
-
break;
|
|
1705
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2381
1706
|
case "ForbiddenException":
|
|
2382
1707
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
2383
|
-
|
|
2384
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
2385
|
-
name: errorCode,
|
|
2386
|
-
$metadata: deserializeMetadata(output),
|
|
2387
|
-
};
|
|
2388
|
-
break;
|
|
1708
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2389
1709
|
case "ServiceFailureException":
|
|
2390
1710
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
2391
|
-
|
|
2392
|
-
...(await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)),
|
|
2393
|
-
name: errorCode,
|
|
2394
|
-
$metadata: deserializeMetadata(output),
|
|
2395
|
-
};
|
|
2396
|
-
break;
|
|
1711
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
2397
1712
|
case "ServiceUnavailableException":
|
|
2398
1713
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
2399
|
-
|
|
2400
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2401
|
-
name: errorCode,
|
|
2402
|
-
$metadata: deserializeMetadata(output),
|
|
2403
|
-
};
|
|
2404
|
-
break;
|
|
1714
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2405
1715
|
case "ThrottledClientException":
|
|
2406
1716
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
2407
|
-
|
|
2408
|
-
...(await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)),
|
|
2409
|
-
name: errorCode,
|
|
2410
|
-
$metadata: deserializeMetadata(output),
|
|
2411
|
-
};
|
|
2412
|
-
break;
|
|
1717
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
2413
1718
|
case "UnauthorizedClientException":
|
|
2414
1719
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
2415
|
-
|
|
2416
|
-
...(await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)),
|
|
2417
|
-
name: errorCode,
|
|
2418
|
-
$metadata: deserializeMetadata(output),
|
|
2419
|
-
};
|
|
2420
|
-
break;
|
|
1720
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2421
1721
|
default:
|
|
2422
1722
|
const parsedBody = parsedOutput.body;
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
...parsedBody,
|
|
2426
|
-
name: `${errorCode}`,
|
|
2427
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1723
|
+
response = new ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException({
|
|
1724
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2428
1725
|
$fault: "client",
|
|
2429
1726
|
$metadata: deserializeMetadata(output),
|
|
2430
|
-
};
|
|
1727
|
+
});
|
|
1728
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2431
1729
|
}
|
|
2432
|
-
const message = response.message || response.Message || errorCode;
|
|
2433
|
-
response.message = message;
|
|
2434
|
-
delete response.Message;
|
|
2435
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2436
1730
|
};
|
|
2437
1731
|
const deserializeAws_restJson1RegisterAppInstanceUserEndpointCommand = async (output, context) => {
|
|
2438
1732
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -2464,83 +1758,37 @@ const deserializeAws_restJson1RegisterAppInstanceUserEndpointCommandError = asyn
|
|
|
2464
1758
|
switch (errorCode) {
|
|
2465
1759
|
case "BadRequestException":
|
|
2466
1760
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
2467
|
-
|
|
2468
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2469
|
-
name: errorCode,
|
|
2470
|
-
$metadata: deserializeMetadata(output),
|
|
2471
|
-
};
|
|
2472
|
-
break;
|
|
1761
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2473
1762
|
case "ConflictException":
|
|
2474
1763
|
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
2475
|
-
|
|
2476
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2477
|
-
name: errorCode,
|
|
2478
|
-
$metadata: deserializeMetadata(output),
|
|
2479
|
-
};
|
|
2480
|
-
break;
|
|
1764
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2481
1765
|
case "ForbiddenException":
|
|
2482
1766
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
2483
|
-
|
|
2484
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
2485
|
-
name: errorCode,
|
|
2486
|
-
$metadata: deserializeMetadata(output),
|
|
2487
|
-
};
|
|
2488
|
-
break;
|
|
1767
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2489
1768
|
case "ResourceLimitExceededException":
|
|
2490
1769
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
2491
|
-
|
|
2492
|
-
...(await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
2493
|
-
name: errorCode,
|
|
2494
|
-
$metadata: deserializeMetadata(output),
|
|
2495
|
-
};
|
|
2496
|
-
break;
|
|
1770
|
+
throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
2497
1771
|
case "ServiceFailureException":
|
|
2498
1772
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
2499
|
-
|
|
2500
|
-
...(await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)),
|
|
2501
|
-
name: errorCode,
|
|
2502
|
-
$metadata: deserializeMetadata(output),
|
|
2503
|
-
};
|
|
2504
|
-
break;
|
|
1773
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
2505
1774
|
case "ServiceUnavailableException":
|
|
2506
1775
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
2507
|
-
|
|
2508
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2509
|
-
name: errorCode,
|
|
2510
|
-
$metadata: deserializeMetadata(output),
|
|
2511
|
-
};
|
|
2512
|
-
break;
|
|
1776
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2513
1777
|
case "ThrottledClientException":
|
|
2514
1778
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
2515
|
-
|
|
2516
|
-
...(await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)),
|
|
2517
|
-
name: errorCode,
|
|
2518
|
-
$metadata: deserializeMetadata(output),
|
|
2519
|
-
};
|
|
2520
|
-
break;
|
|
1779
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
2521
1780
|
case "UnauthorizedClientException":
|
|
2522
1781
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
2523
|
-
|
|
2524
|
-
...(await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)),
|
|
2525
|
-
name: errorCode,
|
|
2526
|
-
$metadata: deserializeMetadata(output),
|
|
2527
|
-
};
|
|
2528
|
-
break;
|
|
1782
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2529
1783
|
default:
|
|
2530
1784
|
const parsedBody = parsedOutput.body;
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
...parsedBody,
|
|
2534
|
-
name: `${errorCode}`,
|
|
2535
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1785
|
+
response = new ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException({
|
|
1786
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2536
1787
|
$fault: "client",
|
|
2537
1788
|
$metadata: deserializeMetadata(output),
|
|
2538
|
-
};
|
|
1789
|
+
});
|
|
1790
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2539
1791
|
}
|
|
2540
|
-
const message = response.message || response.Message || errorCode;
|
|
2541
|
-
response.message = message;
|
|
2542
|
-
delete response.Message;
|
|
2543
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2544
1792
|
};
|
|
2545
1793
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
2546
1794
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -2564,75 +1812,34 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2564
1812
|
switch (errorCode) {
|
|
2565
1813
|
case "BadRequestException":
|
|
2566
1814
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
2567
|
-
|
|
2568
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2569
|
-
name: errorCode,
|
|
2570
|
-
$metadata: deserializeMetadata(output),
|
|
2571
|
-
};
|
|
2572
|
-
break;
|
|
1815
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2573
1816
|
case "ForbiddenException":
|
|
2574
1817
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
2575
|
-
|
|
2576
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
2577
|
-
name: errorCode,
|
|
2578
|
-
$metadata: deserializeMetadata(output),
|
|
2579
|
-
};
|
|
2580
|
-
break;
|
|
1818
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2581
1819
|
case "ResourceLimitExceededException":
|
|
2582
1820
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
2583
|
-
|
|
2584
|
-
...(await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
2585
|
-
name: errorCode,
|
|
2586
|
-
$metadata: deserializeMetadata(output),
|
|
2587
|
-
};
|
|
2588
|
-
break;
|
|
1821
|
+
throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
2589
1822
|
case "ServiceFailureException":
|
|
2590
1823
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
2591
|
-
|
|
2592
|
-
...(await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)),
|
|
2593
|
-
name: errorCode,
|
|
2594
|
-
$metadata: deserializeMetadata(output),
|
|
2595
|
-
};
|
|
2596
|
-
break;
|
|
1824
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
2597
1825
|
case "ServiceUnavailableException":
|
|
2598
1826
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
2599
|
-
|
|
2600
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2601
|
-
name: errorCode,
|
|
2602
|
-
$metadata: deserializeMetadata(output),
|
|
2603
|
-
};
|
|
2604
|
-
break;
|
|
1827
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2605
1828
|
case "ThrottledClientException":
|
|
2606
1829
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
2607
|
-
|
|
2608
|
-
...(await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)),
|
|
2609
|
-
name: errorCode,
|
|
2610
|
-
$metadata: deserializeMetadata(output),
|
|
2611
|
-
};
|
|
2612
|
-
break;
|
|
1830
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
2613
1831
|
case "UnauthorizedClientException":
|
|
2614
1832
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
2615
|
-
|
|
2616
|
-
...(await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)),
|
|
2617
|
-
name: errorCode,
|
|
2618
|
-
$metadata: deserializeMetadata(output),
|
|
2619
|
-
};
|
|
2620
|
-
break;
|
|
1833
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2621
1834
|
default:
|
|
2622
1835
|
const parsedBody = parsedOutput.body;
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
...parsedBody,
|
|
2626
|
-
name: `${errorCode}`,
|
|
2627
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1836
|
+
response = new ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException({
|
|
1837
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2628
1838
|
$fault: "client",
|
|
2629
1839
|
$metadata: deserializeMetadata(output),
|
|
2630
|
-
};
|
|
1840
|
+
});
|
|
1841
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2631
1842
|
}
|
|
2632
|
-
const message = response.message || response.Message || errorCode;
|
|
2633
|
-
response.message = message;
|
|
2634
|
-
delete response.Message;
|
|
2635
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2636
1843
|
};
|
|
2637
1844
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
2638
1845
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -2656,67 +1863,31 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2656
1863
|
switch (errorCode) {
|
|
2657
1864
|
case "BadRequestException":
|
|
2658
1865
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
2659
|
-
|
|
2660
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2661
|
-
name: errorCode,
|
|
2662
|
-
$metadata: deserializeMetadata(output),
|
|
2663
|
-
};
|
|
2664
|
-
break;
|
|
1866
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2665
1867
|
case "ForbiddenException":
|
|
2666
1868
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
2667
|
-
|
|
2668
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
2669
|
-
name: errorCode,
|
|
2670
|
-
$metadata: deserializeMetadata(output),
|
|
2671
|
-
};
|
|
2672
|
-
break;
|
|
1869
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2673
1870
|
case "ServiceFailureException":
|
|
2674
1871
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
2675
|
-
|
|
2676
|
-
...(await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)),
|
|
2677
|
-
name: errorCode,
|
|
2678
|
-
$metadata: deserializeMetadata(output),
|
|
2679
|
-
};
|
|
2680
|
-
break;
|
|
1872
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
2681
1873
|
case "ServiceUnavailableException":
|
|
2682
1874
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
2683
|
-
|
|
2684
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2685
|
-
name: errorCode,
|
|
2686
|
-
$metadata: deserializeMetadata(output),
|
|
2687
|
-
};
|
|
2688
|
-
break;
|
|
1875
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2689
1876
|
case "ThrottledClientException":
|
|
2690
1877
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
2691
|
-
|
|
2692
|
-
...(await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)),
|
|
2693
|
-
name: errorCode,
|
|
2694
|
-
$metadata: deserializeMetadata(output),
|
|
2695
|
-
};
|
|
2696
|
-
break;
|
|
1878
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
2697
1879
|
case "UnauthorizedClientException":
|
|
2698
1880
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
2699
|
-
|
|
2700
|
-
...(await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)),
|
|
2701
|
-
name: errorCode,
|
|
2702
|
-
$metadata: deserializeMetadata(output),
|
|
2703
|
-
};
|
|
2704
|
-
break;
|
|
1881
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2705
1882
|
default:
|
|
2706
1883
|
const parsedBody = parsedOutput.body;
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
...parsedBody,
|
|
2710
|
-
name: `${errorCode}`,
|
|
2711
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1884
|
+
response = new ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException({
|
|
1885
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2712
1886
|
$fault: "client",
|
|
2713
1887
|
$metadata: deserializeMetadata(output),
|
|
2714
|
-
};
|
|
1888
|
+
});
|
|
1889
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2715
1890
|
}
|
|
2716
|
-
const message = response.message || response.Message || errorCode;
|
|
2717
|
-
response.message = message;
|
|
2718
|
-
delete response.Message;
|
|
2719
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2720
1891
|
};
|
|
2721
1892
|
const deserializeAws_restJson1UpdateAppInstanceCommand = async (output, context) => {
|
|
2722
1893
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2744,75 +1915,34 @@ const deserializeAws_restJson1UpdateAppInstanceCommandError = async (output, con
|
|
|
2744
1915
|
switch (errorCode) {
|
|
2745
1916
|
case "BadRequestException":
|
|
2746
1917
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
2747
|
-
|
|
2748
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2749
|
-
name: errorCode,
|
|
2750
|
-
$metadata: deserializeMetadata(output),
|
|
2751
|
-
};
|
|
2752
|
-
break;
|
|
1918
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2753
1919
|
case "ConflictException":
|
|
2754
1920
|
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
2755
|
-
|
|
2756
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2757
|
-
name: errorCode,
|
|
2758
|
-
$metadata: deserializeMetadata(output),
|
|
2759
|
-
};
|
|
2760
|
-
break;
|
|
1921
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2761
1922
|
case "ForbiddenException":
|
|
2762
1923
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
2763
|
-
|
|
2764
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
2765
|
-
name: errorCode,
|
|
2766
|
-
$metadata: deserializeMetadata(output),
|
|
2767
|
-
};
|
|
2768
|
-
break;
|
|
1924
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2769
1925
|
case "ServiceFailureException":
|
|
2770
1926
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
2771
|
-
|
|
2772
|
-
...(await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)),
|
|
2773
|
-
name: errorCode,
|
|
2774
|
-
$metadata: deserializeMetadata(output),
|
|
2775
|
-
};
|
|
2776
|
-
break;
|
|
1927
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
2777
1928
|
case "ServiceUnavailableException":
|
|
2778
1929
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
2779
|
-
|
|
2780
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2781
|
-
name: errorCode,
|
|
2782
|
-
$metadata: deserializeMetadata(output),
|
|
2783
|
-
};
|
|
2784
|
-
break;
|
|
1930
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2785
1931
|
case "ThrottledClientException":
|
|
2786
1932
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
2787
|
-
|
|
2788
|
-
...(await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)),
|
|
2789
|
-
name: errorCode,
|
|
2790
|
-
$metadata: deserializeMetadata(output),
|
|
2791
|
-
};
|
|
2792
|
-
break;
|
|
1933
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
2793
1934
|
case "UnauthorizedClientException":
|
|
2794
1935
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
2795
|
-
|
|
2796
|
-
...(await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)),
|
|
2797
|
-
name: errorCode,
|
|
2798
|
-
$metadata: deserializeMetadata(output),
|
|
2799
|
-
};
|
|
2800
|
-
break;
|
|
1936
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2801
1937
|
default:
|
|
2802
1938
|
const parsedBody = parsedOutput.body;
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
...parsedBody,
|
|
2806
|
-
name: `${errorCode}`,
|
|
2807
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1939
|
+
response = new ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException({
|
|
1940
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2808
1941
|
$fault: "client",
|
|
2809
1942
|
$metadata: deserializeMetadata(output),
|
|
2810
|
-
};
|
|
1943
|
+
});
|
|
1944
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2811
1945
|
}
|
|
2812
|
-
const message = response.message || response.Message || errorCode;
|
|
2813
|
-
response.message = message;
|
|
2814
|
-
delete response.Message;
|
|
2815
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2816
1946
|
};
|
|
2817
1947
|
const deserializeAws_restJson1UpdateAppInstanceUserCommand = async (output, context) => {
|
|
2818
1948
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2840,83 +1970,37 @@ const deserializeAws_restJson1UpdateAppInstanceUserCommandError = async (output,
|
|
|
2840
1970
|
switch (errorCode) {
|
|
2841
1971
|
case "BadRequestException":
|
|
2842
1972
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
2843
|
-
|
|
2844
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2845
|
-
name: errorCode,
|
|
2846
|
-
$metadata: deserializeMetadata(output),
|
|
2847
|
-
};
|
|
2848
|
-
break;
|
|
1973
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2849
1974
|
case "ConflictException":
|
|
2850
1975
|
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
2851
|
-
|
|
2852
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2853
|
-
name: errorCode,
|
|
2854
|
-
$metadata: deserializeMetadata(output),
|
|
2855
|
-
};
|
|
2856
|
-
break;
|
|
1976
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2857
1977
|
case "ForbiddenException":
|
|
2858
1978
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
2859
|
-
|
|
2860
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
2861
|
-
name: errorCode,
|
|
2862
|
-
$metadata: deserializeMetadata(output),
|
|
2863
|
-
};
|
|
2864
|
-
break;
|
|
1979
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2865
1980
|
case "ResourceLimitExceededException":
|
|
2866
1981
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
2867
|
-
|
|
2868
|
-
...(await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
2869
|
-
name: errorCode,
|
|
2870
|
-
$metadata: deserializeMetadata(output),
|
|
2871
|
-
};
|
|
2872
|
-
break;
|
|
1982
|
+
throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
2873
1983
|
case "ServiceFailureException":
|
|
2874
1984
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
2875
|
-
|
|
2876
|
-
...(await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)),
|
|
2877
|
-
name: errorCode,
|
|
2878
|
-
$metadata: deserializeMetadata(output),
|
|
2879
|
-
};
|
|
2880
|
-
break;
|
|
1985
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
2881
1986
|
case "ServiceUnavailableException":
|
|
2882
1987
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
2883
|
-
|
|
2884
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2885
|
-
name: errorCode,
|
|
2886
|
-
$metadata: deserializeMetadata(output),
|
|
2887
|
-
};
|
|
2888
|
-
break;
|
|
1988
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2889
1989
|
case "ThrottledClientException":
|
|
2890
1990
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
2891
|
-
|
|
2892
|
-
...(await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)),
|
|
2893
|
-
name: errorCode,
|
|
2894
|
-
$metadata: deserializeMetadata(output),
|
|
2895
|
-
};
|
|
2896
|
-
break;
|
|
1991
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
2897
1992
|
case "UnauthorizedClientException":
|
|
2898
1993
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
2899
|
-
|
|
2900
|
-
...(await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)),
|
|
2901
|
-
name: errorCode,
|
|
2902
|
-
$metadata: deserializeMetadata(output),
|
|
2903
|
-
};
|
|
2904
|
-
break;
|
|
1994
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2905
1995
|
default:
|
|
2906
1996
|
const parsedBody = parsedOutput.body;
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
...parsedBody,
|
|
2910
|
-
name: `${errorCode}`,
|
|
2911
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1997
|
+
response = new ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException({
|
|
1998
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2912
1999
|
$fault: "client",
|
|
2913
2000
|
$metadata: deserializeMetadata(output),
|
|
2914
|
-
};
|
|
2001
|
+
});
|
|
2002
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2915
2003
|
}
|
|
2916
|
-
const message = response.message || response.Message || errorCode;
|
|
2917
|
-
response.message = message;
|
|
2918
|
-
delete response.Message;
|
|
2919
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2920
2004
|
};
|
|
2921
2005
|
const deserializeAws_restJson1UpdateAppInstanceUserEndpointCommand = async (output, context) => {
|
|
2922
2006
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2948,84 +2032,37 @@ const deserializeAws_restJson1UpdateAppInstanceUserEndpointCommandError = async
|
|
|
2948
2032
|
switch (errorCode) {
|
|
2949
2033
|
case "BadRequestException":
|
|
2950
2034
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
2951
|
-
|
|
2952
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2953
|
-
name: errorCode,
|
|
2954
|
-
$metadata: deserializeMetadata(output),
|
|
2955
|
-
};
|
|
2956
|
-
break;
|
|
2035
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2957
2036
|
case "ConflictException":
|
|
2958
2037
|
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
2959
|
-
|
|
2960
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2961
|
-
name: errorCode,
|
|
2962
|
-
$metadata: deserializeMetadata(output),
|
|
2963
|
-
};
|
|
2964
|
-
break;
|
|
2038
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2965
2039
|
case "ForbiddenException":
|
|
2966
2040
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
2967
|
-
|
|
2968
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
2969
|
-
name: errorCode,
|
|
2970
|
-
$metadata: deserializeMetadata(output),
|
|
2971
|
-
};
|
|
2972
|
-
break;
|
|
2041
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2973
2042
|
case "ServiceFailureException":
|
|
2974
2043
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
2975
|
-
|
|
2976
|
-
...(await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)),
|
|
2977
|
-
name: errorCode,
|
|
2978
|
-
$metadata: deserializeMetadata(output),
|
|
2979
|
-
};
|
|
2980
|
-
break;
|
|
2044
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
2981
2045
|
case "ServiceUnavailableException":
|
|
2982
2046
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
2983
|
-
|
|
2984
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2985
|
-
name: errorCode,
|
|
2986
|
-
$metadata: deserializeMetadata(output),
|
|
2987
|
-
};
|
|
2988
|
-
break;
|
|
2047
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2989
2048
|
case "ThrottledClientException":
|
|
2990
2049
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
2991
|
-
|
|
2992
|
-
...(await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)),
|
|
2993
|
-
name: errorCode,
|
|
2994
|
-
$metadata: deserializeMetadata(output),
|
|
2995
|
-
};
|
|
2996
|
-
break;
|
|
2050
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
2997
2051
|
case "UnauthorizedClientException":
|
|
2998
2052
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
2999
|
-
|
|
3000
|
-
...(await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)),
|
|
3001
|
-
name: errorCode,
|
|
3002
|
-
$metadata: deserializeMetadata(output),
|
|
3003
|
-
};
|
|
3004
|
-
break;
|
|
2053
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3005
2054
|
default:
|
|
3006
2055
|
const parsedBody = parsedOutput.body;
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
...parsedBody,
|
|
3010
|
-
name: `${errorCode}`,
|
|
3011
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2056
|
+
response = new ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException({
|
|
2057
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3012
2058
|
$fault: "client",
|
|
3013
2059
|
$metadata: deserializeMetadata(output),
|
|
3014
|
-
};
|
|
2060
|
+
});
|
|
2061
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3015
2062
|
}
|
|
3016
|
-
const message = response.message || response.Message || errorCode;
|
|
3017
|
-
response.message = message;
|
|
3018
|
-
delete response.Message;
|
|
3019
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3020
2063
|
};
|
|
3021
2064
|
const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
|
|
3022
|
-
const contents = {
|
|
3023
|
-
name: "BadRequestException",
|
|
3024
|
-
$fault: "client",
|
|
3025
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3026
|
-
Code: undefined,
|
|
3027
|
-
Message: undefined,
|
|
3028
|
-
};
|
|
2065
|
+
const contents = {};
|
|
3029
2066
|
const data = parsedOutput.body;
|
|
3030
2067
|
if (data.Code !== undefined && data.Code !== null) {
|
|
3031
2068
|
contents.Code = smithy_client_1.expectString(data.Code);
|
|
@@ -3033,16 +2070,14 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
|
|
|
3033
2070
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3034
2071
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3035
2072
|
}
|
|
3036
|
-
|
|
2073
|
+
const exception = new models_0_1.BadRequestException({
|
|
2074
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2075
|
+
...contents,
|
|
2076
|
+
});
|
|
2077
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3037
2078
|
};
|
|
3038
2079
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
3039
|
-
const contents = {
|
|
3040
|
-
name: "ConflictException",
|
|
3041
|
-
$fault: "client",
|
|
3042
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3043
|
-
Code: undefined,
|
|
3044
|
-
Message: undefined,
|
|
3045
|
-
};
|
|
2080
|
+
const contents = {};
|
|
3046
2081
|
const data = parsedOutput.body;
|
|
3047
2082
|
if (data.Code !== undefined && data.Code !== null) {
|
|
3048
2083
|
contents.Code = smithy_client_1.expectString(data.Code);
|
|
@@ -3050,16 +2085,14 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
3050
2085
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3051
2086
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3052
2087
|
}
|
|
3053
|
-
|
|
2088
|
+
const exception = new models_0_1.ConflictException({
|
|
2089
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2090
|
+
...contents,
|
|
2091
|
+
});
|
|
2092
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3054
2093
|
};
|
|
3055
2094
|
const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput, context) => {
|
|
3056
|
-
const contents = {
|
|
3057
|
-
name: "ForbiddenException",
|
|
3058
|
-
$fault: "client",
|
|
3059
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3060
|
-
Code: undefined,
|
|
3061
|
-
Message: undefined,
|
|
3062
|
-
};
|
|
2095
|
+
const contents = {};
|
|
3063
2096
|
const data = parsedOutput.body;
|
|
3064
2097
|
if (data.Code !== undefined && data.Code !== null) {
|
|
3065
2098
|
contents.Code = smithy_client_1.expectString(data.Code);
|
|
@@ -3067,16 +2100,14 @@ const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput,
|
|
|
3067
2100
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3068
2101
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3069
2102
|
}
|
|
3070
|
-
|
|
2103
|
+
const exception = new models_0_1.ForbiddenException({
|
|
2104
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2105
|
+
...contents,
|
|
2106
|
+
});
|
|
2107
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3071
2108
|
};
|
|
3072
2109
|
const deserializeAws_restJson1ResourceLimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
3073
|
-
const contents = {
|
|
3074
|
-
name: "ResourceLimitExceededException",
|
|
3075
|
-
$fault: "client",
|
|
3076
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3077
|
-
Code: undefined,
|
|
3078
|
-
Message: undefined,
|
|
3079
|
-
};
|
|
2110
|
+
const contents = {};
|
|
3080
2111
|
const data = parsedOutput.body;
|
|
3081
2112
|
if (data.Code !== undefined && data.Code !== null) {
|
|
3082
2113
|
contents.Code = smithy_client_1.expectString(data.Code);
|
|
@@ -3084,16 +2115,14 @@ const deserializeAws_restJson1ResourceLimitExceededExceptionResponse = async (pa
|
|
|
3084
2115
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3085
2116
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3086
2117
|
}
|
|
3087
|
-
|
|
2118
|
+
const exception = new models_0_1.ResourceLimitExceededException({
|
|
2119
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2120
|
+
...contents,
|
|
2121
|
+
});
|
|
2122
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3088
2123
|
};
|
|
3089
2124
|
const deserializeAws_restJson1ServiceFailureExceptionResponse = async (parsedOutput, context) => {
|
|
3090
|
-
const contents = {
|
|
3091
|
-
name: "ServiceFailureException",
|
|
3092
|
-
$fault: "server",
|
|
3093
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3094
|
-
Code: undefined,
|
|
3095
|
-
Message: undefined,
|
|
3096
|
-
};
|
|
2125
|
+
const contents = {};
|
|
3097
2126
|
const data = parsedOutput.body;
|
|
3098
2127
|
if (data.Code !== undefined && data.Code !== null) {
|
|
3099
2128
|
contents.Code = smithy_client_1.expectString(data.Code);
|
|
@@ -3101,16 +2130,14 @@ const deserializeAws_restJson1ServiceFailureExceptionResponse = async (parsedOut
|
|
|
3101
2130
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3102
2131
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3103
2132
|
}
|
|
3104
|
-
|
|
2133
|
+
const exception = new models_0_1.ServiceFailureException({
|
|
2134
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2135
|
+
...contents,
|
|
2136
|
+
});
|
|
2137
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3105
2138
|
};
|
|
3106
2139
|
const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
|
|
3107
|
-
const contents = {
|
|
3108
|
-
name: "ServiceUnavailableException",
|
|
3109
|
-
$fault: "server",
|
|
3110
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3111
|
-
Code: undefined,
|
|
3112
|
-
Message: undefined,
|
|
3113
|
-
};
|
|
2140
|
+
const contents = {};
|
|
3114
2141
|
const data = parsedOutput.body;
|
|
3115
2142
|
if (data.Code !== undefined && data.Code !== null) {
|
|
3116
2143
|
contents.Code = smithy_client_1.expectString(data.Code);
|
|
@@ -3118,16 +2145,14 @@ const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parse
|
|
|
3118
2145
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3119
2146
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3120
2147
|
}
|
|
3121
|
-
|
|
2148
|
+
const exception = new models_0_1.ServiceUnavailableException({
|
|
2149
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2150
|
+
...contents,
|
|
2151
|
+
});
|
|
2152
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3122
2153
|
};
|
|
3123
2154
|
const deserializeAws_restJson1ThrottledClientExceptionResponse = async (parsedOutput, context) => {
|
|
3124
|
-
const contents = {
|
|
3125
|
-
name: "ThrottledClientException",
|
|
3126
|
-
$fault: "client",
|
|
3127
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3128
|
-
Code: undefined,
|
|
3129
|
-
Message: undefined,
|
|
3130
|
-
};
|
|
2155
|
+
const contents = {};
|
|
3131
2156
|
const data = parsedOutput.body;
|
|
3132
2157
|
if (data.Code !== undefined && data.Code !== null) {
|
|
3133
2158
|
contents.Code = smithy_client_1.expectString(data.Code);
|
|
@@ -3135,16 +2160,14 @@ const deserializeAws_restJson1ThrottledClientExceptionResponse = async (parsedOu
|
|
|
3135
2160
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3136
2161
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3137
2162
|
}
|
|
3138
|
-
|
|
2163
|
+
const exception = new models_0_1.ThrottledClientException({
|
|
2164
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2165
|
+
...contents,
|
|
2166
|
+
});
|
|
2167
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3139
2168
|
};
|
|
3140
2169
|
const deserializeAws_restJson1UnauthorizedClientExceptionResponse = async (parsedOutput, context) => {
|
|
3141
|
-
const contents = {
|
|
3142
|
-
name: "UnauthorizedClientException",
|
|
3143
|
-
$fault: "client",
|
|
3144
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3145
|
-
Code: undefined,
|
|
3146
|
-
Message: undefined,
|
|
3147
|
-
};
|
|
2170
|
+
const contents = {};
|
|
3148
2171
|
const data = parsedOutput.body;
|
|
3149
2172
|
if (data.Code !== undefined && data.Code !== null) {
|
|
3150
2173
|
contents.Code = smithy_client_1.expectString(data.Code);
|
|
@@ -3152,7 +2175,11 @@ const deserializeAws_restJson1UnauthorizedClientExceptionResponse = async (parse
|
|
|
3152
2175
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3153
2176
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3154
2177
|
}
|
|
3155
|
-
|
|
2178
|
+
const exception = new models_0_1.UnauthorizedClientException({
|
|
2179
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2180
|
+
...contents,
|
|
2181
|
+
});
|
|
2182
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3156
2183
|
};
|
|
3157
2184
|
const serializeAws_restJson1AppInstanceRetentionSettings = (input, context) => {
|
|
3158
2185
|
return {
|
|
@@ -3225,7 +2252,7 @@ const deserializeAws_restJson1AppInstanceAdmin = (output, context) => {
|
|
|
3225
2252
|
};
|
|
3226
2253
|
};
|
|
3227
2254
|
const deserializeAws_restJson1AppInstanceAdminList = (output, context) => {
|
|
3228
|
-
|
|
2255
|
+
const retVal = (output || [])
|
|
3229
2256
|
.filter((e) => e != null)
|
|
3230
2257
|
.map((entry) => {
|
|
3231
2258
|
if (entry === null) {
|
|
@@ -3233,6 +2260,7 @@ const deserializeAws_restJson1AppInstanceAdminList = (output, context) => {
|
|
|
3233
2260
|
}
|
|
3234
2261
|
return deserializeAws_restJson1AppInstanceAdminSummary(entry, context);
|
|
3235
2262
|
});
|
|
2263
|
+
return retVal;
|
|
3236
2264
|
};
|
|
3237
2265
|
const deserializeAws_restJson1AppInstanceAdminSummary = (output, context) => {
|
|
3238
2266
|
return {
|
|
@@ -3242,7 +2270,7 @@ const deserializeAws_restJson1AppInstanceAdminSummary = (output, context) => {
|
|
|
3242
2270
|
};
|
|
3243
2271
|
};
|
|
3244
2272
|
const deserializeAws_restJson1AppInstanceList = (output, context) => {
|
|
3245
|
-
|
|
2273
|
+
const retVal = (output || [])
|
|
3246
2274
|
.filter((e) => e != null)
|
|
3247
2275
|
.map((entry) => {
|
|
3248
2276
|
if (entry === null) {
|
|
@@ -3250,6 +2278,7 @@ const deserializeAws_restJson1AppInstanceList = (output, context) => {
|
|
|
3250
2278
|
}
|
|
3251
2279
|
return deserializeAws_restJson1AppInstanceSummary(entry, context);
|
|
3252
2280
|
});
|
|
2281
|
+
return retVal;
|
|
3253
2282
|
};
|
|
3254
2283
|
const deserializeAws_restJson1AppInstanceRetentionSettings = (output, context) => {
|
|
3255
2284
|
return {
|
|
@@ -3313,7 +2342,7 @@ const deserializeAws_restJson1AppInstanceUserEndpointSummary = (output, context)
|
|
|
3313
2342
|
};
|
|
3314
2343
|
};
|
|
3315
2344
|
const deserializeAws_restJson1AppInstanceUserEndpointSummaryList = (output, context) => {
|
|
3316
|
-
|
|
2345
|
+
const retVal = (output || [])
|
|
3317
2346
|
.filter((e) => e != null)
|
|
3318
2347
|
.map((entry) => {
|
|
3319
2348
|
if (entry === null) {
|
|
@@ -3321,9 +2350,10 @@ const deserializeAws_restJson1AppInstanceUserEndpointSummaryList = (output, cont
|
|
|
3321
2350
|
}
|
|
3322
2351
|
return deserializeAws_restJson1AppInstanceUserEndpointSummary(entry, context);
|
|
3323
2352
|
});
|
|
2353
|
+
return retVal;
|
|
3324
2354
|
};
|
|
3325
2355
|
const deserializeAws_restJson1AppInstanceUserList = (output, context) => {
|
|
3326
|
-
|
|
2356
|
+
const retVal = (output || [])
|
|
3327
2357
|
.filter((e) => e != null)
|
|
3328
2358
|
.map((entry) => {
|
|
3329
2359
|
if (entry === null) {
|
|
@@ -3331,6 +2361,7 @@ const deserializeAws_restJson1AppInstanceUserList = (output, context) => {
|
|
|
3331
2361
|
}
|
|
3332
2362
|
return deserializeAws_restJson1AppInstanceUserSummary(entry, context);
|
|
3333
2363
|
});
|
|
2364
|
+
return retVal;
|
|
3334
2365
|
};
|
|
3335
2366
|
const deserializeAws_restJson1AppInstanceUserSummary = (output, context) => {
|
|
3336
2367
|
return {
|
|
@@ -3369,7 +2400,7 @@ const deserializeAws_restJson1Tag = (output, context) => {
|
|
|
3369
2400
|
};
|
|
3370
2401
|
};
|
|
3371
2402
|
const deserializeAws_restJson1TagList = (output, context) => {
|
|
3372
|
-
|
|
2403
|
+
const retVal = (output || [])
|
|
3373
2404
|
.filter((e) => e != null)
|
|
3374
2405
|
.map((entry) => {
|
|
3375
2406
|
if (entry === null) {
|
|
@@ -3377,6 +2408,7 @@ const deserializeAws_restJson1TagList = (output, context) => {
|
|
|
3377
2408
|
}
|
|
3378
2409
|
return deserializeAws_restJson1Tag(entry, context);
|
|
3379
2410
|
});
|
|
2411
|
+
return retVal;
|
|
3380
2412
|
};
|
|
3381
2413
|
const deserializeMetadata = (output) => {
|
|
3382
2414
|
var _a;
|