@aws-sdk/client-pinpoint-email 3.50.0 → 3.53.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/CHANGELOG.md +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/PinpointEmailServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +134 -3
- package/dist-cjs/protocols/Aws_restJson1.js +414 -1385
- package/dist-es/index.js +1 -0
- package/dist-es/models/PinpointEmailServiceException.js +12 -0
- package/dist-es/models/models_0.js +122 -1
- package/dist-es/protocols/Aws_restJson1.js +877 -1564
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/PinpointEmailServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +72 -41
- package/dist-types/ts3.4/PinpointEmail.d.ts +215 -0
- package/dist-types/ts3.4/PinpointEmailClient.d.ts +115 -0
- package/dist-types/ts3.4/commands/CreateConfigurationSetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateConfigurationSetEventDestinationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateDedicatedIpPoolCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateDeliverabilityTestReportCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateEmailIdentityCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteConfigurationSetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteConfigurationSetEventDestinationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteDedicatedIpPoolCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteEmailIdentityCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetAccountCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetBlacklistReportsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetConfigurationSetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetConfigurationSetEventDestinationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetDedicatedIpCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetDedicatedIpsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetDeliverabilityDashboardOptionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetDeliverabilityTestReportCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetDomainDeliverabilityCampaignCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetDomainStatisticsReportCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetEmailIdentityCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListConfigurationSetsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListDedicatedIpPoolsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListDeliverabilityTestReportsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListDomainDeliverabilityCampaignsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListEmailIdentitiesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutAccountDedicatedIpWarmupAttributesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutAccountSendingAttributesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutConfigurationSetDeliveryOptionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutConfigurationSetReputationOptionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutConfigurationSetSendingOptionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutConfigurationSetTrackingOptionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutDedicatedIpInPoolCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutDedicatedIpWarmupAttributesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutDeliverabilityDashboardOptionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutEmailIdentityDkimAttributesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutEmailIdentityFeedbackAttributesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutEmailIdentityMailFromAttributesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/SendEmailCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateConfigurationSetEventDestinationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +42 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/PinpointEmailServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1463 -0
- package/dist-types/ts3.4/pagination/GetDedicatedIpsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListConfigurationSetsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListDedicatedIpPoolsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListDeliverabilityTestReportsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListDomainDeliverabilityCampaignsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListEmailIdentitiesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +7 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +128 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +33 -33
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { AccountSuspendedException, AlreadyExistsException, BadRequestException, ConcurrentModificationException, LimitExceededException, MailFromDomainNotVerifiedException, MessageRejected, NotFoundException, SendingPausedException, TooManyRequestsException, } from "../models/models_0";
|
|
5
|
+
import { PinpointEmailServiceException as __BaseException } from "../models/PinpointEmailServiceException";
|
|
4
6
|
export var serializeAws_restJson1CreateConfigurationSetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
7
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
6
8
|
return __generator(this, function (_c) {
|
|
@@ -1312,16 +1314,16 @@ export var deserializeAws_restJson1CreateConfigurationSetCommand = function (out
|
|
|
1312
1314
|
});
|
|
1313
1315
|
}); };
|
|
1314
1316
|
var deserializeAws_restJson1CreateConfigurationSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1315
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1316
|
-
var
|
|
1317
|
-
return __generator(this, function (
|
|
1318
|
-
switch (
|
|
1317
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1318
|
+
var _c;
|
|
1319
|
+
return __generator(this, function (_d) {
|
|
1320
|
+
switch (_d.label) {
|
|
1319
1321
|
case 0:
|
|
1320
1322
|
_a = [__assign({}, output)];
|
|
1321
|
-
|
|
1323
|
+
_c = {};
|
|
1322
1324
|
return [4, parseBody(output.body, context)];
|
|
1323
1325
|
case 1:
|
|
1324
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1326
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1325
1327
|
errorCode = "UnknownError";
|
|
1326
1328
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1327
1329
|
_b = errorCode;
|
|
@@ -1340,52 +1342,26 @@ var deserializeAws_restJson1CreateConfigurationSetCommandError = function (outpu
|
|
|
1340
1342
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 12];
|
|
1341
1343
|
}
|
|
1342
1344
|
return [3, 14];
|
|
1343
|
-
case 2:
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
case
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
case 4
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
case
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
case 6:
|
|
1356
|
-
_e = [{}];
|
|
1357
|
-
return [4, deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
1358
|
-
case 7:
|
|
1359
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1360
|
-
return [3, 15];
|
|
1361
|
-
case 8:
|
|
1362
|
-
_f = [{}];
|
|
1363
|
-
return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1364
|
-
case 9:
|
|
1365
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1366
|
-
return [3, 15];
|
|
1367
|
-
case 10:
|
|
1368
|
-
_g = [{}];
|
|
1369
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1370
|
-
case 11:
|
|
1371
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1372
|
-
return [3, 15];
|
|
1373
|
-
case 12:
|
|
1374
|
-
_h = [{}];
|
|
1375
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1376
|
-
case 13:
|
|
1377
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1378
|
-
return [3, 15];
|
|
1345
|
+
case 2: return [4, deserializeAws_restJson1AlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
1346
|
+
case 3: throw _d.sent();
|
|
1347
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1348
|
+
case 5: throw _d.sent();
|
|
1349
|
+
case 6: return [4, deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
1350
|
+
case 7: throw _d.sent();
|
|
1351
|
+
case 8: return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1352
|
+
case 9: throw _d.sent();
|
|
1353
|
+
case 10: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1354
|
+
case 11: throw _d.sent();
|
|
1355
|
+
case 12: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1356
|
+
case 13: throw _d.sent();
|
|
1379
1357
|
case 14:
|
|
1380
1358
|
parsedBody = parsedOutput.body;
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
response
|
|
1387
|
-
delete response.Message;
|
|
1388
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1359
|
+
response = new __BaseException({
|
|
1360
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1361
|
+
$fault: "client",
|
|
1362
|
+
$metadata: deserializeMetadata(output),
|
|
1363
|
+
});
|
|
1364
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1389
1365
|
}
|
|
1390
1366
|
});
|
|
1391
1367
|
}); };
|
|
@@ -1408,16 +1384,16 @@ export var deserializeAws_restJson1CreateConfigurationSetEventDestinationCommand
|
|
|
1408
1384
|
});
|
|
1409
1385
|
}); };
|
|
1410
1386
|
var deserializeAws_restJson1CreateConfigurationSetEventDestinationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1411
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1412
|
-
var
|
|
1413
|
-
return __generator(this, function (
|
|
1414
|
-
switch (
|
|
1387
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1388
|
+
var _c;
|
|
1389
|
+
return __generator(this, function (_d) {
|
|
1390
|
+
switch (_d.label) {
|
|
1415
1391
|
case 0:
|
|
1416
1392
|
_a = [__assign({}, output)];
|
|
1417
|
-
|
|
1393
|
+
_c = {};
|
|
1418
1394
|
return [4, parseBody(output.body, context)];
|
|
1419
1395
|
case 1:
|
|
1420
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1396
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1421
1397
|
errorCode = "UnknownError";
|
|
1422
1398
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1423
1399
|
_b = errorCode;
|
|
@@ -1434,46 +1410,24 @@ var deserializeAws_restJson1CreateConfigurationSetEventDestinationCommandError =
|
|
|
1434
1410
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 10];
|
|
1435
1411
|
}
|
|
1436
1412
|
return [3, 12];
|
|
1437
|
-
case 2:
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
case
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
case 4
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
case
|
|
1447
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1448
|
-
return [3, 13];
|
|
1449
|
-
case 6:
|
|
1450
|
-
_e = [{}];
|
|
1451
|
-
return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1452
|
-
case 7:
|
|
1453
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1454
|
-
return [3, 13];
|
|
1455
|
-
case 8:
|
|
1456
|
-
_f = [{}];
|
|
1457
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1458
|
-
case 9:
|
|
1459
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1460
|
-
return [3, 13];
|
|
1461
|
-
case 10:
|
|
1462
|
-
_g = [{}];
|
|
1463
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1464
|
-
case 11:
|
|
1465
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1466
|
-
return [3, 13];
|
|
1413
|
+
case 2: return [4, deserializeAws_restJson1AlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
1414
|
+
case 3: throw _d.sent();
|
|
1415
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1416
|
+
case 5: throw _d.sent();
|
|
1417
|
+
case 6: return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1418
|
+
case 7: throw _d.sent();
|
|
1419
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1420
|
+
case 9: throw _d.sent();
|
|
1421
|
+
case 10: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1422
|
+
case 11: throw _d.sent();
|
|
1467
1423
|
case 12:
|
|
1468
1424
|
parsedBody = parsedOutput.body;
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
response
|
|
1475
|
-
delete response.Message;
|
|
1476
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1425
|
+
response = new __BaseException({
|
|
1426
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1427
|
+
$fault: "client",
|
|
1428
|
+
$metadata: deserializeMetadata(output),
|
|
1429
|
+
});
|
|
1430
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1477
1431
|
}
|
|
1478
1432
|
});
|
|
1479
1433
|
}); };
|
|
@@ -1496,16 +1450,16 @@ export var deserializeAws_restJson1CreateDedicatedIpPoolCommand = function (outp
|
|
|
1496
1450
|
});
|
|
1497
1451
|
}); };
|
|
1498
1452
|
var deserializeAws_restJson1CreateDedicatedIpPoolCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1499
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1500
|
-
var
|
|
1501
|
-
return __generator(this, function (
|
|
1502
|
-
switch (
|
|
1453
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1454
|
+
var _c;
|
|
1455
|
+
return __generator(this, function (_d) {
|
|
1456
|
+
switch (_d.label) {
|
|
1503
1457
|
case 0:
|
|
1504
1458
|
_a = [__assign({}, output)];
|
|
1505
|
-
|
|
1459
|
+
_c = {};
|
|
1506
1460
|
return [4, parseBody(output.body, context)];
|
|
1507
1461
|
case 1:
|
|
1508
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1462
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1509
1463
|
errorCode = "UnknownError";
|
|
1510
1464
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1511
1465
|
_b = errorCode;
|
|
@@ -1522,46 +1476,24 @@ var deserializeAws_restJson1CreateDedicatedIpPoolCommandError = function (output
|
|
|
1522
1476
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 10];
|
|
1523
1477
|
}
|
|
1524
1478
|
return [3, 12];
|
|
1525
|
-
case 2:
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
case
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
case 4
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
case
|
|
1535
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1536
|
-
return [3, 13];
|
|
1537
|
-
case 6:
|
|
1538
|
-
_e = [{}];
|
|
1539
|
-
return [4, deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
1540
|
-
case 7:
|
|
1541
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1542
|
-
return [3, 13];
|
|
1543
|
-
case 8:
|
|
1544
|
-
_f = [{}];
|
|
1545
|
-
return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1546
|
-
case 9:
|
|
1547
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1548
|
-
return [3, 13];
|
|
1549
|
-
case 10:
|
|
1550
|
-
_g = [{}];
|
|
1551
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1552
|
-
case 11:
|
|
1553
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1554
|
-
return [3, 13];
|
|
1479
|
+
case 2: return [4, deserializeAws_restJson1AlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
1480
|
+
case 3: throw _d.sent();
|
|
1481
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1482
|
+
case 5: throw _d.sent();
|
|
1483
|
+
case 6: return [4, deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
1484
|
+
case 7: throw _d.sent();
|
|
1485
|
+
case 8: return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1486
|
+
case 9: throw _d.sent();
|
|
1487
|
+
case 10: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1488
|
+
case 11: throw _d.sent();
|
|
1555
1489
|
case 12:
|
|
1556
1490
|
parsedBody = parsedOutput.body;
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
response
|
|
1563
|
-
delete response.Message;
|
|
1564
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1491
|
+
response = new __BaseException({
|
|
1492
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1493
|
+
$fault: "client",
|
|
1494
|
+
$metadata: deserializeMetadata(output),
|
|
1495
|
+
});
|
|
1496
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1565
1497
|
}
|
|
1566
1498
|
});
|
|
1567
1499
|
}); };
|
|
@@ -1594,16 +1526,16 @@ export var deserializeAws_restJson1CreateDeliverabilityTestReportCommand = funct
|
|
|
1594
1526
|
});
|
|
1595
1527
|
}); };
|
|
1596
1528
|
var deserializeAws_restJson1CreateDeliverabilityTestReportCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1597
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1598
|
-
var
|
|
1599
|
-
return __generator(this, function (
|
|
1600
|
-
switch (
|
|
1529
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1530
|
+
var _c;
|
|
1531
|
+
return __generator(this, function (_d) {
|
|
1532
|
+
switch (_d.label) {
|
|
1601
1533
|
case 0:
|
|
1602
1534
|
_a = [__assign({}, output)];
|
|
1603
|
-
|
|
1535
|
+
_c = {};
|
|
1604
1536
|
return [4, parseBody(output.body, context)];
|
|
1605
1537
|
case 1:
|
|
1606
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1538
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1607
1539
|
errorCode = "UnknownError";
|
|
1608
1540
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1609
1541
|
_b = errorCode;
|
|
@@ -1628,70 +1560,32 @@ var deserializeAws_restJson1CreateDeliverabilityTestReportCommandError = functio
|
|
|
1628
1560
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 18];
|
|
1629
1561
|
}
|
|
1630
1562
|
return [3, 20];
|
|
1631
|
-
case 2:
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
case
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
case 4
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
case
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
case
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
case
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
case 8:
|
|
1650
|
-
_f = [{}];
|
|
1651
|
-
return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1652
|
-
case 9:
|
|
1653
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1654
|
-
return [3, 21];
|
|
1655
|
-
case 10:
|
|
1656
|
-
_g = [{}];
|
|
1657
|
-
return [4, deserializeAws_restJson1MailFromDomainNotVerifiedExceptionResponse(parsedOutput, context)];
|
|
1658
|
-
case 11:
|
|
1659
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1660
|
-
return [3, 21];
|
|
1661
|
-
case 12:
|
|
1662
|
-
_h = [{}];
|
|
1663
|
-
return [4, deserializeAws_restJson1MessageRejectedResponse(parsedOutput, context)];
|
|
1664
|
-
case 13:
|
|
1665
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1666
|
-
return [3, 21];
|
|
1667
|
-
case 14:
|
|
1668
|
-
_j = [{}];
|
|
1669
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1670
|
-
case 15:
|
|
1671
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1672
|
-
return [3, 21];
|
|
1673
|
-
case 16:
|
|
1674
|
-
_k = [{}];
|
|
1675
|
-
return [4, deserializeAws_restJson1SendingPausedExceptionResponse(parsedOutput, context)];
|
|
1676
|
-
case 17:
|
|
1677
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1678
|
-
return [3, 21];
|
|
1679
|
-
case 18:
|
|
1680
|
-
_l = [{}];
|
|
1681
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1682
|
-
case 19:
|
|
1683
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1684
|
-
return [3, 21];
|
|
1563
|
+
case 2: return [4, deserializeAws_restJson1AccountSuspendedExceptionResponse(parsedOutput, context)];
|
|
1564
|
+
case 3: throw _d.sent();
|
|
1565
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1566
|
+
case 5: throw _d.sent();
|
|
1567
|
+
case 6: return [4, deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
1568
|
+
case 7: throw _d.sent();
|
|
1569
|
+
case 8: return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1570
|
+
case 9: throw _d.sent();
|
|
1571
|
+
case 10: return [4, deserializeAws_restJson1MailFromDomainNotVerifiedExceptionResponse(parsedOutput, context)];
|
|
1572
|
+
case 11: throw _d.sent();
|
|
1573
|
+
case 12: return [4, deserializeAws_restJson1MessageRejectedResponse(parsedOutput, context)];
|
|
1574
|
+
case 13: throw _d.sent();
|
|
1575
|
+
case 14: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1576
|
+
case 15: throw _d.sent();
|
|
1577
|
+
case 16: return [4, deserializeAws_restJson1SendingPausedExceptionResponse(parsedOutput, context)];
|
|
1578
|
+
case 17: throw _d.sent();
|
|
1579
|
+
case 18: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1580
|
+
case 19: throw _d.sent();
|
|
1685
1581
|
case 20:
|
|
1686
1582
|
parsedBody = parsedOutput.body;
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
response
|
|
1693
|
-
delete response.Message;
|
|
1694
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1583
|
+
response = new __BaseException({
|
|
1584
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1585
|
+
$fault: "client",
|
|
1586
|
+
$metadata: deserializeMetadata(output),
|
|
1587
|
+
});
|
|
1588
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1695
1589
|
}
|
|
1696
1590
|
});
|
|
1697
1591
|
}); };
|
|
@@ -1728,16 +1622,16 @@ export var deserializeAws_restJson1CreateEmailIdentityCommand = function (output
|
|
|
1728
1622
|
});
|
|
1729
1623
|
}); };
|
|
1730
1624
|
var deserializeAws_restJson1CreateEmailIdentityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1731
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1732
|
-
var
|
|
1733
|
-
return __generator(this, function (
|
|
1734
|
-
switch (
|
|
1625
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1626
|
+
var _c;
|
|
1627
|
+
return __generator(this, function (_d) {
|
|
1628
|
+
switch (_d.label) {
|
|
1735
1629
|
case 0:
|
|
1736
1630
|
_a = [__assign({}, output)];
|
|
1737
|
-
|
|
1631
|
+
_c = {};
|
|
1738
1632
|
return [4, parseBody(output.body, context)];
|
|
1739
1633
|
case 1:
|
|
1740
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1634
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1741
1635
|
errorCode = "UnknownError";
|
|
1742
1636
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1743
1637
|
_b = errorCode;
|
|
@@ -1752,40 +1646,22 @@ var deserializeAws_restJson1CreateEmailIdentityCommandError = function (output,
|
|
|
1752
1646
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 8];
|
|
1753
1647
|
}
|
|
1754
1648
|
return [3, 10];
|
|
1755
|
-
case 2:
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
case
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
case 4
|
|
1762
|
-
|
|
1763
|
-
return [4, deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
1764
|
-
case 5:
|
|
1765
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1766
|
-
return [3, 11];
|
|
1767
|
-
case 6:
|
|
1768
|
-
_e = [{}];
|
|
1769
|
-
return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1770
|
-
case 7:
|
|
1771
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1772
|
-
return [3, 11];
|
|
1773
|
-
case 8:
|
|
1774
|
-
_f = [{}];
|
|
1775
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1776
|
-
case 9:
|
|
1777
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1778
|
-
return [3, 11];
|
|
1649
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1650
|
+
case 3: throw _d.sent();
|
|
1651
|
+
case 4: return [4, deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
1652
|
+
case 5: throw _d.sent();
|
|
1653
|
+
case 6: return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1654
|
+
case 7: throw _d.sent();
|
|
1655
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1656
|
+
case 9: throw _d.sent();
|
|
1779
1657
|
case 10:
|
|
1780
1658
|
parsedBody = parsedOutput.body;
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
response
|
|
1787
|
-
delete response.Message;
|
|
1788
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1659
|
+
response = new __BaseException({
|
|
1660
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1661
|
+
$fault: "client",
|
|
1662
|
+
$metadata: deserializeMetadata(output),
|
|
1663
|
+
});
|
|
1664
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1789
1665
|
}
|
|
1790
1666
|
});
|
|
1791
1667
|
}); };
|
|
@@ -1808,16 +1684,16 @@ export var deserializeAws_restJson1DeleteConfigurationSetCommand = function (out
|
|
|
1808
1684
|
});
|
|
1809
1685
|
}); };
|
|
1810
1686
|
var deserializeAws_restJson1DeleteConfigurationSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1811
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1812
|
-
var
|
|
1813
|
-
return __generator(this, function (
|
|
1814
|
-
switch (
|
|
1687
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1688
|
+
var _c;
|
|
1689
|
+
return __generator(this, function (_d) {
|
|
1690
|
+
switch (_d.label) {
|
|
1815
1691
|
case 0:
|
|
1816
1692
|
_a = [__assign({}, output)];
|
|
1817
|
-
|
|
1693
|
+
_c = {};
|
|
1818
1694
|
return [4, parseBody(output.body, context)];
|
|
1819
1695
|
case 1:
|
|
1820
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1696
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1821
1697
|
errorCode = "UnknownError";
|
|
1822
1698
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1823
1699
|
_b = errorCode;
|
|
@@ -1832,40 +1708,22 @@ var deserializeAws_restJson1DeleteConfigurationSetCommandError = function (outpu
|
|
|
1832
1708
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 8];
|
|
1833
1709
|
}
|
|
1834
1710
|
return [3, 10];
|
|
1835
|
-
case 2:
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
case
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
case 4
|
|
1842
|
-
|
|
1843
|
-
return [4, deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
1844
|
-
case 5:
|
|
1845
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1846
|
-
return [3, 11];
|
|
1847
|
-
case 6:
|
|
1848
|
-
_e = [{}];
|
|
1849
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1850
|
-
case 7:
|
|
1851
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1852
|
-
return [3, 11];
|
|
1853
|
-
case 8:
|
|
1854
|
-
_f = [{}];
|
|
1855
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1856
|
-
case 9:
|
|
1857
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1858
|
-
return [3, 11];
|
|
1711
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1712
|
+
case 3: throw _d.sent();
|
|
1713
|
+
case 4: return [4, deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
1714
|
+
case 5: throw _d.sent();
|
|
1715
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1716
|
+
case 7: throw _d.sent();
|
|
1717
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1718
|
+
case 9: throw _d.sent();
|
|
1859
1719
|
case 10:
|
|
1860
1720
|
parsedBody = parsedOutput.body;
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
response
|
|
1867
|
-
delete response.Message;
|
|
1868
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1721
|
+
response = new __BaseException({
|
|
1722
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1723
|
+
$fault: "client",
|
|
1724
|
+
$metadata: deserializeMetadata(output),
|
|
1725
|
+
});
|
|
1726
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1869
1727
|
}
|
|
1870
1728
|
});
|
|
1871
1729
|
}); };
|
|
@@ -1888,16 +1746,16 @@ export var deserializeAws_restJson1DeleteConfigurationSetEventDestinationCommand
|
|
|
1888
1746
|
});
|
|
1889
1747
|
}); };
|
|
1890
1748
|
var deserializeAws_restJson1DeleteConfigurationSetEventDestinationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1891
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1892
|
-
var
|
|
1893
|
-
return __generator(this, function (
|
|
1894
|
-
switch (
|
|
1749
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1750
|
+
var _c;
|
|
1751
|
+
return __generator(this, function (_d) {
|
|
1752
|
+
switch (_d.label) {
|
|
1895
1753
|
case 0:
|
|
1896
1754
|
_a = [__assign({}, output)];
|
|
1897
|
-
|
|
1755
|
+
_c = {};
|
|
1898
1756
|
return [4, parseBody(output.body, context)];
|
|
1899
1757
|
case 1:
|
|
1900
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1758
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1901
1759
|
errorCode = "UnknownError";
|
|
1902
1760
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1903
1761
|
_b = errorCode;
|
|
@@ -1910,34 +1768,20 @@ var deserializeAws_restJson1DeleteConfigurationSetEventDestinationCommandError =
|
|
|
1910
1768
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
1911
1769
|
}
|
|
1912
1770
|
return [3, 8];
|
|
1913
|
-
case 2:
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
case
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
case 4:
|
|
1920
|
-
_d = [{}];
|
|
1921
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1922
|
-
case 5:
|
|
1923
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1924
|
-
return [3, 9];
|
|
1925
|
-
case 6:
|
|
1926
|
-
_e = [{}];
|
|
1927
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1928
|
-
case 7:
|
|
1929
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1930
|
-
return [3, 9];
|
|
1771
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1772
|
+
case 3: throw _d.sent();
|
|
1773
|
+
case 4: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1774
|
+
case 5: throw _d.sent();
|
|
1775
|
+
case 6: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1776
|
+
case 7: throw _d.sent();
|
|
1931
1777
|
case 8:
|
|
1932
1778
|
parsedBody = parsedOutput.body;
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
response
|
|
1939
|
-
delete response.Message;
|
|
1940
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1779
|
+
response = new __BaseException({
|
|
1780
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1781
|
+
$fault: "client",
|
|
1782
|
+
$metadata: deserializeMetadata(output),
|
|
1783
|
+
});
|
|
1784
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1941
1785
|
}
|
|
1942
1786
|
});
|
|
1943
1787
|
}); };
|
|
@@ -1960,16 +1804,16 @@ export var deserializeAws_restJson1DeleteDedicatedIpPoolCommand = function (outp
|
|
|
1960
1804
|
});
|
|
1961
1805
|
}); };
|
|
1962
1806
|
var deserializeAws_restJson1DeleteDedicatedIpPoolCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1963
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1964
|
-
var
|
|
1965
|
-
return __generator(this, function (
|
|
1966
|
-
switch (
|
|
1807
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1808
|
+
var _c;
|
|
1809
|
+
return __generator(this, function (_d) {
|
|
1810
|
+
switch (_d.label) {
|
|
1967
1811
|
case 0:
|
|
1968
1812
|
_a = [__assign({}, output)];
|
|
1969
|
-
|
|
1813
|
+
_c = {};
|
|
1970
1814
|
return [4, parseBody(output.body, context)];
|
|
1971
1815
|
case 1:
|
|
1972
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1816
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1973
1817
|
errorCode = "UnknownError";
|
|
1974
1818
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1975
1819
|
_b = errorCode;
|
|
@@ -1984,40 +1828,22 @@ var deserializeAws_restJson1DeleteDedicatedIpPoolCommandError = function (output
|
|
|
1984
1828
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 8];
|
|
1985
1829
|
}
|
|
1986
1830
|
return [3, 10];
|
|
1987
|
-
case 2:
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
case
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
case 4
|
|
1994
|
-
|
|
1995
|
-
return [4, deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
1996
|
-
case 5:
|
|
1997
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1998
|
-
return [3, 11];
|
|
1999
|
-
case 6:
|
|
2000
|
-
_e = [{}];
|
|
2001
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2002
|
-
case 7:
|
|
2003
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2004
|
-
return [3, 11];
|
|
2005
|
-
case 8:
|
|
2006
|
-
_f = [{}];
|
|
2007
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2008
|
-
case 9:
|
|
2009
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2010
|
-
return [3, 11];
|
|
1831
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1832
|
+
case 3: throw _d.sent();
|
|
1833
|
+
case 4: return [4, deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
1834
|
+
case 5: throw _d.sent();
|
|
1835
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1836
|
+
case 7: throw _d.sent();
|
|
1837
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1838
|
+
case 9: throw _d.sent();
|
|
2011
1839
|
case 10:
|
|
2012
1840
|
parsedBody = parsedOutput.body;
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
response
|
|
2019
|
-
delete response.Message;
|
|
2020
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1841
|
+
response = new __BaseException({
|
|
1842
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1843
|
+
$fault: "client",
|
|
1844
|
+
$metadata: deserializeMetadata(output),
|
|
1845
|
+
});
|
|
1846
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2021
1847
|
}
|
|
2022
1848
|
});
|
|
2023
1849
|
}); };
|
|
@@ -2040,16 +1866,16 @@ export var deserializeAws_restJson1DeleteEmailIdentityCommand = function (output
|
|
|
2040
1866
|
});
|
|
2041
1867
|
}); };
|
|
2042
1868
|
var deserializeAws_restJson1DeleteEmailIdentityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2043
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2044
|
-
var
|
|
2045
|
-
return __generator(this, function (
|
|
2046
|
-
switch (
|
|
1869
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1870
|
+
var _c;
|
|
1871
|
+
return __generator(this, function (_d) {
|
|
1872
|
+
switch (_d.label) {
|
|
2047
1873
|
case 0:
|
|
2048
1874
|
_a = [__assign({}, output)];
|
|
2049
|
-
|
|
1875
|
+
_c = {};
|
|
2050
1876
|
return [4, parseBody(output.body, context)];
|
|
2051
1877
|
case 1:
|
|
2052
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1878
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2053
1879
|
errorCode = "UnknownError";
|
|
2054
1880
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2055
1881
|
_b = errorCode;
|
|
@@ -2064,40 +1890,22 @@ var deserializeAws_restJson1DeleteEmailIdentityCommandError = function (output,
|
|
|
2064
1890
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 8];
|
|
2065
1891
|
}
|
|
2066
1892
|
return [3, 10];
|
|
2067
|
-
case 2:
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
case
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
case 4
|
|
2074
|
-
|
|
2075
|
-
return [4, deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
2076
|
-
case 5:
|
|
2077
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2078
|
-
return [3, 11];
|
|
2079
|
-
case 6:
|
|
2080
|
-
_e = [{}];
|
|
2081
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2082
|
-
case 7:
|
|
2083
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2084
|
-
return [3, 11];
|
|
2085
|
-
case 8:
|
|
2086
|
-
_f = [{}];
|
|
2087
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2088
|
-
case 9:
|
|
2089
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2090
|
-
return [3, 11];
|
|
1893
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1894
|
+
case 3: throw _d.sent();
|
|
1895
|
+
case 4: return [4, deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
1896
|
+
case 5: throw _d.sent();
|
|
1897
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1898
|
+
case 7: throw _d.sent();
|
|
1899
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1900
|
+
case 9: throw _d.sent();
|
|
2091
1901
|
case 10:
|
|
2092
1902
|
parsedBody = parsedOutput.body;
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
response
|
|
2099
|
-
delete response.Message;
|
|
2100
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1903
|
+
response = new __BaseException({
|
|
1904
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1905
|
+
$fault: "client",
|
|
1906
|
+
$metadata: deserializeMetadata(output),
|
|
1907
|
+
});
|
|
1908
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2101
1909
|
}
|
|
2102
1910
|
});
|
|
2103
1911
|
}); };
|
|
@@ -2142,16 +1950,16 @@ export var deserializeAws_restJson1GetAccountCommand = function (output, context
|
|
|
2142
1950
|
});
|
|
2143
1951
|
}); };
|
|
2144
1952
|
var deserializeAws_restJson1GetAccountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2145
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2146
|
-
var
|
|
2147
|
-
return __generator(this, function (
|
|
2148
|
-
switch (
|
|
1953
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1954
|
+
var _c;
|
|
1955
|
+
return __generator(this, function (_d) {
|
|
1956
|
+
switch (_d.label) {
|
|
2149
1957
|
case 0:
|
|
2150
1958
|
_a = [__assign({}, output)];
|
|
2151
|
-
|
|
1959
|
+
_c = {};
|
|
2152
1960
|
return [4, parseBody(output.body, context)];
|
|
2153
1961
|
case 1:
|
|
2154
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1962
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2155
1963
|
errorCode = "UnknownError";
|
|
2156
1964
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2157
1965
|
_b = errorCode;
|
|
@@ -2162,28 +1970,18 @@ var deserializeAws_restJson1GetAccountCommandError = function (output, context)
|
|
|
2162
1970
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 4];
|
|
2163
1971
|
}
|
|
2164
1972
|
return [3, 6];
|
|
2165
|
-
case 2:
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
case
|
|
2169
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2170
|
-
return [3, 7];
|
|
2171
|
-
case 4:
|
|
2172
|
-
_d = [{}];
|
|
2173
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2174
|
-
case 5:
|
|
2175
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2176
|
-
return [3, 7];
|
|
1973
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1974
|
+
case 3: throw _d.sent();
|
|
1975
|
+
case 4: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1976
|
+
case 5: throw _d.sent();
|
|
2177
1977
|
case 6:
|
|
2178
1978
|
parsedBody = parsedOutput.body;
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
response
|
|
2185
|
-
delete response.Message;
|
|
2186
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1979
|
+
response = new __BaseException({
|
|
1980
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1981
|
+
$fault: "client",
|
|
1982
|
+
$metadata: deserializeMetadata(output),
|
|
1983
|
+
});
|
|
1984
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2187
1985
|
}
|
|
2188
1986
|
});
|
|
2189
1987
|
}); };
|
|
@@ -2212,16 +2010,16 @@ export var deserializeAws_restJson1GetBlacklistReportsCommand = function (output
|
|
|
2212
2010
|
});
|
|
2213
2011
|
}); };
|
|
2214
2012
|
var deserializeAws_restJson1GetBlacklistReportsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2215
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2216
|
-
var
|
|
2217
|
-
return __generator(this, function (
|
|
2218
|
-
switch (
|
|
2013
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2014
|
+
var _c;
|
|
2015
|
+
return __generator(this, function (_d) {
|
|
2016
|
+
switch (_d.label) {
|
|
2219
2017
|
case 0:
|
|
2220
2018
|
_a = [__assign({}, output)];
|
|
2221
|
-
|
|
2019
|
+
_c = {};
|
|
2222
2020
|
return [4, parseBody(output.body, context)];
|
|
2223
2021
|
case 1:
|
|
2224
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2022
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2225
2023
|
errorCode = "UnknownError";
|
|
2226
2024
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2227
2025
|
_b = errorCode;
|
|
@@ -2234,34 +2032,20 @@ var deserializeAws_restJson1GetBlacklistReportsCommandError = function (output,
|
|
|
2234
2032
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
2235
2033
|
}
|
|
2236
2034
|
return [3, 8];
|
|
2237
|
-
case 2:
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
case
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
case 4:
|
|
2244
|
-
_d = [{}];
|
|
2245
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2246
|
-
case 5:
|
|
2247
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2248
|
-
return [3, 9];
|
|
2249
|
-
case 6:
|
|
2250
|
-
_e = [{}];
|
|
2251
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2252
|
-
case 7:
|
|
2253
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2254
|
-
return [3, 9];
|
|
2035
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2036
|
+
case 3: throw _d.sent();
|
|
2037
|
+
case 4: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2038
|
+
case 5: throw _d.sent();
|
|
2039
|
+
case 6: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2040
|
+
case 7: throw _d.sent();
|
|
2255
2041
|
case 8:
|
|
2256
2042
|
parsedBody = parsedOutput.body;
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
response
|
|
2263
|
-
delete response.Message;
|
|
2264
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2043
|
+
response = new __BaseException({
|
|
2044
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2045
|
+
$fault: "client",
|
|
2046
|
+
$metadata: deserializeMetadata(output),
|
|
2047
|
+
});
|
|
2048
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2265
2049
|
}
|
|
2266
2050
|
});
|
|
2267
2051
|
}); };
|
|
@@ -2310,16 +2094,16 @@ export var deserializeAws_restJson1GetConfigurationSetCommand = function (output
|
|
|
2310
2094
|
});
|
|
2311
2095
|
}); };
|
|
2312
2096
|
var deserializeAws_restJson1GetConfigurationSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2313
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2314
|
-
var
|
|
2315
|
-
return __generator(this, function (
|
|
2316
|
-
switch (
|
|
2097
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2098
|
+
var _c;
|
|
2099
|
+
return __generator(this, function (_d) {
|
|
2100
|
+
switch (_d.label) {
|
|
2317
2101
|
case 0:
|
|
2318
2102
|
_a = [__assign({}, output)];
|
|
2319
|
-
|
|
2103
|
+
_c = {};
|
|
2320
2104
|
return [4, parseBody(output.body, context)];
|
|
2321
2105
|
case 1:
|
|
2322
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2106
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2323
2107
|
errorCode = "UnknownError";
|
|
2324
2108
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2325
2109
|
_b = errorCode;
|
|
@@ -2332,34 +2116,20 @@ var deserializeAws_restJson1GetConfigurationSetCommandError = function (output,
|
|
|
2332
2116
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
2333
2117
|
}
|
|
2334
2118
|
return [3, 8];
|
|
2335
|
-
case 2:
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
case
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
case 4:
|
|
2342
|
-
_d = [{}];
|
|
2343
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2344
|
-
case 5:
|
|
2345
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2346
|
-
return [3, 9];
|
|
2347
|
-
case 6:
|
|
2348
|
-
_e = [{}];
|
|
2349
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2350
|
-
case 7:
|
|
2351
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2352
|
-
return [3, 9];
|
|
2119
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2120
|
+
case 3: throw _d.sent();
|
|
2121
|
+
case 4: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2122
|
+
case 5: throw _d.sent();
|
|
2123
|
+
case 6: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2124
|
+
case 7: throw _d.sent();
|
|
2353
2125
|
case 8:
|
|
2354
2126
|
parsedBody = parsedOutput.body;
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
response
|
|
2361
|
-
delete response.Message;
|
|
2362
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2127
|
+
response = new __BaseException({
|
|
2128
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2129
|
+
$fault: "client",
|
|
2130
|
+
$metadata: deserializeMetadata(output),
|
|
2131
|
+
});
|
|
2132
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2363
2133
|
}
|
|
2364
2134
|
});
|
|
2365
2135
|
}); };
|
|
@@ -2388,16 +2158,16 @@ export var deserializeAws_restJson1GetConfigurationSetEventDestinationsCommand =
|
|
|
2388
2158
|
});
|
|
2389
2159
|
}); };
|
|
2390
2160
|
var deserializeAws_restJson1GetConfigurationSetEventDestinationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2391
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2392
|
-
var
|
|
2393
|
-
return __generator(this, function (
|
|
2394
|
-
switch (
|
|
2161
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2162
|
+
var _c;
|
|
2163
|
+
return __generator(this, function (_d) {
|
|
2164
|
+
switch (_d.label) {
|
|
2395
2165
|
case 0:
|
|
2396
2166
|
_a = [__assign({}, output)];
|
|
2397
|
-
|
|
2167
|
+
_c = {};
|
|
2398
2168
|
return [4, parseBody(output.body, context)];
|
|
2399
2169
|
case 1:
|
|
2400
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2170
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2401
2171
|
errorCode = "UnknownError";
|
|
2402
2172
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2403
2173
|
_b = errorCode;
|
|
@@ -2410,34 +2180,20 @@ var deserializeAws_restJson1GetConfigurationSetEventDestinationsCommandError = f
|
|
|
2410
2180
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
2411
2181
|
}
|
|
2412
2182
|
return [3, 8];
|
|
2413
|
-
case 2:
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
case
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
case 4:
|
|
2420
|
-
_d = [{}];
|
|
2421
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2422
|
-
case 5:
|
|
2423
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2424
|
-
return [3, 9];
|
|
2425
|
-
case 6:
|
|
2426
|
-
_e = [{}];
|
|
2427
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2428
|
-
case 7:
|
|
2429
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2430
|
-
return [3, 9];
|
|
2183
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2184
|
+
case 3: throw _d.sent();
|
|
2185
|
+
case 4: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2186
|
+
case 5: throw _d.sent();
|
|
2187
|
+
case 6: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2188
|
+
case 7: throw _d.sent();
|
|
2431
2189
|
case 8:
|
|
2432
2190
|
parsedBody = parsedOutput.body;
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
response
|
|
2439
|
-
delete response.Message;
|
|
2440
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2191
|
+
response = new __BaseException({
|
|
2192
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2193
|
+
$fault: "client",
|
|
2194
|
+
$metadata: deserializeMetadata(output),
|
|
2195
|
+
});
|
|
2196
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2441
2197
|
}
|
|
2442
2198
|
});
|
|
2443
2199
|
}); };
|
|
@@ -2466,16 +2222,16 @@ export var deserializeAws_restJson1GetDedicatedIpCommand = function (output, con
|
|
|
2466
2222
|
});
|
|
2467
2223
|
}); };
|
|
2468
2224
|
var deserializeAws_restJson1GetDedicatedIpCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2469
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2470
|
-
var
|
|
2471
|
-
return __generator(this, function (
|
|
2472
|
-
switch (
|
|
2225
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2226
|
+
var _c;
|
|
2227
|
+
return __generator(this, function (_d) {
|
|
2228
|
+
switch (_d.label) {
|
|
2473
2229
|
case 0:
|
|
2474
2230
|
_a = [__assign({}, output)];
|
|
2475
|
-
|
|
2231
|
+
_c = {};
|
|
2476
2232
|
return [4, parseBody(output.body, context)];
|
|
2477
2233
|
case 1:
|
|
2478
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2234
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2479
2235
|
errorCode = "UnknownError";
|
|
2480
2236
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2481
2237
|
_b = errorCode;
|
|
@@ -2488,34 +2244,20 @@ var deserializeAws_restJson1GetDedicatedIpCommandError = function (output, conte
|
|
|
2488
2244
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
2489
2245
|
}
|
|
2490
2246
|
return [3, 8];
|
|
2491
|
-
case 2:
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
case
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
case 4:
|
|
2498
|
-
_d = [{}];
|
|
2499
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2500
|
-
case 5:
|
|
2501
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2502
|
-
return [3, 9];
|
|
2503
|
-
case 6:
|
|
2504
|
-
_e = [{}];
|
|
2505
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2506
|
-
case 7:
|
|
2507
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2508
|
-
return [3, 9];
|
|
2247
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2248
|
+
case 3: throw _d.sent();
|
|
2249
|
+
case 4: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2250
|
+
case 5: throw _d.sent();
|
|
2251
|
+
case 6: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2252
|
+
case 7: throw _d.sent();
|
|
2509
2253
|
case 8:
|
|
2510
2254
|
parsedBody = parsedOutput.body;
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
response
|
|
2517
|
-
delete response.Message;
|
|
2518
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2255
|
+
response = new __BaseException({
|
|
2256
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2257
|
+
$fault: "client",
|
|
2258
|
+
$metadata: deserializeMetadata(output),
|
|
2259
|
+
});
|
|
2260
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2519
2261
|
}
|
|
2520
2262
|
});
|
|
2521
2263
|
}); };
|
|
@@ -2548,16 +2290,16 @@ export var deserializeAws_restJson1GetDedicatedIpsCommand = function (output, co
|
|
|
2548
2290
|
});
|
|
2549
2291
|
}); };
|
|
2550
2292
|
var deserializeAws_restJson1GetDedicatedIpsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2551
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2552
|
-
var
|
|
2553
|
-
return __generator(this, function (
|
|
2554
|
-
switch (
|
|
2293
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2294
|
+
var _c;
|
|
2295
|
+
return __generator(this, function (_d) {
|
|
2296
|
+
switch (_d.label) {
|
|
2555
2297
|
case 0:
|
|
2556
2298
|
_a = [__assign({}, output)];
|
|
2557
|
-
|
|
2299
|
+
_c = {};
|
|
2558
2300
|
return [4, parseBody(output.body, context)];
|
|
2559
2301
|
case 1:
|
|
2560
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2302
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2561
2303
|
errorCode = "UnknownError";
|
|
2562
2304
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2563
2305
|
_b = errorCode;
|
|
@@ -2570,34 +2312,20 @@ var deserializeAws_restJson1GetDedicatedIpsCommandError = function (output, cont
|
|
|
2570
2312
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
2571
2313
|
}
|
|
2572
2314
|
return [3, 8];
|
|
2573
|
-
case 2:
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
case
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
case 4:
|
|
2580
|
-
_d = [{}];
|
|
2581
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2582
|
-
case 5:
|
|
2583
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2584
|
-
return [3, 9];
|
|
2585
|
-
case 6:
|
|
2586
|
-
_e = [{}];
|
|
2587
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2588
|
-
case 7:
|
|
2589
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2590
|
-
return [3, 9];
|
|
2315
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2316
|
+
case 3: throw _d.sent();
|
|
2317
|
+
case 4: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2318
|
+
case 5: throw _d.sent();
|
|
2319
|
+
case 6: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2320
|
+
case 7: throw _d.sent();
|
|
2591
2321
|
case 8:
|
|
2592
2322
|
parsedBody = parsedOutput.body;
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
response
|
|
2599
|
-
delete response.Message;
|
|
2600
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2323
|
+
response = new __BaseException({
|
|
2324
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2325
|
+
$fault: "client",
|
|
2326
|
+
$metadata: deserializeMetadata(output),
|
|
2327
|
+
});
|
|
2328
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2601
2329
|
}
|
|
2602
2330
|
});
|
|
2603
2331
|
}); };
|
|
@@ -2642,16 +2370,16 @@ export var deserializeAws_restJson1GetDeliverabilityDashboardOptionsCommand = fu
|
|
|
2642
2370
|
});
|
|
2643
2371
|
}); };
|
|
2644
2372
|
var deserializeAws_restJson1GetDeliverabilityDashboardOptionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2645
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2646
|
-
var
|
|
2647
|
-
return __generator(this, function (
|
|
2648
|
-
switch (
|
|
2373
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2374
|
+
var _c;
|
|
2375
|
+
return __generator(this, function (_d) {
|
|
2376
|
+
switch (_d.label) {
|
|
2649
2377
|
case 0:
|
|
2650
2378
|
_a = [__assign({}, output)];
|
|
2651
|
-
|
|
2379
|
+
_c = {};
|
|
2652
2380
|
return [4, parseBody(output.body, context)];
|
|
2653
2381
|
case 1:
|
|
2654
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2382
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2655
2383
|
errorCode = "UnknownError";
|
|
2656
2384
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2657
2385
|
_b = errorCode;
|
|
@@ -2664,34 +2392,20 @@ var deserializeAws_restJson1GetDeliverabilityDashboardOptionsCommandError = func
|
|
|
2664
2392
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
2665
2393
|
}
|
|
2666
2394
|
return [3, 8];
|
|
2667
|
-
case 2:
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
case
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
case 4:
|
|
2674
|
-
_d = [{}];
|
|
2675
|
-
return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2676
|
-
case 5:
|
|
2677
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2678
|
-
return [3, 9];
|
|
2679
|
-
case 6:
|
|
2680
|
-
_e = [{}];
|
|
2681
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2682
|
-
case 7:
|
|
2683
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2684
|
-
return [3, 9];
|
|
2395
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2396
|
+
case 3: throw _d.sent();
|
|
2397
|
+
case 4: return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2398
|
+
case 5: throw _d.sent();
|
|
2399
|
+
case 6: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2400
|
+
case 7: throw _d.sent();
|
|
2685
2401
|
case 8:
|
|
2686
2402
|
parsedBody = parsedOutput.body;
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
response
|
|
2693
|
-
delete response.Message;
|
|
2694
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2403
|
+
response = new __BaseException({
|
|
2404
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2405
|
+
$fault: "client",
|
|
2406
|
+
$metadata: deserializeMetadata(output),
|
|
2407
|
+
});
|
|
2408
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2695
2409
|
}
|
|
2696
2410
|
});
|
|
2697
2411
|
}); };
|
|
@@ -2736,16 +2450,16 @@ export var deserializeAws_restJson1GetDeliverabilityTestReportCommand = function
|
|
|
2736
2450
|
});
|
|
2737
2451
|
}); };
|
|
2738
2452
|
var deserializeAws_restJson1GetDeliverabilityTestReportCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2739
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2740
|
-
var
|
|
2741
|
-
return __generator(this, function (
|
|
2742
|
-
switch (
|
|
2453
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2454
|
+
var _c;
|
|
2455
|
+
return __generator(this, function (_d) {
|
|
2456
|
+
switch (_d.label) {
|
|
2743
2457
|
case 0:
|
|
2744
2458
|
_a = [__assign({}, output)];
|
|
2745
|
-
|
|
2459
|
+
_c = {};
|
|
2746
2460
|
return [4, parseBody(output.body, context)];
|
|
2747
2461
|
case 1:
|
|
2748
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2462
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2749
2463
|
errorCode = "UnknownError";
|
|
2750
2464
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2751
2465
|
_b = errorCode;
|
|
@@ -2758,34 +2472,20 @@ var deserializeAws_restJson1GetDeliverabilityTestReportCommandError = function (
|
|
|
2758
2472
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
2759
2473
|
}
|
|
2760
2474
|
return [3, 8];
|
|
2761
|
-
case 2:
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
case
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
case 4:
|
|
2768
|
-
_d = [{}];
|
|
2769
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2770
|
-
case 5:
|
|
2771
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2772
|
-
return [3, 9];
|
|
2773
|
-
case 6:
|
|
2774
|
-
_e = [{}];
|
|
2775
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2776
|
-
case 7:
|
|
2777
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2778
|
-
return [3, 9];
|
|
2475
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2476
|
+
case 3: throw _d.sent();
|
|
2477
|
+
case 4: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2478
|
+
case 5: throw _d.sent();
|
|
2479
|
+
case 6: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2480
|
+
case 7: throw _d.sent();
|
|
2779
2481
|
case 8:
|
|
2780
2482
|
parsedBody = parsedOutput.body;
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
response
|
|
2787
|
-
delete response.Message;
|
|
2788
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2483
|
+
response = new __BaseException({
|
|
2484
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2485
|
+
$fault: "client",
|
|
2486
|
+
$metadata: deserializeMetadata(output),
|
|
2487
|
+
});
|
|
2488
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2789
2489
|
}
|
|
2790
2490
|
});
|
|
2791
2491
|
}); };
|
|
@@ -2814,16 +2514,16 @@ export var deserializeAws_restJson1GetDomainDeliverabilityCampaignCommand = func
|
|
|
2814
2514
|
});
|
|
2815
2515
|
}); };
|
|
2816
2516
|
var deserializeAws_restJson1GetDomainDeliverabilityCampaignCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2817
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2818
|
-
var
|
|
2819
|
-
return __generator(this, function (
|
|
2820
|
-
switch (
|
|
2517
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2518
|
+
var _c;
|
|
2519
|
+
return __generator(this, function (_d) {
|
|
2520
|
+
switch (_d.label) {
|
|
2821
2521
|
case 0:
|
|
2822
2522
|
_a = [__assign({}, output)];
|
|
2823
|
-
|
|
2523
|
+
_c = {};
|
|
2824
2524
|
return [4, parseBody(output.body, context)];
|
|
2825
2525
|
case 1:
|
|
2826
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2526
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2827
2527
|
errorCode = "UnknownError";
|
|
2828
2528
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2829
2529
|
_b = errorCode;
|
|
@@ -2836,34 +2536,20 @@ var deserializeAws_restJson1GetDomainDeliverabilityCampaignCommandError = functi
|
|
|
2836
2536
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
2837
2537
|
}
|
|
2838
2538
|
return [3, 8];
|
|
2839
|
-
case 2:
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
case
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
case 4:
|
|
2846
|
-
_d = [{}];
|
|
2847
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2848
|
-
case 5:
|
|
2849
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2850
|
-
return [3, 9];
|
|
2851
|
-
case 6:
|
|
2852
|
-
_e = [{}];
|
|
2853
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2854
|
-
case 7:
|
|
2855
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2856
|
-
return [3, 9];
|
|
2539
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2540
|
+
case 3: throw _d.sent();
|
|
2541
|
+
case 4: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2542
|
+
case 5: throw _d.sent();
|
|
2543
|
+
case 6: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2544
|
+
case 7: throw _d.sent();
|
|
2857
2545
|
case 8:
|
|
2858
2546
|
parsedBody = parsedOutput.body;
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
response
|
|
2865
|
-
delete response.Message;
|
|
2866
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2547
|
+
response = new __BaseException({
|
|
2548
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2549
|
+
$fault: "client",
|
|
2550
|
+
$metadata: deserializeMetadata(output),
|
|
2551
|
+
});
|
|
2552
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2867
2553
|
}
|
|
2868
2554
|
});
|
|
2869
2555
|
}); };
|
|
@@ -2896,16 +2582,16 @@ export var deserializeAws_restJson1GetDomainStatisticsReportCommand = function (
|
|
|
2896
2582
|
});
|
|
2897
2583
|
}); };
|
|
2898
2584
|
var deserializeAws_restJson1GetDomainStatisticsReportCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2899
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2900
|
-
var
|
|
2901
|
-
return __generator(this, function (
|
|
2902
|
-
switch (
|
|
2585
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2586
|
+
var _c;
|
|
2587
|
+
return __generator(this, function (_d) {
|
|
2588
|
+
switch (_d.label) {
|
|
2903
2589
|
case 0:
|
|
2904
2590
|
_a = [__assign({}, output)];
|
|
2905
|
-
|
|
2591
|
+
_c = {};
|
|
2906
2592
|
return [4, parseBody(output.body, context)];
|
|
2907
2593
|
case 1:
|
|
2908
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2594
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2909
2595
|
errorCode = "UnknownError";
|
|
2910
2596
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2911
2597
|
_b = errorCode;
|
|
@@ -2918,34 +2604,20 @@ var deserializeAws_restJson1GetDomainStatisticsReportCommandError = function (ou
|
|
|
2918
2604
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
2919
2605
|
}
|
|
2920
2606
|
return [3, 8];
|
|
2921
|
-
case 2:
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
case
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
case 4:
|
|
2928
|
-
_d = [{}];
|
|
2929
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2930
|
-
case 5:
|
|
2931
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2932
|
-
return [3, 9];
|
|
2933
|
-
case 6:
|
|
2934
|
-
_e = [{}];
|
|
2935
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2936
|
-
case 7:
|
|
2937
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2938
|
-
return [3, 9];
|
|
2607
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2608
|
+
case 3: throw _d.sent();
|
|
2609
|
+
case 4: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2610
|
+
case 5: throw _d.sent();
|
|
2611
|
+
case 6: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2612
|
+
case 7: throw _d.sent();
|
|
2939
2613
|
case 8:
|
|
2940
2614
|
parsedBody = parsedOutput.body;
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
response
|
|
2947
|
-
delete response.Message;
|
|
2948
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2615
|
+
response = new __BaseException({
|
|
2616
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2617
|
+
$fault: "client",
|
|
2618
|
+
$metadata: deserializeMetadata(output),
|
|
2619
|
+
});
|
|
2620
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2949
2621
|
}
|
|
2950
2622
|
});
|
|
2951
2623
|
}); };
|
|
@@ -2994,16 +2666,16 @@ export var deserializeAws_restJson1GetEmailIdentityCommand = function (output, c
|
|
|
2994
2666
|
});
|
|
2995
2667
|
}); };
|
|
2996
2668
|
var deserializeAws_restJson1GetEmailIdentityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2997
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2998
|
-
var
|
|
2999
|
-
return __generator(this, function (
|
|
3000
|
-
switch (
|
|
2669
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2670
|
+
var _c;
|
|
2671
|
+
return __generator(this, function (_d) {
|
|
2672
|
+
switch (_d.label) {
|
|
3001
2673
|
case 0:
|
|
3002
2674
|
_a = [__assign({}, output)];
|
|
3003
|
-
|
|
2675
|
+
_c = {};
|
|
3004
2676
|
return [4, parseBody(output.body, context)];
|
|
3005
2677
|
case 1:
|
|
3006
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2678
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3007
2679
|
errorCode = "UnknownError";
|
|
3008
2680
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3009
2681
|
_b = errorCode;
|
|
@@ -3016,34 +2688,20 @@ var deserializeAws_restJson1GetEmailIdentityCommandError = function (output, con
|
|
|
3016
2688
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
3017
2689
|
}
|
|
3018
2690
|
return [3, 8];
|
|
3019
|
-
case 2:
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
case
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
case 4:
|
|
3026
|
-
_d = [{}];
|
|
3027
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3028
|
-
case 5:
|
|
3029
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3030
|
-
return [3, 9];
|
|
3031
|
-
case 6:
|
|
3032
|
-
_e = [{}];
|
|
3033
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3034
|
-
case 7:
|
|
3035
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3036
|
-
return [3, 9];
|
|
2691
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2692
|
+
case 3: throw _d.sent();
|
|
2693
|
+
case 4: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2694
|
+
case 5: throw _d.sent();
|
|
2695
|
+
case 6: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2696
|
+
case 7: throw _d.sent();
|
|
3037
2697
|
case 8:
|
|
3038
2698
|
parsedBody = parsedOutput.body;
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
response
|
|
3045
|
-
delete response.Message;
|
|
3046
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2699
|
+
response = new __BaseException({
|
|
2700
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2701
|
+
$fault: "client",
|
|
2702
|
+
$metadata: deserializeMetadata(output),
|
|
2703
|
+
});
|
|
2704
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3047
2705
|
}
|
|
3048
2706
|
});
|
|
3049
2707
|
}); };
|
|
@@ -3076,16 +2734,16 @@ export var deserializeAws_restJson1ListConfigurationSetsCommand = function (outp
|
|
|
3076
2734
|
});
|
|
3077
2735
|
}); };
|
|
3078
2736
|
var deserializeAws_restJson1ListConfigurationSetsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3079
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3080
|
-
var
|
|
3081
|
-
return __generator(this, function (
|
|
3082
|
-
switch (
|
|
2737
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2738
|
+
var _c;
|
|
2739
|
+
return __generator(this, function (_d) {
|
|
2740
|
+
switch (_d.label) {
|
|
3083
2741
|
case 0:
|
|
3084
2742
|
_a = [__assign({}, output)];
|
|
3085
|
-
|
|
2743
|
+
_c = {};
|
|
3086
2744
|
return [4, parseBody(output.body, context)];
|
|
3087
2745
|
case 1:
|
|
3088
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2746
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3089
2747
|
errorCode = "UnknownError";
|
|
3090
2748
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3091
2749
|
_b = errorCode;
|
|
@@ -3096,28 +2754,18 @@ var deserializeAws_restJson1ListConfigurationSetsCommandError = function (output
|
|
|
3096
2754
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 4];
|
|
3097
2755
|
}
|
|
3098
2756
|
return [3, 6];
|
|
3099
|
-
case 2:
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
case
|
|
3103
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3104
|
-
return [3, 7];
|
|
3105
|
-
case 4:
|
|
3106
|
-
_d = [{}];
|
|
3107
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3108
|
-
case 5:
|
|
3109
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3110
|
-
return [3, 7];
|
|
2757
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2758
|
+
case 3: throw _d.sent();
|
|
2759
|
+
case 4: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2760
|
+
case 5: throw _d.sent();
|
|
3111
2761
|
case 6:
|
|
3112
2762
|
parsedBody = parsedOutput.body;
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
response
|
|
3119
|
-
delete response.Message;
|
|
3120
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2763
|
+
response = new __BaseException({
|
|
2764
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2765
|
+
$fault: "client",
|
|
2766
|
+
$metadata: deserializeMetadata(output),
|
|
2767
|
+
});
|
|
2768
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3121
2769
|
}
|
|
3122
2770
|
});
|
|
3123
2771
|
}); };
|
|
@@ -3150,16 +2798,16 @@ export var deserializeAws_restJson1ListDedicatedIpPoolsCommand = function (outpu
|
|
|
3150
2798
|
});
|
|
3151
2799
|
}); };
|
|
3152
2800
|
var deserializeAws_restJson1ListDedicatedIpPoolsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3153
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3154
|
-
var
|
|
3155
|
-
return __generator(this, function (
|
|
3156
|
-
switch (
|
|
2801
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2802
|
+
var _c;
|
|
2803
|
+
return __generator(this, function (_d) {
|
|
2804
|
+
switch (_d.label) {
|
|
3157
2805
|
case 0:
|
|
3158
2806
|
_a = [__assign({}, output)];
|
|
3159
|
-
|
|
2807
|
+
_c = {};
|
|
3160
2808
|
return [4, parseBody(output.body, context)];
|
|
3161
2809
|
case 1:
|
|
3162
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2810
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3163
2811
|
errorCode = "UnknownError";
|
|
3164
2812
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3165
2813
|
_b = errorCode;
|
|
@@ -3170,28 +2818,18 @@ var deserializeAws_restJson1ListDedicatedIpPoolsCommandError = function (output,
|
|
|
3170
2818
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 4];
|
|
3171
2819
|
}
|
|
3172
2820
|
return [3, 6];
|
|
3173
|
-
case 2:
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
case
|
|
3177
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3178
|
-
return [3, 7];
|
|
3179
|
-
case 4:
|
|
3180
|
-
_d = [{}];
|
|
3181
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3182
|
-
case 5:
|
|
3183
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3184
|
-
return [3, 7];
|
|
2821
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2822
|
+
case 3: throw _d.sent();
|
|
2823
|
+
case 4: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2824
|
+
case 5: throw _d.sent();
|
|
3185
2825
|
case 6:
|
|
3186
2826
|
parsedBody = parsedOutput.body;
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
response
|
|
3193
|
-
delete response.Message;
|
|
3194
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2827
|
+
response = new __BaseException({
|
|
2828
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2829
|
+
$fault: "client",
|
|
2830
|
+
$metadata: deserializeMetadata(output),
|
|
2831
|
+
});
|
|
2832
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3195
2833
|
}
|
|
3196
2834
|
});
|
|
3197
2835
|
}); };
|
|
@@ -3224,16 +2862,16 @@ export var deserializeAws_restJson1ListDeliverabilityTestReportsCommand = functi
|
|
|
3224
2862
|
});
|
|
3225
2863
|
}); };
|
|
3226
2864
|
var deserializeAws_restJson1ListDeliverabilityTestReportsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3227
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3228
|
-
var
|
|
3229
|
-
return __generator(this, function (
|
|
3230
|
-
switch (
|
|
2865
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2866
|
+
var _c;
|
|
2867
|
+
return __generator(this, function (_d) {
|
|
2868
|
+
switch (_d.label) {
|
|
3231
2869
|
case 0:
|
|
3232
2870
|
_a = [__assign({}, output)];
|
|
3233
|
-
|
|
2871
|
+
_c = {};
|
|
3234
2872
|
return [4, parseBody(output.body, context)];
|
|
3235
2873
|
case 1:
|
|
3236
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2874
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3237
2875
|
errorCode = "UnknownError";
|
|
3238
2876
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3239
2877
|
_b = errorCode;
|
|
@@ -3246,34 +2884,20 @@ var deserializeAws_restJson1ListDeliverabilityTestReportsCommandError = function
|
|
|
3246
2884
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
3247
2885
|
}
|
|
3248
2886
|
return [3, 8];
|
|
3249
|
-
case 2:
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
case
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
case 4:
|
|
3256
|
-
_d = [{}];
|
|
3257
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3258
|
-
case 5:
|
|
3259
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3260
|
-
return [3, 9];
|
|
3261
|
-
case 6:
|
|
3262
|
-
_e = [{}];
|
|
3263
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3264
|
-
case 7:
|
|
3265
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3266
|
-
return [3, 9];
|
|
2887
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2888
|
+
case 3: throw _d.sent();
|
|
2889
|
+
case 4: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2890
|
+
case 5: throw _d.sent();
|
|
2891
|
+
case 6: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2892
|
+
case 7: throw _d.sent();
|
|
3267
2893
|
case 8:
|
|
3268
2894
|
parsedBody = parsedOutput.body;
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
response
|
|
3275
|
-
delete response.Message;
|
|
3276
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2895
|
+
response = new __BaseException({
|
|
2896
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2897
|
+
$fault: "client",
|
|
2898
|
+
$metadata: deserializeMetadata(output),
|
|
2899
|
+
});
|
|
2900
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3277
2901
|
}
|
|
3278
2902
|
});
|
|
3279
2903
|
}); };
|
|
@@ -3306,16 +2930,16 @@ export var deserializeAws_restJson1ListDomainDeliverabilityCampaignsCommand = fu
|
|
|
3306
2930
|
});
|
|
3307
2931
|
}); };
|
|
3308
2932
|
var deserializeAws_restJson1ListDomainDeliverabilityCampaignsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3309
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3310
|
-
var
|
|
3311
|
-
return __generator(this, function (
|
|
3312
|
-
switch (
|
|
2933
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2934
|
+
var _c;
|
|
2935
|
+
return __generator(this, function (_d) {
|
|
2936
|
+
switch (_d.label) {
|
|
3313
2937
|
case 0:
|
|
3314
2938
|
_a = [__assign({}, output)];
|
|
3315
|
-
|
|
2939
|
+
_c = {};
|
|
3316
2940
|
return [4, parseBody(output.body, context)];
|
|
3317
2941
|
case 1:
|
|
3318
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2942
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3319
2943
|
errorCode = "UnknownError";
|
|
3320
2944
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3321
2945
|
_b = errorCode;
|
|
@@ -3328,34 +2952,20 @@ var deserializeAws_restJson1ListDomainDeliverabilityCampaignsCommandError = func
|
|
|
3328
2952
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
3329
2953
|
}
|
|
3330
2954
|
return [3, 8];
|
|
3331
|
-
case 2:
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
case
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
case 4:
|
|
3338
|
-
_d = [{}];
|
|
3339
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3340
|
-
case 5:
|
|
3341
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3342
|
-
return [3, 9];
|
|
3343
|
-
case 6:
|
|
3344
|
-
_e = [{}];
|
|
3345
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3346
|
-
case 7:
|
|
3347
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3348
|
-
return [3, 9];
|
|
2955
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2956
|
+
case 3: throw _d.sent();
|
|
2957
|
+
case 4: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2958
|
+
case 5: throw _d.sent();
|
|
2959
|
+
case 6: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2960
|
+
case 7: throw _d.sent();
|
|
3349
2961
|
case 8:
|
|
3350
2962
|
parsedBody = parsedOutput.body;
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
response
|
|
3357
|
-
delete response.Message;
|
|
3358
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2963
|
+
response = new __BaseException({
|
|
2964
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2965
|
+
$fault: "client",
|
|
2966
|
+
$metadata: deserializeMetadata(output),
|
|
2967
|
+
});
|
|
2968
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3359
2969
|
}
|
|
3360
2970
|
});
|
|
3361
2971
|
}); };
|
|
@@ -3388,16 +2998,16 @@ export var deserializeAws_restJson1ListEmailIdentitiesCommand = function (output
|
|
|
3388
2998
|
});
|
|
3389
2999
|
}); };
|
|
3390
3000
|
var deserializeAws_restJson1ListEmailIdentitiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3391
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3392
|
-
var
|
|
3393
|
-
return __generator(this, function (
|
|
3394
|
-
switch (
|
|
3001
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3002
|
+
var _c;
|
|
3003
|
+
return __generator(this, function (_d) {
|
|
3004
|
+
switch (_d.label) {
|
|
3395
3005
|
case 0:
|
|
3396
3006
|
_a = [__assign({}, output)];
|
|
3397
|
-
|
|
3007
|
+
_c = {};
|
|
3398
3008
|
return [4, parseBody(output.body, context)];
|
|
3399
3009
|
case 1:
|
|
3400
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3010
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3401
3011
|
errorCode = "UnknownError";
|
|
3402
3012
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3403
3013
|
_b = errorCode;
|
|
@@ -3408,28 +3018,18 @@ var deserializeAws_restJson1ListEmailIdentitiesCommandError = function (output,
|
|
|
3408
3018
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 4];
|
|
3409
3019
|
}
|
|
3410
3020
|
return [3, 6];
|
|
3411
|
-
case 2:
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
case
|
|
3415
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3416
|
-
return [3, 7];
|
|
3417
|
-
case 4:
|
|
3418
|
-
_d = [{}];
|
|
3419
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3420
|
-
case 5:
|
|
3421
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3422
|
-
return [3, 7];
|
|
3021
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3022
|
+
case 3: throw _d.sent();
|
|
3023
|
+
case 4: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3024
|
+
case 5: throw _d.sent();
|
|
3423
3025
|
case 6:
|
|
3424
3026
|
parsedBody = parsedOutput.body;
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
response
|
|
3431
|
-
delete response.Message;
|
|
3432
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3027
|
+
response = new __BaseException({
|
|
3028
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3029
|
+
$fault: "client",
|
|
3030
|
+
$metadata: deserializeMetadata(output),
|
|
3031
|
+
});
|
|
3032
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3433
3033
|
}
|
|
3434
3034
|
});
|
|
3435
3035
|
}); };
|
|
@@ -3458,16 +3058,16 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
3458
3058
|
});
|
|
3459
3059
|
}); };
|
|
3460
3060
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3461
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3462
|
-
var
|
|
3463
|
-
return __generator(this, function (
|
|
3464
|
-
switch (
|
|
3061
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3062
|
+
var _c;
|
|
3063
|
+
return __generator(this, function (_d) {
|
|
3064
|
+
switch (_d.label) {
|
|
3465
3065
|
case 0:
|
|
3466
3066
|
_a = [__assign({}, output)];
|
|
3467
|
-
|
|
3067
|
+
_c = {};
|
|
3468
3068
|
return [4, parseBody(output.body, context)];
|
|
3469
3069
|
case 1:
|
|
3470
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3070
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3471
3071
|
errorCode = "UnknownError";
|
|
3472
3072
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3473
3073
|
_b = errorCode;
|
|
@@ -3480,34 +3080,20 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
3480
3080
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
3481
3081
|
}
|
|
3482
3082
|
return [3, 8];
|
|
3483
|
-
case 2:
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
case
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
case 4:
|
|
3490
|
-
_d = [{}];
|
|
3491
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3492
|
-
case 5:
|
|
3493
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3494
|
-
return [3, 9];
|
|
3495
|
-
case 6:
|
|
3496
|
-
_e = [{}];
|
|
3497
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3498
|
-
case 7:
|
|
3499
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3500
|
-
return [3, 9];
|
|
3083
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3084
|
+
case 3: throw _d.sent();
|
|
3085
|
+
case 4: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3086
|
+
case 5: throw _d.sent();
|
|
3087
|
+
case 6: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3088
|
+
case 7: throw _d.sent();
|
|
3501
3089
|
case 8:
|
|
3502
3090
|
parsedBody = parsedOutput.body;
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
response
|
|
3509
|
-
delete response.Message;
|
|
3510
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3091
|
+
response = new __BaseException({
|
|
3092
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3093
|
+
$fault: "client",
|
|
3094
|
+
$metadata: deserializeMetadata(output),
|
|
3095
|
+
});
|
|
3096
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3511
3097
|
}
|
|
3512
3098
|
});
|
|
3513
3099
|
}); };
|
|
@@ -3530,16 +3116,16 @@ export var deserializeAws_restJson1PutAccountDedicatedIpWarmupAttributesCommand
|
|
|
3530
3116
|
});
|
|
3531
3117
|
}); };
|
|
3532
3118
|
var deserializeAws_restJson1PutAccountDedicatedIpWarmupAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3533
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3534
|
-
var
|
|
3535
|
-
return __generator(this, function (
|
|
3536
|
-
switch (
|
|
3119
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3120
|
+
var _c;
|
|
3121
|
+
return __generator(this, function (_d) {
|
|
3122
|
+
switch (_d.label) {
|
|
3537
3123
|
case 0:
|
|
3538
3124
|
_a = [__assign({}, output)];
|
|
3539
|
-
|
|
3125
|
+
_c = {};
|
|
3540
3126
|
return [4, parseBody(output.body, context)];
|
|
3541
3127
|
case 1:
|
|
3542
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3128
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3543
3129
|
errorCode = "UnknownError";
|
|
3544
3130
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3545
3131
|
_b = errorCode;
|
|
@@ -3550,28 +3136,18 @@ var deserializeAws_restJson1PutAccountDedicatedIpWarmupAttributesCommandError =
|
|
|
3550
3136
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 4];
|
|
3551
3137
|
}
|
|
3552
3138
|
return [3, 6];
|
|
3553
|
-
case 2:
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
case
|
|
3557
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3558
|
-
return [3, 7];
|
|
3559
|
-
case 4:
|
|
3560
|
-
_d = [{}];
|
|
3561
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3562
|
-
case 5:
|
|
3563
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3564
|
-
return [3, 7];
|
|
3139
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3140
|
+
case 3: throw _d.sent();
|
|
3141
|
+
case 4: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3142
|
+
case 5: throw _d.sent();
|
|
3565
3143
|
case 6:
|
|
3566
3144
|
parsedBody = parsedOutput.body;
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
response
|
|
3573
|
-
delete response.Message;
|
|
3574
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3145
|
+
response = new __BaseException({
|
|
3146
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3147
|
+
$fault: "client",
|
|
3148
|
+
$metadata: deserializeMetadata(output),
|
|
3149
|
+
});
|
|
3150
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3575
3151
|
}
|
|
3576
3152
|
});
|
|
3577
3153
|
}); };
|
|
@@ -3594,16 +3170,16 @@ export var deserializeAws_restJson1PutAccountSendingAttributesCommand = function
|
|
|
3594
3170
|
});
|
|
3595
3171
|
}); };
|
|
3596
3172
|
var deserializeAws_restJson1PutAccountSendingAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3597
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3598
|
-
var
|
|
3599
|
-
return __generator(this, function (
|
|
3600
|
-
switch (
|
|
3173
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3174
|
+
var _c;
|
|
3175
|
+
return __generator(this, function (_d) {
|
|
3176
|
+
switch (_d.label) {
|
|
3601
3177
|
case 0:
|
|
3602
3178
|
_a = [__assign({}, output)];
|
|
3603
|
-
|
|
3179
|
+
_c = {};
|
|
3604
3180
|
return [4, parseBody(output.body, context)];
|
|
3605
3181
|
case 1:
|
|
3606
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3182
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3607
3183
|
errorCode = "UnknownError";
|
|
3608
3184
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3609
3185
|
_b = errorCode;
|
|
@@ -3614,28 +3190,18 @@ var deserializeAws_restJson1PutAccountSendingAttributesCommandError = function (
|
|
|
3614
3190
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 4];
|
|
3615
3191
|
}
|
|
3616
3192
|
return [3, 6];
|
|
3617
|
-
case 2:
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
case
|
|
3621
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3622
|
-
return [3, 7];
|
|
3623
|
-
case 4:
|
|
3624
|
-
_d = [{}];
|
|
3625
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3626
|
-
case 5:
|
|
3627
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3628
|
-
return [3, 7];
|
|
3193
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3194
|
+
case 3: throw _d.sent();
|
|
3195
|
+
case 4: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3196
|
+
case 5: throw _d.sent();
|
|
3629
3197
|
case 6:
|
|
3630
3198
|
parsedBody = parsedOutput.body;
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
response
|
|
3637
|
-
delete response.Message;
|
|
3638
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3199
|
+
response = new __BaseException({
|
|
3200
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3201
|
+
$fault: "client",
|
|
3202
|
+
$metadata: deserializeMetadata(output),
|
|
3203
|
+
});
|
|
3204
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3639
3205
|
}
|
|
3640
3206
|
});
|
|
3641
3207
|
}); };
|
|
@@ -3658,16 +3224,16 @@ export var deserializeAws_restJson1PutConfigurationSetDeliveryOptionsCommand = f
|
|
|
3658
3224
|
});
|
|
3659
3225
|
}); };
|
|
3660
3226
|
var deserializeAws_restJson1PutConfigurationSetDeliveryOptionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3661
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3662
|
-
var
|
|
3663
|
-
return __generator(this, function (
|
|
3664
|
-
switch (
|
|
3227
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3228
|
+
var _c;
|
|
3229
|
+
return __generator(this, function (_d) {
|
|
3230
|
+
switch (_d.label) {
|
|
3665
3231
|
case 0:
|
|
3666
3232
|
_a = [__assign({}, output)];
|
|
3667
|
-
|
|
3233
|
+
_c = {};
|
|
3668
3234
|
return [4, parseBody(output.body, context)];
|
|
3669
3235
|
case 1:
|
|
3670
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3236
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3671
3237
|
errorCode = "UnknownError";
|
|
3672
3238
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3673
3239
|
_b = errorCode;
|
|
@@ -3680,34 +3246,20 @@ var deserializeAws_restJson1PutConfigurationSetDeliveryOptionsCommandError = fun
|
|
|
3680
3246
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
3681
3247
|
}
|
|
3682
3248
|
return [3, 8];
|
|
3683
|
-
case 2:
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
case
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
case 4:
|
|
3690
|
-
_d = [{}];
|
|
3691
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3692
|
-
case 5:
|
|
3693
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3694
|
-
return [3, 9];
|
|
3695
|
-
case 6:
|
|
3696
|
-
_e = [{}];
|
|
3697
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3698
|
-
case 7:
|
|
3699
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3700
|
-
return [3, 9];
|
|
3249
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3250
|
+
case 3: throw _d.sent();
|
|
3251
|
+
case 4: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3252
|
+
case 5: throw _d.sent();
|
|
3253
|
+
case 6: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3254
|
+
case 7: throw _d.sent();
|
|
3701
3255
|
case 8:
|
|
3702
3256
|
parsedBody = parsedOutput.body;
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
response
|
|
3709
|
-
delete response.Message;
|
|
3710
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3257
|
+
response = new __BaseException({
|
|
3258
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3259
|
+
$fault: "client",
|
|
3260
|
+
$metadata: deserializeMetadata(output),
|
|
3261
|
+
});
|
|
3262
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3711
3263
|
}
|
|
3712
3264
|
});
|
|
3713
3265
|
}); };
|
|
@@ -3730,16 +3282,16 @@ export var deserializeAws_restJson1PutConfigurationSetReputationOptionsCommand =
|
|
|
3730
3282
|
});
|
|
3731
3283
|
}); };
|
|
3732
3284
|
var deserializeAws_restJson1PutConfigurationSetReputationOptionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3733
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3734
|
-
var
|
|
3735
|
-
return __generator(this, function (
|
|
3736
|
-
switch (
|
|
3285
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3286
|
+
var _c;
|
|
3287
|
+
return __generator(this, function (_d) {
|
|
3288
|
+
switch (_d.label) {
|
|
3737
3289
|
case 0:
|
|
3738
3290
|
_a = [__assign({}, output)];
|
|
3739
|
-
|
|
3291
|
+
_c = {};
|
|
3740
3292
|
return [4, parseBody(output.body, context)];
|
|
3741
3293
|
case 1:
|
|
3742
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3294
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3743
3295
|
errorCode = "UnknownError";
|
|
3744
3296
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3745
3297
|
_b = errorCode;
|
|
@@ -3752,34 +3304,20 @@ var deserializeAws_restJson1PutConfigurationSetReputationOptionsCommandError = f
|
|
|
3752
3304
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
3753
3305
|
}
|
|
3754
3306
|
return [3, 8];
|
|
3755
|
-
case 2:
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
case
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
case 4:
|
|
3762
|
-
_d = [{}];
|
|
3763
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3764
|
-
case 5:
|
|
3765
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3766
|
-
return [3, 9];
|
|
3767
|
-
case 6:
|
|
3768
|
-
_e = [{}];
|
|
3769
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3770
|
-
case 7:
|
|
3771
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3772
|
-
return [3, 9];
|
|
3307
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3308
|
+
case 3: throw _d.sent();
|
|
3309
|
+
case 4: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3310
|
+
case 5: throw _d.sent();
|
|
3311
|
+
case 6: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3312
|
+
case 7: throw _d.sent();
|
|
3773
3313
|
case 8:
|
|
3774
3314
|
parsedBody = parsedOutput.body;
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
response
|
|
3781
|
-
delete response.Message;
|
|
3782
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3315
|
+
response = new __BaseException({
|
|
3316
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3317
|
+
$fault: "client",
|
|
3318
|
+
$metadata: deserializeMetadata(output),
|
|
3319
|
+
});
|
|
3320
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3783
3321
|
}
|
|
3784
3322
|
});
|
|
3785
3323
|
}); };
|
|
@@ -3802,16 +3340,16 @@ export var deserializeAws_restJson1PutConfigurationSetSendingOptionsCommand = fu
|
|
|
3802
3340
|
});
|
|
3803
3341
|
}); };
|
|
3804
3342
|
var deserializeAws_restJson1PutConfigurationSetSendingOptionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3805
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3806
|
-
var
|
|
3807
|
-
return __generator(this, function (
|
|
3808
|
-
switch (
|
|
3343
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3344
|
+
var _c;
|
|
3345
|
+
return __generator(this, function (_d) {
|
|
3346
|
+
switch (_d.label) {
|
|
3809
3347
|
case 0:
|
|
3810
3348
|
_a = [__assign({}, output)];
|
|
3811
|
-
|
|
3349
|
+
_c = {};
|
|
3812
3350
|
return [4, parseBody(output.body, context)];
|
|
3813
3351
|
case 1:
|
|
3814
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3352
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3815
3353
|
errorCode = "UnknownError";
|
|
3816
3354
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3817
3355
|
_b = errorCode;
|
|
@@ -3824,34 +3362,20 @@ var deserializeAws_restJson1PutConfigurationSetSendingOptionsCommandError = func
|
|
|
3824
3362
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
3825
3363
|
}
|
|
3826
3364
|
return [3, 8];
|
|
3827
|
-
case 2:
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
case
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
case 4:
|
|
3834
|
-
_d = [{}];
|
|
3835
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3836
|
-
case 5:
|
|
3837
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3838
|
-
return [3, 9];
|
|
3839
|
-
case 6:
|
|
3840
|
-
_e = [{}];
|
|
3841
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3842
|
-
case 7:
|
|
3843
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3844
|
-
return [3, 9];
|
|
3365
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3366
|
+
case 3: throw _d.sent();
|
|
3367
|
+
case 4: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3368
|
+
case 5: throw _d.sent();
|
|
3369
|
+
case 6: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3370
|
+
case 7: throw _d.sent();
|
|
3845
3371
|
case 8:
|
|
3846
3372
|
parsedBody = parsedOutput.body;
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
response
|
|
3853
|
-
delete response.Message;
|
|
3854
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3373
|
+
response = new __BaseException({
|
|
3374
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3375
|
+
$fault: "client",
|
|
3376
|
+
$metadata: deserializeMetadata(output),
|
|
3377
|
+
});
|
|
3378
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3855
3379
|
}
|
|
3856
3380
|
});
|
|
3857
3381
|
}); };
|
|
@@ -3874,16 +3398,16 @@ export var deserializeAws_restJson1PutConfigurationSetTrackingOptionsCommand = f
|
|
|
3874
3398
|
});
|
|
3875
3399
|
}); };
|
|
3876
3400
|
var deserializeAws_restJson1PutConfigurationSetTrackingOptionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3877
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3878
|
-
var
|
|
3879
|
-
return __generator(this, function (
|
|
3880
|
-
switch (
|
|
3401
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3402
|
+
var _c;
|
|
3403
|
+
return __generator(this, function (_d) {
|
|
3404
|
+
switch (_d.label) {
|
|
3881
3405
|
case 0:
|
|
3882
3406
|
_a = [__assign({}, output)];
|
|
3883
|
-
|
|
3407
|
+
_c = {};
|
|
3884
3408
|
return [4, parseBody(output.body, context)];
|
|
3885
3409
|
case 1:
|
|
3886
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3410
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3887
3411
|
errorCode = "UnknownError";
|
|
3888
3412
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3889
3413
|
_b = errorCode;
|
|
@@ -3896,34 +3420,20 @@ var deserializeAws_restJson1PutConfigurationSetTrackingOptionsCommandError = fun
|
|
|
3896
3420
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
3897
3421
|
}
|
|
3898
3422
|
return [3, 8];
|
|
3899
|
-
case 2:
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
case
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
case 4:
|
|
3906
|
-
_d = [{}];
|
|
3907
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3908
|
-
case 5:
|
|
3909
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3910
|
-
return [3, 9];
|
|
3911
|
-
case 6:
|
|
3912
|
-
_e = [{}];
|
|
3913
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3914
|
-
case 7:
|
|
3915
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3916
|
-
return [3, 9];
|
|
3423
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3424
|
+
case 3: throw _d.sent();
|
|
3425
|
+
case 4: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3426
|
+
case 5: throw _d.sent();
|
|
3427
|
+
case 6: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3428
|
+
case 7: throw _d.sent();
|
|
3917
3429
|
case 8:
|
|
3918
3430
|
parsedBody = parsedOutput.body;
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
response
|
|
3925
|
-
delete response.Message;
|
|
3926
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3431
|
+
response = new __BaseException({
|
|
3432
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3433
|
+
$fault: "client",
|
|
3434
|
+
$metadata: deserializeMetadata(output),
|
|
3435
|
+
});
|
|
3436
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3927
3437
|
}
|
|
3928
3438
|
});
|
|
3929
3439
|
}); };
|
|
@@ -3946,16 +3456,16 @@ export var deserializeAws_restJson1PutDedicatedIpInPoolCommand = function (outpu
|
|
|
3946
3456
|
});
|
|
3947
3457
|
}); };
|
|
3948
3458
|
var deserializeAws_restJson1PutDedicatedIpInPoolCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3949
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3950
|
-
var
|
|
3951
|
-
return __generator(this, function (
|
|
3952
|
-
switch (
|
|
3459
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3460
|
+
var _c;
|
|
3461
|
+
return __generator(this, function (_d) {
|
|
3462
|
+
switch (_d.label) {
|
|
3953
3463
|
case 0:
|
|
3954
3464
|
_a = [__assign({}, output)];
|
|
3955
|
-
|
|
3465
|
+
_c = {};
|
|
3956
3466
|
return [4, parseBody(output.body, context)];
|
|
3957
3467
|
case 1:
|
|
3958
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3468
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3959
3469
|
errorCode = "UnknownError";
|
|
3960
3470
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3961
3471
|
_b = errorCode;
|
|
@@ -3968,34 +3478,20 @@ var deserializeAws_restJson1PutDedicatedIpInPoolCommandError = function (output,
|
|
|
3968
3478
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
3969
3479
|
}
|
|
3970
3480
|
return [3, 8];
|
|
3971
|
-
case 2:
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
case
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
case 4:
|
|
3978
|
-
_d = [{}];
|
|
3979
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3980
|
-
case 5:
|
|
3981
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3982
|
-
return [3, 9];
|
|
3983
|
-
case 6:
|
|
3984
|
-
_e = [{}];
|
|
3985
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3986
|
-
case 7:
|
|
3987
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3988
|
-
return [3, 9];
|
|
3481
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3482
|
+
case 3: throw _d.sent();
|
|
3483
|
+
case 4: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3484
|
+
case 5: throw _d.sent();
|
|
3485
|
+
case 6: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3486
|
+
case 7: throw _d.sent();
|
|
3989
3487
|
case 8:
|
|
3990
3488
|
parsedBody = parsedOutput.body;
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
response
|
|
3997
|
-
delete response.Message;
|
|
3998
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3489
|
+
response = new __BaseException({
|
|
3490
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3491
|
+
$fault: "client",
|
|
3492
|
+
$metadata: deserializeMetadata(output),
|
|
3493
|
+
});
|
|
3494
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3999
3495
|
}
|
|
4000
3496
|
});
|
|
4001
3497
|
}); };
|
|
@@ -4018,16 +3514,16 @@ export var deserializeAws_restJson1PutDedicatedIpWarmupAttributesCommand = funct
|
|
|
4018
3514
|
});
|
|
4019
3515
|
}); };
|
|
4020
3516
|
var deserializeAws_restJson1PutDedicatedIpWarmupAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4021
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4022
|
-
var
|
|
4023
|
-
return __generator(this, function (
|
|
4024
|
-
switch (
|
|
3517
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3518
|
+
var _c;
|
|
3519
|
+
return __generator(this, function (_d) {
|
|
3520
|
+
switch (_d.label) {
|
|
4025
3521
|
case 0:
|
|
4026
3522
|
_a = [__assign({}, output)];
|
|
4027
|
-
|
|
3523
|
+
_c = {};
|
|
4028
3524
|
return [4, parseBody(output.body, context)];
|
|
4029
3525
|
case 1:
|
|
4030
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3526
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4031
3527
|
errorCode = "UnknownError";
|
|
4032
3528
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4033
3529
|
_b = errorCode;
|
|
@@ -4040,34 +3536,20 @@ var deserializeAws_restJson1PutDedicatedIpWarmupAttributesCommandError = functio
|
|
|
4040
3536
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
4041
3537
|
}
|
|
4042
3538
|
return [3, 8];
|
|
4043
|
-
case 2:
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
case
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
case 4:
|
|
4050
|
-
_d = [{}];
|
|
4051
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
4052
|
-
case 5:
|
|
4053
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4054
|
-
return [3, 9];
|
|
4055
|
-
case 6:
|
|
4056
|
-
_e = [{}];
|
|
4057
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
4058
|
-
case 7:
|
|
4059
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4060
|
-
return [3, 9];
|
|
3539
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3540
|
+
case 3: throw _d.sent();
|
|
3541
|
+
case 4: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3542
|
+
case 5: throw _d.sent();
|
|
3543
|
+
case 6: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3544
|
+
case 7: throw _d.sent();
|
|
4061
3545
|
case 8:
|
|
4062
3546
|
parsedBody = parsedOutput.body;
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
response
|
|
4069
|
-
delete response.Message;
|
|
4070
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3547
|
+
response = new __BaseException({
|
|
3548
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3549
|
+
$fault: "client",
|
|
3550
|
+
$metadata: deserializeMetadata(output),
|
|
3551
|
+
});
|
|
3552
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4071
3553
|
}
|
|
4072
3554
|
});
|
|
4073
3555
|
}); };
|
|
@@ -4090,16 +3572,16 @@ export var deserializeAws_restJson1PutDeliverabilityDashboardOptionCommand = fun
|
|
|
4090
3572
|
});
|
|
4091
3573
|
}); };
|
|
4092
3574
|
var deserializeAws_restJson1PutDeliverabilityDashboardOptionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4093
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4094
|
-
var
|
|
4095
|
-
return __generator(this, function (
|
|
4096
|
-
switch (
|
|
3575
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3576
|
+
var _c;
|
|
3577
|
+
return __generator(this, function (_d) {
|
|
3578
|
+
switch (_d.label) {
|
|
4097
3579
|
case 0:
|
|
4098
3580
|
_a = [__assign({}, output)];
|
|
4099
|
-
|
|
3581
|
+
_c = {};
|
|
4100
3582
|
return [4, parseBody(output.body, context)];
|
|
4101
3583
|
case 1:
|
|
4102
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3584
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4103
3585
|
errorCode = "UnknownError";
|
|
4104
3586
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4105
3587
|
_b = errorCode;
|
|
@@ -4116,46 +3598,24 @@ var deserializeAws_restJson1PutDeliverabilityDashboardOptionCommandError = funct
|
|
|
4116
3598
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 10];
|
|
4117
3599
|
}
|
|
4118
3600
|
return [3, 12];
|
|
4119
|
-
case 2:
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
case
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
case 4
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
case
|
|
4129
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4130
|
-
return [3, 13];
|
|
4131
|
-
case 6:
|
|
4132
|
-
_e = [{}];
|
|
4133
|
-
return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
4134
|
-
case 7:
|
|
4135
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4136
|
-
return [3, 13];
|
|
4137
|
-
case 8:
|
|
4138
|
-
_f = [{}];
|
|
4139
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
4140
|
-
case 9:
|
|
4141
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4142
|
-
return [3, 13];
|
|
4143
|
-
case 10:
|
|
4144
|
-
_g = [{}];
|
|
4145
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
4146
|
-
case 11:
|
|
4147
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4148
|
-
return [3, 13];
|
|
3601
|
+
case 2: return [4, deserializeAws_restJson1AlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
3602
|
+
case 3: throw _d.sent();
|
|
3603
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3604
|
+
case 5: throw _d.sent();
|
|
3605
|
+
case 6: return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
3606
|
+
case 7: throw _d.sent();
|
|
3607
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3608
|
+
case 9: throw _d.sent();
|
|
3609
|
+
case 10: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3610
|
+
case 11: throw _d.sent();
|
|
4149
3611
|
case 12:
|
|
4150
3612
|
parsedBody = parsedOutput.body;
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
response
|
|
4157
|
-
delete response.Message;
|
|
4158
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3613
|
+
response = new __BaseException({
|
|
3614
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3615
|
+
$fault: "client",
|
|
3616
|
+
$metadata: deserializeMetadata(output),
|
|
3617
|
+
});
|
|
3618
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4159
3619
|
}
|
|
4160
3620
|
});
|
|
4161
3621
|
}); };
|
|
@@ -4178,16 +3638,16 @@ export var deserializeAws_restJson1PutEmailIdentityDkimAttributesCommand = funct
|
|
|
4178
3638
|
});
|
|
4179
3639
|
}); };
|
|
4180
3640
|
var deserializeAws_restJson1PutEmailIdentityDkimAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4181
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4182
|
-
var
|
|
4183
|
-
return __generator(this, function (
|
|
4184
|
-
switch (
|
|
3641
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3642
|
+
var _c;
|
|
3643
|
+
return __generator(this, function (_d) {
|
|
3644
|
+
switch (_d.label) {
|
|
4185
3645
|
case 0:
|
|
4186
3646
|
_a = [__assign({}, output)];
|
|
4187
|
-
|
|
3647
|
+
_c = {};
|
|
4188
3648
|
return [4, parseBody(output.body, context)];
|
|
4189
3649
|
case 1:
|
|
4190
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3650
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4191
3651
|
errorCode = "UnknownError";
|
|
4192
3652
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4193
3653
|
_b = errorCode;
|
|
@@ -4200,34 +3660,20 @@ var deserializeAws_restJson1PutEmailIdentityDkimAttributesCommandError = functio
|
|
|
4200
3660
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
4201
3661
|
}
|
|
4202
3662
|
return [3, 8];
|
|
4203
|
-
case 2:
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
case
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
case 4:
|
|
4210
|
-
_d = [{}];
|
|
4211
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
4212
|
-
case 5:
|
|
4213
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4214
|
-
return [3, 9];
|
|
4215
|
-
case 6:
|
|
4216
|
-
_e = [{}];
|
|
4217
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
4218
|
-
case 7:
|
|
4219
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4220
|
-
return [3, 9];
|
|
3663
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3664
|
+
case 3: throw _d.sent();
|
|
3665
|
+
case 4: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3666
|
+
case 5: throw _d.sent();
|
|
3667
|
+
case 6: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3668
|
+
case 7: throw _d.sent();
|
|
4221
3669
|
case 8:
|
|
4222
3670
|
parsedBody = parsedOutput.body;
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
response
|
|
4229
|
-
delete response.Message;
|
|
4230
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3671
|
+
response = new __BaseException({
|
|
3672
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3673
|
+
$fault: "client",
|
|
3674
|
+
$metadata: deserializeMetadata(output),
|
|
3675
|
+
});
|
|
3676
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4231
3677
|
}
|
|
4232
3678
|
});
|
|
4233
3679
|
}); };
|
|
@@ -4250,16 +3696,16 @@ export var deserializeAws_restJson1PutEmailIdentityFeedbackAttributesCommand = f
|
|
|
4250
3696
|
});
|
|
4251
3697
|
}); };
|
|
4252
3698
|
var deserializeAws_restJson1PutEmailIdentityFeedbackAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4253
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4254
|
-
var
|
|
4255
|
-
return __generator(this, function (
|
|
4256
|
-
switch (
|
|
3699
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3700
|
+
var _c;
|
|
3701
|
+
return __generator(this, function (_d) {
|
|
3702
|
+
switch (_d.label) {
|
|
4257
3703
|
case 0:
|
|
4258
3704
|
_a = [__assign({}, output)];
|
|
4259
|
-
|
|
3705
|
+
_c = {};
|
|
4260
3706
|
return [4, parseBody(output.body, context)];
|
|
4261
3707
|
case 1:
|
|
4262
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3708
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4263
3709
|
errorCode = "UnknownError";
|
|
4264
3710
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4265
3711
|
_b = errorCode;
|
|
@@ -4272,34 +3718,20 @@ var deserializeAws_restJson1PutEmailIdentityFeedbackAttributesCommandError = fun
|
|
|
4272
3718
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
4273
3719
|
}
|
|
4274
3720
|
return [3, 8];
|
|
4275
|
-
case 2:
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
case
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
case 4:
|
|
4282
|
-
_d = [{}];
|
|
4283
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
4284
|
-
case 5:
|
|
4285
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4286
|
-
return [3, 9];
|
|
4287
|
-
case 6:
|
|
4288
|
-
_e = [{}];
|
|
4289
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
4290
|
-
case 7:
|
|
4291
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4292
|
-
return [3, 9];
|
|
3721
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3722
|
+
case 3: throw _d.sent();
|
|
3723
|
+
case 4: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3724
|
+
case 5: throw _d.sent();
|
|
3725
|
+
case 6: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3726
|
+
case 7: throw _d.sent();
|
|
4293
3727
|
case 8:
|
|
4294
3728
|
parsedBody = parsedOutput.body;
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
response
|
|
4301
|
-
delete response.Message;
|
|
4302
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3729
|
+
response = new __BaseException({
|
|
3730
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3731
|
+
$fault: "client",
|
|
3732
|
+
$metadata: deserializeMetadata(output),
|
|
3733
|
+
});
|
|
3734
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4303
3735
|
}
|
|
4304
3736
|
});
|
|
4305
3737
|
}); };
|
|
@@ -4322,16 +3754,16 @@ export var deserializeAws_restJson1PutEmailIdentityMailFromAttributesCommand = f
|
|
|
4322
3754
|
});
|
|
4323
3755
|
}); };
|
|
4324
3756
|
var deserializeAws_restJson1PutEmailIdentityMailFromAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4325
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4326
|
-
var
|
|
4327
|
-
return __generator(this, function (
|
|
4328
|
-
switch (
|
|
3757
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3758
|
+
var _c;
|
|
3759
|
+
return __generator(this, function (_d) {
|
|
3760
|
+
switch (_d.label) {
|
|
4329
3761
|
case 0:
|
|
4330
3762
|
_a = [__assign({}, output)];
|
|
4331
|
-
|
|
3763
|
+
_c = {};
|
|
4332
3764
|
return [4, parseBody(output.body, context)];
|
|
4333
3765
|
case 1:
|
|
4334
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3766
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4335
3767
|
errorCode = "UnknownError";
|
|
4336
3768
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4337
3769
|
_b = errorCode;
|
|
@@ -4344,34 +3776,20 @@ var deserializeAws_restJson1PutEmailIdentityMailFromAttributesCommandError = fun
|
|
|
4344
3776
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
4345
3777
|
}
|
|
4346
3778
|
return [3, 8];
|
|
4347
|
-
case 2:
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
case
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
case 4:
|
|
4354
|
-
_d = [{}];
|
|
4355
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
4356
|
-
case 5:
|
|
4357
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4358
|
-
return [3, 9];
|
|
4359
|
-
case 6:
|
|
4360
|
-
_e = [{}];
|
|
4361
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
4362
|
-
case 7:
|
|
4363
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4364
|
-
return [3, 9];
|
|
3779
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3780
|
+
case 3: throw _d.sent();
|
|
3781
|
+
case 4: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3782
|
+
case 5: throw _d.sent();
|
|
3783
|
+
case 6: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3784
|
+
case 7: throw _d.sent();
|
|
4365
3785
|
case 8:
|
|
4366
3786
|
parsedBody = parsedOutput.body;
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
response
|
|
4373
|
-
delete response.Message;
|
|
4374
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3787
|
+
response = new __BaseException({
|
|
3788
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3789
|
+
$fault: "client",
|
|
3790
|
+
$metadata: deserializeMetadata(output),
|
|
3791
|
+
});
|
|
3792
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4375
3793
|
}
|
|
4376
3794
|
});
|
|
4377
3795
|
}); };
|
|
@@ -4400,16 +3818,16 @@ export var deserializeAws_restJson1SendEmailCommand = function (output, context)
|
|
|
4400
3818
|
});
|
|
4401
3819
|
}); };
|
|
4402
3820
|
var deserializeAws_restJson1SendEmailCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4403
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4404
|
-
var
|
|
4405
|
-
return __generator(this, function (
|
|
4406
|
-
switch (
|
|
3821
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3822
|
+
var _c;
|
|
3823
|
+
return __generator(this, function (_d) {
|
|
3824
|
+
switch (_d.label) {
|
|
4407
3825
|
case 0:
|
|
4408
3826
|
_a = [__assign({}, output)];
|
|
4409
|
-
|
|
3827
|
+
_c = {};
|
|
4410
3828
|
return [4, parseBody(output.body, context)];
|
|
4411
3829
|
case 1:
|
|
4412
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3830
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4413
3831
|
errorCode = "UnknownError";
|
|
4414
3832
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4415
3833
|
_b = errorCode;
|
|
@@ -4432,64 +3850,30 @@ var deserializeAws_restJson1SendEmailCommandError = function (output, context) {
|
|
|
4432
3850
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 16];
|
|
4433
3851
|
}
|
|
4434
3852
|
return [3, 18];
|
|
4435
|
-
case 2:
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
case
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
case 4
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
case
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
case
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
case
|
|
4451
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4452
|
-
return [3, 19];
|
|
4453
|
-
case 8:
|
|
4454
|
-
_f = [{}];
|
|
4455
|
-
return [4, deserializeAws_restJson1MailFromDomainNotVerifiedExceptionResponse(parsedOutput, context)];
|
|
4456
|
-
case 9:
|
|
4457
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4458
|
-
return [3, 19];
|
|
4459
|
-
case 10:
|
|
4460
|
-
_g = [{}];
|
|
4461
|
-
return [4, deserializeAws_restJson1MessageRejectedResponse(parsedOutput, context)];
|
|
4462
|
-
case 11:
|
|
4463
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4464
|
-
return [3, 19];
|
|
4465
|
-
case 12:
|
|
4466
|
-
_h = [{}];
|
|
4467
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
4468
|
-
case 13:
|
|
4469
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4470
|
-
return [3, 19];
|
|
4471
|
-
case 14:
|
|
4472
|
-
_j = [{}];
|
|
4473
|
-
return [4, deserializeAws_restJson1SendingPausedExceptionResponse(parsedOutput, context)];
|
|
4474
|
-
case 15:
|
|
4475
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4476
|
-
return [3, 19];
|
|
4477
|
-
case 16:
|
|
4478
|
-
_k = [{}];
|
|
4479
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
4480
|
-
case 17:
|
|
4481
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4482
|
-
return [3, 19];
|
|
3853
|
+
case 2: return [4, deserializeAws_restJson1AccountSuspendedExceptionResponse(parsedOutput, context)];
|
|
3854
|
+
case 3: throw _d.sent();
|
|
3855
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3856
|
+
case 5: throw _d.sent();
|
|
3857
|
+
case 6: return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
3858
|
+
case 7: throw _d.sent();
|
|
3859
|
+
case 8: return [4, deserializeAws_restJson1MailFromDomainNotVerifiedExceptionResponse(parsedOutput, context)];
|
|
3860
|
+
case 9: throw _d.sent();
|
|
3861
|
+
case 10: return [4, deserializeAws_restJson1MessageRejectedResponse(parsedOutput, context)];
|
|
3862
|
+
case 11: throw _d.sent();
|
|
3863
|
+
case 12: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3864
|
+
case 13: throw _d.sent();
|
|
3865
|
+
case 14: return [4, deserializeAws_restJson1SendingPausedExceptionResponse(parsedOutput, context)];
|
|
3866
|
+
case 15: throw _d.sent();
|
|
3867
|
+
case 16: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3868
|
+
case 17: throw _d.sent();
|
|
4483
3869
|
case 18:
|
|
4484
3870
|
parsedBody = parsedOutput.body;
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
response
|
|
4491
|
-
delete response.Message;
|
|
4492
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3871
|
+
response = new __BaseException({
|
|
3872
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3873
|
+
$fault: "client",
|
|
3874
|
+
$metadata: deserializeMetadata(output),
|
|
3875
|
+
});
|
|
3876
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4493
3877
|
}
|
|
4494
3878
|
});
|
|
4495
3879
|
}); };
|
|
@@ -4512,16 +3896,16 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
4512
3896
|
});
|
|
4513
3897
|
}); };
|
|
4514
3898
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4515
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4516
|
-
var
|
|
4517
|
-
return __generator(this, function (
|
|
4518
|
-
switch (
|
|
3899
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3900
|
+
var _c;
|
|
3901
|
+
return __generator(this, function (_d) {
|
|
3902
|
+
switch (_d.label) {
|
|
4519
3903
|
case 0:
|
|
4520
3904
|
_a = [__assign({}, output)];
|
|
4521
|
-
|
|
3905
|
+
_c = {};
|
|
4522
3906
|
return [4, parseBody(output.body, context)];
|
|
4523
3907
|
case 1:
|
|
4524
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3908
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4525
3909
|
errorCode = "UnknownError";
|
|
4526
3910
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4527
3911
|
_b = errorCode;
|
|
@@ -4536,40 +3920,22 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
4536
3920
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 8];
|
|
4537
3921
|
}
|
|
4538
3922
|
return [3, 10];
|
|
4539
|
-
case 2:
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
case
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
case 4
|
|
4546
|
-
|
|
4547
|
-
return [4, deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
4548
|
-
case 5:
|
|
4549
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4550
|
-
return [3, 11];
|
|
4551
|
-
case 6:
|
|
4552
|
-
_e = [{}];
|
|
4553
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
4554
|
-
case 7:
|
|
4555
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4556
|
-
return [3, 11];
|
|
4557
|
-
case 8:
|
|
4558
|
-
_f = [{}];
|
|
4559
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
4560
|
-
case 9:
|
|
4561
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4562
|
-
return [3, 11];
|
|
3923
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3924
|
+
case 3: throw _d.sent();
|
|
3925
|
+
case 4: return [4, deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
3926
|
+
case 5: throw _d.sent();
|
|
3927
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3928
|
+
case 7: throw _d.sent();
|
|
3929
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3930
|
+
case 9: throw _d.sent();
|
|
4563
3931
|
case 10:
|
|
4564
3932
|
parsedBody = parsedOutput.body;
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
response
|
|
4571
|
-
delete response.Message;
|
|
4572
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3933
|
+
response = new __BaseException({
|
|
3934
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3935
|
+
$fault: "client",
|
|
3936
|
+
$metadata: deserializeMetadata(output),
|
|
3937
|
+
});
|
|
3938
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4573
3939
|
}
|
|
4574
3940
|
});
|
|
4575
3941
|
}); };
|
|
@@ -4592,16 +3958,16 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
4592
3958
|
});
|
|
4593
3959
|
}); };
|
|
4594
3960
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4595
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4596
|
-
var
|
|
4597
|
-
return __generator(this, function (
|
|
4598
|
-
switch (
|
|
3961
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3962
|
+
var _c;
|
|
3963
|
+
return __generator(this, function (_d) {
|
|
3964
|
+
switch (_d.label) {
|
|
4599
3965
|
case 0:
|
|
4600
3966
|
_a = [__assign({}, output)];
|
|
4601
|
-
|
|
3967
|
+
_c = {};
|
|
4602
3968
|
return [4, parseBody(output.body, context)];
|
|
4603
3969
|
case 1:
|
|
4604
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3970
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4605
3971
|
errorCode = "UnknownError";
|
|
4606
3972
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4607
3973
|
_b = errorCode;
|
|
@@ -4616,40 +3982,22 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
4616
3982
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 8];
|
|
4617
3983
|
}
|
|
4618
3984
|
return [3, 10];
|
|
4619
|
-
case 2:
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
case
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
case 4
|
|
4626
|
-
|
|
4627
|
-
return [4, deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
4628
|
-
case 5:
|
|
4629
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4630
|
-
return [3, 11];
|
|
4631
|
-
case 6:
|
|
4632
|
-
_e = [{}];
|
|
4633
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
4634
|
-
case 7:
|
|
4635
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4636
|
-
return [3, 11];
|
|
4637
|
-
case 8:
|
|
4638
|
-
_f = [{}];
|
|
4639
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
4640
|
-
case 9:
|
|
4641
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4642
|
-
return [3, 11];
|
|
3985
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3986
|
+
case 3: throw _d.sent();
|
|
3987
|
+
case 4: return [4, deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
3988
|
+
case 5: throw _d.sent();
|
|
3989
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3990
|
+
case 7: throw _d.sent();
|
|
3991
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3992
|
+
case 9: throw _d.sent();
|
|
4643
3993
|
case 10:
|
|
4644
3994
|
parsedBody = parsedOutput.body;
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
response
|
|
4651
|
-
delete response.Message;
|
|
4652
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3995
|
+
response = new __BaseException({
|
|
3996
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3997
|
+
$fault: "client",
|
|
3998
|
+
$metadata: deserializeMetadata(output),
|
|
3999
|
+
});
|
|
4000
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4653
4001
|
}
|
|
4654
4002
|
});
|
|
4655
4003
|
}); };
|
|
@@ -4672,16 +4020,16 @@ export var deserializeAws_restJson1UpdateConfigurationSetEventDestinationCommand
|
|
|
4672
4020
|
});
|
|
4673
4021
|
}); };
|
|
4674
4022
|
var deserializeAws_restJson1UpdateConfigurationSetEventDestinationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4675
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4676
|
-
var
|
|
4677
|
-
return __generator(this, function (
|
|
4678
|
-
switch (
|
|
4023
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4024
|
+
var _c;
|
|
4025
|
+
return __generator(this, function (_d) {
|
|
4026
|
+
switch (_d.label) {
|
|
4679
4027
|
case 0:
|
|
4680
4028
|
_a = [__assign({}, output)];
|
|
4681
|
-
|
|
4029
|
+
_c = {};
|
|
4682
4030
|
return [4, parseBody(output.body, context)];
|
|
4683
4031
|
case 1:
|
|
4684
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
4032
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4685
4033
|
errorCode = "UnknownError";
|
|
4686
4034
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4687
4035
|
_b = errorCode;
|
|
@@ -4694,195 +4042,141 @@ var deserializeAws_restJson1UpdateConfigurationSetEventDestinationCommandError =
|
|
|
4694
4042
|
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
4695
4043
|
}
|
|
4696
4044
|
return [3, 8];
|
|
4697
|
-
case 2:
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
case
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
case 4:
|
|
4704
|
-
_d = [{}];
|
|
4705
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
4706
|
-
case 5:
|
|
4707
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4708
|
-
return [3, 9];
|
|
4709
|
-
case 6:
|
|
4710
|
-
_e = [{}];
|
|
4711
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
4712
|
-
case 7:
|
|
4713
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4714
|
-
return [3, 9];
|
|
4045
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
4046
|
+
case 3: throw _d.sent();
|
|
4047
|
+
case 4: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
4048
|
+
case 5: throw _d.sent();
|
|
4049
|
+
case 6: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
4050
|
+
case 7: throw _d.sent();
|
|
4715
4051
|
case 8:
|
|
4716
4052
|
parsedBody = parsedOutput.body;
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
response
|
|
4723
|
-
delete response.Message;
|
|
4724
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4053
|
+
response = new __BaseException({
|
|
4054
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4055
|
+
$fault: "client",
|
|
4056
|
+
$metadata: deserializeMetadata(output),
|
|
4057
|
+
});
|
|
4058
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4725
4059
|
}
|
|
4726
4060
|
});
|
|
4727
4061
|
}); };
|
|
4728
4062
|
var deserializeAws_restJson1AccountSuspendedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4729
|
-
var contents, data;
|
|
4063
|
+
var contents, data, exception;
|
|
4730
4064
|
return __generator(this, function (_a) {
|
|
4731
|
-
contents = {
|
|
4732
|
-
name: "AccountSuspendedException",
|
|
4733
|
-
$fault: "client",
|
|
4734
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4735
|
-
message: undefined,
|
|
4736
|
-
};
|
|
4065
|
+
contents = {};
|
|
4737
4066
|
data = parsedOutput.body;
|
|
4738
4067
|
if (data.message !== undefined && data.message !== null) {
|
|
4739
4068
|
contents.message = __expectString(data.message);
|
|
4740
4069
|
}
|
|
4741
|
-
|
|
4070
|
+
exception = new AccountSuspendedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
4071
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
4742
4072
|
});
|
|
4743
4073
|
}); };
|
|
4744
4074
|
var deserializeAws_restJson1AlreadyExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4745
|
-
var contents, data;
|
|
4075
|
+
var contents, data, exception;
|
|
4746
4076
|
return __generator(this, function (_a) {
|
|
4747
|
-
contents = {
|
|
4748
|
-
name: "AlreadyExistsException",
|
|
4749
|
-
$fault: "client",
|
|
4750
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4751
|
-
message: undefined,
|
|
4752
|
-
};
|
|
4077
|
+
contents = {};
|
|
4753
4078
|
data = parsedOutput.body;
|
|
4754
4079
|
if (data.message !== undefined && data.message !== null) {
|
|
4755
4080
|
contents.message = __expectString(data.message);
|
|
4756
4081
|
}
|
|
4757
|
-
|
|
4082
|
+
exception = new AlreadyExistsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
4083
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
4758
4084
|
});
|
|
4759
4085
|
}); };
|
|
4760
4086
|
var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4761
|
-
var contents, data;
|
|
4087
|
+
var contents, data, exception;
|
|
4762
4088
|
return __generator(this, function (_a) {
|
|
4763
|
-
contents = {
|
|
4764
|
-
name: "BadRequestException",
|
|
4765
|
-
$fault: "client",
|
|
4766
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4767
|
-
message: undefined,
|
|
4768
|
-
};
|
|
4089
|
+
contents = {};
|
|
4769
4090
|
data = parsedOutput.body;
|
|
4770
4091
|
if (data.message !== undefined && data.message !== null) {
|
|
4771
4092
|
contents.message = __expectString(data.message);
|
|
4772
4093
|
}
|
|
4773
|
-
|
|
4094
|
+
exception = new BadRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
4095
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
4774
4096
|
});
|
|
4775
4097
|
}); };
|
|
4776
4098
|
var deserializeAws_restJson1ConcurrentModificationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4777
|
-
var contents, data;
|
|
4099
|
+
var contents, data, exception;
|
|
4778
4100
|
return __generator(this, function (_a) {
|
|
4779
|
-
contents = {
|
|
4780
|
-
name: "ConcurrentModificationException",
|
|
4781
|
-
$fault: "server",
|
|
4782
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4783
|
-
message: undefined,
|
|
4784
|
-
};
|
|
4101
|
+
contents = {};
|
|
4785
4102
|
data = parsedOutput.body;
|
|
4786
4103
|
if (data.message !== undefined && data.message !== null) {
|
|
4787
4104
|
contents.message = __expectString(data.message);
|
|
4788
4105
|
}
|
|
4789
|
-
|
|
4106
|
+
exception = new ConcurrentModificationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
4107
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
4790
4108
|
});
|
|
4791
4109
|
}); };
|
|
4792
4110
|
var deserializeAws_restJson1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4793
|
-
var contents, data;
|
|
4111
|
+
var contents, data, exception;
|
|
4794
4112
|
return __generator(this, function (_a) {
|
|
4795
|
-
contents = {
|
|
4796
|
-
name: "LimitExceededException",
|
|
4797
|
-
$fault: "client",
|
|
4798
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4799
|
-
message: undefined,
|
|
4800
|
-
};
|
|
4113
|
+
contents = {};
|
|
4801
4114
|
data = parsedOutput.body;
|
|
4802
4115
|
if (data.message !== undefined && data.message !== null) {
|
|
4803
4116
|
contents.message = __expectString(data.message);
|
|
4804
4117
|
}
|
|
4805
|
-
|
|
4118
|
+
exception = new LimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
4119
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
4806
4120
|
});
|
|
4807
4121
|
}); };
|
|
4808
4122
|
var deserializeAws_restJson1MailFromDomainNotVerifiedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4809
|
-
var contents, data;
|
|
4123
|
+
var contents, data, exception;
|
|
4810
4124
|
return __generator(this, function (_a) {
|
|
4811
|
-
contents = {
|
|
4812
|
-
name: "MailFromDomainNotVerifiedException",
|
|
4813
|
-
$fault: "client",
|
|
4814
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4815
|
-
message: undefined,
|
|
4816
|
-
};
|
|
4125
|
+
contents = {};
|
|
4817
4126
|
data = parsedOutput.body;
|
|
4818
4127
|
if (data.message !== undefined && data.message !== null) {
|
|
4819
4128
|
contents.message = __expectString(data.message);
|
|
4820
4129
|
}
|
|
4821
|
-
|
|
4130
|
+
exception = new MailFromDomainNotVerifiedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
4131
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
4822
4132
|
});
|
|
4823
4133
|
}); };
|
|
4824
4134
|
var deserializeAws_restJson1MessageRejectedResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4825
|
-
var contents, data;
|
|
4135
|
+
var contents, data, exception;
|
|
4826
4136
|
return __generator(this, function (_a) {
|
|
4827
|
-
contents = {
|
|
4828
|
-
name: "MessageRejected",
|
|
4829
|
-
$fault: "client",
|
|
4830
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4831
|
-
message: undefined,
|
|
4832
|
-
};
|
|
4137
|
+
contents = {};
|
|
4833
4138
|
data = parsedOutput.body;
|
|
4834
4139
|
if (data.message !== undefined && data.message !== null) {
|
|
4835
4140
|
contents.message = __expectString(data.message);
|
|
4836
4141
|
}
|
|
4837
|
-
|
|
4142
|
+
exception = new MessageRejected(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
4143
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
4838
4144
|
});
|
|
4839
4145
|
}); };
|
|
4840
4146
|
var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4841
|
-
var contents, data;
|
|
4147
|
+
var contents, data, exception;
|
|
4842
4148
|
return __generator(this, function (_a) {
|
|
4843
|
-
contents = {
|
|
4844
|
-
name: "NotFoundException",
|
|
4845
|
-
$fault: "client",
|
|
4846
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4847
|
-
message: undefined,
|
|
4848
|
-
};
|
|
4149
|
+
contents = {};
|
|
4849
4150
|
data = parsedOutput.body;
|
|
4850
4151
|
if (data.message !== undefined && data.message !== null) {
|
|
4851
4152
|
contents.message = __expectString(data.message);
|
|
4852
4153
|
}
|
|
4853
|
-
|
|
4154
|
+
exception = new NotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
4155
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
4854
4156
|
});
|
|
4855
4157
|
}); };
|
|
4856
4158
|
var deserializeAws_restJson1SendingPausedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4857
|
-
var contents, data;
|
|
4159
|
+
var contents, data, exception;
|
|
4858
4160
|
return __generator(this, function (_a) {
|
|
4859
|
-
contents = {
|
|
4860
|
-
name: "SendingPausedException",
|
|
4861
|
-
$fault: "client",
|
|
4862
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4863
|
-
message: undefined,
|
|
4864
|
-
};
|
|
4161
|
+
contents = {};
|
|
4865
4162
|
data = parsedOutput.body;
|
|
4866
4163
|
if (data.message !== undefined && data.message !== null) {
|
|
4867
4164
|
contents.message = __expectString(data.message);
|
|
4868
4165
|
}
|
|
4869
|
-
|
|
4166
|
+
exception = new SendingPausedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
4167
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
4870
4168
|
});
|
|
4871
4169
|
}); };
|
|
4872
4170
|
var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4873
|
-
var contents, data;
|
|
4171
|
+
var contents, data, exception;
|
|
4874
4172
|
return __generator(this, function (_a) {
|
|
4875
|
-
contents = {
|
|
4876
|
-
name: "TooManyRequestsException",
|
|
4877
|
-
$fault: "client",
|
|
4878
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4879
|
-
message: undefined,
|
|
4880
|
-
};
|
|
4173
|
+
contents = {};
|
|
4881
4174
|
data = parsedOutput.body;
|
|
4882
4175
|
if (data.message !== undefined && data.message !== null) {
|
|
4883
4176
|
contents.message = __expectString(data.message);
|
|
4884
4177
|
}
|
|
4885
|
-
|
|
4178
|
+
exception = new TooManyRequestsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
4179
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
4886
4180
|
});
|
|
4887
4181
|
}); };
|
|
4888
4182
|
var serializeAws_restJson1Body = function (input, context) {
|
|
@@ -5067,7 +4361,7 @@ var serializeAws_restJson1TrackingOptions = function (input, context) {
|
|
|
5067
4361
|
input.CustomRedirectDomain !== null && { CustomRedirectDomain: input.CustomRedirectDomain }));
|
|
5068
4362
|
};
|
|
5069
4363
|
var deserializeAws_restJson1BlacklistEntries = function (output, context) {
|
|
5070
|
-
|
|
4364
|
+
var retVal = (output || [])
|
|
5071
4365
|
.filter(function (e) { return e != null; })
|
|
5072
4366
|
.map(function (entry) {
|
|
5073
4367
|
if (entry === null) {
|
|
@@ -5075,6 +4369,7 @@ var deserializeAws_restJson1BlacklistEntries = function (output, context) {
|
|
|
5075
4369
|
}
|
|
5076
4370
|
return deserializeAws_restJson1BlacklistEntry(entry, context);
|
|
5077
4371
|
});
|
|
4372
|
+
return retVal;
|
|
5078
4373
|
};
|
|
5079
4374
|
var deserializeAws_restJson1BlacklistEntry = function (output, context) {
|
|
5080
4375
|
return {
|
|
@@ -5110,7 +4405,7 @@ var deserializeAws_restJson1CloudWatchDimensionConfiguration = function (output,
|
|
|
5110
4405
|
};
|
|
5111
4406
|
};
|
|
5112
4407
|
var deserializeAws_restJson1CloudWatchDimensionConfigurations = function (output, context) {
|
|
5113
|
-
|
|
4408
|
+
var retVal = (output || [])
|
|
5114
4409
|
.filter(function (e) { return e != null; })
|
|
5115
4410
|
.map(function (entry) {
|
|
5116
4411
|
if (entry === null) {
|
|
@@ -5118,9 +4413,10 @@ var deserializeAws_restJson1CloudWatchDimensionConfigurations = function (output
|
|
|
5118
4413
|
}
|
|
5119
4414
|
return deserializeAws_restJson1CloudWatchDimensionConfiguration(entry, context);
|
|
5120
4415
|
});
|
|
4416
|
+
return retVal;
|
|
5121
4417
|
};
|
|
5122
4418
|
var deserializeAws_restJson1ConfigurationSetNameList = function (output, context) {
|
|
5123
|
-
|
|
4419
|
+
var retVal = (output || [])
|
|
5124
4420
|
.filter(function (e) { return e != null; })
|
|
5125
4421
|
.map(function (entry) {
|
|
5126
4422
|
if (entry === null) {
|
|
@@ -5128,6 +4424,7 @@ var deserializeAws_restJson1ConfigurationSetNameList = function (output, context
|
|
|
5128
4424
|
}
|
|
5129
4425
|
return __expectString(entry);
|
|
5130
4426
|
});
|
|
4427
|
+
return retVal;
|
|
5131
4428
|
};
|
|
5132
4429
|
var deserializeAws_restJson1DailyVolume = function (output, context) {
|
|
5133
4430
|
return {
|
|
@@ -5143,7 +4440,7 @@ var deserializeAws_restJson1DailyVolume = function (output, context) {
|
|
|
5143
4440
|
};
|
|
5144
4441
|
};
|
|
5145
4442
|
var deserializeAws_restJson1DailyVolumes = function (output, context) {
|
|
5146
|
-
|
|
4443
|
+
var retVal = (output || [])
|
|
5147
4444
|
.filter(function (e) { return e != null; })
|
|
5148
4445
|
.map(function (entry) {
|
|
5149
4446
|
if (entry === null) {
|
|
@@ -5151,6 +4448,7 @@ var deserializeAws_restJson1DailyVolumes = function (output, context) {
|
|
|
5151
4448
|
}
|
|
5152
4449
|
return deserializeAws_restJson1DailyVolume(entry, context);
|
|
5153
4450
|
});
|
|
4451
|
+
return retVal;
|
|
5154
4452
|
};
|
|
5155
4453
|
var deserializeAws_restJson1DedicatedIp = function (output, context) {
|
|
5156
4454
|
return {
|
|
@@ -5161,7 +4459,7 @@ var deserializeAws_restJson1DedicatedIp = function (output, context) {
|
|
|
5161
4459
|
};
|
|
5162
4460
|
};
|
|
5163
4461
|
var deserializeAws_restJson1DedicatedIpList = function (output, context) {
|
|
5164
|
-
|
|
4462
|
+
var retVal = (output || [])
|
|
5165
4463
|
.filter(function (e) { return e != null; })
|
|
5166
4464
|
.map(function (entry) {
|
|
5167
4465
|
if (entry === null) {
|
|
@@ -5169,6 +4467,7 @@ var deserializeAws_restJson1DedicatedIpList = function (output, context) {
|
|
|
5169
4467
|
}
|
|
5170
4468
|
return deserializeAws_restJson1DedicatedIp(entry, context);
|
|
5171
4469
|
});
|
|
4470
|
+
return retVal;
|
|
5172
4471
|
};
|
|
5173
4472
|
var deserializeAws_restJson1DeliverabilityTestReport = function (output, context) {
|
|
5174
4473
|
return {
|
|
@@ -5183,7 +4482,7 @@ var deserializeAws_restJson1DeliverabilityTestReport = function (output, context
|
|
|
5183
4482
|
};
|
|
5184
4483
|
};
|
|
5185
4484
|
var deserializeAws_restJson1DeliverabilityTestReports = function (output, context) {
|
|
5186
|
-
|
|
4485
|
+
var retVal = (output || [])
|
|
5187
4486
|
.filter(function (e) { return e != null; })
|
|
5188
4487
|
.map(function (entry) {
|
|
5189
4488
|
if (entry === null) {
|
|
@@ -5191,6 +4490,7 @@ var deserializeAws_restJson1DeliverabilityTestReports = function (output, contex
|
|
|
5191
4490
|
}
|
|
5192
4491
|
return deserializeAws_restJson1DeliverabilityTestReport(entry, context);
|
|
5193
4492
|
});
|
|
4493
|
+
return retVal;
|
|
5194
4494
|
};
|
|
5195
4495
|
var deserializeAws_restJson1DeliveryOptions = function (output, context) {
|
|
5196
4496
|
return {
|
|
@@ -5208,7 +4508,7 @@ var deserializeAws_restJson1DkimAttributes = function (output, context) {
|
|
|
5208
4508
|
};
|
|
5209
4509
|
};
|
|
5210
4510
|
var deserializeAws_restJson1DnsTokenList = function (output, context) {
|
|
5211
|
-
|
|
4511
|
+
var retVal = (output || [])
|
|
5212
4512
|
.filter(function (e) { return e != null; })
|
|
5213
4513
|
.map(function (entry) {
|
|
5214
4514
|
if (entry === null) {
|
|
@@ -5216,6 +4516,7 @@ var deserializeAws_restJson1DnsTokenList = function (output, context) {
|
|
|
5216
4516
|
}
|
|
5217
4517
|
return __expectString(entry);
|
|
5218
4518
|
});
|
|
4519
|
+
return retVal;
|
|
5219
4520
|
};
|
|
5220
4521
|
var deserializeAws_restJson1DomainDeliverabilityCampaign = function (output, context) {
|
|
5221
4522
|
return {
|
|
@@ -5244,7 +4545,7 @@ var deserializeAws_restJson1DomainDeliverabilityCampaign = function (output, con
|
|
|
5244
4545
|
};
|
|
5245
4546
|
};
|
|
5246
4547
|
var deserializeAws_restJson1DomainDeliverabilityCampaignList = function (output, context) {
|
|
5247
|
-
|
|
4548
|
+
var retVal = (output || [])
|
|
5248
4549
|
.filter(function (e) { return e != null; })
|
|
5249
4550
|
.map(function (entry) {
|
|
5250
4551
|
if (entry === null) {
|
|
@@ -5252,6 +4553,7 @@ var deserializeAws_restJson1DomainDeliverabilityCampaignList = function (output,
|
|
|
5252
4553
|
}
|
|
5253
4554
|
return deserializeAws_restJson1DomainDeliverabilityCampaign(entry, context);
|
|
5254
4555
|
});
|
|
4556
|
+
return retVal;
|
|
5255
4557
|
};
|
|
5256
4558
|
var deserializeAws_restJson1DomainDeliverabilityTrackingOption = function (output, context) {
|
|
5257
4559
|
return {
|
|
@@ -5265,7 +4567,7 @@ var deserializeAws_restJson1DomainDeliverabilityTrackingOption = function (outpu
|
|
|
5265
4567
|
};
|
|
5266
4568
|
};
|
|
5267
4569
|
var deserializeAws_restJson1DomainDeliverabilityTrackingOptions = function (output, context) {
|
|
5268
|
-
|
|
4570
|
+
var retVal = (output || [])
|
|
5269
4571
|
.filter(function (e) { return e != null; })
|
|
5270
4572
|
.map(function (entry) {
|
|
5271
4573
|
if (entry === null) {
|
|
@@ -5273,6 +4575,7 @@ var deserializeAws_restJson1DomainDeliverabilityTrackingOptions = function (outp
|
|
|
5273
4575
|
}
|
|
5274
4576
|
return deserializeAws_restJson1DomainDeliverabilityTrackingOption(entry, context);
|
|
5275
4577
|
});
|
|
4578
|
+
return retVal;
|
|
5276
4579
|
};
|
|
5277
4580
|
var deserializeAws_restJson1DomainIspPlacement = function (output, context) {
|
|
5278
4581
|
return {
|
|
@@ -5284,7 +4587,7 @@ var deserializeAws_restJson1DomainIspPlacement = function (output, context) {
|
|
|
5284
4587
|
};
|
|
5285
4588
|
};
|
|
5286
4589
|
var deserializeAws_restJson1DomainIspPlacements = function (output, context) {
|
|
5287
|
-
|
|
4590
|
+
var retVal = (output || [])
|
|
5288
4591
|
.filter(function (e) { return e != null; })
|
|
5289
4592
|
.map(function (entry) {
|
|
5290
4593
|
if (entry === null) {
|
|
@@ -5292,9 +4595,10 @@ var deserializeAws_restJson1DomainIspPlacements = function (output, context) {
|
|
|
5292
4595
|
}
|
|
5293
4596
|
return deserializeAws_restJson1DomainIspPlacement(entry, context);
|
|
5294
4597
|
});
|
|
4598
|
+
return retVal;
|
|
5295
4599
|
};
|
|
5296
4600
|
var deserializeAws_restJson1Esps = function (output, context) {
|
|
5297
|
-
|
|
4601
|
+
var retVal = (output || [])
|
|
5298
4602
|
.filter(function (e) { return e != null; })
|
|
5299
4603
|
.map(function (entry) {
|
|
5300
4604
|
if (entry === null) {
|
|
@@ -5302,6 +4606,7 @@ var deserializeAws_restJson1Esps = function (output, context) {
|
|
|
5302
4606
|
}
|
|
5303
4607
|
return __expectString(entry);
|
|
5304
4608
|
});
|
|
4609
|
+
return retVal;
|
|
5305
4610
|
};
|
|
5306
4611
|
var deserializeAws_restJson1EventDestination = function (output, context) {
|
|
5307
4612
|
return {
|
|
@@ -5325,7 +4630,7 @@ var deserializeAws_restJson1EventDestination = function (output, context) {
|
|
|
5325
4630
|
};
|
|
5326
4631
|
};
|
|
5327
4632
|
var deserializeAws_restJson1EventDestinations = function (output, context) {
|
|
5328
|
-
|
|
4633
|
+
var retVal = (output || [])
|
|
5329
4634
|
.filter(function (e) { return e != null; })
|
|
5330
4635
|
.map(function (entry) {
|
|
5331
4636
|
if (entry === null) {
|
|
@@ -5333,9 +4638,10 @@ var deserializeAws_restJson1EventDestinations = function (output, context) {
|
|
|
5333
4638
|
}
|
|
5334
4639
|
return deserializeAws_restJson1EventDestination(entry, context);
|
|
5335
4640
|
});
|
|
4641
|
+
return retVal;
|
|
5336
4642
|
};
|
|
5337
4643
|
var deserializeAws_restJson1EventTypes = function (output, context) {
|
|
5338
|
-
|
|
4644
|
+
var retVal = (output || [])
|
|
5339
4645
|
.filter(function (e) { return e != null; })
|
|
5340
4646
|
.map(function (entry) {
|
|
5341
4647
|
if (entry === null) {
|
|
@@ -5343,6 +4649,7 @@ var deserializeAws_restJson1EventTypes = function (output, context) {
|
|
|
5343
4649
|
}
|
|
5344
4650
|
return __expectString(entry);
|
|
5345
4651
|
});
|
|
4652
|
+
return retVal;
|
|
5346
4653
|
};
|
|
5347
4654
|
var deserializeAws_restJson1IdentityInfo = function (output, context) {
|
|
5348
4655
|
return {
|
|
@@ -5352,7 +4659,7 @@ var deserializeAws_restJson1IdentityInfo = function (output, context) {
|
|
|
5352
4659
|
};
|
|
5353
4660
|
};
|
|
5354
4661
|
var deserializeAws_restJson1IdentityInfoList = function (output, context) {
|
|
5355
|
-
|
|
4662
|
+
var retVal = (output || [])
|
|
5356
4663
|
.filter(function (e) { return e != null; })
|
|
5357
4664
|
.map(function (entry) {
|
|
5358
4665
|
if (entry === null) {
|
|
@@ -5360,6 +4667,7 @@ var deserializeAws_restJson1IdentityInfoList = function (output, context) {
|
|
|
5360
4667
|
}
|
|
5361
4668
|
return deserializeAws_restJson1IdentityInfo(entry, context);
|
|
5362
4669
|
});
|
|
4670
|
+
return retVal;
|
|
5363
4671
|
};
|
|
5364
4672
|
var deserializeAws_restJson1InboxPlacementTrackingOption = function (output, context) {
|
|
5365
4673
|
return {
|
|
@@ -5370,7 +4678,7 @@ var deserializeAws_restJson1InboxPlacementTrackingOption = function (output, con
|
|
|
5370
4678
|
};
|
|
5371
4679
|
};
|
|
5372
4680
|
var deserializeAws_restJson1IpList = function (output, context) {
|
|
5373
|
-
|
|
4681
|
+
var retVal = (output || [])
|
|
5374
4682
|
.filter(function (e) { return e != null; })
|
|
5375
4683
|
.map(function (entry) {
|
|
5376
4684
|
if (entry === null) {
|
|
@@ -5378,9 +4686,10 @@ var deserializeAws_restJson1IpList = function (output, context) {
|
|
|
5378
4686
|
}
|
|
5379
4687
|
return __expectString(entry);
|
|
5380
4688
|
});
|
|
4689
|
+
return retVal;
|
|
5381
4690
|
};
|
|
5382
4691
|
var deserializeAws_restJson1IspNameList = function (output, context) {
|
|
5383
|
-
|
|
4692
|
+
var retVal = (output || [])
|
|
5384
4693
|
.filter(function (e) { return e != null; })
|
|
5385
4694
|
.map(function (entry) {
|
|
5386
4695
|
if (entry === null) {
|
|
@@ -5388,6 +4697,7 @@ var deserializeAws_restJson1IspNameList = function (output, context) {
|
|
|
5388
4697
|
}
|
|
5389
4698
|
return __expectString(entry);
|
|
5390
4699
|
});
|
|
4700
|
+
return retVal;
|
|
5391
4701
|
};
|
|
5392
4702
|
var deserializeAws_restJson1IspPlacement = function (output, context) {
|
|
5393
4703
|
return {
|
|
@@ -5398,7 +4708,7 @@ var deserializeAws_restJson1IspPlacement = function (output, context) {
|
|
|
5398
4708
|
};
|
|
5399
4709
|
};
|
|
5400
4710
|
var deserializeAws_restJson1IspPlacements = function (output, context) {
|
|
5401
|
-
|
|
4711
|
+
var retVal = (output || [])
|
|
5402
4712
|
.filter(function (e) { return e != null; })
|
|
5403
4713
|
.map(function (entry) {
|
|
5404
4714
|
if (entry === null) {
|
|
@@ -5406,6 +4716,7 @@ var deserializeAws_restJson1IspPlacements = function (output, context) {
|
|
|
5406
4716
|
}
|
|
5407
4717
|
return deserializeAws_restJson1IspPlacement(entry, context);
|
|
5408
4718
|
});
|
|
4719
|
+
return retVal;
|
|
5409
4720
|
};
|
|
5410
4721
|
var deserializeAws_restJson1KinesisFirehoseDestination = function (output, context) {
|
|
5411
4722
|
return {
|
|
@@ -5414,7 +4725,7 @@ var deserializeAws_restJson1KinesisFirehoseDestination = function (output, conte
|
|
|
5414
4725
|
};
|
|
5415
4726
|
};
|
|
5416
4727
|
var deserializeAws_restJson1ListOfDedicatedIpPools = function (output, context) {
|
|
5417
|
-
|
|
4728
|
+
var retVal = (output || [])
|
|
5418
4729
|
.filter(function (e) { return e != null; })
|
|
5419
4730
|
.map(function (entry) {
|
|
5420
4731
|
if (entry === null) {
|
|
@@ -5422,6 +4733,7 @@ var deserializeAws_restJson1ListOfDedicatedIpPools = function (output, context)
|
|
|
5422
4733
|
}
|
|
5423
4734
|
return __expectString(entry);
|
|
5424
4735
|
});
|
|
4736
|
+
return retVal;
|
|
5425
4737
|
};
|
|
5426
4738
|
var deserializeAws_restJson1MailFromAttributes = function (output, context) {
|
|
5427
4739
|
return {
|
|
@@ -5487,7 +4799,7 @@ var deserializeAws_restJson1Tag = function (output, context) {
|
|
|
5487
4799
|
};
|
|
5488
4800
|
};
|
|
5489
4801
|
var deserializeAws_restJson1TagList = function (output, context) {
|
|
5490
|
-
|
|
4802
|
+
var retVal = (output || [])
|
|
5491
4803
|
.filter(function (e) { return e != null; })
|
|
5492
4804
|
.map(function (entry) {
|
|
5493
4805
|
if (entry === null) {
|
|
@@ -5495,6 +4807,7 @@ var deserializeAws_restJson1TagList = function (output, context) {
|
|
|
5495
4807
|
}
|
|
5496
4808
|
return deserializeAws_restJson1Tag(entry, context);
|
|
5497
4809
|
});
|
|
4810
|
+
return retVal;
|
|
5498
4811
|
};
|
|
5499
4812
|
var deserializeAws_restJson1TrackingOptions = function (output, context) {
|
|
5500
4813
|
return {
|