@aws-sdk/client-accessanalyzer 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/AccessAnalyzerServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +109 -3
- package/dist-cjs/protocols/Aws_restJson1.js +338 -1210
- package/dist-es/index.js +1 -0
- package/dist-es/models/AccessAnalyzerServiceException.js +12 -0
- package/dist-es/models/models_0.js +100 -1
- package/dist-es/protocols/Aws_restJson1.js +691 -1331
- package/dist-types/AccessAnalyzerClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/AccessAnalyzerServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +52 -30
- 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/AccessAnalyzerClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/AccessAnalyzerServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +38 -30
- 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
|
@@ -5,6 +5,7 @@ exports.deserializeAws_restJson1ValidatePolicyCommand = exports.deserializeAws_r
|
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
8
|
+
const AccessAnalyzerServiceException_1 = require("../models/AccessAnalyzerServiceException");
|
|
8
9
|
const models_0_1 = require("../models/models_0");
|
|
9
10
|
const serializeAws_restJson1ApplyArchiveRuleCommand = async (input, context) => {
|
|
10
11
|
var _a;
|
|
@@ -846,59 +847,28 @@ const deserializeAws_restJson1ApplyArchiveRuleCommandError = async (output, cont
|
|
|
846
847
|
switch (errorCode) {
|
|
847
848
|
case "AccessDeniedException":
|
|
848
849
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
849
|
-
|
|
850
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
851
|
-
name: errorCode,
|
|
852
|
-
$metadata: deserializeMetadata(output),
|
|
853
|
-
};
|
|
854
|
-
break;
|
|
850
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
855
851
|
case "InternalServerException":
|
|
856
852
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
857
|
-
|
|
858
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
859
|
-
name: errorCode,
|
|
860
|
-
$metadata: deserializeMetadata(output),
|
|
861
|
-
};
|
|
862
|
-
break;
|
|
853
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
863
854
|
case "ResourceNotFoundException":
|
|
864
855
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
865
|
-
|
|
866
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
867
|
-
name: errorCode,
|
|
868
|
-
$metadata: deserializeMetadata(output),
|
|
869
|
-
};
|
|
870
|
-
break;
|
|
856
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
871
857
|
case "ThrottlingException":
|
|
872
858
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
873
|
-
|
|
874
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
875
|
-
name: errorCode,
|
|
876
|
-
$metadata: deserializeMetadata(output),
|
|
877
|
-
};
|
|
878
|
-
break;
|
|
859
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
879
860
|
case "ValidationException":
|
|
880
861
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
881
|
-
|
|
882
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
883
|
-
name: errorCode,
|
|
884
|
-
$metadata: deserializeMetadata(output),
|
|
885
|
-
};
|
|
886
|
-
break;
|
|
862
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
887
863
|
default:
|
|
888
864
|
const parsedBody = parsedOutput.body;
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
...parsedBody,
|
|
892
|
-
name: `${errorCode}`,
|
|
893
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
865
|
+
response = new AccessAnalyzerServiceException_1.AccessAnalyzerServiceException({
|
|
866
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
894
867
|
$fault: "client",
|
|
895
868
|
$metadata: deserializeMetadata(output),
|
|
896
|
-
};
|
|
869
|
+
});
|
|
870
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
897
871
|
}
|
|
898
|
-
const message = response.message || response.Message || errorCode;
|
|
899
|
-
response.message = message;
|
|
900
|
-
delete response.Message;
|
|
901
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
902
872
|
};
|
|
903
873
|
const deserializeAws_restJson1CancelPolicyGenerationCommand = async (output, context) => {
|
|
904
874
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -922,51 +892,25 @@ const deserializeAws_restJson1CancelPolicyGenerationCommandError = async (output
|
|
|
922
892
|
switch (errorCode) {
|
|
923
893
|
case "AccessDeniedException":
|
|
924
894
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
925
|
-
|
|
926
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
927
|
-
name: errorCode,
|
|
928
|
-
$metadata: deserializeMetadata(output),
|
|
929
|
-
};
|
|
930
|
-
break;
|
|
895
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
931
896
|
case "InternalServerException":
|
|
932
897
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
933
|
-
|
|
934
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
935
|
-
name: errorCode,
|
|
936
|
-
$metadata: deserializeMetadata(output),
|
|
937
|
-
};
|
|
938
|
-
break;
|
|
898
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
939
899
|
case "ThrottlingException":
|
|
940
900
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
941
|
-
|
|
942
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
943
|
-
name: errorCode,
|
|
944
|
-
$metadata: deserializeMetadata(output),
|
|
945
|
-
};
|
|
946
|
-
break;
|
|
901
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
947
902
|
case "ValidationException":
|
|
948
903
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
949
|
-
|
|
950
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
951
|
-
name: errorCode,
|
|
952
|
-
$metadata: deserializeMetadata(output),
|
|
953
|
-
};
|
|
954
|
-
break;
|
|
904
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
955
905
|
default:
|
|
956
906
|
const parsedBody = parsedOutput.body;
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
...parsedBody,
|
|
960
|
-
name: `${errorCode}`,
|
|
961
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
907
|
+
response = new AccessAnalyzerServiceException_1.AccessAnalyzerServiceException({
|
|
908
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
962
909
|
$fault: "client",
|
|
963
910
|
$metadata: deserializeMetadata(output),
|
|
964
|
-
};
|
|
911
|
+
});
|
|
912
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
965
913
|
}
|
|
966
|
-
const message = response.message || response.Message || errorCode;
|
|
967
|
-
response.message = message;
|
|
968
|
-
delete response.Message;
|
|
969
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
970
914
|
};
|
|
971
915
|
const deserializeAws_restJson1CreateAccessPreviewCommand = async (output, context) => {
|
|
972
916
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -994,75 +938,34 @@ const deserializeAws_restJson1CreateAccessPreviewCommandError = async (output, c
|
|
|
994
938
|
switch (errorCode) {
|
|
995
939
|
case "AccessDeniedException":
|
|
996
940
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
997
|
-
|
|
998
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
999
|
-
name: errorCode,
|
|
1000
|
-
$metadata: deserializeMetadata(output),
|
|
1001
|
-
};
|
|
1002
|
-
break;
|
|
941
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1003
942
|
case "ConflictException":
|
|
1004
943
|
case "com.amazonaws.accessanalyzer#ConflictException":
|
|
1005
|
-
|
|
1006
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1007
|
-
name: errorCode,
|
|
1008
|
-
$metadata: deserializeMetadata(output),
|
|
1009
|
-
};
|
|
1010
|
-
break;
|
|
944
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1011
945
|
case "InternalServerException":
|
|
1012
946
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1013
|
-
|
|
1014
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1015
|
-
name: errorCode,
|
|
1016
|
-
$metadata: deserializeMetadata(output),
|
|
1017
|
-
};
|
|
1018
|
-
break;
|
|
947
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1019
948
|
case "ResourceNotFoundException":
|
|
1020
949
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1021
|
-
|
|
1022
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1023
|
-
name: errorCode,
|
|
1024
|
-
$metadata: deserializeMetadata(output),
|
|
1025
|
-
};
|
|
1026
|
-
break;
|
|
950
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1027
951
|
case "ServiceQuotaExceededException":
|
|
1028
952
|
case "com.amazonaws.accessanalyzer#ServiceQuotaExceededException":
|
|
1029
|
-
|
|
1030
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
1031
|
-
name: errorCode,
|
|
1032
|
-
$metadata: deserializeMetadata(output),
|
|
1033
|
-
};
|
|
1034
|
-
break;
|
|
953
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1035
954
|
case "ThrottlingException":
|
|
1036
955
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1037
|
-
|
|
1038
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1039
|
-
name: errorCode,
|
|
1040
|
-
$metadata: deserializeMetadata(output),
|
|
1041
|
-
};
|
|
1042
|
-
break;
|
|
956
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1043
957
|
case "ValidationException":
|
|
1044
958
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1045
|
-
|
|
1046
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1047
|
-
name: errorCode,
|
|
1048
|
-
$metadata: deserializeMetadata(output),
|
|
1049
|
-
};
|
|
1050
|
-
break;
|
|
959
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1051
960
|
default:
|
|
1052
961
|
const parsedBody = parsedOutput.body;
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
...parsedBody,
|
|
1056
|
-
name: `${errorCode}`,
|
|
1057
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
962
|
+
response = new AccessAnalyzerServiceException_1.AccessAnalyzerServiceException({
|
|
963
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1058
964
|
$fault: "client",
|
|
1059
965
|
$metadata: deserializeMetadata(output),
|
|
1060
|
-
};
|
|
966
|
+
});
|
|
967
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1061
968
|
}
|
|
1062
|
-
const message = response.message || response.Message || errorCode;
|
|
1063
|
-
response.message = message;
|
|
1064
|
-
delete response.Message;
|
|
1065
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1066
969
|
};
|
|
1067
970
|
const deserializeAws_restJson1CreateAnalyzerCommand = async (output, context) => {
|
|
1068
971
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1090,67 +993,31 @@ const deserializeAws_restJson1CreateAnalyzerCommandError = async (output, contex
|
|
|
1090
993
|
switch (errorCode) {
|
|
1091
994
|
case "AccessDeniedException":
|
|
1092
995
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1093
|
-
|
|
1094
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1095
|
-
name: errorCode,
|
|
1096
|
-
$metadata: deserializeMetadata(output),
|
|
1097
|
-
};
|
|
1098
|
-
break;
|
|
996
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1099
997
|
case "ConflictException":
|
|
1100
998
|
case "com.amazonaws.accessanalyzer#ConflictException":
|
|
1101
|
-
|
|
1102
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1103
|
-
name: errorCode,
|
|
1104
|
-
$metadata: deserializeMetadata(output),
|
|
1105
|
-
};
|
|
1106
|
-
break;
|
|
999
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1107
1000
|
case "InternalServerException":
|
|
1108
1001
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1109
|
-
|
|
1110
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1111
|
-
name: errorCode,
|
|
1112
|
-
$metadata: deserializeMetadata(output),
|
|
1113
|
-
};
|
|
1114
|
-
break;
|
|
1002
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1115
1003
|
case "ServiceQuotaExceededException":
|
|
1116
1004
|
case "com.amazonaws.accessanalyzer#ServiceQuotaExceededException":
|
|
1117
|
-
|
|
1118
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
1119
|
-
name: errorCode,
|
|
1120
|
-
$metadata: deserializeMetadata(output),
|
|
1121
|
-
};
|
|
1122
|
-
break;
|
|
1005
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1123
1006
|
case "ThrottlingException":
|
|
1124
1007
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1125
|
-
|
|
1126
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1127
|
-
name: errorCode,
|
|
1128
|
-
$metadata: deserializeMetadata(output),
|
|
1129
|
-
};
|
|
1130
|
-
break;
|
|
1008
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1131
1009
|
case "ValidationException":
|
|
1132
1010
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1133
|
-
|
|
1134
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1135
|
-
name: errorCode,
|
|
1136
|
-
$metadata: deserializeMetadata(output),
|
|
1137
|
-
};
|
|
1138
|
-
break;
|
|
1011
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1139
1012
|
default:
|
|
1140
1013
|
const parsedBody = parsedOutput.body;
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
...parsedBody,
|
|
1144
|
-
name: `${errorCode}`,
|
|
1145
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1014
|
+
response = new AccessAnalyzerServiceException_1.AccessAnalyzerServiceException({
|
|
1015
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1146
1016
|
$fault: "client",
|
|
1147
1017
|
$metadata: deserializeMetadata(output),
|
|
1148
|
-
};
|
|
1018
|
+
});
|
|
1019
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1149
1020
|
}
|
|
1150
|
-
const message = response.message || response.Message || errorCode;
|
|
1151
|
-
response.message = message;
|
|
1152
|
-
delete response.Message;
|
|
1153
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1154
1021
|
};
|
|
1155
1022
|
const deserializeAws_restJson1CreateArchiveRuleCommand = async (output, context) => {
|
|
1156
1023
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1174,75 +1041,34 @@ const deserializeAws_restJson1CreateArchiveRuleCommandError = async (output, con
|
|
|
1174
1041
|
switch (errorCode) {
|
|
1175
1042
|
case "AccessDeniedException":
|
|
1176
1043
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1177
|
-
|
|
1178
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1179
|
-
name: errorCode,
|
|
1180
|
-
$metadata: deserializeMetadata(output),
|
|
1181
|
-
};
|
|
1182
|
-
break;
|
|
1044
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1183
1045
|
case "ConflictException":
|
|
1184
1046
|
case "com.amazonaws.accessanalyzer#ConflictException":
|
|
1185
|
-
|
|
1186
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1187
|
-
name: errorCode,
|
|
1188
|
-
$metadata: deserializeMetadata(output),
|
|
1189
|
-
};
|
|
1190
|
-
break;
|
|
1047
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1191
1048
|
case "InternalServerException":
|
|
1192
1049
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1193
|
-
|
|
1194
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1195
|
-
name: errorCode,
|
|
1196
|
-
$metadata: deserializeMetadata(output),
|
|
1197
|
-
};
|
|
1198
|
-
break;
|
|
1050
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1199
1051
|
case "ResourceNotFoundException":
|
|
1200
1052
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1201
|
-
|
|
1202
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1203
|
-
name: errorCode,
|
|
1204
|
-
$metadata: deserializeMetadata(output),
|
|
1205
|
-
};
|
|
1206
|
-
break;
|
|
1053
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1207
1054
|
case "ServiceQuotaExceededException":
|
|
1208
1055
|
case "com.amazonaws.accessanalyzer#ServiceQuotaExceededException":
|
|
1209
|
-
|
|
1210
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
1211
|
-
name: errorCode,
|
|
1212
|
-
$metadata: deserializeMetadata(output),
|
|
1213
|
-
};
|
|
1214
|
-
break;
|
|
1056
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1215
1057
|
case "ThrottlingException":
|
|
1216
1058
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1217
|
-
|
|
1218
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1219
|
-
name: errorCode,
|
|
1220
|
-
$metadata: deserializeMetadata(output),
|
|
1221
|
-
};
|
|
1222
|
-
break;
|
|
1059
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1223
1060
|
case "ValidationException":
|
|
1224
1061
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1225
|
-
|
|
1226
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1227
|
-
name: errorCode,
|
|
1228
|
-
$metadata: deserializeMetadata(output),
|
|
1229
|
-
};
|
|
1230
|
-
break;
|
|
1062
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1231
1063
|
default:
|
|
1232
1064
|
const parsedBody = parsedOutput.body;
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
...parsedBody,
|
|
1236
|
-
name: `${errorCode}`,
|
|
1237
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1065
|
+
response = new AccessAnalyzerServiceException_1.AccessAnalyzerServiceException({
|
|
1066
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1238
1067
|
$fault: "client",
|
|
1239
1068
|
$metadata: deserializeMetadata(output),
|
|
1240
|
-
};
|
|
1069
|
+
});
|
|
1070
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1241
1071
|
}
|
|
1242
|
-
const message = response.message || response.Message || errorCode;
|
|
1243
|
-
response.message = message;
|
|
1244
|
-
delete response.Message;
|
|
1245
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1246
1072
|
};
|
|
1247
1073
|
const deserializeAws_restJson1DeleteAnalyzerCommand = async (output, context) => {
|
|
1248
1074
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1266,59 +1092,28 @@ const deserializeAws_restJson1DeleteAnalyzerCommandError = async (output, contex
|
|
|
1266
1092
|
switch (errorCode) {
|
|
1267
1093
|
case "AccessDeniedException":
|
|
1268
1094
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1269
|
-
|
|
1270
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1271
|
-
name: errorCode,
|
|
1272
|
-
$metadata: deserializeMetadata(output),
|
|
1273
|
-
};
|
|
1274
|
-
break;
|
|
1095
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1275
1096
|
case "InternalServerException":
|
|
1276
1097
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1277
|
-
|
|
1278
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1279
|
-
name: errorCode,
|
|
1280
|
-
$metadata: deserializeMetadata(output),
|
|
1281
|
-
};
|
|
1282
|
-
break;
|
|
1098
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1283
1099
|
case "ResourceNotFoundException":
|
|
1284
1100
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1285
|
-
|
|
1286
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1287
|
-
name: errorCode,
|
|
1288
|
-
$metadata: deserializeMetadata(output),
|
|
1289
|
-
};
|
|
1290
|
-
break;
|
|
1101
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1291
1102
|
case "ThrottlingException":
|
|
1292
1103
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1293
|
-
|
|
1294
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1295
|
-
name: errorCode,
|
|
1296
|
-
$metadata: deserializeMetadata(output),
|
|
1297
|
-
};
|
|
1298
|
-
break;
|
|
1104
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1299
1105
|
case "ValidationException":
|
|
1300
1106
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1301
|
-
|
|
1302
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1303
|
-
name: errorCode,
|
|
1304
|
-
$metadata: deserializeMetadata(output),
|
|
1305
|
-
};
|
|
1306
|
-
break;
|
|
1107
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1307
1108
|
default:
|
|
1308
1109
|
const parsedBody = parsedOutput.body;
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
...parsedBody,
|
|
1312
|
-
name: `${errorCode}`,
|
|
1313
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1110
|
+
response = new AccessAnalyzerServiceException_1.AccessAnalyzerServiceException({
|
|
1111
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1314
1112
|
$fault: "client",
|
|
1315
1113
|
$metadata: deserializeMetadata(output),
|
|
1316
|
-
};
|
|
1114
|
+
});
|
|
1115
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1317
1116
|
}
|
|
1318
|
-
const message = response.message || response.Message || errorCode;
|
|
1319
|
-
response.message = message;
|
|
1320
|
-
delete response.Message;
|
|
1321
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1322
1117
|
};
|
|
1323
1118
|
const deserializeAws_restJson1DeleteArchiveRuleCommand = async (output, context) => {
|
|
1324
1119
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1342,59 +1137,28 @@ const deserializeAws_restJson1DeleteArchiveRuleCommandError = async (output, con
|
|
|
1342
1137
|
switch (errorCode) {
|
|
1343
1138
|
case "AccessDeniedException":
|
|
1344
1139
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1345
|
-
|
|
1346
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1347
|
-
name: errorCode,
|
|
1348
|
-
$metadata: deserializeMetadata(output),
|
|
1349
|
-
};
|
|
1350
|
-
break;
|
|
1140
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1351
1141
|
case "InternalServerException":
|
|
1352
1142
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1353
|
-
|
|
1354
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1355
|
-
name: errorCode,
|
|
1356
|
-
$metadata: deserializeMetadata(output),
|
|
1357
|
-
};
|
|
1358
|
-
break;
|
|
1143
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1359
1144
|
case "ResourceNotFoundException":
|
|
1360
1145
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1361
|
-
|
|
1362
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1363
|
-
name: errorCode,
|
|
1364
|
-
$metadata: deserializeMetadata(output),
|
|
1365
|
-
};
|
|
1366
|
-
break;
|
|
1146
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1367
1147
|
case "ThrottlingException":
|
|
1368
1148
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1369
|
-
|
|
1370
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1371
|
-
name: errorCode,
|
|
1372
|
-
$metadata: deserializeMetadata(output),
|
|
1373
|
-
};
|
|
1374
|
-
break;
|
|
1149
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1375
1150
|
case "ValidationException":
|
|
1376
1151
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1377
|
-
|
|
1378
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1379
|
-
name: errorCode,
|
|
1380
|
-
$metadata: deserializeMetadata(output),
|
|
1381
|
-
};
|
|
1382
|
-
break;
|
|
1152
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1383
1153
|
default:
|
|
1384
1154
|
const parsedBody = parsedOutput.body;
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
...parsedBody,
|
|
1388
|
-
name: `${errorCode}`,
|
|
1389
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1155
|
+
response = new AccessAnalyzerServiceException_1.AccessAnalyzerServiceException({
|
|
1156
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1390
1157
|
$fault: "client",
|
|
1391
1158
|
$metadata: deserializeMetadata(output),
|
|
1392
|
-
};
|
|
1159
|
+
});
|
|
1160
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1393
1161
|
}
|
|
1394
|
-
const message = response.message || response.Message || errorCode;
|
|
1395
|
-
response.message = message;
|
|
1396
|
-
delete response.Message;
|
|
1397
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1398
1162
|
};
|
|
1399
1163
|
const deserializeAws_restJson1GetAccessPreviewCommand = async (output, context) => {
|
|
1400
1164
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1422,59 +1186,28 @@ const deserializeAws_restJson1GetAccessPreviewCommandError = async (output, cont
|
|
|
1422
1186
|
switch (errorCode) {
|
|
1423
1187
|
case "AccessDeniedException":
|
|
1424
1188
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1425
|
-
|
|
1426
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1427
|
-
name: errorCode,
|
|
1428
|
-
$metadata: deserializeMetadata(output),
|
|
1429
|
-
};
|
|
1430
|
-
break;
|
|
1189
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1431
1190
|
case "InternalServerException":
|
|
1432
1191
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1433
|
-
|
|
1434
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1435
|
-
name: errorCode,
|
|
1436
|
-
$metadata: deserializeMetadata(output),
|
|
1437
|
-
};
|
|
1438
|
-
break;
|
|
1192
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1439
1193
|
case "ResourceNotFoundException":
|
|
1440
1194
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1441
|
-
|
|
1442
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1443
|
-
name: errorCode,
|
|
1444
|
-
$metadata: deserializeMetadata(output),
|
|
1445
|
-
};
|
|
1446
|
-
break;
|
|
1195
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1447
1196
|
case "ThrottlingException":
|
|
1448
1197
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1449
|
-
|
|
1450
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1451
|
-
name: errorCode,
|
|
1452
|
-
$metadata: deserializeMetadata(output),
|
|
1453
|
-
};
|
|
1454
|
-
break;
|
|
1198
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1455
1199
|
case "ValidationException":
|
|
1456
1200
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1457
|
-
|
|
1458
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1459
|
-
name: errorCode,
|
|
1460
|
-
$metadata: deserializeMetadata(output),
|
|
1461
|
-
};
|
|
1462
|
-
break;
|
|
1201
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1463
1202
|
default:
|
|
1464
1203
|
const parsedBody = parsedOutput.body;
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
...parsedBody,
|
|
1468
|
-
name: `${errorCode}`,
|
|
1469
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1204
|
+
response = new AccessAnalyzerServiceException_1.AccessAnalyzerServiceException({
|
|
1205
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1470
1206
|
$fault: "client",
|
|
1471
1207
|
$metadata: deserializeMetadata(output),
|
|
1472
|
-
};
|
|
1208
|
+
});
|
|
1209
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1473
1210
|
}
|
|
1474
|
-
const message = response.message || response.Message || errorCode;
|
|
1475
|
-
response.message = message;
|
|
1476
|
-
delete response.Message;
|
|
1477
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1478
1211
|
};
|
|
1479
1212
|
const deserializeAws_restJson1GetAnalyzedResourceCommand = async (output, context) => {
|
|
1480
1213
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1502,59 +1235,28 @@ const deserializeAws_restJson1GetAnalyzedResourceCommandError = async (output, c
|
|
|
1502
1235
|
switch (errorCode) {
|
|
1503
1236
|
case "AccessDeniedException":
|
|
1504
1237
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1505
|
-
|
|
1506
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1507
|
-
name: errorCode,
|
|
1508
|
-
$metadata: deserializeMetadata(output),
|
|
1509
|
-
};
|
|
1510
|
-
break;
|
|
1238
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1511
1239
|
case "InternalServerException":
|
|
1512
1240
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1513
|
-
|
|
1514
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1515
|
-
name: errorCode,
|
|
1516
|
-
$metadata: deserializeMetadata(output),
|
|
1517
|
-
};
|
|
1518
|
-
break;
|
|
1241
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1519
1242
|
case "ResourceNotFoundException":
|
|
1520
1243
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1521
|
-
|
|
1522
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1523
|
-
name: errorCode,
|
|
1524
|
-
$metadata: deserializeMetadata(output),
|
|
1525
|
-
};
|
|
1526
|
-
break;
|
|
1244
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1527
1245
|
case "ThrottlingException":
|
|
1528
1246
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1529
|
-
|
|
1530
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1531
|
-
name: errorCode,
|
|
1532
|
-
$metadata: deserializeMetadata(output),
|
|
1533
|
-
};
|
|
1534
|
-
break;
|
|
1247
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1535
1248
|
case "ValidationException":
|
|
1536
1249
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1537
|
-
|
|
1538
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1539
|
-
name: errorCode,
|
|
1540
|
-
$metadata: deserializeMetadata(output),
|
|
1541
|
-
};
|
|
1542
|
-
break;
|
|
1250
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1543
1251
|
default:
|
|
1544
1252
|
const parsedBody = parsedOutput.body;
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
...parsedBody,
|
|
1548
|
-
name: `${errorCode}`,
|
|
1549
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1253
|
+
response = new AccessAnalyzerServiceException_1.AccessAnalyzerServiceException({
|
|
1254
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1550
1255
|
$fault: "client",
|
|
1551
1256
|
$metadata: deserializeMetadata(output),
|
|
1552
|
-
};
|
|
1257
|
+
});
|
|
1258
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1553
1259
|
}
|
|
1554
|
-
const message = response.message || response.Message || errorCode;
|
|
1555
|
-
response.message = message;
|
|
1556
|
-
delete response.Message;
|
|
1557
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1558
1260
|
};
|
|
1559
1261
|
const deserializeAws_restJson1GetAnalyzerCommand = async (output, context) => {
|
|
1560
1262
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1582,59 +1284,28 @@ const deserializeAws_restJson1GetAnalyzerCommandError = async (output, context)
|
|
|
1582
1284
|
switch (errorCode) {
|
|
1583
1285
|
case "AccessDeniedException":
|
|
1584
1286
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1585
|
-
|
|
1586
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1587
|
-
name: errorCode,
|
|
1588
|
-
$metadata: deserializeMetadata(output),
|
|
1589
|
-
};
|
|
1590
|
-
break;
|
|
1287
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1591
1288
|
case "InternalServerException":
|
|
1592
1289
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1593
|
-
|
|
1594
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1595
|
-
name: errorCode,
|
|
1596
|
-
$metadata: deserializeMetadata(output),
|
|
1597
|
-
};
|
|
1598
|
-
break;
|
|
1290
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1599
1291
|
case "ResourceNotFoundException":
|
|
1600
1292
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1601
|
-
|
|
1602
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1603
|
-
name: errorCode,
|
|
1604
|
-
$metadata: deserializeMetadata(output),
|
|
1605
|
-
};
|
|
1606
|
-
break;
|
|
1293
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1607
1294
|
case "ThrottlingException":
|
|
1608
1295
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1609
|
-
|
|
1610
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1611
|
-
name: errorCode,
|
|
1612
|
-
$metadata: deserializeMetadata(output),
|
|
1613
|
-
};
|
|
1614
|
-
break;
|
|
1296
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1615
1297
|
case "ValidationException":
|
|
1616
1298
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1617
|
-
|
|
1618
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1619
|
-
name: errorCode,
|
|
1620
|
-
$metadata: deserializeMetadata(output),
|
|
1621
|
-
};
|
|
1622
|
-
break;
|
|
1299
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1623
1300
|
default:
|
|
1624
1301
|
const parsedBody = parsedOutput.body;
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
...parsedBody,
|
|
1628
|
-
name: `${errorCode}`,
|
|
1629
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1302
|
+
response = new AccessAnalyzerServiceException_1.AccessAnalyzerServiceException({
|
|
1303
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1630
1304
|
$fault: "client",
|
|
1631
1305
|
$metadata: deserializeMetadata(output),
|
|
1632
|
-
};
|
|
1306
|
+
});
|
|
1307
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1633
1308
|
}
|
|
1634
|
-
const message = response.message || response.Message || errorCode;
|
|
1635
|
-
response.message = message;
|
|
1636
|
-
delete response.Message;
|
|
1637
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1638
1309
|
};
|
|
1639
1310
|
const deserializeAws_restJson1GetArchiveRuleCommand = async (output, context) => {
|
|
1640
1311
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1662,59 +1333,28 @@ const deserializeAws_restJson1GetArchiveRuleCommandError = async (output, contex
|
|
|
1662
1333
|
switch (errorCode) {
|
|
1663
1334
|
case "AccessDeniedException":
|
|
1664
1335
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1665
|
-
|
|
1666
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1667
|
-
name: errorCode,
|
|
1668
|
-
$metadata: deserializeMetadata(output),
|
|
1669
|
-
};
|
|
1670
|
-
break;
|
|
1336
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1671
1337
|
case "InternalServerException":
|
|
1672
1338
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1673
|
-
|
|
1674
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1675
|
-
name: errorCode,
|
|
1676
|
-
$metadata: deserializeMetadata(output),
|
|
1677
|
-
};
|
|
1678
|
-
break;
|
|
1339
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1679
1340
|
case "ResourceNotFoundException":
|
|
1680
1341
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1681
|
-
|
|
1682
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1683
|
-
name: errorCode,
|
|
1684
|
-
$metadata: deserializeMetadata(output),
|
|
1685
|
-
};
|
|
1686
|
-
break;
|
|
1342
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1687
1343
|
case "ThrottlingException":
|
|
1688
1344
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1689
|
-
|
|
1690
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1691
|
-
name: errorCode,
|
|
1692
|
-
$metadata: deserializeMetadata(output),
|
|
1693
|
-
};
|
|
1694
|
-
break;
|
|
1345
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1695
1346
|
case "ValidationException":
|
|
1696
1347
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1697
|
-
|
|
1698
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1699
|
-
name: errorCode,
|
|
1700
|
-
$metadata: deserializeMetadata(output),
|
|
1701
|
-
};
|
|
1702
|
-
break;
|
|
1348
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1703
1349
|
default:
|
|
1704
1350
|
const parsedBody = parsedOutput.body;
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
...parsedBody,
|
|
1708
|
-
name: `${errorCode}`,
|
|
1709
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1351
|
+
response = new AccessAnalyzerServiceException_1.AccessAnalyzerServiceException({
|
|
1352
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1710
1353
|
$fault: "client",
|
|
1711
1354
|
$metadata: deserializeMetadata(output),
|
|
1712
|
-
};
|
|
1355
|
+
});
|
|
1356
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1713
1357
|
}
|
|
1714
|
-
const message = response.message || response.Message || errorCode;
|
|
1715
|
-
response.message = message;
|
|
1716
|
-
delete response.Message;
|
|
1717
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1718
1358
|
};
|
|
1719
1359
|
const deserializeAws_restJson1GetFindingCommand = async (output, context) => {
|
|
1720
1360
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1742,59 +1382,28 @@ const deserializeAws_restJson1GetFindingCommandError = async (output, context) =
|
|
|
1742
1382
|
switch (errorCode) {
|
|
1743
1383
|
case "AccessDeniedException":
|
|
1744
1384
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1745
|
-
|
|
1746
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1747
|
-
name: errorCode,
|
|
1748
|
-
$metadata: deserializeMetadata(output),
|
|
1749
|
-
};
|
|
1750
|
-
break;
|
|
1385
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1751
1386
|
case "InternalServerException":
|
|
1752
1387
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1753
|
-
|
|
1754
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1755
|
-
name: errorCode,
|
|
1756
|
-
$metadata: deserializeMetadata(output),
|
|
1757
|
-
};
|
|
1758
|
-
break;
|
|
1388
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1759
1389
|
case "ResourceNotFoundException":
|
|
1760
1390
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1761
|
-
|
|
1762
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1763
|
-
name: errorCode,
|
|
1764
|
-
$metadata: deserializeMetadata(output),
|
|
1765
|
-
};
|
|
1766
|
-
break;
|
|
1391
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1767
1392
|
case "ThrottlingException":
|
|
1768
1393
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1769
|
-
|
|
1770
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1771
|
-
name: errorCode,
|
|
1772
|
-
$metadata: deserializeMetadata(output),
|
|
1773
|
-
};
|
|
1774
|
-
break;
|
|
1394
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1775
1395
|
case "ValidationException":
|
|
1776
1396
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1777
|
-
|
|
1778
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1779
|
-
name: errorCode,
|
|
1780
|
-
$metadata: deserializeMetadata(output),
|
|
1781
|
-
};
|
|
1782
|
-
break;
|
|
1397
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1783
1398
|
default:
|
|
1784
1399
|
const parsedBody = parsedOutput.body;
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
...parsedBody,
|
|
1788
|
-
name: `${errorCode}`,
|
|
1789
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1400
|
+
response = new AccessAnalyzerServiceException_1.AccessAnalyzerServiceException({
|
|
1401
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1790
1402
|
$fault: "client",
|
|
1791
1403
|
$metadata: deserializeMetadata(output),
|
|
1792
|
-
};
|
|
1404
|
+
});
|
|
1405
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1793
1406
|
}
|
|
1794
|
-
const message = response.message || response.Message || errorCode;
|
|
1795
|
-
response.message = message;
|
|
1796
|
-
delete response.Message;
|
|
1797
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1798
1407
|
};
|
|
1799
1408
|
const deserializeAws_restJson1GetGeneratedPolicyCommand = async (output, context) => {
|
|
1800
1409
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1826,51 +1435,25 @@ const deserializeAws_restJson1GetGeneratedPolicyCommandError = async (output, co
|
|
|
1826
1435
|
switch (errorCode) {
|
|
1827
1436
|
case "AccessDeniedException":
|
|
1828
1437
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1829
|
-
|
|
1830
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1831
|
-
name: errorCode,
|
|
1832
|
-
$metadata: deserializeMetadata(output),
|
|
1833
|
-
};
|
|
1834
|
-
break;
|
|
1438
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1835
1439
|
case "InternalServerException":
|
|
1836
1440
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1837
|
-
|
|
1838
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1839
|
-
name: errorCode,
|
|
1840
|
-
$metadata: deserializeMetadata(output),
|
|
1841
|
-
};
|
|
1842
|
-
break;
|
|
1441
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1843
1442
|
case "ThrottlingException":
|
|
1844
1443
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1845
|
-
|
|
1846
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1847
|
-
name: errorCode,
|
|
1848
|
-
$metadata: deserializeMetadata(output),
|
|
1849
|
-
};
|
|
1850
|
-
break;
|
|
1444
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1851
1445
|
case "ValidationException":
|
|
1852
1446
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1853
|
-
|
|
1854
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1855
|
-
name: errorCode,
|
|
1856
|
-
$metadata: deserializeMetadata(output),
|
|
1857
|
-
};
|
|
1858
|
-
break;
|
|
1447
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1859
1448
|
default:
|
|
1860
1449
|
const parsedBody = parsedOutput.body;
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
...parsedBody,
|
|
1864
|
-
name: `${errorCode}`,
|
|
1865
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1450
|
+
response = new AccessAnalyzerServiceException_1.AccessAnalyzerServiceException({
|
|
1451
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1866
1452
|
$fault: "client",
|
|
1867
1453
|
$metadata: deserializeMetadata(output),
|
|
1868
|
-
};
|
|
1454
|
+
});
|
|
1455
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1869
1456
|
}
|
|
1870
|
-
const message = response.message || response.Message || errorCode;
|
|
1871
|
-
response.message = message;
|
|
1872
|
-
delete response.Message;
|
|
1873
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1874
1457
|
};
|
|
1875
1458
|
const deserializeAws_restJson1ListAccessPreviewFindingsCommand = async (output, context) => {
|
|
1876
1459
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1902,67 +1485,31 @@ const deserializeAws_restJson1ListAccessPreviewFindingsCommandError = async (out
|
|
|
1902
1485
|
switch (errorCode) {
|
|
1903
1486
|
case "AccessDeniedException":
|
|
1904
1487
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1905
|
-
|
|
1906
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1907
|
-
name: errorCode,
|
|
1908
|
-
$metadata: deserializeMetadata(output),
|
|
1909
|
-
};
|
|
1910
|
-
break;
|
|
1488
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1911
1489
|
case "ConflictException":
|
|
1912
1490
|
case "com.amazonaws.accessanalyzer#ConflictException":
|
|
1913
|
-
|
|
1914
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1915
|
-
name: errorCode,
|
|
1916
|
-
$metadata: deserializeMetadata(output),
|
|
1917
|
-
};
|
|
1918
|
-
break;
|
|
1491
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1919
1492
|
case "InternalServerException":
|
|
1920
1493
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1921
|
-
|
|
1922
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1923
|
-
name: errorCode,
|
|
1924
|
-
$metadata: deserializeMetadata(output),
|
|
1925
|
-
};
|
|
1926
|
-
break;
|
|
1494
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1927
1495
|
case "ResourceNotFoundException":
|
|
1928
1496
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1929
|
-
|
|
1930
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1931
|
-
name: errorCode,
|
|
1932
|
-
$metadata: deserializeMetadata(output),
|
|
1933
|
-
};
|
|
1934
|
-
break;
|
|
1497
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1935
1498
|
case "ThrottlingException":
|
|
1936
1499
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1937
|
-
|
|
1938
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1939
|
-
name: errorCode,
|
|
1940
|
-
$metadata: deserializeMetadata(output),
|
|
1941
|
-
};
|
|
1942
|
-
break;
|
|
1500
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1943
1501
|
case "ValidationException":
|
|
1944
1502
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1945
|
-
|
|
1946
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1947
|
-
name: errorCode,
|
|
1948
|
-
$metadata: deserializeMetadata(output),
|
|
1949
|
-
};
|
|
1950
|
-
break;
|
|
1503
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1951
1504
|
default:
|
|
1952
1505
|
const parsedBody = parsedOutput.body;
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
...parsedBody,
|
|
1956
|
-
name: `${errorCode}`,
|
|
1957
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1506
|
+
response = new AccessAnalyzerServiceException_1.AccessAnalyzerServiceException({
|
|
1507
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1958
1508
|
$fault: "client",
|
|
1959
1509
|
$metadata: deserializeMetadata(output),
|
|
1960
|
-
};
|
|
1510
|
+
});
|
|
1511
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1961
1512
|
}
|
|
1962
|
-
const message = response.message || response.Message || errorCode;
|
|
1963
|
-
response.message = message;
|
|
1964
|
-
delete response.Message;
|
|
1965
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1966
1513
|
};
|
|
1967
1514
|
const deserializeAws_restJson1ListAccessPreviewsCommand = async (output, context) => {
|
|
1968
1515
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1994,59 +1541,28 @@ const deserializeAws_restJson1ListAccessPreviewsCommandError = async (output, co
|
|
|
1994
1541
|
switch (errorCode) {
|
|
1995
1542
|
case "AccessDeniedException":
|
|
1996
1543
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1997
|
-
|
|
1998
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1999
|
-
name: errorCode,
|
|
2000
|
-
$metadata: deserializeMetadata(output),
|
|
2001
|
-
};
|
|
2002
|
-
break;
|
|
1544
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2003
1545
|
case "InternalServerException":
|
|
2004
1546
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
2005
|
-
|
|
2006
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2007
|
-
name: errorCode,
|
|
2008
|
-
$metadata: deserializeMetadata(output),
|
|
2009
|
-
};
|
|
2010
|
-
break;
|
|
1547
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2011
1548
|
case "ResourceNotFoundException":
|
|
2012
1549
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
2013
|
-
|
|
2014
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2015
|
-
name: errorCode,
|
|
2016
|
-
$metadata: deserializeMetadata(output),
|
|
2017
|
-
};
|
|
2018
|
-
break;
|
|
1550
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2019
1551
|
case "ThrottlingException":
|
|
2020
1552
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
2021
|
-
|
|
2022
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2023
|
-
name: errorCode,
|
|
2024
|
-
$metadata: deserializeMetadata(output),
|
|
2025
|
-
};
|
|
2026
|
-
break;
|
|
1553
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2027
1554
|
case "ValidationException":
|
|
2028
1555
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
2029
|
-
|
|
2030
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2031
|
-
name: errorCode,
|
|
2032
|
-
$metadata: deserializeMetadata(output),
|
|
2033
|
-
};
|
|
2034
|
-
break;
|
|
1556
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2035
1557
|
default:
|
|
2036
1558
|
const parsedBody = parsedOutput.body;
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
...parsedBody,
|
|
2040
|
-
name: `${errorCode}`,
|
|
2041
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1559
|
+
response = new AccessAnalyzerServiceException_1.AccessAnalyzerServiceException({
|
|
1560
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2042
1561
|
$fault: "client",
|
|
2043
1562
|
$metadata: deserializeMetadata(output),
|
|
2044
|
-
};
|
|
1563
|
+
});
|
|
1564
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2045
1565
|
}
|
|
2046
|
-
const message = response.message || response.Message || errorCode;
|
|
2047
|
-
response.message = message;
|
|
2048
|
-
delete response.Message;
|
|
2049
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2050
1566
|
};
|
|
2051
1567
|
const deserializeAws_restJson1ListAnalyzedResourcesCommand = async (output, context) => {
|
|
2052
1568
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2078,59 +1594,28 @@ const deserializeAws_restJson1ListAnalyzedResourcesCommandError = async (output,
|
|
|
2078
1594
|
switch (errorCode) {
|
|
2079
1595
|
case "AccessDeniedException":
|
|
2080
1596
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
2081
|
-
|
|
2082
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2083
|
-
name: errorCode,
|
|
2084
|
-
$metadata: deserializeMetadata(output),
|
|
2085
|
-
};
|
|
2086
|
-
break;
|
|
1597
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2087
1598
|
case "InternalServerException":
|
|
2088
1599
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
2089
|
-
|
|
2090
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2091
|
-
name: errorCode,
|
|
2092
|
-
$metadata: deserializeMetadata(output),
|
|
2093
|
-
};
|
|
2094
|
-
break;
|
|
1600
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2095
1601
|
case "ResourceNotFoundException":
|
|
2096
1602
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
2097
|
-
|
|
2098
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2099
|
-
name: errorCode,
|
|
2100
|
-
$metadata: deserializeMetadata(output),
|
|
2101
|
-
};
|
|
2102
|
-
break;
|
|
1603
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2103
1604
|
case "ThrottlingException":
|
|
2104
1605
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
2105
|
-
|
|
2106
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2107
|
-
name: errorCode,
|
|
2108
|
-
$metadata: deserializeMetadata(output),
|
|
2109
|
-
};
|
|
2110
|
-
break;
|
|
1606
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2111
1607
|
case "ValidationException":
|
|
2112
1608
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
2113
|
-
|
|
2114
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2115
|
-
name: errorCode,
|
|
2116
|
-
$metadata: deserializeMetadata(output),
|
|
2117
|
-
};
|
|
2118
|
-
break;
|
|
1609
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2119
1610
|
default:
|
|
2120
1611
|
const parsedBody = parsedOutput.body;
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
...parsedBody,
|
|
2124
|
-
name: `${errorCode}`,
|
|
2125
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1612
|
+
response = new AccessAnalyzerServiceException_1.AccessAnalyzerServiceException({
|
|
1613
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2126
1614
|
$fault: "client",
|
|
2127
1615
|
$metadata: deserializeMetadata(output),
|
|
2128
|
-
};
|
|
1616
|
+
});
|
|
1617
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2129
1618
|
}
|
|
2130
|
-
const message = response.message || response.Message || errorCode;
|
|
2131
|
-
response.message = message;
|
|
2132
|
-
delete response.Message;
|
|
2133
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2134
1619
|
};
|
|
2135
1620
|
const deserializeAws_restJson1ListAnalyzersCommand = async (output, context) => {
|
|
2136
1621
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2162,51 +1647,25 @@ const deserializeAws_restJson1ListAnalyzersCommandError = async (output, context
|
|
|
2162
1647
|
switch (errorCode) {
|
|
2163
1648
|
case "AccessDeniedException":
|
|
2164
1649
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
2165
|
-
|
|
2166
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2167
|
-
name: errorCode,
|
|
2168
|
-
$metadata: deserializeMetadata(output),
|
|
2169
|
-
};
|
|
2170
|
-
break;
|
|
1650
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2171
1651
|
case "InternalServerException":
|
|
2172
1652
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
2173
|
-
|
|
2174
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2175
|
-
name: errorCode,
|
|
2176
|
-
$metadata: deserializeMetadata(output),
|
|
2177
|
-
};
|
|
2178
|
-
break;
|
|
1653
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2179
1654
|
case "ThrottlingException":
|
|
2180
1655
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
2181
|
-
|
|
2182
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2183
|
-
name: errorCode,
|
|
2184
|
-
$metadata: deserializeMetadata(output),
|
|
2185
|
-
};
|
|
2186
|
-
break;
|
|
1656
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2187
1657
|
case "ValidationException":
|
|
2188
1658
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
2189
|
-
|
|
2190
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2191
|
-
name: errorCode,
|
|
2192
|
-
$metadata: deserializeMetadata(output),
|
|
2193
|
-
};
|
|
2194
|
-
break;
|
|
1659
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2195
1660
|
default:
|
|
2196
1661
|
const parsedBody = parsedOutput.body;
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
...parsedBody,
|
|
2200
|
-
name: `${errorCode}`,
|
|
2201
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1662
|
+
response = new AccessAnalyzerServiceException_1.AccessAnalyzerServiceException({
|
|
1663
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2202
1664
|
$fault: "client",
|
|
2203
1665
|
$metadata: deserializeMetadata(output),
|
|
2204
|
-
};
|
|
1666
|
+
});
|
|
1667
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2205
1668
|
}
|
|
2206
|
-
const message = response.message || response.Message || errorCode;
|
|
2207
|
-
response.message = message;
|
|
2208
|
-
delete response.Message;
|
|
2209
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2210
1669
|
};
|
|
2211
1670
|
const deserializeAws_restJson1ListArchiveRulesCommand = async (output, context) => {
|
|
2212
1671
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2238,51 +1697,25 @@ const deserializeAws_restJson1ListArchiveRulesCommandError = async (output, cont
|
|
|
2238
1697
|
switch (errorCode) {
|
|
2239
1698
|
case "AccessDeniedException":
|
|
2240
1699
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
2241
|
-
|
|
2242
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2243
|
-
name: errorCode,
|
|
2244
|
-
$metadata: deserializeMetadata(output),
|
|
2245
|
-
};
|
|
2246
|
-
break;
|
|
1700
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2247
1701
|
case "InternalServerException":
|
|
2248
1702
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
2249
|
-
|
|
2250
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2251
|
-
name: errorCode,
|
|
2252
|
-
$metadata: deserializeMetadata(output),
|
|
2253
|
-
};
|
|
2254
|
-
break;
|
|
1703
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2255
1704
|
case "ThrottlingException":
|
|
2256
1705
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
2257
|
-
|
|
2258
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2259
|
-
name: errorCode,
|
|
2260
|
-
$metadata: deserializeMetadata(output),
|
|
2261
|
-
};
|
|
2262
|
-
break;
|
|
1706
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2263
1707
|
case "ValidationException":
|
|
2264
1708
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
2265
|
-
|
|
2266
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2267
|
-
name: errorCode,
|
|
2268
|
-
$metadata: deserializeMetadata(output),
|
|
2269
|
-
};
|
|
2270
|
-
break;
|
|
1709
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2271
1710
|
default:
|
|
2272
1711
|
const parsedBody = parsedOutput.body;
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
...parsedBody,
|
|
2276
|
-
name: `${errorCode}`,
|
|
2277
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1712
|
+
response = new AccessAnalyzerServiceException_1.AccessAnalyzerServiceException({
|
|
1713
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2278
1714
|
$fault: "client",
|
|
2279
1715
|
$metadata: deserializeMetadata(output),
|
|
2280
|
-
};
|
|
1716
|
+
});
|
|
1717
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2281
1718
|
}
|
|
2282
|
-
const message = response.message || response.Message || errorCode;
|
|
2283
|
-
response.message = message;
|
|
2284
|
-
delete response.Message;
|
|
2285
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2286
1719
|
};
|
|
2287
1720
|
const deserializeAws_restJson1ListFindingsCommand = async (output, context) => {
|
|
2288
1721
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2314,59 +1747,28 @@ const deserializeAws_restJson1ListFindingsCommandError = async (output, context)
|
|
|
2314
1747
|
switch (errorCode) {
|
|
2315
1748
|
case "AccessDeniedException":
|
|
2316
1749
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
2317
|
-
|
|
2318
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2319
|
-
name: errorCode,
|
|
2320
|
-
$metadata: deserializeMetadata(output),
|
|
2321
|
-
};
|
|
2322
|
-
break;
|
|
1750
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2323
1751
|
case "InternalServerException":
|
|
2324
1752
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
2325
|
-
|
|
2326
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2327
|
-
name: errorCode,
|
|
2328
|
-
$metadata: deserializeMetadata(output),
|
|
2329
|
-
};
|
|
2330
|
-
break;
|
|
1753
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2331
1754
|
case "ResourceNotFoundException":
|
|
2332
1755
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
2333
|
-
|
|
2334
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2335
|
-
name: errorCode,
|
|
2336
|
-
$metadata: deserializeMetadata(output),
|
|
2337
|
-
};
|
|
2338
|
-
break;
|
|
1756
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2339
1757
|
case "ThrottlingException":
|
|
2340
1758
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
2341
|
-
|
|
2342
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2343
|
-
name: errorCode,
|
|
2344
|
-
$metadata: deserializeMetadata(output),
|
|
2345
|
-
};
|
|
2346
|
-
break;
|
|
1759
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2347
1760
|
case "ValidationException":
|
|
2348
1761
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
2349
|
-
|
|
2350
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2351
|
-
name: errorCode,
|
|
2352
|
-
$metadata: deserializeMetadata(output),
|
|
2353
|
-
};
|
|
2354
|
-
break;
|
|
1762
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2355
1763
|
default:
|
|
2356
1764
|
const parsedBody = parsedOutput.body;
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
...parsedBody,
|
|
2360
|
-
name: `${errorCode}`,
|
|
2361
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1765
|
+
response = new AccessAnalyzerServiceException_1.AccessAnalyzerServiceException({
|
|
1766
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2362
1767
|
$fault: "client",
|
|
2363
1768
|
$metadata: deserializeMetadata(output),
|
|
2364
|
-
};
|
|
1769
|
+
});
|
|
1770
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2365
1771
|
}
|
|
2366
|
-
const message = response.message || response.Message || errorCode;
|
|
2367
|
-
response.message = message;
|
|
2368
|
-
delete response.Message;
|
|
2369
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2370
1772
|
};
|
|
2371
1773
|
const deserializeAws_restJson1ListPolicyGenerationsCommand = async (output, context) => {
|
|
2372
1774
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2398,51 +1800,25 @@ const deserializeAws_restJson1ListPolicyGenerationsCommandError = async (output,
|
|
|
2398
1800
|
switch (errorCode) {
|
|
2399
1801
|
case "AccessDeniedException":
|
|
2400
1802
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
2401
|
-
|
|
2402
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2403
|
-
name: errorCode,
|
|
2404
|
-
$metadata: deserializeMetadata(output),
|
|
2405
|
-
};
|
|
2406
|
-
break;
|
|
1803
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2407
1804
|
case "InternalServerException":
|
|
2408
1805
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
2409
|
-
|
|
2410
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2411
|
-
name: errorCode,
|
|
2412
|
-
$metadata: deserializeMetadata(output),
|
|
2413
|
-
};
|
|
2414
|
-
break;
|
|
1806
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2415
1807
|
case "ThrottlingException":
|
|
2416
1808
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
2417
|
-
|
|
2418
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2419
|
-
name: errorCode,
|
|
2420
|
-
$metadata: deserializeMetadata(output),
|
|
2421
|
-
};
|
|
2422
|
-
break;
|
|
1809
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2423
1810
|
case "ValidationException":
|
|
2424
1811
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
2425
|
-
|
|
2426
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2427
|
-
name: errorCode,
|
|
2428
|
-
$metadata: deserializeMetadata(output),
|
|
2429
|
-
};
|
|
2430
|
-
break;
|
|
1812
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2431
1813
|
default:
|
|
2432
1814
|
const parsedBody = parsedOutput.body;
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
...parsedBody,
|
|
2436
|
-
name: `${errorCode}`,
|
|
2437
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1815
|
+
response = new AccessAnalyzerServiceException_1.AccessAnalyzerServiceException({
|
|
1816
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2438
1817
|
$fault: "client",
|
|
2439
1818
|
$metadata: deserializeMetadata(output),
|
|
2440
|
-
};
|
|
1819
|
+
});
|
|
1820
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2441
1821
|
}
|
|
2442
|
-
const message = response.message || response.Message || errorCode;
|
|
2443
|
-
response.message = message;
|
|
2444
|
-
delete response.Message;
|
|
2445
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2446
1822
|
};
|
|
2447
1823
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
2448
1824
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2470,59 +1846,28 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2470
1846
|
switch (errorCode) {
|
|
2471
1847
|
case "AccessDeniedException":
|
|
2472
1848
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
2473
|
-
|
|
2474
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2475
|
-
name: errorCode,
|
|
2476
|
-
$metadata: deserializeMetadata(output),
|
|
2477
|
-
};
|
|
2478
|
-
break;
|
|
1849
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2479
1850
|
case "InternalServerException":
|
|
2480
1851
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
2481
|
-
|
|
2482
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2483
|
-
name: errorCode,
|
|
2484
|
-
$metadata: deserializeMetadata(output),
|
|
2485
|
-
};
|
|
2486
|
-
break;
|
|
1852
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2487
1853
|
case "ResourceNotFoundException":
|
|
2488
1854
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
2489
|
-
|
|
2490
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2491
|
-
name: errorCode,
|
|
2492
|
-
$metadata: deserializeMetadata(output),
|
|
2493
|
-
};
|
|
2494
|
-
break;
|
|
1855
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2495
1856
|
case "ThrottlingException":
|
|
2496
1857
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
2497
|
-
|
|
2498
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2499
|
-
name: errorCode,
|
|
2500
|
-
$metadata: deserializeMetadata(output),
|
|
2501
|
-
};
|
|
2502
|
-
break;
|
|
1858
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2503
1859
|
case "ValidationException":
|
|
2504
1860
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
2505
|
-
|
|
2506
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2507
|
-
name: errorCode,
|
|
2508
|
-
$metadata: deserializeMetadata(output),
|
|
2509
|
-
};
|
|
2510
|
-
break;
|
|
1861
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2511
1862
|
default:
|
|
2512
1863
|
const parsedBody = parsedOutput.body;
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
...parsedBody,
|
|
2516
|
-
name: `${errorCode}`,
|
|
2517
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1864
|
+
response = new AccessAnalyzerServiceException_1.AccessAnalyzerServiceException({
|
|
1865
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2518
1866
|
$fault: "client",
|
|
2519
1867
|
$metadata: deserializeMetadata(output),
|
|
2520
|
-
};
|
|
1868
|
+
});
|
|
1869
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2521
1870
|
}
|
|
2522
|
-
const message = response.message || response.Message || errorCode;
|
|
2523
|
-
response.message = message;
|
|
2524
|
-
delete response.Message;
|
|
2525
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2526
1871
|
};
|
|
2527
1872
|
const deserializeAws_restJson1StartPolicyGenerationCommand = async (output, context) => {
|
|
2528
1873
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2550,67 +1895,31 @@ const deserializeAws_restJson1StartPolicyGenerationCommandError = async (output,
|
|
|
2550
1895
|
switch (errorCode) {
|
|
2551
1896
|
case "AccessDeniedException":
|
|
2552
1897
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
2553
|
-
|
|
2554
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2555
|
-
name: errorCode,
|
|
2556
|
-
$metadata: deserializeMetadata(output),
|
|
2557
|
-
};
|
|
2558
|
-
break;
|
|
1898
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2559
1899
|
case "ConflictException":
|
|
2560
1900
|
case "com.amazonaws.accessanalyzer#ConflictException":
|
|
2561
|
-
|
|
2562
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2563
|
-
name: errorCode,
|
|
2564
|
-
$metadata: deserializeMetadata(output),
|
|
2565
|
-
};
|
|
2566
|
-
break;
|
|
1901
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2567
1902
|
case "InternalServerException":
|
|
2568
1903
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
2569
|
-
|
|
2570
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2571
|
-
name: errorCode,
|
|
2572
|
-
$metadata: deserializeMetadata(output),
|
|
2573
|
-
};
|
|
2574
|
-
break;
|
|
1904
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2575
1905
|
case "ServiceQuotaExceededException":
|
|
2576
1906
|
case "com.amazonaws.accessanalyzer#ServiceQuotaExceededException":
|
|
2577
|
-
|
|
2578
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
2579
|
-
name: errorCode,
|
|
2580
|
-
$metadata: deserializeMetadata(output),
|
|
2581
|
-
};
|
|
2582
|
-
break;
|
|
1907
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
2583
1908
|
case "ThrottlingException":
|
|
2584
1909
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
2585
|
-
|
|
2586
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2587
|
-
name: errorCode,
|
|
2588
|
-
$metadata: deserializeMetadata(output),
|
|
2589
|
-
};
|
|
2590
|
-
break;
|
|
1910
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2591
1911
|
case "ValidationException":
|
|
2592
1912
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
2593
|
-
|
|
2594
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2595
|
-
name: errorCode,
|
|
2596
|
-
$metadata: deserializeMetadata(output),
|
|
2597
|
-
};
|
|
2598
|
-
break;
|
|
1913
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2599
1914
|
default:
|
|
2600
1915
|
const parsedBody = parsedOutput.body;
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
...parsedBody,
|
|
2604
|
-
name: `${errorCode}`,
|
|
2605
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1916
|
+
response = new AccessAnalyzerServiceException_1.AccessAnalyzerServiceException({
|
|
1917
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2606
1918
|
$fault: "client",
|
|
2607
1919
|
$metadata: deserializeMetadata(output),
|
|
2608
|
-
};
|
|
1920
|
+
});
|
|
1921
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2609
1922
|
}
|
|
2610
|
-
const message = response.message || response.Message || errorCode;
|
|
2611
|
-
response.message = message;
|
|
2612
|
-
delete response.Message;
|
|
2613
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2614
1923
|
};
|
|
2615
1924
|
const deserializeAws_restJson1StartResourceScanCommand = async (output, context) => {
|
|
2616
1925
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2634,59 +1943,28 @@ const deserializeAws_restJson1StartResourceScanCommandError = async (output, con
|
|
|
2634
1943
|
switch (errorCode) {
|
|
2635
1944
|
case "AccessDeniedException":
|
|
2636
1945
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
2637
|
-
|
|
2638
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2639
|
-
name: errorCode,
|
|
2640
|
-
$metadata: deserializeMetadata(output),
|
|
2641
|
-
};
|
|
2642
|
-
break;
|
|
1946
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2643
1947
|
case "InternalServerException":
|
|
2644
1948
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
2645
|
-
|
|
2646
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2647
|
-
name: errorCode,
|
|
2648
|
-
$metadata: deserializeMetadata(output),
|
|
2649
|
-
};
|
|
2650
|
-
break;
|
|
1949
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2651
1950
|
case "ResourceNotFoundException":
|
|
2652
1951
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
2653
|
-
|
|
2654
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2655
|
-
name: errorCode,
|
|
2656
|
-
$metadata: deserializeMetadata(output),
|
|
2657
|
-
};
|
|
2658
|
-
break;
|
|
1952
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2659
1953
|
case "ThrottlingException":
|
|
2660
1954
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
2661
|
-
|
|
2662
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2663
|
-
name: errorCode,
|
|
2664
|
-
$metadata: deserializeMetadata(output),
|
|
2665
|
-
};
|
|
2666
|
-
break;
|
|
1955
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2667
1956
|
case "ValidationException":
|
|
2668
1957
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
2669
|
-
|
|
2670
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2671
|
-
name: errorCode,
|
|
2672
|
-
$metadata: deserializeMetadata(output),
|
|
2673
|
-
};
|
|
2674
|
-
break;
|
|
1958
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2675
1959
|
default:
|
|
2676
1960
|
const parsedBody = parsedOutput.body;
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
...parsedBody,
|
|
2680
|
-
name: `${errorCode}`,
|
|
2681
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1961
|
+
response = new AccessAnalyzerServiceException_1.AccessAnalyzerServiceException({
|
|
1962
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2682
1963
|
$fault: "client",
|
|
2683
1964
|
$metadata: deserializeMetadata(output),
|
|
2684
|
-
};
|
|
1965
|
+
});
|
|
1966
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2685
1967
|
}
|
|
2686
|
-
const message = response.message || response.Message || errorCode;
|
|
2687
|
-
response.message = message;
|
|
2688
|
-
delete response.Message;
|
|
2689
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2690
1968
|
};
|
|
2691
1969
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
2692
1970
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2710,59 +1988,28 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2710
1988
|
switch (errorCode) {
|
|
2711
1989
|
case "AccessDeniedException":
|
|
2712
1990
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
2713
|
-
|
|
2714
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2715
|
-
name: errorCode,
|
|
2716
|
-
$metadata: deserializeMetadata(output),
|
|
2717
|
-
};
|
|
2718
|
-
break;
|
|
1991
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2719
1992
|
case "InternalServerException":
|
|
2720
1993
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
2721
|
-
|
|
2722
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2723
|
-
name: errorCode,
|
|
2724
|
-
$metadata: deserializeMetadata(output),
|
|
2725
|
-
};
|
|
2726
|
-
break;
|
|
1994
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2727
1995
|
case "ResourceNotFoundException":
|
|
2728
1996
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
2729
|
-
|
|
2730
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2731
|
-
name: errorCode,
|
|
2732
|
-
$metadata: deserializeMetadata(output),
|
|
2733
|
-
};
|
|
2734
|
-
break;
|
|
1997
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2735
1998
|
case "ThrottlingException":
|
|
2736
1999
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
2737
|
-
|
|
2738
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2739
|
-
name: errorCode,
|
|
2740
|
-
$metadata: deserializeMetadata(output),
|
|
2741
|
-
};
|
|
2742
|
-
break;
|
|
2000
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2743
2001
|
case "ValidationException":
|
|
2744
2002
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
2745
|
-
|
|
2746
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2747
|
-
name: errorCode,
|
|
2748
|
-
$metadata: deserializeMetadata(output),
|
|
2749
|
-
};
|
|
2750
|
-
break;
|
|
2003
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2751
2004
|
default:
|
|
2752
2005
|
const parsedBody = parsedOutput.body;
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
...parsedBody,
|
|
2756
|
-
name: `${errorCode}`,
|
|
2757
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2006
|
+
response = new AccessAnalyzerServiceException_1.AccessAnalyzerServiceException({
|
|
2007
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2758
2008
|
$fault: "client",
|
|
2759
2009
|
$metadata: deserializeMetadata(output),
|
|
2760
|
-
};
|
|
2010
|
+
});
|
|
2011
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2761
2012
|
}
|
|
2762
|
-
const message = response.message || response.Message || errorCode;
|
|
2763
|
-
response.message = message;
|
|
2764
|
-
delete response.Message;
|
|
2765
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2766
2013
|
};
|
|
2767
2014
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
2768
2015
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2786,59 +2033,28 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2786
2033
|
switch (errorCode) {
|
|
2787
2034
|
case "AccessDeniedException":
|
|
2788
2035
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
2789
|
-
|
|
2790
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2791
|
-
name: errorCode,
|
|
2792
|
-
$metadata: deserializeMetadata(output),
|
|
2793
|
-
};
|
|
2794
|
-
break;
|
|
2036
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2795
2037
|
case "InternalServerException":
|
|
2796
2038
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
2797
|
-
|
|
2798
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2799
|
-
name: errorCode,
|
|
2800
|
-
$metadata: deserializeMetadata(output),
|
|
2801
|
-
};
|
|
2802
|
-
break;
|
|
2039
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2803
2040
|
case "ResourceNotFoundException":
|
|
2804
2041
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
2805
|
-
|
|
2806
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2807
|
-
name: errorCode,
|
|
2808
|
-
$metadata: deserializeMetadata(output),
|
|
2809
|
-
};
|
|
2810
|
-
break;
|
|
2042
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2811
2043
|
case "ThrottlingException":
|
|
2812
2044
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
2813
|
-
|
|
2814
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2815
|
-
name: errorCode,
|
|
2816
|
-
$metadata: deserializeMetadata(output),
|
|
2817
|
-
};
|
|
2818
|
-
break;
|
|
2045
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2819
2046
|
case "ValidationException":
|
|
2820
2047
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
2821
|
-
|
|
2822
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2823
|
-
name: errorCode,
|
|
2824
|
-
$metadata: deserializeMetadata(output),
|
|
2825
|
-
};
|
|
2826
|
-
break;
|
|
2048
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2827
2049
|
default:
|
|
2828
2050
|
const parsedBody = parsedOutput.body;
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
...parsedBody,
|
|
2832
|
-
name: `${errorCode}`,
|
|
2833
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2051
|
+
response = new AccessAnalyzerServiceException_1.AccessAnalyzerServiceException({
|
|
2052
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2834
2053
|
$fault: "client",
|
|
2835
2054
|
$metadata: deserializeMetadata(output),
|
|
2836
|
-
};
|
|
2055
|
+
});
|
|
2056
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2837
2057
|
}
|
|
2838
|
-
const message = response.message || response.Message || errorCode;
|
|
2839
|
-
response.message = message;
|
|
2840
|
-
delete response.Message;
|
|
2841
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2842
2058
|
};
|
|
2843
2059
|
const deserializeAws_restJson1UpdateArchiveRuleCommand = async (output, context) => {
|
|
2844
2060
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2862,59 +2078,28 @@ const deserializeAws_restJson1UpdateArchiveRuleCommandError = async (output, con
|
|
|
2862
2078
|
switch (errorCode) {
|
|
2863
2079
|
case "AccessDeniedException":
|
|
2864
2080
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
2865
|
-
|
|
2866
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2867
|
-
name: errorCode,
|
|
2868
|
-
$metadata: deserializeMetadata(output),
|
|
2869
|
-
};
|
|
2870
|
-
break;
|
|
2081
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2871
2082
|
case "InternalServerException":
|
|
2872
2083
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
2873
|
-
|
|
2874
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2875
|
-
name: errorCode,
|
|
2876
|
-
$metadata: deserializeMetadata(output),
|
|
2877
|
-
};
|
|
2878
|
-
break;
|
|
2084
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2879
2085
|
case "ResourceNotFoundException":
|
|
2880
2086
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
2881
|
-
|
|
2882
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2883
|
-
name: errorCode,
|
|
2884
|
-
$metadata: deserializeMetadata(output),
|
|
2885
|
-
};
|
|
2886
|
-
break;
|
|
2087
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2887
2088
|
case "ThrottlingException":
|
|
2888
2089
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
2889
|
-
|
|
2890
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2891
|
-
name: errorCode,
|
|
2892
|
-
$metadata: deserializeMetadata(output),
|
|
2893
|
-
};
|
|
2894
|
-
break;
|
|
2090
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2895
2091
|
case "ValidationException":
|
|
2896
2092
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
2897
|
-
|
|
2898
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2899
|
-
name: errorCode,
|
|
2900
|
-
$metadata: deserializeMetadata(output),
|
|
2901
|
-
};
|
|
2902
|
-
break;
|
|
2093
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2903
2094
|
default:
|
|
2904
2095
|
const parsedBody = parsedOutput.body;
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
...parsedBody,
|
|
2908
|
-
name: `${errorCode}`,
|
|
2909
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2096
|
+
response = new AccessAnalyzerServiceException_1.AccessAnalyzerServiceException({
|
|
2097
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2910
2098
|
$fault: "client",
|
|
2911
2099
|
$metadata: deserializeMetadata(output),
|
|
2912
|
-
};
|
|
2100
|
+
});
|
|
2101
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2913
2102
|
}
|
|
2914
|
-
const message = response.message || response.Message || errorCode;
|
|
2915
|
-
response.message = message;
|
|
2916
|
-
delete response.Message;
|
|
2917
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2918
2103
|
};
|
|
2919
2104
|
const deserializeAws_restJson1UpdateFindingsCommand = async (output, context) => {
|
|
2920
2105
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2938,59 +2123,28 @@ const deserializeAws_restJson1UpdateFindingsCommandError = async (output, contex
|
|
|
2938
2123
|
switch (errorCode) {
|
|
2939
2124
|
case "AccessDeniedException":
|
|
2940
2125
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
2941
|
-
|
|
2942
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2943
|
-
name: errorCode,
|
|
2944
|
-
$metadata: deserializeMetadata(output),
|
|
2945
|
-
};
|
|
2946
|
-
break;
|
|
2126
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2947
2127
|
case "InternalServerException":
|
|
2948
2128
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
2949
|
-
|
|
2950
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2951
|
-
name: errorCode,
|
|
2952
|
-
$metadata: deserializeMetadata(output),
|
|
2953
|
-
};
|
|
2954
|
-
break;
|
|
2129
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2955
2130
|
case "ResourceNotFoundException":
|
|
2956
2131
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
2957
|
-
|
|
2958
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2959
|
-
name: errorCode,
|
|
2960
|
-
$metadata: deserializeMetadata(output),
|
|
2961
|
-
};
|
|
2962
|
-
break;
|
|
2132
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2963
2133
|
case "ThrottlingException":
|
|
2964
2134
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
2965
|
-
|
|
2966
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2967
|
-
name: errorCode,
|
|
2968
|
-
$metadata: deserializeMetadata(output),
|
|
2969
|
-
};
|
|
2970
|
-
break;
|
|
2135
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2971
2136
|
case "ValidationException":
|
|
2972
2137
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
2973
|
-
|
|
2974
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2975
|
-
name: errorCode,
|
|
2976
|
-
$metadata: deserializeMetadata(output),
|
|
2977
|
-
};
|
|
2978
|
-
break;
|
|
2138
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2979
2139
|
default:
|
|
2980
2140
|
const parsedBody = parsedOutput.body;
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
...parsedBody,
|
|
2984
|
-
name: `${errorCode}`,
|
|
2985
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2141
|
+
response = new AccessAnalyzerServiceException_1.AccessAnalyzerServiceException({
|
|
2142
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2986
2143
|
$fault: "client",
|
|
2987
2144
|
$metadata: deserializeMetadata(output),
|
|
2988
|
-
};
|
|
2145
|
+
});
|
|
2146
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2989
2147
|
}
|
|
2990
|
-
const message = response.message || response.Message || errorCode;
|
|
2991
|
-
response.message = message;
|
|
2992
|
-
delete response.Message;
|
|
2993
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2994
2148
|
};
|
|
2995
2149
|
const deserializeAws_restJson1ValidatePolicyCommand = async (output, context) => {
|
|
2996
2150
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3022,74 +2176,40 @@ const deserializeAws_restJson1ValidatePolicyCommandError = async (output, contex
|
|
|
3022
2176
|
switch (errorCode) {
|
|
3023
2177
|
case "AccessDeniedException":
|
|
3024
2178
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
3025
|
-
|
|
3026
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3027
|
-
name: errorCode,
|
|
3028
|
-
$metadata: deserializeMetadata(output),
|
|
3029
|
-
};
|
|
3030
|
-
break;
|
|
2179
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3031
2180
|
case "InternalServerException":
|
|
3032
2181
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
3033
|
-
|
|
3034
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3035
|
-
name: errorCode,
|
|
3036
|
-
$metadata: deserializeMetadata(output),
|
|
3037
|
-
};
|
|
3038
|
-
break;
|
|
2182
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3039
2183
|
case "ThrottlingException":
|
|
3040
2184
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
3041
|
-
|
|
3042
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3043
|
-
name: errorCode,
|
|
3044
|
-
$metadata: deserializeMetadata(output),
|
|
3045
|
-
};
|
|
3046
|
-
break;
|
|
2185
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3047
2186
|
case "ValidationException":
|
|
3048
2187
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
3049
|
-
|
|
3050
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3051
|
-
name: errorCode,
|
|
3052
|
-
$metadata: deserializeMetadata(output),
|
|
3053
|
-
};
|
|
3054
|
-
break;
|
|
2188
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3055
2189
|
default:
|
|
3056
2190
|
const parsedBody = parsedOutput.body;
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
...parsedBody,
|
|
3060
|
-
name: `${errorCode}`,
|
|
3061
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2191
|
+
response = new AccessAnalyzerServiceException_1.AccessAnalyzerServiceException({
|
|
2192
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3062
2193
|
$fault: "client",
|
|
3063
2194
|
$metadata: deserializeMetadata(output),
|
|
3064
|
-
};
|
|
2195
|
+
});
|
|
2196
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3065
2197
|
}
|
|
3066
|
-
const message = response.message || response.Message || errorCode;
|
|
3067
|
-
response.message = message;
|
|
3068
|
-
delete response.Message;
|
|
3069
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3070
2198
|
};
|
|
3071
2199
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
3072
|
-
const contents = {
|
|
3073
|
-
name: "AccessDeniedException",
|
|
3074
|
-
$fault: "client",
|
|
3075
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3076
|
-
message: undefined,
|
|
3077
|
-
};
|
|
2200
|
+
const contents = {};
|
|
3078
2201
|
const data = parsedOutput.body;
|
|
3079
2202
|
if (data.message !== undefined && data.message !== null) {
|
|
3080
2203
|
contents.message = smithy_client_1.expectString(data.message);
|
|
3081
2204
|
}
|
|
3082
|
-
|
|
2205
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
2206
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2207
|
+
...contents,
|
|
2208
|
+
});
|
|
2209
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3083
2210
|
};
|
|
3084
2211
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
3085
|
-
const contents = {
|
|
3086
|
-
name: "ConflictException",
|
|
3087
|
-
$fault: "client",
|
|
3088
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3089
|
-
message: undefined,
|
|
3090
|
-
resourceId: undefined,
|
|
3091
|
-
resourceType: undefined,
|
|
3092
|
-
};
|
|
2212
|
+
const contents = {};
|
|
3093
2213
|
const data = parsedOutput.body;
|
|
3094
2214
|
if (data.message !== undefined && data.message !== null) {
|
|
3095
2215
|
contents.message = smithy_client_1.expectString(data.message);
|
|
@@ -3100,17 +2220,14 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
3100
2220
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
3101
2221
|
contents.resourceType = smithy_client_1.expectString(data.resourceType);
|
|
3102
2222
|
}
|
|
3103
|
-
|
|
2223
|
+
const exception = new models_0_1.ConflictException({
|
|
2224
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2225
|
+
...contents,
|
|
2226
|
+
});
|
|
2227
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3104
2228
|
};
|
|
3105
2229
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
3106
|
-
const contents = {
|
|
3107
|
-
name: "InternalServerException",
|
|
3108
|
-
$fault: "server",
|
|
3109
|
-
$retryable: {},
|
|
3110
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3111
|
-
message: undefined,
|
|
3112
|
-
retryAfterSeconds: undefined,
|
|
3113
|
-
};
|
|
2230
|
+
const contents = {};
|
|
3114
2231
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
3115
2232
|
contents.retryAfterSeconds = smithy_client_1.strictParseInt32(parsedOutput.headers["retry-after"]);
|
|
3116
2233
|
}
|
|
@@ -3118,17 +2235,14 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
3118
2235
|
if (data.message !== undefined && data.message !== null) {
|
|
3119
2236
|
contents.message = smithy_client_1.expectString(data.message);
|
|
3120
2237
|
}
|
|
3121
|
-
|
|
2238
|
+
const exception = new models_0_1.InternalServerException({
|
|
2239
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2240
|
+
...contents,
|
|
2241
|
+
});
|
|
2242
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3122
2243
|
};
|
|
3123
2244
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3124
|
-
const contents = {
|
|
3125
|
-
name: "ResourceNotFoundException",
|
|
3126
|
-
$fault: "client",
|
|
3127
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3128
|
-
message: undefined,
|
|
3129
|
-
resourceId: undefined,
|
|
3130
|
-
resourceType: undefined,
|
|
3131
|
-
};
|
|
2245
|
+
const contents = {};
|
|
3132
2246
|
const data = parsedOutput.body;
|
|
3133
2247
|
if (data.message !== undefined && data.message !== null) {
|
|
3134
2248
|
contents.message = smithy_client_1.expectString(data.message);
|
|
@@ -3139,17 +2253,14 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
3139
2253
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
3140
2254
|
contents.resourceType = smithy_client_1.expectString(data.resourceType);
|
|
3141
2255
|
}
|
|
3142
|
-
|
|
2256
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
2257
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2258
|
+
...contents,
|
|
2259
|
+
});
|
|
2260
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3143
2261
|
};
|
|
3144
2262
|
const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
3145
|
-
const contents = {
|
|
3146
|
-
name: "ServiceQuotaExceededException",
|
|
3147
|
-
$fault: "client",
|
|
3148
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3149
|
-
message: undefined,
|
|
3150
|
-
resourceId: undefined,
|
|
3151
|
-
resourceType: undefined,
|
|
3152
|
-
};
|
|
2263
|
+
const contents = {};
|
|
3153
2264
|
const data = parsedOutput.body;
|
|
3154
2265
|
if (data.message !== undefined && data.message !== null) {
|
|
3155
2266
|
contents.message = smithy_client_1.expectString(data.message);
|
|
@@ -3160,19 +2271,14 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
3160
2271
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
3161
2272
|
contents.resourceType = smithy_client_1.expectString(data.resourceType);
|
|
3162
2273
|
}
|
|
3163
|
-
|
|
2274
|
+
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
2275
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2276
|
+
...contents,
|
|
2277
|
+
});
|
|
2278
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3164
2279
|
};
|
|
3165
2280
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
3166
|
-
const contents = {
|
|
3167
|
-
name: "ThrottlingException",
|
|
3168
|
-
$fault: "client",
|
|
3169
|
-
$retryable: {
|
|
3170
|
-
throttling: true,
|
|
3171
|
-
},
|
|
3172
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3173
|
-
message: undefined,
|
|
3174
|
-
retryAfterSeconds: undefined,
|
|
3175
|
-
};
|
|
2281
|
+
const contents = {};
|
|
3176
2282
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
3177
2283
|
contents.retryAfterSeconds = smithy_client_1.strictParseInt32(parsedOutput.headers["retry-after"]);
|
|
3178
2284
|
}
|
|
@@ -3180,17 +2286,14 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
3180
2286
|
if (data.message !== undefined && data.message !== null) {
|
|
3181
2287
|
contents.message = smithy_client_1.expectString(data.message);
|
|
3182
2288
|
}
|
|
3183
|
-
|
|
2289
|
+
const exception = new models_0_1.ThrottlingException({
|
|
2290
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2291
|
+
...contents,
|
|
2292
|
+
});
|
|
2293
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3184
2294
|
};
|
|
3185
2295
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
3186
|
-
const contents = {
|
|
3187
|
-
name: "ValidationException",
|
|
3188
|
-
$fault: "client",
|
|
3189
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3190
|
-
fieldList: undefined,
|
|
3191
|
-
message: undefined,
|
|
3192
|
-
reason: undefined,
|
|
3193
|
-
};
|
|
2296
|
+
const contents = {};
|
|
3194
2297
|
const data = parsedOutput.body;
|
|
3195
2298
|
if (data.fieldList !== undefined && data.fieldList !== null) {
|
|
3196
2299
|
contents.fieldList = deserializeAws_restJson1ValidationExceptionFieldList(data.fieldList, context);
|
|
@@ -3201,7 +2304,11 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
3201
2304
|
if (data.reason !== undefined && data.reason !== null) {
|
|
3202
2305
|
contents.reason = smithy_client_1.expectString(data.reason);
|
|
3203
2306
|
}
|
|
3204
|
-
|
|
2307
|
+
const exception = new models_0_1.ValidationException({
|
|
2308
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2309
|
+
...contents,
|
|
2310
|
+
});
|
|
2311
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3205
2312
|
};
|
|
3206
2313
|
const serializeAws_restJson1AclGrantee = (input, context) => {
|
|
3207
2314
|
return models_0_1.AclGrantee.visit(input, {
|
|
@@ -3579,7 +2686,7 @@ const deserializeAws_restJson1AccessPreviewFinding = (output, context) => {
|
|
|
3579
2686
|
};
|
|
3580
2687
|
};
|
|
3581
2688
|
const deserializeAws_restJson1AccessPreviewFindingsList = (output, context) => {
|
|
3582
|
-
|
|
2689
|
+
const retVal = (output || [])
|
|
3583
2690
|
.filter((e) => e != null)
|
|
3584
2691
|
.map((entry) => {
|
|
3585
2692
|
if (entry === null) {
|
|
@@ -3587,9 +2694,10 @@ const deserializeAws_restJson1AccessPreviewFindingsList = (output, context) => {
|
|
|
3587
2694
|
}
|
|
3588
2695
|
return deserializeAws_restJson1AccessPreviewFinding(entry, context);
|
|
3589
2696
|
});
|
|
2697
|
+
return retVal;
|
|
3590
2698
|
};
|
|
3591
2699
|
const deserializeAws_restJson1AccessPreviewsList = (output, context) => {
|
|
3592
|
-
|
|
2700
|
+
const retVal = (output || [])
|
|
3593
2701
|
.filter((e) => e != null)
|
|
3594
2702
|
.map((entry) => {
|
|
3595
2703
|
if (entry === null) {
|
|
@@ -3597,6 +2705,7 @@ const deserializeAws_restJson1AccessPreviewsList = (output, context) => {
|
|
|
3597
2705
|
}
|
|
3598
2706
|
return deserializeAws_restJson1AccessPreviewSummary(entry, context);
|
|
3599
2707
|
});
|
|
2708
|
+
return retVal;
|
|
3600
2709
|
};
|
|
3601
2710
|
const deserializeAws_restJson1AccessPreviewStatusReason = (output, context) => {
|
|
3602
2711
|
return {
|
|
@@ -3626,7 +2735,7 @@ const deserializeAws_restJson1AclGrantee = (output, context) => {
|
|
|
3626
2735
|
return { $unknown: Object.entries(output)[0] };
|
|
3627
2736
|
};
|
|
3628
2737
|
const deserializeAws_restJson1ActionList = (output, context) => {
|
|
3629
|
-
|
|
2738
|
+
const retVal = (output || [])
|
|
3630
2739
|
.filter((e) => e != null)
|
|
3631
2740
|
.map((entry) => {
|
|
3632
2741
|
if (entry === null) {
|
|
@@ -3634,6 +2743,7 @@ const deserializeAws_restJson1ActionList = (output, context) => {
|
|
|
3634
2743
|
}
|
|
3635
2744
|
return smithy_client_1.expectString(entry);
|
|
3636
2745
|
});
|
|
2746
|
+
return retVal;
|
|
3637
2747
|
};
|
|
3638
2748
|
const deserializeAws_restJson1AnalyzedResource = (output, context) => {
|
|
3639
2749
|
return {
|
|
@@ -3661,7 +2771,7 @@ const deserializeAws_restJson1AnalyzedResource = (output, context) => {
|
|
|
3661
2771
|
};
|
|
3662
2772
|
};
|
|
3663
2773
|
const deserializeAws_restJson1AnalyzedResourcesList = (output, context) => {
|
|
3664
|
-
|
|
2774
|
+
const retVal = (output || [])
|
|
3665
2775
|
.filter((e) => e != null)
|
|
3666
2776
|
.map((entry) => {
|
|
3667
2777
|
if (entry === null) {
|
|
@@ -3669,6 +2779,7 @@ const deserializeAws_restJson1AnalyzedResourcesList = (output, context) => {
|
|
|
3669
2779
|
}
|
|
3670
2780
|
return deserializeAws_restJson1AnalyzedResourceSummary(entry, context);
|
|
3671
2781
|
});
|
|
2782
|
+
return retVal;
|
|
3672
2783
|
};
|
|
3673
2784
|
const deserializeAws_restJson1AnalyzedResourceSummary = (output, context) => {
|
|
3674
2785
|
return {
|
|
@@ -3678,7 +2789,7 @@ const deserializeAws_restJson1AnalyzedResourceSummary = (output, context) => {
|
|
|
3678
2789
|
};
|
|
3679
2790
|
};
|
|
3680
2791
|
const deserializeAws_restJson1AnalyzersList = (output, context) => {
|
|
3681
|
-
|
|
2792
|
+
const retVal = (output || [])
|
|
3682
2793
|
.filter((e) => e != null)
|
|
3683
2794
|
.map((entry) => {
|
|
3684
2795
|
if (entry === null) {
|
|
@@ -3686,6 +2797,7 @@ const deserializeAws_restJson1AnalyzersList = (output, context) => {
|
|
|
3686
2797
|
}
|
|
3687
2798
|
return deserializeAws_restJson1AnalyzerSummary(entry, context);
|
|
3688
2799
|
});
|
|
2800
|
+
return retVal;
|
|
3689
2801
|
};
|
|
3690
2802
|
const deserializeAws_restJson1AnalyzerSummary = (output, context) => {
|
|
3691
2803
|
return {
|
|
@@ -3709,7 +2821,7 @@ const deserializeAws_restJson1AnalyzerSummary = (output, context) => {
|
|
|
3709
2821
|
};
|
|
3710
2822
|
};
|
|
3711
2823
|
const deserializeAws_restJson1ArchiveRulesList = (output, context) => {
|
|
3712
|
-
|
|
2824
|
+
const retVal = (output || [])
|
|
3713
2825
|
.filter((e) => e != null)
|
|
3714
2826
|
.map((entry) => {
|
|
3715
2827
|
if (entry === null) {
|
|
@@ -3717,6 +2829,7 @@ const deserializeAws_restJson1ArchiveRulesList = (output, context) => {
|
|
|
3717
2829
|
}
|
|
3718
2830
|
return deserializeAws_restJson1ArchiveRuleSummary(entry, context);
|
|
3719
2831
|
});
|
|
2832
|
+
return retVal;
|
|
3720
2833
|
};
|
|
3721
2834
|
const deserializeAws_restJson1ArchiveRuleSummary = (output, context) => {
|
|
3722
2835
|
return {
|
|
@@ -3851,7 +2964,7 @@ const deserializeAws_restJson1Finding = (output, context) => {
|
|
|
3851
2964
|
};
|
|
3852
2965
|
};
|
|
3853
2966
|
const deserializeAws_restJson1FindingsList = (output, context) => {
|
|
3854
|
-
|
|
2967
|
+
const retVal = (output || [])
|
|
3855
2968
|
.filter((e) => e != null)
|
|
3856
2969
|
.map((entry) => {
|
|
3857
2970
|
if (entry === null) {
|
|
@@ -3859,6 +2972,7 @@ const deserializeAws_restJson1FindingsList = (output, context) => {
|
|
|
3859
2972
|
}
|
|
3860
2973
|
return deserializeAws_restJson1FindingSummary(entry, context);
|
|
3861
2974
|
});
|
|
2975
|
+
return retVal;
|
|
3862
2976
|
};
|
|
3863
2977
|
const deserializeAws_restJson1FindingSource = (output, context) => {
|
|
3864
2978
|
return {
|
|
@@ -3874,7 +2988,7 @@ const deserializeAws_restJson1FindingSourceDetail = (output, context) => {
|
|
|
3874
2988
|
};
|
|
3875
2989
|
};
|
|
3876
2990
|
const deserializeAws_restJson1FindingSourceList = (output, context) => {
|
|
3877
|
-
|
|
2991
|
+
const retVal = (output || [])
|
|
3878
2992
|
.filter((e) => e != null)
|
|
3879
2993
|
.map((entry) => {
|
|
3880
2994
|
if (entry === null) {
|
|
@@ -3882,6 +2996,7 @@ const deserializeAws_restJson1FindingSourceList = (output, context) => {
|
|
|
3882
2996
|
}
|
|
3883
2997
|
return deserializeAws_restJson1FindingSource(entry, context);
|
|
3884
2998
|
});
|
|
2999
|
+
return retVal;
|
|
3885
3000
|
};
|
|
3886
3001
|
const deserializeAws_restJson1FindingSummary = (output, context) => {
|
|
3887
3002
|
return {
|
|
@@ -3921,7 +3036,7 @@ const deserializeAws_restJson1GeneratedPolicy = (output, context) => {
|
|
|
3921
3036
|
};
|
|
3922
3037
|
};
|
|
3923
3038
|
const deserializeAws_restJson1GeneratedPolicyList = (output, context) => {
|
|
3924
|
-
|
|
3039
|
+
const retVal = (output || [])
|
|
3925
3040
|
.filter((e) => e != null)
|
|
3926
3041
|
.map((entry) => {
|
|
3927
3042
|
if (entry === null) {
|
|
@@ -3929,6 +3044,7 @@ const deserializeAws_restJson1GeneratedPolicyList = (output, context) => {
|
|
|
3929
3044
|
}
|
|
3930
3045
|
return deserializeAws_restJson1GeneratedPolicy(entry, context);
|
|
3931
3046
|
});
|
|
3047
|
+
return retVal;
|
|
3932
3048
|
};
|
|
3933
3049
|
const deserializeAws_restJson1GeneratedPolicyProperties = (output, context) => {
|
|
3934
3050
|
return {
|
|
@@ -4003,7 +3119,7 @@ const deserializeAws_restJson1KmsGrantConfiguration = (output, context) => {
|
|
|
4003
3119
|
};
|
|
4004
3120
|
};
|
|
4005
3121
|
const deserializeAws_restJson1KmsGrantConfigurationsList = (output, context) => {
|
|
4006
|
-
|
|
3122
|
+
const retVal = (output || [])
|
|
4007
3123
|
.filter((e) => e != null)
|
|
4008
3124
|
.map((entry) => {
|
|
4009
3125
|
if (entry === null) {
|
|
@@ -4011,6 +3127,7 @@ const deserializeAws_restJson1KmsGrantConfigurationsList = (output, context) =>
|
|
|
4011
3127
|
}
|
|
4012
3128
|
return deserializeAws_restJson1KmsGrantConfiguration(entry, context);
|
|
4013
3129
|
});
|
|
3130
|
+
return retVal;
|
|
4014
3131
|
};
|
|
4015
3132
|
const deserializeAws_restJson1KmsGrantConstraints = (output, context) => {
|
|
4016
3133
|
return {
|
|
@@ -4023,7 +3140,7 @@ const deserializeAws_restJson1KmsGrantConstraints = (output, context) => {
|
|
|
4023
3140
|
};
|
|
4024
3141
|
};
|
|
4025
3142
|
const deserializeAws_restJson1KmsGrantOperationsList = (output, context) => {
|
|
4026
|
-
|
|
3143
|
+
const retVal = (output || [])
|
|
4027
3144
|
.filter((e) => e != null)
|
|
4028
3145
|
.map((entry) => {
|
|
4029
3146
|
if (entry === null) {
|
|
@@ -4031,6 +3148,7 @@ const deserializeAws_restJson1KmsGrantOperationsList = (output, context) => {
|
|
|
4031
3148
|
}
|
|
4032
3149
|
return smithy_client_1.expectString(entry);
|
|
4033
3150
|
});
|
|
3151
|
+
return retVal;
|
|
4034
3152
|
};
|
|
4035
3153
|
const deserializeAws_restJson1KmsKeyConfiguration = (output, context) => {
|
|
4036
3154
|
return {
|
|
@@ -4064,7 +3182,7 @@ const deserializeAws_restJson1Location = (output, context) => {
|
|
|
4064
3182
|
};
|
|
4065
3183
|
};
|
|
4066
3184
|
const deserializeAws_restJson1LocationList = (output, context) => {
|
|
4067
|
-
|
|
3185
|
+
const retVal = (output || [])
|
|
4068
3186
|
.filter((e) => e != null)
|
|
4069
3187
|
.map((entry) => {
|
|
4070
3188
|
if (entry === null) {
|
|
@@ -4072,6 +3190,7 @@ const deserializeAws_restJson1LocationList = (output, context) => {
|
|
|
4072
3190
|
}
|
|
4073
3191
|
return deserializeAws_restJson1Location(entry, context);
|
|
4074
3192
|
});
|
|
3193
|
+
return retVal;
|
|
4075
3194
|
};
|
|
4076
3195
|
const deserializeAws_restJson1NetworkOriginConfiguration = (output, context) => {
|
|
4077
3196
|
if (output.internetConfiguration !== undefined && output.internetConfiguration !== null) {
|
|
@@ -4104,7 +3223,7 @@ const deserializeAws_restJson1PathElement = (output, context) => {
|
|
|
4104
3223
|
return { $unknown: Object.entries(output)[0] };
|
|
4105
3224
|
};
|
|
4106
3225
|
const deserializeAws_restJson1PathElementList = (output, context) => {
|
|
4107
|
-
|
|
3226
|
+
const retVal = (output || [])
|
|
4108
3227
|
.filter((e) => e != null)
|
|
4109
3228
|
.map((entry) => {
|
|
4110
3229
|
if (entry === null) {
|
|
@@ -4112,6 +3231,7 @@ const deserializeAws_restJson1PathElementList = (output, context) => {
|
|
|
4112
3231
|
}
|
|
4113
3232
|
return deserializeAws_restJson1PathElement(smithy_client_1.expectUnion(entry), context);
|
|
4114
3233
|
});
|
|
3234
|
+
return retVal;
|
|
4115
3235
|
};
|
|
4116
3236
|
const deserializeAws_restJson1PolicyGeneration = (output, context) => {
|
|
4117
3237
|
return {
|
|
@@ -4127,7 +3247,7 @@ const deserializeAws_restJson1PolicyGeneration = (output, context) => {
|
|
|
4127
3247
|
};
|
|
4128
3248
|
};
|
|
4129
3249
|
const deserializeAws_restJson1PolicyGenerationList = (output, context) => {
|
|
4130
|
-
|
|
3250
|
+
const retVal = (output || [])
|
|
4131
3251
|
.filter((e) => e != null)
|
|
4132
3252
|
.map((entry) => {
|
|
4133
3253
|
if (entry === null) {
|
|
@@ -4135,6 +3255,7 @@ const deserializeAws_restJson1PolicyGenerationList = (output, context) => {
|
|
|
4135
3255
|
}
|
|
4136
3256
|
return deserializeAws_restJson1PolicyGeneration(entry, context);
|
|
4137
3257
|
});
|
|
3258
|
+
return retVal;
|
|
4138
3259
|
};
|
|
4139
3260
|
const deserializeAws_restJson1Position = (output, context) => {
|
|
4140
3261
|
return {
|
|
@@ -4155,7 +3276,7 @@ const deserializeAws_restJson1PrincipalMap = (output, context) => {
|
|
|
4155
3276
|
}, {});
|
|
4156
3277
|
};
|
|
4157
3278
|
const deserializeAws_restJson1RegionList = (output, context) => {
|
|
4158
|
-
|
|
3279
|
+
const retVal = (output || [])
|
|
4159
3280
|
.filter((e) => e != null)
|
|
4160
3281
|
.map((entry) => {
|
|
4161
3282
|
if (entry === null) {
|
|
@@ -4163,6 +3284,7 @@ const deserializeAws_restJson1RegionList = (output, context) => {
|
|
|
4163
3284
|
}
|
|
4164
3285
|
return smithy_client_1.expectString(entry);
|
|
4165
3286
|
});
|
|
3287
|
+
return retVal;
|
|
4166
3288
|
};
|
|
4167
3289
|
const deserializeAws_restJson1S3AccessPointConfiguration = (output, context) => {
|
|
4168
3290
|
return {
|
|
@@ -4195,7 +3317,7 @@ const deserializeAws_restJson1S3BucketAclGrantConfiguration = (output, context)
|
|
|
4195
3317
|
};
|
|
4196
3318
|
};
|
|
4197
3319
|
const deserializeAws_restJson1S3BucketAclGrantConfigurationsList = (output, context) => {
|
|
4198
|
-
|
|
3320
|
+
const retVal = (output || [])
|
|
4199
3321
|
.filter((e) => e != null)
|
|
4200
3322
|
.map((entry) => {
|
|
4201
3323
|
if (entry === null) {
|
|
@@ -4203,6 +3325,7 @@ const deserializeAws_restJson1S3BucketAclGrantConfigurationsList = (output, cont
|
|
|
4203
3325
|
}
|
|
4204
3326
|
return deserializeAws_restJson1S3BucketAclGrantConfiguration(entry, context);
|
|
4205
3327
|
});
|
|
3328
|
+
return retVal;
|
|
4206
3329
|
};
|
|
4207
3330
|
const deserializeAws_restJson1S3BucketConfiguration = (output, context) => {
|
|
4208
3331
|
return {
|
|
@@ -4231,7 +3354,7 @@ const deserializeAws_restJson1SecretsManagerSecretConfiguration = (output, conte
|
|
|
4231
3354
|
};
|
|
4232
3355
|
};
|
|
4233
3356
|
const deserializeAws_restJson1SharedViaList = (output, context) => {
|
|
4234
|
-
|
|
3357
|
+
const retVal = (output || [])
|
|
4235
3358
|
.filter((e) => e != null)
|
|
4236
3359
|
.map((entry) => {
|
|
4237
3360
|
if (entry === null) {
|
|
@@ -4239,6 +3362,7 @@ const deserializeAws_restJson1SharedViaList = (output, context) => {
|
|
|
4239
3362
|
}
|
|
4240
3363
|
return smithy_client_1.expectString(entry);
|
|
4241
3364
|
});
|
|
3365
|
+
return retVal;
|
|
4242
3366
|
};
|
|
4243
3367
|
const deserializeAws_restJson1Span = (output, context) => {
|
|
4244
3368
|
return {
|
|
@@ -4287,7 +3411,7 @@ const deserializeAws_restJson1TrailProperties = (output, context) => {
|
|
|
4287
3411
|
};
|
|
4288
3412
|
};
|
|
4289
3413
|
const deserializeAws_restJson1TrailPropertiesList = (output, context) => {
|
|
4290
|
-
|
|
3414
|
+
const retVal = (output || [])
|
|
4291
3415
|
.filter((e) => e != null)
|
|
4292
3416
|
.map((entry) => {
|
|
4293
3417
|
if (entry === null) {
|
|
@@ -4295,6 +3419,7 @@ const deserializeAws_restJson1TrailPropertiesList = (output, context) => {
|
|
|
4295
3419
|
}
|
|
4296
3420
|
return deserializeAws_restJson1TrailProperties(entry, context);
|
|
4297
3421
|
});
|
|
3422
|
+
return retVal;
|
|
4298
3423
|
};
|
|
4299
3424
|
const deserializeAws_restJson1ValidatePolicyFinding = (output, context) => {
|
|
4300
3425
|
return {
|
|
@@ -4308,7 +3433,7 @@ const deserializeAws_restJson1ValidatePolicyFinding = (output, context) => {
|
|
|
4308
3433
|
};
|
|
4309
3434
|
};
|
|
4310
3435
|
const deserializeAws_restJson1ValidatePolicyFindingList = (output, context) => {
|
|
4311
|
-
|
|
3436
|
+
const retVal = (output || [])
|
|
4312
3437
|
.filter((e) => e != null)
|
|
4313
3438
|
.map((entry) => {
|
|
4314
3439
|
if (entry === null) {
|
|
@@ -4316,6 +3441,7 @@ const deserializeAws_restJson1ValidatePolicyFindingList = (output, context) => {
|
|
|
4316
3441
|
}
|
|
4317
3442
|
return deserializeAws_restJson1ValidatePolicyFinding(entry, context);
|
|
4318
3443
|
});
|
|
3444
|
+
return retVal;
|
|
4319
3445
|
};
|
|
4320
3446
|
const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
|
|
4321
3447
|
return {
|
|
@@ -4324,7 +3450,7 @@ const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
|
|
|
4324
3450
|
};
|
|
4325
3451
|
};
|
|
4326
3452
|
const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) => {
|
|
4327
|
-
|
|
3453
|
+
const retVal = (output || [])
|
|
4328
3454
|
.filter((e) => e != null)
|
|
4329
3455
|
.map((entry) => {
|
|
4330
3456
|
if (entry === null) {
|
|
@@ -4332,9 +3458,10 @@ const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) =
|
|
|
4332
3458
|
}
|
|
4333
3459
|
return deserializeAws_restJson1ValidationExceptionField(entry, context);
|
|
4334
3460
|
});
|
|
3461
|
+
return retVal;
|
|
4335
3462
|
};
|
|
4336
3463
|
const deserializeAws_restJson1ValueList = (output, context) => {
|
|
4337
|
-
|
|
3464
|
+
const retVal = (output || [])
|
|
4338
3465
|
.filter((e) => e != null)
|
|
4339
3466
|
.map((entry) => {
|
|
4340
3467
|
if (entry === null) {
|
|
@@ -4342,6 +3469,7 @@ const deserializeAws_restJson1ValueList = (output, context) => {
|
|
|
4342
3469
|
}
|
|
4343
3470
|
return smithy_client_1.expectString(entry);
|
|
4344
3471
|
});
|
|
3472
|
+
return retVal;
|
|
4345
3473
|
};
|
|
4346
3474
|
const deserializeAws_restJson1VpcConfiguration = (output, context) => {
|
|
4347
3475
|
return {
|