@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.
- package/dist-cjs/protocols/Aws_restJson1.js +423 -941
- package/dist-es/protocols/Aws_restJson1.js +362 -880
- package/package.json +6 -6
|
@@ -13,16 +13,14 @@ const se_CreateConfigurationSetCommand = async (input, context) => {
|
|
|
13
13
|
};
|
|
14
14
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/configuration-sets";
|
|
15
15
|
let body;
|
|
16
|
-
body = JSON.stringify({
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
...(input.TrackingOptions != null && { TrackingOptions: se_TrackingOptions(input.TrackingOptions, context) }),
|
|
25
|
-
});
|
|
16
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
|
+
ConfigurationSetName: [],
|
|
18
|
+
DeliveryOptions: (_) => (0, smithy_client_1._json)(_),
|
|
19
|
+
ReputationOptions: (_) => se_ReputationOptions(_, context),
|
|
20
|
+
SendingOptions: (_) => (0, smithy_client_1._json)(_),
|
|
21
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
22
|
+
TrackingOptions: (_) => (0, smithy_client_1._json)(_),
|
|
23
|
+
}));
|
|
26
24
|
return new protocol_http_1.HttpRequest({
|
|
27
25
|
protocol,
|
|
28
26
|
hostname,
|
|
@@ -43,12 +41,10 @@ const se_CreateConfigurationSetEventDestinationCommand = async (input, context)
|
|
|
43
41
|
"/v1/email/configuration-sets/{ConfigurationSetName}/event-destinations";
|
|
44
42
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
|
|
45
43
|
let body;
|
|
46
|
-
body = JSON.stringify({
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
...(input.EventDestinationName != null && { EventDestinationName: input.EventDestinationName }),
|
|
51
|
-
});
|
|
44
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
45
|
+
EventDestination: (_) => (0, smithy_client_1._json)(_),
|
|
46
|
+
EventDestinationName: [],
|
|
47
|
+
}));
|
|
52
48
|
return new protocol_http_1.HttpRequest({
|
|
53
49
|
protocol,
|
|
54
50
|
hostname,
|
|
@@ -67,10 +63,10 @@ const se_CreateDedicatedIpPoolCommand = async (input, context) => {
|
|
|
67
63
|
};
|
|
68
64
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/dedicated-ip-pools";
|
|
69
65
|
let body;
|
|
70
|
-
body = JSON.stringify({
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
});
|
|
66
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
67
|
+
PoolName: [],
|
|
68
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
69
|
+
}));
|
|
74
70
|
return new protocol_http_1.HttpRequest({
|
|
75
71
|
protocol,
|
|
76
72
|
hostname,
|
|
@@ -89,12 +85,12 @@ const se_CreateDeliverabilityTestReportCommand = async (input, context) => {
|
|
|
89
85
|
};
|
|
90
86
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/deliverability-dashboard/test";
|
|
91
87
|
let body;
|
|
92
|
-
body = JSON.stringify({
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
});
|
|
88
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
89
|
+
Content: (_) => se_EmailContent(_, context),
|
|
90
|
+
FromEmailAddress: [],
|
|
91
|
+
ReportName: [],
|
|
92
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
93
|
+
}));
|
|
98
94
|
return new protocol_http_1.HttpRequest({
|
|
99
95
|
protocol,
|
|
100
96
|
hostname,
|
|
@@ -113,10 +109,10 @@ const se_CreateEmailIdentityCommand = async (input, context) => {
|
|
|
113
109
|
};
|
|
114
110
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/identities";
|
|
115
111
|
let body;
|
|
116
|
-
body = JSON.stringify({
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
});
|
|
112
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
113
|
+
EmailIdentity: [],
|
|
114
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
115
|
+
}));
|
|
120
116
|
return new protocol_http_1.HttpRequest({
|
|
121
117
|
protocol,
|
|
122
118
|
hostname,
|
|
@@ -223,7 +219,7 @@ const se_GetBlacklistReportsCommand = async (input, context) => {
|
|
|
223
219
|
const headers = {};
|
|
224
220
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
225
221
|
"/v1/email/deliverability-dashboard/blacklist-report";
|
|
226
|
-
const query = map({
|
|
222
|
+
const query = (0, smithy_client_1.map)({
|
|
227
223
|
BlacklistItemNames: [
|
|
228
224
|
(0, smithy_client_1.expectNonNull)(input.BlacklistItemNames, `BlacklistItemNames`) != null,
|
|
229
225
|
() => (input.BlacklistItemNames || []).map((_entry) => _entry),
|
|
@@ -299,7 +295,7 @@ const se_GetDedicatedIpsCommand = async (input, context) => {
|
|
|
299
295
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
300
296
|
const headers = {};
|
|
301
297
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/dedicated-ips";
|
|
302
|
-
const query = map({
|
|
298
|
+
const query = (0, smithy_client_1.map)({
|
|
303
299
|
PoolName: [, input.PoolName],
|
|
304
300
|
NextToken: [, input.NextToken],
|
|
305
301
|
PageSize: [() => input.PageSize !== void 0, () => input.PageSize.toString()],
|
|
@@ -378,7 +374,7 @@ const se_GetDomainStatisticsReportCommand = async (input, context) => {
|
|
|
378
374
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
379
375
|
"/v1/email/deliverability-dashboard/statistics-report/{Domain}";
|
|
380
376
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Domain", () => input.Domain, "{Domain}", false);
|
|
381
|
-
const query = map({
|
|
377
|
+
const query = (0, smithy_client_1.map)({
|
|
382
378
|
StartDate: [
|
|
383
379
|
(0, smithy_client_1.expectNonNull)(input.StartDate, `StartDate`) != null,
|
|
384
380
|
() => (input.StartDate.toISOString().split(".")[0] + "Z").toString(),
|
|
@@ -422,7 +418,7 @@ const se_ListConfigurationSetsCommand = async (input, context) => {
|
|
|
422
418
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
423
419
|
const headers = {};
|
|
424
420
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/configuration-sets";
|
|
425
|
-
const query = map({
|
|
421
|
+
const query = (0, smithy_client_1.map)({
|
|
426
422
|
NextToken: [, input.NextToken],
|
|
427
423
|
PageSize: [() => input.PageSize !== void 0, () => input.PageSize.toString()],
|
|
428
424
|
});
|
|
@@ -443,7 +439,7 @@ const se_ListDedicatedIpPoolsCommand = async (input, context) => {
|
|
|
443
439
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
444
440
|
const headers = {};
|
|
445
441
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/dedicated-ip-pools";
|
|
446
|
-
const query = map({
|
|
442
|
+
const query = (0, smithy_client_1.map)({
|
|
447
443
|
NextToken: [, input.NextToken],
|
|
448
444
|
PageSize: [() => input.PageSize !== void 0, () => input.PageSize.toString()],
|
|
449
445
|
});
|
|
@@ -465,7 +461,7 @@ const se_ListDeliverabilityTestReportsCommand = async (input, context) => {
|
|
|
465
461
|
const headers = {};
|
|
466
462
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
467
463
|
"/v1/email/deliverability-dashboard/test-reports";
|
|
468
|
-
const query = map({
|
|
464
|
+
const query = (0, smithy_client_1.map)({
|
|
469
465
|
NextToken: [, input.NextToken],
|
|
470
466
|
PageSize: [() => input.PageSize !== void 0, () => input.PageSize.toString()],
|
|
471
467
|
});
|
|
@@ -488,7 +484,7 @@ const se_ListDomainDeliverabilityCampaignsCommand = async (input, context) => {
|
|
|
488
484
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
489
485
|
"/v1/email/deliverability-dashboard/domains/{SubscribedDomain}/campaigns";
|
|
490
486
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SubscribedDomain", () => input.SubscribedDomain, "{SubscribedDomain}", false);
|
|
491
|
-
const query = map({
|
|
487
|
+
const query = (0, smithy_client_1.map)({
|
|
492
488
|
StartDate: [
|
|
493
489
|
(0, smithy_client_1.expectNonNull)(input.StartDate, `StartDate`) != null,
|
|
494
490
|
() => (input.StartDate.toISOString().split(".")[0] + "Z").toString(),
|
|
@@ -517,7 +513,7 @@ const se_ListEmailIdentitiesCommand = async (input, context) => {
|
|
|
517
513
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
518
514
|
const headers = {};
|
|
519
515
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/identities";
|
|
520
|
-
const query = map({
|
|
516
|
+
const query = (0, smithy_client_1.map)({
|
|
521
517
|
NextToken: [, input.NextToken],
|
|
522
518
|
PageSize: [() => input.PageSize !== void 0, () => input.PageSize.toString()],
|
|
523
519
|
});
|
|
@@ -538,7 +534,7 @@ const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
538
534
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
539
535
|
const headers = {};
|
|
540
536
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/tags";
|
|
541
|
-
const query = map({
|
|
537
|
+
const query = (0, smithy_client_1.map)({
|
|
542
538
|
ResourceArn: [, (0, smithy_client_1.expectNonNull)(input.ResourceArn, `ResourceArn`)],
|
|
543
539
|
});
|
|
544
540
|
let body;
|
|
@@ -561,9 +557,9 @@ const se_PutAccountDedicatedIpWarmupAttributesCommand = async (input, context) =
|
|
|
561
557
|
};
|
|
562
558
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/account/dedicated-ips/warmup";
|
|
563
559
|
let body;
|
|
564
|
-
body = JSON.stringify({
|
|
565
|
-
|
|
566
|
-
});
|
|
560
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
561
|
+
AutoWarmupEnabled: [],
|
|
562
|
+
}));
|
|
567
563
|
return new protocol_http_1.HttpRequest({
|
|
568
564
|
protocol,
|
|
569
565
|
hostname,
|
|
@@ -582,9 +578,9 @@ const se_PutAccountSendingAttributesCommand = async (input, context) => {
|
|
|
582
578
|
};
|
|
583
579
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/account/sending";
|
|
584
580
|
let body;
|
|
585
|
-
body = JSON.stringify({
|
|
586
|
-
|
|
587
|
-
});
|
|
581
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
582
|
+
SendingEnabled: [],
|
|
583
|
+
}));
|
|
588
584
|
return new protocol_http_1.HttpRequest({
|
|
589
585
|
protocol,
|
|
590
586
|
hostname,
|
|
@@ -605,10 +601,10 @@ const se_PutConfigurationSetDeliveryOptionsCommand = async (input, context) => {
|
|
|
605
601
|
"/v1/email/configuration-sets/{ConfigurationSetName}/delivery-options";
|
|
606
602
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
|
|
607
603
|
let body;
|
|
608
|
-
body = JSON.stringify({
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
});
|
|
604
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
605
|
+
SendingPoolName: [],
|
|
606
|
+
TlsPolicy: [],
|
|
607
|
+
}));
|
|
612
608
|
return new protocol_http_1.HttpRequest({
|
|
613
609
|
protocol,
|
|
614
610
|
hostname,
|
|
@@ -629,9 +625,9 @@ const se_PutConfigurationSetReputationOptionsCommand = async (input, context) =>
|
|
|
629
625
|
"/v1/email/configuration-sets/{ConfigurationSetName}/reputation-options";
|
|
630
626
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
|
|
631
627
|
let body;
|
|
632
|
-
body = JSON.stringify({
|
|
633
|
-
|
|
634
|
-
});
|
|
628
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
629
|
+
ReputationMetricsEnabled: [],
|
|
630
|
+
}));
|
|
635
631
|
return new protocol_http_1.HttpRequest({
|
|
636
632
|
protocol,
|
|
637
633
|
hostname,
|
|
@@ -652,9 +648,9 @@ const se_PutConfigurationSetSendingOptionsCommand = async (input, context) => {
|
|
|
652
648
|
"/v1/email/configuration-sets/{ConfigurationSetName}/sending";
|
|
653
649
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
|
|
654
650
|
let body;
|
|
655
|
-
body = JSON.stringify({
|
|
656
|
-
|
|
657
|
-
});
|
|
651
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
652
|
+
SendingEnabled: [],
|
|
653
|
+
}));
|
|
658
654
|
return new protocol_http_1.HttpRequest({
|
|
659
655
|
protocol,
|
|
660
656
|
hostname,
|
|
@@ -675,9 +671,9 @@ const se_PutConfigurationSetTrackingOptionsCommand = async (input, context) => {
|
|
|
675
671
|
"/v1/email/configuration-sets/{ConfigurationSetName}/tracking-options";
|
|
676
672
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
|
|
677
673
|
let body;
|
|
678
|
-
body = JSON.stringify({
|
|
679
|
-
|
|
680
|
-
});
|
|
674
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
675
|
+
CustomRedirectDomain: [],
|
|
676
|
+
}));
|
|
681
677
|
return new protocol_http_1.HttpRequest({
|
|
682
678
|
protocol,
|
|
683
679
|
hostname,
|
|
@@ -697,9 +693,9 @@ const se_PutDedicatedIpInPoolCommand = async (input, context) => {
|
|
|
697
693
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/dedicated-ips/{Ip}/pool";
|
|
698
694
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Ip", () => input.Ip, "{Ip}", false);
|
|
699
695
|
let body;
|
|
700
|
-
body = JSON.stringify({
|
|
701
|
-
|
|
702
|
-
});
|
|
696
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
697
|
+
DestinationPoolName: [],
|
|
698
|
+
}));
|
|
703
699
|
return new protocol_http_1.HttpRequest({
|
|
704
700
|
protocol,
|
|
705
701
|
hostname,
|
|
@@ -719,9 +715,9 @@ const se_PutDedicatedIpWarmupAttributesCommand = async (input, context) => {
|
|
|
719
715
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/dedicated-ips/{Ip}/warmup";
|
|
720
716
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Ip", () => input.Ip, "{Ip}", false);
|
|
721
717
|
let body;
|
|
722
|
-
body = JSON.stringify({
|
|
723
|
-
|
|
724
|
-
});
|
|
718
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
719
|
+
WarmupPercentage: [],
|
|
720
|
+
}));
|
|
725
721
|
return new protocol_http_1.HttpRequest({
|
|
726
722
|
protocol,
|
|
727
723
|
hostname,
|
|
@@ -740,12 +736,10 @@ const se_PutDeliverabilityDashboardOptionCommand = async (input, context) => {
|
|
|
740
736
|
};
|
|
741
737
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/deliverability-dashboard";
|
|
742
738
|
let body;
|
|
743
|
-
body = JSON.stringify({
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
}),
|
|
748
|
-
});
|
|
739
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
740
|
+
DashboardEnabled: [],
|
|
741
|
+
SubscribedDomains: (_) => se_DomainDeliverabilityTrackingOptions(_, context),
|
|
742
|
+
}));
|
|
749
743
|
return new protocol_http_1.HttpRequest({
|
|
750
744
|
protocol,
|
|
751
745
|
hostname,
|
|
@@ -765,9 +759,9 @@ const se_PutEmailIdentityDkimAttributesCommand = async (input, context) => {
|
|
|
765
759
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/identities/{EmailIdentity}/dkim";
|
|
766
760
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
|
|
767
761
|
let body;
|
|
768
|
-
body = JSON.stringify({
|
|
769
|
-
|
|
770
|
-
});
|
|
762
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
763
|
+
SigningEnabled: [],
|
|
764
|
+
}));
|
|
771
765
|
return new protocol_http_1.HttpRequest({
|
|
772
766
|
protocol,
|
|
773
767
|
hostname,
|
|
@@ -788,9 +782,9 @@ const se_PutEmailIdentityFeedbackAttributesCommand = async (input, context) => {
|
|
|
788
782
|
"/v1/email/identities/{EmailIdentity}/feedback";
|
|
789
783
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
|
|
790
784
|
let body;
|
|
791
|
-
body = JSON.stringify({
|
|
792
|
-
|
|
793
|
-
});
|
|
785
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
786
|
+
EmailForwardingEnabled: [],
|
|
787
|
+
}));
|
|
794
788
|
return new protocol_http_1.HttpRequest({
|
|
795
789
|
protocol,
|
|
796
790
|
hostname,
|
|
@@ -811,10 +805,10 @@ const se_PutEmailIdentityMailFromAttributesCommand = async (input, context) => {
|
|
|
811
805
|
"/v1/email/identities/{EmailIdentity}/mail-from";
|
|
812
806
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
|
|
813
807
|
let body;
|
|
814
|
-
body = JSON.stringify({
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
});
|
|
808
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
809
|
+
BehaviorOnMxFailure: [],
|
|
810
|
+
MailFromDomain: [],
|
|
811
|
+
}));
|
|
818
812
|
return new protocol_http_1.HttpRequest({
|
|
819
813
|
protocol,
|
|
820
814
|
hostname,
|
|
@@ -833,17 +827,15 @@ const se_SendEmailCommand = async (input, context) => {
|
|
|
833
827
|
};
|
|
834
828
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/outbound-emails";
|
|
835
829
|
let body;
|
|
836
|
-
body = JSON.stringify({
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
...(input.ReplyToAddresses != null && { ReplyToAddresses: se_EmailAddressList(input.ReplyToAddresses, context) }),
|
|
846
|
-
});
|
|
830
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
831
|
+
ConfigurationSetName: [],
|
|
832
|
+
Content: (_) => se_EmailContent(_, context),
|
|
833
|
+
Destination: (_) => (0, smithy_client_1._json)(_),
|
|
834
|
+
EmailTags: (_) => (0, smithy_client_1._json)(_),
|
|
835
|
+
FeedbackForwardingEmailAddress: [],
|
|
836
|
+
FromEmailAddress: [],
|
|
837
|
+
ReplyToAddresses: (_) => (0, smithy_client_1._json)(_),
|
|
838
|
+
}));
|
|
847
839
|
return new protocol_http_1.HttpRequest({
|
|
848
840
|
protocol,
|
|
849
841
|
hostname,
|
|
@@ -862,10 +854,10 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
862
854
|
};
|
|
863
855
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/tags";
|
|
864
856
|
let body;
|
|
865
|
-
body = JSON.stringify({
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
});
|
|
857
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
858
|
+
ResourceArn: [],
|
|
859
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
860
|
+
}));
|
|
869
861
|
return new protocol_http_1.HttpRequest({
|
|
870
862
|
protocol,
|
|
871
863
|
hostname,
|
|
@@ -881,7 +873,7 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
881
873
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
882
874
|
const headers = {};
|
|
883
875
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/tags";
|
|
884
|
-
const query = map({
|
|
876
|
+
const query = (0, smithy_client_1.map)({
|
|
885
877
|
ResourceArn: [, (0, smithy_client_1.expectNonNull)(input.ResourceArn, `ResourceArn`)],
|
|
886
878
|
TagKeys: [
|
|
887
879
|
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
@@ -911,11 +903,9 @@ const se_UpdateConfigurationSetEventDestinationCommand = async (input, context)
|
|
|
911
903
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
|
|
912
904
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EventDestinationName", () => input.EventDestinationName, "{EventDestinationName}", false);
|
|
913
905
|
let body;
|
|
914
|
-
body = JSON.stringify({
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
}),
|
|
918
|
-
});
|
|
906
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
907
|
+
EventDestination: (_) => (0, smithy_client_1._json)(_),
|
|
908
|
+
}));
|
|
919
909
|
return new protocol_http_1.HttpRequest({
|
|
920
910
|
protocol,
|
|
921
911
|
hostname,
|
|
@@ -931,7 +921,7 @@ const de_CreateConfigurationSetCommand = async (output, context) => {
|
|
|
931
921
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
932
922
|
return de_CreateConfigurationSetCommandError(output, context);
|
|
933
923
|
}
|
|
934
|
-
const contents = map({
|
|
924
|
+
const contents = (0, smithy_client_1.map)({
|
|
935
925
|
$metadata: deserializeMetadata(output),
|
|
936
926
|
});
|
|
937
927
|
await collectBody(output.body, context);
|
|
@@ -965,10 +955,9 @@ const de_CreateConfigurationSetCommandError = async (output, context) => {
|
|
|
965
955
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
966
956
|
default:
|
|
967
957
|
const parsedBody = parsedOutput.body;
|
|
968
|
-
|
|
958
|
+
return throwDefaultError({
|
|
969
959
|
output,
|
|
970
960
|
parsedBody,
|
|
971
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
972
961
|
errorCode,
|
|
973
962
|
});
|
|
974
963
|
}
|
|
@@ -977,7 +966,7 @@ const de_CreateConfigurationSetEventDestinationCommand = async (output, context)
|
|
|
977
966
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
978
967
|
return de_CreateConfigurationSetEventDestinationCommandError(output, context);
|
|
979
968
|
}
|
|
980
|
-
const contents = map({
|
|
969
|
+
const contents = (0, smithy_client_1.map)({
|
|
981
970
|
$metadata: deserializeMetadata(output),
|
|
982
971
|
});
|
|
983
972
|
await collectBody(output.body, context);
|
|
@@ -1008,10 +997,9 @@ const de_CreateConfigurationSetEventDestinationCommandError = async (output, con
|
|
|
1008
997
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1009
998
|
default:
|
|
1010
999
|
const parsedBody = parsedOutput.body;
|
|
1011
|
-
|
|
1000
|
+
return throwDefaultError({
|
|
1012
1001
|
output,
|
|
1013
1002
|
parsedBody,
|
|
1014
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
1015
1003
|
errorCode,
|
|
1016
1004
|
});
|
|
1017
1005
|
}
|
|
@@ -1020,7 +1008,7 @@ const de_CreateDedicatedIpPoolCommand = async (output, context) => {
|
|
|
1020
1008
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1021
1009
|
return de_CreateDedicatedIpPoolCommandError(output, context);
|
|
1022
1010
|
}
|
|
1023
|
-
const contents = map({
|
|
1011
|
+
const contents = (0, smithy_client_1.map)({
|
|
1024
1012
|
$metadata: deserializeMetadata(output),
|
|
1025
1013
|
});
|
|
1026
1014
|
await collectBody(output.body, context);
|
|
@@ -1051,10 +1039,9 @@ const de_CreateDedicatedIpPoolCommandError = async (output, context) => {
|
|
|
1051
1039
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1052
1040
|
default:
|
|
1053
1041
|
const parsedBody = parsedOutput.body;
|
|
1054
|
-
|
|
1042
|
+
return throwDefaultError({
|
|
1055
1043
|
output,
|
|
1056
1044
|
parsedBody,
|
|
1057
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
1058
1045
|
errorCode,
|
|
1059
1046
|
});
|
|
1060
1047
|
}
|
|
@@ -1063,16 +1050,15 @@ const de_CreateDeliverabilityTestReportCommand = async (output, context) => {
|
|
|
1063
1050
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1064
1051
|
return de_CreateDeliverabilityTestReportCommandError(output, context);
|
|
1065
1052
|
}
|
|
1066
|
-
const contents = map({
|
|
1053
|
+
const contents = (0, smithy_client_1.map)({
|
|
1067
1054
|
$metadata: deserializeMetadata(output),
|
|
1068
1055
|
});
|
|
1069
1056
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
}
|
|
1057
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1058
|
+
DeliverabilityTestStatus: smithy_client_1.expectString,
|
|
1059
|
+
ReportId: smithy_client_1.expectString,
|
|
1060
|
+
});
|
|
1061
|
+
Object.assign(contents, doc);
|
|
1076
1062
|
return contents;
|
|
1077
1063
|
};
|
|
1078
1064
|
exports.de_CreateDeliverabilityTestReportCommand = de_CreateDeliverabilityTestReportCommand;
|
|
@@ -1112,10 +1098,9 @@ const de_CreateDeliverabilityTestReportCommandError = async (output, context) =>
|
|
|
1112
1098
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1113
1099
|
default:
|
|
1114
1100
|
const parsedBody = parsedOutput.body;
|
|
1115
|
-
|
|
1101
|
+
return throwDefaultError({
|
|
1116
1102
|
output,
|
|
1117
1103
|
parsedBody,
|
|
1118
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
1119
1104
|
errorCode,
|
|
1120
1105
|
});
|
|
1121
1106
|
}
|
|
@@ -1124,19 +1109,16 @@ const de_CreateEmailIdentityCommand = async (output, context) => {
|
|
|
1124
1109
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1125
1110
|
return de_CreateEmailIdentityCommandError(output, context);
|
|
1126
1111
|
}
|
|
1127
|
-
const contents = map({
|
|
1112
|
+
const contents = (0, smithy_client_1.map)({
|
|
1128
1113
|
$metadata: deserializeMetadata(output),
|
|
1129
1114
|
});
|
|
1130
1115
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
if (data.VerifiedForSendingStatus != null) {
|
|
1138
|
-
contents.VerifiedForSendingStatus = (0, smithy_client_1.expectBoolean)(data.VerifiedForSendingStatus);
|
|
1139
|
-
}
|
|
1116
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1117
|
+
DkimAttributes: smithy_client_1._json,
|
|
1118
|
+
IdentityType: smithy_client_1.expectString,
|
|
1119
|
+
VerifiedForSendingStatus: smithy_client_1.expectBoolean,
|
|
1120
|
+
});
|
|
1121
|
+
Object.assign(contents, doc);
|
|
1140
1122
|
return contents;
|
|
1141
1123
|
};
|
|
1142
1124
|
exports.de_CreateEmailIdentityCommand = de_CreateEmailIdentityCommand;
|
|
@@ -1161,10 +1143,9 @@ const de_CreateEmailIdentityCommandError = async (output, context) => {
|
|
|
1161
1143
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1162
1144
|
default:
|
|
1163
1145
|
const parsedBody = parsedOutput.body;
|
|
1164
|
-
|
|
1146
|
+
return throwDefaultError({
|
|
1165
1147
|
output,
|
|
1166
1148
|
parsedBody,
|
|
1167
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
1168
1149
|
errorCode,
|
|
1169
1150
|
});
|
|
1170
1151
|
}
|
|
@@ -1173,7 +1154,7 @@ const de_DeleteConfigurationSetCommand = async (output, context) => {
|
|
|
1173
1154
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1174
1155
|
return de_DeleteConfigurationSetCommandError(output, context);
|
|
1175
1156
|
}
|
|
1176
|
-
const contents = map({
|
|
1157
|
+
const contents = (0, smithy_client_1.map)({
|
|
1177
1158
|
$metadata: deserializeMetadata(output),
|
|
1178
1159
|
});
|
|
1179
1160
|
await collectBody(output.body, context);
|
|
@@ -1201,10 +1182,9 @@ const de_DeleteConfigurationSetCommandError = async (output, context) => {
|
|
|
1201
1182
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1202
1183
|
default:
|
|
1203
1184
|
const parsedBody = parsedOutput.body;
|
|
1204
|
-
|
|
1185
|
+
return throwDefaultError({
|
|
1205
1186
|
output,
|
|
1206
1187
|
parsedBody,
|
|
1207
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
1208
1188
|
errorCode,
|
|
1209
1189
|
});
|
|
1210
1190
|
}
|
|
@@ -1213,7 +1193,7 @@ const de_DeleteConfigurationSetEventDestinationCommand = async (output, context)
|
|
|
1213
1193
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1214
1194
|
return de_DeleteConfigurationSetEventDestinationCommandError(output, context);
|
|
1215
1195
|
}
|
|
1216
|
-
const contents = map({
|
|
1196
|
+
const contents = (0, smithy_client_1.map)({
|
|
1217
1197
|
$metadata: deserializeMetadata(output),
|
|
1218
1198
|
});
|
|
1219
1199
|
await collectBody(output.body, context);
|
|
@@ -1238,10 +1218,9 @@ const de_DeleteConfigurationSetEventDestinationCommandError = async (output, con
|
|
|
1238
1218
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1239
1219
|
default:
|
|
1240
1220
|
const parsedBody = parsedOutput.body;
|
|
1241
|
-
|
|
1221
|
+
return throwDefaultError({
|
|
1242
1222
|
output,
|
|
1243
1223
|
parsedBody,
|
|
1244
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
1245
1224
|
errorCode,
|
|
1246
1225
|
});
|
|
1247
1226
|
}
|
|
@@ -1250,7 +1229,7 @@ const de_DeleteDedicatedIpPoolCommand = async (output, context) => {
|
|
|
1250
1229
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1251
1230
|
return de_DeleteDedicatedIpPoolCommandError(output, context);
|
|
1252
1231
|
}
|
|
1253
|
-
const contents = map({
|
|
1232
|
+
const contents = (0, smithy_client_1.map)({
|
|
1254
1233
|
$metadata: deserializeMetadata(output),
|
|
1255
1234
|
});
|
|
1256
1235
|
await collectBody(output.body, context);
|
|
@@ -1278,10 +1257,9 @@ const de_DeleteDedicatedIpPoolCommandError = async (output, context) => {
|
|
|
1278
1257
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1279
1258
|
default:
|
|
1280
1259
|
const parsedBody = parsedOutput.body;
|
|
1281
|
-
|
|
1260
|
+
return throwDefaultError({
|
|
1282
1261
|
output,
|
|
1283
1262
|
parsedBody,
|
|
1284
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
1285
1263
|
errorCode,
|
|
1286
1264
|
});
|
|
1287
1265
|
}
|
|
@@ -1290,7 +1268,7 @@ const de_DeleteEmailIdentityCommand = async (output, context) => {
|
|
|
1290
1268
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1291
1269
|
return de_DeleteEmailIdentityCommandError(output, context);
|
|
1292
1270
|
}
|
|
1293
|
-
const contents = map({
|
|
1271
|
+
const contents = (0, smithy_client_1.map)({
|
|
1294
1272
|
$metadata: deserializeMetadata(output),
|
|
1295
1273
|
});
|
|
1296
1274
|
await collectBody(output.body, context);
|
|
@@ -1318,10 +1296,9 @@ const de_DeleteEmailIdentityCommandError = async (output, context) => {
|
|
|
1318
1296
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1319
1297
|
default:
|
|
1320
1298
|
const parsedBody = parsedOutput.body;
|
|
1321
|
-
|
|
1299
|
+
return throwDefaultError({
|
|
1322
1300
|
output,
|
|
1323
1301
|
parsedBody,
|
|
1324
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
1325
1302
|
errorCode,
|
|
1326
1303
|
});
|
|
1327
1304
|
}
|
|
@@ -1330,25 +1307,18 @@ const de_GetAccountCommand = async (output, context) => {
|
|
|
1330
1307
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1331
1308
|
return de_GetAccountCommandError(output, context);
|
|
1332
1309
|
}
|
|
1333
|
-
const contents = map({
|
|
1310
|
+
const contents = (0, smithy_client_1.map)({
|
|
1334
1311
|
$metadata: deserializeMetadata(output),
|
|
1335
1312
|
});
|
|
1336
1313
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
}
|
|
1346
|
-
if (data.SendQuota != null) {
|
|
1347
|
-
contents.SendQuota = de_SendQuota(data.SendQuota, context);
|
|
1348
|
-
}
|
|
1349
|
-
if (data.SendingEnabled != null) {
|
|
1350
|
-
contents.SendingEnabled = (0, smithy_client_1.expectBoolean)(data.SendingEnabled);
|
|
1351
|
-
}
|
|
1314
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1315
|
+
DedicatedIpAutoWarmupEnabled: smithy_client_1.expectBoolean,
|
|
1316
|
+
EnforcementStatus: smithy_client_1.expectString,
|
|
1317
|
+
ProductionAccessEnabled: smithy_client_1.expectBoolean,
|
|
1318
|
+
SendQuota: (_) => de_SendQuota(_, context),
|
|
1319
|
+
SendingEnabled: smithy_client_1.expectBoolean,
|
|
1320
|
+
});
|
|
1321
|
+
Object.assign(contents, doc);
|
|
1352
1322
|
return contents;
|
|
1353
1323
|
};
|
|
1354
1324
|
exports.de_GetAccountCommand = de_GetAccountCommand;
|
|
@@ -1367,10 +1337,9 @@ const de_GetAccountCommandError = async (output, context) => {
|
|
|
1367
1337
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1368
1338
|
default:
|
|
1369
1339
|
const parsedBody = parsedOutput.body;
|
|
1370
|
-
|
|
1340
|
+
return throwDefaultError({
|
|
1371
1341
|
output,
|
|
1372
1342
|
parsedBody,
|
|
1373
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
1374
1343
|
errorCode,
|
|
1375
1344
|
});
|
|
1376
1345
|
}
|
|
@@ -1379,13 +1348,14 @@ const de_GetBlacklistReportsCommand = async (output, context) => {
|
|
|
1379
1348
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1380
1349
|
return de_GetBlacklistReportsCommandError(output, context);
|
|
1381
1350
|
}
|
|
1382
|
-
const contents = map({
|
|
1351
|
+
const contents = (0, smithy_client_1.map)({
|
|
1383
1352
|
$metadata: deserializeMetadata(output),
|
|
1384
1353
|
});
|
|
1385
1354
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
}
|
|
1355
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1356
|
+
BlacklistReport: (_) => de_BlacklistReport(_, context),
|
|
1357
|
+
});
|
|
1358
|
+
Object.assign(contents, doc);
|
|
1389
1359
|
return contents;
|
|
1390
1360
|
};
|
|
1391
1361
|
exports.de_GetBlacklistReportsCommand = de_GetBlacklistReportsCommand;
|
|
@@ -1407,10 +1377,9 @@ const de_GetBlacklistReportsCommandError = async (output, context) => {
|
|
|
1407
1377
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1408
1378
|
default:
|
|
1409
1379
|
const parsedBody = parsedOutput.body;
|
|
1410
|
-
|
|
1380
|
+
return throwDefaultError({
|
|
1411
1381
|
output,
|
|
1412
1382
|
parsedBody,
|
|
1413
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
1414
1383
|
errorCode,
|
|
1415
1384
|
});
|
|
1416
1385
|
}
|
|
@@ -1419,28 +1388,19 @@ const de_GetConfigurationSetCommand = async (output, context) => {
|
|
|
1419
1388
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1420
1389
|
return de_GetConfigurationSetCommandError(output, context);
|
|
1421
1390
|
}
|
|
1422
|
-
const contents = map({
|
|
1391
|
+
const contents = (0, smithy_client_1.map)({
|
|
1423
1392
|
$metadata: deserializeMetadata(output),
|
|
1424
1393
|
});
|
|
1425
1394
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
if (data.SendingOptions != null) {
|
|
1436
|
-
contents.SendingOptions = de_SendingOptions(data.SendingOptions, context);
|
|
1437
|
-
}
|
|
1438
|
-
if (data.Tags != null) {
|
|
1439
|
-
contents.Tags = de_TagList(data.Tags, context);
|
|
1440
|
-
}
|
|
1441
|
-
if (data.TrackingOptions != null) {
|
|
1442
|
-
contents.TrackingOptions = de_TrackingOptions(data.TrackingOptions, context);
|
|
1443
|
-
}
|
|
1395
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1396
|
+
ConfigurationSetName: smithy_client_1.expectString,
|
|
1397
|
+
DeliveryOptions: smithy_client_1._json,
|
|
1398
|
+
ReputationOptions: (_) => de_ReputationOptions(_, context),
|
|
1399
|
+
SendingOptions: smithy_client_1._json,
|
|
1400
|
+
Tags: smithy_client_1._json,
|
|
1401
|
+
TrackingOptions: smithy_client_1._json,
|
|
1402
|
+
});
|
|
1403
|
+
Object.assign(contents, doc);
|
|
1444
1404
|
return contents;
|
|
1445
1405
|
};
|
|
1446
1406
|
exports.de_GetConfigurationSetCommand = de_GetConfigurationSetCommand;
|
|
@@ -1462,10 +1422,9 @@ const de_GetConfigurationSetCommandError = async (output, context) => {
|
|
|
1462
1422
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1463
1423
|
default:
|
|
1464
1424
|
const parsedBody = parsedOutput.body;
|
|
1465
|
-
|
|
1425
|
+
return throwDefaultError({
|
|
1466
1426
|
output,
|
|
1467
1427
|
parsedBody,
|
|
1468
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
1469
1428
|
errorCode,
|
|
1470
1429
|
});
|
|
1471
1430
|
}
|
|
@@ -1474,13 +1433,14 @@ const de_GetConfigurationSetEventDestinationsCommand = async (output, context) =
|
|
|
1474
1433
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1475
1434
|
return de_GetConfigurationSetEventDestinationsCommandError(output, context);
|
|
1476
1435
|
}
|
|
1477
|
-
const contents = map({
|
|
1436
|
+
const contents = (0, smithy_client_1.map)({
|
|
1478
1437
|
$metadata: deserializeMetadata(output),
|
|
1479
1438
|
});
|
|
1480
1439
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
}
|
|
1440
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1441
|
+
EventDestinations: smithy_client_1._json,
|
|
1442
|
+
});
|
|
1443
|
+
Object.assign(contents, doc);
|
|
1484
1444
|
return contents;
|
|
1485
1445
|
};
|
|
1486
1446
|
exports.de_GetConfigurationSetEventDestinationsCommand = de_GetConfigurationSetEventDestinationsCommand;
|
|
@@ -1502,10 +1462,9 @@ const de_GetConfigurationSetEventDestinationsCommandError = async (output, conte
|
|
|
1502
1462
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1503
1463
|
default:
|
|
1504
1464
|
const parsedBody = parsedOutput.body;
|
|
1505
|
-
|
|
1465
|
+
return throwDefaultError({
|
|
1506
1466
|
output,
|
|
1507
1467
|
parsedBody,
|
|
1508
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
1509
1468
|
errorCode,
|
|
1510
1469
|
});
|
|
1511
1470
|
}
|
|
@@ -1514,13 +1473,14 @@ const de_GetDedicatedIpCommand = async (output, context) => {
|
|
|
1514
1473
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1515
1474
|
return de_GetDedicatedIpCommandError(output, context);
|
|
1516
1475
|
}
|
|
1517
|
-
const contents = map({
|
|
1476
|
+
const contents = (0, smithy_client_1.map)({
|
|
1518
1477
|
$metadata: deserializeMetadata(output),
|
|
1519
1478
|
});
|
|
1520
1479
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
}
|
|
1480
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1481
|
+
DedicatedIp: smithy_client_1._json,
|
|
1482
|
+
});
|
|
1483
|
+
Object.assign(contents, doc);
|
|
1524
1484
|
return contents;
|
|
1525
1485
|
};
|
|
1526
1486
|
exports.de_GetDedicatedIpCommand = de_GetDedicatedIpCommand;
|
|
@@ -1542,10 +1502,9 @@ const de_GetDedicatedIpCommandError = async (output, context) => {
|
|
|
1542
1502
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1543
1503
|
default:
|
|
1544
1504
|
const parsedBody = parsedOutput.body;
|
|
1545
|
-
|
|
1505
|
+
return throwDefaultError({
|
|
1546
1506
|
output,
|
|
1547
1507
|
parsedBody,
|
|
1548
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
1549
1508
|
errorCode,
|
|
1550
1509
|
});
|
|
1551
1510
|
}
|
|
@@ -1554,16 +1513,15 @@ const de_GetDedicatedIpsCommand = async (output, context) => {
|
|
|
1554
1513
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1555
1514
|
return de_GetDedicatedIpsCommandError(output, context);
|
|
1556
1515
|
}
|
|
1557
|
-
const contents = map({
|
|
1516
|
+
const contents = (0, smithy_client_1.map)({
|
|
1558
1517
|
$metadata: deserializeMetadata(output),
|
|
1559
1518
|
});
|
|
1560
1519
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
}
|
|
1520
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1521
|
+
DedicatedIps: smithy_client_1._json,
|
|
1522
|
+
NextToken: smithy_client_1.expectString,
|
|
1523
|
+
});
|
|
1524
|
+
Object.assign(contents, doc);
|
|
1567
1525
|
return contents;
|
|
1568
1526
|
};
|
|
1569
1527
|
exports.de_GetDedicatedIpsCommand = de_GetDedicatedIpsCommand;
|
|
@@ -1585,10 +1543,9 @@ const de_GetDedicatedIpsCommandError = async (output, context) => {
|
|
|
1585
1543
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1586
1544
|
default:
|
|
1587
1545
|
const parsedBody = parsedOutput.body;
|
|
1588
|
-
|
|
1546
|
+
return throwDefaultError({
|
|
1589
1547
|
output,
|
|
1590
1548
|
parsedBody,
|
|
1591
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
1592
1549
|
errorCode,
|
|
1593
1550
|
});
|
|
1594
1551
|
}
|
|
@@ -1597,25 +1554,18 @@ const de_GetDeliverabilityDashboardOptionsCommand = async (output, context) => {
|
|
|
1597
1554
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1598
1555
|
return de_GetDeliverabilityDashboardOptionsCommandError(output, context);
|
|
1599
1556
|
}
|
|
1600
|
-
const contents = map({
|
|
1557
|
+
const contents = (0, smithy_client_1.map)({
|
|
1601
1558
|
$metadata: deserializeMetadata(output),
|
|
1602
1559
|
});
|
|
1603
1560
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
}
|
|
1613
|
-
if (data.PendingExpirationSubscribedDomains != null) {
|
|
1614
|
-
contents.PendingExpirationSubscribedDomains = de_DomainDeliverabilityTrackingOptions(data.PendingExpirationSubscribedDomains, context);
|
|
1615
|
-
}
|
|
1616
|
-
if (data.SubscriptionExpiryDate != null) {
|
|
1617
|
-
contents.SubscriptionExpiryDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.SubscriptionExpiryDate)));
|
|
1618
|
-
}
|
|
1561
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1562
|
+
AccountStatus: smithy_client_1.expectString,
|
|
1563
|
+
ActiveSubscribedDomains: (_) => de_DomainDeliverabilityTrackingOptions(_, context),
|
|
1564
|
+
DashboardEnabled: smithy_client_1.expectBoolean,
|
|
1565
|
+
PendingExpirationSubscribedDomains: (_) => de_DomainDeliverabilityTrackingOptions(_, context),
|
|
1566
|
+
SubscriptionExpiryDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1567
|
+
});
|
|
1568
|
+
Object.assign(contents, doc);
|
|
1619
1569
|
return contents;
|
|
1620
1570
|
};
|
|
1621
1571
|
exports.de_GetDeliverabilityDashboardOptionsCommand = de_GetDeliverabilityDashboardOptionsCommand;
|
|
@@ -1637,10 +1587,9 @@ const de_GetDeliverabilityDashboardOptionsCommandError = async (output, context)
|
|
|
1637
1587
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1638
1588
|
default:
|
|
1639
1589
|
const parsedBody = parsedOutput.body;
|
|
1640
|
-
|
|
1590
|
+
return throwDefaultError({
|
|
1641
1591
|
output,
|
|
1642
1592
|
parsedBody,
|
|
1643
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
1644
1593
|
errorCode,
|
|
1645
1594
|
});
|
|
1646
1595
|
}
|
|
@@ -1649,25 +1598,18 @@ const de_GetDeliverabilityTestReportCommand = async (output, context) => {
|
|
|
1649
1598
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1650
1599
|
return de_GetDeliverabilityTestReportCommandError(output, context);
|
|
1651
1600
|
}
|
|
1652
|
-
const contents = map({
|
|
1601
|
+
const contents = (0, smithy_client_1.map)({
|
|
1653
1602
|
$metadata: deserializeMetadata(output),
|
|
1654
1603
|
});
|
|
1655
1604
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
}
|
|
1665
|
-
if (data.OverallPlacement != null) {
|
|
1666
|
-
contents.OverallPlacement = de_PlacementStatistics(data.OverallPlacement, context);
|
|
1667
|
-
}
|
|
1668
|
-
if (data.Tags != null) {
|
|
1669
|
-
contents.Tags = de_TagList(data.Tags, context);
|
|
1670
|
-
}
|
|
1605
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1606
|
+
DeliverabilityTestReport: (_) => de_DeliverabilityTestReport(_, context),
|
|
1607
|
+
IspPlacements: (_) => de_IspPlacements(_, context),
|
|
1608
|
+
Message: smithy_client_1.expectString,
|
|
1609
|
+
OverallPlacement: (_) => de_PlacementStatistics(_, context),
|
|
1610
|
+
Tags: smithy_client_1._json,
|
|
1611
|
+
});
|
|
1612
|
+
Object.assign(contents, doc);
|
|
1671
1613
|
return contents;
|
|
1672
1614
|
};
|
|
1673
1615
|
exports.de_GetDeliverabilityTestReportCommand = de_GetDeliverabilityTestReportCommand;
|
|
@@ -1689,10 +1631,9 @@ const de_GetDeliverabilityTestReportCommandError = async (output, context) => {
|
|
|
1689
1631
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1690
1632
|
default:
|
|
1691
1633
|
const parsedBody = parsedOutput.body;
|
|
1692
|
-
|
|
1634
|
+
return throwDefaultError({
|
|
1693
1635
|
output,
|
|
1694
1636
|
parsedBody,
|
|
1695
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
1696
1637
|
errorCode,
|
|
1697
1638
|
});
|
|
1698
1639
|
}
|
|
@@ -1701,13 +1642,14 @@ const de_GetDomainDeliverabilityCampaignCommand = async (output, context) => {
|
|
|
1701
1642
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1702
1643
|
return de_GetDomainDeliverabilityCampaignCommandError(output, context);
|
|
1703
1644
|
}
|
|
1704
|
-
const contents = map({
|
|
1645
|
+
const contents = (0, smithy_client_1.map)({
|
|
1705
1646
|
$metadata: deserializeMetadata(output),
|
|
1706
1647
|
});
|
|
1707
1648
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
}
|
|
1649
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1650
|
+
DomainDeliverabilityCampaign: (_) => de_DomainDeliverabilityCampaign(_, context),
|
|
1651
|
+
});
|
|
1652
|
+
Object.assign(contents, doc);
|
|
1711
1653
|
return contents;
|
|
1712
1654
|
};
|
|
1713
1655
|
exports.de_GetDomainDeliverabilityCampaignCommand = de_GetDomainDeliverabilityCampaignCommand;
|
|
@@ -1729,10 +1671,9 @@ const de_GetDomainDeliverabilityCampaignCommandError = async (output, context) =
|
|
|
1729
1671
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1730
1672
|
default:
|
|
1731
1673
|
const parsedBody = parsedOutput.body;
|
|
1732
|
-
|
|
1674
|
+
return throwDefaultError({
|
|
1733
1675
|
output,
|
|
1734
1676
|
parsedBody,
|
|
1735
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
1736
1677
|
errorCode,
|
|
1737
1678
|
});
|
|
1738
1679
|
}
|
|
@@ -1741,16 +1682,15 @@ const de_GetDomainStatisticsReportCommand = async (output, context) => {
|
|
|
1741
1682
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1742
1683
|
return de_GetDomainStatisticsReportCommandError(output, context);
|
|
1743
1684
|
}
|
|
1744
|
-
const contents = map({
|
|
1685
|
+
const contents = (0, smithy_client_1.map)({
|
|
1745
1686
|
$metadata: deserializeMetadata(output),
|
|
1746
1687
|
});
|
|
1747
1688
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
}
|
|
1689
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1690
|
+
DailyVolumes: (_) => de_DailyVolumes(_, context),
|
|
1691
|
+
OverallVolume: (_) => de_OverallVolume(_, context),
|
|
1692
|
+
});
|
|
1693
|
+
Object.assign(contents, doc);
|
|
1754
1694
|
return contents;
|
|
1755
1695
|
};
|
|
1756
1696
|
exports.de_GetDomainStatisticsReportCommand = de_GetDomainStatisticsReportCommand;
|
|
@@ -1772,10 +1712,9 @@ const de_GetDomainStatisticsReportCommandError = async (output, context) => {
|
|
|
1772
1712
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1773
1713
|
default:
|
|
1774
1714
|
const parsedBody = parsedOutput.body;
|
|
1775
|
-
|
|
1715
|
+
return throwDefaultError({
|
|
1776
1716
|
output,
|
|
1777
1717
|
parsedBody,
|
|
1778
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
1779
1718
|
errorCode,
|
|
1780
1719
|
});
|
|
1781
1720
|
}
|
|
@@ -1784,28 +1723,19 @@ const de_GetEmailIdentityCommand = async (output, context) => {
|
|
|
1784
1723
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1785
1724
|
return de_GetEmailIdentityCommandError(output, context);
|
|
1786
1725
|
}
|
|
1787
|
-
const contents = map({
|
|
1726
|
+
const contents = (0, smithy_client_1.map)({
|
|
1788
1727
|
$metadata: deserializeMetadata(output),
|
|
1789
1728
|
});
|
|
1790
1729
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
if (data.MailFromAttributes != null) {
|
|
1801
|
-
contents.MailFromAttributes = de_MailFromAttributes(data.MailFromAttributes, context);
|
|
1802
|
-
}
|
|
1803
|
-
if (data.Tags != null) {
|
|
1804
|
-
contents.Tags = de_TagList(data.Tags, context);
|
|
1805
|
-
}
|
|
1806
|
-
if (data.VerifiedForSendingStatus != null) {
|
|
1807
|
-
contents.VerifiedForSendingStatus = (0, smithy_client_1.expectBoolean)(data.VerifiedForSendingStatus);
|
|
1808
|
-
}
|
|
1730
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1731
|
+
DkimAttributes: smithy_client_1._json,
|
|
1732
|
+
FeedbackForwardingStatus: smithy_client_1.expectBoolean,
|
|
1733
|
+
IdentityType: smithy_client_1.expectString,
|
|
1734
|
+
MailFromAttributes: smithy_client_1._json,
|
|
1735
|
+
Tags: smithy_client_1._json,
|
|
1736
|
+
VerifiedForSendingStatus: smithy_client_1.expectBoolean,
|
|
1737
|
+
});
|
|
1738
|
+
Object.assign(contents, doc);
|
|
1809
1739
|
return contents;
|
|
1810
1740
|
};
|
|
1811
1741
|
exports.de_GetEmailIdentityCommand = de_GetEmailIdentityCommand;
|
|
@@ -1827,10 +1757,9 @@ const de_GetEmailIdentityCommandError = async (output, context) => {
|
|
|
1827
1757
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1828
1758
|
default:
|
|
1829
1759
|
const parsedBody = parsedOutput.body;
|
|
1830
|
-
|
|
1760
|
+
return throwDefaultError({
|
|
1831
1761
|
output,
|
|
1832
1762
|
parsedBody,
|
|
1833
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
1834
1763
|
errorCode,
|
|
1835
1764
|
});
|
|
1836
1765
|
}
|
|
@@ -1839,16 +1768,15 @@ const de_ListConfigurationSetsCommand = async (output, context) => {
|
|
|
1839
1768
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1840
1769
|
return de_ListConfigurationSetsCommandError(output, context);
|
|
1841
1770
|
}
|
|
1842
|
-
const contents = map({
|
|
1771
|
+
const contents = (0, smithy_client_1.map)({
|
|
1843
1772
|
$metadata: deserializeMetadata(output),
|
|
1844
1773
|
});
|
|
1845
1774
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
}
|
|
1775
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1776
|
+
ConfigurationSets: smithy_client_1._json,
|
|
1777
|
+
NextToken: smithy_client_1.expectString,
|
|
1778
|
+
});
|
|
1779
|
+
Object.assign(contents, doc);
|
|
1852
1780
|
return contents;
|
|
1853
1781
|
};
|
|
1854
1782
|
exports.de_ListConfigurationSetsCommand = de_ListConfigurationSetsCommand;
|
|
@@ -1867,10 +1795,9 @@ const de_ListConfigurationSetsCommandError = async (output, context) => {
|
|
|
1867
1795
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1868
1796
|
default:
|
|
1869
1797
|
const parsedBody = parsedOutput.body;
|
|
1870
|
-
|
|
1798
|
+
return throwDefaultError({
|
|
1871
1799
|
output,
|
|
1872
1800
|
parsedBody,
|
|
1873
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
1874
1801
|
errorCode,
|
|
1875
1802
|
});
|
|
1876
1803
|
}
|
|
@@ -1879,16 +1806,15 @@ const de_ListDedicatedIpPoolsCommand = async (output, context) => {
|
|
|
1879
1806
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1880
1807
|
return de_ListDedicatedIpPoolsCommandError(output, context);
|
|
1881
1808
|
}
|
|
1882
|
-
const contents = map({
|
|
1809
|
+
const contents = (0, smithy_client_1.map)({
|
|
1883
1810
|
$metadata: deserializeMetadata(output),
|
|
1884
1811
|
});
|
|
1885
1812
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
}
|
|
1813
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1814
|
+
DedicatedIpPools: smithy_client_1._json,
|
|
1815
|
+
NextToken: smithy_client_1.expectString,
|
|
1816
|
+
});
|
|
1817
|
+
Object.assign(contents, doc);
|
|
1892
1818
|
return contents;
|
|
1893
1819
|
};
|
|
1894
1820
|
exports.de_ListDedicatedIpPoolsCommand = de_ListDedicatedIpPoolsCommand;
|
|
@@ -1907,10 +1833,9 @@ const de_ListDedicatedIpPoolsCommandError = async (output, context) => {
|
|
|
1907
1833
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1908
1834
|
default:
|
|
1909
1835
|
const parsedBody = parsedOutput.body;
|
|
1910
|
-
|
|
1836
|
+
return throwDefaultError({
|
|
1911
1837
|
output,
|
|
1912
1838
|
parsedBody,
|
|
1913
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
1914
1839
|
errorCode,
|
|
1915
1840
|
});
|
|
1916
1841
|
}
|
|
@@ -1919,16 +1844,15 @@ const de_ListDeliverabilityTestReportsCommand = async (output, context) => {
|
|
|
1919
1844
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1920
1845
|
return de_ListDeliverabilityTestReportsCommandError(output, context);
|
|
1921
1846
|
}
|
|
1922
|
-
const contents = map({
|
|
1847
|
+
const contents = (0, smithy_client_1.map)({
|
|
1923
1848
|
$metadata: deserializeMetadata(output),
|
|
1924
1849
|
});
|
|
1925
1850
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
}
|
|
1851
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1852
|
+
DeliverabilityTestReports: (_) => de_DeliverabilityTestReports(_, context),
|
|
1853
|
+
NextToken: smithy_client_1.expectString,
|
|
1854
|
+
});
|
|
1855
|
+
Object.assign(contents, doc);
|
|
1932
1856
|
return contents;
|
|
1933
1857
|
};
|
|
1934
1858
|
exports.de_ListDeliverabilityTestReportsCommand = de_ListDeliverabilityTestReportsCommand;
|
|
@@ -1950,10 +1874,9 @@ const de_ListDeliverabilityTestReportsCommandError = async (output, context) =>
|
|
|
1950
1874
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1951
1875
|
default:
|
|
1952
1876
|
const parsedBody = parsedOutput.body;
|
|
1953
|
-
|
|
1877
|
+
return throwDefaultError({
|
|
1954
1878
|
output,
|
|
1955
1879
|
parsedBody,
|
|
1956
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
1957
1880
|
errorCode,
|
|
1958
1881
|
});
|
|
1959
1882
|
}
|
|
@@ -1962,16 +1885,15 @@ const de_ListDomainDeliverabilityCampaignsCommand = async (output, context) => {
|
|
|
1962
1885
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1963
1886
|
return de_ListDomainDeliverabilityCampaignsCommandError(output, context);
|
|
1964
1887
|
}
|
|
1965
|
-
const contents = map({
|
|
1888
|
+
const contents = (0, smithy_client_1.map)({
|
|
1966
1889
|
$metadata: deserializeMetadata(output),
|
|
1967
1890
|
});
|
|
1968
1891
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
}
|
|
1892
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1893
|
+
DomainDeliverabilityCampaigns: (_) => de_DomainDeliverabilityCampaignList(_, context),
|
|
1894
|
+
NextToken: smithy_client_1.expectString,
|
|
1895
|
+
});
|
|
1896
|
+
Object.assign(contents, doc);
|
|
1975
1897
|
return contents;
|
|
1976
1898
|
};
|
|
1977
1899
|
exports.de_ListDomainDeliverabilityCampaignsCommand = de_ListDomainDeliverabilityCampaignsCommand;
|
|
@@ -1993,10 +1915,9 @@ const de_ListDomainDeliverabilityCampaignsCommandError = async (output, context)
|
|
|
1993
1915
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1994
1916
|
default:
|
|
1995
1917
|
const parsedBody = parsedOutput.body;
|
|
1996
|
-
|
|
1918
|
+
return throwDefaultError({
|
|
1997
1919
|
output,
|
|
1998
1920
|
parsedBody,
|
|
1999
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
2000
1921
|
errorCode,
|
|
2001
1922
|
});
|
|
2002
1923
|
}
|
|
@@ -2005,16 +1926,15 @@ const de_ListEmailIdentitiesCommand = async (output, context) => {
|
|
|
2005
1926
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2006
1927
|
return de_ListEmailIdentitiesCommandError(output, context);
|
|
2007
1928
|
}
|
|
2008
|
-
const contents = map({
|
|
1929
|
+
const contents = (0, smithy_client_1.map)({
|
|
2009
1930
|
$metadata: deserializeMetadata(output),
|
|
2010
1931
|
});
|
|
2011
1932
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
}
|
|
1933
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1934
|
+
EmailIdentities: smithy_client_1._json,
|
|
1935
|
+
NextToken: smithy_client_1.expectString,
|
|
1936
|
+
});
|
|
1937
|
+
Object.assign(contents, doc);
|
|
2018
1938
|
return contents;
|
|
2019
1939
|
};
|
|
2020
1940
|
exports.de_ListEmailIdentitiesCommand = de_ListEmailIdentitiesCommand;
|
|
@@ -2033,10 +1953,9 @@ const de_ListEmailIdentitiesCommandError = async (output, context) => {
|
|
|
2033
1953
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2034
1954
|
default:
|
|
2035
1955
|
const parsedBody = parsedOutput.body;
|
|
2036
|
-
|
|
1956
|
+
return throwDefaultError({
|
|
2037
1957
|
output,
|
|
2038
1958
|
parsedBody,
|
|
2039
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
2040
1959
|
errorCode,
|
|
2041
1960
|
});
|
|
2042
1961
|
}
|
|
@@ -2045,13 +1964,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
2045
1964
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2046
1965
|
return de_ListTagsForResourceCommandError(output, context);
|
|
2047
1966
|
}
|
|
2048
|
-
const contents = map({
|
|
1967
|
+
const contents = (0, smithy_client_1.map)({
|
|
2049
1968
|
$metadata: deserializeMetadata(output),
|
|
2050
1969
|
});
|
|
2051
1970
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
}
|
|
1971
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1972
|
+
Tags: smithy_client_1._json,
|
|
1973
|
+
});
|
|
1974
|
+
Object.assign(contents, doc);
|
|
2055
1975
|
return contents;
|
|
2056
1976
|
};
|
|
2057
1977
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
@@ -2073,10 +1993,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
2073
1993
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2074
1994
|
default:
|
|
2075
1995
|
const parsedBody = parsedOutput.body;
|
|
2076
|
-
|
|
1996
|
+
return throwDefaultError({
|
|
2077
1997
|
output,
|
|
2078
1998
|
parsedBody,
|
|
2079
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
2080
1999
|
errorCode,
|
|
2081
2000
|
});
|
|
2082
2001
|
}
|
|
@@ -2085,7 +2004,7 @@ const de_PutAccountDedicatedIpWarmupAttributesCommand = async (output, context)
|
|
|
2085
2004
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2086
2005
|
return de_PutAccountDedicatedIpWarmupAttributesCommandError(output, context);
|
|
2087
2006
|
}
|
|
2088
|
-
const contents = map({
|
|
2007
|
+
const contents = (0, smithy_client_1.map)({
|
|
2089
2008
|
$metadata: deserializeMetadata(output),
|
|
2090
2009
|
});
|
|
2091
2010
|
await collectBody(output.body, context);
|
|
@@ -2107,10 +2026,9 @@ const de_PutAccountDedicatedIpWarmupAttributesCommandError = async (output, cont
|
|
|
2107
2026
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2108
2027
|
default:
|
|
2109
2028
|
const parsedBody = parsedOutput.body;
|
|
2110
|
-
|
|
2029
|
+
return throwDefaultError({
|
|
2111
2030
|
output,
|
|
2112
2031
|
parsedBody,
|
|
2113
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
2114
2032
|
errorCode,
|
|
2115
2033
|
});
|
|
2116
2034
|
}
|
|
@@ -2119,7 +2037,7 @@ const de_PutAccountSendingAttributesCommand = async (output, context) => {
|
|
|
2119
2037
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2120
2038
|
return de_PutAccountSendingAttributesCommandError(output, context);
|
|
2121
2039
|
}
|
|
2122
|
-
const contents = map({
|
|
2040
|
+
const contents = (0, smithy_client_1.map)({
|
|
2123
2041
|
$metadata: deserializeMetadata(output),
|
|
2124
2042
|
});
|
|
2125
2043
|
await collectBody(output.body, context);
|
|
@@ -2141,10 +2059,9 @@ const de_PutAccountSendingAttributesCommandError = async (output, context) => {
|
|
|
2141
2059
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2142
2060
|
default:
|
|
2143
2061
|
const parsedBody = parsedOutput.body;
|
|
2144
|
-
|
|
2062
|
+
return throwDefaultError({
|
|
2145
2063
|
output,
|
|
2146
2064
|
parsedBody,
|
|
2147
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
2148
2065
|
errorCode,
|
|
2149
2066
|
});
|
|
2150
2067
|
}
|
|
@@ -2153,7 +2070,7 @@ const de_PutConfigurationSetDeliveryOptionsCommand = async (output, context) =>
|
|
|
2153
2070
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2154
2071
|
return de_PutConfigurationSetDeliveryOptionsCommandError(output, context);
|
|
2155
2072
|
}
|
|
2156
|
-
const contents = map({
|
|
2073
|
+
const contents = (0, smithy_client_1.map)({
|
|
2157
2074
|
$metadata: deserializeMetadata(output),
|
|
2158
2075
|
});
|
|
2159
2076
|
await collectBody(output.body, context);
|
|
@@ -2178,10 +2095,9 @@ const de_PutConfigurationSetDeliveryOptionsCommandError = async (output, context
|
|
|
2178
2095
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2179
2096
|
default:
|
|
2180
2097
|
const parsedBody = parsedOutput.body;
|
|
2181
|
-
|
|
2098
|
+
return throwDefaultError({
|
|
2182
2099
|
output,
|
|
2183
2100
|
parsedBody,
|
|
2184
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
2185
2101
|
errorCode,
|
|
2186
2102
|
});
|
|
2187
2103
|
}
|
|
@@ -2190,7 +2106,7 @@ const de_PutConfigurationSetReputationOptionsCommand = async (output, context) =
|
|
|
2190
2106
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2191
2107
|
return de_PutConfigurationSetReputationOptionsCommandError(output, context);
|
|
2192
2108
|
}
|
|
2193
|
-
const contents = map({
|
|
2109
|
+
const contents = (0, smithy_client_1.map)({
|
|
2194
2110
|
$metadata: deserializeMetadata(output),
|
|
2195
2111
|
});
|
|
2196
2112
|
await collectBody(output.body, context);
|
|
@@ -2215,10 +2131,9 @@ const de_PutConfigurationSetReputationOptionsCommandError = async (output, conte
|
|
|
2215
2131
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2216
2132
|
default:
|
|
2217
2133
|
const parsedBody = parsedOutput.body;
|
|
2218
|
-
|
|
2134
|
+
return throwDefaultError({
|
|
2219
2135
|
output,
|
|
2220
2136
|
parsedBody,
|
|
2221
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
2222
2137
|
errorCode,
|
|
2223
2138
|
});
|
|
2224
2139
|
}
|
|
@@ -2227,7 +2142,7 @@ const de_PutConfigurationSetSendingOptionsCommand = async (output, context) => {
|
|
|
2227
2142
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2228
2143
|
return de_PutConfigurationSetSendingOptionsCommandError(output, context);
|
|
2229
2144
|
}
|
|
2230
|
-
const contents = map({
|
|
2145
|
+
const contents = (0, smithy_client_1.map)({
|
|
2231
2146
|
$metadata: deserializeMetadata(output),
|
|
2232
2147
|
});
|
|
2233
2148
|
await collectBody(output.body, context);
|
|
@@ -2252,10 +2167,9 @@ const de_PutConfigurationSetSendingOptionsCommandError = async (output, context)
|
|
|
2252
2167
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2253
2168
|
default:
|
|
2254
2169
|
const parsedBody = parsedOutput.body;
|
|
2255
|
-
|
|
2170
|
+
return throwDefaultError({
|
|
2256
2171
|
output,
|
|
2257
2172
|
parsedBody,
|
|
2258
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
2259
2173
|
errorCode,
|
|
2260
2174
|
});
|
|
2261
2175
|
}
|
|
@@ -2264,7 +2178,7 @@ const de_PutConfigurationSetTrackingOptionsCommand = async (output, context) =>
|
|
|
2264
2178
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2265
2179
|
return de_PutConfigurationSetTrackingOptionsCommandError(output, context);
|
|
2266
2180
|
}
|
|
2267
|
-
const contents = map({
|
|
2181
|
+
const contents = (0, smithy_client_1.map)({
|
|
2268
2182
|
$metadata: deserializeMetadata(output),
|
|
2269
2183
|
});
|
|
2270
2184
|
await collectBody(output.body, context);
|
|
@@ -2289,10 +2203,9 @@ const de_PutConfigurationSetTrackingOptionsCommandError = async (output, context
|
|
|
2289
2203
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2290
2204
|
default:
|
|
2291
2205
|
const parsedBody = parsedOutput.body;
|
|
2292
|
-
|
|
2206
|
+
return throwDefaultError({
|
|
2293
2207
|
output,
|
|
2294
2208
|
parsedBody,
|
|
2295
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
2296
2209
|
errorCode,
|
|
2297
2210
|
});
|
|
2298
2211
|
}
|
|
@@ -2301,7 +2214,7 @@ const de_PutDedicatedIpInPoolCommand = async (output, context) => {
|
|
|
2301
2214
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2302
2215
|
return de_PutDedicatedIpInPoolCommandError(output, context);
|
|
2303
2216
|
}
|
|
2304
|
-
const contents = map({
|
|
2217
|
+
const contents = (0, smithy_client_1.map)({
|
|
2305
2218
|
$metadata: deserializeMetadata(output),
|
|
2306
2219
|
});
|
|
2307
2220
|
await collectBody(output.body, context);
|
|
@@ -2326,10 +2239,9 @@ const de_PutDedicatedIpInPoolCommandError = async (output, context) => {
|
|
|
2326
2239
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2327
2240
|
default:
|
|
2328
2241
|
const parsedBody = parsedOutput.body;
|
|
2329
|
-
|
|
2242
|
+
return throwDefaultError({
|
|
2330
2243
|
output,
|
|
2331
2244
|
parsedBody,
|
|
2332
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
2333
2245
|
errorCode,
|
|
2334
2246
|
});
|
|
2335
2247
|
}
|
|
@@ -2338,7 +2250,7 @@ const de_PutDedicatedIpWarmupAttributesCommand = async (output, context) => {
|
|
|
2338
2250
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2339
2251
|
return de_PutDedicatedIpWarmupAttributesCommandError(output, context);
|
|
2340
2252
|
}
|
|
2341
|
-
const contents = map({
|
|
2253
|
+
const contents = (0, smithy_client_1.map)({
|
|
2342
2254
|
$metadata: deserializeMetadata(output),
|
|
2343
2255
|
});
|
|
2344
2256
|
await collectBody(output.body, context);
|
|
@@ -2363,10 +2275,9 @@ const de_PutDedicatedIpWarmupAttributesCommandError = async (output, context) =>
|
|
|
2363
2275
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2364
2276
|
default:
|
|
2365
2277
|
const parsedBody = parsedOutput.body;
|
|
2366
|
-
|
|
2278
|
+
return throwDefaultError({
|
|
2367
2279
|
output,
|
|
2368
2280
|
parsedBody,
|
|
2369
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
2370
2281
|
errorCode,
|
|
2371
2282
|
});
|
|
2372
2283
|
}
|
|
@@ -2375,7 +2286,7 @@ const de_PutDeliverabilityDashboardOptionCommand = async (output, context) => {
|
|
|
2375
2286
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2376
2287
|
return de_PutDeliverabilityDashboardOptionCommandError(output, context);
|
|
2377
2288
|
}
|
|
2378
|
-
const contents = map({
|
|
2289
|
+
const contents = (0, smithy_client_1.map)({
|
|
2379
2290
|
$metadata: deserializeMetadata(output),
|
|
2380
2291
|
});
|
|
2381
2292
|
await collectBody(output.body, context);
|
|
@@ -2406,10 +2317,9 @@ const de_PutDeliverabilityDashboardOptionCommandError = async (output, context)
|
|
|
2406
2317
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2407
2318
|
default:
|
|
2408
2319
|
const parsedBody = parsedOutput.body;
|
|
2409
|
-
|
|
2320
|
+
return throwDefaultError({
|
|
2410
2321
|
output,
|
|
2411
2322
|
parsedBody,
|
|
2412
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
2413
2323
|
errorCode,
|
|
2414
2324
|
});
|
|
2415
2325
|
}
|
|
@@ -2418,7 +2328,7 @@ const de_PutEmailIdentityDkimAttributesCommand = async (output, context) => {
|
|
|
2418
2328
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2419
2329
|
return de_PutEmailIdentityDkimAttributesCommandError(output, context);
|
|
2420
2330
|
}
|
|
2421
|
-
const contents = map({
|
|
2331
|
+
const contents = (0, smithy_client_1.map)({
|
|
2422
2332
|
$metadata: deserializeMetadata(output),
|
|
2423
2333
|
});
|
|
2424
2334
|
await collectBody(output.body, context);
|
|
@@ -2443,10 +2353,9 @@ const de_PutEmailIdentityDkimAttributesCommandError = async (output, context) =>
|
|
|
2443
2353
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2444
2354
|
default:
|
|
2445
2355
|
const parsedBody = parsedOutput.body;
|
|
2446
|
-
|
|
2356
|
+
return throwDefaultError({
|
|
2447
2357
|
output,
|
|
2448
2358
|
parsedBody,
|
|
2449
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
2450
2359
|
errorCode,
|
|
2451
2360
|
});
|
|
2452
2361
|
}
|
|
@@ -2455,7 +2364,7 @@ const de_PutEmailIdentityFeedbackAttributesCommand = async (output, context) =>
|
|
|
2455
2364
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2456
2365
|
return de_PutEmailIdentityFeedbackAttributesCommandError(output, context);
|
|
2457
2366
|
}
|
|
2458
|
-
const contents = map({
|
|
2367
|
+
const contents = (0, smithy_client_1.map)({
|
|
2459
2368
|
$metadata: deserializeMetadata(output),
|
|
2460
2369
|
});
|
|
2461
2370
|
await collectBody(output.body, context);
|
|
@@ -2480,10 +2389,9 @@ const de_PutEmailIdentityFeedbackAttributesCommandError = async (output, context
|
|
|
2480
2389
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2481
2390
|
default:
|
|
2482
2391
|
const parsedBody = parsedOutput.body;
|
|
2483
|
-
|
|
2392
|
+
return throwDefaultError({
|
|
2484
2393
|
output,
|
|
2485
2394
|
parsedBody,
|
|
2486
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
2487
2395
|
errorCode,
|
|
2488
2396
|
});
|
|
2489
2397
|
}
|
|
@@ -2492,7 +2400,7 @@ const de_PutEmailIdentityMailFromAttributesCommand = async (output, context) =>
|
|
|
2492
2400
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2493
2401
|
return de_PutEmailIdentityMailFromAttributesCommandError(output, context);
|
|
2494
2402
|
}
|
|
2495
|
-
const contents = map({
|
|
2403
|
+
const contents = (0, smithy_client_1.map)({
|
|
2496
2404
|
$metadata: deserializeMetadata(output),
|
|
2497
2405
|
});
|
|
2498
2406
|
await collectBody(output.body, context);
|
|
@@ -2517,10 +2425,9 @@ const de_PutEmailIdentityMailFromAttributesCommandError = async (output, context
|
|
|
2517
2425
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2518
2426
|
default:
|
|
2519
2427
|
const parsedBody = parsedOutput.body;
|
|
2520
|
-
|
|
2428
|
+
return throwDefaultError({
|
|
2521
2429
|
output,
|
|
2522
2430
|
parsedBody,
|
|
2523
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
2524
2431
|
errorCode,
|
|
2525
2432
|
});
|
|
2526
2433
|
}
|
|
@@ -2529,13 +2436,14 @@ const de_SendEmailCommand = async (output, context) => {
|
|
|
2529
2436
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2530
2437
|
return de_SendEmailCommandError(output, context);
|
|
2531
2438
|
}
|
|
2532
|
-
const contents = map({
|
|
2439
|
+
const contents = (0, smithy_client_1.map)({
|
|
2533
2440
|
$metadata: deserializeMetadata(output),
|
|
2534
2441
|
});
|
|
2535
2442
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
}
|
|
2443
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2444
|
+
MessageId: smithy_client_1.expectString,
|
|
2445
|
+
});
|
|
2446
|
+
Object.assign(contents, doc);
|
|
2539
2447
|
return contents;
|
|
2540
2448
|
};
|
|
2541
2449
|
exports.de_SendEmailCommand = de_SendEmailCommand;
|
|
@@ -2572,10 +2480,9 @@ const de_SendEmailCommandError = async (output, context) => {
|
|
|
2572
2480
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2573
2481
|
default:
|
|
2574
2482
|
const parsedBody = parsedOutput.body;
|
|
2575
|
-
|
|
2483
|
+
return throwDefaultError({
|
|
2576
2484
|
output,
|
|
2577
2485
|
parsedBody,
|
|
2578
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
2579
2486
|
errorCode,
|
|
2580
2487
|
});
|
|
2581
2488
|
}
|
|
@@ -2584,7 +2491,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
2584
2491
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2585
2492
|
return de_TagResourceCommandError(output, context);
|
|
2586
2493
|
}
|
|
2587
|
-
const contents = map({
|
|
2494
|
+
const contents = (0, smithy_client_1.map)({
|
|
2588
2495
|
$metadata: deserializeMetadata(output),
|
|
2589
2496
|
});
|
|
2590
2497
|
await collectBody(output.body, context);
|
|
@@ -2612,10 +2519,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
2612
2519
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2613
2520
|
default:
|
|
2614
2521
|
const parsedBody = parsedOutput.body;
|
|
2615
|
-
|
|
2522
|
+
return throwDefaultError({
|
|
2616
2523
|
output,
|
|
2617
2524
|
parsedBody,
|
|
2618
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
2619
2525
|
errorCode,
|
|
2620
2526
|
});
|
|
2621
2527
|
}
|
|
@@ -2624,7 +2530,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
2624
2530
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2625
2531
|
return de_UntagResourceCommandError(output, context);
|
|
2626
2532
|
}
|
|
2627
|
-
const contents = map({
|
|
2533
|
+
const contents = (0, smithy_client_1.map)({
|
|
2628
2534
|
$metadata: deserializeMetadata(output),
|
|
2629
2535
|
});
|
|
2630
2536
|
await collectBody(output.body, context);
|
|
@@ -2652,10 +2558,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
2652
2558
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2653
2559
|
default:
|
|
2654
2560
|
const parsedBody = parsedOutput.body;
|
|
2655
|
-
|
|
2561
|
+
return throwDefaultError({
|
|
2656
2562
|
output,
|
|
2657
2563
|
parsedBody,
|
|
2658
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
2659
2564
|
errorCode,
|
|
2660
2565
|
});
|
|
2661
2566
|
}
|
|
@@ -2664,7 +2569,7 @@ const de_UpdateConfigurationSetEventDestinationCommand = async (output, context)
|
|
|
2664
2569
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2665
2570
|
return de_UpdateConfigurationSetEventDestinationCommandError(output, context);
|
|
2666
2571
|
}
|
|
2667
|
-
const contents = map({
|
|
2572
|
+
const contents = (0, smithy_client_1.map)({
|
|
2668
2573
|
$metadata: deserializeMetadata(output),
|
|
2669
2574
|
});
|
|
2670
2575
|
await collectBody(output.body, context);
|
|
@@ -2689,21 +2594,21 @@ const de_UpdateConfigurationSetEventDestinationCommandError = async (output, con
|
|
|
2689
2594
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2690
2595
|
default:
|
|
2691
2596
|
const parsedBody = parsedOutput.body;
|
|
2692
|
-
|
|
2597
|
+
return throwDefaultError({
|
|
2693
2598
|
output,
|
|
2694
2599
|
parsedBody,
|
|
2695
|
-
exceptionCtor: PinpointEmailServiceException_1.PinpointEmailServiceException,
|
|
2696
2600
|
errorCode,
|
|
2697
2601
|
});
|
|
2698
2602
|
}
|
|
2699
2603
|
};
|
|
2700
|
-
const
|
|
2604
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(PinpointEmailServiceException_1.PinpointEmailServiceException);
|
|
2701
2605
|
const de_AccountSuspendedExceptionRes = async (parsedOutput, context) => {
|
|
2702
|
-
const contents = map({});
|
|
2606
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2703
2607
|
const data = parsedOutput.body;
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
}
|
|
2608
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2609
|
+
message: smithy_client_1.expectString,
|
|
2610
|
+
});
|
|
2611
|
+
Object.assign(contents, doc);
|
|
2707
2612
|
const exception = new models_0_1.AccountSuspendedException({
|
|
2708
2613
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2709
2614
|
...contents,
|
|
@@ -2711,11 +2616,12 @@ const de_AccountSuspendedExceptionRes = async (parsedOutput, context) => {
|
|
|
2711
2616
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2712
2617
|
};
|
|
2713
2618
|
const de_AlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
2714
|
-
const contents = map({});
|
|
2619
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2715
2620
|
const data = parsedOutput.body;
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
}
|
|
2621
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2622
|
+
message: smithy_client_1.expectString,
|
|
2623
|
+
});
|
|
2624
|
+
Object.assign(contents, doc);
|
|
2719
2625
|
const exception = new models_0_1.AlreadyExistsException({
|
|
2720
2626
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2721
2627
|
...contents,
|
|
@@ -2723,11 +2629,12 @@ const de_AlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
|
2723
2629
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2724
2630
|
};
|
|
2725
2631
|
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
2726
|
-
const contents = map({});
|
|
2632
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2727
2633
|
const data = parsedOutput.body;
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
}
|
|
2634
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2635
|
+
message: smithy_client_1.expectString,
|
|
2636
|
+
});
|
|
2637
|
+
Object.assign(contents, doc);
|
|
2731
2638
|
const exception = new models_0_1.BadRequestException({
|
|
2732
2639
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2733
2640
|
...contents,
|
|
@@ -2735,11 +2642,12 @@ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
2735
2642
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2736
2643
|
};
|
|
2737
2644
|
const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
2738
|
-
const contents = map({});
|
|
2645
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2739
2646
|
const data = parsedOutput.body;
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
}
|
|
2647
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2648
|
+
message: smithy_client_1.expectString,
|
|
2649
|
+
});
|
|
2650
|
+
Object.assign(contents, doc);
|
|
2743
2651
|
const exception = new models_0_1.ConcurrentModificationException({
|
|
2744
2652
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2745
2653
|
...contents,
|
|
@@ -2747,11 +2655,12 @@ const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
|
2747
2655
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2748
2656
|
};
|
|
2749
2657
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2750
|
-
const contents = map({});
|
|
2658
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2751
2659
|
const data = parsedOutput.body;
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
}
|
|
2660
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2661
|
+
message: smithy_client_1.expectString,
|
|
2662
|
+
});
|
|
2663
|
+
Object.assign(contents, doc);
|
|
2755
2664
|
const exception = new models_0_1.LimitExceededException({
|
|
2756
2665
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2757
2666
|
...contents,
|
|
@@ -2759,11 +2668,12 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
2759
2668
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2760
2669
|
};
|
|
2761
2670
|
const de_MailFromDomainNotVerifiedExceptionRes = async (parsedOutput, context) => {
|
|
2762
|
-
const contents = map({});
|
|
2671
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2763
2672
|
const data = parsedOutput.body;
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
}
|
|
2673
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2674
|
+
message: smithy_client_1.expectString,
|
|
2675
|
+
});
|
|
2676
|
+
Object.assign(contents, doc);
|
|
2767
2677
|
const exception = new models_0_1.MailFromDomainNotVerifiedException({
|
|
2768
2678
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2769
2679
|
...contents,
|
|
@@ -2771,11 +2681,12 @@ const de_MailFromDomainNotVerifiedExceptionRes = async (parsedOutput, context) =
|
|
|
2771
2681
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2772
2682
|
};
|
|
2773
2683
|
const de_MessageRejectedRes = async (parsedOutput, context) => {
|
|
2774
|
-
const contents = map({});
|
|
2684
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2775
2685
|
const data = parsedOutput.body;
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
}
|
|
2686
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2687
|
+
message: smithy_client_1.expectString,
|
|
2688
|
+
});
|
|
2689
|
+
Object.assign(contents, doc);
|
|
2779
2690
|
const exception = new models_0_1.MessageRejected({
|
|
2780
2691
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2781
2692
|
...contents,
|
|
@@ -2783,11 +2694,12 @@ const de_MessageRejectedRes = async (parsedOutput, context) => {
|
|
|
2783
2694
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2784
2695
|
};
|
|
2785
2696
|
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2786
|
-
const contents = map({});
|
|
2697
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2787
2698
|
const data = parsedOutput.body;
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
}
|
|
2699
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2700
|
+
message: smithy_client_1.expectString,
|
|
2701
|
+
});
|
|
2702
|
+
Object.assign(contents, doc);
|
|
2791
2703
|
const exception = new models_0_1.NotFoundException({
|
|
2792
2704
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2793
2705
|
...contents,
|
|
@@ -2795,11 +2707,12 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2795
2707
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2796
2708
|
};
|
|
2797
2709
|
const de_SendingPausedExceptionRes = async (parsedOutput, context) => {
|
|
2798
|
-
const contents = map({});
|
|
2710
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2799
2711
|
const data = parsedOutput.body;
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
}
|
|
2712
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2713
|
+
message: smithy_client_1.expectString,
|
|
2714
|
+
});
|
|
2715
|
+
Object.assign(contents, doc);
|
|
2803
2716
|
const exception = new models_0_1.SendingPausedException({
|
|
2804
2717
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2805
2718
|
...contents,
|
|
@@ -2807,73 +2720,24 @@ const de_SendingPausedExceptionRes = async (parsedOutput, context) => {
|
|
|
2807
2720
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2808
2721
|
};
|
|
2809
2722
|
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
2810
|
-
const contents = map({});
|
|
2723
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2811
2724
|
const data = parsedOutput.body;
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
}
|
|
2725
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2726
|
+
message: smithy_client_1.expectString,
|
|
2727
|
+
});
|
|
2728
|
+
Object.assign(contents, doc);
|
|
2815
2729
|
const exception = new models_0_1.TooManyRequestsException({
|
|
2816
2730
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2817
2731
|
...contents,
|
|
2818
2732
|
});
|
|
2819
2733
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2820
2734
|
};
|
|
2821
|
-
const se_Body = (input, context) => {
|
|
2822
|
-
return {
|
|
2823
|
-
...(input.Html != null && { Html: se_Content(input.Html, context) }),
|
|
2824
|
-
...(input.Text != null && { Text: se_Content(input.Text, context) }),
|
|
2825
|
-
};
|
|
2826
|
-
};
|
|
2827
|
-
const se_CloudWatchDestination = (input, context) => {
|
|
2828
|
-
return {
|
|
2829
|
-
...(input.DimensionConfigurations != null && {
|
|
2830
|
-
DimensionConfigurations: se_CloudWatchDimensionConfigurations(input.DimensionConfigurations, context),
|
|
2831
|
-
}),
|
|
2832
|
-
};
|
|
2833
|
-
};
|
|
2834
|
-
const se_CloudWatchDimensionConfiguration = (input, context) => {
|
|
2835
|
-
return {
|
|
2836
|
-
...(input.DefaultDimensionValue != null && { DefaultDimensionValue: input.DefaultDimensionValue }),
|
|
2837
|
-
...(input.DimensionName != null && { DimensionName: input.DimensionName }),
|
|
2838
|
-
...(input.DimensionValueSource != null && { DimensionValueSource: input.DimensionValueSource }),
|
|
2839
|
-
};
|
|
2840
|
-
};
|
|
2841
|
-
const se_CloudWatchDimensionConfigurations = (input, context) => {
|
|
2842
|
-
return input
|
|
2843
|
-
.filter((e) => e != null)
|
|
2844
|
-
.map((entry) => {
|
|
2845
|
-
return se_CloudWatchDimensionConfiguration(entry, context);
|
|
2846
|
-
});
|
|
2847
|
-
};
|
|
2848
|
-
const se_Content = (input, context) => {
|
|
2849
|
-
return {
|
|
2850
|
-
...(input.Charset != null && { Charset: input.Charset }),
|
|
2851
|
-
...(input.Data != null && { Data: input.Data }),
|
|
2852
|
-
};
|
|
2853
|
-
};
|
|
2854
|
-
const se_DeliveryOptions = (input, context) => {
|
|
2855
|
-
return {
|
|
2856
|
-
...(input.SendingPoolName != null && { SendingPoolName: input.SendingPoolName }),
|
|
2857
|
-
...(input.TlsPolicy != null && { TlsPolicy: input.TlsPolicy }),
|
|
2858
|
-
};
|
|
2859
|
-
};
|
|
2860
|
-
const se_Destination = (input, context) => {
|
|
2861
|
-
return {
|
|
2862
|
-
...(input.BccAddresses != null && { BccAddresses: se_EmailAddressList(input.BccAddresses, context) }),
|
|
2863
|
-
...(input.CcAddresses != null && { CcAddresses: se_EmailAddressList(input.CcAddresses, context) }),
|
|
2864
|
-
...(input.ToAddresses != null && { ToAddresses: se_EmailAddressList(input.ToAddresses, context) }),
|
|
2865
|
-
};
|
|
2866
|
-
};
|
|
2867
2735
|
const se_DomainDeliverabilityTrackingOption = (input, context) => {
|
|
2868
|
-
return {
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
...(input.SubscriptionStartDate != null && {
|
|
2874
|
-
SubscriptionStartDate: Math.round(input.SubscriptionStartDate.getTime() / 1000),
|
|
2875
|
-
}),
|
|
2876
|
-
};
|
|
2736
|
+
return (0, smithy_client_1.take)(input, {
|
|
2737
|
+
Domain: [],
|
|
2738
|
+
InboxPlacementTrackingOption: smithy_client_1._json,
|
|
2739
|
+
SubscriptionStartDate: (_) => Math.round(_.getTime() / 1000),
|
|
2740
|
+
});
|
|
2877
2741
|
};
|
|
2878
2742
|
const se_DomainDeliverabilityTrackingOptions = (input, context) => {
|
|
2879
2743
|
return input
|
|
@@ -2882,150 +2746,38 @@ const se_DomainDeliverabilityTrackingOptions = (input, context) => {
|
|
|
2882
2746
|
return se_DomainDeliverabilityTrackingOption(entry, context);
|
|
2883
2747
|
});
|
|
2884
2748
|
};
|
|
2885
|
-
const se_EmailAddressList = (input, context) => {
|
|
2886
|
-
return input
|
|
2887
|
-
.filter((e) => e != null)
|
|
2888
|
-
.map((entry) => {
|
|
2889
|
-
return entry;
|
|
2890
|
-
});
|
|
2891
|
-
};
|
|
2892
2749
|
const se_EmailContent = (input, context) => {
|
|
2893
|
-
return {
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
};
|
|
2898
|
-
};
|
|
2899
|
-
const se_EventDestinationDefinition = (input, context) => {
|
|
2900
|
-
return {
|
|
2901
|
-
...(input.CloudWatchDestination != null && {
|
|
2902
|
-
CloudWatchDestination: se_CloudWatchDestination(input.CloudWatchDestination, context),
|
|
2903
|
-
}),
|
|
2904
|
-
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
2905
|
-
...(input.KinesisFirehoseDestination != null && {
|
|
2906
|
-
KinesisFirehoseDestination: se_KinesisFirehoseDestination(input.KinesisFirehoseDestination, context),
|
|
2907
|
-
}),
|
|
2908
|
-
...(input.MatchingEventTypes != null && { MatchingEventTypes: se_EventTypes(input.MatchingEventTypes, context) }),
|
|
2909
|
-
...(input.PinpointDestination != null && {
|
|
2910
|
-
PinpointDestination: se_PinpointDestination(input.PinpointDestination, context),
|
|
2911
|
-
}),
|
|
2912
|
-
...(input.SnsDestination != null && { SnsDestination: se_SnsDestination(input.SnsDestination, context) }),
|
|
2913
|
-
};
|
|
2914
|
-
};
|
|
2915
|
-
const se_EventTypes = (input, context) => {
|
|
2916
|
-
return input
|
|
2917
|
-
.filter((e) => e != null)
|
|
2918
|
-
.map((entry) => {
|
|
2919
|
-
return entry;
|
|
2750
|
+
return (0, smithy_client_1.take)(input, {
|
|
2751
|
+
Raw: (_) => se_RawMessage(_, context),
|
|
2752
|
+
Simple: smithy_client_1._json,
|
|
2753
|
+
Template: smithy_client_1._json,
|
|
2920
2754
|
});
|
|
2921
2755
|
};
|
|
2922
|
-
const se_InboxPlacementTrackingOption = (input, context) => {
|
|
2923
|
-
return {
|
|
2924
|
-
...(input.Global != null && { Global: input.Global }),
|
|
2925
|
-
...(input.TrackedIsps != null && { TrackedIsps: se_IspNameList(input.TrackedIsps, context) }),
|
|
2926
|
-
};
|
|
2927
|
-
};
|
|
2928
|
-
const se_IspNameList = (input, context) => {
|
|
2929
|
-
return input
|
|
2930
|
-
.filter((e) => e != null)
|
|
2931
|
-
.map((entry) => {
|
|
2932
|
-
return entry;
|
|
2933
|
-
});
|
|
2934
|
-
};
|
|
2935
|
-
const se_KinesisFirehoseDestination = (input, context) => {
|
|
2936
|
-
return {
|
|
2937
|
-
...(input.DeliveryStreamArn != null && { DeliveryStreamArn: input.DeliveryStreamArn }),
|
|
2938
|
-
...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
|
|
2939
|
-
};
|
|
2940
|
-
};
|
|
2941
|
-
const se_Message = (input, context) => {
|
|
2942
|
-
return {
|
|
2943
|
-
...(input.Body != null && { Body: se_Body(input.Body, context) }),
|
|
2944
|
-
...(input.Subject != null && { Subject: se_Content(input.Subject, context) }),
|
|
2945
|
-
};
|
|
2946
|
-
};
|
|
2947
|
-
const se_MessageTag = (input, context) => {
|
|
2948
|
-
return {
|
|
2949
|
-
...(input.Name != null && { Name: input.Name }),
|
|
2950
|
-
...(input.Value != null && { Value: input.Value }),
|
|
2951
|
-
};
|
|
2952
|
-
};
|
|
2953
|
-
const se_MessageTagList = (input, context) => {
|
|
2954
|
-
return input
|
|
2955
|
-
.filter((e) => e != null)
|
|
2956
|
-
.map((entry) => {
|
|
2957
|
-
return se_MessageTag(entry, context);
|
|
2958
|
-
});
|
|
2959
|
-
};
|
|
2960
|
-
const se_PinpointDestination = (input, context) => {
|
|
2961
|
-
return {
|
|
2962
|
-
...(input.ApplicationArn != null && { ApplicationArn: input.ApplicationArn }),
|
|
2963
|
-
};
|
|
2964
|
-
};
|
|
2965
2756
|
const se_RawMessage = (input, context) => {
|
|
2966
|
-
return {
|
|
2967
|
-
|
|
2968
|
-
};
|
|
2757
|
+
return (0, smithy_client_1.take)(input, {
|
|
2758
|
+
Data: context.base64Encoder,
|
|
2759
|
+
});
|
|
2969
2760
|
};
|
|
2970
2761
|
const se_ReputationOptions = (input, context) => {
|
|
2971
|
-
return {
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
};
|
|
2975
|
-
};
|
|
2976
|
-
const se_SendingOptions = (input, context) => {
|
|
2977
|
-
return {
|
|
2978
|
-
...(input.SendingEnabled != null && { SendingEnabled: input.SendingEnabled }),
|
|
2979
|
-
};
|
|
2980
|
-
};
|
|
2981
|
-
const se_SnsDestination = (input, context) => {
|
|
2982
|
-
return {
|
|
2983
|
-
...(input.TopicArn != null && { TopicArn: input.TopicArn }),
|
|
2984
|
-
};
|
|
2985
|
-
};
|
|
2986
|
-
const se_Tag = (input, context) => {
|
|
2987
|
-
return {
|
|
2988
|
-
...(input.Key != null && { Key: input.Key }),
|
|
2989
|
-
...(input.Value != null && { Value: input.Value }),
|
|
2990
|
-
};
|
|
2991
|
-
};
|
|
2992
|
-
const se_TagList = (input, context) => {
|
|
2993
|
-
return input
|
|
2994
|
-
.filter((e) => e != null)
|
|
2995
|
-
.map((entry) => {
|
|
2996
|
-
return se_Tag(entry, context);
|
|
2762
|
+
return (0, smithy_client_1.take)(input, {
|
|
2763
|
+
LastFreshStart: (_) => Math.round(_.getTime() / 1000),
|
|
2764
|
+
ReputationMetricsEnabled: [],
|
|
2997
2765
|
});
|
|
2998
2766
|
};
|
|
2999
|
-
const se_Template = (input, context) => {
|
|
3000
|
-
return {
|
|
3001
|
-
...(input.TemplateArn != null && { TemplateArn: input.TemplateArn }),
|
|
3002
|
-
...(input.TemplateData != null && { TemplateData: input.TemplateData }),
|
|
3003
|
-
};
|
|
3004
|
-
};
|
|
3005
|
-
const se_TrackingOptions = (input, context) => {
|
|
3006
|
-
return {
|
|
3007
|
-
...(input.CustomRedirectDomain != null && { CustomRedirectDomain: input.CustomRedirectDomain }),
|
|
3008
|
-
};
|
|
3009
|
-
};
|
|
3010
2767
|
const de_BlacklistEntries = (output, context) => {
|
|
3011
2768
|
const retVal = (output || [])
|
|
3012
2769
|
.filter((e) => e != null)
|
|
3013
2770
|
.map((entry) => {
|
|
3014
|
-
if (entry === null) {
|
|
3015
|
-
return null;
|
|
3016
|
-
}
|
|
3017
2771
|
return de_BlacklistEntry(entry, context);
|
|
3018
2772
|
});
|
|
3019
2773
|
return retVal;
|
|
3020
2774
|
};
|
|
3021
2775
|
const de_BlacklistEntry = (output, context) => {
|
|
3022
|
-
return {
|
|
3023
|
-
Description:
|
|
3024
|
-
ListingTime:
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
RblName: (0, smithy_client_1.expectString)(output.RblName),
|
|
3028
|
-
};
|
|
2776
|
+
return (0, smithy_client_1.take)(output, {
|
|
2777
|
+
Description: smithy_client_1.expectString,
|
|
2778
|
+
ListingTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2779
|
+
RblName: smithy_client_1.expectString,
|
|
2780
|
+
});
|
|
3029
2781
|
};
|
|
3030
2782
|
const de_BlacklistReport = (output, context) => {
|
|
3031
2783
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -3036,409 +2788,139 @@ const de_BlacklistReport = (output, context) => {
|
|
|
3036
2788
|
return acc;
|
|
3037
2789
|
}, {});
|
|
3038
2790
|
};
|
|
3039
|
-
const de_CloudWatchDestination = (output, context) => {
|
|
3040
|
-
return {
|
|
3041
|
-
DimensionConfigurations: output.DimensionConfigurations != null
|
|
3042
|
-
? de_CloudWatchDimensionConfigurations(output.DimensionConfigurations, context)
|
|
3043
|
-
: undefined,
|
|
3044
|
-
};
|
|
3045
|
-
};
|
|
3046
|
-
const de_CloudWatchDimensionConfiguration = (output, context) => {
|
|
3047
|
-
return {
|
|
3048
|
-
DefaultDimensionValue: (0, smithy_client_1.expectString)(output.DefaultDimensionValue),
|
|
3049
|
-
DimensionName: (0, smithy_client_1.expectString)(output.DimensionName),
|
|
3050
|
-
DimensionValueSource: (0, smithy_client_1.expectString)(output.DimensionValueSource),
|
|
3051
|
-
};
|
|
3052
|
-
};
|
|
3053
|
-
const de_CloudWatchDimensionConfigurations = (output, context) => {
|
|
3054
|
-
const retVal = (output || [])
|
|
3055
|
-
.filter((e) => e != null)
|
|
3056
|
-
.map((entry) => {
|
|
3057
|
-
if (entry === null) {
|
|
3058
|
-
return null;
|
|
3059
|
-
}
|
|
3060
|
-
return de_CloudWatchDimensionConfiguration(entry, context);
|
|
3061
|
-
});
|
|
3062
|
-
return retVal;
|
|
3063
|
-
};
|
|
3064
|
-
const de_ConfigurationSetNameList = (output, context) => {
|
|
3065
|
-
const retVal = (output || [])
|
|
3066
|
-
.filter((e) => e != null)
|
|
3067
|
-
.map((entry) => {
|
|
3068
|
-
if (entry === null) {
|
|
3069
|
-
return null;
|
|
3070
|
-
}
|
|
3071
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3072
|
-
});
|
|
3073
|
-
return retVal;
|
|
3074
|
-
};
|
|
3075
2791
|
const de_DailyVolume = (output, context) => {
|
|
3076
|
-
return {
|
|
3077
|
-
DomainIspPlacements:
|
|
3078
|
-
StartDate:
|
|
3079
|
-
VolumeStatistics:
|
|
3080
|
-
};
|
|
2792
|
+
return (0, smithy_client_1.take)(output, {
|
|
2793
|
+
DomainIspPlacements: (_) => de_DomainIspPlacements(_, context),
|
|
2794
|
+
StartDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2795
|
+
VolumeStatistics: smithy_client_1._json,
|
|
2796
|
+
});
|
|
3081
2797
|
};
|
|
3082
2798
|
const de_DailyVolumes = (output, context) => {
|
|
3083
2799
|
const retVal = (output || [])
|
|
3084
2800
|
.filter((e) => e != null)
|
|
3085
2801
|
.map((entry) => {
|
|
3086
|
-
if (entry === null) {
|
|
3087
|
-
return null;
|
|
3088
|
-
}
|
|
3089
2802
|
return de_DailyVolume(entry, context);
|
|
3090
2803
|
});
|
|
3091
2804
|
return retVal;
|
|
3092
2805
|
};
|
|
3093
|
-
const de_DedicatedIp = (output, context) => {
|
|
3094
|
-
return {
|
|
3095
|
-
Ip: (0, smithy_client_1.expectString)(output.Ip),
|
|
3096
|
-
PoolName: (0, smithy_client_1.expectString)(output.PoolName),
|
|
3097
|
-
WarmupPercentage: (0, smithy_client_1.expectInt32)(output.WarmupPercentage),
|
|
3098
|
-
WarmupStatus: (0, smithy_client_1.expectString)(output.WarmupStatus),
|
|
3099
|
-
};
|
|
3100
|
-
};
|
|
3101
|
-
const de_DedicatedIpList = (output, context) => {
|
|
3102
|
-
const retVal = (output || [])
|
|
3103
|
-
.filter((e) => e != null)
|
|
3104
|
-
.map((entry) => {
|
|
3105
|
-
if (entry === null) {
|
|
3106
|
-
return null;
|
|
3107
|
-
}
|
|
3108
|
-
return de_DedicatedIp(entry, context);
|
|
3109
|
-
});
|
|
3110
|
-
return retVal;
|
|
3111
|
-
};
|
|
3112
2806
|
const de_DeliverabilityTestReport = (output, context) => {
|
|
3113
|
-
return {
|
|
3114
|
-
CreateDate:
|
|
3115
|
-
DeliverabilityTestStatus:
|
|
3116
|
-
FromEmailAddress:
|
|
3117
|
-
ReportId:
|
|
3118
|
-
ReportName:
|
|
3119
|
-
Subject:
|
|
3120
|
-
};
|
|
2807
|
+
return (0, smithy_client_1.take)(output, {
|
|
2808
|
+
CreateDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2809
|
+
DeliverabilityTestStatus: smithy_client_1.expectString,
|
|
2810
|
+
FromEmailAddress: smithy_client_1.expectString,
|
|
2811
|
+
ReportId: smithy_client_1.expectString,
|
|
2812
|
+
ReportName: smithy_client_1.expectString,
|
|
2813
|
+
Subject: smithy_client_1.expectString,
|
|
2814
|
+
});
|
|
3121
2815
|
};
|
|
3122
2816
|
const de_DeliverabilityTestReports = (output, context) => {
|
|
3123
2817
|
const retVal = (output || [])
|
|
3124
2818
|
.filter((e) => e != null)
|
|
3125
2819
|
.map((entry) => {
|
|
3126
|
-
if (entry === null) {
|
|
3127
|
-
return null;
|
|
3128
|
-
}
|
|
3129
2820
|
return de_DeliverabilityTestReport(entry, context);
|
|
3130
2821
|
});
|
|
3131
2822
|
return retVal;
|
|
3132
2823
|
};
|
|
3133
|
-
const de_DeliveryOptions = (output, context) => {
|
|
3134
|
-
return {
|
|
3135
|
-
SendingPoolName: (0, smithy_client_1.expectString)(output.SendingPoolName),
|
|
3136
|
-
TlsPolicy: (0, smithy_client_1.expectString)(output.TlsPolicy),
|
|
3137
|
-
};
|
|
3138
|
-
};
|
|
3139
|
-
const de_DkimAttributes = (output, context) => {
|
|
3140
|
-
return {
|
|
3141
|
-
SigningEnabled: (0, smithy_client_1.expectBoolean)(output.SigningEnabled),
|
|
3142
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3143
|
-
Tokens: output.Tokens != null ? de_DnsTokenList(output.Tokens, context) : undefined,
|
|
3144
|
-
};
|
|
3145
|
-
};
|
|
3146
|
-
const de_DnsTokenList = (output, context) => {
|
|
3147
|
-
const retVal = (output || [])
|
|
3148
|
-
.filter((e) => e != null)
|
|
3149
|
-
.map((entry) => {
|
|
3150
|
-
if (entry === null) {
|
|
3151
|
-
return null;
|
|
3152
|
-
}
|
|
3153
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3154
|
-
});
|
|
3155
|
-
return retVal;
|
|
3156
|
-
};
|
|
3157
2824
|
const de_DomainDeliverabilityCampaign = (output, context) => {
|
|
3158
|
-
return {
|
|
3159
|
-
CampaignId:
|
|
3160
|
-
DeleteRate:
|
|
3161
|
-
Esps:
|
|
3162
|
-
FirstSeenDateTime:
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
SendingIps: output.SendingIps != null ? de_IpList(output.SendingIps, context) : undefined,
|
|
3175
|
-
SpamCount: (0, smithy_client_1.expectLong)(output.SpamCount),
|
|
3176
|
-
Subject: (0, smithy_client_1.expectString)(output.Subject),
|
|
3177
|
-
};
|
|
2825
|
+
return (0, smithy_client_1.take)(output, {
|
|
2826
|
+
CampaignId: smithy_client_1.expectString,
|
|
2827
|
+
DeleteRate: smithy_client_1.limitedParseDouble,
|
|
2828
|
+
Esps: smithy_client_1._json,
|
|
2829
|
+
FirstSeenDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2830
|
+
FromAddress: smithy_client_1.expectString,
|
|
2831
|
+
ImageUrl: smithy_client_1.expectString,
|
|
2832
|
+
InboxCount: smithy_client_1.expectLong,
|
|
2833
|
+
LastSeenDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2834
|
+
ProjectedVolume: smithy_client_1.expectLong,
|
|
2835
|
+
ReadDeleteRate: smithy_client_1.limitedParseDouble,
|
|
2836
|
+
ReadRate: smithy_client_1.limitedParseDouble,
|
|
2837
|
+
SendingIps: smithy_client_1._json,
|
|
2838
|
+
SpamCount: smithy_client_1.expectLong,
|
|
2839
|
+
Subject: smithy_client_1.expectString,
|
|
2840
|
+
});
|
|
3178
2841
|
};
|
|
3179
2842
|
const de_DomainDeliverabilityCampaignList = (output, context) => {
|
|
3180
2843
|
const retVal = (output || [])
|
|
3181
2844
|
.filter((e) => e != null)
|
|
3182
2845
|
.map((entry) => {
|
|
3183
|
-
if (entry === null) {
|
|
3184
|
-
return null;
|
|
3185
|
-
}
|
|
3186
2846
|
return de_DomainDeliverabilityCampaign(entry, context);
|
|
3187
2847
|
});
|
|
3188
2848
|
return retVal;
|
|
3189
2849
|
};
|
|
3190
2850
|
const de_DomainDeliverabilityTrackingOption = (output, context) => {
|
|
3191
|
-
return {
|
|
3192
|
-
Domain:
|
|
3193
|
-
InboxPlacementTrackingOption:
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
SubscriptionStartDate: output.SubscriptionStartDate != null
|
|
3197
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubscriptionStartDate)))
|
|
3198
|
-
: undefined,
|
|
3199
|
-
};
|
|
2851
|
+
return (0, smithy_client_1.take)(output, {
|
|
2852
|
+
Domain: smithy_client_1.expectString,
|
|
2853
|
+
InboxPlacementTrackingOption: smithy_client_1._json,
|
|
2854
|
+
SubscriptionStartDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2855
|
+
});
|
|
3200
2856
|
};
|
|
3201
2857
|
const de_DomainDeliverabilityTrackingOptions = (output, context) => {
|
|
3202
2858
|
const retVal = (output || [])
|
|
3203
2859
|
.filter((e) => e != null)
|
|
3204
2860
|
.map((entry) => {
|
|
3205
|
-
if (entry === null) {
|
|
3206
|
-
return null;
|
|
3207
|
-
}
|
|
3208
2861
|
return de_DomainDeliverabilityTrackingOption(entry, context);
|
|
3209
2862
|
});
|
|
3210
2863
|
return retVal;
|
|
3211
2864
|
};
|
|
3212
2865
|
const de_DomainIspPlacement = (output, context) => {
|
|
3213
|
-
return {
|
|
3214
|
-
InboxPercentage:
|
|
3215
|
-
InboxRawCount:
|
|
3216
|
-
IspName:
|
|
3217
|
-
SpamPercentage:
|
|
3218
|
-
SpamRawCount:
|
|
3219
|
-
};
|
|
2866
|
+
return (0, smithy_client_1.take)(output, {
|
|
2867
|
+
InboxPercentage: smithy_client_1.limitedParseDouble,
|
|
2868
|
+
InboxRawCount: smithy_client_1.expectLong,
|
|
2869
|
+
IspName: smithy_client_1.expectString,
|
|
2870
|
+
SpamPercentage: smithy_client_1.limitedParseDouble,
|
|
2871
|
+
SpamRawCount: smithy_client_1.expectLong,
|
|
2872
|
+
});
|
|
3220
2873
|
};
|
|
3221
2874
|
const de_DomainIspPlacements = (output, context) => {
|
|
3222
2875
|
const retVal = (output || [])
|
|
3223
2876
|
.filter((e) => e != null)
|
|
3224
2877
|
.map((entry) => {
|
|
3225
|
-
if (entry === null) {
|
|
3226
|
-
return null;
|
|
3227
|
-
}
|
|
3228
2878
|
return de_DomainIspPlacement(entry, context);
|
|
3229
2879
|
});
|
|
3230
2880
|
return retVal;
|
|
3231
2881
|
};
|
|
3232
|
-
const de_Esps = (output, context) => {
|
|
3233
|
-
const retVal = (output || [])
|
|
3234
|
-
.filter((e) => e != null)
|
|
3235
|
-
.map((entry) => {
|
|
3236
|
-
if (entry === null) {
|
|
3237
|
-
return null;
|
|
3238
|
-
}
|
|
3239
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3240
|
-
});
|
|
3241
|
-
return retVal;
|
|
3242
|
-
};
|
|
3243
|
-
const de_EventDestination = (output, context) => {
|
|
3244
|
-
return {
|
|
3245
|
-
CloudWatchDestination: output.CloudWatchDestination != null
|
|
3246
|
-
? de_CloudWatchDestination(output.CloudWatchDestination, context)
|
|
3247
|
-
: undefined,
|
|
3248
|
-
Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
|
|
3249
|
-
KinesisFirehoseDestination: output.KinesisFirehoseDestination != null
|
|
3250
|
-
? de_KinesisFirehoseDestination(output.KinesisFirehoseDestination, context)
|
|
3251
|
-
: undefined,
|
|
3252
|
-
MatchingEventTypes: output.MatchingEventTypes != null ? de_EventTypes(output.MatchingEventTypes, context) : undefined,
|
|
3253
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3254
|
-
PinpointDestination: output.PinpointDestination != null ? de_PinpointDestination(output.PinpointDestination, context) : undefined,
|
|
3255
|
-
SnsDestination: output.SnsDestination != null ? de_SnsDestination(output.SnsDestination, context) : undefined,
|
|
3256
|
-
};
|
|
3257
|
-
};
|
|
3258
|
-
const de_EventDestinations = (output, context) => {
|
|
3259
|
-
const retVal = (output || [])
|
|
3260
|
-
.filter((e) => e != null)
|
|
3261
|
-
.map((entry) => {
|
|
3262
|
-
if (entry === null) {
|
|
3263
|
-
return null;
|
|
3264
|
-
}
|
|
3265
|
-
return de_EventDestination(entry, context);
|
|
3266
|
-
});
|
|
3267
|
-
return retVal;
|
|
3268
|
-
};
|
|
3269
|
-
const de_EventTypes = (output, context) => {
|
|
3270
|
-
const retVal = (output || [])
|
|
3271
|
-
.filter((e) => e != null)
|
|
3272
|
-
.map((entry) => {
|
|
3273
|
-
if (entry === null) {
|
|
3274
|
-
return null;
|
|
3275
|
-
}
|
|
3276
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3277
|
-
});
|
|
3278
|
-
return retVal;
|
|
3279
|
-
};
|
|
3280
|
-
const de_IdentityInfo = (output, context) => {
|
|
3281
|
-
return {
|
|
3282
|
-
IdentityName: (0, smithy_client_1.expectString)(output.IdentityName),
|
|
3283
|
-
IdentityType: (0, smithy_client_1.expectString)(output.IdentityType),
|
|
3284
|
-
SendingEnabled: (0, smithy_client_1.expectBoolean)(output.SendingEnabled),
|
|
3285
|
-
};
|
|
3286
|
-
};
|
|
3287
|
-
const de_IdentityInfoList = (output, context) => {
|
|
3288
|
-
const retVal = (output || [])
|
|
3289
|
-
.filter((e) => e != null)
|
|
3290
|
-
.map((entry) => {
|
|
3291
|
-
if (entry === null) {
|
|
3292
|
-
return null;
|
|
3293
|
-
}
|
|
3294
|
-
return de_IdentityInfo(entry, context);
|
|
3295
|
-
});
|
|
3296
|
-
return retVal;
|
|
3297
|
-
};
|
|
3298
|
-
const de_InboxPlacementTrackingOption = (output, context) => {
|
|
3299
|
-
return {
|
|
3300
|
-
Global: (0, smithy_client_1.expectBoolean)(output.Global),
|
|
3301
|
-
TrackedIsps: output.TrackedIsps != null ? de_IspNameList(output.TrackedIsps, context) : undefined,
|
|
3302
|
-
};
|
|
3303
|
-
};
|
|
3304
|
-
const de_IpList = (output, context) => {
|
|
3305
|
-
const retVal = (output || [])
|
|
3306
|
-
.filter((e) => e != null)
|
|
3307
|
-
.map((entry) => {
|
|
3308
|
-
if (entry === null) {
|
|
3309
|
-
return null;
|
|
3310
|
-
}
|
|
3311
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3312
|
-
});
|
|
3313
|
-
return retVal;
|
|
3314
|
-
};
|
|
3315
|
-
const de_IspNameList = (output, context) => {
|
|
3316
|
-
const retVal = (output || [])
|
|
3317
|
-
.filter((e) => e != null)
|
|
3318
|
-
.map((entry) => {
|
|
3319
|
-
if (entry === null) {
|
|
3320
|
-
return null;
|
|
3321
|
-
}
|
|
3322
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3323
|
-
});
|
|
3324
|
-
return retVal;
|
|
3325
|
-
};
|
|
3326
2882
|
const de_IspPlacement = (output, context) => {
|
|
3327
|
-
return {
|
|
3328
|
-
IspName:
|
|
3329
|
-
PlacementStatistics:
|
|
3330
|
-
};
|
|
2883
|
+
return (0, smithy_client_1.take)(output, {
|
|
2884
|
+
IspName: smithy_client_1.expectString,
|
|
2885
|
+
PlacementStatistics: (_) => de_PlacementStatistics(_, context),
|
|
2886
|
+
});
|
|
3331
2887
|
};
|
|
3332
2888
|
const de_IspPlacements = (output, context) => {
|
|
3333
2889
|
const retVal = (output || [])
|
|
3334
2890
|
.filter((e) => e != null)
|
|
3335
2891
|
.map((entry) => {
|
|
3336
|
-
if (entry === null) {
|
|
3337
|
-
return null;
|
|
3338
|
-
}
|
|
3339
2892
|
return de_IspPlacement(entry, context);
|
|
3340
2893
|
});
|
|
3341
2894
|
return retVal;
|
|
3342
2895
|
};
|
|
3343
|
-
const de_KinesisFirehoseDestination = (output, context) => {
|
|
3344
|
-
return {
|
|
3345
|
-
DeliveryStreamArn: (0, smithy_client_1.expectString)(output.DeliveryStreamArn),
|
|
3346
|
-
IamRoleArn: (0, smithy_client_1.expectString)(output.IamRoleArn),
|
|
3347
|
-
};
|
|
3348
|
-
};
|
|
3349
|
-
const de_ListOfDedicatedIpPools = (output, context) => {
|
|
3350
|
-
const retVal = (output || [])
|
|
3351
|
-
.filter((e) => e != null)
|
|
3352
|
-
.map((entry) => {
|
|
3353
|
-
if (entry === null) {
|
|
3354
|
-
return null;
|
|
3355
|
-
}
|
|
3356
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3357
|
-
});
|
|
3358
|
-
return retVal;
|
|
3359
|
-
};
|
|
3360
|
-
const de_MailFromAttributes = (output, context) => {
|
|
3361
|
-
return {
|
|
3362
|
-
BehaviorOnMxFailure: (0, smithy_client_1.expectString)(output.BehaviorOnMxFailure),
|
|
3363
|
-
MailFromDomain: (0, smithy_client_1.expectString)(output.MailFromDomain),
|
|
3364
|
-
MailFromDomainStatus: (0, smithy_client_1.expectString)(output.MailFromDomainStatus),
|
|
3365
|
-
};
|
|
3366
|
-
};
|
|
3367
2896
|
const de_OverallVolume = (output, context) => {
|
|
3368
|
-
return {
|
|
3369
|
-
DomainIspPlacements:
|
|
3370
|
-
ReadRatePercent:
|
|
3371
|
-
VolumeStatistics:
|
|
3372
|
-
};
|
|
3373
|
-
};
|
|
3374
|
-
const de_PinpointDestination = (output, context) => {
|
|
3375
|
-
return {
|
|
3376
|
-
ApplicationArn: (0, smithy_client_1.expectString)(output.ApplicationArn),
|
|
3377
|
-
};
|
|
2897
|
+
return (0, smithy_client_1.take)(output, {
|
|
2898
|
+
DomainIspPlacements: (_) => de_DomainIspPlacements(_, context),
|
|
2899
|
+
ReadRatePercent: smithy_client_1.limitedParseDouble,
|
|
2900
|
+
VolumeStatistics: smithy_client_1._json,
|
|
2901
|
+
});
|
|
3378
2902
|
};
|
|
3379
2903
|
const de_PlacementStatistics = (output, context) => {
|
|
3380
|
-
return {
|
|
3381
|
-
DkimPercentage:
|
|
3382
|
-
InboxPercentage:
|
|
3383
|
-
MissingPercentage:
|
|
3384
|
-
SpamPercentage:
|
|
3385
|
-
SpfPercentage:
|
|
3386
|
-
};
|
|
2904
|
+
return (0, smithy_client_1.take)(output, {
|
|
2905
|
+
DkimPercentage: smithy_client_1.limitedParseDouble,
|
|
2906
|
+
InboxPercentage: smithy_client_1.limitedParseDouble,
|
|
2907
|
+
MissingPercentage: smithy_client_1.limitedParseDouble,
|
|
2908
|
+
SpamPercentage: smithy_client_1.limitedParseDouble,
|
|
2909
|
+
SpfPercentage: smithy_client_1.limitedParseDouble,
|
|
2910
|
+
});
|
|
3387
2911
|
};
|
|
3388
2912
|
const de_ReputationOptions = (output, context) => {
|
|
3389
|
-
return {
|
|
3390
|
-
LastFreshStart:
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
ReputationMetricsEnabled: (0, smithy_client_1.expectBoolean)(output.ReputationMetricsEnabled),
|
|
3394
|
-
};
|
|
3395
|
-
};
|
|
3396
|
-
const de_SendingOptions = (output, context) => {
|
|
3397
|
-
return {
|
|
3398
|
-
SendingEnabled: (0, smithy_client_1.expectBoolean)(output.SendingEnabled),
|
|
3399
|
-
};
|
|
2913
|
+
return (0, smithy_client_1.take)(output, {
|
|
2914
|
+
LastFreshStart: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2915
|
+
ReputationMetricsEnabled: smithy_client_1.expectBoolean,
|
|
2916
|
+
});
|
|
3400
2917
|
};
|
|
3401
2918
|
const de_SendQuota = (output, context) => {
|
|
3402
|
-
return {
|
|
3403
|
-
Max24HourSend:
|
|
3404
|
-
MaxSendRate:
|
|
3405
|
-
SentLast24Hours:
|
|
3406
|
-
};
|
|
3407
|
-
};
|
|
3408
|
-
const de_SnsDestination = (output, context) => {
|
|
3409
|
-
return {
|
|
3410
|
-
TopicArn: (0, smithy_client_1.expectString)(output.TopicArn),
|
|
3411
|
-
};
|
|
3412
|
-
};
|
|
3413
|
-
const de_Tag = (output, context) => {
|
|
3414
|
-
return {
|
|
3415
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
3416
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
3417
|
-
};
|
|
3418
|
-
};
|
|
3419
|
-
const de_TagList = (output, context) => {
|
|
3420
|
-
const retVal = (output || [])
|
|
3421
|
-
.filter((e) => e != null)
|
|
3422
|
-
.map((entry) => {
|
|
3423
|
-
if (entry === null) {
|
|
3424
|
-
return null;
|
|
3425
|
-
}
|
|
3426
|
-
return de_Tag(entry, context);
|
|
2919
|
+
return (0, smithy_client_1.take)(output, {
|
|
2920
|
+
Max24HourSend: smithy_client_1.limitedParseDouble,
|
|
2921
|
+
MaxSendRate: smithy_client_1.limitedParseDouble,
|
|
2922
|
+
SentLast24Hours: smithy_client_1.limitedParseDouble,
|
|
3427
2923
|
});
|
|
3428
|
-
return retVal;
|
|
3429
|
-
};
|
|
3430
|
-
const de_TrackingOptions = (output, context) => {
|
|
3431
|
-
return {
|
|
3432
|
-
CustomRedirectDomain: (0, smithy_client_1.expectString)(output.CustomRedirectDomain),
|
|
3433
|
-
};
|
|
3434
|
-
};
|
|
3435
|
-
const de_VolumeStatistics = (output, context) => {
|
|
3436
|
-
return {
|
|
3437
|
-
InboxRawCount: (0, smithy_client_1.expectLong)(output.InboxRawCount),
|
|
3438
|
-
ProjectedInbox: (0, smithy_client_1.expectLong)(output.ProjectedInbox),
|
|
3439
|
-
ProjectedSpam: (0, smithy_client_1.expectLong)(output.ProjectedSpam),
|
|
3440
|
-
SpamRawCount: (0, smithy_client_1.expectLong)(output.SpamRawCount),
|
|
3441
|
-
};
|
|
3442
2924
|
};
|
|
3443
2925
|
const deserializeMetadata = (output) => ({
|
|
3444
2926
|
httpStatusCode: output.statusCode,
|