@aws-sdk/client-sesv2 3.121.0 → 3.130.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.
@@ -14,22 +14,15 @@ export var serializeAws_restJson1CreateConfigurationSetCommand = function (input
14
14
  "content-type": "application/json",
15
15
  };
16
16
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/configuration-sets";
17
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ConfigurationSetName !== undefined &&
18
- input.ConfigurationSetName !== null && { ConfigurationSetName: input.ConfigurationSetName })), (input.DeliveryOptions !== undefined &&
19
- input.DeliveryOptions !== null && {
17
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ConfigurationSetName != null && { ConfigurationSetName: input.ConfigurationSetName })), (input.DeliveryOptions != null && {
20
18
  DeliveryOptions: serializeAws_restJson1DeliveryOptions(input.DeliveryOptions, context),
21
- })), (input.ReputationOptions !== undefined &&
22
- input.ReputationOptions !== null && {
19
+ })), (input.ReputationOptions != null && {
23
20
  ReputationOptions: serializeAws_restJson1ReputationOptions(input.ReputationOptions, context),
24
- })), (input.SendingOptions !== undefined &&
25
- input.SendingOptions !== null && {
21
+ })), (input.SendingOptions != null && {
26
22
  SendingOptions: serializeAws_restJson1SendingOptions(input.SendingOptions, context),
27
- })), (input.SuppressionOptions !== undefined &&
28
- input.SuppressionOptions !== null && {
23
+ })), (input.SuppressionOptions != null && {
29
24
  SuppressionOptions: serializeAws_restJson1SuppressionOptions(input.SuppressionOptions, context),
30
- })), (input.Tags !== undefined &&
31
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })), (input.TrackingOptions !== undefined &&
32
- input.TrackingOptions !== null && {
25
+ })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })), (input.TrackingOptions != null && {
33
26
  TrackingOptions: serializeAws_restJson1TrackingOptions(input.TrackingOptions, context),
34
27
  })));
