@aws-sdk/client-pinpoint-email 3.303.0 → 3.309.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/commands/CreateConfigurationSetCommand.js +2 -2
- package/dist-cjs/commands/CreateConfigurationSetEventDestinationCommand.js +2 -2
- package/dist-cjs/commands/CreateDedicatedIpPoolCommand.js +2 -2
- package/dist-cjs/commands/CreateDeliverabilityTestReportCommand.js +2 -2
- package/dist-cjs/commands/CreateEmailIdentityCommand.js +2 -2
- package/dist-cjs/commands/DeleteConfigurationSetCommand.js +2 -2
- package/dist-cjs/commands/DeleteConfigurationSetEventDestinationCommand.js +2 -2
- package/dist-cjs/commands/DeleteDedicatedIpPoolCommand.js +2 -2
- package/dist-cjs/commands/DeleteEmailIdentityCommand.js +2 -2
- package/dist-cjs/commands/GetAccountCommand.js +2 -2
- package/dist-cjs/commands/GetBlacklistReportsCommand.js +2 -2
- package/dist-cjs/commands/GetConfigurationSetCommand.js +2 -2
- package/dist-cjs/commands/GetConfigurationSetEventDestinationsCommand.js +2 -2
- package/dist-cjs/commands/GetDedicatedIpCommand.js +2 -2
- package/dist-cjs/commands/GetDedicatedIpsCommand.js +2 -2
- package/dist-cjs/commands/GetDeliverabilityDashboardOptionsCommand.js +2 -2
- package/dist-cjs/commands/GetDeliverabilityTestReportCommand.js +2 -2
- package/dist-cjs/commands/GetDomainDeliverabilityCampaignCommand.js +2 -2
- package/dist-cjs/commands/GetDomainStatisticsReportCommand.js +2 -2
- package/dist-cjs/commands/GetEmailIdentityCommand.js +2 -2
- package/dist-cjs/commands/ListConfigurationSetsCommand.js +2 -2
- package/dist-cjs/commands/ListDedicatedIpPoolsCommand.js +2 -2
- package/dist-cjs/commands/ListDeliverabilityTestReportsCommand.js +2 -2
- package/dist-cjs/commands/ListDomainDeliverabilityCampaignsCommand.js +2 -2
- package/dist-cjs/commands/ListEmailIdentitiesCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/PutAccountDedicatedIpWarmupAttributesCommand.js +2 -2
- package/dist-cjs/commands/PutAccountSendingAttributesCommand.js +2 -2
- package/dist-cjs/commands/PutConfigurationSetDeliveryOptionsCommand.js +2 -2
- package/dist-cjs/commands/PutConfigurationSetReputationOptionsCommand.js +2 -2
- package/dist-cjs/commands/PutConfigurationSetSendingOptionsCommand.js +2 -2
- package/dist-cjs/commands/PutConfigurationSetTrackingOptionsCommand.js +2 -2
- package/dist-cjs/commands/PutDedicatedIpInPoolCommand.js +2 -2
- package/dist-cjs/commands/PutDedicatedIpWarmupAttributesCommand.js +2 -2
- package/dist-cjs/commands/PutDeliverabilityDashboardOptionCommand.js +2 -2
- package/dist-cjs/commands/PutEmailIdentityDkimAttributesCommand.js +2 -2
- package/dist-cjs/commands/PutEmailIdentityFeedbackAttributesCommand.js +2 -2
- package/dist-cjs/commands/PutEmailIdentityMailFromAttributesCommand.js +2 -2
- package/dist-cjs/commands/SendEmailCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateConfigurationSetEventDestinationCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +582 -616
- package/dist-es/commands/CreateConfigurationSetCommand.js +3 -3
- package/dist-es/commands/CreateConfigurationSetEventDestinationCommand.js +3 -3
- package/dist-es/commands/CreateDedicatedIpPoolCommand.js +3 -3
- package/dist-es/commands/CreateDeliverabilityTestReportCommand.js +3 -3
- package/dist-es/commands/CreateEmailIdentityCommand.js +3 -3
- package/dist-es/commands/DeleteConfigurationSetCommand.js +3 -3
- package/dist-es/commands/DeleteConfigurationSetEventDestinationCommand.js +3 -3
- package/dist-es/commands/DeleteDedicatedIpPoolCommand.js +3 -3
- package/dist-es/commands/DeleteEmailIdentityCommand.js +3 -3
- package/dist-es/commands/GetAccountCommand.js +3 -3
- package/dist-es/commands/GetBlacklistReportsCommand.js +3 -3
- package/dist-es/commands/GetConfigurationSetCommand.js +3 -3
- package/dist-es/commands/GetConfigurationSetEventDestinationsCommand.js +3 -3
- package/dist-es/commands/GetDedicatedIpCommand.js +3 -3
- package/dist-es/commands/GetDedicatedIpsCommand.js +3 -3
- package/dist-es/commands/GetDeliverabilityDashboardOptionsCommand.js +3 -3
- package/dist-es/commands/GetDeliverabilityTestReportCommand.js +3 -3
- package/dist-es/commands/GetDomainDeliverabilityCampaignCommand.js +3 -3
- package/dist-es/commands/GetDomainStatisticsReportCommand.js +3 -3
- package/dist-es/commands/GetEmailIdentityCommand.js +3 -3
- package/dist-es/commands/ListConfigurationSetsCommand.js +3 -3
- package/dist-es/commands/ListDedicatedIpPoolsCommand.js +3 -3
- package/dist-es/commands/ListDeliverabilityTestReportsCommand.js +3 -3
- package/dist-es/commands/ListDomainDeliverabilityCampaignsCommand.js +3 -3
- package/dist-es/commands/ListEmailIdentitiesCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/PutAccountDedicatedIpWarmupAttributesCommand.js +3 -3
- package/dist-es/commands/PutAccountSendingAttributesCommand.js +3 -3
- package/dist-es/commands/PutConfigurationSetDeliveryOptionsCommand.js +3 -3
- package/dist-es/commands/PutConfigurationSetReputationOptionsCommand.js +3 -3
- package/dist-es/commands/PutConfigurationSetSendingOptionsCommand.js +3 -3
- package/dist-es/commands/PutConfigurationSetTrackingOptionsCommand.js +3 -3
- package/dist-es/commands/PutDedicatedIpInPoolCommand.js +3 -3
- package/dist-es/commands/PutDedicatedIpWarmupAttributesCommand.js +3 -3
- package/dist-es/commands/PutDeliverabilityDashboardOptionCommand.js +3 -3
- package/dist-es/commands/PutEmailIdentityDkimAttributesCommand.js +3 -3
- package/dist-es/commands/PutEmailIdentityFeedbackAttributesCommand.js +3 -3
- package/dist-es/commands/PutEmailIdentityMailFromAttributesCommand.js +3 -3
- package/dist-es/commands/SendEmailCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateConfigurationSetEventDestinationCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +496 -530
- package/dist-types/protocols/Aws_restJson1.d.ts +336 -84
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +84 -84
- package/package.json +29 -29
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.de_DeleteDedicatedIpPoolCommand = exports.de_DeleteConfigurationSetEventDestinationCommand = exports.de_DeleteConfigurationSetCommand = exports.de_CreateEmailIdentityCommand = exports.de_CreateDeliverabilityTestReportCommand = exports.de_CreateDedicatedIpPoolCommand = exports.de_CreateConfigurationSetEventDestinationCommand = exports.de_CreateConfigurationSetCommand = exports.se_UpdateConfigurationSetEventDestinationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SendEmailCommand = exports.se_PutEmailIdentityMailFromAttributesCommand = exports.se_PutEmailIdentityFeedbackAttributesCommand = exports.se_PutEmailIdentityDkimAttributesCommand = exports.se_PutDeliverabilityDashboardOptionCommand = exports.se_PutDedicatedIpWarmupAttributesCommand = exports.se_PutDedicatedIpInPoolCommand = exports.se_PutConfigurationSetTrackingOptionsCommand = exports.se_PutConfigurationSetSendingOptionsCommand = exports.se_PutConfigurationSetReputationOptionsCommand = exports.se_PutConfigurationSetDeliveryOptionsCommand = exports.se_PutAccountSendingAttributesCommand = exports.se_PutAccountDedicatedIpWarmupAttributesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListEmailIdentitiesCommand = exports.se_ListDomainDeliverabilityCampaignsCommand = exports.se_ListDeliverabilityTestReportsCommand = exports.se_ListDedicatedIpPoolsCommand = exports.se_ListConfigurationSetsCommand = exports.se_GetEmailIdentityCommand = exports.se_GetDomainStatisticsReportCommand = exports.se_GetDomainDeliverabilityCampaignCommand = exports.se_GetDeliverabilityTestReportCommand = exports.se_GetDeliverabilityDashboardOptionsCommand = exports.se_GetDedicatedIpsCommand = exports.se_GetDedicatedIpCommand = exports.se_GetConfigurationSetEventDestinationsCommand = exports.se_GetConfigurationSetCommand = exports.se_GetBlacklistReportsCommand = exports.se_GetAccountCommand = exports.se_DeleteEmailIdentityCommand = exports.se_DeleteDedicatedIpPoolCommand = exports.se_DeleteConfigurationSetEventDestinationCommand = exports.se_DeleteConfigurationSetCommand = exports.se_CreateEmailIdentityCommand = exports.se_CreateDeliverabilityTestReportCommand = exports.se_CreateDedicatedIpPoolCommand = exports.se_CreateConfigurationSetEventDestinationCommand = exports.se_CreateConfigurationSetCommand = void 0;
|
|
4
|
+
exports.de_UpdateConfigurationSetEventDestinationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SendEmailCommand = exports.de_PutEmailIdentityMailFromAttributesCommand = exports.de_PutEmailIdentityFeedbackAttributesCommand = exports.de_PutEmailIdentityDkimAttributesCommand = exports.de_PutDeliverabilityDashboardOptionCommand = exports.de_PutDedicatedIpWarmupAttributesCommand = exports.de_PutDedicatedIpInPoolCommand = exports.de_PutConfigurationSetTrackingOptionsCommand = exports.de_PutConfigurationSetSendingOptionsCommand = exports.de_PutConfigurationSetReputationOptionsCommand = exports.de_PutConfigurationSetDeliveryOptionsCommand = exports.de_PutAccountSendingAttributesCommand = exports.de_PutAccountDedicatedIpWarmupAttributesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListEmailIdentitiesCommand = exports.de_ListDomainDeliverabilityCampaignsCommand = exports.de_ListDeliverabilityTestReportsCommand = exports.de_ListDedicatedIpPoolsCommand = exports.de_ListConfigurationSetsCommand = exports.de_GetEmailIdentityCommand = exports.de_GetDomainStatisticsReportCommand = exports.de_GetDomainDeliverabilityCampaignCommand = exports.de_GetDeliverabilityTestReportCommand = exports.de_GetDeliverabilityDashboardOptionsCommand = exports.de_GetDedicatedIpsCommand = exports.de_GetDedicatedIpCommand = exports.de_GetConfigurationSetEventDestinationsCommand = exports.de_GetConfigurationSetCommand = exports.de_GetBlacklistReportsCommand = exports.de_GetAccountCommand = exports.de_DeleteEmailIdentityCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const PinpointEmailServiceException_1 = require("../models/PinpointEmailServiceException");
|
|
9
|
-
const
|
|
9
|
+
const se_CreateConfigurationSetCommand = async (input, context) => {
|
|
10
10
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
11
11
|
const headers = {
|
|
12
12
|
"content-type": "application/json",
|
|
@@ -15,19 +15,13 @@ const serializeAws_restJson1CreateConfigurationSetCommand = async (input, contex
|
|
|
15
15
|
let body;
|
|
16
16
|
body = JSON.stringify({
|
|
17
17
|
...(input.ConfigurationSetName != null && { ConfigurationSetName: input.ConfigurationSetName }),
|
|
18
|
-
...(input.DeliveryOptions != null && {
|
|
19
|
-
DeliveryOptions: serializeAws_restJson1DeliveryOptions(input.DeliveryOptions, context),
|
|
20
|
-
}),
|
|
18
|
+
...(input.DeliveryOptions != null && { DeliveryOptions: se_DeliveryOptions(input.DeliveryOptions, context) }),
|
|
21
19
|
...(input.ReputationOptions != null && {
|
|
22
|
-
ReputationOptions:
|
|
23
|
-
}),
|
|
24
|
-
...(input.SendingOptions != null && {
|
|
25
|
-
SendingOptions: serializeAws_restJson1SendingOptions(input.SendingOptions, context),
|
|
26
|
-
}),
|
|
27
|
-
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
28
|
-
...(input.TrackingOptions != null && {
|
|
29
|
-
TrackingOptions: serializeAws_restJson1TrackingOptions(input.TrackingOptions, context),
|
|
20
|
+
ReputationOptions: se_ReputationOptions(input.ReputationOptions, context),
|
|
30
21
|
}),
|
|
22
|
+
...(input.SendingOptions != null && { SendingOptions: se_SendingOptions(input.SendingOptions, context) }),
|
|
23
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
24
|
+
...(input.TrackingOptions != null && { TrackingOptions: se_TrackingOptions(input.TrackingOptions, context) }),
|
|
31
25
|
});
|
|
32
26
|
return new protocol_http_1.HttpRequest({
|
|
33
27
|
protocol,
|
|
@@ -39,8 +33,8 @@ const serializeAws_restJson1CreateConfigurationSetCommand = async (input, contex
|
|
|
39
33
|
body,
|
|
40
34
|
});
|
|
41
35
|
};
|
|
42
|
-
exports.
|
|
43
|
-
const
|
|
36
|
+
exports.se_CreateConfigurationSetCommand = se_CreateConfigurationSetCommand;
|
|
37
|
+
const se_CreateConfigurationSetEventDestinationCommand = async (input, context) => {
|
|
44
38
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
45
39
|
const headers = {
|
|
46
40
|
"content-type": "application/json",
|
|
@@ -51,7 +45,7 @@ const serializeAws_restJson1CreateConfigurationSetEventDestinationCommand = asyn
|
|
|
51
45
|
let body;
|
|
52
46
|
body = JSON.stringify({
|
|
53
47
|
...(input.EventDestination != null && {
|
|
54
|
-
EventDestination:
|
|
48
|
+
EventDestination: se_EventDestinationDefinition(input.EventDestination, context),
|
|
55
49
|
}),
|
|
56
50
|
...(input.EventDestinationName != null && { EventDestinationName: input.EventDestinationName }),
|
|
57
51
|
});
|
|
@@ -65,8 +59,8 @@ const serializeAws_restJson1CreateConfigurationSetEventDestinationCommand = asyn
|
|
|
65
59
|
body,
|
|
66
60
|
});
|
|
67
61
|
};
|
|
68
|
-
exports.
|
|
69
|
-
const
|
|
62
|
+
exports.se_CreateConfigurationSetEventDestinationCommand = se_CreateConfigurationSetEventDestinationCommand;
|
|
63
|
+
const se_CreateDedicatedIpPoolCommand = async (input, context) => {
|
|
70
64
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
71
65
|
const headers = {
|
|
72
66
|
"content-type": "application/json",
|
|
@@ -75,7 +69,7 @@ const serializeAws_restJson1CreateDedicatedIpPoolCommand = async (input, context
|
|
|
75
69
|
let body;
|
|
76
70
|
body = JSON.stringify({
|
|
77
71
|
...(input.PoolName != null && { PoolName: input.PoolName }),
|
|
78
|
-
...(input.Tags != null && { Tags:
|
|
72
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
79
73
|
});
|
|
80
74
|
return new protocol_http_1.HttpRequest({
|
|
81
75
|
protocol,
|
|
@@ -87,8 +81,8 @@ const serializeAws_restJson1CreateDedicatedIpPoolCommand = async (input, context
|
|
|
87
81
|
body,
|
|
88
82
|
});
|
|
89
83
|
};
|
|
90
|
-
exports.
|
|
91
|
-
const
|
|
84
|
+
exports.se_CreateDedicatedIpPoolCommand = se_CreateDedicatedIpPoolCommand;
|
|
85
|
+
const se_CreateDeliverabilityTestReportCommand = async (input, context) => {
|
|
92
86
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
93
87
|
const headers = {
|
|
94
88
|
"content-type": "application/json",
|
|
@@ -96,10 +90,10 @@ const serializeAws_restJson1CreateDeliverabilityTestReportCommand = async (input
|
|
|
96
90
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/deliverability-dashboard/test";
|
|
97
91
|
let body;
|
|
98
92
|
body = JSON.stringify({
|
|
99
|
-
...(input.Content != null && { Content:
|
|
93
|
+
...(input.Content != null && { Content: se_EmailContent(input.Content, context) }),
|
|
100
94
|
...(input.FromEmailAddress != null && { FromEmailAddress: input.FromEmailAddress }),
|
|
101
95
|
...(input.ReportName != null && { ReportName: input.ReportName }),
|
|
102
|
-
...(input.Tags != null && { Tags:
|
|
96
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
103
97
|
});
|
|
104
98
|
return new protocol_http_1.HttpRequest({
|
|
105
99
|
protocol,
|
|
@@ -111,8 +105,8 @@ const serializeAws_restJson1CreateDeliverabilityTestReportCommand = async (input
|
|
|
111
105
|
body,
|
|
112
106
|
});
|
|
113
107
|
};
|
|
114
|
-
exports.
|
|
115
|
-
const
|
|
108
|
+
exports.se_CreateDeliverabilityTestReportCommand = se_CreateDeliverabilityTestReportCommand;
|
|
109
|
+
const se_CreateEmailIdentityCommand = async (input, context) => {
|
|
116
110
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
117
111
|
const headers = {
|
|
118
112
|
"content-type": "application/json",
|
|
@@ -121,7 +115,7 @@ const serializeAws_restJson1CreateEmailIdentityCommand = async (input, context)
|
|
|
121
115
|
let body;
|
|
122
116
|
body = JSON.stringify({
|
|
123
117
|
...(input.EmailIdentity != null && { EmailIdentity: input.EmailIdentity }),
|
|
124
|
-
...(input.Tags != null && { Tags:
|
|
118
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
125
119
|
});
|
|
126
120
|
return new protocol_http_1.HttpRequest({
|
|
127
121
|
protocol,
|
|
@@ -133,8 +127,8 @@ const serializeAws_restJson1CreateEmailIdentityCommand = async (input, context)
|
|
|
133
127
|
body,
|
|
134
128
|
});
|
|
135
129
|
};
|
|
136
|
-
exports.
|
|
137
|
-
const
|
|
130
|
+
exports.se_CreateEmailIdentityCommand = se_CreateEmailIdentityCommand;
|
|
131
|
+
const se_DeleteConfigurationSetCommand = async (input, context) => {
|
|
138
132
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
139
133
|
const headers = {};
|
|
140
134
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -151,8 +145,8 @@ const serializeAws_restJson1DeleteConfigurationSetCommand = async (input, contex
|
|
|
151
145
|
body,
|
|
152
146
|
});
|
|
153
147
|
};
|
|
154
|
-
exports.
|
|
155
|
-
const
|
|
148
|
+
exports.se_DeleteConfigurationSetCommand = se_DeleteConfigurationSetCommand;
|
|
149
|
+
const se_DeleteConfigurationSetEventDestinationCommand = async (input, context) => {
|
|
156
150
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
157
151
|
const headers = {};
|
|
158
152
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -170,8 +164,8 @@ const serializeAws_restJson1DeleteConfigurationSetEventDestinationCommand = asyn
|
|
|
170
164
|
body,
|
|
171
165
|
});
|
|
172
166
|
};
|
|
173
|
-
exports.
|
|
174
|
-
const
|
|
167
|
+
exports.se_DeleteConfigurationSetEventDestinationCommand = se_DeleteConfigurationSetEventDestinationCommand;
|
|
168
|
+
const se_DeleteDedicatedIpPoolCommand = async (input, context) => {
|
|
175
169
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
176
170
|
const headers = {};
|
|
177
171
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/dedicated-ip-pools/{PoolName}";
|
|
@@ -187,8 +181,8 @@ const serializeAws_restJson1DeleteDedicatedIpPoolCommand = async (input, context
|
|
|
187
181
|
body,
|
|
188
182
|
});
|
|
189
183
|
};
|
|
190
|
-
exports.
|
|
191
|
-
const
|
|
184
|
+
exports.se_DeleteDedicatedIpPoolCommand = se_DeleteDedicatedIpPoolCommand;
|
|
185
|
+
const se_DeleteEmailIdentityCommand = async (input, context) => {
|
|
192
186
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
193
187
|
const headers = {};
|
|
194
188
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/identities/{EmailIdentity}";
|
|
@@ -204,8 +198,8 @@ const serializeAws_restJson1DeleteEmailIdentityCommand = async (input, context)
|
|
|
204
198
|
body,
|
|
205
199
|
});
|
|
206
200
|
};
|
|
207
|
-
exports.
|
|
208
|
-
const
|
|
201
|
+
exports.se_DeleteEmailIdentityCommand = se_DeleteEmailIdentityCommand;
|
|
202
|
+
const se_GetAccountCommand = async (input, context) => {
|
|
209
203
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
210
204
|
const headers = {
|
|
211
205
|
"content-type": "application/json",
|
|
@@ -223,8 +217,8 @@ const serializeAws_restJson1GetAccountCommand = async (input, context) => {
|
|
|
223
217
|
body,
|
|
224
218
|
});
|
|
225
219
|
};
|
|
226
|
-
exports.
|
|
227
|
-
const
|
|
220
|
+
exports.se_GetAccountCommand = se_GetAccountCommand;
|
|
221
|
+
const se_GetBlacklistReportsCommand = async (input, context) => {
|
|
228
222
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
229
223
|
const headers = {};
|
|
230
224
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -247,8 +241,8 @@ const serializeAws_restJson1GetBlacklistReportsCommand = async (input, context)
|
|
|
247
241
|
body,
|
|
248
242
|
});
|
|
249
243
|
};
|
|
250
|
-
exports.
|
|
251
|
-
const
|
|
244
|
+
exports.se_GetBlacklistReportsCommand = se_GetBlacklistReportsCommand;
|
|
245
|
+
const se_GetConfigurationSetCommand = async (input, context) => {
|
|
252
246
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
253
247
|
const headers = {};
|
|
254
248
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -265,8 +259,8 @@ const serializeAws_restJson1GetConfigurationSetCommand = async (input, context)
|
|
|
265
259
|
body,
|
|
266
260
|
});
|
|
267
261
|
};
|
|
268
|
-
exports.
|
|
269
|
-
const
|
|
262
|
+
exports.se_GetConfigurationSetCommand = se_GetConfigurationSetCommand;
|
|
263
|
+
const se_GetConfigurationSetEventDestinationsCommand = async (input, context) => {
|
|
270
264
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
271
265
|
const headers = {};
|
|
272
266
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -283,8 +277,8 @@ const serializeAws_restJson1GetConfigurationSetEventDestinationsCommand = async
|
|
|
283
277
|
body,
|
|
284
278
|
});
|
|
285
279
|
};
|
|
286
|
-
exports.
|
|
287
|
-
const
|
|
280
|
+
exports.se_GetConfigurationSetEventDestinationsCommand = se_GetConfigurationSetEventDestinationsCommand;
|
|
281
|
+
const se_GetDedicatedIpCommand = async (input, context) => {
|
|
288
282
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
289
283
|
const headers = {};
|
|
290
284
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/dedicated-ips/{Ip}";
|
|
@@ -300,8 +294,8 @@ const serializeAws_restJson1GetDedicatedIpCommand = async (input, context) => {
|
|
|
300
294
|
body,
|
|
301
295
|
});
|
|
302
296
|
};
|
|
303
|
-
exports.
|
|
304
|
-
const
|
|
297
|
+
exports.se_GetDedicatedIpCommand = se_GetDedicatedIpCommand;
|
|
298
|
+
const se_GetDedicatedIpsCommand = async (input, context) => {
|
|
305
299
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
306
300
|
const headers = {};
|
|
307
301
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/dedicated-ips";
|
|
@@ -322,8 +316,8 @@ const serializeAws_restJson1GetDedicatedIpsCommand = async (input, context) => {
|
|
|
322
316
|
body,
|
|
323
317
|
});
|
|
324
318
|
};
|
|
325
|
-
exports.
|
|
326
|
-
const
|
|
319
|
+
exports.se_GetDedicatedIpsCommand = se_GetDedicatedIpsCommand;
|
|
320
|
+
const se_GetDeliverabilityDashboardOptionsCommand = async (input, context) => {
|
|
327
321
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
328
322
|
const headers = {
|
|
329
323
|
"content-type": "application/json",
|
|
@@ -341,8 +335,8 @@ const serializeAws_restJson1GetDeliverabilityDashboardOptionsCommand = async (in
|
|
|
341
335
|
body,
|
|
342
336
|
});
|
|
343
337
|
};
|
|
344
|
-
exports.
|
|
345
|
-
const
|
|
338
|
+
exports.se_GetDeliverabilityDashboardOptionsCommand = se_GetDeliverabilityDashboardOptionsCommand;
|
|
339
|
+
const se_GetDeliverabilityTestReportCommand = async (input, context) => {
|
|
346
340
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
347
341
|
const headers = {};
|
|
348
342
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -359,8 +353,8 @@ const serializeAws_restJson1GetDeliverabilityTestReportCommand = async (input, c
|
|
|
359
353
|
body,
|
|
360
354
|
});
|
|
361
355
|
};
|
|
362
|
-
exports.
|
|
363
|
-
const
|
|
356
|
+
exports.se_GetDeliverabilityTestReportCommand = se_GetDeliverabilityTestReportCommand;
|
|
357
|
+
const se_GetDomainDeliverabilityCampaignCommand = async (input, context) => {
|
|
364
358
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
365
359
|
const headers = {};
|
|
366
360
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -377,8 +371,8 @@ const serializeAws_restJson1GetDomainDeliverabilityCampaignCommand = async (inpu
|
|
|
377
371
|
body,
|
|
378
372
|
});
|
|
379
373
|
};
|
|
380
|
-
exports.
|
|
381
|
-
const
|
|
374
|
+
exports.se_GetDomainDeliverabilityCampaignCommand = se_GetDomainDeliverabilityCampaignCommand;
|
|
375
|
+
const se_GetDomainStatisticsReportCommand = async (input, context) => {
|
|
382
376
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
383
377
|
const headers = {};
|
|
384
378
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -406,8 +400,8 @@ const serializeAws_restJson1GetDomainStatisticsReportCommand = async (input, con
|
|
|
406
400
|
body,
|
|
407
401
|
});
|
|
408
402
|
};
|
|
409
|
-
exports.
|
|
410
|
-
const
|
|
403
|
+
exports.se_GetDomainStatisticsReportCommand = se_GetDomainStatisticsReportCommand;
|
|
404
|
+
const se_GetEmailIdentityCommand = async (input, context) => {
|
|
411
405
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
412
406
|
const headers = {};
|
|
413
407
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/identities/{EmailIdentity}";
|
|
@@ -423,8 +417,8 @@ const serializeAws_restJson1GetEmailIdentityCommand = async (input, context) =>
|
|
|
423
417
|
body,
|
|
424
418
|
});
|
|
425
419
|
};
|
|
426
|
-
exports.
|
|
427
|
-
const
|
|
420
|
+
exports.se_GetEmailIdentityCommand = se_GetEmailIdentityCommand;
|
|
421
|
+
const se_ListConfigurationSetsCommand = async (input, context) => {
|
|
428
422
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
429
423
|
const headers = {};
|
|
430
424
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/configuration-sets";
|
|
@@ -444,8 +438,8 @@ const serializeAws_restJson1ListConfigurationSetsCommand = async (input, context
|
|
|
444
438
|
body,
|
|
445
439
|
});
|
|
446
440
|
};
|
|
447
|
-
exports.
|
|
448
|
-
const
|
|
441
|
+
exports.se_ListConfigurationSetsCommand = se_ListConfigurationSetsCommand;
|
|
442
|
+
const se_ListDedicatedIpPoolsCommand = async (input, context) => {
|
|
449
443
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
450
444
|
const headers = {};
|
|
451
445
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/dedicated-ip-pools";
|
|
@@ -465,8 +459,8 @@ const serializeAws_restJson1ListDedicatedIpPoolsCommand = async (input, context)
|
|
|
465
459
|
body,
|
|
466
460
|
});
|
|
467
461
|
};
|
|
468
|
-
exports.
|
|
469
|
-
const
|
|
462
|
+
exports.se_ListDedicatedIpPoolsCommand = se_ListDedicatedIpPoolsCommand;
|
|
463
|
+
const se_ListDeliverabilityTestReportsCommand = async (input, context) => {
|
|
470
464
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
471
465
|
const headers = {};
|
|
472
466
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -487,8 +481,8 @@ const serializeAws_restJson1ListDeliverabilityTestReportsCommand = async (input,
|
|
|
487
481
|
body,
|
|
488
482
|
});
|
|
489
483
|
};
|
|
490
|
-
exports.
|
|
491
|
-
const
|
|
484
|
+
exports.se_ListDeliverabilityTestReportsCommand = se_ListDeliverabilityTestReportsCommand;
|
|
485
|
+
const se_ListDomainDeliverabilityCampaignsCommand = async (input, context) => {
|
|
492
486
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
493
487
|
const headers = {};
|
|
494
488
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -518,8 +512,8 @@ const serializeAws_restJson1ListDomainDeliverabilityCampaignsCommand = async (in
|
|
|
518
512
|
body,
|
|
519
513
|
});
|
|
520
514
|
};
|
|
521
|
-
exports.
|
|
522
|
-
const
|
|
515
|
+
exports.se_ListDomainDeliverabilityCampaignsCommand = se_ListDomainDeliverabilityCampaignsCommand;
|
|
516
|
+
const se_ListEmailIdentitiesCommand = async (input, context) => {
|
|
523
517
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
524
518
|
const headers = {};
|
|
525
519
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/identities";
|
|
@@ -539,8 +533,8 @@ const serializeAws_restJson1ListEmailIdentitiesCommand = async (input, context)
|
|
|
539
533
|
body,
|
|
540
534
|
});
|
|
541
535
|
};
|
|
542
|
-
exports.
|
|
543
|
-
const
|
|
536
|
+
exports.se_ListEmailIdentitiesCommand = se_ListEmailIdentitiesCommand;
|
|
537
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
544
538
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
545
539
|
const headers = {};
|
|
546
540
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/tags";
|
|
@@ -559,8 +553,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
559
553
|
body,
|
|
560
554
|
});
|
|
561
555
|
};
|
|
562
|
-
exports.
|
|
563
|
-
const
|
|
556
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
557
|
+
const se_PutAccountDedicatedIpWarmupAttributesCommand = async (input, context) => {
|
|
564
558
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
565
559
|
const headers = {
|
|
566
560
|
"content-type": "application/json",
|
|
@@ -580,8 +574,8 @@ const serializeAws_restJson1PutAccountDedicatedIpWarmupAttributesCommand = async
|
|
|
580
574
|
body,
|
|
581
575
|
});
|
|
582
576
|
};
|
|
583
|
-
exports.
|
|
584
|
-
const
|
|
577
|
+
exports.se_PutAccountDedicatedIpWarmupAttributesCommand = se_PutAccountDedicatedIpWarmupAttributesCommand;
|
|
578
|
+
const se_PutAccountSendingAttributesCommand = async (input, context) => {
|
|
585
579
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
586
580
|
const headers = {
|
|
587
581
|
"content-type": "application/json",
|
|
@@ -601,8 +595,8 @@ const serializeAws_restJson1PutAccountSendingAttributesCommand = async (input, c
|
|
|
601
595
|
body,
|
|
602
596
|
});
|
|
603
597
|
};
|
|
604
|
-
exports.
|
|
605
|
-
const
|
|
598
|
+
exports.se_PutAccountSendingAttributesCommand = se_PutAccountSendingAttributesCommand;
|
|
599
|
+
const se_PutConfigurationSetDeliveryOptionsCommand = async (input, context) => {
|
|
606
600
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
607
601
|
const headers = {
|
|
608
602
|
"content-type": "application/json",
|
|
@@ -625,8 +619,8 @@ const serializeAws_restJson1PutConfigurationSetDeliveryOptionsCommand = async (i
|
|
|
625
619
|
body,
|
|
626
620
|
});
|
|
627
621
|
};
|
|
628
|
-
exports.
|
|
629
|
-
const
|
|
622
|
+
exports.se_PutConfigurationSetDeliveryOptionsCommand = se_PutConfigurationSetDeliveryOptionsCommand;
|
|
623
|
+
const se_PutConfigurationSetReputationOptionsCommand = async (input, context) => {
|
|
630
624
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
631
625
|
const headers = {
|
|
632
626
|
"content-type": "application/json",
|
|
@@ -648,8 +642,8 @@ const serializeAws_restJson1PutConfigurationSetReputationOptionsCommand = async
|
|
|
648
642
|
body,
|
|
649
643
|
});
|
|
650
644
|
};
|
|
651
|
-
exports.
|
|
652
|
-
const
|
|
645
|
+
exports.se_PutConfigurationSetReputationOptionsCommand = se_PutConfigurationSetReputationOptionsCommand;
|
|
646
|
+
const se_PutConfigurationSetSendingOptionsCommand = async (input, context) => {
|
|
653
647
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
654
648
|
const headers = {
|
|
655
649
|
"content-type": "application/json",
|
|
@@ -671,8 +665,8 @@ const serializeAws_restJson1PutConfigurationSetSendingOptionsCommand = async (in
|
|
|
671
665
|
body,
|
|
672
666
|
});
|
|
673
667
|
};
|
|
674
|
-
exports.
|
|
675
|
-
const
|
|
668
|
+
exports.se_PutConfigurationSetSendingOptionsCommand = se_PutConfigurationSetSendingOptionsCommand;
|
|
669
|
+
const se_PutConfigurationSetTrackingOptionsCommand = async (input, context) => {
|
|
676
670
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
677
671
|
const headers = {
|
|
678
672
|
"content-type": "application/json",
|
|
@@ -694,8 +688,8 @@ const serializeAws_restJson1PutConfigurationSetTrackingOptionsCommand = async (i
|
|
|
694
688
|
body,
|
|
695
689
|
});
|
|
696
690
|
};
|
|
697
|
-
exports.
|
|
698
|
-
const
|
|
691
|
+
exports.se_PutConfigurationSetTrackingOptionsCommand = se_PutConfigurationSetTrackingOptionsCommand;
|
|
692
|
+
const se_PutDedicatedIpInPoolCommand = async (input, context) => {
|
|
699
693
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
700
694
|
const headers = {
|
|
701
695
|
"content-type": "application/json",
|
|
@@ -716,8 +710,8 @@ const serializeAws_restJson1PutDedicatedIpInPoolCommand = async (input, context)
|
|
|
716
710
|
body,
|
|
717
711
|
});
|
|
718
712
|
};
|
|
719
|
-
exports.
|
|
720
|
-
const
|
|
713
|
+
exports.se_PutDedicatedIpInPoolCommand = se_PutDedicatedIpInPoolCommand;
|
|
714
|
+
const se_PutDedicatedIpWarmupAttributesCommand = async (input, context) => {
|
|
721
715
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
722
716
|
const headers = {
|
|
723
717
|
"content-type": "application/json",
|
|
@@ -738,8 +732,8 @@ const serializeAws_restJson1PutDedicatedIpWarmupAttributesCommand = async (input
|
|
|
738
732
|
body,
|
|
739
733
|
});
|
|
740
734
|
};
|
|
741
|
-
exports.
|
|
742
|
-
const
|
|
735
|
+
exports.se_PutDedicatedIpWarmupAttributesCommand = se_PutDedicatedIpWarmupAttributesCommand;
|
|
736
|
+
const se_PutDeliverabilityDashboardOptionCommand = async (input, context) => {
|
|
743
737
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
744
738
|
const headers = {
|
|
745
739
|
"content-type": "application/json",
|
|
@@ -749,7 +743,7 @@ const serializeAws_restJson1PutDeliverabilityDashboardOptionCommand = async (inp
|
|
|
749
743
|
body = JSON.stringify({
|
|
750
744
|
...(input.DashboardEnabled != null && { DashboardEnabled: input.DashboardEnabled }),
|
|
751
745
|
...(input.SubscribedDomains != null && {
|
|
752
|
-
SubscribedDomains:
|
|
746
|
+
SubscribedDomains: se_DomainDeliverabilityTrackingOptions(input.SubscribedDomains, context),
|
|
753
747
|
}),
|
|
754
748
|
});
|
|
755
749
|
return new protocol_http_1.HttpRequest({
|
|
@@ -762,8 +756,8 @@ const serializeAws_restJson1PutDeliverabilityDashboardOptionCommand = async (inp
|
|
|
762
756
|
body,
|
|
763
757
|
});
|
|
764
758
|
};
|
|
765
|
-
exports.
|
|
766
|
-
const
|
|
759
|
+
exports.se_PutDeliverabilityDashboardOptionCommand = se_PutDeliverabilityDashboardOptionCommand;
|
|
760
|
+
const se_PutEmailIdentityDkimAttributesCommand = async (input, context) => {
|
|
767
761
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
768
762
|
const headers = {
|
|
769
763
|
"content-type": "application/json",
|
|
@@ -784,8 +778,8 @@ const serializeAws_restJson1PutEmailIdentityDkimAttributesCommand = async (input
|
|
|
784
778
|
body,
|
|
785
779
|
});
|
|
786
780
|
};
|
|
787
|
-
exports.
|
|
788
|
-
const
|
|
781
|
+
exports.se_PutEmailIdentityDkimAttributesCommand = se_PutEmailIdentityDkimAttributesCommand;
|
|
782
|
+
const se_PutEmailIdentityFeedbackAttributesCommand = async (input, context) => {
|
|
789
783
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
790
784
|
const headers = {
|
|
791
785
|
"content-type": "application/json",
|
|
@@ -807,8 +801,8 @@ const serializeAws_restJson1PutEmailIdentityFeedbackAttributesCommand = async (i
|
|
|
807
801
|
body,
|
|
808
802
|
});
|
|
809
803
|
};
|
|
810
|
-
exports.
|
|
811
|
-
const
|
|
804
|
+
exports.se_PutEmailIdentityFeedbackAttributesCommand = se_PutEmailIdentityFeedbackAttributesCommand;
|
|
805
|
+
const se_PutEmailIdentityMailFromAttributesCommand = async (input, context) => {
|
|
812
806
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
813
807
|
const headers = {
|
|
814
808
|
"content-type": "application/json",
|
|
@@ -831,8 +825,8 @@ const serializeAws_restJson1PutEmailIdentityMailFromAttributesCommand = async (i
|
|
|
831
825
|
body,
|
|
832
826
|
});
|
|
833
827
|
};
|
|
834
|
-
exports.
|
|
835
|
-
const
|
|
828
|
+
exports.se_PutEmailIdentityMailFromAttributesCommand = se_PutEmailIdentityMailFromAttributesCommand;
|
|
829
|
+
const se_SendEmailCommand = async (input, context) => {
|
|
836
830
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
837
831
|
const headers = {
|
|
838
832
|
"content-type": "application/json",
|
|
@@ -841,16 +835,14 @@ const serializeAws_restJson1SendEmailCommand = async (input, context) => {
|
|
|
841
835
|
let body;
|
|
842
836
|
body = JSON.stringify({
|
|
843
837
|
...(input.ConfigurationSetName != null && { ConfigurationSetName: input.ConfigurationSetName }),
|
|
844
|
-
...(input.Content != null && { Content:
|
|
845
|
-
...(input.Destination != null && { Destination:
|
|
846
|
-
...(input.EmailTags != null && { EmailTags:
|
|
838
|
+
...(input.Content != null && { Content: se_EmailContent(input.Content, context) }),
|
|
839
|
+
...(input.Destination != null && { Destination: se_Destination(input.Destination, context) }),
|
|
840
|
+
...(input.EmailTags != null && { EmailTags: se_MessageTagList(input.EmailTags, context) }),
|
|
847
841
|
...(input.FeedbackForwardingEmailAddress != null && {
|
|
848
842
|
FeedbackForwardingEmailAddress: input.FeedbackForwardingEmailAddress,
|
|
849
843
|
}),
|
|
850
844
|
...(input.FromEmailAddress != null && { FromEmailAddress: input.FromEmailAddress }),
|
|
851
|
-
...(input.ReplyToAddresses != null && {
|
|
852
|
-
ReplyToAddresses: serializeAws_restJson1EmailAddressList(input.ReplyToAddresses, context),
|
|
853
|
-
}),
|
|
845
|
+
...(input.ReplyToAddresses != null && { ReplyToAddresses: se_EmailAddressList(input.ReplyToAddresses, context) }),
|
|
854
846
|
});
|
|
855
847
|
return new protocol_http_1.HttpRequest({
|
|
856
848
|
protocol,
|
|
@@ -862,8 +854,8 @@ const serializeAws_restJson1SendEmailCommand = async (input, context) => {
|
|
|
862
854
|
body,
|
|
863
855
|
});
|
|
864
856
|
};
|
|
865
|
-
exports.
|
|
866
|
-
const
|
|
857
|
+
exports.se_SendEmailCommand = se_SendEmailCommand;
|
|
858
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
867
859
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
868
860
|
const headers = {
|
|
869
861
|
"content-type": "application/json",
|
|
@@ -872,7 +864,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
872
864
|
let body;
|
|
873
865
|
body = JSON.stringify({
|
|
874
866
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
875
|
-
...(input.Tags != null && { Tags:
|
|
867
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
876
868
|
});
|
|
877
869
|
return new protocol_http_1.HttpRequest({
|
|
878
870
|
protocol,
|
|
@@ -884,8 +876,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
884
876
|
body,
|
|
885
877
|
});
|
|
886
878
|
};
|
|
887
|
-
exports.
|
|
888
|
-
const
|
|
879
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
880
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
889
881
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
890
882
|
const headers = {};
|
|
891
883
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/tags";
|
|
@@ -908,8 +900,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
908
900
|
body,
|
|
909
901
|
});
|
|
910
902
|
};
|
|
911
|
-
exports.
|
|
912
|
-
const
|
|
903
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
904
|
+
const se_UpdateConfigurationSetEventDestinationCommand = async (input, context) => {
|
|
913
905
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
914
906
|
const headers = {
|
|
915
907
|
"content-type": "application/json",
|
|
@@ -921,7 +913,7 @@ const serializeAws_restJson1UpdateConfigurationSetEventDestinationCommand = asyn
|
|
|
921
913
|
let body;
|
|
922
914
|
body = JSON.stringify({
|
|
923
915
|
...(input.EventDestination != null && {
|
|
924
|
-
EventDestination:
|
|
916
|
+
EventDestination: se_EventDestinationDefinition(input.EventDestination, context),
|
|
925
917
|
}),
|
|
926
918
|
});
|
|
927
919
|
return new protocol_http_1.HttpRequest({
|
|
@@ -934,10 +926,10 @@ const serializeAws_restJson1UpdateConfigurationSetEventDestinationCommand = asyn
|
|
|
934
926
|
body,
|
|
935
927
|
});
|
|
936
928
|
};
|
|
937
|
-
exports.
|
|
938
|
-
const
|
|
929
|
+
exports.se_UpdateConfigurationSetEventDestinationCommand = se_UpdateConfigurationSetEventDestinationCommand;
|
|
930
|
+
const de_CreateConfigurationSetCommand = async (output, context) => {
|
|
939
931
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
940
|
-
return
|
|
932
|
+
return de_CreateConfigurationSetCommandError(output, context);
|
|
941
933
|
}
|
|
942
934
|
const contents = map({
|
|
943
935
|
$metadata: deserializeMetadata(output),
|
|
@@ -945,8 +937,8 @@ const deserializeAws_restJson1CreateConfigurationSetCommand = async (output, con
|
|
|
945
937
|
await collectBody(output.body, context);
|
|
946
938
|
return contents;
|
|
947
939
|
};
|
|
948
|
-
exports.
|
|
949
|
-
const
|
|
940
|
+
exports.de_CreateConfigurationSetCommand = de_CreateConfigurationSetCommand;
|
|
941
|
+
const de_CreateConfigurationSetCommandError = async (output, context) => {
|
|
950
942
|
const parsedOutput = {
|
|
951
943
|
...output,
|
|
952
944
|
body: await parseErrorBody(output.body, context),
|
|
@@ -955,22 +947,22 @@ const deserializeAws_restJson1CreateConfigurationSetCommandError = async (output
|
|
|
955
947
|
switch (errorCode) {
|
|
956
948
|
case "AlreadyExistsException":
|
|
957
949
|
case "com.amazonaws.pinpointemail#AlreadyExistsException":
|
|
958
|
-
throw await
|
|
950
|
+
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
959
951
|
case "BadRequestException":
|
|
960
952
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
961
|
-
throw await
|
|
953
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
962
954
|
case "ConcurrentModificationException":
|
|
963
955
|
case "com.amazonaws.pinpointemail#ConcurrentModificationException":
|
|
964
|
-
throw await
|
|
956
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
965
957
|
case "LimitExceededException":
|
|
966
958
|
case "com.amazonaws.pinpointemail#LimitExceededException":
|
|
967
|
-
throw await
|
|
959
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
968
960
|
case "NotFoundException":
|
|
969
961
|
case "com.amazonaws.pinpointemail#NotFoundException":
|
|
970
|
-
throw await
|
|
962
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
971
963
|
case "TooManyRequestsException":
|
|
972
964
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
973
|
-
throw await
|
|
965
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
974
966
|
default:
|
|
975
967
|
const parsedBody = parsedOutput.body;
|
|
976
968
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -981,9 +973,9 @@ const deserializeAws_restJson1CreateConfigurationSetCommandError = async (output
|
|
|
981
973
|
});
|
|
982
974
|
}
|
|
983
975
|
};
|
|
984
|
-
const
|
|
976
|
+
const de_CreateConfigurationSetEventDestinationCommand = async (output, context) => {
|
|
985
977
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
986
|
-
return
|
|
978
|
+
return de_CreateConfigurationSetEventDestinationCommandError(output, context);
|
|
987
979
|
}
|
|
988
980
|
const contents = map({
|
|
989
981
|
$metadata: deserializeMetadata(output),
|
|
@@ -991,8 +983,8 @@ const deserializeAws_restJson1CreateConfigurationSetEventDestinationCommand = as
|
|
|
991
983
|
await collectBody(output.body, context);
|
|
992
984
|
return contents;
|
|
993
985
|
};
|
|
994
|
-
exports.
|
|
995
|
-
const
|
|
986
|
+
exports.de_CreateConfigurationSetEventDestinationCommand = de_CreateConfigurationSetEventDestinationCommand;
|
|
987
|
+
const de_CreateConfigurationSetEventDestinationCommandError = async (output, context) => {
|
|
996
988
|
const parsedOutput = {
|
|
997
989
|
...output,
|
|
998
990
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1001,19 +993,19 @@ const deserializeAws_restJson1CreateConfigurationSetEventDestinationCommandError
|
|
|
1001
993
|
switch (errorCode) {
|
|
1002
994
|
case "AlreadyExistsException":
|
|
1003
995
|
case "com.amazonaws.pinpointemail#AlreadyExistsException":
|
|
1004
|
-
throw await
|
|
996
|
+
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
1005
997
|
case "BadRequestException":
|
|
1006
998
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
1007
|
-
throw await
|
|
999
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1008
1000
|
case "LimitExceededException":
|
|
1009
1001
|
case "com.amazonaws.pinpointemail#LimitExceededException":
|
|
1010
|
-
throw await
|
|
1002
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1011
1003
|
case "NotFoundException":
|
|
1012
1004
|
case "com.amazonaws.pinpointemail#NotFoundException":
|
|
1013
|
-
throw await
|
|
1005
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1014
1006
|
case "TooManyRequestsException":
|
|
1015
1007
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
1016
|
-
throw await
|
|
1008
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1017
1009
|
default:
|
|
1018
1010
|
const parsedBody = parsedOutput.body;
|
|
1019
1011
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1024,9 +1016,9 @@ const deserializeAws_restJson1CreateConfigurationSetEventDestinationCommandError
|
|
|
1024
1016
|
});
|
|
1025
1017
|
}
|
|
1026
1018
|
};
|
|
1027
|
-
const
|
|
1019
|
+
const de_CreateDedicatedIpPoolCommand = async (output, context) => {
|
|
1028
1020
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1029
|
-
return
|
|
1021
|
+
return de_CreateDedicatedIpPoolCommandError(output, context);
|
|
1030
1022
|
}
|
|
1031
1023
|
const contents = map({
|
|
1032
1024
|
$metadata: deserializeMetadata(output),
|
|
@@ -1034,8 +1026,8 @@ const deserializeAws_restJson1CreateDedicatedIpPoolCommand = async (output, cont
|
|
|
1034
1026
|
await collectBody(output.body, context);
|
|
1035
1027
|
return contents;
|
|
1036
1028
|
};
|
|
1037
|
-
exports.
|
|
1038
|
-
const
|
|
1029
|
+
exports.de_CreateDedicatedIpPoolCommand = de_CreateDedicatedIpPoolCommand;
|
|
1030
|
+
const de_CreateDedicatedIpPoolCommandError = async (output, context) => {
|
|
1039
1031
|
const parsedOutput = {
|
|
1040
1032
|
...output,
|
|
1041
1033
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1044,19 +1036,19 @@ const deserializeAws_restJson1CreateDedicatedIpPoolCommandError = async (output,
|
|
|
1044
1036
|
switch (errorCode) {
|
|
1045
1037
|
case "AlreadyExistsException":
|
|
1046
1038
|
case "com.amazonaws.pinpointemail#AlreadyExistsException":
|
|
1047
|
-
throw await
|
|
1039
|
+
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
1048
1040
|
case "BadRequestException":
|
|
1049
1041
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
1050
|
-
throw await
|
|
1042
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1051
1043
|
case "ConcurrentModificationException":
|
|
1052
1044
|
case "com.amazonaws.pinpointemail#ConcurrentModificationException":
|
|
1053
|
-
throw await
|
|
1045
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1054
1046
|
case "LimitExceededException":
|
|
1055
1047
|
case "com.amazonaws.pinpointemail#LimitExceededException":
|
|
1056
|
-
throw await
|
|
1048
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1057
1049
|
case "TooManyRequestsException":
|
|
1058
1050
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
1059
|
-
throw await
|
|
1051
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1060
1052
|
default:
|
|
1061
1053
|
const parsedBody = parsedOutput.body;
|
|
1062
1054
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1067,9 +1059,9 @@ const deserializeAws_restJson1CreateDedicatedIpPoolCommandError = async (output,
|
|
|
1067
1059
|
});
|
|
1068
1060
|
}
|
|
1069
1061
|
};
|
|
1070
|
-
const
|
|
1062
|
+
const de_CreateDeliverabilityTestReportCommand = async (output, context) => {
|
|
1071
1063
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1072
|
-
return
|
|
1064
|
+
return de_CreateDeliverabilityTestReportCommandError(output, context);
|
|
1073
1065
|
}
|
|
1074
1066
|
const contents = map({
|
|
1075
1067
|
$metadata: deserializeMetadata(output),
|
|
@@ -1083,8 +1075,8 @@ const deserializeAws_restJson1CreateDeliverabilityTestReportCommand = async (out
|
|
|
1083
1075
|
}
|
|
1084
1076
|
return contents;
|
|
1085
1077
|
};
|
|
1086
|
-
exports.
|
|
1087
|
-
const
|
|
1078
|
+
exports.de_CreateDeliverabilityTestReportCommand = de_CreateDeliverabilityTestReportCommand;
|
|
1079
|
+
const de_CreateDeliverabilityTestReportCommandError = async (output, context) => {
|
|
1088
1080
|
const parsedOutput = {
|
|
1089
1081
|
...output,
|
|
1090
1082
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1093,31 +1085,31 @@ const deserializeAws_restJson1CreateDeliverabilityTestReportCommandError = async
|
|
|
1093
1085
|
switch (errorCode) {
|
|
1094
1086
|
case "AccountSuspendedException":
|
|
1095
1087
|
case "com.amazonaws.pinpointemail#AccountSuspendedException":
|
|
1096
|
-
throw await
|
|
1088
|
+
throw await de_AccountSuspendedExceptionRes(parsedOutput, context);
|
|
1097
1089
|
case "BadRequestException":
|
|
1098
1090
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
1099
|
-
throw await
|
|
1091
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1100
1092
|
case "ConcurrentModificationException":
|
|
1101
1093
|
case "com.amazonaws.pinpointemail#ConcurrentModificationException":
|
|
1102
|
-
throw await
|
|
1094
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1103
1095
|
case "LimitExceededException":
|
|
1104
1096
|
case "com.amazonaws.pinpointemail#LimitExceededException":
|
|
1105
|
-
throw await
|
|
1097
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1106
1098
|
case "MailFromDomainNotVerifiedException":
|
|
1107
1099
|
case "com.amazonaws.pinpointemail#MailFromDomainNotVerifiedException":
|
|
1108
|
-
throw await
|
|
1100
|
+
throw await de_MailFromDomainNotVerifiedExceptionRes(parsedOutput, context);
|
|
1109
1101
|
case "MessageRejected":
|
|
1110
1102
|
case "com.amazonaws.pinpointemail#MessageRejected":
|
|
1111
|
-
throw await
|
|
1103
|
+
throw await de_MessageRejectedRes(parsedOutput, context);
|
|
1112
1104
|
case "NotFoundException":
|
|
1113
1105
|
case "com.amazonaws.pinpointemail#NotFoundException":
|
|
1114
|
-
throw await
|
|
1106
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1115
1107
|
case "SendingPausedException":
|
|
1116
1108
|
case "com.amazonaws.pinpointemail#SendingPausedException":
|
|
1117
|
-
throw await
|
|
1109
|
+
throw await de_SendingPausedExceptionRes(parsedOutput, context);
|
|
1118
1110
|
case "TooManyRequestsException":
|
|
1119
1111
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
1120
|
-
throw await
|
|
1112
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1121
1113
|
default:
|
|
1122
1114
|
const parsedBody = parsedOutput.body;
|
|
1123
1115
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1128,16 +1120,16 @@ const deserializeAws_restJson1CreateDeliverabilityTestReportCommandError = async
|
|
|
1128
1120
|
});
|
|
1129
1121
|
}
|
|
1130
1122
|
};
|
|
1131
|
-
const
|
|
1123
|
+
const de_CreateEmailIdentityCommand = async (output, context) => {
|
|
1132
1124
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1133
|
-
return
|
|
1125
|
+
return de_CreateEmailIdentityCommandError(output, context);
|
|
1134
1126
|
}
|
|
1135
1127
|
const contents = map({
|
|
1136
1128
|
$metadata: deserializeMetadata(output),
|
|
1137
1129
|
});
|
|
1138
1130
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1139
1131
|
if (data.DkimAttributes != null) {
|
|
1140
|
-
contents.DkimAttributes =
|
|
1132
|
+
contents.DkimAttributes = de_DkimAttributes(data.DkimAttributes, context);
|
|
1141
1133
|
}
|
|
1142
1134
|
if (data.IdentityType != null) {
|
|
1143
1135
|
contents.IdentityType = (0, smithy_client_1.expectString)(data.IdentityType);
|
|
@@ -1147,8 +1139,8 @@ const deserializeAws_restJson1CreateEmailIdentityCommand = async (output, contex
|
|
|
1147
1139
|
}
|
|
1148
1140
|
return contents;
|
|
1149
1141
|
};
|
|
1150
|
-
exports.
|
|
1151
|
-
const
|
|
1142
|
+
exports.de_CreateEmailIdentityCommand = de_CreateEmailIdentityCommand;
|
|
1143
|
+
const de_CreateEmailIdentityCommandError = async (output, context) => {
|
|
1152
1144
|
const parsedOutput = {
|
|
1153
1145
|
...output,
|
|
1154
1146
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1157,16 +1149,16 @@ const deserializeAws_restJson1CreateEmailIdentityCommandError = async (output, c
|
|
|
1157
1149
|
switch (errorCode) {
|
|
1158
1150
|
case "BadRequestException":
|
|
1159
1151
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
1160
|
-
throw await
|
|
1152
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1161
1153
|
case "ConcurrentModificationException":
|
|
1162
1154
|
case "com.amazonaws.pinpointemail#ConcurrentModificationException":
|
|
1163
|
-
throw await
|
|
1155
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1164
1156
|
case "LimitExceededException":
|
|
1165
1157
|
case "com.amazonaws.pinpointemail#LimitExceededException":
|
|
1166
|
-
throw await
|
|
1158
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1167
1159
|
case "TooManyRequestsException":
|
|
1168
1160
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
1169
|
-
throw await
|
|
1161
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1170
1162
|
default:
|
|
1171
1163
|
const parsedBody = parsedOutput.body;
|
|
1172
1164
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1177,9 +1169,9 @@ const deserializeAws_restJson1CreateEmailIdentityCommandError = async (output, c
|
|
|
1177
1169
|
});
|
|
1178
1170
|
}
|
|
1179
1171
|
};
|
|
1180
|
-
const
|
|
1172
|
+
const de_DeleteConfigurationSetCommand = async (output, context) => {
|
|
1181
1173
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1182
|
-
return
|
|
1174
|
+
return de_DeleteConfigurationSetCommandError(output, context);
|
|
1183
1175
|
}
|
|
1184
1176
|
const contents = map({
|
|
1185
1177
|
$metadata: deserializeMetadata(output),
|
|
@@ -1187,8 +1179,8 @@ const deserializeAws_restJson1DeleteConfigurationSetCommand = async (output, con
|
|
|
1187
1179
|
await collectBody(output.body, context);
|
|
1188
1180
|
return contents;
|
|
1189
1181
|
};
|
|
1190
|
-
exports.
|
|
1191
|
-
const
|
|
1182
|
+
exports.de_DeleteConfigurationSetCommand = de_DeleteConfigurationSetCommand;
|
|
1183
|
+
const de_DeleteConfigurationSetCommandError = async (output, context) => {
|
|
1192
1184
|
const parsedOutput = {
|
|
1193
1185
|
...output,
|
|
1194
1186
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1197,16 +1189,16 @@ const deserializeAws_restJson1DeleteConfigurationSetCommandError = async (output
|
|
|
1197
1189
|
switch (errorCode) {
|
|
1198
1190
|
case "BadRequestException":
|
|
1199
1191
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
1200
|
-
throw await
|
|
1192
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1201
1193
|
case "ConcurrentModificationException":
|
|
1202
1194
|
case "com.amazonaws.pinpointemail#ConcurrentModificationException":
|
|
1203
|
-
throw await
|
|
1195
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1204
1196
|
case "NotFoundException":
|
|
1205
1197
|
case "com.amazonaws.pinpointemail#NotFoundException":
|
|
1206
|
-
throw await
|
|
1198
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1207
1199
|
case "TooManyRequestsException":
|
|
1208
1200
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
1209
|
-
throw await
|
|
1201
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1210
1202
|
default:
|
|
1211
1203
|
const parsedBody = parsedOutput.body;
|
|
1212
1204
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1217,9 +1209,9 @@ const deserializeAws_restJson1DeleteConfigurationSetCommandError = async (output
|
|
|
1217
1209
|
});
|
|
1218
1210
|
}
|
|
1219
1211
|
};
|
|
1220
|
-
const
|
|
1212
|
+
const de_DeleteConfigurationSetEventDestinationCommand = async (output, context) => {
|
|
1221
1213
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1222
|
-
return
|
|
1214
|
+
return de_DeleteConfigurationSetEventDestinationCommandError(output, context);
|
|
1223
1215
|
}
|
|
1224
1216
|
const contents = map({
|
|
1225
1217
|
$metadata: deserializeMetadata(output),
|
|
@@ -1227,8 +1219,8 @@ const deserializeAws_restJson1DeleteConfigurationSetEventDestinationCommand = as
|
|
|
1227
1219
|
await collectBody(output.body, context);
|
|
1228
1220
|
return contents;
|
|
1229
1221
|
};
|
|
1230
|
-
exports.
|
|
1231
|
-
const
|
|
1222
|
+
exports.de_DeleteConfigurationSetEventDestinationCommand = de_DeleteConfigurationSetEventDestinationCommand;
|
|
1223
|
+
const de_DeleteConfigurationSetEventDestinationCommandError = async (output, context) => {
|
|
1232
1224
|
const parsedOutput = {
|
|
1233
1225
|
...output,
|
|
1234
1226
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1237,13 +1229,13 @@ const deserializeAws_restJson1DeleteConfigurationSetEventDestinationCommandError
|
|
|
1237
1229
|
switch (errorCode) {
|
|
1238
1230
|
case "BadRequestException":
|
|
1239
1231
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
1240
|
-
throw await
|
|
1232
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1241
1233
|
case "NotFoundException":
|
|
1242
1234
|
case "com.amazonaws.pinpointemail#NotFoundException":
|
|
1243
|
-
throw await
|
|
1235
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1244
1236
|
case "TooManyRequestsException":
|
|
1245
1237
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
1246
|
-
throw await
|
|
1238
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1247
1239
|
default:
|
|
1248
1240
|
const parsedBody = parsedOutput.body;
|
|
1249
1241
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1254,9 +1246,9 @@ const deserializeAws_restJson1DeleteConfigurationSetEventDestinationCommandError
|
|
|
1254
1246
|
});
|
|
1255
1247
|
}
|
|
1256
1248
|
};
|
|
1257
|
-
const
|
|
1249
|
+
const de_DeleteDedicatedIpPoolCommand = async (output, context) => {
|
|
1258
1250
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1259
|
-
return
|
|
1251
|
+
return de_DeleteDedicatedIpPoolCommandError(output, context);
|
|
1260
1252
|
}
|
|
1261
1253
|
const contents = map({
|
|
1262
1254
|
$metadata: deserializeMetadata(output),
|
|
@@ -1264,8 +1256,8 @@ const deserializeAws_restJson1DeleteDedicatedIpPoolCommand = async (output, cont
|
|
|
1264
1256
|
await collectBody(output.body, context);
|
|
1265
1257
|
return contents;
|
|
1266
1258
|
};
|
|
1267
|
-
exports.
|
|
1268
|
-
const
|
|
1259
|
+
exports.de_DeleteDedicatedIpPoolCommand = de_DeleteDedicatedIpPoolCommand;
|
|
1260
|
+
const de_DeleteDedicatedIpPoolCommandError = async (output, context) => {
|
|
1269
1261
|
const parsedOutput = {
|
|
1270
1262
|
...output,
|
|
1271
1263
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1274,16 +1266,16 @@ const deserializeAws_restJson1DeleteDedicatedIpPoolCommandError = async (output,
|
|
|
1274
1266
|
switch (errorCode) {
|
|
1275
1267
|
case "BadRequestException":
|
|
1276
1268
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
1277
|
-
throw await
|
|
1269
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1278
1270
|
case "ConcurrentModificationException":
|
|
1279
1271
|
case "com.amazonaws.pinpointemail#ConcurrentModificationException":
|
|
1280
|
-
throw await
|
|
1272
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1281
1273
|
case "NotFoundException":
|
|
1282
1274
|
case "com.amazonaws.pinpointemail#NotFoundException":
|
|
1283
|
-
throw await
|
|
1275
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1284
1276
|
case "TooManyRequestsException":
|
|
1285
1277
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
1286
|
-
throw await
|
|
1278
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1287
1279
|
default:
|
|
1288
1280
|
const parsedBody = parsedOutput.body;
|
|
1289
1281
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1294,9 +1286,9 @@ const deserializeAws_restJson1DeleteDedicatedIpPoolCommandError = async (output,
|
|
|
1294
1286
|
});
|
|
1295
1287
|
}
|
|
1296
1288
|
};
|
|
1297
|
-
const
|
|
1289
|
+
const de_DeleteEmailIdentityCommand = async (output, context) => {
|
|
1298
1290
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1299
|
-
return
|
|
1291
|
+
return de_DeleteEmailIdentityCommandError(output, context);
|
|
1300
1292
|
}
|
|
1301
1293
|
const contents = map({
|
|
1302
1294
|
$metadata: deserializeMetadata(output),
|
|
@@ -1304,8 +1296,8 @@ const deserializeAws_restJson1DeleteEmailIdentityCommand = async (output, contex
|
|
|
1304
1296
|
await collectBody(output.body, context);
|
|
1305
1297
|
return contents;
|
|
1306
1298
|
};
|
|
1307
|
-
exports.
|
|
1308
|
-
const
|
|
1299
|
+
exports.de_DeleteEmailIdentityCommand = de_DeleteEmailIdentityCommand;
|
|
1300
|
+
const de_DeleteEmailIdentityCommandError = async (output, context) => {
|
|
1309
1301
|
const parsedOutput = {
|
|
1310
1302
|
...output,
|
|
1311
1303
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1314,16 +1306,16 @@ const deserializeAws_restJson1DeleteEmailIdentityCommandError = async (output, c
|
|
|
1314
1306
|
switch (errorCode) {
|
|
1315
1307
|
case "BadRequestException":
|
|
1316
1308
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
1317
|
-
throw await
|
|
1309
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1318
1310
|
case "ConcurrentModificationException":
|
|
1319
1311
|
case "com.amazonaws.pinpointemail#ConcurrentModificationException":
|
|
1320
|
-
throw await
|
|
1312
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1321
1313
|
case "NotFoundException":
|
|
1322
1314
|
case "com.amazonaws.pinpointemail#NotFoundException":
|
|
1323
|
-
throw await
|
|
1315
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1324
1316
|
case "TooManyRequestsException":
|
|
1325
1317
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
1326
|
-
throw await
|
|
1318
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1327
1319
|
default:
|
|
1328
1320
|
const parsedBody = parsedOutput.body;
|
|
1329
1321
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1334,9 +1326,9 @@ const deserializeAws_restJson1DeleteEmailIdentityCommandError = async (output, c
|
|
|
1334
1326
|
});
|
|
1335
1327
|
}
|
|
1336
1328
|
};
|
|
1337
|
-
const
|
|
1329
|
+
const de_GetAccountCommand = async (output, context) => {
|
|
1338
1330
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1339
|
-
return
|
|
1331
|
+
return de_GetAccountCommandError(output, context);
|
|
1340
1332
|
}
|
|
1341
1333
|
const contents = map({
|
|
1342
1334
|
$metadata: deserializeMetadata(output),
|
|
@@ -1352,15 +1344,15 @@ const deserializeAws_restJson1GetAccountCommand = async (output, context) => {
|
|
|
1352
1344
|
contents.ProductionAccessEnabled = (0, smithy_client_1.expectBoolean)(data.ProductionAccessEnabled);
|
|
1353
1345
|
}
|
|
1354
1346
|
if (data.SendQuota != null) {
|
|
1355
|
-
contents.SendQuota =
|
|
1347
|
+
contents.SendQuota = de_SendQuota(data.SendQuota, context);
|
|
1356
1348
|
}
|
|
1357
1349
|
if (data.SendingEnabled != null) {
|
|
1358
1350
|
contents.SendingEnabled = (0, smithy_client_1.expectBoolean)(data.SendingEnabled);
|
|
1359
1351
|
}
|
|
1360
1352
|
return contents;
|
|
1361
1353
|
};
|
|
1362
|
-
exports.
|
|
1363
|
-
const
|
|
1354
|
+
exports.de_GetAccountCommand = de_GetAccountCommand;
|
|
1355
|
+
const de_GetAccountCommandError = async (output, context) => {
|
|
1364
1356
|
const parsedOutput = {
|
|
1365
1357
|
...output,
|
|
1366
1358
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1369,10 +1361,10 @@ const deserializeAws_restJson1GetAccountCommandError = async (output, context) =
|
|
|
1369
1361
|
switch (errorCode) {
|
|
1370
1362
|
case "BadRequestException":
|
|
1371
1363
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
1372
|
-
throw await
|
|
1364
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1373
1365
|
case "TooManyRequestsException":
|
|
1374
1366
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
1375
|
-
throw await
|
|
1367
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1376
1368
|
default:
|
|
1377
1369
|
const parsedBody = parsedOutput.body;
|
|
1378
1370
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1383,21 +1375,21 @@ const deserializeAws_restJson1GetAccountCommandError = async (output, context) =
|
|
|
1383
1375
|
});
|
|
1384
1376
|
}
|
|
1385
1377
|
};
|
|
1386
|
-
const
|
|
1378
|
+
const de_GetBlacklistReportsCommand = async (output, context) => {
|
|
1387
1379
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1388
|
-
return
|
|
1380
|
+
return de_GetBlacklistReportsCommandError(output, context);
|
|
1389
1381
|
}
|
|
1390
1382
|
const contents = map({
|
|
1391
1383
|
$metadata: deserializeMetadata(output),
|
|
1392
1384
|
});
|
|
1393
1385
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1394
1386
|
if (data.BlacklistReport != null) {
|
|
1395
|
-
contents.BlacklistReport =
|
|
1387
|
+
contents.BlacklistReport = de_BlacklistReport(data.BlacklistReport, context);
|
|
1396
1388
|
}
|
|
1397
1389
|
return contents;
|
|
1398
1390
|
};
|
|
1399
|
-
exports.
|
|
1400
|
-
const
|
|
1391
|
+
exports.de_GetBlacklistReportsCommand = de_GetBlacklistReportsCommand;
|
|
1392
|
+
const de_GetBlacklistReportsCommandError = async (output, context) => {
|
|
1401
1393
|
const parsedOutput = {
|
|
1402
1394
|
...output,
|
|
1403
1395
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1406,13 +1398,13 @@ const deserializeAws_restJson1GetBlacklistReportsCommandError = async (output, c
|
|
|
1406
1398
|
switch (errorCode) {
|
|
1407
1399
|
case "BadRequestException":
|
|
1408
1400
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
1409
|
-
throw await
|
|
1401
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1410
1402
|
case "NotFoundException":
|
|
1411
1403
|
case "com.amazonaws.pinpointemail#NotFoundException":
|
|
1412
|
-
throw await
|
|
1404
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1413
1405
|
case "TooManyRequestsException":
|
|
1414
1406
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
1415
|
-
throw await
|
|
1407
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1416
1408
|
default:
|
|
1417
1409
|
const parsedBody = parsedOutput.body;
|
|
1418
1410
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1423,9 +1415,9 @@ const deserializeAws_restJson1GetBlacklistReportsCommandError = async (output, c
|
|
|
1423
1415
|
});
|
|
1424
1416
|
}
|
|
1425
1417
|
};
|
|
1426
|
-
const
|
|
1418
|
+
const de_GetConfigurationSetCommand = async (output, context) => {
|
|
1427
1419
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1428
|
-
return
|
|
1420
|
+
return de_GetConfigurationSetCommandError(output, context);
|
|
1429
1421
|
}
|
|
1430
1422
|
const contents = map({
|
|
1431
1423
|
$metadata: deserializeMetadata(output),
|
|
@@ -1435,24 +1427,24 @@ const deserializeAws_restJson1GetConfigurationSetCommand = async (output, contex
|
|
|
1435
1427
|
contents.ConfigurationSetName = (0, smithy_client_1.expectString)(data.ConfigurationSetName);
|
|
1436
1428
|
}
|
|
1437
1429
|
if (data.DeliveryOptions != null) {
|
|
1438
|
-
contents.DeliveryOptions =
|
|
1430
|
+
contents.DeliveryOptions = de_DeliveryOptions(data.DeliveryOptions, context);
|
|
1439
1431
|
}
|
|
1440
1432
|
if (data.ReputationOptions != null) {
|
|
1441
|
-
contents.ReputationOptions =
|
|
1433
|
+
contents.ReputationOptions = de_ReputationOptions(data.ReputationOptions, context);
|
|
1442
1434
|
}
|
|
1443
1435
|
if (data.SendingOptions != null) {
|
|
1444
|
-
contents.SendingOptions =
|
|
1436
|
+
contents.SendingOptions = de_SendingOptions(data.SendingOptions, context);
|
|
1445
1437
|
}
|
|
1446
1438
|
if (data.Tags != null) {
|
|
1447
|
-
contents.Tags =
|
|
1439
|
+
contents.Tags = de_TagList(data.Tags, context);
|
|
1448
1440
|
}
|
|
1449
1441
|
if (data.TrackingOptions != null) {
|
|
1450
|
-
contents.TrackingOptions =
|
|
1442
|
+
contents.TrackingOptions = de_TrackingOptions(data.TrackingOptions, context);
|
|
1451
1443
|
}
|
|
1452
1444
|
return contents;
|
|
1453
1445
|
};
|
|
1454
|
-
exports.
|
|
1455
|
-
const
|
|
1446
|
+
exports.de_GetConfigurationSetCommand = de_GetConfigurationSetCommand;
|
|
1447
|
+
const de_GetConfigurationSetCommandError = async (output, context) => {
|
|
1456
1448
|
const parsedOutput = {
|
|
1457
1449
|
...output,
|
|
1458
1450
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1461,13 +1453,13 @@ const deserializeAws_restJson1GetConfigurationSetCommandError = async (output, c
|
|
|
1461
1453
|
switch (errorCode) {
|
|
1462
1454
|
case "BadRequestException":
|
|
1463
1455
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
1464
|
-
throw await
|
|
1456
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1465
1457
|
case "NotFoundException":
|
|
1466
1458
|
case "com.amazonaws.pinpointemail#NotFoundException":
|
|
1467
|
-
throw await
|
|
1459
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1468
1460
|
case "TooManyRequestsException":
|
|
1469
1461
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
1470
|
-
throw await
|
|
1462
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1471
1463
|
default:
|
|
1472
1464
|
const parsedBody = parsedOutput.body;
|
|
1473
1465
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1478,21 +1470,21 @@ const deserializeAws_restJson1GetConfigurationSetCommandError = async (output, c
|
|
|
1478
1470
|
});
|
|
1479
1471
|
}
|
|
1480
1472
|
};
|
|
1481
|
-
const
|
|
1473
|
+
const de_GetConfigurationSetEventDestinationsCommand = async (output, context) => {
|
|
1482
1474
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1483
|
-
return
|
|
1475
|
+
return de_GetConfigurationSetEventDestinationsCommandError(output, context);
|
|
1484
1476
|
}
|
|
1485
1477
|
const contents = map({
|
|
1486
1478
|
$metadata: deserializeMetadata(output),
|
|
1487
1479
|
});
|
|
1488
1480
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1489
1481
|
if (data.EventDestinations != null) {
|
|
1490
|
-
contents.EventDestinations =
|
|
1482
|
+
contents.EventDestinations = de_EventDestinations(data.EventDestinations, context);
|
|
1491
1483
|
}
|
|
1492
1484
|
return contents;
|
|
1493
1485
|
};
|
|
1494
|
-
exports.
|
|
1495
|
-
const
|
|
1486
|
+
exports.de_GetConfigurationSetEventDestinationsCommand = de_GetConfigurationSetEventDestinationsCommand;
|
|
1487
|
+
const de_GetConfigurationSetEventDestinationsCommandError = async (output, context) => {
|
|
1496
1488
|
const parsedOutput = {
|
|
1497
1489
|
...output,
|
|
1498
1490
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1501,13 +1493,13 @@ const deserializeAws_restJson1GetConfigurationSetEventDestinationsCommandError =
|
|
|
1501
1493
|
switch (errorCode) {
|
|
1502
1494
|
case "BadRequestException":
|
|
1503
1495
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
1504
|
-
throw await
|
|
1496
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1505
1497
|
case "NotFoundException":
|
|
1506
1498
|
case "com.amazonaws.pinpointemail#NotFoundException":
|
|
1507
|
-
throw await
|
|
1499
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1508
1500
|
case "TooManyRequestsException":
|
|
1509
1501
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
1510
|
-
throw await
|
|
1502
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1511
1503
|
default:
|
|
1512
1504
|
const parsedBody = parsedOutput.body;
|
|
1513
1505
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1518,21 +1510,21 @@ const deserializeAws_restJson1GetConfigurationSetEventDestinationsCommandError =
|
|
|
1518
1510
|
});
|
|
1519
1511
|
}
|
|
1520
1512
|
};
|
|
1521
|
-
const
|
|
1513
|
+
const de_GetDedicatedIpCommand = async (output, context) => {
|
|
1522
1514
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1523
|
-
return
|
|
1515
|
+
return de_GetDedicatedIpCommandError(output, context);
|
|
1524
1516
|
}
|
|
1525
1517
|
const contents = map({
|
|
1526
1518
|
$metadata: deserializeMetadata(output),
|
|
1527
1519
|
});
|
|
1528
1520
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1529
1521
|
if (data.DedicatedIp != null) {
|
|
1530
|
-
contents.DedicatedIp =
|
|
1522
|
+
contents.DedicatedIp = de_DedicatedIp(data.DedicatedIp, context);
|
|
1531
1523
|
}
|
|
1532
1524
|
return contents;
|
|
1533
1525
|
};
|
|
1534
|
-
exports.
|
|
1535
|
-
const
|
|
1526
|
+
exports.de_GetDedicatedIpCommand = de_GetDedicatedIpCommand;
|
|
1527
|
+
const de_GetDedicatedIpCommandError = async (output, context) => {
|
|
1536
1528
|
const parsedOutput = {
|
|
1537
1529
|
...output,
|
|
1538
1530
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1541,13 +1533,13 @@ const deserializeAws_restJson1GetDedicatedIpCommandError = async (output, contex
|
|
|
1541
1533
|
switch (errorCode) {
|
|
1542
1534
|
case "BadRequestException":
|
|
1543
1535
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
1544
|
-
throw await
|
|
1536
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1545
1537
|
case "NotFoundException":
|
|
1546
1538
|
case "com.amazonaws.pinpointemail#NotFoundException":
|
|
1547
|
-
throw await
|
|
1539
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1548
1540
|
case "TooManyRequestsException":
|
|
1549
1541
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
1550
|
-
throw await
|
|
1542
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1551
1543
|
default:
|
|
1552
1544
|
const parsedBody = parsedOutput.body;
|
|
1553
1545
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1558,24 +1550,24 @@ const deserializeAws_restJson1GetDedicatedIpCommandError = async (output, contex
|
|
|
1558
1550
|
});
|
|
1559
1551
|
}
|
|
1560
1552
|
};
|
|
1561
|
-
const
|
|
1553
|
+
const de_GetDedicatedIpsCommand = async (output, context) => {
|
|
1562
1554
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1563
|
-
return
|
|
1555
|
+
return de_GetDedicatedIpsCommandError(output, context);
|
|
1564
1556
|
}
|
|
1565
1557
|
const contents = map({
|
|
1566
1558
|
$metadata: deserializeMetadata(output),
|
|
1567
1559
|
});
|
|
1568
1560
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1569
1561
|
if (data.DedicatedIps != null) {
|
|
1570
|
-
contents.DedicatedIps =
|
|
1562
|
+
contents.DedicatedIps = de_DedicatedIpList(data.DedicatedIps, context);
|
|
1571
1563
|
}
|
|
1572
1564
|
if (data.NextToken != null) {
|
|
1573
1565
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1574
1566
|
}
|
|
1575
1567
|
return contents;
|
|
1576
1568
|
};
|
|
1577
|
-
exports.
|
|
1578
|
-
const
|
|
1569
|
+
exports.de_GetDedicatedIpsCommand = de_GetDedicatedIpsCommand;
|
|
1570
|
+
const de_GetDedicatedIpsCommandError = async (output, context) => {
|
|
1579
1571
|
const parsedOutput = {
|
|
1580
1572
|
...output,
|
|
1581
1573
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1584,13 +1576,13 @@ const deserializeAws_restJson1GetDedicatedIpsCommandError = async (output, conte
|
|
|
1584
1576
|
switch (errorCode) {
|
|
1585
1577
|
case "BadRequestException":
|
|
1586
1578
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
1587
|
-
throw await
|
|
1579
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1588
1580
|
case "NotFoundException":
|
|
1589
1581
|
case "com.amazonaws.pinpointemail#NotFoundException":
|
|
1590
|
-
throw await
|
|
1582
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1591
1583
|
case "TooManyRequestsException":
|
|
1592
1584
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
1593
|
-
throw await
|
|
1585
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1594
1586
|
default:
|
|
1595
1587
|
const parsedBody = parsedOutput.body;
|
|
1596
1588
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1601,9 +1593,9 @@ const deserializeAws_restJson1GetDedicatedIpsCommandError = async (output, conte
|
|
|
1601
1593
|
});
|
|
1602
1594
|
}
|
|
1603
1595
|
};
|
|
1604
|
-
const
|
|
1596
|
+
const de_GetDeliverabilityDashboardOptionsCommand = async (output, context) => {
|
|
1605
1597
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1606
|
-
return
|
|
1598
|
+
return de_GetDeliverabilityDashboardOptionsCommandError(output, context);
|
|
1607
1599
|
}
|
|
1608
1600
|
const contents = map({
|
|
1609
1601
|
$metadata: deserializeMetadata(output),
|
|
@@ -1613,21 +1605,21 @@ const deserializeAws_restJson1GetDeliverabilityDashboardOptionsCommand = async (
|
|
|
1613
1605
|
contents.AccountStatus = (0, smithy_client_1.expectString)(data.AccountStatus);
|
|
1614
1606
|
}
|
|
1615
1607
|
if (data.ActiveSubscribedDomains != null) {
|
|
1616
|
-
contents.ActiveSubscribedDomains =
|
|
1608
|
+
contents.ActiveSubscribedDomains = de_DomainDeliverabilityTrackingOptions(data.ActiveSubscribedDomains, context);
|
|
1617
1609
|
}
|
|
1618
1610
|
if (data.DashboardEnabled != null) {
|
|
1619
1611
|
contents.DashboardEnabled = (0, smithy_client_1.expectBoolean)(data.DashboardEnabled);
|
|
1620
1612
|
}
|
|
1621
1613
|
if (data.PendingExpirationSubscribedDomains != null) {
|
|
1622
|
-
contents.PendingExpirationSubscribedDomains =
|
|
1614
|
+
contents.PendingExpirationSubscribedDomains = de_DomainDeliverabilityTrackingOptions(data.PendingExpirationSubscribedDomains, context);
|
|
1623
1615
|
}
|
|
1624
1616
|
if (data.SubscriptionExpiryDate != null) {
|
|
1625
1617
|
contents.SubscriptionExpiryDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.SubscriptionExpiryDate)));
|
|
1626
1618
|
}
|
|
1627
1619
|
return contents;
|
|
1628
1620
|
};
|
|
1629
|
-
exports.
|
|
1630
|
-
const
|
|
1621
|
+
exports.de_GetDeliverabilityDashboardOptionsCommand = de_GetDeliverabilityDashboardOptionsCommand;
|
|
1622
|
+
const de_GetDeliverabilityDashboardOptionsCommandError = async (output, context) => {
|
|
1631
1623
|
const parsedOutput = {
|
|
1632
1624
|
...output,
|
|
1633
1625
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1636,13 +1628,13 @@ const deserializeAws_restJson1GetDeliverabilityDashboardOptionsCommandError = as
|
|
|
1636
1628
|
switch (errorCode) {
|
|
1637
1629
|
case "BadRequestException":
|
|
1638
1630
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
1639
|
-
throw await
|
|
1631
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1640
1632
|
case "LimitExceededException":
|
|
1641
1633
|
case "com.amazonaws.pinpointemail#LimitExceededException":
|
|
1642
|
-
throw await
|
|
1634
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1643
1635
|
case "TooManyRequestsException":
|
|
1644
1636
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
1645
|
-
throw await
|
|
1637
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1646
1638
|
default:
|
|
1647
1639
|
const parsedBody = parsedOutput.body;
|
|
1648
1640
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1653,33 +1645,33 @@ const deserializeAws_restJson1GetDeliverabilityDashboardOptionsCommandError = as
|
|
|
1653
1645
|
});
|
|
1654
1646
|
}
|
|
1655
1647
|
};
|
|
1656
|
-
const
|
|
1648
|
+
const de_GetDeliverabilityTestReportCommand = async (output, context) => {
|
|
1657
1649
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1658
|
-
return
|
|
1650
|
+
return de_GetDeliverabilityTestReportCommandError(output, context);
|
|
1659
1651
|
}
|
|
1660
1652
|
const contents = map({
|
|
1661
1653
|
$metadata: deserializeMetadata(output),
|
|
1662
1654
|
});
|
|
1663
1655
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1664
1656
|
if (data.DeliverabilityTestReport != null) {
|
|
1665
|
-
contents.DeliverabilityTestReport =
|
|
1657
|
+
contents.DeliverabilityTestReport = de_DeliverabilityTestReport(data.DeliverabilityTestReport, context);
|
|
1666
1658
|
}
|
|
1667
1659
|
if (data.IspPlacements != null) {
|
|
1668
|
-
contents.IspPlacements =
|
|
1660
|
+
contents.IspPlacements = de_IspPlacements(data.IspPlacements, context);
|
|
1669
1661
|
}
|
|
1670
1662
|
if (data.Message != null) {
|
|
1671
1663
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1672
1664
|
}
|
|
1673
1665
|
if (data.OverallPlacement != null) {
|
|
1674
|
-
contents.OverallPlacement =
|
|
1666
|
+
contents.OverallPlacement = de_PlacementStatistics(data.OverallPlacement, context);
|
|
1675
1667
|
}
|
|
1676
1668
|
if (data.Tags != null) {
|
|
1677
|
-
contents.Tags =
|
|
1669
|
+
contents.Tags = de_TagList(data.Tags, context);
|
|
1678
1670
|
}
|
|
1679
1671
|
return contents;
|
|
1680
1672
|
};
|
|
1681
|
-
exports.
|
|
1682
|
-
const
|
|
1673
|
+
exports.de_GetDeliverabilityTestReportCommand = de_GetDeliverabilityTestReportCommand;
|
|
1674
|
+
const de_GetDeliverabilityTestReportCommandError = async (output, context) => {
|
|
1683
1675
|
const parsedOutput = {
|
|
1684
1676
|
...output,
|
|
1685
1677
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1688,13 +1680,13 @@ const deserializeAws_restJson1GetDeliverabilityTestReportCommandError = async (o
|
|
|
1688
1680
|
switch (errorCode) {
|
|
1689
1681
|
case "BadRequestException":
|
|
1690
1682
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
1691
|
-
throw await
|
|
1683
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1692
1684
|
case "NotFoundException":
|
|
1693
1685
|
case "com.amazonaws.pinpointemail#NotFoundException":
|
|
1694
|
-
throw await
|
|
1686
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1695
1687
|
case "TooManyRequestsException":
|
|
1696
1688
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
1697
|
-
throw await
|
|
1689
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1698
1690
|
default:
|
|
1699
1691
|
const parsedBody = parsedOutput.body;
|
|
1700
1692
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1705,21 +1697,21 @@ const deserializeAws_restJson1GetDeliverabilityTestReportCommandError = async (o
|
|
|
1705
1697
|
});
|
|
1706
1698
|
}
|
|
1707
1699
|
};
|
|
1708
|
-
const
|
|
1700
|
+
const de_GetDomainDeliverabilityCampaignCommand = async (output, context) => {
|
|
1709
1701
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1710
|
-
return
|
|
1702
|
+
return de_GetDomainDeliverabilityCampaignCommandError(output, context);
|
|
1711
1703
|
}
|
|
1712
1704
|
const contents = map({
|
|
1713
1705
|
$metadata: deserializeMetadata(output),
|
|
1714
1706
|
});
|
|
1715
1707
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1716
1708
|
if (data.DomainDeliverabilityCampaign != null) {
|
|
1717
|
-
contents.DomainDeliverabilityCampaign =
|
|
1709
|
+
contents.DomainDeliverabilityCampaign = de_DomainDeliverabilityCampaign(data.DomainDeliverabilityCampaign, context);
|
|
1718
1710
|
}
|
|
1719
1711
|
return contents;
|
|
1720
1712
|
};
|
|
1721
|
-
exports.
|
|
1722
|
-
const
|
|
1713
|
+
exports.de_GetDomainDeliverabilityCampaignCommand = de_GetDomainDeliverabilityCampaignCommand;
|
|
1714
|
+
const de_GetDomainDeliverabilityCampaignCommandError = async (output, context) => {
|
|
1723
1715
|
const parsedOutput = {
|
|
1724
1716
|
...output,
|
|
1725
1717
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1728,13 +1720,13 @@ const deserializeAws_restJson1GetDomainDeliverabilityCampaignCommandError = asyn
|
|
|
1728
1720
|
switch (errorCode) {
|
|
1729
1721
|
case "BadRequestException":
|
|
1730
1722
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
1731
|
-
throw await
|
|
1723
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1732
1724
|
case "NotFoundException":
|
|
1733
1725
|
case "com.amazonaws.pinpointemail#NotFoundException":
|
|
1734
|
-
throw await
|
|
1726
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1735
1727
|
case "TooManyRequestsException":
|
|
1736
1728
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
1737
|
-
throw await
|
|
1729
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1738
1730
|
default:
|
|
1739
1731
|
const parsedBody = parsedOutput.body;
|
|
1740
1732
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1745,24 +1737,24 @@ const deserializeAws_restJson1GetDomainDeliverabilityCampaignCommandError = asyn
|
|
|
1745
1737
|
});
|
|
1746
1738
|
}
|
|
1747
1739
|
};
|
|
1748
|
-
const
|
|
1740
|
+
const de_GetDomainStatisticsReportCommand = async (output, context) => {
|
|
1749
1741
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1750
|
-
return
|
|
1742
|
+
return de_GetDomainStatisticsReportCommandError(output, context);
|
|
1751
1743
|
}
|
|
1752
1744
|
const contents = map({
|
|
1753
1745
|
$metadata: deserializeMetadata(output),
|
|
1754
1746
|
});
|
|
1755
1747
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1756
1748
|
if (data.DailyVolumes != null) {
|
|
1757
|
-
contents.DailyVolumes =
|
|
1749
|
+
contents.DailyVolumes = de_DailyVolumes(data.DailyVolumes, context);
|
|
1758
1750
|
}
|
|
1759
1751
|
if (data.OverallVolume != null) {
|
|
1760
|
-
contents.OverallVolume =
|
|
1752
|
+
contents.OverallVolume = de_OverallVolume(data.OverallVolume, context);
|
|
1761
1753
|
}
|
|
1762
1754
|
return contents;
|
|
1763
1755
|
};
|
|
1764
|
-
exports.
|
|
1765
|
-
const
|
|
1756
|
+
exports.de_GetDomainStatisticsReportCommand = de_GetDomainStatisticsReportCommand;
|
|
1757
|
+
const de_GetDomainStatisticsReportCommandError = async (output, context) => {
|
|
1766
1758
|
const parsedOutput = {
|
|
1767
1759
|
...output,
|
|
1768
1760
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1771,13 +1763,13 @@ const deserializeAws_restJson1GetDomainStatisticsReportCommandError = async (out
|
|
|
1771
1763
|
switch (errorCode) {
|
|
1772
1764
|
case "BadRequestException":
|
|
1773
1765
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
1774
|
-
throw await
|
|
1766
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1775
1767
|
case "NotFoundException":
|
|
1776
1768
|
case "com.amazonaws.pinpointemail#NotFoundException":
|
|
1777
|
-
throw await
|
|
1769
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1778
1770
|
case "TooManyRequestsException":
|
|
1779
1771
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
1780
|
-
throw await
|
|
1772
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1781
1773
|
default:
|
|
1782
1774
|
const parsedBody = parsedOutput.body;
|
|
1783
1775
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1788,16 +1780,16 @@ const deserializeAws_restJson1GetDomainStatisticsReportCommandError = async (out
|
|
|
1788
1780
|
});
|
|
1789
1781
|
}
|
|
1790
1782
|
};
|
|
1791
|
-
const
|
|
1783
|
+
const de_GetEmailIdentityCommand = async (output, context) => {
|
|
1792
1784
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1793
|
-
return
|
|
1785
|
+
return de_GetEmailIdentityCommandError(output, context);
|
|
1794
1786
|
}
|
|
1795
1787
|
const contents = map({
|
|
1796
1788
|
$metadata: deserializeMetadata(output),
|
|
1797
1789
|
});
|
|
1798
1790
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1799
1791
|
if (data.DkimAttributes != null) {
|
|
1800
|
-
contents.DkimAttributes =
|
|
1792
|
+
contents.DkimAttributes = de_DkimAttributes(data.DkimAttributes, context);
|
|
1801
1793
|
}
|
|
1802
1794
|
if (data.FeedbackForwardingStatus != null) {
|
|
1803
1795
|
contents.FeedbackForwardingStatus = (0, smithy_client_1.expectBoolean)(data.FeedbackForwardingStatus);
|
|
@@ -1806,18 +1798,18 @@ const deserializeAws_restJson1GetEmailIdentityCommand = async (output, context)
|
|
|
1806
1798
|
contents.IdentityType = (0, smithy_client_1.expectString)(data.IdentityType);
|
|
1807
1799
|
}
|
|
1808
1800
|
if (data.MailFromAttributes != null) {
|
|
1809
|
-
contents.MailFromAttributes =
|
|
1801
|
+
contents.MailFromAttributes = de_MailFromAttributes(data.MailFromAttributes, context);
|
|
1810
1802
|
}
|
|
1811
1803
|
if (data.Tags != null) {
|
|
1812
|
-
contents.Tags =
|
|
1804
|
+
contents.Tags = de_TagList(data.Tags, context);
|
|
1813
1805
|
}
|
|
1814
1806
|
if (data.VerifiedForSendingStatus != null) {
|
|
1815
1807
|
contents.VerifiedForSendingStatus = (0, smithy_client_1.expectBoolean)(data.VerifiedForSendingStatus);
|
|
1816
1808
|
}
|
|
1817
1809
|
return contents;
|
|
1818
1810
|
};
|
|
1819
|
-
exports.
|
|
1820
|
-
const
|
|
1811
|
+
exports.de_GetEmailIdentityCommand = de_GetEmailIdentityCommand;
|
|
1812
|
+
const de_GetEmailIdentityCommandError = async (output, context) => {
|
|
1821
1813
|
const parsedOutput = {
|
|
1822
1814
|
...output,
|
|
1823
1815
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1826,13 +1818,13 @@ const deserializeAws_restJson1GetEmailIdentityCommandError = async (output, cont
|
|
|
1826
1818
|
switch (errorCode) {
|
|
1827
1819
|
case "BadRequestException":
|
|
1828
1820
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
1829
|
-
throw await
|
|
1821
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1830
1822
|
case "NotFoundException":
|
|
1831
1823
|
case "com.amazonaws.pinpointemail#NotFoundException":
|
|
1832
|
-
throw await
|
|
1824
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1833
1825
|
case "TooManyRequestsException":
|
|
1834
1826
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
1835
|
-
throw await
|
|
1827
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1836
1828
|
default:
|
|
1837
1829
|
const parsedBody = parsedOutput.body;
|
|
1838
1830
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1843,24 +1835,24 @@ const deserializeAws_restJson1GetEmailIdentityCommandError = async (output, cont
|
|
|
1843
1835
|
});
|
|
1844
1836
|
}
|
|
1845
1837
|
};
|
|
1846
|
-
const
|
|
1838
|
+
const de_ListConfigurationSetsCommand = async (output, context) => {
|
|
1847
1839
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1848
|
-
return
|
|
1840
|
+
return de_ListConfigurationSetsCommandError(output, context);
|
|
1849
1841
|
}
|
|
1850
1842
|
const contents = map({
|
|
1851
1843
|
$metadata: deserializeMetadata(output),
|
|
1852
1844
|
});
|
|
1853
1845
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1854
1846
|
if (data.ConfigurationSets != null) {
|
|
1855
|
-
contents.ConfigurationSets =
|
|
1847
|
+
contents.ConfigurationSets = de_ConfigurationSetNameList(data.ConfigurationSets, context);
|
|
1856
1848
|
}
|
|
1857
1849
|
if (data.NextToken != null) {
|
|
1858
1850
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1859
1851
|
}
|
|
1860
1852
|
return contents;
|
|
1861
1853
|
};
|
|
1862
|
-
exports.
|
|
1863
|
-
const
|
|
1854
|
+
exports.de_ListConfigurationSetsCommand = de_ListConfigurationSetsCommand;
|
|
1855
|
+
const de_ListConfigurationSetsCommandError = async (output, context) => {
|
|
1864
1856
|
const parsedOutput = {
|
|
1865
1857
|
...output,
|
|
1866
1858
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1869,10 +1861,10 @@ const deserializeAws_restJson1ListConfigurationSetsCommandError = async (output,
|
|
|
1869
1861
|
switch (errorCode) {
|
|
1870
1862
|
case "BadRequestException":
|
|
1871
1863
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
1872
|
-
throw await
|
|
1864
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1873
1865
|
case "TooManyRequestsException":
|
|
1874
1866
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
1875
|
-
throw await
|
|
1867
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1876
1868
|
default:
|
|
1877
1869
|
const parsedBody = parsedOutput.body;
|
|
1878
1870
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1883,24 +1875,24 @@ const deserializeAws_restJson1ListConfigurationSetsCommandError = async (output,
|
|
|
1883
1875
|
});
|
|
1884
1876
|
}
|
|
1885
1877
|
};
|
|
1886
|
-
const
|
|
1878
|
+
const de_ListDedicatedIpPoolsCommand = async (output, context) => {
|
|
1887
1879
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1888
|
-
return
|
|
1880
|
+
return de_ListDedicatedIpPoolsCommandError(output, context);
|
|
1889
1881
|
}
|
|
1890
1882
|
const contents = map({
|
|
1891
1883
|
$metadata: deserializeMetadata(output),
|
|
1892
1884
|
});
|
|
1893
1885
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1894
1886
|
if (data.DedicatedIpPools != null) {
|
|
1895
|
-
contents.DedicatedIpPools =
|
|
1887
|
+
contents.DedicatedIpPools = de_ListOfDedicatedIpPools(data.DedicatedIpPools, context);
|
|
1896
1888
|
}
|
|
1897
1889
|
if (data.NextToken != null) {
|
|
1898
1890
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1899
1891
|
}
|
|
1900
1892
|
return contents;
|
|
1901
1893
|
};
|
|
1902
|
-
exports.
|
|
1903
|
-
const
|
|
1894
|
+
exports.de_ListDedicatedIpPoolsCommand = de_ListDedicatedIpPoolsCommand;
|
|
1895
|
+
const de_ListDedicatedIpPoolsCommandError = async (output, context) => {
|
|
1904
1896
|
const parsedOutput = {
|
|
1905
1897
|
...output,
|
|
1906
1898
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1909,10 +1901,10 @@ const deserializeAws_restJson1ListDedicatedIpPoolsCommandError = async (output,
|
|
|
1909
1901
|
switch (errorCode) {
|
|
1910
1902
|
case "BadRequestException":
|
|
1911
1903
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
1912
|
-
throw await
|
|
1904
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1913
1905
|
case "TooManyRequestsException":
|
|
1914
1906
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
1915
|
-
throw await
|
|
1907
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1916
1908
|
default:
|
|
1917
1909
|
const parsedBody = parsedOutput.body;
|
|
1918
1910
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1923,24 +1915,24 @@ const deserializeAws_restJson1ListDedicatedIpPoolsCommandError = async (output,
|
|
|
1923
1915
|
});
|
|
1924
1916
|
}
|
|
1925
1917
|
};
|
|
1926
|
-
const
|
|
1918
|
+
const de_ListDeliverabilityTestReportsCommand = async (output, context) => {
|
|
1927
1919
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1928
|
-
return
|
|
1920
|
+
return de_ListDeliverabilityTestReportsCommandError(output, context);
|
|
1929
1921
|
}
|
|
1930
1922
|
const contents = map({
|
|
1931
1923
|
$metadata: deserializeMetadata(output),
|
|
1932
1924
|
});
|
|
1933
1925
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1934
1926
|
if (data.DeliverabilityTestReports != null) {
|
|
1935
|
-
contents.DeliverabilityTestReports =
|
|
1927
|
+
contents.DeliverabilityTestReports = de_DeliverabilityTestReports(data.DeliverabilityTestReports, context);
|
|
1936
1928
|
}
|
|
1937
1929
|
if (data.NextToken != null) {
|
|
1938
1930
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1939
1931
|
}
|
|
1940
1932
|
return contents;
|
|
1941
1933
|
};
|
|
1942
|
-
exports.
|
|
1943
|
-
const
|
|
1934
|
+
exports.de_ListDeliverabilityTestReportsCommand = de_ListDeliverabilityTestReportsCommand;
|
|
1935
|
+
const de_ListDeliverabilityTestReportsCommandError = async (output, context) => {
|
|
1944
1936
|
const parsedOutput = {
|
|
1945
1937
|
...output,
|
|
1946
1938
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1949,13 +1941,13 @@ const deserializeAws_restJson1ListDeliverabilityTestReportsCommandError = async
|
|
|
1949
1941
|
switch (errorCode) {
|
|
1950
1942
|
case "BadRequestException":
|
|
1951
1943
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
1952
|
-
throw await
|
|
1944
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1953
1945
|
case "NotFoundException":
|
|
1954
1946
|
case "com.amazonaws.pinpointemail#NotFoundException":
|
|
1955
|
-
throw await
|
|
1947
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1956
1948
|
case "TooManyRequestsException":
|
|
1957
1949
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
1958
|
-
throw await
|
|
1950
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1959
1951
|
default:
|
|
1960
1952
|
const parsedBody = parsedOutput.body;
|
|
1961
1953
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1966,24 +1958,24 @@ const deserializeAws_restJson1ListDeliverabilityTestReportsCommandError = async
|
|
|
1966
1958
|
});
|
|
1967
1959
|
}
|
|
1968
1960
|
};
|
|
1969
|
-
const
|
|
1961
|
+
const de_ListDomainDeliverabilityCampaignsCommand = async (output, context) => {
|
|
1970
1962
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1971
|
-
return
|
|
1963
|
+
return de_ListDomainDeliverabilityCampaignsCommandError(output, context);
|
|
1972
1964
|
}
|
|
1973
1965
|
const contents = map({
|
|
1974
1966
|
$metadata: deserializeMetadata(output),
|
|
1975
1967
|
});
|
|
1976
1968
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1977
1969
|
if (data.DomainDeliverabilityCampaigns != null) {
|
|
1978
|
-
contents.DomainDeliverabilityCampaigns =
|
|
1970
|
+
contents.DomainDeliverabilityCampaigns = de_DomainDeliverabilityCampaignList(data.DomainDeliverabilityCampaigns, context);
|
|
1979
1971
|
}
|
|
1980
1972
|
if (data.NextToken != null) {
|
|
1981
1973
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1982
1974
|
}
|
|
1983
1975
|
return contents;
|
|
1984
1976
|
};
|
|
1985
|
-
exports.
|
|
1986
|
-
const
|
|
1977
|
+
exports.de_ListDomainDeliverabilityCampaignsCommand = de_ListDomainDeliverabilityCampaignsCommand;
|
|
1978
|
+
const de_ListDomainDeliverabilityCampaignsCommandError = async (output, context) => {
|
|
1987
1979
|
const parsedOutput = {
|
|
1988
1980
|
...output,
|
|
1989
1981
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1992,13 +1984,13 @@ const deserializeAws_restJson1ListDomainDeliverabilityCampaignsCommandError = as
|
|
|
1992
1984
|
switch (errorCode) {
|
|
1993
1985
|
case "BadRequestException":
|
|
1994
1986
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
1995
|
-
throw await
|
|
1987
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1996
1988
|
case "NotFoundException":
|
|
1997
1989
|
case "com.amazonaws.pinpointemail#NotFoundException":
|
|
1998
|
-
throw await
|
|
1990
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1999
1991
|
case "TooManyRequestsException":
|
|
2000
1992
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
2001
|
-
throw await
|
|
1993
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2002
1994
|
default:
|
|
2003
1995
|
const parsedBody = parsedOutput.body;
|
|
2004
1996
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2009,24 +2001,24 @@ const deserializeAws_restJson1ListDomainDeliverabilityCampaignsCommandError = as
|
|
|
2009
2001
|
});
|
|
2010
2002
|
}
|
|
2011
2003
|
};
|
|
2012
|
-
const
|
|
2004
|
+
const de_ListEmailIdentitiesCommand = async (output, context) => {
|
|
2013
2005
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2014
|
-
return
|
|
2006
|
+
return de_ListEmailIdentitiesCommandError(output, context);
|
|
2015
2007
|
}
|
|
2016
2008
|
const contents = map({
|
|
2017
2009
|
$metadata: deserializeMetadata(output),
|
|
2018
2010
|
});
|
|
2019
2011
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2020
2012
|
if (data.EmailIdentities != null) {
|
|
2021
|
-
contents.EmailIdentities =
|
|
2013
|
+
contents.EmailIdentities = de_IdentityInfoList(data.EmailIdentities, context);
|
|
2022
2014
|
}
|
|
2023
2015
|
if (data.NextToken != null) {
|
|
2024
2016
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
2025
2017
|
}
|
|
2026
2018
|
return contents;
|
|
2027
2019
|
};
|
|
2028
|
-
exports.
|
|
2029
|
-
const
|
|
2020
|
+
exports.de_ListEmailIdentitiesCommand = de_ListEmailIdentitiesCommand;
|
|
2021
|
+
const de_ListEmailIdentitiesCommandError = async (output, context) => {
|
|
2030
2022
|
const parsedOutput = {
|
|
2031
2023
|
...output,
|
|
2032
2024
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2035,10 +2027,10 @@ const deserializeAws_restJson1ListEmailIdentitiesCommandError = async (output, c
|
|
|
2035
2027
|
switch (errorCode) {
|
|
2036
2028
|
case "BadRequestException":
|
|
2037
2029
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
2038
|
-
throw await
|
|
2030
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2039
2031
|
case "TooManyRequestsException":
|
|
2040
2032
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
2041
|
-
throw await
|
|
2033
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2042
2034
|
default:
|
|
2043
2035
|
const parsedBody = parsedOutput.body;
|
|
2044
2036
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2049,21 +2041,21 @@ const deserializeAws_restJson1ListEmailIdentitiesCommandError = async (output, c
|
|
|
2049
2041
|
});
|
|
2050
2042
|
}
|
|
2051
2043
|
};
|
|
2052
|
-
const
|
|
2044
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2053
2045
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2054
|
-
return
|
|
2046
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
2055
2047
|
}
|
|
2056
2048
|
const contents = map({
|
|
2057
2049
|
$metadata: deserializeMetadata(output),
|
|
2058
2050
|
});
|
|
2059
2051
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2060
2052
|
if (data.Tags != null) {
|
|
2061
|
-
contents.Tags =
|
|
2053
|
+
contents.Tags = de_TagList(data.Tags, context);
|
|
2062
2054
|
}
|
|
2063
2055
|
return contents;
|
|
2064
2056
|
};
|
|
2065
|
-
exports.
|
|
2066
|
-
const
|
|
2057
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
2058
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2067
2059
|
const parsedOutput = {
|
|
2068
2060
|
...output,
|
|
2069
2061
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2072,13 +2064,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2072
2064
|
switch (errorCode) {
|
|
2073
2065
|
case "BadRequestException":
|
|
2074
2066
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
2075
|
-
throw await
|
|
2067
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2076
2068
|
case "NotFoundException":
|
|
2077
2069
|
case "com.amazonaws.pinpointemail#NotFoundException":
|
|
2078
|
-
throw await
|
|
2070
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2079
2071
|
case "TooManyRequestsException":
|
|
2080
2072
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
2081
|
-
throw await
|
|
2073
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2082
2074
|
default:
|
|
2083
2075
|
const parsedBody = parsedOutput.body;
|
|
2084
2076
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2089,9 +2081,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2089
2081
|
});
|
|
2090
2082
|
}
|
|
2091
2083
|
};
|
|
2092
|
-
const
|
|
2084
|
+
const de_PutAccountDedicatedIpWarmupAttributesCommand = async (output, context) => {
|
|
2093
2085
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2094
|
-
return
|
|
2086
|
+
return de_PutAccountDedicatedIpWarmupAttributesCommandError(output, context);
|
|
2095
2087
|
}
|
|
2096
2088
|
const contents = map({
|
|
2097
2089
|
$metadata: deserializeMetadata(output),
|
|
@@ -2099,8 +2091,8 @@ const deserializeAws_restJson1PutAccountDedicatedIpWarmupAttributesCommand = asy
|
|
|
2099
2091
|
await collectBody(output.body, context);
|
|
2100
2092
|
return contents;
|
|
2101
2093
|
};
|
|
2102
|
-
exports.
|
|
2103
|
-
const
|
|
2094
|
+
exports.de_PutAccountDedicatedIpWarmupAttributesCommand = de_PutAccountDedicatedIpWarmupAttributesCommand;
|
|
2095
|
+
const de_PutAccountDedicatedIpWarmupAttributesCommandError = async (output, context) => {
|
|
2104
2096
|
const parsedOutput = {
|
|
2105
2097
|
...output,
|
|
2106
2098
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2109,10 +2101,10 @@ const deserializeAws_restJson1PutAccountDedicatedIpWarmupAttributesCommandError
|
|
|
2109
2101
|
switch (errorCode) {
|
|
2110
2102
|
case "BadRequestException":
|
|
2111
2103
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
2112
|
-
throw await
|
|
2104
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2113
2105
|
case "TooManyRequestsException":
|
|
2114
2106
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
2115
|
-
throw await
|
|
2107
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2116
2108
|
default:
|
|
2117
2109
|
const parsedBody = parsedOutput.body;
|
|
2118
2110
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2123,9 +2115,9 @@ const deserializeAws_restJson1PutAccountDedicatedIpWarmupAttributesCommandError
|
|
|
2123
2115
|
});
|
|
2124
2116
|
}
|
|
2125
2117
|
};
|
|
2126
|
-
const
|
|
2118
|
+
const de_PutAccountSendingAttributesCommand = async (output, context) => {
|
|
2127
2119
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2128
|
-
return
|
|
2120
|
+
return de_PutAccountSendingAttributesCommandError(output, context);
|
|
2129
2121
|
}
|
|
2130
2122
|
const contents = map({
|
|
2131
2123
|
$metadata: deserializeMetadata(output),
|
|
@@ -2133,8 +2125,8 @@ const deserializeAws_restJson1PutAccountSendingAttributesCommand = async (output
|
|
|
2133
2125
|
await collectBody(output.body, context);
|
|
2134
2126
|
return contents;
|
|
2135
2127
|
};
|
|
2136
|
-
exports.
|
|
2137
|
-
const
|
|
2128
|
+
exports.de_PutAccountSendingAttributesCommand = de_PutAccountSendingAttributesCommand;
|
|
2129
|
+
const de_PutAccountSendingAttributesCommandError = async (output, context) => {
|
|
2138
2130
|
const parsedOutput = {
|
|
2139
2131
|
...output,
|
|
2140
2132
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2143,10 +2135,10 @@ const deserializeAws_restJson1PutAccountSendingAttributesCommandError = async (o
|
|
|
2143
2135
|
switch (errorCode) {
|
|
2144
2136
|
case "BadRequestException":
|
|
2145
2137
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
2146
|
-
throw await
|
|
2138
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2147
2139
|
case "TooManyRequestsException":
|
|
2148
2140
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
2149
|
-
throw await
|
|
2141
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2150
2142
|
default:
|
|
2151
2143
|
const parsedBody = parsedOutput.body;
|
|
2152
2144
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2157,9 +2149,9 @@ const deserializeAws_restJson1PutAccountSendingAttributesCommandError = async (o
|
|
|
2157
2149
|
});
|
|
2158
2150
|
}
|
|
2159
2151
|
};
|
|
2160
|
-
const
|
|
2152
|
+
const de_PutConfigurationSetDeliveryOptionsCommand = async (output, context) => {
|
|
2161
2153
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2162
|
-
return
|
|
2154
|
+
return de_PutConfigurationSetDeliveryOptionsCommandError(output, context);
|
|
2163
2155
|
}
|
|
2164
2156
|
const contents = map({
|
|
2165
2157
|
$metadata: deserializeMetadata(output),
|
|
@@ -2167,8 +2159,8 @@ const deserializeAws_restJson1PutConfigurationSetDeliveryOptionsCommand = async
|
|
|
2167
2159
|
await collectBody(output.body, context);
|
|
2168
2160
|
return contents;
|
|
2169
2161
|
};
|
|
2170
|
-
exports.
|
|
2171
|
-
const
|
|
2162
|
+
exports.de_PutConfigurationSetDeliveryOptionsCommand = de_PutConfigurationSetDeliveryOptionsCommand;
|
|
2163
|
+
const de_PutConfigurationSetDeliveryOptionsCommandError = async (output, context) => {
|
|
2172
2164
|
const parsedOutput = {
|
|
2173
2165
|
...output,
|
|
2174
2166
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2177,13 +2169,13 @@ const deserializeAws_restJson1PutConfigurationSetDeliveryOptionsCommandError = a
|
|
|
2177
2169
|
switch (errorCode) {
|
|
2178
2170
|
case "BadRequestException":
|
|
2179
2171
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
2180
|
-
throw await
|
|
2172
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2181
2173
|
case "NotFoundException":
|
|
2182
2174
|
case "com.amazonaws.pinpointemail#NotFoundException":
|
|
2183
|
-
throw await
|
|
2175
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2184
2176
|
case "TooManyRequestsException":
|
|
2185
2177
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
2186
|
-
throw await
|
|
2178
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2187
2179
|
default:
|
|
2188
2180
|
const parsedBody = parsedOutput.body;
|
|
2189
2181
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2194,9 +2186,9 @@ const deserializeAws_restJson1PutConfigurationSetDeliveryOptionsCommandError = a
|
|
|
2194
2186
|
});
|
|
2195
2187
|
}
|
|
2196
2188
|
};
|
|
2197
|
-
const
|
|
2189
|
+
const de_PutConfigurationSetReputationOptionsCommand = async (output, context) => {
|
|
2198
2190
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2199
|
-
return
|
|
2191
|
+
return de_PutConfigurationSetReputationOptionsCommandError(output, context);
|
|
2200
2192
|
}
|
|
2201
2193
|
const contents = map({
|
|
2202
2194
|
$metadata: deserializeMetadata(output),
|
|
@@ -2204,8 +2196,8 @@ const deserializeAws_restJson1PutConfigurationSetReputationOptionsCommand = asyn
|
|
|
2204
2196
|
await collectBody(output.body, context);
|
|
2205
2197
|
return contents;
|
|
2206
2198
|
};
|
|
2207
|
-
exports.
|
|
2208
|
-
const
|
|
2199
|
+
exports.de_PutConfigurationSetReputationOptionsCommand = de_PutConfigurationSetReputationOptionsCommand;
|
|
2200
|
+
const de_PutConfigurationSetReputationOptionsCommandError = async (output, context) => {
|
|
2209
2201
|
const parsedOutput = {
|
|
2210
2202
|
...output,
|
|
2211
2203
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2214,13 +2206,13 @@ const deserializeAws_restJson1PutConfigurationSetReputationOptionsCommandError =
|
|
|
2214
2206
|
switch (errorCode) {
|
|
2215
2207
|
case "BadRequestException":
|
|
2216
2208
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
2217
|
-
throw await
|
|
2209
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2218
2210
|
case "NotFoundException":
|
|
2219
2211
|
case "com.amazonaws.pinpointemail#NotFoundException":
|
|
2220
|
-
throw await
|
|
2212
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2221
2213
|
case "TooManyRequestsException":
|
|
2222
2214
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
2223
|
-
throw await
|
|
2215
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2224
2216
|
default:
|
|
2225
2217
|
const parsedBody = parsedOutput.body;
|
|
2226
2218
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2231,9 +2223,9 @@ const deserializeAws_restJson1PutConfigurationSetReputationOptionsCommandError =
|
|
|
2231
2223
|
});
|
|
2232
2224
|
}
|
|
2233
2225
|
};
|
|
2234
|
-
const
|
|
2226
|
+
const de_PutConfigurationSetSendingOptionsCommand = async (output, context) => {
|
|
2235
2227
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2236
|
-
return
|
|
2228
|
+
return de_PutConfigurationSetSendingOptionsCommandError(output, context);
|
|
2237
2229
|
}
|
|
2238
2230
|
const contents = map({
|
|
2239
2231
|
$metadata: deserializeMetadata(output),
|
|
@@ -2241,8 +2233,8 @@ const deserializeAws_restJson1PutConfigurationSetSendingOptionsCommand = async (
|
|
|
2241
2233
|
await collectBody(output.body, context);
|
|
2242
2234
|
return contents;
|
|
2243
2235
|
};
|
|
2244
|
-
exports.
|
|
2245
|
-
const
|
|
2236
|
+
exports.de_PutConfigurationSetSendingOptionsCommand = de_PutConfigurationSetSendingOptionsCommand;
|
|
2237
|
+
const de_PutConfigurationSetSendingOptionsCommandError = async (output, context) => {
|
|
2246
2238
|
const parsedOutput = {
|
|
2247
2239
|
...output,
|
|
2248
2240
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2251,13 +2243,13 @@ const deserializeAws_restJson1PutConfigurationSetSendingOptionsCommandError = as
|
|
|
2251
2243
|
switch (errorCode) {
|
|
2252
2244
|
case "BadRequestException":
|
|
2253
2245
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
2254
|
-
throw await
|
|
2246
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2255
2247
|
case "NotFoundException":
|
|
2256
2248
|
case "com.amazonaws.pinpointemail#NotFoundException":
|
|
2257
|
-
throw await
|
|
2249
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2258
2250
|
case "TooManyRequestsException":
|
|
2259
2251
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
2260
|
-
throw await
|
|
2252
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2261
2253
|
default:
|
|
2262
2254
|
const parsedBody = parsedOutput.body;
|
|
2263
2255
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2268,9 +2260,9 @@ const deserializeAws_restJson1PutConfigurationSetSendingOptionsCommandError = as
|
|
|
2268
2260
|
});
|
|
2269
2261
|
}
|
|
2270
2262
|
};
|
|
2271
|
-
const
|
|
2263
|
+
const de_PutConfigurationSetTrackingOptionsCommand = async (output, context) => {
|
|
2272
2264
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2273
|
-
return
|
|
2265
|
+
return de_PutConfigurationSetTrackingOptionsCommandError(output, context);
|
|
2274
2266
|
}
|
|
2275
2267
|
const contents = map({
|
|
2276
2268
|
$metadata: deserializeMetadata(output),
|
|
@@ -2278,8 +2270,8 @@ const deserializeAws_restJson1PutConfigurationSetTrackingOptionsCommand = async
|
|
|
2278
2270
|
await collectBody(output.body, context);
|
|
2279
2271
|
return contents;
|
|
2280
2272
|
};
|
|
2281
|
-
exports.
|
|
2282
|
-
const
|
|
2273
|
+
exports.de_PutConfigurationSetTrackingOptionsCommand = de_PutConfigurationSetTrackingOptionsCommand;
|
|
2274
|
+
const de_PutConfigurationSetTrackingOptionsCommandError = async (output, context) => {
|
|
2283
2275
|
const parsedOutput = {
|
|
2284
2276
|
...output,
|
|
2285
2277
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2288,13 +2280,13 @@ const deserializeAws_restJson1PutConfigurationSetTrackingOptionsCommandError = a
|
|
|
2288
2280
|
switch (errorCode) {
|
|
2289
2281
|
case "BadRequestException":
|
|
2290
2282
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
2291
|
-
throw await
|
|
2283
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2292
2284
|
case "NotFoundException":
|
|
2293
2285
|
case "com.amazonaws.pinpointemail#NotFoundException":
|
|
2294
|
-
throw await
|
|
2286
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2295
2287
|
case "TooManyRequestsException":
|
|
2296
2288
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
2297
|
-
throw await
|
|
2289
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2298
2290
|
default:
|
|
2299
2291
|
const parsedBody = parsedOutput.body;
|
|
2300
2292
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2305,9 +2297,9 @@ const deserializeAws_restJson1PutConfigurationSetTrackingOptionsCommandError = a
|
|
|
2305
2297
|
});
|
|
2306
2298
|
}
|
|
2307
2299
|
};
|
|
2308
|
-
const
|
|
2300
|
+
const de_PutDedicatedIpInPoolCommand = async (output, context) => {
|
|
2309
2301
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2310
|
-
return
|
|
2302
|
+
return de_PutDedicatedIpInPoolCommandError(output, context);
|
|
2311
2303
|
}
|
|
2312
2304
|
const contents = map({
|
|
2313
2305
|
$metadata: deserializeMetadata(output),
|
|
@@ -2315,8 +2307,8 @@ const deserializeAws_restJson1PutDedicatedIpInPoolCommand = async (output, conte
|
|
|
2315
2307
|
await collectBody(output.body, context);
|
|
2316
2308
|
return contents;
|
|
2317
2309
|
};
|
|
2318
|
-
exports.
|
|
2319
|
-
const
|
|
2310
|
+
exports.de_PutDedicatedIpInPoolCommand = de_PutDedicatedIpInPoolCommand;
|
|
2311
|
+
const de_PutDedicatedIpInPoolCommandError = async (output, context) => {
|
|
2320
2312
|
const parsedOutput = {
|
|
2321
2313
|
...output,
|
|
2322
2314
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2325,13 +2317,13 @@ const deserializeAws_restJson1PutDedicatedIpInPoolCommandError = async (output,
|
|
|
2325
2317
|
switch (errorCode) {
|
|
2326
2318
|
case "BadRequestException":
|
|
2327
2319
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
2328
|
-
throw await
|
|
2320
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2329
2321
|
case "NotFoundException":
|
|
2330
2322
|
case "com.amazonaws.pinpointemail#NotFoundException":
|
|
2331
|
-
throw await
|
|
2323
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2332
2324
|
case "TooManyRequestsException":
|
|
2333
2325
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
2334
|
-
throw await
|
|
2326
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2335
2327
|
default:
|
|
2336
2328
|
const parsedBody = parsedOutput.body;
|
|
2337
2329
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2342,9 +2334,9 @@ const deserializeAws_restJson1PutDedicatedIpInPoolCommandError = async (output,
|
|
|
2342
2334
|
});
|
|
2343
2335
|
}
|
|
2344
2336
|
};
|
|
2345
|
-
const
|
|
2337
|
+
const de_PutDedicatedIpWarmupAttributesCommand = async (output, context) => {
|
|
2346
2338
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2347
|
-
return
|
|
2339
|
+
return de_PutDedicatedIpWarmupAttributesCommandError(output, context);
|
|
2348
2340
|
}
|
|
2349
2341
|
const contents = map({
|
|
2350
2342
|
$metadata: deserializeMetadata(output),
|
|
@@ -2352,8 +2344,8 @@ const deserializeAws_restJson1PutDedicatedIpWarmupAttributesCommand = async (out
|
|
|
2352
2344
|
await collectBody(output.body, context);
|
|
2353
2345
|
return contents;
|
|
2354
2346
|
};
|
|
2355
|
-
exports.
|
|
2356
|
-
const
|
|
2347
|
+
exports.de_PutDedicatedIpWarmupAttributesCommand = de_PutDedicatedIpWarmupAttributesCommand;
|
|
2348
|
+
const de_PutDedicatedIpWarmupAttributesCommandError = async (output, context) => {
|
|
2357
2349
|
const parsedOutput = {
|
|
2358
2350
|
...output,
|
|
2359
2351
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2362,13 +2354,13 @@ const deserializeAws_restJson1PutDedicatedIpWarmupAttributesCommandError = async
|
|
|
2362
2354
|
switch (errorCode) {
|
|
2363
2355
|
case "BadRequestException":
|
|
2364
2356
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
2365
|
-
throw await
|
|
2357
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2366
2358
|
case "NotFoundException":
|
|
2367
2359
|
case "com.amazonaws.pinpointemail#NotFoundException":
|
|
2368
|
-
throw await
|
|
2360
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2369
2361
|
case "TooManyRequestsException":
|
|
2370
2362
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
2371
|
-
throw await
|
|
2363
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2372
2364
|
default:
|
|
2373
2365
|
const parsedBody = parsedOutput.body;
|
|
2374
2366
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2379,9 +2371,9 @@ const deserializeAws_restJson1PutDedicatedIpWarmupAttributesCommandError = async
|
|
|
2379
2371
|
});
|
|
2380
2372
|
}
|
|
2381
2373
|
};
|
|
2382
|
-
const
|
|
2374
|
+
const de_PutDeliverabilityDashboardOptionCommand = async (output, context) => {
|
|
2383
2375
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2384
|
-
return
|
|
2376
|
+
return de_PutDeliverabilityDashboardOptionCommandError(output, context);
|
|
2385
2377
|
}
|
|
2386
2378
|
const contents = map({
|
|
2387
2379
|
$metadata: deserializeMetadata(output),
|
|
@@ -2389,8 +2381,8 @@ const deserializeAws_restJson1PutDeliverabilityDashboardOptionCommand = async (o
|
|
|
2389
2381
|
await collectBody(output.body, context);
|
|
2390
2382
|
return contents;
|
|
2391
2383
|
};
|
|
2392
|
-
exports.
|
|
2393
|
-
const
|
|
2384
|
+
exports.de_PutDeliverabilityDashboardOptionCommand = de_PutDeliverabilityDashboardOptionCommand;
|
|
2385
|
+
const de_PutDeliverabilityDashboardOptionCommandError = async (output, context) => {
|
|
2394
2386
|
const parsedOutput = {
|
|
2395
2387
|
...output,
|
|
2396
2388
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2399,19 +2391,19 @@ const deserializeAws_restJson1PutDeliverabilityDashboardOptionCommandError = asy
|
|
|
2399
2391
|
switch (errorCode) {
|
|
2400
2392
|
case "AlreadyExistsException":
|
|
2401
2393
|
case "com.amazonaws.pinpointemail#AlreadyExistsException":
|
|
2402
|
-
throw await
|
|
2394
|
+
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
2403
2395
|
case "BadRequestException":
|
|
2404
2396
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
2405
|
-
throw await
|
|
2397
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2406
2398
|
case "LimitExceededException":
|
|
2407
2399
|
case "com.amazonaws.pinpointemail#LimitExceededException":
|
|
2408
|
-
throw await
|
|
2400
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2409
2401
|
case "NotFoundException":
|
|
2410
2402
|
case "com.amazonaws.pinpointemail#NotFoundException":
|
|
2411
|
-
throw await
|
|
2403
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2412
2404
|
case "TooManyRequestsException":
|
|
2413
2405
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
2414
|
-
throw await
|
|
2406
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2415
2407
|
default:
|
|
2416
2408
|
const parsedBody = parsedOutput.body;
|
|
2417
2409
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2422,9 +2414,9 @@ const deserializeAws_restJson1PutDeliverabilityDashboardOptionCommandError = asy
|
|
|
2422
2414
|
});
|
|
2423
2415
|
}
|
|
2424
2416
|
};
|
|
2425
|
-
const
|
|
2417
|
+
const de_PutEmailIdentityDkimAttributesCommand = async (output, context) => {
|
|
2426
2418
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2427
|
-
return
|
|
2419
|
+
return de_PutEmailIdentityDkimAttributesCommandError(output, context);
|
|
2428
2420
|
}
|
|
2429
2421
|
const contents = map({
|
|
2430
2422
|
$metadata: deserializeMetadata(output),
|
|
@@ -2432,8 +2424,8 @@ const deserializeAws_restJson1PutEmailIdentityDkimAttributesCommand = async (out
|
|
|
2432
2424
|
await collectBody(output.body, context);
|
|
2433
2425
|
return contents;
|
|
2434
2426
|
};
|
|
2435
|
-
exports.
|
|
2436
|
-
const
|
|
2427
|
+
exports.de_PutEmailIdentityDkimAttributesCommand = de_PutEmailIdentityDkimAttributesCommand;
|
|
2428
|
+
const de_PutEmailIdentityDkimAttributesCommandError = async (output, context) => {
|
|
2437
2429
|
const parsedOutput = {
|
|
2438
2430
|
...output,
|
|
2439
2431
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2442,13 +2434,13 @@ const deserializeAws_restJson1PutEmailIdentityDkimAttributesCommandError = async
|
|
|
2442
2434
|
switch (errorCode) {
|
|
2443
2435
|
case "BadRequestException":
|
|
2444
2436
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
2445
|
-
throw await
|
|
2437
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2446
2438
|
case "NotFoundException":
|
|
2447
2439
|
case "com.amazonaws.pinpointemail#NotFoundException":
|
|
2448
|
-
throw await
|
|
2440
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2449
2441
|
case "TooManyRequestsException":
|
|
2450
2442
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
2451
|
-
throw await
|
|
2443
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2452
2444
|
default:
|
|
2453
2445
|
const parsedBody = parsedOutput.body;
|
|
2454
2446
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2459,9 +2451,9 @@ const deserializeAws_restJson1PutEmailIdentityDkimAttributesCommandError = async
|
|
|
2459
2451
|
});
|
|
2460
2452
|
}
|
|
2461
2453
|
};
|
|
2462
|
-
const
|
|
2454
|
+
const de_PutEmailIdentityFeedbackAttributesCommand = async (output, context) => {
|
|
2463
2455
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2464
|
-
return
|
|
2456
|
+
return de_PutEmailIdentityFeedbackAttributesCommandError(output, context);
|
|
2465
2457
|
}
|
|
2466
2458
|
const contents = map({
|
|
2467
2459
|
$metadata: deserializeMetadata(output),
|
|
@@ -2469,8 +2461,8 @@ const deserializeAws_restJson1PutEmailIdentityFeedbackAttributesCommand = async
|
|
|
2469
2461
|
await collectBody(output.body, context);
|
|
2470
2462
|
return contents;
|
|
2471
2463
|
};
|
|
2472
|
-
exports.
|
|
2473
|
-
const
|
|
2464
|
+
exports.de_PutEmailIdentityFeedbackAttributesCommand = de_PutEmailIdentityFeedbackAttributesCommand;
|
|
2465
|
+
const de_PutEmailIdentityFeedbackAttributesCommandError = async (output, context) => {
|
|
2474
2466
|
const parsedOutput = {
|
|
2475
2467
|
...output,
|
|
2476
2468
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2479,13 +2471,13 @@ const deserializeAws_restJson1PutEmailIdentityFeedbackAttributesCommandError = a
|
|
|
2479
2471
|
switch (errorCode) {
|
|
2480
2472
|
case "BadRequestException":
|
|
2481
2473
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
2482
|
-
throw await
|
|
2474
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2483
2475
|
case "NotFoundException":
|
|
2484
2476
|
case "com.amazonaws.pinpointemail#NotFoundException":
|
|
2485
|
-
throw await
|
|
2477
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2486
2478
|
case "TooManyRequestsException":
|
|
2487
2479
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
2488
|
-
throw await
|
|
2480
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2489
2481
|
default:
|
|
2490
2482
|
const parsedBody = parsedOutput.body;
|
|
2491
2483
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2496,9 +2488,9 @@ const deserializeAws_restJson1PutEmailIdentityFeedbackAttributesCommandError = a
|
|
|
2496
2488
|
});
|
|
2497
2489
|
}
|
|
2498
2490
|
};
|
|
2499
|
-
const
|
|
2491
|
+
const de_PutEmailIdentityMailFromAttributesCommand = async (output, context) => {
|
|
2500
2492
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2501
|
-
return
|
|
2493
|
+
return de_PutEmailIdentityMailFromAttributesCommandError(output, context);
|
|
2502
2494
|
}
|
|
2503
2495
|
const contents = map({
|
|
2504
2496
|
$metadata: deserializeMetadata(output),
|
|
@@ -2506,8 +2498,8 @@ const deserializeAws_restJson1PutEmailIdentityMailFromAttributesCommand = async
|
|
|
2506
2498
|
await collectBody(output.body, context);
|
|
2507
2499
|
return contents;
|
|
2508
2500
|
};
|
|
2509
|
-
exports.
|
|
2510
|
-
const
|
|
2501
|
+
exports.de_PutEmailIdentityMailFromAttributesCommand = de_PutEmailIdentityMailFromAttributesCommand;
|
|
2502
|
+
const de_PutEmailIdentityMailFromAttributesCommandError = async (output, context) => {
|
|
2511
2503
|
const parsedOutput = {
|
|
2512
2504
|
...output,
|
|
2513
2505
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2516,13 +2508,13 @@ const deserializeAws_restJson1PutEmailIdentityMailFromAttributesCommandError = a
|
|
|
2516
2508
|
switch (errorCode) {
|
|
2517
2509
|
case "BadRequestException":
|
|
2518
2510
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
2519
|
-
throw await
|
|
2511
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2520
2512
|
case "NotFoundException":
|
|
2521
2513
|
case "com.amazonaws.pinpointemail#NotFoundException":
|
|
2522
|
-
throw await
|
|
2514
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2523
2515
|
case "TooManyRequestsException":
|
|
2524
2516
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
2525
|
-
throw await
|
|
2517
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2526
2518
|
default:
|
|
2527
2519
|
const parsedBody = parsedOutput.body;
|
|
2528
2520
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2533,9 +2525,9 @@ const deserializeAws_restJson1PutEmailIdentityMailFromAttributesCommandError = a
|
|
|
2533
2525
|
});
|
|
2534
2526
|
}
|
|
2535
2527
|
};
|
|
2536
|
-
const
|
|
2528
|
+
const de_SendEmailCommand = async (output, context) => {
|
|
2537
2529
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2538
|
-
return
|
|
2530
|
+
return de_SendEmailCommandError(output, context);
|
|
2539
2531
|
}
|
|
2540
2532
|
const contents = map({
|
|
2541
2533
|
$metadata: deserializeMetadata(output),
|
|
@@ -2546,8 +2538,8 @@ const deserializeAws_restJson1SendEmailCommand = async (output, context) => {
|
|
|
2546
2538
|
}
|
|
2547
2539
|
return contents;
|
|
2548
2540
|
};
|
|
2549
|
-
exports.
|
|
2550
|
-
const
|
|
2541
|
+
exports.de_SendEmailCommand = de_SendEmailCommand;
|
|
2542
|
+
const de_SendEmailCommandError = async (output, context) => {
|
|
2551
2543
|
const parsedOutput = {
|
|
2552
2544
|
...output,
|
|
2553
2545
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2556,28 +2548,28 @@ const deserializeAws_restJson1SendEmailCommandError = async (output, context) =>
|
|
|
2556
2548
|
switch (errorCode) {
|
|
2557
2549
|
case "AccountSuspendedException":
|
|
2558
2550
|
case "com.amazonaws.pinpointemail#AccountSuspendedException":
|
|
2559
|
-
throw await
|
|
2551
|
+
throw await de_AccountSuspendedExceptionRes(parsedOutput, context);
|
|
2560
2552
|
case "BadRequestException":
|
|
2561
2553
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
2562
|
-
throw await
|
|
2554
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2563
2555
|
case "LimitExceededException":
|
|
2564
2556
|
case "com.amazonaws.pinpointemail#LimitExceededException":
|
|
2565
|
-
throw await
|
|
2557
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2566
2558
|
case "MailFromDomainNotVerifiedException":
|
|
2567
2559
|
case "com.amazonaws.pinpointemail#MailFromDomainNotVerifiedException":
|
|
2568
|
-
throw await
|
|
2560
|
+
throw await de_MailFromDomainNotVerifiedExceptionRes(parsedOutput, context);
|
|
2569
2561
|
case "MessageRejected":
|
|
2570
2562
|
case "com.amazonaws.pinpointemail#MessageRejected":
|
|
2571
|
-
throw await
|
|
2563
|
+
throw await de_MessageRejectedRes(parsedOutput, context);
|
|
2572
2564
|
case "NotFoundException":
|
|
2573
2565
|
case "com.amazonaws.pinpointemail#NotFoundException":
|
|
2574
|
-
throw await
|
|
2566
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2575
2567
|
case "SendingPausedException":
|
|
2576
2568
|
case "com.amazonaws.pinpointemail#SendingPausedException":
|
|
2577
|
-
throw await
|
|
2569
|
+
throw await de_SendingPausedExceptionRes(parsedOutput, context);
|
|
2578
2570
|
case "TooManyRequestsException":
|
|
2579
2571
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
2580
|
-
throw await
|
|
2572
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2581
2573
|
default:
|
|
2582
2574
|
const parsedBody = parsedOutput.body;
|
|
2583
2575
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2588,9 +2580,9 @@ const deserializeAws_restJson1SendEmailCommandError = async (output, context) =>
|
|
|
2588
2580
|
});
|
|
2589
2581
|
}
|
|
2590
2582
|
};
|
|
2591
|
-
const
|
|
2583
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
2592
2584
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2593
|
-
return
|
|
2585
|
+
return de_TagResourceCommandError(output, context);
|
|
2594
2586
|
}
|
|
2595
2587
|
const contents = map({
|
|
2596
2588
|
$metadata: deserializeMetadata(output),
|
|
@@ -2598,8 +2590,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
|
2598
2590
|
await collectBody(output.body, context);
|
|
2599
2591
|
return contents;
|
|
2600
2592
|
};
|
|
2601
|
-
exports.
|
|
2602
|
-
const
|
|
2593
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
2594
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
2603
2595
|
const parsedOutput = {
|
|
2604
2596
|
...output,
|
|
2605
2597
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2608,16 +2600,16 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2608
2600
|
switch (errorCode) {
|
|
2609
2601
|
case "BadRequestException":
|
|
2610
2602
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
2611
|
-
throw await
|
|
2603
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2612
2604
|
case "ConcurrentModificationException":
|
|
2613
2605
|
case "com.amazonaws.pinpointemail#ConcurrentModificationException":
|
|
2614
|
-
throw await
|
|
2606
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2615
2607
|
case "NotFoundException":
|
|
2616
2608
|
case "com.amazonaws.pinpointemail#NotFoundException":
|
|
2617
|
-
throw await
|
|
2609
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2618
2610
|
case "TooManyRequestsException":
|
|
2619
2611
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
2620
|
-
throw await
|
|
2612
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2621
2613
|
default:
|
|
2622
2614
|
const parsedBody = parsedOutput.body;
|
|
2623
2615
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2628,9 +2620,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2628
2620
|
});
|
|
2629
2621
|
}
|
|
2630
2622
|
};
|
|
2631
|
-
const
|
|
2623
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
2632
2624
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2633
|
-
return
|
|
2625
|
+
return de_UntagResourceCommandError(output, context);
|
|
2634
2626
|
}
|
|
2635
2627
|
const contents = map({
|
|
2636
2628
|
$metadata: deserializeMetadata(output),
|
|
@@ -2638,8 +2630,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
|
|
|
2638
2630
|
await collectBody(output.body, context);
|
|
2639
2631
|
return contents;
|
|
2640
2632
|
};
|
|
2641
|
-
exports.
|
|
2642
|
-
const
|
|
2633
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
2634
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
2643
2635
|
const parsedOutput = {
|
|
2644
2636
|
...output,
|
|
2645
2637
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2648,16 +2640,16 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2648
2640
|
switch (errorCode) {
|
|
2649
2641
|
case "BadRequestException":
|
|
2650
2642
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
2651
|
-
throw await
|
|
2643
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2652
2644
|
case "ConcurrentModificationException":
|
|
2653
2645
|
case "com.amazonaws.pinpointemail#ConcurrentModificationException":
|
|
2654
|
-
throw await
|
|
2646
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2655
2647
|
case "NotFoundException":
|
|
2656
2648
|
case "com.amazonaws.pinpointemail#NotFoundException":
|
|
2657
|
-
throw await
|
|
2649
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2658
2650
|
case "TooManyRequestsException":
|
|
2659
2651
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
2660
|
-
throw await
|
|
2652
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2661
2653
|
default:
|
|
2662
2654
|
const parsedBody = parsedOutput.body;
|
|
2663
2655
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2668,9 +2660,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2668
2660
|
});
|
|
2669
2661
|
}
|
|
2670
2662
|
};
|
|
2671
|
-
const
|
|
2663
|
+
const de_UpdateConfigurationSetEventDestinationCommand = async (output, context) => {
|
|
2672
2664
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2673
|
-
return
|
|
2665
|
+
return de_UpdateConfigurationSetEventDestinationCommandError(output, context);
|
|
2674
2666
|
}
|
|
2675
2667
|
const contents = map({
|
|
2676
2668
|
$metadata: deserializeMetadata(output),
|
|
@@ -2678,8 +2670,8 @@ const deserializeAws_restJson1UpdateConfigurationSetEventDestinationCommand = as
|
|
|
2678
2670
|
await collectBody(output.body, context);
|
|
2679
2671
|
return contents;
|
|
2680
2672
|
};
|
|
2681
|
-
exports.
|
|
2682
|
-
const
|
|
2673
|
+
exports.de_UpdateConfigurationSetEventDestinationCommand = de_UpdateConfigurationSetEventDestinationCommand;
|
|
2674
|
+
const de_UpdateConfigurationSetEventDestinationCommandError = async (output, context) => {
|
|
2683
2675
|
const parsedOutput = {
|
|
2684
2676
|
...output,
|
|
2685
2677
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2688,13 +2680,13 @@ const deserializeAws_restJson1UpdateConfigurationSetEventDestinationCommandError
|
|
|
2688
2680
|
switch (errorCode) {
|
|
2689
2681
|
case "BadRequestException":
|
|
2690
2682
|
case "com.amazonaws.pinpointemail#BadRequestException":
|
|
2691
|
-
throw await
|
|
2683
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2692
2684
|
case "NotFoundException":
|
|
2693
2685
|
case "com.amazonaws.pinpointemail#NotFoundException":
|
|
2694
|
-
throw await
|
|
2686
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2695
2687
|
case "TooManyRequestsException":
|
|
2696
2688
|
case "com.amazonaws.pinpointemail#TooManyRequestsException":
|
|
2697
|
-
throw await
|
|
2689
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2698
2690
|
default:
|
|
2699
2691
|
const parsedBody = parsedOutput.body;
|
|
2700
2692
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2706,7 +2698,7 @@ const deserializeAws_restJson1UpdateConfigurationSetEventDestinationCommandError
|
|
|
2706
2698
|
}
|
|
2707
2699
|
};
|
|
2708
2700
|
const map = smithy_client_1.map;
|
|
2709
|
-
const
|
|
2701
|
+
const de_AccountSuspendedExceptionRes = async (parsedOutput, context) => {
|
|
2710
2702
|
const contents = map({});
|
|
2711
2703
|
const data = parsedOutput.body;
|
|
2712
2704
|
if (data.message != null) {
|
|
@@ -2718,7 +2710,7 @@ const deserializeAws_restJson1AccountSuspendedExceptionResponse = async (parsedO
|
|
|
2718
2710
|
});
|
|
2719
2711
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2720
2712
|
};
|
|
2721
|
-
const
|
|
2713
|
+
const de_AlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
2722
2714
|
const contents = map({});
|
|
2723
2715
|
const data = parsedOutput.body;
|
|
2724
2716
|
if (data.message != null) {
|
|
@@ -2730,7 +2722,7 @@ const deserializeAws_restJson1AlreadyExistsExceptionResponse = async (parsedOutp
|
|
|
2730
2722
|
});
|
|
2731
2723
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2732
2724
|
};
|
|
2733
|
-
const
|
|
2725
|
+
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
2734
2726
|
const contents = map({});
|
|
2735
2727
|
const data = parsedOutput.body;
|
|
2736
2728
|
if (data.message != null) {
|
|
@@ -2742,7 +2734,7 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
|
|
|
2742
2734
|
});
|
|
2743
2735
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2744
2736
|
};
|
|
2745
|
-
const
|
|
2737
|
+
const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
2746
2738
|
const contents = map({});
|
|
2747
2739
|
const data = parsedOutput.body;
|
|
2748
2740
|
if (data.message != null) {
|
|
@@ -2754,7 +2746,7 @@ const deserializeAws_restJson1ConcurrentModificationExceptionResponse = async (p
|
|
|
2754
2746
|
});
|
|
2755
2747
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2756
2748
|
};
|
|
2757
|
-
const
|
|
2749
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2758
2750
|
const contents = map({});
|
|
2759
2751
|
const data = parsedOutput.body;
|
|
2760
2752
|
if (data.message != null) {
|
|
@@ -2766,7 +2758,7 @@ const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutp
|
|
|
2766
2758
|
});
|
|
2767
2759
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2768
2760
|
};
|
|
2769
|
-
const
|
|
2761
|
+
const de_MailFromDomainNotVerifiedExceptionRes = async (parsedOutput, context) => {
|
|
2770
2762
|
const contents = map({});
|
|
2771
2763
|
const data = parsedOutput.body;
|
|
2772
2764
|
if (data.message != null) {
|
|
@@ -2778,7 +2770,7 @@ const deserializeAws_restJson1MailFromDomainNotVerifiedExceptionResponse = async
|
|
|
2778
2770
|
});
|
|
2779
2771
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2780
2772
|
};
|
|
2781
|
-
const
|
|
2773
|
+
const de_MessageRejectedRes = async (parsedOutput, context) => {
|
|
2782
2774
|
const contents = map({});
|
|
2783
2775
|
const data = parsedOutput.body;
|
|
2784
2776
|
if (data.message != null) {
|
|
@@ -2790,7 +2782,7 @@ const deserializeAws_restJson1MessageRejectedResponse = async (parsedOutput, con
|
|
|
2790
2782
|
});
|
|
2791
2783
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2792
2784
|
};
|
|
2793
|
-
const
|
|
2785
|
+
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2794
2786
|
const contents = map({});
|
|
2795
2787
|
const data = parsedOutput.body;
|
|
2796
2788
|
if (data.message != null) {
|
|
@@ -2802,7 +2794,7 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
|
|
|
2802
2794
|
});
|
|
2803
2795
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2804
2796
|
};
|
|
2805
|
-
const
|
|
2797
|
+
const de_SendingPausedExceptionRes = async (parsedOutput, context) => {
|
|
2806
2798
|
const contents = map({});
|
|
2807
2799
|
const data = parsedOutput.body;
|
|
2808
2800
|
if (data.message != null) {
|
|
@@ -2814,7 +2806,7 @@ const deserializeAws_restJson1SendingPausedExceptionResponse = async (parsedOutp
|
|
|
2814
2806
|
});
|
|
2815
2807
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2816
2808
|
};
|
|
2817
|
-
const
|
|
2809
|
+
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
2818
2810
|
const contents = map({});
|
|
2819
2811
|
const data = parsedOutput.body;
|
|
2820
2812
|
if (data.message != null) {
|
|
@@ -2826,217 +2818,207 @@ const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOu
|
|
|
2826
2818
|
});
|
|
2827
2819
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2828
2820
|
};
|
|
2829
|
-
const
|
|
2821
|
+
const se_Body = (input, context) => {
|
|
2830
2822
|
return {
|
|
2831
|
-
...(input.Html != null && { Html:
|
|
2832
|
-
...(input.Text != null && { Text:
|
|
2823
|
+
...(input.Html != null && { Html: se_Content(input.Html, context) }),
|
|
2824
|
+
...(input.Text != null && { Text: se_Content(input.Text, context) }),
|
|
2833
2825
|
};
|
|
2834
2826
|
};
|
|
2835
|
-
const
|
|
2827
|
+
const se_CloudWatchDestination = (input, context) => {
|
|
2836
2828
|
return {
|
|
2837
2829
|
...(input.DimensionConfigurations != null && {
|
|
2838
|
-
DimensionConfigurations:
|
|
2830
|
+
DimensionConfigurations: se_CloudWatchDimensionConfigurations(input.DimensionConfigurations, context),
|
|
2839
2831
|
}),
|
|
2840
2832
|
};
|
|
2841
2833
|
};
|
|
2842
|
-
const
|
|
2834
|
+
const se_CloudWatchDimensionConfiguration = (input, context) => {
|
|
2843
2835
|
return {
|
|
2844
2836
|
...(input.DefaultDimensionValue != null && { DefaultDimensionValue: input.DefaultDimensionValue }),
|
|
2845
2837
|
...(input.DimensionName != null && { DimensionName: input.DimensionName }),
|
|
2846
2838
|
...(input.DimensionValueSource != null && { DimensionValueSource: input.DimensionValueSource }),
|
|
2847
2839
|
};
|
|
2848
2840
|
};
|
|
2849
|
-
const
|
|
2841
|
+
const se_CloudWatchDimensionConfigurations = (input, context) => {
|
|
2850
2842
|
return input
|
|
2851
2843
|
.filter((e) => e != null)
|
|
2852
2844
|
.map((entry) => {
|
|
2853
|
-
return
|
|
2845
|
+
return se_CloudWatchDimensionConfiguration(entry, context);
|
|
2854
2846
|
});
|
|
2855
2847
|
};
|
|
2856
|
-
const
|
|
2848
|
+
const se_Content = (input, context) => {
|
|
2857
2849
|
return {
|
|
2858
2850
|
...(input.Charset != null && { Charset: input.Charset }),
|
|
2859
2851
|
...(input.Data != null && { Data: input.Data }),
|
|
2860
2852
|
};
|
|
2861
2853
|
};
|
|
2862
|
-
const
|
|
2854
|
+
const se_DeliveryOptions = (input, context) => {
|
|
2863
2855
|
return {
|
|
2864
2856
|
...(input.SendingPoolName != null && { SendingPoolName: input.SendingPoolName }),
|
|
2865
2857
|
...(input.TlsPolicy != null && { TlsPolicy: input.TlsPolicy }),
|
|
2866
2858
|
};
|
|
2867
2859
|
};
|
|
2868
|
-
const
|
|
2860
|
+
const se_Destination = (input, context) => {
|
|
2869
2861
|
return {
|
|
2870
|
-
...(input.BccAddresses != null && {
|
|
2871
|
-
|
|
2872
|
-
}),
|
|
2873
|
-
...(input.CcAddresses != null && {
|
|
2874
|
-
CcAddresses: serializeAws_restJson1EmailAddressList(input.CcAddresses, context),
|
|
2875
|
-
}),
|
|
2876
|
-
...(input.ToAddresses != null && {
|
|
2877
|
-
ToAddresses: serializeAws_restJson1EmailAddressList(input.ToAddresses, context),
|
|
2878
|
-
}),
|
|
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) }),
|
|
2879
2865
|
};
|
|
2880
2866
|
};
|
|
2881
|
-
const
|
|
2867
|
+
const se_DomainDeliverabilityTrackingOption = (input, context) => {
|
|
2882
2868
|
return {
|
|
2883
2869
|
...(input.Domain != null && { Domain: input.Domain }),
|
|
2884
2870
|
...(input.InboxPlacementTrackingOption != null && {
|
|
2885
|
-
InboxPlacementTrackingOption:
|
|
2871
|
+
InboxPlacementTrackingOption: se_InboxPlacementTrackingOption(input.InboxPlacementTrackingOption, context),
|
|
2886
2872
|
}),
|
|
2887
2873
|
...(input.SubscriptionStartDate != null && {
|
|
2888
2874
|
SubscriptionStartDate: Math.round(input.SubscriptionStartDate.getTime() / 1000),
|
|
2889
2875
|
}),
|
|
2890
2876
|
};
|
|
2891
2877
|
};
|
|
2892
|
-
const
|
|
2878
|
+
const se_DomainDeliverabilityTrackingOptions = (input, context) => {
|
|
2893
2879
|
return input
|
|
2894
2880
|
.filter((e) => e != null)
|
|
2895
2881
|
.map((entry) => {
|
|
2896
|
-
return
|
|
2882
|
+
return se_DomainDeliverabilityTrackingOption(entry, context);
|
|
2897
2883
|
});
|
|
2898
2884
|
};
|
|
2899
|
-
const
|
|
2885
|
+
const se_EmailAddressList = (input, context) => {
|
|
2900
2886
|
return input
|
|
2901
2887
|
.filter((e) => e != null)
|
|
2902
2888
|
.map((entry) => {
|
|
2903
2889
|
return entry;
|
|
2904
2890
|
});
|
|
2905
2891
|
};
|
|
2906
|
-
const
|
|
2892
|
+
const se_EmailContent = (input, context) => {
|
|
2907
2893
|
return {
|
|
2908
|
-
...(input.Raw != null && { Raw:
|
|
2909
|
-
...(input.Simple != null && { Simple:
|
|
2910
|
-
...(input.Template != null && { Template:
|
|
2894
|
+
...(input.Raw != null && { Raw: se_RawMessage(input.Raw, context) }),
|
|
2895
|
+
...(input.Simple != null && { Simple: se_Message(input.Simple, context) }),
|
|
2896
|
+
...(input.Template != null && { Template: se_Template(input.Template, context) }),
|
|
2911
2897
|
};
|
|
2912
2898
|
};
|
|
2913
|
-
const
|
|
2899
|
+
const se_EventDestinationDefinition = (input, context) => {
|
|
2914
2900
|
return {
|
|
2915
2901
|
...(input.CloudWatchDestination != null && {
|
|
2916
|
-
CloudWatchDestination:
|
|
2902
|
+
CloudWatchDestination: se_CloudWatchDestination(input.CloudWatchDestination, context),
|
|
2917
2903
|
}),
|
|
2918
2904
|
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
2919
2905
|
...(input.KinesisFirehoseDestination != null && {
|
|
2920
|
-
KinesisFirehoseDestination:
|
|
2921
|
-
}),
|
|
2922
|
-
...(input.MatchingEventTypes != null && {
|
|
2923
|
-
MatchingEventTypes: serializeAws_restJson1EventTypes(input.MatchingEventTypes, context),
|
|
2906
|
+
KinesisFirehoseDestination: se_KinesisFirehoseDestination(input.KinesisFirehoseDestination, context),
|
|
2924
2907
|
}),
|
|
2908
|
+
...(input.MatchingEventTypes != null && { MatchingEventTypes: se_EventTypes(input.MatchingEventTypes, context) }),
|
|
2925
2909
|
...(input.PinpointDestination != null && {
|
|
2926
|
-
PinpointDestination:
|
|
2927
|
-
}),
|
|
2928
|
-
...(input.SnsDestination != null && {
|
|
2929
|
-
SnsDestination: serializeAws_restJson1SnsDestination(input.SnsDestination, context),
|
|
2910
|
+
PinpointDestination: se_PinpointDestination(input.PinpointDestination, context),
|
|
2930
2911
|
}),
|
|
2912
|
+
...(input.SnsDestination != null && { SnsDestination: se_SnsDestination(input.SnsDestination, context) }),
|
|
2931
2913
|
};
|
|
2932
2914
|
};
|
|
2933
|
-
const
|
|
2915
|
+
const se_EventTypes = (input, context) => {
|
|
2934
2916
|
return input
|
|
2935
2917
|
.filter((e) => e != null)
|
|
2936
2918
|
.map((entry) => {
|
|
2937
2919
|
return entry;
|
|
2938
2920
|
});
|
|
2939
2921
|
};
|
|
2940
|
-
const
|
|
2922
|
+
const se_InboxPlacementTrackingOption = (input, context) => {
|
|
2941
2923
|
return {
|
|
2942
2924
|
...(input.Global != null && { Global: input.Global }),
|
|
2943
|
-
...(input.TrackedIsps != null && { TrackedIsps:
|
|
2925
|
+
...(input.TrackedIsps != null && { TrackedIsps: se_IspNameList(input.TrackedIsps, context) }),
|
|
2944
2926
|
};
|
|
2945
2927
|
};
|
|
2946
|
-
const
|
|
2928
|
+
const se_IspNameList = (input, context) => {
|
|
2947
2929
|
return input
|
|
2948
2930
|
.filter((e) => e != null)
|
|
2949
2931
|
.map((entry) => {
|
|
2950
2932
|
return entry;
|
|
2951
2933
|
});
|
|
2952
2934
|
};
|
|
2953
|
-
const
|
|
2935
|
+
const se_KinesisFirehoseDestination = (input, context) => {
|
|
2954
2936
|
return {
|
|
2955
2937
|
...(input.DeliveryStreamArn != null && { DeliveryStreamArn: input.DeliveryStreamArn }),
|
|
2956
2938
|
...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
|
|
2957
2939
|
};
|
|
2958
2940
|
};
|
|
2959
|
-
const
|
|
2941
|
+
const se_Message = (input, context) => {
|
|
2960
2942
|
return {
|
|
2961
|
-
...(input.Body != null && { Body:
|
|
2962
|
-
...(input.Subject != null && { Subject:
|
|
2943
|
+
...(input.Body != null && { Body: se_Body(input.Body, context) }),
|
|
2944
|
+
...(input.Subject != null && { Subject: se_Content(input.Subject, context) }),
|
|
2963
2945
|
};
|
|
2964
2946
|
};
|
|
2965
|
-
const
|
|
2947
|
+
const se_MessageTag = (input, context) => {
|
|
2966
2948
|
return {
|
|
2967
2949
|
...(input.Name != null && { Name: input.Name }),
|
|
2968
2950
|
...(input.Value != null && { Value: input.Value }),
|
|
2969
2951
|
};
|
|
2970
2952
|
};
|
|
2971
|
-
const
|
|
2953
|
+
const se_MessageTagList = (input, context) => {
|
|
2972
2954
|
return input
|
|
2973
2955
|
.filter((e) => e != null)
|
|
2974
2956
|
.map((entry) => {
|
|
2975
|
-
return
|
|
2957
|
+
return se_MessageTag(entry, context);
|
|
2976
2958
|
});
|
|
2977
2959
|
};
|
|
2978
|
-
const
|
|
2960
|
+
const se_PinpointDestination = (input, context) => {
|
|
2979
2961
|
return {
|
|
2980
2962
|
...(input.ApplicationArn != null && { ApplicationArn: input.ApplicationArn }),
|
|
2981
2963
|
};
|
|
2982
2964
|
};
|
|
2983
|
-
const
|
|
2965
|
+
const se_RawMessage = (input, context) => {
|
|
2984
2966
|
return {
|
|
2985
2967
|
...(input.Data != null && { Data: context.base64Encoder(input.Data) }),
|
|
2986
2968
|
};
|
|
2987
2969
|
};
|
|
2988
|
-
const
|
|
2970
|
+
const se_ReputationOptions = (input, context) => {
|
|
2989
2971
|
return {
|
|
2990
2972
|
...(input.LastFreshStart != null && { LastFreshStart: Math.round(input.LastFreshStart.getTime() / 1000) }),
|
|
2991
2973
|
...(input.ReputationMetricsEnabled != null && { ReputationMetricsEnabled: input.ReputationMetricsEnabled }),
|
|
2992
2974
|
};
|
|
2993
2975
|
};
|
|
2994
|
-
const
|
|
2976
|
+
const se_SendingOptions = (input, context) => {
|
|
2995
2977
|
return {
|
|
2996
2978
|
...(input.SendingEnabled != null && { SendingEnabled: input.SendingEnabled }),
|
|
2997
2979
|
};
|
|
2998
2980
|
};
|
|
2999
|
-
const
|
|
2981
|
+
const se_SnsDestination = (input, context) => {
|
|
3000
2982
|
return {
|
|
3001
2983
|
...(input.TopicArn != null && { TopicArn: input.TopicArn }),
|
|
3002
2984
|
};
|
|
3003
2985
|
};
|
|
3004
|
-
const
|
|
2986
|
+
const se_Tag = (input, context) => {
|
|
3005
2987
|
return {
|
|
3006
2988
|
...(input.Key != null && { Key: input.Key }),
|
|
3007
2989
|
...(input.Value != null && { Value: input.Value }),
|
|
3008
2990
|
};
|
|
3009
2991
|
};
|
|
3010
|
-
const
|
|
2992
|
+
const se_TagList = (input, context) => {
|
|
3011
2993
|
return input
|
|
3012
2994
|
.filter((e) => e != null)
|
|
3013
2995
|
.map((entry) => {
|
|
3014
|
-
return
|
|
2996
|
+
return se_Tag(entry, context);
|
|
3015
2997
|
});
|
|
3016
2998
|
};
|
|
3017
|
-
const
|
|
2999
|
+
const se_Template = (input, context) => {
|
|
3018
3000
|
return {
|
|
3019
3001
|
...(input.TemplateArn != null && { TemplateArn: input.TemplateArn }),
|
|
3020
3002
|
...(input.TemplateData != null && { TemplateData: input.TemplateData }),
|
|
3021
3003
|
};
|
|
3022
3004
|
};
|
|
3023
|
-
const
|
|
3005
|
+
const se_TrackingOptions = (input, context) => {
|
|
3024
3006
|
return {
|
|
3025
3007
|
...(input.CustomRedirectDomain != null && { CustomRedirectDomain: input.CustomRedirectDomain }),
|
|
3026
3008
|
};
|
|
3027
3009
|
};
|
|
3028
|
-
const
|
|
3010
|
+
const de_BlacklistEntries = (output, context) => {
|
|
3029
3011
|
const retVal = (output || [])
|
|
3030
3012
|
.filter((e) => e != null)
|
|
3031
3013
|
.map((entry) => {
|
|
3032
3014
|
if (entry === null) {
|
|
3033
3015
|
return null;
|
|
3034
3016
|
}
|
|
3035
|
-
return
|
|
3017
|
+
return de_BlacklistEntry(entry, context);
|
|
3036
3018
|
});
|
|
3037
3019
|
return retVal;
|
|
3038
3020
|
};
|
|
3039
|
-
const
|
|
3021
|
+
const de_BlacklistEntry = (output, context) => {
|
|
3040
3022
|
return {
|
|
3041
3023
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
3042
3024
|
ListingTime: output.ListingTime != null
|
|
@@ -3045,41 +3027,41 @@ const deserializeAws_restJson1BlacklistEntry = (output, context) => {
|
|
|
3045
3027
|
RblName: (0, smithy_client_1.expectString)(output.RblName),
|
|
3046
3028
|
};
|
|
3047
3029
|
};
|
|
3048
|
-
const
|
|
3030
|
+
const de_BlacklistReport = (output, context) => {
|
|
3049
3031
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3050
3032
|
if (value === null) {
|
|
3051
3033
|
return acc;
|
|
3052
3034
|
}
|
|
3053
|
-
acc[key] =
|
|
3035
|
+
acc[key] = de_BlacklistEntries(value, context);
|
|
3054
3036
|
return acc;
|
|
3055
3037
|
}, {});
|
|
3056
3038
|
};
|
|
3057
|
-
const
|
|
3039
|
+
const de_CloudWatchDestination = (output, context) => {
|
|
3058
3040
|
return {
|
|
3059
3041
|
DimensionConfigurations: output.DimensionConfigurations != null
|
|
3060
|
-
?
|
|
3042
|
+
? de_CloudWatchDimensionConfigurations(output.DimensionConfigurations, context)
|
|
3061
3043
|
: undefined,
|
|
3062
3044
|
};
|
|
3063
3045
|
};
|
|
3064
|
-
const
|
|
3046
|
+
const de_CloudWatchDimensionConfiguration = (output, context) => {
|
|
3065
3047
|
return {
|
|
3066
3048
|
DefaultDimensionValue: (0, smithy_client_1.expectString)(output.DefaultDimensionValue),
|
|
3067
3049
|
DimensionName: (0, smithy_client_1.expectString)(output.DimensionName),
|
|
3068
3050
|
DimensionValueSource: (0, smithy_client_1.expectString)(output.DimensionValueSource),
|
|
3069
3051
|
};
|
|
3070
3052
|
};
|
|
3071
|
-
const
|
|
3053
|
+
const de_CloudWatchDimensionConfigurations = (output, context) => {
|
|
3072
3054
|
const retVal = (output || [])
|
|
3073
3055
|
.filter((e) => e != null)
|
|
3074
3056
|
.map((entry) => {
|
|
3075
3057
|
if (entry === null) {
|
|
3076
3058
|
return null;
|
|
3077
3059
|
}
|
|
3078
|
-
return
|
|
3060
|
+
return de_CloudWatchDimensionConfiguration(entry, context);
|
|
3079
3061
|
});
|
|
3080
3062
|
return retVal;
|
|
3081
3063
|
};
|
|
3082
|
-
const
|
|
3064
|
+
const de_ConfigurationSetNameList = (output, context) => {
|
|
3083
3065
|
const retVal = (output || [])
|
|
3084
3066
|
.filter((e) => e != null)
|
|
3085
3067
|
.map((entry) => {
|
|
@@ -3090,29 +3072,25 @@ const deserializeAws_restJson1ConfigurationSetNameList = (output, context) => {
|
|
|
3090
3072
|
});
|
|
3091
3073
|
return retVal;
|
|
3092
3074
|
};
|
|
3093
|
-
const
|
|
3075
|
+
const de_DailyVolume = (output, context) => {
|
|
3094
3076
|
return {
|
|
3095
|
-
DomainIspPlacements: output.DomainIspPlacements != null
|
|
3096
|
-
? deserializeAws_restJson1DomainIspPlacements(output.DomainIspPlacements, context)
|
|
3097
|
-
: undefined,
|
|
3077
|
+
DomainIspPlacements: output.DomainIspPlacements != null ? de_DomainIspPlacements(output.DomainIspPlacements, context) : undefined,
|
|
3098
3078
|
StartDate: output.StartDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartDate))) : undefined,
|
|
3099
|
-
VolumeStatistics: output.VolumeStatistics != null
|
|
3100
|
-
? deserializeAws_restJson1VolumeStatistics(output.VolumeStatistics, context)
|
|
3101
|
-
: undefined,
|
|
3079
|
+
VolumeStatistics: output.VolumeStatistics != null ? de_VolumeStatistics(output.VolumeStatistics, context) : undefined,
|
|
3102
3080
|
};
|
|
3103
3081
|
};
|
|
3104
|
-
const
|
|
3082
|
+
const de_DailyVolumes = (output, context) => {
|
|
3105
3083
|
const retVal = (output || [])
|
|
3106
3084
|
.filter((e) => e != null)
|
|
3107
3085
|
.map((entry) => {
|
|
3108
3086
|
if (entry === null) {
|
|
3109
3087
|
return null;
|
|
3110
3088
|
}
|
|
3111
|
-
return
|
|
3089
|
+
return de_DailyVolume(entry, context);
|
|
3112
3090
|
});
|
|
3113
3091
|
return retVal;
|
|
3114
3092
|
};
|
|
3115
|
-
const
|
|
3093
|
+
const de_DedicatedIp = (output, context) => {
|
|
3116
3094
|
return {
|
|
3117
3095
|
Ip: (0, smithy_client_1.expectString)(output.Ip),
|
|
3118
3096
|
PoolName: (0, smithy_client_1.expectString)(output.PoolName),
|
|
@@ -3120,18 +3098,18 @@ const deserializeAws_restJson1DedicatedIp = (output, context) => {
|
|
|
3120
3098
|
WarmupStatus: (0, smithy_client_1.expectString)(output.WarmupStatus),
|
|
3121
3099
|
};
|
|
3122
3100
|
};
|
|
3123
|
-
const
|
|
3101
|
+
const de_DedicatedIpList = (output, context) => {
|
|
3124
3102
|
const retVal = (output || [])
|
|
3125
3103
|
.filter((e) => e != null)
|
|
3126
3104
|
.map((entry) => {
|
|
3127
3105
|
if (entry === null) {
|
|
3128
3106
|
return null;
|
|
3129
3107
|
}
|
|
3130
|
-
return
|
|
3108
|
+
return de_DedicatedIp(entry, context);
|
|
3131
3109
|
});
|
|
3132
3110
|
return retVal;
|
|
3133
3111
|
};
|
|
3134
|
-
const
|
|
3112
|
+
const de_DeliverabilityTestReport = (output, context) => {
|
|
3135
3113
|
return {
|
|
3136
3114
|
CreateDate: output.CreateDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateDate))) : undefined,
|
|
3137
3115
|
DeliverabilityTestStatus: (0, smithy_client_1.expectString)(output.DeliverabilityTestStatus),
|
|
@@ -3141,31 +3119,31 @@ const deserializeAws_restJson1DeliverabilityTestReport = (output, context) => {
|
|
|
3141
3119
|
Subject: (0, smithy_client_1.expectString)(output.Subject),
|
|
3142
3120
|
};
|
|
3143
3121
|
};
|
|
3144
|
-
const
|
|
3122
|
+
const de_DeliverabilityTestReports = (output, context) => {
|
|
3145
3123
|
const retVal = (output || [])
|
|
3146
3124
|
.filter((e) => e != null)
|
|
3147
3125
|
.map((entry) => {
|
|
3148
3126
|
if (entry === null) {
|
|
3149
3127
|
return null;
|
|
3150
3128
|
}
|
|
3151
|
-
return
|
|
3129
|
+
return de_DeliverabilityTestReport(entry, context);
|
|
3152
3130
|
});
|
|
3153
3131
|
return retVal;
|
|
3154
3132
|
};
|
|
3155
|
-
const
|
|
3133
|
+
const de_DeliveryOptions = (output, context) => {
|
|
3156
3134
|
return {
|
|
3157
3135
|
SendingPoolName: (0, smithy_client_1.expectString)(output.SendingPoolName),
|
|
3158
3136
|
TlsPolicy: (0, smithy_client_1.expectString)(output.TlsPolicy),
|
|
3159
3137
|
};
|
|
3160
3138
|
};
|
|
3161
|
-
const
|
|
3139
|
+
const de_DkimAttributes = (output, context) => {
|
|
3162
3140
|
return {
|
|
3163
3141
|
SigningEnabled: (0, smithy_client_1.expectBoolean)(output.SigningEnabled),
|
|
3164
3142
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3165
|
-
Tokens: output.Tokens != null ?
|
|
3143
|
+
Tokens: output.Tokens != null ? de_DnsTokenList(output.Tokens, context) : undefined,
|
|
3166
3144
|
};
|
|
3167
3145
|
};
|
|
3168
|
-
const
|
|
3146
|
+
const de_DnsTokenList = (output, context) => {
|
|
3169
3147
|
const retVal = (output || [])
|
|
3170
3148
|
.filter((e) => e != null)
|
|
3171
3149
|
.map((entry) => {
|
|
@@ -3176,11 +3154,11 @@ const deserializeAws_restJson1DnsTokenList = (output, context) => {
|
|
|
3176
3154
|
});
|
|
3177
3155
|
return retVal;
|
|
3178
3156
|
};
|
|
3179
|
-
const
|
|
3157
|
+
const de_DomainDeliverabilityCampaign = (output, context) => {
|
|
3180
3158
|
return {
|
|
3181
3159
|
CampaignId: (0, smithy_client_1.expectString)(output.CampaignId),
|
|
3182
3160
|
DeleteRate: (0, smithy_client_1.limitedParseDouble)(output.DeleteRate),
|
|
3183
|
-
Esps: output.Esps != null ?
|
|
3161
|
+
Esps: output.Esps != null ? de_Esps(output.Esps, context) : undefined,
|
|
3184
3162
|
FirstSeenDateTime: output.FirstSeenDateTime != null
|
|
3185
3163
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.FirstSeenDateTime)))
|
|
3186
3164
|
: undefined,
|
|
@@ -3193,45 +3171,45 @@ const deserializeAws_restJson1DomainDeliverabilityCampaign = (output, context) =
|
|
|
3193
3171
|
ProjectedVolume: (0, smithy_client_1.expectLong)(output.ProjectedVolume),
|
|
3194
3172
|
ReadDeleteRate: (0, smithy_client_1.limitedParseDouble)(output.ReadDeleteRate),
|
|
3195
3173
|
ReadRate: (0, smithy_client_1.limitedParseDouble)(output.ReadRate),
|
|
3196
|
-
SendingIps: output.SendingIps != null ?
|
|
3174
|
+
SendingIps: output.SendingIps != null ? de_IpList(output.SendingIps, context) : undefined,
|
|
3197
3175
|
SpamCount: (0, smithy_client_1.expectLong)(output.SpamCount),
|
|
3198
3176
|
Subject: (0, smithy_client_1.expectString)(output.Subject),
|
|
3199
3177
|
};
|
|
3200
3178
|
};
|
|
3201
|
-
const
|
|
3179
|
+
const de_DomainDeliverabilityCampaignList = (output, context) => {
|
|
3202
3180
|
const retVal = (output || [])
|
|
3203
3181
|
.filter((e) => e != null)
|
|
3204
3182
|
.map((entry) => {
|
|
3205
3183
|
if (entry === null) {
|
|
3206
3184
|
return null;
|
|
3207
3185
|
}
|
|
3208
|
-
return
|
|
3186
|
+
return de_DomainDeliverabilityCampaign(entry, context);
|
|
3209
3187
|
});
|
|
3210
3188
|
return retVal;
|
|
3211
3189
|
};
|
|
3212
|
-
const
|
|
3190
|
+
const de_DomainDeliverabilityTrackingOption = (output, context) => {
|
|
3213
3191
|
return {
|
|
3214
3192
|
Domain: (0, smithy_client_1.expectString)(output.Domain),
|
|
3215
3193
|
InboxPlacementTrackingOption: output.InboxPlacementTrackingOption != null
|
|
3216
|
-
?
|
|
3194
|
+
? de_InboxPlacementTrackingOption(output.InboxPlacementTrackingOption, context)
|
|
3217
3195
|
: undefined,
|
|
3218
3196
|
SubscriptionStartDate: output.SubscriptionStartDate != null
|
|
3219
3197
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubscriptionStartDate)))
|
|
3220
3198
|
: undefined,
|
|
3221
3199
|
};
|
|
3222
3200
|
};
|
|
3223
|
-
const
|
|
3201
|
+
const de_DomainDeliverabilityTrackingOptions = (output, context) => {
|
|
3224
3202
|
const retVal = (output || [])
|
|
3225
3203
|
.filter((e) => e != null)
|
|
3226
3204
|
.map((entry) => {
|
|
3227
3205
|
if (entry === null) {
|
|
3228
3206
|
return null;
|
|
3229
3207
|
}
|
|
3230
|
-
return
|
|
3208
|
+
return de_DomainDeliverabilityTrackingOption(entry, context);
|
|
3231
3209
|
});
|
|
3232
3210
|
return retVal;
|
|
3233
3211
|
};
|
|
3234
|
-
const
|
|
3212
|
+
const de_DomainIspPlacement = (output, context) => {
|
|
3235
3213
|
return {
|
|
3236
3214
|
InboxPercentage: (0, smithy_client_1.limitedParseDouble)(output.InboxPercentage),
|
|
3237
3215
|
InboxRawCount: (0, smithy_client_1.expectLong)(output.InboxRawCount),
|
|
@@ -3240,18 +3218,18 @@ const deserializeAws_restJson1DomainIspPlacement = (output, context) => {
|
|
|
3240
3218
|
SpamRawCount: (0, smithy_client_1.expectLong)(output.SpamRawCount),
|
|
3241
3219
|
};
|
|
3242
3220
|
};
|
|
3243
|
-
const
|
|
3221
|
+
const de_DomainIspPlacements = (output, context) => {
|
|
3244
3222
|
const retVal = (output || [])
|
|
3245
3223
|
.filter((e) => e != null)
|
|
3246
3224
|
.map((entry) => {
|
|
3247
3225
|
if (entry === null) {
|
|
3248
3226
|
return null;
|
|
3249
3227
|
}
|
|
3250
|
-
return
|
|
3228
|
+
return de_DomainIspPlacement(entry, context);
|
|
3251
3229
|
});
|
|
3252
3230
|
return retVal;
|
|
3253
3231
|
};
|
|
3254
|
-
const
|
|
3232
|
+
const de_Esps = (output, context) => {
|
|
3255
3233
|
const retVal = (output || [])
|
|
3256
3234
|
.filter((e) => e != null)
|
|
3257
3235
|
.map((entry) => {
|
|
@@ -3262,39 +3240,33 @@ const deserializeAws_restJson1Esps = (output, context) => {
|
|
|
3262
3240
|
});
|
|
3263
3241
|
return retVal;
|
|
3264
3242
|
};
|
|
3265
|
-
const
|
|
3243
|
+
const de_EventDestination = (output, context) => {
|
|
3266
3244
|
return {
|
|
3267
3245
|
CloudWatchDestination: output.CloudWatchDestination != null
|
|
3268
|
-
?
|
|
3246
|
+
? de_CloudWatchDestination(output.CloudWatchDestination, context)
|
|
3269
3247
|
: undefined,
|
|
3270
3248
|
Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
|
|
3271
3249
|
KinesisFirehoseDestination: output.KinesisFirehoseDestination != null
|
|
3272
|
-
?
|
|
3273
|
-
: undefined,
|
|
3274
|
-
MatchingEventTypes: output.MatchingEventTypes != null
|
|
3275
|
-
? deserializeAws_restJson1EventTypes(output.MatchingEventTypes, context)
|
|
3250
|
+
? de_KinesisFirehoseDestination(output.KinesisFirehoseDestination, context)
|
|
3276
3251
|
: undefined,
|
|
3252
|
+
MatchingEventTypes: output.MatchingEventTypes != null ? de_EventTypes(output.MatchingEventTypes, context) : undefined,
|
|
3277
3253
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3278
|
-
PinpointDestination: output.PinpointDestination != null
|
|
3279
|
-
|
|
3280
|
-
: undefined,
|
|
3281
|
-
SnsDestination: output.SnsDestination != null
|
|
3282
|
-
? deserializeAws_restJson1SnsDestination(output.SnsDestination, context)
|
|
3283
|
-
: undefined,
|
|
3254
|
+
PinpointDestination: output.PinpointDestination != null ? de_PinpointDestination(output.PinpointDestination, context) : undefined,
|
|
3255
|
+
SnsDestination: output.SnsDestination != null ? de_SnsDestination(output.SnsDestination, context) : undefined,
|
|
3284
3256
|
};
|
|
3285
3257
|
};
|
|
3286
|
-
const
|
|
3258
|
+
const de_EventDestinations = (output, context) => {
|
|
3287
3259
|
const retVal = (output || [])
|
|
3288
3260
|
.filter((e) => e != null)
|
|
3289
3261
|
.map((entry) => {
|
|
3290
3262
|
if (entry === null) {
|
|
3291
3263
|
return null;
|
|
3292
3264
|
}
|
|
3293
|
-
return
|
|
3265
|
+
return de_EventDestination(entry, context);
|
|
3294
3266
|
});
|
|
3295
3267
|
return retVal;
|
|
3296
3268
|
};
|
|
3297
|
-
const
|
|
3269
|
+
const de_EventTypes = (output, context) => {
|
|
3298
3270
|
const retVal = (output || [])
|
|
3299
3271
|
.filter((e) => e != null)
|
|
3300
3272
|
.map((entry) => {
|
|
@@ -3305,31 +3277,31 @@ const deserializeAws_restJson1EventTypes = (output, context) => {
|
|
|
3305
3277
|
});
|
|
3306
3278
|
return retVal;
|
|
3307
3279
|
};
|
|
3308
|
-
const
|
|
3280
|
+
const de_IdentityInfo = (output, context) => {
|
|
3309
3281
|
return {
|
|
3310
3282
|
IdentityName: (0, smithy_client_1.expectString)(output.IdentityName),
|
|
3311
3283
|
IdentityType: (0, smithy_client_1.expectString)(output.IdentityType),
|
|
3312
3284
|
SendingEnabled: (0, smithy_client_1.expectBoolean)(output.SendingEnabled),
|
|
3313
3285
|
};
|
|
3314
3286
|
};
|
|
3315
|
-
const
|
|
3287
|
+
const de_IdentityInfoList = (output, context) => {
|
|
3316
3288
|
const retVal = (output || [])
|
|
3317
3289
|
.filter((e) => e != null)
|
|
3318
3290
|
.map((entry) => {
|
|
3319
3291
|
if (entry === null) {
|
|
3320
3292
|
return null;
|
|
3321
3293
|
}
|
|
3322
|
-
return
|
|
3294
|
+
return de_IdentityInfo(entry, context);
|
|
3323
3295
|
});
|
|
3324
3296
|
return retVal;
|
|
3325
3297
|
};
|
|
3326
|
-
const
|
|
3298
|
+
const de_InboxPlacementTrackingOption = (output, context) => {
|
|
3327
3299
|
return {
|
|
3328
3300
|
Global: (0, smithy_client_1.expectBoolean)(output.Global),
|
|
3329
|
-
TrackedIsps: output.TrackedIsps != null ?
|
|
3301
|
+
TrackedIsps: output.TrackedIsps != null ? de_IspNameList(output.TrackedIsps, context) : undefined,
|
|
3330
3302
|
};
|
|
3331
3303
|
};
|
|
3332
|
-
const
|
|
3304
|
+
const de_IpList = (output, context) => {
|
|
3333
3305
|
const retVal = (output || [])
|
|
3334
3306
|
.filter((e) => e != null)
|
|
3335
3307
|
.map((entry) => {
|
|
@@ -3340,7 +3312,7 @@ const deserializeAws_restJson1IpList = (output, context) => {
|
|
|
3340
3312
|
});
|
|
3341
3313
|
return retVal;
|
|
3342
3314
|
};
|
|
3343
|
-
const
|
|
3315
|
+
const de_IspNameList = (output, context) => {
|
|
3344
3316
|
const retVal = (output || [])
|
|
3345
3317
|
.filter((e) => e != null)
|
|
3346
3318
|
.map((entry) => {
|
|
@@ -3351,32 +3323,30 @@ const deserializeAws_restJson1IspNameList = (output, context) => {
|
|
|
3351
3323
|
});
|
|
3352
3324
|
return retVal;
|
|
3353
3325
|
};
|
|
3354
|
-
const
|
|
3326
|
+
const de_IspPlacement = (output, context) => {
|
|
3355
3327
|
return {
|
|
3356
3328
|
IspName: (0, smithy_client_1.expectString)(output.IspName),
|
|
3357
|
-
PlacementStatistics: output.PlacementStatistics != null
|
|
3358
|
-
? deserializeAws_restJson1PlacementStatistics(output.PlacementStatistics, context)
|
|
3359
|
-
: undefined,
|
|
3329
|
+
PlacementStatistics: output.PlacementStatistics != null ? de_PlacementStatistics(output.PlacementStatistics, context) : undefined,
|
|
3360
3330
|
};
|
|
3361
3331
|
};
|
|
3362
|
-
const
|
|
3332
|
+
const de_IspPlacements = (output, context) => {
|
|
3363
3333
|
const retVal = (output || [])
|
|
3364
3334
|
.filter((e) => e != null)
|
|
3365
3335
|
.map((entry) => {
|
|
3366
3336
|
if (entry === null) {
|
|
3367
3337
|
return null;
|
|
3368
3338
|
}
|
|
3369
|
-
return
|
|
3339
|
+
return de_IspPlacement(entry, context);
|
|
3370
3340
|
});
|
|
3371
3341
|
return retVal;
|
|
3372
3342
|
};
|
|
3373
|
-
const
|
|
3343
|
+
const de_KinesisFirehoseDestination = (output, context) => {
|
|
3374
3344
|
return {
|
|
3375
3345
|
DeliveryStreamArn: (0, smithy_client_1.expectString)(output.DeliveryStreamArn),
|
|
3376
3346
|
IamRoleArn: (0, smithy_client_1.expectString)(output.IamRoleArn),
|
|
3377
3347
|
};
|
|
3378
3348
|
};
|
|
3379
|
-
const
|
|
3349
|
+
const de_ListOfDedicatedIpPools = (output, context) => {
|
|
3380
3350
|
const retVal = (output || [])
|
|
3381
3351
|
.filter((e) => e != null)
|
|
3382
3352
|
.map((entry) => {
|
|
@@ -3387,30 +3357,26 @@ const deserializeAws_restJson1ListOfDedicatedIpPools = (output, context) => {
|
|
|
3387
3357
|
});
|
|
3388
3358
|
return retVal;
|
|
3389
3359
|
};
|
|
3390
|
-
const
|
|
3360
|
+
const de_MailFromAttributes = (output, context) => {
|
|
3391
3361
|
return {
|
|
3392
3362
|
BehaviorOnMxFailure: (0, smithy_client_1.expectString)(output.BehaviorOnMxFailure),
|
|
3393
3363
|
MailFromDomain: (0, smithy_client_1.expectString)(output.MailFromDomain),
|
|
3394
3364
|
MailFromDomainStatus: (0, smithy_client_1.expectString)(output.MailFromDomainStatus),
|
|
3395
3365
|
};
|
|
3396
3366
|
};
|
|
3397
|
-
const
|
|
3367
|
+
const de_OverallVolume = (output, context) => {
|
|
3398
3368
|
return {
|
|
3399
|
-
DomainIspPlacements: output.DomainIspPlacements != null
|
|
3400
|
-
? deserializeAws_restJson1DomainIspPlacements(output.DomainIspPlacements, context)
|
|
3401
|
-
: undefined,
|
|
3369
|
+
DomainIspPlacements: output.DomainIspPlacements != null ? de_DomainIspPlacements(output.DomainIspPlacements, context) : undefined,
|
|
3402
3370
|
ReadRatePercent: (0, smithy_client_1.limitedParseDouble)(output.ReadRatePercent),
|
|
3403
|
-
VolumeStatistics: output.VolumeStatistics != null
|
|
3404
|
-
? deserializeAws_restJson1VolumeStatistics(output.VolumeStatistics, context)
|
|
3405
|
-
: undefined,
|
|
3371
|
+
VolumeStatistics: output.VolumeStatistics != null ? de_VolumeStatistics(output.VolumeStatistics, context) : undefined,
|
|
3406
3372
|
};
|
|
3407
3373
|
};
|
|
3408
|
-
const
|
|
3374
|
+
const de_PinpointDestination = (output, context) => {
|
|
3409
3375
|
return {
|
|
3410
3376
|
ApplicationArn: (0, smithy_client_1.expectString)(output.ApplicationArn),
|
|
3411
3377
|
};
|
|
3412
3378
|
};
|
|
3413
|
-
const
|
|
3379
|
+
const de_PlacementStatistics = (output, context) => {
|
|
3414
3380
|
return {
|
|
3415
3381
|
DkimPercentage: (0, smithy_client_1.limitedParseDouble)(output.DkimPercentage),
|
|
3416
3382
|
InboxPercentage: (0, smithy_client_1.limitedParseDouble)(output.InboxPercentage),
|
|
@@ -3419,7 +3385,7 @@ const deserializeAws_restJson1PlacementStatistics = (output, context) => {
|
|
|
3419
3385
|
SpfPercentage: (0, smithy_client_1.limitedParseDouble)(output.SpfPercentage),
|
|
3420
3386
|
};
|
|
3421
3387
|
};
|
|
3422
|
-
const
|
|
3388
|
+
const de_ReputationOptions = (output, context) => {
|
|
3423
3389
|
return {
|
|
3424
3390
|
LastFreshStart: output.LastFreshStart != null
|
|
3425
3391
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastFreshStart)))
|
|
@@ -3427,46 +3393,46 @@ const deserializeAws_restJson1ReputationOptions = (output, context) => {
|
|
|
3427
3393
|
ReputationMetricsEnabled: (0, smithy_client_1.expectBoolean)(output.ReputationMetricsEnabled),
|
|
3428
3394
|
};
|
|
3429
3395
|
};
|
|
3430
|
-
const
|
|
3396
|
+
const de_SendingOptions = (output, context) => {
|
|
3431
3397
|
return {
|
|
3432
3398
|
SendingEnabled: (0, smithy_client_1.expectBoolean)(output.SendingEnabled),
|
|
3433
3399
|
};
|
|
3434
3400
|
};
|
|
3435
|
-
const
|
|
3401
|
+
const de_SendQuota = (output, context) => {
|
|
3436
3402
|
return {
|
|
3437
3403
|
Max24HourSend: (0, smithy_client_1.limitedParseDouble)(output.Max24HourSend),
|
|
3438
3404
|
MaxSendRate: (0, smithy_client_1.limitedParseDouble)(output.MaxSendRate),
|
|
3439
3405
|
SentLast24Hours: (0, smithy_client_1.limitedParseDouble)(output.SentLast24Hours),
|
|
3440
3406
|
};
|
|
3441
3407
|
};
|
|
3442
|
-
const
|
|
3408
|
+
const de_SnsDestination = (output, context) => {
|
|
3443
3409
|
return {
|
|
3444
3410
|
TopicArn: (0, smithy_client_1.expectString)(output.TopicArn),
|
|
3445
3411
|
};
|
|
3446
3412
|
};
|
|
3447
|
-
const
|
|
3413
|
+
const de_Tag = (output, context) => {
|
|
3448
3414
|
return {
|
|
3449
3415
|
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
3450
3416
|
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
3451
3417
|
};
|
|
3452
3418
|
};
|
|
3453
|
-
const
|
|
3419
|
+
const de_TagList = (output, context) => {
|
|
3454
3420
|
const retVal = (output || [])
|
|
3455
3421
|
.filter((e) => e != null)
|
|
3456
3422
|
.map((entry) => {
|
|
3457
3423
|
if (entry === null) {
|
|
3458
3424
|
return null;
|
|
3459
3425
|
}
|
|
3460
|
-
return
|
|
3426
|
+
return de_Tag(entry, context);
|
|
3461
3427
|
});
|
|
3462
3428
|
return retVal;
|
|
3463
3429
|
};
|
|
3464
|
-
const
|
|
3430
|
+
const de_TrackingOptions = (output, context) => {
|
|
3465
3431
|
return {
|
|
3466
3432
|
CustomRedirectDomain: (0, smithy_client_1.expectString)(output.CustomRedirectDomain),
|
|
3467
3433
|
};
|
|
3468
3434
|
};
|
|
3469
|
-
const
|
|
3435
|
+
const de_VolumeStatistics = (output, context) => {
|
|
3470
3436
|
return {
|
|
3471
3437
|
InboxRawCount: (0, smithy_client_1.expectLong)(output.InboxRawCount),
|
|
3472
3438
|
ProjectedInbox: (0, smithy_client_1.expectLong)(output.ProjectedInbox),
|