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