@aws-sdk/client-clouddirectory 3.503.1 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +195 -2879
- package/dist-es/protocols/Aws_restJson1.js +446 -3130
- package/package.json +3 -3
|
@@ -993,7 +993,7 @@ export const se_UpgradePublishedSchemaCommand = async (input, context) => {
|
|
|
993
993
|
};
|
|
994
994
|
export const de_AddFacetToObjectCommand = async (output, context) => {
|
|
995
995
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
996
|
-
return
|
|
996
|
+
return de_CommandError(output, context);
|
|
997
997
|
}
|
|
998
998
|
const contents = map({
|
|
999
999
|
$metadata: deserializeMetadata(output),
|
|
@@ -1001,52 +1001,9 @@ export const de_AddFacetToObjectCommand = async (output, context) => {
|
|
|
1001
1001
|
await collectBody(output.body, context);
|
|
1002
1002
|
return contents;
|
|
1003
1003
|
};
|
|
1004
|
-
const de_AddFacetToObjectCommandError = async (output, context) => {
|
|
1005
|
-
const parsedOutput = {
|
|
1006
|
-
...output,
|
|
1007
|
-
body: await parseErrorBody(output.body, context),
|
|
1008
|
-
};
|
|
1009
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1010
|
-
switch (errorCode) {
|
|
1011
|
-
case "AccessDeniedException":
|
|
1012
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
1013
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1014
|
-
case "DirectoryNotEnabledException":
|
|
1015
|
-
case "com.amazonaws.clouddirectory#DirectoryNotEnabledException":
|
|
1016
|
-
throw await de_DirectoryNotEnabledExceptionRes(parsedOutput, context);
|
|
1017
|
-
case "FacetValidationException":
|
|
1018
|
-
case "com.amazonaws.clouddirectory#FacetValidationException":
|
|
1019
|
-
throw await de_FacetValidationExceptionRes(parsedOutput, context);
|
|
1020
|
-
case "InternalServiceException":
|
|
1021
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
1022
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1023
|
-
case "InvalidArnException":
|
|
1024
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
1025
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1026
|
-
case "LimitExceededException":
|
|
1027
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
1028
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1029
|
-
case "ResourceNotFoundException":
|
|
1030
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
1031
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1032
|
-
case "RetryableConflictException":
|
|
1033
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
1034
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
1035
|
-
case "ValidationException":
|
|
1036
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
1037
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1038
|
-
default:
|
|
1039
|
-
const parsedBody = parsedOutput.body;
|
|
1040
|
-
return throwDefaultError({
|
|
1041
|
-
output,
|
|
1042
|
-
parsedBody,
|
|
1043
|
-
errorCode,
|
|
1044
|
-
});
|
|
1045
|
-
}
|
|
1046
|
-
};
|
|
1047
1004
|
export const de_ApplySchemaCommand = async (output, context) => {
|
|
1048
1005
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1049
|
-
return
|
|
1006
|
+
return de_CommandError(output, context);
|
|
1050
1007
|
}
|
|
1051
1008
|
const contents = map({
|
|
1052
1009
|
$metadata: deserializeMetadata(output),
|
|
@@ -1059,52 +1016,9 @@ export const de_ApplySchemaCommand = async (output, context) => {
|
|
|
1059
1016
|
Object.assign(contents, doc);
|
|
1060
1017
|
return contents;
|
|
1061
1018
|
};
|
|
1062
|
-
const de_ApplySchemaCommandError = async (output, context) => {
|
|
1063
|
-
const parsedOutput = {
|
|
1064
|
-
...output,
|
|
1065
|
-
body: await parseErrorBody(output.body, context),
|
|
1066
|
-
};
|
|
1067
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1068
|
-
switch (errorCode) {
|
|
1069
|
-
case "AccessDeniedException":
|
|
1070
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
1071
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1072
|
-
case "InternalServiceException":
|
|
1073
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
1074
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1075
|
-
case "InvalidArnException":
|
|
1076
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
1077
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1078
|
-
case "InvalidAttachmentException":
|
|
1079
|
-
case "com.amazonaws.clouddirectory#InvalidAttachmentException":
|
|
1080
|
-
throw await de_InvalidAttachmentExceptionRes(parsedOutput, context);
|
|
1081
|
-
case "LimitExceededException":
|
|
1082
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
1083
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1084
|
-
case "ResourceNotFoundException":
|
|
1085
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
1086
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1087
|
-
case "RetryableConflictException":
|
|
1088
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
1089
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
1090
|
-
case "SchemaAlreadyExistsException":
|
|
1091
|
-
case "com.amazonaws.clouddirectory#SchemaAlreadyExistsException":
|
|
1092
|
-
throw await de_SchemaAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1093
|
-
case "ValidationException":
|
|
1094
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
1095
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1096
|
-
default:
|
|
1097
|
-
const parsedBody = parsedOutput.body;
|
|
1098
|
-
return throwDefaultError({
|
|
1099
|
-
output,
|
|
1100
|
-
parsedBody,
|
|
1101
|
-
errorCode,
|
|
1102
|
-
});
|
|
1103
|
-
}
|
|
1104
|
-
};
|
|
1105
1019
|
export const de_AttachObjectCommand = async (output, context) => {
|
|
1106
1020
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1107
|
-
return
|
|
1021
|
+
return de_CommandError(output, context);
|
|
1108
1022
|
}
|
|
1109
1023
|
const contents = map({
|
|
1110
1024
|
$metadata: deserializeMetadata(output),
|
|
@@ -1116,58 +1030,9 @@ export const de_AttachObjectCommand = async (output, context) => {
|
|
|
1116
1030
|
Object.assign(contents, doc);
|
|
1117
1031
|
return contents;
|
|
1118
1032
|
};
|
|
1119
|
-
const de_AttachObjectCommandError = async (output, context) => {
|
|
1120
|
-
const parsedOutput = {
|
|
1121
|
-
...output,
|
|
1122
|
-
body: await parseErrorBody(output.body, context),
|
|
1123
|
-
};
|
|
1124
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1125
|
-
switch (errorCode) {
|
|
1126
|
-
case "AccessDeniedException":
|
|
1127
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
1128
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1129
|
-
case "DirectoryNotEnabledException":
|
|
1130
|
-
case "com.amazonaws.clouddirectory#DirectoryNotEnabledException":
|
|
1131
|
-
throw await de_DirectoryNotEnabledExceptionRes(parsedOutput, context);
|
|
1132
|
-
case "FacetValidationException":
|
|
1133
|
-
case "com.amazonaws.clouddirectory#FacetValidationException":
|
|
1134
|
-
throw await de_FacetValidationExceptionRes(parsedOutput, context);
|
|
1135
|
-
case "InternalServiceException":
|
|
1136
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
1137
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1138
|
-
case "InvalidArnException":
|
|
1139
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
1140
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1141
|
-
case "InvalidAttachmentException":
|
|
1142
|
-
case "com.amazonaws.clouddirectory#InvalidAttachmentException":
|
|
1143
|
-
throw await de_InvalidAttachmentExceptionRes(parsedOutput, context);
|
|
1144
|
-
case "LimitExceededException":
|
|
1145
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
1146
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1147
|
-
case "LinkNameAlreadyInUseException":
|
|
1148
|
-
case "com.amazonaws.clouddirectory#LinkNameAlreadyInUseException":
|
|
1149
|
-
throw await de_LinkNameAlreadyInUseExceptionRes(parsedOutput, context);
|
|
1150
|
-
case "ResourceNotFoundException":
|
|
1151
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
1152
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1153
|
-
case "RetryableConflictException":
|
|
1154
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
1155
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
1156
|
-
case "ValidationException":
|
|
1157
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
1158
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1159
|
-
default:
|
|
1160
|
-
const parsedBody = parsedOutput.body;
|
|
1161
|
-
return throwDefaultError({
|
|
1162
|
-
output,
|
|
1163
|
-
parsedBody,
|
|
1164
|
-
errorCode,
|
|
1165
|
-
});
|
|
1166
|
-
}
|
|
1167
|
-
};
|
|
1168
1033
|
export const de_AttachPolicyCommand = async (output, context) => {
|
|
1169
1034
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1170
|
-
return
|
|
1035
|
+
return de_CommandError(output, context);
|
|
1171
1036
|
}
|
|
1172
1037
|
const contents = map({
|
|
1173
1038
|
$metadata: deserializeMetadata(output),
|
|
@@ -1175,52 +1040,9 @@ export const de_AttachPolicyCommand = async (output, context) => {
|
|
|
1175
1040
|
await collectBody(output.body, context);
|
|
1176
1041
|
return contents;
|
|
1177
1042
|
};
|
|
1178
|
-
const de_AttachPolicyCommandError = async (output, context) => {
|
|
1179
|
-
const parsedOutput = {
|
|
1180
|
-
...output,
|
|
1181
|
-
body: await parseErrorBody(output.body, context),
|
|
1182
|
-
};
|
|
1183
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1184
|
-
switch (errorCode) {
|
|
1185
|
-
case "AccessDeniedException":
|
|
1186
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
1187
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1188
|
-
case "DirectoryNotEnabledException":
|
|
1189
|
-
case "com.amazonaws.clouddirectory#DirectoryNotEnabledException":
|
|
1190
|
-
throw await de_DirectoryNotEnabledExceptionRes(parsedOutput, context);
|
|
1191
|
-
case "InternalServiceException":
|
|
1192
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
1193
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1194
|
-
case "InvalidArnException":
|
|
1195
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
1196
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1197
|
-
case "LimitExceededException":
|
|
1198
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
1199
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1200
|
-
case "NotPolicyException":
|
|
1201
|
-
case "com.amazonaws.clouddirectory#NotPolicyException":
|
|
1202
|
-
throw await de_NotPolicyExceptionRes(parsedOutput, context);
|
|
1203
|
-
case "ResourceNotFoundException":
|
|
1204
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
1205
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1206
|
-
case "RetryableConflictException":
|
|
1207
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
1208
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
1209
|
-
case "ValidationException":
|
|
1210
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
1211
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1212
|
-
default:
|
|
1213
|
-
const parsedBody = parsedOutput.body;
|
|
1214
|
-
return throwDefaultError({
|
|
1215
|
-
output,
|
|
1216
|
-
parsedBody,
|
|
1217
|
-
errorCode,
|
|
1218
|
-
});
|
|
1219
|
-
}
|
|
1220
|
-
};
|
|
1221
1043
|
export const de_AttachToIndexCommand = async (output, context) => {
|
|
1222
1044
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1223
|
-
return
|
|
1045
|
+
return de_CommandError(output, context);
|
|
1224
1046
|
}
|
|
1225
1047
|
const contents = map({
|
|
1226
1048
|
$metadata: deserializeMetadata(output),
|
|
@@ -1232,61 +1054,9 @@ export const de_AttachToIndexCommand = async (output, context) => {
|
|
|
1232
1054
|
Object.assign(contents, doc);
|
|
1233
1055
|
return contents;
|
|
1234
1056
|
};
|
|
1235
|
-
const de_AttachToIndexCommandError = async (output, context) => {
|
|
1236
|
-
const parsedOutput = {
|
|
1237
|
-
...output,
|
|
1238
|
-
body: await parseErrorBody(output.body, context),
|
|
1239
|
-
};
|
|
1240
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1241
|
-
switch (errorCode) {
|
|
1242
|
-
case "AccessDeniedException":
|
|
1243
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
1244
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1245
|
-
case "DirectoryNotEnabledException":
|
|
1246
|
-
case "com.amazonaws.clouddirectory#DirectoryNotEnabledException":
|
|
1247
|
-
throw await de_DirectoryNotEnabledExceptionRes(parsedOutput, context);
|
|
1248
|
-
case "IndexedAttributeMissingException":
|
|
1249
|
-
case "com.amazonaws.clouddirectory#IndexedAttributeMissingException":
|
|
1250
|
-
throw await de_IndexedAttributeMissingExceptionRes(parsedOutput, context);
|
|
1251
|
-
case "InternalServiceException":
|
|
1252
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
1253
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1254
|
-
case "InvalidArnException":
|
|
1255
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
1256
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1257
|
-
case "InvalidAttachmentException":
|
|
1258
|
-
case "com.amazonaws.clouddirectory#InvalidAttachmentException":
|
|
1259
|
-
throw await de_InvalidAttachmentExceptionRes(parsedOutput, context);
|
|
1260
|
-
case "LimitExceededException":
|
|
1261
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
1262
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1263
|
-
case "LinkNameAlreadyInUseException":
|
|
1264
|
-
case "com.amazonaws.clouddirectory#LinkNameAlreadyInUseException":
|
|
1265
|
-
throw await de_LinkNameAlreadyInUseExceptionRes(parsedOutput, context);
|
|
1266
|
-
case "NotIndexException":
|
|
1267
|
-
case "com.amazonaws.clouddirectory#NotIndexException":
|
|
1268
|
-
throw await de_NotIndexExceptionRes(parsedOutput, context);
|
|
1269
|
-
case "ResourceNotFoundException":
|
|
1270
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
1271
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1272
|
-
case "RetryableConflictException":
|
|
1273
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
1274
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
1275
|
-
case "ValidationException":
|
|
1276
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
1277
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1278
|
-
default:
|
|
1279
|
-
const parsedBody = parsedOutput.body;
|
|
1280
|
-
return throwDefaultError({
|
|
1281
|
-
output,
|
|
1282
|
-
parsedBody,
|
|
1283
|
-
errorCode,
|
|
1284
|
-
});
|
|
1285
|
-
}
|
|
1286
|
-
};
|
|
1287
1057
|
export const de_AttachTypedLinkCommand = async (output, context) => {
|
|
1288
1058
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1289
|
-
return
|
|
1059
|
+
return de_CommandError(output, context);
|
|
1290
1060
|
}
|
|
1291
1061
|
const contents = map({
|
|
1292
1062
|
$metadata: deserializeMetadata(output),
|
|
@@ -1298,55 +1068,9 @@ export const de_AttachTypedLinkCommand = async (output, context) => {
|
|
|
1298
1068
|
Object.assign(contents, doc);
|
|
1299
1069
|
return contents;
|
|
1300
1070
|
};
|
|
1301
|
-
const de_AttachTypedLinkCommandError = async (output, context) => {
|
|
1302
|
-
const parsedOutput = {
|
|
1303
|
-
...output,
|
|
1304
|
-
body: await parseErrorBody(output.body, context),
|
|
1305
|
-
};
|
|
1306
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1307
|
-
switch (errorCode) {
|
|
1308
|
-
case "AccessDeniedException":
|
|
1309
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
1310
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1311
|
-
case "DirectoryNotEnabledException":
|
|
1312
|
-
case "com.amazonaws.clouddirectory#DirectoryNotEnabledException":
|
|
1313
|
-
throw await de_DirectoryNotEnabledExceptionRes(parsedOutput, context);
|
|
1314
|
-
case "FacetValidationException":
|
|
1315
|
-
case "com.amazonaws.clouddirectory#FacetValidationException":
|
|
1316
|
-
throw await de_FacetValidationExceptionRes(parsedOutput, context);
|
|
1317
|
-
case "InternalServiceException":
|
|
1318
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
1319
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1320
|
-
case "InvalidArnException":
|
|
1321
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
1322
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1323
|
-
case "InvalidAttachmentException":
|
|
1324
|
-
case "com.amazonaws.clouddirectory#InvalidAttachmentException":
|
|
1325
|
-
throw await de_InvalidAttachmentExceptionRes(parsedOutput, context);
|
|
1326
|
-
case "LimitExceededException":
|
|
1327
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
1328
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1329
|
-
case "ResourceNotFoundException":
|
|
1330
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
1331
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1332
|
-
case "RetryableConflictException":
|
|
1333
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
1334
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
1335
|
-
case "ValidationException":
|
|
1336
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
1337
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1338
|
-
default:
|
|
1339
|
-
const parsedBody = parsedOutput.body;
|
|
1340
|
-
return throwDefaultError({
|
|
1341
|
-
output,
|
|
1342
|
-
parsedBody,
|
|
1343
|
-
errorCode,
|
|
1344
|
-
});
|
|
1345
|
-
}
|
|
1346
|
-
};
|
|
1347
1071
|
export const de_BatchReadCommand = async (output, context) => {
|
|
1348
1072
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1349
|
-
return
|
|
1073
|
+
return de_CommandError(output, context);
|
|
1350
1074
|
}
|
|
1351
1075
|
const contents = map({
|
|
1352
1076
|
$metadata: deserializeMetadata(output),
|
|
@@ -1358,46 +1082,9 @@ export const de_BatchReadCommand = async (output, context) => {
|
|
|
1358
1082
|
Object.assign(contents, doc);
|
|
1359
1083
|
return contents;
|
|
1360
1084
|
};
|
|
1361
|
-
const de_BatchReadCommandError = async (output, context) => {
|
|
1362
|
-
const parsedOutput = {
|
|
1363
|
-
...output,
|
|
1364
|
-
body: await parseErrorBody(output.body, context),
|
|
1365
|
-
};
|
|
1366
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1367
|
-
switch (errorCode) {
|
|
1368
|
-
case "AccessDeniedException":
|
|
1369
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
1370
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1371
|
-
case "DirectoryNotEnabledException":
|
|
1372
|
-
case "com.amazonaws.clouddirectory#DirectoryNotEnabledException":
|
|
1373
|
-
throw await de_DirectoryNotEnabledExceptionRes(parsedOutput, context);
|
|
1374
|
-
case "InternalServiceException":
|
|
1375
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
1376
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1377
|
-
case "InvalidArnException":
|
|
1378
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
1379
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1380
|
-
case "LimitExceededException":
|
|
1381
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
1382
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1383
|
-
case "RetryableConflictException":
|
|
1384
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
1385
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
1386
|
-
case "ValidationException":
|
|
1387
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
1388
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1389
|
-
default:
|
|
1390
|
-
const parsedBody = parsedOutput.body;
|
|
1391
|
-
return throwDefaultError({
|
|
1392
|
-
output,
|
|
1393
|
-
parsedBody,
|
|
1394
|
-
errorCode,
|
|
1395
|
-
});
|
|
1396
|
-
}
|
|
1397
|
-
};
|
|
1398
1085
|
export const de_BatchWriteCommand = async (output, context) => {
|
|
1399
1086
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1400
|
-
return
|
|
1087
|
+
return de_CommandError(output, context);
|
|
1401
1088
|
}
|
|
1402
1089
|
const contents = map({
|
|
1403
1090
|
$metadata: deserializeMetadata(output),
|
|
@@ -1409,49 +1096,9 @@ export const de_BatchWriteCommand = async (output, context) => {
|
|
|
1409
1096
|
Object.assign(contents, doc);
|
|
1410
1097
|
return contents;
|
|
1411
1098
|
};
|
|
1412
|
-
const de_BatchWriteCommandError = async (output, context) => {
|
|
1413
|
-
const parsedOutput = {
|
|
1414
|
-
...output,
|
|
1415
|
-
body: await parseErrorBody(output.body, context),
|
|
1416
|
-
};
|
|
1417
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1418
|
-
switch (errorCode) {
|
|
1419
|
-
case "AccessDeniedException":
|
|
1420
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
1421
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1422
|
-
case "BatchWriteException":
|
|
1423
|
-
case "com.amazonaws.clouddirectory#BatchWriteException":
|
|
1424
|
-
throw await de_BatchWriteExceptionRes(parsedOutput, context);
|
|
1425
|
-
case "DirectoryNotEnabledException":
|
|
1426
|
-
case "com.amazonaws.clouddirectory#DirectoryNotEnabledException":
|
|
1427
|
-
throw await de_DirectoryNotEnabledExceptionRes(parsedOutput, context);
|
|
1428
|
-
case "InternalServiceException":
|
|
1429
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
1430
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1431
|
-
case "InvalidArnException":
|
|
1432
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
1433
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1434
|
-
case "LimitExceededException":
|
|
1435
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
1436
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1437
|
-
case "RetryableConflictException":
|
|
1438
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
1439
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
1440
|
-
case "ValidationException":
|
|
1441
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
1442
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1443
|
-
default:
|
|
1444
|
-
const parsedBody = parsedOutput.body;
|
|
1445
|
-
return throwDefaultError({
|
|
1446
|
-
output,
|
|
1447
|
-
parsedBody,
|
|
1448
|
-
errorCode,
|
|
1449
|
-
});
|
|
1450
|
-
}
|
|
1451
|
-
};
|
|
1452
1099
|
export const de_CreateDirectoryCommand = async (output, context) => {
|
|
1453
1100
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1454
|
-
return
|
|
1101
|
+
return de_CommandError(output, context);
|
|
1455
1102
|
}
|
|
1456
1103
|
const contents = map({
|
|
1457
1104
|
$metadata: deserializeMetadata(output),
|
|
@@ -1466,49 +1113,9 @@ export const de_CreateDirectoryCommand = async (output, context) => {
|
|
|
1466
1113
|
Object.assign(contents, doc);
|
|
1467
1114
|
return contents;
|
|
1468
1115
|
};
|
|
1469
|
-
const de_CreateDirectoryCommandError = async (output, context) => {
|
|
1470
|
-
const parsedOutput = {
|
|
1471
|
-
...output,
|
|
1472
|
-
body: await parseErrorBody(output.body, context),
|
|
1473
|
-
};
|
|
1474
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1475
|
-
switch (errorCode) {
|
|
1476
|
-
case "AccessDeniedException":
|
|
1477
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
1478
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1479
|
-
case "DirectoryAlreadyExistsException":
|
|
1480
|
-
case "com.amazonaws.clouddirectory#DirectoryAlreadyExistsException":
|
|
1481
|
-
throw await de_DirectoryAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1482
|
-
case "InternalServiceException":
|
|
1483
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
1484
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1485
|
-
case "InvalidArnException":
|
|
1486
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
1487
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1488
|
-
case "LimitExceededException":
|
|
1489
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
1490
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1491
|
-
case "ResourceNotFoundException":
|
|
1492
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
1493
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1494
|
-
case "RetryableConflictException":
|
|
1495
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
1496
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
1497
|
-
case "ValidationException":
|
|
1498
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
1499
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1500
|
-
default:
|
|
1501
|
-
const parsedBody = parsedOutput.body;
|
|
1502
|
-
return throwDefaultError({
|
|
1503
|
-
output,
|
|
1504
|
-
parsedBody,
|
|
1505
|
-
errorCode,
|
|
1506
|
-
});
|
|
1507
|
-
}
|
|
1508
|
-
};
|
|
1509
1116
|
export const de_CreateFacetCommand = async (output, context) => {
|
|
1510
1117
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1511
|
-
return
|
|
1118
|
+
return de_CommandError(output, context);
|
|
1512
1119
|
}
|
|
1513
1120
|
const contents = map({
|
|
1514
1121
|
$metadata: deserializeMetadata(output),
|
|
@@ -1516,55 +1123,23 @@ export const de_CreateFacetCommand = async (output, context) => {
|
|
|
1516
1123
|
await collectBody(output.body, context);
|
|
1517
1124
|
return contents;
|
|
1518
1125
|
};
|
|
1519
|
-
const
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
body: await parseErrorBody(output.body, context),
|
|
1523
|
-
};
|
|
1524
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1525
|
-
switch (errorCode) {
|
|
1526
|
-
case "AccessDeniedException":
|
|
1527
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
1528
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1529
|
-
case "FacetAlreadyExistsException":
|
|
1530
|
-
case "com.amazonaws.clouddirectory#FacetAlreadyExistsException":
|
|
1531
|
-
throw await de_FacetAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1532
|
-
case "FacetValidationException":
|
|
1533
|
-
case "com.amazonaws.clouddirectory#FacetValidationException":
|
|
1534
|
-
throw await de_FacetValidationExceptionRes(parsedOutput, context);
|
|
1535
|
-
case "InternalServiceException":
|
|
1536
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
1537
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1538
|
-
case "InvalidArnException":
|
|
1539
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
1540
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1541
|
-
case "InvalidRuleException":
|
|
1542
|
-
case "com.amazonaws.clouddirectory#InvalidRuleException":
|
|
1543
|
-
throw await de_InvalidRuleExceptionRes(parsedOutput, context);
|
|
1544
|
-
case "LimitExceededException":
|
|
1545
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
1546
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1547
|
-
case "ResourceNotFoundException":
|
|
1548
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
1549
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1550
|
-
case "RetryableConflictException":
|
|
1551
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
1552
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
1553
|
-
case "ValidationException":
|
|
1554
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
1555
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1556
|
-
default:
|
|
1557
|
-
const parsedBody = parsedOutput.body;
|
|
1558
|
-
return throwDefaultError({
|
|
1559
|
-
output,
|
|
1560
|
-
parsedBody,
|
|
1561
|
-
errorCode,
|
|
1562
|
-
});
|
|
1126
|
+
export const de_CreateIndexCommand = async (output, context) => {
|
|
1127
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1128
|
+
return de_CommandError(output, context);
|
|
1563
1129
|
}
|
|
1130
|
+
const contents = map({
|
|
1131
|
+
$metadata: deserializeMetadata(output),
|
|
1132
|
+
});
|
|
1133
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1134
|
+
const doc = take(data, {
|
|
1135
|
+
ObjectIdentifier: __expectString,
|
|
1136
|
+
});
|
|
1137
|
+
Object.assign(contents, doc);
|
|
1138
|
+
return contents;
|
|
1564
1139
|
};
|
|
1565
|
-
export const
|
|
1140
|
+
export const de_CreateObjectCommand = async (output, context) => {
|
|
1566
1141
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1567
|
-
return
|
|
1142
|
+
return de_CommandError(output, context);
|
|
1568
1143
|
}
|
|
1569
1144
|
const contents = map({
|
|
1570
1145
|
$metadata: deserializeMetadata(output),
|
|
@@ -1576,121 +1151,67 @@ export const de_CreateIndexCommand = async (output, context) => {
|
|
|
1576
1151
|
Object.assign(contents, doc);
|
|
1577
1152
|
return contents;
|
|
1578
1153
|
};
|
|
1579
|
-
const
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
1597
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1598
|
-
case "InvalidArnException":
|
|
1599
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
1600
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1601
|
-
case "LimitExceededException":
|
|
1602
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
1603
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1604
|
-
case "LinkNameAlreadyInUseException":
|
|
1605
|
-
case "com.amazonaws.clouddirectory#LinkNameAlreadyInUseException":
|
|
1606
|
-
throw await de_LinkNameAlreadyInUseExceptionRes(parsedOutput, context);
|
|
1607
|
-
case "ResourceNotFoundException":
|
|
1608
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
1609
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1610
|
-
case "RetryableConflictException":
|
|
1611
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
1612
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
1613
|
-
case "UnsupportedIndexTypeException":
|
|
1614
|
-
case "com.amazonaws.clouddirectory#UnsupportedIndexTypeException":
|
|
1615
|
-
throw await de_UnsupportedIndexTypeExceptionRes(parsedOutput, context);
|
|
1616
|
-
case "ValidationException":
|
|
1617
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
1618
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1619
|
-
default:
|
|
1620
|
-
const parsedBody = parsedOutput.body;
|
|
1621
|
-
return throwDefaultError({
|
|
1622
|
-
output,
|
|
1623
|
-
parsedBody,
|
|
1624
|
-
errorCode,
|
|
1625
|
-
});
|
|
1154
|
+
export const de_CreateSchemaCommand = async (output, context) => {
|
|
1155
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1156
|
+
return de_CommandError(output, context);
|
|
1157
|
+
}
|
|
1158
|
+
const contents = map({
|
|
1159
|
+
$metadata: deserializeMetadata(output),
|
|
1160
|
+
});
|
|
1161
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1162
|
+
const doc = take(data, {
|
|
1163
|
+
SchemaArn: __expectString,
|
|
1164
|
+
});
|
|
1165
|
+
Object.assign(contents, doc);
|
|
1166
|
+
return contents;
|
|
1167
|
+
};
|
|
1168
|
+
export const de_CreateTypedLinkFacetCommand = async (output, context) => {
|
|
1169
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1170
|
+
return de_CommandError(output, context);
|
|
1626
1171
|
}
|
|
1172
|
+
const contents = map({
|
|
1173
|
+
$metadata: deserializeMetadata(output),
|
|
1174
|
+
});
|
|
1175
|
+
await collectBody(output.body, context);
|
|
1176
|
+
return contents;
|
|
1627
1177
|
};
|
|
1628
|
-
export const
|
|
1178
|
+
export const de_DeleteDirectoryCommand = async (output, context) => {
|
|
1629
1179
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1630
|
-
return
|
|
1180
|
+
return de_CommandError(output, context);
|
|
1631
1181
|
}
|
|
1632
1182
|
const contents = map({
|
|
1633
1183
|
$metadata: deserializeMetadata(output),
|
|
1634
1184
|
});
|
|
1635
1185
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1636
1186
|
const doc = take(data, {
|
|
1637
|
-
|
|
1187
|
+
DirectoryArn: __expectString,
|
|
1638
1188
|
});
|
|
1639
1189
|
Object.assign(contents, doc);
|
|
1640
1190
|
return contents;
|
|
1641
1191
|
};
|
|
1642
|
-
const
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
case "FacetValidationException":
|
|
1656
|
-
case "com.amazonaws.clouddirectory#FacetValidationException":
|
|
1657
|
-
throw await de_FacetValidationExceptionRes(parsedOutput, context);
|
|
1658
|
-
case "InternalServiceException":
|
|
1659
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
1660
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1661
|
-
case "InvalidArnException":
|
|
1662
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
1663
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1664
|
-
case "LimitExceededException":
|
|
1665
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
1666
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1667
|
-
case "LinkNameAlreadyInUseException":
|
|
1668
|
-
case "com.amazonaws.clouddirectory#LinkNameAlreadyInUseException":
|
|
1669
|
-
throw await de_LinkNameAlreadyInUseExceptionRes(parsedOutput, context);
|
|
1670
|
-
case "ResourceNotFoundException":
|
|
1671
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
1672
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1673
|
-
case "RetryableConflictException":
|
|
1674
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
1675
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
1676
|
-
case "UnsupportedIndexTypeException":
|
|
1677
|
-
case "com.amazonaws.clouddirectory#UnsupportedIndexTypeException":
|
|
1678
|
-
throw await de_UnsupportedIndexTypeExceptionRes(parsedOutput, context);
|
|
1679
|
-
case "ValidationException":
|
|
1680
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
1681
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1682
|
-
default:
|
|
1683
|
-
const parsedBody = parsedOutput.body;
|
|
1684
|
-
return throwDefaultError({
|
|
1685
|
-
output,
|
|
1686
|
-
parsedBody,
|
|
1687
|
-
errorCode,
|
|
1688
|
-
});
|
|
1192
|
+
export const de_DeleteFacetCommand = async (output, context) => {
|
|
1193
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1194
|
+
return de_CommandError(output, context);
|
|
1195
|
+
}
|
|
1196
|
+
const contents = map({
|
|
1197
|
+
$metadata: deserializeMetadata(output),
|
|
1198
|
+
});
|
|
1199
|
+
await collectBody(output.body, context);
|
|
1200
|
+
return contents;
|
|
1201
|
+
};
|
|
1202
|
+
export const de_DeleteObjectCommand = async (output, context) => {
|
|
1203
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1204
|
+
return de_CommandError(output, context);
|
|
1689
1205
|
}
|
|
1206
|
+
const contents = map({
|
|
1207
|
+
$metadata: deserializeMetadata(output),
|
|
1208
|
+
});
|
|
1209
|
+
await collectBody(output.body, context);
|
|
1210
|
+
return contents;
|
|
1690
1211
|
};
|
|
1691
|
-
export const
|
|
1212
|
+
export const de_DeleteSchemaCommand = async (output, context) => {
|
|
1692
1213
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1693
|
-
return
|
|
1214
|
+
return de_CommandError(output, context);
|
|
1694
1215
|
}
|
|
1695
1216
|
const contents = map({
|
|
1696
1217
|
$metadata: deserializeMetadata(output),
|
|
@@ -1702,46 +1223,9 @@ export const de_CreateSchemaCommand = async (output, context) => {
|
|
|
1702
1223
|
Object.assign(contents, doc);
|
|
1703
1224
|
return contents;
|
|
1704
1225
|
};
|
|
1705
|
-
const
|
|
1706
|
-
const parsedOutput = {
|
|
1707
|
-
...output,
|
|
1708
|
-
body: await parseErrorBody(output.body, context),
|
|
1709
|
-
};
|
|
1710
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1711
|
-
switch (errorCode) {
|
|
1712
|
-
case "AccessDeniedException":
|
|
1713
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
1714
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1715
|
-
case "InternalServiceException":
|
|
1716
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
1717
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1718
|
-
case "InvalidArnException":
|
|
1719
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
1720
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1721
|
-
case "LimitExceededException":
|
|
1722
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
1723
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1724
|
-
case "RetryableConflictException":
|
|
1725
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
1726
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
1727
|
-
case "SchemaAlreadyExistsException":
|
|
1728
|
-
case "com.amazonaws.clouddirectory#SchemaAlreadyExistsException":
|
|
1729
|
-
throw await de_SchemaAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1730
|
-
case "ValidationException":
|
|
1731
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
1732
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1733
|
-
default:
|
|
1734
|
-
const parsedBody = parsedOutput.body;
|
|
1735
|
-
return throwDefaultError({
|
|
1736
|
-
output,
|
|
1737
|
-
parsedBody,
|
|
1738
|
-
errorCode,
|
|
1739
|
-
});
|
|
1740
|
-
}
|
|
1741
|
-
};
|
|
1742
|
-
export const de_CreateTypedLinkFacetCommand = async (output, context) => {
|
|
1226
|
+
export const de_DeleteTypedLinkFacetCommand = async (output, context) => {
|
|
1743
1227
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1744
|
-
return
|
|
1228
|
+
return de_CommandError(output, context);
|
|
1745
1229
|
}
|
|
1746
1230
|
const contents = map({
|
|
1747
1231
|
$metadata: deserializeMetadata(output),
|
|
@@ -1749,112 +1233,37 @@ export const de_CreateTypedLinkFacetCommand = async (output, context) => {
|
|
|
1749
1233
|
await collectBody(output.body, context);
|
|
1750
1234
|
return contents;
|
|
1751
1235
|
};
|
|
1752
|
-
const
|
|
1753
|
-
const parsedOutput = {
|
|
1754
|
-
...output,
|
|
1755
|
-
body: await parseErrorBody(output.body, context),
|
|
1756
|
-
};
|
|
1757
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1758
|
-
switch (errorCode) {
|
|
1759
|
-
case "AccessDeniedException":
|
|
1760
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
1761
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1762
|
-
case "FacetAlreadyExistsException":
|
|
1763
|
-
case "com.amazonaws.clouddirectory#FacetAlreadyExistsException":
|
|
1764
|
-
throw await de_FacetAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1765
|
-
case "FacetValidationException":
|
|
1766
|
-
case "com.amazonaws.clouddirectory#FacetValidationException":
|
|
1767
|
-
throw await de_FacetValidationExceptionRes(parsedOutput, context);
|
|
1768
|
-
case "InternalServiceException":
|
|
1769
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
1770
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1771
|
-
case "InvalidArnException":
|
|
1772
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
1773
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1774
|
-
case "InvalidRuleException":
|
|
1775
|
-
case "com.amazonaws.clouddirectory#InvalidRuleException":
|
|
1776
|
-
throw await de_InvalidRuleExceptionRes(parsedOutput, context);
|
|
1777
|
-
case "LimitExceededException":
|
|
1778
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
1779
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1780
|
-
case "ResourceNotFoundException":
|
|
1781
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
1782
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1783
|
-
case "RetryableConflictException":
|
|
1784
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
1785
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
1786
|
-
case "ValidationException":
|
|
1787
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
1788
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1789
|
-
default:
|
|
1790
|
-
const parsedBody = parsedOutput.body;
|
|
1791
|
-
return throwDefaultError({
|
|
1792
|
-
output,
|
|
1793
|
-
parsedBody,
|
|
1794
|
-
errorCode,
|
|
1795
|
-
});
|
|
1796
|
-
}
|
|
1797
|
-
};
|
|
1798
|
-
export const de_DeleteDirectoryCommand = async (output, context) => {
|
|
1236
|
+
export const de_DetachFromIndexCommand = async (output, context) => {
|
|
1799
1237
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1800
|
-
return
|
|
1238
|
+
return de_CommandError(output, context);
|
|
1801
1239
|
}
|
|
1802
1240
|
const contents = map({
|
|
1803
1241
|
$metadata: deserializeMetadata(output),
|
|
1804
1242
|
});
|
|
1805
1243
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1806
1244
|
const doc = take(data, {
|
|
1807
|
-
|
|
1245
|
+
DetachedObjectIdentifier: __expectString,
|
|
1808
1246
|
});
|
|
1809
1247
|
Object.assign(contents, doc);
|
|
1810
1248
|
return contents;
|
|
1811
1249
|
};
|
|
1812
|
-
const
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
body: await parseErrorBody(output.body, context),
|
|
1816
|
-
};
|
|
1817
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1818
|
-
switch (errorCode) {
|
|
1819
|
-
case "AccessDeniedException":
|
|
1820
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
1821
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1822
|
-
case "DirectoryDeletedException":
|
|
1823
|
-
case "com.amazonaws.clouddirectory#DirectoryDeletedException":
|
|
1824
|
-
throw await de_DirectoryDeletedExceptionRes(parsedOutput, context);
|
|
1825
|
-
case "DirectoryNotDisabledException":
|
|
1826
|
-
case "com.amazonaws.clouddirectory#DirectoryNotDisabledException":
|
|
1827
|
-
throw await de_DirectoryNotDisabledExceptionRes(parsedOutput, context);
|
|
1828
|
-
case "InternalServiceException":
|
|
1829
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
1830
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1831
|
-
case "InvalidArnException":
|
|
1832
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
1833
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1834
|
-
case "LimitExceededException":
|
|
1835
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
1836
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1837
|
-
case "ResourceNotFoundException":
|
|
1838
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
1839
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1840
|
-
case "RetryableConflictException":
|
|
1841
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
1842
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
1843
|
-
case "ValidationException":
|
|
1844
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
1845
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1846
|
-
default:
|
|
1847
|
-
const parsedBody = parsedOutput.body;
|
|
1848
|
-
return throwDefaultError({
|
|
1849
|
-
output,
|
|
1850
|
-
parsedBody,
|
|
1851
|
-
errorCode,
|
|
1852
|
-
});
|
|
1250
|
+
export const de_DetachObjectCommand = async (output, context) => {
|
|
1251
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1252
|
+
return de_CommandError(output, context);
|
|
1853
1253
|
}
|
|
1254
|
+
const contents = map({
|
|
1255
|
+
$metadata: deserializeMetadata(output),
|
|
1256
|
+
});
|
|
1257
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1258
|
+
const doc = take(data, {
|
|
1259
|
+
DetachedObjectIdentifier: __expectString,
|
|
1260
|
+
});
|
|
1261
|
+
Object.assign(contents, doc);
|
|
1262
|
+
return contents;
|
|
1854
1263
|
};
|
|
1855
|
-
export const
|
|
1264
|
+
export const de_DetachPolicyCommand = async (output, context) => {
|
|
1856
1265
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1857
|
-
return
|
|
1266
|
+
return de_CommandError(output, context);
|
|
1858
1267
|
}
|
|
1859
1268
|
const contents = map({
|
|
1860
1269
|
$metadata: deserializeMetadata(output),
|
|
@@ -1862,52 +1271,9 @@ export const de_DeleteFacetCommand = async (output, context) => {
|
|
|
1862
1271
|
await collectBody(output.body, context);
|
|
1863
1272
|
return contents;
|
|
1864
1273
|
};
|
|
1865
|
-
const
|
|
1866
|
-
const parsedOutput = {
|
|
1867
|
-
...output,
|
|
1868
|
-
body: await parseErrorBody(output.body, context),
|
|
1869
|
-
};
|
|
1870
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1871
|
-
switch (errorCode) {
|
|
1872
|
-
case "AccessDeniedException":
|
|
1873
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
1874
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1875
|
-
case "FacetInUseException":
|
|
1876
|
-
case "com.amazonaws.clouddirectory#FacetInUseException":
|
|
1877
|
-
throw await de_FacetInUseExceptionRes(parsedOutput, context);
|
|
1878
|
-
case "FacetNotFoundException":
|
|
1879
|
-
case "com.amazonaws.clouddirectory#FacetNotFoundException":
|
|
1880
|
-
throw await de_FacetNotFoundExceptionRes(parsedOutput, context);
|
|
1881
|
-
case "InternalServiceException":
|
|
1882
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
1883
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1884
|
-
case "InvalidArnException":
|
|
1885
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
1886
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1887
|
-
case "LimitExceededException":
|
|
1888
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
1889
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1890
|
-
case "ResourceNotFoundException":
|
|
1891
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
1892
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1893
|
-
case "RetryableConflictException":
|
|
1894
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
1895
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
1896
|
-
case "ValidationException":
|
|
1897
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
1898
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1899
|
-
default:
|
|
1900
|
-
const parsedBody = parsedOutput.body;
|
|
1901
|
-
return throwDefaultError({
|
|
1902
|
-
output,
|
|
1903
|
-
parsedBody,
|
|
1904
|
-
errorCode,
|
|
1905
|
-
});
|
|
1906
|
-
}
|
|
1907
|
-
};
|
|
1908
|
-
export const de_DeleteObjectCommand = async (output, context) => {
|
|
1274
|
+
export const de_DetachTypedLinkCommand = async (output, context) => {
|
|
1909
1275
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1910
|
-
return
|
|
1276
|
+
return de_CommandError(output, context);
|
|
1911
1277
|
}
|
|
1912
1278
|
const contents = map({
|
|
1913
1279
|
$metadata: deserializeMetadata(output),
|
|
@@ -1915,697 +1281,286 @@ export const de_DeleteObjectCommand = async (output, context) => {
|
|
|
1915
1281
|
await collectBody(output.body, context);
|
|
1916
1282
|
return contents;
|
|
1917
1283
|
};
|
|
1918
|
-
const
|
|
1919
|
-
const parsedOutput = {
|
|
1920
|
-
...output,
|
|
1921
|
-
body: await parseErrorBody(output.body, context),
|
|
1922
|
-
};
|
|
1923
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1924
|
-
switch (errorCode) {
|
|
1925
|
-
case "AccessDeniedException":
|
|
1926
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
1927
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1928
|
-
case "DirectoryNotEnabledException":
|
|
1929
|
-
case "com.amazonaws.clouddirectory#DirectoryNotEnabledException":
|
|
1930
|
-
throw await de_DirectoryNotEnabledExceptionRes(parsedOutput, context);
|
|
1931
|
-
case "InternalServiceException":
|
|
1932
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
1933
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1934
|
-
case "InvalidArnException":
|
|
1935
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
1936
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1937
|
-
case "LimitExceededException":
|
|
1938
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
1939
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1940
|
-
case "ObjectNotDetachedException":
|
|
1941
|
-
case "com.amazonaws.clouddirectory#ObjectNotDetachedException":
|
|
1942
|
-
throw await de_ObjectNotDetachedExceptionRes(parsedOutput, context);
|
|
1943
|
-
case "ResourceNotFoundException":
|
|
1944
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
1945
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1946
|
-
case "RetryableConflictException":
|
|
1947
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
1948
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
1949
|
-
case "ValidationException":
|
|
1950
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
1951
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1952
|
-
default:
|
|
1953
|
-
const parsedBody = parsedOutput.body;
|
|
1954
|
-
return throwDefaultError({
|
|
1955
|
-
output,
|
|
1956
|
-
parsedBody,
|
|
1957
|
-
errorCode,
|
|
1958
|
-
});
|
|
1959
|
-
}
|
|
1960
|
-
};
|
|
1961
|
-
export const de_DeleteSchemaCommand = async (output, context) => {
|
|
1284
|
+
export const de_DisableDirectoryCommand = async (output, context) => {
|
|
1962
1285
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1963
|
-
return
|
|
1286
|
+
return de_CommandError(output, context);
|
|
1964
1287
|
}
|
|
1965
1288
|
const contents = map({
|
|
1966
1289
|
$metadata: deserializeMetadata(output),
|
|
1967
1290
|
});
|
|
1968
1291
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1969
1292
|
const doc = take(data, {
|
|
1970
|
-
|
|
1293
|
+
DirectoryArn: __expectString,
|
|
1971
1294
|
});
|
|
1972
1295
|
Object.assign(contents, doc);
|
|
1973
1296
|
return contents;
|
|
1974
1297
|
};
|
|
1975
|
-
const
|
|
1976
|
-
const parsedOutput = {
|
|
1977
|
-
...output,
|
|
1978
|
-
body: await parseErrorBody(output.body, context),
|
|
1979
|
-
};
|
|
1980
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1981
|
-
switch (errorCode) {
|
|
1982
|
-
case "AccessDeniedException":
|
|
1983
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
1984
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1985
|
-
case "InternalServiceException":
|
|
1986
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
1987
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1988
|
-
case "InvalidArnException":
|
|
1989
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
1990
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1991
|
-
case "LimitExceededException":
|
|
1992
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
1993
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1994
|
-
case "ResourceNotFoundException":
|
|
1995
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
1996
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1997
|
-
case "RetryableConflictException":
|
|
1998
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
1999
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
2000
|
-
case "StillContainsLinksException":
|
|
2001
|
-
case "com.amazonaws.clouddirectory#StillContainsLinksException":
|
|
2002
|
-
throw await de_StillContainsLinksExceptionRes(parsedOutput, context);
|
|
2003
|
-
case "ValidationException":
|
|
2004
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
2005
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2006
|
-
default:
|
|
2007
|
-
const parsedBody = parsedOutput.body;
|
|
2008
|
-
return throwDefaultError({
|
|
2009
|
-
output,
|
|
2010
|
-
parsedBody,
|
|
2011
|
-
errorCode,
|
|
2012
|
-
});
|
|
2013
|
-
}
|
|
2014
|
-
};
|
|
2015
|
-
export const de_DeleteTypedLinkFacetCommand = async (output, context) => {
|
|
1298
|
+
export const de_EnableDirectoryCommand = async (output, context) => {
|
|
2016
1299
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2017
|
-
return
|
|
1300
|
+
return de_CommandError(output, context);
|
|
2018
1301
|
}
|
|
2019
1302
|
const contents = map({
|
|
2020
1303
|
$metadata: deserializeMetadata(output),
|
|
2021
1304
|
});
|
|
2022
|
-
await
|
|
1305
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1306
|
+
const doc = take(data, {
|
|
1307
|
+
DirectoryArn: __expectString,
|
|
1308
|
+
});
|
|
1309
|
+
Object.assign(contents, doc);
|
|
2023
1310
|
return contents;
|
|
2024
1311
|
};
|
|
2025
|
-
const
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
body: await parseErrorBody(output.body, context),
|
|
2029
|
-
};
|
|
2030
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2031
|
-
switch (errorCode) {
|
|
2032
|
-
case "AccessDeniedException":
|
|
2033
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
2034
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2035
|
-
case "FacetNotFoundException":
|
|
2036
|
-
case "com.amazonaws.clouddirectory#FacetNotFoundException":
|
|
2037
|
-
throw await de_FacetNotFoundExceptionRes(parsedOutput, context);
|
|
2038
|
-
case "InternalServiceException":
|
|
2039
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
2040
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2041
|
-
case "InvalidArnException":
|
|
2042
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
2043
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
2044
|
-
case "LimitExceededException":
|
|
2045
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
2046
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2047
|
-
case "ResourceNotFoundException":
|
|
2048
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
2049
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2050
|
-
case "RetryableConflictException":
|
|
2051
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
2052
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
2053
|
-
case "ValidationException":
|
|
2054
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
2055
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2056
|
-
default:
|
|
2057
|
-
const parsedBody = parsedOutput.body;
|
|
2058
|
-
return throwDefaultError({
|
|
2059
|
-
output,
|
|
2060
|
-
parsedBody,
|
|
2061
|
-
errorCode,
|
|
2062
|
-
});
|
|
1312
|
+
export const de_GetAppliedSchemaVersionCommand = async (output, context) => {
|
|
1313
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1314
|
+
return de_CommandError(output, context);
|
|
2063
1315
|
}
|
|
1316
|
+
const contents = map({
|
|
1317
|
+
$metadata: deserializeMetadata(output),
|
|
1318
|
+
});
|
|
1319
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1320
|
+
const doc = take(data, {
|
|
1321
|
+
AppliedSchemaArn: __expectString,
|
|
1322
|
+
});
|
|
1323
|
+
Object.assign(contents, doc);
|
|
1324
|
+
return contents;
|
|
2064
1325
|
};
|
|
2065
|
-
export const
|
|
1326
|
+
export const de_GetDirectoryCommand = async (output, context) => {
|
|
2066
1327
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2067
|
-
return
|
|
1328
|
+
return de_CommandError(output, context);
|
|
2068
1329
|
}
|
|
2069
1330
|
const contents = map({
|
|
2070
1331
|
$metadata: deserializeMetadata(output),
|
|
2071
1332
|
});
|
|
2072
1333
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2073
1334
|
const doc = take(data, {
|
|
2074
|
-
|
|
1335
|
+
Directory: (_) => de_Directory(_, context),
|
|
2075
1336
|
});
|
|
2076
1337
|
Object.assign(contents, doc);
|
|
2077
1338
|
return contents;
|
|
2078
1339
|
};
|
|
2079
|
-
const
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
body: await parseErrorBody(output.body, context),
|
|
2083
|
-
};
|
|
2084
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2085
|
-
switch (errorCode) {
|
|
2086
|
-
case "AccessDeniedException":
|
|
2087
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
2088
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2089
|
-
case "DirectoryNotEnabledException":
|
|
2090
|
-
case "com.amazonaws.clouddirectory#DirectoryNotEnabledException":
|
|
2091
|
-
throw await de_DirectoryNotEnabledExceptionRes(parsedOutput, context);
|
|
2092
|
-
case "InternalServiceException":
|
|
2093
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
2094
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2095
|
-
case "InvalidArnException":
|
|
2096
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
2097
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
2098
|
-
case "LimitExceededException":
|
|
2099
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
2100
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2101
|
-
case "NotIndexException":
|
|
2102
|
-
case "com.amazonaws.clouddirectory#NotIndexException":
|
|
2103
|
-
throw await de_NotIndexExceptionRes(parsedOutput, context);
|
|
2104
|
-
case "ObjectAlreadyDetachedException":
|
|
2105
|
-
case "com.amazonaws.clouddirectory#ObjectAlreadyDetachedException":
|
|
2106
|
-
throw await de_ObjectAlreadyDetachedExceptionRes(parsedOutput, context);
|
|
2107
|
-
case "ResourceNotFoundException":
|
|
2108
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
2109
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2110
|
-
case "RetryableConflictException":
|
|
2111
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
2112
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
2113
|
-
case "ValidationException":
|
|
2114
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
2115
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2116
|
-
default:
|
|
2117
|
-
const parsedBody = parsedOutput.body;
|
|
2118
|
-
return throwDefaultError({
|
|
2119
|
-
output,
|
|
2120
|
-
parsedBody,
|
|
2121
|
-
errorCode,
|
|
2122
|
-
});
|
|
1340
|
+
export const de_GetFacetCommand = async (output, context) => {
|
|
1341
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1342
|
+
return de_CommandError(output, context);
|
|
2123
1343
|
}
|
|
1344
|
+
const contents = map({
|
|
1345
|
+
$metadata: deserializeMetadata(output),
|
|
1346
|
+
});
|
|
1347
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1348
|
+
const doc = take(data, {
|
|
1349
|
+
Facet: _json,
|
|
1350
|
+
});
|
|
1351
|
+
Object.assign(contents, doc);
|
|
1352
|
+
return contents;
|
|
2124
1353
|
};
|
|
2125
|
-
export const
|
|
1354
|
+
export const de_GetLinkAttributesCommand = async (output, context) => {
|
|
2126
1355
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2127
|
-
return
|
|
1356
|
+
return de_CommandError(output, context);
|
|
2128
1357
|
}
|
|
2129
1358
|
const contents = map({
|
|
2130
1359
|
$metadata: deserializeMetadata(output),
|
|
2131
1360
|
});
|
|
2132
1361
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2133
1362
|
const doc = take(data, {
|
|
2134
|
-
|
|
1363
|
+
Attributes: (_) => de_AttributeKeyAndValueList(_, context),
|
|
2135
1364
|
});
|
|
2136
1365
|
Object.assign(contents, doc);
|
|
2137
1366
|
return contents;
|
|
2138
1367
|
};
|
|
2139
|
-
const
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
body: await parseErrorBody(output.body, context),
|
|
2143
|
-
};
|
|
2144
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2145
|
-
switch (errorCode) {
|
|
2146
|
-
case "AccessDeniedException":
|
|
2147
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
2148
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2149
|
-
case "DirectoryNotEnabledException":
|
|
2150
|
-
case "com.amazonaws.clouddirectory#DirectoryNotEnabledException":
|
|
2151
|
-
throw await de_DirectoryNotEnabledExceptionRes(parsedOutput, context);
|
|
2152
|
-
case "InternalServiceException":
|
|
2153
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
2154
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2155
|
-
case "InvalidArnException":
|
|
2156
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
2157
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
2158
|
-
case "LimitExceededException":
|
|
2159
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
2160
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2161
|
-
case "NotNodeException":
|
|
2162
|
-
case "com.amazonaws.clouddirectory#NotNodeException":
|
|
2163
|
-
throw await de_NotNodeExceptionRes(parsedOutput, context);
|
|
2164
|
-
case "ResourceNotFoundException":
|
|
2165
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
2166
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2167
|
-
case "RetryableConflictException":
|
|
2168
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
2169
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
2170
|
-
case "ValidationException":
|
|
2171
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
2172
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2173
|
-
default:
|
|
2174
|
-
const parsedBody = parsedOutput.body;
|
|
2175
|
-
return throwDefaultError({
|
|
2176
|
-
output,
|
|
2177
|
-
parsedBody,
|
|
2178
|
-
errorCode,
|
|
2179
|
-
});
|
|
1368
|
+
export const de_GetObjectAttributesCommand = async (output, context) => {
|
|
1369
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1370
|
+
return de_CommandError(output, context);
|
|
2180
1371
|
}
|
|
1372
|
+
const contents = map({
|
|
1373
|
+
$metadata: deserializeMetadata(output),
|
|
1374
|
+
});
|
|
1375
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1376
|
+
const doc = take(data, {
|
|
1377
|
+
Attributes: (_) => de_AttributeKeyAndValueList(_, context),
|
|
1378
|
+
});
|
|
1379
|
+
Object.assign(contents, doc);
|
|
1380
|
+
return contents;
|
|
2181
1381
|
};
|
|
2182
|
-
export const
|
|
1382
|
+
export const de_GetObjectInformationCommand = async (output, context) => {
|
|
2183
1383
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2184
|
-
return
|
|
1384
|
+
return de_CommandError(output, context);
|
|
2185
1385
|
}
|
|
2186
1386
|
const contents = map({
|
|
2187
1387
|
$metadata: deserializeMetadata(output),
|
|
2188
1388
|
});
|
|
2189
|
-
await
|
|
1389
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1390
|
+
const doc = take(data, {
|
|
1391
|
+
ObjectIdentifier: __expectString,
|
|
1392
|
+
SchemaFacets: _json,
|
|
1393
|
+
});
|
|
1394
|
+
Object.assign(contents, doc);
|
|
2190
1395
|
return contents;
|
|
2191
1396
|
};
|
|
2192
|
-
const
|
|
2193
|
-
const parsedOutput = {
|
|
2194
|
-
...output,
|
|
2195
|
-
body: await parseErrorBody(output.body, context),
|
|
2196
|
-
};
|
|
2197
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2198
|
-
switch (errorCode) {
|
|
2199
|
-
case "AccessDeniedException":
|
|
2200
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
2201
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2202
|
-
case "DirectoryNotEnabledException":
|
|
2203
|
-
case "com.amazonaws.clouddirectory#DirectoryNotEnabledException":
|
|
2204
|
-
throw await de_DirectoryNotEnabledExceptionRes(parsedOutput, context);
|
|
2205
|
-
case "InternalServiceException":
|
|
2206
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
2207
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2208
|
-
case "InvalidArnException":
|
|
2209
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
2210
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
2211
|
-
case "LimitExceededException":
|
|
2212
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
2213
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2214
|
-
case "NotPolicyException":
|
|
2215
|
-
case "com.amazonaws.clouddirectory#NotPolicyException":
|
|
2216
|
-
throw await de_NotPolicyExceptionRes(parsedOutput, context);
|
|
2217
|
-
case "ResourceNotFoundException":
|
|
2218
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
2219
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2220
|
-
case "RetryableConflictException":
|
|
2221
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
2222
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
2223
|
-
case "ValidationException":
|
|
2224
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
2225
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2226
|
-
default:
|
|
2227
|
-
const parsedBody = parsedOutput.body;
|
|
2228
|
-
return throwDefaultError({
|
|
2229
|
-
output,
|
|
2230
|
-
parsedBody,
|
|
2231
|
-
errorCode,
|
|
2232
|
-
});
|
|
2233
|
-
}
|
|
2234
|
-
};
|
|
2235
|
-
export const de_DetachTypedLinkCommand = async (output, context) => {
|
|
1397
|
+
export const de_GetSchemaAsJsonCommand = async (output, context) => {
|
|
2236
1398
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2237
|
-
return
|
|
1399
|
+
return de_CommandError(output, context);
|
|
2238
1400
|
}
|
|
2239
1401
|
const contents = map({
|
|
2240
1402
|
$metadata: deserializeMetadata(output),
|
|
2241
1403
|
});
|
|
2242
|
-
await
|
|
1404
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1405
|
+
const doc = take(data, {
|
|
1406
|
+
Document: __expectString,
|
|
1407
|
+
Name: __expectString,
|
|
1408
|
+
});
|
|
1409
|
+
Object.assign(contents, doc);
|
|
2243
1410
|
return contents;
|
|
2244
1411
|
};
|
|
2245
|
-
const
|
|
2246
|
-
const parsedOutput = {
|
|
2247
|
-
...output,
|
|
2248
|
-
body: await parseErrorBody(output.body, context),
|
|
2249
|
-
};
|
|
2250
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2251
|
-
switch (errorCode) {
|
|
2252
|
-
case "AccessDeniedException":
|
|
2253
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
2254
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2255
|
-
case "DirectoryNotEnabledException":
|
|
2256
|
-
case "com.amazonaws.clouddirectory#DirectoryNotEnabledException":
|
|
2257
|
-
throw await de_DirectoryNotEnabledExceptionRes(parsedOutput, context);
|
|
2258
|
-
case "FacetValidationException":
|
|
2259
|
-
case "com.amazonaws.clouddirectory#FacetValidationException":
|
|
2260
|
-
throw await de_FacetValidationExceptionRes(parsedOutput, context);
|
|
2261
|
-
case "InternalServiceException":
|
|
2262
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
2263
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2264
|
-
case "InvalidArnException":
|
|
2265
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
2266
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
2267
|
-
case "LimitExceededException":
|
|
2268
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
2269
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2270
|
-
case "ResourceNotFoundException":
|
|
2271
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
2272
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2273
|
-
case "RetryableConflictException":
|
|
2274
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
2275
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
2276
|
-
case "ValidationException":
|
|
2277
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
2278
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2279
|
-
default:
|
|
2280
|
-
const parsedBody = parsedOutput.body;
|
|
2281
|
-
return throwDefaultError({
|
|
2282
|
-
output,
|
|
2283
|
-
parsedBody,
|
|
2284
|
-
errorCode,
|
|
2285
|
-
});
|
|
2286
|
-
}
|
|
2287
|
-
};
|
|
2288
|
-
export const de_DisableDirectoryCommand = async (output, context) => {
|
|
1412
|
+
export const de_GetTypedLinkFacetInformationCommand = async (output, context) => {
|
|
2289
1413
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2290
|
-
return
|
|
1414
|
+
return de_CommandError(output, context);
|
|
2291
1415
|
}
|
|
2292
1416
|
const contents = map({
|
|
2293
1417
|
$metadata: deserializeMetadata(output),
|
|
2294
1418
|
});
|
|
2295
1419
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2296
1420
|
const doc = take(data, {
|
|
2297
|
-
|
|
1421
|
+
IdentityAttributeOrder: _json,
|
|
2298
1422
|
});
|
|
2299
1423
|
Object.assign(contents, doc);
|
|
2300
1424
|
return contents;
|
|
2301
1425
|
};
|
|
2302
|
-
const
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
body: await parseErrorBody(output.body, context),
|
|
2306
|
-
};
|
|
2307
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2308
|
-
switch (errorCode) {
|
|
2309
|
-
case "AccessDeniedException":
|
|
2310
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
2311
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2312
|
-
case "DirectoryDeletedException":
|
|
2313
|
-
case "com.amazonaws.clouddirectory#DirectoryDeletedException":
|
|
2314
|
-
throw await de_DirectoryDeletedExceptionRes(parsedOutput, context);
|
|
2315
|
-
case "InternalServiceException":
|
|
2316
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
2317
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2318
|
-
case "InvalidArnException":
|
|
2319
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
2320
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
2321
|
-
case "LimitExceededException":
|
|
2322
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
2323
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2324
|
-
case "ResourceNotFoundException":
|
|
2325
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
2326
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2327
|
-
case "RetryableConflictException":
|
|
2328
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
2329
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
2330
|
-
case "ValidationException":
|
|
2331
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
2332
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2333
|
-
default:
|
|
2334
|
-
const parsedBody = parsedOutput.body;
|
|
2335
|
-
return throwDefaultError({
|
|
2336
|
-
output,
|
|
2337
|
-
parsedBody,
|
|
2338
|
-
errorCode,
|
|
2339
|
-
});
|
|
1426
|
+
export const de_ListAppliedSchemaArnsCommand = async (output, context) => {
|
|
1427
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1428
|
+
return de_CommandError(output, context);
|
|
2340
1429
|
}
|
|
1430
|
+
const contents = map({
|
|
1431
|
+
$metadata: deserializeMetadata(output),
|
|
1432
|
+
});
|
|
1433
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1434
|
+
const doc = take(data, {
|
|
1435
|
+
NextToken: __expectString,
|
|
1436
|
+
SchemaArns: _json,
|
|
1437
|
+
});
|
|
1438
|
+
Object.assign(contents, doc);
|
|
1439
|
+
return contents;
|
|
2341
1440
|
};
|
|
2342
|
-
export const
|
|
1441
|
+
export const de_ListAttachedIndicesCommand = async (output, context) => {
|
|
2343
1442
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2344
|
-
return
|
|
1443
|
+
return de_CommandError(output, context);
|
|
2345
1444
|
}
|
|
2346
1445
|
const contents = map({
|
|
2347
1446
|
$metadata: deserializeMetadata(output),
|
|
2348
1447
|
});
|
|
2349
1448
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2350
1449
|
const doc = take(data, {
|
|
2351
|
-
|
|
1450
|
+
IndexAttachments: (_) => de_IndexAttachmentList(_, context),
|
|
1451
|
+
NextToken: __expectString,
|
|
2352
1452
|
});
|
|
2353
1453
|
Object.assign(contents, doc);
|
|
2354
1454
|
return contents;
|
|
2355
1455
|
};
|
|
2356
|
-
const
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
body: await parseErrorBody(output.body, context),
|
|
2360
|
-
};
|
|
2361
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2362
|
-
switch (errorCode) {
|
|
2363
|
-
case "AccessDeniedException":
|
|
2364
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
2365
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2366
|
-
case "DirectoryDeletedException":
|
|
2367
|
-
case "com.amazonaws.clouddirectory#DirectoryDeletedException":
|
|
2368
|
-
throw await de_DirectoryDeletedExceptionRes(parsedOutput, context);
|
|
2369
|
-
case "InternalServiceException":
|
|
2370
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
2371
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2372
|
-
case "InvalidArnException":
|
|
2373
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
2374
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
2375
|
-
case "LimitExceededException":
|
|
2376
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
2377
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2378
|
-
case "ResourceNotFoundException":
|
|
2379
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
2380
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2381
|
-
case "RetryableConflictException":
|
|
2382
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
2383
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
2384
|
-
case "ValidationException":
|
|
2385
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
2386
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2387
|
-
default:
|
|
2388
|
-
const parsedBody = parsedOutput.body;
|
|
2389
|
-
return throwDefaultError({
|
|
2390
|
-
output,
|
|
2391
|
-
parsedBody,
|
|
2392
|
-
errorCode,
|
|
2393
|
-
});
|
|
1456
|
+
export const de_ListDevelopmentSchemaArnsCommand = async (output, context) => {
|
|
1457
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1458
|
+
return de_CommandError(output, context);
|
|
2394
1459
|
}
|
|
1460
|
+
const contents = map({
|
|
1461
|
+
$metadata: deserializeMetadata(output),
|
|
1462
|
+
});
|
|
1463
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1464
|
+
const doc = take(data, {
|
|
1465
|
+
NextToken: __expectString,
|
|
1466
|
+
SchemaArns: _json,
|
|
1467
|
+
});
|
|
1468
|
+
Object.assign(contents, doc);
|
|
1469
|
+
return contents;
|
|
2395
1470
|
};
|
|
2396
|
-
export const
|
|
1471
|
+
export const de_ListDirectoriesCommand = async (output, context) => {
|
|
2397
1472
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2398
|
-
return
|
|
1473
|
+
return de_CommandError(output, context);
|
|
2399
1474
|
}
|
|
2400
1475
|
const contents = map({
|
|
2401
1476
|
$metadata: deserializeMetadata(output),
|
|
2402
1477
|
});
|
|
2403
1478
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2404
1479
|
const doc = take(data, {
|
|
2405
|
-
|
|
1480
|
+
Directories: (_) => de_DirectoryList(_, context),
|
|
1481
|
+
NextToken: __expectString,
|
|
2406
1482
|
});
|
|
2407
1483
|
Object.assign(contents, doc);
|
|
2408
1484
|
return contents;
|
|
2409
1485
|
};
|
|
2410
|
-
const
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
body: await parseErrorBody(output.body, context),
|
|
2414
|
-
};
|
|
2415
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2416
|
-
switch (errorCode) {
|
|
2417
|
-
case "AccessDeniedException":
|
|
2418
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
2419
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2420
|
-
case "InternalServiceException":
|
|
2421
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
2422
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2423
|
-
case "InvalidArnException":
|
|
2424
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
2425
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
2426
|
-
case "LimitExceededException":
|
|
2427
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
2428
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2429
|
-
case "ResourceNotFoundException":
|
|
2430
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
2431
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2432
|
-
case "RetryableConflictException":
|
|
2433
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
2434
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
2435
|
-
case "ValidationException":
|
|
2436
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
2437
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2438
|
-
default:
|
|
2439
|
-
const parsedBody = parsedOutput.body;
|
|
2440
|
-
return throwDefaultError({
|
|
2441
|
-
output,
|
|
2442
|
-
parsedBody,
|
|
2443
|
-
errorCode,
|
|
2444
|
-
});
|
|
1486
|
+
export const de_ListFacetAttributesCommand = async (output, context) => {
|
|
1487
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1488
|
+
return de_CommandError(output, context);
|
|
2445
1489
|
}
|
|
1490
|
+
const contents = map({
|
|
1491
|
+
$metadata: deserializeMetadata(output),
|
|
1492
|
+
});
|
|
1493
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1494
|
+
const doc = take(data, {
|
|
1495
|
+
Attributes: (_) => de_FacetAttributeList(_, context),
|
|
1496
|
+
NextToken: __expectString,
|
|
1497
|
+
});
|
|
1498
|
+
Object.assign(contents, doc);
|
|
1499
|
+
return contents;
|
|
2446
1500
|
};
|
|
2447
|
-
export const
|
|
1501
|
+
export const de_ListFacetNamesCommand = async (output, context) => {
|
|
2448
1502
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2449
|
-
return
|
|
1503
|
+
return de_CommandError(output, context);
|
|
2450
1504
|
}
|
|
2451
1505
|
const contents = map({
|
|
2452
1506
|
$metadata: deserializeMetadata(output),
|
|
2453
1507
|
});
|
|
2454
1508
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2455
1509
|
const doc = take(data, {
|
|
2456
|
-
|
|
1510
|
+
FacetNames: _json,
|
|
1511
|
+
NextToken: __expectString,
|
|
2457
1512
|
});
|
|
2458
1513
|
Object.assign(contents, doc);
|
|
2459
1514
|
return contents;
|
|
2460
1515
|
};
|
|
2461
|
-
const
|
|
2462
|
-
const parsedOutput = {
|
|
2463
|
-
...output,
|
|
2464
|
-
body: await parseErrorBody(output.body, context),
|
|
2465
|
-
};
|
|
2466
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2467
|
-
switch (errorCode) {
|
|
2468
|
-
case "AccessDeniedException":
|
|
2469
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
2470
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2471
|
-
case "InternalServiceException":
|
|
2472
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
2473
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2474
|
-
case "InvalidArnException":
|
|
2475
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
2476
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
2477
|
-
case "LimitExceededException":
|
|
2478
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
2479
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2480
|
-
case "RetryableConflictException":
|
|
2481
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
2482
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
2483
|
-
case "ValidationException":
|
|
2484
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
2485
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2486
|
-
default:
|
|
2487
|
-
const parsedBody = parsedOutput.body;
|
|
2488
|
-
return throwDefaultError({
|
|
2489
|
-
output,
|
|
2490
|
-
parsedBody,
|
|
2491
|
-
errorCode,
|
|
2492
|
-
});
|
|
2493
|
-
}
|
|
2494
|
-
};
|
|
2495
|
-
export const de_GetFacetCommand = async (output, context) => {
|
|
1516
|
+
export const de_ListIncomingTypedLinksCommand = async (output, context) => {
|
|
2496
1517
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2497
|
-
return
|
|
1518
|
+
return de_CommandError(output, context);
|
|
2498
1519
|
}
|
|
2499
1520
|
const contents = map({
|
|
2500
1521
|
$metadata: deserializeMetadata(output),
|
|
2501
1522
|
});
|
|
2502
1523
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2503
1524
|
const doc = take(data, {
|
|
2504
|
-
|
|
1525
|
+
LinkSpecifiers: (_) => de_TypedLinkSpecifierList(_, context),
|
|
1526
|
+
NextToken: __expectString,
|
|
2505
1527
|
});
|
|
2506
1528
|
Object.assign(contents, doc);
|
|
2507
1529
|
return contents;
|
|
2508
1530
|
};
|
|
2509
|
-
const
|
|
2510
|
-
const parsedOutput = {
|
|
2511
|
-
...output,
|
|
2512
|
-
body: await parseErrorBody(output.body, context),
|
|
2513
|
-
};
|
|
2514
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2515
|
-
switch (errorCode) {
|
|
2516
|
-
case "AccessDeniedException":
|
|
2517
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
2518
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2519
|
-
case "FacetNotFoundException":
|
|
2520
|
-
case "com.amazonaws.clouddirectory#FacetNotFoundException":
|
|
2521
|
-
throw await de_FacetNotFoundExceptionRes(parsedOutput, context);
|
|
2522
|
-
case "InternalServiceException":
|
|
2523
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
2524
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2525
|
-
case "InvalidArnException":
|
|
2526
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
2527
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
2528
|
-
case "LimitExceededException":
|
|
2529
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
2530
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2531
|
-
case "ResourceNotFoundException":
|
|
2532
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
2533
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2534
|
-
case "RetryableConflictException":
|
|
2535
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
2536
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
2537
|
-
case "ValidationException":
|
|
2538
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
2539
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2540
|
-
default:
|
|
2541
|
-
const parsedBody = parsedOutput.body;
|
|
2542
|
-
return throwDefaultError({
|
|
2543
|
-
output,
|
|
2544
|
-
parsedBody,
|
|
2545
|
-
errorCode,
|
|
2546
|
-
});
|
|
2547
|
-
}
|
|
2548
|
-
};
|
|
2549
|
-
export const de_GetLinkAttributesCommand = async (output, context) => {
|
|
1531
|
+
export const de_ListIndexCommand = async (output, context) => {
|
|
2550
1532
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2551
|
-
return
|
|
1533
|
+
return de_CommandError(output, context);
|
|
2552
1534
|
}
|
|
2553
1535
|
const contents = map({
|
|
2554
1536
|
$metadata: deserializeMetadata(output),
|
|
2555
1537
|
});
|
|
2556
1538
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2557
1539
|
const doc = take(data, {
|
|
2558
|
-
|
|
1540
|
+
IndexAttachments: (_) => de_IndexAttachmentList(_, context),
|
|
1541
|
+
NextToken: __expectString,
|
|
2559
1542
|
});
|
|
2560
1543
|
Object.assign(contents, doc);
|
|
2561
1544
|
return contents;
|
|
2562
1545
|
};
|
|
2563
|
-
const
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
body: await parseErrorBody(output.body, context),
|
|
2567
|
-
};
|
|
2568
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2569
|
-
switch (errorCode) {
|
|
2570
|
-
case "AccessDeniedException":
|
|
2571
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
2572
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2573
|
-
case "DirectoryNotEnabledException":
|
|
2574
|
-
case "com.amazonaws.clouddirectory#DirectoryNotEnabledException":
|
|
2575
|
-
throw await de_DirectoryNotEnabledExceptionRes(parsedOutput, context);
|
|
2576
|
-
case "FacetValidationException":
|
|
2577
|
-
case "com.amazonaws.clouddirectory#FacetValidationException":
|
|
2578
|
-
throw await de_FacetValidationExceptionRes(parsedOutput, context);
|
|
2579
|
-
case "InternalServiceException":
|
|
2580
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
2581
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2582
|
-
case "InvalidArnException":
|
|
2583
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
2584
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
2585
|
-
case "LimitExceededException":
|
|
2586
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
2587
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2588
|
-
case "ResourceNotFoundException":
|
|
2589
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
2590
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2591
|
-
case "RetryableConflictException":
|
|
2592
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
2593
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
2594
|
-
case "ValidationException":
|
|
2595
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
2596
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2597
|
-
default:
|
|
2598
|
-
const parsedBody = parsedOutput.body;
|
|
2599
|
-
return throwDefaultError({
|
|
2600
|
-
output,
|
|
2601
|
-
parsedBody,
|
|
2602
|
-
errorCode,
|
|
2603
|
-
});
|
|
1546
|
+
export const de_ListManagedSchemaArnsCommand = async (output, context) => {
|
|
1547
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1548
|
+
return de_CommandError(output, context);
|
|
2604
1549
|
}
|
|
1550
|
+
const contents = map({
|
|
1551
|
+
$metadata: deserializeMetadata(output),
|
|
1552
|
+
});
|
|
1553
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1554
|
+
const doc = take(data, {
|
|
1555
|
+
NextToken: __expectString,
|
|
1556
|
+
SchemaArns: _json,
|
|
1557
|
+
});
|
|
1558
|
+
Object.assign(contents, doc);
|
|
1559
|
+
return contents;
|
|
2605
1560
|
};
|
|
2606
|
-
export const
|
|
1561
|
+
export const de_ListObjectAttributesCommand = async (output, context) => {
|
|
2607
1562
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2608
|
-
return
|
|
1563
|
+
return de_CommandError(output, context);
|
|
2609
1564
|
}
|
|
2610
1565
|
const contents = map({
|
|
2611
1566
|
$metadata: deserializeMetadata(output),
|
|
@@ -2613,220 +1568,105 @@ export const de_GetObjectAttributesCommand = async (output, context) => {
|
|
|
2613
1568
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2614
1569
|
const doc = take(data, {
|
|
2615
1570
|
Attributes: (_) => de_AttributeKeyAndValueList(_, context),
|
|
1571
|
+
NextToken: __expectString,
|
|
2616
1572
|
});
|
|
2617
1573
|
Object.assign(contents, doc);
|
|
2618
1574
|
return contents;
|
|
2619
1575
|
};
|
|
2620
|
-
const
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
body: await parseErrorBody(output.body, context),
|
|
2624
|
-
};
|
|
2625
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2626
|
-
switch (errorCode) {
|
|
2627
|
-
case "AccessDeniedException":
|
|
2628
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
2629
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2630
|
-
case "DirectoryNotEnabledException":
|
|
2631
|
-
case "com.amazonaws.clouddirectory#DirectoryNotEnabledException":
|
|
2632
|
-
throw await de_DirectoryNotEnabledExceptionRes(parsedOutput, context);
|
|
2633
|
-
case "FacetValidationException":
|
|
2634
|
-
case "com.amazonaws.clouddirectory#FacetValidationException":
|
|
2635
|
-
throw await de_FacetValidationExceptionRes(parsedOutput, context);
|
|
2636
|
-
case "InternalServiceException":
|
|
2637
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
2638
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2639
|
-
case "InvalidArnException":
|
|
2640
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
2641
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
2642
|
-
case "LimitExceededException":
|
|
2643
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
2644
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2645
|
-
case "ResourceNotFoundException":
|
|
2646
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
2647
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2648
|
-
case "RetryableConflictException":
|
|
2649
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
2650
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
2651
|
-
case "ValidationException":
|
|
2652
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
2653
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2654
|
-
default:
|
|
2655
|
-
const parsedBody = parsedOutput.body;
|
|
2656
|
-
return throwDefaultError({
|
|
2657
|
-
output,
|
|
2658
|
-
parsedBody,
|
|
2659
|
-
errorCode,
|
|
2660
|
-
});
|
|
1576
|
+
export const de_ListObjectChildrenCommand = async (output, context) => {
|
|
1577
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1578
|
+
return de_CommandError(output, context);
|
|
2661
1579
|
}
|
|
1580
|
+
const contents = map({
|
|
1581
|
+
$metadata: deserializeMetadata(output),
|
|
1582
|
+
});
|
|
1583
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1584
|
+
const doc = take(data, {
|
|
1585
|
+
Children: _json,
|
|
1586
|
+
NextToken: __expectString,
|
|
1587
|
+
});
|
|
1588
|
+
Object.assign(contents, doc);
|
|
1589
|
+
return contents;
|
|
2662
1590
|
};
|
|
2663
|
-
export const
|
|
1591
|
+
export const de_ListObjectParentPathsCommand = async (output, context) => {
|
|
2664
1592
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2665
|
-
return
|
|
1593
|
+
return de_CommandError(output, context);
|
|
2666
1594
|
}
|
|
2667
1595
|
const contents = map({
|
|
2668
1596
|
$metadata: deserializeMetadata(output),
|
|
2669
1597
|
});
|
|
2670
1598
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2671
1599
|
const doc = take(data, {
|
|
2672
|
-
|
|
2673
|
-
|
|
1600
|
+
NextToken: __expectString,
|
|
1601
|
+
PathToObjectIdentifiersList: _json,
|
|
2674
1602
|
});
|
|
2675
1603
|
Object.assign(contents, doc);
|
|
2676
1604
|
return contents;
|
|
2677
1605
|
};
|
|
2678
|
-
const
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
body: await parseErrorBody(output.body, context),
|
|
2682
|
-
};
|
|
2683
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2684
|
-
switch (errorCode) {
|
|
2685
|
-
case "AccessDeniedException":
|
|
2686
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
2687
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2688
|
-
case "DirectoryNotEnabledException":
|
|
2689
|
-
case "com.amazonaws.clouddirectory#DirectoryNotEnabledException":
|
|
2690
|
-
throw await de_DirectoryNotEnabledExceptionRes(parsedOutput, context);
|
|
2691
|
-
case "InternalServiceException":
|
|
2692
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
2693
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2694
|
-
case "InvalidArnException":
|
|
2695
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
2696
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
2697
|
-
case "LimitExceededException":
|
|
2698
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
2699
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2700
|
-
case "ResourceNotFoundException":
|
|
2701
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
2702
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2703
|
-
case "RetryableConflictException":
|
|
2704
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
2705
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
2706
|
-
case "ValidationException":
|
|
2707
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
2708
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2709
|
-
default:
|
|
2710
|
-
const parsedBody = parsedOutput.body;
|
|
2711
|
-
return throwDefaultError({
|
|
2712
|
-
output,
|
|
2713
|
-
parsedBody,
|
|
2714
|
-
errorCode,
|
|
2715
|
-
});
|
|
1606
|
+
export const de_ListObjectParentsCommand = async (output, context) => {
|
|
1607
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1608
|
+
return de_CommandError(output, context);
|
|
2716
1609
|
}
|
|
1610
|
+
const contents = map({
|
|
1611
|
+
$metadata: deserializeMetadata(output),
|
|
1612
|
+
});
|
|
1613
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1614
|
+
const doc = take(data, {
|
|
1615
|
+
NextToken: __expectString,
|
|
1616
|
+
ParentLinks: _json,
|
|
1617
|
+
Parents: _json,
|
|
1618
|
+
});
|
|
1619
|
+
Object.assign(contents, doc);
|
|
1620
|
+
return contents;
|
|
2717
1621
|
};
|
|
2718
|
-
export const
|
|
1622
|
+
export const de_ListObjectPoliciesCommand = async (output, context) => {
|
|
2719
1623
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2720
|
-
return
|
|
1624
|
+
return de_CommandError(output, context);
|
|
2721
1625
|
}
|
|
2722
1626
|
const contents = map({
|
|
2723
1627
|
$metadata: deserializeMetadata(output),
|
|
2724
1628
|
});
|
|
2725
1629
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2726
1630
|
const doc = take(data, {
|
|
2727
|
-
|
|
2728
|
-
|
|
1631
|
+
AttachedPolicyIds: _json,
|
|
1632
|
+
NextToken: __expectString,
|
|
2729
1633
|
});
|
|
2730
1634
|
Object.assign(contents, doc);
|
|
2731
1635
|
return contents;
|
|
2732
1636
|
};
|
|
2733
|
-
const
|
|
2734
|
-
const parsedOutput = {
|
|
2735
|
-
...output,
|
|
2736
|
-
body: await parseErrorBody(output.body, context),
|
|
2737
|
-
};
|
|
2738
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2739
|
-
switch (errorCode) {
|
|
2740
|
-
case "AccessDeniedException":
|
|
2741
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
2742
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2743
|
-
case "InternalServiceException":
|
|
2744
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
2745
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2746
|
-
case "InvalidArnException":
|
|
2747
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
2748
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
2749
|
-
case "LimitExceededException":
|
|
2750
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
2751
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2752
|
-
case "ResourceNotFoundException":
|
|
2753
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
2754
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2755
|
-
case "RetryableConflictException":
|
|
2756
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
2757
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
2758
|
-
case "ValidationException":
|
|
2759
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
2760
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2761
|
-
default:
|
|
2762
|
-
const parsedBody = parsedOutput.body;
|
|
2763
|
-
return throwDefaultError({
|
|
2764
|
-
output,
|
|
2765
|
-
parsedBody,
|
|
2766
|
-
errorCode,
|
|
2767
|
-
});
|
|
2768
|
-
}
|
|
2769
|
-
};
|
|
2770
|
-
export const de_GetTypedLinkFacetInformationCommand = async (output, context) => {
|
|
1637
|
+
export const de_ListOutgoingTypedLinksCommand = async (output, context) => {
|
|
2771
1638
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2772
|
-
return
|
|
1639
|
+
return de_CommandError(output, context);
|
|
2773
1640
|
}
|
|
2774
1641
|
const contents = map({
|
|
2775
1642
|
$metadata: deserializeMetadata(output),
|
|
2776
1643
|
});
|
|
2777
1644
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2778
1645
|
const doc = take(data, {
|
|
2779
|
-
|
|
1646
|
+
NextToken: __expectString,
|
|
1647
|
+
TypedLinkSpecifiers: (_) => de_TypedLinkSpecifierList(_, context),
|
|
2780
1648
|
});
|
|
2781
1649
|
Object.assign(contents, doc);
|
|
2782
1650
|
return contents;
|
|
2783
1651
|
};
|
|
2784
|
-
const
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
body: await parseErrorBody(output.body, context),
|
|
2788
|
-
};
|
|
2789
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2790
|
-
switch (errorCode) {
|
|
2791
|
-
case "AccessDeniedException":
|
|
2792
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
2793
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2794
|
-
case "FacetNotFoundException":
|
|
2795
|
-
case "com.amazonaws.clouddirectory#FacetNotFoundException":
|
|
2796
|
-
throw await de_FacetNotFoundExceptionRes(parsedOutput, context);
|
|
2797
|
-
case "InternalServiceException":
|
|
2798
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
2799
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2800
|
-
case "InvalidArnException":
|
|
2801
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
2802
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
2803
|
-
case "InvalidNextTokenException":
|
|
2804
|
-
case "com.amazonaws.clouddirectory#InvalidNextTokenException":
|
|
2805
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2806
|
-
case "LimitExceededException":
|
|
2807
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
2808
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2809
|
-
case "ResourceNotFoundException":
|
|
2810
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
2811
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2812
|
-
case "RetryableConflictException":
|
|
2813
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
2814
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
2815
|
-
case "ValidationException":
|
|
2816
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
2817
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2818
|
-
default:
|
|
2819
|
-
const parsedBody = parsedOutput.body;
|
|
2820
|
-
return throwDefaultError({
|
|
2821
|
-
output,
|
|
2822
|
-
parsedBody,
|
|
2823
|
-
errorCode,
|
|
2824
|
-
});
|
|
1652
|
+
export const de_ListPolicyAttachmentsCommand = async (output, context) => {
|
|
1653
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1654
|
+
return de_CommandError(output, context);
|
|
2825
1655
|
}
|
|
1656
|
+
const contents = map({
|
|
1657
|
+
$metadata: deserializeMetadata(output),
|
|
1658
|
+
});
|
|
1659
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1660
|
+
const doc = take(data, {
|
|
1661
|
+
NextToken: __expectString,
|
|
1662
|
+
ObjectIdentifiers: _json,
|
|
1663
|
+
});
|
|
1664
|
+
Object.assign(contents, doc);
|
|
1665
|
+
return contents;
|
|
2826
1666
|
};
|
|
2827
|
-
export const
|
|
1667
|
+
export const de_ListPublishedSchemaArnsCommand = async (output, context) => {
|
|
2828
1668
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2829
|
-
return
|
|
1669
|
+
return de_CommandError(output, context);
|
|
2830
1670
|
}
|
|
2831
1671
|
const contents = map({
|
|
2832
1672
|
$metadata: deserializeMetadata(output),
|
|
@@ -2839,1685 +1679,175 @@ export const de_ListAppliedSchemaArnsCommand = async (output, context) => {
|
|
|
2839
1679
|
Object.assign(contents, doc);
|
|
2840
1680
|
return contents;
|
|
2841
1681
|
};
|
|
2842
|
-
const
|
|
2843
|
-
const parsedOutput = {
|
|
2844
|
-
...output,
|
|
2845
|
-
body: await parseErrorBody(output.body, context),
|
|
2846
|
-
};
|
|
2847
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2848
|
-
switch (errorCode) {
|
|
2849
|
-
case "AccessDeniedException":
|
|
2850
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
2851
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2852
|
-
case "InternalServiceException":
|
|
2853
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
2854
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2855
|
-
case "InvalidArnException":
|
|
2856
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
2857
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
2858
|
-
case "InvalidNextTokenException":
|
|
2859
|
-
case "com.amazonaws.clouddirectory#InvalidNextTokenException":
|
|
2860
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2861
|
-
case "LimitExceededException":
|
|
2862
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
2863
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2864
|
-
case "ResourceNotFoundException":
|
|
2865
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
2866
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2867
|
-
case "RetryableConflictException":
|
|
2868
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
2869
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
2870
|
-
case "ValidationException":
|
|
2871
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
2872
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2873
|
-
default:
|
|
2874
|
-
const parsedBody = parsedOutput.body;
|
|
2875
|
-
return throwDefaultError({
|
|
2876
|
-
output,
|
|
2877
|
-
parsedBody,
|
|
2878
|
-
errorCode,
|
|
2879
|
-
});
|
|
2880
|
-
}
|
|
2881
|
-
};
|
|
2882
|
-
export const de_ListAttachedIndicesCommand = async (output, context) => {
|
|
1682
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2883
1683
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2884
|
-
return
|
|
1684
|
+
return de_CommandError(output, context);
|
|
2885
1685
|
}
|
|
2886
1686
|
const contents = map({
|
|
2887
1687
|
$metadata: deserializeMetadata(output),
|
|
2888
1688
|
});
|
|
2889
1689
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2890
1690
|
const doc = take(data, {
|
|
2891
|
-
IndexAttachments: (_) => de_IndexAttachmentList(_, context),
|
|
2892
1691
|
NextToken: __expectString,
|
|
1692
|
+
Tags: _json,
|
|
2893
1693
|
});
|
|
2894
1694
|
Object.assign(contents, doc);
|
|
2895
1695
|
return contents;
|
|
2896
1696
|
};
|
|
2897
|
-
const
|
|
2898
|
-
const parsedOutput = {
|
|
2899
|
-
...output,
|
|
2900
|
-
body: await parseErrorBody(output.body, context),
|
|
2901
|
-
};
|
|
2902
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2903
|
-
switch (errorCode) {
|
|
2904
|
-
case "AccessDeniedException":
|
|
2905
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
2906
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2907
|
-
case "DirectoryNotEnabledException":
|
|
2908
|
-
case "com.amazonaws.clouddirectory#DirectoryNotEnabledException":
|
|
2909
|
-
throw await de_DirectoryNotEnabledExceptionRes(parsedOutput, context);
|
|
2910
|
-
case "InternalServiceException":
|
|
2911
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
2912
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2913
|
-
case "InvalidArnException":
|
|
2914
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
2915
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
2916
|
-
case "LimitExceededException":
|
|
2917
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
2918
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2919
|
-
case "ResourceNotFoundException":
|
|
2920
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
2921
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2922
|
-
case "RetryableConflictException":
|
|
2923
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
2924
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
2925
|
-
case "ValidationException":
|
|
2926
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
2927
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2928
|
-
default:
|
|
2929
|
-
const parsedBody = parsedOutput.body;
|
|
2930
|
-
return throwDefaultError({
|
|
2931
|
-
output,
|
|
2932
|
-
parsedBody,
|
|
2933
|
-
errorCode,
|
|
2934
|
-
});
|
|
2935
|
-
}
|
|
2936
|
-
};
|
|
2937
|
-
export const de_ListDevelopmentSchemaArnsCommand = async (output, context) => {
|
|
1697
|
+
export const de_ListTypedLinkFacetAttributesCommand = async (output, context) => {
|
|
2938
1698
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2939
|
-
return
|
|
1699
|
+
return de_CommandError(output, context);
|
|
2940
1700
|
}
|
|
2941
1701
|
const contents = map({
|
|
2942
1702
|
$metadata: deserializeMetadata(output),
|
|
2943
1703
|
});
|
|
2944
1704
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2945
1705
|
const doc = take(data, {
|
|
1706
|
+
Attributes: (_) => de_TypedLinkAttributeDefinitionList(_, context),
|
|
2946
1707
|
NextToken: __expectString,
|
|
2947
|
-
SchemaArns: _json,
|
|
2948
1708
|
});
|
|
2949
1709
|
Object.assign(contents, doc);
|
|
2950
1710
|
return contents;
|
|
2951
1711
|
};
|
|
2952
|
-
const
|
|
2953
|
-
const parsedOutput = {
|
|
2954
|
-
...output,
|
|
2955
|
-
body: await parseErrorBody(output.body, context),
|
|
2956
|
-
};
|
|
2957
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2958
|
-
switch (errorCode) {
|
|
2959
|
-
case "AccessDeniedException":
|
|
2960
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
2961
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2962
|
-
case "InternalServiceException":
|
|
2963
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
2964
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2965
|
-
case "InvalidArnException":
|
|
2966
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
2967
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
2968
|
-
case "InvalidNextTokenException":
|
|
2969
|
-
case "com.amazonaws.clouddirectory#InvalidNextTokenException":
|
|
2970
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2971
|
-
case "LimitExceededException":
|
|
2972
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
2973
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2974
|
-
case "ResourceNotFoundException":
|
|
2975
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
2976
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2977
|
-
case "RetryableConflictException":
|
|
2978
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
2979
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
2980
|
-
case "ValidationException":
|
|
2981
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
2982
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2983
|
-
default:
|
|
2984
|
-
const parsedBody = parsedOutput.body;
|
|
2985
|
-
return throwDefaultError({
|
|
2986
|
-
output,
|
|
2987
|
-
parsedBody,
|
|
2988
|
-
errorCode,
|
|
2989
|
-
});
|
|
2990
|
-
}
|
|
2991
|
-
};
|
|
2992
|
-
export const de_ListDirectoriesCommand = async (output, context) => {
|
|
1712
|
+
export const de_ListTypedLinkFacetNamesCommand = async (output, context) => {
|
|
2993
1713
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2994
|
-
return
|
|
1714
|
+
return de_CommandError(output, context);
|
|
2995
1715
|
}
|
|
2996
1716
|
const contents = map({
|
|
2997
1717
|
$metadata: deserializeMetadata(output),
|
|
2998
1718
|
});
|
|
2999
1719
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3000
1720
|
const doc = take(data, {
|
|
3001
|
-
|
|
1721
|
+
FacetNames: _json,
|
|
3002
1722
|
NextToken: __expectString,
|
|
3003
1723
|
});
|
|
3004
1724
|
Object.assign(contents, doc);
|
|
3005
1725
|
return contents;
|
|
3006
1726
|
};
|
|
3007
|
-
const
|
|
3008
|
-
const parsedOutput = {
|
|
3009
|
-
...output,
|
|
3010
|
-
body: await parseErrorBody(output.body, context),
|
|
3011
|
-
};
|
|
3012
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3013
|
-
switch (errorCode) {
|
|
3014
|
-
case "AccessDeniedException":
|
|
3015
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
3016
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3017
|
-
case "InternalServiceException":
|
|
3018
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
3019
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3020
|
-
case "InvalidArnException":
|
|
3021
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
3022
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
3023
|
-
case "InvalidNextTokenException":
|
|
3024
|
-
case "com.amazonaws.clouddirectory#InvalidNextTokenException":
|
|
3025
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3026
|
-
case "LimitExceededException":
|
|
3027
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
3028
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3029
|
-
case "RetryableConflictException":
|
|
3030
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
3031
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
3032
|
-
case "ValidationException":
|
|
3033
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
3034
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3035
|
-
default:
|
|
3036
|
-
const parsedBody = parsedOutput.body;
|
|
3037
|
-
return throwDefaultError({
|
|
3038
|
-
output,
|
|
3039
|
-
parsedBody,
|
|
3040
|
-
errorCode,
|
|
3041
|
-
});
|
|
3042
|
-
}
|
|
3043
|
-
};
|
|
3044
|
-
export const de_ListFacetAttributesCommand = async (output, context) => {
|
|
1727
|
+
export const de_LookupPolicyCommand = async (output, context) => {
|
|
3045
1728
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3046
|
-
return
|
|
1729
|
+
return de_CommandError(output, context);
|
|
3047
1730
|
}
|
|
3048
1731
|
const contents = map({
|
|
3049
1732
|
$metadata: deserializeMetadata(output),
|
|
3050
1733
|
});
|
|
3051
1734
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3052
1735
|
const doc = take(data, {
|
|
3053
|
-
Attributes: (_) => de_FacetAttributeList(_, context),
|
|
3054
1736
|
NextToken: __expectString,
|
|
1737
|
+
PolicyToPathList: _json,
|
|
3055
1738
|
});
|
|
3056
1739
|
Object.assign(contents, doc);
|
|
3057
1740
|
return contents;
|
|
3058
1741
|
};
|
|
3059
|
-
const
|
|
3060
|
-
const parsedOutput = {
|
|
3061
|
-
...output,
|
|
3062
|
-
body: await parseErrorBody(output.body, context),
|
|
3063
|
-
};
|
|
3064
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3065
|
-
switch (errorCode) {
|
|
3066
|
-
case "AccessDeniedException":
|
|
3067
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
3068
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3069
|
-
case "FacetNotFoundException":
|
|
3070
|
-
case "com.amazonaws.clouddirectory#FacetNotFoundException":
|
|
3071
|
-
throw await de_FacetNotFoundExceptionRes(parsedOutput, context);
|
|
3072
|
-
case "InternalServiceException":
|
|
3073
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
3074
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3075
|
-
case "InvalidArnException":
|
|
3076
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
3077
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
3078
|
-
case "InvalidNextTokenException":
|
|
3079
|
-
case "com.amazonaws.clouddirectory#InvalidNextTokenException":
|
|
3080
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3081
|
-
case "LimitExceededException":
|
|
3082
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
3083
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3084
|
-
case "ResourceNotFoundException":
|
|
3085
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
3086
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3087
|
-
case "RetryableConflictException":
|
|
3088
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
3089
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
3090
|
-
case "ValidationException":
|
|
3091
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
3092
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3093
|
-
default:
|
|
3094
|
-
const parsedBody = parsedOutput.body;
|
|
3095
|
-
return throwDefaultError({
|
|
3096
|
-
output,
|
|
3097
|
-
parsedBody,
|
|
3098
|
-
errorCode,
|
|
3099
|
-
});
|
|
3100
|
-
}
|
|
3101
|
-
};
|
|
3102
|
-
export const de_ListFacetNamesCommand = async (output, context) => {
|
|
3103
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3104
|
-
return de_ListFacetNamesCommandError(output, context);
|
|
3105
|
-
}
|
|
3106
|
-
const contents = map({
|
|
3107
|
-
$metadata: deserializeMetadata(output),
|
|
3108
|
-
});
|
|
3109
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3110
|
-
const doc = take(data, {
|
|
3111
|
-
FacetNames: _json,
|
|
3112
|
-
NextToken: __expectString,
|
|
3113
|
-
});
|
|
3114
|
-
Object.assign(contents, doc);
|
|
3115
|
-
return contents;
|
|
3116
|
-
};
|
|
3117
|
-
const de_ListFacetNamesCommandError = async (output, context) => {
|
|
3118
|
-
const parsedOutput = {
|
|
3119
|
-
...output,
|
|
3120
|
-
body: await parseErrorBody(output.body, context),
|
|
3121
|
-
};
|
|
3122
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3123
|
-
switch (errorCode) {
|
|
3124
|
-
case "AccessDeniedException":
|
|
3125
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
3126
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3127
|
-
case "InternalServiceException":
|
|
3128
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
3129
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3130
|
-
case "InvalidArnException":
|
|
3131
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
3132
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
3133
|
-
case "InvalidNextTokenException":
|
|
3134
|
-
case "com.amazonaws.clouddirectory#InvalidNextTokenException":
|
|
3135
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3136
|
-
case "LimitExceededException":
|
|
3137
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
3138
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3139
|
-
case "ResourceNotFoundException":
|
|
3140
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
3141
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3142
|
-
case "RetryableConflictException":
|
|
3143
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
3144
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
3145
|
-
case "ValidationException":
|
|
3146
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
3147
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3148
|
-
default:
|
|
3149
|
-
const parsedBody = parsedOutput.body;
|
|
3150
|
-
return throwDefaultError({
|
|
3151
|
-
output,
|
|
3152
|
-
parsedBody,
|
|
3153
|
-
errorCode,
|
|
3154
|
-
});
|
|
3155
|
-
}
|
|
3156
|
-
};
|
|
3157
|
-
export const de_ListIncomingTypedLinksCommand = async (output, context) => {
|
|
1742
|
+
export const de_PublishSchemaCommand = async (output, context) => {
|
|
3158
1743
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3159
|
-
return
|
|
1744
|
+
return de_CommandError(output, context);
|
|
3160
1745
|
}
|
|
3161
1746
|
const contents = map({
|
|
3162
1747
|
$metadata: deserializeMetadata(output),
|
|
3163
1748
|
});
|
|
3164
1749
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3165
1750
|
const doc = take(data, {
|
|
3166
|
-
|
|
3167
|
-
NextToken: __expectString,
|
|
1751
|
+
PublishedSchemaArn: __expectString,
|
|
3168
1752
|
});
|
|
3169
1753
|
Object.assign(contents, doc);
|
|
3170
1754
|
return contents;
|
|
3171
1755
|
};
|
|
3172
|
-
const
|
|
3173
|
-
const parsedOutput = {
|
|
3174
|
-
...output,
|
|
3175
|
-
body: await parseErrorBody(output.body, context),
|
|
3176
|
-
};
|
|
3177
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3178
|
-
switch (errorCode) {
|
|
3179
|
-
case "AccessDeniedException":
|
|
3180
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
3181
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3182
|
-
case "DirectoryNotEnabledException":
|
|
3183
|
-
case "com.amazonaws.clouddirectory#DirectoryNotEnabledException":
|
|
3184
|
-
throw await de_DirectoryNotEnabledExceptionRes(parsedOutput, context);
|
|
3185
|
-
case "FacetValidationException":
|
|
3186
|
-
case "com.amazonaws.clouddirectory#FacetValidationException":
|
|
3187
|
-
throw await de_FacetValidationExceptionRes(parsedOutput, context);
|
|
3188
|
-
case "InternalServiceException":
|
|
3189
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
3190
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3191
|
-
case "InvalidArnException":
|
|
3192
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
3193
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
3194
|
-
case "InvalidNextTokenException":
|
|
3195
|
-
case "com.amazonaws.clouddirectory#InvalidNextTokenException":
|
|
3196
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3197
|
-
case "LimitExceededException":
|
|
3198
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
3199
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3200
|
-
case "ResourceNotFoundException":
|
|
3201
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
3202
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3203
|
-
case "RetryableConflictException":
|
|
3204
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
3205
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
3206
|
-
case "ValidationException":
|
|
3207
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
3208
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3209
|
-
default:
|
|
3210
|
-
const parsedBody = parsedOutput.body;
|
|
3211
|
-
return throwDefaultError({
|
|
3212
|
-
output,
|
|
3213
|
-
parsedBody,
|
|
3214
|
-
errorCode,
|
|
3215
|
-
});
|
|
3216
|
-
}
|
|
3217
|
-
};
|
|
3218
|
-
export const de_ListIndexCommand = async (output, context) => {
|
|
1756
|
+
export const de_PutSchemaFromJsonCommand = async (output, context) => {
|
|
3219
1757
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3220
|
-
return
|
|
1758
|
+
return de_CommandError(output, context);
|
|
3221
1759
|
}
|
|
3222
1760
|
const contents = map({
|
|
3223
1761
|
$metadata: deserializeMetadata(output),
|
|
3224
1762
|
});
|
|
3225
1763
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3226
1764
|
const doc = take(data, {
|
|
3227
|
-
|
|
3228
|
-
NextToken: __expectString,
|
|
1765
|
+
Arn: __expectString,
|
|
3229
1766
|
});
|
|
3230
1767
|
Object.assign(contents, doc);
|
|
3231
1768
|
return contents;
|
|
3232
1769
|
};
|
|
3233
|
-
const
|
|
3234
|
-
const parsedOutput = {
|
|
3235
|
-
...output,
|
|
3236
|
-
body: await parseErrorBody(output.body, context),
|
|
3237
|
-
};
|
|
3238
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3239
|
-
switch (errorCode) {
|
|
3240
|
-
case "AccessDeniedException":
|
|
3241
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
3242
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3243
|
-
case "DirectoryNotEnabledException":
|
|
3244
|
-
case "com.amazonaws.clouddirectory#DirectoryNotEnabledException":
|
|
3245
|
-
throw await de_DirectoryNotEnabledExceptionRes(parsedOutput, context);
|
|
3246
|
-
case "FacetValidationException":
|
|
3247
|
-
case "com.amazonaws.clouddirectory#FacetValidationException":
|
|
3248
|
-
throw await de_FacetValidationExceptionRes(parsedOutput, context);
|
|
3249
|
-
case "InternalServiceException":
|
|
3250
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
3251
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3252
|
-
case "InvalidArnException":
|
|
3253
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
3254
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
3255
|
-
case "InvalidNextTokenException":
|
|
3256
|
-
case "com.amazonaws.clouddirectory#InvalidNextTokenException":
|
|
3257
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3258
|
-
case "LimitExceededException":
|
|
3259
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
3260
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3261
|
-
case "NotIndexException":
|
|
3262
|
-
case "com.amazonaws.clouddirectory#NotIndexException":
|
|
3263
|
-
throw await de_NotIndexExceptionRes(parsedOutput, context);
|
|
3264
|
-
case "ResourceNotFoundException":
|
|
3265
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
3266
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3267
|
-
case "RetryableConflictException":
|
|
3268
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
3269
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
3270
|
-
case "ValidationException":
|
|
3271
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
3272
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3273
|
-
default:
|
|
3274
|
-
const parsedBody = parsedOutput.body;
|
|
3275
|
-
return throwDefaultError({
|
|
3276
|
-
output,
|
|
3277
|
-
parsedBody,
|
|
3278
|
-
errorCode,
|
|
3279
|
-
});
|
|
3280
|
-
}
|
|
3281
|
-
};
|
|
3282
|
-
export const de_ListManagedSchemaArnsCommand = async (output, context) => {
|
|
1770
|
+
export const de_RemoveFacetFromObjectCommand = async (output, context) => {
|
|
3283
1771
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3284
|
-
return
|
|
1772
|
+
return de_CommandError(output, context);
|
|
3285
1773
|
}
|
|
3286
1774
|
const contents = map({
|
|
3287
1775
|
$metadata: deserializeMetadata(output),
|
|
3288
1776
|
});
|
|
3289
|
-
|
|
3290
|
-
const doc = take(data, {
|
|
3291
|
-
NextToken: __expectString,
|
|
3292
|
-
SchemaArns: _json,
|
|
3293
|
-
});
|
|
3294
|
-
Object.assign(contents, doc);
|
|
1777
|
+
await collectBody(output.body, context);
|
|
3295
1778
|
return contents;
|
|
3296
1779
|
};
|
|
3297
|
-
const
|
|
3298
|
-
const parsedOutput = {
|
|
3299
|
-
...output,
|
|
3300
|
-
body: await parseErrorBody(output.body, context),
|
|
3301
|
-
};
|
|
3302
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3303
|
-
switch (errorCode) {
|
|
3304
|
-
case "AccessDeniedException":
|
|
3305
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
3306
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3307
|
-
case "InternalServiceException":
|
|
3308
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
3309
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3310
|
-
case "InvalidArnException":
|
|
3311
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
3312
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
3313
|
-
case "InvalidNextTokenException":
|
|
3314
|
-
case "com.amazonaws.clouddirectory#InvalidNextTokenException":
|
|
3315
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3316
|
-
case "ResourceNotFoundException":
|
|
3317
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
3318
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3319
|
-
case "ValidationException":
|
|
3320
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
3321
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3322
|
-
default:
|
|
3323
|
-
const parsedBody = parsedOutput.body;
|
|
3324
|
-
return throwDefaultError({
|
|
3325
|
-
output,
|
|
3326
|
-
parsedBody,
|
|
3327
|
-
errorCode,
|
|
3328
|
-
});
|
|
3329
|
-
}
|
|
3330
|
-
};
|
|
3331
|
-
export const de_ListObjectAttributesCommand = async (output, context) => {
|
|
1780
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
3332
1781
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3333
|
-
return
|
|
3334
|
-
}
|
|
3335
|
-
const contents = map({
|
|
3336
|
-
$metadata: deserializeMetadata(output),
|
|
3337
|
-
});
|
|
3338
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3339
|
-
const doc = take(data, {
|
|
3340
|
-
Attributes: (_) => de_AttributeKeyAndValueList(_, context),
|
|
3341
|
-
NextToken: __expectString,
|
|
3342
|
-
});
|
|
3343
|
-
Object.assign(contents, doc);
|
|
3344
|
-
return contents;
|
|
3345
|
-
};
|
|
3346
|
-
const de_ListObjectAttributesCommandError = async (output, context) => {
|
|
3347
|
-
const parsedOutput = {
|
|
3348
|
-
...output,
|
|
3349
|
-
body: await parseErrorBody(output.body, context),
|
|
3350
|
-
};
|
|
3351
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3352
|
-
switch (errorCode) {
|
|
3353
|
-
case "AccessDeniedException":
|
|
3354
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
3355
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3356
|
-
case "DirectoryNotEnabledException":
|
|
3357
|
-
case "com.amazonaws.clouddirectory#DirectoryNotEnabledException":
|
|
3358
|
-
throw await de_DirectoryNotEnabledExceptionRes(parsedOutput, context);
|
|
3359
|
-
case "FacetValidationException":
|
|
3360
|
-
case "com.amazonaws.clouddirectory#FacetValidationException":
|
|
3361
|
-
throw await de_FacetValidationExceptionRes(parsedOutput, context);
|
|
3362
|
-
case "InternalServiceException":
|
|
3363
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
3364
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3365
|
-
case "InvalidArnException":
|
|
3366
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
3367
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
3368
|
-
case "InvalidNextTokenException":
|
|
3369
|
-
case "com.amazonaws.clouddirectory#InvalidNextTokenException":
|
|
3370
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3371
|
-
case "LimitExceededException":
|
|
3372
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
3373
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3374
|
-
case "ResourceNotFoundException":
|
|
3375
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
3376
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3377
|
-
case "RetryableConflictException":
|
|
3378
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
3379
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
3380
|
-
case "ValidationException":
|
|
3381
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
3382
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3383
|
-
default:
|
|
3384
|
-
const parsedBody = parsedOutput.body;
|
|
3385
|
-
return throwDefaultError({
|
|
3386
|
-
output,
|
|
3387
|
-
parsedBody,
|
|
3388
|
-
errorCode,
|
|
3389
|
-
});
|
|
3390
|
-
}
|
|
3391
|
-
};
|
|
3392
|
-
export const de_ListObjectChildrenCommand = async (output, context) => {
|
|
3393
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3394
|
-
return de_ListObjectChildrenCommandError(output, context);
|
|
3395
|
-
}
|
|
3396
|
-
const contents = map({
|
|
3397
|
-
$metadata: deserializeMetadata(output),
|
|
3398
|
-
});
|
|
3399
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3400
|
-
const doc = take(data, {
|
|
3401
|
-
Children: _json,
|
|
3402
|
-
NextToken: __expectString,
|
|
3403
|
-
});
|
|
3404
|
-
Object.assign(contents, doc);
|
|
3405
|
-
return contents;
|
|
3406
|
-
};
|
|
3407
|
-
const de_ListObjectChildrenCommandError = async (output, context) => {
|
|
3408
|
-
const parsedOutput = {
|
|
3409
|
-
...output,
|
|
3410
|
-
body: await parseErrorBody(output.body, context),
|
|
3411
|
-
};
|
|
3412
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3413
|
-
switch (errorCode) {
|
|
3414
|
-
case "AccessDeniedException":
|
|
3415
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
3416
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3417
|
-
case "DirectoryNotEnabledException":
|
|
3418
|
-
case "com.amazonaws.clouddirectory#DirectoryNotEnabledException":
|
|
3419
|
-
throw await de_DirectoryNotEnabledExceptionRes(parsedOutput, context);
|
|
3420
|
-
case "InternalServiceException":
|
|
3421
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
3422
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3423
|
-
case "InvalidArnException":
|
|
3424
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
3425
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
3426
|
-
case "InvalidNextTokenException":
|
|
3427
|
-
case "com.amazonaws.clouddirectory#InvalidNextTokenException":
|
|
3428
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3429
|
-
case "LimitExceededException":
|
|
3430
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
3431
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3432
|
-
case "NotNodeException":
|
|
3433
|
-
case "com.amazonaws.clouddirectory#NotNodeException":
|
|
3434
|
-
throw await de_NotNodeExceptionRes(parsedOutput, context);
|
|
3435
|
-
case "ResourceNotFoundException":
|
|
3436
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
3437
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3438
|
-
case "RetryableConflictException":
|
|
3439
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
3440
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
3441
|
-
case "ValidationException":
|
|
3442
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
3443
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3444
|
-
default:
|
|
3445
|
-
const parsedBody = parsedOutput.body;
|
|
3446
|
-
return throwDefaultError({
|
|
3447
|
-
output,
|
|
3448
|
-
parsedBody,
|
|
3449
|
-
errorCode,
|
|
3450
|
-
});
|
|
3451
|
-
}
|
|
3452
|
-
};
|
|
3453
|
-
export const de_ListObjectParentPathsCommand = async (output, context) => {
|
|
3454
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3455
|
-
return de_ListObjectParentPathsCommandError(output, context);
|
|
3456
|
-
}
|
|
3457
|
-
const contents = map({
|
|
3458
|
-
$metadata: deserializeMetadata(output),
|
|
3459
|
-
});
|
|
3460
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3461
|
-
const doc = take(data, {
|
|
3462
|
-
NextToken: __expectString,
|
|
3463
|
-
PathToObjectIdentifiersList: _json,
|
|
3464
|
-
});
|
|
3465
|
-
Object.assign(contents, doc);
|
|
3466
|
-
return contents;
|
|
3467
|
-
};
|
|
3468
|
-
const de_ListObjectParentPathsCommandError = async (output, context) => {
|
|
3469
|
-
const parsedOutput = {
|
|
3470
|
-
...output,
|
|
3471
|
-
body: await parseErrorBody(output.body, context),
|
|
3472
|
-
};
|
|
3473
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3474
|
-
switch (errorCode) {
|
|
3475
|
-
case "AccessDeniedException":
|
|
3476
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
3477
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3478
|
-
case "DirectoryNotEnabledException":
|
|
3479
|
-
case "com.amazonaws.clouddirectory#DirectoryNotEnabledException":
|
|
3480
|
-
throw await de_DirectoryNotEnabledExceptionRes(parsedOutput, context);
|
|
3481
|
-
case "InternalServiceException":
|
|
3482
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
3483
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3484
|
-
case "InvalidArnException":
|
|
3485
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
3486
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
3487
|
-
case "InvalidNextTokenException":
|
|
3488
|
-
case "com.amazonaws.clouddirectory#InvalidNextTokenException":
|
|
3489
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3490
|
-
case "LimitExceededException":
|
|
3491
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
3492
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3493
|
-
case "ResourceNotFoundException":
|
|
3494
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
3495
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3496
|
-
case "RetryableConflictException":
|
|
3497
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
3498
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
3499
|
-
case "ValidationException":
|
|
3500
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
3501
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3502
|
-
default:
|
|
3503
|
-
const parsedBody = parsedOutput.body;
|
|
3504
|
-
return throwDefaultError({
|
|
3505
|
-
output,
|
|
3506
|
-
parsedBody,
|
|
3507
|
-
errorCode,
|
|
3508
|
-
});
|
|
3509
|
-
}
|
|
3510
|
-
};
|
|
3511
|
-
export const de_ListObjectParentsCommand = async (output, context) => {
|
|
3512
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3513
|
-
return de_ListObjectParentsCommandError(output, context);
|
|
3514
|
-
}
|
|
3515
|
-
const contents = map({
|
|
3516
|
-
$metadata: deserializeMetadata(output),
|
|
3517
|
-
});
|
|
3518
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3519
|
-
const doc = take(data, {
|
|
3520
|
-
NextToken: __expectString,
|
|
3521
|
-
ParentLinks: _json,
|
|
3522
|
-
Parents: _json,
|
|
3523
|
-
});
|
|
3524
|
-
Object.assign(contents, doc);
|
|
3525
|
-
return contents;
|
|
3526
|
-
};
|
|
3527
|
-
const de_ListObjectParentsCommandError = async (output, context) => {
|
|
3528
|
-
const parsedOutput = {
|
|
3529
|
-
...output,
|
|
3530
|
-
body: await parseErrorBody(output.body, context),
|
|
3531
|
-
};
|
|
3532
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3533
|
-
switch (errorCode) {
|
|
3534
|
-
case "AccessDeniedException":
|
|
3535
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
3536
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3537
|
-
case "CannotListParentOfRootException":
|
|
3538
|
-
case "com.amazonaws.clouddirectory#CannotListParentOfRootException":
|
|
3539
|
-
throw await de_CannotListParentOfRootExceptionRes(parsedOutput, context);
|
|
3540
|
-
case "DirectoryNotEnabledException":
|
|
3541
|
-
case "com.amazonaws.clouddirectory#DirectoryNotEnabledException":
|
|
3542
|
-
throw await de_DirectoryNotEnabledExceptionRes(parsedOutput, context);
|
|
3543
|
-
case "InternalServiceException":
|
|
3544
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
3545
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3546
|
-
case "InvalidArnException":
|
|
3547
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
3548
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
3549
|
-
case "InvalidNextTokenException":
|
|
3550
|
-
case "com.amazonaws.clouddirectory#InvalidNextTokenException":
|
|
3551
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3552
|
-
case "LimitExceededException":
|
|
3553
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
3554
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3555
|
-
case "ResourceNotFoundException":
|
|
3556
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
3557
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3558
|
-
case "RetryableConflictException":
|
|
3559
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
3560
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
3561
|
-
case "ValidationException":
|
|
3562
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
3563
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3564
|
-
default:
|
|
3565
|
-
const parsedBody = parsedOutput.body;
|
|
3566
|
-
return throwDefaultError({
|
|
3567
|
-
output,
|
|
3568
|
-
parsedBody,
|
|
3569
|
-
errorCode,
|
|
3570
|
-
});
|
|
3571
|
-
}
|
|
3572
|
-
};
|
|
3573
|
-
export const de_ListObjectPoliciesCommand = async (output, context) => {
|
|
3574
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3575
|
-
return de_ListObjectPoliciesCommandError(output, context);
|
|
3576
|
-
}
|
|
3577
|
-
const contents = map({
|
|
3578
|
-
$metadata: deserializeMetadata(output),
|
|
3579
|
-
});
|
|
3580
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3581
|
-
const doc = take(data, {
|
|
3582
|
-
AttachedPolicyIds: _json,
|
|
3583
|
-
NextToken: __expectString,
|
|
3584
|
-
});
|
|
3585
|
-
Object.assign(contents, doc);
|
|
3586
|
-
return contents;
|
|
3587
|
-
};
|
|
3588
|
-
const de_ListObjectPoliciesCommandError = async (output, context) => {
|
|
3589
|
-
const parsedOutput = {
|
|
3590
|
-
...output,
|
|
3591
|
-
body: await parseErrorBody(output.body, context),
|
|
3592
|
-
};
|
|
3593
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3594
|
-
switch (errorCode) {
|
|
3595
|
-
case "AccessDeniedException":
|
|
3596
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
3597
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3598
|
-
case "DirectoryNotEnabledException":
|
|
3599
|
-
case "com.amazonaws.clouddirectory#DirectoryNotEnabledException":
|
|
3600
|
-
throw await de_DirectoryNotEnabledExceptionRes(parsedOutput, context);
|
|
3601
|
-
case "InternalServiceException":
|
|
3602
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
3603
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3604
|
-
case "InvalidArnException":
|
|
3605
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
3606
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
3607
|
-
case "InvalidNextTokenException":
|
|
3608
|
-
case "com.amazonaws.clouddirectory#InvalidNextTokenException":
|
|
3609
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3610
|
-
case "LimitExceededException":
|
|
3611
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
3612
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3613
|
-
case "ResourceNotFoundException":
|
|
3614
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
3615
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3616
|
-
case "RetryableConflictException":
|
|
3617
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
3618
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
3619
|
-
case "ValidationException":
|
|
3620
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
3621
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3622
|
-
default:
|
|
3623
|
-
const parsedBody = parsedOutput.body;
|
|
3624
|
-
return throwDefaultError({
|
|
3625
|
-
output,
|
|
3626
|
-
parsedBody,
|
|
3627
|
-
errorCode,
|
|
3628
|
-
});
|
|
3629
|
-
}
|
|
3630
|
-
};
|
|
3631
|
-
export const de_ListOutgoingTypedLinksCommand = async (output, context) => {
|
|
3632
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3633
|
-
return de_ListOutgoingTypedLinksCommandError(output, context);
|
|
3634
|
-
}
|
|
3635
|
-
const contents = map({
|
|
3636
|
-
$metadata: deserializeMetadata(output),
|
|
3637
|
-
});
|
|
3638
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3639
|
-
const doc = take(data, {
|
|
3640
|
-
NextToken: __expectString,
|
|
3641
|
-
TypedLinkSpecifiers: (_) => de_TypedLinkSpecifierList(_, context),
|
|
3642
|
-
});
|
|
3643
|
-
Object.assign(contents, doc);
|
|
3644
|
-
return contents;
|
|
3645
|
-
};
|
|
3646
|
-
const de_ListOutgoingTypedLinksCommandError = async (output, context) => {
|
|
3647
|
-
const parsedOutput = {
|
|
3648
|
-
...output,
|
|
3649
|
-
body: await parseErrorBody(output.body, context),
|
|
3650
|
-
};
|
|
3651
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3652
|
-
switch (errorCode) {
|
|
3653
|
-
case "AccessDeniedException":
|
|
3654
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
3655
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3656
|
-
case "DirectoryNotEnabledException":
|
|
3657
|
-
case "com.amazonaws.clouddirectory#DirectoryNotEnabledException":
|
|
3658
|
-
throw await de_DirectoryNotEnabledExceptionRes(parsedOutput, context);
|
|
3659
|
-
case "FacetValidationException":
|
|
3660
|
-
case "com.amazonaws.clouddirectory#FacetValidationException":
|
|
3661
|
-
throw await de_FacetValidationExceptionRes(parsedOutput, context);
|
|
3662
|
-
case "InternalServiceException":
|
|
3663
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
3664
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3665
|
-
case "InvalidArnException":
|
|
3666
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
3667
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
3668
|
-
case "InvalidNextTokenException":
|
|
3669
|
-
case "com.amazonaws.clouddirectory#InvalidNextTokenException":
|
|
3670
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3671
|
-
case "LimitExceededException":
|
|
3672
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
3673
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3674
|
-
case "ResourceNotFoundException":
|
|
3675
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
3676
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3677
|
-
case "RetryableConflictException":
|
|
3678
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
3679
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
3680
|
-
case "ValidationException":
|
|
3681
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
3682
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3683
|
-
default:
|
|
3684
|
-
const parsedBody = parsedOutput.body;
|
|
3685
|
-
return throwDefaultError({
|
|
3686
|
-
output,
|
|
3687
|
-
parsedBody,
|
|
3688
|
-
errorCode,
|
|
3689
|
-
});
|
|
3690
|
-
}
|
|
3691
|
-
};
|
|
3692
|
-
export const de_ListPolicyAttachmentsCommand = async (output, context) => {
|
|
3693
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3694
|
-
return de_ListPolicyAttachmentsCommandError(output, context);
|
|
3695
|
-
}
|
|
3696
|
-
const contents = map({
|
|
3697
|
-
$metadata: deserializeMetadata(output),
|
|
3698
|
-
});
|
|
3699
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3700
|
-
const doc = take(data, {
|
|
3701
|
-
NextToken: __expectString,
|
|
3702
|
-
ObjectIdentifiers: _json,
|
|
3703
|
-
});
|
|
3704
|
-
Object.assign(contents, doc);
|
|
3705
|
-
return contents;
|
|
3706
|
-
};
|
|
3707
|
-
const de_ListPolicyAttachmentsCommandError = async (output, context) => {
|
|
3708
|
-
const parsedOutput = {
|
|
3709
|
-
...output,
|
|
3710
|
-
body: await parseErrorBody(output.body, context),
|
|
3711
|
-
};
|
|
3712
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3713
|
-
switch (errorCode) {
|
|
3714
|
-
case "AccessDeniedException":
|
|
3715
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
3716
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3717
|
-
case "DirectoryNotEnabledException":
|
|
3718
|
-
case "com.amazonaws.clouddirectory#DirectoryNotEnabledException":
|
|
3719
|
-
throw await de_DirectoryNotEnabledExceptionRes(parsedOutput, context);
|
|
3720
|
-
case "InternalServiceException":
|
|
3721
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
3722
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3723
|
-
case "InvalidArnException":
|
|
3724
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
3725
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
3726
|
-
case "InvalidNextTokenException":
|
|
3727
|
-
case "com.amazonaws.clouddirectory#InvalidNextTokenException":
|
|
3728
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3729
|
-
case "LimitExceededException":
|
|
3730
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
3731
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3732
|
-
case "NotPolicyException":
|
|
3733
|
-
case "com.amazonaws.clouddirectory#NotPolicyException":
|
|
3734
|
-
throw await de_NotPolicyExceptionRes(parsedOutput, context);
|
|
3735
|
-
case "ResourceNotFoundException":
|
|
3736
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
3737
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3738
|
-
case "RetryableConflictException":
|
|
3739
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
3740
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
3741
|
-
case "ValidationException":
|
|
3742
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
3743
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3744
|
-
default:
|
|
3745
|
-
const parsedBody = parsedOutput.body;
|
|
3746
|
-
return throwDefaultError({
|
|
3747
|
-
output,
|
|
3748
|
-
parsedBody,
|
|
3749
|
-
errorCode,
|
|
3750
|
-
});
|
|
3751
|
-
}
|
|
3752
|
-
};
|
|
3753
|
-
export const de_ListPublishedSchemaArnsCommand = async (output, context) => {
|
|
3754
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3755
|
-
return de_ListPublishedSchemaArnsCommandError(output, context);
|
|
3756
|
-
}
|
|
3757
|
-
const contents = map({
|
|
3758
|
-
$metadata: deserializeMetadata(output),
|
|
3759
|
-
});
|
|
3760
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3761
|
-
const doc = take(data, {
|
|
3762
|
-
NextToken: __expectString,
|
|
3763
|
-
SchemaArns: _json,
|
|
3764
|
-
});
|
|
3765
|
-
Object.assign(contents, doc);
|
|
3766
|
-
return contents;
|
|
3767
|
-
};
|
|
3768
|
-
const de_ListPublishedSchemaArnsCommandError = async (output, context) => {
|
|
3769
|
-
const parsedOutput = {
|
|
3770
|
-
...output,
|
|
3771
|
-
body: await parseErrorBody(output.body, context),
|
|
3772
|
-
};
|
|
3773
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3774
|
-
switch (errorCode) {
|
|
3775
|
-
case "AccessDeniedException":
|
|
3776
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
3777
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3778
|
-
case "InternalServiceException":
|
|
3779
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
3780
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3781
|
-
case "InvalidArnException":
|
|
3782
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
3783
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
3784
|
-
case "InvalidNextTokenException":
|
|
3785
|
-
case "com.amazonaws.clouddirectory#InvalidNextTokenException":
|
|
3786
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3787
|
-
case "LimitExceededException":
|
|
3788
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
3789
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3790
|
-
case "ResourceNotFoundException":
|
|
3791
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
3792
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3793
|
-
case "RetryableConflictException":
|
|
3794
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
3795
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
3796
|
-
case "ValidationException":
|
|
3797
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
3798
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3799
|
-
default:
|
|
3800
|
-
const parsedBody = parsedOutput.body;
|
|
3801
|
-
return throwDefaultError({
|
|
3802
|
-
output,
|
|
3803
|
-
parsedBody,
|
|
3804
|
-
errorCode,
|
|
3805
|
-
});
|
|
3806
|
-
}
|
|
3807
|
-
};
|
|
3808
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
3809
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3810
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
3811
|
-
}
|
|
3812
|
-
const contents = map({
|
|
3813
|
-
$metadata: deserializeMetadata(output),
|
|
3814
|
-
});
|
|
3815
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3816
|
-
const doc = take(data, {
|
|
3817
|
-
NextToken: __expectString,
|
|
3818
|
-
Tags: _json,
|
|
3819
|
-
});
|
|
3820
|
-
Object.assign(contents, doc);
|
|
3821
|
-
return contents;
|
|
3822
|
-
};
|
|
3823
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
3824
|
-
const parsedOutput = {
|
|
3825
|
-
...output,
|
|
3826
|
-
body: await parseErrorBody(output.body, context),
|
|
3827
|
-
};
|
|
3828
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3829
|
-
switch (errorCode) {
|
|
3830
|
-
case "AccessDeniedException":
|
|
3831
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
3832
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3833
|
-
case "InternalServiceException":
|
|
3834
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
3835
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3836
|
-
case "InvalidArnException":
|
|
3837
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
3838
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
3839
|
-
case "InvalidTaggingRequestException":
|
|
3840
|
-
case "com.amazonaws.clouddirectory#InvalidTaggingRequestException":
|
|
3841
|
-
throw await de_InvalidTaggingRequestExceptionRes(parsedOutput, context);
|
|
3842
|
-
case "LimitExceededException":
|
|
3843
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
3844
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3845
|
-
case "ResourceNotFoundException":
|
|
3846
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
3847
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3848
|
-
case "RetryableConflictException":
|
|
3849
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
3850
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
3851
|
-
case "ValidationException":
|
|
3852
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
3853
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3854
|
-
default:
|
|
3855
|
-
const parsedBody = parsedOutput.body;
|
|
3856
|
-
return throwDefaultError({
|
|
3857
|
-
output,
|
|
3858
|
-
parsedBody,
|
|
3859
|
-
errorCode,
|
|
3860
|
-
});
|
|
3861
|
-
}
|
|
3862
|
-
};
|
|
3863
|
-
export const de_ListTypedLinkFacetAttributesCommand = async (output, context) => {
|
|
3864
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3865
|
-
return de_ListTypedLinkFacetAttributesCommandError(output, context);
|
|
3866
|
-
}
|
|
3867
|
-
const contents = map({
|
|
3868
|
-
$metadata: deserializeMetadata(output),
|
|
3869
|
-
});
|
|
3870
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3871
|
-
const doc = take(data, {
|
|
3872
|
-
Attributes: (_) => de_TypedLinkAttributeDefinitionList(_, context),
|
|
3873
|
-
NextToken: __expectString,
|
|
3874
|
-
});
|
|
3875
|
-
Object.assign(contents, doc);
|
|
3876
|
-
return contents;
|
|
3877
|
-
};
|
|
3878
|
-
const de_ListTypedLinkFacetAttributesCommandError = async (output, context) => {
|
|
3879
|
-
const parsedOutput = {
|
|
3880
|
-
...output,
|
|
3881
|
-
body: await parseErrorBody(output.body, context),
|
|
3882
|
-
};
|
|
3883
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3884
|
-
switch (errorCode) {
|
|
3885
|
-
case "AccessDeniedException":
|
|
3886
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
3887
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3888
|
-
case "FacetNotFoundException":
|
|
3889
|
-
case "com.amazonaws.clouddirectory#FacetNotFoundException":
|
|
3890
|
-
throw await de_FacetNotFoundExceptionRes(parsedOutput, context);
|
|
3891
|
-
case "InternalServiceException":
|
|
3892
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
3893
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3894
|
-
case "InvalidArnException":
|
|
3895
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
3896
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
3897
|
-
case "InvalidNextTokenException":
|
|
3898
|
-
case "com.amazonaws.clouddirectory#InvalidNextTokenException":
|
|
3899
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3900
|
-
case "LimitExceededException":
|
|
3901
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
3902
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3903
|
-
case "ResourceNotFoundException":
|
|
3904
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
3905
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3906
|
-
case "RetryableConflictException":
|
|
3907
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
3908
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
3909
|
-
case "ValidationException":
|
|
3910
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
3911
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3912
|
-
default:
|
|
3913
|
-
const parsedBody = parsedOutput.body;
|
|
3914
|
-
return throwDefaultError({
|
|
3915
|
-
output,
|
|
3916
|
-
parsedBody,
|
|
3917
|
-
errorCode,
|
|
3918
|
-
});
|
|
3919
|
-
}
|
|
3920
|
-
};
|
|
3921
|
-
export const de_ListTypedLinkFacetNamesCommand = async (output, context) => {
|
|
3922
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3923
|
-
return de_ListTypedLinkFacetNamesCommandError(output, context);
|
|
3924
|
-
}
|
|
3925
|
-
const contents = map({
|
|
3926
|
-
$metadata: deserializeMetadata(output),
|
|
3927
|
-
});
|
|
3928
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3929
|
-
const doc = take(data, {
|
|
3930
|
-
FacetNames: _json,
|
|
3931
|
-
NextToken: __expectString,
|
|
3932
|
-
});
|
|
3933
|
-
Object.assign(contents, doc);
|
|
3934
|
-
return contents;
|
|
3935
|
-
};
|
|
3936
|
-
const de_ListTypedLinkFacetNamesCommandError = async (output, context) => {
|
|
3937
|
-
const parsedOutput = {
|
|
3938
|
-
...output,
|
|
3939
|
-
body: await parseErrorBody(output.body, context),
|
|
3940
|
-
};
|
|
3941
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3942
|
-
switch (errorCode) {
|
|
3943
|
-
case "AccessDeniedException":
|
|
3944
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
3945
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3946
|
-
case "InternalServiceException":
|
|
3947
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
3948
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3949
|
-
case "InvalidArnException":
|
|
3950
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
3951
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
3952
|
-
case "InvalidNextTokenException":
|
|
3953
|
-
case "com.amazonaws.clouddirectory#InvalidNextTokenException":
|
|
3954
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3955
|
-
case "LimitExceededException":
|
|
3956
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
3957
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3958
|
-
case "ResourceNotFoundException":
|
|
3959
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
3960
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3961
|
-
case "RetryableConflictException":
|
|
3962
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
3963
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
3964
|
-
case "ValidationException":
|
|
3965
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
3966
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3967
|
-
default:
|
|
3968
|
-
const parsedBody = parsedOutput.body;
|
|
3969
|
-
return throwDefaultError({
|
|
3970
|
-
output,
|
|
3971
|
-
parsedBody,
|
|
3972
|
-
errorCode,
|
|
3973
|
-
});
|
|
3974
|
-
}
|
|
3975
|
-
};
|
|
3976
|
-
export const de_LookupPolicyCommand = async (output, context) => {
|
|
3977
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3978
|
-
return de_LookupPolicyCommandError(output, context);
|
|
3979
|
-
}
|
|
3980
|
-
const contents = map({
|
|
3981
|
-
$metadata: deserializeMetadata(output),
|
|
3982
|
-
});
|
|
3983
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3984
|
-
const doc = take(data, {
|
|
3985
|
-
NextToken: __expectString,
|
|
3986
|
-
PolicyToPathList: _json,
|
|
3987
|
-
});
|
|
3988
|
-
Object.assign(contents, doc);
|
|
3989
|
-
return contents;
|
|
3990
|
-
};
|
|
3991
|
-
const de_LookupPolicyCommandError = async (output, context) => {
|
|
3992
|
-
const parsedOutput = {
|
|
3993
|
-
...output,
|
|
3994
|
-
body: await parseErrorBody(output.body, context),
|
|
3995
|
-
};
|
|
3996
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3997
|
-
switch (errorCode) {
|
|
3998
|
-
case "AccessDeniedException":
|
|
3999
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
4000
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4001
|
-
case "DirectoryNotEnabledException":
|
|
4002
|
-
case "com.amazonaws.clouddirectory#DirectoryNotEnabledException":
|
|
4003
|
-
throw await de_DirectoryNotEnabledExceptionRes(parsedOutput, context);
|
|
4004
|
-
case "InternalServiceException":
|
|
4005
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
4006
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
4007
|
-
case "InvalidArnException":
|
|
4008
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
4009
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
4010
|
-
case "InvalidNextTokenException":
|
|
4011
|
-
case "com.amazonaws.clouddirectory#InvalidNextTokenException":
|
|
4012
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
4013
|
-
case "LimitExceededException":
|
|
4014
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
4015
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4016
|
-
case "ResourceNotFoundException":
|
|
4017
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
4018
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4019
|
-
case "RetryableConflictException":
|
|
4020
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
4021
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
4022
|
-
case "ValidationException":
|
|
4023
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
4024
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4025
|
-
default:
|
|
4026
|
-
const parsedBody = parsedOutput.body;
|
|
4027
|
-
return throwDefaultError({
|
|
4028
|
-
output,
|
|
4029
|
-
parsedBody,
|
|
4030
|
-
errorCode,
|
|
4031
|
-
});
|
|
4032
|
-
}
|
|
4033
|
-
};
|
|
4034
|
-
export const de_PublishSchemaCommand = async (output, context) => {
|
|
4035
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4036
|
-
return de_PublishSchemaCommandError(output, context);
|
|
4037
|
-
}
|
|
4038
|
-
const contents = map({
|
|
4039
|
-
$metadata: deserializeMetadata(output),
|
|
4040
|
-
});
|
|
4041
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4042
|
-
const doc = take(data, {
|
|
4043
|
-
PublishedSchemaArn: __expectString,
|
|
4044
|
-
});
|
|
4045
|
-
Object.assign(contents, doc);
|
|
4046
|
-
return contents;
|
|
4047
|
-
};
|
|
4048
|
-
const de_PublishSchemaCommandError = async (output, context) => {
|
|
4049
|
-
const parsedOutput = {
|
|
4050
|
-
...output,
|
|
4051
|
-
body: await parseErrorBody(output.body, context),
|
|
4052
|
-
};
|
|
4053
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4054
|
-
switch (errorCode) {
|
|
4055
|
-
case "AccessDeniedException":
|
|
4056
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
4057
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4058
|
-
case "InternalServiceException":
|
|
4059
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
4060
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
4061
|
-
case "InvalidArnException":
|
|
4062
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
4063
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
4064
|
-
case "LimitExceededException":
|
|
4065
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
4066
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4067
|
-
case "ResourceNotFoundException":
|
|
4068
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
4069
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4070
|
-
case "RetryableConflictException":
|
|
4071
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
4072
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
4073
|
-
case "SchemaAlreadyPublishedException":
|
|
4074
|
-
case "com.amazonaws.clouddirectory#SchemaAlreadyPublishedException":
|
|
4075
|
-
throw await de_SchemaAlreadyPublishedExceptionRes(parsedOutput, context);
|
|
4076
|
-
case "ValidationException":
|
|
4077
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
4078
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4079
|
-
default:
|
|
4080
|
-
const parsedBody = parsedOutput.body;
|
|
4081
|
-
return throwDefaultError({
|
|
4082
|
-
output,
|
|
4083
|
-
parsedBody,
|
|
4084
|
-
errorCode,
|
|
4085
|
-
});
|
|
4086
|
-
}
|
|
4087
|
-
};
|
|
4088
|
-
export const de_PutSchemaFromJsonCommand = async (output, context) => {
|
|
4089
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4090
|
-
return de_PutSchemaFromJsonCommandError(output, context);
|
|
4091
|
-
}
|
|
4092
|
-
const contents = map({
|
|
4093
|
-
$metadata: deserializeMetadata(output),
|
|
4094
|
-
});
|
|
4095
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4096
|
-
const doc = take(data, {
|
|
4097
|
-
Arn: __expectString,
|
|
4098
|
-
});
|
|
4099
|
-
Object.assign(contents, doc);
|
|
4100
|
-
return contents;
|
|
4101
|
-
};
|
|
4102
|
-
const de_PutSchemaFromJsonCommandError = async (output, context) => {
|
|
4103
|
-
const parsedOutput = {
|
|
4104
|
-
...output,
|
|
4105
|
-
body: await parseErrorBody(output.body, context),
|
|
4106
|
-
};
|
|
4107
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4108
|
-
switch (errorCode) {
|
|
4109
|
-
case "AccessDeniedException":
|
|
4110
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
4111
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4112
|
-
case "InternalServiceException":
|
|
4113
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
4114
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
4115
|
-
case "InvalidArnException":
|
|
4116
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
4117
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
4118
|
-
case "InvalidRuleException":
|
|
4119
|
-
case "com.amazonaws.clouddirectory#InvalidRuleException":
|
|
4120
|
-
throw await de_InvalidRuleExceptionRes(parsedOutput, context);
|
|
4121
|
-
case "InvalidSchemaDocException":
|
|
4122
|
-
case "com.amazonaws.clouddirectory#InvalidSchemaDocException":
|
|
4123
|
-
throw await de_InvalidSchemaDocExceptionRes(parsedOutput, context);
|
|
4124
|
-
case "LimitExceededException":
|
|
4125
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
4126
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4127
|
-
case "RetryableConflictException":
|
|
4128
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
4129
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
4130
|
-
case "ValidationException":
|
|
4131
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
4132
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4133
|
-
default:
|
|
4134
|
-
const parsedBody = parsedOutput.body;
|
|
4135
|
-
return throwDefaultError({
|
|
4136
|
-
output,
|
|
4137
|
-
parsedBody,
|
|
4138
|
-
errorCode,
|
|
4139
|
-
});
|
|
4140
|
-
}
|
|
4141
|
-
};
|
|
4142
|
-
export const de_RemoveFacetFromObjectCommand = async (output, context) => {
|
|
4143
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4144
|
-
return de_RemoveFacetFromObjectCommandError(output, context);
|
|
4145
|
-
}
|
|
4146
|
-
const contents = map({
|
|
4147
|
-
$metadata: deserializeMetadata(output),
|
|
4148
|
-
});
|
|
4149
|
-
await collectBody(output.body, context);
|
|
4150
|
-
return contents;
|
|
4151
|
-
};
|
|
4152
|
-
const de_RemoveFacetFromObjectCommandError = async (output, context) => {
|
|
4153
|
-
const parsedOutput = {
|
|
4154
|
-
...output,
|
|
4155
|
-
body: await parseErrorBody(output.body, context),
|
|
4156
|
-
};
|
|
4157
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4158
|
-
switch (errorCode) {
|
|
4159
|
-
case "AccessDeniedException":
|
|
4160
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
4161
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4162
|
-
case "DirectoryNotEnabledException":
|
|
4163
|
-
case "com.amazonaws.clouddirectory#DirectoryNotEnabledException":
|
|
4164
|
-
throw await de_DirectoryNotEnabledExceptionRes(parsedOutput, context);
|
|
4165
|
-
case "FacetValidationException":
|
|
4166
|
-
case "com.amazonaws.clouddirectory#FacetValidationException":
|
|
4167
|
-
throw await de_FacetValidationExceptionRes(parsedOutput, context);
|
|
4168
|
-
case "InternalServiceException":
|
|
4169
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
4170
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
4171
|
-
case "InvalidArnException":
|
|
4172
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
4173
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
4174
|
-
case "LimitExceededException":
|
|
4175
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
4176
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4177
|
-
case "ResourceNotFoundException":
|
|
4178
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
4179
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4180
|
-
case "RetryableConflictException":
|
|
4181
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
4182
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
4183
|
-
case "ValidationException":
|
|
4184
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
4185
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4186
|
-
default:
|
|
4187
|
-
const parsedBody = parsedOutput.body;
|
|
4188
|
-
return throwDefaultError({
|
|
4189
|
-
output,
|
|
4190
|
-
parsedBody,
|
|
4191
|
-
errorCode,
|
|
4192
|
-
});
|
|
4193
|
-
}
|
|
4194
|
-
};
|
|
4195
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
4196
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4197
|
-
return de_TagResourceCommandError(output, context);
|
|
4198
|
-
}
|
|
4199
|
-
const contents = map({
|
|
4200
|
-
$metadata: deserializeMetadata(output),
|
|
4201
|
-
});
|
|
4202
|
-
await collectBody(output.body, context);
|
|
4203
|
-
return contents;
|
|
4204
|
-
};
|
|
4205
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
4206
|
-
const parsedOutput = {
|
|
4207
|
-
...output,
|
|
4208
|
-
body: await parseErrorBody(output.body, context),
|
|
4209
|
-
};
|
|
4210
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4211
|
-
switch (errorCode) {
|
|
4212
|
-
case "AccessDeniedException":
|
|
4213
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
4214
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4215
|
-
case "InternalServiceException":
|
|
4216
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
4217
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
4218
|
-
case "InvalidArnException":
|
|
4219
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
4220
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
4221
|
-
case "InvalidTaggingRequestException":
|
|
4222
|
-
case "com.amazonaws.clouddirectory#InvalidTaggingRequestException":
|
|
4223
|
-
throw await de_InvalidTaggingRequestExceptionRes(parsedOutput, context);
|
|
4224
|
-
case "LimitExceededException":
|
|
4225
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
4226
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4227
|
-
case "ResourceNotFoundException":
|
|
4228
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
4229
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4230
|
-
case "RetryableConflictException":
|
|
4231
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
4232
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
4233
|
-
case "ValidationException":
|
|
4234
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
4235
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4236
|
-
default:
|
|
4237
|
-
const parsedBody = parsedOutput.body;
|
|
4238
|
-
return throwDefaultError({
|
|
4239
|
-
output,
|
|
4240
|
-
parsedBody,
|
|
4241
|
-
errorCode,
|
|
4242
|
-
});
|
|
4243
|
-
}
|
|
4244
|
-
};
|
|
4245
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
4246
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4247
|
-
return de_UntagResourceCommandError(output, context);
|
|
4248
|
-
}
|
|
4249
|
-
const contents = map({
|
|
4250
|
-
$metadata: deserializeMetadata(output),
|
|
4251
|
-
});
|
|
4252
|
-
await collectBody(output.body, context);
|
|
4253
|
-
return contents;
|
|
4254
|
-
};
|
|
4255
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
4256
|
-
const parsedOutput = {
|
|
4257
|
-
...output,
|
|
4258
|
-
body: await parseErrorBody(output.body, context),
|
|
4259
|
-
};
|
|
4260
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4261
|
-
switch (errorCode) {
|
|
4262
|
-
case "AccessDeniedException":
|
|
4263
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
4264
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4265
|
-
case "InternalServiceException":
|
|
4266
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
4267
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
4268
|
-
case "InvalidArnException":
|
|
4269
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
4270
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
4271
|
-
case "InvalidTaggingRequestException":
|
|
4272
|
-
case "com.amazonaws.clouddirectory#InvalidTaggingRequestException":
|
|
4273
|
-
throw await de_InvalidTaggingRequestExceptionRes(parsedOutput, context);
|
|
4274
|
-
case "LimitExceededException":
|
|
4275
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
4276
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4277
|
-
case "ResourceNotFoundException":
|
|
4278
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
4279
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4280
|
-
case "RetryableConflictException":
|
|
4281
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
4282
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
4283
|
-
case "ValidationException":
|
|
4284
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
4285
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4286
|
-
default:
|
|
4287
|
-
const parsedBody = parsedOutput.body;
|
|
4288
|
-
return throwDefaultError({
|
|
4289
|
-
output,
|
|
4290
|
-
parsedBody,
|
|
4291
|
-
errorCode,
|
|
4292
|
-
});
|
|
4293
|
-
}
|
|
4294
|
-
};
|
|
4295
|
-
export const de_UpdateFacetCommand = async (output, context) => {
|
|
4296
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4297
|
-
return de_UpdateFacetCommandError(output, context);
|
|
4298
|
-
}
|
|
4299
|
-
const contents = map({
|
|
4300
|
-
$metadata: deserializeMetadata(output),
|
|
4301
|
-
});
|
|
4302
|
-
await collectBody(output.body, context);
|
|
4303
|
-
return contents;
|
|
4304
|
-
};
|
|
4305
|
-
const de_UpdateFacetCommandError = async (output, context) => {
|
|
4306
|
-
const parsedOutput = {
|
|
4307
|
-
...output,
|
|
4308
|
-
body: await parseErrorBody(output.body, context),
|
|
4309
|
-
};
|
|
4310
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4311
|
-
switch (errorCode) {
|
|
4312
|
-
case "AccessDeniedException":
|
|
4313
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
4314
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4315
|
-
case "FacetNotFoundException":
|
|
4316
|
-
case "com.amazonaws.clouddirectory#FacetNotFoundException":
|
|
4317
|
-
throw await de_FacetNotFoundExceptionRes(parsedOutput, context);
|
|
4318
|
-
case "FacetValidationException":
|
|
4319
|
-
case "com.amazonaws.clouddirectory#FacetValidationException":
|
|
4320
|
-
throw await de_FacetValidationExceptionRes(parsedOutput, context);
|
|
4321
|
-
case "InternalServiceException":
|
|
4322
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
4323
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
4324
|
-
case "InvalidArnException":
|
|
4325
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
4326
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
4327
|
-
case "InvalidFacetUpdateException":
|
|
4328
|
-
case "com.amazonaws.clouddirectory#InvalidFacetUpdateException":
|
|
4329
|
-
throw await de_InvalidFacetUpdateExceptionRes(parsedOutput, context);
|
|
4330
|
-
case "InvalidRuleException":
|
|
4331
|
-
case "com.amazonaws.clouddirectory#InvalidRuleException":
|
|
4332
|
-
throw await de_InvalidRuleExceptionRes(parsedOutput, context);
|
|
4333
|
-
case "LimitExceededException":
|
|
4334
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
4335
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4336
|
-
case "ResourceNotFoundException":
|
|
4337
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
4338
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4339
|
-
case "RetryableConflictException":
|
|
4340
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
4341
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
4342
|
-
case "ValidationException":
|
|
4343
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
4344
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4345
|
-
default:
|
|
4346
|
-
const parsedBody = parsedOutput.body;
|
|
4347
|
-
return throwDefaultError({
|
|
4348
|
-
output,
|
|
4349
|
-
parsedBody,
|
|
4350
|
-
errorCode,
|
|
4351
|
-
});
|
|
4352
|
-
}
|
|
4353
|
-
};
|
|
4354
|
-
export const de_UpdateLinkAttributesCommand = async (output, context) => {
|
|
4355
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4356
|
-
return de_UpdateLinkAttributesCommandError(output, context);
|
|
1782
|
+
return de_CommandError(output, context);
|
|
4357
1783
|
}
|
|
4358
1784
|
const contents = map({
|
|
4359
1785
|
$metadata: deserializeMetadata(output),
|
|
4360
1786
|
});
|
|
4361
1787
|
await collectBody(output.body, context);
|
|
4362
|
-
return contents;
|
|
4363
|
-
};
|
|
4364
|
-
const
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
body: await parseErrorBody(output.body, context),
|
|
4368
|
-
};
|
|
4369
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4370
|
-
switch (errorCode) {
|
|
4371
|
-
case "AccessDeniedException":
|
|
4372
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
4373
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4374
|
-
case "DirectoryNotEnabledException":
|
|
4375
|
-
case "com.amazonaws.clouddirectory#DirectoryNotEnabledException":
|
|
4376
|
-
throw await de_DirectoryNotEnabledExceptionRes(parsedOutput, context);
|
|
4377
|
-
case "FacetValidationException":
|
|
4378
|
-
case "com.amazonaws.clouddirectory#FacetValidationException":
|
|
4379
|
-
throw await de_FacetValidationExceptionRes(parsedOutput, context);
|
|
4380
|
-
case "InternalServiceException":
|
|
4381
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
4382
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
4383
|
-
case "InvalidArnException":
|
|
4384
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
4385
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
4386
|
-
case "LimitExceededException":
|
|
4387
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
4388
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4389
|
-
case "ResourceNotFoundException":
|
|
4390
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
4391
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4392
|
-
case "RetryableConflictException":
|
|
4393
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
4394
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
4395
|
-
case "ValidationException":
|
|
4396
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
4397
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4398
|
-
default:
|
|
4399
|
-
const parsedBody = parsedOutput.body;
|
|
4400
|
-
return throwDefaultError({
|
|
4401
|
-
output,
|
|
4402
|
-
parsedBody,
|
|
4403
|
-
errorCode,
|
|
4404
|
-
});
|
|
4405
|
-
}
|
|
4406
|
-
};
|
|
4407
|
-
export const de_UpdateObjectAttributesCommand = async (output, context) => {
|
|
4408
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4409
|
-
return de_UpdateObjectAttributesCommandError(output, context);
|
|
4410
|
-
}
|
|
4411
|
-
const contents = map({
|
|
4412
|
-
$metadata: deserializeMetadata(output),
|
|
4413
|
-
});
|
|
4414
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4415
|
-
const doc = take(data, {
|
|
4416
|
-
ObjectIdentifier: __expectString,
|
|
4417
|
-
});
|
|
4418
|
-
Object.assign(contents, doc);
|
|
4419
|
-
return contents;
|
|
4420
|
-
};
|
|
4421
|
-
const de_UpdateObjectAttributesCommandError = async (output, context) => {
|
|
4422
|
-
const parsedOutput = {
|
|
4423
|
-
...output,
|
|
4424
|
-
body: await parseErrorBody(output.body, context),
|
|
4425
|
-
};
|
|
4426
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4427
|
-
switch (errorCode) {
|
|
4428
|
-
case "AccessDeniedException":
|
|
4429
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
4430
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4431
|
-
case "DirectoryNotEnabledException":
|
|
4432
|
-
case "com.amazonaws.clouddirectory#DirectoryNotEnabledException":
|
|
4433
|
-
throw await de_DirectoryNotEnabledExceptionRes(parsedOutput, context);
|
|
4434
|
-
case "FacetValidationException":
|
|
4435
|
-
case "com.amazonaws.clouddirectory#FacetValidationException":
|
|
4436
|
-
throw await de_FacetValidationExceptionRes(parsedOutput, context);
|
|
4437
|
-
case "InternalServiceException":
|
|
4438
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
4439
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
4440
|
-
case "InvalidArnException":
|
|
4441
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
4442
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
4443
|
-
case "LimitExceededException":
|
|
4444
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
4445
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4446
|
-
case "LinkNameAlreadyInUseException":
|
|
4447
|
-
case "com.amazonaws.clouddirectory#LinkNameAlreadyInUseException":
|
|
4448
|
-
throw await de_LinkNameAlreadyInUseExceptionRes(parsedOutput, context);
|
|
4449
|
-
case "ResourceNotFoundException":
|
|
4450
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
4451
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4452
|
-
case "RetryableConflictException":
|
|
4453
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
4454
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
4455
|
-
case "ValidationException":
|
|
4456
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
4457
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4458
|
-
default:
|
|
4459
|
-
const parsedBody = parsedOutput.body;
|
|
4460
|
-
return throwDefaultError({
|
|
4461
|
-
output,
|
|
4462
|
-
parsedBody,
|
|
4463
|
-
errorCode,
|
|
4464
|
-
});
|
|
1788
|
+
return contents;
|
|
1789
|
+
};
|
|
1790
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
1791
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1792
|
+
return de_CommandError(output, context);
|
|
4465
1793
|
}
|
|
1794
|
+
const contents = map({
|
|
1795
|
+
$metadata: deserializeMetadata(output),
|
|
1796
|
+
});
|
|
1797
|
+
await collectBody(output.body, context);
|
|
1798
|
+
return contents;
|
|
4466
1799
|
};
|
|
4467
|
-
export const
|
|
1800
|
+
export const de_UpdateFacetCommand = async (output, context) => {
|
|
1801
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1802
|
+
return de_CommandError(output, context);
|
|
1803
|
+
}
|
|
1804
|
+
const contents = map({
|
|
1805
|
+
$metadata: deserializeMetadata(output),
|
|
1806
|
+
});
|
|
1807
|
+
await collectBody(output.body, context);
|
|
1808
|
+
return contents;
|
|
1809
|
+
};
|
|
1810
|
+
export const de_UpdateLinkAttributesCommand = async (output, context) => {
|
|
1811
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1812
|
+
return de_CommandError(output, context);
|
|
1813
|
+
}
|
|
1814
|
+
const contents = map({
|
|
1815
|
+
$metadata: deserializeMetadata(output),
|
|
1816
|
+
});
|
|
1817
|
+
await collectBody(output.body, context);
|
|
1818
|
+
return contents;
|
|
1819
|
+
};
|
|
1820
|
+
export const de_UpdateObjectAttributesCommand = async (output, context) => {
|
|
4468
1821
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4469
|
-
return
|
|
1822
|
+
return de_CommandError(output, context);
|
|
4470
1823
|
}
|
|
4471
1824
|
const contents = map({
|
|
4472
1825
|
$metadata: deserializeMetadata(output),
|
|
4473
1826
|
});
|
|
4474
1827
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4475
1828
|
const doc = take(data, {
|
|
4476
|
-
|
|
1829
|
+
ObjectIdentifier: __expectString,
|
|
4477
1830
|
});
|
|
4478
1831
|
Object.assign(contents, doc);
|
|
4479
1832
|
return contents;
|
|
4480
1833
|
};
|
|
4481
|
-
const
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
body: await parseErrorBody(output.body, context),
|
|
4485
|
-
};
|
|
4486
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4487
|
-
switch (errorCode) {
|
|
4488
|
-
case "AccessDeniedException":
|
|
4489
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
4490
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4491
|
-
case "InternalServiceException":
|
|
4492
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
4493
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
4494
|
-
case "InvalidArnException":
|
|
4495
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
4496
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
4497
|
-
case "LimitExceededException":
|
|
4498
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
4499
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4500
|
-
case "ResourceNotFoundException":
|
|
4501
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
4502
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4503
|
-
case "RetryableConflictException":
|
|
4504
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
4505
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
4506
|
-
case "ValidationException":
|
|
4507
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
4508
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4509
|
-
default:
|
|
4510
|
-
const parsedBody = parsedOutput.body;
|
|
4511
|
-
return throwDefaultError({
|
|
4512
|
-
output,
|
|
4513
|
-
parsedBody,
|
|
4514
|
-
errorCode,
|
|
4515
|
-
});
|
|
1834
|
+
export const de_UpdateSchemaCommand = async (output, context) => {
|
|
1835
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1836
|
+
return de_CommandError(output, context);
|
|
4516
1837
|
}
|
|
1838
|
+
const contents = map({
|
|
1839
|
+
$metadata: deserializeMetadata(output),
|
|
1840
|
+
});
|
|
1841
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1842
|
+
const doc = take(data, {
|
|
1843
|
+
SchemaArn: __expectString,
|
|
1844
|
+
});
|
|
1845
|
+
Object.assign(contents, doc);
|
|
1846
|
+
return contents;
|
|
4517
1847
|
};
|
|
4518
1848
|
export const de_UpdateTypedLinkFacetCommand = async (output, context) => {
|
|
4519
1849
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4520
|
-
return
|
|
1850
|
+
return de_CommandError(output, context);
|
|
4521
1851
|
}
|
|
4522
1852
|
const contents = map({
|
|
4523
1853
|
$metadata: deserializeMetadata(output),
|
|
@@ -4525,58 +1855,9 @@ export const de_UpdateTypedLinkFacetCommand = async (output, context) => {
|
|
|
4525
1855
|
await collectBody(output.body, context);
|
|
4526
1856
|
return contents;
|
|
4527
1857
|
};
|
|
4528
|
-
const de_UpdateTypedLinkFacetCommandError = async (output, context) => {
|
|
4529
|
-
const parsedOutput = {
|
|
4530
|
-
...output,
|
|
4531
|
-
body: await parseErrorBody(output.body, context),
|
|
4532
|
-
};
|
|
4533
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4534
|
-
switch (errorCode) {
|
|
4535
|
-
case "AccessDeniedException":
|
|
4536
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
4537
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4538
|
-
case "FacetNotFoundException":
|
|
4539
|
-
case "com.amazonaws.clouddirectory#FacetNotFoundException":
|
|
4540
|
-
throw await de_FacetNotFoundExceptionRes(parsedOutput, context);
|
|
4541
|
-
case "FacetValidationException":
|
|
4542
|
-
case "com.amazonaws.clouddirectory#FacetValidationException":
|
|
4543
|
-
throw await de_FacetValidationExceptionRes(parsedOutput, context);
|
|
4544
|
-
case "InternalServiceException":
|
|
4545
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
4546
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
4547
|
-
case "InvalidArnException":
|
|
4548
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
4549
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
4550
|
-
case "InvalidFacetUpdateException":
|
|
4551
|
-
case "com.amazonaws.clouddirectory#InvalidFacetUpdateException":
|
|
4552
|
-
throw await de_InvalidFacetUpdateExceptionRes(parsedOutput, context);
|
|
4553
|
-
case "InvalidRuleException":
|
|
4554
|
-
case "com.amazonaws.clouddirectory#InvalidRuleException":
|
|
4555
|
-
throw await de_InvalidRuleExceptionRes(parsedOutput, context);
|
|
4556
|
-
case "LimitExceededException":
|
|
4557
|
-
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
4558
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4559
|
-
case "ResourceNotFoundException":
|
|
4560
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
4561
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4562
|
-
case "RetryableConflictException":
|
|
4563
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
4564
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
4565
|
-
case "ValidationException":
|
|
4566
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
4567
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4568
|
-
default:
|
|
4569
|
-
const parsedBody = parsedOutput.body;
|
|
4570
|
-
return throwDefaultError({
|
|
4571
|
-
output,
|
|
4572
|
-
parsedBody,
|
|
4573
|
-
errorCode,
|
|
4574
|
-
});
|
|
4575
|
-
}
|
|
4576
|
-
};
|
|
4577
1858
|
export const de_UpgradeAppliedSchemaCommand = async (output, context) => {
|
|
4578
1859
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4579
|
-
return
|
|
1860
|
+
return de_CommandError(output, context);
|
|
4580
1861
|
}
|
|
4581
1862
|
const contents = map({
|
|
4582
1863
|
$metadata: deserializeMetadata(output),
|
|
@@ -4589,52 +1870,9 @@ export const de_UpgradeAppliedSchemaCommand = async (output, context) => {
|
|
|
4589
1870
|
Object.assign(contents, doc);
|
|
4590
1871
|
return contents;
|
|
4591
1872
|
};
|
|
4592
|
-
const de_UpgradeAppliedSchemaCommandError = async (output, context) => {
|
|
4593
|
-
const parsedOutput = {
|
|
4594
|
-
...output,
|
|
4595
|
-
body: await parseErrorBody(output.body, context),
|
|
4596
|
-
};
|
|
4597
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4598
|
-
switch (errorCode) {
|
|
4599
|
-
case "AccessDeniedException":
|
|
4600
|
-
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
4601
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4602
|
-
case "IncompatibleSchemaException":
|
|
4603
|
-
case "com.amazonaws.clouddirectory#IncompatibleSchemaException":
|
|
4604
|
-
throw await de_IncompatibleSchemaExceptionRes(parsedOutput, context);
|
|
4605
|
-
case "InternalServiceException":
|
|
4606
|
-
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
4607
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
4608
|
-
case "InvalidArnException":
|
|
4609
|
-
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
4610
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
4611
|
-
case "InvalidAttachmentException":
|
|
4612
|
-
case "com.amazonaws.clouddirectory#InvalidAttachmentException":
|
|
4613
|
-
throw await de_InvalidAttachmentExceptionRes(parsedOutput, context);
|
|
4614
|
-
case "ResourceNotFoundException":
|
|
4615
|
-
case "com.amazonaws.clouddirectory#ResourceNotFoundException":
|
|
4616
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4617
|
-
case "RetryableConflictException":
|
|
4618
|
-
case "com.amazonaws.clouddirectory#RetryableConflictException":
|
|
4619
|
-
throw await de_RetryableConflictExceptionRes(parsedOutput, context);
|
|
4620
|
-
case "SchemaAlreadyExistsException":
|
|
4621
|
-
case "com.amazonaws.clouddirectory#SchemaAlreadyExistsException":
|
|
4622
|
-
throw await de_SchemaAlreadyExistsExceptionRes(parsedOutput, context);
|
|
4623
|
-
case "ValidationException":
|
|
4624
|
-
case "com.amazonaws.clouddirectory#ValidationException":
|
|
4625
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4626
|
-
default:
|
|
4627
|
-
const parsedBody = parsedOutput.body;
|
|
4628
|
-
return throwDefaultError({
|
|
4629
|
-
output,
|
|
4630
|
-
parsedBody,
|
|
4631
|
-
errorCode,
|
|
4632
|
-
});
|
|
4633
|
-
}
|
|
4634
|
-
};
|
|
4635
1873
|
export const de_UpgradePublishedSchemaCommand = async (output, context) => {
|
|
4636
1874
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4637
|
-
return
|
|
1875
|
+
return de_CommandError(output, context);
|
|
4638
1876
|
}
|
|
4639
1877
|
const contents = map({
|
|
4640
1878
|
$metadata: deserializeMetadata(output),
|
|
@@ -4646,7 +1884,7 @@ export const de_UpgradePublishedSchemaCommand = async (output, context) => {
|
|
|
4646
1884
|
Object.assign(contents, doc);
|
|
4647
1885
|
return contents;
|
|
4648
1886
|
};
|
|
4649
|
-
const
|
|
1887
|
+
const de_CommandError = async (output, context) => {
|
|
4650
1888
|
const parsedOutput = {
|
|
4651
1889
|
...output,
|
|
4652
1890
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4656,18 +1894,18 @@ const de_UpgradePublishedSchemaCommandError = async (output, context) => {
|
|
|
4656
1894
|
case "AccessDeniedException":
|
|
4657
1895
|
case "com.amazonaws.clouddirectory#AccessDeniedException":
|
|
4658
1896
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4659
|
-
case "
|
|
4660
|
-
case "com.amazonaws.clouddirectory#
|
|
4661
|
-
throw await
|
|
1897
|
+
case "DirectoryNotEnabledException":
|
|
1898
|
+
case "com.amazonaws.clouddirectory#DirectoryNotEnabledException":
|
|
1899
|
+
throw await de_DirectoryNotEnabledExceptionRes(parsedOutput, context);
|
|
1900
|
+
case "FacetValidationException":
|
|
1901
|
+
case "com.amazonaws.clouddirectory#FacetValidationException":
|
|
1902
|
+
throw await de_FacetValidationExceptionRes(parsedOutput, context);
|
|
4662
1903
|
case "InternalServiceException":
|
|
4663
1904
|
case "com.amazonaws.clouddirectory#InternalServiceException":
|
|
4664
1905
|
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
4665
1906
|
case "InvalidArnException":
|
|
4666
1907
|
case "com.amazonaws.clouddirectory#InvalidArnException":
|
|
4667
1908
|
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
4668
|
-
case "InvalidAttachmentException":
|
|
4669
|
-
case "com.amazonaws.clouddirectory#InvalidAttachmentException":
|
|
4670
|
-
throw await de_InvalidAttachmentExceptionRes(parsedOutput, context);
|
|
4671
1909
|
case "LimitExceededException":
|
|
4672
1910
|
case "com.amazonaws.clouddirectory#LimitExceededException":
|
|
4673
1911
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
@@ -4680,6 +1918,84 @@ const de_UpgradePublishedSchemaCommandError = async (output, context) => {
|
|
|
4680
1918
|
case "ValidationException":
|
|
4681
1919
|
case "com.amazonaws.clouddirectory#ValidationException":
|
|
4682
1920
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1921
|
+
case "InvalidAttachmentException":
|
|
1922
|
+
case "com.amazonaws.clouddirectory#InvalidAttachmentException":
|
|
1923
|
+
throw await de_InvalidAttachmentExceptionRes(parsedOutput, context);
|
|
1924
|
+
case "SchemaAlreadyExistsException":
|
|
1925
|
+
case "com.amazonaws.clouddirectory#SchemaAlreadyExistsException":
|
|
1926
|
+
throw await de_SchemaAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1927
|
+
case "LinkNameAlreadyInUseException":
|
|
1928
|
+
case "com.amazonaws.clouddirectory#LinkNameAlreadyInUseException":
|
|
1929
|
+
throw await de_LinkNameAlreadyInUseExceptionRes(parsedOutput, context);
|
|
1930
|
+
case "NotPolicyException":
|
|
1931
|
+
case "com.amazonaws.clouddirectory#NotPolicyException":
|
|
1932
|
+
throw await de_NotPolicyExceptionRes(parsedOutput, context);
|
|
1933
|
+
case "IndexedAttributeMissingException":
|
|
1934
|
+
case "com.amazonaws.clouddirectory#IndexedAttributeMissingException":
|
|
1935
|
+
throw await de_IndexedAttributeMissingExceptionRes(parsedOutput, context);
|
|
1936
|
+
case "NotIndexException":
|
|
1937
|
+
case "com.amazonaws.clouddirectory#NotIndexException":
|
|
1938
|
+
throw await de_NotIndexExceptionRes(parsedOutput, context);
|
|
1939
|
+
case "BatchWriteException":
|
|
1940
|
+
case "com.amazonaws.clouddirectory#BatchWriteException":
|
|
1941
|
+
throw await de_BatchWriteExceptionRes(parsedOutput, context);
|
|
1942
|
+
case "DirectoryAlreadyExistsException":
|
|
1943
|
+
case "com.amazonaws.clouddirectory#DirectoryAlreadyExistsException":
|
|
1944
|
+
throw await de_DirectoryAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1945
|
+
case "FacetAlreadyExistsException":
|
|
1946
|
+
case "com.amazonaws.clouddirectory#FacetAlreadyExistsException":
|
|
1947
|
+
throw await de_FacetAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1948
|
+
case "InvalidRuleException":
|
|
1949
|
+
case "com.amazonaws.clouddirectory#InvalidRuleException":
|
|
1950
|
+
throw await de_InvalidRuleExceptionRes(parsedOutput, context);
|
|
1951
|
+
case "UnsupportedIndexTypeException":
|
|
1952
|
+
case "com.amazonaws.clouddirectory#UnsupportedIndexTypeException":
|
|
1953
|
+
throw await de_UnsupportedIndexTypeExceptionRes(parsedOutput, context);
|
|
1954
|
+
case "DirectoryDeletedException":
|
|
1955
|
+
case "com.amazonaws.clouddirectory#DirectoryDeletedException":
|
|
1956
|
+
throw await de_DirectoryDeletedExceptionRes(parsedOutput, context);
|
|
1957
|
+
case "DirectoryNotDisabledException":
|
|
1958
|
+
case "com.amazonaws.clouddirectory#DirectoryNotDisabledException":
|
|
1959
|
+
throw await de_DirectoryNotDisabledExceptionRes(parsedOutput, context);
|
|
1960
|
+
case "FacetInUseException":
|
|
1961
|
+
case "com.amazonaws.clouddirectory#FacetInUseException":
|
|
1962
|
+
throw await de_FacetInUseExceptionRes(parsedOutput, context);
|
|
1963
|
+
case "FacetNotFoundException":
|
|
1964
|
+
case "com.amazonaws.clouddirectory#FacetNotFoundException":
|
|
1965
|
+
throw await de_FacetNotFoundExceptionRes(parsedOutput, context);
|
|
1966
|
+
case "ObjectNotDetachedException":
|
|
1967
|
+
case "com.amazonaws.clouddirectory#ObjectNotDetachedException":
|
|
1968
|
+
throw await de_ObjectNotDetachedExceptionRes(parsedOutput, context);
|
|
1969
|
+
case "StillContainsLinksException":
|
|
1970
|
+
case "com.amazonaws.clouddirectory#StillContainsLinksException":
|
|
1971
|
+
throw await de_StillContainsLinksExceptionRes(parsedOutput, context);
|
|
1972
|
+
case "ObjectAlreadyDetachedException":
|
|
1973
|
+
case "com.amazonaws.clouddirectory#ObjectAlreadyDetachedException":
|
|
1974
|
+
throw await de_ObjectAlreadyDetachedExceptionRes(parsedOutput, context);
|
|
1975
|
+
case "NotNodeException":
|
|
1976
|
+
case "com.amazonaws.clouddirectory#NotNodeException":
|
|
1977
|
+
throw await de_NotNodeExceptionRes(parsedOutput, context);
|
|
1978
|
+
case "InvalidNextTokenException":
|
|
1979
|
+
case "com.amazonaws.clouddirectory#InvalidNextTokenException":
|
|
1980
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1981
|
+
case "CannotListParentOfRootException":
|
|
1982
|
+
case "com.amazonaws.clouddirectory#CannotListParentOfRootException":
|
|
1983
|
+
throw await de_CannotListParentOfRootExceptionRes(parsedOutput, context);
|
|
1984
|
+
case "InvalidTaggingRequestException":
|
|
1985
|
+
case "com.amazonaws.clouddirectory#InvalidTaggingRequestException":
|
|
1986
|
+
throw await de_InvalidTaggingRequestExceptionRes(parsedOutput, context);
|
|
1987
|
+
case "SchemaAlreadyPublishedException":
|
|
1988
|
+
case "com.amazonaws.clouddirectory#SchemaAlreadyPublishedException":
|
|
1989
|
+
throw await de_SchemaAlreadyPublishedExceptionRes(parsedOutput, context);
|
|
1990
|
+
case "InvalidSchemaDocException":
|
|
1991
|
+
case "com.amazonaws.clouddirectory#InvalidSchemaDocException":
|
|
1992
|
+
throw await de_InvalidSchemaDocExceptionRes(parsedOutput, context);
|
|
1993
|
+
case "InvalidFacetUpdateException":
|
|
1994
|
+
case "com.amazonaws.clouddirectory#InvalidFacetUpdateException":
|
|
1995
|
+
throw await de_InvalidFacetUpdateExceptionRes(parsedOutput, context);
|
|
1996
|
+
case "IncompatibleSchemaException":
|
|
1997
|
+
case "com.amazonaws.clouddirectory#IncompatibleSchemaException":
|
|
1998
|
+
throw await de_IncompatibleSchemaExceptionRes(parsedOutput, context);
|
|
4683
1999
|
default:
|
|
4684
2000
|
const parsedBody = parsedOutput.body;
|
|
4685
2001
|
return throwDefaultError({
|