35
28
  return [2, new __HttpRequest({
@@ -66,11 +59,9 @@ export var serializeAws_restJson1CreateConfigurationSetEventDestinationCommand =
66
59
  else {
67
60
  throw new Error("No value provided for input HTTP label: ConfigurationSetName.");
68
61
  }
69
- body = JSON.stringify(__assign(__assign({}, (input.EventDestination !== undefined &&
70
- input.EventDestination !== null && {
62
+ body = JSON.stringify(__assign(__assign({}, (input.EventDestination != null && {
71
63
  EventDestination: serializeAws_restJson1EventDestinationDefinition(input.EventDestination, context),
72
- })), (input.EventDestinationName !== undefined &&
73
- input.EventDestinationName !== null && { EventDestinationName: input.EventDestinationName })));
64
+ })), (input.EventDestinationName != null && { EventDestinationName: input.EventDestinationName })));
74
65
  return [2, new __HttpRequest({
75
66
  protocol: protocol,
76
67
  hostname: hostname,
@@ -105,12 +96,9 @@ export var serializeAws_restJson1CreateContactCommand = function (input, context
105
96
  else {
106
97
  throw new Error("No value provided for input HTTP label: ContactListName.");
107
98
  }
108
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AttributesData !== undefined &&
109
- input.AttributesData !== null && { AttributesData: input.AttributesData })), (input.EmailAddress !== undefined && input.EmailAddress !== null && { EmailAddress: input.EmailAddress })), (input.TopicPreferences !== undefined &&
110
- input.TopicPreferences !== null && {
99
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AttributesData != null && { AttributesData: input.AttributesData })), (input.EmailAddress != null && { EmailAddress: input.EmailAddress })), (input.TopicPreferences != null && {
111
100
  TopicPreferences: serializeAws_restJson1TopicPreferenceList(input.TopicPreferences, context),
112
- })), (input.UnsubscribeAll !== undefined &&
113
- input.UnsubscribeAll !== null && { UnsubscribeAll: input.UnsubscribeAll })));
101
+ })), (input.UnsubscribeAll != null && { UnsubscribeAll: input.UnsubscribeAll })));
114
102
  return [2, new __HttpRequest({
115
103
  protocol: protocol,
116
104
  hostname: hostname,
@@ -134,10 +122,7 @@ export var serializeAws_restJson1CreateContactListCommand = function (input, con
134
122
  "content-type": "application/json",
135
123
  };
136
124
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/contact-lists";
137
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ContactListName !== undefined &&
138
- input.ContactListName !== null && { ContactListName: input.ContactListName })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Tags !== undefined &&
139
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })), (input.Topics !== undefined &&
140
- input.Topics !== null && { Topics: serializeAws_restJson1Topics(input.Topics, context) })));
125
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ContactListName != null && { ContactListName: input.ContactListName })), (input.Description != null && { Description: input.Description })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })), (input.Topics != null && { Topics: serializeAws_restJson1Topics(input.Topics, context) })));
141
126
  return [2, new __HttpRequest({
142
127
  protocol: protocol,
143
128
  hostname: hostname,
@@ -162,12 +147,7 @@ export var serializeAws_restJson1CreateCustomVerificationEmailTemplateCommand =
162
147
  };
163
148
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
164
149
  "/v2/email/custom-verification-email-templates";
165
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.FailureRedirectionURL !== undefined &&
166
- input.FailureRedirectionURL !== null && { FailureRedirectionURL: input.FailureRedirectionURL })), (input.FromEmailAddress !== undefined &&
167
- input.FromEmailAddress !== null && { FromEmailAddress: input.FromEmailAddress })), (input.SuccessRedirectionURL !== undefined &&
168
- input.SuccessRedirectionURL !== null && { SuccessRedirectionURL: input.SuccessRedirectionURL })), (input.TemplateContent !== undefined &&
169
- input.TemplateContent !== null && { TemplateContent: input.TemplateContent })), (input.TemplateName !== undefined && input.TemplateName !== null && { TemplateName: input.TemplateName })), (input.TemplateSubject !== undefined &&
170
- input.TemplateSubject !== null && { TemplateSubject: input.TemplateSubject })));
150
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.FailureRedirectionURL != null && { FailureRedirectionURL: input.FailureRedirectionURL })), (input.FromEmailAddress != null && { FromEmailAddress: input.FromEmailAddress })), (input.SuccessRedirectionURL != null && { SuccessRedirectionURL: input.SuccessRedirectionURL })), (input.TemplateContent != null && { TemplateContent: input.TemplateContent })), (input.TemplateName != null && { TemplateName: input.TemplateName })), (input.TemplateSubject != null && { TemplateSubject: input.TemplateSubject })));
171
151
  return [2, new __HttpRequest({
172
152
  protocol: protocol,
173
153
  hostname: hostname,
@@ -191,8 +171,7 @@ export var serializeAws_restJson1CreateDedicatedIpPoolCommand = function (input,
191
171
  "content-type": "application/json",
192
172
  };
193
173
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/dedicated-ip-pools";
194
- body = JSON.stringify(__assign(__assign({}, (input.PoolName !== undefined && input.PoolName !== null && { PoolName: input.PoolName })), (input.Tags !== undefined &&
195
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
174
+ body = JSON.stringify(__assign(__assign({}, (input.PoolName != null && { PoolName: input.PoolName })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
196
175
  return [2, new __HttpRequest({
197
176
  protocol: protocol,
198
177
  hostname: hostname,
@@ -216,10 +195,7 @@ export var serializeAws_restJson1CreateDeliverabilityTestReportCommand = functio
216
195
  "content-type": "application/json",
217
196
  };
218
197
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/deliverability-dashboard/test";
219
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Content !== undefined &&
220
- input.Content !== null && { Content: serializeAws_restJson1EmailContent(input.Content, context) })), (input.FromEmailAddress !== undefined &&
221
- input.FromEmailAddress !== null && { FromEmailAddress: input.FromEmailAddress })), (input.ReportName !== undefined && input.ReportName !== null && { ReportName: input.ReportName })), (input.Tags !== undefined &&
222
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
198
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Content != null && { Content: serializeAws_restJson1EmailContent(input.Content, context) })), (input.FromEmailAddress != null && { FromEmailAddress: input.FromEmailAddress })), (input.ReportName != null && { ReportName: input.ReportName })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
223
199
  return [2, new __HttpRequest({
224
200
  protocol: protocol,
225
201
  hostname: hostname,
@@ -243,12 +219,9 @@ export var serializeAws_restJson1CreateEmailIdentityCommand = function (input, c
243
219
  "content-type": "application/json",
244
220
  };
245
221
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/identities";
246
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ConfigurationSetName !== undefined &&
247
- input.ConfigurationSetName !== null && { ConfigurationSetName: input.ConfigurationSetName })), (input.DkimSigningAttributes !== undefined &&
248
- input.DkimSigningAttributes !== null && {
222
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ConfigurationSetName != null && { ConfigurationSetName: input.ConfigurationSetName })), (input.DkimSigningAttributes != null && {
249
223
  DkimSigningAttributes: serializeAws_restJson1DkimSigningAttributes(input.DkimSigningAttributes, context),
250
- })), (input.EmailIdentity !== undefined && input.EmailIdentity !== null && { EmailIdentity: input.EmailIdentity })), (input.Tags !== undefined &&
251
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
224
+ })), (input.EmailIdentity != null && { EmailIdentity: input.EmailIdentity })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
252
225
  return [2, new __HttpRequest({
253
226
  protocol: protocol,
254
227
  hostname: hostname,
@@ -293,7 +266,7 @@ export var serializeAws_restJson1CreateEmailIdentityPolicyCommand = function (in
293
266
  else {
294
267
  throw new Error("No value provided for input HTTP label: PolicyName.");
295
268
  }
296
- body = JSON.stringify(__assign({}, (input.Policy !== undefined && input.Policy !== null && { Policy: input.Policy })));
269
+ body = JSON.stringify(__assign({}, (input.Policy != null && { Policy: input.Policy })));
297
270
  return [2, new __HttpRequest({
298
271
  protocol: protocol,
299
272
  hostname: hostname,
@@ -317,10 +290,9 @@ export var serializeAws_restJson1CreateEmailTemplateCommand = function (input, c
317
290
  "content-type": "application/json",
318
291
  };
319
292
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/templates";
320
- body = JSON.stringify(__assign(__assign({}, (input.TemplateContent !== undefined &&
321
- input.TemplateContent !== null && {
293
+ body = JSON.stringify(__assign(__assign({}, (input.TemplateContent != null && {
322
294
  TemplateContent: serializeAws_restJson1EmailTemplateContent(input.TemplateContent, context),
323
- })), (input.TemplateName !== undefined && input.TemplateName !== null && { TemplateName: input.TemplateName })));
295
+ })), (input.TemplateName != null && { TemplateName: input.TemplateName })));
324
296
  return [2, new __HttpRequest({
325
297
  protocol: protocol,
326
298
  hostname: hostname,
@@ -344,11 +316,9 @@ export var serializeAws_restJson1CreateImportJobCommand = function (input, conte
344
316
  "content-type": "application/json",
345
317
  };
346
318
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/import-jobs";
347
- body = JSON.stringify(__assign(__assign({}, (input.ImportDataSource !== undefined &&
348
- input.ImportDataSource !== null && {
319
+ body = JSON.stringify(__assign(__assign({}, (input.ImportDataSource != null && {
349
320
  ImportDataSource: serializeAws_restJson1ImportDataSource(input.ImportDataSource, context),
350
- })), (input.ImportDestination !== undefined &&
351
- input.ImportDestination !== null && {
321
+ })), (input.ImportDestination != null && {
352
322
  ImportDestination: serializeAws_restJson1ImportDestination(input.ImportDestination, context),
353
323
  })));
354
324
  return [2, new __HttpRequest({
@@ -1330,8 +1300,7 @@ export var serializeAws_restJson1ListContactsCommand = function (input, context)
1330
1300
  throw new Error("No value provided for input HTTP label: ContactListName.");
1331
1301
  }
1332
1302
  query = __assign(__assign({}, (input.PageSize !== undefined && { PageSize: input.PageSize.toString() })), (input.NextToken !== undefined && { NextToken: input.NextToken }));
1333
- body = JSON.stringify(__assign({}, (input.Filter !== undefined &&
1334
- input.Filter !== null && { Filter: serializeAws_restJson1ListContactsFilter(input.Filter, context) })));
1303
+ body = JSON.stringify(__assign({}, (input.Filter != null && { Filter: serializeAws_restJson1ListContactsFilter(input.Filter, context) })));
1335
1304
  return [2, new __HttpRequest({
1336
1305
  protocol: protocol,
1337
1306
  hostname: hostname,
@@ -1508,8 +1477,7 @@ export var serializeAws_restJson1ListImportJobsCommand = function (input, contex
1508
1477
  };
1509
1478
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/import-jobs";
1510
1479
  query = __assign(__assign({}, (input.NextToken !== undefined && { NextToken: input.NextToken })), (input.PageSize !== undefined && { PageSize: input.PageSize.toString() }));
1511
- body = JSON.stringify(__assign({}, (input.ImportDestinationType !== undefined &&
1512
- input.ImportDestinationType !== null && { ImportDestinationType: input.ImportDestinationType })));
1480
+ body = JSON.stringify(__assign({}, (input.ImportDestinationType != null && { ImportDestinationType: input.ImportDestinationType })));
1513
1481
  return [2, new __HttpRequest({
1514
1482
  protocol: protocol,
1515
1483
  hostname: hostname,
@@ -1580,8 +1548,7 @@ export var serializeAws_restJson1PutAccountDedicatedIpWarmupAttributesCommand =
1580
1548
  "content-type": "application/json",
1581
1549
  };
1582
1550
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/account/dedicated-ips/warmup";
1583
- body = JSON.stringify(__assign({}, (input.AutoWarmupEnabled !== undefined &&
1584
- input.AutoWarmupEnabled !== null && { AutoWarmupEnabled: input.AutoWarmupEnabled })));
1551
+ body = JSON.stringify(__assign({}, (input.AutoWarmupEnabled != null && { AutoWarmupEnabled: input.AutoWarmupEnabled })));
1585
1552
  return [2, new __HttpRequest({
1586
1553
  protocol: protocol,
1587
1554
  hostname: hostname,
@@ -1605,13 +1572,9 @@ export var serializeAws_restJson1PutAccountDetailsCommand = function (input, con
1605
1572
  "content-type": "application/json",
1606
1573
  };
1607
1574
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/account/details";
1608
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AdditionalContactEmailAddresses !== undefined &&
1609
- input.AdditionalContactEmailAddresses !== null && {
1575
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AdditionalContactEmailAddresses != null && {
1610
1576
  AdditionalContactEmailAddresses: serializeAws_restJson1AdditionalContactEmailAddresses(input.AdditionalContactEmailAddresses, context),
1611
- })), (input.ContactLanguage !== undefined &&
1612
- input.ContactLanguage !== null && { ContactLanguage: input.ContactLanguage })), (input.MailType !== undefined && input.MailType !== null && { MailType: input.MailType })), (input.ProductionAccessEnabled !== undefined &&
1613
- input.ProductionAccessEnabled !== null && { ProductionAccessEnabled: input.ProductionAccessEnabled })), (input.UseCaseDescription !== undefined &&
1614
- input.UseCaseDescription !== null && { UseCaseDescription: input.UseCaseDescription })), (input.WebsiteURL !== undefined && input.WebsiteURL !== null && { WebsiteURL: input.WebsiteURL })));
1577
+ })), (input.ContactLanguage != null && { ContactLanguage: input.ContactLanguage })), (input.MailType != null && { MailType: input.MailType })), (input.ProductionAccessEnabled != null && { ProductionAccessEnabled: input.ProductionAccessEnabled })), (input.UseCaseDescription != null && { UseCaseDescription: input.UseCaseDescription })), (input.WebsiteURL != null && { WebsiteURL: input.WebsiteURL })));
1615
1578
  return [2, new __HttpRequest({
1616
1579
  protocol: protocol,
1617
1580
  hostname: hostname,
@@ -1635,8 +1598,7 @@ export var serializeAws_restJson1PutAccountSendingAttributesCommand = function (
1635
1598
  "content-type": "application/json",
1636
1599
  };
1637
1600
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/account/sending";
1638
- body = JSON.stringify(__assign({}, (input.SendingEnabled !== undefined &&
1639
- input.SendingEnabled !== null && { SendingEnabled: input.SendingEnabled })));
1601
+ body = JSON.stringify(__assign({}, (input.SendingEnabled != null && { SendingEnabled: input.SendingEnabled })));
1640
1602
  return [2, new __HttpRequest({
1641
1603
  protocol: protocol,
1642
1604
  hostname: hostname,
@@ -1660,8 +1622,7 @@ export var serializeAws_restJson1PutAccountSuppressionAttributesCommand = functi
1660
1622
  "content-type": "application/json",
1661
1623
  };
1662
1624
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/account/suppression";
1663
- body = JSON.stringify(__assign({}, (input.SuppressedReasons !== undefined &&
1664
- input.SuppressedReasons !== null && {
1625
+ body = JSON.stringify(__assign({}, (input.SuppressedReasons != null && {
1665
1626
  SuppressedReasons: serializeAws_restJson1SuppressionListReasons(input.SuppressedReasons, context),
1666
1627
  })));
1667
1628
  return [2, new __HttpRequest({
@@ -1698,8 +1659,7 @@ export var serializeAws_restJson1PutConfigurationSetDeliveryOptionsCommand = fun
1698
1659
  else {
1699
1660
  throw new Error("No value provided for input HTTP label: ConfigurationSetName.");
1700
1661
  }
1701
- body = JSON.stringify(__assign(__assign({}, (input.SendingPoolName !== undefined &&
1702
- input.SendingPoolName !== null && { SendingPoolName: input.SendingPoolName })), (input.TlsPolicy !== undefined && input.TlsPolicy !== null && { TlsPolicy: input.TlsPolicy })));
1662
+ body = JSON.stringify(__assign(__assign({}, (input.SendingPoolName != null && { SendingPoolName: input.SendingPoolName })), (input.TlsPolicy != null && { TlsPolicy: input.TlsPolicy })));
1703
1663
  return [2, new __HttpRequest({
1704
1664
  protocol: protocol,
1705
1665
  hostname: hostname,
@@ -1734,8 +1694,7 @@ export var serializeAws_restJson1PutConfigurationSetReputationOptionsCommand = f
1734
1694
  else {
1735
1695
  throw new Error("No value provided for input HTTP label: ConfigurationSetName.");
1736
1696
  }
1737
- body = JSON.stringify(__assign({}, (input.ReputationMetricsEnabled !== undefined &&
1738
- input.ReputationMetricsEnabled !== null && { ReputationMetricsEnabled: input.ReputationMetricsEnabled })));
1697
+ body = JSON.stringify(__assign({}, (input.ReputationMetricsEnabled != null && { ReputationMetricsEnabled: input.ReputationMetricsEnabled })));
1739
1698
  return [2, new __HttpRequest({
1740
1699
  protocol: protocol,
1741
1700
  hostname: hostname,
@@ -1770,8 +1729,7 @@ export var serializeAws_restJson1PutConfigurationSetSendingOptionsCommand = func
1770
1729
  else {
1771
1730
  throw new Error("No value provided for input HTTP label: ConfigurationSetName.");
1772
1731
  }
1773
- body = JSON.stringify(__assign({}, (input.SendingEnabled !== undefined &&
1774
- input.SendingEnabled !== null && { SendingEnabled: input.SendingEnabled })));
1732
+ body = JSON.stringify(__assign({}, (input.SendingEnabled != null && { SendingEnabled: input.SendingEnabled })));
1775
1733
  return [2, new __HttpRequest({
1776
1734
  protocol: protocol,
1777
1735
  hostname: hostname,
@@ -1806,8 +1764,7 @@ export var serializeAws_restJson1PutConfigurationSetSuppressionOptionsCommand =
1806
1764
  else {
1807
1765
  throw new Error("No value provided for input HTTP label: ConfigurationSetName.");
1808
1766
  }
1809
- body = JSON.stringify(__assign({}, (input.SuppressedReasons !== undefined &&
1810
- input.SuppressedReasons !== null && {
1767
+ body = JSON.stringify(__assign({}, (input.SuppressedReasons != null && {
1811
1768
  SuppressedReasons: serializeAws_restJson1SuppressionListReasons(input.SuppressedReasons, context),
1812
1769
  })));
1813
1770
  return [2, new __HttpRequest({
@@ -1844,8 +1801,7 @@ export var serializeAws_restJson1PutConfigurationSetTrackingOptionsCommand = fun
1844
1801
  else {
1845
1802
  throw new Error("No value provided for input HTTP label: ConfigurationSetName.");
1846
1803
  }
1847
- body = JSON.stringify(__assign({}, (input.CustomRedirectDomain !== undefined &&
1848
- input.CustomRedirectDomain !== null && { CustomRedirectDomain: input.CustomRedirectDomain })));
1804
+ body = JSON.stringify(__assign({}, (input.CustomRedirectDomain != null && { CustomRedirectDomain: input.CustomRedirectDomain })));
1849
1805
  return [2, new __HttpRequest({
1850
1806
  protocol: protocol,
1851
1807
  hostname: hostname,
@@ -1879,8 +1835,7 @@ export var serializeAws_restJson1PutDedicatedIpInPoolCommand = function (input,
1879
1835
  else {
1880
1836
  throw new Error("No value provided for input HTTP label: Ip.");
1881
1837
  }
1882
- body = JSON.stringify(__assign({}, (input.DestinationPoolName !== undefined &&
1883
- input.DestinationPoolName !== null && { DestinationPoolName: input.DestinationPoolName })));
1838
+ body = JSON.stringify(__assign({}, (input.DestinationPoolName != null && { DestinationPoolName: input.DestinationPoolName })));
1884
1839
  return [2, new __HttpRequest({
1885
1840
  protocol: protocol,
1886
1841
  hostname: hostname,
@@ -1914,8 +1869,7 @@ export var serializeAws_restJson1PutDedicatedIpWarmupAttributesCommand = functio
1914
1869
  else {
1915
1870
  throw new Error("No value provided for input HTTP label: Ip.");
1916
1871
  }
1917
- body = JSON.stringify(__assign({}, (input.WarmupPercentage !== undefined &&
1918
- input.WarmupPercentage !== null && { WarmupPercentage: input.WarmupPercentage })));
1872
+ body = JSON.stringify(__assign({}, (input.WarmupPercentage != null && { WarmupPercentage: input.WarmupPercentage })));
1919
1873
  return [2, new __HttpRequest({
1920
1874
  protocol: protocol,
1921
1875
  hostname: hostname,
@@ -1939,9 +1893,7 @@ export var serializeAws_restJson1PutDeliverabilityDashboardOptionCommand = funct
1939
1893
  "content-type": "application/json",
1940
1894
  };
1941
1895
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/deliverability-dashboard";
1942
- body = JSON.stringify(__assign(__assign({}, (input.DashboardEnabled !== undefined &&
1943
- input.DashboardEnabled !== null && { DashboardEnabled: input.DashboardEnabled })), (input.SubscribedDomains !== undefined &&
1944
- input.SubscribedDomains !== null && {
1896
+ body = JSON.stringify(__assign(__assign({}, (input.DashboardEnabled != null && { DashboardEnabled: input.DashboardEnabled })), (input.SubscribedDomains != null && {
1945
1897
  SubscribedDomains: serializeAws_restJson1DomainDeliverabilityTrackingOptions(input.SubscribedDomains, context),
1946
1898
  })));
1947
1899
  return [2, new __HttpRequest({
@@ -1978,8 +1930,7 @@ export var serializeAws_restJson1PutEmailIdentityConfigurationSetAttributesComma
1978
1930
  else {
1979
1931
  throw new Error("No value provided for input HTTP label: EmailIdentity.");
1980
1932
  }
1981
- body = JSON.stringify(__assign({}, (input.ConfigurationSetName !== undefined &&
1982
- input.ConfigurationSetName !== null && { ConfigurationSetName: input.ConfigurationSetName })));
1933
+ body = JSON.stringify(__assign({}, (input.ConfigurationSetName != null && { ConfigurationSetName: input.ConfigurationSetName })));
1983
1934
  return [2, new __HttpRequest({
1984
1935
  protocol: protocol,
1985
1936
  hostname: hostname,
@@ -2013,8 +1964,7 @@ export var serializeAws_restJson1PutEmailIdentityDkimAttributesCommand = functio
2013
1964
  else {
2014
1965
  throw new Error("No value provided for input HTTP label: EmailIdentity.");
2015
1966
  }
2016
- body = JSON.stringify(__assign({}, (input.SigningEnabled !== undefined &&
2017
- input.SigningEnabled !== null && { SigningEnabled: input.SigningEnabled })));
1967
+ body = JSON.stringify(__assign({}, (input.SigningEnabled != null && { SigningEnabled: input.SigningEnabled })));
2018
1968
  return [2, new __HttpRequest({
2019
1969
  protocol: protocol,
2020
1970
  hostname: hostname,
@@ -2049,11 +1999,9 @@ export var serializeAws_restJson1PutEmailIdentityDkimSigningAttributesCommand =
2049
1999
  else {
2050
2000
  throw new Error("No value provided for input HTTP label: EmailIdentity.");
2051
2001
  }
2052
- body = JSON.stringify(__assign(__assign({}, (input.SigningAttributes !== undefined &&
2053
- input.SigningAttributes !== null && {
2002
+ body = JSON.stringify(__assign(__assign({}, (input.SigningAttributes != null && {
2054
2003
  SigningAttributes: serializeAws_restJson1DkimSigningAttributes(input.SigningAttributes, context),
2055
- })), (input.SigningAttributesOrigin !== undefined &&
2056
- input.SigningAttributesOrigin !== null && { SigningAttributesOrigin: input.SigningAttributesOrigin })));
2004
+ })), (input.SigningAttributesOrigin != null && { SigningAttributesOrigin: input.SigningAttributesOrigin })));
2057
2005
  return [2, new __HttpRequest({
2058
2006
  protocol: protocol,
2059
2007
  hostname: hostname,
@@ -2088,8 +2036,7 @@ export var serializeAws_restJson1PutEmailIdentityFeedbackAttributesCommand = fun
2088
2036
  else {
2089
2037
  throw new Error("No value provided for input HTTP label: EmailIdentity.");
2090
2038
  }
2091
- body = JSON.stringify(__assign({}, (input.EmailForwardingEnabled !== undefined &&
2092
- input.EmailForwardingEnabled !== null && { EmailForwardingEnabled: input.EmailForwardingEnabled })));
2039
+ body = JSON.stringify(__assign({}, (input.EmailForwardingEnabled != null && { EmailForwardingEnabled: input.EmailForwardingEnabled })));
2093
2040
  return [2, new __HttpRequest({
2094
2041
  protocol: protocol,
2095
2042
  hostname: hostname,
@@ -2124,9 +2071,7 @@ export var serializeAws_restJson1PutEmailIdentityMailFromAttributesCommand = fun
2124
2071
  else {
2125
2072
  throw new Error("No value provided for input HTTP label: EmailIdentity.");
2126
2073
  }
2127
- body = JSON.stringify(__assign(__assign({}, (input.BehaviorOnMxFailure !== undefined &&
2128
- input.BehaviorOnMxFailure !== null && { BehaviorOnMxFailure: input.BehaviorOnMxFailure })), (input.MailFromDomain !== undefined &&
2129
- input.MailFromDomain !== null && { MailFromDomain: input.MailFromDomain })));
2074
+ body = JSON.stringify(__assign(__assign({}, (input.BehaviorOnMxFailure != null && { BehaviorOnMxFailure: input.BehaviorOnMxFailure })), (input.MailFromDomain != null && { MailFromDomain: input.MailFromDomain })));
2130
2075
  return [2, new __HttpRequest({
2131
2076
  protocol: protocol,
2132
2077
  hostname: hostname,
@@ -2150,7 +2095,7 @@ export var serializeAws_restJson1PutSuppressedDestinationCommand = function (inp
2150
2095
  "content-type": "application/json",
2151
2096
  };
2152
2097
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/suppression/addresses";
2153
- body = JSON.stringify(__assign(__assign({}, (input.EmailAddress !== undefined && input.EmailAddress !== null && { EmailAddress: input.EmailAddress })), (input.Reason !== undefined && input.Reason !== null && { Reason: input.Reason })));
2098
+ body = JSON.stringify(__assign(__assign({}, (input.EmailAddress != null && { EmailAddress: input.EmailAddress })), (input.Reason != null && { Reason: input.Reason })));
2154
2099
  return [2, new __HttpRequest({
2155
2100
  protocol: protocol,
2156
2101
  hostname: hostname,
@@ -2174,26 +2119,19 @@ export var serializeAws_restJson1SendBulkEmailCommand = function (input, context
2174
2119
  "content-type": "application/json",
2175
2120
  };
2176
2121
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/outbound-bulk-emails";
2177
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BulkEmailEntries !== undefined &&
2178
- input.BulkEmailEntries !== null && {
2122
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BulkEmailEntries != null && {
2179
2123
  BulkEmailEntries: serializeAws_restJson1BulkEmailEntryList(input.BulkEmailEntries, context),
2180
- })), (input.ConfigurationSetName !== undefined &&
2181
- input.ConfigurationSetName !== null && { ConfigurationSetName: input.ConfigurationSetName })), (input.DefaultContent !== undefined &&
2182
- input.DefaultContent !== null && {
2124
+ })), (input.ConfigurationSetName != null && { ConfigurationSetName: input.ConfigurationSetName })), (input.DefaultContent != null && {
2183
2125
  DefaultContent: serializeAws_restJson1BulkEmailContent(input.DefaultContent, context),
2184
- })), (input.DefaultEmailTags !== undefined &&
2185
- input.DefaultEmailTags !== null && {
2126
+ })), (input.DefaultEmailTags != null && {
2186
2127
  DefaultEmailTags: serializeAws_restJson1MessageTagList(input.DefaultEmailTags, context),
2187
- })), (input.FeedbackForwardingEmailAddress !== undefined &&
2188
- input.FeedbackForwardingEmailAddress !== null && {
2128
+ })), (input.FeedbackForwardingEmailAddress != null && {
2189
2129
  FeedbackForwardingEmailAddress: input.FeedbackForwardingEmailAddress,
2190
- })), (input.FeedbackForwardingEmailAddressIdentityArn !== undefined &&
2191
- input.FeedbackForwardingEmailAddressIdentityArn !== null && {
2130
+ })), (input.FeedbackForwardingEmailAddressIdentityArn != null && {
2192
2131
  FeedbackForwardingEmailAddressIdentityArn: input.FeedbackForwardingEmailAddressIdentityArn,
2193
- })), (input.FromEmailAddress !== undefined &&
2194
- input.FromEmailAddress !== null && { FromEmailAddress: input.FromEmailAddress })), (input.FromEmailAddressIdentityArn !== undefined &&
2195
- input.FromEmailAddressIdentityArn !== null && { FromEmailAddressIdentityArn: input.FromEmailAddressIdentityArn })), (input.ReplyToAddresses !== undefined &&
2196
- input.ReplyToAddresses !== null && {
2132
+ })), (input.FromEmailAddress != null && { FromEmailAddress: input.FromEmailAddress })), (input.FromEmailAddressIdentityArn != null && {
2133
+ FromEmailAddressIdentityArn: input.FromEmailAddressIdentityArn,
2134
+ })), (input.ReplyToAddresses != null && {
2197
2135
  ReplyToAddresses: serializeAws_restJson1EmailAddressList(input.ReplyToAddresses, context),
2198
2136
  })));
2199
2137
  return [2, new __HttpRequest({
@@ -2220,8 +2158,7 @@ export var serializeAws_restJson1SendCustomVerificationEmailCommand = function (
2220
2158
  };
2221
2159
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2222
2160
  "/v2/email/outbound-custom-verification-emails";
2223
- body = JSON.stringify(__assign(__assign(__assign({}, (input.ConfigurationSetName !== undefined &&
2224
- input.ConfigurationSetName !== null && { ConfigurationSetName: input.ConfigurationSetName })), (input.EmailAddress !== undefined && input.EmailAddress !== null && { EmailAddress: input.EmailAddress })), (input.TemplateName !== undefined && input.TemplateName !== null && { TemplateName: input.TemplateName })));
2161
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.ConfigurationSetName != null && { ConfigurationSetName: input.ConfigurationSetName })), (input.EmailAddress != null && { EmailAddress: input.EmailAddress })), (input.TemplateName != null && { TemplateName: input.TemplateName })));
2225
2162
  return [2, new __HttpRequest({
2226
2163
  protocol: protocol,
2227
2164
  hostname: hostname,
@@ -2245,23 +2182,15 @@ export var serializeAws_restJson1SendEmailCommand = function (input, context) {
2245
2182
  "content-type": "application/json",
2246
2183
  };
2247
2184
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/outbound-emails";
2248
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ConfigurationSetName !== undefined &&
2249
- input.ConfigurationSetName !== null && { ConfigurationSetName: input.ConfigurationSetName })), (input.Content !== undefined &&
2250
- input.Content !== null && { Content: serializeAws_restJson1EmailContent(input.Content, context) })), (input.Destination !== undefined &&
2251
- input.Destination !== null && { Destination: serializeAws_restJson1Destination(input.Destination, context) })), (input.EmailTags !== undefined &&
2252
- input.EmailTags !== null && { EmailTags: serializeAws_restJson1MessageTagList(input.EmailTags, context) })), (input.FeedbackForwardingEmailAddress !== undefined &&
2253
- input.FeedbackForwardingEmailAddress !== null && {
2185
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ConfigurationSetName != null && { ConfigurationSetName: input.ConfigurationSetName })), (input.Content != null && { Content: serializeAws_restJson1EmailContent(input.Content, context) })), (input.Destination != null && { Destination: serializeAws_restJson1Destination(input.Destination, context) })), (input.EmailTags != null && { EmailTags: serializeAws_restJson1MessageTagList(input.EmailTags, context) })), (input.FeedbackForwardingEmailAddress != null && {
2254
2186
  FeedbackForwardingEmailAddress: input.FeedbackForwardingEmailAddress,
2255
- })), (input.FeedbackForwardingEmailAddressIdentityArn !== undefined &&
2256
- input.FeedbackForwardingEmailAddressIdentityArn !== null && {
2187
+ })), (input.FeedbackForwardingEmailAddressIdentityArn != null && {
2257
2188
  FeedbackForwardingEmailAddressIdentityArn: input.FeedbackForwardingEmailAddressIdentityArn,
2258
- })), (input.FromEmailAddress !== undefined &&
2259
- input.FromEmailAddress !== null && { FromEmailAddress: input.FromEmailAddress })), (input.FromEmailAddressIdentityArn !== undefined &&
2260
- input.FromEmailAddressIdentityArn !== null && { FromEmailAddressIdentityArn: input.FromEmailAddressIdentityArn })), (input.ListManagementOptions !== undefined &&
2261
- input.ListManagementOptions !== null && {
2189
+ })), (input.FromEmailAddress != null && { FromEmailAddress: input.FromEmailAddress })), (input.FromEmailAddressIdentityArn != null && {
2190
+ FromEmailAddressIdentityArn: input.FromEmailAddressIdentityArn,
2191
+ })), (input.ListManagementOptions != null && {
2262
2192
  ListManagementOptions: serializeAws_restJson1ListManagementOptions(input.ListManagementOptions, context),
2263
- })), (input.ReplyToAddresses !== undefined &&
2264
- input.ReplyToAddresses !== null && {
2193
+ })), (input.ReplyToAddresses != null && {
2265
2194
  ReplyToAddresses: serializeAws_restJson1EmailAddressList(input.ReplyToAddresses, context),
2266
2195
  })));
2267
2196
  return [2, new __HttpRequest({
@@ -2287,8 +2216,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
2287
2216
  "content-type": "application/json",
2288
2217
  };
2289
2218
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/tags";
2290
- body = JSON.stringify(__assign(__assign({}, (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn })), (input.Tags !== undefined &&
2291
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
2219
+ body = JSON.stringify(__assign(__assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
2292
2220
  return [2, new __HttpRequest({
2293
2221
  protocol: protocol,
2294
2222
  hostname: hostname,
@@ -2322,7 +2250,7 @@ export var serializeAws_restJson1TestRenderEmailTemplateCommand = function (inpu
2322
2250
  else {
2323
2251
  throw new Error("No value provided for input HTTP label: TemplateName.");
2324
2252
  }
2325
- body = JSON.stringify(__assign({}, (input.TemplateData !== undefined && input.TemplateData !== null && { TemplateData: input.TemplateData })));
2253
+ body = JSON.stringify(__assign({}, (input.TemplateData != null && { TemplateData: input.TemplateData })));
2326
2254
  return [2, new __HttpRequest({
2327
2255
  protocol: protocol,
2328
2256
  hostname: hostname,
@@ -2390,8 +2318,7 @@ export var serializeAws_restJson1UpdateConfigurationSetEventDestinationCommand =
2390
2318
  else {
2391
2319
  throw new Error("No value provided for input HTTP label: EventDestinationName.");
2392
2320
  }
2393
- body = JSON.stringify(__assign({}, (input.EventDestination !== undefined &&
2394
- input.EventDestination !== null && {
2321
+ body = JSON.stringify(__assign({}, (input.EventDestination != null && {
2395
2322
  EventDestination: serializeAws_restJson1EventDestinationDefinition(input.EventDestination, context),
2396
2323
  })));
2397
2324
  return [2, new __HttpRequest({
@@ -2438,12 +2365,9 @@ export var serializeAws_restJson1UpdateContactCommand = function (input, context
2438
2365
  else {
2439
2366
  throw new Error("No value provided for input HTTP label: EmailAddress.");
2440
2367
  }
2441
- body = JSON.stringify(__assign(__assign(__assign({}, (input.AttributesData !== undefined &&
2442
- input.AttributesData !== null && { AttributesData: input.AttributesData })), (input.TopicPreferences !== undefined &&
2443
- input.TopicPreferences !== null && {
2368
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.AttributesData != null && { AttributesData: input.AttributesData })), (input.TopicPreferences != null && {
2444
2369
  TopicPreferences: serializeAws_restJson1TopicPreferenceList(input.TopicPreferences, context),
2445
- })), (input.UnsubscribeAll !== undefined &&
2446
- input.UnsubscribeAll !== null && { UnsubscribeAll: input.UnsubscribeAll })));
2370
+ })), (input.UnsubscribeAll != null && { UnsubscribeAll: input.UnsubscribeAll })));
2447
2371
  return [2, new __HttpRequest({
2448
2372
  protocol: protocol,
2449
2373
  hostname: hostname,
@@ -2477,8 +2401,7 @@ export var serializeAws_restJson1UpdateContactListCommand = function (input, con
2477
2401
  else {
2478
2402
  throw new Error("No value provided for input HTTP label: ContactListName.");
2479
2403
  }
2480
- body = JSON.stringify(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Topics !== undefined &&
2481
- input.Topics !== null && { Topics: serializeAws_restJson1Topics(input.Topics, context) })));
2404
+ body = JSON.stringify(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Topics != null && { Topics: serializeAws_restJson1Topics(input.Topics, context) })));
2482
2405
  return [2, new __HttpRequest({
2483
2406
  protocol: protocol,
2484
2407
  hostname: hostname,
@@ -2513,12 +2436,7 @@ export var serializeAws_restJson1UpdateCustomVerificationEmailTemplateCommand =
2513
2436
  else {
2514
2437
  throw new Error("No value provided for input HTTP label: TemplateName.");
2515
2438
  }
2516
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.FailureRedirectionURL !== undefined &&
2517
- input.FailureRedirectionURL !== null && { FailureRedirectionURL: input.FailureRedirectionURL })), (input.FromEmailAddress !== undefined &&
2518
- input.FromEmailAddress !== null && { FromEmailAddress: input.FromEmailAddress })), (input.SuccessRedirectionURL !== undefined &&
2519
- input.SuccessRedirectionURL !== null && { SuccessRedirectionURL: input.SuccessRedirectionURL })), (input.TemplateContent !== undefined &&
2520
- input.TemplateContent !== null && { TemplateContent: input.TemplateContent })), (input.TemplateSubject !== undefined &&
2521
- input.TemplateSubject !== null && { TemplateSubject: input.TemplateSubject })));
2439
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.FailureRedirectionURL != null && { FailureRedirectionURL: input.FailureRedirectionURL })), (input.FromEmailAddress != null && { FromEmailAddress: input.FromEmailAddress })), (input.SuccessRedirectionURL != null && { SuccessRedirectionURL: input.SuccessRedirectionURL })), (input.TemplateContent != null && { TemplateContent: input.TemplateContent })), (input.TemplateSubject != null && { TemplateSubject: input.TemplateSubject })));
2522
2440
  return [2, new __HttpRequest({
2523
2441
  protocol: protocol,
2524
2442
  hostname: hostname,
@@ -2563,7 +2481,7 @@ export var serializeAws_restJson1UpdateEmailIdentityPolicyCommand = function (in
2563
2481
  else {
2564
2482
  throw new Error("No value provided for input HTTP label: PolicyName.");
2565
2483
  }
2566
- body = JSON.stringify(__assign({}, (input.Policy !== undefined && input.Policy !== null && { Policy: input.Policy })));
2484
+ body = JSON.stringify(__assign({}, (input.Policy != null && { Policy: input.Policy })));
2567
2485
  return [2, new __HttpRequest({
2568
2486
  protocol: protocol,
2569
2487
  hostname: hostname,
@@ -2597,8 +2515,7 @@ export var serializeAws_restJson1UpdateEmailTemplateCommand = function (input, c
2597
2515
  else {
2598
2516
  throw new Error("No value provided for input HTTP label: TemplateName.");
2599
2517
  }
2600
- body = JSON.stringify(__assign({}, (input.TemplateContent !== undefined &&
2601
- input.TemplateContent !== null && {
2518
+ body = JSON.stringify(__assign({}, (input.TemplateContent != null && {
2602
2519
  TemplateContent: serializeAws_restJson1EmailTemplateContent(input.TemplateContent, context),
2603
2520
  })));
2604
2521
  return [2, new __HttpRequest({
@@ -8195,21 +8112,15 @@ var serializeAws_restJson1AdditionalContactEmailAddresses = function (input, con
8195
8112
  });
8196
8113
  };
8197
8114
  var serializeAws_restJson1Body = function (input, context) {
8198
- return __assign(__assign({}, (input.Html !== undefined &&
8199
- input.Html !== null && { Html: serializeAws_restJson1Content(input.Html, context) })), (input.Text !== undefined &&
8200
- input.Text !== null && { Text: serializeAws_restJson1Content(input.Text, context) }));
8115
+ return __assign(__assign({}, (input.Html != null && { Html: serializeAws_restJson1Content(input.Html, context) })), (input.Text != null && { Text: serializeAws_restJson1Content(input.Text, context) }));
8201
8116
  };
8202
8117
  var serializeAws_restJson1BulkEmailContent = function (input, context) {
8203
- return __assign({}, (input.Template !== undefined &&
8204
- input.Template !== null && { Template: serializeAws_restJson1Template(input.Template, context) }));
8118
+ return __assign({}, (input.Template != null && { Template: serializeAws_restJson1Template(input.Template, context) }));
8205
8119
  };
8206
8120
  var serializeAws_restJson1BulkEmailEntry = function (input, context) {
8207
- return __assign(__assign(__assign({}, (input.Destination !== undefined &&
8208
- input.Destination !== null && { Destination: serializeAws_restJson1Destination(input.Destination, context) })), (input.ReplacementEmailContent !== undefined &&
8209
- input.ReplacementEmailContent !== null && {
8121
+ return __assign(__assign(__assign({}, (input.Destination != null && { Destination: serializeAws_restJson1Destination(input.Destination, context) })), (input.ReplacementEmailContent != null && {
8210
8122
  ReplacementEmailContent: serializeAws_restJson1ReplacementEmailContent(input.ReplacementEmailContent, context),
8211
- })), (input.ReplacementTags !== undefined &&
8212
- input.ReplacementTags !== null && {
8123
+ })), (input.ReplacementTags != null && {
8213
8124
  ReplacementTags: serializeAws_restJson1MessageTagList(input.ReplacementTags, context),
8214
8125
  }));
8215
8126
  };
@@ -8224,15 +8135,12 @@ var serializeAws_restJson1BulkEmailEntryList = function (input, context) {
8224
8135
  });
8225
8136
  };
8226
8137
  var serializeAws_restJson1CloudWatchDestination = function (input, context) {
8227
- return __assign({}, (input.DimensionConfigurations !== undefined &&
8228
- input.DimensionConfigurations !== null && {
8138
+ return __assign({}, (input.DimensionConfigurations != null && {
8229
8139
  DimensionConfigurations: serializeAws_restJson1CloudWatchDimensionConfigurations(input.DimensionConfigurations, context),
8230
8140
  }));
8231
8141
  };
8232
8142
  var serializeAws_restJson1CloudWatchDimensionConfiguration = function (input, context) {
8233
- return __assign(__assign(__assign({}, (input.DefaultDimensionValue !== undefined &&
8234
- input.DefaultDimensionValue !== null && { DefaultDimensionValue: input.DefaultDimensionValue })), (input.DimensionName !== undefined && input.DimensionName !== null && { DimensionName: input.DimensionName })), (input.DimensionValueSource !== undefined &&
8235
- input.DimensionValueSource !== null && { DimensionValueSource: input.DimensionValueSource }));
8143
+ return __assign(__assign(__assign({}, (input.DefaultDimensionValue != null && { DefaultDimensionValue: input.DefaultDimensionValue })), (input.DimensionName != null && { DimensionName: input.DimensionName })), (input.DimensionValueSource != null && { DimensionValueSource: input.DimensionValueSource }));
8236
8144
  };
8237
8145
  var serializeAws_restJson1CloudWatchDimensionConfigurations = function (input, context) {
8238
8146
  return input
@@ -8245,41 +8153,30 @@ var serializeAws_restJson1CloudWatchDimensionConfigurations = function (input, c
8245
8153
  });
8246
8154
  };
8247
8155
  var serializeAws_restJson1ContactListDestination = function (input, context) {
8248
- return __assign(__assign({}, (input.ContactListImportAction !== undefined &&
8249
- input.ContactListImportAction !== null && { ContactListImportAction: input.ContactListImportAction })), (input.ContactListName !== undefined &&
8250
- input.ContactListName !== null && { ContactListName: input.ContactListName }));
8156
+ return __assign(__assign({}, (input.ContactListImportAction != null && { ContactListImportAction: input.ContactListImportAction })), (input.ContactListName != null && { ContactListName: input.ContactListName }));
8251
8157
  };
8252
8158
  var serializeAws_restJson1Content = function (input, context) {
8253
- return __assign(__assign({}, (input.Charset !== undefined && input.Charset !== null && { Charset: input.Charset })), (input.Data !== undefined && input.Data !== null && { Data: input.Data }));
8159
+ return __assign(__assign({}, (input.Charset != null && { Charset: input.Charset })), (input.Data != null && { Data: input.Data }));
8254
8160
  };
8255
8161
  var serializeAws_restJson1DeliveryOptions = function (input, context) {
8256
- return __assign(__assign({}, (input.SendingPoolName !== undefined &&
8257
- input.SendingPoolName !== null && { SendingPoolName: input.SendingPoolName })), (input.TlsPolicy !== undefined && input.TlsPolicy !== null && { TlsPolicy: input.TlsPolicy }));
8162
+ return __assign(__assign({}, (input.SendingPoolName != null && { SendingPoolName: input.SendingPoolName })), (input.TlsPolicy != null && { TlsPolicy: input.TlsPolicy }));
8258
8163
  };
8259
8164
  var serializeAws_restJson1Destination = function (input, context) {
8260
- return __assign(__assign(__assign({}, (input.BccAddresses !== undefined &&
8261
- input.BccAddresses !== null && {
8165
+ return __assign(__assign(__assign({}, (input.BccAddresses != null && {
8262
8166
  BccAddresses: serializeAws_restJson1EmailAddressList(input.BccAddresses, context),
8263
- })), (input.CcAddresses !== undefined &&
8264
- input.CcAddresses !== null && {
8167
+ })), (input.CcAddresses != null && {
8265
8168
  CcAddresses: serializeAws_restJson1EmailAddressList(input.CcAddresses, context),
8266
- })), (input.ToAddresses !== undefined &&
8267
- input.ToAddresses !== null && {
8169
+ })), (input.ToAddresses != null && {
8268
8170
  ToAddresses: serializeAws_restJson1EmailAddressList(input.ToAddresses, context),
8269
8171
  }));
8270
8172
  };
8271
8173
  var serializeAws_restJson1DkimSigningAttributes = function (input, context) {
8272
- return __assign(__assign(__assign({}, (input.DomainSigningPrivateKey !== undefined &&
8273
- input.DomainSigningPrivateKey !== null && { DomainSigningPrivateKey: input.DomainSigningPrivateKey })), (input.DomainSigningSelector !== undefined &&
8274
- input.DomainSigningSelector !== null && { DomainSigningSelector: input.DomainSigningSelector })), (input.NextSigningKeyLength !== undefined &&
8275
- input.NextSigningKeyLength !== null && { NextSigningKeyLength: input.NextSigningKeyLength }));
8174
+ return __assign(__assign(__assign({}, (input.DomainSigningPrivateKey != null && { DomainSigningPrivateKey: input.DomainSigningPrivateKey })), (input.DomainSigningSelector != null && { DomainSigningSelector: input.DomainSigningSelector })), (input.NextSigningKeyLength != null && { NextSigningKeyLength: input.NextSigningKeyLength }));
8276
8175
  };
8277
8176
  var serializeAws_restJson1DomainDeliverabilityTrackingOption = function (input, context) {
8278
- return __assign(__assign(__assign({}, (input.Domain !== undefined && input.Domain !== null && { Domain: input.Domain })), (input.InboxPlacementTrackingOption !== undefined &&
8279
- input.InboxPlacementTrackingOption !== null && {
8177
+ return __assign(__assign(__assign({}, (input.Domain != null && { Domain: input.Domain })), (input.InboxPlacementTrackingOption != null && {
8280
8178
  InboxPlacementTrackingOption: serializeAws_restJson1InboxPlacementTrackingOption(input.InboxPlacementTrackingOption, context),
8281
- })), (input.SubscriptionStartDate !== undefined &&
8282
- input.SubscriptionStartDate !== null && {
8179
+ })), (input.SubscriptionStartDate != null && {
8283
8180
  SubscriptionStartDate: Math.round(input.SubscriptionStartDate.getTime() / 1000),
8284
8181
  }));
8285
8182
  };
@@ -8304,28 +8201,21 @@ var serializeAws_restJson1EmailAddressList = function (input, context) {
8304
8201
  });
8305
8202
  };
8306
8203
  var serializeAws_restJson1EmailContent = function (input, context) {
8307
- return __assign(__assign(__assign({}, (input.Raw !== undefined && input.Raw !== null && { Raw: serializeAws_restJson1RawMessage(input.Raw, context) })), (input.Simple !== undefined &&
8308
- input.Simple !== null && { Simple: serializeAws_restJson1Message(input.Simple, context) })), (input.Template !== undefined &&
8309
- input.Template !== null && { Template: serializeAws_restJson1Template(input.Template, context) }));
8204
+ return __assign(__assign(__assign({}, (input.Raw != null && { Raw: serializeAws_restJson1RawMessage(input.Raw, context) })), (input.Simple != null && { Simple: serializeAws_restJson1Message(input.Simple, context) })), (input.Template != null && { Template: serializeAws_restJson1Template(input.Template, context) }));
8310
8205
  };
8311
8206
  var serializeAws_restJson1EmailTemplateContent = function (input, context) {
8312
- return __assign(__assign(__assign({}, (input.Html !== undefined && input.Html !== null && { Html: input.Html })), (input.Subject !== undefined && input.Subject !== null && { Subject: input.Subject })), (input.Text !== undefined && input.Text !== null && { Text: input.Text }));
8207
+ return __assign(__assign(__assign({}, (input.Html != null && { Html: input.Html })), (input.Subject != null && { Subject: input.Subject })), (input.Text != null && { Text: input.Text }));
8313
8208
  };
8314
8209
  var serializeAws_restJson1EventDestinationDefinition = function (input, context) {
8315
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.CloudWatchDestination !== undefined &&
8316
- input.CloudWatchDestination !== null && {
8210
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.CloudWatchDestination != null && {
8317
8211
  CloudWatchDestination: serializeAws_restJson1CloudWatchDestination(input.CloudWatchDestination, context),
8318
- })), (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled })), (input.KinesisFirehoseDestination !== undefined &&
8319
- input.KinesisFirehoseDestination !== null && {
8212
+ })), (input.Enabled != null && { Enabled: input.Enabled })), (input.KinesisFirehoseDestination != null && {
8320
8213
  KinesisFirehoseDestination: serializeAws_restJson1KinesisFirehoseDestination(input.KinesisFirehoseDestination, context),
8321
- })), (input.MatchingEventTypes !== undefined &&
8322
- input.MatchingEventTypes !== null && {
8214
+ })), (input.MatchingEventTypes != null && {
8323
8215
  MatchingEventTypes: serializeAws_restJson1EventTypes(input.MatchingEventTypes, context),
8324
- })), (input.PinpointDestination !== undefined &&
8325
- input.PinpointDestination !== null && {
8216
+ })), (input.PinpointDestination != null && {
8326
8217
  PinpointDestination: serializeAws_restJson1PinpointDestination(input.PinpointDestination, context),
8327
- })), (input.SnsDestination !== undefined &&
8328
- input.SnsDestination !== null && {
8218
+ })), (input.SnsDestination != null && {
8329
8219
  SnsDestination: serializeAws_restJson1SnsDestination(input.SnsDestination, context),
8330
8220
  }));
8331
8221
  };
@@ -8340,20 +8230,17 @@ var serializeAws_restJson1EventTypes = function (input, context) {
8340
8230
  });
8341
8231
  };
8342
8232
  var serializeAws_restJson1ImportDataSource = function (input, context) {
8343
- return __assign(__assign({}, (input.DataFormat !== undefined && input.DataFormat !== null && { DataFormat: input.DataFormat })), (input.S3Url !== undefined && input.S3Url !== null && { S3Url: input.S3Url }));
8233
+ return __assign(__assign({}, (input.DataFormat != null && { DataFormat: input.DataFormat })), (input.S3Url != null && { S3Url: input.S3Url }));
8344
8234
  };
8345
8235
  var serializeAws_restJson1ImportDestination = function (input, context) {
8346
- return __assign(__assign({}, (input.ContactListDestination !== undefined &&
8347
- input.ContactListDestination !== null && {
8236
+ return __assign(__assign({}, (input.ContactListDestination != null && {
8348
8237
  ContactListDestination: serializeAws_restJson1ContactListDestination(input.ContactListDestination, context),
8349
- })), (input.SuppressionListDestination !== undefined &&
8350
- input.SuppressionListDestination !== null && {
8238
+ })), (input.SuppressionListDestination != null && {
8351
8239
  SuppressionListDestination: serializeAws_restJson1SuppressionListDestination(input.SuppressionListDestination, context),
8352
8240
  }));
8353
8241
  };
8354
8242
  var serializeAws_restJson1InboxPlacementTrackingOption = function (input, context) {
8355
- return __assign(__assign({}, (input.Global !== undefined && input.Global !== null && { Global: input.Global })), (input.TrackedIsps !== undefined &&
8356
- input.TrackedIsps !== null && { TrackedIsps: serializeAws_restJson1IspNameList(input.TrackedIsps, context) }));
8243
+ return __assign(__assign({}, (input.Global != null && { Global: input.Global })), (input.TrackedIsps != null && { TrackedIsps: serializeAws_restJson1IspNameList(input.TrackedIsps, context) }));
8357
8244
  };
8358
8245
  var serializeAws_restJson1IspNameList = function (input, context) {
8359
8246
  return input
@@ -8366,24 +8253,19 @@ var serializeAws_restJson1IspNameList = function (input, context) {
8366
8253
  });
8367
8254
  };
8368
8255
  var serializeAws_restJson1KinesisFirehoseDestination = function (input, context) {
8369
- return __assign(__assign({}, (input.DeliveryStreamArn !== undefined &&
8370
- input.DeliveryStreamArn !== null && { DeliveryStreamArn: input.DeliveryStreamArn })), (input.IamRoleArn !== undefined && input.IamRoleArn !== null && { IamRoleArn: input.IamRoleArn }));
8256
+ return __assign(__assign({}, (input.DeliveryStreamArn != null && { DeliveryStreamArn: input.DeliveryStreamArn })), (input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }));
8371
8257
  };
8372
8258
  var serializeAws_restJson1ListContactsFilter = function (input, context) {
8373
- return __assign(__assign({}, (input.FilteredStatus !== undefined &&
8374
- input.FilteredStatus !== null && { FilteredStatus: input.FilteredStatus })), (input.TopicFilter !== undefined &&
8375
- input.TopicFilter !== null && { TopicFilter: serializeAws_restJson1TopicFilter(input.TopicFilter, context) }));
8259
+ return __assign(__assign({}, (input.FilteredStatus != null && { FilteredStatus: input.FilteredStatus })), (input.TopicFilter != null && { TopicFilter: serializeAws_restJson1TopicFilter(input.TopicFilter, context) }));
8376
8260
  };
8377
8261
  var serializeAws_restJson1ListManagementOptions = function (input, context) {
8378
- return __assign(__assign({}, (input.ContactListName !== undefined &&
8379
- input.ContactListName !== null && { ContactListName: input.ContactListName })), (input.TopicName !== undefined && input.TopicName !== null && { TopicName: input.TopicName }));
8262
+ return __assign(__assign({}, (input.ContactListName != null && { ContactListName: input.ContactListName })), (input.TopicName != null && { TopicName: input.TopicName }));
8380
8263
  };
8381
8264
  var serializeAws_restJson1Message = function (input, context) {
8382
- return __assign(__assign({}, (input.Body !== undefined && input.Body !== null && { Body: serializeAws_restJson1Body(input.Body, context) })), (input.Subject !== undefined &&
8383
- input.Subject !== null && { Subject: serializeAws_restJson1Content(input.Subject, context) }));
8265
+ return __assign(__assign({}, (input.Body != null && { Body: serializeAws_restJson1Body(input.Body, context) })), (input.Subject != null && { Subject: serializeAws_restJson1Content(input.Subject, context) }));
8384
8266
  };
8385
8267
  var serializeAws_restJson1MessageTag = function (input, context) {
8386
- return __assign(__assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
8268
+ return __assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.Value != null && { Value: input.Value }));
8387
8269
  };
8388
8270
  var serializeAws_restJson1MessageTagList = function (input, context) {
8389
8271
  return input
@@ -8396,37 +8278,32 @@ var serializeAws_restJson1MessageTagList = function (input, context) {
8396
8278
  });
8397
8279
  };
8398
8280
  var serializeAws_restJson1PinpointDestination = function (input, context) {
8399
- return __assign({}, (input.ApplicationArn !== undefined &&
8400
- input.ApplicationArn !== null && { ApplicationArn: input.ApplicationArn }));
8281
+ return __assign({}, (input.ApplicationArn != null && { ApplicationArn: input.ApplicationArn }));
8401
8282
  };
8402
8283
  var serializeAws_restJson1RawMessage = function (input, context) {
8403
- return __assign({}, (input.Data !== undefined && input.Data !== null && { Data: context.base64Encoder(input.Data) }));
8284
+ return __assign({}, (input.Data != null && { Data: context.base64Encoder(input.Data) }));
8404
8285
  };
8405
8286
  var serializeAws_restJson1ReplacementEmailContent = function (input, context) {
8406
- return __assign({}, (input.ReplacementTemplate !== undefined &&
8407
- input.ReplacementTemplate !== null && {
8287
+ return __assign({}, (input.ReplacementTemplate != null && {
8408
8288
  ReplacementTemplate: serializeAws_restJson1ReplacementTemplate(input.ReplacementTemplate, context),
8409
8289
  }));
8410
8290
  };
8411
8291
  var serializeAws_restJson1ReplacementTemplate = function (input, context) {
8412
- return __assign({}, (input.ReplacementTemplateData !== undefined &&
8413
- input.ReplacementTemplateData !== null && { ReplacementTemplateData: input.ReplacementTemplateData }));
8292
+ return __assign({}, (input.ReplacementTemplateData != null && { ReplacementTemplateData: input.ReplacementTemplateData }));
8414
8293
  };
8415
8294
  var serializeAws_restJson1ReputationOptions = function (input, context) {
8416
- return __assign(__assign({}, (input.LastFreshStart !== undefined &&
8417
- input.LastFreshStart !== null && { LastFreshStart: Math.round(input.LastFreshStart.getTime() / 1000) })), (input.ReputationMetricsEnabled !== undefined &&
8418
- input.ReputationMetricsEnabled !== null && { ReputationMetricsEnabled: input.ReputationMetricsEnabled }));
8295
+ return __assign(__assign({}, (input.LastFreshStart != null && { LastFreshStart: Math.round(input.LastFreshStart.getTime() / 1000) })), (input.ReputationMetricsEnabled != null && { ReputationMetricsEnabled: input.ReputationMetricsEnabled }));
8419
8296
  };
8420
8297
  var serializeAws_restJson1SendingOptions = function (input, context) {
8421
- return __assign({}, (input.SendingEnabled !== undefined &&
8422
- input.SendingEnabled !== null && { SendingEnabled: input.SendingEnabled }));
8298
+ return __assign({}, (input.SendingEnabled != null && { SendingEnabled: input.SendingEnabled }));
8423
8299
  };
8424
8300
  var serializeAws_restJson1SnsDestination = function (input, context) {
8425
- return __assign({}, (input.TopicArn !== undefined && input.TopicArn !== null && { TopicArn: input.TopicArn }));
8301
+ return __assign({}, (input.TopicArn != null && { TopicArn: input.TopicArn }));
8426
8302
  };
8427
8303
  var serializeAws_restJson1SuppressionListDestination = function (input, context) {
8428
- return __assign({}, (input.SuppressionListImportAction !== undefined &&
8429
- input.SuppressionListImportAction !== null && { SuppressionListImportAction: input.SuppressionListImportAction }));
8304
+ return __assign({}, (input.SuppressionListImportAction != null && {
8305
+ SuppressionListImportAction: input.SuppressionListImportAction,
8306
+ }));
8430
8307
  };
8431
8308
  var serializeAws_restJson1SuppressionListReasons = function (input, context) {
8432
8309
  return input
@@ -8439,13 +8316,12 @@ var serializeAws_restJson1SuppressionListReasons = function (input, context) {
8439
8316
  });
8440
8317
  };
8441
8318
  var serializeAws_restJson1SuppressionOptions = function (input, context) {
8442
- return __assign({}, (input.SuppressedReasons !== undefined &&
8443
- input.SuppressedReasons !== null && {
8319
+ return __assign({}, (input.SuppressedReasons != null && {
8444
8320
  SuppressedReasons: serializeAws_restJson1SuppressionListReasons(input.SuppressedReasons, context),
8445
8321
  }));
8446
8322
  };
8447
8323
  var serializeAws_restJson1Tag = function (input, context) {
8448
- return __assign(__assign({}, (input.Key !== undefined && input.Key !== null && { Key: input.Key })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
8324
+ return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
8449
8325
  };
8450
8326
  var serializeAws_restJson1TagList = function (input, context) {
8451
8327
  return input
@@ -8458,21 +8334,18 @@ var serializeAws_restJson1TagList = function (input, context) {
8458
8334
  });
8459
8335
  };
8460
8336
  var serializeAws_restJson1Template = function (input, context) {
8461
- return __assign(__assign(__assign({}, (input.TemplateArn !== undefined && input.TemplateArn !== null && { TemplateArn: input.TemplateArn })), (input.TemplateData !== undefined && input.TemplateData !== null && { TemplateData: input.TemplateData })), (input.TemplateName !== undefined && input.TemplateName !== null && { TemplateName: input.TemplateName }));
8337
+ return __assign(__assign(__assign({}, (input.TemplateArn != null && { TemplateArn: input.TemplateArn })), (input.TemplateData != null && { TemplateData: input.TemplateData })), (input.TemplateName != null && { TemplateName: input.TemplateName }));
8462
8338
  };
8463
8339
  var serializeAws_restJson1Topic = function (input, context) {
8464
- return __assign(__assign(__assign(__assign({}, (input.DefaultSubscriptionStatus !== undefined &&
8465
- input.DefaultSubscriptionStatus !== null && { DefaultSubscriptionStatus: input.DefaultSubscriptionStatus })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.DisplayName !== undefined && input.DisplayName !== null && { DisplayName: input.DisplayName })), (input.TopicName !== undefined && input.TopicName !== null && { TopicName: input.TopicName }));
8340
+ return __assign(__assign(__assign(__assign({}, (input.DefaultSubscriptionStatus != null && { DefaultSubscriptionStatus: input.DefaultSubscriptionStatus })), (input.Description != null && { Description: input.Description })), (input.DisplayName != null && { DisplayName: input.DisplayName })), (input.TopicName != null && { TopicName: input.TopicName }));
8466
8341
  };
8467
8342
  var serializeAws_restJson1TopicFilter = function (input, context) {
8468
- return __assign(__assign({}, (input.TopicName !== undefined && input.TopicName !== null && { TopicName: input.TopicName })), (input.UseDefaultIfPreferenceUnavailable !== undefined &&
8469
- input.UseDefaultIfPreferenceUnavailable !== null && {
8343
+ return __assign(__assign({}, (input.TopicName != null && { TopicName: input.TopicName })), (input.UseDefaultIfPreferenceUnavailable != null && {
8470
8344
  UseDefaultIfPreferenceUnavailable: input.UseDefaultIfPreferenceUnavailable,
8471
8345
  }));
8472
8346
  };
8473
8347
  var serializeAws_restJson1TopicPreference = function (input, context) {
8474
- return __assign(__assign({}, (input.SubscriptionStatus !== undefined &&
8475
- input.SubscriptionStatus !== null && { SubscriptionStatus: input.SubscriptionStatus })), (input.TopicName !== undefined && input.TopicName !== null && { TopicName: input.TopicName }));
8348
+ return __assign(__assign({}, (input.SubscriptionStatus != null && { SubscriptionStatus: input.SubscriptionStatus })), (input.TopicName != null && { TopicName: input.TopicName }));
8476
8349
  };
8477
8350
  var serializeAws_restJson1TopicPreferenceList = function (input, context) {
8478
8351
  return input
@@ -8495,19 +8368,16 @@ var serializeAws_restJson1Topics = function (input, context) {
8495
8368
  });
8496
8369
  };
8497
8370
  var serializeAws_restJson1TrackingOptions = function (input, context) {
8498
- return __assign({}, (input.CustomRedirectDomain !== undefined &&
8499
- input.CustomRedirectDomain !== null && { CustomRedirectDomain: input.CustomRedirectDomain }));
8371
+ return __assign({}, (input.CustomRedirectDomain != null && { CustomRedirectDomain: input.CustomRedirectDomain }));
8500
8372
  };
8501
8373
  var deserializeAws_restJson1AccountDetails = function (output, context) {
8502
8374
  return {
8503
- AdditionalContactEmailAddresses: output.AdditionalContactEmailAddresses !== undefined && output.AdditionalContactEmailAddresses !== null
8375
+ AdditionalContactEmailAddresses: output.AdditionalContactEmailAddresses != null
8504
8376
  ? deserializeAws_restJson1AdditionalContactEmailAddresses(output.AdditionalContactEmailAddresses, context)
8505
8377
  : undefined,
8506
8378
  ContactLanguage: __expectString(output.ContactLanguage),
8507
8379
  MailType: __expectString(output.MailType),
8508
- ReviewDetails: output.ReviewDetails !== undefined && output.ReviewDetails !== null
8509
- ? deserializeAws_restJson1ReviewDetails(output.ReviewDetails, context)
8510
- : undefined,
8380
+ ReviewDetails: output.ReviewDetails != null ? deserializeAws_restJson1ReviewDetails(output.ReviewDetails, context) : undefined,
8511
8381
  UseCaseDescription: __expectString(output.UseCaseDescription),
8512
8382
  WebsiteURL: __expectString(output.WebsiteURL),
8513
8383
  };
@@ -8537,7 +8407,7 @@ var deserializeAws_restJson1BlacklistEntries = function (output, context) {
8537
8407
  var deserializeAws_restJson1BlacklistEntry = function (output, context) {
8538
8408
  return {
8539
8409
  Description: __expectString(output.Description),
8540
- ListingTime: output.ListingTime !== undefined && output.ListingTime !== null
8410
+ ListingTime: output.ListingTime != null
8541
8411
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ListingTime)))
8542
8412
  : undefined,
8543
8413
  RblName: __expectString(output.RblName),
@@ -8573,7 +8443,7 @@ var deserializeAws_restJson1BulkEmailEntryResultList = function (output, context
8573
8443
  };
8574
8444
  var deserializeAws_restJson1CloudWatchDestination = function (output, context) {
8575
8445
  return {
8576
- DimensionConfigurations: output.DimensionConfigurations !== undefined && output.DimensionConfigurations !== null
8446
+ DimensionConfigurations: output.DimensionConfigurations != null
8577
8447
  ? deserializeAws_restJson1CloudWatchDimensionConfigurations(output.DimensionConfigurations, context)
8578
8448
  : undefined,
8579
8449
  };
@@ -8610,13 +8480,13 @@ var deserializeAws_restJson1ConfigurationSetNameList = function (output, context
8610
8480
  var deserializeAws_restJson1Contact = function (output, context) {
8611
8481
  return {
8612
8482
  EmailAddress: __expectString(output.EmailAddress),
8613
- LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
8483
+ LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
8614
8484
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
8615
8485
  : undefined,
8616
- TopicDefaultPreferences: output.TopicDefaultPreferences !== undefined && output.TopicDefaultPreferences !== null
8486
+ TopicDefaultPreferences: output.TopicDefaultPreferences != null
8617
8487
  ? deserializeAws_restJson1TopicPreferenceList(output.TopicDefaultPreferences, context)
8618
8488
  : undefined,
8619
- TopicPreferences: output.TopicPreferences !== undefined && output.TopicPreferences !== null
8489
+ TopicPreferences: output.TopicPreferences != null
8620
8490
  ? deserializeAws_restJson1TopicPreferenceList(output.TopicPreferences, context)
8621
8491
  : undefined,
8622
8492
  UnsubscribeAll: __expectBoolean(output.UnsubscribeAll),
@@ -8625,7 +8495,7 @@ var deserializeAws_restJson1Contact = function (output, context) {
8625
8495
  var deserializeAws_restJson1ContactList = function (output, context) {
8626
8496
  return {
8627
8497
  ContactListName: __expectString(output.ContactListName),
8628
- LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
8498
+ LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
8629
8499
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
8630
8500
  : undefined,
8631
8501
  };
@@ -8658,13 +8528,11 @@ var deserializeAws_restJson1CustomVerificationEmailTemplatesList = function (out
8658
8528
  };
8659
8529
  var deserializeAws_restJson1DailyVolume = function (output, context) {
8660
8530
  return {
8661
- DomainIspPlacements: output.DomainIspPlacements !== undefined && output.DomainIspPlacements !== null
8531
+ DomainIspPlacements: output.DomainIspPlacements != null
8662
8532
  ? deserializeAws_restJson1DomainIspPlacements(output.DomainIspPlacements, context)
8663
8533
  : undefined,
8664
- StartDate: output.StartDate !== undefined && output.StartDate !== null
8665
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartDate)))
8666
- : undefined,
8667
- VolumeStatistics: output.VolumeStatistics !== undefined && output.VolumeStatistics !== null
8534
+ StartDate: output.StartDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartDate))) : undefined,
8535
+ VolumeStatistics: output.VolumeStatistics != null
8668
8536
  ? deserializeAws_restJson1VolumeStatistics(output.VolumeStatistics, context)
8669
8537
  : undefined,
8670
8538
  };
@@ -8701,9 +8569,7 @@ var deserializeAws_restJson1DedicatedIpList = function (output, context) {
8701
8569
  };
8702
8570
  var deserializeAws_restJson1DeliverabilityTestReport = function (output, context) {
8703
8571
  return {
8704
- CreateDate: output.CreateDate !== undefined && output.CreateDate !== null
8705
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate)))
8706
- : undefined,
8572
+ CreateDate: output.CreateDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate))) : undefined,
8707
8573
  DeliverabilityTestStatus: __expectString(output.DeliverabilityTestStatus),
8708
8574
  FromEmailAddress: __expectString(output.FromEmailAddress),
8709
8575
  ReportId: __expectString(output.ReportId),
@@ -8731,16 +8597,14 @@ var deserializeAws_restJson1DeliveryOptions = function (output, context) {
8731
8597
  var deserializeAws_restJson1DkimAttributes = function (output, context) {
8732
8598
  return {
8733
8599
  CurrentSigningKeyLength: __expectString(output.CurrentSigningKeyLength),
8734
- LastKeyGenerationTimestamp: output.LastKeyGenerationTimestamp !== undefined && output.LastKeyGenerationTimestamp !== null
8600
+ LastKeyGenerationTimestamp: output.LastKeyGenerationTimestamp != null
8735
8601
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastKeyGenerationTimestamp)))
8736
8602
  : undefined,
8737
8603
  NextSigningKeyLength: __expectString(output.NextSigningKeyLength),
8738
8604
  SigningAttributesOrigin: __expectString(output.SigningAttributesOrigin),
8739
8605
  SigningEnabled: __expectBoolean(output.SigningEnabled),
8740
8606
  Status: __expectString(output.Status),
8741
- Tokens: output.Tokens !== undefined && output.Tokens !== null
8742
- ? deserializeAws_restJson1DnsTokenList(output.Tokens, context)
8743
- : undefined,
8607
+ Tokens: output.Tokens != null ? deserializeAws_restJson1DnsTokenList(output.Tokens, context) : undefined,
8744
8608
  };
8745
8609
  };
8746
8610
  var deserializeAws_restJson1DnsTokenList = function (output, context) {
@@ -8758,24 +8622,20 @@ var deserializeAws_restJson1DomainDeliverabilityCampaign = function (output, con
8758
8622
  return {
8759
8623
  CampaignId: __expectString(output.CampaignId),
8760
8624
  DeleteRate: __limitedParseDouble(output.DeleteRate),
8761
- Esps: output.Esps !== undefined && output.Esps !== null
8762
- ? deserializeAws_restJson1Esps(output.Esps, context)
8763
- : undefined,
8764
- FirstSeenDateTime: output.FirstSeenDateTime !== undefined && output.FirstSeenDateTime !== null
8625
+ Esps: output.Esps != null ? deserializeAws_restJson1Esps(output.Esps, context) : undefined,
8626
+ FirstSeenDateTime: output.FirstSeenDateTime != null
8765
8627
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.FirstSeenDateTime)))
8766
8628
  : undefined,
8767
8629
  FromAddress: __expectString(output.FromAddress),
8768
8630
  ImageUrl: __expectString(output.ImageUrl),
8769
8631
  InboxCount: __expectLong(output.InboxCount),
8770
- LastSeenDateTime: output.LastSeenDateTime !== undefined && output.LastSeenDateTime !== null
8632
+ LastSeenDateTime: output.LastSeenDateTime != null
8771
8633
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastSeenDateTime)))
8772
8634
  : undefined,
8773
8635
  ProjectedVolume: __expectLong(output.ProjectedVolume),
8774
8636
  ReadDeleteRate: __limitedParseDouble(output.ReadDeleteRate),
8775
8637
  ReadRate: __limitedParseDouble(output.ReadRate),
8776
- SendingIps: output.SendingIps !== undefined && output.SendingIps !== null
8777
- ? deserializeAws_restJson1IpList(output.SendingIps, context)
8778
- : undefined,
8638
+ SendingIps: output.SendingIps != null ? deserializeAws_restJson1IpList(output.SendingIps, context) : undefined,
8779
8639
  SpamCount: __expectLong(output.SpamCount),
8780
8640
  Subject: __expectString(output.Subject),
8781
8641
  };
@@ -8794,10 +8654,10 @@ var deserializeAws_restJson1DomainDeliverabilityCampaignList = function (output,
8794
8654
  var deserializeAws_restJson1DomainDeliverabilityTrackingOption = function (output, context) {
8795
8655
  return {
8796
8656
  Domain: __expectString(output.Domain),
8797
- InboxPlacementTrackingOption: output.InboxPlacementTrackingOption !== undefined && output.InboxPlacementTrackingOption !== null
8657
+ InboxPlacementTrackingOption: output.InboxPlacementTrackingOption != null
8798
8658
  ? deserializeAws_restJson1InboxPlacementTrackingOption(output.InboxPlacementTrackingOption, context)
8799
8659
  : undefined,
8800
- SubscriptionStartDate: output.SubscriptionStartDate !== undefined && output.SubscriptionStartDate !== null
8660
+ SubscriptionStartDate: output.SubscriptionStartDate != null
8801
8661
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubscriptionStartDate)))
8802
8662
  : undefined,
8803
8663
  };
@@ -8842,7 +8702,7 @@ var deserializeAws_restJson1EmailTemplateContent = function (output, context) {
8842
8702
  };
8843
8703
  var deserializeAws_restJson1EmailTemplateMetadata = function (output, context) {
8844
8704
  return {
8845
- CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
8705
+ CreatedTimestamp: output.CreatedTimestamp != null
8846
8706
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
8847
8707
  : undefined,
8848
8708
  TemplateName: __expectString(output.TemplateName),
@@ -8872,21 +8732,21 @@ var deserializeAws_restJson1Esps = function (output, context) {
8872
8732
  };
8873
8733
  var deserializeAws_restJson1EventDestination = function (output, context) {
8874
8734
  return {
8875
- CloudWatchDestination: output.CloudWatchDestination !== undefined && output.CloudWatchDestination !== null
8735
+ CloudWatchDestination: output.CloudWatchDestination != null
8876
8736
  ? deserializeAws_restJson1CloudWatchDestination(output.CloudWatchDestination, context)
8877
8737
  : undefined,
8878
8738
  Enabled: __expectBoolean(output.Enabled),
8879
- KinesisFirehoseDestination: output.KinesisFirehoseDestination !== undefined && output.KinesisFirehoseDestination !== null
8739
+ KinesisFirehoseDestination: output.KinesisFirehoseDestination != null
8880
8740
  ? deserializeAws_restJson1KinesisFirehoseDestination(output.KinesisFirehoseDestination, context)
8881
8741
  : undefined,
8882
- MatchingEventTypes: output.MatchingEventTypes !== undefined && output.MatchingEventTypes !== null
8742
+ MatchingEventTypes: output.MatchingEventTypes != null
8883
8743
  ? deserializeAws_restJson1EventTypes(output.MatchingEventTypes, context)
8884
8744
  : undefined,
8885
8745
  Name: __expectString(output.Name),
8886
- PinpointDestination: output.PinpointDestination !== undefined && output.PinpointDestination !== null
8746
+ PinpointDestination: output.PinpointDestination != null
8887
8747
  ? deserializeAws_restJson1PinpointDestination(output.PinpointDestination, context)
8888
8748
  : undefined,
8889
- SnsDestination: output.SnsDestination !== undefined && output.SnsDestination !== null
8749
+ SnsDestination: output.SnsDestination != null
8890
8750
  ? deserializeAws_restJson1SnsDestination(output.SnsDestination, context)
8891
8751
  : undefined,
8892
8752
  };
@@ -8945,20 +8805,20 @@ var deserializeAws_restJson1ImportDataSource = function (output, context) {
8945
8805
  };
8946
8806
  var deserializeAws_restJson1ImportDestination = function (output, context) {
8947
8807
  return {
8948
- ContactListDestination: output.ContactListDestination !== undefined && output.ContactListDestination !== null
8808
+ ContactListDestination: output.ContactListDestination != null
8949
8809
  ? deserializeAws_restJson1ContactListDestination(output.ContactListDestination, context)
8950
8810
  : undefined,
8951
- SuppressionListDestination: output.SuppressionListDestination !== undefined && output.SuppressionListDestination !== null
8811
+ SuppressionListDestination: output.SuppressionListDestination != null
8952
8812
  ? deserializeAws_restJson1SuppressionListDestination(output.SuppressionListDestination, context)
8953
8813
  : undefined,
8954
8814
  };
8955
8815
  };
8956
8816
  var deserializeAws_restJson1ImportJobSummary = function (output, context) {
8957
8817
  return {
8958
- CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
8818
+ CreatedTimestamp: output.CreatedTimestamp != null
8959
8819
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
8960
8820
  : undefined,
8961
- ImportDestination: output.ImportDestination !== undefined && output.ImportDestination !== null
8821
+ ImportDestination: output.ImportDestination != null
8962
8822
  ? deserializeAws_restJson1ImportDestination(output.ImportDestination, context)
8963
8823
  : undefined,
8964
8824
  JobId: __expectString(output.JobId),
@@ -8979,9 +8839,7 @@ var deserializeAws_restJson1ImportJobSummaryList = function (output, context) {
8979
8839
  var deserializeAws_restJson1InboxPlacementTrackingOption = function (output, context) {
8980
8840
  return {
8981
8841
  Global: __expectBoolean(output.Global),
8982
- TrackedIsps: output.TrackedIsps !== undefined && output.TrackedIsps !== null
8983
- ? deserializeAws_restJson1IspNameList(output.TrackedIsps, context)
8984
- : undefined,
8842
+ TrackedIsps: output.TrackedIsps != null ? deserializeAws_restJson1IspNameList(output.TrackedIsps, context) : undefined,
8985
8843
  };
8986
8844
  };
8987
8845
  var deserializeAws_restJson1IpList = function (output, context) {
@@ -9009,7 +8867,7 @@ var deserializeAws_restJson1IspNameList = function (output, context) {
9009
8867
  var deserializeAws_restJson1IspPlacement = function (output, context) {
9010
8868
  return {
9011
8869
  IspName: __expectString(output.IspName),
9012
- PlacementStatistics: output.PlacementStatistics !== undefined && output.PlacementStatistics !== null
8870
+ PlacementStatistics: output.PlacementStatistics != null
9013
8871
  ? deserializeAws_restJson1PlacementStatistics(output.PlacementStatistics, context)
9014
8872
  : undefined,
9015
8873
  };
@@ -9073,11 +8931,11 @@ var deserializeAws_restJson1MailFromAttributes = function (output, context) {
9073
8931
  };
9074
8932
  var deserializeAws_restJson1OverallVolume = function (output, context) {
9075
8933
  return {
9076
- DomainIspPlacements: output.DomainIspPlacements !== undefined && output.DomainIspPlacements !== null
8934
+ DomainIspPlacements: output.DomainIspPlacements != null
9077
8935
  ? deserializeAws_restJson1DomainIspPlacements(output.DomainIspPlacements, context)
9078
8936
  : undefined,
9079
8937
  ReadRatePercent: __limitedParseDouble(output.ReadRatePercent),
9080
- VolumeStatistics: output.VolumeStatistics !== undefined && output.VolumeStatistics !== null
8938
+ VolumeStatistics: output.VolumeStatistics != null
9081
8939
  ? deserializeAws_restJson1VolumeStatistics(output.VolumeStatistics, context)
9082
8940
  : undefined,
9083
8941
  };
@@ -9108,7 +8966,7 @@ var deserializeAws_restJson1PolicyMap = function (output, context) {
9108
8966
  };
9109
8967
  var deserializeAws_restJson1ReputationOptions = function (output, context) {
9110
8968
  return {
9111
- LastFreshStart: output.LastFreshStart !== undefined && output.LastFreshStart !== null
8969
+ LastFreshStart: output.LastFreshStart != null
9112
8970
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastFreshStart)))
9113
8971
  : undefined,
9114
8972
  ReputationMetricsEnabled: __expectBoolean(output.ReputationMetricsEnabled),
@@ -9139,11 +8997,11 @@ var deserializeAws_restJson1SnsDestination = function (output, context) {
9139
8997
  };
9140
8998
  var deserializeAws_restJson1SuppressedDestination = function (output, context) {
9141
8999
  return {
9142
- Attributes: output.Attributes !== undefined && output.Attributes !== null
9000
+ Attributes: output.Attributes != null
9143
9001
  ? deserializeAws_restJson1SuppressedDestinationAttributes(output.Attributes, context)
9144
9002
  : undefined,
9145
9003
  EmailAddress: __expectString(output.EmailAddress),
9146
- LastUpdateTime: output.LastUpdateTime !== undefined && output.LastUpdateTime !== null
9004
+ LastUpdateTime: output.LastUpdateTime != null
9147
9005
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdateTime)))
9148
9006
  : undefined,
9149
9007
  Reason: __expectString(output.Reason),
@@ -9169,7 +9027,7 @@ var deserializeAws_restJson1SuppressedDestinationSummaries = function (output, c
9169
9027
  var deserializeAws_restJson1SuppressedDestinationSummary = function (output, context) {
9170
9028
  return {
9171
9029
  EmailAddress: __expectString(output.EmailAddress),
9172
- LastUpdateTime: output.LastUpdateTime !== undefined && output.LastUpdateTime !== null
9030
+ LastUpdateTime: output.LastUpdateTime != null
9173
9031
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdateTime)))
9174
9032
  : undefined,
9175
9033
  Reason: __expectString(output.Reason),
@@ -9177,7 +9035,7 @@ var deserializeAws_restJson1SuppressedDestinationSummary = function (output, con
9177
9035
  };
9178
9036
  var deserializeAws_restJson1SuppressionAttributes = function (output, context) {
9179
9037
  return {
9180
- SuppressedReasons: output.SuppressedReasons !== undefined && output.SuppressedReasons !== null
9038
+ SuppressedReasons: output.SuppressedReasons != null
9181
9039
  ? deserializeAws_restJson1SuppressionListReasons(output.SuppressedReasons, context)
9182
9040
  : undefined,
9183
9041
  };
@@ -9200,7 +9058,7 @@ var deserializeAws_restJson1SuppressionListReasons = function (output, context)
9200
9058
  };
9201
9059
  var deserializeAws_restJson1SuppressionOptions = function (output, context) {
9202
9060
  return {
9203
- SuppressedReasons: output.SuppressedReasons !== undefined && output.SuppressedReasons !== null
9061
+ SuppressedReasons: output.SuppressedReasons != null
9204
9062
  ? deserializeAws_restJson1SuppressionListReasons(output.SuppressedReasons, context)
9205
9063
  : undefined,
9206
9064
  };
@@ -9309,6 +9167,9 @@ var loadRestJsonErrorCode = function (output, data) {
9309
9167
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
9310
9168
  var sanitizeErrorCode = function (rawValue) {
9311
9169
  var cleanValue = rawValue;
9170
+ if (typeof cleanValue === "number") {
9171
+ cleanValue = cleanValue.toString();
9172
+ }
9312
9173
  if (cleanValue.indexOf(":") >= 0) {
9313
9174
  cleanValue = cleanValue.split(":")[0];
9314
9175
  }