@aws-sdk/client-pinpoint-email 3.310.0 → 3.315.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.
@@ -1,5 +1,5 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
2
+ import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
3
3
  import { AccountSuspendedException, AlreadyExistsException, BadRequestException, ConcurrentModificationException, LimitExceededException, MailFromDomainNotVerifiedException, MessageRejected, NotFoundException, SendingPausedException, TooManyRequestsException, } from "../models/models_0";
4
4
  import { PinpointEmailServiceException as __BaseException } from "../models/PinpointEmailServiceException";
5
5
  export const se_CreateConfigurationSetCommand = async (input, context) => {
@@ -9,16 +9,14 @@ export const se_CreateConfigurationSetCommand = async (input, context) => {
9
9
  };
10
10
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/configuration-sets";
11
11
  let body;
12
- body = JSON.stringify({
13
- ...(input.ConfigurationSetName != null && { ConfigurationSetName: input.ConfigurationSetName }),
14
- ...(input.DeliveryOptions != null && { DeliveryOptions: se_DeliveryOptions(input.DeliveryOptions, context) }),
15
- ...(input.ReputationOptions != null && {
16
- ReputationOptions: se_ReputationOptions(input.ReputationOptions, context),
17
- }),
18
- ...(input.SendingOptions != null && { SendingOptions: se_SendingOptions(input.SendingOptions, context) }),
19
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
20
- ...(input.TrackingOptions != null && { TrackingOptions: se_TrackingOptions(input.TrackingOptions, context) }),
21
- });
12
+ body = JSON.stringify(take(input, {
13
+ ConfigurationSetName: [],
14
+ DeliveryOptions: (_) => _json(_),
15
+ ReputationOptions: (_) => se_ReputationOptions(_, context),
16
+ SendingOptions: (_) => _json(_),
17
+ Tags: (_) => _json(_),
18
+ TrackingOptions: (_) => _json(_),
19
+ }));
22
20
  return new __HttpRequest({
23
21
  protocol,
24
22
  hostname,
@@ -38,12 +36,10 @@ export const se_CreateConfigurationSetEventDestinationCommand = async (input, co
38
36
  "/v1/email/configuration-sets/{ConfigurationSetName}/event-destinations";
39
37
  resolvedPath = __resolvedPath(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
40
38
  let body;
41
- body = JSON.stringify({
42
- ...(input.EventDestination != null && {
43
- EventDestination: se_EventDestinationDefinition(input.EventDestination, context),
44
- }),
45
- ...(input.EventDestinationName != null && { EventDestinationName: input.EventDestinationName }),
46
- });
39
+ body = JSON.stringify(take(input, {
40
+ EventDestination: (_) => _json(_),
41
+ EventDestinationName: [],
42
+ }));
47
43
  return new __HttpRequest({
48
44
  protocol,
49
45
  hostname,
@@ -61,10 +57,10 @@ export const se_CreateDedicatedIpPoolCommand = async (input, context) => {
61
57
  };
62
58
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/dedicated-ip-pools";
63
59
  let body;
64
- body = JSON.stringify({
65
- ...(input.PoolName != null && { PoolName: input.PoolName }),
66
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
67
- });
60
+ body = JSON.stringify(take(input, {
61
+ PoolName: [],
62
+ Tags: (_) => _json(_),
63
+ }));
68
64
  return new __HttpRequest({
69
65
  protocol,
70
66
  hostname,
@@ -82,12 +78,12 @@ export const se_CreateDeliverabilityTestReportCommand = async (input, context) =
82
78
  };
83
79
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/deliverability-dashboard/test";
84
80
  let body;
85
- body = JSON.stringify({
86
- ...(input.Content != null && { Content: se_EmailContent(input.Content, context) }),
87
- ...(input.FromEmailAddress != null && { FromEmailAddress: input.FromEmailAddress }),
88
- ...(input.ReportName != null && { ReportName: input.ReportName }),
89
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
90
- });
81
+ body = JSON.stringify(take(input, {
82
+ Content: (_) => se_EmailContent(_, context),
83
+ FromEmailAddress: [],
84
+ ReportName: [],
85
+ Tags: (_) => _json(_),
86
+ }));
91
87
  return new __HttpRequest({
92
88
  protocol,
93
89
  hostname,
@@ -105,10 +101,10 @@ export const se_CreateEmailIdentityCommand = async (input, context) => {
105
101
  };
106
102
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/identities";
107
103
  let body;
108
- body = JSON.stringify({
109
- ...(input.EmailIdentity != null && { EmailIdentity: input.EmailIdentity }),
110
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
111
- });
104
+ body = JSON.stringify(take(input, {
105
+ EmailIdentity: [],
106
+ Tags: (_) => _json(_),
107
+ }));
112
108
  return new __HttpRequest({
113
109
  protocol,
114
110
  hostname,
@@ -531,9 +527,9 @@ export const se_PutAccountDedicatedIpWarmupAttributesCommand = async (input, con
531
527
  };
532
528
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/account/dedicated-ips/warmup";
533
529
  let body;
534
- body = JSON.stringify({
535
- ...(input.AutoWarmupEnabled != null && { AutoWarmupEnabled: input.AutoWarmupEnabled }),
536
- });
530
+ body = JSON.stringify(take(input, {
531
+ AutoWarmupEnabled: [],
532
+ }));
537
533
  return new __HttpRequest({
538
534
  protocol,
539
535
  hostname,
@@ -551,9 +547,9 @@ export const se_PutAccountSendingAttributesCommand = async (input, context) => {
551
547
  };
552
548
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/account/sending";
553
549
  let body;
554
- body = JSON.stringify({
555
- ...(input.SendingEnabled != null && { SendingEnabled: input.SendingEnabled }),
556
- });
550
+ body = JSON.stringify(take(input, {
551
+ SendingEnabled: [],
552
+ }));
557
553
  return new __HttpRequest({
558
554
  protocol,
559
555
  hostname,
@@ -573,10 +569,10 @@ export const se_PutConfigurationSetDeliveryOptionsCommand = async (input, contex
573
569
  "/v1/email/configuration-sets/{ConfigurationSetName}/delivery-options";
574
570
  resolvedPath = __resolvedPath(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
575
571
  let body;
576
- body = JSON.stringify({
577
- ...(input.SendingPoolName != null && { SendingPoolName: input.SendingPoolName }),
578
- ...(input.TlsPolicy != null && { TlsPolicy: input.TlsPolicy }),
579
- });
572
+ body = JSON.stringify(take(input, {
573
+ SendingPoolName: [],
574
+ TlsPolicy: [],
575
+ }));
580
576
  return new __HttpRequest({
581
577
  protocol,
582
578
  hostname,
@@ -596,9 +592,9 @@ export const se_PutConfigurationSetReputationOptionsCommand = async (input, cont
596
592
  "/v1/email/configuration-sets/{ConfigurationSetName}/reputation-options";
597
593
  resolvedPath = __resolvedPath(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
598
594
  let body;
599
- body = JSON.stringify({
600
- ...(input.ReputationMetricsEnabled != null && { ReputationMetricsEnabled: input.ReputationMetricsEnabled }),
601
- });
595
+ body = JSON.stringify(take(input, {
596
+ ReputationMetricsEnabled: [],
597
+ }));
602
598
  return new __HttpRequest({
603
599
  protocol,
604
600
  hostname,
@@ -618,9 +614,9 @@ export const se_PutConfigurationSetSendingOptionsCommand = async (input, context
618
614
  "/v1/email/configuration-sets/{ConfigurationSetName}/sending";
619
615
  resolvedPath = __resolvedPath(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
620
616
  let body;
621
- body = JSON.stringify({
622
- ...(input.SendingEnabled != null && { SendingEnabled: input.SendingEnabled }),
623
- });
617
+ body = JSON.stringify(take(input, {
618
+ SendingEnabled: [],
619
+ }));
624
620
  return new __HttpRequest({
625
621
  protocol,
626
622
  hostname,
@@ -640,9 +636,9 @@ export const se_PutConfigurationSetTrackingOptionsCommand = async (input, contex
640
636
  "/v1/email/configuration-sets/{ConfigurationSetName}/tracking-options";
641
637
  resolvedPath = __resolvedPath(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
642
638
  let body;
643
- body = JSON.stringify({
644
- ...(input.CustomRedirectDomain != null && { CustomRedirectDomain: input.CustomRedirectDomain }),
645
- });
639
+ body = JSON.stringify(take(input, {
640
+ CustomRedirectDomain: [],
641
+ }));
646
642
  return new __HttpRequest({
647
643
  protocol,
648
644
  hostname,
@@ -661,9 +657,9 @@ export const se_PutDedicatedIpInPoolCommand = async (input, context) => {
661
657
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/dedicated-ips/{Ip}/pool";
662
658
  resolvedPath = __resolvedPath(resolvedPath, input, "Ip", () => input.Ip, "{Ip}", false);
663
659
  let body;
664
- body = JSON.stringify({
665
- ...(input.DestinationPoolName != null && { DestinationPoolName: input.DestinationPoolName }),
666
- });
660
+ body = JSON.stringify(take(input, {
661
+ DestinationPoolName: [],
662
+ }));
667
663
  return new __HttpRequest({
668
664
  protocol,
669
665
  hostname,
@@ -682,9 +678,9 @@ export const se_PutDedicatedIpWarmupAttributesCommand = async (input, context) =
682
678
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/dedicated-ips/{Ip}/warmup";
683
679
  resolvedPath = __resolvedPath(resolvedPath, input, "Ip", () => input.Ip, "{Ip}", false);
684
680
  let body;
685
- body = JSON.stringify({
686
- ...(input.WarmupPercentage != null && { WarmupPercentage: input.WarmupPercentage }),
687
- });
681
+ body = JSON.stringify(take(input, {
682
+ WarmupPercentage: [],
683
+ }));
688
684
  return new __HttpRequest({
689
685
  protocol,
690
686
  hostname,
@@ -702,12 +698,10 @@ export const se_PutDeliverabilityDashboardOptionCommand = async (input, context)
702
698
  };
703
699
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/deliverability-dashboard";
704
700
  let body;
705
- body = JSON.stringify({
706
- ...(input.DashboardEnabled != null && { DashboardEnabled: input.DashboardEnabled }),
707
- ...(input.SubscribedDomains != null && {
708
- SubscribedDomains: se_DomainDeliverabilityTrackingOptions(input.SubscribedDomains, context),
709
- }),
710
- });
701
+ body = JSON.stringify(take(input, {
702
+ DashboardEnabled: [],
703
+ SubscribedDomains: (_) => se_DomainDeliverabilityTrackingOptions(_, context),
704
+ }));
711
705
  return new __HttpRequest({
712
706
  protocol,
713
707
  hostname,
@@ -726,9 +720,9 @@ export const se_PutEmailIdentityDkimAttributesCommand = async (input, context) =
726
720
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/identities/{EmailIdentity}/dkim";
727
721
  resolvedPath = __resolvedPath(resolvedPath, input, "EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
728
722
  let body;
729
- body = JSON.stringify({
730
- ...(input.SigningEnabled != null && { SigningEnabled: input.SigningEnabled }),
731
- });
723
+ body = JSON.stringify(take(input, {
724
+ SigningEnabled: [],
725
+ }));
732
726
  return new __HttpRequest({
733
727
  protocol,
734
728
  hostname,
@@ -748,9 +742,9 @@ export const se_PutEmailIdentityFeedbackAttributesCommand = async (input, contex
748
742
  "/v1/email/identities/{EmailIdentity}/feedback";
749
743
  resolvedPath = __resolvedPath(resolvedPath, input, "EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
750
744
  let body;
751
- body = JSON.stringify({
752
- ...(input.EmailForwardingEnabled != null && { EmailForwardingEnabled: input.EmailForwardingEnabled }),
753
- });
745
+ body = JSON.stringify(take(input, {
746
+ EmailForwardingEnabled: [],
747
+ }));
754
748
  return new __HttpRequest({
755
749
  protocol,
756
750
  hostname,
@@ -770,10 +764,10 @@ export const se_PutEmailIdentityMailFromAttributesCommand = async (input, contex
770
764
  "/v1/email/identities/{EmailIdentity}/mail-from";
771
765
  resolvedPath = __resolvedPath(resolvedPath, input, "EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
772
766
  let body;
773
- body = JSON.stringify({
774
- ...(input.BehaviorOnMxFailure != null && { BehaviorOnMxFailure: input.BehaviorOnMxFailure }),
775
- ...(input.MailFromDomain != null && { MailFromDomain: input.MailFromDomain }),
776
- });
767
+ body = JSON.stringify(take(input, {
768
+ BehaviorOnMxFailure: [],
769
+ MailFromDomain: [],
770
+ }));
777
771
  return new __HttpRequest({
778
772
  protocol,
779
773
  hostname,
@@ -791,17 +785,15 @@ export const se_SendEmailCommand = async (input, context) => {
791
785
  };
792
786
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/outbound-emails";
793
787
  let body;
794
- body = JSON.stringify({
795
- ...(input.ConfigurationSetName != null && { ConfigurationSetName: input.ConfigurationSetName }),
796
- ...(input.Content != null && { Content: se_EmailContent(input.Content, context) }),
797
- ...(input.Destination != null && { Destination: se_Destination(input.Destination, context) }),
798
- ...(input.EmailTags != null && { EmailTags: se_MessageTagList(input.EmailTags, context) }),
799
- ...(input.FeedbackForwardingEmailAddress != null && {
800
- FeedbackForwardingEmailAddress: input.FeedbackForwardingEmailAddress,
801
- }),
802
- ...(input.FromEmailAddress != null && { FromEmailAddress: input.FromEmailAddress }),
803
- ...(input.ReplyToAddresses != null && { ReplyToAddresses: se_EmailAddressList(input.ReplyToAddresses, context) }),
804
- });
788
+ body = JSON.stringify(take(input, {
789
+ ConfigurationSetName: [],
790
+ Content: (_) => se_EmailContent(_, context),
791
+ Destination: (_) => _json(_),
792
+ EmailTags: (_) => _json(_),
793
+ FeedbackForwardingEmailAddress: [],
794
+ FromEmailAddress: [],
795
+ ReplyToAddresses: (_) => _json(_),
796
+ }));
805
797
  return new __HttpRequest({
806
798
  protocol,
807
799
  hostname,
@@ -819,10 +811,10 @@ export const se_TagResourceCommand = async (input, context) => {
819
811
  };
820
812
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/tags";
821
813
  let body;
822
- body = JSON.stringify({
823
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
824
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
825
- });
814
+ body = JSON.stringify(take(input, {
815
+ ResourceArn: [],
816
+ Tags: (_) => _json(_),
817
+ }));
826
818
  return new __HttpRequest({
827
819
  protocol,
828
820
  hostname,
@@ -866,11 +858,9 @@ export const se_UpdateConfigurationSetEventDestinationCommand = async (input, co
866
858
  resolvedPath = __resolvedPath(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
867
859
  resolvedPath = __resolvedPath(resolvedPath, input, "EventDestinationName", () => input.EventDestinationName, "{EventDestinationName}", false);
868
860
  let body;
869
- body = JSON.stringify({
870
- ...(input.EventDestination != null && {
871
- EventDestination: se_EventDestinationDefinition(input.EventDestination, context),
872
- }),
873
- });
861
+ body = JSON.stringify(take(input, {
862
+ EventDestination: (_) => _json(_),
863
+ }));
874
864
  return new __HttpRequest({
875
865
  protocol,
876
866
  hostname,
@@ -918,10 +908,9 @@ const de_CreateConfigurationSetCommandError = async (output, context) => {
918
908
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
919
909
  default:
920
910
  const parsedBody = parsedOutput.body;
921
- throwDefaultError({
911
+ return throwDefaultError({
922
912
  output,
923
913
  parsedBody,
924
- exceptionCtor: __BaseException,
925
914
  errorCode,
926
915
  });
927
916
  }
@@ -960,10 +949,9 @@ const de_CreateConfigurationSetEventDestinationCommandError = async (output, con
960
949
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
961
950
  default:
962
951
  const parsedBody = parsedOutput.body;
963
- throwDefaultError({
952
+ return throwDefaultError({
964
953
  output,
965
954
  parsedBody,
966
- exceptionCtor: __BaseException,
967
955
  errorCode,
968
956
  });
969
957
  }
@@ -1002,10 +990,9 @@ const de_CreateDedicatedIpPoolCommandError = async (output, context) => {
1002
990
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1003
991
  default:
1004
992
  const parsedBody = parsedOutput.body;
1005
- throwDefaultError({
993
+ return throwDefaultError({
1006
994
  output,
1007
995
  parsedBody,
1008
- exceptionCtor: __BaseException,
1009
996
  errorCode,
1010
997
  });
1011
998
  }
@@ -1018,12 +1005,11 @@ export const de_CreateDeliverabilityTestReportCommand = async (output, context)
1018
1005
  $metadata: deserializeMetadata(output),
1019
1006
  });
1020
1007
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1021
- if (data.DeliverabilityTestStatus != null) {
1022
- contents.DeliverabilityTestStatus = __expectString(data.DeliverabilityTestStatus);
1023
- }
1024
- if (data.ReportId != null) {
1025
- contents.ReportId = __expectString(data.ReportId);
1026
- }
1008
+ const doc = take(data, {
1009
+ DeliverabilityTestStatus: __expectString,
1010
+ ReportId: __expectString,
1011
+ });
1012
+ Object.assign(contents, doc);
1027
1013
  return contents;
1028
1014
  };
1029
1015
  const de_CreateDeliverabilityTestReportCommandError = async (output, context) => {
@@ -1062,10 +1048,9 @@ const de_CreateDeliverabilityTestReportCommandError = async (output, context) =>
1062
1048
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1063
1049
  default:
1064
1050
  const parsedBody = parsedOutput.body;
1065
- throwDefaultError({
1051
+ return throwDefaultError({
1066
1052
  output,
1067
1053
  parsedBody,
1068
- exceptionCtor: __BaseException,
1069
1054
  errorCode,
1070
1055
  });
1071
1056
  }
@@ -1078,15 +1063,12 @@ export const de_CreateEmailIdentityCommand = async (output, context) => {
1078
1063
  $metadata: deserializeMetadata(output),
1079
1064
  });
1080
1065
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1081
- if (data.DkimAttributes != null) {
1082
- contents.DkimAttributes = de_DkimAttributes(data.DkimAttributes, context);
1083
- }
1084
- if (data.IdentityType != null) {
1085
- contents.IdentityType = __expectString(data.IdentityType);
1086
- }
1087
- if (data.VerifiedForSendingStatus != null) {
1088
- contents.VerifiedForSendingStatus = __expectBoolean(data.VerifiedForSendingStatus);
1089
- }
1066
+ const doc = take(data, {
1067
+ DkimAttributes: _json,
1068
+ IdentityType: __expectString,
1069
+ VerifiedForSendingStatus: __expectBoolean,
1070
+ });
1071
+ Object.assign(contents, doc);
1090
1072
  return contents;
1091
1073
  };
1092
1074
  const de_CreateEmailIdentityCommandError = async (output, context) => {
@@ -1110,10 +1092,9 @@ const de_CreateEmailIdentityCommandError = async (output, context) => {
1110
1092
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1111
1093
  default:
1112
1094
  const parsedBody = parsedOutput.body;
1113
- throwDefaultError({
1095
+ return throwDefaultError({
1114
1096
  output,
1115
1097
  parsedBody,
1116
- exceptionCtor: __BaseException,
1117
1098
  errorCode,
1118
1099
  });
1119
1100
  }
@@ -1149,10 +1130,9 @@ const de_DeleteConfigurationSetCommandError = async (output, context) => {
1149
1130
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1150
1131
  default:
1151
1132
  const parsedBody = parsedOutput.body;
1152
- throwDefaultError({
1133
+ return throwDefaultError({
1153
1134
  output,
1154
1135
  parsedBody,
1155
- exceptionCtor: __BaseException,
1156
1136
  errorCode,
1157
1137
  });
1158
1138
  }
@@ -1185,10 +1165,9 @@ const de_DeleteConfigurationSetEventDestinationCommandError = async (output, con
1185
1165
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1186
1166
  default:
1187
1167
  const parsedBody = parsedOutput.body;
1188
- throwDefaultError({
1168
+ return throwDefaultError({
1189
1169
  output,
1190
1170
  parsedBody,
1191
- exceptionCtor: __BaseException,
1192
1171
  errorCode,
1193
1172
  });
1194
1173
  }
@@ -1224,10 +1203,9 @@ const de_DeleteDedicatedIpPoolCommandError = async (output, context) => {
1224
1203
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1225
1204
  default:
1226
1205
  const parsedBody = parsedOutput.body;
1227
- throwDefaultError({
1206
+ return throwDefaultError({
1228
1207
  output,
1229
1208
  parsedBody,
1230
- exceptionCtor: __BaseException,
1231
1209
  errorCode,
1232
1210
  });
1233
1211
  }
@@ -1263,10 +1241,9 @@ const de_DeleteEmailIdentityCommandError = async (output, context) => {
1263
1241
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1264
1242
  default:
1265
1243
  const parsedBody = parsedOutput.body;
1266
- throwDefaultError({
1244
+ return throwDefaultError({
1267
1245
  output,
1268
1246
  parsedBody,
1269
- exceptionCtor: __BaseException,
1270
1247
  errorCode,
1271
1248
  });
1272
1249
  }
@@ -1279,21 +1256,14 @@ export const de_GetAccountCommand = async (output, context) => {
1279
1256
  $metadata: deserializeMetadata(output),
1280
1257
  });
1281
1258
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1282
- if (data.DedicatedIpAutoWarmupEnabled != null) {
1283
- contents.DedicatedIpAutoWarmupEnabled = __expectBoolean(data.DedicatedIpAutoWarmupEnabled);
1284
- }
1285
- if (data.EnforcementStatus != null) {
1286
- contents.EnforcementStatus = __expectString(data.EnforcementStatus);
1287
- }
1288
- if (data.ProductionAccessEnabled != null) {
1289
- contents.ProductionAccessEnabled = __expectBoolean(data.ProductionAccessEnabled);
1290
- }
1291
- if (data.SendQuota != null) {
1292
- contents.SendQuota = de_SendQuota(data.SendQuota, context);
1293
- }
1294
- if (data.SendingEnabled != null) {
1295
- contents.SendingEnabled = __expectBoolean(data.SendingEnabled);
1296
- }
1259
+ const doc = take(data, {
1260
+ DedicatedIpAutoWarmupEnabled: __expectBoolean,
1261
+ EnforcementStatus: __expectString,
1262
+ ProductionAccessEnabled: __expectBoolean,
1263
+ SendQuota: (_) => de_SendQuota(_, context),
1264
+ SendingEnabled: __expectBoolean,
1265
+ });
1266
+ Object.assign(contents, doc);
1297
1267
  return contents;
1298
1268
  };
1299
1269
  const de_GetAccountCommandError = async (output, context) => {
@@ -1311,10 +1281,9 @@ const de_GetAccountCommandError = async (output, context) => {
1311
1281
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1312
1282
  default:
1313
1283
  const parsedBody = parsedOutput.body;
1314
- throwDefaultError({
1284
+ return throwDefaultError({
1315
1285
  output,
1316
1286
  parsedBody,
1317
- exceptionCtor: __BaseException,
1318
1287
  errorCode,
1319
1288
  });
1320
1289
  }
@@ -1327,9 +1296,10 @@ export const de_GetBlacklistReportsCommand = async (output, context) => {
1327
1296
  $metadata: deserializeMetadata(output),
1328
1297
  });
1329
1298
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1330
- if (data.BlacklistReport != null) {
1331
- contents.BlacklistReport = de_BlacklistReport(data.BlacklistReport, context);
1332
- }
1299
+ const doc = take(data, {
1300
+ BlacklistReport: (_) => de_BlacklistReport(_, context),
1301
+ });
1302
+ Object.assign(contents, doc);
1333
1303
  return contents;
1334
1304
  };
1335
1305
  const de_GetBlacklistReportsCommandError = async (output, context) => {
@@ -1350,10 +1320,9 @@ const de_GetBlacklistReportsCommandError = async (output, context) => {
1350
1320
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1351
1321
  default:
1352
1322
  const parsedBody = parsedOutput.body;
1353
- throwDefaultError({
1323
+ return throwDefaultError({
1354
1324
  output,
1355
1325
  parsedBody,
1356
- exceptionCtor: __BaseException,
1357
1326
  errorCode,
1358
1327
  });
1359
1328
  }
@@ -1366,24 +1335,15 @@ export const de_GetConfigurationSetCommand = async (output, context) => {
1366
1335
  $metadata: deserializeMetadata(output),
1367
1336
  });
1368
1337
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1369
- if (data.ConfigurationSetName != null) {
1370
- contents.ConfigurationSetName = __expectString(data.ConfigurationSetName);
1371
- }
1372
- if (data.DeliveryOptions != null) {
1373
- contents.DeliveryOptions = de_DeliveryOptions(data.DeliveryOptions, context);
1374
- }
1375
- if (data.ReputationOptions != null) {
1376
- contents.ReputationOptions = de_ReputationOptions(data.ReputationOptions, context);
1377
- }
1378
- if (data.SendingOptions != null) {
1379
- contents.SendingOptions = de_SendingOptions(data.SendingOptions, context);
1380
- }
1381
- if (data.Tags != null) {
1382
- contents.Tags = de_TagList(data.Tags, context);
1383
- }
1384
- if (data.TrackingOptions != null) {
1385
- contents.TrackingOptions = de_TrackingOptions(data.TrackingOptions, context);
1386
- }
1338
+ const doc = take(data, {
1339
+ ConfigurationSetName: __expectString,
1340
+ DeliveryOptions: _json,
1341
+ ReputationOptions: (_) => de_ReputationOptions(_, context),
1342
+ SendingOptions: _json,
1343
+ Tags: _json,
1344
+ TrackingOptions: _json,
1345
+ });
1346
+ Object.assign(contents, doc);
1387
1347
  return contents;
1388
1348
  };
1389
1349
  const de_GetConfigurationSetCommandError = async (output, context) => {
@@ -1404,10 +1364,9 @@ const de_GetConfigurationSetCommandError = async (output, context) => {
1404
1364
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1405
1365
  default:
1406
1366
  const parsedBody = parsedOutput.body;
1407
- throwDefaultError({
1367
+ return throwDefaultError({
1408
1368
  output,
1409
1369
  parsedBody,
1410
- exceptionCtor: __BaseException,
1411
1370
  errorCode,
1412
1371
  });
1413
1372
  }
@@ -1420,9 +1379,10 @@ export const de_GetConfigurationSetEventDestinationsCommand = async (output, con
1420
1379
  $metadata: deserializeMetadata(output),
1421
1380
  });
1422
1381
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1423
- if (data.EventDestinations != null) {
1424
- contents.EventDestinations = de_EventDestinations(data.EventDestinations, context);
1425
- }
1382
+ const doc = take(data, {
1383
+ EventDestinations: _json,
1384
+ });
1385
+ Object.assign(contents, doc);
1426
1386
  return contents;
1427
1387
  };
1428
1388
  const de_GetConfigurationSetEventDestinationsCommandError = async (output, context) => {
@@ -1443,10 +1403,9 @@ const de_GetConfigurationSetEventDestinationsCommandError = async (output, conte
1443
1403
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1444
1404
  default:
1445
1405
  const parsedBody = parsedOutput.body;
1446
- throwDefaultError({
1406
+ return throwDefaultError({
1447
1407
  output,
1448
1408
  parsedBody,
1449
- exceptionCtor: __BaseException,
1450
1409
  errorCode,
1451
1410
  });
1452
1411
  }
@@ -1459,9 +1418,10 @@ export const de_GetDedicatedIpCommand = async (output, context) => {
1459
1418
  $metadata: deserializeMetadata(output),
1460
1419
  });
1461
1420
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1462
- if (data.DedicatedIp != null) {
1463
- contents.DedicatedIp = de_DedicatedIp(data.DedicatedIp, context);
1464
- }
1421
+ const doc = take(data, {
1422
+ DedicatedIp: _json,
1423
+ });
1424
+ Object.assign(contents, doc);
1465
1425
  return contents;
1466
1426
  };
1467
1427
  const de_GetDedicatedIpCommandError = async (output, context) => {
@@ -1482,10 +1442,9 @@ const de_GetDedicatedIpCommandError = async (output, context) => {
1482
1442
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1483
1443
  default:
1484
1444
  const parsedBody = parsedOutput.body;
1485
- throwDefaultError({
1445
+ return throwDefaultError({
1486
1446
  output,
1487
1447
  parsedBody,
1488
- exceptionCtor: __BaseException,
1489
1448
  errorCode,
1490
1449
  });
1491
1450
  }
@@ -1498,12 +1457,11 @@ export const de_GetDedicatedIpsCommand = async (output, context) => {
1498
1457
  $metadata: deserializeMetadata(output),
1499
1458
  });
1500
1459
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1501
- if (data.DedicatedIps != null) {
1502
- contents.DedicatedIps = de_DedicatedIpList(data.DedicatedIps, context);
1503
- }
1504
- if (data.NextToken != null) {
1505
- contents.NextToken = __expectString(data.NextToken);
1506
- }
1460
+ const doc = take(data, {
1461
+ DedicatedIps: _json,
1462
+ NextToken: __expectString,
1463
+ });
1464
+ Object.assign(contents, doc);
1507
1465
  return contents;
1508
1466
  };
1509
1467
  const de_GetDedicatedIpsCommandError = async (output, context) => {
@@ -1524,10 +1482,9 @@ const de_GetDedicatedIpsCommandError = async (output, context) => {
1524
1482
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1525
1483
  default:
1526
1484
  const parsedBody = parsedOutput.body;
1527
- throwDefaultError({
1485
+ return throwDefaultError({
1528
1486
  output,
1529
1487
  parsedBody,
1530
- exceptionCtor: __BaseException,
1531
1488
  errorCode,
1532
1489
  });
1533
1490
  }
@@ -1540,21 +1497,14 @@ export const de_GetDeliverabilityDashboardOptionsCommand = async (output, contex
1540
1497
  $metadata: deserializeMetadata(output),
1541
1498
  });
1542
1499
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1543
- if (data.AccountStatus != null) {
1544
- contents.AccountStatus = __expectString(data.AccountStatus);
1545
- }
1546
- if (data.ActiveSubscribedDomains != null) {
1547
- contents.ActiveSubscribedDomains = de_DomainDeliverabilityTrackingOptions(data.ActiveSubscribedDomains, context);
1548
- }
1549
- if (data.DashboardEnabled != null) {
1550
- contents.DashboardEnabled = __expectBoolean(data.DashboardEnabled);
1551
- }
1552
- if (data.PendingExpirationSubscribedDomains != null) {
1553
- contents.PendingExpirationSubscribedDomains = de_DomainDeliverabilityTrackingOptions(data.PendingExpirationSubscribedDomains, context);
1554
- }
1555
- if (data.SubscriptionExpiryDate != null) {
1556
- contents.SubscriptionExpiryDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.SubscriptionExpiryDate)));
1557
- }
1500
+ const doc = take(data, {
1501
+ AccountStatus: __expectString,
1502
+ ActiveSubscribedDomains: (_) => de_DomainDeliverabilityTrackingOptions(_, context),
1503
+ DashboardEnabled: __expectBoolean,
1504
+ PendingExpirationSubscribedDomains: (_) => de_DomainDeliverabilityTrackingOptions(_, context),
1505
+ SubscriptionExpiryDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1506
+ });
1507
+ Object.assign(contents, doc);
1558
1508
  return contents;
1559
1509
  };
1560
1510
  const de_GetDeliverabilityDashboardOptionsCommandError = async (output, context) => {
@@ -1575,10 +1525,9 @@ const de_GetDeliverabilityDashboardOptionsCommandError = async (output, context)
1575
1525
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1576
1526
  default:
1577
1527
  const parsedBody = parsedOutput.body;
1578
- throwDefaultError({
1528
+ return throwDefaultError({
1579
1529
  output,
1580
1530
  parsedBody,
1581
- exceptionCtor: __BaseException,
1582
1531
  errorCode,
1583
1532
  });
1584
1533
  }
@@ -1591,21 +1540,14 @@ export const de_GetDeliverabilityTestReportCommand = async (output, context) =>
1591
1540
  $metadata: deserializeMetadata(output),
1592
1541
  });
1593
1542
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1594
- if (data.DeliverabilityTestReport != null) {
1595
- contents.DeliverabilityTestReport = de_DeliverabilityTestReport(data.DeliverabilityTestReport, context);
1596
- }
1597
- if (data.IspPlacements != null) {
1598
- contents.IspPlacements = de_IspPlacements(data.IspPlacements, context);
1599
- }
1600
- if (data.Message != null) {
1601
- contents.Message = __expectString(data.Message);
1602
- }
1603
- if (data.OverallPlacement != null) {
1604
- contents.OverallPlacement = de_PlacementStatistics(data.OverallPlacement, context);
1605
- }
1606
- if (data.Tags != null) {
1607
- contents.Tags = de_TagList(data.Tags, context);
1608
- }
1543
+ const doc = take(data, {
1544
+ DeliverabilityTestReport: (_) => de_DeliverabilityTestReport(_, context),
1545
+ IspPlacements: (_) => de_IspPlacements(_, context),
1546
+ Message: __expectString,
1547
+ OverallPlacement: (_) => de_PlacementStatistics(_, context),
1548
+ Tags: _json,
1549
+ });
1550
+ Object.assign(contents, doc);
1609
1551
  return contents;
1610
1552
  };
1611
1553
  const de_GetDeliverabilityTestReportCommandError = async (output, context) => {
@@ -1626,10 +1568,9 @@ const de_GetDeliverabilityTestReportCommandError = async (output, context) => {
1626
1568
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1627
1569
  default:
1628
1570
  const parsedBody = parsedOutput.body;
1629
- throwDefaultError({
1571
+ return throwDefaultError({
1630
1572
  output,
1631
1573
  parsedBody,
1632
- exceptionCtor: __BaseException,
1633
1574
  errorCode,
1634
1575
  });
1635
1576
  }
@@ -1642,9 +1583,10 @@ export const de_GetDomainDeliverabilityCampaignCommand = async (output, context)
1642
1583
  $metadata: deserializeMetadata(output),
1643
1584
  });
1644
1585
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1645
- if (data.DomainDeliverabilityCampaign != null) {
1646
- contents.DomainDeliverabilityCampaign = de_DomainDeliverabilityCampaign(data.DomainDeliverabilityCampaign, context);
1647
- }
1586
+ const doc = take(data, {
1587
+ DomainDeliverabilityCampaign: (_) => de_DomainDeliverabilityCampaign(_, context),
1588
+ });
1589
+ Object.assign(contents, doc);
1648
1590
  return contents;
1649
1591
  };
1650
1592
  const de_GetDomainDeliverabilityCampaignCommandError = async (output, context) => {
@@ -1665,10 +1607,9 @@ const de_GetDomainDeliverabilityCampaignCommandError = async (output, context) =
1665
1607
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1666
1608
  default:
1667
1609
  const parsedBody = parsedOutput.body;
1668
- throwDefaultError({
1610
+ return throwDefaultError({
1669
1611
  output,
1670
1612
  parsedBody,
1671
- exceptionCtor: __BaseException,
1672
1613
  errorCode,
1673
1614
  });
1674
1615
  }
@@ -1681,12 +1622,11 @@ export const de_GetDomainStatisticsReportCommand = async (output, context) => {
1681
1622
  $metadata: deserializeMetadata(output),
1682
1623
  });
1683
1624
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1684
- if (data.DailyVolumes != null) {
1685
- contents.DailyVolumes = de_DailyVolumes(data.DailyVolumes, context);
1686
- }
1687
- if (data.OverallVolume != null) {
1688
- contents.OverallVolume = de_OverallVolume(data.OverallVolume, context);
1689
- }
1625
+ const doc = take(data, {
1626
+ DailyVolumes: (_) => de_DailyVolumes(_, context),
1627
+ OverallVolume: (_) => de_OverallVolume(_, context),
1628
+ });
1629
+ Object.assign(contents, doc);
1690
1630
  return contents;
1691
1631
  };
1692
1632
  const de_GetDomainStatisticsReportCommandError = async (output, context) => {
@@ -1707,10 +1647,9 @@ const de_GetDomainStatisticsReportCommandError = async (output, context) => {
1707
1647
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1708
1648
  default:
1709
1649
  const parsedBody = parsedOutput.body;
1710
- throwDefaultError({
1650
+ return throwDefaultError({
1711
1651
  output,
1712
1652
  parsedBody,
1713
- exceptionCtor: __BaseException,
1714
1653
  errorCode,
1715
1654
  });
1716
1655
  }
@@ -1723,24 +1662,15 @@ export const de_GetEmailIdentityCommand = async (output, context) => {
1723
1662
  $metadata: deserializeMetadata(output),
1724
1663
  });
1725
1664
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1726
- if (data.DkimAttributes != null) {
1727
- contents.DkimAttributes = de_DkimAttributes(data.DkimAttributes, context);
1728
- }
1729
- if (data.FeedbackForwardingStatus != null) {
1730
- contents.FeedbackForwardingStatus = __expectBoolean(data.FeedbackForwardingStatus);
1731
- }
1732
- if (data.IdentityType != null) {
1733
- contents.IdentityType = __expectString(data.IdentityType);
1734
- }
1735
- if (data.MailFromAttributes != null) {
1736
- contents.MailFromAttributes = de_MailFromAttributes(data.MailFromAttributes, context);
1737
- }
1738
- if (data.Tags != null) {
1739
- contents.Tags = de_TagList(data.Tags, context);
1740
- }
1741
- if (data.VerifiedForSendingStatus != null) {
1742
- contents.VerifiedForSendingStatus = __expectBoolean(data.VerifiedForSendingStatus);
1743
- }
1665
+ const doc = take(data, {
1666
+ DkimAttributes: _json,
1667
+ FeedbackForwardingStatus: __expectBoolean,
1668
+ IdentityType: __expectString,
1669
+ MailFromAttributes: _json,
1670
+ Tags: _json,
1671
+ VerifiedForSendingStatus: __expectBoolean,
1672
+ });
1673
+ Object.assign(contents, doc);
1744
1674
  return contents;
1745
1675
  };
1746
1676
  const de_GetEmailIdentityCommandError = async (output, context) => {
@@ -1761,10 +1691,9 @@ const de_GetEmailIdentityCommandError = async (output, context) => {
1761
1691
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1762
1692
  default:
1763
1693
  const parsedBody = parsedOutput.body;
1764
- throwDefaultError({
1694
+ return throwDefaultError({
1765
1695
  output,
1766
1696
  parsedBody,
1767
- exceptionCtor: __BaseException,
1768
1697
  errorCode,
1769
1698
  });
1770
1699
  }
@@ -1777,12 +1706,11 @@ export const de_ListConfigurationSetsCommand = async (output, context) => {
1777
1706
  $metadata: deserializeMetadata(output),
1778
1707
  });
1779
1708
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1780
- if (data.ConfigurationSets != null) {
1781
- contents.ConfigurationSets = de_ConfigurationSetNameList(data.ConfigurationSets, context);
1782
- }
1783
- if (data.NextToken != null) {
1784
- contents.NextToken = __expectString(data.NextToken);
1785
- }
1709
+ const doc = take(data, {
1710
+ ConfigurationSets: _json,
1711
+ NextToken: __expectString,
1712
+ });
1713
+ Object.assign(contents, doc);
1786
1714
  return contents;
1787
1715
  };
1788
1716
  const de_ListConfigurationSetsCommandError = async (output, context) => {
@@ -1800,10 +1728,9 @@ const de_ListConfigurationSetsCommandError = async (output, context) => {
1800
1728
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1801
1729
  default:
1802
1730
  const parsedBody = parsedOutput.body;
1803
- throwDefaultError({
1731
+ return throwDefaultError({
1804
1732
  output,
1805
1733
  parsedBody,
1806
- exceptionCtor: __BaseException,
1807
1734
  errorCode,
1808
1735
  });
1809
1736
  }
@@ -1816,12 +1743,11 @@ export const de_ListDedicatedIpPoolsCommand = async (output, context) => {
1816
1743
  $metadata: deserializeMetadata(output),
1817
1744
  });
1818
1745
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1819
- if (data.DedicatedIpPools != null) {
1820
- contents.DedicatedIpPools = de_ListOfDedicatedIpPools(data.DedicatedIpPools, context);
1821
- }
1822
- if (data.NextToken != null) {
1823
- contents.NextToken = __expectString(data.NextToken);
1824
- }
1746
+ const doc = take(data, {
1747
+ DedicatedIpPools: _json,
1748
+ NextToken: __expectString,
1749
+ });
1750
+ Object.assign(contents, doc);
1825
1751
  return contents;
1826
1752
  };
1827
1753
  const de_ListDedicatedIpPoolsCommandError = async (output, context) => {
@@ -1839,10 +1765,9 @@ const de_ListDedicatedIpPoolsCommandError = async (output, context) => {
1839
1765
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1840
1766
  default:
1841
1767
  const parsedBody = parsedOutput.body;
1842
- throwDefaultError({
1768
+ return throwDefaultError({
1843
1769
  output,
1844
1770
  parsedBody,
1845
- exceptionCtor: __BaseException,
1846
1771
  errorCode,
1847
1772
  });
1848
1773
  }
@@ -1855,12 +1780,11 @@ export const de_ListDeliverabilityTestReportsCommand = async (output, context) =
1855
1780
  $metadata: deserializeMetadata(output),
1856
1781
  });
1857
1782
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1858
- if (data.DeliverabilityTestReports != null) {
1859
- contents.DeliverabilityTestReports = de_DeliverabilityTestReports(data.DeliverabilityTestReports, context);
1860
- }
1861
- if (data.NextToken != null) {
1862
- contents.NextToken = __expectString(data.NextToken);
1863
- }
1783
+ const doc = take(data, {
1784
+ DeliverabilityTestReports: (_) => de_DeliverabilityTestReports(_, context),
1785
+ NextToken: __expectString,
1786
+ });
1787
+ Object.assign(contents, doc);
1864
1788
  return contents;
1865
1789
  };
1866
1790
  const de_ListDeliverabilityTestReportsCommandError = async (output, context) => {
@@ -1881,10 +1805,9 @@ const de_ListDeliverabilityTestReportsCommandError = async (output, context) =>
1881
1805
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1882
1806
  default:
1883
1807
  const parsedBody = parsedOutput.body;
1884
- throwDefaultError({
1808
+ return throwDefaultError({
1885
1809
  output,
1886
1810
  parsedBody,
1887
- exceptionCtor: __BaseException,
1888
1811
  errorCode,
1889
1812
  });
1890
1813
  }
@@ -1897,12 +1820,11 @@ export const de_ListDomainDeliverabilityCampaignsCommand = async (output, contex
1897
1820
  $metadata: deserializeMetadata(output),
1898
1821
  });
1899
1822
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1900
- if (data.DomainDeliverabilityCampaigns != null) {
1901
- contents.DomainDeliverabilityCampaigns = de_DomainDeliverabilityCampaignList(data.DomainDeliverabilityCampaigns, context);
1902
- }
1903
- if (data.NextToken != null) {
1904
- contents.NextToken = __expectString(data.NextToken);
1905
- }
1823
+ const doc = take(data, {
1824
+ DomainDeliverabilityCampaigns: (_) => de_DomainDeliverabilityCampaignList(_, context),
1825
+ NextToken: __expectString,
1826
+ });
1827
+ Object.assign(contents, doc);
1906
1828
  return contents;
1907
1829
  };
1908
1830
  const de_ListDomainDeliverabilityCampaignsCommandError = async (output, context) => {
@@ -1923,10 +1845,9 @@ const de_ListDomainDeliverabilityCampaignsCommandError = async (output, context)
1923
1845
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1924
1846
  default:
1925
1847
  const parsedBody = parsedOutput.body;
1926
- throwDefaultError({
1848
+ return throwDefaultError({
1927
1849
  output,
1928
1850
  parsedBody,
1929
- exceptionCtor: __BaseException,
1930
1851
  errorCode,
1931
1852
  });
1932
1853
  }
@@ -1939,12 +1860,11 @@ export const de_ListEmailIdentitiesCommand = async (output, context) => {
1939
1860
  $metadata: deserializeMetadata(output),
1940
1861
  });
1941
1862
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1942
- if (data.EmailIdentities != null) {
1943
- contents.EmailIdentities = de_IdentityInfoList(data.EmailIdentities, context);
1944
- }
1945
- if (data.NextToken != null) {
1946
- contents.NextToken = __expectString(data.NextToken);
1947
- }
1863
+ const doc = take(data, {
1864
+ EmailIdentities: _json,
1865
+ NextToken: __expectString,
1866
+ });
1867
+ Object.assign(contents, doc);
1948
1868
  return contents;
1949
1869
  };
1950
1870
  const de_ListEmailIdentitiesCommandError = async (output, context) => {
@@ -1962,10 +1882,9 @@ const de_ListEmailIdentitiesCommandError = async (output, context) => {
1962
1882
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1963
1883
  default:
1964
1884
  const parsedBody = parsedOutput.body;
1965
- throwDefaultError({
1885
+ return throwDefaultError({
1966
1886
  output,
1967
1887
  parsedBody,
1968
- exceptionCtor: __BaseException,
1969
1888
  errorCode,
1970
1889
  });
1971
1890
  }
@@ -1978,9 +1897,10 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
1978
1897
  $metadata: deserializeMetadata(output),
1979
1898
  });
1980
1899
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1981
- if (data.Tags != null) {
1982
- contents.Tags = de_TagList(data.Tags, context);
1983
- }
1900
+ const doc = take(data, {
1901
+ Tags: _json,
1902
+ });
1903
+ Object.assign(contents, doc);
1984
1904
  return contents;
1985
1905
  };
1986
1906
  const de_ListTagsForResourceCommandError = async (output, context) => {
@@ -2001,10 +1921,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
2001
1921
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2002
1922
  default:
2003
1923
  const parsedBody = parsedOutput.body;
2004
- throwDefaultError({
1924
+ return throwDefaultError({
2005
1925
  output,
2006
1926
  parsedBody,
2007
- exceptionCtor: __BaseException,
2008
1927
  errorCode,
2009
1928
  });
2010
1929
  }
@@ -2034,10 +1953,9 @@ const de_PutAccountDedicatedIpWarmupAttributesCommandError = async (output, cont
2034
1953
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2035
1954
  default:
2036
1955
  const parsedBody = parsedOutput.body;
2037
- throwDefaultError({
1956
+ return throwDefaultError({
2038
1957
  output,
2039
1958
  parsedBody,
2040
- exceptionCtor: __BaseException,
2041
1959
  errorCode,
2042
1960
  });
2043
1961
  }
@@ -2067,10 +1985,9 @@ const de_PutAccountSendingAttributesCommandError = async (output, context) => {
2067
1985
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2068
1986
  default:
2069
1987
  const parsedBody = parsedOutput.body;
2070
- throwDefaultError({
1988
+ return throwDefaultError({
2071
1989
  output,
2072
1990
  parsedBody,
2073
- exceptionCtor: __BaseException,
2074
1991
  errorCode,
2075
1992
  });
2076
1993
  }
@@ -2103,10 +2020,9 @@ const de_PutConfigurationSetDeliveryOptionsCommandError = async (output, context
2103
2020
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2104
2021
  default:
2105
2022
  const parsedBody = parsedOutput.body;
2106
- throwDefaultError({
2023
+ return throwDefaultError({
2107
2024
  output,
2108
2025
  parsedBody,
2109
- exceptionCtor: __BaseException,
2110
2026
  errorCode,
2111
2027
  });
2112
2028
  }
@@ -2139,10 +2055,9 @@ const de_PutConfigurationSetReputationOptionsCommandError = async (output, conte
2139
2055
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2140
2056
  default:
2141
2057
  const parsedBody = parsedOutput.body;
2142
- throwDefaultError({
2058
+ return throwDefaultError({
2143
2059
  output,
2144
2060
  parsedBody,
2145
- exceptionCtor: __BaseException,
2146
2061
  errorCode,
2147
2062
  });
2148
2063
  }
@@ -2175,10 +2090,9 @@ const de_PutConfigurationSetSendingOptionsCommandError = async (output, context)
2175
2090
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2176
2091
  default:
2177
2092
  const parsedBody = parsedOutput.body;
2178
- throwDefaultError({
2093
+ return throwDefaultError({
2179
2094
  output,
2180
2095
  parsedBody,
2181
- exceptionCtor: __BaseException,
2182
2096
  errorCode,
2183
2097
  });
2184
2098
  }
@@ -2211,10 +2125,9 @@ const de_PutConfigurationSetTrackingOptionsCommandError = async (output, context
2211
2125
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2212
2126
  default:
2213
2127
  const parsedBody = parsedOutput.body;
2214
- throwDefaultError({
2128
+ return throwDefaultError({
2215
2129
  output,
2216
2130
  parsedBody,
2217
- exceptionCtor: __BaseException,
2218
2131
  errorCode,
2219
2132
  });
2220
2133
  }
@@ -2247,10 +2160,9 @@ const de_PutDedicatedIpInPoolCommandError = async (output, context) => {
2247
2160
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2248
2161
  default:
2249
2162
  const parsedBody = parsedOutput.body;
2250
- throwDefaultError({
2163
+ return throwDefaultError({
2251
2164
  output,
2252
2165
  parsedBody,
2253
- exceptionCtor: __BaseException,
2254
2166
  errorCode,
2255
2167
  });
2256
2168
  }
@@ -2283,10 +2195,9 @@ const de_PutDedicatedIpWarmupAttributesCommandError = async (output, context) =>
2283
2195
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2284
2196
  default:
2285
2197
  const parsedBody = parsedOutput.body;
2286
- throwDefaultError({
2198
+ return throwDefaultError({
2287
2199
  output,
2288
2200
  parsedBody,
2289
- exceptionCtor: __BaseException,
2290
2201
  errorCode,
2291
2202
  });
2292
2203
  }
@@ -2325,10 +2236,9 @@ const de_PutDeliverabilityDashboardOptionCommandError = async (output, context)
2325
2236
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2326
2237
  default:
2327
2238
  const parsedBody = parsedOutput.body;
2328
- throwDefaultError({
2239
+ return throwDefaultError({
2329
2240
  output,
2330
2241
  parsedBody,
2331
- exceptionCtor: __BaseException,
2332
2242
  errorCode,
2333
2243
  });
2334
2244
  }
@@ -2361,10 +2271,9 @@ const de_PutEmailIdentityDkimAttributesCommandError = async (output, context) =>
2361
2271
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2362
2272
  default:
2363
2273
  const parsedBody = parsedOutput.body;
2364
- throwDefaultError({
2274
+ return throwDefaultError({
2365
2275
  output,
2366
2276
  parsedBody,
2367
- exceptionCtor: __BaseException,
2368
2277
  errorCode,
2369
2278
  });
2370
2279
  }
@@ -2397,10 +2306,9 @@ const de_PutEmailIdentityFeedbackAttributesCommandError = async (output, context
2397
2306
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2398
2307
  default:
2399
2308
  const parsedBody = parsedOutput.body;
2400
- throwDefaultError({
2309
+ return throwDefaultError({
2401
2310
  output,
2402
2311
  parsedBody,
2403
- exceptionCtor: __BaseException,
2404
2312
  errorCode,
2405
2313
  });
2406
2314
  }
@@ -2433,10 +2341,9 @@ const de_PutEmailIdentityMailFromAttributesCommandError = async (output, context
2433
2341
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2434
2342
  default:
2435
2343
  const parsedBody = parsedOutput.body;
2436
- throwDefaultError({
2344
+ return throwDefaultError({
2437
2345
  output,
2438
2346
  parsedBody,
2439
- exceptionCtor: __BaseException,
2440
2347
  errorCode,
2441
2348
  });
2442
2349
  }
@@ -2449,9 +2356,10 @@ export const de_SendEmailCommand = async (output, context) => {
2449
2356
  $metadata: deserializeMetadata(output),
2450
2357
  });
2451
2358
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2452
- if (data.MessageId != null) {
2453
- contents.MessageId = __expectString(data.MessageId);
2454
- }
2359
+ const doc = take(data, {
2360
+ MessageId: __expectString,
2361
+ });
2362
+ Object.assign(contents, doc);
2455
2363
  return contents;
2456
2364
  };
2457
2365
  const de_SendEmailCommandError = async (output, context) => {
@@ -2487,10 +2395,9 @@ const de_SendEmailCommandError = async (output, context) => {
2487
2395
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2488
2396
  default:
2489
2397
  const parsedBody = parsedOutput.body;
2490
- throwDefaultError({
2398
+ return throwDefaultError({
2491
2399
  output,
2492
2400
  parsedBody,
2493
- exceptionCtor: __BaseException,
2494
2401
  errorCode,
2495
2402
  });
2496
2403
  }
@@ -2526,10 +2433,9 @@ const de_TagResourceCommandError = async (output, context) => {
2526
2433
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2527
2434
  default:
2528
2435
  const parsedBody = parsedOutput.body;
2529
- throwDefaultError({
2436
+ return throwDefaultError({
2530
2437
  output,
2531
2438
  parsedBody,
2532
- exceptionCtor: __BaseException,
2533
2439
  errorCode,
2534
2440
  });
2535
2441
  }
@@ -2565,10 +2471,9 @@ const de_UntagResourceCommandError = async (output, context) => {
2565
2471
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2566
2472
  default:
2567
2473
  const parsedBody = parsedOutput.body;
2568
- throwDefaultError({
2474
+ return throwDefaultError({
2569
2475
  output,
2570
2476
  parsedBody,
2571
- exceptionCtor: __BaseException,
2572
2477
  errorCode,
2573
2478
  });
2574
2479
  }
@@ -2601,21 +2506,21 @@ const de_UpdateConfigurationSetEventDestinationCommandError = async (output, con
2601
2506
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2602
2507
  default:
2603
2508
  const parsedBody = parsedOutput.body;
2604
- throwDefaultError({
2509
+ return throwDefaultError({
2605
2510
  output,
2606
2511
  parsedBody,
2607
- exceptionCtor: __BaseException,
2608
2512
  errorCode,
2609
2513
  });
2610
2514
  }
2611
2515
  };
2612
- const map = __map;
2516
+ const throwDefaultError = withBaseException(__BaseException);
2613
2517
  const de_AccountSuspendedExceptionRes = async (parsedOutput, context) => {
2614
2518
  const contents = map({});
2615
2519
  const data = parsedOutput.body;
2616
- if (data.message != null) {
2617
- contents.message = __expectString(data.message);
2618
- }
2520
+ const doc = take(data, {
2521
+ message: __expectString,
2522
+ });
2523
+ Object.assign(contents, doc);
2619
2524
  const exception = new AccountSuspendedException({
2620
2525
  $metadata: deserializeMetadata(parsedOutput),
2621
2526
  ...contents,
@@ -2625,9 +2530,10 @@ const de_AccountSuspendedExceptionRes = async (parsedOutput, context) => {
2625
2530
  const de_AlreadyExistsExceptionRes = async (parsedOutput, context) => {
2626
2531
  const contents = map({});
2627
2532
  const data = parsedOutput.body;
2628
- if (data.message != null) {
2629
- contents.message = __expectString(data.message);
2630
- }
2533
+ const doc = take(data, {
2534
+ message: __expectString,
2535
+ });
2536
+ Object.assign(contents, doc);
2631
2537
  const exception = new AlreadyExistsException({
2632
2538
  $metadata: deserializeMetadata(parsedOutput),
2633
2539
  ...contents,
@@ -2637,9 +2543,10 @@ const de_AlreadyExistsExceptionRes = async (parsedOutput, context) => {
2637
2543
  const de_BadRequestExceptionRes = async (parsedOutput, context) => {
2638
2544
  const contents = map({});
2639
2545
  const data = parsedOutput.body;
2640
- if (data.message != null) {
2641
- contents.message = __expectString(data.message);
2642
- }
2546
+ const doc = take(data, {
2547
+ message: __expectString,
2548
+ });
2549
+ Object.assign(contents, doc);
2643
2550
  const exception = new BadRequestException({
2644
2551
  $metadata: deserializeMetadata(parsedOutput),
2645
2552
  ...contents,
@@ -2649,9 +2556,10 @@ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
2649
2556
  const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
2650
2557
  const contents = map({});
2651
2558
  const data = parsedOutput.body;
2652
- if (data.message != null) {
2653
- contents.message = __expectString(data.message);
2654
- }
2559
+ const doc = take(data, {
2560
+ message: __expectString,
2561
+ });
2562
+ Object.assign(contents, doc);
2655
2563
  const exception = new ConcurrentModificationException({
2656
2564
  $metadata: deserializeMetadata(parsedOutput),
2657
2565
  ...contents,
@@ -2661,9 +2569,10 @@ const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
2661
2569
  const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
2662
2570
  const contents = map({});
2663
2571
  const data = parsedOutput.body;
2664
- if (data.message != null) {
2665
- contents.message = __expectString(data.message);
2666
- }
2572
+ const doc = take(data, {
2573
+ message: __expectString,
2574
+ });
2575
+ Object.assign(contents, doc);
2667
2576
  const exception = new LimitExceededException({
2668
2577
  $metadata: deserializeMetadata(parsedOutput),
2669
2578
  ...contents,
@@ -2673,9 +2582,10 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
2673
2582
  const de_MailFromDomainNotVerifiedExceptionRes = async (parsedOutput, context) => {
2674
2583
  const contents = map({});
2675
2584
  const data = parsedOutput.body;
2676
- if (data.message != null) {
2677
- contents.message = __expectString(data.message);
2678
- }
2585
+ const doc = take(data, {
2586
+ message: __expectString,
2587
+ });
2588
+ Object.assign(contents, doc);
2679
2589
  const exception = new MailFromDomainNotVerifiedException({
2680
2590
  $metadata: deserializeMetadata(parsedOutput),
2681
2591
  ...contents,
@@ -2685,9 +2595,10 @@ const de_MailFromDomainNotVerifiedExceptionRes = async (parsedOutput, context) =
2685
2595
  const de_MessageRejectedRes = async (parsedOutput, context) => {
2686
2596
  const contents = map({});
2687
2597
  const data = parsedOutput.body;
2688
- if (data.message != null) {
2689
- contents.message = __expectString(data.message);
2690
- }
2598
+ const doc = take(data, {
2599
+ message: __expectString,
2600
+ });
2601
+ Object.assign(contents, doc);
2691
2602
  const exception = new MessageRejected({
2692
2603
  $metadata: deserializeMetadata(parsedOutput),
2693
2604
  ...contents,
@@ -2697,9 +2608,10 @@ const de_MessageRejectedRes = async (parsedOutput, context) => {
2697
2608
  const de_NotFoundExceptionRes = async (parsedOutput, context) => {
2698
2609
  const contents = map({});
2699
2610
  const data = parsedOutput.body;
2700
- if (data.message != null) {
2701
- contents.message = __expectString(data.message);
2702
- }
2611
+ const doc = take(data, {
2612
+ message: __expectString,
2613
+ });
2614
+ Object.assign(contents, doc);
2703
2615
  const exception = new NotFoundException({
2704
2616
  $metadata: deserializeMetadata(parsedOutput),
2705
2617
  ...contents,
@@ -2709,9 +2621,10 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
2709
2621
  const de_SendingPausedExceptionRes = async (parsedOutput, context) => {
2710
2622
  const contents = map({});
2711
2623
  const data = parsedOutput.body;
2712
- if (data.message != null) {
2713
- contents.message = __expectString(data.message);
2714
- }
2624
+ const doc = take(data, {
2625
+ message: __expectString,
2626
+ });
2627
+ Object.assign(contents, doc);
2715
2628
  const exception = new SendingPausedException({
2716
2629
  $metadata: deserializeMetadata(parsedOutput),
2717
2630
  ...contents,
@@ -2721,71 +2634,22 @@ const de_SendingPausedExceptionRes = async (parsedOutput, context) => {
2721
2634
  const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
2722
2635
  const contents = map({});
2723
2636
  const data = parsedOutput.body;
2724
- if (data.message != null) {
2725
- contents.message = __expectString(data.message);
2726
- }
2637
+ const doc = take(data, {
2638
+ message: __expectString,
2639
+ });
2640
+ Object.assign(contents, doc);
2727
2641
  const exception = new TooManyRequestsException({
2728
2642
  $metadata: deserializeMetadata(parsedOutput),
2729
2643
  ...contents,
2730
2644
  });
2731
2645
  return __decorateServiceException(exception, parsedOutput.body);
2732
2646
  };
2733
- const se_Body = (input, context) => {
2734
- return {
2735
- ...(input.Html != null && { Html: se_Content(input.Html, context) }),
2736
- ...(input.Text != null && { Text: se_Content(input.Text, context) }),
2737
- };
2738
- };
2739
- const se_CloudWatchDestination = (input, context) => {
2740
- return {
2741
- ...(input.DimensionConfigurations != null && {
2742
- DimensionConfigurations: se_CloudWatchDimensionConfigurations(input.DimensionConfigurations, context),
2743
- }),
2744
- };
2745
- };
2746
- const se_CloudWatchDimensionConfiguration = (input, context) => {
2747
- return {
2748
- ...(input.DefaultDimensionValue != null && { DefaultDimensionValue: input.DefaultDimensionValue }),
2749
- ...(input.DimensionName != null && { DimensionName: input.DimensionName }),
2750
- ...(input.DimensionValueSource != null && { DimensionValueSource: input.DimensionValueSource }),
2751
- };
2752
- };
2753
- const se_CloudWatchDimensionConfigurations = (input, context) => {
2754
- return input
2755
- .filter((e) => e != null)
2756
- .map((entry) => {
2757
- return se_CloudWatchDimensionConfiguration(entry, context);
2758
- });
2759
- };
2760
- const se_Content = (input, context) => {
2761
- return {
2762
- ...(input.Charset != null && { Charset: input.Charset }),
2763
- ...(input.Data != null && { Data: input.Data }),
2764
- };
2765
- };
2766
- const se_DeliveryOptions = (input, context) => {
2767
- return {
2768
- ...(input.SendingPoolName != null && { SendingPoolName: input.SendingPoolName }),
2769
- ...(input.TlsPolicy != null && { TlsPolicy: input.TlsPolicy }),
2770
- };
2771
- };
2772
- const se_Destination = (input, context) => {
2773
- return {
2774
- ...(input.BccAddresses != null && { BccAddresses: se_EmailAddressList(input.BccAddresses, context) }),
2775
- ...(input.CcAddresses != null && { CcAddresses: se_EmailAddressList(input.CcAddresses, context) }),
2776
- ...(input.ToAddresses != null && { ToAddresses: se_EmailAddressList(input.ToAddresses, context) }),
2777
- };
2778
- };
2779
2647
  const se_DomainDeliverabilityTrackingOption = (input, context) => {
2780
- return {
2781
- ...(input.Domain != null && { Domain: input.Domain }),
2782
- ...(input.InboxPlacementTrackingOption != null && {
2783
- InboxPlacementTrackingOption: se_InboxPlacementTrackingOption(input.InboxPlacementTrackingOption, context),
2784
- }),
2785
- ...(input.SubscriptionStartDate != null && {
2786
- SubscriptionStartDate: Math.round(input.SubscriptionStartDate.getTime() / 1000),
2787
- }),
2788
- };
2648
+ return take(input, {
2649
+ Domain: [],
2650
+ InboxPlacementTrackingOption: _json,
2651
+ SubscriptionStartDate: (_) => Math.round(_.getTime() / 1000),
2652
+ });
2789
2653
  };
2790
2654
  const se_DomainDeliverabilityTrackingOptions = (input, context) => {
2791
2655
  return input
@@ -2794,150 +2658,38 @@ const se_DomainDeliverabilityTrackingOptions = (input, context) => {
2794
2658
  return se_DomainDeliverabilityTrackingOption(entry, context);
2795
2659
  });
2796
2660
  };
2797
- const se_EmailAddressList = (input, context) => {
2798
- return input
2799
- .filter((e) => e != null)
2800
- .map((entry) => {
2801
- return entry;
2802
- });
2803
- };
2804
2661
  const se_EmailContent = (input, context) => {
2805
- return {
2806
- ...(input.Raw != null && { Raw: se_RawMessage(input.Raw, context) }),
2807
- ...(input.Simple != null && { Simple: se_Message(input.Simple, context) }),
2808
- ...(input.Template != null && { Template: se_Template(input.Template, context) }),
2809
- };
2810
- };
2811
- const se_EventDestinationDefinition = (input, context) => {
2812
- return {
2813
- ...(input.CloudWatchDestination != null && {
2814
- CloudWatchDestination: se_CloudWatchDestination(input.CloudWatchDestination, context),
2815
- }),
2816
- ...(input.Enabled != null && { Enabled: input.Enabled }),
2817
- ...(input.KinesisFirehoseDestination != null && {
2818
- KinesisFirehoseDestination: se_KinesisFirehoseDestination(input.KinesisFirehoseDestination, context),
2819
- }),
2820
- ...(input.MatchingEventTypes != null && { MatchingEventTypes: se_EventTypes(input.MatchingEventTypes, context) }),
2821
- ...(input.PinpointDestination != null && {
2822
- PinpointDestination: se_PinpointDestination(input.PinpointDestination, context),
2823
- }),
2824
- ...(input.SnsDestination != null && { SnsDestination: se_SnsDestination(input.SnsDestination, context) }),
2825
- };
2826
- };
2827
- const se_EventTypes = (input, context) => {
2828
- return input
2829
- .filter((e) => e != null)
2830
- .map((entry) => {
2831
- return entry;
2662
+ return take(input, {
2663
+ Raw: (_) => se_RawMessage(_, context),
2664
+ Simple: _json,
2665
+ Template: _json,
2832
2666
  });
2833
2667
  };
2834
- const se_InboxPlacementTrackingOption = (input, context) => {
2835
- return {
2836
- ...(input.Global != null && { Global: input.Global }),
2837
- ...(input.TrackedIsps != null && { TrackedIsps: se_IspNameList(input.TrackedIsps, context) }),
2838
- };
2839
- };
2840
- const se_IspNameList = (input, context) => {
2841
- return input
2842
- .filter((e) => e != null)
2843
- .map((entry) => {
2844
- return entry;
2845
- });
2846
- };
2847
- const se_KinesisFirehoseDestination = (input, context) => {
2848
- return {
2849
- ...(input.DeliveryStreamArn != null && { DeliveryStreamArn: input.DeliveryStreamArn }),
2850
- ...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
2851
- };
2852
- };
2853
- const se_Message = (input, context) => {
2854
- return {
2855
- ...(input.Body != null && { Body: se_Body(input.Body, context) }),
2856
- ...(input.Subject != null && { Subject: se_Content(input.Subject, context) }),
2857
- };
2858
- };
2859
- const se_MessageTag = (input, context) => {
2860
- return {
2861
- ...(input.Name != null && { Name: input.Name }),
2862
- ...(input.Value != null && { Value: input.Value }),
2863
- };
2864
- };
2865
- const se_MessageTagList = (input, context) => {
2866
- return input
2867
- .filter((e) => e != null)
2868
- .map((entry) => {
2869
- return se_MessageTag(entry, context);
2870
- });
2871
- };
2872
- const se_PinpointDestination = (input, context) => {
2873
- return {
2874
- ...(input.ApplicationArn != null && { ApplicationArn: input.ApplicationArn }),
2875
- };
2876
- };
2877
2668
  const se_RawMessage = (input, context) => {
2878
- return {
2879
- ...(input.Data != null && { Data: context.base64Encoder(input.Data) }),
2880
- };
2669
+ return take(input, {
2670
+ Data: context.base64Encoder,
2671
+ });
2881
2672
  };
2882
2673
  const se_ReputationOptions = (input, context) => {
2883
- return {
2884
- ...(input.LastFreshStart != null && { LastFreshStart: Math.round(input.LastFreshStart.getTime() / 1000) }),
2885
- ...(input.ReputationMetricsEnabled != null && { ReputationMetricsEnabled: input.ReputationMetricsEnabled }),
2886
- };
2887
- };
2888
- const se_SendingOptions = (input, context) => {
2889
- return {
2890
- ...(input.SendingEnabled != null && { SendingEnabled: input.SendingEnabled }),
2891
- };
2892
- };
2893
- const se_SnsDestination = (input, context) => {
2894
- return {
2895
- ...(input.TopicArn != null && { TopicArn: input.TopicArn }),
2896
- };
2897
- };
2898
- const se_Tag = (input, context) => {
2899
- return {
2900
- ...(input.Key != null && { Key: input.Key }),
2901
- ...(input.Value != null && { Value: input.Value }),
2902
- };
2903
- };
2904
- const se_TagList = (input, context) => {
2905
- return input
2906
- .filter((e) => e != null)
2907
- .map((entry) => {
2908
- return se_Tag(entry, context);
2674
+ return take(input, {
2675
+ LastFreshStart: (_) => Math.round(_.getTime() / 1000),
2676
+ ReputationMetricsEnabled: [],
2909
2677
  });
2910
2678
  };
2911
- const se_Template = (input, context) => {
2912
- return {
2913
- ...(input.TemplateArn != null && { TemplateArn: input.TemplateArn }),
2914
- ...(input.TemplateData != null && { TemplateData: input.TemplateData }),
2915
- };
2916
- };
2917
- const se_TrackingOptions = (input, context) => {
2918
- return {
2919
- ...(input.CustomRedirectDomain != null && { CustomRedirectDomain: input.CustomRedirectDomain }),
2920
- };
2921
- };
2922
2679
  const de_BlacklistEntries = (output, context) => {
2923
2680
  const retVal = (output || [])
2924
2681
  .filter((e) => e != null)
2925
2682
  .map((entry) => {
2926
- if (entry === null) {
2927
- return null;
2928
- }
2929
2683
  return de_BlacklistEntry(entry, context);
2930
2684
  });
2931
2685
  return retVal;
2932
2686
  };
2933
2687
  const de_BlacklistEntry = (output, context) => {
2934
- return {
2935
- Description: __expectString(output.Description),
2936
- ListingTime: output.ListingTime != null
2937
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ListingTime)))
2938
- : undefined,
2939
- RblName: __expectString(output.RblName),
2940
- };
2688
+ return take(output, {
2689
+ Description: __expectString,
2690
+ ListingTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2691
+ RblName: __expectString,
2692
+ });
2941
2693
  };
2942
2694
  const de_BlacklistReport = (output, context) => {
2943
2695
  return Object.entries(output).reduce((acc, [key, value]) => {
@@ -2948,409 +2700,139 @@ const de_BlacklistReport = (output, context) => {
2948
2700
  return acc;
2949
2701
  }, {});
2950
2702
  };
2951
- const de_CloudWatchDestination = (output, context) => {
2952
- return {
2953
- DimensionConfigurations: output.DimensionConfigurations != null
2954
- ? de_CloudWatchDimensionConfigurations(output.DimensionConfigurations, context)
2955
- : undefined,
2956
- };
2957
- };
2958
- const de_CloudWatchDimensionConfiguration = (output, context) => {
2959
- return {
2960
- DefaultDimensionValue: __expectString(output.DefaultDimensionValue),
2961
- DimensionName: __expectString(output.DimensionName),
2962
- DimensionValueSource: __expectString(output.DimensionValueSource),
2963
- };
2964
- };
2965
- const de_CloudWatchDimensionConfigurations = (output, context) => {
2966
- const retVal = (output || [])
2967
- .filter((e) => e != null)
2968
- .map((entry) => {
2969
- if (entry === null) {
2970
- return null;
2971
- }
2972
- return de_CloudWatchDimensionConfiguration(entry, context);
2973
- });
2974
- return retVal;
2975
- };
2976
- const de_ConfigurationSetNameList = (output, context) => {
2977
- const retVal = (output || [])
2978
- .filter((e) => e != null)
2979
- .map((entry) => {
2980
- if (entry === null) {
2981
- return null;
2982
- }
2983
- return __expectString(entry);
2984
- });
2985
- return retVal;
2986
- };
2987
2703
  const de_DailyVolume = (output, context) => {
2988
- return {
2989
- DomainIspPlacements: output.DomainIspPlacements != null ? de_DomainIspPlacements(output.DomainIspPlacements, context) : undefined,
2990
- StartDate: output.StartDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartDate))) : undefined,
2991
- VolumeStatistics: output.VolumeStatistics != null ? de_VolumeStatistics(output.VolumeStatistics, context) : undefined,
2992
- };
2704
+ return take(output, {
2705
+ DomainIspPlacements: (_) => de_DomainIspPlacements(_, context),
2706
+ StartDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2707
+ VolumeStatistics: _json,
2708
+ });
2993
2709
  };
2994
2710
  const de_DailyVolumes = (output, context) => {
2995
2711
  const retVal = (output || [])
2996
2712
  .filter((e) => e != null)
2997
2713
  .map((entry) => {
2998
- if (entry === null) {
2999
- return null;
3000
- }
3001
2714
  return de_DailyVolume(entry, context);
3002
2715
  });
3003
2716
  return retVal;
3004
2717
  };
3005
- const de_DedicatedIp = (output, context) => {
3006
- return {
3007
- Ip: __expectString(output.Ip),
3008
- PoolName: __expectString(output.PoolName),
3009
- WarmupPercentage: __expectInt32(output.WarmupPercentage),
3010
- WarmupStatus: __expectString(output.WarmupStatus),
3011
- };
3012
- };
3013
- const de_DedicatedIpList = (output, context) => {
3014
- const retVal = (output || [])
3015
- .filter((e) => e != null)
3016
- .map((entry) => {
3017
- if (entry === null) {
3018
- return null;
3019
- }
3020
- return de_DedicatedIp(entry, context);
3021
- });
3022
- return retVal;
3023
- };
3024
2718
  const de_DeliverabilityTestReport = (output, context) => {
3025
- return {
3026
- CreateDate: output.CreateDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate))) : undefined,
3027
- DeliverabilityTestStatus: __expectString(output.DeliverabilityTestStatus),
3028
- FromEmailAddress: __expectString(output.FromEmailAddress),
3029
- ReportId: __expectString(output.ReportId),
3030
- ReportName: __expectString(output.ReportName),
3031
- Subject: __expectString(output.Subject),
3032
- };
2719
+ return take(output, {
2720
+ CreateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2721
+ DeliverabilityTestStatus: __expectString,
2722
+ FromEmailAddress: __expectString,
2723
+ ReportId: __expectString,
2724
+ ReportName: __expectString,
2725
+ Subject: __expectString,
2726
+ });
3033
2727
  };
3034
2728
  const de_DeliverabilityTestReports = (output, context) => {
3035
2729
  const retVal = (output || [])
3036
2730
  .filter((e) => e != null)
3037
2731
  .map((entry) => {
3038
- if (entry === null) {
3039
- return null;
3040
- }
3041
2732
  return de_DeliverabilityTestReport(entry, context);
3042
2733
  });
3043
2734
  return retVal;
3044
2735
  };
3045
- const de_DeliveryOptions = (output, context) => {
3046
- return {
3047
- SendingPoolName: __expectString(output.SendingPoolName),
3048
- TlsPolicy: __expectString(output.TlsPolicy),
3049
- };
3050
- };
3051
- const de_DkimAttributes = (output, context) => {
3052
- return {
3053
- SigningEnabled: __expectBoolean(output.SigningEnabled),
3054
- Status: __expectString(output.Status),
3055
- Tokens: output.Tokens != null ? de_DnsTokenList(output.Tokens, context) : undefined,
3056
- };
3057
- };
3058
- const de_DnsTokenList = (output, context) => {
3059
- const retVal = (output || [])
3060
- .filter((e) => e != null)
3061
- .map((entry) => {
3062
- if (entry === null) {
3063
- return null;
3064
- }
3065
- return __expectString(entry);
3066
- });
3067
- return retVal;
3068
- };
3069
2736
  const de_DomainDeliverabilityCampaign = (output, context) => {
3070
- return {
3071
- CampaignId: __expectString(output.CampaignId),
3072
- DeleteRate: __limitedParseDouble(output.DeleteRate),
3073
- Esps: output.Esps != null ? de_Esps(output.Esps, context) : undefined,
3074
- FirstSeenDateTime: output.FirstSeenDateTime != null
3075
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.FirstSeenDateTime)))
3076
- : undefined,
3077
- FromAddress: __expectString(output.FromAddress),
3078
- ImageUrl: __expectString(output.ImageUrl),
3079
- InboxCount: __expectLong(output.InboxCount),
3080
- LastSeenDateTime: output.LastSeenDateTime != null
3081
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastSeenDateTime)))
3082
- : undefined,
3083
- ProjectedVolume: __expectLong(output.ProjectedVolume),
3084
- ReadDeleteRate: __limitedParseDouble(output.ReadDeleteRate),
3085
- ReadRate: __limitedParseDouble(output.ReadRate),
3086
- SendingIps: output.SendingIps != null ? de_IpList(output.SendingIps, context) : undefined,
3087
- SpamCount: __expectLong(output.SpamCount),
3088
- Subject: __expectString(output.Subject),
3089
- };
2737
+ return take(output, {
2738
+ CampaignId: __expectString,
2739
+ DeleteRate: __limitedParseDouble,
2740
+ Esps: _json,
2741
+ FirstSeenDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2742
+ FromAddress: __expectString,
2743
+ ImageUrl: __expectString,
2744
+ InboxCount: __expectLong,
2745
+ LastSeenDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2746
+ ProjectedVolume: __expectLong,
2747
+ ReadDeleteRate: __limitedParseDouble,
2748
+ ReadRate: __limitedParseDouble,
2749
+ SendingIps: _json,
2750
+ SpamCount: __expectLong,
2751
+ Subject: __expectString,
2752
+ });
3090
2753
  };
3091
2754
  const de_DomainDeliverabilityCampaignList = (output, context) => {
3092
2755
  const retVal = (output || [])
3093
2756
  .filter((e) => e != null)
3094
2757
  .map((entry) => {
3095
- if (entry === null) {
3096
- return null;
3097
- }
3098
2758
  return de_DomainDeliverabilityCampaign(entry, context);
3099
2759
  });
3100
2760
  return retVal;
3101
2761
  };
3102
2762
  const de_DomainDeliverabilityTrackingOption = (output, context) => {
3103
- return {
3104
- Domain: __expectString(output.Domain),
3105
- InboxPlacementTrackingOption: output.InboxPlacementTrackingOption != null
3106
- ? de_InboxPlacementTrackingOption(output.InboxPlacementTrackingOption, context)
3107
- : undefined,
3108
- SubscriptionStartDate: output.SubscriptionStartDate != null
3109
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubscriptionStartDate)))
3110
- : undefined,
3111
- };
2763
+ return take(output, {
2764
+ Domain: __expectString,
2765
+ InboxPlacementTrackingOption: _json,
2766
+ SubscriptionStartDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2767
+ });
3112
2768
  };
3113
2769
  const de_DomainDeliverabilityTrackingOptions = (output, context) => {
3114
2770
  const retVal = (output || [])
3115
2771
  .filter((e) => e != null)
3116
2772
  .map((entry) => {
3117
- if (entry === null) {
3118
- return null;
3119
- }
3120
2773
  return de_DomainDeliverabilityTrackingOption(entry, context);
3121
2774
  });
3122
2775
  return retVal;
3123
2776
  };
3124
2777
  const de_DomainIspPlacement = (output, context) => {
3125
- return {
3126
- InboxPercentage: __limitedParseDouble(output.InboxPercentage),
3127
- InboxRawCount: __expectLong(output.InboxRawCount),
3128
- IspName: __expectString(output.IspName),
3129
- SpamPercentage: __limitedParseDouble(output.SpamPercentage),
3130
- SpamRawCount: __expectLong(output.SpamRawCount),
3131
- };
2778
+ return take(output, {
2779
+ InboxPercentage: __limitedParseDouble,
2780
+ InboxRawCount: __expectLong,
2781
+ IspName: __expectString,
2782
+ SpamPercentage: __limitedParseDouble,
2783
+ SpamRawCount: __expectLong,
2784
+ });
3132
2785
  };
3133
2786
  const de_DomainIspPlacements = (output, context) => {
3134
2787
  const retVal = (output || [])
3135
2788
  .filter((e) => e != null)
3136
2789
  .map((entry) => {
3137
- if (entry === null) {
3138
- return null;
3139
- }
3140
2790
  return de_DomainIspPlacement(entry, context);
3141
2791
  });
3142
2792
  return retVal;
3143
2793
  };
3144
- const de_Esps = (output, context) => {
3145
- const retVal = (output || [])
3146
- .filter((e) => e != null)
3147
- .map((entry) => {
3148
- if (entry === null) {
3149
- return null;
3150
- }
3151
- return __expectString(entry);
3152
- });
3153
- return retVal;
3154
- };
3155
- const de_EventDestination = (output, context) => {
3156
- return {
3157
- CloudWatchDestination: output.CloudWatchDestination != null
3158
- ? de_CloudWatchDestination(output.CloudWatchDestination, context)
3159
- : undefined,
3160
- Enabled: __expectBoolean(output.Enabled),
3161
- KinesisFirehoseDestination: output.KinesisFirehoseDestination != null
3162
- ? de_KinesisFirehoseDestination(output.KinesisFirehoseDestination, context)
3163
- : undefined,
3164
- MatchingEventTypes: output.MatchingEventTypes != null ? de_EventTypes(output.MatchingEventTypes, context) : undefined,
3165
- Name: __expectString(output.Name),
3166
- PinpointDestination: output.PinpointDestination != null ? de_PinpointDestination(output.PinpointDestination, context) : undefined,
3167
- SnsDestination: output.SnsDestination != null ? de_SnsDestination(output.SnsDestination, context) : undefined,
3168
- };
3169
- };
3170
- const de_EventDestinations = (output, context) => {
3171
- const retVal = (output || [])
3172
- .filter((e) => e != null)
3173
- .map((entry) => {
3174
- if (entry === null) {
3175
- return null;
3176
- }
3177
- return de_EventDestination(entry, context);
3178
- });
3179
- return retVal;
3180
- };
3181
- const de_EventTypes = (output, context) => {
3182
- const retVal = (output || [])
3183
- .filter((e) => e != null)
3184
- .map((entry) => {
3185
- if (entry === null) {
3186
- return null;
3187
- }
3188
- return __expectString(entry);
3189
- });
3190
- return retVal;
3191
- };
3192
- const de_IdentityInfo = (output, context) => {
3193
- return {
3194
- IdentityName: __expectString(output.IdentityName),
3195
- IdentityType: __expectString(output.IdentityType),
3196
- SendingEnabled: __expectBoolean(output.SendingEnabled),
3197
- };
3198
- };
3199
- const de_IdentityInfoList = (output, context) => {
3200
- const retVal = (output || [])
3201
- .filter((e) => e != null)
3202
- .map((entry) => {
3203
- if (entry === null) {
3204
- return null;
3205
- }
3206
- return de_IdentityInfo(entry, context);
3207
- });
3208
- return retVal;
3209
- };
3210
- const de_InboxPlacementTrackingOption = (output, context) => {
3211
- return {
3212
- Global: __expectBoolean(output.Global),
3213
- TrackedIsps: output.TrackedIsps != null ? de_IspNameList(output.TrackedIsps, context) : undefined,
3214
- };
3215
- };
3216
- const de_IpList = (output, context) => {
3217
- const retVal = (output || [])
3218
- .filter((e) => e != null)
3219
- .map((entry) => {
3220
- if (entry === null) {
3221
- return null;
3222
- }
3223
- return __expectString(entry);
3224
- });
3225
- return retVal;
3226
- };
3227
- const de_IspNameList = (output, context) => {
3228
- const retVal = (output || [])
3229
- .filter((e) => e != null)
3230
- .map((entry) => {
3231
- if (entry === null) {
3232
- return null;
3233
- }
3234
- return __expectString(entry);
3235
- });
3236
- return retVal;
3237
- };
3238
2794
  const de_IspPlacement = (output, context) => {
3239
- return {
3240
- IspName: __expectString(output.IspName),
3241
- PlacementStatistics: output.PlacementStatistics != null ? de_PlacementStatistics(output.PlacementStatistics, context) : undefined,
3242
- };
2795
+ return take(output, {
2796
+ IspName: __expectString,
2797
+ PlacementStatistics: (_) => de_PlacementStatistics(_, context),
2798
+ });
3243
2799
  };
3244
2800
  const de_IspPlacements = (output, context) => {
3245
2801
  const retVal = (output || [])
3246
2802
  .filter((e) => e != null)
3247
2803
  .map((entry) => {
3248
- if (entry === null) {
3249
- return null;
3250
- }
3251
2804
  return de_IspPlacement(entry, context);
3252
2805
  });
3253
2806
  return retVal;
3254
2807
  };
3255
- const de_KinesisFirehoseDestination = (output, context) => {
3256
- return {
3257
- DeliveryStreamArn: __expectString(output.DeliveryStreamArn),
3258
- IamRoleArn: __expectString(output.IamRoleArn),
3259
- };
3260
- };
3261
- const de_ListOfDedicatedIpPools = (output, context) => {
3262
- const retVal = (output || [])
3263
- .filter((e) => e != null)
3264
- .map((entry) => {
3265
- if (entry === null) {
3266
- return null;
3267
- }
3268
- return __expectString(entry);
3269
- });
3270
- return retVal;
3271
- };
3272
- const de_MailFromAttributes = (output, context) => {
3273
- return {
3274
- BehaviorOnMxFailure: __expectString(output.BehaviorOnMxFailure),
3275
- MailFromDomain: __expectString(output.MailFromDomain),
3276
- MailFromDomainStatus: __expectString(output.MailFromDomainStatus),
3277
- };
3278
- };
3279
2808
  const de_OverallVolume = (output, context) => {
3280
- return {
3281
- DomainIspPlacements: output.DomainIspPlacements != null ? de_DomainIspPlacements(output.DomainIspPlacements, context) : undefined,
3282
- ReadRatePercent: __limitedParseDouble(output.ReadRatePercent),
3283
- VolumeStatistics: output.VolumeStatistics != null ? de_VolumeStatistics(output.VolumeStatistics, context) : undefined,
3284
- };
3285
- };
3286
- const de_PinpointDestination = (output, context) => {
3287
- return {
3288
- ApplicationArn: __expectString(output.ApplicationArn),
3289
- };
2809
+ return take(output, {
2810
+ DomainIspPlacements: (_) => de_DomainIspPlacements(_, context),
2811
+ ReadRatePercent: __limitedParseDouble,
2812
+ VolumeStatistics: _json,
2813
+ });
3290
2814
  };
3291
2815
  const de_PlacementStatistics = (output, context) => {
3292
- return {
3293
- DkimPercentage: __limitedParseDouble(output.DkimPercentage),
3294
- InboxPercentage: __limitedParseDouble(output.InboxPercentage),
3295
- MissingPercentage: __limitedParseDouble(output.MissingPercentage),
3296
- SpamPercentage: __limitedParseDouble(output.SpamPercentage),
3297
- SpfPercentage: __limitedParseDouble(output.SpfPercentage),
3298
- };
2816
+ return take(output, {
2817
+ DkimPercentage: __limitedParseDouble,
2818
+ InboxPercentage: __limitedParseDouble,
2819
+ MissingPercentage: __limitedParseDouble,
2820
+ SpamPercentage: __limitedParseDouble,
2821
+ SpfPercentage: __limitedParseDouble,
2822
+ });
3299
2823
  };
3300
2824
  const de_ReputationOptions = (output, context) => {
3301
- return {
3302
- LastFreshStart: output.LastFreshStart != null
3303
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastFreshStart)))
3304
- : undefined,
3305
- ReputationMetricsEnabled: __expectBoolean(output.ReputationMetricsEnabled),
3306
- };
3307
- };
3308
- const de_SendingOptions = (output, context) => {
3309
- return {
3310
- SendingEnabled: __expectBoolean(output.SendingEnabled),
3311
- };
2825
+ return take(output, {
2826
+ LastFreshStart: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2827
+ ReputationMetricsEnabled: __expectBoolean,
2828
+ });
3312
2829
  };
3313
2830
  const de_SendQuota = (output, context) => {
3314
- return {
3315
- Max24HourSend: __limitedParseDouble(output.Max24HourSend),
3316
- MaxSendRate: __limitedParseDouble(output.MaxSendRate),
3317
- SentLast24Hours: __limitedParseDouble(output.SentLast24Hours),
3318
- };
3319
- };
3320
- const de_SnsDestination = (output, context) => {
3321
- return {
3322
- TopicArn: __expectString(output.TopicArn),
3323
- };
3324
- };
3325
- const de_Tag = (output, context) => {
3326
- return {
3327
- Key: __expectString(output.Key),
3328
- Value: __expectString(output.Value),
3329
- };
3330
- };
3331
- const de_TagList = (output, context) => {
3332
- const retVal = (output || [])
3333
- .filter((e) => e != null)
3334
- .map((entry) => {
3335
- if (entry === null) {
3336
- return null;
3337
- }
3338
- return de_Tag(entry, context);
2831
+ return take(output, {
2832
+ Max24HourSend: __limitedParseDouble,
2833
+ MaxSendRate: __limitedParseDouble,
2834
+ SentLast24Hours: __limitedParseDouble,
3339
2835
  });
3340
- return retVal;
3341
- };
3342
- const de_TrackingOptions = (output, context) => {
3343
- return {
3344
- CustomRedirectDomain: __expectString(output.CustomRedirectDomain),
3345
- };
3346
- };
3347
- const de_VolumeStatistics = (output, context) => {
3348
- return {
3349
- InboxRawCount: __expectLong(output.InboxRawCount),
3350
- ProjectedInbox: __expectLong(output.ProjectedInbox),
3351
- ProjectedSpam: __expectLong(output.ProjectedSpam),
3352
- SpamRawCount: __expectLong(output.SpamRawCount),
3353
- };
3354
2836
  };
3355
2837
  const deserializeMetadata = (output) => ({
3356
2838
  httpStatusCode: output.statusCode,