@aws-sdk/client-route-53-domains 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 +35 -75
- package/dist-es/protocols/Aws_json1_1.js +1 -40
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -835,6 +835,7 @@ var UpdateDomainNameserversRequestFilterSensitiveLog = /* @__PURE__ */ __name((o
|
|
|
835
835
|
}), "UpdateDomainNameserversRequestFilterSensitiveLog");
|
|
836
836
|
|
|
837
837
|
// src/protocols/Aws_json1_1.ts
|
|
838
|
+
var import_core2 = require("@aws-sdk/core");
|
|
838
839
|
|
|
839
840
|
|
|
840
841
|
var se_AcceptDomainTransferFromAnotherAwsAccountCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
@@ -1045,7 +1046,7 @@ var de_AcceptDomainTransferFromAnotherAwsAccountCommand = /* @__PURE__ */ __name
|
|
|
1045
1046
|
if (output.statusCode >= 300) {
|
|
1046
1047
|
return de_CommandError(output, context);
|
|
1047
1048
|
}
|
|
1048
|
-
const data = await
|
|
1049
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1049
1050
|
let contents = {};
|
|
1050
1051
|
contents = (0, import_smithy_client._json)(data);
|
|
1051
1052
|
const response = {
|
|
@@ -1058,7 +1059,7 @@ var de_AssociateDelegationSignerToDomainCommand = /* @__PURE__ */ __name(async (
|
|
|
1058
1059
|
if (output.statusCode >= 300) {
|
|
1059
1060
|
return de_CommandError(output, context);
|
|
1060
1061
|
}
|
|
1061
|
-
const data = await
|
|
1062
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1062
1063
|
let contents = {};
|
|
1063
1064
|
contents = (0, import_smithy_client._json)(data);
|
|
1064
1065
|
const response = {
|
|
@@ -1071,7 +1072,7 @@ var de_CancelDomainTransferToAnotherAwsAccountCommand = /* @__PURE__ */ __name(a
|
|
|
1071
1072
|
if (output.statusCode >= 300) {
|
|
1072
1073
|
return de_CommandError(output, context);
|
|
1073
1074
|
}
|
|
1074
|
-
const data = await
|
|
1075
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1075
1076
|
let contents = {};
|
|
1076
1077
|
contents = (0, import_smithy_client._json)(data);
|
|
1077
1078
|
const response = {
|
|
@@ -1084,7 +1085,7 @@ var de_CheckDomainAvailabilityCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1084
1085
|
if (output.statusCode >= 300) {
|
|
1085
1086
|
return de_CommandError(output, context);
|
|
1086
1087
|
}
|
|
1087
|
-
const data = await
|
|
1088
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1088
1089
|
let contents = {};
|
|
1089
1090
|
contents = (0, import_smithy_client._json)(data);
|
|
1090
1091
|
const response = {
|
|
@@ -1097,7 +1098,7 @@ var de_CheckDomainTransferabilityCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1097
1098
|
if (output.statusCode >= 300) {
|
|
1098
1099
|
return de_CommandError(output, context);
|
|
1099
1100
|
}
|
|
1100
|
-
const data = await
|
|
1101
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1101
1102
|
let contents = {};
|
|
1102
1103
|
contents = (0, import_smithy_client._json)(data);
|
|
1103
1104
|
const response = {
|
|
@@ -1110,7 +1111,7 @@ var de_DeleteDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1110
1111
|
if (output.statusCode >= 300) {
|
|
1111
1112
|
return de_CommandError(output, context);
|
|
1112
1113
|
}
|
|
1113
|
-
const data = await
|
|
1114
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1114
1115
|
let contents = {};
|
|
1115
1116
|
contents = (0, import_smithy_client._json)(data);
|
|
1116
1117
|
const response = {
|
|
@@ -1123,7 +1124,7 @@ var de_DeleteTagsForDomainCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1123
1124
|
if (output.statusCode >= 300) {
|
|
1124
1125
|
return de_CommandError(output, context);
|
|
1125
1126
|
}
|
|
1126
|
-
const data = await
|
|
1127
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1127
1128
|
let contents = {};
|
|
1128
1129
|
contents = (0, import_smithy_client._json)(data);
|
|
1129
1130
|
const response = {
|
|
@@ -1136,7 +1137,7 @@ var de_DisableDomainAutoRenewCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1136
1137
|
if (output.statusCode >= 300) {
|
|
1137
1138
|
return de_CommandError(output, context);
|
|
1138
1139
|
}
|
|
1139
|
-
const data = await
|
|
1140
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1140
1141
|
let contents = {};
|
|
1141
1142
|
contents = (0, import_smithy_client._json)(data);
|
|
1142
1143
|
const response = {
|
|
@@ -1149,7 +1150,7 @@ var de_DisableDomainTransferLockCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1149
1150
|
if (output.statusCode >= 300) {
|
|
1150
1151
|
return de_CommandError(output, context);
|
|
1151
1152
|
}
|
|
1152
|
-
const data = await
|
|
1153
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1153
1154
|
let contents = {};
|
|
1154
1155
|
contents = (0, import_smithy_client._json)(data);
|
|
1155
1156
|
const response = {
|
|
@@ -1162,7 +1163,7 @@ var de_DisassociateDelegationSignerFromDomainCommand = /* @__PURE__ */ __name(as
|
|
|
1162
1163
|
if (output.statusCode >= 300) {
|
|
1163
1164
|
return de_CommandError(output, context);
|
|
1164
1165
|
}
|
|
1165
|
-
const data = await
|
|
1166
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1166
1167
|
let contents = {};
|
|
1167
1168
|
contents = (0, import_smithy_client._json)(data);
|
|
1168
1169
|
const response = {
|
|
@@ -1175,7 +1176,7 @@ var de_EnableDomainAutoRenewCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1175
1176
|
if (output.statusCode >= 300) {
|
|
1176
1177
|
return de_CommandError(output, context);
|
|
1177
1178
|
}
|
|
1178
|
-
const data = await
|
|
1179
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1179
1180
|
let contents = {};
|
|
1180
1181
|
contents = (0, import_smithy_client._json)(data);
|
|
1181
1182
|
const response = {
|
|
@@ -1188,7 +1189,7 @@ var de_EnableDomainTransferLockCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1188
1189
|
if (output.statusCode >= 300) {
|
|
1189
1190
|
return de_CommandError(output, context);
|
|
1190
1191
|
}
|
|
1191
|
-
const data = await
|
|
1192
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1192
1193
|
let contents = {};
|
|
1193
1194
|
contents = (0, import_smithy_client._json)(data);
|
|
1194
1195
|
const response = {
|
|
@@ -1201,7 +1202,7 @@ var de_GetContactReachabilityStatusCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1201
1202
|
if (output.statusCode >= 300) {
|
|
1202
1203
|
return de_CommandError(output, context);
|
|
1203
1204
|
}
|
|
1204
|
-
const data = await
|
|
1205
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1205
1206
|
let contents = {};
|
|
1206
1207
|
contents = (0, import_smithy_client._json)(data);
|
|
1207
1208
|
const response = {
|
|
@@ -1214,7 +1215,7 @@ var de_GetDomainDetailCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1214
1215
|
if (output.statusCode >= 300) {
|
|
1215
1216
|
return de_CommandError(output, context);
|
|
1216
1217
|
}
|
|
1217
|
-
const data = await
|
|
1218
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1218
1219
|
let contents = {};
|
|
1219
1220
|
contents = de_GetDomainDetailResponse(data, context);
|
|
1220
1221
|
const response = {
|
|
@@ -1227,7 +1228,7 @@ var de_GetDomainSuggestionsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1227
1228
|
if (output.statusCode >= 300) {
|
|
1228
1229
|
return de_CommandError(output, context);
|
|
1229
1230
|
}
|
|
1230
|
-
const data = await
|
|
1231
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1231
1232
|
let contents = {};
|
|
1232
1233
|
contents = (0, import_smithy_client._json)(data);
|
|
1233
1234
|
const response = {
|
|
@@ -1240,7 +1241,7 @@ var de_GetOperationDetailCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1240
1241
|
if (output.statusCode >= 300) {
|
|
1241
1242
|
return de_CommandError(output, context);
|
|
1242
1243
|
}
|
|
1243
|
-
const data = await
|
|
1244
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1244
1245
|
let contents = {};
|
|
1245
1246
|
contents = de_GetOperationDetailResponse(data, context);
|
|
1246
1247
|
const response = {
|
|
@@ -1253,7 +1254,7 @@ var de_ListDomainsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1253
1254
|
if (output.statusCode >= 300) {
|
|
1254
1255
|
return de_CommandError(output, context);
|
|
1255
1256
|
}
|
|
1256
|
-
const data = await
|
|
1257
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1257
1258
|
let contents = {};
|
|
1258
1259
|
contents = de_ListDomainsResponse(data, context);
|
|
1259
1260
|
const response = {
|
|
@@ -1266,7 +1267,7 @@ var de_ListOperationsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1266
1267
|
if (output.statusCode >= 300) {
|
|
1267
1268
|
return de_CommandError(output, context);
|
|
1268
1269
|
}
|
|
1269
|
-
const data = await
|
|
1270
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1270
1271
|
let contents = {};
|
|
1271
1272
|
contents = de_ListOperationsResponse(data, context);
|
|
1272
1273
|
const response = {
|
|
@@ -1279,7 +1280,7 @@ var de_ListPricesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1279
1280
|
if (output.statusCode >= 300) {
|
|
1280
1281
|
return de_CommandError(output, context);
|
|
1281
1282
|
}
|
|
1282
|
-
const data = await
|
|
1283
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1283
1284
|
let contents = {};
|
|
1284
1285
|
contents = de_ListPricesResponse(data, context);
|
|
1285
1286
|
const response = {
|
|
@@ -1292,7 +1293,7 @@ var de_ListTagsForDomainCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1292
1293
|
if (output.statusCode >= 300) {
|
|
1293
1294
|
return de_CommandError(output, context);
|
|
1294
1295
|
}
|
|
1295
|
-
const data = await
|
|
1296
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1296
1297
|
let contents = {};
|
|
1297
1298
|
contents = (0, import_smithy_client._json)(data);
|
|
1298
1299
|
const response = {
|
|
@@ -1315,7 +1316,7 @@ var de_RegisterDomainCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1315
1316
|
if (output.statusCode >= 300) {
|
|
1316
1317
|
return de_CommandError(output, context);
|
|
1317
1318
|
}
|
|
1318
|
-
const data = await
|
|
1319
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1319
1320
|
let contents = {};
|
|
1320
1321
|
contents = (0, import_smithy_client._json)(data);
|
|
1321
1322
|
const response = {
|
|
@@ -1328,7 +1329,7 @@ var de_RejectDomainTransferFromAnotherAwsAccountCommand = /* @__PURE__ */ __name
|
|
|
1328
1329
|
if (output.statusCode >= 300) {
|
|
1329
1330
|
return de_CommandError(output, context);
|
|
1330
1331
|
}
|
|
1331
|
-
const data = await
|
|
1332
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1332
1333
|
let contents = {};
|
|
1333
1334
|
contents = (0, import_smithy_client._json)(data);
|
|
1334
1335
|
const response = {
|
|
@@ -1341,7 +1342,7 @@ var de_RenewDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1341
1342
|
if (output.statusCode >= 300) {
|
|
1342
1343
|
return de_CommandError(output, context);
|
|
1343
1344
|
}
|
|
1344
|
-
const data = await
|
|
1345
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1345
1346
|
let contents = {};
|
|
1346
1347
|
contents = (0, import_smithy_client._json)(data);
|
|
1347
1348
|
const response = {
|
|
@@ -1354,7 +1355,7 @@ var de_ResendContactReachabilityEmailCommand = /* @__PURE__ */ __name(async (out
|
|
|
1354
1355
|
if (output.statusCode >= 300) {
|
|
1355
1356
|
return de_CommandError(output, context);
|
|
1356
1357
|
}
|
|
1357
|
-
const data = await
|
|
1358
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1358
1359
|
let contents = {};
|
|
1359
1360
|
contents = (0, import_smithy_client._json)(data);
|
|
1360
1361
|
const response = {
|
|
@@ -1377,7 +1378,7 @@ var de_RetrieveDomainAuthCodeCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1377
1378
|
if (output.statusCode >= 300) {
|
|
1378
1379
|
return de_CommandError(output, context);
|
|
1379
1380
|
}
|
|
1380
|
-
const data = await
|
|
1381
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1381
1382
|
let contents = {};
|
|
1382
1383
|
contents = (0, import_smithy_client._json)(data);
|
|
1383
1384
|
const response = {
|
|
@@ -1390,7 +1391,7 @@ var de_TransferDomainCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1390
1391
|
if (output.statusCode >= 300) {
|
|
1391
1392
|
return de_CommandError(output, context);
|
|
1392
1393
|
}
|
|
1393
|
-
const data = await
|
|
1394
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1394
1395
|
let contents = {};
|
|
1395
1396
|
contents = (0, import_smithy_client._json)(data);
|
|
1396
1397
|
const response = {
|
|
@@ -1403,7 +1404,7 @@ var de_TransferDomainToAnotherAwsAccountCommand = /* @__PURE__ */ __name(async (
|
|
|
1403
1404
|
if (output.statusCode >= 300) {
|
|
1404
1405
|
return de_CommandError(output, context);
|
|
1405
1406
|
}
|
|
1406
|
-
const data = await
|
|
1407
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1407
1408
|
let contents = {};
|
|
1408
1409
|
contents = (0, import_smithy_client._json)(data);
|
|
1409
1410
|
const response = {
|
|
@@ -1416,7 +1417,7 @@ var de_UpdateDomainContactCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1416
1417
|
if (output.statusCode >= 300) {
|
|
1417
1418
|
return de_CommandError(output, context);
|
|
1418
1419
|
}
|
|
1419
|
-
const data = await
|
|
1420
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1420
1421
|
let contents = {};
|
|
1421
1422
|
contents = (0, import_smithy_client._json)(data);
|
|
1422
1423
|
const response = {
|
|
@@ -1429,7 +1430,7 @@ var de_UpdateDomainContactPrivacyCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1429
1430
|
if (output.statusCode >= 300) {
|
|
1430
1431
|
return de_CommandError(output, context);
|
|
1431
1432
|
}
|
|
1432
|
-
const data = await
|
|
1433
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1433
1434
|
let contents = {};
|
|
1434
1435
|
contents = (0, import_smithy_client._json)(data);
|
|
1435
1436
|
const response = {
|
|
@@ -1442,7 +1443,7 @@ var de_UpdateDomainNameserversCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1442
1443
|
if (output.statusCode >= 300) {
|
|
1443
1444
|
return de_CommandError(output, context);
|
|
1444
1445
|
}
|
|
1445
|
-
const data = await
|
|
1446
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1446
1447
|
let contents = {};
|
|
1447
1448
|
contents = (0, import_smithy_client._json)(data);
|
|
1448
1449
|
const response = {
|
|
@@ -1455,7 +1456,7 @@ var de_UpdateTagsForDomainCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1455
1456
|
if (output.statusCode >= 300) {
|
|
1456
1457
|
return de_CommandError(output, context);
|
|
1457
1458
|
}
|
|
1458
|
-
const data = await
|
|
1459
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1459
1460
|
let contents = {};
|
|
1460
1461
|
contents = (0, import_smithy_client._json)(data);
|
|
1461
1462
|
const response = {
|
|
@@ -1468,7 +1469,7 @@ var de_ViewBillingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1468
1469
|
if (output.statusCode >= 300) {
|
|
1469
1470
|
return de_CommandError(output, context);
|
|
1470
1471
|
}
|
|
1471
|
-
const data = await
|
|
1472
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1472
1473
|
let contents = {};
|
|
1473
1474
|
contents = de_ViewBillingResponse(data, context);
|
|
1474
1475
|
const response = {
|
|
@@ -1480,9 +1481,9 @@ var de_ViewBillingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1480
1481
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1481
1482
|
const parsedOutput = {
|
|
1482
1483
|
...output,
|
|
1483
|
-
body: await
|
|
1484
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1484
1485
|
};
|
|
1485
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1486
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1486
1487
|
switch (errorCode) {
|
|
1487
1488
|
case "DomainLimitExceeded":
|
|
1488
1489
|
case "com.amazonaws.route53domains#DomainLimitExceeded":
|
|
@@ -1751,7 +1752,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
1751
1752
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1752
1753
|
cfId: output.headers["x-amz-cf-id"]
|
|
1753
1754
|
}), "deserializeMetadata");
|
|
1754
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1755
1755
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(Route53DomainsServiceException);
|
|
1756
1756
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
1757
1757
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -1778,46 +1778,6 @@ function sharedHeaders(operation) {
|
|
|
1778
1778
|
};
|
|
1779
1779
|
}
|
|
1780
1780
|
__name(sharedHeaders, "sharedHeaders");
|
|
1781
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1782
|
-
if (encoded.length) {
|
|
1783
|
-
return JSON.parse(encoded);
|
|
1784
|
-
}
|
|
1785
|
-
return {};
|
|
1786
|
-
}), "parseBody");
|
|
1787
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1788
|
-
const value = await parseBody(errorBody, context);
|
|
1789
|
-
value.message = value.message ?? value.Message;
|
|
1790
|
-
return value;
|
|
1791
|
-
}, "parseErrorBody");
|
|
1792
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1793
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1794
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1795
|
-
let cleanValue = rawValue;
|
|
1796
|
-
if (typeof cleanValue === "number") {
|
|
1797
|
-
cleanValue = cleanValue.toString();
|
|
1798
|
-
}
|
|
1799
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1800
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1801
|
-
}
|
|
1802
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1803
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1804
|
-
}
|
|
1805
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1806
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1807
|
-
}
|
|
1808
|
-
return cleanValue;
|
|
1809
|
-
}, "sanitizeErrorCode");
|
|
1810
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1811
|
-
if (headerKey !== void 0) {
|
|
1812
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1813
|
-
}
|
|
1814
|
-
if (data.code !== void 0) {
|
|
1815
|
-
return sanitizeErrorCode(data.code);
|
|
1816
|
-
}
|
|
1817
|
-
if (data["__type"] !== void 0) {
|
|
1818
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1819
|
-
}
|
|
1820
|
-
}, "loadRestJsonErrorCode");
|
|
1821
1781
|
|
|
1822
1782
|
// src/commands/AcceptDomainTransferFromAnotherAwsAccountCommand.ts
|
|
1823
1783
|
var _AcceptDomainTransferFromAnotherAwsAccountCommand = class _AcceptDomainTransferFromAnotherAwsAccountCommand 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, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { DnssecLimitExceeded, DomainLimitExceeded, DuplicateRequest, InvalidInput, OperationLimitExceeded, TLDRulesViolation, UnsupportedTLD, } from "../models/models_0";
|
|
@@ -950,43 +951,3 @@ function sharedHeaders(operation) {
|
|
|
950
951
|
"x-amz-target": `Route53Domains_v20140515.${operation}`,
|
|
951
952
|
};
|
|
952
953
|
}
|
|
953
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
954
|
-
if (encoded.length) {
|
|
955
|
-
return JSON.parse(encoded);
|
|
956
|
-
}
|
|
957
|
-
return {};
|
|
958
|
-
});
|
|
959
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
960
|
-
const value = await parseBody(errorBody, context);
|
|
961
|
-
value.message = value.message ?? value.Message;
|
|
962
|
-
return value;
|
|
963
|
-
};
|
|
964
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
965
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
966
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
967
|
-
let cleanValue = rawValue;
|
|
968
|
-
if (typeof cleanValue === "number") {
|
|
969
|
-
cleanValue = cleanValue.toString();
|
|
970
|
-
}
|
|
971
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
972
|
-
cleanValue = cleanValue.split(",")[0];
|
|
973
|
-
}
|
|
974
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
975
|
-
cleanValue = cleanValue.split(":")[0];
|
|
976
|
-
}
|
|
977
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
978
|
-
cleanValue = cleanValue.split("#")[1];
|
|
979
|
-
}
|
|
980
|
-
return cleanValue;
|
|
981
|
-
};
|
|
982
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
983
|
-
if (headerKey !== undefined) {
|
|
984
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
985
|
-
}
|
|
986
|
-
if (data.code !== undefined) {
|
|
987
|
-
return sanitizeErrorCode(data.code);
|
|
988
|
-
}
|
|
989
|
-
if (data["__type"] !== undefined) {
|
|
990
|
-
return sanitizeErrorCode(data["__type"]);
|
|
991
|
-
}
|
|
992
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-route-53-domains",
|
|
3
3
|
"description": "AWS SDK for JavaScript Route 53 Domains 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-route-53-domains",
|
|
@@ -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",
|