@aws-sdk/client-route53resolver 3.525.0 → 3.529.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 +71 -111
- package/dist-es/protocols/Aws_json1_1.js +1 -40
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -310,6 +310,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
310
310
|
var import_types = require("@smithy/types");
|
|
311
311
|
|
|
312
312
|
// src/protocols/Aws_json1_1.ts
|
|
313
|
+
var import_core2 = require("@aws-sdk/core");
|
|
313
314
|
|
|
314
315
|
|
|
315
316
|
var import_uuid = require("uuid");
|
|
@@ -1219,7 +1220,7 @@ var de_AssociateFirewallRuleGroupCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1219
1220
|
if (output.statusCode >= 300) {
|
|
1220
1221
|
return de_CommandError(output, context);
|
|
1221
1222
|
}
|
|
1222
|
-
const data = await
|
|
1223
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1223
1224
|
let contents = {};
|
|
1224
1225
|
contents = (0, import_smithy_client._json)(data);
|
|
1225
1226
|
const response = {
|
|
@@ -1232,7 +1233,7 @@ var de_AssociateResolverEndpointIpAddressCommand = /* @__PURE__ */ __name(async
|
|
|
1232
1233
|
if (output.statusCode >= 300) {
|
|
1233
1234
|
return de_CommandError(output, context);
|
|
1234
1235
|
}
|
|
1235
|
-
const data = await
|
|
1236
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1236
1237
|
let contents = {};
|
|
1237
1238
|
contents = (0, import_smithy_client._json)(data);
|
|
1238
1239
|
const response = {
|
|
@@ -1245,7 +1246,7 @@ var de_AssociateResolverQueryLogConfigCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1245
1246
|
if (output.statusCode >= 300) {
|
|
1246
1247
|
return de_CommandError(output, context);
|
|
1247
1248
|
}
|
|
1248
|
-
const data = await
|
|
1249
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1249
1250
|
let contents = {};
|
|
1250
1251
|
contents = (0, import_smithy_client._json)(data);
|
|
1251
1252
|
const response = {
|
|
@@ -1258,7 +1259,7 @@ var de_AssociateResolverRuleCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1258
1259
|
if (output.statusCode >= 300) {
|
|
1259
1260
|
return de_CommandError(output, context);
|
|
1260
1261
|
}
|
|
1261
|
-
const data = await
|
|
1262
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1262
1263
|
let contents = {};
|
|
1263
1264
|
contents = (0, import_smithy_client._json)(data);
|
|
1264
1265
|
const response = {
|
|
@@ -1271,7 +1272,7 @@ var de_CreateFirewallDomainListCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1271
1272
|
if (output.statusCode >= 300) {
|
|
1272
1273
|
return de_CommandError(output, context);
|
|
1273
1274
|
}
|
|
1274
|
-
const data = await
|
|
1275
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1275
1276
|
let contents = {};
|
|
1276
1277
|
contents = (0, import_smithy_client._json)(data);
|
|
1277
1278
|
const response = {
|
|
@@ -1284,7 +1285,7 @@ var de_CreateFirewallRuleCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1284
1285
|
if (output.statusCode >= 300) {
|
|
1285
1286
|
return de_CommandError(output, context);
|
|
1286
1287
|
}
|
|
1287
|
-
const data = await
|
|
1288
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1288
1289
|
let contents = {};
|
|
1289
1290
|
contents = (0, import_smithy_client._json)(data);
|
|
1290
1291
|
const response = {
|
|
@@ -1297,7 +1298,7 @@ var de_CreateFirewallRuleGroupCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1297
1298
|
if (output.statusCode >= 300) {
|
|
1298
1299
|
return de_CommandError(output, context);
|
|
1299
1300
|
}
|
|
1300
|
-
const data = await
|
|
1301
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1301
1302
|
let contents = {};
|
|
1302
1303
|
contents = (0, import_smithy_client._json)(data);
|
|
1303
1304
|
const response = {
|
|
@@ -1310,7 +1311,7 @@ var de_CreateOutpostResolverCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1310
1311
|
if (output.statusCode >= 300) {
|
|
1311
1312
|
return de_CommandError(output, context);
|
|
1312
1313
|
}
|
|
1313
|
-
const data = await
|
|
1314
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1314
1315
|
let contents = {};
|
|
1315
1316
|
contents = (0, import_smithy_client._json)(data);
|
|
1316
1317
|
const response = {
|
|
@@ -1323,7 +1324,7 @@ var de_CreateResolverEndpointCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1323
1324
|
if (output.statusCode >= 300) {
|
|
1324
1325
|
return de_CommandError(output, context);
|
|
1325
1326
|
}
|
|
1326
|
-
const data = await
|
|
1327
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1327
1328
|
let contents = {};
|
|
1328
1329
|
contents = (0, import_smithy_client._json)(data);
|
|
1329
1330
|
const response = {
|
|
@@ -1336,7 +1337,7 @@ var de_CreateResolverQueryLogConfigCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1336
1337
|
if (output.statusCode >= 300) {
|
|
1337
1338
|
return de_CommandError(output, context);
|
|
1338
1339
|
}
|
|
1339
|
-
const data = await
|
|
1340
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1340
1341
|
let contents = {};
|
|
1341
1342
|
contents = (0, import_smithy_client._json)(data);
|
|
1342
1343
|
const response = {
|
|
@@ -1349,7 +1350,7 @@ var de_CreateResolverRuleCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1349
1350
|
if (output.statusCode >= 300) {
|
|
1350
1351
|
return de_CommandError(output, context);
|
|
1351
1352
|
}
|
|
1352
|
-
const data = await
|
|
1353
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1353
1354
|
let contents = {};
|
|
1354
1355
|
contents = (0, import_smithy_client._json)(data);
|
|
1355
1356
|
const response = {
|
|
@@ -1362,7 +1363,7 @@ var de_DeleteFirewallDomainListCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1362
1363
|
if (output.statusCode >= 300) {
|
|
1363
1364
|
return de_CommandError(output, context);
|
|
1364
1365
|
}
|
|
1365
|
-
const data = await
|
|
1366
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1366
1367
|
let contents = {};
|
|
1367
1368
|
contents = (0, import_smithy_client._json)(data);
|
|
1368
1369
|
const response = {
|
|
@@ -1375,7 +1376,7 @@ var de_DeleteFirewallRuleCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1375
1376
|
if (output.statusCode >= 300) {
|
|
1376
1377
|
return de_CommandError(output, context);
|
|
1377
1378
|
}
|
|
1378
|
-
const data = await
|
|
1379
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1379
1380
|
let contents = {};
|
|
1380
1381
|
contents = (0, import_smithy_client._json)(data);
|
|
1381
1382
|
const response = {
|
|
@@ -1388,7 +1389,7 @@ var de_DeleteFirewallRuleGroupCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1388
1389
|
if (output.statusCode >= 300) {
|
|
1389
1390
|
return de_CommandError(output, context);
|
|
1390
1391
|
}
|
|
1391
|
-
const data = await
|
|
1392
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1392
1393
|
let contents = {};
|
|
1393
1394
|
contents = (0, import_smithy_client._json)(data);
|
|
1394
1395
|
const response = {
|
|
@@ -1401,7 +1402,7 @@ var de_DeleteOutpostResolverCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1401
1402
|
if (output.statusCode >= 300) {
|
|
1402
1403
|
return de_CommandError(output, context);
|
|
1403
1404
|
}
|
|
1404
|
-
const data = await
|
|
1405
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1405
1406
|
let contents = {};
|
|
1406
1407
|
contents = (0, import_smithy_client._json)(data);
|
|
1407
1408
|
const response = {
|
|
@@ -1414,7 +1415,7 @@ var de_DeleteResolverEndpointCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1414
1415
|
if (output.statusCode >= 300) {
|
|
1415
1416
|
return de_CommandError(output, context);
|
|
1416
1417
|
}
|
|
1417
|
-
const data = await
|
|
1418
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1418
1419
|
let contents = {};
|
|
1419
1420
|
contents = (0, import_smithy_client._json)(data);
|
|
1420
1421
|
const response = {
|
|
@@ -1427,7 +1428,7 @@ var de_DeleteResolverQueryLogConfigCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1427
1428
|
if (output.statusCode >= 300) {
|
|
1428
1429
|
return de_CommandError(output, context);
|
|
1429
1430
|
}
|
|
1430
|
-
const data = await
|
|
1431
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1431
1432
|
let contents = {};
|
|
1432
1433
|
contents = (0, import_smithy_client._json)(data);
|
|
1433
1434
|
const response = {
|
|
@@ -1440,7 +1441,7 @@ var de_DeleteResolverRuleCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1440
1441
|
if (output.statusCode >= 300) {
|
|
1441
1442
|
return de_CommandError(output, context);
|
|
1442
1443
|
}
|
|
1443
|
-
const data = await
|
|
1444
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1444
1445
|
let contents = {};
|
|
1445
1446
|
contents = (0, import_smithy_client._json)(data);
|
|
1446
1447
|
const response = {
|
|
@@ -1453,7 +1454,7 @@ var de_DisassociateFirewallRuleGroupCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1453
1454
|
if (output.statusCode >= 300) {
|
|
1454
1455
|
return de_CommandError(output, context);
|
|
1455
1456
|
}
|
|
1456
|
-
const data = await
|
|
1457
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1457
1458
|
let contents = {};
|
|
1458
1459
|
contents = (0, import_smithy_client._json)(data);
|
|
1459
1460
|
const response = {
|
|
@@ -1466,7 +1467,7 @@ var de_DisassociateResolverEndpointIpAddressCommand = /* @__PURE__ */ __name(asy
|
|
|
1466
1467
|
if (output.statusCode >= 300) {
|
|
1467
1468
|
return de_CommandError(output, context);
|
|
1468
1469
|
}
|
|
1469
|
-
const data = await
|
|
1470
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1470
1471
|
let contents = {};
|
|
1471
1472
|
contents = (0, import_smithy_client._json)(data);
|
|
1472
1473
|
const response = {
|
|
@@ -1479,7 +1480,7 @@ var de_DisassociateResolverQueryLogConfigCommand = /* @__PURE__ */ __name(async
|
|
|
1479
1480
|
if (output.statusCode >= 300) {
|
|
1480
1481
|
return de_CommandError(output, context);
|
|
1481
1482
|
}
|
|
1482
|
-
const data = await
|
|
1483
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1483
1484
|
let contents = {};
|
|
1484
1485
|
contents = (0, import_smithy_client._json)(data);
|
|
1485
1486
|
const response = {
|
|
@@ -1492,7 +1493,7 @@ var de_DisassociateResolverRuleCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1492
1493
|
if (output.statusCode >= 300) {
|
|
1493
1494
|
return de_CommandError(output, context);
|
|
1494
1495
|
}
|
|
1495
|
-
const data = await
|
|
1496
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1496
1497
|
let contents = {};
|
|
1497
1498
|
contents = (0, import_smithy_client._json)(data);
|
|
1498
1499
|
const response = {
|
|
@@ -1505,7 +1506,7 @@ var de_GetFirewallConfigCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1505
1506
|
if (output.statusCode >= 300) {
|
|
1506
1507
|
return de_CommandError(output, context);
|
|
1507
1508
|
}
|
|
1508
|
-
const data = await
|
|
1509
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1509
1510
|
let contents = {};
|
|
1510
1511
|
contents = (0, import_smithy_client._json)(data);
|
|
1511
1512
|
const response = {
|
|
@@ -1518,7 +1519,7 @@ var de_GetFirewallDomainListCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1518
1519
|
if (output.statusCode >= 300) {
|
|
1519
1520
|
return de_CommandError(output, context);
|
|
1520
1521
|
}
|
|
1521
|
-
const data = await
|
|
1522
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1522
1523
|
let contents = {};
|
|
1523
1524
|
contents = (0, import_smithy_client._json)(data);
|
|
1524
1525
|
const response = {
|
|
@@ -1531,7 +1532,7 @@ var de_GetFirewallRuleGroupCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1531
1532
|
if (output.statusCode >= 300) {
|
|
1532
1533
|
return de_CommandError(output, context);
|
|
1533
1534
|
}
|
|
1534
|
-
const data = await
|
|
1535
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1535
1536
|
let contents = {};
|
|
1536
1537
|
contents = (0, import_smithy_client._json)(data);
|
|
1537
1538
|
const response = {
|
|
@@ -1544,7 +1545,7 @@ var de_GetFirewallRuleGroupAssociationCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1544
1545
|
if (output.statusCode >= 300) {
|
|
1545
1546
|
return de_CommandError(output, context);
|
|
1546
1547
|
}
|
|
1547
|
-
const data = await
|
|
1548
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1548
1549
|
let contents = {};
|
|
1549
1550
|
contents = (0, import_smithy_client._json)(data);
|
|
1550
1551
|
const response = {
|
|
@@ -1557,7 +1558,7 @@ var de_GetFirewallRuleGroupPolicyCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1557
1558
|
if (output.statusCode >= 300) {
|
|
1558
1559
|
return de_CommandError(output, context);
|
|
1559
1560
|
}
|
|
1560
|
-
const data = await
|
|
1561
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1561
1562
|
let contents = {};
|
|
1562
1563
|
contents = (0, import_smithy_client._json)(data);
|
|
1563
1564
|
const response = {
|
|
@@ -1570,7 +1571,7 @@ var de_GetOutpostResolverCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1570
1571
|
if (output.statusCode >= 300) {
|
|
1571
1572
|
return de_CommandError(output, context);
|
|
1572
1573
|
}
|
|
1573
|
-
const data = await
|
|
1574
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1574
1575
|
let contents = {};
|
|
1575
1576
|
contents = (0, import_smithy_client._json)(data);
|
|
1576
1577
|
const response = {
|
|
@@ -1583,7 +1584,7 @@ var de_GetResolverConfigCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1583
1584
|
if (output.statusCode >= 300) {
|
|
1584
1585
|
return de_CommandError(output, context);
|
|
1585
1586
|
}
|
|
1586
|
-
const data = await
|
|
1587
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1587
1588
|
let contents = {};
|
|
1588
1589
|
contents = (0, import_smithy_client._json)(data);
|
|
1589
1590
|
const response = {
|
|
@@ -1596,7 +1597,7 @@ var de_GetResolverDnssecConfigCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1596
1597
|
if (output.statusCode >= 300) {
|
|
1597
1598
|
return de_CommandError(output, context);
|
|
1598
1599
|
}
|
|
1599
|
-
const data = await
|
|
1600
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1600
1601
|
let contents = {};
|
|
1601
1602
|
contents = (0, import_smithy_client._json)(data);
|
|
1602
1603
|
const response = {
|
|
@@ -1609,7 +1610,7 @@ var de_GetResolverEndpointCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1609
1610
|
if (output.statusCode >= 300) {
|
|
1610
1611
|
return de_CommandError(output, context);
|
|
1611
1612
|
}
|
|
1612
|
-
const data = await
|
|
1613
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1613
1614
|
let contents = {};
|
|
1614
1615
|
contents = (0, import_smithy_client._json)(data);
|
|
1615
1616
|
const response = {
|
|
@@ -1622,7 +1623,7 @@ var de_GetResolverQueryLogConfigCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1622
1623
|
if (output.statusCode >= 300) {
|
|
1623
1624
|
return de_CommandError(output, context);
|
|
1624
1625
|
}
|
|
1625
|
-
const data = await
|
|
1626
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1626
1627
|
let contents = {};
|
|
1627
1628
|
contents = (0, import_smithy_client._json)(data);
|
|
1628
1629
|
const response = {
|
|
@@ -1635,7 +1636,7 @@ var de_GetResolverQueryLogConfigAssociationCommand = /* @__PURE__ */ __name(asyn
|
|
|
1635
1636
|
if (output.statusCode >= 300) {
|
|
1636
1637
|
return de_CommandError(output, context);
|
|
1637
1638
|
}
|
|
1638
|
-
const data = await
|
|
1639
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1639
1640
|
let contents = {};
|
|
1640
1641
|
contents = (0, import_smithy_client._json)(data);
|
|
1641
1642
|
const response = {
|
|
@@ -1648,7 +1649,7 @@ var de_GetResolverQueryLogConfigPolicyCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1648
1649
|
if (output.statusCode >= 300) {
|
|
1649
1650
|
return de_CommandError(output, context);
|
|
1650
1651
|
}
|
|
1651
|
-
const data = await
|
|
1652
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1652
1653
|
let contents = {};
|
|
1653
1654
|
contents = (0, import_smithy_client._json)(data);
|
|
1654
1655
|
const response = {
|
|
@@ -1661,7 +1662,7 @@ var de_GetResolverRuleCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1661
1662
|
if (output.statusCode >= 300) {
|
|
1662
1663
|
return de_CommandError(output, context);
|
|
1663
1664
|
}
|
|
1664
|
-
const data = await
|
|
1665
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1665
1666
|
let contents = {};
|
|
1666
1667
|
contents = (0, import_smithy_client._json)(data);
|
|
1667
1668
|
const response = {
|
|
@@ -1674,7 +1675,7 @@ var de_GetResolverRuleAssociationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1674
1675
|
if (output.statusCode >= 300) {
|
|
1675
1676
|
return de_CommandError(output, context);
|
|
1676
1677
|
}
|
|
1677
|
-
const data = await
|
|
1678
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1678
1679
|
let contents = {};
|
|
1679
1680
|
contents = (0, import_smithy_client._json)(data);
|
|
1680
1681
|
const response = {
|
|
@@ -1687,7 +1688,7 @@ var de_GetResolverRulePolicyCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1687
1688
|
if (output.statusCode >= 300) {
|
|
1688
1689
|
return de_CommandError(output, context);
|
|
1689
1690
|
}
|
|
1690
|
-
const data = await
|
|
1691
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1691
1692
|
let contents = {};
|
|
1692
1693
|
contents = (0, import_smithy_client._json)(data);
|
|
1693
1694
|
const response = {
|
|
@@ -1700,7 +1701,7 @@ var de_ImportFirewallDomainsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1700
1701
|
if (output.statusCode >= 300) {
|
|
1701
1702
|
return de_CommandError(output, context);
|
|
1702
1703
|
}
|
|
1703
|
-
const data = await
|
|
1704
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1704
1705
|
let contents = {};
|
|
1705
1706
|
contents = (0, import_smithy_client._json)(data);
|
|
1706
1707
|
const response = {
|
|
@@ -1713,7 +1714,7 @@ var de_ListFirewallConfigsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1713
1714
|
if (output.statusCode >= 300) {
|
|
1714
1715
|
return de_CommandError(output, context);
|
|
1715
1716
|
}
|
|
1716
|
-
const data = await
|
|
1717
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1717
1718
|
let contents = {};
|
|
1718
1719
|
contents = (0, import_smithy_client._json)(data);
|
|
1719
1720
|
const response = {
|
|
@@ -1726,7 +1727,7 @@ var de_ListFirewallDomainListsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1726
1727
|
if (output.statusCode >= 300) {
|
|
1727
1728
|
return de_CommandError(output, context);
|
|
1728
1729
|
}
|
|
1729
|
-
const data = await
|
|
1730
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1730
1731
|
let contents = {};
|
|
1731
1732
|
contents = (0, import_smithy_client._json)(data);
|
|
1732
1733
|
const response = {
|
|
@@ -1739,7 +1740,7 @@ var de_ListFirewallDomainsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1739
1740
|
if (output.statusCode >= 300) {
|
|
1740
1741
|
return de_CommandError(output, context);
|
|
1741
1742
|
}
|
|
1742
|
-
const data = await
|
|
1743
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1743
1744
|
let contents = {};
|
|
1744
1745
|
contents = (0, import_smithy_client._json)(data);
|
|
1745
1746
|
const response = {
|
|
@@ -1752,7 +1753,7 @@ var de_ListFirewallRuleGroupAssociationsCommand = /* @__PURE__ */ __name(async (
|
|
|
1752
1753
|
if (output.statusCode >= 300) {
|
|
1753
1754
|
return de_CommandError(output, context);
|
|
1754
1755
|
}
|
|
1755
|
-
const data = await
|
|
1756
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1756
1757
|
let contents = {};
|
|
1757
1758
|
contents = (0, import_smithy_client._json)(data);
|
|
1758
1759
|
const response = {
|
|
@@ -1765,7 +1766,7 @@ var de_ListFirewallRuleGroupsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1765
1766
|
if (output.statusCode >= 300) {
|
|
1766
1767
|
return de_CommandError(output, context);
|
|
1767
1768
|
}
|
|
1768
|
-
const data = await
|
|
1769
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1769
1770
|
let contents = {};
|
|
1770
1771
|
contents = (0, import_smithy_client._json)(data);
|
|
1771
1772
|
const response = {
|
|
@@ -1778,7 +1779,7 @@ var de_ListFirewallRulesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1778
1779
|
if (output.statusCode >= 300) {
|
|
1779
1780
|
return de_CommandError(output, context);
|
|
1780
1781
|
}
|
|
1781
|
-
const data = await
|
|
1782
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1782
1783
|
let contents = {};
|
|
1783
1784
|
contents = (0, import_smithy_client._json)(data);
|
|
1784
1785
|
const response = {
|
|
@@ -1791,7 +1792,7 @@ var de_ListOutpostResolversCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1791
1792
|
if (output.statusCode >= 300) {
|
|
1792
1793
|
return de_CommandError(output, context);
|
|
1793
1794
|
}
|
|
1794
|
-
const data = await
|
|
1795
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1795
1796
|
let contents = {};
|
|
1796
1797
|
contents = (0, import_smithy_client._json)(data);
|
|
1797
1798
|
const response = {
|
|
@@ -1804,7 +1805,7 @@ var de_ListResolverConfigsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1804
1805
|
if (output.statusCode >= 300) {
|
|
1805
1806
|
return de_CommandError(output, context);
|
|
1806
1807
|
}
|
|
1807
|
-
const data = await
|
|
1808
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1808
1809
|
let contents = {};
|
|
1809
1810
|
contents = (0, import_smithy_client._json)(data);
|
|
1810
1811
|
const response = {
|
|
@@ -1817,7 +1818,7 @@ var de_ListResolverDnssecConfigsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1817
1818
|
if (output.statusCode >= 300) {
|
|
1818
1819
|
return de_CommandError(output, context);
|
|
1819
1820
|
}
|
|
1820
|
-
const data = await
|
|
1821
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1821
1822
|
let contents = {};
|
|
1822
1823
|
contents = (0, import_smithy_client._json)(data);
|
|
1823
1824
|
const response = {
|
|
@@ -1830,7 +1831,7 @@ var de_ListResolverEndpointIpAddressesCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1830
1831
|
if (output.statusCode >= 300) {
|
|
1831
1832
|
return de_CommandError(output, context);
|
|
1832
1833
|
}
|
|
1833
|
-
const data = await
|
|
1834
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1834
1835
|
let contents = {};
|
|
1835
1836
|
contents = (0, import_smithy_client._json)(data);
|
|
1836
1837
|
const response = {
|
|
@@ -1843,7 +1844,7 @@ var de_ListResolverEndpointsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1843
1844
|
if (output.statusCode >= 300) {
|
|
1844
1845
|
return de_CommandError(output, context);
|
|
1845
1846
|
}
|
|
1846
|
-
const data = await
|
|
1847
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1847
1848
|
let contents = {};
|
|
1848
1849
|
contents = (0, import_smithy_client._json)(data);
|
|
1849
1850
|
const response = {
|
|
@@ -1856,7 +1857,7 @@ var de_ListResolverQueryLogConfigAssociationsCommand = /* @__PURE__ */ __name(as
|
|
|
1856
1857
|
if (output.statusCode >= 300) {
|
|
1857
1858
|
return de_CommandError(output, context);
|
|
1858
1859
|
}
|
|
1859
|
-
const data = await
|
|
1860
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1860
1861
|
let contents = {};
|
|
1861
1862
|
contents = (0, import_smithy_client._json)(data);
|
|
1862
1863
|
const response = {
|
|
@@ -1869,7 +1870,7 @@ var de_ListResolverQueryLogConfigsCommand = /* @__PURE__ */ __name(async (output
|
|
|
1869
1870
|
if (output.statusCode >= 300) {
|
|
1870
1871
|
return de_CommandError(output, context);
|
|
1871
1872
|
}
|
|
1872
|
-
const data = await
|
|
1873
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1873
1874
|
let contents = {};
|
|
1874
1875
|
contents = (0, import_smithy_client._json)(data);
|
|
1875
1876
|
const response = {
|
|
@@ -1882,7 +1883,7 @@ var de_ListResolverRuleAssociationsCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1882
1883
|
if (output.statusCode >= 300) {
|
|
1883
1884
|
return de_CommandError(output, context);
|
|
1884
1885
|
}
|
|
1885
|
-
const data = await
|
|
1886
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1886
1887
|
let contents = {};
|
|
1887
1888
|
contents = (0, import_smithy_client._json)(data);
|
|
1888
1889
|
const response = {
|
|
@@ -1895,7 +1896,7 @@ var de_ListResolverRulesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1895
1896
|
if (output.statusCode >= 300) {
|
|
1896
1897
|
return de_CommandError(output, context);
|
|
1897
1898
|
}
|
|
1898
|
-
const data = await
|
|
1899
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1899
1900
|
let contents = {};
|
|
1900
1901
|
contents = (0, import_smithy_client._json)(data);
|
|
1901
1902
|
const response = {
|
|
@@ -1908,7 +1909,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1908
1909
|
if (output.statusCode >= 300) {
|
|
1909
1910
|
return de_CommandError(output, context);
|
|
1910
1911
|
}
|
|
1911
|
-
const data = await
|
|
1912
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1912
1913
|
let contents = {};
|
|
1913
1914
|
contents = (0, import_smithy_client._json)(data);
|
|
1914
1915
|
const response = {
|
|
@@ -1921,7 +1922,7 @@ var de_PutFirewallRuleGroupPolicyCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1921
1922
|
if (output.statusCode >= 300) {
|
|
1922
1923
|
return de_CommandError(output, context);
|
|
1923
1924
|
}
|
|
1924
|
-
const data = await
|
|
1925
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1925
1926
|
let contents = {};
|
|
1926
1927
|
contents = (0, import_smithy_client._json)(data);
|
|
1927
1928
|
const response = {
|
|
@@ -1934,7 +1935,7 @@ var de_PutResolverQueryLogConfigPolicyCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1934
1935
|
if (output.statusCode >= 300) {
|
|
1935
1936
|
return de_CommandError(output, context);
|
|
1936
1937
|
}
|
|
1937
|
-
const data = await
|
|
1938
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1938
1939
|
let contents = {};
|
|
1939
1940
|
contents = (0, import_smithy_client._json)(data);
|
|
1940
1941
|
const response = {
|
|
@@ -1947,7 +1948,7 @@ var de_PutResolverRulePolicyCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1947
1948
|
if (output.statusCode >= 300) {
|
|
1948
1949
|
return de_CommandError(output, context);
|
|
1949
1950
|
}
|
|
1950
|
-
const data = await
|
|
1951
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1951
1952
|
let contents = {};
|
|
1952
1953
|
contents = (0, import_smithy_client._json)(data);
|
|
1953
1954
|
const response = {
|
|
@@ -1960,7 +1961,7 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1960
1961
|
if (output.statusCode >= 300) {
|
|
1961
1962
|
return de_CommandError(output, context);
|
|
1962
1963
|
}
|
|
1963
|
-
const data = await
|
|
1964
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1964
1965
|
let contents = {};
|
|
1965
1966
|
contents = (0, import_smithy_client._json)(data);
|
|
1966
1967
|
const response = {
|
|
@@ -1973,7 +1974,7 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1973
1974
|
if (output.statusCode >= 300) {
|
|
1974
1975
|
return de_CommandError(output, context);
|
|
1975
1976
|
}
|
|
1976
|
-
const data = await
|
|
1977
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1977
1978
|
let contents = {};
|
|
1978
1979
|
contents = (0, import_smithy_client._json)(data);
|
|
1979
1980
|
const response = {
|
|
@@ -1986,7 +1987,7 @@ var de_UpdateFirewallConfigCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1986
1987
|
if (output.statusCode >= 300) {
|
|
1987
1988
|
return de_CommandError(output, context);
|
|
1988
1989
|
}
|
|
1989
|
-
const data = await
|
|
1990
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1990
1991
|
let contents = {};
|
|
1991
1992
|
contents = (0, import_smithy_client._json)(data);
|
|
1992
1993
|
const response = {
|
|
@@ -1999,7 +2000,7 @@ var de_UpdateFirewallDomainsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1999
2000
|
if (output.statusCode >= 300) {
|
|
2000
2001
|
return de_CommandError(output, context);
|
|
2001
2002
|
}
|
|
2002
|
-
const data = await
|
|
2003
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2003
2004
|
let contents = {};
|
|
2004
2005
|
contents = (0, import_smithy_client._json)(data);
|
|
2005
2006
|
const response = {
|
|
@@ -2012,7 +2013,7 @@ var de_UpdateFirewallRuleCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2012
2013
|
if (output.statusCode >= 300) {
|
|
2013
2014
|
return de_CommandError(output, context);
|
|
2014
2015
|
}
|
|
2015
|
-
const data = await
|
|
2016
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2016
2017
|
let contents = {};
|
|
2017
2018
|
contents = (0, import_smithy_client._json)(data);
|
|
2018
2019
|
const response = {
|
|
@@ -2025,7 +2026,7 @@ var de_UpdateFirewallRuleGroupAssociationCommand = /* @__PURE__ */ __name(async
|
|
|
2025
2026
|
if (output.statusCode >= 300) {
|
|
2026
2027
|
return de_CommandError(output, context);
|
|
2027
2028
|
}
|
|
2028
|
-
const data = await
|
|
2029
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2029
2030
|
let contents = {};
|
|
2030
2031
|
contents = (0, import_smithy_client._json)(data);
|
|
2031
2032
|
const response = {
|
|
@@ -2038,7 +2039,7 @@ var de_UpdateOutpostResolverCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2038
2039
|
if (output.statusCode >= 300) {
|
|
2039
2040
|
return de_CommandError(output, context);
|
|
2040
2041
|
}
|
|
2041
|
-
const data = await
|
|
2042
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2042
2043
|
let contents = {};
|
|
2043
2044
|
contents = (0, import_smithy_client._json)(data);
|
|
2044
2045
|
const response = {
|
|
@@ -2051,7 +2052,7 @@ var de_UpdateResolverConfigCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2051
2052
|
if (output.statusCode >= 300) {
|
|
2052
2053
|
return de_CommandError(output, context);
|
|
2053
2054
|
}
|
|
2054
|
-
const data = await
|
|
2055
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2055
2056
|
let contents = {};
|
|
2056
2057
|
contents = (0, import_smithy_client._json)(data);
|
|
2057
2058
|
const response = {
|
|
@@ -2064,7 +2065,7 @@ var de_UpdateResolverDnssecConfigCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2064
2065
|
if (output.statusCode >= 300) {
|
|
2065
2066
|
return de_CommandError(output, context);
|
|
2066
2067
|
}
|
|
2067
|
-
const data = await
|
|
2068
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2068
2069
|
let contents = {};
|
|
2069
2070
|
contents = (0, import_smithy_client._json)(data);
|
|
2070
2071
|
const response = {
|
|
@@ -2077,7 +2078,7 @@ var de_UpdateResolverEndpointCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2077
2078
|
if (output.statusCode >= 300) {
|
|
2078
2079
|
return de_CommandError(output, context);
|
|
2079
2080
|
}
|
|
2080
|
-
const data = await
|
|
2081
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2081
2082
|
let contents = {};
|
|
2082
2083
|
contents = (0, import_smithy_client._json)(data);
|
|
2083
2084
|
const response = {
|
|
@@ -2090,7 +2091,7 @@ var de_UpdateResolverRuleCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2090
2091
|
if (output.statusCode >= 300) {
|
|
2091
2092
|
return de_CommandError(output, context);
|
|
2092
2093
|
}
|
|
2093
|
-
const data = await
|
|
2094
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2094
2095
|
let contents = {};
|
|
2095
2096
|
contents = (0, import_smithy_client._json)(data);
|
|
2096
2097
|
const response = {
|
|
@@ -2102,9 +2103,9 @@ var de_UpdateResolverRuleCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2102
2103
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2103
2104
|
const parsedOutput = {
|
|
2104
2105
|
...output,
|
|
2105
|
-
body: await
|
|
2106
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
2106
2107
|
};
|
|
2107
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2108
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
2108
2109
|
switch (errorCode) {
|
|
2109
2110
|
case "AccessDeniedException":
|
|
2110
2111
|
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
@@ -2373,7 +2374,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
2373
2374
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2374
2375
|
cfId: output.headers["x-amz-cf-id"]
|
|
2375
2376
|
}), "deserializeMetadata");
|
|
2376
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
2377
2377
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(Route53ResolverServiceException);
|
|
2378
2378
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
2379
2379
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -2400,46 +2400,6 @@ function sharedHeaders(operation) {
|
|
|
2400
2400
|
};
|
|
2401
2401
|
}
|
|
2402
2402
|
__name(sharedHeaders, "sharedHeaders");
|
|
2403
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2404
|
-
if (encoded.length) {
|
|
2405
|
-
return JSON.parse(encoded);
|
|
2406
|
-
}
|
|
2407
|
-
return {};
|
|
2408
|
-
}), "parseBody");
|
|
2409
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
2410
|
-
const value = await parseBody(errorBody, context);
|
|
2411
|
-
value.message = value.message ?? value.Message;
|
|
2412
|
-
return value;
|
|
2413
|
-
}, "parseErrorBody");
|
|
2414
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
2415
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
2416
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
2417
|
-
let cleanValue = rawValue;
|
|
2418
|
-
if (typeof cleanValue === "number") {
|
|
2419
|
-
cleanValue = cleanValue.toString();
|
|
2420
|
-
}
|
|
2421
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2422
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2423
|
-
}
|
|
2424
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2425
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2426
|
-
}
|
|
2427
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2428
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2429
|
-
}
|
|
2430
|
-
return cleanValue;
|
|
2431
|
-
}, "sanitizeErrorCode");
|
|
2432
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2433
|
-
if (headerKey !== void 0) {
|
|
2434
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2435
|
-
}
|
|
2436
|
-
if (data.code !== void 0) {
|
|
2437
|
-
return sanitizeErrorCode(data.code);
|
|
2438
|
-
}
|
|
2439
|
-
if (data["__type"] !== void 0) {
|
|
2440
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2441
|
-
}
|
|
2442
|
-
}, "loadRestJsonErrorCode");
|
|
2443
2403
|
|
|
2444
2404
|
// src/commands/AssociateFirewallRuleGroupCommand.ts
|
|
2445
2405
|
var _AssociateFirewallRuleGroupCommand = class _AssociateFirewallRuleGroupCommand 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, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
@@ -1595,43 +1596,3 @@ function sharedHeaders(operation) {
|
|
|
1595
1596
|
"x-amz-target": `Route53Resolver.${operation}`,
|
|
1596
1597
|
};
|
|
1597
1598
|
}
|
|
1598
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1599
|
-
if (encoded.length) {
|
|
1600
|
-
return JSON.parse(encoded);
|
|
1601
|
-
}
|
|
1602
|
-
return {};
|
|
1603
|
-
});
|
|
1604
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1605
|
-
const value = await parseBody(errorBody, context);
|
|
1606
|
-
value.message = value.message ?? value.Message;
|
|
1607
|
-
return value;
|
|
1608
|
-
};
|
|
1609
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1610
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1611
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1612
|
-
let cleanValue = rawValue;
|
|
1613
|
-
if (typeof cleanValue === "number") {
|
|
1614
|
-
cleanValue = cleanValue.toString();
|
|
1615
|
-
}
|
|
1616
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1617
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1618
|
-
}
|
|
1619
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1620
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1621
|
-
}
|
|
1622
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1623
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1624
|
-
}
|
|
1625
|
-
return cleanValue;
|
|
1626
|
-
};
|
|
1627
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1628
|
-
if (headerKey !== undefined) {
|
|
1629
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1630
|
-
}
|
|
1631
|
-
if (data.code !== undefined) {
|
|
1632
|
-
return sanitizeErrorCode(data.code);
|
|
1633
|
-
}
|
|
1634
|
-
if (data["__type"] !== undefined) {
|
|
1635
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1636
|
-
}
|
|
1637
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-route53resolver",
|
|
3
3
|
"description": "AWS SDK for JavaScript Route53resolver Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.0",
|
|
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-route53resolver",
|
|
@@ -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.0",
|
|
24
|
+
"@aws-sdk/core": "3.529.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.0",
|
|
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",
|