@aws-sdk/client-sesv2 3.28.0 → 3.32.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 +32 -0
- package/dist/cjs/package.json +31 -31
- package/dist/cjs/protocols/Aws_restJson1.js +84 -84
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/es/endpoints.js +1 -2
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/package.json +31 -31
- package/dist/es/protocols/Aws_restJson1.js +275 -199
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/package.json +31 -31
- package/protocols/Aws_restJson1.ts +93 -86
|
@@ -1,6 +1,6 @@
|
|
|
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,
|
|
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";
|
|
4
4
|
export var serializeAws_restJson1CreateConfigurationSetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
5
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
6
6
|
return __generator(this, function (_c) {
|
|
@@ -3132,9 +3132,9 @@ var deserializeAws_restJson1CreateDedicatedIpPoolCommandError = function (output
|
|
|
3132
3132
|
});
|
|
3133
3133
|
}); };
|
|
3134
3134
|
export var deserializeAws_restJson1CreateDeliverabilityTestReportCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3135
|
-
var contents, data;
|
|
3136
|
-
return __generator(this, function (
|
|
3137
|
-
switch (
|
|
3135
|
+
var contents, data, _a, _b;
|
|
3136
|
+
return __generator(this, function (_c) {
|
|
3137
|
+
switch (_c.label) {
|
|
3138
3138
|
case 0:
|
|
3139
3139
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3140
3140
|
return [2 /*return*/, deserializeAws_restJson1CreateDeliverabilityTestReportCommandError(output, context)];
|
|
@@ -3144,9 +3144,11 @@ export var deserializeAws_restJson1CreateDeliverabilityTestReportCommand = funct
|
|
|
3144
3144
|
DeliverabilityTestStatus: undefined,
|
|
3145
3145
|
ReportId: undefined,
|
|
3146
3146
|
};
|
|
3147
|
+
_a = __expectNonNull;
|
|
3148
|
+
_b = __expectObject;
|
|
3147
3149
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3148
3150
|
case 1:
|
|
3149
|
-
data = _a.sent();
|
|
3151
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3150
3152
|
if (data.DeliverabilityTestStatus !== undefined && data.DeliverabilityTestStatus !== null) {
|
|
3151
3153
|
contents.DeliverabilityTestStatus = __expectString(data.DeliverabilityTestStatus);
|
|
3152
3154
|
}
|
|
@@ -3260,9 +3262,9 @@ var deserializeAws_restJson1CreateDeliverabilityTestReportCommandError = functio
|
|
|
3260
3262
|
});
|
|
3261
3263
|
}); };
|
|
3262
3264
|
export var deserializeAws_restJson1CreateEmailIdentityCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3263
|
-
var contents, data;
|
|
3264
|
-
return __generator(this, function (
|
|
3265
|
-
switch (
|
|
3265
|
+
var contents, data, _a, _b;
|
|
3266
|
+
return __generator(this, function (_c) {
|
|
3267
|
+
switch (_c.label) {
|
|
3266
3268
|
case 0:
|
|
3267
3269
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3268
3270
|
return [2 /*return*/, deserializeAws_restJson1CreateEmailIdentityCommandError(output, context)];
|
|
@@ -3273,9 +3275,11 @@ export var deserializeAws_restJson1CreateEmailIdentityCommand = function (output
|
|
|
3273
3275
|
IdentityType: undefined,
|
|
3274
3276
|
VerifiedForSendingStatus: undefined,
|
|
3275
3277
|
};
|
|
3278
|
+
_a = __expectNonNull;
|
|
3279
|
+
_b = __expectObject;
|
|
3276
3280
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3277
3281
|
case 1:
|
|
3278
|
-
data = _a.sent();
|
|
3282
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3279
3283
|
if (data.DkimAttributes !== undefined && data.DkimAttributes !== null) {
|
|
3280
3284
|
contents.DkimAttributes = deserializeAws_restJson1DkimAttributes(data.DkimAttributes, context);
|
|
3281
3285
|
}
|
|
@@ -3536,9 +3540,9 @@ var deserializeAws_restJson1CreateEmailTemplateCommandError = function (output,
|
|
|
3536
3540
|
});
|
|
3537
3541
|
}); };
|
|
3538
3542
|
export var deserializeAws_restJson1CreateImportJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3539
|
-
var contents, data;
|
|
3540
|
-
return __generator(this, function (
|
|
3541
|
-
switch (
|
|
3543
|
+
var contents, data, _a, _b;
|
|
3544
|
+
return __generator(this, function (_c) {
|
|
3545
|
+
switch (_c.label) {
|
|
3542
3546
|
case 0:
|
|
3543
3547
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3544
3548
|
return [2 /*return*/, deserializeAws_restJson1CreateImportJobCommandError(output, context)];
|
|
@@ -3547,9 +3551,11 @@ export var deserializeAws_restJson1CreateImportJobCommand = function (output, co
|
|
|
3547
3551
|
$metadata: deserializeMetadata(output),
|
|
3548
3552
|
JobId: undefined,
|
|
3549
3553
|
};
|
|
3554
|
+
_a = __expectNonNull;
|
|
3555
|
+
_b = __expectObject;
|
|
3550
3556
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3551
3557
|
case 1:
|
|
3552
|
-
data = _a.sent();
|
|
3558
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3553
3559
|
if (data.JobId !== undefined && data.JobId !== null) {
|
|
3554
3560
|
contents.JobId = __expectString(data.JobId);
|
|
3555
3561
|
}
|
|
@@ -4364,9 +4370,9 @@ var deserializeAws_restJson1DeleteSuppressedDestinationCommandError = function (
|
|
|
4364
4370
|
});
|
|
4365
4371
|
}); };
|
|
4366
4372
|
export var deserializeAws_restJson1GetAccountCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4367
|
-
var contents, data;
|
|
4368
|
-
return __generator(this, function (
|
|
4369
|
-
switch (
|
|
4373
|
+
var contents, data, _a, _b;
|
|
4374
|
+
return __generator(this, function (_c) {
|
|
4375
|
+
switch (_c.label) {
|
|
4370
4376
|
case 0:
|
|
4371
4377
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4372
4378
|
return [2 /*return*/, deserializeAws_restJson1GetAccountCommandError(output, context)];
|
|
@@ -4381,9 +4387,11 @@ export var deserializeAws_restJson1GetAccountCommand = function (output, context
|
|
|
4381
4387
|
SendingEnabled: undefined,
|
|
4382
4388
|
SuppressionAttributes: undefined,
|
|
4383
4389
|
};
|
|
4390
|
+
_a = __expectNonNull;
|
|
4391
|
+
_b = __expectObject;
|
|
4384
4392
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
4385
4393
|
case 1:
|
|
4386
|
-
data = _a.sent();
|
|
4394
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4387
4395
|
if (data.DedicatedIpAutoWarmupEnabled !== undefined && data.DedicatedIpAutoWarmupEnabled !== null) {
|
|
4388
4396
|
contents.DedicatedIpAutoWarmupEnabled = __expectBoolean(data.DedicatedIpAutoWarmupEnabled);
|
|
4389
4397
|
}
|
|
@@ -4456,9 +4464,9 @@ var deserializeAws_restJson1GetAccountCommandError = function (output, context)
|
|
|
4456
4464
|
});
|
|
4457
4465
|
}); };
|
|
4458
4466
|
export var deserializeAws_restJson1GetBlacklistReportsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4459
|
-
var contents, data;
|
|
4460
|
-
return __generator(this, function (
|
|
4461
|
-
switch (
|
|
4467
|
+
var contents, data, _a, _b;
|
|
4468
|
+
return __generator(this, function (_c) {
|
|
4469
|
+
switch (_c.label) {
|
|
4462
4470
|
case 0:
|
|
4463
4471
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4464
4472
|
return [2 /*return*/, deserializeAws_restJson1GetBlacklistReportsCommandError(output, context)];
|
|
@@ -4467,9 +4475,11 @@ export var deserializeAws_restJson1GetBlacklistReportsCommand = function (output
|
|
|
4467
4475
|
$metadata: deserializeMetadata(output),
|
|
4468
4476
|
BlacklistReport: undefined,
|
|
4469
4477
|
};
|
|
4478
|
+
_a = __expectNonNull;
|
|
4479
|
+
_b = __expectObject;
|
|
4470
4480
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
4471
4481
|
case 1:
|
|
4472
|
-
data = _a.sent();
|
|
4482
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4473
4483
|
if (data.BlacklistReport !== undefined && data.BlacklistReport !== null) {
|
|
4474
4484
|
contents.BlacklistReport = deserializeAws_restJson1BlacklistReport(data.BlacklistReport, context);
|
|
4475
4485
|
}
|
|
@@ -4532,9 +4542,9 @@ var deserializeAws_restJson1GetBlacklistReportsCommandError = function (output,
|
|
|
4532
4542
|
});
|
|
4533
4543
|
}); };
|
|
4534
4544
|
export var deserializeAws_restJson1GetConfigurationSetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4535
|
-
var contents, data;
|
|
4536
|
-
return __generator(this, function (
|
|
4537
|
-
switch (
|
|
4545
|
+
var contents, data, _a, _b;
|
|
4546
|
+
return __generator(this, function (_c) {
|
|
4547
|
+
switch (_c.label) {
|
|
4538
4548
|
case 0:
|
|
4539
4549
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4540
4550
|
return [2 /*return*/, deserializeAws_restJson1GetConfigurationSetCommandError(output, context)];
|
|
@@ -4549,9 +4559,11 @@ export var deserializeAws_restJson1GetConfigurationSetCommand = function (output
|
|
|
4549
4559
|
Tags: undefined,
|
|
4550
4560
|
TrackingOptions: undefined,
|
|
4551
4561
|
};
|
|
4562
|
+
_a = __expectNonNull;
|
|
4563
|
+
_b = __expectObject;
|
|
4552
4564
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
4553
4565
|
case 1:
|
|
4554
|
-
data = _a.sent();
|
|
4566
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4555
4567
|
if (data.ConfigurationSetName !== undefined && data.ConfigurationSetName !== null) {
|
|
4556
4568
|
contents.ConfigurationSetName = __expectString(data.ConfigurationSetName);
|
|
4557
4569
|
}
|
|
@@ -4632,9 +4644,9 @@ var deserializeAws_restJson1GetConfigurationSetCommandError = function (output,
|
|
|
4632
4644
|
});
|
|
4633
4645
|
}); };
|
|
4634
4646
|
export var deserializeAws_restJson1GetConfigurationSetEventDestinationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4635
|
-
var contents, data;
|
|
4636
|
-
return __generator(this, function (
|
|
4637
|
-
switch (
|
|
4647
|
+
var contents, data, _a, _b;
|
|
4648
|
+
return __generator(this, function (_c) {
|
|
4649
|
+
switch (_c.label) {
|
|
4638
4650
|
case 0:
|
|
4639
4651
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4640
4652
|
return [2 /*return*/, deserializeAws_restJson1GetConfigurationSetEventDestinationsCommandError(output, context)];
|
|
@@ -4643,9 +4655,11 @@ export var deserializeAws_restJson1GetConfigurationSetEventDestinationsCommand =
|
|
|
4643
4655
|
$metadata: deserializeMetadata(output),
|
|
4644
4656
|
EventDestinations: undefined,
|
|
4645
4657
|
};
|
|
4658
|
+
_a = __expectNonNull;
|
|
4659
|
+
_b = __expectObject;
|
|
4646
4660
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
4647
4661
|
case 1:
|
|
4648
|
-
data = _a.sent();
|
|
4662
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4649
4663
|
if (data.EventDestinations !== undefined && data.EventDestinations !== null) {
|
|
4650
4664
|
contents.EventDestinations = deserializeAws_restJson1EventDestinations(data.EventDestinations, context);
|
|
4651
4665
|
}
|
|
@@ -4708,9 +4722,9 @@ var deserializeAws_restJson1GetConfigurationSetEventDestinationsCommandError = f
|
|
|
4708
4722
|
});
|
|
4709
4723
|
}); };
|
|
4710
4724
|
export var deserializeAws_restJson1GetContactCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4711
|
-
var contents, data;
|
|
4712
|
-
return __generator(this, function (
|
|
4713
|
-
switch (
|
|
4725
|
+
var contents, data, _a, _b;
|
|
4726
|
+
return __generator(this, function (_c) {
|
|
4727
|
+
switch (_c.label) {
|
|
4714
4728
|
case 0:
|
|
4715
4729
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4716
4730
|
return [2 /*return*/, deserializeAws_restJson1GetContactCommandError(output, context)];
|
|
@@ -4726,9 +4740,11 @@ export var deserializeAws_restJson1GetContactCommand = function (output, context
|
|
|
4726
4740
|
TopicPreferences: undefined,
|
|
4727
4741
|
UnsubscribeAll: undefined,
|
|
4728
4742
|
};
|
|
4743
|
+
_a = __expectNonNull;
|
|
4744
|
+
_b = __expectObject;
|
|
4729
4745
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
4730
4746
|
case 1:
|
|
4731
|
-
data = _a.sent();
|
|
4747
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4732
4748
|
if (data.AttributesData !== undefined && data.AttributesData !== null) {
|
|
4733
4749
|
contents.AttributesData = __expectString(data.AttributesData);
|
|
4734
4750
|
}
|
|
@@ -4736,13 +4752,13 @@ export var deserializeAws_restJson1GetContactCommand = function (output, context
|
|
|
4736
4752
|
contents.ContactListName = __expectString(data.ContactListName);
|
|
4737
4753
|
}
|
|
4738
4754
|
if (data.CreatedTimestamp !== undefined && data.CreatedTimestamp !== null) {
|
|
4739
|
-
contents.CreatedTimestamp =
|
|
4755
|
+
contents.CreatedTimestamp = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreatedTimestamp)));
|
|
4740
4756
|
}
|
|
4741
4757
|
if (data.EmailAddress !== undefined && data.EmailAddress !== null) {
|
|
4742
4758
|
contents.EmailAddress = __expectString(data.EmailAddress);
|
|
4743
4759
|
}
|
|
4744
4760
|
if (data.LastUpdatedTimestamp !== undefined && data.LastUpdatedTimestamp !== null) {
|
|
4745
|
-
contents.LastUpdatedTimestamp =
|
|
4761
|
+
contents.LastUpdatedTimestamp = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedTimestamp)));
|
|
4746
4762
|
}
|
|
4747
4763
|
if (data.TopicDefaultPreferences !== undefined && data.TopicDefaultPreferences !== null) {
|
|
4748
4764
|
contents.TopicDefaultPreferences = deserializeAws_restJson1TopicPreferenceList(data.TopicDefaultPreferences, context);
|
|
@@ -4812,9 +4828,9 @@ var deserializeAws_restJson1GetContactCommandError = function (output, context)
|
|
|
4812
4828
|
});
|
|
4813
4829
|
}); };
|
|
4814
4830
|
export var deserializeAws_restJson1GetContactListCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4815
|
-
var contents, data;
|
|
4816
|
-
return __generator(this, function (
|
|
4817
|
-
switch (
|
|
4831
|
+
var contents, data, _a, _b;
|
|
4832
|
+
return __generator(this, function (_c) {
|
|
4833
|
+
switch (_c.label) {
|
|
4818
4834
|
case 0:
|
|
4819
4835
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4820
4836
|
return [2 /*return*/, deserializeAws_restJson1GetContactListCommandError(output, context)];
|
|
@@ -4828,20 +4844,22 @@ export var deserializeAws_restJson1GetContactListCommand = function (output, con
|
|
|
4828
4844
|
Tags: undefined,
|
|
4829
4845
|
Topics: undefined,
|
|
4830
4846
|
};
|
|
4847
|
+
_a = __expectNonNull;
|
|
4848
|
+
_b = __expectObject;
|
|
4831
4849
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
4832
4850
|
case 1:
|
|
4833
|
-
data = _a.sent();
|
|
4851
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4834
4852
|
if (data.ContactListName !== undefined && data.ContactListName !== null) {
|
|
4835
4853
|
contents.ContactListName = __expectString(data.ContactListName);
|
|
4836
4854
|
}
|
|
4837
4855
|
if (data.CreatedTimestamp !== undefined && data.CreatedTimestamp !== null) {
|
|
4838
|
-
contents.CreatedTimestamp =
|
|
4856
|
+
contents.CreatedTimestamp = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreatedTimestamp)));
|
|
4839
4857
|
}
|
|
4840
4858
|
if (data.Description !== undefined && data.Description !== null) {
|
|
4841
4859
|
contents.Description = __expectString(data.Description);
|
|
4842
4860
|
}
|
|
4843
4861
|
if (data.LastUpdatedTimestamp !== undefined && data.LastUpdatedTimestamp !== null) {
|
|
4844
|
-
contents.LastUpdatedTimestamp =
|
|
4862
|
+
contents.LastUpdatedTimestamp = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedTimestamp)));
|
|
4845
4863
|
}
|
|
4846
4864
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
4847
4865
|
contents.Tags = deserializeAws_restJson1TagList(data.Tags, context);
|
|
@@ -4908,9 +4926,9 @@ var deserializeAws_restJson1GetContactListCommandError = function (output, conte
|
|
|
4908
4926
|
});
|
|
4909
4927
|
}); };
|
|
4910
4928
|
export var deserializeAws_restJson1GetCustomVerificationEmailTemplateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4911
|
-
var contents, data;
|
|
4912
|
-
return __generator(this, function (
|
|
4913
|
-
switch (
|
|
4929
|
+
var contents, data, _a, _b;
|
|
4930
|
+
return __generator(this, function (_c) {
|
|
4931
|
+
switch (_c.label) {
|
|
4914
4932
|
case 0:
|
|
4915
4933
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4916
4934
|
return [2 /*return*/, deserializeAws_restJson1GetCustomVerificationEmailTemplateCommandError(output, context)];
|
|
@@ -4924,9 +4942,11 @@ export var deserializeAws_restJson1GetCustomVerificationEmailTemplateCommand = f
|
|
|
4924
4942
|
TemplateName: undefined,
|
|
4925
4943
|
TemplateSubject: undefined,
|
|
4926
4944
|
};
|
|
4945
|
+
_a = __expectNonNull;
|
|
4946
|
+
_b = __expectObject;
|
|
4927
4947
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
4928
4948
|
case 1:
|
|
4929
|
-
data = _a.sent();
|
|
4949
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4930
4950
|
if (data.FailureRedirectionURL !== undefined && data.FailureRedirectionURL !== null) {
|
|
4931
4951
|
contents.FailureRedirectionURL = __expectString(data.FailureRedirectionURL);
|
|
4932
4952
|
}
|
|
@@ -5004,9 +5024,9 @@ var deserializeAws_restJson1GetCustomVerificationEmailTemplateCommandError = fun
|
|
|
5004
5024
|
});
|
|
5005
5025
|
}); };
|
|
5006
5026
|
export var deserializeAws_restJson1GetDedicatedIpCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5007
|
-
var contents, data;
|
|
5008
|
-
return __generator(this, function (
|
|
5009
|
-
switch (
|
|
5027
|
+
var contents, data, _a, _b;
|
|
5028
|
+
return __generator(this, function (_c) {
|
|
5029
|
+
switch (_c.label) {
|
|
5010
5030
|
case 0:
|
|
5011
5031
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5012
5032
|
return [2 /*return*/, deserializeAws_restJson1GetDedicatedIpCommandError(output, context)];
|
|
@@ -5015,9 +5035,11 @@ export var deserializeAws_restJson1GetDedicatedIpCommand = function (output, con
|
|
|
5015
5035
|
$metadata: deserializeMetadata(output),
|
|
5016
5036
|
DedicatedIp: undefined,
|
|
5017
5037
|
};
|
|
5038
|
+
_a = __expectNonNull;
|
|
5039
|
+
_b = __expectObject;
|
|
5018
5040
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
5019
5041
|
case 1:
|
|
5020
|
-
data = _a.sent();
|
|
5042
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5021
5043
|
if (data.DedicatedIp !== undefined && data.DedicatedIp !== null) {
|
|
5022
5044
|
contents.DedicatedIp = deserializeAws_restJson1DedicatedIp(data.DedicatedIp, context);
|
|
5023
5045
|
}
|
|
@@ -5080,9 +5102,9 @@ var deserializeAws_restJson1GetDedicatedIpCommandError = function (output, conte
|
|
|
5080
5102
|
});
|
|
5081
5103
|
}); };
|
|
5082
5104
|
export var deserializeAws_restJson1GetDedicatedIpsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5083
|
-
var contents, data;
|
|
5084
|
-
return __generator(this, function (
|
|
5085
|
-
switch (
|
|
5105
|
+
var contents, data, _a, _b;
|
|
5106
|
+
return __generator(this, function (_c) {
|
|
5107
|
+
switch (_c.label) {
|
|
5086
5108
|
case 0:
|
|
5087
5109
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5088
5110
|
return [2 /*return*/, deserializeAws_restJson1GetDedicatedIpsCommandError(output, context)];
|
|
@@ -5092,9 +5114,11 @@ export var deserializeAws_restJson1GetDedicatedIpsCommand = function (output, co
|
|
|
5092
5114
|
DedicatedIps: undefined,
|
|
5093
5115
|
NextToken: undefined,
|
|
5094
5116
|
};
|
|
5117
|
+
_a = __expectNonNull;
|
|
5118
|
+
_b = __expectObject;
|
|
5095
5119
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
5096
5120
|
case 1:
|
|
5097
|
-
data = _a.sent();
|
|
5121
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5098
5122
|
if (data.DedicatedIps !== undefined && data.DedicatedIps !== null) {
|
|
5099
5123
|
contents.DedicatedIps = deserializeAws_restJson1DedicatedIpList(data.DedicatedIps, context);
|
|
5100
5124
|
}
|
|
@@ -5160,9 +5184,9 @@ var deserializeAws_restJson1GetDedicatedIpsCommandError = function (output, cont
|
|
|
5160
5184
|
});
|
|
5161
5185
|
}); };
|
|
5162
5186
|
export var deserializeAws_restJson1GetDeliverabilityDashboardOptionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5163
|
-
var contents, data;
|
|
5164
|
-
return __generator(this, function (
|
|
5165
|
-
switch (
|
|
5187
|
+
var contents, data, _a, _b;
|
|
5188
|
+
return __generator(this, function (_c) {
|
|
5189
|
+
switch (_c.label) {
|
|
5166
5190
|
case 0:
|
|
5167
5191
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5168
5192
|
return [2 /*return*/, deserializeAws_restJson1GetDeliverabilityDashboardOptionsCommandError(output, context)];
|
|
@@ -5175,9 +5199,11 @@ export var deserializeAws_restJson1GetDeliverabilityDashboardOptionsCommand = fu
|
|
|
5175
5199
|
PendingExpirationSubscribedDomains: undefined,
|
|
5176
5200
|
SubscriptionExpiryDate: undefined,
|
|
5177
5201
|
};
|
|
5202
|
+
_a = __expectNonNull;
|
|
5203
|
+
_b = __expectObject;
|
|
5178
5204
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
5179
5205
|
case 1:
|
|
5180
|
-
data = _a.sent();
|
|
5206
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5181
5207
|
if (data.AccountStatus !== undefined && data.AccountStatus !== null) {
|
|
5182
5208
|
contents.AccountStatus = __expectString(data.AccountStatus);
|
|
5183
5209
|
}
|
|
@@ -5191,7 +5217,7 @@ export var deserializeAws_restJson1GetDeliverabilityDashboardOptionsCommand = fu
|
|
|
5191
5217
|
contents.PendingExpirationSubscribedDomains = deserializeAws_restJson1DomainDeliverabilityTrackingOptions(data.PendingExpirationSubscribedDomains, context);
|
|
5192
5218
|
}
|
|
5193
5219
|
if (data.SubscriptionExpiryDate !== undefined && data.SubscriptionExpiryDate !== null) {
|
|
5194
|
-
contents.SubscriptionExpiryDate =
|
|
5220
|
+
contents.SubscriptionExpiryDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.SubscriptionExpiryDate)));
|
|
5195
5221
|
}
|
|
5196
5222
|
return [2 /*return*/, Promise.resolve(contents)];
|
|
5197
5223
|
}
|
|
@@ -5252,9 +5278,9 @@ var deserializeAws_restJson1GetDeliverabilityDashboardOptionsCommandError = func
|
|
|
5252
5278
|
});
|
|
5253
5279
|
}); };
|
|
5254
5280
|
export var deserializeAws_restJson1GetDeliverabilityTestReportCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5255
|
-
var contents, data;
|
|
5256
|
-
return __generator(this, function (
|
|
5257
|
-
switch (
|
|
5281
|
+
var contents, data, _a, _b;
|
|
5282
|
+
return __generator(this, function (_c) {
|
|
5283
|
+
switch (_c.label) {
|
|
5258
5284
|
case 0:
|
|
5259
5285
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5260
5286
|
return [2 /*return*/, deserializeAws_restJson1GetDeliverabilityTestReportCommandError(output, context)];
|
|
@@ -5267,9 +5293,11 @@ export var deserializeAws_restJson1GetDeliverabilityTestReportCommand = function
|
|
|
5267
5293
|
OverallPlacement: undefined,
|
|
5268
5294
|
Tags: undefined,
|
|
5269
5295
|
};
|
|
5296
|
+
_a = __expectNonNull;
|
|
5297
|
+
_b = __expectObject;
|
|
5270
5298
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
5271
5299
|
case 1:
|
|
5272
|
-
data = _a.sent();
|
|
5300
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5273
5301
|
if (data.DeliverabilityTestReport !== undefined && data.DeliverabilityTestReport !== null) {
|
|
5274
5302
|
contents.DeliverabilityTestReport = deserializeAws_restJson1DeliverabilityTestReport(data.DeliverabilityTestReport, context);
|
|
5275
5303
|
}
|
|
@@ -5344,9 +5372,9 @@ var deserializeAws_restJson1GetDeliverabilityTestReportCommandError = function (
|
|
|
5344
5372
|
});
|
|
5345
5373
|
}); };
|
|
5346
5374
|
export var deserializeAws_restJson1GetDomainDeliverabilityCampaignCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5347
|
-
var contents, data;
|
|
5348
|
-
return __generator(this, function (
|
|
5349
|
-
switch (
|
|
5375
|
+
var contents, data, _a, _b;
|
|
5376
|
+
return __generator(this, function (_c) {
|
|
5377
|
+
switch (_c.label) {
|
|
5350
5378
|
case 0:
|
|
5351
5379
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5352
5380
|
return [2 /*return*/, deserializeAws_restJson1GetDomainDeliverabilityCampaignCommandError(output, context)];
|
|
@@ -5355,9 +5383,11 @@ export var deserializeAws_restJson1GetDomainDeliverabilityCampaignCommand = func
|
|
|
5355
5383
|
$metadata: deserializeMetadata(output),
|
|
5356
5384
|
DomainDeliverabilityCampaign: undefined,
|
|
5357
5385
|
};
|
|
5386
|
+
_a = __expectNonNull;
|
|
5387
|
+
_b = __expectObject;
|
|
5358
5388
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
5359
5389
|
case 1:
|
|
5360
|
-
data = _a.sent();
|
|
5390
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5361
5391
|
if (data.DomainDeliverabilityCampaign !== undefined && data.DomainDeliverabilityCampaign !== null) {
|
|
5362
5392
|
contents.DomainDeliverabilityCampaign = deserializeAws_restJson1DomainDeliverabilityCampaign(data.DomainDeliverabilityCampaign, context);
|
|
5363
5393
|
}
|
|
@@ -5420,9 +5450,9 @@ var deserializeAws_restJson1GetDomainDeliverabilityCampaignCommandError = functi
|
|
|
5420
5450
|
});
|
|
5421
5451
|
}); };
|
|
5422
5452
|
export var deserializeAws_restJson1GetDomainStatisticsReportCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5423
|
-
var contents, data;
|
|
5424
|
-
return __generator(this, function (
|
|
5425
|
-
switch (
|
|
5453
|
+
var contents, data, _a, _b;
|
|
5454
|
+
return __generator(this, function (_c) {
|
|
5455
|
+
switch (_c.label) {
|
|
5426
5456
|
case 0:
|
|
5427
5457
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5428
5458
|
return [2 /*return*/, deserializeAws_restJson1GetDomainStatisticsReportCommandError(output, context)];
|
|
@@ -5432,9 +5462,11 @@ export var deserializeAws_restJson1GetDomainStatisticsReportCommand = function (
|
|
|
5432
5462
|
DailyVolumes: undefined,
|
|
5433
5463
|
OverallVolume: undefined,
|
|
5434
5464
|
};
|
|
5465
|
+
_a = __expectNonNull;
|
|
5466
|
+
_b = __expectObject;
|
|
5435
5467
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
5436
5468
|
case 1:
|
|
5437
|
-
data = _a.sent();
|
|
5469
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5438
5470
|
if (data.DailyVolumes !== undefined && data.DailyVolumes !== null) {
|
|
5439
5471
|
contents.DailyVolumes = deserializeAws_restJson1DailyVolumes(data.DailyVolumes, context);
|
|
5440
5472
|
}
|
|
@@ -5500,9 +5532,9 @@ var deserializeAws_restJson1GetDomainStatisticsReportCommandError = function (ou
|
|
|
5500
5532
|
});
|
|
5501
5533
|
}); };
|
|
5502
5534
|
export var deserializeAws_restJson1GetEmailIdentityCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5503
|
-
var contents, data;
|
|
5504
|
-
return __generator(this, function (
|
|
5505
|
-
switch (
|
|
5535
|
+
var contents, data, _a, _b;
|
|
5536
|
+
return __generator(this, function (_c) {
|
|
5537
|
+
switch (_c.label) {
|
|
5506
5538
|
case 0:
|
|
5507
5539
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5508
5540
|
return [2 /*return*/, deserializeAws_restJson1GetEmailIdentityCommandError(output, context)];
|
|
@@ -5518,9 +5550,11 @@ export var deserializeAws_restJson1GetEmailIdentityCommand = function (output, c
|
|
|
5518
5550
|
Tags: undefined,
|
|
5519
5551
|
VerifiedForSendingStatus: undefined,
|
|
5520
5552
|
};
|
|
5553
|
+
_a = __expectNonNull;
|
|
5554
|
+
_b = __expectObject;
|
|
5521
5555
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
5522
5556
|
case 1:
|
|
5523
|
-
data = _a.sent();
|
|
5557
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5524
5558
|
if (data.ConfigurationSetName !== undefined && data.ConfigurationSetName !== null) {
|
|
5525
5559
|
contents.ConfigurationSetName = __expectString(data.ConfigurationSetName);
|
|
5526
5560
|
}
|
|
@@ -5604,9 +5638,9 @@ var deserializeAws_restJson1GetEmailIdentityCommandError = function (output, con
|
|
|
5604
5638
|
});
|
|
5605
5639
|
}); };
|
|
5606
5640
|
export var deserializeAws_restJson1GetEmailIdentityPoliciesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5607
|
-
var contents, data;
|
|
5608
|
-
return __generator(this, function (
|
|
5609
|
-
switch (
|
|
5641
|
+
var contents, data, _a, _b;
|
|
5642
|
+
return __generator(this, function (_c) {
|
|
5643
|
+
switch (_c.label) {
|
|
5610
5644
|
case 0:
|
|
5611
5645
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5612
5646
|
return [2 /*return*/, deserializeAws_restJson1GetEmailIdentityPoliciesCommandError(output, context)];
|
|
@@ -5615,9 +5649,11 @@ export var deserializeAws_restJson1GetEmailIdentityPoliciesCommand = function (o
|
|
|
5615
5649
|
$metadata: deserializeMetadata(output),
|
|
5616
5650
|
Policies: undefined,
|
|
5617
5651
|
};
|
|
5652
|
+
_a = __expectNonNull;
|
|
5653
|
+
_b = __expectObject;
|
|
5618
5654
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
5619
5655
|
case 1:
|
|
5620
|
-
data = _a.sent();
|
|
5656
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5621
5657
|
if (data.Policies !== undefined && data.Policies !== null) {
|
|
5622
5658
|
contents.Policies = deserializeAws_restJson1PolicyMap(data.Policies, context);
|
|
5623
5659
|
}
|
|
@@ -5680,9 +5716,9 @@ var deserializeAws_restJson1GetEmailIdentityPoliciesCommandError = function (out
|
|
|
5680
5716
|
});
|
|
5681
5717
|
}); };
|
|
5682
5718
|
export var deserializeAws_restJson1GetEmailTemplateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5683
|
-
var contents, data;
|
|
5684
|
-
return __generator(this, function (
|
|
5685
|
-
switch (
|
|
5719
|
+
var contents, data, _a, _b;
|
|
5720
|
+
return __generator(this, function (_c) {
|
|
5721
|
+
switch (_c.label) {
|
|
5686
5722
|
case 0:
|
|
5687
5723
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5688
5724
|
return [2 /*return*/, deserializeAws_restJson1GetEmailTemplateCommandError(output, context)];
|
|
@@ -5692,9 +5728,11 @@ export var deserializeAws_restJson1GetEmailTemplateCommand = function (output, c
|
|
|
5692
5728
|
TemplateContent: undefined,
|
|
5693
5729
|
TemplateName: undefined,
|
|
5694
5730
|
};
|
|
5731
|
+
_a = __expectNonNull;
|
|
5732
|
+
_b = __expectObject;
|
|
5695
5733
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
5696
5734
|
case 1:
|
|
5697
|
-
data = _a.sent();
|
|
5735
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5698
5736
|
if (data.TemplateContent !== undefined && data.TemplateContent !== null) {
|
|
5699
5737
|
contents.TemplateContent = deserializeAws_restJson1EmailTemplateContent(data.TemplateContent, context);
|
|
5700
5738
|
}
|
|
@@ -5760,9 +5798,9 @@ var deserializeAws_restJson1GetEmailTemplateCommandError = function (output, con
|
|
|
5760
5798
|
});
|
|
5761
5799
|
}); };
|
|
5762
5800
|
export var deserializeAws_restJson1GetImportJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5763
|
-
var contents, data;
|
|
5764
|
-
return __generator(this, function (
|
|
5765
|
-
switch (
|
|
5801
|
+
var contents, data, _a, _b;
|
|
5802
|
+
return __generator(this, function (_c) {
|
|
5803
|
+
switch (_c.label) {
|
|
5766
5804
|
case 0:
|
|
5767
5805
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5768
5806
|
return [2 /*return*/, deserializeAws_restJson1GetImportJobCommandError(output, context)];
|
|
@@ -5779,17 +5817,19 @@ export var deserializeAws_restJson1GetImportJobCommand = function (output, conte
|
|
|
5779
5817
|
JobStatus: undefined,
|
|
5780
5818
|
ProcessedRecordsCount: undefined,
|
|
5781
5819
|
};
|
|
5820
|
+
_a = __expectNonNull;
|
|
5821
|
+
_b = __expectObject;
|
|
5782
5822
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
5783
5823
|
case 1:
|
|
5784
|
-
data = _a.sent();
|
|
5824
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5785
5825
|
if (data.CompletedTimestamp !== undefined && data.CompletedTimestamp !== null) {
|
|
5786
|
-
contents.CompletedTimestamp =
|
|
5826
|
+
contents.CompletedTimestamp = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CompletedTimestamp)));
|
|
5787
5827
|
}
|
|
5788
5828
|
if (data.CreatedTimestamp !== undefined && data.CreatedTimestamp !== null) {
|
|
5789
|
-
contents.CreatedTimestamp =
|
|
5829
|
+
contents.CreatedTimestamp = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreatedTimestamp)));
|
|
5790
5830
|
}
|
|
5791
5831
|
if (data.FailedRecordsCount !== undefined && data.FailedRecordsCount !== null) {
|
|
5792
|
-
contents.FailedRecordsCount =
|
|
5832
|
+
contents.FailedRecordsCount = __expectInt32(data.FailedRecordsCount);
|
|
5793
5833
|
}
|
|
5794
5834
|
if (data.FailureInfo !== undefined && data.FailureInfo !== null) {
|
|
5795
5835
|
contents.FailureInfo = deserializeAws_restJson1FailureInfo(data.FailureInfo, context);
|
|
@@ -5807,7 +5847,7 @@ export var deserializeAws_restJson1GetImportJobCommand = function (output, conte
|
|
|
5807
5847
|
contents.JobStatus = __expectString(data.JobStatus);
|
|
5808
5848
|
}
|
|
5809
5849
|
if (data.ProcessedRecordsCount !== undefined && data.ProcessedRecordsCount !== null) {
|
|
5810
|
-
contents.ProcessedRecordsCount =
|
|
5850
|
+
contents.ProcessedRecordsCount = __expectInt32(data.ProcessedRecordsCount);
|
|
5811
5851
|
}
|
|
5812
5852
|
return [2 /*return*/, Promise.resolve(contents)];
|
|
5813
5853
|
}
|
|
@@ -5868,9 +5908,9 @@ var deserializeAws_restJson1GetImportJobCommandError = function (output, context
|
|
|
5868
5908
|
});
|
|
5869
5909
|
}); };
|
|
5870
5910
|
export var deserializeAws_restJson1GetSuppressedDestinationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5871
|
-
var contents, data;
|
|
5872
|
-
return __generator(this, function (
|
|
5873
|
-
switch (
|
|
5911
|
+
var contents, data, _a, _b;
|
|
5912
|
+
return __generator(this, function (_c) {
|
|
5913
|
+
switch (_c.label) {
|
|
5874
5914
|
case 0:
|
|
5875
5915
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5876
5916
|
return [2 /*return*/, deserializeAws_restJson1GetSuppressedDestinationCommandError(output, context)];
|
|
@@ -5879,9 +5919,11 @@ export var deserializeAws_restJson1GetSuppressedDestinationCommand = function (o
|
|
|
5879
5919
|
$metadata: deserializeMetadata(output),
|
|
5880
5920
|
SuppressedDestination: undefined,
|
|
5881
5921
|
};
|
|
5922
|
+
_a = __expectNonNull;
|
|
5923
|
+
_b = __expectObject;
|
|
5882
5924
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
5883
5925
|
case 1:
|
|
5884
|
-
data = _a.sent();
|
|
5926
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5885
5927
|
if (data.SuppressedDestination !== undefined && data.SuppressedDestination !== null) {
|
|
5886
5928
|
contents.SuppressedDestination = deserializeAws_restJson1SuppressedDestination(data.SuppressedDestination, context);
|
|
5887
5929
|
}
|
|
@@ -5944,9 +5986,9 @@ var deserializeAws_restJson1GetSuppressedDestinationCommandError = function (out
|
|
|
5944
5986
|
});
|
|
5945
5987
|
}); };
|
|
5946
5988
|
export var deserializeAws_restJson1ListConfigurationSetsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5947
|
-
var contents, data;
|
|
5948
|
-
return __generator(this, function (
|
|
5949
|
-
switch (
|
|
5989
|
+
var contents, data, _a, _b;
|
|
5990
|
+
return __generator(this, function (_c) {
|
|
5991
|
+
switch (_c.label) {
|
|
5950
5992
|
case 0:
|
|
5951
5993
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5952
5994
|
return [2 /*return*/, deserializeAws_restJson1ListConfigurationSetsCommandError(output, context)];
|
|
@@ -5956,9 +5998,11 @@ export var deserializeAws_restJson1ListConfigurationSetsCommand = function (outp
|
|
|
5956
5998
|
ConfigurationSets: undefined,
|
|
5957
5999
|
NextToken: undefined,
|
|
5958
6000
|
};
|
|
6001
|
+
_a = __expectNonNull;
|
|
6002
|
+
_b = __expectObject;
|
|
5959
6003
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
5960
6004
|
case 1:
|
|
5961
|
-
data = _a.sent();
|
|
6005
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5962
6006
|
if (data.ConfigurationSets !== undefined && data.ConfigurationSets !== null) {
|
|
5963
6007
|
contents.ConfigurationSets = deserializeAws_restJson1ConfigurationSetNameList(data.ConfigurationSets, context);
|
|
5964
6008
|
}
|
|
@@ -6016,9 +6060,9 @@ var deserializeAws_restJson1ListConfigurationSetsCommandError = function (output
|
|
|
6016
6060
|
});
|
|
6017
6061
|
}); };
|
|
6018
6062
|
export var deserializeAws_restJson1ListContactListsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6019
|
-
var contents, data;
|
|
6020
|
-
return __generator(this, function (
|
|
6021
|
-
switch (
|
|
6063
|
+
var contents, data, _a, _b;
|
|
6064
|
+
return __generator(this, function (_c) {
|
|
6065
|
+
switch (_c.label) {
|
|
6022
6066
|
case 0:
|
|
6023
6067
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6024
6068
|
return [2 /*return*/, deserializeAws_restJson1ListContactListsCommandError(output, context)];
|
|
@@ -6028,9 +6072,11 @@ export var deserializeAws_restJson1ListContactListsCommand = function (output, c
|
|
|
6028
6072
|
ContactLists: undefined,
|
|
6029
6073
|
NextToken: undefined,
|
|
6030
6074
|
};
|
|
6075
|
+
_a = __expectNonNull;
|
|
6076
|
+
_b = __expectObject;
|
|
6031
6077
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
6032
6078
|
case 1:
|
|
6033
|
-
data = _a.sent();
|
|
6079
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6034
6080
|
if (data.ContactLists !== undefined && data.ContactLists !== null) {
|
|
6035
6081
|
contents.ContactLists = deserializeAws_restJson1ListOfContactLists(data.ContactLists, context);
|
|
6036
6082
|
}
|
|
@@ -6088,9 +6134,9 @@ var deserializeAws_restJson1ListContactListsCommandError = function (output, con
|
|
|
6088
6134
|
});
|
|
6089
6135
|
}); };
|
|
6090
6136
|
export var deserializeAws_restJson1ListContactsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6091
|
-
var contents, data;
|
|
6092
|
-
return __generator(this, function (
|
|
6093
|
-
switch (
|
|
6137
|
+
var contents, data, _a, _b;
|
|
6138
|
+
return __generator(this, function (_c) {
|
|
6139
|
+
switch (_c.label) {
|
|
6094
6140
|
case 0:
|
|
6095
6141
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6096
6142
|
return [2 /*return*/, deserializeAws_restJson1ListContactsCommandError(output, context)];
|
|
@@ -6100,9 +6146,11 @@ export var deserializeAws_restJson1ListContactsCommand = function (output, conte
|
|
|
6100
6146
|
Contacts: undefined,
|
|
6101
6147
|
NextToken: undefined,
|
|
6102
6148
|
};
|
|
6149
|
+
_a = __expectNonNull;
|
|
6150
|
+
_b = __expectObject;
|
|
6103
6151
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
6104
6152
|
case 1:
|
|
6105
|
-
data = _a.sent();
|
|
6153
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6106
6154
|
if (data.Contacts !== undefined && data.Contacts !== null) {
|
|
6107
6155
|
contents.Contacts = deserializeAws_restJson1ListOfContacts(data.Contacts, context);
|
|
6108
6156
|
}
|
|
@@ -6168,9 +6216,9 @@ var deserializeAws_restJson1ListContactsCommandError = function (output, context
|
|
|
6168
6216
|
});
|
|
6169
6217
|
}); };
|
|
6170
6218
|
export var deserializeAws_restJson1ListCustomVerificationEmailTemplatesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6171
|
-
var contents, data;
|
|
6172
|
-
return __generator(this, function (
|
|
6173
|
-
switch (
|
|
6219
|
+
var contents, data, _a, _b;
|
|
6220
|
+
return __generator(this, function (_c) {
|
|
6221
|
+
switch (_c.label) {
|
|
6174
6222
|
case 0:
|
|
6175
6223
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6176
6224
|
return [2 /*return*/, deserializeAws_restJson1ListCustomVerificationEmailTemplatesCommandError(output, context)];
|
|
@@ -6180,9 +6228,11 @@ export var deserializeAws_restJson1ListCustomVerificationEmailTemplatesCommand =
|
|
|
6180
6228
|
CustomVerificationEmailTemplates: undefined,
|
|
6181
6229
|
NextToken: undefined,
|
|
6182
6230
|
};
|
|
6231
|
+
_a = __expectNonNull;
|
|
6232
|
+
_b = __expectObject;
|
|
6183
6233
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
6184
6234
|
case 1:
|
|
6185
|
-
data = _a.sent();
|
|
6235
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6186
6236
|
if (data.CustomVerificationEmailTemplates !== undefined && data.CustomVerificationEmailTemplates !== null) {
|
|
6187
6237
|
contents.CustomVerificationEmailTemplates = deserializeAws_restJson1CustomVerificationEmailTemplatesList(data.CustomVerificationEmailTemplates, context);
|
|
6188
6238
|
}
|
|
@@ -6240,9 +6290,9 @@ var deserializeAws_restJson1ListCustomVerificationEmailTemplatesCommandError = f
|
|
|
6240
6290
|
});
|
|
6241
6291
|
}); };
|
|
6242
6292
|
export var deserializeAws_restJson1ListDedicatedIpPoolsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6243
|
-
var contents, data;
|
|
6244
|
-
return __generator(this, function (
|
|
6245
|
-
switch (
|
|
6293
|
+
var contents, data, _a, _b;
|
|
6294
|
+
return __generator(this, function (_c) {
|
|
6295
|
+
switch (_c.label) {
|
|
6246
6296
|
case 0:
|
|
6247
6297
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6248
6298
|
return [2 /*return*/, deserializeAws_restJson1ListDedicatedIpPoolsCommandError(output, context)];
|
|
@@ -6252,9 +6302,11 @@ export var deserializeAws_restJson1ListDedicatedIpPoolsCommand = function (outpu
|
|
|
6252
6302
|
DedicatedIpPools: undefined,
|
|
6253
6303
|
NextToken: undefined,
|
|
6254
6304
|
};
|
|
6305
|
+
_a = __expectNonNull;
|
|
6306
|
+
_b = __expectObject;
|
|
6255
6307
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
6256
6308
|
case 1:
|
|
6257
|
-
data = _a.sent();
|
|
6309
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6258
6310
|
if (data.DedicatedIpPools !== undefined && data.DedicatedIpPools !== null) {
|
|
6259
6311
|
contents.DedicatedIpPools = deserializeAws_restJson1ListOfDedicatedIpPools(data.DedicatedIpPools, context);
|
|
6260
6312
|
}
|
|
@@ -6312,9 +6364,9 @@ var deserializeAws_restJson1ListDedicatedIpPoolsCommandError = function (output,
|
|
|
6312
6364
|
});
|
|
6313
6365
|
}); };
|
|
6314
6366
|
export var deserializeAws_restJson1ListDeliverabilityTestReportsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6315
|
-
var contents, data;
|
|
6316
|
-
return __generator(this, function (
|
|
6317
|
-
switch (
|
|
6367
|
+
var contents, data, _a, _b;
|
|
6368
|
+
return __generator(this, function (_c) {
|
|
6369
|
+
switch (_c.label) {
|
|
6318
6370
|
case 0:
|
|
6319
6371
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6320
6372
|
return [2 /*return*/, deserializeAws_restJson1ListDeliverabilityTestReportsCommandError(output, context)];
|
|
@@ -6324,9 +6376,11 @@ export var deserializeAws_restJson1ListDeliverabilityTestReportsCommand = functi
|
|
|
6324
6376
|
DeliverabilityTestReports: undefined,
|
|
6325
6377
|
NextToken: undefined,
|
|
6326
6378
|
};
|
|
6379
|
+
_a = __expectNonNull;
|
|
6380
|
+
_b = __expectObject;
|
|
6327
6381
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
6328
6382
|
case 1:
|
|
6329
|
-
data = _a.sent();
|
|
6383
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6330
6384
|
if (data.DeliverabilityTestReports !== undefined && data.DeliverabilityTestReports !== null) {
|
|
6331
6385
|
contents.DeliverabilityTestReports = deserializeAws_restJson1DeliverabilityTestReports(data.DeliverabilityTestReports, context);
|
|
6332
6386
|
}
|
|
@@ -6392,9 +6446,9 @@ var deserializeAws_restJson1ListDeliverabilityTestReportsCommandError = function
|
|
|
6392
6446
|
});
|
|
6393
6447
|
}); };
|
|
6394
6448
|
export var deserializeAws_restJson1ListDomainDeliverabilityCampaignsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6395
|
-
var contents, data;
|
|
6396
|
-
return __generator(this, function (
|
|
6397
|
-
switch (
|
|
6449
|
+
var contents, data, _a, _b;
|
|
6450
|
+
return __generator(this, function (_c) {
|
|
6451
|
+
switch (_c.label) {
|
|
6398
6452
|
case 0:
|
|
6399
6453
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6400
6454
|
return [2 /*return*/, deserializeAws_restJson1ListDomainDeliverabilityCampaignsCommandError(output, context)];
|
|
@@ -6404,9 +6458,11 @@ export var deserializeAws_restJson1ListDomainDeliverabilityCampaignsCommand = fu
|
|
|
6404
6458
|
DomainDeliverabilityCampaigns: undefined,
|
|
6405
6459
|
NextToken: undefined,
|
|
6406
6460
|
};
|
|
6461
|
+
_a = __expectNonNull;
|
|
6462
|
+
_b = __expectObject;
|
|
6407
6463
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
6408
6464
|
case 1:
|
|
6409
|
-
data = _a.sent();
|
|
6465
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6410
6466
|
if (data.DomainDeliverabilityCampaigns !== undefined && data.DomainDeliverabilityCampaigns !== null) {
|
|
6411
6467
|
contents.DomainDeliverabilityCampaigns = deserializeAws_restJson1DomainDeliverabilityCampaignList(data.DomainDeliverabilityCampaigns, context);
|
|
6412
6468
|
}
|
|
@@ -6472,9 +6528,9 @@ var deserializeAws_restJson1ListDomainDeliverabilityCampaignsCommandError = func
|
|
|
6472
6528
|
});
|
|
6473
6529
|
}); };
|
|
6474
6530
|
export var deserializeAws_restJson1ListEmailIdentitiesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6475
|
-
var contents, data;
|
|
6476
|
-
return __generator(this, function (
|
|
6477
|
-
switch (
|
|
6531
|
+
var contents, data, _a, _b;
|
|
6532
|
+
return __generator(this, function (_c) {
|
|
6533
|
+
switch (_c.label) {
|
|
6478
6534
|
case 0:
|
|
6479
6535
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6480
6536
|
return [2 /*return*/, deserializeAws_restJson1ListEmailIdentitiesCommandError(output, context)];
|
|
@@ -6484,9 +6540,11 @@ export var deserializeAws_restJson1ListEmailIdentitiesCommand = function (output
|
|
|
6484
6540
|
EmailIdentities: undefined,
|
|
6485
6541
|
NextToken: undefined,
|
|
6486
6542
|
};
|
|
6543
|
+
_a = __expectNonNull;
|
|
6544
|
+
_b = __expectObject;
|
|
6487
6545
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
6488
6546
|
case 1:
|
|
6489
|
-
data = _a.sent();
|
|
6547
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6490
6548
|
if (data.EmailIdentities !== undefined && data.EmailIdentities !== null) {
|
|
6491
6549
|
contents.EmailIdentities = deserializeAws_restJson1IdentityInfoList(data.EmailIdentities, context);
|
|
6492
6550
|
}
|
|
@@ -6544,9 +6602,9 @@ var deserializeAws_restJson1ListEmailIdentitiesCommandError = function (output,
|
|
|
6544
6602
|
});
|
|
6545
6603
|
}); };
|
|
6546
6604
|
export var deserializeAws_restJson1ListEmailTemplatesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6547
|
-
var contents, data;
|
|
6548
|
-
return __generator(this, function (
|
|
6549
|
-
switch (
|
|
6605
|
+
var contents, data, _a, _b;
|
|
6606
|
+
return __generator(this, function (_c) {
|
|
6607
|
+
switch (_c.label) {
|
|
6550
6608
|
case 0:
|
|
6551
6609
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6552
6610
|
return [2 /*return*/, deserializeAws_restJson1ListEmailTemplatesCommandError(output, context)];
|
|
@@ -6556,9 +6614,11 @@ export var deserializeAws_restJson1ListEmailTemplatesCommand = function (output,
|
|
|
6556
6614
|
NextToken: undefined,
|
|
6557
6615
|
TemplatesMetadata: undefined,
|
|
6558
6616
|
};
|
|
6617
|
+
_a = __expectNonNull;
|
|
6618
|
+
_b = __expectObject;
|
|
6559
6619
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
6560
6620
|
case 1:
|
|
6561
|
-
data = _a.sent();
|
|
6621
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6562
6622
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
6563
6623
|
contents.NextToken = __expectString(data.NextToken);
|
|
6564
6624
|
}
|
|
@@ -6616,9 +6676,9 @@ var deserializeAws_restJson1ListEmailTemplatesCommandError = function (output, c
|
|
|
6616
6676
|
});
|
|
6617
6677
|
}); };
|
|
6618
6678
|
export var deserializeAws_restJson1ListImportJobsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6619
|
-
var contents, data;
|
|
6620
|
-
return __generator(this, function (
|
|
6621
|
-
switch (
|
|
6679
|
+
var contents, data, _a, _b;
|
|
6680
|
+
return __generator(this, function (_c) {
|
|
6681
|
+
switch (_c.label) {
|
|
6622
6682
|
case 0:
|
|
6623
6683
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6624
6684
|
return [2 /*return*/, deserializeAws_restJson1ListImportJobsCommandError(output, context)];
|
|
@@ -6628,9 +6688,11 @@ export var deserializeAws_restJson1ListImportJobsCommand = function (output, con
|
|
|
6628
6688
|
ImportJobs: undefined,
|
|
6629
6689
|
NextToken: undefined,
|
|
6630
6690
|
};
|
|
6691
|
+
_a = __expectNonNull;
|
|
6692
|
+
_b = __expectObject;
|
|
6631
6693
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
6632
6694
|
case 1:
|
|
6633
|
-
data = _a.sent();
|
|
6695
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6634
6696
|
if (data.ImportJobs !== undefined && data.ImportJobs !== null) {
|
|
6635
6697
|
contents.ImportJobs = deserializeAws_restJson1ImportJobSummaryList(data.ImportJobs, context);
|
|
6636
6698
|
}
|
|
@@ -6688,9 +6750,9 @@ var deserializeAws_restJson1ListImportJobsCommandError = function (output, conte
|
|
|
6688
6750
|
});
|
|
6689
6751
|
}); };
|
|
6690
6752
|
export var deserializeAws_restJson1ListSuppressedDestinationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6691
|
-
var contents, data;
|
|
6692
|
-
return __generator(this, function (
|
|
6693
|
-
switch (
|
|
6753
|
+
var contents, data, _a, _b;
|
|
6754
|
+
return __generator(this, function (_c) {
|
|
6755
|
+
switch (_c.label) {
|
|
6694
6756
|
case 0:
|
|
6695
6757
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6696
6758
|
return [2 /*return*/, deserializeAws_restJson1ListSuppressedDestinationsCommandError(output, context)];
|
|
@@ -6700,9 +6762,11 @@ export var deserializeAws_restJson1ListSuppressedDestinationsCommand = function
|
|
|
6700
6762
|
NextToken: undefined,
|
|
6701
6763
|
SuppressedDestinationSummaries: undefined,
|
|
6702
6764
|
};
|
|
6765
|
+
_a = __expectNonNull;
|
|
6766
|
+
_b = __expectObject;
|
|
6703
6767
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
6704
6768
|
case 1:
|
|
6705
|
-
data = _a.sent();
|
|
6769
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6706
6770
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
6707
6771
|
contents.NextToken = __expectString(data.NextToken);
|
|
6708
6772
|
}
|
|
@@ -6768,9 +6832,9 @@ var deserializeAws_restJson1ListSuppressedDestinationsCommandError = function (o
|
|
|
6768
6832
|
});
|
|
6769
6833
|
}); };
|
|
6770
6834
|
export var deserializeAws_restJson1ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6771
|
-
var contents, data;
|
|
6772
|
-
return __generator(this, function (
|
|
6773
|
-
switch (
|
|
6835
|
+
var contents, data, _a, _b;
|
|
6836
|
+
return __generator(this, function (_c) {
|
|
6837
|
+
switch (_c.label) {
|
|
6774
6838
|
case 0:
|
|
6775
6839
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6776
6840
|
return [2 /*return*/, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
@@ -6779,9 +6843,11 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
6779
6843
|
$metadata: deserializeMetadata(output),
|
|
6780
6844
|
Tags: undefined,
|
|
6781
6845
|
};
|
|
6846
|
+
_a = __expectNonNull;
|
|
6847
|
+
_b = __expectObject;
|
|
6782
6848
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
6783
6849
|
case 1:
|
|
6784
|
-
data = _a.sent();
|
|
6850
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6785
6851
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
6786
6852
|
contents.Tags = deserializeAws_restJson1TagList(data.Tags, context);
|
|
6787
6853
|
}
|
|
@@ -7844,9 +7910,9 @@ var deserializeAws_restJson1PutEmailIdentityDkimAttributesCommandError = functio
|
|
|
7844
7910
|
});
|
|
7845
7911
|
}); };
|
|
7846
7912
|
export var deserializeAws_restJson1PutEmailIdentityDkimSigningAttributesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7847
|
-
var contents, data;
|
|
7848
|
-
return __generator(this, function (
|
|
7849
|
-
switch (
|
|
7913
|
+
var contents, data, _a, _b;
|
|
7914
|
+
return __generator(this, function (_c) {
|
|
7915
|
+
switch (_c.label) {
|
|
7850
7916
|
case 0:
|
|
7851
7917
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7852
7918
|
return [2 /*return*/, deserializeAws_restJson1PutEmailIdentityDkimSigningAttributesCommandError(output, context)];
|
|
@@ -7856,9 +7922,11 @@ export var deserializeAws_restJson1PutEmailIdentityDkimSigningAttributesCommand
|
|
|
7856
7922
|
DkimStatus: undefined,
|
|
7857
7923
|
DkimTokens: undefined,
|
|
7858
7924
|
};
|
|
7925
|
+
_a = __expectNonNull;
|
|
7926
|
+
_b = __expectObject;
|
|
7859
7927
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
7860
7928
|
case 1:
|
|
7861
|
-
data = _a.sent();
|
|
7929
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
7862
7930
|
if (data.DkimStatus !== undefined && data.DkimStatus !== null) {
|
|
7863
7931
|
contents.DkimStatus = __expectString(data.DkimStatus);
|
|
7864
7932
|
}
|
|
@@ -8132,9 +8200,9 @@ var deserializeAws_restJson1PutSuppressedDestinationCommandError = function (out
|
|
|
8132
8200
|
});
|
|
8133
8201
|
}); };
|
|
8134
8202
|
export var deserializeAws_restJson1SendBulkEmailCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8135
|
-
var contents, data;
|
|
8136
|
-
return __generator(this, function (
|
|
8137
|
-
switch (
|
|
8203
|
+
var contents, data, _a, _b;
|
|
8204
|
+
return __generator(this, function (_c) {
|
|
8205
|
+
switch (_c.label) {
|
|
8138
8206
|
case 0:
|
|
8139
8207
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8140
8208
|
return [2 /*return*/, deserializeAws_restJson1SendBulkEmailCommandError(output, context)];
|
|
@@ -8143,9 +8211,11 @@ export var deserializeAws_restJson1SendBulkEmailCommand = function (output, cont
|
|
|
8143
8211
|
$metadata: deserializeMetadata(output),
|
|
8144
8212
|
BulkEmailEntryResults: undefined,
|
|
8145
8213
|
};
|
|
8214
|
+
_a = __expectNonNull;
|
|
8215
|
+
_b = __expectObject;
|
|
8146
8216
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
8147
8217
|
case 1:
|
|
8148
|
-
data = _a.sent();
|
|
8218
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
8149
8219
|
if (data.BulkEmailEntryResults !== undefined && data.BulkEmailEntryResults !== null) {
|
|
8150
8220
|
contents.BulkEmailEntryResults = deserializeAws_restJson1BulkEmailEntryResultList(data.BulkEmailEntryResults, context);
|
|
8151
8221
|
}
|
|
@@ -8248,9 +8318,9 @@ var deserializeAws_restJson1SendBulkEmailCommandError = function (output, contex
|
|
|
8248
8318
|
});
|
|
8249
8319
|
}); };
|
|
8250
8320
|
export var deserializeAws_restJson1SendCustomVerificationEmailCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8251
|
-
var contents, data;
|
|
8252
|
-
return __generator(this, function (
|
|
8253
|
-
switch (
|
|
8321
|
+
var contents, data, _a, _b;
|
|
8322
|
+
return __generator(this, function (_c) {
|
|
8323
|
+
switch (_c.label) {
|
|
8254
8324
|
case 0:
|
|
8255
8325
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8256
8326
|
return [2 /*return*/, deserializeAws_restJson1SendCustomVerificationEmailCommandError(output, context)];
|
|
@@ -8259,9 +8329,11 @@ export var deserializeAws_restJson1SendCustomVerificationEmailCommand = function
|
|
|
8259
8329
|
$metadata: deserializeMetadata(output),
|
|
8260
8330
|
MessageId: undefined,
|
|
8261
8331
|
};
|
|
8332
|
+
_a = __expectNonNull;
|
|
8333
|
+
_b = __expectObject;
|
|
8262
8334
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
8263
8335
|
case 1:
|
|
8264
|
-
data = _a.sent();
|
|
8336
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
8265
8337
|
if (data.MessageId !== undefined && data.MessageId !== null) {
|
|
8266
8338
|
contents.MessageId = __expectString(data.MessageId);
|
|
8267
8339
|
}
|
|
@@ -8356,9 +8428,9 @@ var deserializeAws_restJson1SendCustomVerificationEmailCommandError = function (
|
|
|
8356
8428
|
});
|
|
8357
8429
|
}); };
|
|
8358
8430
|
export var deserializeAws_restJson1SendEmailCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8359
|
-
var contents, data;
|
|
8360
|
-
return __generator(this, function (
|
|
8361
|
-
switch (
|
|
8431
|
+
var contents, data, _a, _b;
|
|
8432
|
+
return __generator(this, function (_c) {
|
|
8433
|
+
switch (_c.label) {
|
|
8362
8434
|
case 0:
|
|
8363
8435
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8364
8436
|
return [2 /*return*/, deserializeAws_restJson1SendEmailCommandError(output, context)];
|
|
@@ -8367,9 +8439,11 @@ export var deserializeAws_restJson1SendEmailCommand = function (output, context)
|
|
|
8367
8439
|
$metadata: deserializeMetadata(output),
|
|
8368
8440
|
MessageId: undefined,
|
|
8369
8441
|
};
|
|
8442
|
+
_a = __expectNonNull;
|
|
8443
|
+
_b = __expectObject;
|
|
8370
8444
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
8371
8445
|
case 1:
|
|
8372
|
-
data = _a.sent();
|
|
8446
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
8373
8447
|
if (data.MessageId !== undefined && data.MessageId !== null) {
|
|
8374
8448
|
contents.MessageId = __expectString(data.MessageId);
|
|
8375
8449
|
}
|
|
@@ -8552,9 +8626,9 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
8552
8626
|
});
|
|
8553
8627
|
}); };
|
|
8554
8628
|
export var deserializeAws_restJson1TestRenderEmailTemplateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8555
|
-
var contents, data;
|
|
8556
|
-
return __generator(this, function (
|
|
8557
|
-
switch (
|
|
8629
|
+
var contents, data, _a, _b;
|
|
8630
|
+
return __generator(this, function (_c) {
|
|
8631
|
+
switch (_c.label) {
|
|
8558
8632
|
case 0:
|
|
8559
8633
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8560
8634
|
return [2 /*return*/, deserializeAws_restJson1TestRenderEmailTemplateCommandError(output, context)];
|
|
@@ -8563,9 +8637,11 @@ export var deserializeAws_restJson1TestRenderEmailTemplateCommand = function (ou
|
|
|
8563
8637
|
$metadata: deserializeMetadata(output),
|
|
8564
8638
|
RenderedTemplate: undefined,
|
|
8565
8639
|
};
|
|
8640
|
+
_a = __expectNonNull;
|
|
8641
|
+
_b = __expectObject;
|
|
8566
8642
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
8567
8643
|
case 1:
|
|
8568
|
-
data = _a.sent();
|
|
8644
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
8569
8645
|
if (data.RenderedTemplate !== undefined && data.RenderedTemplate !== null) {
|
|
8570
8646
|
contents.RenderedTemplate = __expectString(data.RenderedTemplate);
|
|
8571
8647
|
}
|
|
@@ -9698,7 +9774,7 @@ var deserializeAws_restJson1BlacklistEntry = function (output, context) {
|
|
|
9698
9774
|
return {
|
|
9699
9775
|
Description: __expectString(output.Description),
|
|
9700
9776
|
ListingTime: output.ListingTime !== undefined && output.ListingTime !== null
|
|
9701
|
-
?
|
|
9777
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ListingTime)))
|
|
9702
9778
|
: undefined,
|
|
9703
9779
|
RblName: __expectString(output.RblName),
|
|
9704
9780
|
};
|
|
@@ -9768,7 +9844,7 @@ var deserializeAws_restJson1Contact = function (output, context) {
|
|
|
9768
9844
|
return {
|
|
9769
9845
|
EmailAddress: __expectString(output.EmailAddress),
|
|
9770
9846
|
LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
9771
|
-
?
|
|
9847
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
9772
9848
|
: undefined,
|
|
9773
9849
|
TopicDefaultPreferences: output.TopicDefaultPreferences !== undefined && output.TopicDefaultPreferences !== null
|
|
9774
9850
|
? deserializeAws_restJson1TopicPreferenceList(output.TopicDefaultPreferences, context)
|
|
@@ -9783,7 +9859,7 @@ var deserializeAws_restJson1ContactList = function (output, context) {
|
|
|
9783
9859
|
return {
|
|
9784
9860
|
ContactListName: __expectString(output.ContactListName),
|
|
9785
9861
|
LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
9786
|
-
?
|
|
9862
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
9787
9863
|
: undefined,
|
|
9788
9864
|
};
|
|
9789
9865
|
};
|
|
@@ -9818,7 +9894,7 @@ var deserializeAws_restJson1DailyVolume = function (output, context) {
|
|
|
9818
9894
|
? deserializeAws_restJson1DomainIspPlacements(output.DomainIspPlacements, context)
|
|
9819
9895
|
: undefined,
|
|
9820
9896
|
StartDate: output.StartDate !== undefined && output.StartDate !== null
|
|
9821
|
-
?
|
|
9897
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartDate)))
|
|
9822
9898
|
: undefined,
|
|
9823
9899
|
VolumeStatistics: output.VolumeStatistics !== undefined && output.VolumeStatistics !== null
|
|
9824
9900
|
? deserializeAws_restJson1VolumeStatistics(output.VolumeStatistics, context)
|
|
@@ -9839,7 +9915,7 @@ var deserializeAws_restJson1DedicatedIp = function (output, context) {
|
|
|
9839
9915
|
return {
|
|
9840
9916
|
Ip: __expectString(output.Ip),
|
|
9841
9917
|
PoolName: __expectString(output.PoolName),
|
|
9842
|
-
WarmupPercentage:
|
|
9918
|
+
WarmupPercentage: __expectInt32(output.WarmupPercentage),
|
|
9843
9919
|
WarmupStatus: __expectString(output.WarmupStatus),
|
|
9844
9920
|
};
|
|
9845
9921
|
};
|
|
@@ -9856,7 +9932,7 @@ var deserializeAws_restJson1DedicatedIpList = function (output, context) {
|
|
|
9856
9932
|
var deserializeAws_restJson1DeliverabilityTestReport = function (output, context) {
|
|
9857
9933
|
return {
|
|
9858
9934
|
CreateDate: output.CreateDate !== undefined && output.CreateDate !== null
|
|
9859
|
-
?
|
|
9935
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate)))
|
|
9860
9936
|
: undefined,
|
|
9861
9937
|
DeliverabilityTestStatus: __expectString(output.DeliverabilityTestStatus),
|
|
9862
9938
|
FromEmailAddress: __expectString(output.FromEmailAddress),
|
|
@@ -9904,26 +9980,26 @@ var deserializeAws_restJson1DnsTokenList = function (output, context) {
|
|
|
9904
9980
|
var deserializeAws_restJson1DomainDeliverabilityCampaign = function (output, context) {
|
|
9905
9981
|
return {
|
|
9906
9982
|
CampaignId: __expectString(output.CampaignId),
|
|
9907
|
-
DeleteRate:
|
|
9983
|
+
DeleteRate: __limitedParseDouble(output.DeleteRate),
|
|
9908
9984
|
Esps: output.Esps !== undefined && output.Esps !== null
|
|
9909
9985
|
? deserializeAws_restJson1Esps(output.Esps, context)
|
|
9910
9986
|
: undefined,
|
|
9911
9987
|
FirstSeenDateTime: output.FirstSeenDateTime !== undefined && output.FirstSeenDateTime !== null
|
|
9912
|
-
?
|
|
9988
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.FirstSeenDateTime)))
|
|
9913
9989
|
: undefined,
|
|
9914
9990
|
FromAddress: __expectString(output.FromAddress),
|
|
9915
9991
|
ImageUrl: __expectString(output.ImageUrl),
|
|
9916
|
-
InboxCount:
|
|
9992
|
+
InboxCount: __expectLong(output.InboxCount),
|
|
9917
9993
|
LastSeenDateTime: output.LastSeenDateTime !== undefined && output.LastSeenDateTime !== null
|
|
9918
|
-
?
|
|
9994
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastSeenDateTime)))
|
|
9919
9995
|
: undefined,
|
|
9920
|
-
ProjectedVolume:
|
|
9921
|
-
ReadDeleteRate:
|
|
9922
|
-
ReadRate:
|
|
9996
|
+
ProjectedVolume: __expectLong(output.ProjectedVolume),
|
|
9997
|
+
ReadDeleteRate: __limitedParseDouble(output.ReadDeleteRate),
|
|
9998
|
+
ReadRate: __limitedParseDouble(output.ReadRate),
|
|
9923
9999
|
SendingIps: output.SendingIps !== undefined && output.SendingIps !== null
|
|
9924
10000
|
? deserializeAws_restJson1IpList(output.SendingIps, context)
|
|
9925
10001
|
: undefined,
|
|
9926
|
-
SpamCount:
|
|
10002
|
+
SpamCount: __expectLong(output.SpamCount),
|
|
9927
10003
|
Subject: __expectString(output.Subject),
|
|
9928
10004
|
};
|
|
9929
10005
|
};
|
|
@@ -9944,7 +10020,7 @@ var deserializeAws_restJson1DomainDeliverabilityTrackingOption = function (outpu
|
|
|
9944
10020
|
? deserializeAws_restJson1InboxPlacementTrackingOption(output.InboxPlacementTrackingOption, context)
|
|
9945
10021
|
: undefined,
|
|
9946
10022
|
SubscriptionStartDate: output.SubscriptionStartDate !== undefined && output.SubscriptionStartDate !== null
|
|
9947
|
-
?
|
|
10023
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubscriptionStartDate)))
|
|
9948
10024
|
: undefined,
|
|
9949
10025
|
};
|
|
9950
10026
|
};
|
|
@@ -9960,11 +10036,11 @@ var deserializeAws_restJson1DomainDeliverabilityTrackingOptions = function (outp
|
|
|
9960
10036
|
};
|
|
9961
10037
|
var deserializeAws_restJson1DomainIspPlacement = function (output, context) {
|
|
9962
10038
|
return {
|
|
9963
|
-
InboxPercentage:
|
|
9964
|
-
InboxRawCount:
|
|
10039
|
+
InboxPercentage: __limitedParseDouble(output.InboxPercentage),
|
|
10040
|
+
InboxRawCount: __expectLong(output.InboxRawCount),
|
|
9965
10041
|
IspName: __expectString(output.IspName),
|
|
9966
|
-
SpamPercentage:
|
|
9967
|
-
SpamRawCount:
|
|
10042
|
+
SpamPercentage: __limitedParseDouble(output.SpamPercentage),
|
|
10043
|
+
SpamRawCount: __expectLong(output.SpamRawCount),
|
|
9968
10044
|
};
|
|
9969
10045
|
};
|
|
9970
10046
|
var deserializeAws_restJson1DomainIspPlacements = function (output, context) {
|
|
@@ -9987,7 +10063,7 @@ var deserializeAws_restJson1EmailTemplateContent = function (output, context) {
|
|
|
9987
10063
|
var deserializeAws_restJson1EmailTemplateMetadata = function (output, context) {
|
|
9988
10064
|
return {
|
|
9989
10065
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
9990
|
-
?
|
|
10066
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
9991
10067
|
: undefined,
|
|
9992
10068
|
TemplateName: __expectString(output.TemplateName),
|
|
9993
10069
|
};
|
|
@@ -10095,7 +10171,7 @@ var deserializeAws_restJson1ImportDestination = function (output, context) {
|
|
|
10095
10171
|
var deserializeAws_restJson1ImportJobSummary = function (output, context) {
|
|
10096
10172
|
return {
|
|
10097
10173
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
10098
|
-
?
|
|
10174
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
10099
10175
|
: undefined,
|
|
10100
10176
|
ImportDestination: output.ImportDestination !== undefined && output.ImportDestination !== null
|
|
10101
10177
|
? deserializeAws_restJson1ImportDestination(output.ImportDestination, context)
|
|
@@ -10208,7 +10284,7 @@ var deserializeAws_restJson1OverallVolume = function (output, context) {
|
|
|
10208
10284
|
DomainIspPlacements: output.DomainIspPlacements !== undefined && output.DomainIspPlacements !== null
|
|
10209
10285
|
? deserializeAws_restJson1DomainIspPlacements(output.DomainIspPlacements, context)
|
|
10210
10286
|
: undefined,
|
|
10211
|
-
ReadRatePercent:
|
|
10287
|
+
ReadRatePercent: __limitedParseDouble(output.ReadRatePercent),
|
|
10212
10288
|
VolumeStatistics: output.VolumeStatistics !== undefined && output.VolumeStatistics !== null
|
|
10213
10289
|
? deserializeAws_restJson1VolumeStatistics(output.VolumeStatistics, context)
|
|
10214
10290
|
: undefined,
|
|
@@ -10221,11 +10297,11 @@ var deserializeAws_restJson1PinpointDestination = function (output, context) {
|
|
|
10221
10297
|
};
|
|
10222
10298
|
var deserializeAws_restJson1PlacementStatistics = function (output, context) {
|
|
10223
10299
|
return {
|
|
10224
|
-
DkimPercentage:
|
|
10225
|
-
InboxPercentage:
|
|
10226
|
-
MissingPercentage:
|
|
10227
|
-
SpamPercentage:
|
|
10228
|
-
SpfPercentage:
|
|
10300
|
+
DkimPercentage: __limitedParseDouble(output.DkimPercentage),
|
|
10301
|
+
InboxPercentage: __limitedParseDouble(output.InboxPercentage),
|
|
10302
|
+
MissingPercentage: __limitedParseDouble(output.MissingPercentage),
|
|
10303
|
+
SpamPercentage: __limitedParseDouble(output.SpamPercentage),
|
|
10304
|
+
SpfPercentage: __limitedParseDouble(output.SpfPercentage),
|
|
10229
10305
|
};
|
|
10230
10306
|
};
|
|
10231
10307
|
var deserializeAws_restJson1PolicyMap = function (output, context) {
|
|
@@ -10241,7 +10317,7 @@ var deserializeAws_restJson1PolicyMap = function (output, context) {
|
|
|
10241
10317
|
var deserializeAws_restJson1ReputationOptions = function (output, context) {
|
|
10242
10318
|
return {
|
|
10243
10319
|
LastFreshStart: output.LastFreshStart !== undefined && output.LastFreshStart !== null
|
|
10244
|
-
?
|
|
10320
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastFreshStart)))
|
|
10245
10321
|
: undefined,
|
|
10246
10322
|
ReputationMetricsEnabled: __expectBoolean(output.ReputationMetricsEnabled),
|
|
10247
10323
|
};
|
|
@@ -10259,9 +10335,9 @@ var deserializeAws_restJson1SendingOptions = function (output, context) {
|
|
|
10259
10335
|
};
|
|
10260
10336
|
var deserializeAws_restJson1SendQuota = function (output, context) {
|
|
10261
10337
|
return {
|
|
10262
|
-
Max24HourSend:
|
|
10263
|
-
MaxSendRate:
|
|
10264
|
-
SentLast24Hours:
|
|
10338
|
+
Max24HourSend: __limitedParseDouble(output.Max24HourSend),
|
|
10339
|
+
MaxSendRate: __limitedParseDouble(output.MaxSendRate),
|
|
10340
|
+
SentLast24Hours: __limitedParseDouble(output.SentLast24Hours),
|
|
10265
10341
|
};
|
|
10266
10342
|
};
|
|
10267
10343
|
var deserializeAws_restJson1SnsDestination = function (output, context) {
|
|
@@ -10276,7 +10352,7 @@ var deserializeAws_restJson1SuppressedDestination = function (output, context) {
|
|
|
10276
10352
|
: undefined,
|
|
10277
10353
|
EmailAddress: __expectString(output.EmailAddress),
|
|
10278
10354
|
LastUpdateTime: output.LastUpdateTime !== undefined && output.LastUpdateTime !== null
|
|
10279
|
-
?
|
|
10355
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdateTime)))
|
|
10280
10356
|
: undefined,
|
|
10281
10357
|
Reason: __expectString(output.Reason),
|
|
10282
10358
|
};
|
|
@@ -10301,7 +10377,7 @@ var deserializeAws_restJson1SuppressedDestinationSummary = function (output, con
|
|
|
10301
10377
|
return {
|
|
10302
10378
|
EmailAddress: __expectString(output.EmailAddress),
|
|
10303
10379
|
LastUpdateTime: output.LastUpdateTime !== undefined && output.LastUpdateTime !== null
|
|
10304
|
-
?
|
|
10380
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdateTime)))
|
|
10305
10381
|
: undefined,
|
|
10306
10382
|
Reason: __expectString(output.Reason),
|
|
10307
10383
|
};
|
|
@@ -10392,10 +10468,10 @@ var deserializeAws_restJson1TrackingOptions = function (output, context) {
|
|
|
10392
10468
|
};
|
|
10393
10469
|
var deserializeAws_restJson1VolumeStatistics = function (output, context) {
|
|
10394
10470
|
return {
|
|
10395
|
-
InboxRawCount:
|
|
10396
|
-
ProjectedInbox:
|
|
10397
|
-
ProjectedSpam:
|
|
10398
|
-
SpamRawCount:
|
|
10471
|
+
InboxRawCount: __expectLong(output.InboxRawCount),
|
|
10472
|
+
ProjectedInbox: __expectLong(output.ProjectedInbox),
|
|
10473
|
+
ProjectedSpam: __expectLong(output.ProjectedSpam),
|
|
10474
|
+
SpamRawCount: __expectLong(output.SpamRawCount),
|
|
10399
10475
|
};
|
|
10400
10476
|
};
|
|
10401
10477
|
var deserializeMetadata = function (output) {
|