@aws-sdk/client-license-manager 3.525.0 → 3.529.1
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 +53 -93
- package/dist-es/protocols/Aws_json1_1.js +1 -40
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -267,6 +267,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
267
267
|
var import_types = require("@smithy/types");
|
|
268
268
|
|
|
269
269
|
// src/protocols/Aws_json1_1.ts
|
|
270
|
+
var import_core2 = require("@aws-sdk/core");
|
|
270
271
|
|
|
271
272
|
|
|
272
273
|
|
|
@@ -1056,7 +1057,7 @@ var de_AcceptGrantCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1056
1057
|
if (output.statusCode >= 300) {
|
|
1057
1058
|
return de_CommandError(output, context);
|
|
1058
1059
|
}
|
|
1059
|
-
const data = await
|
|
1060
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1060
1061
|
let contents = {};
|
|
1061
1062
|
contents = (0, import_smithy_client._json)(data);
|
|
1062
1063
|
const response = {
|
|
@@ -1069,7 +1070,7 @@ var de_CheckInLicenseCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1069
1070
|
if (output.statusCode >= 300) {
|
|
1070
1071
|
return de_CommandError(output, context);
|
|
1071
1072
|
}
|
|
1072
|
-
const data = await
|
|
1073
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1073
1074
|
let contents = {};
|
|
1074
1075
|
contents = (0, import_smithy_client._json)(data);
|
|
1075
1076
|
const response = {
|
|
@@ -1082,7 +1083,7 @@ var de_CheckoutBorrowLicenseCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1082
1083
|
if (output.statusCode >= 300) {
|
|
1083
1084
|
return de_CommandError(output, context);
|
|
1084
1085
|
}
|
|
1085
|
-
const data = await
|
|
1086
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1086
1087
|
let contents = {};
|
|
1087
1088
|
contents = (0, import_smithy_client._json)(data);
|
|
1088
1089
|
const response = {
|
|
@@ -1095,7 +1096,7 @@ var de_CheckoutLicenseCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1095
1096
|
if (output.statusCode >= 300) {
|
|
1096
1097
|
return de_CommandError(output, context);
|
|
1097
1098
|
}
|
|
1098
|
-
const data = await
|
|
1099
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1099
1100
|
let contents = {};
|
|
1100
1101
|
contents = (0, import_smithy_client._json)(data);
|
|
1101
1102
|
const response = {
|
|
@@ -1108,7 +1109,7 @@ var de_CreateGrantCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1108
1109
|
if (output.statusCode >= 300) {
|
|
1109
1110
|
return de_CommandError(output, context);
|
|
1110
1111
|
}
|
|
1111
|
-
const data = await
|
|
1112
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1112
1113
|
let contents = {};
|
|
1113
1114
|
contents = (0, import_smithy_client._json)(data);
|
|
1114
1115
|
const response = {
|
|
@@ -1121,7 +1122,7 @@ var de_CreateGrantVersionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1121
1122
|
if (output.statusCode >= 300) {
|
|
1122
1123
|
return de_CommandError(output, context);
|
|
1123
1124
|
}
|
|
1124
|
-
const data = await
|
|
1125
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1125
1126
|
let contents = {};
|
|
1126
1127
|
contents = (0, import_smithy_client._json)(data);
|
|
1127
1128
|
const response = {
|
|
@@ -1134,7 +1135,7 @@ var de_CreateLicenseCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1134
1135
|
if (output.statusCode >= 300) {
|
|
1135
1136
|
return de_CommandError(output, context);
|
|
1136
1137
|
}
|
|
1137
|
-
const data = await
|
|
1138
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1138
1139
|
let contents = {};
|
|
1139
1140
|
contents = (0, import_smithy_client._json)(data);
|
|
1140
1141
|
const response = {
|
|
@@ -1147,7 +1148,7 @@ var de_CreateLicenseConfigurationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1147
1148
|
if (output.statusCode >= 300) {
|
|
1148
1149
|
return de_CommandError(output, context);
|
|
1149
1150
|
}
|
|
1150
|
-
const data = await
|
|
1151
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1151
1152
|
let contents = {};
|
|
1152
1153
|
contents = (0, import_smithy_client._json)(data);
|
|
1153
1154
|
const response = {
|
|
@@ -1160,7 +1161,7 @@ var de_CreateLicenseConversionTaskForResourceCommand = /* @__PURE__ */ __name(as
|
|
|
1160
1161
|
if (output.statusCode >= 300) {
|
|
1161
1162
|
return de_CommandError(output, context);
|
|
1162
1163
|
}
|
|
1163
|
-
const data = await
|
|
1164
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1164
1165
|
let contents = {};
|
|
1165
1166
|
contents = (0, import_smithy_client._json)(data);
|
|
1166
1167
|
const response = {
|
|
@@ -1173,7 +1174,7 @@ var de_CreateLicenseManagerReportGeneratorCommand = /* @__PURE__ */ __name(async
|
|
|
1173
1174
|
if (output.statusCode >= 300) {
|
|
1174
1175
|
return de_CommandError(output, context);
|
|
1175
1176
|
}
|
|
1176
|
-
const data = await
|
|
1177
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1177
1178
|
let contents = {};
|
|
1178
1179
|
contents = (0, import_smithy_client._json)(data);
|
|
1179
1180
|
const response = {
|
|
@@ -1186,7 +1187,7 @@ var de_CreateLicenseVersionCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1186
1187
|
if (output.statusCode >= 300) {
|
|
1187
1188
|
return de_CommandError(output, context);
|
|
1188
1189
|
}
|
|
1189
|
-
const data = await
|
|
1190
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1190
1191
|
let contents = {};
|
|
1191
1192
|
contents = (0, import_smithy_client._json)(data);
|
|
1192
1193
|
const response = {
|
|
@@ -1199,7 +1200,7 @@ var de_CreateTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1199
1200
|
if (output.statusCode >= 300) {
|
|
1200
1201
|
return de_CommandError(output, context);
|
|
1201
1202
|
}
|
|
1202
|
-
const data = await
|
|
1203
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1203
1204
|
let contents = {};
|
|
1204
1205
|
contents = (0, import_smithy_client._json)(data);
|
|
1205
1206
|
const response = {
|
|
@@ -1212,7 +1213,7 @@ var de_DeleteGrantCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1212
1213
|
if (output.statusCode >= 300) {
|
|
1213
1214
|
return de_CommandError(output, context);
|
|
1214
1215
|
}
|
|
1215
|
-
const data = await
|
|
1216
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1216
1217
|
let contents = {};
|
|
1217
1218
|
contents = (0, import_smithy_client._json)(data);
|
|
1218
1219
|
const response = {
|
|
@@ -1225,7 +1226,7 @@ var de_DeleteLicenseCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1225
1226
|
if (output.statusCode >= 300) {
|
|
1226
1227
|
return de_CommandError(output, context);
|
|
1227
1228
|
}
|
|
1228
|
-
const data = await
|
|
1229
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1229
1230
|
let contents = {};
|
|
1230
1231
|
contents = (0, import_smithy_client._json)(data);
|
|
1231
1232
|
const response = {
|
|
@@ -1238,7 +1239,7 @@ var de_DeleteLicenseConfigurationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1238
1239
|
if (output.statusCode >= 300) {
|
|
1239
1240
|
return de_CommandError(output, context);
|
|
1240
1241
|
}
|
|
1241
|
-
const data = await
|
|
1242
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1242
1243
|
let contents = {};
|
|
1243
1244
|
contents = (0, import_smithy_client._json)(data);
|
|
1244
1245
|
const response = {
|
|
@@ -1251,7 +1252,7 @@ var de_DeleteLicenseManagerReportGeneratorCommand = /* @__PURE__ */ __name(async
|
|
|
1251
1252
|
if (output.statusCode >= 300) {
|
|
1252
1253
|
return de_CommandError(output, context);
|
|
1253
1254
|
}
|
|
1254
|
-
const data = await
|
|
1255
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1255
1256
|
let contents = {};
|
|
1256
1257
|
contents = (0, import_smithy_client._json)(data);
|
|
1257
1258
|
const response = {
|
|
@@ -1264,7 +1265,7 @@ var de_DeleteTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1264
1265
|
if (output.statusCode >= 300) {
|
|
1265
1266
|
return de_CommandError(output, context);
|
|
1266
1267
|
}
|
|
1267
|
-
const data = await
|
|
1268
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1268
1269
|
let contents = {};
|
|
1269
1270
|
contents = (0, import_smithy_client._json)(data);
|
|
1270
1271
|
const response = {
|
|
@@ -1277,7 +1278,7 @@ var de_ExtendLicenseConsumptionCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1277
1278
|
if (output.statusCode >= 300) {
|
|
1278
1279
|
return de_CommandError(output, context);
|
|
1279
1280
|
}
|
|
1280
|
-
const data = await
|
|
1281
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1281
1282
|
let contents = {};
|
|
1282
1283
|
contents = (0, import_smithy_client._json)(data);
|
|
1283
1284
|
const response = {
|
|
@@ -1290,7 +1291,7 @@ var de_GetAccessTokenCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1290
1291
|
if (output.statusCode >= 300) {
|
|
1291
1292
|
return de_CommandError(output, context);
|
|
1292
1293
|
}
|
|
1293
|
-
const data = await
|
|
1294
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1294
1295
|
let contents = {};
|
|
1295
1296
|
contents = (0, import_smithy_client._json)(data);
|
|
1296
1297
|
const response = {
|
|
@@ -1303,7 +1304,7 @@ var de_GetGrantCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1303
1304
|
if (output.statusCode >= 300) {
|
|
1304
1305
|
return de_CommandError(output, context);
|
|
1305
1306
|
}
|
|
1306
|
-
const data = await
|
|
1307
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1307
1308
|
let contents = {};
|
|
1308
1309
|
contents = (0, import_smithy_client._json)(data);
|
|
1309
1310
|
const response = {
|
|
@@ -1316,7 +1317,7 @@ var de_GetLicenseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1316
1317
|
if (output.statusCode >= 300) {
|
|
1317
1318
|
return de_CommandError(output, context);
|
|
1318
1319
|
}
|
|
1319
|
-
const data = await
|
|
1320
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1320
1321
|
let contents = {};
|
|
1321
1322
|
contents = (0, import_smithy_client._json)(data);
|
|
1322
1323
|
const response = {
|
|
@@ -1329,7 +1330,7 @@ var de_GetLicenseConfigurationCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1329
1330
|
if (output.statusCode >= 300) {
|
|
1330
1331
|
return de_CommandError(output, context);
|
|
1331
1332
|
}
|
|
1332
|
-
const data = await
|
|
1333
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1333
1334
|
let contents = {};
|
|
1334
1335
|
contents = de_GetLicenseConfigurationResponse(data, context);
|
|
1335
1336
|
const response = {
|
|
@@ -1342,7 +1343,7 @@ var de_GetLicenseConversionTaskCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1342
1343
|
if (output.statusCode >= 300) {
|
|
1343
1344
|
return de_CommandError(output, context);
|
|
1344
1345
|
}
|
|
1345
|
-
const data = await
|
|
1346
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1346
1347
|
let contents = {};
|
|
1347
1348
|
contents = de_GetLicenseConversionTaskResponse(data, context);
|
|
1348
1349
|
const response = {
|
|
@@ -1355,7 +1356,7 @@ var de_GetLicenseManagerReportGeneratorCommand = /* @__PURE__ */ __name(async (o
|
|
|
1355
1356
|
if (output.statusCode >= 300) {
|
|
1356
1357
|
return de_CommandError(output, context);
|
|
1357
1358
|
}
|
|
1358
|
-
const data = await
|
|
1359
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1359
1360
|
let contents = {};
|
|
1360
1361
|
contents = (0, import_smithy_client._json)(data);
|
|
1361
1362
|
const response = {
|
|
@@ -1368,7 +1369,7 @@ var de_GetLicenseUsageCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1368
1369
|
if (output.statusCode >= 300) {
|
|
1369
1370
|
return de_CommandError(output, context);
|
|
1370
1371
|
}
|
|
1371
|
-
const data = await
|
|
1372
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1372
1373
|
let contents = {};
|
|
1373
1374
|
contents = (0, import_smithy_client._json)(data);
|
|
1374
1375
|
const response = {
|
|
@@ -1381,7 +1382,7 @@ var de_GetServiceSettingsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1381
1382
|
if (output.statusCode >= 300) {
|
|
1382
1383
|
return de_CommandError(output, context);
|
|
1383
1384
|
}
|
|
1384
|
-
const data = await
|
|
1385
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1385
1386
|
let contents = {};
|
|
1386
1387
|
contents = (0, import_smithy_client._json)(data);
|
|
1387
1388
|
const response = {
|
|
@@ -1394,7 +1395,7 @@ var de_ListAssociationsForLicenseConfigurationCommand = /* @__PURE__ */ __name(a
|
|
|
1394
1395
|
if (output.statusCode >= 300) {
|
|
1395
1396
|
return de_CommandError(output, context);
|
|
1396
1397
|
}
|
|
1397
|
-
const data = await
|
|
1398
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1398
1399
|
let contents = {};
|
|
1399
1400
|
contents = de_ListAssociationsForLicenseConfigurationResponse(data, context);
|
|
1400
1401
|
const response = {
|
|
@@ -1407,7 +1408,7 @@ var de_ListDistributedGrantsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1407
1408
|
if (output.statusCode >= 300) {
|
|
1408
1409
|
return de_CommandError(output, context);
|
|
1409
1410
|
}
|
|
1410
|
-
const data = await
|
|
1411
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1411
1412
|
let contents = {};
|
|
1412
1413
|
contents = (0, import_smithy_client._json)(data);
|
|
1413
1414
|
const response = {
|
|
@@ -1420,7 +1421,7 @@ var de_ListFailuresForLicenseConfigurationOperationsCommand = /* @__PURE__ */ __
|
|
|
1420
1421
|
if (output.statusCode >= 300) {
|
|
1421
1422
|
return de_CommandError(output, context);
|
|
1422
1423
|
}
|
|
1423
|
-
const data = await
|
|
1424
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1424
1425
|
let contents = {};
|
|
1425
1426
|
contents = de_ListFailuresForLicenseConfigurationOperationsResponse(data, context);
|
|
1426
1427
|
const response = {
|
|
@@ -1433,7 +1434,7 @@ var de_ListLicenseConfigurationsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1433
1434
|
if (output.statusCode >= 300) {
|
|
1434
1435
|
return de_CommandError(output, context);
|
|
1435
1436
|
}
|
|
1436
|
-
const data = await
|
|
1437
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1437
1438
|
let contents = {};
|
|
1438
1439
|
contents = de_ListLicenseConfigurationsResponse(data, context);
|
|
1439
1440
|
const response = {
|
|
@@ -1446,7 +1447,7 @@ var de_ListLicenseConversionTasksCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1446
1447
|
if (output.statusCode >= 300) {
|
|
1447
1448
|
return de_CommandError(output, context);
|
|
1448
1449
|
}
|
|
1449
|
-
const data = await
|
|
1450
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1450
1451
|
let contents = {};
|
|
1451
1452
|
contents = de_ListLicenseConversionTasksResponse(data, context);
|
|
1452
1453
|
const response = {
|
|
@@ -1459,7 +1460,7 @@ var de_ListLicenseManagerReportGeneratorsCommand = /* @__PURE__ */ __name(async
|
|
|
1459
1460
|
if (output.statusCode >= 300) {
|
|
1460
1461
|
return de_CommandError(output, context);
|
|
1461
1462
|
}
|
|
1462
|
-
const data = await
|
|
1463
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1463
1464
|
let contents = {};
|
|
1464
1465
|
contents = (0, import_smithy_client._json)(data);
|
|
1465
1466
|
const response = {
|
|
@@ -1472,7 +1473,7 @@ var de_ListLicensesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1472
1473
|
if (output.statusCode >= 300) {
|
|
1473
1474
|
return de_CommandError(output, context);
|
|
1474
1475
|
}
|
|
1475
|
-
const data = await
|
|
1476
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1476
1477
|
let contents = {};
|
|
1477
1478
|
contents = (0, import_smithy_client._json)(data);
|
|
1478
1479
|
const response = {
|
|
@@ -1485,7 +1486,7 @@ var de_ListLicenseSpecificationsForResourceCommand = /* @__PURE__ */ __name(asyn
|
|
|
1485
1486
|
if (output.statusCode >= 300) {
|
|
1486
1487
|
return de_CommandError(output, context);
|
|
1487
1488
|
}
|
|
1488
|
-
const data = await
|
|
1489
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1489
1490
|
let contents = {};
|
|
1490
1491
|
contents = (0, import_smithy_client._json)(data);
|
|
1491
1492
|
const response = {
|
|
@@ -1498,7 +1499,7 @@ var de_ListLicenseVersionsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1498
1499
|
if (output.statusCode >= 300) {
|
|
1499
1500
|
return de_CommandError(output, context);
|
|
1500
1501
|
}
|
|
1501
|
-
const data = await
|
|
1502
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1502
1503
|
let contents = {};
|
|
1503
1504
|
contents = (0, import_smithy_client._json)(data);
|
|
1504
1505
|
const response = {
|
|
@@ -1511,7 +1512,7 @@ var de_ListReceivedGrantsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1511
1512
|
if (output.statusCode >= 300) {
|
|
1512
1513
|
return de_CommandError(output, context);
|
|
1513
1514
|
}
|
|
1514
|
-
const data = await
|
|
1515
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1515
1516
|
let contents = {};
|
|
1516
1517
|
contents = (0, import_smithy_client._json)(data);
|
|
1517
1518
|
const response = {
|
|
@@ -1524,7 +1525,7 @@ var de_ListReceivedGrantsForOrganizationCommand = /* @__PURE__ */ __name(async (
|
|
|
1524
1525
|
if (output.statusCode >= 300) {
|
|
1525
1526
|
return de_CommandError(output, context);
|
|
1526
1527
|
}
|
|
1527
|
-
const data = await
|
|
1528
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1528
1529
|
let contents = {};
|
|
1529
1530
|
contents = (0, import_smithy_client._json)(data);
|
|
1530
1531
|
const response = {
|
|
@@ -1537,7 +1538,7 @@ var de_ListReceivedLicensesCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1537
1538
|
if (output.statusCode >= 300) {
|
|
1538
1539
|
return de_CommandError(output, context);
|
|
1539
1540
|
}
|
|
1540
|
-
const data = await
|
|
1541
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1541
1542
|
let contents = {};
|
|
1542
1543
|
contents = (0, import_smithy_client._json)(data);
|
|
1543
1544
|
const response = {
|
|
@@ -1550,7 +1551,7 @@ var de_ListReceivedLicensesForOrganizationCommand = /* @__PURE__ */ __name(async
|
|
|
1550
1551
|
if (output.statusCode >= 300) {
|
|
1551
1552
|
return de_CommandError(output, context);
|
|
1552
1553
|
}
|
|
1553
|
-
const data = await
|
|
1554
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1554
1555
|
let contents = {};
|
|
1555
1556
|
contents = (0, import_smithy_client._json)(data);
|
|
1556
1557
|
const response = {
|
|
@@ -1563,7 +1564,7 @@ var de_ListResourceInventoryCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1563
1564
|
if (output.statusCode >= 300) {
|
|
1564
1565
|
return de_CommandError(output, context);
|
|
1565
1566
|
}
|
|
1566
|
-
const data = await
|
|
1567
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1567
1568
|
let contents = {};
|
|
1568
1569
|
contents = (0, import_smithy_client._json)(data);
|
|
1569
1570
|
const response = {
|
|
@@ -1576,7 +1577,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1576
1577
|
if (output.statusCode >= 300) {
|
|
1577
1578
|
return de_CommandError(output, context);
|
|
1578
1579
|
}
|
|
1579
|
-
const data = await
|
|
1580
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1580
1581
|
let contents = {};
|
|
1581
1582
|
contents = (0, import_smithy_client._json)(data);
|
|
1582
1583
|
const response = {
|
|
@@ -1589,7 +1590,7 @@ var de_ListTokensCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1589
1590
|
if (output.statusCode >= 300) {
|
|
1590
1591
|
return de_CommandError(output, context);
|
|
1591
1592
|
}
|
|
1592
|
-
const data = await
|
|
1593
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1593
1594
|
let contents = {};
|
|
1594
1595
|
contents = (0, import_smithy_client._json)(data);
|
|
1595
1596
|
const response = {
|
|
@@ -1602,7 +1603,7 @@ var de_ListUsageForLicenseConfigurationCommand = /* @__PURE__ */ __name(async (o
|
|
|
1602
1603
|
if (output.statusCode >= 300) {
|
|
1603
1604
|
return de_CommandError(output, context);
|
|
1604
1605
|
}
|
|
1605
|
-
const data = await
|
|
1606
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1606
1607
|
let contents = {};
|
|
1607
1608
|
contents = de_ListUsageForLicenseConfigurationResponse(data, context);
|
|
1608
1609
|
const response = {
|
|
@@ -1615,7 +1616,7 @@ var de_RejectGrantCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1615
1616
|
if (output.statusCode >= 300) {
|
|
1616
1617
|
return de_CommandError(output, context);
|
|
1617
1618
|
}
|
|
1618
|
-
const data = await
|
|
1619
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1619
1620
|
let contents = {};
|
|
1620
1621
|
contents = (0, import_smithy_client._json)(data);
|
|
1621
1622
|
const response = {
|
|
@@ -1628,7 +1629,7 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1628
1629
|
if (output.statusCode >= 300) {
|
|
1629
1630
|
return de_CommandError(output, context);
|
|
1630
1631
|
}
|
|
1631
|
-
const data = await
|
|
1632
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1632
1633
|
let contents = {};
|
|
1633
1634
|
contents = (0, import_smithy_client._json)(data);
|
|
1634
1635
|
const response = {
|
|
@@ -1641,7 +1642,7 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1641
1642
|
if (output.statusCode >= 300) {
|
|
1642
1643
|
return de_CommandError(output, context);
|
|
1643
1644
|
}
|
|
1644
|
-
const data = await
|
|
1645
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1645
1646
|
let contents = {};
|
|
1646
1647
|
contents = (0, import_smithy_client._json)(data);
|
|
1647
1648
|
const response = {
|
|
@@ -1654,7 +1655,7 @@ var de_UpdateLicenseConfigurationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1654
1655
|
if (output.statusCode >= 300) {
|
|
1655
1656
|
return de_CommandError(output, context);
|
|
1656
1657
|
}
|
|
1657
|
-
const data = await
|
|
1658
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1658
1659
|
let contents = {};
|
|
1659
1660
|
contents = (0, import_smithy_client._json)(data);
|
|
1660
1661
|
const response = {
|
|
@@ -1667,7 +1668,7 @@ var de_UpdateLicenseManagerReportGeneratorCommand = /* @__PURE__ */ __name(async
|
|
|
1667
1668
|
if (output.statusCode >= 300) {
|
|
1668
1669
|
return de_CommandError(output, context);
|
|
1669
1670
|
}
|
|
1670
|
-
const data = await
|
|
1671
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1671
1672
|
let contents = {};
|
|
1672
1673
|
contents = (0, import_smithy_client._json)(data);
|
|
1673
1674
|
const response = {
|
|
@@ -1680,7 +1681,7 @@ var de_UpdateLicenseSpecificationsForResourceCommand = /* @__PURE__ */ __name(as
|
|
|
1680
1681
|
if (output.statusCode >= 300) {
|
|
1681
1682
|
return de_CommandError(output, context);
|
|
1682
1683
|
}
|
|
1683
|
-
const data = await
|
|
1684
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1684
1685
|
let contents = {};
|
|
1685
1686
|
contents = (0, import_smithy_client._json)(data);
|
|
1686
1687
|
const response = {
|
|
@@ -1693,7 +1694,7 @@ var de_UpdateServiceSettingsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1693
1694
|
if (output.statusCode >= 300) {
|
|
1694
1695
|
return de_CommandError(output, context);
|
|
1695
1696
|
}
|
|
1696
|
-
const data = await
|
|
1697
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1697
1698
|
let contents = {};
|
|
1698
1699
|
contents = (0, import_smithy_client._json)(data);
|
|
1699
1700
|
const response = {
|
|
@@ -1705,9 +1706,9 @@ var de_UpdateServiceSettingsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1705
1706
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1706
1707
|
const parsedOutput = {
|
|
1707
1708
|
...output,
|
|
1708
|
-
body: await
|
|
1709
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1709
1710
|
};
|
|
1710
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1711
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1711
1712
|
switch (errorCode) {
|
|
1712
1713
|
case "AccessDeniedException":
|
|
1713
1714
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -2091,7 +2092,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
2091
2092
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2092
2093
|
cfId: output.headers["x-amz-cf-id"]
|
|
2093
2094
|
}), "deserializeMetadata");
|
|
2094
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
2095
2095
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(LicenseManagerServiceException);
|
|
2096
2096
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
2097
2097
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -2118,46 +2118,6 @@ function sharedHeaders(operation) {
|
|
|
2118
2118
|
};
|
|
2119
2119
|
}
|
|
2120
2120
|
__name(sharedHeaders, "sharedHeaders");
|
|
2121
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2122
|
-
if (encoded.length) {
|
|
2123
|
-
return JSON.parse(encoded);
|
|
2124
|
-
}
|
|
2125
|
-
return {};
|
|
2126
|
-
}), "parseBody");
|
|
2127
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
2128
|
-
const value = await parseBody(errorBody, context);
|
|
2129
|
-
value.message = value.message ?? value.Message;
|
|
2130
|
-
return value;
|
|
2131
|
-
}, "parseErrorBody");
|
|
2132
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
2133
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
2134
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
2135
|
-
let cleanValue = rawValue;
|
|
2136
|
-
if (typeof cleanValue === "number") {
|
|
2137
|
-
cleanValue = cleanValue.toString();
|
|
2138
|
-
}
|
|
2139
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2140
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2141
|
-
}
|
|
2142
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2143
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2144
|
-
}
|
|
2145
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2146
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2147
|
-
}
|
|
2148
|
-
return cleanValue;
|
|
2149
|
-
}, "sanitizeErrorCode");
|
|
2150
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2151
|
-
if (headerKey !== void 0) {
|
|
2152
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2153
|
-
}
|
|
2154
|
-
if (data.code !== void 0) {
|
|
2155
|
-
return sanitizeErrorCode(data.code);
|
|
2156
|
-
}
|
|
2157
|
-
if (data["__type"] !== void 0) {
|
|
2158
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2159
|
-
}
|
|
2160
|
-
}, "loadRestJsonErrorCode");
|
|
2161
2121
|
|
|
2162
2122
|
// src/commands/AcceptGrantCommand.ts
|
|
2163
2123
|
var _AcceptGrantCommand = class _AcceptGrantCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { LicenseManagerServiceException as __BaseException } from "../models/LicenseManagerServiceException";
|
|
@@ -1377,43 +1378,3 @@ function sharedHeaders(operation) {
|
|
|
1377
1378
|
"x-amz-target": `AWSLicenseManager.${operation}`,
|
|
1378
1379
|
};
|
|
1379
1380
|
}
|
|
1380
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1381
|
-
if (encoded.length) {
|
|
1382
|
-
return JSON.parse(encoded);
|
|
1383
|
-
}
|
|
1384
|
-
return {};
|
|
1385
|
-
});
|
|
1386
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1387
|
-
const value = await parseBody(errorBody, context);
|
|
1388
|
-
value.message = value.message ?? value.Message;
|
|
1389
|
-
return value;
|
|
1390
|
-
};
|
|
1391
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1392
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1393
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1394
|
-
let cleanValue = rawValue;
|
|
1395
|
-
if (typeof cleanValue === "number") {
|
|
1396
|
-
cleanValue = cleanValue.toString();
|
|
1397
|
-
}
|
|
1398
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1399
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1400
|
-
}
|
|
1401
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1402
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1403
|
-
}
|
|
1404
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1405
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1406
|
-
}
|
|
1407
|
-
return cleanValue;
|
|
1408
|
-
};
|
|
1409
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1410
|
-
if (headerKey !== undefined) {
|
|
1411
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1412
|
-
}
|
|
1413
|
-
if (data.code !== undefined) {
|
|
1414
|
-
return sanitizeErrorCode(data.code);
|
|
1415
|
-
}
|
|
1416
|
-
if (data["__type"] !== undefined) {
|
|
1417
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1418
|
-
}
|
|
1419
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-license-manager",
|
|
3
3
|
"description": "AWS SDK for JavaScript License Manager Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.1",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-license-manager",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.529.1",
|
|
24
|
+
"@aws-sdk/core": "3.529.1",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.1",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|