@aws-sdk/client-license-manager 3.504.0 → 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 +137 -1854
- package/dist-es/protocols/Aws_json1_1.js +209 -1926
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -996,7 +996,7 @@ var se_UpdateServiceSettingsCommand = /* @__PURE__ */ __name(async (input, conte
|
|
|
996
996
|
}, "se_UpdateServiceSettingsCommand");
|
|
997
997
|
var de_AcceptGrantCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
998
998
|
if (output.statusCode >= 300) {
|
|
999
|
-
return
|
|
999
|
+
return de_CommandError(output, context);
|
|
1000
1000
|
}
|
|
1001
1001
|
const data = await parseBody(output.body, context);
|
|
1002
1002
|
let contents = {};
|
|
@@ -1007,46 +1007,9 @@ var de_AcceptGrantCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1007
1007
|
};
|
|
1008
1008
|
return response;
|
|
1009
1009
|
}, "de_AcceptGrantCommand");
|
|
1010
|
-
var de_AcceptGrantCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1011
|
-
const parsedOutput = {
|
|
1012
|
-
...output,
|
|
1013
|
-
body: await parseErrorBody(output.body, context)
|
|
1014
|
-
};
|
|
1015
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1016
|
-
switch (errorCode) {
|
|
1017
|
-
case "AccessDeniedException":
|
|
1018
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1019
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1020
|
-
case "AuthorizationException":
|
|
1021
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1022
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1023
|
-
case "InvalidParameterValueException":
|
|
1024
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1025
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1026
|
-
case "RateLimitExceededException":
|
|
1027
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1028
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1029
|
-
case "ResourceLimitExceededException":
|
|
1030
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
1031
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1032
|
-
case "ServerInternalException":
|
|
1033
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1034
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1035
|
-
case "ValidationException":
|
|
1036
|
-
case "com.amazonaws.licensemanager#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
|
-
}, "de_AcceptGrantCommandError");
|
|
1047
1010
|
var de_CheckInLicenseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1048
1011
|
if (output.statusCode >= 300) {
|
|
1049
|
-
return
|
|
1012
|
+
return de_CommandError(output, context);
|
|
1050
1013
|
}
|
|
1051
1014
|
const data = await parseBody(output.body, context);
|
|
1052
1015
|
let contents = {};
|
|
@@ -1057,49 +1020,9 @@ var de_CheckInLicenseCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1057
1020
|
};
|
|
1058
1021
|
return response;
|
|
1059
1022
|
}, "de_CheckInLicenseCommand");
|
|
1060
|
-
var de_CheckInLicenseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1061
|
-
const parsedOutput = {
|
|
1062
|
-
...output,
|
|
1063
|
-
body: await parseErrorBody(output.body, context)
|
|
1064
|
-
};
|
|
1065
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1066
|
-
switch (errorCode) {
|
|
1067
|
-
case "AccessDeniedException":
|
|
1068
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1069
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1070
|
-
case "AuthorizationException":
|
|
1071
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1072
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1073
|
-
case "ConflictException":
|
|
1074
|
-
case "com.amazonaws.licensemanager#ConflictException":
|
|
1075
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1076
|
-
case "InvalidParameterValueException":
|
|
1077
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1078
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1079
|
-
case "RateLimitExceededException":
|
|
1080
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1081
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1082
|
-
case "ResourceNotFoundException":
|
|
1083
|
-
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
1084
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1085
|
-
case "ServerInternalException":
|
|
1086
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1087
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1088
|
-
case "ValidationException":
|
|
1089
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1090
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1091
|
-
default:
|
|
1092
|
-
const parsedBody = parsedOutput.body;
|
|
1093
|
-
return throwDefaultError({
|
|
1094
|
-
output,
|
|
1095
|
-
parsedBody,
|
|
1096
|
-
errorCode
|
|
1097
|
-
});
|
|
1098
|
-
}
|
|
1099
|
-
}, "de_CheckInLicenseCommandError");
|
|
1100
1023
|
var de_CheckoutBorrowLicenseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1101
1024
|
if (output.statusCode >= 300) {
|
|
1102
|
-
return
|
|
1025
|
+
return de_CommandError(output, context);
|
|
1103
1026
|
}
|
|
1104
1027
|
const data = await parseBody(output.body, context);
|
|
1105
1028
|
let contents = {};
|
|
@@ -1110,58 +1033,9 @@ var de_CheckoutBorrowLicenseCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1110
1033
|
};
|
|
1111
1034
|
return response;
|
|
1112
1035
|
}, "de_CheckoutBorrowLicenseCommand");
|
|
1113
|
-
var de_CheckoutBorrowLicenseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1114
|
-
const parsedOutput = {
|
|
1115
|
-
...output,
|
|
1116
|
-
body: await parseErrorBody(output.body, context)
|
|
1117
|
-
};
|
|
1118
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1119
|
-
switch (errorCode) {
|
|
1120
|
-
case "AccessDeniedException":
|
|
1121
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1122
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1123
|
-
case "AuthorizationException":
|
|
1124
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1125
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1126
|
-
case "EntitlementNotAllowedException":
|
|
1127
|
-
case "com.amazonaws.licensemanager#EntitlementNotAllowedException":
|
|
1128
|
-
throw await de_EntitlementNotAllowedExceptionRes(parsedOutput, context);
|
|
1129
|
-
case "InvalidParameterValueException":
|
|
1130
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1131
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1132
|
-
case "NoEntitlementsAllowedException":
|
|
1133
|
-
case "com.amazonaws.licensemanager#NoEntitlementsAllowedException":
|
|
1134
|
-
throw await de_NoEntitlementsAllowedExceptionRes(parsedOutput, context);
|
|
1135
|
-
case "RateLimitExceededException":
|
|
1136
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1137
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1138
|
-
case "RedirectException":
|
|
1139
|
-
case "com.amazonaws.licensemanager#RedirectException":
|
|
1140
|
-
throw await de_RedirectExceptionRes(parsedOutput, context);
|
|
1141
|
-
case "ResourceNotFoundException":
|
|
1142
|
-
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
1143
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1144
|
-
case "ServerInternalException":
|
|
1145
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1146
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1147
|
-
case "UnsupportedDigitalSignatureMethodException":
|
|
1148
|
-
case "com.amazonaws.licensemanager#UnsupportedDigitalSignatureMethodException":
|
|
1149
|
-
throw await de_UnsupportedDigitalSignatureMethodExceptionRes(parsedOutput, context);
|
|
1150
|
-
case "ValidationException":
|
|
1151
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1152
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1153
|
-
default:
|
|
1154
|
-
const parsedBody = parsedOutput.body;
|
|
1155
|
-
return throwDefaultError({
|
|
1156
|
-
output,
|
|
1157
|
-
parsedBody,
|
|
1158
|
-
errorCode
|
|
1159
|
-
});
|
|
1160
|
-
}
|
|
1161
|
-
}, "de_CheckoutBorrowLicenseCommandError");
|
|
1162
1036
|
var de_CheckoutLicenseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1163
1037
|
if (output.statusCode >= 300) {
|
|
1164
|
-
return
|
|
1038
|
+
return de_CommandError(output, context);
|
|
1165
1039
|
}
|
|
1166
1040
|
const data = await parseBody(output.body, context);
|
|
1167
1041
|
let contents = {};
|
|
@@ -1172,55 +1046,9 @@ var de_CheckoutLicenseCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1172
1046
|
};
|
|
1173
1047
|
return response;
|
|
1174
1048
|
}, "de_CheckoutLicenseCommand");
|
|
1175
|
-
var de_CheckoutLicenseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1176
|
-
const parsedOutput = {
|
|
1177
|
-
...output,
|
|
1178
|
-
body: await parseErrorBody(output.body, context)
|
|
1179
|
-
};
|
|
1180
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1181
|
-
switch (errorCode) {
|
|
1182
|
-
case "AccessDeniedException":
|
|
1183
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1184
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1185
|
-
case "AuthorizationException":
|
|
1186
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1187
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1188
|
-
case "InvalidParameterValueException":
|
|
1189
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1190
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1191
|
-
case "NoEntitlementsAllowedException":
|
|
1192
|
-
case "com.amazonaws.licensemanager#NoEntitlementsAllowedException":
|
|
1193
|
-
throw await de_NoEntitlementsAllowedExceptionRes(parsedOutput, context);
|
|
1194
|
-
case "RateLimitExceededException":
|
|
1195
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1196
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1197
|
-
case "RedirectException":
|
|
1198
|
-
case "com.amazonaws.licensemanager#RedirectException":
|
|
1199
|
-
throw await de_RedirectExceptionRes(parsedOutput, context);
|
|
1200
|
-
case "ResourceNotFoundException":
|
|
1201
|
-
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
1202
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1203
|
-
case "ServerInternalException":
|
|
1204
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1205
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1206
|
-
case "UnsupportedDigitalSignatureMethodException":
|
|
1207
|
-
case "com.amazonaws.licensemanager#UnsupportedDigitalSignatureMethodException":
|
|
1208
|
-
throw await de_UnsupportedDigitalSignatureMethodExceptionRes(parsedOutput, context);
|
|
1209
|
-
case "ValidationException":
|
|
1210
|
-
case "com.amazonaws.licensemanager#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
|
-
}, "de_CheckoutLicenseCommandError");
|
|
1221
1049
|
var de_CreateGrantCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1222
1050
|
if (output.statusCode >= 300) {
|
|
1223
|
-
return
|
|
1051
|
+
return de_CommandError(output, context);
|
|
1224
1052
|
}
|
|
1225
1053
|
const data = await parseBody(output.body, context);
|
|
1226
1054
|
let contents = {};
|
|
@@ -1231,46 +1059,9 @@ var de_CreateGrantCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1231
1059
|
};
|
|
1232
1060
|
return response;
|
|
1233
1061
|
}, "de_CreateGrantCommand");
|
|
1234
|
-
var de_CreateGrantCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1235
|
-
const parsedOutput = {
|
|
1236
|
-
...output,
|
|
1237
|
-
body: await parseErrorBody(output.body, context)
|
|
1238
|
-
};
|
|
1239
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1240
|
-
switch (errorCode) {
|
|
1241
|
-
case "AccessDeniedException":
|
|
1242
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1243
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1244
|
-
case "AuthorizationException":
|
|
1245
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1246
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1247
|
-
case "InvalidParameterValueException":
|
|
1248
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1249
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1250
|
-
case "RateLimitExceededException":
|
|
1251
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1252
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1253
|
-
case "ResourceLimitExceededException":
|
|
1254
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
1255
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1256
|
-
case "ServerInternalException":
|
|
1257
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1258
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1259
|
-
case "ValidationException":
|
|
1260
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1261
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1262
|
-
default:
|
|
1263
|
-
const parsedBody = parsedOutput.body;
|
|
1264
|
-
return throwDefaultError({
|
|
1265
|
-
output,
|
|
1266
|
-
parsedBody,
|
|
1267
|
-
errorCode
|
|
1268
|
-
});
|
|
1269
|
-
}
|
|
1270
|
-
}, "de_CreateGrantCommandError");
|
|
1271
1062
|
var de_CreateGrantVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1272
1063
|
if (output.statusCode >= 300) {
|
|
1273
|
-
return
|
|
1064
|
+
return de_CommandError(output, context);
|
|
1274
1065
|
}
|
|
1275
1066
|
const data = await parseBody(output.body, context);
|
|
1276
1067
|
let contents = {};
|
|
@@ -1281,46 +1072,9 @@ var de_CreateGrantVersionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1281
1072
|
};
|
|
1282
1073
|
return response;
|
|
1283
1074
|
}, "de_CreateGrantVersionCommand");
|
|
1284
|
-
var de_CreateGrantVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1285
|
-
const parsedOutput = {
|
|
1286
|
-
...output,
|
|
1287
|
-
body: await parseErrorBody(output.body, context)
|
|
1288
|
-
};
|
|
1289
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1290
|
-
switch (errorCode) {
|
|
1291
|
-
case "AccessDeniedException":
|
|
1292
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1293
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1294
|
-
case "AuthorizationException":
|
|
1295
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1296
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1297
|
-
case "InvalidParameterValueException":
|
|
1298
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1299
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1300
|
-
case "RateLimitExceededException":
|
|
1301
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1302
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1303
|
-
case "ResourceLimitExceededException":
|
|
1304
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
1305
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1306
|
-
case "ServerInternalException":
|
|
1307
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1308
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1309
|
-
case "ValidationException":
|
|
1310
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1311
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1312
|
-
default:
|
|
1313
|
-
const parsedBody = parsedOutput.body;
|
|
1314
|
-
return throwDefaultError({
|
|
1315
|
-
output,
|
|
1316
|
-
parsedBody,
|
|
1317
|
-
errorCode
|
|
1318
|
-
});
|
|
1319
|
-
}
|
|
1320
|
-
}, "de_CreateGrantVersionCommandError");
|
|
1321
1075
|
var de_CreateLicenseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1322
1076
|
if (output.statusCode >= 300) {
|
|
1323
|
-
return
|
|
1077
|
+
return de_CommandError(output, context);
|
|
1324
1078
|
}
|
|
1325
1079
|
const data = await parseBody(output.body, context);
|
|
1326
1080
|
let contents = {};
|
|
@@ -1331,93 +1085,22 @@ var de_CreateLicenseCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1331
1085
|
};
|
|
1332
1086
|
return response;
|
|
1333
1087
|
}, "de_CreateLicenseCommand");
|
|
1334
|
-
var
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
case "AuthorizationException":
|
|
1345
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1346
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1347
|
-
case "InvalidParameterValueException":
|
|
1348
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1349
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1350
|
-
case "RateLimitExceededException":
|
|
1351
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1352
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1353
|
-
case "RedirectException":
|
|
1354
|
-
case "com.amazonaws.licensemanager#RedirectException":
|
|
1355
|
-
throw await de_RedirectExceptionRes(parsedOutput, context);
|
|
1356
|
-
case "ServerInternalException":
|
|
1357
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1358
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1359
|
-
case "ValidationException":
|
|
1360
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1361
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1362
|
-
default:
|
|
1363
|
-
const parsedBody = parsedOutput.body;
|
|
1364
|
-
return throwDefaultError({
|
|
1365
|
-
output,
|
|
1366
|
-
parsedBody,
|
|
1367
|
-
errorCode
|
|
1368
|
-
});
|
|
1369
|
-
}
|
|
1370
|
-
}, "de_CreateLicenseCommandError");
|
|
1371
|
-
var de_CreateLicenseConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1372
|
-
if (output.statusCode >= 300) {
|
|
1373
|
-
return de_CreateLicenseConfigurationCommandError(output, context);
|
|
1374
|
-
}
|
|
1375
|
-
const data = await parseBody(output.body, context);
|
|
1376
|
-
let contents = {};
|
|
1377
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1378
|
-
const response = {
|
|
1379
|
-
$metadata: deserializeMetadata(output),
|
|
1380
|
-
...contents
|
|
1088
|
+
var de_CreateLicenseConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1089
|
+
if (output.statusCode >= 300) {
|
|
1090
|
+
return de_CommandError(output, context);
|
|
1091
|
+
}
|
|
1092
|
+
const data = await parseBody(output.body, context);
|
|
1093
|
+
let contents = {};
|
|
1094
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1095
|
+
const response = {
|
|
1096
|
+
$metadata: deserializeMetadata(output),
|
|
1097
|
+
...contents
|
|
1381
1098
|
};
|
|
1382
1099
|
return response;
|
|
1383
1100
|
}, "de_CreateLicenseConfigurationCommand");
|
|
1384
|
-
var de_CreateLicenseConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1385
|
-
const parsedOutput = {
|
|
1386
|
-
...output,
|
|
1387
|
-
body: await parseErrorBody(output.body, context)
|
|
1388
|
-
};
|
|
1389
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1390
|
-
switch (errorCode) {
|
|
1391
|
-
case "AccessDeniedException":
|
|
1392
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1393
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1394
|
-
case "AuthorizationException":
|
|
1395
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1396
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1397
|
-
case "InvalidParameterValueException":
|
|
1398
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1399
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1400
|
-
case "RateLimitExceededException":
|
|
1401
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1402
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1403
|
-
case "ResourceLimitExceededException":
|
|
1404
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
1405
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1406
|
-
case "ServerInternalException":
|
|
1407
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1408
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1409
|
-
default:
|
|
1410
|
-
const parsedBody = parsedOutput.body;
|
|
1411
|
-
return throwDefaultError({
|
|
1412
|
-
output,
|
|
1413
|
-
parsedBody,
|
|
1414
|
-
errorCode
|
|
1415
|
-
});
|
|
1416
|
-
}
|
|
1417
|
-
}, "de_CreateLicenseConfigurationCommandError");
|
|
1418
1101
|
var de_CreateLicenseConversionTaskForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1419
1102
|
if (output.statusCode >= 300) {
|
|
1420
|
-
return
|
|
1103
|
+
return de_CommandError(output, context);
|
|
1421
1104
|
}
|
|
1422
1105
|
const data = await parseBody(output.body, context);
|
|
1423
1106
|
let contents = {};
|
|
@@ -1428,43 +1111,9 @@ var de_CreateLicenseConversionTaskForResourceCommand = /* @__PURE__ */ __name(as
|
|
|
1428
1111
|
};
|
|
1429
1112
|
return response;
|
|
1430
1113
|
}, "de_CreateLicenseConversionTaskForResourceCommand");
|
|
1431
|
-
var de_CreateLicenseConversionTaskForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1432
|
-
const parsedOutput = {
|
|
1433
|
-
...output,
|
|
1434
|
-
body: await parseErrorBody(output.body, context)
|
|
1435
|
-
};
|
|
1436
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1437
|
-
switch (errorCode) {
|
|
1438
|
-
case "AccessDeniedException":
|
|
1439
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1440
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1441
|
-
case "AuthorizationException":
|
|
1442
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1443
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1444
|
-
case "InvalidParameterValueException":
|
|
1445
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1446
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1447
|
-
case "RateLimitExceededException":
|
|
1448
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1449
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1450
|
-
case "ServerInternalException":
|
|
1451
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1452
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1453
|
-
case "ValidationException":
|
|
1454
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1455
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1456
|
-
default:
|
|
1457
|
-
const parsedBody = parsedOutput.body;
|
|
1458
|
-
return throwDefaultError({
|
|
1459
|
-
output,
|
|
1460
|
-
parsedBody,
|
|
1461
|
-
errorCode
|
|
1462
|
-
});
|
|
1463
|
-
}
|
|
1464
|
-
}, "de_CreateLicenseConversionTaskForResourceCommandError");
|
|
1465
1114
|
var de_CreateLicenseManagerReportGeneratorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1466
1115
|
if (output.statusCode >= 300) {
|
|
1467
|
-
return
|
|
1116
|
+
return de_CommandError(output, context);
|
|
1468
1117
|
}
|
|
1469
1118
|
const data = await parseBody(output.body, context);
|
|
1470
1119
|
let contents = {};
|
|
@@ -1475,49 +1124,9 @@ var de_CreateLicenseManagerReportGeneratorCommand = /* @__PURE__ */ __name(async
|
|
|
1475
1124
|
};
|
|
1476
1125
|
return response;
|
|
1477
1126
|
}, "de_CreateLicenseManagerReportGeneratorCommand");
|
|
1478
|
-
var de_CreateLicenseManagerReportGeneratorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1479
|
-
const parsedOutput = {
|
|
1480
|
-
...output,
|
|
1481
|
-
body: await parseErrorBody(output.body, context)
|
|
1482
|
-
};
|
|
1483
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1484
|
-
switch (errorCode) {
|
|
1485
|
-
case "AccessDeniedException":
|
|
1486
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1487
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1488
|
-
case "AuthorizationException":
|
|
1489
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1490
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1491
|
-
case "InvalidParameterValueException":
|
|
1492
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1493
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1494
|
-
case "RateLimitExceededException":
|
|
1495
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1496
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1497
|
-
case "ResourceLimitExceededException":
|
|
1498
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
1499
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1500
|
-
case "ResourceNotFoundException":
|
|
1501
|
-
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
1502
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1503
|
-
case "ServerInternalException":
|
|
1504
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1505
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1506
|
-
case "ValidationException":
|
|
1507
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1508
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1509
|
-
default:
|
|
1510
|
-
const parsedBody = parsedOutput.body;
|
|
1511
|
-
return throwDefaultError({
|
|
1512
|
-
output,
|
|
1513
|
-
parsedBody,
|
|
1514
|
-
errorCode
|
|
1515
|
-
});
|
|
1516
|
-
}
|
|
1517
|
-
}, "de_CreateLicenseManagerReportGeneratorCommandError");
|
|
1518
1127
|
var de_CreateLicenseVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1519
1128
|
if (output.statusCode >= 300) {
|
|
1520
|
-
return
|
|
1129
|
+
return de_CommandError(output, context);
|
|
1521
1130
|
}
|
|
1522
1131
|
const data = await parseBody(output.body, context);
|
|
1523
1132
|
let contents = {};
|
|
@@ -1528,49 +1137,9 @@ var de_CreateLicenseVersionCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1528
1137
|
};
|
|
1529
1138
|
return response;
|
|
1530
1139
|
}, "de_CreateLicenseVersionCommand");
|
|
1531
|
-
var de_CreateLicenseVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1532
|
-
const parsedOutput = {
|
|
1533
|
-
...output,
|
|
1534
|
-
body: await parseErrorBody(output.body, context)
|
|
1535
|
-
};
|
|
1536
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1537
|
-
switch (errorCode) {
|
|
1538
|
-
case "AccessDeniedException":
|
|
1539
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1540
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1541
|
-
case "AuthorizationException":
|
|
1542
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1543
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1544
|
-
case "ConflictException":
|
|
1545
|
-
case "com.amazonaws.licensemanager#ConflictException":
|
|
1546
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1547
|
-
case "RateLimitExceededException":
|
|
1548
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1549
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1550
|
-
case "RedirectException":
|
|
1551
|
-
case "com.amazonaws.licensemanager#RedirectException":
|
|
1552
|
-
throw await de_RedirectExceptionRes(parsedOutput, context);
|
|
1553
|
-
case "ResourceNotFoundException":
|
|
1554
|
-
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
1555
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1556
|
-
case "ServerInternalException":
|
|
1557
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1558
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1559
|
-
case "ValidationException":
|
|
1560
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1561
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1562
|
-
default:
|
|
1563
|
-
const parsedBody = parsedOutput.body;
|
|
1564
|
-
return throwDefaultError({
|
|
1565
|
-
output,
|
|
1566
|
-
parsedBody,
|
|
1567
|
-
errorCode
|
|
1568
|
-
});
|
|
1569
|
-
}
|
|
1570
|
-
}, "de_CreateLicenseVersionCommandError");
|
|
1571
1140
|
var de_CreateTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1572
1141
|
if (output.statusCode >= 300) {
|
|
1573
|
-
return
|
|
1142
|
+
return de_CommandError(output, context);
|
|
1574
1143
|
}
|
|
1575
1144
|
const data = await parseBody(output.body, context);
|
|
1576
1145
|
let contents = {};
|
|
@@ -1581,49 +1150,9 @@ var de_CreateTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1581
1150
|
};
|
|
1582
1151
|
return response;
|
|
1583
1152
|
}, "de_CreateTokenCommand");
|
|
1584
|
-
var de_CreateTokenCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1585
|
-
const parsedOutput = {
|
|
1586
|
-
...output,
|
|
1587
|
-
body: await parseErrorBody(output.body, context)
|
|
1588
|
-
};
|
|
1589
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1590
|
-
switch (errorCode) {
|
|
1591
|
-
case "AccessDeniedException":
|
|
1592
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1593
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1594
|
-
case "AuthorizationException":
|
|
1595
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1596
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1597
|
-
case "RateLimitExceededException":
|
|
1598
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1599
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1600
|
-
case "RedirectException":
|
|
1601
|
-
case "com.amazonaws.licensemanager#RedirectException":
|
|
1602
|
-
throw await de_RedirectExceptionRes(parsedOutput, context);
|
|
1603
|
-
case "ResourceLimitExceededException":
|
|
1604
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
1605
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1606
|
-
case "ResourceNotFoundException":
|
|
1607
|
-
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
1608
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1609
|
-
case "ServerInternalException":
|
|
1610
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1611
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1612
|
-
case "ValidationException":
|
|
1613
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1614
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1615
|
-
default:
|
|
1616
|
-
const parsedBody = parsedOutput.body;
|
|
1617
|
-
return throwDefaultError({
|
|
1618
|
-
output,
|
|
1619
|
-
parsedBody,
|
|
1620
|
-
errorCode
|
|
1621
|
-
});
|
|
1622
|
-
}
|
|
1623
|
-
}, "de_CreateTokenCommandError");
|
|
1624
1153
|
var de_DeleteGrantCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1625
1154
|
if (output.statusCode >= 300) {
|
|
1626
|
-
return
|
|
1155
|
+
return de_CommandError(output, context);
|
|
1627
1156
|
}
|
|
1628
1157
|
const data = await parseBody(output.body, context);
|
|
1629
1158
|
let contents = {};
|
|
@@ -1634,46 +1163,9 @@ var de_DeleteGrantCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1634
1163
|
};
|
|
1635
1164
|
return response;
|
|
1636
1165
|
}, "de_DeleteGrantCommand");
|
|
1637
|
-
var de_DeleteGrantCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1638
|
-
const parsedOutput = {
|
|
1639
|
-
...output,
|
|
1640
|
-
body: await parseErrorBody(output.body, context)
|
|
1641
|
-
};
|
|
1642
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1643
|
-
switch (errorCode) {
|
|
1644
|
-
case "AccessDeniedException":
|
|
1645
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1646
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1647
|
-
case "AuthorizationException":
|
|
1648
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1649
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1650
|
-
case "InvalidParameterValueException":
|
|
1651
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1652
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1653
|
-
case "RateLimitExceededException":
|
|
1654
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1655
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1656
|
-
case "ResourceLimitExceededException":
|
|
1657
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
1658
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1659
|
-
case "ServerInternalException":
|
|
1660
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1661
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1662
|
-
case "ValidationException":
|
|
1663
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1664
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1665
|
-
default:
|
|
1666
|
-
const parsedBody = parsedOutput.body;
|
|
1667
|
-
return throwDefaultError({
|
|
1668
|
-
output,
|
|
1669
|
-
parsedBody,
|
|
1670
|
-
errorCode
|
|
1671
|
-
});
|
|
1672
|
-
}
|
|
1673
|
-
}, "de_DeleteGrantCommandError");
|
|
1674
1166
|
var de_DeleteLicenseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1675
1167
|
if (output.statusCode >= 300) {
|
|
1676
|
-
return
|
|
1168
|
+
return de_CommandError(output, context);
|
|
1677
1169
|
}
|
|
1678
1170
|
const data = await parseBody(output.body, context);
|
|
1679
1171
|
let contents = {};
|
|
@@ -1684,93 +1176,22 @@ var de_DeleteLicenseCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1684
1176
|
};
|
|
1685
1177
|
return response;
|
|
1686
1178
|
}, "de_DeleteLicenseCommand");
|
|
1687
|
-
var
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
case "AuthorizationException":
|
|
1698
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1699
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1700
|
-
case "ConflictException":
|
|
1701
|
-
case "com.amazonaws.licensemanager#ConflictException":
|
|
1702
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1703
|
-
case "InvalidParameterValueException":
|
|
1704
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1705
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1706
|
-
case "RateLimitExceededException":
|
|
1707
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1708
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1709
|
-
case "RedirectException":
|
|
1710
|
-
case "com.amazonaws.licensemanager#RedirectException":
|
|
1711
|
-
throw await de_RedirectExceptionRes(parsedOutput, context);
|
|
1712
|
-
case "ServerInternalException":
|
|
1713
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1714
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1715
|
-
case "ValidationException":
|
|
1716
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1717
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1718
|
-
default:
|
|
1719
|
-
const parsedBody = parsedOutput.body;
|
|
1720
|
-
return throwDefaultError({
|
|
1721
|
-
output,
|
|
1722
|
-
parsedBody,
|
|
1723
|
-
errorCode
|
|
1724
|
-
});
|
|
1725
|
-
}
|
|
1726
|
-
}, "de_DeleteLicenseCommandError");
|
|
1727
|
-
var de_DeleteLicenseConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1728
|
-
if (output.statusCode >= 300) {
|
|
1729
|
-
return de_DeleteLicenseConfigurationCommandError(output, context);
|
|
1730
|
-
}
|
|
1731
|
-
const data = await parseBody(output.body, context);
|
|
1732
|
-
let contents = {};
|
|
1733
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1734
|
-
const response = {
|
|
1735
|
-
$metadata: deserializeMetadata(output),
|
|
1736
|
-
...contents
|
|
1179
|
+
var de_DeleteLicenseConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1180
|
+
if (output.statusCode >= 300) {
|
|
1181
|
+
return de_CommandError(output, context);
|
|
1182
|
+
}
|
|
1183
|
+
const data = await parseBody(output.body, context);
|
|
1184
|
+
let contents = {};
|
|
1185
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1186
|
+
const response = {
|
|
1187
|
+
$metadata: deserializeMetadata(output),
|
|
1188
|
+
...contents
|
|
1737
1189
|
};
|
|
1738
1190
|
return response;
|
|
1739
1191
|
}, "de_DeleteLicenseConfigurationCommand");
|
|
1740
|
-
var de_DeleteLicenseConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1741
|
-
const parsedOutput = {
|
|
1742
|
-
...output,
|
|
1743
|
-
body: await parseErrorBody(output.body, context)
|
|
1744
|
-
};
|
|
1745
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1746
|
-
switch (errorCode) {
|
|
1747
|
-
case "AccessDeniedException":
|
|
1748
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1749
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1750
|
-
case "AuthorizationException":
|
|
1751
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1752
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1753
|
-
case "InvalidParameterValueException":
|
|
1754
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1755
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1756
|
-
case "RateLimitExceededException":
|
|
1757
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1758
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1759
|
-
case "ServerInternalException":
|
|
1760
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1761
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1762
|
-
default:
|
|
1763
|
-
const parsedBody = parsedOutput.body;
|
|
1764
|
-
return throwDefaultError({
|
|
1765
|
-
output,
|
|
1766
|
-
parsedBody,
|
|
1767
|
-
errorCode
|
|
1768
|
-
});
|
|
1769
|
-
}
|
|
1770
|
-
}, "de_DeleteLicenseConfigurationCommandError");
|
|
1771
1192
|
var de_DeleteLicenseManagerReportGeneratorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1772
1193
|
if (output.statusCode >= 300) {
|
|
1773
|
-
return
|
|
1194
|
+
return de_CommandError(output, context);
|
|
1774
1195
|
}
|
|
1775
1196
|
const data = await parseBody(output.body, context);
|
|
1776
1197
|
let contents = {};
|
|
@@ -1781,49 +1202,9 @@ var de_DeleteLicenseManagerReportGeneratorCommand = /* @__PURE__ */ __name(async
|
|
|
1781
1202
|
};
|
|
1782
1203
|
return response;
|
|
1783
1204
|
}, "de_DeleteLicenseManagerReportGeneratorCommand");
|
|
1784
|
-
var de_DeleteLicenseManagerReportGeneratorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1785
|
-
const parsedOutput = {
|
|
1786
|
-
...output,
|
|
1787
|
-
body: await parseErrorBody(output.body, context)
|
|
1788
|
-
};
|
|
1789
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1790
|
-
switch (errorCode) {
|
|
1791
|
-
case "AccessDeniedException":
|
|
1792
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1793
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1794
|
-
case "AuthorizationException":
|
|
1795
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1796
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1797
|
-
case "InvalidParameterValueException":
|
|
1798
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1799
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1800
|
-
case "RateLimitExceededException":
|
|
1801
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1802
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1803
|
-
case "ResourceLimitExceededException":
|
|
1804
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
1805
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1806
|
-
case "ResourceNotFoundException":
|
|
1807
|
-
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
1808
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1809
|
-
case "ServerInternalException":
|
|
1810
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1811
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1812
|
-
case "ValidationException":
|
|
1813
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1814
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1815
|
-
default:
|
|
1816
|
-
const parsedBody = parsedOutput.body;
|
|
1817
|
-
return throwDefaultError({
|
|
1818
|
-
output,
|
|
1819
|
-
parsedBody,
|
|
1820
|
-
errorCode
|
|
1821
|
-
});
|
|
1822
|
-
}
|
|
1823
|
-
}, "de_DeleteLicenseManagerReportGeneratorCommandError");
|
|
1824
1205
|
var de_DeleteTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1825
1206
|
if (output.statusCode >= 300) {
|
|
1826
|
-
return
|
|
1207
|
+
return de_CommandError(output, context);
|
|
1827
1208
|
}
|
|
1828
1209
|
const data = await parseBody(output.body, context);
|
|
1829
1210
|
let contents = {};
|
|
@@ -1834,46 +1215,9 @@ var de_DeleteTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1834
1215
|
};
|
|
1835
1216
|
return response;
|
|
1836
1217
|
}, "de_DeleteTokenCommand");
|
|
1837
|
-
var de_DeleteTokenCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1838
|
-
const parsedOutput = {
|
|
1839
|
-
...output,
|
|
1840
|
-
body: await parseErrorBody(output.body, context)
|
|
1841
|
-
};
|
|
1842
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1843
|
-
switch (errorCode) {
|
|
1844
|
-
case "AccessDeniedException":
|
|
1845
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1846
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1847
|
-
case "AuthorizationException":
|
|
1848
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1849
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1850
|
-
case "RateLimitExceededException":
|
|
1851
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1852
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1853
|
-
case "RedirectException":
|
|
1854
|
-
case "com.amazonaws.licensemanager#RedirectException":
|
|
1855
|
-
throw await de_RedirectExceptionRes(parsedOutput, context);
|
|
1856
|
-
case "ResourceNotFoundException":
|
|
1857
|
-
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
1858
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1859
|
-
case "ServerInternalException":
|
|
1860
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1861
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1862
|
-
case "ValidationException":
|
|
1863
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1864
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1865
|
-
default:
|
|
1866
|
-
const parsedBody = parsedOutput.body;
|
|
1867
|
-
return throwDefaultError({
|
|
1868
|
-
output,
|
|
1869
|
-
parsedBody,
|
|
1870
|
-
errorCode
|
|
1871
|
-
});
|
|
1872
|
-
}
|
|
1873
|
-
}, "de_DeleteTokenCommandError");
|
|
1874
1218
|
var de_ExtendLicenseConsumptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1875
1219
|
if (output.statusCode >= 300) {
|
|
1876
|
-
return
|
|
1220
|
+
return de_CommandError(output, context);
|
|
1877
1221
|
}
|
|
1878
1222
|
const data = await parseBody(output.body, context);
|
|
1879
1223
|
let contents = {};
|
|
@@ -1884,46 +1228,9 @@ var de_ExtendLicenseConsumptionCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1884
1228
|
};
|
|
1885
1229
|
return response;
|
|
1886
1230
|
}, "de_ExtendLicenseConsumptionCommand");
|
|
1887
|
-
var de_ExtendLicenseConsumptionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1888
|
-
const parsedOutput = {
|
|
1889
|
-
...output,
|
|
1890
|
-
body: await parseErrorBody(output.body, context)
|
|
1891
|
-
};
|
|
1892
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1893
|
-
switch (errorCode) {
|
|
1894
|
-
case "AccessDeniedException":
|
|
1895
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1896
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1897
|
-
case "AuthorizationException":
|
|
1898
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1899
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1900
|
-
case "InvalidParameterValueException":
|
|
1901
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1902
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1903
|
-
case "RateLimitExceededException":
|
|
1904
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1905
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1906
|
-
case "ResourceNotFoundException":
|
|
1907
|
-
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
1908
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1909
|
-
case "ServerInternalException":
|
|
1910
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1911
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1912
|
-
case "ValidationException":
|
|
1913
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1914
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1915
|
-
default:
|
|
1916
|
-
const parsedBody = parsedOutput.body;
|
|
1917
|
-
return throwDefaultError({
|
|
1918
|
-
output,
|
|
1919
|
-
parsedBody,
|
|
1920
|
-
errorCode
|
|
1921
|
-
});
|
|
1922
|
-
}
|
|
1923
|
-
}, "de_ExtendLicenseConsumptionCommandError");
|
|
1924
1231
|
var de_GetAccessTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1925
1232
|
if (output.statusCode >= 300) {
|
|
1926
|
-
return
|
|
1233
|
+
return de_CommandError(output, context);
|
|
1927
1234
|
}
|
|
1928
1235
|
const data = await parseBody(output.body, context);
|
|
1929
1236
|
let contents = {};
|
|
@@ -1934,40 +1241,9 @@ var de_GetAccessTokenCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1934
1241
|
};
|
|
1935
1242
|
return response;
|
|
1936
1243
|
}, "de_GetAccessTokenCommand");
|
|
1937
|
-
var de_GetAccessTokenCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1938
|
-
const parsedOutput = {
|
|
1939
|
-
...output,
|
|
1940
|
-
body: await parseErrorBody(output.body, context)
|
|
1941
|
-
};
|
|
1942
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1943
|
-
switch (errorCode) {
|
|
1944
|
-
case "AccessDeniedException":
|
|
1945
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1946
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1947
|
-
case "AuthorizationException":
|
|
1948
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1949
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1950
|
-
case "RateLimitExceededException":
|
|
1951
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1952
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1953
|
-
case "ServerInternalException":
|
|
1954
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1955
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1956
|
-
case "ValidationException":
|
|
1957
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1958
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1959
|
-
default:
|
|
1960
|
-
const parsedBody = parsedOutput.body;
|
|
1961
|
-
return throwDefaultError({
|
|
1962
|
-
output,
|
|
1963
|
-
parsedBody,
|
|
1964
|
-
errorCode
|
|
1965
|
-
});
|
|
1966
|
-
}
|
|
1967
|
-
}, "de_GetAccessTokenCommandError");
|
|
1968
1244
|
var de_GetGrantCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1969
1245
|
if (output.statusCode >= 300) {
|
|
1970
|
-
return
|
|
1246
|
+
return de_CommandError(output, context);
|
|
1971
1247
|
}
|
|
1972
1248
|
const data = await parseBody(output.body, context);
|
|
1973
1249
|
let contents = {};
|
|
@@ -1978,46 +1254,9 @@ var de_GetGrantCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1978
1254
|
};
|
|
1979
1255
|
return response;
|
|
1980
1256
|
}, "de_GetGrantCommand");
|
|
1981
|
-
var de_GetGrantCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1982
|
-
const parsedOutput = {
|
|
1983
|
-
...output,
|
|
1984
|
-
body: await parseErrorBody(output.body, context)
|
|
1985
|
-
};
|
|
1986
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1987
|
-
switch (errorCode) {
|
|
1988
|
-
case "AccessDeniedException":
|
|
1989
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1990
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1991
|
-
case "AuthorizationException":
|
|
1992
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1993
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1994
|
-
case "InvalidParameterValueException":
|
|
1995
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1996
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1997
|
-
case "RateLimitExceededException":
|
|
1998
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1999
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2000
|
-
case "ResourceLimitExceededException":
|
|
2001
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
2002
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2003
|
-
case "ServerInternalException":
|
|
2004
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2005
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2006
|
-
case "ValidationException":
|
|
2007
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
2008
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2009
|
-
default:
|
|
2010
|
-
const parsedBody = parsedOutput.body;
|
|
2011
|
-
return throwDefaultError({
|
|
2012
|
-
output,
|
|
2013
|
-
parsedBody,
|
|
2014
|
-
errorCode
|
|
2015
|
-
});
|
|
2016
|
-
}
|
|
2017
|
-
}, "de_GetGrantCommandError");
|
|
2018
1257
|
var de_GetLicenseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2019
1258
|
if (output.statusCode >= 300) {
|
|
2020
|
-
return
|
|
1259
|
+
return de_CommandError(output, context);
|
|
2021
1260
|
}
|
|
2022
1261
|
const data = await parseBody(output.body, context);
|
|
2023
1262
|
let contents = {};
|
|
@@ -2028,43 +1267,9 @@ var de_GetLicenseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2028
1267
|
};
|
|
2029
1268
|
return response;
|
|
2030
1269
|
}, "de_GetLicenseCommand");
|
|
2031
|
-
var de_GetLicenseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2032
|
-
const parsedOutput = {
|
|
2033
|
-
...output,
|
|
2034
|
-
body: await parseErrorBody(output.body, context)
|
|
2035
|
-
};
|
|
2036
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2037
|
-
switch (errorCode) {
|
|
2038
|
-
case "AccessDeniedException":
|
|
2039
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2040
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2041
|
-
case "AuthorizationException":
|
|
2042
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2043
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2044
|
-
case "InvalidParameterValueException":
|
|
2045
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2046
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2047
|
-
case "RateLimitExceededException":
|
|
2048
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2049
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2050
|
-
case "ServerInternalException":
|
|
2051
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2052
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2053
|
-
case "ValidationException":
|
|
2054
|
-
case "com.amazonaws.licensemanager#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
|
-
});
|
|
2063
|
-
}
|
|
2064
|
-
}, "de_GetLicenseCommandError");
|
|
2065
1270
|
var de_GetLicenseConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2066
1271
|
if (output.statusCode >= 300) {
|
|
2067
|
-
return
|
|
1272
|
+
return de_CommandError(output, context);
|
|
2068
1273
|
}
|
|
2069
1274
|
const data = await parseBody(output.body, context);
|
|
2070
1275
|
let contents = {};
|
|
@@ -2075,40 +1280,9 @@ var de_GetLicenseConfigurationCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2075
1280
|
};
|
|
2076
1281
|
return response;
|
|
2077
1282
|
}, "de_GetLicenseConfigurationCommand");
|
|
2078
|
-
var de_GetLicenseConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2079
|
-
const parsedOutput = {
|
|
2080
|
-
...output,
|
|
2081
|
-
body: await parseErrorBody(output.body, context)
|
|
2082
|
-
};
|
|
2083
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2084
|
-
switch (errorCode) {
|
|
2085
|
-
case "AccessDeniedException":
|
|
2086
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2087
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2088
|
-
case "AuthorizationException":
|
|
2089
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2090
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2091
|
-
case "InvalidParameterValueException":
|
|
2092
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2093
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2094
|
-
case "RateLimitExceededException":
|
|
2095
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2096
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2097
|
-
case "ServerInternalException":
|
|
2098
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2099
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2100
|
-
default:
|
|
2101
|
-
const parsedBody = parsedOutput.body;
|
|
2102
|
-
return throwDefaultError({
|
|
2103
|
-
output,
|
|
2104
|
-
parsedBody,
|
|
2105
|
-
errorCode
|
|
2106
|
-
});
|
|
2107
|
-
}
|
|
2108
|
-
}, "de_GetLicenseConfigurationCommandError");
|
|
2109
1283
|
var de_GetLicenseConversionTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2110
1284
|
if (output.statusCode >= 300) {
|
|
2111
|
-
return
|
|
1285
|
+
return de_CommandError(output, context);
|
|
2112
1286
|
}
|
|
2113
1287
|
const data = await parseBody(output.body, context);
|
|
2114
1288
|
let contents = {};
|
|
@@ -2119,40 +1293,9 @@ var de_GetLicenseConversionTaskCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2119
1293
|
};
|
|
2120
1294
|
return response;
|
|
2121
1295
|
}, "de_GetLicenseConversionTaskCommand");
|
|
2122
|
-
var de_GetLicenseConversionTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2123
|
-
const parsedOutput = {
|
|
2124
|
-
...output,
|
|
2125
|
-
body: await parseErrorBody(output.body, context)
|
|
2126
|
-
};
|
|
2127
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2128
|
-
switch (errorCode) {
|
|
2129
|
-
case "AccessDeniedException":
|
|
2130
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2131
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2132
|
-
case "AuthorizationException":
|
|
2133
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2134
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2135
|
-
case "InvalidParameterValueException":
|
|
2136
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2137
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2138
|
-
case "RateLimitExceededException":
|
|
2139
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2140
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2141
|
-
case "ServerInternalException":
|
|
2142
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2143
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2144
|
-
default:
|
|
2145
|
-
const parsedBody = parsedOutput.body;
|
|
2146
|
-
return throwDefaultError({
|
|
2147
|
-
output,
|
|
2148
|
-
parsedBody,
|
|
2149
|
-
errorCode
|
|
2150
|
-
});
|
|
2151
|
-
}
|
|
2152
|
-
}, "de_GetLicenseConversionTaskCommandError");
|
|
2153
1296
|
var de_GetLicenseManagerReportGeneratorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2154
1297
|
if (output.statusCode >= 300) {
|
|
2155
|
-
return
|
|
1298
|
+
return de_CommandError(output, context);
|
|
2156
1299
|
}
|
|
2157
1300
|
const data = await parseBody(output.body, context);
|
|
2158
1301
|
let contents = {};
|
|
@@ -2163,49 +1306,9 @@ var de_GetLicenseManagerReportGeneratorCommand = /* @__PURE__ */ __name(async (o
|
|
|
2163
1306
|
};
|
|
2164
1307
|
return response;
|
|
2165
1308
|
}, "de_GetLicenseManagerReportGeneratorCommand");
|
|
2166
|
-
var de_GetLicenseManagerReportGeneratorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2167
|
-
const parsedOutput = {
|
|
2168
|
-
...output,
|
|
2169
|
-
body: await parseErrorBody(output.body, context)
|
|
2170
|
-
};
|
|
2171
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2172
|
-
switch (errorCode) {
|
|
2173
|
-
case "AccessDeniedException":
|
|
2174
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2175
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2176
|
-
case "AuthorizationException":
|
|
2177
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2178
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2179
|
-
case "InvalidParameterValueException":
|
|
2180
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2181
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2182
|
-
case "RateLimitExceededException":
|
|
2183
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2184
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2185
|
-
case "ResourceLimitExceededException":
|
|
2186
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
2187
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2188
|
-
case "ResourceNotFoundException":
|
|
2189
|
-
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
2190
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2191
|
-
case "ServerInternalException":
|
|
2192
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2193
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2194
|
-
case "ValidationException":
|
|
2195
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
2196
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2197
|
-
default:
|
|
2198
|
-
const parsedBody = parsedOutput.body;
|
|
2199
|
-
return throwDefaultError({
|
|
2200
|
-
output,
|
|
2201
|
-
parsedBody,
|
|
2202
|
-
errorCode
|
|
2203
|
-
});
|
|
2204
|
-
}
|
|
2205
|
-
}, "de_GetLicenseManagerReportGeneratorCommandError");
|
|
2206
1309
|
var de_GetLicenseUsageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2207
1310
|
if (output.statusCode >= 300) {
|
|
2208
|
-
return
|
|
1311
|
+
return de_CommandError(output, context);
|
|
2209
1312
|
}
|
|
2210
1313
|
const data = await parseBody(output.body, context);
|
|
2211
1314
|
let contents = {};
|
|
@@ -2216,43 +1319,9 @@ var de_GetLicenseUsageCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2216
1319
|
};
|
|
2217
1320
|
return response;
|
|
2218
1321
|
}, "de_GetLicenseUsageCommand");
|
|
2219
|
-
var de_GetLicenseUsageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2220
|
-
const parsedOutput = {
|
|
2221
|
-
...output,
|
|
2222
|
-
body: await parseErrorBody(output.body, context)
|
|
2223
|
-
};
|
|
2224
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2225
|
-
switch (errorCode) {
|
|
2226
|
-
case "AccessDeniedException":
|
|
2227
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2228
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2229
|
-
case "AuthorizationException":
|
|
2230
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2231
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2232
|
-
case "InvalidParameterValueException":
|
|
2233
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2234
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2235
|
-
case "RateLimitExceededException":
|
|
2236
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2237
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2238
|
-
case "ServerInternalException":
|
|
2239
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2240
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2241
|
-
case "ValidationException":
|
|
2242
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
2243
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2244
|
-
default:
|
|
2245
|
-
const parsedBody = parsedOutput.body;
|
|
2246
|
-
return throwDefaultError({
|
|
2247
|
-
output,
|
|
2248
|
-
parsedBody,
|
|
2249
|
-
errorCode
|
|
2250
|
-
});
|
|
2251
|
-
}
|
|
2252
|
-
}, "de_GetLicenseUsageCommandError");
|
|
2253
1322
|
var de_GetServiceSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2254
1323
|
if (output.statusCode >= 300) {
|
|
2255
|
-
return
|
|
1324
|
+
return de_CommandError(output, context);
|
|
2256
1325
|
}
|
|
2257
1326
|
const data = await parseBody(output.body, context);
|
|
2258
1327
|
let contents = {};
|
|
@@ -2263,37 +1332,9 @@ var de_GetServiceSettingsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2263
1332
|
};
|
|
2264
1333
|
return response;
|
|
2265
1334
|
}, "de_GetServiceSettingsCommand");
|
|
2266
|
-
var de_GetServiceSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2267
|
-
const parsedOutput = {
|
|
2268
|
-
...output,
|
|
2269
|
-
body: await parseErrorBody(output.body, context)
|
|
2270
|
-
};
|
|
2271
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2272
|
-
switch (errorCode) {
|
|
2273
|
-
case "AccessDeniedException":
|
|
2274
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2275
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2276
|
-
case "AuthorizationException":
|
|
2277
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2278
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2279
|
-
case "RateLimitExceededException":
|
|
2280
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2281
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2282
|
-
case "ServerInternalException":
|
|
2283
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2284
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2285
|
-
default:
|
|
2286
|
-
const parsedBody = parsedOutput.body;
|
|
2287
|
-
return throwDefaultError({
|
|
2288
|
-
output,
|
|
2289
|
-
parsedBody,
|
|
2290
|
-
errorCode
|
|
2291
|
-
});
|
|
2292
|
-
}
|
|
2293
|
-
}, "de_GetServiceSettingsCommandError");
|
|
2294
1335
|
var de_ListAssociationsForLicenseConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2295
1336
|
if (output.statusCode >= 300) {
|
|
2296
|
-
return
|
|
1337
|
+
return de_CommandError(output, context);
|
|
2297
1338
|
}
|
|
2298
1339
|
const data = await parseBody(output.body, context);
|
|
2299
1340
|
let contents = {};
|
|
@@ -2304,43 +1345,9 @@ var de_ListAssociationsForLicenseConfigurationCommand = /* @__PURE__ */ __name(a
|
|
|
2304
1345
|
};
|
|
2305
1346
|
return response;
|
|
2306
1347
|
}, "de_ListAssociationsForLicenseConfigurationCommand");
|
|
2307
|
-
var de_ListAssociationsForLicenseConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2308
|
-
const parsedOutput = {
|
|
2309
|
-
...output,
|
|
2310
|
-
body: await parseErrorBody(output.body, context)
|
|
2311
|
-
};
|
|
2312
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2313
|
-
switch (errorCode) {
|
|
2314
|
-
case "AccessDeniedException":
|
|
2315
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2316
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2317
|
-
case "AuthorizationException":
|
|
2318
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2319
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2320
|
-
case "FilterLimitExceededException":
|
|
2321
|
-
case "com.amazonaws.licensemanager#FilterLimitExceededException":
|
|
2322
|
-
throw await de_FilterLimitExceededExceptionRes(parsedOutput, context);
|
|
2323
|
-
case "InvalidParameterValueException":
|
|
2324
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2325
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2326
|
-
case "RateLimitExceededException":
|
|
2327
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2328
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2329
|
-
case "ServerInternalException":
|
|
2330
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2331
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2332
|
-
default:
|
|
2333
|
-
const parsedBody = parsedOutput.body;
|
|
2334
|
-
return throwDefaultError({
|
|
2335
|
-
output,
|
|
2336
|
-
parsedBody,
|
|
2337
|
-
errorCode
|
|
2338
|
-
});
|
|
2339
|
-
}
|
|
2340
|
-
}, "de_ListAssociationsForLicenseConfigurationCommandError");
|
|
2341
1348
|
var de_ListDistributedGrantsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2342
1349
|
if (output.statusCode >= 300) {
|
|
2343
|
-
return
|
|
1350
|
+
return de_CommandError(output, context);
|
|
2344
1351
|
}
|
|
2345
1352
|
const data = await parseBody(output.body, context);
|
|
2346
1353
|
let contents = {};
|
|
@@ -2351,46 +1358,9 @@ var de_ListDistributedGrantsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2351
1358
|
};
|
|
2352
1359
|
return response;
|
|
2353
1360
|
}, "de_ListDistributedGrantsCommand");
|
|
2354
|
-
var de_ListDistributedGrantsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2355
|
-
const parsedOutput = {
|
|
2356
|
-
...output,
|
|
2357
|
-
body: await parseErrorBody(output.body, context)
|
|
2358
|
-
};
|
|
2359
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2360
|
-
switch (errorCode) {
|
|
2361
|
-
case "AccessDeniedException":
|
|
2362
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2363
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2364
|
-
case "AuthorizationException":
|
|
2365
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2366
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2367
|
-
case "InvalidParameterValueException":
|
|
2368
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2369
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2370
|
-
case "RateLimitExceededException":
|
|
2371
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2372
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2373
|
-
case "ResourceLimitExceededException":
|
|
2374
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
2375
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2376
|
-
case "ServerInternalException":
|
|
2377
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2378
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2379
|
-
case "ValidationException":
|
|
2380
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
2381
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2382
|
-
default:
|
|
2383
|
-
const parsedBody = parsedOutput.body;
|
|
2384
|
-
return throwDefaultError({
|
|
2385
|
-
output,
|
|
2386
|
-
parsedBody,
|
|
2387
|
-
errorCode
|
|
2388
|
-
});
|
|
2389
|
-
}
|
|
2390
|
-
}, "de_ListDistributedGrantsCommandError");
|
|
2391
1361
|
var de_ListFailuresForLicenseConfigurationOperationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2392
1362
|
if (output.statusCode >= 300) {
|
|
2393
|
-
return
|
|
1363
|
+
return de_CommandError(output, context);
|
|
2394
1364
|
}
|
|
2395
1365
|
const data = await parseBody(output.body, context);
|
|
2396
1366
|
let contents = {};
|
|
@@ -2401,87 +1371,22 @@ var de_ListFailuresForLicenseConfigurationOperationsCommand = /* @__PURE__ */ __
|
|
|
2401
1371
|
};
|
|
2402
1372
|
return response;
|
|
2403
1373
|
}, "de_ListFailuresForLicenseConfigurationOperationsCommand");
|
|
2404
|
-
var
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
case "AuthorizationException":
|
|
2415
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2416
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2417
|
-
case "InvalidParameterValueException":
|
|
2418
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2419
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2420
|
-
case "RateLimitExceededException":
|
|
2421
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2422
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2423
|
-
case "ServerInternalException":
|
|
2424
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2425
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2426
|
-
default:
|
|
2427
|
-
const parsedBody = parsedOutput.body;
|
|
2428
|
-
return throwDefaultError({
|
|
2429
|
-
output,
|
|
2430
|
-
parsedBody,
|
|
2431
|
-
errorCode
|
|
2432
|
-
});
|
|
2433
|
-
}
|
|
2434
|
-
}, "de_ListFailuresForLicenseConfigurationOperationsCommandError");
|
|
2435
|
-
var de_ListLicenseConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2436
|
-
if (output.statusCode >= 300) {
|
|
2437
|
-
return de_ListLicenseConfigurationsCommandError(output, context);
|
|
2438
|
-
}
|
|
2439
|
-
const data = await parseBody(output.body, context);
|
|
2440
|
-
let contents = {};
|
|
2441
|
-
contents = de_ListLicenseConfigurationsResponse(data, context);
|
|
2442
|
-
const response = {
|
|
2443
|
-
$metadata: deserializeMetadata(output),
|
|
2444
|
-
...contents
|
|
1374
|
+
var de_ListLicenseConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1375
|
+
if (output.statusCode >= 300) {
|
|
1376
|
+
return de_CommandError(output, context);
|
|
1377
|
+
}
|
|
1378
|
+
const data = await parseBody(output.body, context);
|
|
1379
|
+
let contents = {};
|
|
1380
|
+
contents = de_ListLicenseConfigurationsResponse(data, context);
|
|
1381
|
+
const response = {
|
|
1382
|
+
$metadata: deserializeMetadata(output),
|
|
1383
|
+
...contents
|
|
2445
1384
|
};
|
|
2446
1385
|
return response;
|
|
2447
1386
|
}, "de_ListLicenseConfigurationsCommand");
|
|
2448
|
-
var de_ListLicenseConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2449
|
-
const parsedOutput = {
|
|
2450
|
-
...output,
|
|
2451
|
-
body: await parseErrorBody(output.body, context)
|
|
2452
|
-
};
|
|
2453
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2454
|
-
switch (errorCode) {
|
|
2455
|
-
case "AccessDeniedException":
|
|
2456
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2457
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2458
|
-
case "AuthorizationException":
|
|
2459
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2460
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2461
|
-
case "FilterLimitExceededException":
|
|
2462
|
-
case "com.amazonaws.licensemanager#FilterLimitExceededException":
|
|
2463
|
-
throw await de_FilterLimitExceededExceptionRes(parsedOutput, context);
|
|
2464
|
-
case "InvalidParameterValueException":
|
|
2465
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2466
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2467
|
-
case "RateLimitExceededException":
|
|
2468
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2469
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2470
|
-
case "ServerInternalException":
|
|
2471
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2472
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2473
|
-
default:
|
|
2474
|
-
const parsedBody = parsedOutput.body;
|
|
2475
|
-
return throwDefaultError({
|
|
2476
|
-
output,
|
|
2477
|
-
parsedBody,
|
|
2478
|
-
errorCode
|
|
2479
|
-
});
|
|
2480
|
-
}
|
|
2481
|
-
}, "de_ListLicenseConfigurationsCommandError");
|
|
2482
1387
|
var de_ListLicenseConversionTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2483
1388
|
if (output.statusCode >= 300) {
|
|
2484
|
-
return
|
|
1389
|
+
return de_CommandError(output, context);
|
|
2485
1390
|
}
|
|
2486
1391
|
const data = await parseBody(output.body, context);
|
|
2487
1392
|
let contents = {};
|
|
@@ -2492,40 +1397,9 @@ var de_ListLicenseConversionTasksCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2492
1397
|
};
|
|
2493
1398
|
return response;
|
|
2494
1399
|
}, "de_ListLicenseConversionTasksCommand");
|
|
2495
|
-
var de_ListLicenseConversionTasksCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2496
|
-
const parsedOutput = {
|
|
2497
|
-
...output,
|
|
2498
|
-
body: await parseErrorBody(output.body, context)
|
|
2499
|
-
};
|
|
2500
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2501
|
-
switch (errorCode) {
|
|
2502
|
-
case "AccessDeniedException":
|
|
2503
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2504
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2505
|
-
case "AuthorizationException":
|
|
2506
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2507
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2508
|
-
case "InvalidParameterValueException":
|
|
2509
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2510
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2511
|
-
case "RateLimitExceededException":
|
|
2512
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2513
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2514
|
-
case "ServerInternalException":
|
|
2515
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2516
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2517
|
-
default:
|
|
2518
|
-
const parsedBody = parsedOutput.body;
|
|
2519
|
-
return throwDefaultError({
|
|
2520
|
-
output,
|
|
2521
|
-
parsedBody,
|
|
2522
|
-
errorCode
|
|
2523
|
-
});
|
|
2524
|
-
}
|
|
2525
|
-
}, "de_ListLicenseConversionTasksCommandError");
|
|
2526
1400
|
var de_ListLicenseManagerReportGeneratorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2527
1401
|
if (output.statusCode >= 300) {
|
|
2528
|
-
return
|
|
1402
|
+
return de_CommandError(output, context);
|
|
2529
1403
|
}
|
|
2530
1404
|
const data = await parseBody(output.body, context);
|
|
2531
1405
|
let contents = {};
|
|
@@ -2536,49 +1410,9 @@ var de_ListLicenseManagerReportGeneratorsCommand = /* @__PURE__ */ __name(async
|
|
|
2536
1410
|
};
|
|
2537
1411
|
return response;
|
|
2538
1412
|
}, "de_ListLicenseManagerReportGeneratorsCommand");
|
|
2539
|
-
var de_ListLicenseManagerReportGeneratorsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2540
|
-
const parsedOutput = {
|
|
2541
|
-
...output,
|
|
2542
|
-
body: await parseErrorBody(output.body, context)
|
|
2543
|
-
};
|
|
2544
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2545
|
-
switch (errorCode) {
|
|
2546
|
-
case "AccessDeniedException":
|
|
2547
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2548
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2549
|
-
case "AuthorizationException":
|
|
2550
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2551
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2552
|
-
case "InvalidParameterValueException":
|
|
2553
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2554
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2555
|
-
case "RateLimitExceededException":
|
|
2556
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2557
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2558
|
-
case "ResourceLimitExceededException":
|
|
2559
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
2560
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2561
|
-
case "ResourceNotFoundException":
|
|
2562
|
-
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
2563
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2564
|
-
case "ServerInternalException":
|
|
2565
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2566
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2567
|
-
case "ValidationException":
|
|
2568
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
2569
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2570
|
-
default:
|
|
2571
|
-
const parsedBody = parsedOutput.body;
|
|
2572
|
-
return throwDefaultError({
|
|
2573
|
-
output,
|
|
2574
|
-
parsedBody,
|
|
2575
|
-
errorCode
|
|
2576
|
-
});
|
|
2577
|
-
}
|
|
2578
|
-
}, "de_ListLicenseManagerReportGeneratorsCommandError");
|
|
2579
1413
|
var de_ListLicensesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2580
1414
|
if (output.statusCode >= 300) {
|
|
2581
|
-
return
|
|
1415
|
+
return de_CommandError(output, context);
|
|
2582
1416
|
}
|
|
2583
1417
|
const data = await parseBody(output.body, context);
|
|
2584
1418
|
let contents = {};
|
|
@@ -2589,43 +1423,9 @@ var de_ListLicensesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2589
1423
|
};
|
|
2590
1424
|
return response;
|
|
2591
1425
|
}, "de_ListLicensesCommand");
|
|
2592
|
-
var de_ListLicensesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2593
|
-
const parsedOutput = {
|
|
2594
|
-
...output,
|
|
2595
|
-
body: await parseErrorBody(output.body, context)
|
|
2596
|
-
};
|
|
2597
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2598
|
-
switch (errorCode) {
|
|
2599
|
-
case "AccessDeniedException":
|
|
2600
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2601
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2602
|
-
case "AuthorizationException":
|
|
2603
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2604
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2605
|
-
case "InvalidParameterValueException":
|
|
2606
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2607
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2608
|
-
case "RateLimitExceededException":
|
|
2609
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2610
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2611
|
-
case "ServerInternalException":
|
|
2612
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2613
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2614
|
-
case "ValidationException":
|
|
2615
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
2616
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2617
|
-
default:
|
|
2618
|
-
const parsedBody = parsedOutput.body;
|
|
2619
|
-
return throwDefaultError({
|
|
2620
|
-
output,
|
|
2621
|
-
parsedBody,
|
|
2622
|
-
errorCode
|
|
2623
|
-
});
|
|
2624
|
-
}
|
|
2625
|
-
}, "de_ListLicensesCommandError");
|
|
2626
1426
|
var de_ListLicenseSpecificationsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2627
1427
|
if (output.statusCode >= 300) {
|
|
2628
|
-
return
|
|
1428
|
+
return de_CommandError(output, context);
|
|
2629
1429
|
}
|
|
2630
1430
|
const data = await parseBody(output.body, context);
|
|
2631
1431
|
let contents = {};
|
|
@@ -2636,40 +1436,9 @@ var de_ListLicenseSpecificationsForResourceCommand = /* @__PURE__ */ __name(asyn
|
|
|
2636
1436
|
};
|
|
2637
1437
|
return response;
|
|
2638
1438
|
}, "de_ListLicenseSpecificationsForResourceCommand");
|
|
2639
|
-
var de_ListLicenseSpecificationsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2640
|
-
const parsedOutput = {
|
|
2641
|
-
...output,
|
|
2642
|
-
body: await parseErrorBody(output.body, context)
|
|
2643
|
-
};
|
|
2644
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2645
|
-
switch (errorCode) {
|
|
2646
|
-
case "AccessDeniedException":
|
|
2647
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2648
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2649
|
-
case "AuthorizationException":
|
|
2650
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2651
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2652
|
-
case "InvalidParameterValueException":
|
|
2653
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2654
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2655
|
-
case "RateLimitExceededException":
|
|
2656
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2657
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2658
|
-
case "ServerInternalException":
|
|
2659
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2660
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2661
|
-
default:
|
|
2662
|
-
const parsedBody = parsedOutput.body;
|
|
2663
|
-
return throwDefaultError({
|
|
2664
|
-
output,
|
|
2665
|
-
parsedBody,
|
|
2666
|
-
errorCode
|
|
2667
|
-
});
|
|
2668
|
-
}
|
|
2669
|
-
}, "de_ListLicenseSpecificationsForResourceCommandError");
|
|
2670
1439
|
var de_ListLicenseVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2671
1440
|
if (output.statusCode >= 300) {
|
|
2672
|
-
return
|
|
1441
|
+
return de_CommandError(output, context);
|
|
2673
1442
|
}
|
|
2674
1443
|
const data = await parseBody(output.body, context);
|
|
2675
1444
|
let contents = {};
|
|
@@ -2680,40 +1449,9 @@ var de_ListLicenseVersionsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2680
1449
|
};
|
|
2681
1450
|
return response;
|
|
2682
1451
|
}, "de_ListLicenseVersionsCommand");
|
|
2683
|
-
var de_ListLicenseVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2684
|
-
const parsedOutput = {
|
|
2685
|
-
...output,
|
|
2686
|
-
body: await parseErrorBody(output.body, context)
|
|
2687
|
-
};
|
|
2688
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2689
|
-
switch (errorCode) {
|
|
2690
|
-
case "AccessDeniedException":
|
|
2691
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2692
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2693
|
-
case "AuthorizationException":
|
|
2694
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2695
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2696
|
-
case "InvalidParameterValueException":
|
|
2697
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2698
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2699
|
-
case "RateLimitExceededException":
|
|
2700
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2701
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2702
|
-
case "ServerInternalException":
|
|
2703
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2704
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2705
|
-
default:
|
|
2706
|
-
const parsedBody = parsedOutput.body;
|
|
2707
|
-
return throwDefaultError({
|
|
2708
|
-
output,
|
|
2709
|
-
parsedBody,
|
|
2710
|
-
errorCode
|
|
2711
|
-
});
|
|
2712
|
-
}
|
|
2713
|
-
}, "de_ListLicenseVersionsCommandError");
|
|
2714
1452
|
var de_ListReceivedGrantsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2715
1453
|
if (output.statusCode >= 300) {
|
|
2716
|
-
return
|
|
1454
|
+
return de_CommandError(output, context);
|
|
2717
1455
|
}
|
|
2718
1456
|
const data = await parseBody(output.body, context);
|
|
2719
1457
|
let contents = {};
|
|
@@ -2724,46 +1462,9 @@ var de_ListReceivedGrantsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2724
1462
|
};
|
|
2725
1463
|
return response;
|
|
2726
1464
|
}, "de_ListReceivedGrantsCommand");
|
|
2727
|
-
var de_ListReceivedGrantsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2728
|
-
const parsedOutput = {
|
|
2729
|
-
...output,
|
|
2730
|
-
body: await parseErrorBody(output.body, context)
|
|
2731
|
-
};
|
|
2732
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2733
|
-
switch (errorCode) {
|
|
2734
|
-
case "AccessDeniedException":
|
|
2735
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2736
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2737
|
-
case "AuthorizationException":
|
|
2738
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2739
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2740
|
-
case "InvalidParameterValueException":
|
|
2741
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2742
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2743
|
-
case "RateLimitExceededException":
|
|
2744
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2745
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2746
|
-
case "ResourceLimitExceededException":
|
|
2747
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
2748
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2749
|
-
case "ServerInternalException":
|
|
2750
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2751
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2752
|
-
case "ValidationException":
|
|
2753
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
2754
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2755
|
-
default:
|
|
2756
|
-
const parsedBody = parsedOutput.body;
|
|
2757
|
-
return throwDefaultError({
|
|
2758
|
-
output,
|
|
2759
|
-
parsedBody,
|
|
2760
|
-
errorCode
|
|
2761
|
-
});
|
|
2762
|
-
}
|
|
2763
|
-
}, "de_ListReceivedGrantsCommandError");
|
|
2764
1465
|
var de_ListReceivedGrantsForOrganizationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2765
1466
|
if (output.statusCode >= 300) {
|
|
2766
|
-
return
|
|
1467
|
+
return de_CommandError(output, context);
|
|
2767
1468
|
}
|
|
2768
1469
|
const data = await parseBody(output.body, context);
|
|
2769
1470
|
let contents = {};
|
|
@@ -2774,46 +1475,9 @@ var de_ListReceivedGrantsForOrganizationCommand = /* @__PURE__ */ __name(async (
|
|
|
2774
1475
|
};
|
|
2775
1476
|
return response;
|
|
2776
1477
|
}, "de_ListReceivedGrantsForOrganizationCommand");
|
|
2777
|
-
var de_ListReceivedGrantsForOrganizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2778
|
-
const parsedOutput = {
|
|
2779
|
-
...output,
|
|
2780
|
-
body: await parseErrorBody(output.body, context)
|
|
2781
|
-
};
|
|
2782
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2783
|
-
switch (errorCode) {
|
|
2784
|
-
case "AccessDeniedException":
|
|
2785
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2786
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2787
|
-
case "AuthorizationException":
|
|
2788
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2789
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2790
|
-
case "InvalidParameterValueException":
|
|
2791
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2792
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2793
|
-
case "RateLimitExceededException":
|
|
2794
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2795
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2796
|
-
case "ResourceLimitExceededException":
|
|
2797
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
2798
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2799
|
-
case "ServerInternalException":
|
|
2800
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2801
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2802
|
-
case "ValidationException":
|
|
2803
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
2804
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2805
|
-
default:
|
|
2806
|
-
const parsedBody = parsedOutput.body;
|
|
2807
|
-
return throwDefaultError({
|
|
2808
|
-
output,
|
|
2809
|
-
parsedBody,
|
|
2810
|
-
errorCode
|
|
2811
|
-
});
|
|
2812
|
-
}
|
|
2813
|
-
}, "de_ListReceivedGrantsForOrganizationCommandError");
|
|
2814
1478
|
var de_ListReceivedLicensesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2815
1479
|
if (output.statusCode >= 300) {
|
|
2816
|
-
return
|
|
1480
|
+
return de_CommandError(output, context);
|
|
2817
1481
|
}
|
|
2818
1482
|
const data = await parseBody(output.body, context);
|
|
2819
1483
|
let contents = {};
|
|
@@ -2824,46 +1488,9 @@ var de_ListReceivedLicensesCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2824
1488
|
};
|
|
2825
1489
|
return response;
|
|
2826
1490
|
}, "de_ListReceivedLicensesCommand");
|
|
2827
|
-
var de_ListReceivedLicensesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2828
|
-
const parsedOutput = {
|
|
2829
|
-
...output,
|
|
2830
|
-
body: await parseErrorBody(output.body, context)
|
|
2831
|
-
};
|
|
2832
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2833
|
-
switch (errorCode) {
|
|
2834
|
-
case "AccessDeniedException":
|
|
2835
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2836
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2837
|
-
case "AuthorizationException":
|
|
2838
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2839
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2840
|
-
case "InvalidParameterValueException":
|
|
2841
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2842
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2843
|
-
case "RateLimitExceededException":
|
|
2844
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2845
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2846
|
-
case "ResourceLimitExceededException":
|
|
2847
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
2848
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2849
|
-
case "ServerInternalException":
|
|
2850
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2851
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2852
|
-
case "ValidationException":
|
|
2853
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
2854
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2855
|
-
default:
|
|
2856
|
-
const parsedBody = parsedOutput.body;
|
|
2857
|
-
return throwDefaultError({
|
|
2858
|
-
output,
|
|
2859
|
-
parsedBody,
|
|
2860
|
-
errorCode
|
|
2861
|
-
});
|
|
2862
|
-
}
|
|
2863
|
-
}, "de_ListReceivedLicensesCommandError");
|
|
2864
1491
|
var de_ListReceivedLicensesForOrganizationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2865
1492
|
if (output.statusCode >= 300) {
|
|
2866
|
-
return
|
|
1493
|
+
return de_CommandError(output, context);
|
|
2867
1494
|
}
|
|
2868
1495
|
const data = await parseBody(output.body, context);
|
|
2869
1496
|
let contents = {};
|
|
@@ -2874,46 +1501,9 @@ var de_ListReceivedLicensesForOrganizationCommand = /* @__PURE__ */ __name(async
|
|
|
2874
1501
|
};
|
|
2875
1502
|
return response;
|
|
2876
1503
|
}, "de_ListReceivedLicensesForOrganizationCommand");
|
|
2877
|
-
var de_ListReceivedLicensesForOrganizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2878
|
-
const parsedOutput = {
|
|
2879
|
-
...output,
|
|
2880
|
-
body: await parseErrorBody(output.body, context)
|
|
2881
|
-
};
|
|
2882
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2883
|
-
switch (errorCode) {
|
|
2884
|
-
case "AccessDeniedException":
|
|
2885
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2886
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2887
|
-
case "AuthorizationException":
|
|
2888
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2889
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2890
|
-
case "InvalidParameterValueException":
|
|
2891
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2892
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2893
|
-
case "RateLimitExceededException":
|
|
2894
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2895
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2896
|
-
case "ResourceLimitExceededException":
|
|
2897
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
2898
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2899
|
-
case "ServerInternalException":
|
|
2900
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2901
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2902
|
-
case "ValidationException":
|
|
2903
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
2904
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2905
|
-
default:
|
|
2906
|
-
const parsedBody = parsedOutput.body;
|
|
2907
|
-
return throwDefaultError({
|
|
2908
|
-
output,
|
|
2909
|
-
parsedBody,
|
|
2910
|
-
errorCode
|
|
2911
|
-
});
|
|
2912
|
-
}
|
|
2913
|
-
}, "de_ListReceivedLicensesForOrganizationCommandError");
|
|
2914
1504
|
var de_ListResourceInventoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2915
1505
|
if (output.statusCode >= 300) {
|
|
2916
|
-
return
|
|
1506
|
+
return de_CommandError(output, context);
|
|
2917
1507
|
}
|
|
2918
1508
|
const data = await parseBody(output.body, context);
|
|
2919
1509
|
let contents = {};
|
|
@@ -2924,46 +1514,9 @@ var de_ListResourceInventoryCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2924
1514
|
};
|
|
2925
1515
|
return response;
|
|
2926
1516
|
}, "de_ListResourceInventoryCommand");
|
|
2927
|
-
var de_ListResourceInventoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2928
|
-
const parsedOutput = {
|
|
2929
|
-
...output,
|
|
2930
|
-
body: await parseErrorBody(output.body, context)
|
|
2931
|
-
};
|
|
2932
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2933
|
-
switch (errorCode) {
|
|
2934
|
-
case "AccessDeniedException":
|
|
2935
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2936
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2937
|
-
case "AuthorizationException":
|
|
2938
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2939
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2940
|
-
case "FailedDependencyException":
|
|
2941
|
-
case "com.amazonaws.licensemanager#FailedDependencyException":
|
|
2942
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
2943
|
-
case "FilterLimitExceededException":
|
|
2944
|
-
case "com.amazonaws.licensemanager#FilterLimitExceededException":
|
|
2945
|
-
throw await de_FilterLimitExceededExceptionRes(parsedOutput, context);
|
|
2946
|
-
case "InvalidParameterValueException":
|
|
2947
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2948
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2949
|
-
case "RateLimitExceededException":
|
|
2950
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2951
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2952
|
-
case "ServerInternalException":
|
|
2953
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2954
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2955
|
-
default:
|
|
2956
|
-
const parsedBody = parsedOutput.body;
|
|
2957
|
-
return throwDefaultError({
|
|
2958
|
-
output,
|
|
2959
|
-
parsedBody,
|
|
2960
|
-
errorCode
|
|
2961
|
-
});
|
|
2962
|
-
}
|
|
2963
|
-
}, "de_ListResourceInventoryCommandError");
|
|
2964
1517
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2965
1518
|
if (output.statusCode >= 300) {
|
|
2966
|
-
return
|
|
1519
|
+
return de_CommandError(output, context);
|
|
2967
1520
|
}
|
|
2968
1521
|
const data = await parseBody(output.body, context);
|
|
2969
1522
|
let contents = {};
|
|
@@ -2974,131 +1527,35 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2974
1527
|
};
|
|
2975
1528
|
return response;
|
|
2976
1529
|
}, "de_ListTagsForResourceCommand");
|
|
2977
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2978
|
-
const parsedOutput = {
|
|
2979
|
-
...output,
|
|
2980
|
-
body: await parseErrorBody(output.body, context)
|
|
2981
|
-
};
|
|
2982
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2983
|
-
switch (errorCode) {
|
|
2984
|
-
case "AccessDeniedException":
|
|
2985
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2986
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2987
|
-
case "AuthorizationException":
|
|
2988
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2989
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2990
|
-
case "InvalidParameterValueException":
|
|
2991
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2992
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2993
|
-
case "RateLimitExceededException":
|
|
2994
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2995
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2996
|
-
case "ServerInternalException":
|
|
2997
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2998
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2999
|
-
default:
|
|
3000
|
-
const parsedBody = parsedOutput.body;
|
|
3001
|
-
return throwDefaultError({
|
|
3002
|
-
output,
|
|
3003
|
-
parsedBody,
|
|
3004
|
-
errorCode
|
|
3005
|
-
});
|
|
3006
|
-
}
|
|
3007
|
-
}, "de_ListTagsForResourceCommandError");
|
|
3008
1530
|
var de_ListTokensCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3009
|
-
if (output.statusCode >= 300) {
|
|
3010
|
-
return
|
|
3011
|
-
}
|
|
3012
|
-
const data = await parseBody(output.body, context);
|
|
3013
|
-
let contents = {};
|
|
3014
|
-
contents = (0, import_smithy_client._json)(data);
|
|
3015
|
-
const response = {
|
|
3016
|
-
$metadata: deserializeMetadata(output),
|
|
3017
|
-
...contents
|
|
3018
|
-
};
|
|
3019
|
-
return response;
|
|
3020
|
-
}, "de_ListTokensCommand");
|
|
3021
|
-
var
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
body: await parseErrorBody(output.body, context)
|
|
3025
|
-
};
|
|
3026
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3027
|
-
switch (errorCode) {
|
|
3028
|
-
case "AccessDeniedException":
|
|
3029
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
3030
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3031
|
-
case "AuthorizationException":
|
|
3032
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
3033
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
3034
|
-
case "RateLimitExceededException":
|
|
3035
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
3036
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
3037
|
-
case "ServerInternalException":
|
|
3038
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
3039
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
3040
|
-
case "ValidationException":
|
|
3041
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
3042
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3043
|
-
default:
|
|
3044
|
-
const parsedBody = parsedOutput.body;
|
|
3045
|
-
return throwDefaultError({
|
|
3046
|
-
output,
|
|
3047
|
-
parsedBody,
|
|
3048
|
-
errorCode
|
|
3049
|
-
});
|
|
3050
|
-
}
|
|
3051
|
-
}, "de_ListTokensCommandError");
|
|
3052
|
-
var de_ListUsageForLicenseConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3053
|
-
if (output.statusCode >= 300) {
|
|
3054
|
-
return de_ListUsageForLicenseConfigurationCommandError(output, context);
|
|
3055
|
-
}
|
|
3056
|
-
const data = await parseBody(output.body, context);
|
|
3057
|
-
let contents = {};
|
|
3058
|
-
contents = de_ListUsageForLicenseConfigurationResponse(data, context);
|
|
3059
|
-
const response = {
|
|
3060
|
-
$metadata: deserializeMetadata(output),
|
|
3061
|
-
...contents
|
|
3062
|
-
};
|
|
3063
|
-
return response;
|
|
3064
|
-
}, "de_ListUsageForLicenseConfigurationCommand");
|
|
3065
|
-
var de_ListUsageForLicenseConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3066
|
-
const parsedOutput = {
|
|
3067
|
-
...output,
|
|
3068
|
-
body: await parseErrorBody(output.body, context)
|
|
3069
|
-
};
|
|
3070
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3071
|
-
switch (errorCode) {
|
|
3072
|
-
case "AccessDeniedException":
|
|
3073
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
3074
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3075
|
-
case "AuthorizationException":
|
|
3076
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
3077
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
3078
|
-
case "FilterLimitExceededException":
|
|
3079
|
-
case "com.amazonaws.licensemanager#FilterLimitExceededException":
|
|
3080
|
-
throw await de_FilterLimitExceededExceptionRes(parsedOutput, context);
|
|
3081
|
-
case "InvalidParameterValueException":
|
|
3082
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
3083
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3084
|
-
case "RateLimitExceededException":
|
|
3085
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
3086
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
3087
|
-
case "ServerInternalException":
|
|
3088
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
3089
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
3090
|
-
default:
|
|
3091
|
-
const parsedBody = parsedOutput.body;
|
|
3092
|
-
return throwDefaultError({
|
|
3093
|
-
output,
|
|
3094
|
-
parsedBody,
|
|
3095
|
-
errorCode
|
|
3096
|
-
});
|
|
1531
|
+
if (output.statusCode >= 300) {
|
|
1532
|
+
return de_CommandError(output, context);
|
|
1533
|
+
}
|
|
1534
|
+
const data = await parseBody(output.body, context);
|
|
1535
|
+
let contents = {};
|
|
1536
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1537
|
+
const response = {
|
|
1538
|
+
$metadata: deserializeMetadata(output),
|
|
1539
|
+
...contents
|
|
1540
|
+
};
|
|
1541
|
+
return response;
|
|
1542
|
+
}, "de_ListTokensCommand");
|
|
1543
|
+
var de_ListUsageForLicenseConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1544
|
+
if (output.statusCode >= 300) {
|
|
1545
|
+
return de_CommandError(output, context);
|
|
3097
1546
|
}
|
|
3098
|
-
|
|
1547
|
+
const data = await parseBody(output.body, context);
|
|
1548
|
+
let contents = {};
|
|
1549
|
+
contents = de_ListUsageForLicenseConfigurationResponse(data, context);
|
|
1550
|
+
const response = {
|
|
1551
|
+
$metadata: deserializeMetadata(output),
|
|
1552
|
+
...contents
|
|
1553
|
+
};
|
|
1554
|
+
return response;
|
|
1555
|
+
}, "de_ListUsageForLicenseConfigurationCommand");
|
|
3099
1556
|
var de_RejectGrantCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3100
1557
|
if (output.statusCode >= 300) {
|
|
3101
|
-
return
|
|
1558
|
+
return de_CommandError(output, context);
|
|
3102
1559
|
}
|
|
3103
1560
|
const data = await parseBody(output.body, context);
|
|
3104
1561
|
let contents = {};
|
|
@@ -3109,46 +1566,9 @@ var de_RejectGrantCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3109
1566
|
};
|
|
3110
1567
|
return response;
|
|
3111
1568
|
}, "de_RejectGrantCommand");
|
|
3112
|
-
var de_RejectGrantCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3113
|
-
const parsedOutput = {
|
|
3114
|
-
...output,
|
|
3115
|
-
body: await parseErrorBody(output.body, context)
|
|
3116
|
-
};
|
|
3117
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3118
|
-
switch (errorCode) {
|
|
3119
|
-
case "AccessDeniedException":
|
|
3120
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
3121
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3122
|
-
case "AuthorizationException":
|
|
3123
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
3124
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
3125
|
-
case "InvalidParameterValueException":
|
|
3126
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
3127
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3128
|
-
case "RateLimitExceededException":
|
|
3129
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
3130
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
3131
|
-
case "ResourceLimitExceededException":
|
|
3132
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
3133
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
3134
|
-
case "ServerInternalException":
|
|
3135
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
3136
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
3137
|
-
case "ValidationException":
|
|
3138
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
3139
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3140
|
-
default:
|
|
3141
|
-
const parsedBody = parsedOutput.body;
|
|
3142
|
-
return throwDefaultError({
|
|
3143
|
-
output,
|
|
3144
|
-
parsedBody,
|
|
3145
|
-
errorCode
|
|
3146
|
-
});
|
|
3147
|
-
}
|
|
3148
|
-
}, "de_RejectGrantCommandError");
|
|
3149
1569
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3150
1570
|
if (output.statusCode >= 300) {
|
|
3151
|
-
return
|
|
1571
|
+
return de_CommandError(output, context);
|
|
3152
1572
|
}
|
|
3153
1573
|
const data = await parseBody(output.body, context);
|
|
3154
1574
|
let contents = {};
|
|
@@ -3159,40 +1579,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3159
1579
|
};
|
|
3160
1580
|
return response;
|
|
3161
1581
|
}, "de_TagResourceCommand");
|
|
3162
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3163
|
-
const parsedOutput = {
|
|
3164
|
-
...output,
|
|
3165
|
-
body: await parseErrorBody(output.body, context)
|
|
3166
|
-
};
|
|
3167
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3168
|
-
switch (errorCode) {
|
|
3169
|
-
case "AccessDeniedException":
|
|
3170
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
3171
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3172
|
-
case "AuthorizationException":
|
|
3173
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
3174
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
3175
|
-
case "InvalidParameterValueException":
|
|
3176
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
3177
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3178
|
-
case "RateLimitExceededException":
|
|
3179
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
3180
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
3181
|
-
case "ServerInternalException":
|
|
3182
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
3183
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
3184
|
-
default:
|
|
3185
|
-
const parsedBody = parsedOutput.body;
|
|
3186
|
-
return throwDefaultError({
|
|
3187
|
-
output,
|
|
3188
|
-
parsedBody,
|
|
3189
|
-
errorCode
|
|
3190
|
-
});
|
|
3191
|
-
}
|
|
3192
|
-
}, "de_TagResourceCommandError");
|
|
3193
1582
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3194
1583
|
if (output.statusCode >= 300) {
|
|
3195
|
-
return
|
|
1584
|
+
return de_CommandError(output, context);
|
|
3196
1585
|
}
|
|
3197
1586
|
const data = await parseBody(output.body, context);
|
|
3198
1587
|
let contents = {};
|
|
@@ -3203,40 +1592,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3203
1592
|
};
|
|
3204
1593
|
return response;
|
|
3205
1594
|
}, "de_UntagResourceCommand");
|
|
3206
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3207
|
-
const parsedOutput = {
|
|
3208
|
-
...output,
|
|
3209
|
-
body: await parseErrorBody(output.body, context)
|
|
3210
|
-
};
|
|
3211
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3212
|
-
switch (errorCode) {
|
|
3213
|
-
case "AccessDeniedException":
|
|
3214
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
3215
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3216
|
-
case "AuthorizationException":
|
|
3217
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
3218
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
3219
|
-
case "InvalidParameterValueException":
|
|
3220
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
3221
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3222
|
-
case "RateLimitExceededException":
|
|
3223
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
3224
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
3225
|
-
case "ServerInternalException":
|
|
3226
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
3227
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
3228
|
-
default:
|
|
3229
|
-
const parsedBody = parsedOutput.body;
|
|
3230
|
-
return throwDefaultError({
|
|
3231
|
-
output,
|
|
3232
|
-
parsedBody,
|
|
3233
|
-
errorCode
|
|
3234
|
-
});
|
|
3235
|
-
}
|
|
3236
|
-
}, "de_UntagResourceCommandError");
|
|
3237
1595
|
var de_UpdateLicenseConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3238
1596
|
if (output.statusCode >= 300) {
|
|
3239
|
-
return
|
|
1597
|
+
return de_CommandError(output, context);
|
|
3240
1598
|
}
|
|
3241
1599
|
const data = await parseBody(output.body, context);
|
|
3242
1600
|
let contents = {};
|
|
@@ -3247,43 +1605,9 @@ var de_UpdateLicenseConfigurationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3247
1605
|
};
|
|
3248
1606
|
return response;
|
|
3249
1607
|
}, "de_UpdateLicenseConfigurationCommand");
|
|
3250
|
-
var de_UpdateLicenseConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3251
|
-
const parsedOutput = {
|
|
3252
|
-
...output,
|
|
3253
|
-
body: await parseErrorBody(output.body, context)
|
|
3254
|
-
};
|
|
3255
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3256
|
-
switch (errorCode) {
|
|
3257
|
-
case "AccessDeniedException":
|
|
3258
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
3259
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3260
|
-
case "AuthorizationException":
|
|
3261
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
3262
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
3263
|
-
case "InvalidParameterValueException":
|
|
3264
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
3265
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3266
|
-
case "RateLimitExceededException":
|
|
3267
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
3268
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
3269
|
-
case "ResourceLimitExceededException":
|
|
3270
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
3271
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
3272
|
-
case "ServerInternalException":
|
|
3273
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
3274
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
3275
|
-
default:
|
|
3276
|
-
const parsedBody = parsedOutput.body;
|
|
3277
|
-
return throwDefaultError({
|
|
3278
|
-
output,
|
|
3279
|
-
parsedBody,
|
|
3280
|
-
errorCode
|
|
3281
|
-
});
|
|
3282
|
-
}
|
|
3283
|
-
}, "de_UpdateLicenseConfigurationCommandError");
|
|
3284
1608
|
var de_UpdateLicenseManagerReportGeneratorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3285
1609
|
if (output.statusCode >= 300) {
|
|
3286
|
-
return
|
|
1610
|
+
return de_CommandError(output, context);
|
|
3287
1611
|
}
|
|
3288
1612
|
const data = await parseBody(output.body, context);
|
|
3289
1613
|
let contents = {};
|
|
@@ -3294,49 +1618,9 @@ var de_UpdateLicenseManagerReportGeneratorCommand = /* @__PURE__ */ __name(async
|
|
|
3294
1618
|
};
|
|
3295
1619
|
return response;
|
|
3296
1620
|
}, "de_UpdateLicenseManagerReportGeneratorCommand");
|
|
3297
|
-
var de_UpdateLicenseManagerReportGeneratorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
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.licensemanager#AccessDeniedException":
|
|
3306
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3307
|
-
case "AuthorizationException":
|
|
3308
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
3309
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
3310
|
-
case "InvalidParameterValueException":
|
|
3311
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
3312
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3313
|
-
case "RateLimitExceededException":
|
|
3314
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
3315
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
3316
|
-
case "ResourceLimitExceededException":
|
|
3317
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
3318
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
3319
|
-
case "ResourceNotFoundException":
|
|
3320
|
-
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
3321
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3322
|
-
case "ServerInternalException":
|
|
3323
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
3324
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
3325
|
-
case "ValidationException":
|
|
3326
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
3327
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3328
|
-
default:
|
|
3329
|
-
const parsedBody = parsedOutput.body;
|
|
3330
|
-
return throwDefaultError({
|
|
3331
|
-
output,
|
|
3332
|
-
parsedBody,
|
|
3333
|
-
errorCode
|
|
3334
|
-
});
|
|
3335
|
-
}
|
|
3336
|
-
}, "de_UpdateLicenseManagerReportGeneratorCommandError");
|
|
3337
1621
|
var de_UpdateLicenseSpecificationsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3338
1622
|
if (output.statusCode >= 300) {
|
|
3339
|
-
return
|
|
1623
|
+
return de_CommandError(output, context);
|
|
3340
1624
|
}
|
|
3341
1625
|
const data = await parseBody(output.body, context);
|
|
3342
1626
|
let contents = {};
|
|
@@ -3347,46 +1631,9 @@ var de_UpdateLicenseSpecificationsForResourceCommand = /* @__PURE__ */ __name(as
|
|
|
3347
1631
|
};
|
|
3348
1632
|
return response;
|
|
3349
1633
|
}, "de_UpdateLicenseSpecificationsForResourceCommand");
|
|
3350
|
-
var de_UpdateLicenseSpecificationsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3351
|
-
const parsedOutput = {
|
|
3352
|
-
...output,
|
|
3353
|
-
body: await parseErrorBody(output.body, context)
|
|
3354
|
-
};
|
|
3355
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3356
|
-
switch (errorCode) {
|
|
3357
|
-
case "AccessDeniedException":
|
|
3358
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
3359
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3360
|
-
case "AuthorizationException":
|
|
3361
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
3362
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
3363
|
-
case "InvalidParameterValueException":
|
|
3364
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
3365
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3366
|
-
case "InvalidResourceStateException":
|
|
3367
|
-
case "com.amazonaws.licensemanager#InvalidResourceStateException":
|
|
3368
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
3369
|
-
case "LicenseUsageException":
|
|
3370
|
-
case "com.amazonaws.licensemanager#LicenseUsageException":
|
|
3371
|
-
throw await de_LicenseUsageExceptionRes(parsedOutput, context);
|
|
3372
|
-
case "RateLimitExceededException":
|
|
3373
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
3374
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
3375
|
-
case "ServerInternalException":
|
|
3376
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
3377
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
3378
|
-
default:
|
|
3379
|
-
const parsedBody = parsedOutput.body;
|
|
3380
|
-
return throwDefaultError({
|
|
3381
|
-
output,
|
|
3382
|
-
parsedBody,
|
|
3383
|
-
errorCode
|
|
3384
|
-
});
|
|
3385
|
-
}
|
|
3386
|
-
}, "de_UpdateLicenseSpecificationsForResourceCommandError");
|
|
3387
1634
|
var de_UpdateServiceSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3388
1635
|
if (output.statusCode >= 300) {
|
|
3389
|
-
return
|
|
1636
|
+
return de_CommandError(output, context);
|
|
3390
1637
|
}
|
|
3391
1638
|
const data = await parseBody(output.body, context);
|
|
3392
1639
|
let contents = {};
|
|
@@ -3397,7 +1644,7 @@ var de_UpdateServiceSettingsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3397
1644
|
};
|
|
3398
1645
|
return response;
|
|
3399
1646
|
}, "de_UpdateServiceSettingsCommand");
|
|
3400
|
-
var
|
|
1647
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3401
1648
|
const parsedOutput = {
|
|
3402
1649
|
...output,
|
|
3403
1650
|
body: await parseErrorBody(output.body, context)
|
|
@@ -3416,9 +1663,45 @@ var de_UpdateServiceSettingsCommandError = /* @__PURE__ */ __name(async (output,
|
|
|
3416
1663
|
case "RateLimitExceededException":
|
|
3417
1664
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
3418
1665
|
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1666
|
+
case "ResourceLimitExceededException":
|
|
1667
|
+
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
1668
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
3419
1669
|
case "ServerInternalException":
|
|
3420
1670
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
3421
1671
|
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1672
|
+
case "ValidationException":
|
|
1673
|
+
case "com.amazonaws.licensemanager#ValidationException":
|
|
1674
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1675
|
+
case "ConflictException":
|
|
1676
|
+
case "com.amazonaws.licensemanager#ConflictException":
|
|
1677
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1678
|
+
case "ResourceNotFoundException":
|
|
1679
|
+
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
1680
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1681
|
+
case "EntitlementNotAllowedException":
|
|
1682
|
+
case "com.amazonaws.licensemanager#EntitlementNotAllowedException":
|
|
1683
|
+
throw await de_EntitlementNotAllowedExceptionRes(parsedOutput, context);
|
|
1684
|
+
case "NoEntitlementsAllowedException":
|
|
1685
|
+
case "com.amazonaws.licensemanager#NoEntitlementsAllowedException":
|
|
1686
|
+
throw await de_NoEntitlementsAllowedExceptionRes(parsedOutput, context);
|
|
1687
|
+
case "RedirectException":
|
|
1688
|
+
case "com.amazonaws.licensemanager#RedirectException":
|
|
1689
|
+
throw await de_RedirectExceptionRes(parsedOutput, context);
|
|
1690
|
+
case "UnsupportedDigitalSignatureMethodException":
|
|
1691
|
+
case "com.amazonaws.licensemanager#UnsupportedDigitalSignatureMethodException":
|
|
1692
|
+
throw await de_UnsupportedDigitalSignatureMethodExceptionRes(parsedOutput, context);
|
|
1693
|
+
case "FilterLimitExceededException":
|
|
1694
|
+
case "com.amazonaws.licensemanager#FilterLimitExceededException":
|
|
1695
|
+
throw await de_FilterLimitExceededExceptionRes(parsedOutput, context);
|
|
1696
|
+
case "FailedDependencyException":
|
|
1697
|
+
case "com.amazonaws.licensemanager#FailedDependencyException":
|
|
1698
|
+
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
1699
|
+
case "InvalidResourceStateException":
|
|
1700
|
+
case "com.amazonaws.licensemanager#InvalidResourceStateException":
|
|
1701
|
+
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
1702
|
+
case "LicenseUsageException":
|
|
1703
|
+
case "com.amazonaws.licensemanager#LicenseUsageException":
|
|
1704
|
+
throw await de_LicenseUsageExceptionRes(parsedOutput, context);
|
|
3422
1705
|
default:
|
|
3423
1706
|
const parsedBody = parsedOutput.body;
|
|
3424
1707
|
return throwDefaultError({
|
|
@@ -3427,7 +1710,7 @@ var de_UpdateServiceSettingsCommandError = /* @__PURE__ */ __name(async (output,
|
|
|
3427
1710
|
errorCode
|
|
3428
1711
|
});
|
|
3429
1712
|
}
|
|
3430
|
-
}, "
|
|
1713
|
+
}, "de_CommandError");
|
|
3431
1714
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
3432
1715
|
const body = parsedOutput.body;
|
|
3433
1716
|
const deserialized = (0, import_smithy_client._json)(body);
|