@aws-sdk/client-global-accelerator 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 +48 -88
- package/dist-es/protocols/Aws_json1_1.js +1 -40
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -279,6 +279,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
279
279
|
var import_types = require("@smithy/types");
|
|
280
280
|
|
|
281
281
|
// src/protocols/Aws_json1_1.ts
|
|
282
|
+
var import_core2 = require("@aws-sdk/core");
|
|
282
283
|
|
|
283
284
|
|
|
284
285
|
var import_uuid = require("uuid");
|
|
@@ -1055,7 +1056,7 @@ var de_AddCustomRoutingEndpointsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1055
1056
|
if (output.statusCode >= 300) {
|
|
1056
1057
|
return de_CommandError(output, context);
|
|
1057
1058
|
}
|
|
1058
|
-
const data = await
|
|
1059
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1059
1060
|
let contents = {};
|
|
1060
1061
|
contents = (0, import_smithy_client._json)(data);
|
|
1061
1062
|
const response = {
|
|
@@ -1068,7 +1069,7 @@ var de_AddEndpointsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1068
1069
|
if (output.statusCode >= 300) {
|
|
1069
1070
|
return de_CommandError(output, context);
|
|
1070
1071
|
}
|
|
1071
|
-
const data = await
|
|
1072
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1072
1073
|
let contents = {};
|
|
1073
1074
|
contents = (0, import_smithy_client._json)(data);
|
|
1074
1075
|
const response = {
|
|
@@ -1081,7 +1082,7 @@ var de_AdvertiseByoipCidrCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1081
1082
|
if (output.statusCode >= 300) {
|
|
1082
1083
|
return de_CommandError(output, context);
|
|
1083
1084
|
}
|
|
1084
|
-
const data = await
|
|
1085
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1085
1086
|
let contents = {};
|
|
1086
1087
|
contents = de_AdvertiseByoipCidrResponse(data, context);
|
|
1087
1088
|
const response = {
|
|
@@ -1104,7 +1105,7 @@ var de_CreateAcceleratorCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1104
1105
|
if (output.statusCode >= 300) {
|
|
1105
1106
|
return de_CommandError(output, context);
|
|
1106
1107
|
}
|
|
1107
|
-
const data = await
|
|
1108
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1108
1109
|
let contents = {};
|
|
1109
1110
|
contents = de_CreateAcceleratorResponse(data, context);
|
|
1110
1111
|
const response = {
|
|
@@ -1117,7 +1118,7 @@ var de_CreateCrossAccountAttachmentCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1117
1118
|
if (output.statusCode >= 300) {
|
|
1118
1119
|
return de_CommandError(output, context);
|
|
1119
1120
|
}
|
|
1120
|
-
const data = await
|
|
1121
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1121
1122
|
let contents = {};
|
|
1122
1123
|
contents = de_CreateCrossAccountAttachmentResponse(data, context);
|
|
1123
1124
|
const response = {
|
|
@@ -1130,7 +1131,7 @@ var de_CreateCustomRoutingAcceleratorCommand = /* @__PURE__ */ __name(async (out
|
|
|
1130
1131
|
if (output.statusCode >= 300) {
|
|
1131
1132
|
return de_CommandError(output, context);
|
|
1132
1133
|
}
|
|
1133
|
-
const data = await
|
|
1134
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1134
1135
|
let contents = {};
|
|
1135
1136
|
contents = de_CreateCustomRoutingAcceleratorResponse(data, context);
|
|
1136
1137
|
const response = {
|
|
@@ -1143,7 +1144,7 @@ var de_CreateCustomRoutingEndpointGroupCommand = /* @__PURE__ */ __name(async (o
|
|
|
1143
1144
|
if (output.statusCode >= 300) {
|
|
1144
1145
|
return de_CommandError(output, context);
|
|
1145
1146
|
}
|
|
1146
|
-
const data = await
|
|
1147
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1147
1148
|
let contents = {};
|
|
1148
1149
|
contents = (0, import_smithy_client._json)(data);
|
|
1149
1150
|
const response = {
|
|
@@ -1156,7 +1157,7 @@ var de_CreateCustomRoutingListenerCommand = /* @__PURE__ */ __name(async (output
|
|
|
1156
1157
|
if (output.statusCode >= 300) {
|
|
1157
1158
|
return de_CommandError(output, context);
|
|
1158
1159
|
}
|
|
1159
|
-
const data = await
|
|
1160
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1160
1161
|
let contents = {};
|
|
1161
1162
|
contents = (0, import_smithy_client._json)(data);
|
|
1162
1163
|
const response = {
|
|
@@ -1169,7 +1170,7 @@ var de_CreateEndpointGroupCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1169
1170
|
if (output.statusCode >= 300) {
|
|
1170
1171
|
return de_CommandError(output, context);
|
|
1171
1172
|
}
|
|
1172
|
-
const data = await
|
|
1173
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1173
1174
|
let contents = {};
|
|
1174
1175
|
contents = de_CreateEndpointGroupResponse(data, context);
|
|
1175
1176
|
const response = {
|
|
@@ -1182,7 +1183,7 @@ var de_CreateListenerCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1182
1183
|
if (output.statusCode >= 300) {
|
|
1183
1184
|
return de_CommandError(output, context);
|
|
1184
1185
|
}
|
|
1185
|
-
const data = await
|
|
1186
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1186
1187
|
let contents = {};
|
|
1187
1188
|
contents = (0, import_smithy_client._json)(data);
|
|
1188
1189
|
const response = {
|
|
@@ -1275,7 +1276,7 @@ var de_DeprovisionByoipCidrCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1275
1276
|
if (output.statusCode >= 300) {
|
|
1276
1277
|
return de_CommandError(output, context);
|
|
1277
1278
|
}
|
|
1278
|
-
const data = await
|
|
1279
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1279
1280
|
let contents = {};
|
|
1280
1281
|
contents = de_DeprovisionByoipCidrResponse(data, context);
|
|
1281
1282
|
const response = {
|
|
@@ -1288,7 +1289,7 @@ var de_DescribeAcceleratorCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1288
1289
|
if (output.statusCode >= 300) {
|
|
1289
1290
|
return de_CommandError(output, context);
|
|
1290
1291
|
}
|
|
1291
|
-
const data = await
|
|
1292
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1292
1293
|
let contents = {};
|
|
1293
1294
|
contents = de_DescribeAcceleratorResponse(data, context);
|
|
1294
1295
|
const response = {
|
|
@@ -1301,7 +1302,7 @@ var de_DescribeAcceleratorAttributesCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1301
1302
|
if (output.statusCode >= 300) {
|
|
1302
1303
|
return de_CommandError(output, context);
|
|
1303
1304
|
}
|
|
1304
|
-
const data = await
|
|
1305
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1305
1306
|
let contents = {};
|
|
1306
1307
|
contents = (0, import_smithy_client._json)(data);
|
|
1307
1308
|
const response = {
|
|
@@ -1314,7 +1315,7 @@ var de_DescribeCrossAccountAttachmentCommand = /* @__PURE__ */ __name(async (out
|
|
|
1314
1315
|
if (output.statusCode >= 300) {
|
|
1315
1316
|
return de_CommandError(output, context);
|
|
1316
1317
|
}
|
|
1317
|
-
const data = await
|
|
1318
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1318
1319
|
let contents = {};
|
|
1319
1320
|
contents = de_DescribeCrossAccountAttachmentResponse(data, context);
|
|
1320
1321
|
const response = {
|
|
@@ -1327,7 +1328,7 @@ var de_DescribeCustomRoutingAcceleratorCommand = /* @__PURE__ */ __name(async (o
|
|
|
1327
1328
|
if (output.statusCode >= 300) {
|
|
1328
1329
|
return de_CommandError(output, context);
|
|
1329
1330
|
}
|
|
1330
|
-
const data = await
|
|
1331
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1331
1332
|
let contents = {};
|
|
1332
1333
|
contents = de_DescribeCustomRoutingAcceleratorResponse(data, context);
|
|
1333
1334
|
const response = {
|
|
@@ -1340,7 +1341,7 @@ var de_DescribeCustomRoutingAcceleratorAttributesCommand = /* @__PURE__ */ __nam
|
|
|
1340
1341
|
if (output.statusCode >= 300) {
|
|
1341
1342
|
return de_CommandError(output, context);
|
|
1342
1343
|
}
|
|
1343
|
-
const data = await
|
|
1344
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1344
1345
|
let contents = {};
|
|
1345
1346
|
contents = (0, import_smithy_client._json)(data);
|
|
1346
1347
|
const response = {
|
|
@@ -1353,7 +1354,7 @@ var de_DescribeCustomRoutingEndpointGroupCommand = /* @__PURE__ */ __name(async
|
|
|
1353
1354
|
if (output.statusCode >= 300) {
|
|
1354
1355
|
return de_CommandError(output, context);
|
|
1355
1356
|
}
|
|
1356
|
-
const data = await
|
|
1357
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1357
1358
|
let contents = {};
|
|
1358
1359
|
contents = (0, import_smithy_client._json)(data);
|
|
1359
1360
|
const response = {
|
|
@@ -1366,7 +1367,7 @@ var de_DescribeCustomRoutingListenerCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1366
1367
|
if (output.statusCode >= 300) {
|
|
1367
1368
|
return de_CommandError(output, context);
|
|
1368
1369
|
}
|
|
1369
|
-
const data = await
|
|
1370
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1370
1371
|
let contents = {};
|
|
1371
1372
|
contents = (0, import_smithy_client._json)(data);
|
|
1372
1373
|
const response = {
|
|
@@ -1379,7 +1380,7 @@ var de_DescribeEndpointGroupCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1379
1380
|
if (output.statusCode >= 300) {
|
|
1380
1381
|
return de_CommandError(output, context);
|
|
1381
1382
|
}
|
|
1382
|
-
const data = await
|
|
1383
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1383
1384
|
let contents = {};
|
|
1384
1385
|
contents = de_DescribeEndpointGroupResponse(data, context);
|
|
1385
1386
|
const response = {
|
|
@@ -1392,7 +1393,7 @@ var de_DescribeListenerCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1392
1393
|
if (output.statusCode >= 300) {
|
|
1393
1394
|
return de_CommandError(output, context);
|
|
1394
1395
|
}
|
|
1395
|
-
const data = await
|
|
1396
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1396
1397
|
let contents = {};
|
|
1397
1398
|
contents = (0, import_smithy_client._json)(data);
|
|
1398
1399
|
const response = {
|
|
@@ -1405,7 +1406,7 @@ var de_ListAcceleratorsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1405
1406
|
if (output.statusCode >= 300) {
|
|
1406
1407
|
return de_CommandError(output, context);
|
|
1407
1408
|
}
|
|
1408
|
-
const data = await
|
|
1409
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1409
1410
|
let contents = {};
|
|
1410
1411
|
contents = de_ListAcceleratorsResponse(data, context);
|
|
1411
1412
|
const response = {
|
|
@@ -1418,7 +1419,7 @@ var de_ListByoipCidrsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1418
1419
|
if (output.statusCode >= 300) {
|
|
1419
1420
|
return de_CommandError(output, context);
|
|
1420
1421
|
}
|
|
1421
|
-
const data = await
|
|
1422
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1422
1423
|
let contents = {};
|
|
1423
1424
|
contents = de_ListByoipCidrsResponse(data, context);
|
|
1424
1425
|
const response = {
|
|
@@ -1431,7 +1432,7 @@ var de_ListCrossAccountAttachmentsCommand = /* @__PURE__ */ __name(async (output
|
|
|
1431
1432
|
if (output.statusCode >= 300) {
|
|
1432
1433
|
return de_CommandError(output, context);
|
|
1433
1434
|
}
|
|
1434
|
-
const data = await
|
|
1435
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1435
1436
|
let contents = {};
|
|
1436
1437
|
contents = de_ListCrossAccountAttachmentsResponse(data, context);
|
|
1437
1438
|
const response = {
|
|
@@ -1444,7 +1445,7 @@ var de_ListCrossAccountResourceAccountsCommand = /* @__PURE__ */ __name(async (o
|
|
|
1444
1445
|
if (output.statusCode >= 300) {
|
|
1445
1446
|
return de_CommandError(output, context);
|
|
1446
1447
|
}
|
|
1447
|
-
const data = await
|
|
1448
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1448
1449
|
let contents = {};
|
|
1449
1450
|
contents = (0, import_smithy_client._json)(data);
|
|
1450
1451
|
const response = {
|
|
@@ -1457,7 +1458,7 @@ var de_ListCrossAccountResourcesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1457
1458
|
if (output.statusCode >= 300) {
|
|
1458
1459
|
return de_CommandError(output, context);
|
|
1459
1460
|
}
|
|
1460
|
-
const data = await
|
|
1461
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1461
1462
|
let contents = {};
|
|
1462
1463
|
contents = (0, import_smithy_client._json)(data);
|
|
1463
1464
|
const response = {
|
|
@@ -1470,7 +1471,7 @@ var de_ListCustomRoutingAcceleratorsCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1470
1471
|
if (output.statusCode >= 300) {
|
|
1471
1472
|
return de_CommandError(output, context);
|
|
1472
1473
|
}
|
|
1473
|
-
const data = await
|
|
1474
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1474
1475
|
let contents = {};
|
|
1475
1476
|
contents = de_ListCustomRoutingAcceleratorsResponse(data, context);
|
|
1476
1477
|
const response = {
|
|
@@ -1483,7 +1484,7 @@ var de_ListCustomRoutingEndpointGroupsCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1483
1484
|
if (output.statusCode >= 300) {
|
|
1484
1485
|
return de_CommandError(output, context);
|
|
1485
1486
|
}
|
|
1486
|
-
const data = await
|
|
1487
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1487
1488
|
let contents = {};
|
|
1488
1489
|
contents = (0, import_smithy_client._json)(data);
|
|
1489
1490
|
const response = {
|
|
@@ -1496,7 +1497,7 @@ var de_ListCustomRoutingListenersCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1496
1497
|
if (output.statusCode >= 300) {
|
|
1497
1498
|
return de_CommandError(output, context);
|
|
1498
1499
|
}
|
|
1499
|
-
const data = await
|
|
1500
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1500
1501
|
let contents = {};
|
|
1501
1502
|
contents = (0, import_smithy_client._json)(data);
|
|
1502
1503
|
const response = {
|
|
@@ -1509,7 +1510,7 @@ var de_ListCustomRoutingPortMappingsCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1509
1510
|
if (output.statusCode >= 300) {
|
|
1510
1511
|
return de_CommandError(output, context);
|
|
1511
1512
|
}
|
|
1512
|
-
const data = await
|
|
1513
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1513
1514
|
let contents = {};
|
|
1514
1515
|
contents = (0, import_smithy_client._json)(data);
|
|
1515
1516
|
const response = {
|
|
@@ -1522,7 +1523,7 @@ var de_ListCustomRoutingPortMappingsByDestinationCommand = /* @__PURE__ */ __nam
|
|
|
1522
1523
|
if (output.statusCode >= 300) {
|
|
1523
1524
|
return de_CommandError(output, context);
|
|
1524
1525
|
}
|
|
1525
|
-
const data = await
|
|
1526
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1526
1527
|
let contents = {};
|
|
1527
1528
|
contents = (0, import_smithy_client._json)(data);
|
|
1528
1529
|
const response = {
|
|
@@ -1535,7 +1536,7 @@ var de_ListEndpointGroupsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1535
1536
|
if (output.statusCode >= 300) {
|
|
1536
1537
|
return de_CommandError(output, context);
|
|
1537
1538
|
}
|
|
1538
|
-
const data = await
|
|
1539
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1539
1540
|
let contents = {};
|
|
1540
1541
|
contents = de_ListEndpointGroupsResponse(data, context);
|
|
1541
1542
|
const response = {
|
|
@@ -1548,7 +1549,7 @@ var de_ListListenersCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1548
1549
|
if (output.statusCode >= 300) {
|
|
1549
1550
|
return de_CommandError(output, context);
|
|
1550
1551
|
}
|
|
1551
|
-
const data = await
|
|
1552
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1552
1553
|
let contents = {};
|
|
1553
1554
|
contents = (0, import_smithy_client._json)(data);
|
|
1554
1555
|
const response = {
|
|
@@ -1561,7 +1562,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1561
1562
|
if (output.statusCode >= 300) {
|
|
1562
1563
|
return de_CommandError(output, context);
|
|
1563
1564
|
}
|
|
1564
|
-
const data = await
|
|
1565
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1565
1566
|
let contents = {};
|
|
1566
1567
|
contents = (0, import_smithy_client._json)(data);
|
|
1567
1568
|
const response = {
|
|
@@ -1574,7 +1575,7 @@ var de_ProvisionByoipCidrCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1574
1575
|
if (output.statusCode >= 300) {
|
|
1575
1576
|
return de_CommandError(output, context);
|
|
1576
1577
|
}
|
|
1577
|
-
const data = await
|
|
1578
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1578
1579
|
let contents = {};
|
|
1579
1580
|
contents = de_ProvisionByoipCidrResponse(data, context);
|
|
1580
1581
|
const response = {
|
|
@@ -1607,7 +1608,7 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1607
1608
|
if (output.statusCode >= 300) {
|
|
1608
1609
|
return de_CommandError(output, context);
|
|
1609
1610
|
}
|
|
1610
|
-
const data = await
|
|
1611
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1611
1612
|
let contents = {};
|
|
1612
1613
|
contents = (0, import_smithy_client._json)(data);
|
|
1613
1614
|
const response = {
|
|
@@ -1620,7 +1621,7 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1620
1621
|
if (output.statusCode >= 300) {
|
|
1621
1622
|
return de_CommandError(output, context);
|
|
1622
1623
|
}
|
|
1623
|
-
const data = await
|
|
1624
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1624
1625
|
let contents = {};
|
|
1625
1626
|
contents = (0, import_smithy_client._json)(data);
|
|
1626
1627
|
const response = {
|
|
@@ -1633,7 +1634,7 @@ var de_UpdateAcceleratorCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1633
1634
|
if (output.statusCode >= 300) {
|
|
1634
1635
|
return de_CommandError(output, context);
|
|
1635
1636
|
}
|
|
1636
|
-
const data = await
|
|
1637
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1637
1638
|
let contents = {};
|
|
1638
1639
|
contents = de_UpdateAcceleratorResponse(data, context);
|
|
1639
1640
|
const response = {
|
|
@@ -1646,7 +1647,7 @@ var de_UpdateAcceleratorAttributesCommand = /* @__PURE__ */ __name(async (output
|
|
|
1646
1647
|
if (output.statusCode >= 300) {
|
|
1647
1648
|
return de_CommandError(output, context);
|
|
1648
1649
|
}
|
|
1649
|
-
const data = await
|
|
1650
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1650
1651
|
let contents = {};
|
|
1651
1652
|
contents = (0, import_smithy_client._json)(data);
|
|
1652
1653
|
const response = {
|
|
@@ -1659,7 +1660,7 @@ var de_UpdateCrossAccountAttachmentCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1659
1660
|
if (output.statusCode >= 300) {
|
|
1660
1661
|
return de_CommandError(output, context);
|
|
1661
1662
|
}
|
|
1662
|
-
const data = await
|
|
1663
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1663
1664
|
let contents = {};
|
|
1664
1665
|
contents = de_UpdateCrossAccountAttachmentResponse(data, context);
|
|
1665
1666
|
const response = {
|
|
@@ -1672,7 +1673,7 @@ var de_UpdateCustomRoutingAcceleratorCommand = /* @__PURE__ */ __name(async (out
|
|
|
1672
1673
|
if (output.statusCode >= 300) {
|
|
1673
1674
|
return de_CommandError(output, context);
|
|
1674
1675
|
}
|
|
1675
|
-
const data = await
|
|
1676
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1676
1677
|
let contents = {};
|
|
1677
1678
|
contents = de_UpdateCustomRoutingAcceleratorResponse(data, context);
|
|
1678
1679
|
const response = {
|
|
@@ -1685,7 +1686,7 @@ var de_UpdateCustomRoutingAcceleratorAttributesCommand = /* @__PURE__ */ __name(
|
|
|
1685
1686
|
if (output.statusCode >= 300) {
|
|
1686
1687
|
return de_CommandError(output, context);
|
|
1687
1688
|
}
|
|
1688
|
-
const data = await
|
|
1689
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1689
1690
|
let contents = {};
|
|
1690
1691
|
contents = (0, import_smithy_client._json)(data);
|
|
1691
1692
|
const response = {
|
|
@@ -1698,7 +1699,7 @@ var de_UpdateCustomRoutingListenerCommand = /* @__PURE__ */ __name(async (output
|
|
|
1698
1699
|
if (output.statusCode >= 300) {
|
|
1699
1700
|
return de_CommandError(output, context);
|
|
1700
1701
|
}
|
|
1701
|
-
const data = await
|
|
1702
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1702
1703
|
let contents = {};
|
|
1703
1704
|
contents = (0, import_smithy_client._json)(data);
|
|
1704
1705
|
const response = {
|
|
@@ -1711,7 +1712,7 @@ var de_UpdateEndpointGroupCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1711
1712
|
if (output.statusCode >= 300) {
|
|
1712
1713
|
return de_CommandError(output, context);
|
|
1713
1714
|
}
|
|
1714
|
-
const data = await
|
|
1715
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1715
1716
|
let contents = {};
|
|
1716
1717
|
contents = de_UpdateEndpointGroupResponse(data, context);
|
|
1717
1718
|
const response = {
|
|
@@ -1724,7 +1725,7 @@ var de_UpdateListenerCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1724
1725
|
if (output.statusCode >= 300) {
|
|
1725
1726
|
return de_CommandError(output, context);
|
|
1726
1727
|
}
|
|
1727
|
-
const data = await
|
|
1728
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1728
1729
|
let contents = {};
|
|
1729
1730
|
contents = (0, import_smithy_client._json)(data);
|
|
1730
1731
|
const response = {
|
|
@@ -1737,7 +1738,7 @@ var de_WithdrawByoipCidrCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1737
1738
|
if (output.statusCode >= 300) {
|
|
1738
1739
|
return de_CommandError(output, context);
|
|
1739
1740
|
}
|
|
1740
|
-
const data = await
|
|
1741
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1741
1742
|
let contents = {};
|
|
1742
1743
|
contents = de_WithdrawByoipCidrResponse(data, context);
|
|
1743
1744
|
const response = {
|
|
@@ -1749,9 +1750,9 @@ var de_WithdrawByoipCidrCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1749
1750
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1750
1751
|
const parsedOutput = {
|
|
1751
1752
|
...output,
|
|
1752
|
-
body: await
|
|
1753
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1753
1754
|
};
|
|
1754
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1755
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1755
1756
|
switch (errorCode) {
|
|
1756
1757
|
case "AccessDeniedException":
|
|
1757
1758
|
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
@@ -2312,7 +2313,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
2312
2313
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2313
2314
|
cfId: output.headers["x-amz-cf-id"]
|
|
2314
2315
|
}), "deserializeMetadata");
|
|
2315
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
2316
2316
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(GlobalAcceleratorServiceException);
|
|
2317
2317
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
2318
2318
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -2339,46 +2339,6 @@ function sharedHeaders(operation) {
|
|
|
2339
2339
|
};
|
|
2340
2340
|
}
|
|
2341
2341
|
__name(sharedHeaders, "sharedHeaders");
|
|
2342
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2343
|
-
if (encoded.length) {
|
|
2344
|
-
return JSON.parse(encoded);
|
|
2345
|
-
}
|
|
2346
|
-
return {};
|
|
2347
|
-
}), "parseBody");
|
|
2348
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
2349
|
-
const value = await parseBody(errorBody, context);
|
|
2350
|
-
value.message = value.message ?? value.Message;
|
|
2351
|
-
return value;
|
|
2352
|
-
}, "parseErrorBody");
|
|
2353
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
2354
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
2355
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
2356
|
-
let cleanValue = rawValue;
|
|
2357
|
-
if (typeof cleanValue === "number") {
|
|
2358
|
-
cleanValue = cleanValue.toString();
|
|
2359
|
-
}
|
|
2360
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2361
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2362
|
-
}
|
|
2363
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2364
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2365
|
-
}
|
|
2366
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2367
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2368
|
-
}
|
|
2369
|
-
return cleanValue;
|
|
2370
|
-
}, "sanitizeErrorCode");
|
|
2371
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2372
|
-
if (headerKey !== void 0) {
|
|
2373
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2374
|
-
}
|
|
2375
|
-
if (data.code !== void 0) {
|
|
2376
|
-
return sanitizeErrorCode(data.code);
|
|
2377
|
-
}
|
|
2378
|
-
if (data["__type"] !== void 0) {
|
|
2379
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2380
|
-
}
|
|
2381
|
-
}, "loadRestJsonErrorCode");
|
|
2382
2342
|
|
|
2383
2343
|
// src/commands/AddCustomRoutingEndpointsCommand.ts
|
|
2384
2344
|
var _AddCustomRoutingEndpointsCommand = class _AddCustomRoutingEndpointsCommand 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, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
@@ -1640,43 +1641,3 @@ function sharedHeaders(operation) {
|
|
|
1640
1641
|
"x-amz-target": `GlobalAccelerator_V20180706.${operation}`,
|
|
1641
1642
|
};
|
|
1642
1643
|
}
|
|
1643
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1644
|
-
if (encoded.length) {
|
|
1645
|
-
return JSON.parse(encoded);
|
|
1646
|
-
}
|
|
1647
|
-
return {};
|
|
1648
|
-
});
|
|
1649
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1650
|
-
const value = await parseBody(errorBody, context);
|
|
1651
|
-
value.message = value.message ?? value.Message;
|
|
1652
|
-
return value;
|
|
1653
|
-
};
|
|
1654
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1655
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1656
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1657
|
-
let cleanValue = rawValue;
|
|
1658
|
-
if (typeof cleanValue === "number") {
|
|
1659
|
-
cleanValue = cleanValue.toString();
|
|
1660
|
-
}
|
|
1661
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1662
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1663
|
-
}
|
|
1664
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1665
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1666
|
-
}
|
|
1667
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1668
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1669
|
-
}
|
|
1670
|
-
return cleanValue;
|
|
1671
|
-
};
|
|
1672
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1673
|
-
if (headerKey !== undefined) {
|
|
1674
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1675
|
-
}
|
|
1676
|
-
if (data.code !== undefined) {
|
|
1677
|
-
return sanitizeErrorCode(data.code);
|
|
1678
|
-
}
|
|
1679
|
-
if (data["__type"] !== undefined) {
|
|
1680
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1681
|
-
}
|
|
1682
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-global-accelerator",
|
|
3
3
|
"description": "AWS SDK for JavaScript Global Accelerator 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-global-accelerator",
|
|
@@ -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",
|