@aws-sdk/client-pinpoint-email 3.121.0 → 3.127.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,19 +14,13 @@ 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 || "") + "/v1/email/configuration-sets";
17
- body = JSON.stringify(__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({}, (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.Tags !== undefined &&
28
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })), (input.TrackingOptions !== undefined &&
29
- input.TrackingOptions !== null && {
23
+ })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })), (input.TrackingOptions != null && {
30
24
  TrackingOptions: serializeAws_restJson1TrackingOptions(input.TrackingOptions, context),
31
25
  })));
32
26
  return [2, new __HttpRequest({
@@ -63,11 +57,9 @@ export var serializeAws_restJson1CreateConfigurationSetEventDestinationCommand =
63
57
  else {
64
58
  throw new Error("No value provided for input HTTP label: ConfigurationSetName.");
65
59
  }
66
- body = JSON.stringify(__assign(__assign({}, (input.EventDestination !== undefined &&
67
- input.EventDestination !== null && {
60
+ body = JSON.stringify(__assign(__assign({}, (input.EventDestination != null && {
68
61
  EventDestination: serializeAws_restJson1EventDestinationDefinition(input.EventDestination, context),
69
- })), (input.EventDestinationName !== undefined &&
70
- input.EventDestinationName !== null && { EventDestinationName: input.EventDestinationName })));
62
+ })), (input.EventDestinationName != null && { EventDestinationName: input.EventDestinationName })));
71
63
  return [2, new __HttpRequest({
72
64
  protocol: protocol,
73
65
  hostname: hostname,
@@ -91,8 +83,7 @@ export var serializeAws_restJson1CreateDedicatedIpPoolCommand = function (input,
91
83
  "content-type": "application/json",
92
84
  };
93
85
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/email/dedicated-ip-pools";
94
- body = JSON.stringify(__assign(__assign({}, (input.PoolName !== undefined && input.PoolName !== null && { PoolName: input.PoolName })), (input.Tags !== undefined &&
95
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
86
+ body = JSON.stringify(__assign(__assign({}, (input.PoolName != null && { PoolName: input.PoolName })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
96
87
  return [2, new __HttpRequest({
97
88
  protocol: protocol,
98
89
  hostname: hostname,
@@ -116,10 +107,7 @@ export var serializeAws_restJson1CreateDeliverabilityTestReportCommand = functio
116
107
  "content-type": "application/json",
117
108
  };
118
109
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/email/deliverability-dashboard/test";
119
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Content !== undefined &&
120
- input.Content !== null && { Content: serializeAws_restJson1EmailContent(input.Content, context) })), (input.FromEmailAddress !== undefined &&
121
- input.FromEmailAddress !== null && { FromEmailAddress: input.FromEmailAddress })), (input.ReportName !== undefined && input.ReportName !== null && { ReportName: input.ReportName })), (input.Tags !== undefined &&
122
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
110
+ 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) })));
123
111
  return [2, new __HttpRequest({
124
112
  protocol: protocol,
125
113
  hostname: hostname,
@@ -143,8 +131,7 @@ export var serializeAws_restJson1CreateEmailIdentityCommand = function (input, c
143
131
  "content-type": "application/json",
144
132
  };
145
133
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/email/identities";
146
- body = JSON.stringify(__assign(__assign({}, (input.EmailIdentity !== undefined && input.EmailIdentity !== null && { EmailIdentity: input.EmailIdentity })), (input.Tags !== undefined &&
147
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
134
+ body = JSON.stringify(__assign(__assign({}, (input.EmailIdentity != null && { EmailIdentity: input.EmailIdentity })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
148
135
  return [2, new __HttpRequest({
149
136
  protocol: protocol,
150
137
  hostname: hostname,
@@ -775,8 +762,7 @@ export var serializeAws_restJson1PutAccountDedicatedIpWarmupAttributesCommand =
775
762
  "content-type": "application/json",
776
763
  };
777
764
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/email/account/dedicated-ips/warmup";
778
- body = JSON.stringify(__assign({}, (input.AutoWarmupEnabled !== undefined &&
779
- input.AutoWarmupEnabled !== null && { AutoWarmupEnabled: input.AutoWarmupEnabled })));
765
+ body = JSON.stringify(__assign({}, (input.AutoWarmupEnabled != null && { AutoWarmupEnabled: input.AutoWarmupEnabled })));
780
766
  return [2, new __HttpRequest({
781
767
  protocol: protocol,
782
768
  hostname: hostname,
@@ -800,8 +786,7 @@ export var serializeAws_restJson1PutAccountSendingAttributesCommand = function (
800
786
  "content-type": "application/json",
801
787
  };
802
788
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/email/account/sending";
803
- body = JSON.stringify(__assign({}, (input.SendingEnabled !== undefined &&
804
- input.SendingEnabled !== null && { SendingEnabled: input.SendingEnabled })));
789
+ body = JSON.stringify(__assign({}, (input.SendingEnabled != null && { SendingEnabled: input.SendingEnabled })));
805
790
  return [2, new __HttpRequest({
806
791
  protocol: protocol,
807
792
  hostname: hostname,
@@ -836,8 +821,7 @@ export var serializeAws_restJson1PutConfigurationSetDeliveryOptionsCommand = fun
836
821
  else {
837
822
  throw new Error("No value provided for input HTTP label: ConfigurationSetName.");
838
823
  }
839
- body = JSON.stringify(__assign(__assign({}, (input.SendingPoolName !== undefined &&
840
- input.SendingPoolName !== null && { SendingPoolName: input.SendingPoolName })), (input.TlsPolicy !== undefined && input.TlsPolicy !== null && { TlsPolicy: input.TlsPolicy })));
824
+ body = JSON.stringify(__assign(__assign({}, (input.SendingPoolName != null && { SendingPoolName: input.SendingPoolName })), (input.TlsPolicy != null && { TlsPolicy: input.TlsPolicy })));
841
825
  return [2, new __HttpRequest({
842
826
  protocol: protocol,
843
827
  hostname: hostname,
@@ -872,8 +856,7 @@ export var serializeAws_restJson1PutConfigurationSetReputationOptionsCommand = f
872
856
  else {
873
857
  throw new Error("No value provided for input HTTP label: ConfigurationSetName.");
874
858
  }
875
- body = JSON.stringify(__assign({}, (input.ReputationMetricsEnabled !== undefined &&
876
- input.ReputationMetricsEnabled !== null && { ReputationMetricsEnabled: input.ReputationMetricsEnabled })));
859
+ body = JSON.stringify(__assign({}, (input.ReputationMetricsEnabled != null && { ReputationMetricsEnabled: input.ReputationMetricsEnabled })));
877
860
  return [2, new __HttpRequest({
878
861
  protocol: protocol,
879
862
  hostname: hostname,
@@ -908,8 +891,7 @@ export var serializeAws_restJson1PutConfigurationSetSendingOptionsCommand = func
908
891
  else {
909
892
  throw new Error("No value provided for input HTTP label: ConfigurationSetName.");
910
893
  }
911
- body = JSON.stringify(__assign({}, (input.SendingEnabled !== undefined &&
912
- input.SendingEnabled !== null && { SendingEnabled: input.SendingEnabled })));
894
+ body = JSON.stringify(__assign({}, (input.SendingEnabled != null && { SendingEnabled: input.SendingEnabled })));
913
895
  return [2, new __HttpRequest({
914
896
  protocol: protocol,
915
897
  hostname: hostname,
@@ -944,8 +926,7 @@ export var serializeAws_restJson1PutConfigurationSetTrackingOptionsCommand = fun
944
926
  else {
945
927
  throw new Error("No value provided for input HTTP label: ConfigurationSetName.");
946
928
  }
947
- body = JSON.stringify(__assign({}, (input.CustomRedirectDomain !== undefined &&
948
- input.CustomRedirectDomain !== null && { CustomRedirectDomain: input.CustomRedirectDomain })));
929
+ body = JSON.stringify(__assign({}, (input.CustomRedirectDomain != null && { CustomRedirectDomain: input.CustomRedirectDomain })));
949
930
  return [2, new __HttpRequest({
950
931
  protocol: protocol,
951
932
  hostname: hostname,
@@ -979,8 +960,7 @@ export var serializeAws_restJson1PutDedicatedIpInPoolCommand = function (input,
979
960
  else {
980
961
  throw new Error("No value provided for input HTTP label: Ip.");
981
962
  }
982
- body = JSON.stringify(__assign({}, (input.DestinationPoolName !== undefined &&
983
- input.DestinationPoolName !== null && { DestinationPoolName: input.DestinationPoolName })));
963
+ body = JSON.stringify(__assign({}, (input.DestinationPoolName != null && { DestinationPoolName: input.DestinationPoolName })));
984
964
  return [2, new __HttpRequest({
985
965
  protocol: protocol,
986
966
  hostname: hostname,
@@ -1014,8 +994,7 @@ export var serializeAws_restJson1PutDedicatedIpWarmupAttributesCommand = functio
1014
994
  else {
1015
995
  throw new Error("No value provided for input HTTP label: Ip.");
1016
996
  }
1017
- body = JSON.stringify(__assign({}, (input.WarmupPercentage !== undefined &&
1018
- input.WarmupPercentage !== null && { WarmupPercentage: input.WarmupPercentage })));
997
+ body = JSON.stringify(__assign({}, (input.WarmupPercentage != null && { WarmupPercentage: input.WarmupPercentage })));
1019
998
  return [2, new __HttpRequest({
1020
999
  protocol: protocol,
1021
1000
  hostname: hostname,
@@ -1039,9 +1018,7 @@ export var serializeAws_restJson1PutDeliverabilityDashboardOptionCommand = funct
1039
1018
  "content-type": "application/json",
1040
1019
  };
1041
1020
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/email/deliverability-dashboard";
1042
- body = JSON.stringify(__assign(__assign({}, (input.DashboardEnabled !== undefined &&
1043
- input.DashboardEnabled !== null && { DashboardEnabled: input.DashboardEnabled })), (input.SubscribedDomains !== undefined &&
1044
- input.SubscribedDomains !== null && {
1021
+ body = JSON.stringify(__assign(__assign({}, (input.DashboardEnabled != null && { DashboardEnabled: input.DashboardEnabled })), (input.SubscribedDomains != null && {
1045
1022
  SubscribedDomains: serializeAws_restJson1DomainDeliverabilityTrackingOptions(input.SubscribedDomains, context),
1046
1023
  })));
1047
1024
  return [2, new __HttpRequest({
@@ -1077,8 +1054,7 @@ export var serializeAws_restJson1PutEmailIdentityDkimAttributesCommand = functio
1077
1054
  else {
1078
1055
  throw new Error("No value provided for input HTTP label: EmailIdentity.");
1079
1056
  }
1080
- body = JSON.stringify(__assign({}, (input.SigningEnabled !== undefined &&
1081
- input.SigningEnabled !== null && { SigningEnabled: input.SigningEnabled })));
1057
+ body = JSON.stringify(__assign({}, (input.SigningEnabled != null && { SigningEnabled: input.SigningEnabled })));
1082
1058
  return [2, new __HttpRequest({
1083
1059
  protocol: protocol,
1084
1060
  hostname: hostname,
@@ -1113,8 +1089,7 @@ export var serializeAws_restJson1PutEmailIdentityFeedbackAttributesCommand = fun
1113
1089
  else {
1114
1090
  throw new Error("No value provided for input HTTP label: EmailIdentity.");
1115
1091
  }
1116
- body = JSON.stringify(__assign({}, (input.EmailForwardingEnabled !== undefined &&
1117
- input.EmailForwardingEnabled !== null && { EmailForwardingEnabled: input.EmailForwardingEnabled })));
1092
+ body = JSON.stringify(__assign({}, (input.EmailForwardingEnabled != null && { EmailForwardingEnabled: input.EmailForwardingEnabled })));
1118
1093
  return [2, new __HttpRequest({
1119
1094
  protocol: protocol,
1120
1095
  hostname: hostname,
@@ -1149,9 +1124,7 @@ export var serializeAws_restJson1PutEmailIdentityMailFromAttributesCommand = fun
1149
1124
  else {
1150
1125
  throw new Error("No value provided for input HTTP label: EmailIdentity.");
1151
1126
  }
1152
- body = JSON.stringify(__assign(__assign({}, (input.BehaviorOnMxFailure !== undefined &&
1153
- input.BehaviorOnMxFailure !== null && { BehaviorOnMxFailure: input.BehaviorOnMxFailure })), (input.MailFromDomain !== undefined &&
1154
- input.MailFromDomain !== null && { MailFromDomain: input.MailFromDomain })));
1127
+ body = JSON.stringify(__assign(__assign({}, (input.BehaviorOnMxFailure != null && { BehaviorOnMxFailure: input.BehaviorOnMxFailure })), (input.MailFromDomain != null && { MailFromDomain: input.MailFromDomain })));
1155
1128
  return [2, new __HttpRequest({
1156
1129
  protocol: protocol,
1157
1130
  hostname: hostname,
@@ -1175,16 +1148,9 @@ export var serializeAws_restJson1SendEmailCommand = function (input, context) {
1175
1148
  "content-type": "application/json",
1176
1149
  };
1177
1150
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/email/outbound-emails";
1178
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ConfigurationSetName !== undefined &&
1179
- input.ConfigurationSetName !== null && { ConfigurationSetName: input.ConfigurationSetName })), (input.Content !== undefined &&
1180
- input.Content !== null && { Content: serializeAws_restJson1EmailContent(input.Content, context) })), (input.Destination !== undefined &&
1181
- input.Destination !== null && { Destination: serializeAws_restJson1Destination(input.Destination, context) })), (input.EmailTags !== undefined &&
1182
- input.EmailTags !== null && { EmailTags: serializeAws_restJson1MessageTagList(input.EmailTags, context) })), (input.FeedbackForwardingEmailAddress !== undefined &&
1183
- input.FeedbackForwardingEmailAddress !== null && {
1151
+ body = JSON.stringify(__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 && {
1184
1152
  FeedbackForwardingEmailAddress: input.FeedbackForwardingEmailAddress,
1185
- })), (input.FromEmailAddress !== undefined &&
1186
- input.FromEmailAddress !== null && { FromEmailAddress: input.FromEmailAddress })), (input.ReplyToAddresses !== undefined &&
1187
- input.ReplyToAddresses !== null && {
1153
+ })), (input.FromEmailAddress != null && { FromEmailAddress: input.FromEmailAddress })), (input.ReplyToAddresses != null && {
1188
1154
  ReplyToAddresses: serializeAws_restJson1EmailAddressList(input.ReplyToAddresses, context),
1189
1155
  })));
1190
1156
  return [2, new __HttpRequest({
@@ -1210,8 +1176,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
1210
1176
  "content-type": "application/json",
1211
1177
  };
1212
1178
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/email/tags";
1213
- body = JSON.stringify(__assign(__assign({}, (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn })), (input.Tags !== undefined &&
1214
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
1179
+ body = JSON.stringify(__assign(__assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
1215
1180
  return [2, new __HttpRequest({
1216
1181
  protocol: protocol,
1217
1182
  hostname: hostname,
@@ -1279,8 +1244,7 @@ export var serializeAws_restJson1UpdateConfigurationSetEventDestinationCommand =
1279
1244
  else {
1280
1245
  throw new Error("No value provided for input HTTP label: EventDestinationName.");
1281
1246
  }
1282
- body = JSON.stringify(__assign({}, (input.EventDestination !== undefined &&
1283
- input.EventDestination !== null && {
1247
+ body = JSON.stringify(__assign({}, (input.EventDestination != null && {
1284
1248
  EventDestination: serializeAws_restJson1EventDestinationDefinition(input.EventDestination, context),
1285
1249
  })));
1286
1250
  return [2, new __HttpRequest({
@@ -4222,20 +4186,15 @@ var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedO
4222
4186
  });
4223
4187
  }); };
4224
4188
  var serializeAws_restJson1Body = function (input, context) {
4225
- return __assign(__assign({}, (input.Html !== undefined &&
4226
- input.Html !== null && { Html: serializeAws_restJson1Content(input.Html, context) })), (input.Text !== undefined &&
4227
- input.Text !== null && { Text: serializeAws_restJson1Content(input.Text, context) }));
4189
+ return __assign(__assign({}, (input.Html != null && { Html: serializeAws_restJson1Content(input.Html, context) })), (input.Text != null && { Text: serializeAws_restJson1Content(input.Text, context) }));
4228
4190
  };
4229
4191
  var serializeAws_restJson1CloudWatchDestination = function (input, context) {
4230
- return __assign({}, (input.DimensionConfigurations !== undefined &&
4231
- input.DimensionConfigurations !== null && {
4192
+ return __assign({}, (input.DimensionConfigurations != null && {
4232
4193
  DimensionConfigurations: serializeAws_restJson1CloudWatchDimensionConfigurations(input.DimensionConfigurations, context),
4233
4194
  }));
4234
4195
  };
4235
4196
  var serializeAws_restJson1CloudWatchDimensionConfiguration = function (input, context) {
4236
- return __assign(__assign(__assign({}, (input.DefaultDimensionValue !== undefined &&
4237
- input.DefaultDimensionValue !== null && { DefaultDimensionValue: input.DefaultDimensionValue })), (input.DimensionName !== undefined && input.DimensionName !== null && { DimensionName: input.DimensionName })), (input.DimensionValueSource !== undefined &&
4238
- input.DimensionValueSource !== null && { DimensionValueSource: input.DimensionValueSource }));
4197
+ return __assign(__assign(__assign({}, (input.DefaultDimensionValue != null && { DefaultDimensionValue: input.DefaultDimensionValue })), (input.DimensionName != null && { DimensionName: input.DimensionName })), (input.DimensionValueSource != null && { DimensionValueSource: input.DimensionValueSource }));
4239
4198
  };
4240
4199
  var serializeAws_restJson1CloudWatchDimensionConfigurations = function (input, context) {
4241
4200
  return input
@@ -4248,30 +4207,24 @@ var serializeAws_restJson1CloudWatchDimensionConfigurations = function (input, c
4248
4207
  });
4249
4208
  };
4250
4209
  var serializeAws_restJson1Content = function (input, context) {
4251
- return __assign(__assign({}, (input.Charset !== undefined && input.Charset !== null && { Charset: input.Charset })), (input.Data !== undefined && input.Data !== null && { Data: input.Data }));
4210
+ return __assign(__assign({}, (input.Charset != null && { Charset: input.Charset })), (input.Data != null && { Data: input.Data }));
4252
4211
  };
4253
4212
  var serializeAws_restJson1DeliveryOptions = function (input, context) {
4254
- return __assign(__assign({}, (input.SendingPoolName !== undefined &&
4255
- input.SendingPoolName !== null && { SendingPoolName: input.SendingPoolName })), (input.TlsPolicy !== undefined && input.TlsPolicy !== null && { TlsPolicy: input.TlsPolicy }));
4213
+ return __assign(__assign({}, (input.SendingPoolName != null && { SendingPoolName: input.SendingPoolName })), (input.TlsPolicy != null && { TlsPolicy: input.TlsPolicy }));
4256
4214
  };
4257
4215
  var serializeAws_restJson1Destination = function (input, context) {
4258
- return __assign(__assign(__assign({}, (input.BccAddresses !== undefined &&
4259
- input.BccAddresses !== null && {
4216
+ return __assign(__assign(__assign({}, (input.BccAddresses != null && {
4260
4217
  BccAddresses: serializeAws_restJson1EmailAddressList(input.BccAddresses, context),
4261
- })), (input.CcAddresses !== undefined &&
4262
- input.CcAddresses !== null && {
4218
+ })), (input.CcAddresses != null && {
4263
4219
  CcAddresses: serializeAws_restJson1EmailAddressList(input.CcAddresses, context),
4264
- })), (input.ToAddresses !== undefined &&
4265
- input.ToAddresses !== null && {
4220
+ })), (input.ToAddresses != null && {
4266
4221
  ToAddresses: serializeAws_restJson1EmailAddressList(input.ToAddresses, context),
4267
4222
  }));
4268
4223
  };
4269
4224
  var serializeAws_restJson1DomainDeliverabilityTrackingOption = function (input, context) {
4270
- return __assign(__assign(__assign({}, (input.Domain !== undefined && input.Domain !== null && { Domain: input.Domain })), (input.InboxPlacementTrackingOption !== undefined &&
4271
- input.InboxPlacementTrackingOption !== null && {
4225
+ return __assign(__assign(__assign({}, (input.Domain != null && { Domain: input.Domain })), (input.InboxPlacementTrackingOption != null && {
4272
4226
  InboxPlacementTrackingOption: serializeAws_restJson1InboxPlacementTrackingOption(input.InboxPlacementTrackingOption, context),
4273
- })), (input.SubscriptionStartDate !== undefined &&
4274
- input.SubscriptionStartDate !== null && {
4227
+ })), (input.SubscriptionStartDate != null && {
4275
4228
  SubscriptionStartDate: Math.round(input.SubscriptionStartDate.getTime() / 1000),
4276
4229
  }));
4277
4230
  };
@@ -4296,25 +4249,18 @@ var serializeAws_restJson1EmailAddressList = function (input, context) {
4296
4249
  });
4297
4250
  };
4298
4251
  var serializeAws_restJson1EmailContent = function (input, context) {
4299
- return __assign(__assign(__assign({}, (input.Raw !== undefined && input.Raw !== null && { Raw: serializeAws_restJson1RawMessage(input.Raw, context) })), (input.Simple !== undefined &&
4300
- input.Simple !== null && { Simple: serializeAws_restJson1Message(input.Simple, context) })), (input.Template !== undefined &&
4301
- input.Template !== null && { Template: serializeAws_restJson1Template(input.Template, context) }));
4252
+ 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) }));
4302
4253
  };
4303
4254
  var serializeAws_restJson1EventDestinationDefinition = function (input, context) {
4304
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.CloudWatchDestination !== undefined &&
4305
- input.CloudWatchDestination !== null && {
4255
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.CloudWatchDestination != null && {
4306
4256
  CloudWatchDestination: serializeAws_restJson1CloudWatchDestination(input.CloudWatchDestination, context),
4307
- })), (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled })), (input.KinesisFirehoseDestination !== undefined &&
4308
- input.KinesisFirehoseDestination !== null && {
4257
+ })), (input.Enabled != null && { Enabled: input.Enabled })), (input.KinesisFirehoseDestination != null && {
4309
4258
  KinesisFirehoseDestination: serializeAws_restJson1KinesisFirehoseDestination(input.KinesisFirehoseDestination, context),
4310
- })), (input.MatchingEventTypes !== undefined &&
4311
- input.MatchingEventTypes !== null && {
4259
+ })), (input.MatchingEventTypes != null && {
4312
4260
  MatchingEventTypes: serializeAws_restJson1EventTypes(input.MatchingEventTypes, context),
4313
- })), (input.PinpointDestination !== undefined &&
4314
- input.PinpointDestination !== null && {
4261
+ })), (input.PinpointDestination != null && {
4315
4262
  PinpointDestination: serializeAws_restJson1PinpointDestination(input.PinpointDestination, context),
4316
- })), (input.SnsDestination !== undefined &&
4317
- input.SnsDestination !== null && {
4263
+ })), (input.SnsDestination != null && {
4318
4264
  SnsDestination: serializeAws_restJson1SnsDestination(input.SnsDestination, context),
4319
4265
  }));
4320
4266
  };
@@ -4329,8 +4275,7 @@ var serializeAws_restJson1EventTypes = function (input, context) {
4329
4275
  });
4330
4276
  };
4331
4277
  var serializeAws_restJson1InboxPlacementTrackingOption = function (input, context) {
4332
- return __assign(__assign({}, (input.Global !== undefined && input.Global !== null && { Global: input.Global })), (input.TrackedIsps !== undefined &&
4333
- input.TrackedIsps !== null && { TrackedIsps: serializeAws_restJson1IspNameList(input.TrackedIsps, context) }));
4278
+ return __assign(__assign({}, (input.Global != null && { Global: input.Global })), (input.TrackedIsps != null && { TrackedIsps: serializeAws_restJson1IspNameList(input.TrackedIsps, context) }));
4334
4279
  };
4335
4280
  var serializeAws_restJson1IspNameList = function (input, context) {
4336
4281
  return input
@@ -4343,15 +4288,13 @@ var serializeAws_restJson1IspNameList = function (input, context) {
4343
4288
  });
4344
4289
  };
4345
4290
  var serializeAws_restJson1KinesisFirehoseDestination = function (input, context) {
4346
- return __assign(__assign({}, (input.DeliveryStreamArn !== undefined &&
4347
- input.DeliveryStreamArn !== null && { DeliveryStreamArn: input.DeliveryStreamArn })), (input.IamRoleArn !== undefined && input.IamRoleArn !== null && { IamRoleArn: input.IamRoleArn }));
4291
+ return __assign(__assign({}, (input.DeliveryStreamArn != null && { DeliveryStreamArn: input.DeliveryStreamArn })), (input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }));
4348
4292
  };
4349
4293
  var serializeAws_restJson1Message = function (input, context) {
4350
- return __assign(__assign({}, (input.Body !== undefined && input.Body !== null && { Body: serializeAws_restJson1Body(input.Body, context) })), (input.Subject !== undefined &&
4351
- input.Subject !== null && { Subject: serializeAws_restJson1Content(input.Subject, context) }));
4294
+ return __assign(__assign({}, (input.Body != null && { Body: serializeAws_restJson1Body(input.Body, context) })), (input.Subject != null && { Subject: serializeAws_restJson1Content(input.Subject, context) }));
4352
4295
  };
4353
4296
  var serializeAws_restJson1MessageTag = function (input, context) {
4354
- return __assign(__assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
4297
+ return __assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.Value != null && { Value: input.Value }));
4355
4298
  };
4356
4299
  var serializeAws_restJson1MessageTagList = function (input, context) {
4357
4300
  return input
@@ -4364,26 +4307,22 @@ var serializeAws_restJson1MessageTagList = function (input, context) {
4364
4307
  });
4365
4308
  };
4366
4309
  var serializeAws_restJson1PinpointDestination = function (input, context) {
4367
- return __assign({}, (input.ApplicationArn !== undefined &&
4368
- input.ApplicationArn !== null && { ApplicationArn: input.ApplicationArn }));
4310
+ return __assign({}, (input.ApplicationArn != null && { ApplicationArn: input.ApplicationArn }));
4369
4311
  };
4370
4312
  var serializeAws_restJson1RawMessage = function (input, context) {
4371
- return __assign({}, (input.Data !== undefined && input.Data !== null && { Data: context.base64Encoder(input.Data) }));
4313
+ return __assign({}, (input.Data != null && { Data: context.base64Encoder(input.Data) }));
4372
4314
  };
4373
4315
  var serializeAws_restJson1ReputationOptions = function (input, context) {
4374
- return __assign(__assign({}, (input.LastFreshStart !== undefined &&
4375
- input.LastFreshStart !== null && { LastFreshStart: Math.round(input.LastFreshStart.getTime() / 1000) })), (input.ReputationMetricsEnabled !== undefined &&
4376
- input.ReputationMetricsEnabled !== null && { ReputationMetricsEnabled: input.ReputationMetricsEnabled }));
4316
+ return __assign(__assign({}, (input.LastFreshStart != null && { LastFreshStart: Math.round(input.LastFreshStart.getTime() / 1000) })), (input.ReputationMetricsEnabled != null && { ReputationMetricsEnabled: input.ReputationMetricsEnabled }));
4377
4317
  };
4378
4318
  var serializeAws_restJson1SendingOptions = function (input, context) {
4379
- return __assign({}, (input.SendingEnabled !== undefined &&
4380
- input.SendingEnabled !== null && { SendingEnabled: input.SendingEnabled }));
4319
+ return __assign({}, (input.SendingEnabled != null && { SendingEnabled: input.SendingEnabled }));
4381
4320
  };
4382
4321
  var serializeAws_restJson1SnsDestination = function (input, context) {
4383
- return __assign({}, (input.TopicArn !== undefined && input.TopicArn !== null && { TopicArn: input.TopicArn }));
4322
+ return __assign({}, (input.TopicArn != null && { TopicArn: input.TopicArn }));
4384
4323
  };
4385
4324
  var serializeAws_restJson1Tag = function (input, context) {
4386
- return __assign(__assign({}, (input.Key !== undefined && input.Key !== null && { Key: input.Key })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
4325
+ return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
4387
4326
  };
4388
4327
  var serializeAws_restJson1TagList = function (input, context) {
4389
4328
  return input
@@ -4396,11 +4335,10 @@ var serializeAws_restJson1TagList = function (input, context) {
4396
4335
  });
4397
4336
  };
4398
4337
  var serializeAws_restJson1Template = function (input, context) {
4399
- return __assign(__assign({}, (input.TemplateArn !== undefined && input.TemplateArn !== null && { TemplateArn: input.TemplateArn })), (input.TemplateData !== undefined && input.TemplateData !== null && { TemplateData: input.TemplateData }));
4338
+ return __assign(__assign({}, (input.TemplateArn != null && { TemplateArn: input.TemplateArn })), (input.TemplateData != null && { TemplateData: input.TemplateData }));
4400
4339
  };
4401
4340
  var serializeAws_restJson1TrackingOptions = function (input, context) {
4402
- return __assign({}, (input.CustomRedirectDomain !== undefined &&
4403
- input.CustomRedirectDomain !== null && { CustomRedirectDomain: input.CustomRedirectDomain }));
4341
+ return __assign({}, (input.CustomRedirectDomain != null && { CustomRedirectDomain: input.CustomRedirectDomain }));
4404
4342
  };
4405
4343
  var deserializeAws_restJson1BlacklistEntries = function (output, context) {
4406
4344
  var retVal = (output || [])
@@ -4416,7 +4354,7 @@ var deserializeAws_restJson1BlacklistEntries = function (output, context) {
4416
4354
  var deserializeAws_restJson1BlacklistEntry = function (output, context) {
4417
4355
  return {
4418
4356
  Description: __expectString(output.Description),
4419
- ListingTime: output.ListingTime !== undefined && output.ListingTime !== null
4357
+ ListingTime: output.ListingTime != null
4420
4358
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ListingTime)))
4421
4359
  : undefined,
4422
4360
  RblName: __expectString(output.RblName),
@@ -4434,7 +4372,7 @@ var deserializeAws_restJson1BlacklistReport = function (output, context) {
4434
4372
  };
4435
4373
  var deserializeAws_restJson1CloudWatchDestination = function (output, context) {
4436
4374
  return {
4437
- DimensionConfigurations: output.DimensionConfigurations !== undefined && output.DimensionConfigurations !== null
4375
+ DimensionConfigurations: output.DimensionConfigurations != null
4438
4376
  ? deserializeAws_restJson1CloudWatchDimensionConfigurations(output.DimensionConfigurations, context)
4439
4377
  : undefined,
4440
4378
  };
@@ -4470,13 +4408,11 @@ var deserializeAws_restJson1ConfigurationSetNameList = function (output, context
4470
4408
  };
4471
4409
  var deserializeAws_restJson1DailyVolume = function (output, context) {
4472
4410
  return {
4473
- DomainIspPlacements: output.DomainIspPlacements !== undefined && output.DomainIspPlacements !== null
4411
+ DomainIspPlacements: output.DomainIspPlacements != null
4474
4412
  ? deserializeAws_restJson1DomainIspPlacements(output.DomainIspPlacements, context)
4475
4413
  : undefined,
4476
- StartDate: output.StartDate !== undefined && output.StartDate !== null
4477
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartDate)))
4478
- : undefined,
4479
- VolumeStatistics: output.VolumeStatistics !== undefined && output.VolumeStatistics !== null
4414
+ StartDate: output.StartDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartDate))) : undefined,
4415
+ VolumeStatistics: output.VolumeStatistics != null
4480
4416
  ? deserializeAws_restJson1VolumeStatistics(output.VolumeStatistics, context)
4481
4417
  : undefined,
4482
4418
  };
@@ -4513,9 +4449,7 @@ var deserializeAws_restJson1DedicatedIpList = function (output, context) {
4513
4449
  };
4514
4450
  var deserializeAws_restJson1DeliverabilityTestReport = function (output, context) {
4515
4451
  return {
4516
- CreateDate: output.CreateDate !== undefined && output.CreateDate !== null
4517
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate)))
4518
- : undefined,
4452
+ CreateDate: output.CreateDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate))) : undefined,
4519
4453
  DeliverabilityTestStatus: __expectString(output.DeliverabilityTestStatus),
4520
4454
  FromEmailAddress: __expectString(output.FromEmailAddress),
4521
4455
  ReportId: __expectString(output.ReportId),
@@ -4544,9 +4478,7 @@ var deserializeAws_restJson1DkimAttributes = function (output, context) {
4544
4478
  return {
4545
4479
  SigningEnabled: __expectBoolean(output.SigningEnabled),
4546
4480
  Status: __expectString(output.Status),
4547
- Tokens: output.Tokens !== undefined && output.Tokens !== null
4548
- ? deserializeAws_restJson1DnsTokenList(output.Tokens, context)
4549
- : undefined,
4481
+ Tokens: output.Tokens != null ? deserializeAws_restJson1DnsTokenList(output.Tokens, context) : undefined,
4550
4482
  };
4551
4483
  };
4552
4484
  var deserializeAws_restJson1DnsTokenList = function (output, context) {
@@ -4564,24 +4496,20 @@ var deserializeAws_restJson1DomainDeliverabilityCampaign = function (output, con
4564
4496
  return {
4565
4497
  CampaignId: __expectString(output.CampaignId),
4566
4498
  DeleteRate: __limitedParseDouble(output.DeleteRate),
4567
- Esps: output.Esps !== undefined && output.Esps !== null
4568
- ? deserializeAws_restJson1Esps(output.Esps, context)
4569
- : undefined,
4570
- FirstSeenDateTime: output.FirstSeenDateTime !== undefined && output.FirstSeenDateTime !== null
4499
+ Esps: output.Esps != null ? deserializeAws_restJson1Esps(output.Esps, context) : undefined,
4500
+ FirstSeenDateTime: output.FirstSeenDateTime != null
4571
4501
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.FirstSeenDateTime)))
4572
4502
  : undefined,
4573
4503
  FromAddress: __expectString(output.FromAddress),
4574
4504
  ImageUrl: __expectString(output.ImageUrl),
4575
4505
  InboxCount: __expectLong(output.InboxCount),
4576
- LastSeenDateTime: output.LastSeenDateTime !== undefined && output.LastSeenDateTime !== null
4506
+ LastSeenDateTime: output.LastSeenDateTime != null
4577
4507
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastSeenDateTime)))
4578
4508
  : undefined,
4579
4509
  ProjectedVolume: __expectLong(output.ProjectedVolume),
4580
4510
  ReadDeleteRate: __limitedParseDouble(output.ReadDeleteRate),
4581
4511
  ReadRate: __limitedParseDouble(output.ReadRate),
4582
- SendingIps: output.SendingIps !== undefined && output.SendingIps !== null
4583
- ? deserializeAws_restJson1IpList(output.SendingIps, context)
4584
- : undefined,
4512
+ SendingIps: output.SendingIps != null ? deserializeAws_restJson1IpList(output.SendingIps, context) : undefined,
4585
4513
  SpamCount: __expectLong(output.SpamCount),
4586
4514
  Subject: __expectString(output.Subject),
4587
4515
  };
@@ -4600,10 +4528,10 @@ var deserializeAws_restJson1DomainDeliverabilityCampaignList = function (output,
4600
4528
  var deserializeAws_restJson1DomainDeliverabilityTrackingOption = function (output, context) {
4601
4529
  return {
4602
4530
  Domain: __expectString(output.Domain),
4603
- InboxPlacementTrackingOption: output.InboxPlacementTrackingOption !== undefined && output.InboxPlacementTrackingOption !== null
4531
+ InboxPlacementTrackingOption: output.InboxPlacementTrackingOption != null
4604
4532
  ? deserializeAws_restJson1InboxPlacementTrackingOption(output.InboxPlacementTrackingOption, context)
4605
4533
  : undefined,
4606
- SubscriptionStartDate: output.SubscriptionStartDate !== undefined && output.SubscriptionStartDate !== null
4534
+ SubscriptionStartDate: output.SubscriptionStartDate != null
4607
4535
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubscriptionStartDate)))
4608
4536
  : undefined,
4609
4537
  };
@@ -4652,21 +4580,21 @@ var deserializeAws_restJson1Esps = function (output, context) {
4652
4580
  };
4653
4581
  var deserializeAws_restJson1EventDestination = function (output, context) {
4654
4582
  return {
4655
- CloudWatchDestination: output.CloudWatchDestination !== undefined && output.CloudWatchDestination !== null
4583
+ CloudWatchDestination: output.CloudWatchDestination != null
4656
4584
  ? deserializeAws_restJson1CloudWatchDestination(output.CloudWatchDestination, context)
4657
4585
  : undefined,
4658
4586
  Enabled: __expectBoolean(output.Enabled),
4659
- KinesisFirehoseDestination: output.KinesisFirehoseDestination !== undefined && output.KinesisFirehoseDestination !== null
4587
+ KinesisFirehoseDestination: output.KinesisFirehoseDestination != null
4660
4588
  ? deserializeAws_restJson1KinesisFirehoseDestination(output.KinesisFirehoseDestination, context)
4661
4589
  : undefined,
4662
- MatchingEventTypes: output.MatchingEventTypes !== undefined && output.MatchingEventTypes !== null
4590
+ MatchingEventTypes: output.MatchingEventTypes != null
4663
4591
  ? deserializeAws_restJson1EventTypes(output.MatchingEventTypes, context)
4664
4592
  : undefined,
4665
4593
  Name: __expectString(output.Name),
4666
- PinpointDestination: output.PinpointDestination !== undefined && output.PinpointDestination !== null
4594
+ PinpointDestination: output.PinpointDestination != null
4667
4595
  ? deserializeAws_restJson1PinpointDestination(output.PinpointDestination, context)
4668
4596
  : undefined,
4669
- SnsDestination: output.SnsDestination !== undefined && output.SnsDestination !== null
4597
+ SnsDestination: output.SnsDestination != null
4670
4598
  ? deserializeAws_restJson1SnsDestination(output.SnsDestination, context)
4671
4599
  : undefined,
4672
4600
  };
@@ -4714,9 +4642,7 @@ var deserializeAws_restJson1IdentityInfoList = function (output, context) {
4714
4642
  var deserializeAws_restJson1InboxPlacementTrackingOption = function (output, context) {
4715
4643
  return {
4716
4644
  Global: __expectBoolean(output.Global),
4717
- TrackedIsps: output.TrackedIsps !== undefined && output.TrackedIsps !== null
4718
- ? deserializeAws_restJson1IspNameList(output.TrackedIsps, context)
4719
- : undefined,
4645
+ TrackedIsps: output.TrackedIsps != null ? deserializeAws_restJson1IspNameList(output.TrackedIsps, context) : undefined,
4720
4646
  };
4721
4647
  };
4722
4648
  var deserializeAws_restJson1IpList = function (output, context) {
@@ -4744,7 +4670,7 @@ var deserializeAws_restJson1IspNameList = function (output, context) {
4744
4670
  var deserializeAws_restJson1IspPlacement = function (output, context) {
4745
4671
  return {
4746
4672
  IspName: __expectString(output.IspName),
4747
- PlacementStatistics: output.PlacementStatistics !== undefined && output.PlacementStatistics !== null
4673
+ PlacementStatistics: output.PlacementStatistics != null
4748
4674
  ? deserializeAws_restJson1PlacementStatistics(output.PlacementStatistics, context)
4749
4675
  : undefined,
4750
4676
  };
@@ -4786,11 +4712,11 @@ var deserializeAws_restJson1MailFromAttributes = function (output, context) {
4786
4712
  };
4787
4713
  var deserializeAws_restJson1OverallVolume = function (output, context) {
4788
4714
  return {
4789
- DomainIspPlacements: output.DomainIspPlacements !== undefined && output.DomainIspPlacements !== null
4715
+ DomainIspPlacements: output.DomainIspPlacements != null
4790
4716
  ? deserializeAws_restJson1DomainIspPlacements(output.DomainIspPlacements, context)
4791
4717
  : undefined,
4792
4718
  ReadRatePercent: __limitedParseDouble(output.ReadRatePercent),
4793
- VolumeStatistics: output.VolumeStatistics !== undefined && output.VolumeStatistics !== null
4719
+ VolumeStatistics: output.VolumeStatistics != null
4794
4720
  ? deserializeAws_restJson1VolumeStatistics(output.VolumeStatistics, context)
4795
4721
  : undefined,
4796
4722
  };
@@ -4811,7 +4737,7 @@ var deserializeAws_restJson1PlacementStatistics = function (output, context) {
4811
4737
  };
4812
4738
  var deserializeAws_restJson1ReputationOptions = function (output, context) {
4813
4739
  return {
4814
- LastFreshStart: output.LastFreshStart !== undefined && output.LastFreshStart !== null
4740
+ LastFreshStart: output.LastFreshStart != null
4815
4741
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastFreshStart)))
4816
4742
  : undefined,
4817
4743
  ReputationMetricsEnabled: __expectBoolean(output.ReputationMetricsEnabled),