@aws-sdk/client-pinpoint-email 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 +111 -182
- package/dist-es/protocols/Aws_restJson1.js +79 -150
- package/package.json +26 -26
|
@@ -14,24 +14,18 @@ const serializeAws_restJson1CreateConfigurationSetCommand = async (input, contex
|
|
|
14
14
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/configuration-sets";
|
|
15
15
|
let body;
|
|
16
16
|
body = JSON.stringify({
|
|
17
|
-
...(input.ConfigurationSetName
|
|
18
|
-
|
|
19
|
-
...(input.DeliveryOptions !== undefined &&
|
|
20
|
-
input.DeliveryOptions !== null && {
|
|
17
|
+
...(input.ConfigurationSetName != null && { ConfigurationSetName: input.ConfigurationSetName }),
|
|
18
|
+
...(input.DeliveryOptions != null && {
|
|
21
19
|
DeliveryOptions: serializeAws_restJson1DeliveryOptions(input.DeliveryOptions, context),
|
|
22
20
|
}),
|
|
23
|
-
...(input.ReputationOptions
|
|
24
|
-
input.ReputationOptions !== null && {
|
|
21
|
+
...(input.ReputationOptions != null && {
|
|
25
22
|
ReputationOptions: serializeAws_restJson1ReputationOptions(input.ReputationOptions, context),
|
|
26
23
|
}),
|
|
27
|
-
...(input.SendingOptions
|
|
28
|
-
input.SendingOptions !== null && {
|
|
24
|
+
...(input.SendingOptions != null && {
|
|
29
25
|
SendingOptions: serializeAws_restJson1SendingOptions(input.SendingOptions, context),
|
|
30
26
|
}),
|
|
31
|
-
...(input.Tags
|
|
32
|
-
|
|
33
|
-
...(input.TrackingOptions !== undefined &&
|
|
34
|
-
input.TrackingOptions !== null && {
|
|
27
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
28
|
+
...(input.TrackingOptions != null && {
|
|
35
29
|
TrackingOptions: serializeAws_restJson1TrackingOptions(input.TrackingOptions, context),
|
|
36
30
|
}),
|
|
37
31
|
});
|
|
@@ -65,12 +59,10 @@ const serializeAws_restJson1CreateConfigurationSetEventDestinationCommand = asyn
|
|
|
65
59
|
}
|
|
66
60
|
let body;
|
|
67
61
|
body = JSON.stringify({
|
|
68
|
-
...(input.EventDestination
|
|
69
|
-
input.EventDestination !== null && {
|
|
62
|
+
...(input.EventDestination != null && {
|
|
70
63
|
EventDestination: serializeAws_restJson1EventDestinationDefinition(input.EventDestination, context),
|
|
71
64
|
}),
|
|
72
|
-
...(input.EventDestinationName
|
|
73
|
-
input.EventDestinationName !== null && { EventDestinationName: input.EventDestinationName }),
|
|
65
|
+
...(input.EventDestinationName != null && { EventDestinationName: input.EventDestinationName }),
|
|
74
66
|
});
|
|
75
67
|
return new protocol_http_1.HttpRequest({
|
|
76
68
|
protocol,
|
|
@@ -91,9 +83,8 @@ const serializeAws_restJson1CreateDedicatedIpPoolCommand = async (input, context
|
|
|
91
83
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/dedicated-ip-pools";
|
|
92
84
|
let body;
|
|
93
85
|
body = JSON.stringify({
|
|
94
|
-
...(input.PoolName
|
|
95
|
-
...(input.Tags
|
|
96
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
86
|
+
...(input.PoolName != null && { PoolName: input.PoolName }),
|
|
87
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
97
88
|
});
|
|
98
89
|
return new protocol_http_1.HttpRequest({
|
|
99
90
|
protocol,
|
|
@@ -114,13 +105,10 @@ const serializeAws_restJson1CreateDeliverabilityTestReportCommand = async (input
|
|
|
114
105
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/deliverability-dashboard/test";
|
|
115
106
|
let body;
|
|
116
107
|
body = JSON.stringify({
|
|
117
|
-
...(input.Content
|
|
118
|
-
|
|
119
|
-
...(input.
|
|
120
|
-
|
|
121
|
-
...(input.ReportName !== undefined && input.ReportName !== null && { ReportName: input.ReportName }),
|
|
122
|
-
...(input.Tags !== undefined &&
|
|
123
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
108
|
+
...(input.Content != null && { Content: serializeAws_restJson1EmailContent(input.Content, context) }),
|
|
109
|
+
...(input.FromEmailAddress != null && { FromEmailAddress: input.FromEmailAddress }),
|
|
110
|
+
...(input.ReportName != null && { ReportName: input.ReportName }),
|
|
111
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
124
112
|
});
|
|
125
113
|
return new protocol_http_1.HttpRequest({
|
|
126
114
|
protocol,
|
|
@@ -141,9 +129,8 @@ const serializeAws_restJson1CreateEmailIdentityCommand = async (input, context)
|
|
|
141
129
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/identities";
|
|
142
130
|
let body;
|
|
143
131
|
body = JSON.stringify({
|
|
144
|
-
...(input.EmailIdentity
|
|
145
|
-
...(input.Tags
|
|
146
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
132
|
+
...(input.EmailIdentity != null && { EmailIdentity: input.EmailIdentity }),
|
|
133
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
147
134
|
});
|
|
148
135
|
return new protocol_http_1.HttpRequest({
|
|
149
136
|
protocol,
|
|
@@ -694,8 +681,7 @@ const serializeAws_restJson1PutAccountDedicatedIpWarmupAttributesCommand = async
|
|
|
694
681
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/account/dedicated-ips/warmup";
|
|
695
682
|
let body;
|
|
696
683
|
body = JSON.stringify({
|
|
697
|
-
...(input.AutoWarmupEnabled
|
|
698
|
-
input.AutoWarmupEnabled !== null && { AutoWarmupEnabled: input.AutoWarmupEnabled }),
|
|
684
|
+
...(input.AutoWarmupEnabled != null && { AutoWarmupEnabled: input.AutoWarmupEnabled }),
|
|
699
685
|
});
|
|
700
686
|
return new protocol_http_1.HttpRequest({
|
|
701
687
|
protocol,
|
|
@@ -716,8 +702,7 @@ const serializeAws_restJson1PutAccountSendingAttributesCommand = async (input, c
|
|
|
716
702
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/account/sending";
|
|
717
703
|
let body;
|
|
718
704
|
body = JSON.stringify({
|
|
719
|
-
...(input.SendingEnabled
|
|
720
|
-
input.SendingEnabled !== null && { SendingEnabled: input.SendingEnabled }),
|
|
705
|
+
...(input.SendingEnabled != null && { SendingEnabled: input.SendingEnabled }),
|
|
721
706
|
});
|
|
722
707
|
return new protocol_http_1.HttpRequest({
|
|
723
708
|
protocol,
|
|
@@ -749,9 +734,8 @@ const serializeAws_restJson1PutConfigurationSetDeliveryOptionsCommand = async (i
|
|
|
749
734
|
}
|
|
750
735
|
let body;
|
|
751
736
|
body = JSON.stringify({
|
|
752
|
-
...(input.SendingPoolName
|
|
753
|
-
|
|
754
|
-
...(input.TlsPolicy !== undefined && input.TlsPolicy !== null && { TlsPolicy: input.TlsPolicy }),
|
|
737
|
+
...(input.SendingPoolName != null && { SendingPoolName: input.SendingPoolName }),
|
|
738
|
+
...(input.TlsPolicy != null && { TlsPolicy: input.TlsPolicy }),
|
|
755
739
|
});
|
|
756
740
|
return new protocol_http_1.HttpRequest({
|
|
757
741
|
protocol,
|
|
@@ -783,8 +767,7 @@ const serializeAws_restJson1PutConfigurationSetReputationOptionsCommand = async
|
|
|
783
767
|
}
|
|
784
768
|
let body;
|
|
785
769
|
body = JSON.stringify({
|
|
786
|
-
...(input.ReputationMetricsEnabled
|
|
787
|
-
input.ReputationMetricsEnabled !== null && { ReputationMetricsEnabled: input.ReputationMetricsEnabled }),
|
|
770
|
+
...(input.ReputationMetricsEnabled != null && { ReputationMetricsEnabled: input.ReputationMetricsEnabled }),
|
|
788
771
|
});
|
|
789
772
|
return new protocol_http_1.HttpRequest({
|
|
790
773
|
protocol,
|
|
@@ -816,8 +799,7 @@ const serializeAws_restJson1PutConfigurationSetSendingOptionsCommand = async (in
|
|
|
816
799
|
}
|
|
817
800
|
let body;
|
|
818
801
|
body = JSON.stringify({
|
|
819
|
-
...(input.SendingEnabled
|
|
820
|
-
input.SendingEnabled !== null && { SendingEnabled: input.SendingEnabled }),
|
|
802
|
+
...(input.SendingEnabled != null && { SendingEnabled: input.SendingEnabled }),
|
|
821
803
|
});
|
|
822
804
|
return new protocol_http_1.HttpRequest({
|
|
823
805
|
protocol,
|
|
@@ -849,8 +831,7 @@ const serializeAws_restJson1PutConfigurationSetTrackingOptionsCommand = async (i
|
|
|
849
831
|
}
|
|
850
832
|
let body;
|
|
851
833
|
body = JSON.stringify({
|
|
852
|
-
...(input.CustomRedirectDomain
|
|
853
|
-
input.CustomRedirectDomain !== null && { CustomRedirectDomain: input.CustomRedirectDomain }),
|
|
834
|
+
...(input.CustomRedirectDomain != null && { CustomRedirectDomain: input.CustomRedirectDomain }),
|
|
854
835
|
});
|
|
855
836
|
return new protocol_http_1.HttpRequest({
|
|
856
837
|
protocol,
|
|
@@ -881,8 +862,7 @@ const serializeAws_restJson1PutDedicatedIpInPoolCommand = async (input, context)
|
|
|
881
862
|
}
|
|
882
863
|
let body;
|
|
883
864
|
body = JSON.stringify({
|
|
884
|
-
...(input.DestinationPoolName
|
|
885
|
-
input.DestinationPoolName !== null && { DestinationPoolName: input.DestinationPoolName }),
|
|
865
|
+
...(input.DestinationPoolName != null && { DestinationPoolName: input.DestinationPoolName }),
|
|
886
866
|
});
|
|
887
867
|
return new protocol_http_1.HttpRequest({
|
|
888
868
|
protocol,
|
|
@@ -913,8 +893,7 @@ const serializeAws_restJson1PutDedicatedIpWarmupAttributesCommand = async (input
|
|
|
913
893
|
}
|
|
914
894
|
let body;
|
|
915
895
|
body = JSON.stringify({
|
|
916
|
-
...(input.WarmupPercentage
|
|
917
|
-
input.WarmupPercentage !== null && { WarmupPercentage: input.WarmupPercentage }),
|
|
896
|
+
...(input.WarmupPercentage != null && { WarmupPercentage: input.WarmupPercentage }),
|
|
918
897
|
});
|
|
919
898
|
return new protocol_http_1.HttpRequest({
|
|
920
899
|
protocol,
|
|
@@ -935,10 +914,8 @@ const serializeAws_restJson1PutDeliverabilityDashboardOptionCommand = async (inp
|
|
|
935
914
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/deliverability-dashboard";
|
|
936
915
|
let body;
|
|
937
916
|
body = JSON.stringify({
|
|
938
|
-
...(input.DashboardEnabled
|
|
939
|
-
|
|
940
|
-
...(input.SubscribedDomains !== undefined &&
|
|
941
|
-
input.SubscribedDomains !== null && {
|
|
917
|
+
...(input.DashboardEnabled != null && { DashboardEnabled: input.DashboardEnabled }),
|
|
918
|
+
...(input.SubscribedDomains != null && {
|
|
942
919
|
SubscribedDomains: serializeAws_restJson1DomainDeliverabilityTrackingOptions(input.SubscribedDomains, context),
|
|
943
920
|
}),
|
|
944
921
|
});
|
|
@@ -971,8 +948,7 @@ const serializeAws_restJson1PutEmailIdentityDkimAttributesCommand = async (input
|
|
|
971
948
|
}
|
|
972
949
|
let body;
|
|
973
950
|
body = JSON.stringify({
|
|
974
|
-
...(input.SigningEnabled
|
|
975
|
-
input.SigningEnabled !== null && { SigningEnabled: input.SigningEnabled }),
|
|
951
|
+
...(input.SigningEnabled != null && { SigningEnabled: input.SigningEnabled }),
|
|
976
952
|
});
|
|
977
953
|
return new protocol_http_1.HttpRequest({
|
|
978
954
|
protocol,
|
|
@@ -1004,8 +980,7 @@ const serializeAws_restJson1PutEmailIdentityFeedbackAttributesCommand = async (i
|
|
|
1004
980
|
}
|
|
1005
981
|
let body;
|
|
1006
982
|
body = JSON.stringify({
|
|
1007
|
-
...(input.EmailForwardingEnabled
|
|
1008
|
-
input.EmailForwardingEnabled !== null && { EmailForwardingEnabled: input.EmailForwardingEnabled }),
|
|
983
|
+
...(input.EmailForwardingEnabled != null && { EmailForwardingEnabled: input.EmailForwardingEnabled }),
|
|
1009
984
|
});
|
|
1010
985
|
return new protocol_http_1.HttpRequest({
|
|
1011
986
|
protocol,
|
|
@@ -1037,10 +1012,8 @@ const serializeAws_restJson1PutEmailIdentityMailFromAttributesCommand = async (i
|
|
|
1037
1012
|
}
|
|
1038
1013
|
let body;
|
|
1039
1014
|
body = JSON.stringify({
|
|
1040
|
-
...(input.BehaviorOnMxFailure
|
|
1041
|
-
|
|
1042
|
-
...(input.MailFromDomain !== undefined &&
|
|
1043
|
-
input.MailFromDomain !== null && { MailFromDomain: input.MailFromDomain }),
|
|
1015
|
+
...(input.BehaviorOnMxFailure != null && { BehaviorOnMxFailure: input.BehaviorOnMxFailure }),
|
|
1016
|
+
...(input.MailFromDomain != null && { MailFromDomain: input.MailFromDomain }),
|
|
1044
1017
|
});
|
|
1045
1018
|
return new protocol_http_1.HttpRequest({
|
|
1046
1019
|
protocol,
|
|
@@ -1061,22 +1034,15 @@ const serializeAws_restJson1SendEmailCommand = async (input, context) => {
|
|
|
1061
1034
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/outbound-emails";
|
|
1062
1035
|
let body;
|
|
1063
1036
|
body = JSON.stringify({
|
|
1064
|
-
...(input.ConfigurationSetName
|
|
1065
|
-
|
|
1066
|
-
...(input.
|
|
1067
|
-
|
|
1068
|
-
...(input.
|
|
1069
|
-
input.Destination !== null && { Destination: serializeAws_restJson1Destination(input.Destination, context) }),
|
|
1070
|
-
...(input.EmailTags !== undefined &&
|
|
1071
|
-
input.EmailTags !== null && { EmailTags: serializeAws_restJson1MessageTagList(input.EmailTags, context) }),
|
|
1072
|
-
...(input.FeedbackForwardingEmailAddress !== undefined &&
|
|
1073
|
-
input.FeedbackForwardingEmailAddress !== null && {
|
|
1037
|
+
...(input.ConfigurationSetName != null && { ConfigurationSetName: input.ConfigurationSetName }),
|
|
1038
|
+
...(input.Content != null && { Content: serializeAws_restJson1EmailContent(input.Content, context) }),
|
|
1039
|
+
...(input.Destination != null && { Destination: serializeAws_restJson1Destination(input.Destination, context) }),
|
|
1040
|
+
...(input.EmailTags != null && { EmailTags: serializeAws_restJson1MessageTagList(input.EmailTags, context) }),
|
|
1041
|
+
...(input.FeedbackForwardingEmailAddress != null && {
|
|
1074
1042
|
FeedbackForwardingEmailAddress: input.FeedbackForwardingEmailAddress,
|
|
1075
1043
|
}),
|
|
1076
|
-
...(input.FromEmailAddress
|
|
1077
|
-
|
|
1078
|
-
...(input.ReplyToAddresses !== undefined &&
|
|
1079
|
-
input.ReplyToAddresses !== null && {
|
|
1044
|
+
...(input.FromEmailAddress != null && { FromEmailAddress: input.FromEmailAddress }),
|
|
1045
|
+
...(input.ReplyToAddresses != null && {
|
|
1080
1046
|
ReplyToAddresses: serializeAws_restJson1EmailAddressList(input.ReplyToAddresses, context),
|
|
1081
1047
|
}),
|
|
1082
1048
|
});
|
|
@@ -1099,9 +1065,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1099
1065
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/tags";
|
|
1100
1066
|
let body;
|
|
1101
1067
|
body = JSON.stringify({
|
|
1102
|
-
...(input.ResourceArn
|
|
1103
|
-
...(input.Tags
|
|
1104
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
1068
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1069
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
1105
1070
|
});
|
|
1106
1071
|
return new protocol_http_1.HttpRequest({
|
|
1107
1072
|
protocol,
|
|
@@ -1164,8 +1129,7 @@ const serializeAws_restJson1UpdateConfigurationSetEventDestinationCommand = asyn
|
|
|
1164
1129
|
}
|
|
1165
1130
|
let body;
|
|
1166
1131
|
body = JSON.stringify({
|
|
1167
|
-
...(input.EventDestination
|
|
1168
|
-
input.EventDestination !== null && {
|
|
1132
|
+
...(input.EventDestination != null && {
|
|
1169
1133
|
EventDestination: serializeAws_restJson1EventDestinationDefinition(input.EventDestination, context),
|
|
1170
1134
|
}),
|
|
1171
1135
|
});
|
|
@@ -3250,27 +3214,22 @@ const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOu
|
|
|
3250
3214
|
};
|
|
3251
3215
|
const serializeAws_restJson1Body = (input, context) => {
|
|
3252
3216
|
return {
|
|
3253
|
-
...(input.Html
|
|
3254
|
-
|
|
3255
|
-
...(input.Text !== undefined &&
|
|
3256
|
-
input.Text !== null && { Text: serializeAws_restJson1Content(input.Text, context) }),
|
|
3217
|
+
...(input.Html != null && { Html: serializeAws_restJson1Content(input.Html, context) }),
|
|
3218
|
+
...(input.Text != null && { Text: serializeAws_restJson1Content(input.Text, context) }),
|
|
3257
3219
|
};
|
|
3258
3220
|
};
|
|
3259
3221
|
const serializeAws_restJson1CloudWatchDestination = (input, context) => {
|
|
3260
3222
|
return {
|
|
3261
|
-
...(input.DimensionConfigurations
|
|
3262
|
-
input.DimensionConfigurations !== null && {
|
|
3223
|
+
...(input.DimensionConfigurations != null && {
|
|
3263
3224
|
DimensionConfigurations: serializeAws_restJson1CloudWatchDimensionConfigurations(input.DimensionConfigurations, context),
|
|
3264
3225
|
}),
|
|
3265
3226
|
};
|
|
3266
3227
|
};
|
|
3267
3228
|
const serializeAws_restJson1CloudWatchDimensionConfiguration = (input, context) => {
|
|
3268
3229
|
return {
|
|
3269
|
-
...(input.DefaultDimensionValue
|
|
3270
|
-
|
|
3271
|
-
...(input.
|
|
3272
|
-
...(input.DimensionValueSource !== undefined &&
|
|
3273
|
-
input.DimensionValueSource !== null && { DimensionValueSource: input.DimensionValueSource }),
|
|
3230
|
+
...(input.DefaultDimensionValue != null && { DefaultDimensionValue: input.DefaultDimensionValue }),
|
|
3231
|
+
...(input.DimensionName != null && { DimensionName: input.DimensionName }),
|
|
3232
|
+
...(input.DimensionValueSource != null && { DimensionValueSource: input.DimensionValueSource }),
|
|
3274
3233
|
};
|
|
3275
3234
|
};
|
|
3276
3235
|
const serializeAws_restJson1CloudWatchDimensionConfigurations = (input, context) => {
|
|
@@ -3285,42 +3244,36 @@ const serializeAws_restJson1CloudWatchDimensionConfigurations = (input, context)
|
|
|
3285
3244
|
};
|
|
3286
3245
|
const serializeAws_restJson1Content = (input, context) => {
|
|
3287
3246
|
return {
|
|
3288
|
-
...(input.Charset
|
|
3289
|
-
...(input.Data
|
|
3247
|
+
...(input.Charset != null && { Charset: input.Charset }),
|
|
3248
|
+
...(input.Data != null && { Data: input.Data }),
|
|
3290
3249
|
};
|
|
3291
3250
|
};
|
|
3292
3251
|
const serializeAws_restJson1DeliveryOptions = (input, context) => {
|
|
3293
3252
|
return {
|
|
3294
|
-
...(input.SendingPoolName
|
|
3295
|
-
|
|
3296
|
-
...(input.TlsPolicy !== undefined && input.TlsPolicy !== null && { TlsPolicy: input.TlsPolicy }),
|
|
3253
|
+
...(input.SendingPoolName != null && { SendingPoolName: input.SendingPoolName }),
|
|
3254
|
+
...(input.TlsPolicy != null && { TlsPolicy: input.TlsPolicy }),
|
|
3297
3255
|
};
|
|
3298
3256
|
};
|
|
3299
3257
|
const serializeAws_restJson1Destination = (input, context) => {
|
|
3300
3258
|
return {
|
|
3301
|
-
...(input.BccAddresses
|
|
3302
|
-
input.BccAddresses !== null && {
|
|
3259
|
+
...(input.BccAddresses != null && {
|
|
3303
3260
|
BccAddresses: serializeAws_restJson1EmailAddressList(input.BccAddresses, context),
|
|
3304
3261
|
}),
|
|
3305
|
-
...(input.CcAddresses
|
|
3306
|
-
input.CcAddresses !== null && {
|
|
3262
|
+
...(input.CcAddresses != null && {
|
|
3307
3263
|
CcAddresses: serializeAws_restJson1EmailAddressList(input.CcAddresses, context),
|
|
3308
3264
|
}),
|
|
3309
|
-
...(input.ToAddresses
|
|
3310
|
-
input.ToAddresses !== null && {
|
|
3265
|
+
...(input.ToAddresses != null && {
|
|
3311
3266
|
ToAddresses: serializeAws_restJson1EmailAddressList(input.ToAddresses, context),
|
|
3312
3267
|
}),
|
|
3313
3268
|
};
|
|
3314
3269
|
};
|
|
3315
3270
|
const serializeAws_restJson1DomainDeliverabilityTrackingOption = (input, context) => {
|
|
3316
3271
|
return {
|
|
3317
|
-
...(input.Domain
|
|
3318
|
-
...(input.InboxPlacementTrackingOption
|
|
3319
|
-
input.InboxPlacementTrackingOption !== null && {
|
|
3272
|
+
...(input.Domain != null && { Domain: input.Domain }),
|
|
3273
|
+
...(input.InboxPlacementTrackingOption != null && {
|
|
3320
3274
|
InboxPlacementTrackingOption: serializeAws_restJson1InboxPlacementTrackingOption(input.InboxPlacementTrackingOption, context),
|
|
3321
3275
|
}),
|
|
3322
|
-
...(input.SubscriptionStartDate
|
|
3323
|
-
input.SubscriptionStartDate !== null && {
|
|
3276
|
+
...(input.SubscriptionStartDate != null && {
|
|
3324
3277
|
SubscriptionStartDate: Math.round(input.SubscriptionStartDate.getTime() / 1000),
|
|
3325
3278
|
}),
|
|
3326
3279
|
};
|
|
@@ -3347,34 +3300,27 @@ const serializeAws_restJson1EmailAddressList = (input, context) => {
|
|
|
3347
3300
|
};
|
|
3348
3301
|
const serializeAws_restJson1EmailContent = (input, context) => {
|
|
3349
3302
|
return {
|
|
3350
|
-
...(input.Raw
|
|
3351
|
-
...(input.Simple
|
|
3352
|
-
|
|
3353
|
-
...(input.Template !== undefined &&
|
|
3354
|
-
input.Template !== null && { Template: serializeAws_restJson1Template(input.Template, context) }),
|
|
3303
|
+
...(input.Raw != null && { Raw: serializeAws_restJson1RawMessage(input.Raw, context) }),
|
|
3304
|
+
...(input.Simple != null && { Simple: serializeAws_restJson1Message(input.Simple, context) }),
|
|
3305
|
+
...(input.Template != null && { Template: serializeAws_restJson1Template(input.Template, context) }),
|
|
3355
3306
|
};
|
|
3356
3307
|
};
|
|
3357
3308
|
const serializeAws_restJson1EventDestinationDefinition = (input, context) => {
|
|
3358
3309
|
return {
|
|
3359
|
-
...(input.CloudWatchDestination
|
|
3360
|
-
input.CloudWatchDestination !== null && {
|
|
3310
|
+
...(input.CloudWatchDestination != null && {
|
|
3361
3311
|
CloudWatchDestination: serializeAws_restJson1CloudWatchDestination(input.CloudWatchDestination, context),
|
|
3362
3312
|
}),
|
|
3363
|
-
...(input.Enabled
|
|
3364
|
-
...(input.KinesisFirehoseDestination
|
|
3365
|
-
input.KinesisFirehoseDestination !== null && {
|
|
3313
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
3314
|
+
...(input.KinesisFirehoseDestination != null && {
|
|
3366
3315
|
KinesisFirehoseDestination: serializeAws_restJson1KinesisFirehoseDestination(input.KinesisFirehoseDestination, context),
|
|
3367
3316
|
}),
|
|
3368
|
-
...(input.MatchingEventTypes
|
|
3369
|
-
input.MatchingEventTypes !== null && {
|
|
3317
|
+
...(input.MatchingEventTypes != null && {
|
|
3370
3318
|
MatchingEventTypes: serializeAws_restJson1EventTypes(input.MatchingEventTypes, context),
|
|
3371
3319
|
}),
|
|
3372
|
-
...(input.PinpointDestination
|
|
3373
|
-
input.PinpointDestination !== null && {
|
|
3320
|
+
...(input.PinpointDestination != null && {
|
|
3374
3321
|
PinpointDestination: serializeAws_restJson1PinpointDestination(input.PinpointDestination, context),
|
|
3375
3322
|
}),
|
|
3376
|
-
...(input.SnsDestination
|
|
3377
|
-
input.SnsDestination !== null && {
|
|
3323
|
+
...(input.SnsDestination != null && {
|
|
3378
3324
|
SnsDestination: serializeAws_restJson1SnsDestination(input.SnsDestination, context),
|
|
3379
3325
|
}),
|
|
3380
3326
|
};
|
|
@@ -3391,9 +3337,8 @@ const serializeAws_restJson1EventTypes = (input, context) => {
|
|
|
3391
3337
|
};
|
|
3392
3338
|
const serializeAws_restJson1InboxPlacementTrackingOption = (input, context) => {
|
|
3393
3339
|
return {
|
|
3394
|
-
...(input.Global
|
|
3395
|
-
...(input.TrackedIsps
|
|
3396
|
-
input.TrackedIsps !== null && { TrackedIsps: serializeAws_restJson1IspNameList(input.TrackedIsps, context) }),
|
|
3340
|
+
...(input.Global != null && { Global: input.Global }),
|
|
3341
|
+
...(input.TrackedIsps != null && { TrackedIsps: serializeAws_restJson1IspNameList(input.TrackedIsps, context) }),
|
|
3397
3342
|
};
|
|
3398
3343
|
};
|
|
3399
3344
|
const serializeAws_restJson1IspNameList = (input, context) => {
|
|
@@ -3408,22 +3353,20 @@ const serializeAws_restJson1IspNameList = (input, context) => {
|
|
|
3408
3353
|
};
|
|
3409
3354
|
const serializeAws_restJson1KinesisFirehoseDestination = (input, context) => {
|
|
3410
3355
|
return {
|
|
3411
|
-
...(input.DeliveryStreamArn
|
|
3412
|
-
|
|
3413
|
-
...(input.IamRoleArn !== undefined && input.IamRoleArn !== null && { IamRoleArn: input.IamRoleArn }),
|
|
3356
|
+
...(input.DeliveryStreamArn != null && { DeliveryStreamArn: input.DeliveryStreamArn }),
|
|
3357
|
+
...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
|
|
3414
3358
|
};
|
|
3415
3359
|
};
|
|
3416
3360
|
const serializeAws_restJson1Message = (input, context) => {
|
|
3417
3361
|
return {
|
|
3418
|
-
...(input.Body
|
|
3419
|
-
...(input.Subject
|
|
3420
|
-
input.Subject !== null && { Subject: serializeAws_restJson1Content(input.Subject, context) }),
|
|
3362
|
+
...(input.Body != null && { Body: serializeAws_restJson1Body(input.Body, context) }),
|
|
3363
|
+
...(input.Subject != null && { Subject: serializeAws_restJson1Content(input.Subject, context) }),
|
|
3421
3364
|
};
|
|
3422
3365
|
};
|
|
3423
3366
|
const serializeAws_restJson1MessageTag = (input, context) => {
|
|
3424
3367
|
return {
|
|
3425
|
-
...(input.Name
|
|
3426
|
-
...(input.Value
|
|
3368
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3369
|
+
...(input.Value != null && { Value: input.Value }),
|
|
3427
3370
|
};
|
|
3428
3371
|
};
|
|
3429
3372
|
const serializeAws_restJson1MessageTagList = (input, context) => {
|
|
@@ -3438,38 +3381,34 @@ const serializeAws_restJson1MessageTagList = (input, context) => {
|
|
|
3438
3381
|
};
|
|
3439
3382
|
const serializeAws_restJson1PinpointDestination = (input, context) => {
|
|
3440
3383
|
return {
|
|
3441
|
-
...(input.ApplicationArn
|
|
3442
|
-
input.ApplicationArn !== null && { ApplicationArn: input.ApplicationArn }),
|
|
3384
|
+
...(input.ApplicationArn != null && { ApplicationArn: input.ApplicationArn }),
|
|
3443
3385
|
};
|
|
3444
3386
|
};
|
|
3445
3387
|
const serializeAws_restJson1RawMessage = (input, context) => {
|
|
3446
3388
|
return {
|
|
3447
|
-
...(input.Data
|
|
3389
|
+
...(input.Data != null && { Data: context.base64Encoder(input.Data) }),
|
|
3448
3390
|
};
|
|
3449
3391
|
};
|
|
3450
3392
|
const serializeAws_restJson1ReputationOptions = (input, context) => {
|
|
3451
3393
|
return {
|
|
3452
|
-
...(input.LastFreshStart
|
|
3453
|
-
|
|
3454
|
-
...(input.ReputationMetricsEnabled !== undefined &&
|
|
3455
|
-
input.ReputationMetricsEnabled !== null && { ReputationMetricsEnabled: input.ReputationMetricsEnabled }),
|
|
3394
|
+
...(input.LastFreshStart != null && { LastFreshStart: Math.round(input.LastFreshStart.getTime() / 1000) }),
|
|
3395
|
+
...(input.ReputationMetricsEnabled != null && { ReputationMetricsEnabled: input.ReputationMetricsEnabled }),
|
|
3456
3396
|
};
|
|
3457
3397
|
};
|
|
3458
3398
|
const serializeAws_restJson1SendingOptions = (input, context) => {
|
|
3459
3399
|
return {
|
|
3460
|
-
...(input.SendingEnabled
|
|
3461
|
-
input.SendingEnabled !== null && { SendingEnabled: input.SendingEnabled }),
|
|
3400
|
+
...(input.SendingEnabled != null && { SendingEnabled: input.SendingEnabled }),
|
|
3462
3401
|
};
|
|
3463
3402
|
};
|
|
3464
3403
|
const serializeAws_restJson1SnsDestination = (input, context) => {
|
|
3465
3404
|
return {
|
|
3466
|
-
...(input.TopicArn
|
|
3405
|
+
...(input.TopicArn != null && { TopicArn: input.TopicArn }),
|
|
3467
3406
|
};
|
|
3468
3407
|
};
|
|
3469
3408
|
const serializeAws_restJson1Tag = (input, context) => {
|
|
3470
3409
|
return {
|
|
3471
|
-
...(input.Key
|
|
3472
|
-
...(input.Value
|
|
3410
|
+
...(input.Key != null && { Key: input.Key }),
|
|
3411
|
+
...(input.Value != null && { Value: input.Value }),
|
|
3473
3412
|
};
|
|
3474
3413
|
};
|
|
3475
3414
|
const serializeAws_restJson1TagList = (input, context) => {
|
|
@@ -3484,14 +3423,13 @@ const serializeAws_restJson1TagList = (input, context) => {
|
|
|
3484
3423
|
};
|
|
3485
3424
|
const serializeAws_restJson1Template = (input, context) => {
|
|
3486
3425
|
return {
|
|
3487
|
-
...(input.TemplateArn
|
|
3488
|
-
...(input.TemplateData
|
|
3426
|
+
...(input.TemplateArn != null && { TemplateArn: input.TemplateArn }),
|
|
3427
|
+
...(input.TemplateData != null && { TemplateData: input.TemplateData }),
|
|
3489
3428
|
};
|
|
3490
3429
|
};
|
|
3491
3430
|
const serializeAws_restJson1TrackingOptions = (input, context) => {
|
|
3492
3431
|
return {
|
|
3493
|
-
...(input.CustomRedirectDomain
|
|
3494
|
-
input.CustomRedirectDomain !== null && { CustomRedirectDomain: input.CustomRedirectDomain }),
|
|
3432
|
+
...(input.CustomRedirectDomain != null && { CustomRedirectDomain: input.CustomRedirectDomain }),
|
|
3495
3433
|
};
|
|
3496
3434
|
};
|
|
3497
3435
|
const deserializeAws_restJson1BlacklistEntries = (output, context) => {
|
|
@@ -3508,7 +3446,7 @@ const deserializeAws_restJson1BlacklistEntries = (output, context) => {
|
|
|
3508
3446
|
const deserializeAws_restJson1BlacklistEntry = (output, context) => {
|
|
3509
3447
|
return {
|
|
3510
3448
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
3511
|
-
ListingTime: output.ListingTime
|
|
3449
|
+
ListingTime: output.ListingTime != null
|
|
3512
3450
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ListingTime)))
|
|
3513
3451
|
: undefined,
|
|
3514
3452
|
RblName: (0, smithy_client_1.expectString)(output.RblName),
|
|
@@ -3527,7 +3465,7 @@ const deserializeAws_restJson1BlacklistReport = (output, context) => {
|
|
|
3527
3465
|
};
|
|
3528
3466
|
const deserializeAws_restJson1CloudWatchDestination = (output, context) => {
|
|
3529
3467
|
return {
|
|
3530
|
-
DimensionConfigurations: output.DimensionConfigurations
|
|
3468
|
+
DimensionConfigurations: output.DimensionConfigurations != null
|
|
3531
3469
|
? deserializeAws_restJson1CloudWatchDimensionConfigurations(output.DimensionConfigurations, context)
|
|
3532
3470
|
: undefined,
|
|
3533
3471
|
};
|
|
@@ -3563,13 +3501,11 @@ const deserializeAws_restJson1ConfigurationSetNameList = (output, context) => {
|
|
|
3563
3501
|
};
|
|
3564
3502
|
const deserializeAws_restJson1DailyVolume = (output, context) => {
|
|
3565
3503
|
return {
|
|
3566
|
-
DomainIspPlacements: output.DomainIspPlacements
|
|
3504
|
+
DomainIspPlacements: output.DomainIspPlacements != null
|
|
3567
3505
|
? deserializeAws_restJson1DomainIspPlacements(output.DomainIspPlacements, context)
|
|
3568
3506
|
: undefined,
|
|
3569
|
-
StartDate: output.StartDate
|
|
3570
|
-
|
|
3571
|
-
: undefined,
|
|
3572
|
-
VolumeStatistics: output.VolumeStatistics !== undefined && output.VolumeStatistics !== null
|
|
3507
|
+
StartDate: output.StartDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartDate))) : undefined,
|
|
3508
|
+
VolumeStatistics: output.VolumeStatistics != null
|
|
3573
3509
|
? deserializeAws_restJson1VolumeStatistics(output.VolumeStatistics, context)
|
|
3574
3510
|
: undefined,
|
|
3575
3511
|
};
|
|
@@ -3606,9 +3542,7 @@ const deserializeAws_restJson1DedicatedIpList = (output, context) => {
|
|
|
3606
3542
|
};
|
|
3607
3543
|
const deserializeAws_restJson1DeliverabilityTestReport = (output, context) => {
|
|
3608
3544
|
return {
|
|
3609
|
-
CreateDate: output.CreateDate
|
|
3610
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateDate)))
|
|
3611
|
-
: undefined,
|
|
3545
|
+
CreateDate: output.CreateDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateDate))) : undefined,
|
|
3612
3546
|
DeliverabilityTestStatus: (0, smithy_client_1.expectString)(output.DeliverabilityTestStatus),
|
|
3613
3547
|
FromEmailAddress: (0, smithy_client_1.expectString)(output.FromEmailAddress),
|
|
3614
3548
|
ReportId: (0, smithy_client_1.expectString)(output.ReportId),
|
|
@@ -3637,9 +3571,7 @@ const deserializeAws_restJson1DkimAttributes = (output, context) => {
|
|
|
3637
3571
|
return {
|
|
3638
3572
|
SigningEnabled: (0, smithy_client_1.expectBoolean)(output.SigningEnabled),
|
|
3639
3573
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3640
|
-
Tokens: output.Tokens
|
|
3641
|
-
? deserializeAws_restJson1DnsTokenList(output.Tokens, context)
|
|
3642
|
-
: undefined,
|
|
3574
|
+
Tokens: output.Tokens != null ? deserializeAws_restJson1DnsTokenList(output.Tokens, context) : undefined,
|
|
3643
3575
|
};
|
|
3644
3576
|
};
|
|
3645
3577
|
const deserializeAws_restJson1DnsTokenList = (output, context) => {
|
|
@@ -3657,24 +3589,20 @@ const deserializeAws_restJson1DomainDeliverabilityCampaign = (output, context) =
|
|
|
3657
3589
|
return {
|
|
3658
3590
|
CampaignId: (0, smithy_client_1.expectString)(output.CampaignId),
|
|
3659
3591
|
DeleteRate: (0, smithy_client_1.limitedParseDouble)(output.DeleteRate),
|
|
3660
|
-
Esps: output.Esps
|
|
3661
|
-
|
|
3662
|
-
: undefined,
|
|
3663
|
-
FirstSeenDateTime: output.FirstSeenDateTime !== undefined && output.FirstSeenDateTime !== null
|
|
3592
|
+
Esps: output.Esps != null ? deserializeAws_restJson1Esps(output.Esps, context) : undefined,
|
|
3593
|
+
FirstSeenDateTime: output.FirstSeenDateTime != null
|
|
3664
3594
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.FirstSeenDateTime)))
|
|
3665
3595
|
: undefined,
|
|
3666
3596
|
FromAddress: (0, smithy_client_1.expectString)(output.FromAddress),
|
|
3667
3597
|
ImageUrl: (0, smithy_client_1.expectString)(output.ImageUrl),
|
|
3668
3598
|
InboxCount: (0, smithy_client_1.expectLong)(output.InboxCount),
|
|
3669
|
-
LastSeenDateTime: output.LastSeenDateTime
|
|
3599
|
+
LastSeenDateTime: output.LastSeenDateTime != null
|
|
3670
3600
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastSeenDateTime)))
|
|
3671
3601
|
: undefined,
|
|
3672
3602
|
ProjectedVolume: (0, smithy_client_1.expectLong)(output.ProjectedVolume),
|
|
3673
3603
|
ReadDeleteRate: (0, smithy_client_1.limitedParseDouble)(output.ReadDeleteRate),
|
|
3674
3604
|
ReadRate: (0, smithy_client_1.limitedParseDouble)(output.ReadRate),
|
|
3675
|
-
SendingIps: output.SendingIps
|
|
3676
|
-
? deserializeAws_restJson1IpList(output.SendingIps, context)
|
|
3677
|
-
: undefined,
|
|
3605
|
+
SendingIps: output.SendingIps != null ? deserializeAws_restJson1IpList(output.SendingIps, context) : undefined,
|
|
3678
3606
|
SpamCount: (0, smithy_client_1.expectLong)(output.SpamCount),
|
|
3679
3607
|
Subject: (0, smithy_client_1.expectString)(output.Subject),
|
|
3680
3608
|
};
|
|
@@ -3693,10 +3621,10 @@ const deserializeAws_restJson1DomainDeliverabilityCampaignList = (output, contex
|
|
|
3693
3621
|
const deserializeAws_restJson1DomainDeliverabilityTrackingOption = (output, context) => {
|
|
3694
3622
|
return {
|
|
3695
3623
|
Domain: (0, smithy_client_1.expectString)(output.Domain),
|
|
3696
|
-
InboxPlacementTrackingOption: output.InboxPlacementTrackingOption
|
|
3624
|
+
InboxPlacementTrackingOption: output.InboxPlacementTrackingOption != null
|
|
3697
3625
|
? deserializeAws_restJson1InboxPlacementTrackingOption(output.InboxPlacementTrackingOption, context)
|
|
3698
3626
|
: undefined,
|
|
3699
|
-
SubscriptionStartDate: output.SubscriptionStartDate
|
|
3627
|
+
SubscriptionStartDate: output.SubscriptionStartDate != null
|
|
3700
3628
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubscriptionStartDate)))
|
|
3701
3629
|
: undefined,
|
|
3702
3630
|
};
|
|
@@ -3745,21 +3673,21 @@ const deserializeAws_restJson1Esps = (output, context) => {
|
|
|
3745
3673
|
};
|
|
3746
3674
|
const deserializeAws_restJson1EventDestination = (output, context) => {
|
|
3747
3675
|
return {
|
|
3748
|
-
CloudWatchDestination: output.CloudWatchDestination
|
|
3676
|
+
CloudWatchDestination: output.CloudWatchDestination != null
|
|
3749
3677
|
? deserializeAws_restJson1CloudWatchDestination(output.CloudWatchDestination, context)
|
|
3750
3678
|
: undefined,
|
|
3751
3679
|
Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
|
|
3752
|
-
KinesisFirehoseDestination: output.KinesisFirehoseDestination
|
|
3680
|
+
KinesisFirehoseDestination: output.KinesisFirehoseDestination != null
|
|
3753
3681
|
? deserializeAws_restJson1KinesisFirehoseDestination(output.KinesisFirehoseDestination, context)
|
|
3754
3682
|
: undefined,
|
|
3755
|
-
MatchingEventTypes: output.MatchingEventTypes
|
|
3683
|
+
MatchingEventTypes: output.MatchingEventTypes != null
|
|
3756
3684
|
? deserializeAws_restJson1EventTypes(output.MatchingEventTypes, context)
|
|
3757
3685
|
: undefined,
|
|
3758
3686
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3759
|
-
PinpointDestination: output.PinpointDestination
|
|
3687
|
+
PinpointDestination: output.PinpointDestination != null
|
|
3760
3688
|
? deserializeAws_restJson1PinpointDestination(output.PinpointDestination, context)
|
|
3761
3689
|
: undefined,
|
|
3762
|
-
SnsDestination: output.SnsDestination
|
|
3690
|
+
SnsDestination: output.SnsDestination != null
|
|
3763
3691
|
? deserializeAws_restJson1SnsDestination(output.SnsDestination, context)
|
|
3764
3692
|
: undefined,
|
|
3765
3693
|
};
|
|
@@ -3807,9 +3735,7 @@ const deserializeAws_restJson1IdentityInfoList = (output, context) => {
|
|
|
3807
3735
|
const deserializeAws_restJson1InboxPlacementTrackingOption = (output, context) => {
|
|
3808
3736
|
return {
|
|
3809
3737
|
Global: (0, smithy_client_1.expectBoolean)(output.Global),
|
|
3810
|
-
TrackedIsps: output.TrackedIsps
|
|
3811
|
-
? deserializeAws_restJson1IspNameList(output.TrackedIsps, context)
|
|
3812
|
-
: undefined,
|
|
3738
|
+
TrackedIsps: output.TrackedIsps != null ? deserializeAws_restJson1IspNameList(output.TrackedIsps, context) : undefined,
|
|
3813
3739
|
};
|
|
3814
3740
|
};
|
|
3815
3741
|
const deserializeAws_restJson1IpList = (output, context) => {
|
|
@@ -3837,7 +3763,7 @@ const deserializeAws_restJson1IspNameList = (output, context) => {
|
|
|
3837
3763
|
const deserializeAws_restJson1IspPlacement = (output, context) => {
|
|
3838
3764
|
return {
|
|
3839
3765
|
IspName: (0, smithy_client_1.expectString)(output.IspName),
|
|
3840
|
-
PlacementStatistics: output.PlacementStatistics
|
|
3766
|
+
PlacementStatistics: output.PlacementStatistics != null
|
|
3841
3767
|
? deserializeAws_restJson1PlacementStatistics(output.PlacementStatistics, context)
|
|
3842
3768
|
: undefined,
|
|
3843
3769
|
};
|
|
@@ -3879,11 +3805,11 @@ const deserializeAws_restJson1MailFromAttributes = (output, context) => {
|
|
|
3879
3805
|
};
|
|
3880
3806
|
const deserializeAws_restJson1OverallVolume = (output, context) => {
|
|
3881
3807
|
return {
|
|
3882
|
-
DomainIspPlacements: output.DomainIspPlacements
|
|
3808
|
+
DomainIspPlacements: output.DomainIspPlacements != null
|
|
3883
3809
|
? deserializeAws_restJson1DomainIspPlacements(output.DomainIspPlacements, context)
|
|
3884
3810
|
: undefined,
|
|
3885
3811
|
ReadRatePercent: (0, smithy_client_1.limitedParseDouble)(output.ReadRatePercent),
|
|
3886
|
-
VolumeStatistics: output.VolumeStatistics
|
|
3812
|
+
VolumeStatistics: output.VolumeStatistics != null
|
|
3887
3813
|
? deserializeAws_restJson1VolumeStatistics(output.VolumeStatistics, context)
|
|
3888
3814
|
: undefined,
|
|
3889
3815
|
};
|
|
@@ -3904,7 +3830,7 @@ const deserializeAws_restJson1PlacementStatistics = (output, context) => {
|
|
|
3904
3830
|
};
|
|
3905
3831
|
const deserializeAws_restJson1ReputationOptions = (output, context) => {
|
|
3906
3832
|
return {
|
|
3907
|
-
LastFreshStart: output.LastFreshStart
|
|
3833
|
+
LastFreshStart: output.LastFreshStart != null
|
|
3908
3834
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastFreshStart)))
|
|
3909
3835
|
: undefined,
|
|
3910
3836
|
ReputationMetricsEnabled: (0, smithy_client_1.expectBoolean)(output.ReputationMetricsEnabled),
|
|
@@ -3988,6 +3914,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3988
3914
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3989
3915
|
const sanitizeErrorCode = (rawValue) => {
|
|
3990
3916
|
let cleanValue = rawValue;
|
|
3917
|
+
if (typeof cleanValue === "number") {
|
|
3918
|
+
cleanValue = cleanValue.toString();
|
|
3919
|
+
}
|
|
3991
3920
|
if (cleanValue.indexOf(":") >= 0) {
|
|
3992
3921
|
cleanValue = cleanValue.split(":")[0];
|
|
3993
3922
|
}
|