@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.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +232 -371
- package/dist-es/protocols/Aws_restJson1.js +157 -296
- package/package.json +26 -26
|
@@ -16,28 +16,21 @@ const serializeAws_restJson1CreateConfigurationSetCommand = async (input, contex
|
|
|
16
16
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/configuration-sets";
|
|
17
17
|
let body;
|
|
18
18
|
body = JSON.stringify({
|
|
19
|
-
...(input.ConfigurationSetName
|
|
20
|
-
|
|
21
|
-
...(input.DeliveryOptions !== undefined &&
|
|
22
|
-
input.DeliveryOptions !== null && {
|
|
19
|
+
...(input.ConfigurationSetName != null && { ConfigurationSetName: input.ConfigurationSetName }),
|
|
20
|
+
...(input.DeliveryOptions != null && {
|
|
23
21
|
DeliveryOptions: serializeAws_restJson1DeliveryOptions(input.DeliveryOptions, context),
|
|
24
22
|
}),
|
|
25
|
-
...(input.ReputationOptions
|
|
26
|
-
input.ReputationOptions !== null && {
|
|
23
|
+
...(input.ReputationOptions != null && {
|
|
27
24
|
ReputationOptions: serializeAws_restJson1ReputationOptions(input.ReputationOptions, context),
|
|
28
25
|
}),
|
|
29
|
-
...(input.SendingOptions
|
|
30
|
-
input.SendingOptions !== null && {
|
|
26
|
+
...(input.SendingOptions != null && {
|
|
31
27
|
SendingOptions: serializeAws_restJson1SendingOptions(input.SendingOptions, context),
|
|
32
28
|
}),
|
|
33
|
-
...(input.SuppressionOptions
|
|
34
|
-
input.SuppressionOptions !== null && {
|
|
29
|
+
...(input.SuppressionOptions != null && {
|
|
35
30
|
SuppressionOptions: serializeAws_restJson1SuppressionOptions(input.SuppressionOptions, context),
|
|
36
31
|
}),
|
|
37
|
-
...(input.Tags
|
|
38
|
-
|
|
39
|
-
...(input.TrackingOptions !== undefined &&
|
|
40
|
-
input.TrackingOptions !== null && {
|
|
32
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
33
|
+
...(input.TrackingOptions != null && {
|
|
41
34
|
TrackingOptions: serializeAws_restJson1TrackingOptions(input.TrackingOptions, context),
|
|
42
35
|
}),
|
|
43
36
|
});
|
|
@@ -71,12 +64,10 @@ const serializeAws_restJson1CreateConfigurationSetEventDestinationCommand = asyn
|
|
|
71
64
|
}
|
|
72
65
|
let body;
|
|
73
66
|
body = JSON.stringify({
|
|
74
|
-
...(input.EventDestination
|
|
75
|
-
input.EventDestination !== null && {
|
|
67
|
+
...(input.EventDestination != null && {
|
|
76
68
|
EventDestination: serializeAws_restJson1EventDestinationDefinition(input.EventDestination, context),
|
|
77
69
|
}),
|
|
78
|
-
...(input.EventDestinationName
|
|
79
|
-
input.EventDestinationName !== null && { EventDestinationName: input.EventDestinationName }),
|
|
70
|
+
...(input.EventDestinationName != null && { EventDestinationName: input.EventDestinationName }),
|
|
80
71
|
});
|
|
81
72
|
return new protocol_http_1.HttpRequest({
|
|
82
73
|
protocol,
|
|
@@ -108,15 +99,12 @@ const serializeAws_restJson1CreateContactCommand = async (input, context) => {
|
|
|
108
99
|
}
|
|
109
100
|
let body;
|
|
110
101
|
body = JSON.stringify({
|
|
111
|
-
...(input.AttributesData
|
|
112
|
-
|
|
113
|
-
...(input.
|
|
114
|
-
...(input.TopicPreferences !== undefined &&
|
|
115
|
-
input.TopicPreferences !== null && {
|
|
102
|
+
...(input.AttributesData != null && { AttributesData: input.AttributesData }),
|
|
103
|
+
...(input.EmailAddress != null && { EmailAddress: input.EmailAddress }),
|
|
104
|
+
...(input.TopicPreferences != null && {
|
|
116
105
|
TopicPreferences: serializeAws_restJson1TopicPreferenceList(input.TopicPreferences, context),
|
|
117
106
|
}),
|
|
118
|
-
...(input.UnsubscribeAll
|
|
119
|
-
input.UnsubscribeAll !== null && { UnsubscribeAll: input.UnsubscribeAll }),
|
|
107
|
+
...(input.UnsubscribeAll != null && { UnsubscribeAll: input.UnsubscribeAll }),
|
|
120
108
|
});
|
|
121
109
|
return new protocol_http_1.HttpRequest({
|
|
122
110
|
protocol,
|
|
@@ -137,13 +125,10 @@ const serializeAws_restJson1CreateContactListCommand = async (input, context) =>
|
|
|
137
125
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/contact-lists";
|
|
138
126
|
let body;
|
|
139
127
|
body = JSON.stringify({
|
|
140
|
-
...(input.ContactListName
|
|
141
|
-
|
|
142
|
-
...(input.
|
|
143
|
-
...(input.
|
|
144
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
145
|
-
...(input.Topics !== undefined &&
|
|
146
|
-
input.Topics !== null && { Topics: serializeAws_restJson1Topics(input.Topics, context) }),
|
|
128
|
+
...(input.ContactListName != null && { ContactListName: input.ContactListName }),
|
|
129
|
+
...(input.Description != null && { Description: input.Description }),
|
|
130
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
131
|
+
...(input.Topics != null && { Topics: serializeAws_restJson1Topics(input.Topics, context) }),
|
|
147
132
|
});
|
|
148
133
|
return new protocol_http_1.HttpRequest({
|
|
149
134
|
protocol,
|
|
@@ -165,17 +150,12 @@ const serializeAws_restJson1CreateCustomVerificationEmailTemplateCommand = async
|
|
|
165
150
|
"/v2/email/custom-verification-email-templates";
|
|
166
151
|
let body;
|
|
167
152
|
body = JSON.stringify({
|
|
168
|
-
...(input.FailureRedirectionURL
|
|
169
|
-
|
|
170
|
-
...(input.
|
|
171
|
-
|
|
172
|
-
...(input.
|
|
173
|
-
|
|
174
|
-
...(input.TemplateContent !== undefined &&
|
|
175
|
-
input.TemplateContent !== null && { TemplateContent: input.TemplateContent }),
|
|
176
|
-
...(input.TemplateName !== undefined && input.TemplateName !== null && { TemplateName: input.TemplateName }),
|
|
177
|
-
...(input.TemplateSubject !== undefined &&
|
|
178
|
-
input.TemplateSubject !== null && { TemplateSubject: input.TemplateSubject }),
|
|
153
|
+
...(input.FailureRedirectionURL != null && { FailureRedirectionURL: input.FailureRedirectionURL }),
|
|
154
|
+
...(input.FromEmailAddress != null && { FromEmailAddress: input.FromEmailAddress }),
|
|
155
|
+
...(input.SuccessRedirectionURL != null && { SuccessRedirectionURL: input.SuccessRedirectionURL }),
|
|
156
|
+
...(input.TemplateContent != null && { TemplateContent: input.TemplateContent }),
|
|
157
|
+
...(input.TemplateName != null && { TemplateName: input.TemplateName }),
|
|
158
|
+
...(input.TemplateSubject != null && { TemplateSubject: input.TemplateSubject }),
|
|
179
159
|
});
|
|
180
160
|
return new protocol_http_1.HttpRequest({
|
|
181
161
|
protocol,
|
|
@@ -196,9 +176,8 @@ const serializeAws_restJson1CreateDedicatedIpPoolCommand = async (input, context
|
|
|
196
176
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/dedicated-ip-pools";
|
|
197
177
|
let body;
|
|
198
178
|
body = JSON.stringify({
|
|
199
|
-
...(input.PoolName
|
|
200
|
-
...(input.Tags
|
|
201
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
179
|
+
...(input.PoolName != null && { PoolName: input.PoolName }),
|
|
180
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
202
181
|
});
|
|
203
182
|
return new protocol_http_1.HttpRequest({
|
|
204
183
|
protocol,
|
|
@@ -219,13 +198,10 @@ const serializeAws_restJson1CreateDeliverabilityTestReportCommand = async (input
|
|
|
219
198
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/deliverability-dashboard/test";
|
|
220
199
|
let body;
|
|
221
200
|
body = JSON.stringify({
|
|
222
|
-
...(input.Content
|
|
223
|
-
|
|
224
|
-
...(input.
|
|
225
|
-
|
|
226
|
-
...(input.ReportName !== undefined && input.ReportName !== null && { ReportName: input.ReportName }),
|
|
227
|
-
...(input.Tags !== undefined &&
|
|
228
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
201
|
+
...(input.Content != null && { Content: serializeAws_restJson1EmailContent(input.Content, context) }),
|
|
202
|
+
...(input.FromEmailAddress != null && { FromEmailAddress: input.FromEmailAddress }),
|
|
203
|
+
...(input.ReportName != null && { ReportName: input.ReportName }),
|
|
204
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
229
205
|
});
|
|
230
206
|
return new protocol_http_1.HttpRequest({
|
|
231
207
|
protocol,
|
|
@@ -246,15 +222,12 @@ const serializeAws_restJson1CreateEmailIdentityCommand = async (input, context)
|
|
|
246
222
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/identities";
|
|
247
223
|
let body;
|
|
248
224
|
body = JSON.stringify({
|
|
249
|
-
...(input.ConfigurationSetName
|
|
250
|
-
|
|
251
|
-
...(input.DkimSigningAttributes !== undefined &&
|
|
252
|
-
input.DkimSigningAttributes !== null && {
|
|
225
|
+
...(input.ConfigurationSetName != null && { ConfigurationSetName: input.ConfigurationSetName }),
|
|
226
|
+
...(input.DkimSigningAttributes != null && {
|
|
253
227
|
DkimSigningAttributes: serializeAws_restJson1DkimSigningAttributes(input.DkimSigningAttributes, context),
|
|
254
228
|
}),
|
|
255
|
-
...(input.EmailIdentity
|
|
256
|
-
...(input.Tags
|
|
257
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
229
|
+
...(input.EmailIdentity != null && { EmailIdentity: input.EmailIdentity }),
|
|
230
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
258
231
|
});
|
|
259
232
|
return new protocol_http_1.HttpRequest({
|
|
260
233
|
protocol,
|
|
@@ -296,7 +269,7 @@ const serializeAws_restJson1CreateEmailIdentityPolicyCommand = async (input, con
|
|
|
296
269
|
}
|
|
297
270
|
let body;
|
|
298
271
|
body = JSON.stringify({
|
|
299
|
-
...(input.Policy
|
|
272
|
+
...(input.Policy != null && { Policy: input.Policy }),
|
|
300
273
|
});
|
|
301
274
|
return new protocol_http_1.HttpRequest({
|
|
302
275
|
protocol,
|
|
@@ -317,11 +290,10 @@ const serializeAws_restJson1CreateEmailTemplateCommand = async (input, context)
|
|
|
317
290
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/templates";
|
|
318
291
|
let body;
|
|
319
292
|
body = JSON.stringify({
|
|
320
|
-
...(input.TemplateContent
|
|
321
|
-
input.TemplateContent !== null && {
|
|
293
|
+
...(input.TemplateContent != null && {
|
|
322
294
|
TemplateContent: serializeAws_restJson1EmailTemplateContent(input.TemplateContent, context),
|
|
323
295
|
}),
|
|
324
|
-
...(input.TemplateName
|
|
296
|
+
...(input.TemplateName != null && { TemplateName: input.TemplateName }),
|
|
325
297
|
});
|
|
326
298
|
return new protocol_http_1.HttpRequest({
|
|
327
299
|
protocol,
|
|
@@ -342,12 +314,10 @@ const serializeAws_restJson1CreateImportJobCommand = async (input, context) => {
|
|
|
342
314
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/import-jobs";
|
|
343
315
|
let body;
|
|
344
316
|
body = JSON.stringify({
|
|
345
|
-
...(input.ImportDataSource
|
|
346
|
-
input.ImportDataSource !== null && {
|
|
317
|
+
...(input.ImportDataSource != null && {
|
|
347
318
|
ImportDataSource: serializeAws_restJson1ImportDataSource(input.ImportDataSource, context),
|
|
348
319
|
}),
|
|
349
|
-
...(input.ImportDestination
|
|
350
|
-
input.ImportDestination !== null && {
|
|
320
|
+
...(input.ImportDestination != null && {
|
|
351
321
|
ImportDestination: serializeAws_restJson1ImportDestination(input.ImportDestination, context),
|
|
352
322
|
}),
|
|
353
323
|
});
|
|
@@ -1194,8 +1164,7 @@ const serializeAws_restJson1ListContactsCommand = async (input, context) => {
|
|
|
1194
1164
|
};
|
|
1195
1165
|
let body;
|
|
1196
1166
|
body = JSON.stringify({
|
|
1197
|
-
...(input.Filter
|
|
1198
|
-
input.Filter !== null && { Filter: serializeAws_restJson1ListContactsFilter(input.Filter, context) }),
|
|
1167
|
+
...(input.Filter != null && { Filter: serializeAws_restJson1ListContactsFilter(input.Filter, context) }),
|
|
1199
1168
|
});
|
|
1200
1169
|
return new protocol_http_1.HttpRequest({
|
|
1201
1170
|
protocol,
|
|
@@ -1362,8 +1331,7 @@ const serializeAws_restJson1ListImportJobsCommand = async (input, context) => {
|
|
|
1362
1331
|
};
|
|
1363
1332
|
let body;
|
|
1364
1333
|
body = JSON.stringify({
|
|
1365
|
-
...(input.ImportDestinationType
|
|
1366
|
-
input.ImportDestinationType !== null && { ImportDestinationType: input.ImportDestinationType }),
|
|
1334
|
+
...(input.ImportDestinationType != null && { ImportDestinationType: input.ImportDestinationType }),
|
|
1367
1335
|
});
|
|
1368
1336
|
return new protocol_http_1.HttpRequest({
|
|
1369
1337
|
protocol,
|
|
@@ -1429,8 +1397,7 @@ const serializeAws_restJson1PutAccountDedicatedIpWarmupAttributesCommand = async
|
|
|
1429
1397
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/account/dedicated-ips/warmup";
|
|
1430
1398
|
let body;
|
|
1431
1399
|
body = JSON.stringify({
|
|
1432
|
-
...(input.AutoWarmupEnabled
|
|
1433
|
-
input.AutoWarmupEnabled !== null && { AutoWarmupEnabled: input.AutoWarmupEnabled }),
|
|
1400
|
+
...(input.AutoWarmupEnabled != null && { AutoWarmupEnabled: input.AutoWarmupEnabled }),
|
|
1434
1401
|
});
|
|
1435
1402
|
return new protocol_http_1.HttpRequest({
|
|
1436
1403
|
protocol,
|
|
@@ -1451,18 +1418,14 @@ const serializeAws_restJson1PutAccountDetailsCommand = async (input, context) =>
|
|
|
1451
1418
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/account/details";
|
|
1452
1419
|
let body;
|
|
1453
1420
|
body = JSON.stringify({
|
|
1454
|
-
...(input.AdditionalContactEmailAddresses
|
|
1455
|
-
input.AdditionalContactEmailAddresses !== null && {
|
|
1421
|
+
...(input.AdditionalContactEmailAddresses != null && {
|
|
1456
1422
|
AdditionalContactEmailAddresses: serializeAws_restJson1AdditionalContactEmailAddresses(input.AdditionalContactEmailAddresses, context),
|
|
1457
1423
|
}),
|
|
1458
|
-
...(input.ContactLanguage
|
|
1459
|
-
|
|
1460
|
-
...(input.
|
|
1461
|
-
...(input.
|
|
1462
|
-
|
|
1463
|
-
...(input.UseCaseDescription !== undefined &&
|
|
1464
|
-
input.UseCaseDescription !== null && { UseCaseDescription: input.UseCaseDescription }),
|
|
1465
|
-
...(input.WebsiteURL !== undefined && input.WebsiteURL !== null && { WebsiteURL: input.WebsiteURL }),
|
|
1424
|
+
...(input.ContactLanguage != null && { ContactLanguage: input.ContactLanguage }),
|
|
1425
|
+
...(input.MailType != null && { MailType: input.MailType }),
|
|
1426
|
+
...(input.ProductionAccessEnabled != null && { ProductionAccessEnabled: input.ProductionAccessEnabled }),
|
|
1427
|
+
...(input.UseCaseDescription != null && { UseCaseDescription: input.UseCaseDescription }),
|
|
1428
|
+
...(input.WebsiteURL != null && { WebsiteURL: input.WebsiteURL }),
|
|
1466
1429
|
});
|
|
1467
1430
|
return new protocol_http_1.HttpRequest({
|
|
1468
1431
|
protocol,
|
|
@@ -1483,8 +1446,7 @@ const serializeAws_restJson1PutAccountSendingAttributesCommand = async (input, c
|
|
|
1483
1446
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/account/sending";
|
|
1484
1447
|
let body;
|
|
1485
1448
|
body = JSON.stringify({
|
|
1486
|
-
...(input.SendingEnabled
|
|
1487
|
-
input.SendingEnabled !== null && { SendingEnabled: input.SendingEnabled }),
|
|
1449
|
+
...(input.SendingEnabled != null && { SendingEnabled: input.SendingEnabled }),
|
|
1488
1450
|
});
|
|
1489
1451
|
return new protocol_http_1.HttpRequest({
|
|
1490
1452
|
protocol,
|
|
@@ -1505,8 +1467,7 @@ const serializeAws_restJson1PutAccountSuppressionAttributesCommand = async (inpu
|
|
|
1505
1467
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/account/suppression";
|
|
1506
1468
|
let body;
|
|
1507
1469
|
body = JSON.stringify({
|
|
1508
|
-
...(input.SuppressedReasons
|
|
1509
|
-
input.SuppressedReasons !== null && {
|
|
1470
|
+
...(input.SuppressedReasons != null && {
|
|
1510
1471
|
SuppressedReasons: serializeAws_restJson1SuppressionListReasons(input.SuppressedReasons, context),
|
|
1511
1472
|
}),
|
|
1512
1473
|
});
|
|
@@ -1540,9 +1501,8 @@ const serializeAws_restJson1PutConfigurationSetDeliveryOptionsCommand = async (i
|
|
|
1540
1501
|
}
|
|
1541
1502
|
let body;
|
|
1542
1503
|
body = JSON.stringify({
|
|
1543
|
-
...(input.SendingPoolName
|
|
1544
|
-
|
|
1545
|
-
...(input.TlsPolicy !== undefined && input.TlsPolicy !== null && { TlsPolicy: input.TlsPolicy }),
|
|
1504
|
+
...(input.SendingPoolName != null && { SendingPoolName: input.SendingPoolName }),
|
|
1505
|
+
...(input.TlsPolicy != null && { TlsPolicy: input.TlsPolicy }),
|
|
1546
1506
|
});
|
|
1547
1507
|
return new protocol_http_1.HttpRequest({
|
|
1548
1508
|
protocol,
|
|
@@ -1574,8 +1534,7 @@ const serializeAws_restJson1PutConfigurationSetReputationOptionsCommand = async
|
|
|
1574
1534
|
}
|
|
1575
1535
|
let body;
|
|
1576
1536
|
body = JSON.stringify({
|
|
1577
|
-
...(input.ReputationMetricsEnabled
|
|
1578
|
-
input.ReputationMetricsEnabled !== null && { ReputationMetricsEnabled: input.ReputationMetricsEnabled }),
|
|
1537
|
+
...(input.ReputationMetricsEnabled != null && { ReputationMetricsEnabled: input.ReputationMetricsEnabled }),
|
|
1579
1538
|
});
|
|
1580
1539
|
return new protocol_http_1.HttpRequest({
|
|
1581
1540
|
protocol,
|
|
@@ -1607,8 +1566,7 @@ const serializeAws_restJson1PutConfigurationSetSendingOptionsCommand = async (in
|
|
|
1607
1566
|
}
|
|
1608
1567
|
let body;
|
|
1609
1568
|
body = JSON.stringify({
|
|
1610
|
-
...(input.SendingEnabled
|
|
1611
|
-
input.SendingEnabled !== null && { SendingEnabled: input.SendingEnabled }),
|
|
1569
|
+
...(input.SendingEnabled != null && { SendingEnabled: input.SendingEnabled }),
|
|
1612
1570
|
});
|
|
1613
1571
|
return new protocol_http_1.HttpRequest({
|
|
1614
1572
|
protocol,
|
|
@@ -1640,8 +1598,7 @@ const serializeAws_restJson1PutConfigurationSetSuppressionOptionsCommand = async
|
|
|
1640
1598
|
}
|
|
1641
1599
|
let body;
|
|
1642
1600
|
body = JSON.stringify({
|
|
1643
|
-
...(input.SuppressedReasons
|
|
1644
|
-
input.SuppressedReasons !== null && {
|
|
1601
|
+
...(input.SuppressedReasons != null && {
|
|
1645
1602
|
SuppressedReasons: serializeAws_restJson1SuppressionListReasons(input.SuppressedReasons, context),
|
|
1646
1603
|
}),
|
|
1647
1604
|
});
|
|
@@ -1675,8 +1632,7 @@ const serializeAws_restJson1PutConfigurationSetTrackingOptionsCommand = async (i
|
|
|
1675
1632
|
}
|
|
1676
1633
|
let body;
|
|
1677
1634
|
body = JSON.stringify({
|
|
1678
|
-
...(input.CustomRedirectDomain
|
|
1679
|
-
input.CustomRedirectDomain !== null && { CustomRedirectDomain: input.CustomRedirectDomain }),
|
|
1635
|
+
...(input.CustomRedirectDomain != null && { CustomRedirectDomain: input.CustomRedirectDomain }),
|
|
1680
1636
|
});
|
|
1681
1637
|
return new protocol_http_1.HttpRequest({
|
|
1682
1638
|
protocol,
|
|
@@ -1707,8 +1663,7 @@ const serializeAws_restJson1PutDedicatedIpInPoolCommand = async (input, context)
|
|
|
1707
1663
|
}
|
|
1708
1664
|
let body;
|
|
1709
1665
|
body = JSON.stringify({
|
|
1710
|
-
...(input.DestinationPoolName
|
|
1711
|
-
input.DestinationPoolName !== null && { DestinationPoolName: input.DestinationPoolName }),
|
|
1666
|
+
...(input.DestinationPoolName != null && { DestinationPoolName: input.DestinationPoolName }),
|
|
1712
1667
|
});
|
|
1713
1668
|
return new protocol_http_1.HttpRequest({
|
|
1714
1669
|
protocol,
|
|
@@ -1739,8 +1694,7 @@ const serializeAws_restJson1PutDedicatedIpWarmupAttributesCommand = async (input
|
|
|
1739
1694
|
}
|
|
1740
1695
|
let body;
|
|
1741
1696
|
body = JSON.stringify({
|
|
1742
|
-
...(input.WarmupPercentage
|
|
1743
|
-
input.WarmupPercentage !== null && { WarmupPercentage: input.WarmupPercentage }),
|
|
1697
|
+
...(input.WarmupPercentage != null && { WarmupPercentage: input.WarmupPercentage }),
|
|
1744
1698
|
});
|
|
1745
1699
|
return new protocol_http_1.HttpRequest({
|
|
1746
1700
|
protocol,
|
|
@@ -1761,10 +1715,8 @@ const serializeAws_restJson1PutDeliverabilityDashboardOptionCommand = async (inp
|
|
|
1761
1715
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/deliverability-dashboard";
|
|
1762
1716
|
let body;
|
|
1763
1717
|
body = JSON.stringify({
|
|
1764
|
-
...(input.DashboardEnabled
|
|
1765
|
-
|
|
1766
|
-
...(input.SubscribedDomains !== undefined &&
|
|
1767
|
-
input.SubscribedDomains !== null && {
|
|
1718
|
+
...(input.DashboardEnabled != null && { DashboardEnabled: input.DashboardEnabled }),
|
|
1719
|
+
...(input.SubscribedDomains != null && {
|
|
1768
1720
|
SubscribedDomains: serializeAws_restJson1DomainDeliverabilityTrackingOptions(input.SubscribedDomains, context),
|
|
1769
1721
|
}),
|
|
1770
1722
|
});
|
|
@@ -1798,8 +1750,7 @@ const serializeAws_restJson1PutEmailIdentityConfigurationSetAttributesCommand =
|
|
|
1798
1750
|
}
|
|
1799
1751
|
let body;
|
|
1800
1752
|
body = JSON.stringify({
|
|
1801
|
-
...(input.ConfigurationSetName
|
|
1802
|
-
input.ConfigurationSetName !== null && { ConfigurationSetName: input.ConfigurationSetName }),
|
|
1753
|
+
...(input.ConfigurationSetName != null && { ConfigurationSetName: input.ConfigurationSetName }),
|
|
1803
1754
|
});
|
|
1804
1755
|
return new protocol_http_1.HttpRequest({
|
|
1805
1756
|
protocol,
|
|
@@ -1830,8 +1781,7 @@ const serializeAws_restJson1PutEmailIdentityDkimAttributesCommand = async (input
|
|
|
1830
1781
|
}
|
|
1831
1782
|
let body;
|
|
1832
1783
|
body = JSON.stringify({
|
|
1833
|
-
...(input.SigningEnabled
|
|
1834
|
-
input.SigningEnabled !== null && { SigningEnabled: input.SigningEnabled }),
|
|
1784
|
+
...(input.SigningEnabled != null && { SigningEnabled: input.SigningEnabled }),
|
|
1835
1785
|
});
|
|
1836
1786
|
return new protocol_http_1.HttpRequest({
|
|
1837
1787
|
protocol,
|
|
@@ -1863,12 +1813,10 @@ const serializeAws_restJson1PutEmailIdentityDkimSigningAttributesCommand = async
|
|
|
1863
1813
|
}
|
|
1864
1814
|
let body;
|
|
1865
1815
|
body = JSON.stringify({
|
|
1866
|
-
...(input.SigningAttributes
|
|
1867
|
-
input.SigningAttributes !== null && {
|
|
1816
|
+
...(input.SigningAttributes != null && {
|
|
1868
1817
|
SigningAttributes: serializeAws_restJson1DkimSigningAttributes(input.SigningAttributes, context),
|
|
1869
1818
|
}),
|
|
1870
|
-
...(input.SigningAttributesOrigin
|
|
1871
|
-
input.SigningAttributesOrigin !== null && { SigningAttributesOrigin: input.SigningAttributesOrigin }),
|
|
1819
|
+
...(input.SigningAttributesOrigin != null && { SigningAttributesOrigin: input.SigningAttributesOrigin }),
|
|
1872
1820
|
});
|
|
1873
1821
|
return new protocol_http_1.HttpRequest({
|
|
1874
1822
|
protocol,
|
|
@@ -1900,8 +1848,7 @@ const serializeAws_restJson1PutEmailIdentityFeedbackAttributesCommand = async (i
|
|
|
1900
1848
|
}
|
|
1901
1849
|
let body;
|
|
1902
1850
|
body = JSON.stringify({
|
|
1903
|
-
...(input.EmailForwardingEnabled
|
|
1904
|
-
input.EmailForwardingEnabled !== null && { EmailForwardingEnabled: input.EmailForwardingEnabled }),
|
|
1851
|
+
...(input.EmailForwardingEnabled != null && { EmailForwardingEnabled: input.EmailForwardingEnabled }),
|
|
1905
1852
|
});
|
|
1906
1853
|
return new protocol_http_1.HttpRequest({
|
|
1907
1854
|
protocol,
|
|
@@ -1933,10 +1880,8 @@ const serializeAws_restJson1PutEmailIdentityMailFromAttributesCommand = async (i
|
|
|
1933
1880
|
}
|
|
1934
1881
|
let body;
|
|
1935
1882
|
body = JSON.stringify({
|
|
1936
|
-
...(input.BehaviorOnMxFailure
|
|
1937
|
-
|
|
1938
|
-
...(input.MailFromDomain !== undefined &&
|
|
1939
|
-
input.MailFromDomain !== null && { MailFromDomain: input.MailFromDomain }),
|
|
1883
|
+
...(input.BehaviorOnMxFailure != null && { BehaviorOnMxFailure: input.BehaviorOnMxFailure }),
|
|
1884
|
+
...(input.MailFromDomain != null && { MailFromDomain: input.MailFromDomain }),
|
|
1940
1885
|
});
|
|
1941
1886
|
return new protocol_http_1.HttpRequest({
|
|
1942
1887
|
protocol,
|
|
@@ -1957,8 +1902,8 @@ const serializeAws_restJson1PutSuppressedDestinationCommand = async (input, cont
|
|
|
1957
1902
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/suppression/addresses";
|
|
1958
1903
|
let body;
|
|
1959
1904
|
body = JSON.stringify({
|
|
1960
|
-
...(input.EmailAddress
|
|
1961
|
-
...(input.Reason
|
|
1905
|
+
...(input.EmailAddress != null && { EmailAddress: input.EmailAddress }),
|
|
1906
|
+
...(input.Reason != null && { Reason: input.Reason }),
|
|
1962
1907
|
});
|
|
1963
1908
|
return new protocol_http_1.HttpRequest({
|
|
1964
1909
|
protocol,
|
|
@@ -1979,34 +1924,27 @@ const serializeAws_restJson1SendBulkEmailCommand = async (input, context) => {
|
|
|
1979
1924
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/outbound-bulk-emails";
|
|
1980
1925
|
let body;
|
|
1981
1926
|
body = JSON.stringify({
|
|
1982
|
-
...(input.BulkEmailEntries
|
|
1983
|
-
input.BulkEmailEntries !== null && {
|
|
1927
|
+
...(input.BulkEmailEntries != null && {
|
|
1984
1928
|
BulkEmailEntries: serializeAws_restJson1BulkEmailEntryList(input.BulkEmailEntries, context),
|
|
1985
1929
|
}),
|
|
1986
|
-
...(input.ConfigurationSetName
|
|
1987
|
-
|
|
1988
|
-
...(input.DefaultContent !== undefined &&
|
|
1989
|
-
input.DefaultContent !== null && {
|
|
1930
|
+
...(input.ConfigurationSetName != null && { ConfigurationSetName: input.ConfigurationSetName }),
|
|
1931
|
+
...(input.DefaultContent != null && {
|
|
1990
1932
|
DefaultContent: serializeAws_restJson1BulkEmailContent(input.DefaultContent, context),
|
|
1991
1933
|
}),
|
|
1992
|
-
...(input.DefaultEmailTags
|
|
1993
|
-
input.DefaultEmailTags !== null && {
|
|
1934
|
+
...(input.DefaultEmailTags != null && {
|
|
1994
1935
|
DefaultEmailTags: serializeAws_restJson1MessageTagList(input.DefaultEmailTags, context),
|
|
1995
1936
|
}),
|
|
1996
|
-
...(input.FeedbackForwardingEmailAddress
|
|
1997
|
-
input.FeedbackForwardingEmailAddress !== null && {
|
|
1937
|
+
...(input.FeedbackForwardingEmailAddress != null && {
|
|
1998
1938
|
FeedbackForwardingEmailAddress: input.FeedbackForwardingEmailAddress,
|
|
1999
1939
|
}),
|
|
2000
|
-
...(input.FeedbackForwardingEmailAddressIdentityArn
|
|
2001
|
-
input.FeedbackForwardingEmailAddressIdentityArn !== null && {
|
|
1940
|
+
...(input.FeedbackForwardingEmailAddressIdentityArn != null && {
|
|
2002
1941
|
FeedbackForwardingEmailAddressIdentityArn: input.FeedbackForwardingEmailAddressIdentityArn,
|
|
2003
1942
|
}),
|
|
2004
|
-
...(input.FromEmailAddress
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
...(input.ReplyToAddresses
|
|
2009
|
-
input.ReplyToAddresses !== null && {
|
|
1943
|
+
...(input.FromEmailAddress != null && { FromEmailAddress: input.FromEmailAddress }),
|
|
1944
|
+
...(input.FromEmailAddressIdentityArn != null && {
|
|
1945
|
+
FromEmailAddressIdentityArn: input.FromEmailAddressIdentityArn,
|
|
1946
|
+
}),
|
|
1947
|
+
...(input.ReplyToAddresses != null && {
|
|
2010
1948
|
ReplyToAddresses: serializeAws_restJson1EmailAddressList(input.ReplyToAddresses, context),
|
|
2011
1949
|
}),
|
|
2012
1950
|
});
|
|
@@ -2030,10 +1968,9 @@ const serializeAws_restJson1SendCustomVerificationEmailCommand = async (input, c
|
|
|
2030
1968
|
"/v2/email/outbound-custom-verification-emails";
|
|
2031
1969
|
let body;
|
|
2032
1970
|
body = JSON.stringify({
|
|
2033
|
-
...(input.ConfigurationSetName
|
|
2034
|
-
|
|
2035
|
-
...(input.
|
|
2036
|
-
...(input.TemplateName !== undefined && input.TemplateName !== null && { TemplateName: input.TemplateName }),
|
|
1971
|
+
...(input.ConfigurationSetName != null && { ConfigurationSetName: input.ConfigurationSetName }),
|
|
1972
|
+
...(input.EmailAddress != null && { EmailAddress: input.EmailAddress }),
|
|
1973
|
+
...(input.TemplateName != null && { TemplateName: input.TemplateName }),
|
|
2037
1974
|
});
|
|
2038
1975
|
return new protocol_http_1.HttpRequest({
|
|
2039
1976
|
protocol,
|
|
@@ -2054,32 +1991,24 @@ const serializeAws_restJson1SendEmailCommand = async (input, context) => {
|
|
|
2054
1991
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/outbound-emails";
|
|
2055
1992
|
let body;
|
|
2056
1993
|
body = JSON.stringify({
|
|
2057
|
-
...(input.ConfigurationSetName
|
|
2058
|
-
|
|
2059
|
-
...(input.
|
|
2060
|
-
|
|
2061
|
-
...(input.
|
|
2062
|
-
input.Destination !== null && { Destination: serializeAws_restJson1Destination(input.Destination, context) }),
|
|
2063
|
-
...(input.EmailTags !== undefined &&
|
|
2064
|
-
input.EmailTags !== null && { EmailTags: serializeAws_restJson1MessageTagList(input.EmailTags, context) }),
|
|
2065
|
-
...(input.FeedbackForwardingEmailAddress !== undefined &&
|
|
2066
|
-
input.FeedbackForwardingEmailAddress !== null && {
|
|
1994
|
+
...(input.ConfigurationSetName != null && { ConfigurationSetName: input.ConfigurationSetName }),
|
|
1995
|
+
...(input.Content != null && { Content: serializeAws_restJson1EmailContent(input.Content, context) }),
|
|
1996
|
+
...(input.Destination != null && { Destination: serializeAws_restJson1Destination(input.Destination, context) }),
|
|
1997
|
+
...(input.EmailTags != null && { EmailTags: serializeAws_restJson1MessageTagList(input.EmailTags, context) }),
|
|
1998
|
+
...(input.FeedbackForwardingEmailAddress != null && {
|
|
2067
1999
|
FeedbackForwardingEmailAddress: input.FeedbackForwardingEmailAddress,
|
|
2068
2000
|
}),
|
|
2069
|
-
...(input.FeedbackForwardingEmailAddressIdentityArn
|
|
2070
|
-
input.FeedbackForwardingEmailAddressIdentityArn !== null && {
|
|
2001
|
+
...(input.FeedbackForwardingEmailAddressIdentityArn != null && {
|
|
2071
2002
|
FeedbackForwardingEmailAddressIdentityArn: input.FeedbackForwardingEmailAddressIdentityArn,
|
|
2072
2003
|
}),
|
|
2073
|
-
...(input.FromEmailAddress
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
...(input.ListManagementOptions
|
|
2078
|
-
input.ListManagementOptions !== null && {
|
|
2004
|
+
...(input.FromEmailAddress != null && { FromEmailAddress: input.FromEmailAddress }),
|
|
2005
|
+
...(input.FromEmailAddressIdentityArn != null && {
|
|
2006
|
+
FromEmailAddressIdentityArn: input.FromEmailAddressIdentityArn,
|
|
2007
|
+
}),
|
|
2008
|
+
...(input.ListManagementOptions != null && {
|
|
2079
2009
|
ListManagementOptions: serializeAws_restJson1ListManagementOptions(input.ListManagementOptions, context),
|
|
2080
2010
|
}),
|
|
2081
|
-
...(input.ReplyToAddresses
|
|
2082
|
-
input.ReplyToAddresses !== null && {
|
|
2011
|
+
...(input.ReplyToAddresses != null && {
|
|
2083
2012
|
ReplyToAddresses: serializeAws_restJson1EmailAddressList(input.ReplyToAddresses, context),
|
|
2084
2013
|
}),
|
|
2085
2014
|
});
|
|
@@ -2102,9 +2031,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
2102
2031
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/tags";
|
|
2103
2032
|
let body;
|
|
2104
2033
|
body = JSON.stringify({
|
|
2105
|
-
...(input.ResourceArn
|
|
2106
|
-
...(input.Tags
|
|
2107
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
2034
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2035
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
2108
2036
|
});
|
|
2109
2037
|
return new protocol_http_1.HttpRequest({
|
|
2110
2038
|
protocol,
|
|
@@ -2135,7 +2063,7 @@ const serializeAws_restJson1TestRenderEmailTemplateCommand = async (input, conte
|
|
|
2135
2063
|
}
|
|
2136
2064
|
let body;
|
|
2137
2065
|
body = JSON.stringify({
|
|
2138
|
-
...(input.TemplateData
|
|
2066
|
+
...(input.TemplateData != null && { TemplateData: input.TemplateData }),
|
|
2139
2067
|
});
|
|
2140
2068
|
return new protocol_http_1.HttpRequest({
|
|
2141
2069
|
protocol,
|
|
@@ -2198,8 +2126,7 @@ const serializeAws_restJson1UpdateConfigurationSetEventDestinationCommand = asyn
|
|
|
2198
2126
|
}
|
|
2199
2127
|
let body;
|
|
2200
2128
|
body = JSON.stringify({
|
|
2201
|
-
...(input.EventDestination
|
|
2202
|
-
input.EventDestination !== null && {
|
|
2129
|
+
...(input.EventDestination != null && {
|
|
2203
2130
|
EventDestination: serializeAws_restJson1EventDestinationDefinition(input.EventDestination, context),
|
|
2204
2131
|
}),
|
|
2205
2132
|
});
|
|
@@ -2243,14 +2170,11 @@ const serializeAws_restJson1UpdateContactCommand = async (input, context) => {
|
|
|
2243
2170
|
}
|
|
2244
2171
|
let body;
|
|
2245
2172
|
body = JSON.stringify({
|
|
2246
|
-
...(input.AttributesData
|
|
2247
|
-
|
|
2248
|
-
...(input.TopicPreferences !== undefined &&
|
|
2249
|
-
input.TopicPreferences !== null && {
|
|
2173
|
+
...(input.AttributesData != null && { AttributesData: input.AttributesData }),
|
|
2174
|
+
...(input.TopicPreferences != null && {
|
|
2250
2175
|
TopicPreferences: serializeAws_restJson1TopicPreferenceList(input.TopicPreferences, context),
|
|
2251
2176
|
}),
|
|
2252
|
-
...(input.UnsubscribeAll
|
|
2253
|
-
input.UnsubscribeAll !== null && { UnsubscribeAll: input.UnsubscribeAll }),
|
|
2177
|
+
...(input.UnsubscribeAll != null && { UnsubscribeAll: input.UnsubscribeAll }),
|
|
2254
2178
|
});
|
|
2255
2179
|
return new protocol_http_1.HttpRequest({
|
|
2256
2180
|
protocol,
|
|
@@ -2281,9 +2205,8 @@ const serializeAws_restJson1UpdateContactListCommand = async (input, context) =>
|
|
|
2281
2205
|
}
|
|
2282
2206
|
let body;
|
|
2283
2207
|
body = JSON.stringify({
|
|
2284
|
-
...(input.Description
|
|
2285
|
-
...(input.Topics
|
|
2286
|
-
input.Topics !== null && { Topics: serializeAws_restJson1Topics(input.Topics, context) }),
|
|
2208
|
+
...(input.Description != null && { Description: input.Description }),
|
|
2209
|
+
...(input.Topics != null && { Topics: serializeAws_restJson1Topics(input.Topics, context) }),
|
|
2287
2210
|
});
|
|
2288
2211
|
return new protocol_http_1.HttpRequest({
|
|
2289
2212
|
protocol,
|
|
@@ -2315,16 +2238,11 @@ const serializeAws_restJson1UpdateCustomVerificationEmailTemplateCommand = async
|
|
|
2315
2238
|
}
|
|
2316
2239
|
let body;
|
|
2317
2240
|
body = JSON.stringify({
|
|
2318
|
-
...(input.FailureRedirectionURL
|
|
2319
|
-
|
|
2320
|
-
...(input.
|
|
2321
|
-
|
|
2322
|
-
...(input.
|
|
2323
|
-
input.SuccessRedirectionURL !== null && { SuccessRedirectionURL: input.SuccessRedirectionURL }),
|
|
2324
|
-
...(input.TemplateContent !== undefined &&
|
|
2325
|
-
input.TemplateContent !== null && { TemplateContent: input.TemplateContent }),
|
|
2326
|
-
...(input.TemplateSubject !== undefined &&
|
|
2327
|
-
input.TemplateSubject !== null && { TemplateSubject: input.TemplateSubject }),
|
|
2241
|
+
...(input.FailureRedirectionURL != null && { FailureRedirectionURL: input.FailureRedirectionURL }),
|
|
2242
|
+
...(input.FromEmailAddress != null && { FromEmailAddress: input.FromEmailAddress }),
|
|
2243
|
+
...(input.SuccessRedirectionURL != null && { SuccessRedirectionURL: input.SuccessRedirectionURL }),
|
|
2244
|
+
...(input.TemplateContent != null && { TemplateContent: input.TemplateContent }),
|
|
2245
|
+
...(input.TemplateSubject != null && { TemplateSubject: input.TemplateSubject }),
|
|
2328
2246
|
});
|
|
2329
2247
|
return new protocol_http_1.HttpRequest({
|
|
2330
2248
|
protocol,
|
|
@@ -2366,7 +2284,7 @@ const serializeAws_restJson1UpdateEmailIdentityPolicyCommand = async (input, con
|
|
|
2366
2284
|
}
|
|
2367
2285
|
let body;
|
|
2368
2286
|
body = JSON.stringify({
|
|
2369
|
-
...(input.Policy
|
|
2287
|
+
...(input.Policy != null && { Policy: input.Policy }),
|
|
2370
2288
|
});
|
|
2371
2289
|
return new protocol_http_1.HttpRequest({
|
|
2372
2290
|
protocol,
|
|
@@ -2397,8 +2315,7 @@ const serializeAws_restJson1UpdateEmailTemplateCommand = async (input, context)
|
|
|
2397
2315
|
}
|
|
2398
2316
|
let body;
|
|
2399
2317
|
body = JSON.stringify({
|
|
2400
|
-
...(input.TemplateContent
|
|
2401
|
-
input.TemplateContent !== null && {
|
|
2318
|
+
...(input.TemplateContent != null && {
|
|
2402
2319
|
TemplateContent: serializeAws_restJson1EmailTemplateContent(input.TemplateContent, context),
|
|
2403
2320
|
}),
|
|
2404
2321
|
});
|
|
@@ -6346,28 +6263,22 @@ const serializeAws_restJson1AdditionalContactEmailAddresses = (input, context) =
|
|
|
6346
6263
|
};
|
|
6347
6264
|
const serializeAws_restJson1Body = (input, context) => {
|
|
6348
6265
|
return {
|
|
6349
|
-
...(input.Html
|
|
6350
|
-
|
|
6351
|
-
...(input.Text !== undefined &&
|
|
6352
|
-
input.Text !== null && { Text: serializeAws_restJson1Content(input.Text, context) }),
|
|
6266
|
+
...(input.Html != null && { Html: serializeAws_restJson1Content(input.Html, context) }),
|
|
6267
|
+
...(input.Text != null && { Text: serializeAws_restJson1Content(input.Text, context) }),
|
|
6353
6268
|
};
|
|
6354
6269
|
};
|
|
6355
6270
|
const serializeAws_restJson1BulkEmailContent = (input, context) => {
|
|
6356
6271
|
return {
|
|
6357
|
-
...(input.Template
|
|
6358
|
-
input.Template !== null && { Template: serializeAws_restJson1Template(input.Template, context) }),
|
|
6272
|
+
...(input.Template != null && { Template: serializeAws_restJson1Template(input.Template, context) }),
|
|
6359
6273
|
};
|
|
6360
6274
|
};
|
|
6361
6275
|
const serializeAws_restJson1BulkEmailEntry = (input, context) => {
|
|
6362
6276
|
return {
|
|
6363
|
-
...(input.Destination
|
|
6364
|
-
|
|
6365
|
-
...(input.ReplacementEmailContent !== undefined &&
|
|
6366
|
-
input.ReplacementEmailContent !== null && {
|
|
6277
|
+
...(input.Destination != null && { Destination: serializeAws_restJson1Destination(input.Destination, context) }),
|
|
6278
|
+
...(input.ReplacementEmailContent != null && {
|
|
6367
6279
|
ReplacementEmailContent: serializeAws_restJson1ReplacementEmailContent(input.ReplacementEmailContent, context),
|
|
6368
6280
|
}),
|
|
6369
|
-
...(input.ReplacementTags
|
|
6370
|
-
input.ReplacementTags !== null && {
|
|
6281
|
+
...(input.ReplacementTags != null && {
|
|
6371
6282
|
ReplacementTags: serializeAws_restJson1MessageTagList(input.ReplacementTags, context),
|
|
6372
6283
|
}),
|
|
6373
6284
|
};
|
|
@@ -6384,19 +6295,16 @@ const serializeAws_restJson1BulkEmailEntryList = (input, context) => {
|
|
|
6384
6295
|
};
|
|
6385
6296
|
const serializeAws_restJson1CloudWatchDestination = (input, context) => {
|
|
6386
6297
|
return {
|
|
6387
|
-
...(input.DimensionConfigurations
|
|
6388
|
-
input.DimensionConfigurations !== null && {
|
|
6298
|
+
...(input.DimensionConfigurations != null && {
|
|
6389
6299
|
DimensionConfigurations: serializeAws_restJson1CloudWatchDimensionConfigurations(input.DimensionConfigurations, context),
|
|
6390
6300
|
}),
|
|
6391
6301
|
};
|
|
6392
6302
|
};
|
|
6393
6303
|
const serializeAws_restJson1CloudWatchDimensionConfiguration = (input, context) => {
|
|
6394
6304
|
return {
|
|
6395
|
-
...(input.DefaultDimensionValue
|
|
6396
|
-
|
|
6397
|
-
...(input.
|
|
6398
|
-
...(input.DimensionValueSource !== undefined &&
|
|
6399
|
-
input.DimensionValueSource !== null && { DimensionValueSource: input.DimensionValueSource }),
|
|
6305
|
+
...(input.DefaultDimensionValue != null && { DefaultDimensionValue: input.DefaultDimensionValue }),
|
|
6306
|
+
...(input.DimensionName != null && { DimensionName: input.DimensionName }),
|
|
6307
|
+
...(input.DimensionValueSource != null && { DimensionValueSource: input.DimensionValueSource }),
|
|
6400
6308
|
};
|
|
6401
6309
|
};
|
|
6402
6310
|
const serializeAws_restJson1CloudWatchDimensionConfigurations = (input, context) => {
|
|
@@ -6411,60 +6319,49 @@ const serializeAws_restJson1CloudWatchDimensionConfigurations = (input, context)
|
|
|
6411
6319
|
};
|
|
6412
6320
|
const serializeAws_restJson1ContactListDestination = (input, context) => {
|
|
6413
6321
|
return {
|
|
6414
|
-
...(input.ContactListImportAction
|
|
6415
|
-
|
|
6416
|
-
...(input.ContactListName !== undefined &&
|
|
6417
|
-
input.ContactListName !== null && { ContactListName: input.ContactListName }),
|
|
6322
|
+
...(input.ContactListImportAction != null && { ContactListImportAction: input.ContactListImportAction }),
|
|
6323
|
+
...(input.ContactListName != null && { ContactListName: input.ContactListName }),
|
|
6418
6324
|
};
|
|
6419
6325
|
};
|
|
6420
6326
|
const serializeAws_restJson1Content = (input, context) => {
|
|
6421
6327
|
return {
|
|
6422
|
-
...(input.Charset
|
|
6423
|
-
...(input.Data
|
|
6328
|
+
...(input.Charset != null && { Charset: input.Charset }),
|
|
6329
|
+
...(input.Data != null && { Data: input.Data }),
|
|
6424
6330
|
};
|
|
6425
6331
|
};
|
|
6426
6332
|
const serializeAws_restJson1DeliveryOptions = (input, context) => {
|
|
6427
6333
|
return {
|
|
6428
|
-
...(input.SendingPoolName
|
|
6429
|
-
|
|
6430
|
-
...(input.TlsPolicy !== undefined && input.TlsPolicy !== null && { TlsPolicy: input.TlsPolicy }),
|
|
6334
|
+
...(input.SendingPoolName != null && { SendingPoolName: input.SendingPoolName }),
|
|
6335
|
+
...(input.TlsPolicy != null && { TlsPolicy: input.TlsPolicy }),
|
|
6431
6336
|
};
|
|
6432
6337
|
};
|
|
6433
6338
|
const serializeAws_restJson1Destination = (input, context) => {
|
|
6434
6339
|
return {
|
|
6435
|
-
...(input.BccAddresses
|
|
6436
|
-
input.BccAddresses !== null && {
|
|
6340
|
+
...(input.BccAddresses != null && {
|
|
6437
6341
|
BccAddresses: serializeAws_restJson1EmailAddressList(input.BccAddresses, context),
|
|
6438
6342
|
}),
|
|
6439
|
-
...(input.CcAddresses
|
|
6440
|
-
input.CcAddresses !== null && {
|
|
6343
|
+
...(input.CcAddresses != null && {
|
|
6441
6344
|
CcAddresses: serializeAws_restJson1EmailAddressList(input.CcAddresses, context),
|
|
6442
6345
|
}),
|
|
6443
|
-
...(input.ToAddresses
|
|
6444
|
-
input.ToAddresses !== null && {
|
|
6346
|
+
...(input.ToAddresses != null && {
|
|
6445
6347
|
ToAddresses: serializeAws_restJson1EmailAddressList(input.ToAddresses, context),
|
|
6446
6348
|
}),
|
|
6447
6349
|
};
|
|
6448
6350
|
};
|
|
6449
6351
|
const serializeAws_restJson1DkimSigningAttributes = (input, context) => {
|
|
6450
6352
|
return {
|
|
6451
|
-
...(input.DomainSigningPrivateKey
|
|
6452
|
-
|
|
6453
|
-
...(input.
|
|
6454
|
-
input.DomainSigningSelector !== null && { DomainSigningSelector: input.DomainSigningSelector }),
|
|
6455
|
-
...(input.NextSigningKeyLength !== undefined &&
|
|
6456
|
-
input.NextSigningKeyLength !== null && { NextSigningKeyLength: input.NextSigningKeyLength }),
|
|
6353
|
+
...(input.DomainSigningPrivateKey != null && { DomainSigningPrivateKey: input.DomainSigningPrivateKey }),
|
|
6354
|
+
...(input.DomainSigningSelector != null && { DomainSigningSelector: input.DomainSigningSelector }),
|
|
6355
|
+
...(input.NextSigningKeyLength != null && { NextSigningKeyLength: input.NextSigningKeyLength }),
|
|
6457
6356
|
};
|
|
6458
6357
|
};
|
|
6459
6358
|
const serializeAws_restJson1DomainDeliverabilityTrackingOption = (input, context) => {
|
|
6460
6359
|
return {
|
|
6461
|
-
...(input.Domain
|
|
6462
|
-
...(input.InboxPlacementTrackingOption
|
|
6463
|
-
input.InboxPlacementTrackingOption !== null && {
|
|
6360
|
+
...(input.Domain != null && { Domain: input.Domain }),
|
|
6361
|
+
...(input.InboxPlacementTrackingOption != null && {
|
|
6464
6362
|
InboxPlacementTrackingOption: serializeAws_restJson1InboxPlacementTrackingOption(input.InboxPlacementTrackingOption, context),
|
|
6465
6363
|
}),
|
|
6466
|
-
...(input.SubscriptionStartDate
|
|
6467
|
-
input.SubscriptionStartDate !== null && {
|
|
6364
|
+
...(input.SubscriptionStartDate != null && {
|
|
6468
6365
|
SubscriptionStartDate: Math.round(input.SubscriptionStartDate.getTime() / 1000),
|
|
6469
6366
|
}),
|
|
6470
6367
|
};
|
|
@@ -6491,41 +6388,34 @@ const serializeAws_restJson1EmailAddressList = (input, context) => {
|
|
|
6491
6388
|
};
|
|
6492
6389
|
const serializeAws_restJson1EmailContent = (input, context) => {
|
|
6493
6390
|
return {
|
|
6494
|
-
...(input.Raw
|
|
6495
|
-
...(input.Simple
|
|
6496
|
-
|
|
6497
|
-
...(input.Template !== undefined &&
|
|
6498
|
-
input.Template !== null && { Template: serializeAws_restJson1Template(input.Template, context) }),
|
|
6391
|
+
...(input.Raw != null && { Raw: serializeAws_restJson1RawMessage(input.Raw, context) }),
|
|
6392
|
+
...(input.Simple != null && { Simple: serializeAws_restJson1Message(input.Simple, context) }),
|
|
6393
|
+
...(input.Template != null && { Template: serializeAws_restJson1Template(input.Template, context) }),
|
|
6499
6394
|
};
|
|
6500
6395
|
};
|
|
6501
6396
|
const serializeAws_restJson1EmailTemplateContent = (input, context) => {
|
|
6502
6397
|
return {
|
|
6503
|
-
...(input.Html
|
|
6504
|
-
...(input.Subject
|
|
6505
|
-
...(input.Text
|
|
6398
|
+
...(input.Html != null && { Html: input.Html }),
|
|
6399
|
+
...(input.Subject != null && { Subject: input.Subject }),
|
|
6400
|
+
...(input.Text != null && { Text: input.Text }),
|
|
6506
6401
|
};
|
|
6507
6402
|
};
|
|
6508
6403
|
const serializeAws_restJson1EventDestinationDefinition = (input, context) => {
|
|
6509
6404
|
return {
|
|
6510
|
-
...(input.CloudWatchDestination
|
|
6511
|
-
input.CloudWatchDestination !== null && {
|
|
6405
|
+
...(input.CloudWatchDestination != null && {
|
|
6512
6406
|
CloudWatchDestination: serializeAws_restJson1CloudWatchDestination(input.CloudWatchDestination, context),
|
|
6513
6407
|
}),
|
|
6514
|
-
...(input.Enabled
|
|
6515
|
-
...(input.KinesisFirehoseDestination
|
|
6516
|
-
input.KinesisFirehoseDestination !== null && {
|
|
6408
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
6409
|
+
...(input.KinesisFirehoseDestination != null && {
|
|
6517
6410
|
KinesisFirehoseDestination: serializeAws_restJson1KinesisFirehoseDestination(input.KinesisFirehoseDestination, context),
|
|
6518
6411
|
}),
|
|
6519
|
-
...(input.MatchingEventTypes
|
|
6520
|
-
input.MatchingEventTypes !== null && {
|
|
6412
|
+
...(input.MatchingEventTypes != null && {
|
|
6521
6413
|
MatchingEventTypes: serializeAws_restJson1EventTypes(input.MatchingEventTypes, context),
|
|
6522
6414
|
}),
|
|
6523
|
-
...(input.PinpointDestination
|
|
6524
|
-
input.PinpointDestination !== null && {
|
|
6415
|
+
...(input.PinpointDestination != null && {
|
|
6525
6416
|
PinpointDestination: serializeAws_restJson1PinpointDestination(input.PinpointDestination, context),
|
|
6526
6417
|
}),
|
|
6527
|
-
...(input.SnsDestination
|
|
6528
|
-
input.SnsDestination !== null && {
|
|
6418
|
+
...(input.SnsDestination != null && {
|
|
6529
6419
|
SnsDestination: serializeAws_restJson1SnsDestination(input.SnsDestination, context),
|
|
6530
6420
|
}),
|
|
6531
6421
|
};
|
|
@@ -6542,27 +6432,24 @@ const serializeAws_restJson1EventTypes = (input, context) => {
|
|
|
6542
6432
|
};
|
|
6543
6433
|
const serializeAws_restJson1ImportDataSource = (input, context) => {
|
|
6544
6434
|
return {
|
|
6545
|
-
...(input.DataFormat
|
|
6546
|
-
...(input.S3Url
|
|
6435
|
+
...(input.DataFormat != null && { DataFormat: input.DataFormat }),
|
|
6436
|
+
...(input.S3Url != null && { S3Url: input.S3Url }),
|
|
6547
6437
|
};
|
|
6548
6438
|
};
|
|
6549
6439
|
const serializeAws_restJson1ImportDestination = (input, context) => {
|
|
6550
6440
|
return {
|
|
6551
|
-
...(input.ContactListDestination
|
|
6552
|
-
input.ContactListDestination !== null && {
|
|
6441
|
+
...(input.ContactListDestination != null && {
|
|
6553
6442
|
ContactListDestination: serializeAws_restJson1ContactListDestination(input.ContactListDestination, context),
|
|
6554
6443
|
}),
|
|
6555
|
-
...(input.SuppressionListDestination
|
|
6556
|
-
input.SuppressionListDestination !== null && {
|
|
6444
|
+
...(input.SuppressionListDestination != null && {
|
|
6557
6445
|
SuppressionListDestination: serializeAws_restJson1SuppressionListDestination(input.SuppressionListDestination, context),
|
|
6558
6446
|
}),
|
|
6559
6447
|
};
|
|
6560
6448
|
};
|
|
6561
6449
|
const serializeAws_restJson1InboxPlacementTrackingOption = (input, context) => {
|
|
6562
6450
|
return {
|
|
6563
|
-
...(input.Global
|
|
6564
|
-
...(input.TrackedIsps
|
|
6565
|
-
input.TrackedIsps !== null && { TrackedIsps: serializeAws_restJson1IspNameList(input.TrackedIsps, context) }),
|
|
6451
|
+
...(input.Global != null && { Global: input.Global }),
|
|
6452
|
+
...(input.TrackedIsps != null && { TrackedIsps: serializeAws_restJson1IspNameList(input.TrackedIsps, context) }),
|
|
6566
6453
|
};
|
|
6567
6454
|
};
|
|
6568
6455
|
const serializeAws_restJson1IspNameList = (input, context) => {
|
|
@@ -6577,37 +6464,32 @@ const serializeAws_restJson1IspNameList = (input, context) => {
|
|
|
6577
6464
|
};
|
|
6578
6465
|
const serializeAws_restJson1KinesisFirehoseDestination = (input, context) => {
|
|
6579
6466
|
return {
|
|
6580
|
-
...(input.DeliveryStreamArn
|
|
6581
|
-
|
|
6582
|
-
...(input.IamRoleArn !== undefined && input.IamRoleArn !== null && { IamRoleArn: input.IamRoleArn }),
|
|
6467
|
+
...(input.DeliveryStreamArn != null && { DeliveryStreamArn: input.DeliveryStreamArn }),
|
|
6468
|
+
...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
|
|
6583
6469
|
};
|
|
6584
6470
|
};
|
|
6585
6471
|
const serializeAws_restJson1ListContactsFilter = (input, context) => {
|
|
6586
6472
|
return {
|
|
6587
|
-
...(input.FilteredStatus
|
|
6588
|
-
|
|
6589
|
-
...(input.TopicFilter !== undefined &&
|
|
6590
|
-
input.TopicFilter !== null && { TopicFilter: serializeAws_restJson1TopicFilter(input.TopicFilter, context) }),
|
|
6473
|
+
...(input.FilteredStatus != null && { FilteredStatus: input.FilteredStatus }),
|
|
6474
|
+
...(input.TopicFilter != null && { TopicFilter: serializeAws_restJson1TopicFilter(input.TopicFilter, context) }),
|
|
6591
6475
|
};
|
|
6592
6476
|
};
|
|
6593
6477
|
const serializeAws_restJson1ListManagementOptions = (input, context) => {
|
|
6594
6478
|
return {
|
|
6595
|
-
...(input.ContactListName
|
|
6596
|
-
|
|
6597
|
-
...(input.TopicName !== undefined && input.TopicName !== null && { TopicName: input.TopicName }),
|
|
6479
|
+
...(input.ContactListName != null && { ContactListName: input.ContactListName }),
|
|
6480
|
+
...(input.TopicName != null && { TopicName: input.TopicName }),
|
|
6598
6481
|
};
|
|
6599
6482
|
};
|
|
6600
6483
|
const serializeAws_restJson1Message = (input, context) => {
|
|
6601
6484
|
return {
|
|
6602
|
-
...(input.Body
|
|
6603
|
-
...(input.Subject
|
|
6604
|
-
input.Subject !== null && { Subject: serializeAws_restJson1Content(input.Subject, context) }),
|
|
6485
|
+
...(input.Body != null && { Body: serializeAws_restJson1Body(input.Body, context) }),
|
|
6486
|
+
...(input.Subject != null && { Subject: serializeAws_restJson1Content(input.Subject, context) }),
|
|
6605
6487
|
};
|
|
6606
6488
|
};
|
|
6607
6489
|
const serializeAws_restJson1MessageTag = (input, context) => {
|
|
6608
6490
|
return {
|
|
6609
|
-
...(input.Name
|
|
6610
|
-
...(input.Value
|
|
6491
|
+
...(input.Name != null && { Name: input.Name }),
|
|
6492
|
+
...(input.Value != null && { Value: input.Value }),
|
|
6611
6493
|
};
|
|
6612
6494
|
};
|
|
6613
6495
|
const serializeAws_restJson1MessageTagList = (input, context) => {
|
|
@@ -6622,52 +6504,47 @@ const serializeAws_restJson1MessageTagList = (input, context) => {
|
|
|
6622
6504
|
};
|
|
6623
6505
|
const serializeAws_restJson1PinpointDestination = (input, context) => {
|
|
6624
6506
|
return {
|
|
6625
|
-
...(input.ApplicationArn
|
|
6626
|
-
input.ApplicationArn !== null && { ApplicationArn: input.ApplicationArn }),
|
|
6507
|
+
...(input.ApplicationArn != null && { ApplicationArn: input.ApplicationArn }),
|
|
6627
6508
|
};
|
|
6628
6509
|
};
|
|
6629
6510
|
const serializeAws_restJson1RawMessage = (input, context) => {
|
|
6630
6511
|
return {
|
|
6631
|
-
...(input.Data
|
|
6512
|
+
...(input.Data != null && { Data: context.base64Encoder(input.Data) }),
|
|
6632
6513
|
};
|
|
6633
6514
|
};
|
|
6634
6515
|
const serializeAws_restJson1ReplacementEmailContent = (input, context) => {
|
|
6635
6516
|
return {
|
|
6636
|
-
...(input.ReplacementTemplate
|
|
6637
|
-
input.ReplacementTemplate !== null && {
|
|
6517
|
+
...(input.ReplacementTemplate != null && {
|
|
6638
6518
|
ReplacementTemplate: serializeAws_restJson1ReplacementTemplate(input.ReplacementTemplate, context),
|
|
6639
6519
|
}),
|
|
6640
6520
|
};
|
|
6641
6521
|
};
|
|
6642
6522
|
const serializeAws_restJson1ReplacementTemplate = (input, context) => {
|
|
6643
6523
|
return {
|
|
6644
|
-
...(input.ReplacementTemplateData
|
|
6645
|
-
input.ReplacementTemplateData !== null && { ReplacementTemplateData: input.ReplacementTemplateData }),
|
|
6524
|
+
...(input.ReplacementTemplateData != null && { ReplacementTemplateData: input.ReplacementTemplateData }),
|
|
6646
6525
|
};
|
|
6647
6526
|
};
|
|
6648
6527
|
const serializeAws_restJson1ReputationOptions = (input, context) => {
|
|
6649
6528
|
return {
|
|
6650
|
-
...(input.LastFreshStart
|
|
6651
|
-
|
|
6652
|
-
...(input.ReputationMetricsEnabled !== undefined &&
|
|
6653
|
-
input.ReputationMetricsEnabled !== null && { ReputationMetricsEnabled: input.ReputationMetricsEnabled }),
|
|
6529
|
+
...(input.LastFreshStart != null && { LastFreshStart: Math.round(input.LastFreshStart.getTime() / 1000) }),
|
|
6530
|
+
...(input.ReputationMetricsEnabled != null && { ReputationMetricsEnabled: input.ReputationMetricsEnabled }),
|
|
6654
6531
|
};
|
|
6655
6532
|
};
|
|
6656
6533
|
const serializeAws_restJson1SendingOptions = (input, context) => {
|
|
6657
6534
|
return {
|
|
6658
|
-
...(input.SendingEnabled
|
|
6659
|
-
input.SendingEnabled !== null && { SendingEnabled: input.SendingEnabled }),
|
|
6535
|
+
...(input.SendingEnabled != null && { SendingEnabled: input.SendingEnabled }),
|
|
6660
6536
|
};
|
|
6661
6537
|
};
|
|
6662
6538
|
const serializeAws_restJson1SnsDestination = (input, context) => {
|
|
6663
6539
|
return {
|
|
6664
|
-
...(input.TopicArn
|
|
6540
|
+
...(input.TopicArn != null && { TopicArn: input.TopicArn }),
|
|
6665
6541
|
};
|
|
6666
6542
|
};
|
|
6667
6543
|
const serializeAws_restJson1SuppressionListDestination = (input, context) => {
|
|
6668
6544
|
return {
|
|
6669
|
-
...(input.SuppressionListImportAction
|
|
6670
|
-
|
|
6545
|
+
...(input.SuppressionListImportAction != null && {
|
|
6546
|
+
SuppressionListImportAction: input.SuppressionListImportAction,
|
|
6547
|
+
}),
|
|
6671
6548
|
};
|
|
6672
6549
|
};
|
|
6673
6550
|
const serializeAws_restJson1SuppressionListReasons = (input, context) => {
|
|
@@ -6682,16 +6559,15 @@ const serializeAws_restJson1SuppressionListReasons = (input, context) => {
|
|
|
6682
6559
|
};
|
|
6683
6560
|
const serializeAws_restJson1SuppressionOptions = (input, context) => {
|
|
6684
6561
|
return {
|
|
6685
|
-
...(input.SuppressedReasons
|
|
6686
|
-
input.SuppressedReasons !== null && {
|
|
6562
|
+
...(input.SuppressedReasons != null && {
|
|
6687
6563
|
SuppressedReasons: serializeAws_restJson1SuppressionListReasons(input.SuppressedReasons, context),
|
|
6688
6564
|
}),
|
|
6689
6565
|
};
|
|
6690
6566
|
};
|
|
6691
6567
|
const serializeAws_restJson1Tag = (input, context) => {
|
|
6692
6568
|
return {
|
|
6693
|
-
...(input.Key
|
|
6694
|
-
...(input.Value
|
|
6569
|
+
...(input.Key != null && { Key: input.Key }),
|
|
6570
|
+
...(input.Value != null && { Value: input.Value }),
|
|
6695
6571
|
};
|
|
6696
6572
|
};
|
|
6697
6573
|
const serializeAws_restJson1TagList = (input, context) => {
|
|
@@ -6706,34 +6582,31 @@ const serializeAws_restJson1TagList = (input, context) => {
|
|
|
6706
6582
|
};
|
|
6707
6583
|
const serializeAws_restJson1Template = (input, context) => {
|
|
6708
6584
|
return {
|
|
6709
|
-
...(input.TemplateArn
|
|
6710
|
-
...(input.TemplateData
|
|
6711
|
-
...(input.TemplateName
|
|
6585
|
+
...(input.TemplateArn != null && { TemplateArn: input.TemplateArn }),
|
|
6586
|
+
...(input.TemplateData != null && { TemplateData: input.TemplateData }),
|
|
6587
|
+
...(input.TemplateName != null && { TemplateName: input.TemplateName }),
|
|
6712
6588
|
};
|
|
6713
6589
|
};
|
|
6714
6590
|
const serializeAws_restJson1Topic = (input, context) => {
|
|
6715
6591
|
return {
|
|
6716
|
-
...(input.DefaultSubscriptionStatus
|
|
6717
|
-
|
|
6718
|
-
...(input.
|
|
6719
|
-
...(input.
|
|
6720
|
-
...(input.TopicName !== undefined && input.TopicName !== null && { TopicName: input.TopicName }),
|
|
6592
|
+
...(input.DefaultSubscriptionStatus != null && { DefaultSubscriptionStatus: input.DefaultSubscriptionStatus }),
|
|
6593
|
+
...(input.Description != null && { Description: input.Description }),
|
|
6594
|
+
...(input.DisplayName != null && { DisplayName: input.DisplayName }),
|
|
6595
|
+
...(input.TopicName != null && { TopicName: input.TopicName }),
|
|
6721
6596
|
};
|
|
6722
6597
|
};
|
|
6723
6598
|
const serializeAws_restJson1TopicFilter = (input, context) => {
|
|
6724
6599
|
return {
|
|
6725
|
-
...(input.TopicName
|
|
6726
|
-
...(input.UseDefaultIfPreferenceUnavailable
|
|
6727
|
-
input.UseDefaultIfPreferenceUnavailable !== null && {
|
|
6600
|
+
...(input.TopicName != null && { TopicName: input.TopicName }),
|
|
6601
|
+
...(input.UseDefaultIfPreferenceUnavailable != null && {
|
|
6728
6602
|
UseDefaultIfPreferenceUnavailable: input.UseDefaultIfPreferenceUnavailable,
|
|
6729
6603
|
}),
|
|
6730
6604
|
};
|
|
6731
6605
|
};
|
|
6732
6606
|
const serializeAws_restJson1TopicPreference = (input, context) => {
|
|
6733
6607
|
return {
|
|
6734
|
-
...(input.SubscriptionStatus
|
|
6735
|
-
|
|
6736
|
-
...(input.TopicName !== undefined && input.TopicName !== null && { TopicName: input.TopicName }),
|
|
6608
|
+
...(input.SubscriptionStatus != null && { SubscriptionStatus: input.SubscriptionStatus }),
|
|
6609
|
+
...(input.TopicName != null && { TopicName: input.TopicName }),
|
|
6737
6610
|
};
|
|
6738
6611
|
};
|
|
6739
6612
|
const serializeAws_restJson1TopicPreferenceList = (input, context) => {
|
|
@@ -6758,20 +6631,17 @@ const serializeAws_restJson1Topics = (input, context) => {
|
|
|
6758
6631
|
};
|
|
6759
6632
|
const serializeAws_restJson1TrackingOptions = (input, context) => {
|
|
6760
6633
|
return {
|
|
6761
|
-
...(input.CustomRedirectDomain
|
|
6762
|
-
input.CustomRedirectDomain !== null && { CustomRedirectDomain: input.CustomRedirectDomain }),
|
|
6634
|
+
...(input.CustomRedirectDomain != null && { CustomRedirectDomain: input.CustomRedirectDomain }),
|
|
6763
6635
|
};
|
|
6764
6636
|
};
|
|
6765
6637
|
const deserializeAws_restJson1AccountDetails = (output, context) => {
|
|
6766
6638
|
return {
|
|
6767
|
-
AdditionalContactEmailAddresses: output.AdditionalContactEmailAddresses
|
|
6639
|
+
AdditionalContactEmailAddresses: output.AdditionalContactEmailAddresses != null
|
|
6768
6640
|
? deserializeAws_restJson1AdditionalContactEmailAddresses(output.AdditionalContactEmailAddresses, context)
|
|
6769
6641
|
: undefined,
|
|
6770
6642
|
ContactLanguage: (0, smithy_client_1.expectString)(output.ContactLanguage),
|
|
6771
6643
|
MailType: (0, smithy_client_1.expectString)(output.MailType),
|
|
6772
|
-
ReviewDetails: output.ReviewDetails
|
|
6773
|
-
? deserializeAws_restJson1ReviewDetails(output.ReviewDetails, context)
|
|
6774
|
-
: undefined,
|
|
6644
|
+
ReviewDetails: output.ReviewDetails != null ? deserializeAws_restJson1ReviewDetails(output.ReviewDetails, context) : undefined,
|
|
6775
6645
|
UseCaseDescription: (0, smithy_client_1.expectString)(output.UseCaseDescription),
|
|
6776
6646
|
WebsiteURL: (0, smithy_client_1.expectString)(output.WebsiteURL),
|
|
6777
6647
|
};
|
|
@@ -6801,7 +6671,7 @@ const deserializeAws_restJson1BlacklistEntries = (output, context) => {
|
|
|
6801
6671
|
const deserializeAws_restJson1BlacklistEntry = (output, context) => {
|
|
6802
6672
|
return {
|
|
6803
6673
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
6804
|
-
ListingTime: output.ListingTime
|
|
6674
|
+
ListingTime: output.ListingTime != null
|
|
6805
6675
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ListingTime)))
|
|
6806
6676
|
: undefined,
|
|
6807
6677
|
RblName: (0, smithy_client_1.expectString)(output.RblName),
|
|
@@ -6838,7 +6708,7 @@ const deserializeAws_restJson1BulkEmailEntryResultList = (output, context) => {
|
|
|
6838
6708
|
};
|
|
6839
6709
|
const deserializeAws_restJson1CloudWatchDestination = (output, context) => {
|
|
6840
6710
|
return {
|
|
6841
|
-
DimensionConfigurations: output.DimensionConfigurations
|
|
6711
|
+
DimensionConfigurations: output.DimensionConfigurations != null
|
|
6842
6712
|
? deserializeAws_restJson1CloudWatchDimensionConfigurations(output.DimensionConfigurations, context)
|
|
6843
6713
|
: undefined,
|
|
6844
6714
|
};
|
|
@@ -6875,13 +6745,13 @@ const deserializeAws_restJson1ConfigurationSetNameList = (output, context) => {
|
|
|
6875
6745
|
const deserializeAws_restJson1Contact = (output, context) => {
|
|
6876
6746
|
return {
|
|
6877
6747
|
EmailAddress: (0, smithy_client_1.expectString)(output.EmailAddress),
|
|
6878
|
-
LastUpdatedTimestamp: output.LastUpdatedTimestamp
|
|
6748
|
+
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
6879
6749
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
|
|
6880
6750
|
: undefined,
|
|
6881
|
-
TopicDefaultPreferences: output.TopicDefaultPreferences
|
|
6751
|
+
TopicDefaultPreferences: output.TopicDefaultPreferences != null
|
|
6882
6752
|
? deserializeAws_restJson1TopicPreferenceList(output.TopicDefaultPreferences, context)
|
|
6883
6753
|
: undefined,
|
|
6884
|
-
TopicPreferences: output.TopicPreferences
|
|
6754
|
+
TopicPreferences: output.TopicPreferences != null
|
|
6885
6755
|
? deserializeAws_restJson1TopicPreferenceList(output.TopicPreferences, context)
|
|
6886
6756
|
: undefined,
|
|
6887
6757
|
UnsubscribeAll: (0, smithy_client_1.expectBoolean)(output.UnsubscribeAll),
|
|
@@ -6890,7 +6760,7 @@ const deserializeAws_restJson1Contact = (output, context) => {
|
|
|
6890
6760
|
const deserializeAws_restJson1ContactList = (output, context) => {
|
|
6891
6761
|
return {
|
|
6892
6762
|
ContactListName: (0, smithy_client_1.expectString)(output.ContactListName),
|
|
6893
|
-
LastUpdatedTimestamp: output.LastUpdatedTimestamp
|
|
6763
|
+
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
6894
6764
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
|
|
6895
6765
|
: undefined,
|
|
6896
6766
|
};
|
|
@@ -6923,13 +6793,11 @@ const deserializeAws_restJson1CustomVerificationEmailTemplatesList = (output, co
|
|
|
6923
6793
|
};
|
|
6924
6794
|
const deserializeAws_restJson1DailyVolume = (output, context) => {
|
|
6925
6795
|
return {
|
|
6926
|
-
DomainIspPlacements: output.DomainIspPlacements
|
|
6796
|
+
DomainIspPlacements: output.DomainIspPlacements != null
|
|
6927
6797
|
? deserializeAws_restJson1DomainIspPlacements(output.DomainIspPlacements, context)
|
|
6928
6798
|
: undefined,
|
|
6929
|
-
StartDate: output.StartDate
|
|
6930
|
-
|
|
6931
|
-
: undefined,
|
|
6932
|
-
VolumeStatistics: output.VolumeStatistics !== undefined && output.VolumeStatistics !== null
|
|
6799
|
+
StartDate: output.StartDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartDate))) : undefined,
|
|
6800
|
+
VolumeStatistics: output.VolumeStatistics != null
|
|
6933
6801
|
? deserializeAws_restJson1VolumeStatistics(output.VolumeStatistics, context)
|
|
6934
6802
|
: undefined,
|
|
6935
6803
|
};
|
|
@@ -6966,9 +6834,7 @@ const deserializeAws_restJson1DedicatedIpList = (output, context) => {
|
|
|
6966
6834
|
};
|
|
6967
6835
|
const deserializeAws_restJson1DeliverabilityTestReport = (output, context) => {
|
|
6968
6836
|
return {
|
|
6969
|
-
CreateDate: output.CreateDate
|
|
6970
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateDate)))
|
|
6971
|
-
: undefined,
|
|
6837
|
+
CreateDate: output.CreateDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateDate))) : undefined,
|
|
6972
6838
|
DeliverabilityTestStatus: (0, smithy_client_1.expectString)(output.DeliverabilityTestStatus),
|
|
6973
6839
|
FromEmailAddress: (0, smithy_client_1.expectString)(output.FromEmailAddress),
|
|
6974
6840
|
ReportId: (0, smithy_client_1.expectString)(output.ReportId),
|
|
@@ -6996,16 +6862,14 @@ const deserializeAws_restJson1DeliveryOptions = (output, context) => {
|
|
|
6996
6862
|
const deserializeAws_restJson1DkimAttributes = (output, context) => {
|
|
6997
6863
|
return {
|
|
6998
6864
|
CurrentSigningKeyLength: (0, smithy_client_1.expectString)(output.CurrentSigningKeyLength),
|
|
6999
|
-
LastKeyGenerationTimestamp: output.LastKeyGenerationTimestamp
|
|
6865
|
+
LastKeyGenerationTimestamp: output.LastKeyGenerationTimestamp != null
|
|
7000
6866
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastKeyGenerationTimestamp)))
|
|
7001
6867
|
: undefined,
|
|
7002
6868
|
NextSigningKeyLength: (0, smithy_client_1.expectString)(output.NextSigningKeyLength),
|
|
7003
6869
|
SigningAttributesOrigin: (0, smithy_client_1.expectString)(output.SigningAttributesOrigin),
|
|
7004
6870
|
SigningEnabled: (0, smithy_client_1.expectBoolean)(output.SigningEnabled),
|
|
7005
6871
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
7006
|
-
Tokens: output.Tokens
|
|
7007
|
-
? deserializeAws_restJson1DnsTokenList(output.Tokens, context)
|
|
7008
|
-
: undefined,
|
|
6872
|
+
Tokens: output.Tokens != null ? deserializeAws_restJson1DnsTokenList(output.Tokens, context) : undefined,
|
|
7009
6873
|
};
|
|
7010
6874
|
};
|
|
7011
6875
|
const deserializeAws_restJson1DnsTokenList = (output, context) => {
|
|
@@ -7023,24 +6887,20 @@ const deserializeAws_restJson1DomainDeliverabilityCampaign = (output, context) =
|
|
|
7023
6887
|
return {
|
|
7024
6888
|
CampaignId: (0, smithy_client_1.expectString)(output.CampaignId),
|
|
7025
6889
|
DeleteRate: (0, smithy_client_1.limitedParseDouble)(output.DeleteRate),
|
|
7026
|
-
Esps: output.Esps
|
|
7027
|
-
|
|
7028
|
-
: undefined,
|
|
7029
|
-
FirstSeenDateTime: output.FirstSeenDateTime !== undefined && output.FirstSeenDateTime !== null
|
|
6890
|
+
Esps: output.Esps != null ? deserializeAws_restJson1Esps(output.Esps, context) : undefined,
|
|
6891
|
+
FirstSeenDateTime: output.FirstSeenDateTime != null
|
|
7030
6892
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.FirstSeenDateTime)))
|
|
7031
6893
|
: undefined,
|
|
7032
6894
|
FromAddress: (0, smithy_client_1.expectString)(output.FromAddress),
|
|
7033
6895
|
ImageUrl: (0, smithy_client_1.expectString)(output.ImageUrl),
|
|
7034
6896
|
InboxCount: (0, smithy_client_1.expectLong)(output.InboxCount),
|
|
7035
|
-
LastSeenDateTime: output.LastSeenDateTime
|
|
6897
|
+
LastSeenDateTime: output.LastSeenDateTime != null
|
|
7036
6898
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastSeenDateTime)))
|
|
7037
6899
|
: undefined,
|
|
7038
6900
|
ProjectedVolume: (0, smithy_client_1.expectLong)(output.ProjectedVolume),
|
|
7039
6901
|
ReadDeleteRate: (0, smithy_client_1.limitedParseDouble)(output.ReadDeleteRate),
|
|
7040
6902
|
ReadRate: (0, smithy_client_1.limitedParseDouble)(output.ReadRate),
|
|
7041
|
-
SendingIps: output.SendingIps
|
|
7042
|
-
? deserializeAws_restJson1IpList(output.SendingIps, context)
|
|
7043
|
-
: undefined,
|
|
6903
|
+
SendingIps: output.SendingIps != null ? deserializeAws_restJson1IpList(output.SendingIps, context) : undefined,
|
|
7044
6904
|
SpamCount: (0, smithy_client_1.expectLong)(output.SpamCount),
|
|
7045
6905
|
Subject: (0, smithy_client_1.expectString)(output.Subject),
|
|
7046
6906
|
};
|
|
@@ -7059,10 +6919,10 @@ const deserializeAws_restJson1DomainDeliverabilityCampaignList = (output, contex
|
|
|
7059
6919
|
const deserializeAws_restJson1DomainDeliverabilityTrackingOption = (output, context) => {
|
|
7060
6920
|
return {
|
|
7061
6921
|
Domain: (0, smithy_client_1.expectString)(output.Domain),
|
|
7062
|
-
InboxPlacementTrackingOption: output.InboxPlacementTrackingOption
|
|
6922
|
+
InboxPlacementTrackingOption: output.InboxPlacementTrackingOption != null
|
|
7063
6923
|
? deserializeAws_restJson1InboxPlacementTrackingOption(output.InboxPlacementTrackingOption, context)
|
|
7064
6924
|
: undefined,
|
|
7065
|
-
SubscriptionStartDate: output.SubscriptionStartDate
|
|
6925
|
+
SubscriptionStartDate: output.SubscriptionStartDate != null
|
|
7066
6926
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubscriptionStartDate)))
|
|
7067
6927
|
: undefined,
|
|
7068
6928
|
};
|
|
@@ -7107,7 +6967,7 @@ const deserializeAws_restJson1EmailTemplateContent = (output, context) => {
|
|
|
7107
6967
|
};
|
|
7108
6968
|
const deserializeAws_restJson1EmailTemplateMetadata = (output, context) => {
|
|
7109
6969
|
return {
|
|
7110
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
6970
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
7111
6971
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
7112
6972
|
: undefined,
|
|
7113
6973
|
TemplateName: (0, smithy_client_1.expectString)(output.TemplateName),
|
|
@@ -7137,21 +6997,21 @@ const deserializeAws_restJson1Esps = (output, context) => {
|
|
|
7137
6997
|
};
|
|
7138
6998
|
const deserializeAws_restJson1EventDestination = (output, context) => {
|
|
7139
6999
|
return {
|
|
7140
|
-
CloudWatchDestination: output.CloudWatchDestination
|
|
7000
|
+
CloudWatchDestination: output.CloudWatchDestination != null
|
|
7141
7001
|
? deserializeAws_restJson1CloudWatchDestination(output.CloudWatchDestination, context)
|
|
7142
7002
|
: undefined,
|
|
7143
7003
|
Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
|
|
7144
|
-
KinesisFirehoseDestination: output.KinesisFirehoseDestination
|
|
7004
|
+
KinesisFirehoseDestination: output.KinesisFirehoseDestination != null
|
|
7145
7005
|
? deserializeAws_restJson1KinesisFirehoseDestination(output.KinesisFirehoseDestination, context)
|
|
7146
7006
|
: undefined,
|
|
7147
|
-
MatchingEventTypes: output.MatchingEventTypes
|
|
7007
|
+
MatchingEventTypes: output.MatchingEventTypes != null
|
|
7148
7008
|
? deserializeAws_restJson1EventTypes(output.MatchingEventTypes, context)
|
|
7149
7009
|
: undefined,
|
|
7150
7010
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
7151
|
-
PinpointDestination: output.PinpointDestination
|
|
7011
|
+
PinpointDestination: output.PinpointDestination != null
|
|
7152
7012
|
? deserializeAws_restJson1PinpointDestination(output.PinpointDestination, context)
|
|
7153
7013
|
: undefined,
|
|
7154
|
-
SnsDestination: output.SnsDestination
|
|
7014
|
+
SnsDestination: output.SnsDestination != null
|
|
7155
7015
|
? deserializeAws_restJson1SnsDestination(output.SnsDestination, context)
|
|
7156
7016
|
: undefined,
|
|
7157
7017
|
};
|
|
@@ -7210,20 +7070,20 @@ const deserializeAws_restJson1ImportDataSource = (output, context) => {
|
|
|
7210
7070
|
};
|
|
7211
7071
|
const deserializeAws_restJson1ImportDestination = (output, context) => {
|
|
7212
7072
|
return {
|
|
7213
|
-
ContactListDestination: output.ContactListDestination
|
|
7073
|
+
ContactListDestination: output.ContactListDestination != null
|
|
7214
7074
|
? deserializeAws_restJson1ContactListDestination(output.ContactListDestination, context)
|
|
7215
7075
|
: undefined,
|
|
7216
|
-
SuppressionListDestination: output.SuppressionListDestination
|
|
7076
|
+
SuppressionListDestination: output.SuppressionListDestination != null
|
|
7217
7077
|
? deserializeAws_restJson1SuppressionListDestination(output.SuppressionListDestination, context)
|
|
7218
7078
|
: undefined,
|
|
7219
7079
|
};
|
|
7220
7080
|
};
|
|
7221
7081
|
const deserializeAws_restJson1ImportJobSummary = (output, context) => {
|
|
7222
7082
|
return {
|
|
7223
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
7083
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
7224
7084
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
7225
7085
|
: undefined,
|
|
7226
|
-
ImportDestination: output.ImportDestination
|
|
7086
|
+
ImportDestination: output.ImportDestination != null
|
|
7227
7087
|
? deserializeAws_restJson1ImportDestination(output.ImportDestination, context)
|
|
7228
7088
|
: undefined,
|
|
7229
7089
|
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
@@ -7244,9 +7104,7 @@ const deserializeAws_restJson1ImportJobSummaryList = (output, context) => {
|
|
|
7244
7104
|
const deserializeAws_restJson1InboxPlacementTrackingOption = (output, context) => {
|
|
7245
7105
|
return {
|
|
7246
7106
|
Global: (0, smithy_client_1.expectBoolean)(output.Global),
|
|
7247
|
-
TrackedIsps: output.TrackedIsps
|
|
7248
|
-
? deserializeAws_restJson1IspNameList(output.TrackedIsps, context)
|
|
7249
|
-
: undefined,
|
|
7107
|
+
TrackedIsps: output.TrackedIsps != null ? deserializeAws_restJson1IspNameList(output.TrackedIsps, context) : undefined,
|
|
7250
7108
|
};
|
|
7251
7109
|
};
|
|
7252
7110
|
const deserializeAws_restJson1IpList = (output, context) => {
|
|
@@ -7274,7 +7132,7 @@ const deserializeAws_restJson1IspNameList = (output, context) => {
|
|
|
7274
7132
|
const deserializeAws_restJson1IspPlacement = (output, context) => {
|
|
7275
7133
|
return {
|
|
7276
7134
|
IspName: (0, smithy_client_1.expectString)(output.IspName),
|
|
7277
|
-
PlacementStatistics: output.PlacementStatistics
|
|
7135
|
+
PlacementStatistics: output.PlacementStatistics != null
|
|
7278
7136
|
? deserializeAws_restJson1PlacementStatistics(output.PlacementStatistics, context)
|
|
7279
7137
|
: undefined,
|
|
7280
7138
|
};
|
|
@@ -7338,11 +7196,11 @@ const deserializeAws_restJson1MailFromAttributes = (output, context) => {
|
|
|
7338
7196
|
};
|
|
7339
7197
|
const deserializeAws_restJson1OverallVolume = (output, context) => {
|
|
7340
7198
|
return {
|
|
7341
|
-
DomainIspPlacements: output.DomainIspPlacements
|
|
7199
|
+
DomainIspPlacements: output.DomainIspPlacements != null
|
|
7342
7200
|
? deserializeAws_restJson1DomainIspPlacements(output.DomainIspPlacements, context)
|
|
7343
7201
|
: undefined,
|
|
7344
7202
|
ReadRatePercent: (0, smithy_client_1.limitedParseDouble)(output.ReadRatePercent),
|
|
7345
|
-
VolumeStatistics: output.VolumeStatistics
|
|
7203
|
+
VolumeStatistics: output.VolumeStatistics != null
|
|
7346
7204
|
? deserializeAws_restJson1VolumeStatistics(output.VolumeStatistics, context)
|
|
7347
7205
|
: undefined,
|
|
7348
7206
|
};
|
|
@@ -7374,7 +7232,7 @@ const deserializeAws_restJson1PolicyMap = (output, context) => {
|
|
|
7374
7232
|
};
|
|
7375
7233
|
const deserializeAws_restJson1ReputationOptions = (output, context) => {
|
|
7376
7234
|
return {
|
|
7377
|
-
LastFreshStart: output.LastFreshStart
|
|
7235
|
+
LastFreshStart: output.LastFreshStart != null
|
|
7378
7236
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastFreshStart)))
|
|
7379
7237
|
: undefined,
|
|
7380
7238
|
ReputationMetricsEnabled: (0, smithy_client_1.expectBoolean)(output.ReputationMetricsEnabled),
|
|
@@ -7405,11 +7263,11 @@ const deserializeAws_restJson1SnsDestination = (output, context) => {
|
|
|
7405
7263
|
};
|
|
7406
7264
|
const deserializeAws_restJson1SuppressedDestination = (output, context) => {
|
|
7407
7265
|
return {
|
|
7408
|
-
Attributes: output.Attributes
|
|
7266
|
+
Attributes: output.Attributes != null
|
|
7409
7267
|
? deserializeAws_restJson1SuppressedDestinationAttributes(output.Attributes, context)
|
|
7410
7268
|
: undefined,
|
|
7411
7269
|
EmailAddress: (0, smithy_client_1.expectString)(output.EmailAddress),
|
|
7412
|
-
LastUpdateTime: output.LastUpdateTime
|
|
7270
|
+
LastUpdateTime: output.LastUpdateTime != null
|
|
7413
7271
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateTime)))
|
|
7414
7272
|
: undefined,
|
|
7415
7273
|
Reason: (0, smithy_client_1.expectString)(output.Reason),
|
|
@@ -7435,7 +7293,7 @@ const deserializeAws_restJson1SuppressedDestinationSummaries = (output, context)
|
|
|
7435
7293
|
const deserializeAws_restJson1SuppressedDestinationSummary = (output, context) => {
|
|
7436
7294
|
return {
|
|
7437
7295
|
EmailAddress: (0, smithy_client_1.expectString)(output.EmailAddress),
|
|
7438
|
-
LastUpdateTime: output.LastUpdateTime
|
|
7296
|
+
LastUpdateTime: output.LastUpdateTime != null
|
|
7439
7297
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateTime)))
|
|
7440
7298
|
: undefined,
|
|
7441
7299
|
Reason: (0, smithy_client_1.expectString)(output.Reason),
|
|
@@ -7443,7 +7301,7 @@ const deserializeAws_restJson1SuppressedDestinationSummary = (output, context) =
|
|
|
7443
7301
|
};
|
|
7444
7302
|
const deserializeAws_restJson1SuppressionAttributes = (output, context) => {
|
|
7445
7303
|
return {
|
|
7446
|
-
SuppressedReasons: output.SuppressedReasons
|
|
7304
|
+
SuppressedReasons: output.SuppressedReasons != null
|
|
7447
7305
|
? deserializeAws_restJson1SuppressionListReasons(output.SuppressedReasons, context)
|
|
7448
7306
|
: undefined,
|
|
7449
7307
|
};
|
|
@@ -7466,7 +7324,7 @@ const deserializeAws_restJson1SuppressionListReasons = (output, context) => {
|
|
|
7466
7324
|
};
|
|
7467
7325
|
const deserializeAws_restJson1SuppressionOptions = (output, context) => {
|
|
7468
7326
|
return {
|
|
7469
|
-
SuppressedReasons: output.SuppressedReasons
|
|
7327
|
+
SuppressedReasons: output.SuppressedReasons != null
|
|
7470
7328
|
? deserializeAws_restJson1SuppressionListReasons(output.SuppressedReasons, context)
|
|
7471
7329
|
: undefined,
|
|
7472
7330
|
};
|
|
@@ -7568,6 +7426,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
7568
7426
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
7569
7427
|
const sanitizeErrorCode = (rawValue) => {
|
|
7570
7428
|
let cleanValue = rawValue;
|
|
7429
|
+
if (typeof cleanValue === "number") {
|
|
7430
|
+
cleanValue = cleanValue.toString();
|
|
7431
|
+
}
|
|
7571
7432
|
if (cleanValue.indexOf(":") >= 0) {
|
|
7572
7433
|
cleanValue = cleanValue.split(":")[0];
|
|
7573
7434
|
}
|