@aws-sdk/client-ses 3.310.0 → 3.315.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,9 +9,7 @@ const fast_xml_parser_1 = require("fast-xml-parser");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const SESServiceException_1 = require("../models/SESServiceException");
11
11
  const se_CloneReceiptRuleSetCommand = async (input, context) => {
12
- const headers = {
13
- "content-type": "application/x-www-form-urlencoded",
14
- };
12
+ const headers = SHARED_HEADERS;
15
13
  let body;
16
14
  body = buildFormUrlencodedString({
17
15
  ...se_CloneReceiptRuleSetRequest(input, context),
@@ -22,9 +20,7 @@ const se_CloneReceiptRuleSetCommand = async (input, context) => {
22
20
  };
23
21
  exports.se_CloneReceiptRuleSetCommand = se_CloneReceiptRuleSetCommand;
24
22
  const se_CreateConfigurationSetCommand = async (input, context) => {
25
- const headers = {
26
- "content-type": "application/x-www-form-urlencoded",
27
- };
23
+ const headers = SHARED_HEADERS;
28
24
  let body;
29
25
  body = buildFormUrlencodedString({
30
26
  ...se_CreateConfigurationSetRequest(input, context),
@@ -35,9 +31,7 @@ const se_CreateConfigurationSetCommand = async (input, context) => {
35
31
  };
36
32
  exports.se_CreateConfigurationSetCommand = se_CreateConfigurationSetCommand;
37
33
  const se_CreateConfigurationSetEventDestinationCommand = async (input, context) => {
38
- const headers = {
39
- "content-type": "application/x-www-form-urlencoded",
40
- };
34
+ const headers = SHARED_HEADERS;
41
35
  let body;
42
36
  body = buildFormUrlencodedString({
43
37
  ...se_CreateConfigurationSetEventDestinationRequest(input, context),
@@ -48,9 +42,7 @@ const se_CreateConfigurationSetEventDestinationCommand = async (input, context)
48
42
  };
49
43
  exports.se_CreateConfigurationSetEventDestinationCommand = se_CreateConfigurationSetEventDestinationCommand;
50
44
  const se_CreateConfigurationSetTrackingOptionsCommand = async (input, context) => {
51
- const headers = {
52
- "content-type": "application/x-www-form-urlencoded",
53
- };
45
+ const headers = SHARED_HEADERS;
54
46
  let body;
55
47
  body = buildFormUrlencodedString({
56
48
  ...se_CreateConfigurationSetTrackingOptionsRequest(input, context),
@@ -61,9 +53,7 @@ const se_CreateConfigurationSetTrackingOptionsCommand = async (input, context) =
61
53
  };
62
54
  exports.se_CreateConfigurationSetTrackingOptionsCommand = se_CreateConfigurationSetTrackingOptionsCommand;
63
55
  const se_CreateCustomVerificationEmailTemplateCommand = async (input, context) => {
64
- const headers = {
65
- "content-type": "application/x-www-form-urlencoded",
66
- };
56
+ const headers = SHARED_HEADERS;
67
57
  let body;
68
58
  body = buildFormUrlencodedString({
69
59
  ...se_CreateCustomVerificationEmailTemplateRequest(input, context),
@@ -74,9 +64,7 @@ const se_CreateCustomVerificationEmailTemplateCommand = async (input, context) =
74
64
  };
75
65
  exports.se_CreateCustomVerificationEmailTemplateCommand = se_CreateCustomVerificationEmailTemplateCommand;
76
66
  const se_CreateReceiptFilterCommand = async (input, context) => {
77
- const headers = {
78
- "content-type": "application/x-www-form-urlencoded",
79
- };
67
+ const headers = SHARED_HEADERS;
80
68
  let body;
81
69
  body = buildFormUrlencodedString({
82
70
  ...se_CreateReceiptFilterRequest(input, context),
@@ -87,9 +75,7 @@ const se_CreateReceiptFilterCommand = async (input, context) => {
87
75
  };
88
76
  exports.se_CreateReceiptFilterCommand = se_CreateReceiptFilterCommand;
89
77
  const se_CreateReceiptRuleCommand = async (input, context) => {
90
- const headers = {
91
- "content-type": "application/x-www-form-urlencoded",
92
- };
78
+ const headers = SHARED_HEADERS;
93
79
  let body;
94
80
  body = buildFormUrlencodedString({
95
81
  ...se_CreateReceiptRuleRequest(input, context),
@@ -100,9 +86,7 @@ const se_CreateReceiptRuleCommand = async (input, context) => {
100
86
  };
101
87
  exports.se_CreateReceiptRuleCommand = se_CreateReceiptRuleCommand;
102
88
  const se_CreateReceiptRuleSetCommand = async (input, context) => {
103
- const headers = {
104
- "content-type": "application/x-www-form-urlencoded",
105
- };
89
+ const headers = SHARED_HEADERS;
106
90
  let body;
107
91
  body = buildFormUrlencodedString({
108
92
  ...se_CreateReceiptRuleSetRequest(input, context),
@@ -113,9 +97,7 @@ const se_CreateReceiptRuleSetCommand = async (input, context) => {
113
97
  };
114
98
  exports.se_CreateReceiptRuleSetCommand = se_CreateReceiptRuleSetCommand;
115
99
  const se_CreateTemplateCommand = async (input, context) => {
116
- const headers = {
117
- "content-type": "application/x-www-form-urlencoded",
118
- };
100
+ const headers = SHARED_HEADERS;
119
101
  let body;
120
102
  body = buildFormUrlencodedString({
121
103
  ...se_CreateTemplateRequest(input, context),
@@ -126,9 +108,7 @@ const se_CreateTemplateCommand = async (input, context) => {
126
108
  };
127
109
  exports.se_CreateTemplateCommand = se_CreateTemplateCommand;
128
110
  const se_DeleteConfigurationSetCommand = async (input, context) => {
129
- const headers = {
130
- "content-type": "application/x-www-form-urlencoded",
131
- };
111
+ const headers = SHARED_HEADERS;
132
112
  let body;
133
113
  body = buildFormUrlencodedString({
134
114
  ...se_DeleteConfigurationSetRequest(input, context),
@@ -139,9 +119,7 @@ const se_DeleteConfigurationSetCommand = async (input, context) => {
139
119
  };
140
120
  exports.se_DeleteConfigurationSetCommand = se_DeleteConfigurationSetCommand;
141
121
  const se_DeleteConfigurationSetEventDestinationCommand = async (input, context) => {
142
- const headers = {
143
- "content-type": "application/x-www-form-urlencoded",
144
- };
122
+ const headers = SHARED_HEADERS;
145
123
  let body;
146
124
  body = buildFormUrlencodedString({
147
125
  ...se_DeleteConfigurationSetEventDestinationRequest(input, context),
@@ -152,9 +130,7 @@ const se_DeleteConfigurationSetEventDestinationCommand = async (input, context)
152
130
  };
153
131
  exports.se_DeleteConfigurationSetEventDestinationCommand = se_DeleteConfigurationSetEventDestinationCommand;
154
132
  const se_DeleteConfigurationSetTrackingOptionsCommand = async (input, context) => {
155
- const headers = {
156
- "content-type": "application/x-www-form-urlencoded",
157
- };
133
+ const headers = SHARED_HEADERS;
158
134
  let body;
159
135
  body = buildFormUrlencodedString({
160
136
  ...se_DeleteConfigurationSetTrackingOptionsRequest(input, context),
@@ -165,9 +141,7 @@ const se_DeleteConfigurationSetTrackingOptionsCommand = async (input, context) =
165
141
  };
166
142
  exports.se_DeleteConfigurationSetTrackingOptionsCommand = se_DeleteConfigurationSetTrackingOptionsCommand;
167
143
  const se_DeleteCustomVerificationEmailTemplateCommand = async (input, context) => {
168
- const headers = {
169
- "content-type": "application/x-www-form-urlencoded",
170
- };
144
+ const headers = SHARED_HEADERS;
171
145
  let body;
172
146
  body = buildFormUrlencodedString({
173
147
  ...se_DeleteCustomVerificationEmailTemplateRequest(input, context),
@@ -178,9 +152,7 @@ const se_DeleteCustomVerificationEmailTemplateCommand = async (input, context) =
178
152
  };
179
153
  exports.se_DeleteCustomVerificationEmailTemplateCommand = se_DeleteCustomVerificationEmailTemplateCommand;
180
154
  const se_DeleteIdentityCommand = async (input, context) => {
181
- const headers = {
182
- "content-type": "application/x-www-form-urlencoded",
183
- };
155
+ const headers = SHARED_HEADERS;
184
156
  let body;
185
157
  body = buildFormUrlencodedString({
186
158
  ...se_DeleteIdentityRequest(input, context),
@@ -191,9 +163,7 @@ const se_DeleteIdentityCommand = async (input, context) => {
191
163
  };
192
164
  exports.se_DeleteIdentityCommand = se_DeleteIdentityCommand;
193
165
  const se_DeleteIdentityPolicyCommand = async (input, context) => {
194
- const headers = {
195
- "content-type": "application/x-www-form-urlencoded",
196
- };
166
+ const headers = SHARED_HEADERS;
197
167
  let body;
198
168
  body = buildFormUrlencodedString({
199
169
  ...se_DeleteIdentityPolicyRequest(input, context),
@@ -204,9 +174,7 @@ const se_DeleteIdentityPolicyCommand = async (input, context) => {
204
174
  };
205
175
  exports.se_DeleteIdentityPolicyCommand = se_DeleteIdentityPolicyCommand;
206
176
  const se_DeleteReceiptFilterCommand = async (input, context) => {
207
- const headers = {
208
- "content-type": "application/x-www-form-urlencoded",
209
- };
177
+ const headers = SHARED_HEADERS;
210
178
  let body;
211
179
  body = buildFormUrlencodedString({
212
180
  ...se_DeleteReceiptFilterRequest(input, context),
@@ -217,9 +185,7 @@ const se_DeleteReceiptFilterCommand = async (input, context) => {
217
185
  };
218
186
  exports.se_DeleteReceiptFilterCommand = se_DeleteReceiptFilterCommand;
219
187
  const se_DeleteReceiptRuleCommand = async (input, context) => {
220
- const headers = {
221
- "content-type": "application/x-www-form-urlencoded",
222
- };
188
+ const headers = SHARED_HEADERS;
223
189
  let body;
224
190
  body = buildFormUrlencodedString({
225
191
  ...se_DeleteReceiptRuleRequest(input, context),
@@ -230,9 +196,7 @@ const se_DeleteReceiptRuleCommand = async (input, context) => {
230
196
  };
231
197
  exports.se_DeleteReceiptRuleCommand = se_DeleteReceiptRuleCommand;
232
198
  const se_DeleteReceiptRuleSetCommand = async (input, context) => {
233
- const headers = {
234
- "content-type": "application/x-www-form-urlencoded",
235
- };
199
+ const headers = SHARED_HEADERS;
236
200
  let body;
237
201
  body = buildFormUrlencodedString({
238
202
  ...se_DeleteReceiptRuleSetRequest(input, context),
@@ -243,9 +207,7 @@ const se_DeleteReceiptRuleSetCommand = async (input, context) => {
243
207
  };
244
208
  exports.se_DeleteReceiptRuleSetCommand = se_DeleteReceiptRuleSetCommand;
245
209
  const se_DeleteTemplateCommand = async (input, context) => {
246
- const headers = {
247
- "content-type": "application/x-www-form-urlencoded",
248
- };
210
+ const headers = SHARED_HEADERS;
249
211
  let body;
250
212
  body = buildFormUrlencodedString({
251
213
  ...se_DeleteTemplateRequest(input, context),
@@ -256,9 +218,7 @@ const se_DeleteTemplateCommand = async (input, context) => {
256
218
  };
257
219
  exports.se_DeleteTemplateCommand = se_DeleteTemplateCommand;
258
220
  const se_DeleteVerifiedEmailAddressCommand = async (input, context) => {
259
- const headers = {
260
- "content-type": "application/x-www-form-urlencoded",
261
- };
221
+ const headers = SHARED_HEADERS;
262
222
  let body;
263
223
  body = buildFormUrlencodedString({
264
224
  ...se_DeleteVerifiedEmailAddressRequest(input, context),
@@ -269,9 +229,7 @@ const se_DeleteVerifiedEmailAddressCommand = async (input, context) => {
269
229
  };
270
230
  exports.se_DeleteVerifiedEmailAddressCommand = se_DeleteVerifiedEmailAddressCommand;
271
231
  const se_DescribeActiveReceiptRuleSetCommand = async (input, context) => {
272
- const headers = {
273
- "content-type": "application/x-www-form-urlencoded",
274
- };
232
+ const headers = SHARED_HEADERS;
275
233
  let body;
276
234
  body = buildFormUrlencodedString({
277
235
  ...se_DescribeActiveReceiptRuleSetRequest(input, context),
@@ -282,9 +240,7 @@ const se_DescribeActiveReceiptRuleSetCommand = async (input, context) => {
282
240
  };
283
241
  exports.se_DescribeActiveReceiptRuleSetCommand = se_DescribeActiveReceiptRuleSetCommand;
284
242
  const se_DescribeConfigurationSetCommand = async (input, context) => {
285
- const headers = {
286
- "content-type": "application/x-www-form-urlencoded",
287
- };
243
+ const headers = SHARED_HEADERS;
288
244
  let body;
289
245
  body = buildFormUrlencodedString({
290
246
  ...se_DescribeConfigurationSetRequest(input, context),
@@ -295,9 +251,7 @@ const se_DescribeConfigurationSetCommand = async (input, context) => {
295
251
  };
296
252
  exports.se_DescribeConfigurationSetCommand = se_DescribeConfigurationSetCommand;
297
253
  const se_DescribeReceiptRuleCommand = async (input, context) => {
298
- const headers = {
299
- "content-type": "application/x-www-form-urlencoded",
300
- };
254
+ const headers = SHARED_HEADERS;
301
255
  let body;
302
256
  body = buildFormUrlencodedString({
303
257
  ...se_DescribeReceiptRuleRequest(input, context),
@@ -308,9 +262,7 @@ const se_DescribeReceiptRuleCommand = async (input, context) => {
308
262
  };
309
263
  exports.se_DescribeReceiptRuleCommand = se_DescribeReceiptRuleCommand;
310
264
  const se_DescribeReceiptRuleSetCommand = async (input, context) => {
311
- const headers = {
312
- "content-type": "application/x-www-form-urlencoded",
313
- };
265
+ const headers = SHARED_HEADERS;
314
266
  let body;
315
267
  body = buildFormUrlencodedString({
316
268
  ...se_DescribeReceiptRuleSetRequest(input, context),
@@ -321,9 +273,7 @@ const se_DescribeReceiptRuleSetCommand = async (input, context) => {
321
273
  };
322
274
  exports.se_DescribeReceiptRuleSetCommand = se_DescribeReceiptRuleSetCommand;
323
275
  const se_GetAccountSendingEnabledCommand = async (input, context) => {
324
- const headers = {
325
- "content-type": "application/x-www-form-urlencoded",
326
- };
276
+ const headers = SHARED_HEADERS;
327
277
  const body = buildFormUrlencodedString({
328
278
  Action: "GetAccountSendingEnabled",
329
279
  Version: "2010-12-01",
@@ -332,9 +282,7 @@ const se_GetAccountSendingEnabledCommand = async (input, context) => {
332
282
  };
333
283
  exports.se_GetAccountSendingEnabledCommand = se_GetAccountSendingEnabledCommand;
334
284
  const se_GetCustomVerificationEmailTemplateCommand = async (input, context) => {
335
- const headers = {
336
- "content-type": "application/x-www-form-urlencoded",
337
- };
285
+ const headers = SHARED_HEADERS;
338
286
  let body;
339
287
  body = buildFormUrlencodedString({
340
288
  ...se_GetCustomVerificationEmailTemplateRequest(input, context),
@@ -345,9 +293,7 @@ const se_GetCustomVerificationEmailTemplateCommand = async (input, context) => {
345
293
  };
346
294
  exports.se_GetCustomVerificationEmailTemplateCommand = se_GetCustomVerificationEmailTemplateCommand;
347
295
  const se_GetIdentityDkimAttributesCommand = async (input, context) => {
348
- const headers = {
349
- "content-type": "application/x-www-form-urlencoded",
350
- };
296
+ const headers = SHARED_HEADERS;
351
297
  let body;
352
298
  body = buildFormUrlencodedString({
353
299
  ...se_GetIdentityDkimAttributesRequest(input, context),
@@ -358,9 +304,7 @@ const se_GetIdentityDkimAttributesCommand = async (input, context) => {
358
304
  };
359
305
  exports.se_GetIdentityDkimAttributesCommand = se_GetIdentityDkimAttributesCommand;
360
306
  const se_GetIdentityMailFromDomainAttributesCommand = async (input, context) => {
361
- const headers = {
362
- "content-type": "application/x-www-form-urlencoded",
363
- };
307
+ const headers = SHARED_HEADERS;
364
308
  let body;
365
309
  body = buildFormUrlencodedString({
366
310
  ...se_GetIdentityMailFromDomainAttributesRequest(input, context),
@@ -371,9 +315,7 @@ const se_GetIdentityMailFromDomainAttributesCommand = async (input, context) =>
371
315
  };
372
316
  exports.se_GetIdentityMailFromDomainAttributesCommand = se_GetIdentityMailFromDomainAttributesCommand;
373
317
  const se_GetIdentityNotificationAttributesCommand = async (input, context) => {
374
- const headers = {
375
- "content-type": "application/x-www-form-urlencoded",
376
- };
318
+ const headers = SHARED_HEADERS;
377
319
  let body;
378
320
  body = buildFormUrlencodedString({
379
321
  ...se_GetIdentityNotificationAttributesRequest(input, context),
@@ -384,9 +326,7 @@ const se_GetIdentityNotificationAttributesCommand = async (input, context) => {
384
326
  };
385
327
  exports.se_GetIdentityNotificationAttributesCommand = se_GetIdentityNotificationAttributesCommand;
386
328
  const se_GetIdentityPoliciesCommand = async (input, context) => {
387
- const headers = {
388
- "content-type": "application/x-www-form-urlencoded",
389
- };
329
+ const headers = SHARED_HEADERS;
390
330
  let body;
391
331
  body = buildFormUrlencodedString({
392
332
  ...se_GetIdentityPoliciesRequest(input, context),
@@ -397,9 +337,7 @@ const se_GetIdentityPoliciesCommand = async (input, context) => {
397
337
  };
398
338
  exports.se_GetIdentityPoliciesCommand = se_GetIdentityPoliciesCommand;
399
339
  const se_GetIdentityVerificationAttributesCommand = async (input, context) => {
400
- const headers = {
401
- "content-type": "application/x-www-form-urlencoded",
402
- };
340
+ const headers = SHARED_HEADERS;
403
341
  let body;
404
342
  body = buildFormUrlencodedString({
405
343
  ...se_GetIdentityVerificationAttributesRequest(input, context),
@@ -410,9 +348,7 @@ const se_GetIdentityVerificationAttributesCommand = async (input, context) => {
410
348
  };
411
349
  exports.se_GetIdentityVerificationAttributesCommand = se_GetIdentityVerificationAttributesCommand;
412
350
  const se_GetSendQuotaCommand = async (input, context) => {
413
- const headers = {
414
- "content-type": "application/x-www-form-urlencoded",
415
- };
351
+ const headers = SHARED_HEADERS;
416
352
  const body = buildFormUrlencodedString({
417
353
  Action: "GetSendQuota",
418
354
  Version: "2010-12-01",
@@ -421,9 +357,7 @@ const se_GetSendQuotaCommand = async (input, context) => {
421
357
  };
422
358
  exports.se_GetSendQuotaCommand = se_GetSendQuotaCommand;
423
359
  const se_GetSendStatisticsCommand = async (input, context) => {
424
- const headers = {
425
- "content-type": "application/x-www-form-urlencoded",
426
- };
360
+ const headers = SHARED_HEADERS;
427
361
  const body = buildFormUrlencodedString({
428
362
  Action: "GetSendStatistics",
429
363
  Version: "2010-12-01",
@@ -432,9 +366,7 @@ const se_GetSendStatisticsCommand = async (input, context) => {
432
366
  };
433
367
  exports.se_GetSendStatisticsCommand = se_GetSendStatisticsCommand;
434
368
  const se_GetTemplateCommand = async (input, context) => {
435
- const headers = {
436
- "content-type": "application/x-www-form-urlencoded",
437
- };
369
+ const headers = SHARED_HEADERS;
438
370
  let body;
439
371
  body = buildFormUrlencodedString({
440
372
  ...se_GetTemplateRequest(input, context),
@@ -445,9 +377,7 @@ const se_GetTemplateCommand = async (input, context) => {
445
377
  };
446
378
  exports.se_GetTemplateCommand = se_GetTemplateCommand;
447
379
  const se_ListConfigurationSetsCommand = async (input, context) => {
448
- const headers = {
449
- "content-type": "application/x-www-form-urlencoded",
450
- };
380
+ const headers = SHARED_HEADERS;
451
381
  let body;
452
382
  body = buildFormUrlencodedString({
453
383
  ...se_ListConfigurationSetsRequest(input, context),
@@ -458,9 +388,7 @@ const se_ListConfigurationSetsCommand = async (input, context) => {
458
388
  };
459
389
  exports.se_ListConfigurationSetsCommand = se_ListConfigurationSetsCommand;
460
390
  const se_ListCustomVerificationEmailTemplatesCommand = async (input, context) => {
461
- const headers = {
462
- "content-type": "application/x-www-form-urlencoded",
463
- };
391
+ const headers = SHARED_HEADERS;
464
392
  let body;
465
393
  body = buildFormUrlencodedString({
466
394
  ...se_ListCustomVerificationEmailTemplatesRequest(input, context),
@@ -471,9 +399,7 @@ const se_ListCustomVerificationEmailTemplatesCommand = async (input, context) =>
471
399
  };
472
400
  exports.se_ListCustomVerificationEmailTemplatesCommand = se_ListCustomVerificationEmailTemplatesCommand;
473
401
  const se_ListIdentitiesCommand = async (input, context) => {
474
- const headers = {
475
- "content-type": "application/x-www-form-urlencoded",
476
- };
402
+ const headers = SHARED_HEADERS;
477
403
  let body;
478
404
  body = buildFormUrlencodedString({
479
405
  ...se_ListIdentitiesRequest(input, context),
@@ -484,9 +410,7 @@ const se_ListIdentitiesCommand = async (input, context) => {
484
410
  };
485
411
  exports.se_ListIdentitiesCommand = se_ListIdentitiesCommand;
486
412
  const se_ListIdentityPoliciesCommand = async (input, context) => {
487
- const headers = {
488
- "content-type": "application/x-www-form-urlencoded",
489
- };
413
+ const headers = SHARED_HEADERS;
490
414
  let body;
491
415
  body = buildFormUrlencodedString({
492
416
  ...se_ListIdentityPoliciesRequest(input, context),
@@ -497,9 +421,7 @@ const se_ListIdentityPoliciesCommand = async (input, context) => {
497
421
  };
498
422
  exports.se_ListIdentityPoliciesCommand = se_ListIdentityPoliciesCommand;
499
423
  const se_ListReceiptFiltersCommand = async (input, context) => {
500
- const headers = {
501
- "content-type": "application/x-www-form-urlencoded",
502
- };
424
+ const headers = SHARED_HEADERS;
503
425
  let body;
504
426
  body = buildFormUrlencodedString({
505
427
  ...se_ListReceiptFiltersRequest(input, context),
@@ -510,9 +432,7 @@ const se_ListReceiptFiltersCommand = async (input, context) => {
510
432
  };
511
433
  exports.se_ListReceiptFiltersCommand = se_ListReceiptFiltersCommand;
512
434
  const se_ListReceiptRuleSetsCommand = async (input, context) => {
513
- const headers = {
514
- "content-type": "application/x-www-form-urlencoded",
515
- };
435
+ const headers = SHARED_HEADERS;
516
436
  let body;
517
437
  body = buildFormUrlencodedString({
518
438
  ...se_ListReceiptRuleSetsRequest(input, context),
@@ -523,9 +443,7 @@ const se_ListReceiptRuleSetsCommand = async (input, context) => {
523
443
  };
524
444
  exports.se_ListReceiptRuleSetsCommand = se_ListReceiptRuleSetsCommand;
525
445
  const se_ListTemplatesCommand = async (input, context) => {
526
- const headers = {
527
- "content-type": "application/x-www-form-urlencoded",
528
- };
446
+ const headers = SHARED_HEADERS;
529
447
  let body;
530
448
  body = buildFormUrlencodedString({
531
449
  ...se_ListTemplatesRequest(input, context),
@@ -536,9 +454,7 @@ const se_ListTemplatesCommand = async (input, context) => {
536
454
  };
537
455
  exports.se_ListTemplatesCommand = se_ListTemplatesCommand;
538
456
  const se_ListVerifiedEmailAddressesCommand = async (input, context) => {
539
- const headers = {
540
- "content-type": "application/x-www-form-urlencoded",
541
- };
457
+ const headers = SHARED_HEADERS;
542
458
  const body = buildFormUrlencodedString({
543
459
  Action: "ListVerifiedEmailAddresses",
544
460
  Version: "2010-12-01",
@@ -547,9 +463,7 @@ const se_ListVerifiedEmailAddressesCommand = async (input, context) => {
547
463
  };
548
464
  exports.se_ListVerifiedEmailAddressesCommand = se_ListVerifiedEmailAddressesCommand;
549
465
  const se_PutConfigurationSetDeliveryOptionsCommand = async (input, context) => {
550
- const headers = {
551
- "content-type": "application/x-www-form-urlencoded",
552
- };
466
+ const headers = SHARED_HEADERS;
553
467
  let body;
554
468
  body = buildFormUrlencodedString({
555
469
  ...se_PutConfigurationSetDeliveryOptionsRequest(input, context),
@@ -560,9 +474,7 @@ const se_PutConfigurationSetDeliveryOptionsCommand = async (input, context) => {
560
474
  };
561
475
  exports.se_PutConfigurationSetDeliveryOptionsCommand = se_PutConfigurationSetDeliveryOptionsCommand;
562
476
  const se_PutIdentityPolicyCommand = async (input, context) => {
563
- const headers = {
564
- "content-type": "application/x-www-form-urlencoded",
565
- };
477
+ const headers = SHARED_HEADERS;
566
478
  let body;
567
479
  body = buildFormUrlencodedString({
568
480
  ...se_PutIdentityPolicyRequest(input, context),
@@ -573,9 +485,7 @@ const se_PutIdentityPolicyCommand = async (input, context) => {
573
485
  };
574
486
  exports.se_PutIdentityPolicyCommand = se_PutIdentityPolicyCommand;
575
487
  const se_ReorderReceiptRuleSetCommand = async (input, context) => {
576
- const headers = {
577
- "content-type": "application/x-www-form-urlencoded",
578
- };
488
+ const headers = SHARED_HEADERS;
579
489
  let body;
580
490
  body = buildFormUrlencodedString({
581
491
  ...se_ReorderReceiptRuleSetRequest(input, context),
@@ -586,9 +496,7 @@ const se_ReorderReceiptRuleSetCommand = async (input, context) => {
586
496
  };
587
497
  exports.se_ReorderReceiptRuleSetCommand = se_ReorderReceiptRuleSetCommand;
588
498
  const se_SendBounceCommand = async (input, context) => {
589
- const headers = {
590
- "content-type": "application/x-www-form-urlencoded",
591
- };
499
+ const headers = SHARED_HEADERS;
592
500
  let body;
593
501
  body = buildFormUrlencodedString({
594
502
  ...se_SendBounceRequest(input, context),
@@ -599,9 +507,7 @@ const se_SendBounceCommand = async (input, context) => {
599
507
  };
600
508
  exports.se_SendBounceCommand = se_SendBounceCommand;
601
509
  const se_SendBulkTemplatedEmailCommand = async (input, context) => {
602
- const headers = {
603
- "content-type": "application/x-www-form-urlencoded",
604
- };
510
+ const headers = SHARED_HEADERS;
605
511
  let body;
606
512
  body = buildFormUrlencodedString({
607
513
  ...se_SendBulkTemplatedEmailRequest(input, context),
@@ -612,9 +518,7 @@ const se_SendBulkTemplatedEmailCommand = async (input, context) => {
612
518
  };
613
519
  exports.se_SendBulkTemplatedEmailCommand = se_SendBulkTemplatedEmailCommand;
614
520
  const se_SendCustomVerificationEmailCommand = async (input, context) => {
615
- const headers = {
616
- "content-type": "application/x-www-form-urlencoded",
617
- };
521
+ const headers = SHARED_HEADERS;
618
522
  let body;
619
523
  body = buildFormUrlencodedString({
620
524
  ...se_SendCustomVerificationEmailRequest(input, context),
@@ -625,9 +529,7 @@ const se_SendCustomVerificationEmailCommand = async (input, context) => {
625
529
  };
626
530
  exports.se_SendCustomVerificationEmailCommand = se_SendCustomVerificationEmailCommand;
627
531
  const se_SendEmailCommand = async (input, context) => {
628
- const headers = {
629
- "content-type": "application/x-www-form-urlencoded",
630
- };
532
+ const headers = SHARED_HEADERS;
631
533
  let body;
632
534
  body = buildFormUrlencodedString({
633
535
  ...se_SendEmailRequest(input, context),
@@ -638,9 +540,7 @@ const se_SendEmailCommand = async (input, context) => {
638
540
  };
639
541
  exports.se_SendEmailCommand = se_SendEmailCommand;
640
542
  const se_SendRawEmailCommand = async (input, context) => {
641
- const headers = {
642
- "content-type": "application/x-www-form-urlencoded",
643
- };
543
+ const headers = SHARED_HEADERS;
644
544
  let body;
645
545
  body = buildFormUrlencodedString({
646
546
  ...se_SendRawEmailRequest(input, context),
@@ -651,9 +551,7 @@ const se_SendRawEmailCommand = async (input, context) => {
651
551
  };
652
552
  exports.se_SendRawEmailCommand = se_SendRawEmailCommand;
653
553
  const se_SendTemplatedEmailCommand = async (input, context) => {
654
- const headers = {
655
- "content-type": "application/x-www-form-urlencoded",
656
- };
554
+ const headers = SHARED_HEADERS;
657
555
  let body;
658
556
  body = buildFormUrlencodedString({
659
557
  ...se_SendTemplatedEmailRequest(input, context),
@@ -664,9 +562,7 @@ const se_SendTemplatedEmailCommand = async (input, context) => {
664
562
  };
665
563
  exports.se_SendTemplatedEmailCommand = se_SendTemplatedEmailCommand;
666
564
  const se_SetActiveReceiptRuleSetCommand = async (input, context) => {
667
- const headers = {
668
- "content-type": "application/x-www-form-urlencoded",
669
- };
565
+ const headers = SHARED_HEADERS;
670
566
  let body;
671
567
  body = buildFormUrlencodedString({
672
568
  ...se_SetActiveReceiptRuleSetRequest(input, context),
@@ -677,9 +573,7 @@ const se_SetActiveReceiptRuleSetCommand = async (input, context) => {
677
573
  };
678
574
  exports.se_SetActiveReceiptRuleSetCommand = se_SetActiveReceiptRuleSetCommand;
679
575
  const se_SetIdentityDkimEnabledCommand = async (input, context) => {
680
- const headers = {
681
- "content-type": "application/x-www-form-urlencoded",
682
- };
576
+ const headers = SHARED_HEADERS;
683
577
  let body;
684
578
  body = buildFormUrlencodedString({
685
579
  ...se_SetIdentityDkimEnabledRequest(input, context),
@@ -690,9 +584,7 @@ const se_SetIdentityDkimEnabledCommand = async (input, context) => {
690
584
  };
691
585
  exports.se_SetIdentityDkimEnabledCommand = se_SetIdentityDkimEnabledCommand;
692
586
  const se_SetIdentityFeedbackForwardingEnabledCommand = async (input, context) => {
693
- const headers = {
694
- "content-type": "application/x-www-form-urlencoded",
695
- };
587
+ const headers = SHARED_HEADERS;
696
588
  let body;
697
589
  body = buildFormUrlencodedString({
698
590
  ...se_SetIdentityFeedbackForwardingEnabledRequest(input, context),
@@ -703,9 +595,7 @@ const se_SetIdentityFeedbackForwardingEnabledCommand = async (input, context) =>
703
595
  };
704
596
  exports.se_SetIdentityFeedbackForwardingEnabledCommand = se_SetIdentityFeedbackForwardingEnabledCommand;
705
597
  const se_SetIdentityHeadersInNotificationsEnabledCommand = async (input, context) => {
706
- const headers = {
707
- "content-type": "application/x-www-form-urlencoded",
708
- };
598
+ const headers = SHARED_HEADERS;
709
599
  let body;
710
600
  body = buildFormUrlencodedString({
711
601
  ...se_SetIdentityHeadersInNotificationsEnabledRequest(input, context),
@@ -716,9 +606,7 @@ const se_SetIdentityHeadersInNotificationsEnabledCommand = async (input, context
716
606
  };
717
607
  exports.se_SetIdentityHeadersInNotificationsEnabledCommand = se_SetIdentityHeadersInNotificationsEnabledCommand;
718
608
  const se_SetIdentityMailFromDomainCommand = async (input, context) => {
719
- const headers = {
720
- "content-type": "application/x-www-form-urlencoded",
721
- };
609
+ const headers = SHARED_HEADERS;
722
610
  let body;
723
611
  body = buildFormUrlencodedString({
724
612
  ...se_SetIdentityMailFromDomainRequest(input, context),
@@ -729,9 +617,7 @@ const se_SetIdentityMailFromDomainCommand = async (input, context) => {
729
617
  };
730
618
  exports.se_SetIdentityMailFromDomainCommand = se_SetIdentityMailFromDomainCommand;
731
619
  const se_SetIdentityNotificationTopicCommand = async (input, context) => {
732
- const headers = {
733
- "content-type": "application/x-www-form-urlencoded",
734
- };
620
+ const headers = SHARED_HEADERS;
735
621
  let body;
736
622
  body = buildFormUrlencodedString({
737
623
  ...se_SetIdentityNotificationTopicRequest(input, context),
@@ -742,9 +628,7 @@ const se_SetIdentityNotificationTopicCommand = async (input, context) => {
742
628
  };
743
629
  exports.se_SetIdentityNotificationTopicCommand = se_SetIdentityNotificationTopicCommand;
744
630
  const se_SetReceiptRulePositionCommand = async (input, context) => {
745
- const headers = {
746
- "content-type": "application/x-www-form-urlencoded",
747
- };
631
+ const headers = SHARED_HEADERS;
748
632
  let body;
749
633
  body = buildFormUrlencodedString({
750
634
  ...se_SetReceiptRulePositionRequest(input, context),
@@ -755,9 +639,7 @@ const se_SetReceiptRulePositionCommand = async (input, context) => {
755
639
  };
756
640
  exports.se_SetReceiptRulePositionCommand = se_SetReceiptRulePositionCommand;
757
641
  const se_TestRenderTemplateCommand = async (input, context) => {
758
- const headers = {
759
- "content-type": "application/x-www-form-urlencoded",
760
- };
642
+ const headers = SHARED_HEADERS;
761
643
  let body;
762
644
  body = buildFormUrlencodedString({
763
645
  ...se_TestRenderTemplateRequest(input, context),
@@ -768,9 +650,7 @@ const se_TestRenderTemplateCommand = async (input, context) => {
768
650
  };
769
651
  exports.se_TestRenderTemplateCommand = se_TestRenderTemplateCommand;
770
652
  const se_UpdateAccountSendingEnabledCommand = async (input, context) => {
771
- const headers = {
772
- "content-type": "application/x-www-form-urlencoded",
773
- };
653
+ const headers = SHARED_HEADERS;
774
654
  let body;
775
655
  body = buildFormUrlencodedString({
776
656
  ...se_UpdateAccountSendingEnabledRequest(input, context),
@@ -781,9 +661,7 @@ const se_UpdateAccountSendingEnabledCommand = async (input, context) => {
781
661
  };
782
662
  exports.se_UpdateAccountSendingEnabledCommand = se_UpdateAccountSendingEnabledCommand;
783
663
  const se_UpdateConfigurationSetEventDestinationCommand = async (input, context) => {
784
- const headers = {
785
- "content-type": "application/x-www-form-urlencoded",
786
- };
664
+ const headers = SHARED_HEADERS;
787
665
  let body;
788
666
  body = buildFormUrlencodedString({
789
667
  ...se_UpdateConfigurationSetEventDestinationRequest(input, context),
@@ -794,9 +672,7 @@ const se_UpdateConfigurationSetEventDestinationCommand = async (input, context)
794
672
  };
795
673
  exports.se_UpdateConfigurationSetEventDestinationCommand = se_UpdateConfigurationSetEventDestinationCommand;
796
674
  const se_UpdateConfigurationSetReputationMetricsEnabledCommand = async (input, context) => {
797
- const headers = {
798
- "content-type": "application/x-www-form-urlencoded",
799
- };
675
+ const headers = SHARED_HEADERS;
800
676
  let body;
801
677
  body = buildFormUrlencodedString({
802
678
  ...se_UpdateConfigurationSetReputationMetricsEnabledRequest(input, context),
@@ -807,9 +683,7 @@ const se_UpdateConfigurationSetReputationMetricsEnabledCommand = async (input, c
807
683
  };
808
684
  exports.se_UpdateConfigurationSetReputationMetricsEnabledCommand = se_UpdateConfigurationSetReputationMetricsEnabledCommand;
809
685
  const se_UpdateConfigurationSetSendingEnabledCommand = async (input, context) => {
810
- const headers = {
811
- "content-type": "application/x-www-form-urlencoded",
812
- };
686
+ const headers = SHARED_HEADERS;
813
687
  let body;
814
688
  body = buildFormUrlencodedString({
815
689
  ...se_UpdateConfigurationSetSendingEnabledRequest(input, context),
@@ -820,9 +694,7 @@ const se_UpdateConfigurationSetSendingEnabledCommand = async (input, context) =>
820
694
  };
821
695
  exports.se_UpdateConfigurationSetSendingEnabledCommand = se_UpdateConfigurationSetSendingEnabledCommand;
822
696
  const se_UpdateConfigurationSetTrackingOptionsCommand = async (input, context) => {
823
- const headers = {
824
- "content-type": "application/x-www-form-urlencoded",
825
- };
697
+ const headers = SHARED_HEADERS;
826
698
  let body;
827
699
  body = buildFormUrlencodedString({
828
700
  ...se_UpdateConfigurationSetTrackingOptionsRequest(input, context),
@@ -833,9 +705,7 @@ const se_UpdateConfigurationSetTrackingOptionsCommand = async (input, context) =
833
705
  };
834
706
  exports.se_UpdateConfigurationSetTrackingOptionsCommand = se_UpdateConfigurationSetTrackingOptionsCommand;
835
707
  const se_UpdateCustomVerificationEmailTemplateCommand = async (input, context) => {
836
- const headers = {
837
- "content-type": "application/x-www-form-urlencoded",
838
- };
708
+ const headers = SHARED_HEADERS;
839
709
  let body;
840
710
  body = buildFormUrlencodedString({
841
711
  ...se_UpdateCustomVerificationEmailTemplateRequest(input, context),
@@ -846,9 +716,7 @@ const se_UpdateCustomVerificationEmailTemplateCommand = async (input, context) =
846
716
  };
847
717
  exports.se_UpdateCustomVerificationEmailTemplateCommand = se_UpdateCustomVerificationEmailTemplateCommand;
848
718
  const se_UpdateReceiptRuleCommand = async (input, context) => {
849
- const headers = {
850
- "content-type": "application/x-www-form-urlencoded",
851
- };
719
+ const headers = SHARED_HEADERS;
852
720
  let body;
853
721
  body = buildFormUrlencodedString({
854
722
  ...se_UpdateReceiptRuleRequest(input, context),
@@ -859,9 +727,7 @@ const se_UpdateReceiptRuleCommand = async (input, context) => {
859
727
  };
860
728
  exports.se_UpdateReceiptRuleCommand = se_UpdateReceiptRuleCommand;
861
729
  const se_UpdateTemplateCommand = async (input, context) => {
862
- const headers = {
863
- "content-type": "application/x-www-form-urlencoded",
864
- };
730
+ const headers = SHARED_HEADERS;
865
731
  let body;
866
732
  body = buildFormUrlencodedString({
867
733
  ...se_UpdateTemplateRequest(input, context),
@@ -872,9 +738,7 @@ const se_UpdateTemplateCommand = async (input, context) => {
872
738
  };
873
739
  exports.se_UpdateTemplateCommand = se_UpdateTemplateCommand;
874
740
  const se_VerifyDomainDkimCommand = async (input, context) => {
875
- const headers = {
876
- "content-type": "application/x-www-form-urlencoded",
877
- };
741
+ const headers = SHARED_HEADERS;
878
742
  let body;
879
743
  body = buildFormUrlencodedString({
880
744
  ...se_VerifyDomainDkimRequest(input, context),
@@ -885,9 +749,7 @@ const se_VerifyDomainDkimCommand = async (input, context) => {
885
749
  };
886
750
  exports.se_VerifyDomainDkimCommand = se_VerifyDomainDkimCommand;
887
751
  const se_VerifyDomainIdentityCommand = async (input, context) => {
888
- const headers = {
889
- "content-type": "application/x-www-form-urlencoded",
890
- };
752
+ const headers = SHARED_HEADERS;
891
753
  let body;
892
754
  body = buildFormUrlencodedString({
893
755
  ...se_VerifyDomainIdentityRequest(input, context),
@@ -898,9 +760,7 @@ const se_VerifyDomainIdentityCommand = async (input, context) => {
898
760
  };
899
761
  exports.se_VerifyDomainIdentityCommand = se_VerifyDomainIdentityCommand;
900
762
  const se_VerifyEmailAddressCommand = async (input, context) => {
901
- const headers = {
902
- "content-type": "application/x-www-form-urlencoded",
903
- };
763
+ const headers = SHARED_HEADERS;
904
764
  let body;
905
765
  body = buildFormUrlencodedString({
906
766
  ...se_VerifyEmailAddressRequest(input, context),
@@ -911,9 +771,7 @@ const se_VerifyEmailAddressCommand = async (input, context) => {
911
771
  };
912
772
  exports.se_VerifyEmailAddressCommand = se_VerifyEmailAddressCommand;
913
773
  const se_VerifyEmailIdentityCommand = async (input, context) => {
914
- const headers = {
915
- "content-type": "application/x-www-form-urlencoded",
916
- };
774
+ const headers = SHARED_HEADERS;
917
775
  let body;
918
776
  body = buildFormUrlencodedString({
919
777
  ...se_VerifyEmailIdentityRequest(input, context),
@@ -934,7 +792,7 @@ const de_CloneReceiptRuleSetCommand = async (output, context) => {
934
792
  $metadata: deserializeMetadata(output),
935
793
  ...contents,
936
794
  };
937
- return Promise.resolve(response);
795
+ return response;
938
796
  };
939
797
  exports.de_CloneReceiptRuleSetCommand = de_CloneReceiptRuleSetCommand;
940
798
  const de_CloneReceiptRuleSetCommandError = async (output, context) => {
@@ -955,10 +813,9 @@ const de_CloneReceiptRuleSetCommandError = async (output, context) => {
955
813
  throw await de_RuleSetDoesNotExistExceptionRes(parsedOutput, context);
956
814
  default:
957
815
  const parsedBody = parsedOutput.body;
958
- (0, smithy_client_1.throwDefaultError)({
816
+ return throwDefaultError({
959
817
  output,
960
818
  parsedBody: parsedBody.Error,
961
- exceptionCtor: SESServiceException_1.SESServiceException,
962
819
  errorCode,
963
820
  });
964
821
  }
@@ -974,7 +831,7 @@ const de_CreateConfigurationSetCommand = async (output, context) => {
974
831
  $metadata: deserializeMetadata(output),
975
832
  ...contents,
976
833
  };
977
- return Promise.resolve(response);
834
+ return response;
978
835
  };
979
836
  exports.de_CreateConfigurationSetCommand = de_CreateConfigurationSetCommand;
980
837
  const de_CreateConfigurationSetCommandError = async (output, context) => {
@@ -995,10 +852,9 @@ const de_CreateConfigurationSetCommandError = async (output, context) => {
995
852
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
996
853
  default:
997
854
  const parsedBody = parsedOutput.body;
998
- (0, smithy_client_1.throwDefaultError)({
855
+ return throwDefaultError({
999
856
  output,
1000
857
  parsedBody: parsedBody.Error,
1001
- exceptionCtor: SESServiceException_1.SESServiceException,
1002
858
  errorCode,
1003
859
  });
1004
860
  }
@@ -1014,7 +870,7 @@ const de_CreateConfigurationSetEventDestinationCommand = async (output, context)
1014
870
  $metadata: deserializeMetadata(output),
1015
871
  ...contents,
1016
872
  };
1017
- return Promise.resolve(response);
873
+ return response;
1018
874
  };
1019
875
  exports.de_CreateConfigurationSetEventDestinationCommand = de_CreateConfigurationSetEventDestinationCommand;
1020
876
  const de_CreateConfigurationSetEventDestinationCommandError = async (output, context) => {
@@ -1044,10 +900,9 @@ const de_CreateConfigurationSetEventDestinationCommandError = async (output, con
1044
900
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
1045
901
  default:
1046
902
  const parsedBody = parsedOutput.body;
1047
- (0, smithy_client_1.throwDefaultError)({
903
+ return throwDefaultError({
1048
904
  output,
1049
905
  parsedBody: parsedBody.Error,
1050
- exceptionCtor: SESServiceException_1.SESServiceException,
1051
906
  errorCode,
1052
907
  });
1053
908
  }
@@ -1063,7 +918,7 @@ const de_CreateConfigurationSetTrackingOptionsCommand = async (output, context)
1063
918
  $metadata: deserializeMetadata(output),
1064
919
  ...contents,
1065
920
  };
1066
- return Promise.resolve(response);
921
+ return response;
1067
922
  };
1068
923
  exports.de_CreateConfigurationSetTrackingOptionsCommand = de_CreateConfigurationSetTrackingOptionsCommand;
1069
924
  const de_CreateConfigurationSetTrackingOptionsCommandError = async (output, context) => {
@@ -1084,10 +939,9 @@ const de_CreateConfigurationSetTrackingOptionsCommandError = async (output, cont
1084
939
  throw await de_TrackingOptionsAlreadyExistsExceptionRes(parsedOutput, context);
1085
940
  default:
1086
941
  const parsedBody = parsedOutput.body;
1087
- (0, smithy_client_1.throwDefaultError)({
942
+ return throwDefaultError({
1088
943
  output,
1089
944
  parsedBody: parsedBody.Error,
1090
- exceptionCtor: SESServiceException_1.SESServiceException,
1091
945
  errorCode,
1092
946
  });
1093
947
  }
@@ -1100,7 +954,7 @@ const de_CreateCustomVerificationEmailTemplateCommand = async (output, context)
1100
954
  const response = {
1101
955
  $metadata: deserializeMetadata(output),
1102
956
  };
1103
- return Promise.resolve(response);
957
+ return response;
1104
958
  };
1105
959
  exports.de_CreateCustomVerificationEmailTemplateCommand = de_CreateCustomVerificationEmailTemplateCommand;
1106
960
  const de_CreateCustomVerificationEmailTemplateCommandError = async (output, context) => {
@@ -1124,10 +978,9 @@ const de_CreateCustomVerificationEmailTemplateCommandError = async (output, cont
1124
978
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
1125
979
  default:
1126
980
  const parsedBody = parsedOutput.body;
1127
- (0, smithy_client_1.throwDefaultError)({
981
+ return throwDefaultError({
1128
982
  output,
1129
983
  parsedBody: parsedBody.Error,
1130
- exceptionCtor: SESServiceException_1.SESServiceException,
1131
984
  errorCode,
1132
985
  });
1133
986
  }
@@ -1143,7 +996,7 @@ const de_CreateReceiptFilterCommand = async (output, context) => {
1143
996
  $metadata: deserializeMetadata(output),
1144
997
  ...contents,
1145
998
  };
1146
- return Promise.resolve(response);
999
+ return response;
1147
1000
  };
1148
1001
  exports.de_CreateReceiptFilterCommand = de_CreateReceiptFilterCommand;
1149
1002
  const de_CreateReceiptFilterCommandError = async (output, context) => {
@@ -1161,10 +1014,9 @@ const de_CreateReceiptFilterCommandError = async (output, context) => {
1161
1014
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
1162
1015
  default:
1163
1016
  const parsedBody = parsedOutput.body;
1164
- (0, smithy_client_1.throwDefaultError)({
1017
+ return throwDefaultError({
1165
1018
  output,
1166
1019
  parsedBody: parsedBody.Error,
1167
- exceptionCtor: SESServiceException_1.SESServiceException,
1168
1020
  errorCode,
1169
1021
  });
1170
1022
  }
@@ -1180,7 +1032,7 @@ const de_CreateReceiptRuleCommand = async (output, context) => {
1180
1032
  $metadata: deserializeMetadata(output),
1181
1033
  ...contents,
1182
1034
  };
1183
- return Promise.resolve(response);
1035
+ return response;
1184
1036
  };
1185
1037
  exports.de_CreateReceiptRuleCommand = de_CreateReceiptRuleCommand;
1186
1038
  const de_CreateReceiptRuleCommandError = async (output, context) => {
@@ -1213,10 +1065,9 @@ const de_CreateReceiptRuleCommandError = async (output, context) => {
1213
1065
  throw await de_RuleSetDoesNotExistExceptionRes(parsedOutput, context);
1214
1066
  default:
1215
1067
  const parsedBody = parsedOutput.body;
1216
- (0, smithy_client_1.throwDefaultError)({
1068
+ return throwDefaultError({
1217
1069
  output,
1218
1070
  parsedBody: parsedBody.Error,
1219
- exceptionCtor: SESServiceException_1.SESServiceException,
1220
1071
  errorCode,
1221
1072
  });
1222
1073
  }
@@ -1232,7 +1083,7 @@ const de_CreateReceiptRuleSetCommand = async (output, context) => {
1232
1083
  $metadata: deserializeMetadata(output),
1233
1084
  ...contents,
1234
1085
  };
1235
- return Promise.resolve(response);
1086
+ return response;
1236
1087
  };
1237
1088
  exports.de_CreateReceiptRuleSetCommand = de_CreateReceiptRuleSetCommand;
1238
1089
  const de_CreateReceiptRuleSetCommandError = async (output, context) => {
@@ -1250,10 +1101,9 @@ const de_CreateReceiptRuleSetCommandError = async (output, context) => {
1250
1101
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
1251
1102
  default:
1252
1103
  const parsedBody = parsedOutput.body;
1253
- (0, smithy_client_1.throwDefaultError)({
1104
+ return throwDefaultError({
1254
1105
  output,
1255
1106
  parsedBody: parsedBody.Error,
1256
- exceptionCtor: SESServiceException_1.SESServiceException,
1257
1107
  errorCode,
1258
1108
  });
1259
1109
  }
@@ -1269,7 +1119,7 @@ const de_CreateTemplateCommand = async (output, context) => {
1269
1119
  $metadata: deserializeMetadata(output),
1270
1120
  ...contents,
1271
1121
  };
1272
- return Promise.resolve(response);
1122
+ return response;
1273
1123
  };
1274
1124
  exports.de_CreateTemplateCommand = de_CreateTemplateCommand;
1275
1125
  const de_CreateTemplateCommandError = async (output, context) => {
@@ -1290,10 +1140,9 @@ const de_CreateTemplateCommandError = async (output, context) => {
1290
1140
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
1291
1141
  default:
1292
1142
  const parsedBody = parsedOutput.body;
1293
- (0, smithy_client_1.throwDefaultError)({
1143
+ return throwDefaultError({
1294
1144
  output,
1295
1145
  parsedBody: parsedBody.Error,
1296
- exceptionCtor: SESServiceException_1.SESServiceException,
1297
1146
  errorCode,
1298
1147
  });
1299
1148
  }
@@ -1309,7 +1158,7 @@ const de_DeleteConfigurationSetCommand = async (output, context) => {
1309
1158
  $metadata: deserializeMetadata(output),
1310
1159
  ...contents,
1311
1160
  };
1312
- return Promise.resolve(response);
1161
+ return response;
1313
1162
  };
1314
1163
  exports.de_DeleteConfigurationSetCommand = de_DeleteConfigurationSetCommand;
1315
1164
  const de_DeleteConfigurationSetCommandError = async (output, context) => {
@@ -1324,10 +1173,9 @@ const de_DeleteConfigurationSetCommandError = async (output, context) => {
1324
1173
  throw await de_ConfigurationSetDoesNotExistExceptionRes(parsedOutput, context);
1325
1174
  default:
1326
1175
  const parsedBody = parsedOutput.body;
1327
- (0, smithy_client_1.throwDefaultError)({
1176
+ return throwDefaultError({
1328
1177
  output,
1329
1178
  parsedBody: parsedBody.Error,
1330
- exceptionCtor: SESServiceException_1.SESServiceException,
1331
1179
  errorCode,
1332
1180
  });
1333
1181
  }
@@ -1343,7 +1191,7 @@ const de_DeleteConfigurationSetEventDestinationCommand = async (output, context)
1343
1191
  $metadata: deserializeMetadata(output),
1344
1192
  ...contents,
1345
1193
  };
1346
- return Promise.resolve(response);
1194
+ return response;
1347
1195
  };
1348
1196
  exports.de_DeleteConfigurationSetEventDestinationCommand = de_DeleteConfigurationSetEventDestinationCommand;
1349
1197
  const de_DeleteConfigurationSetEventDestinationCommandError = async (output, context) => {
@@ -1361,10 +1209,9 @@ const de_DeleteConfigurationSetEventDestinationCommandError = async (output, con
1361
1209
  throw await de_EventDestinationDoesNotExistExceptionRes(parsedOutput, context);
1362
1210
  default:
1363
1211
  const parsedBody = parsedOutput.body;
1364
- (0, smithy_client_1.throwDefaultError)({
1212
+ return throwDefaultError({
1365
1213
  output,
1366
1214
  parsedBody: parsedBody.Error,
1367
- exceptionCtor: SESServiceException_1.SESServiceException,
1368
1215
  errorCode,
1369
1216
  });
1370
1217
  }
@@ -1380,7 +1227,7 @@ const de_DeleteConfigurationSetTrackingOptionsCommand = async (output, context)
1380
1227
  $metadata: deserializeMetadata(output),
1381
1228
  ...contents,
1382
1229
  };
1383
- return Promise.resolve(response);
1230
+ return response;
1384
1231
  };
1385
1232
  exports.de_DeleteConfigurationSetTrackingOptionsCommand = de_DeleteConfigurationSetTrackingOptionsCommand;
1386
1233
  const de_DeleteConfigurationSetTrackingOptionsCommandError = async (output, context) => {
@@ -1398,10 +1245,9 @@ const de_DeleteConfigurationSetTrackingOptionsCommandError = async (output, cont
1398
1245
  throw await de_TrackingOptionsDoesNotExistExceptionRes(parsedOutput, context);
1399
1246
  default:
1400
1247
  const parsedBody = parsedOutput.body;
1401
- (0, smithy_client_1.throwDefaultError)({
1248
+ return throwDefaultError({
1402
1249
  output,
1403
1250
  parsedBody: parsedBody.Error,
1404
- exceptionCtor: SESServiceException_1.SESServiceException,
1405
1251
  errorCode,
1406
1252
  });
1407
1253
  }
@@ -1414,7 +1260,7 @@ const de_DeleteCustomVerificationEmailTemplateCommand = async (output, context)
1414
1260
  const response = {
1415
1261
  $metadata: deserializeMetadata(output),
1416
1262
  };
1417
- return Promise.resolve(response);
1263
+ return response;
1418
1264
  };
1419
1265
  exports.de_DeleteCustomVerificationEmailTemplateCommand = de_DeleteCustomVerificationEmailTemplateCommand;
1420
1266
  const de_DeleteCustomVerificationEmailTemplateCommandError = async (output, context) => {
@@ -1424,10 +1270,9 @@ const de_DeleteCustomVerificationEmailTemplateCommandError = async (output, cont
1424
1270
  };
1425
1271
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1426
1272
  const parsedBody = parsedOutput.body;
1427
- (0, smithy_client_1.throwDefaultError)({
1273
+ return throwDefaultError({
1428
1274
  output,
1429
1275
  parsedBody: parsedBody.Error,
1430
- exceptionCtor: SESServiceException_1.SESServiceException,
1431
1276
  errorCode,
1432
1277
  });
1433
1278
  };
@@ -1442,7 +1287,7 @@ const de_DeleteIdentityCommand = async (output, context) => {
1442
1287
  $metadata: deserializeMetadata(output),
1443
1288
  ...contents,
1444
1289
  };
1445
- return Promise.resolve(response);
1290
+ return response;
1446
1291
  };
1447
1292
  exports.de_DeleteIdentityCommand = de_DeleteIdentityCommand;
1448
1293
  const de_DeleteIdentityCommandError = async (output, context) => {
@@ -1452,10 +1297,9 @@ const de_DeleteIdentityCommandError = async (output, context) => {
1452
1297
  };
1453
1298
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1454
1299
  const parsedBody = parsedOutput.body;
1455
- (0, smithy_client_1.throwDefaultError)({
1300
+ return throwDefaultError({
1456
1301
  output,
1457
1302
  parsedBody: parsedBody.Error,
1458
- exceptionCtor: SESServiceException_1.SESServiceException,
1459
1303
  errorCode,
1460
1304
  });
1461
1305
  };
@@ -1470,7 +1314,7 @@ const de_DeleteIdentityPolicyCommand = async (output, context) => {
1470
1314
  $metadata: deserializeMetadata(output),
1471
1315
  ...contents,
1472
1316
  };
1473
- return Promise.resolve(response);
1317
+ return response;
1474
1318
  };
1475
1319
  exports.de_DeleteIdentityPolicyCommand = de_DeleteIdentityPolicyCommand;
1476
1320
  const de_DeleteIdentityPolicyCommandError = async (output, context) => {
@@ -1480,10 +1324,9 @@ const de_DeleteIdentityPolicyCommandError = async (output, context) => {
1480
1324
  };
1481
1325
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1482
1326
  const parsedBody = parsedOutput.body;
1483
- (0, smithy_client_1.throwDefaultError)({
1327
+ return throwDefaultError({
1484
1328
  output,
1485
1329
  parsedBody: parsedBody.Error,
1486
- exceptionCtor: SESServiceException_1.SESServiceException,
1487
1330
  errorCode,
1488
1331
  });
1489
1332
  };
@@ -1498,7 +1341,7 @@ const de_DeleteReceiptFilterCommand = async (output, context) => {
1498
1341
  $metadata: deserializeMetadata(output),
1499
1342
  ...contents,
1500
1343
  };
1501
- return Promise.resolve(response);
1344
+ return response;
1502
1345
  };
1503
1346
  exports.de_DeleteReceiptFilterCommand = de_DeleteReceiptFilterCommand;
1504
1347
  const de_DeleteReceiptFilterCommandError = async (output, context) => {
@@ -1508,10 +1351,9 @@ const de_DeleteReceiptFilterCommandError = async (output, context) => {
1508
1351
  };
1509
1352
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1510
1353
  const parsedBody = parsedOutput.body;
1511
- (0, smithy_client_1.throwDefaultError)({
1354
+ return throwDefaultError({
1512
1355
  output,
1513
1356
  parsedBody: parsedBody.Error,
1514
- exceptionCtor: SESServiceException_1.SESServiceException,
1515
1357
  errorCode,
1516
1358
  });
1517
1359
  };
@@ -1526,7 +1368,7 @@ const de_DeleteReceiptRuleCommand = async (output, context) => {
1526
1368
  $metadata: deserializeMetadata(output),
1527
1369
  ...contents,
1528
1370
  };
1529
- return Promise.resolve(response);
1371
+ return response;
1530
1372
  };
1531
1373
  exports.de_DeleteReceiptRuleCommand = de_DeleteReceiptRuleCommand;
1532
1374
  const de_DeleteReceiptRuleCommandError = async (output, context) => {
@@ -1541,10 +1383,9 @@ const de_DeleteReceiptRuleCommandError = async (output, context) => {
1541
1383
  throw await de_RuleSetDoesNotExistExceptionRes(parsedOutput, context);
1542
1384
  default:
1543
1385
  const parsedBody = parsedOutput.body;
1544
- (0, smithy_client_1.throwDefaultError)({
1386
+ return throwDefaultError({
1545
1387
  output,
1546
1388
  parsedBody: parsedBody.Error,
1547
- exceptionCtor: SESServiceException_1.SESServiceException,
1548
1389
  errorCode,
1549
1390
  });
1550
1391
  }
@@ -1560,7 +1401,7 @@ const de_DeleteReceiptRuleSetCommand = async (output, context) => {
1560
1401
  $metadata: deserializeMetadata(output),
1561
1402
  ...contents,
1562
1403
  };
1563
- return Promise.resolve(response);
1404
+ return response;
1564
1405
  };
1565
1406
  exports.de_DeleteReceiptRuleSetCommand = de_DeleteReceiptRuleSetCommand;
1566
1407
  const de_DeleteReceiptRuleSetCommandError = async (output, context) => {
@@ -1575,10 +1416,9 @@ const de_DeleteReceiptRuleSetCommandError = async (output, context) => {
1575
1416
  throw await de_CannotDeleteExceptionRes(parsedOutput, context);
1576
1417
  default:
1577
1418
  const parsedBody = parsedOutput.body;
1578
- (0, smithy_client_1.throwDefaultError)({
1419
+ return throwDefaultError({
1579
1420
  output,
1580
1421
  parsedBody: parsedBody.Error,
1581
- exceptionCtor: SESServiceException_1.SESServiceException,
1582
1422
  errorCode,
1583
1423
  });
1584
1424
  }
@@ -1594,7 +1434,7 @@ const de_DeleteTemplateCommand = async (output, context) => {
1594
1434
  $metadata: deserializeMetadata(output),
1595
1435
  ...contents,
1596
1436
  };
1597
- return Promise.resolve(response);
1437
+ return response;
1598
1438
  };
1599
1439
  exports.de_DeleteTemplateCommand = de_DeleteTemplateCommand;
1600
1440
  const de_DeleteTemplateCommandError = async (output, context) => {
@@ -1604,10 +1444,9 @@ const de_DeleteTemplateCommandError = async (output, context) => {
1604
1444
  };
1605
1445
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1606
1446
  const parsedBody = parsedOutput.body;
1607
- (0, smithy_client_1.throwDefaultError)({
1447
+ return throwDefaultError({
1608
1448
  output,
1609
1449
  parsedBody: parsedBody.Error,
1610
- exceptionCtor: SESServiceException_1.SESServiceException,
1611
1450
  errorCode,
1612
1451
  });
1613
1452
  };
@@ -1619,7 +1458,7 @@ const de_DeleteVerifiedEmailAddressCommand = async (output, context) => {
1619
1458
  const response = {
1620
1459
  $metadata: deserializeMetadata(output),
1621
1460
  };
1622
- return Promise.resolve(response);
1461
+ return response;
1623
1462
  };
1624
1463
  exports.de_DeleteVerifiedEmailAddressCommand = de_DeleteVerifiedEmailAddressCommand;
1625
1464
  const de_DeleteVerifiedEmailAddressCommandError = async (output, context) => {
@@ -1629,10 +1468,9 @@ const de_DeleteVerifiedEmailAddressCommandError = async (output, context) => {
1629
1468
  };
1630
1469
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1631
1470
  const parsedBody = parsedOutput.body;
1632
- (0, smithy_client_1.throwDefaultError)({
1471
+ return throwDefaultError({
1633
1472
  output,
1634
1473
  parsedBody: parsedBody.Error,
1635
- exceptionCtor: SESServiceException_1.SESServiceException,
1636
1474
  errorCode,
1637
1475
  });
1638
1476
  };
@@ -1647,7 +1485,7 @@ const de_DescribeActiveReceiptRuleSetCommand = async (output, context) => {
1647
1485
  $metadata: deserializeMetadata(output),
1648
1486
  ...contents,
1649
1487
  };
1650
- return Promise.resolve(response);
1488
+ return response;
1651
1489
  };
1652
1490
  exports.de_DescribeActiveReceiptRuleSetCommand = de_DescribeActiveReceiptRuleSetCommand;
1653
1491
  const de_DescribeActiveReceiptRuleSetCommandError = async (output, context) => {
@@ -1657,10 +1495,9 @@ const de_DescribeActiveReceiptRuleSetCommandError = async (output, context) => {
1657
1495
  };
1658
1496
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1659
1497
  const parsedBody = parsedOutput.body;
1660
- (0, smithy_client_1.throwDefaultError)({
1498
+ return throwDefaultError({
1661
1499
  output,
1662
1500
  parsedBody: parsedBody.Error,
1663
- exceptionCtor: SESServiceException_1.SESServiceException,
1664
1501
  errorCode,
1665
1502
  });
1666
1503
  };
@@ -1675,7 +1512,7 @@ const de_DescribeConfigurationSetCommand = async (output, context) => {
1675
1512
  $metadata: deserializeMetadata(output),
1676
1513
  ...contents,
1677
1514
  };
1678
- return Promise.resolve(response);
1515
+ return response;
1679
1516
  };
1680
1517
  exports.de_DescribeConfigurationSetCommand = de_DescribeConfigurationSetCommand;
1681
1518
  const de_DescribeConfigurationSetCommandError = async (output, context) => {
@@ -1690,10 +1527,9 @@ const de_DescribeConfigurationSetCommandError = async (output, context) => {
1690
1527
  throw await de_ConfigurationSetDoesNotExistExceptionRes(parsedOutput, context);
1691
1528
  default:
1692
1529
  const parsedBody = parsedOutput.body;
1693
- (0, smithy_client_1.throwDefaultError)({
1530
+ return throwDefaultError({
1694
1531
  output,
1695
1532
  parsedBody: parsedBody.Error,
1696
- exceptionCtor: SESServiceException_1.SESServiceException,
1697
1533
  errorCode,
1698
1534
  });
1699
1535
  }
@@ -1709,7 +1545,7 @@ const de_DescribeReceiptRuleCommand = async (output, context) => {
1709
1545
  $metadata: deserializeMetadata(output),
1710
1546
  ...contents,
1711
1547
  };
1712
- return Promise.resolve(response);
1548
+ return response;
1713
1549
  };
1714
1550
  exports.de_DescribeReceiptRuleCommand = de_DescribeReceiptRuleCommand;
1715
1551
  const de_DescribeReceiptRuleCommandError = async (output, context) => {
@@ -1727,10 +1563,9 @@ const de_DescribeReceiptRuleCommandError = async (output, context) => {
1727
1563
  throw await de_RuleSetDoesNotExistExceptionRes(parsedOutput, context);
1728
1564
  default:
1729
1565
  const parsedBody = parsedOutput.body;
1730
- (0, smithy_client_1.throwDefaultError)({
1566
+ return throwDefaultError({
1731
1567
  output,
1732
1568
  parsedBody: parsedBody.Error,
1733
- exceptionCtor: SESServiceException_1.SESServiceException,
1734
1569
  errorCode,
1735
1570
  });
1736
1571
  }
@@ -1746,7 +1581,7 @@ const de_DescribeReceiptRuleSetCommand = async (output, context) => {
1746
1581
  $metadata: deserializeMetadata(output),
1747
1582
  ...contents,
1748
1583
  };
1749
- return Promise.resolve(response);
1584
+ return response;
1750
1585
  };
1751
1586
  exports.de_DescribeReceiptRuleSetCommand = de_DescribeReceiptRuleSetCommand;
1752
1587
  const de_DescribeReceiptRuleSetCommandError = async (output, context) => {
@@ -1761,10 +1596,9 @@ const de_DescribeReceiptRuleSetCommandError = async (output, context) => {
1761
1596
  throw await de_RuleSetDoesNotExistExceptionRes(parsedOutput, context);
1762
1597
  default:
1763
1598
  const parsedBody = parsedOutput.body;
1764
- (0, smithy_client_1.throwDefaultError)({
1599
+ return throwDefaultError({
1765
1600
  output,
1766
1601
  parsedBody: parsedBody.Error,
1767
- exceptionCtor: SESServiceException_1.SESServiceException,
1768
1602
  errorCode,
1769
1603
  });
1770
1604
  }
@@ -1780,7 +1614,7 @@ const de_GetAccountSendingEnabledCommand = async (output, context) => {
1780
1614
  $metadata: deserializeMetadata(output),
1781
1615
  ...contents,
1782
1616
  };
1783
- return Promise.resolve(response);
1617
+ return response;
1784
1618
  };
1785
1619
  exports.de_GetAccountSendingEnabledCommand = de_GetAccountSendingEnabledCommand;
1786
1620
  const de_GetAccountSendingEnabledCommandError = async (output, context) => {
@@ -1790,10 +1624,9 @@ const de_GetAccountSendingEnabledCommandError = async (output, context) => {
1790
1624
  };
1791
1625
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1792
1626
  const parsedBody = parsedOutput.body;
1793
- (0, smithy_client_1.throwDefaultError)({
1627
+ return throwDefaultError({
1794
1628
  output,
1795
1629
  parsedBody: parsedBody.Error,
1796
- exceptionCtor: SESServiceException_1.SESServiceException,
1797
1630
  errorCode,
1798
1631
  });
1799
1632
  };
@@ -1808,7 +1641,7 @@ const de_GetCustomVerificationEmailTemplateCommand = async (output, context) =>
1808
1641
  $metadata: deserializeMetadata(output),
1809
1642
  ...contents,
1810
1643
  };
1811
- return Promise.resolve(response);
1644
+ return response;
1812
1645
  };
1813
1646
  exports.de_GetCustomVerificationEmailTemplateCommand = de_GetCustomVerificationEmailTemplateCommand;
1814
1647
  const de_GetCustomVerificationEmailTemplateCommandError = async (output, context) => {
@@ -1823,10 +1656,9 @@ const de_GetCustomVerificationEmailTemplateCommandError = async (output, context
1823
1656
  throw await de_CustomVerificationEmailTemplateDoesNotExistExceptionRes(parsedOutput, context);
1824
1657
  default:
1825
1658
  const parsedBody = parsedOutput.body;
1826
- (0, smithy_client_1.throwDefaultError)({
1659
+ return throwDefaultError({
1827
1660
  output,
1828
1661
  parsedBody: parsedBody.Error,
1829
- exceptionCtor: SESServiceException_1.SESServiceException,
1830
1662
  errorCode,
1831
1663
  });
1832
1664
  }
@@ -1842,7 +1674,7 @@ const de_GetIdentityDkimAttributesCommand = async (output, context) => {
1842
1674
  $metadata: deserializeMetadata(output),
1843
1675
  ...contents,
1844
1676
  };
1845
- return Promise.resolve(response);
1677
+ return response;
1846
1678
  };
1847
1679
  exports.de_GetIdentityDkimAttributesCommand = de_GetIdentityDkimAttributesCommand;
1848
1680
  const de_GetIdentityDkimAttributesCommandError = async (output, context) => {
@@ -1852,10 +1684,9 @@ const de_GetIdentityDkimAttributesCommandError = async (output, context) => {
1852
1684
  };
1853
1685
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1854
1686
  const parsedBody = parsedOutput.body;
1855
- (0, smithy_client_1.throwDefaultError)({
1687
+ return throwDefaultError({
1856
1688
  output,
1857
1689
  parsedBody: parsedBody.Error,
1858
- exceptionCtor: SESServiceException_1.SESServiceException,
1859
1690
  errorCode,
1860
1691
  });
1861
1692
  };
@@ -1870,7 +1701,7 @@ const de_GetIdentityMailFromDomainAttributesCommand = async (output, context) =>
1870
1701
  $metadata: deserializeMetadata(output),
1871
1702
  ...contents,
1872
1703
  };
1873
- return Promise.resolve(response);
1704
+ return response;
1874
1705
  };
1875
1706
  exports.de_GetIdentityMailFromDomainAttributesCommand = de_GetIdentityMailFromDomainAttributesCommand;
1876
1707
  const de_GetIdentityMailFromDomainAttributesCommandError = async (output, context) => {
@@ -1880,10 +1711,9 @@ const de_GetIdentityMailFromDomainAttributesCommandError = async (output, contex
1880
1711
  };
1881
1712
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1882
1713
  const parsedBody = parsedOutput.body;
1883
- (0, smithy_client_1.throwDefaultError)({
1714
+ return throwDefaultError({
1884
1715
  output,
1885
1716
  parsedBody: parsedBody.Error,
1886
- exceptionCtor: SESServiceException_1.SESServiceException,
1887
1717
  errorCode,
1888
1718
  });
1889
1719
  };
@@ -1898,7 +1728,7 @@ const de_GetIdentityNotificationAttributesCommand = async (output, context) => {
1898
1728
  $metadata: deserializeMetadata(output),
1899
1729
  ...contents,
1900
1730
  };
1901
- return Promise.resolve(response);
1731
+ return response;
1902
1732
  };
1903
1733
  exports.de_GetIdentityNotificationAttributesCommand = de_GetIdentityNotificationAttributesCommand;
1904
1734
  const de_GetIdentityNotificationAttributesCommandError = async (output, context) => {
@@ -1908,10 +1738,9 @@ const de_GetIdentityNotificationAttributesCommandError = async (output, context)
1908
1738
  };
1909
1739
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1910
1740
  const parsedBody = parsedOutput.body;
1911
- (0, smithy_client_1.throwDefaultError)({
1741
+ return throwDefaultError({
1912
1742
  output,
1913
1743
  parsedBody: parsedBody.Error,
1914
- exceptionCtor: SESServiceException_1.SESServiceException,
1915
1744
  errorCode,
1916
1745
  });
1917
1746
  };
@@ -1926,7 +1755,7 @@ const de_GetIdentityPoliciesCommand = async (output, context) => {
1926
1755
  $metadata: deserializeMetadata(output),
1927
1756
  ...contents,
1928
1757
  };
1929
- return Promise.resolve(response);
1758
+ return response;
1930
1759
  };
1931
1760
  exports.de_GetIdentityPoliciesCommand = de_GetIdentityPoliciesCommand;
1932
1761
  const de_GetIdentityPoliciesCommandError = async (output, context) => {
@@ -1936,10 +1765,9 @@ const de_GetIdentityPoliciesCommandError = async (output, context) => {
1936
1765
  };
1937
1766
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1938
1767
  const parsedBody = parsedOutput.body;
1939
- (0, smithy_client_1.throwDefaultError)({
1768
+ return throwDefaultError({
1940
1769
  output,
1941
1770
  parsedBody: parsedBody.Error,
1942
- exceptionCtor: SESServiceException_1.SESServiceException,
1943
1771
  errorCode,
1944
1772
  });
1945
1773
  };
@@ -1954,7 +1782,7 @@ const de_GetIdentityVerificationAttributesCommand = async (output, context) => {
1954
1782
  $metadata: deserializeMetadata(output),
1955
1783
  ...contents,
1956
1784
  };
1957
- return Promise.resolve(response);
1785
+ return response;
1958
1786
  };
1959
1787
  exports.de_GetIdentityVerificationAttributesCommand = de_GetIdentityVerificationAttributesCommand;
1960
1788
  const de_GetIdentityVerificationAttributesCommandError = async (output, context) => {
@@ -1964,10 +1792,9 @@ const de_GetIdentityVerificationAttributesCommandError = async (output, context)
1964
1792
  };
1965
1793
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1966
1794
  const parsedBody = parsedOutput.body;
1967
- (0, smithy_client_1.throwDefaultError)({
1795
+ return throwDefaultError({
1968
1796
  output,
1969
1797
  parsedBody: parsedBody.Error,
1970
- exceptionCtor: SESServiceException_1.SESServiceException,
1971
1798
  errorCode,
1972
1799
  });
1973
1800
  };
@@ -1982,7 +1809,7 @@ const de_GetSendQuotaCommand = async (output, context) => {
1982
1809
  $metadata: deserializeMetadata(output),
1983
1810
  ...contents,
1984
1811
  };
1985
- return Promise.resolve(response);
1812
+ return response;
1986
1813
  };
1987
1814
  exports.de_GetSendQuotaCommand = de_GetSendQuotaCommand;
1988
1815
  const de_GetSendQuotaCommandError = async (output, context) => {
@@ -1992,10 +1819,9 @@ const de_GetSendQuotaCommandError = async (output, context) => {
1992
1819
  };
1993
1820
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1994
1821
  const parsedBody = parsedOutput.body;
1995
- (0, smithy_client_1.throwDefaultError)({
1822
+ return throwDefaultError({
1996
1823
  output,
1997
1824
  parsedBody: parsedBody.Error,
1998
- exceptionCtor: SESServiceException_1.SESServiceException,
1999
1825
  errorCode,
2000
1826
  });
2001
1827
  };
@@ -2010,7 +1836,7 @@ const de_GetSendStatisticsCommand = async (output, context) => {
2010
1836
  $metadata: deserializeMetadata(output),
2011
1837
  ...contents,
2012
1838
  };
2013
- return Promise.resolve(response);
1839
+ return response;
2014
1840
  };
2015
1841
  exports.de_GetSendStatisticsCommand = de_GetSendStatisticsCommand;
2016
1842
  const de_GetSendStatisticsCommandError = async (output, context) => {
@@ -2020,10 +1846,9 @@ const de_GetSendStatisticsCommandError = async (output, context) => {
2020
1846
  };
2021
1847
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2022
1848
  const parsedBody = parsedOutput.body;
2023
- (0, smithy_client_1.throwDefaultError)({
1849
+ return throwDefaultError({
2024
1850
  output,
2025
1851
  parsedBody: parsedBody.Error,
2026
- exceptionCtor: SESServiceException_1.SESServiceException,
2027
1852
  errorCode,
2028
1853
  });
2029
1854
  };
@@ -2038,7 +1863,7 @@ const de_GetTemplateCommand = async (output, context) => {
2038
1863
  $metadata: deserializeMetadata(output),
2039
1864
  ...contents,
2040
1865
  };
2041
- return Promise.resolve(response);
1866
+ return response;
2042
1867
  };
2043
1868
  exports.de_GetTemplateCommand = de_GetTemplateCommand;
2044
1869
  const de_GetTemplateCommandError = async (output, context) => {
@@ -2053,10 +1878,9 @@ const de_GetTemplateCommandError = async (output, context) => {
2053
1878
  throw await de_TemplateDoesNotExistExceptionRes(parsedOutput, context);
2054
1879
  default:
2055
1880
  const parsedBody = parsedOutput.body;
2056
- (0, smithy_client_1.throwDefaultError)({
1881
+ return throwDefaultError({
2057
1882
  output,
2058
1883
  parsedBody: parsedBody.Error,
2059
- exceptionCtor: SESServiceException_1.SESServiceException,
2060
1884
  errorCode,
2061
1885
  });
2062
1886
  }
@@ -2072,7 +1896,7 @@ const de_ListConfigurationSetsCommand = async (output, context) => {
2072
1896
  $metadata: deserializeMetadata(output),
2073
1897
  ...contents,
2074
1898
  };
2075
- return Promise.resolve(response);
1899
+ return response;
2076
1900
  };
2077
1901
  exports.de_ListConfigurationSetsCommand = de_ListConfigurationSetsCommand;
2078
1902
  const de_ListConfigurationSetsCommandError = async (output, context) => {
@@ -2082,10 +1906,9 @@ const de_ListConfigurationSetsCommandError = async (output, context) => {
2082
1906
  };
2083
1907
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2084
1908
  const parsedBody = parsedOutput.body;
2085
- (0, smithy_client_1.throwDefaultError)({
1909
+ return throwDefaultError({
2086
1910
  output,
2087
1911
  parsedBody: parsedBody.Error,
2088
- exceptionCtor: SESServiceException_1.SESServiceException,
2089
1912
  errorCode,
2090
1913
  });
2091
1914
  };
@@ -2100,7 +1923,7 @@ const de_ListCustomVerificationEmailTemplatesCommand = async (output, context) =
2100
1923
  $metadata: deserializeMetadata(output),
2101
1924
  ...contents,
2102
1925
  };
2103
- return Promise.resolve(response);
1926
+ return response;
2104
1927
  };
2105
1928
  exports.de_ListCustomVerificationEmailTemplatesCommand = de_ListCustomVerificationEmailTemplatesCommand;
2106
1929
  const de_ListCustomVerificationEmailTemplatesCommandError = async (output, context) => {
@@ -2110,10 +1933,9 @@ const de_ListCustomVerificationEmailTemplatesCommandError = async (output, conte
2110
1933
  };
2111
1934
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2112
1935
  const parsedBody = parsedOutput.body;
2113
- (0, smithy_client_1.throwDefaultError)({
1936
+ return throwDefaultError({
2114
1937
  output,
2115
1938
  parsedBody: parsedBody.Error,
2116
- exceptionCtor: SESServiceException_1.SESServiceException,
2117
1939
  errorCode,
2118
1940
  });
2119
1941
  };
@@ -2128,7 +1950,7 @@ const de_ListIdentitiesCommand = async (output, context) => {
2128
1950
  $metadata: deserializeMetadata(output),
2129
1951
  ...contents,
2130
1952
  };
2131
- return Promise.resolve(response);
1953
+ return response;
2132
1954
  };
2133
1955
  exports.de_ListIdentitiesCommand = de_ListIdentitiesCommand;
2134
1956
  const de_ListIdentitiesCommandError = async (output, context) => {
@@ -2138,10 +1960,9 @@ const de_ListIdentitiesCommandError = async (output, context) => {
2138
1960
  };
2139
1961
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2140
1962
  const parsedBody = parsedOutput.body;
2141
- (0, smithy_client_1.throwDefaultError)({
1963
+ return throwDefaultError({
2142
1964
  output,
2143
1965
  parsedBody: parsedBody.Error,
2144
- exceptionCtor: SESServiceException_1.SESServiceException,
2145
1966
  errorCode,
2146
1967
  });
2147
1968
  };
@@ -2156,7 +1977,7 @@ const de_ListIdentityPoliciesCommand = async (output, context) => {
2156
1977
  $metadata: deserializeMetadata(output),
2157
1978
  ...contents,
2158
1979
  };
2159
- return Promise.resolve(response);
1980
+ return response;
2160
1981
  };
2161
1982
  exports.de_ListIdentityPoliciesCommand = de_ListIdentityPoliciesCommand;
2162
1983
  const de_ListIdentityPoliciesCommandError = async (output, context) => {
@@ -2166,10 +1987,9 @@ const de_ListIdentityPoliciesCommandError = async (output, context) => {
2166
1987
  };
2167
1988
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2168
1989
  const parsedBody = parsedOutput.body;
2169
- (0, smithy_client_1.throwDefaultError)({
1990
+ return throwDefaultError({
2170
1991
  output,
2171
1992
  parsedBody: parsedBody.Error,
2172
- exceptionCtor: SESServiceException_1.SESServiceException,
2173
1993
  errorCode,
2174
1994
  });
2175
1995
  };
@@ -2184,7 +2004,7 @@ const de_ListReceiptFiltersCommand = async (output, context) => {
2184
2004
  $metadata: deserializeMetadata(output),
2185
2005
  ...contents,
2186
2006
  };
2187
- return Promise.resolve(response);
2007
+ return response;
2188
2008
  };
2189
2009
  exports.de_ListReceiptFiltersCommand = de_ListReceiptFiltersCommand;
2190
2010
  const de_ListReceiptFiltersCommandError = async (output, context) => {
@@ -2194,10 +2014,9 @@ const de_ListReceiptFiltersCommandError = async (output, context) => {
2194
2014
  };
2195
2015
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2196
2016
  const parsedBody = parsedOutput.body;
2197
- (0, smithy_client_1.throwDefaultError)({
2017
+ return throwDefaultError({
2198
2018
  output,
2199
2019
  parsedBody: parsedBody.Error,
2200
- exceptionCtor: SESServiceException_1.SESServiceException,
2201
2020
  errorCode,
2202
2021
  });
2203
2022
  };
@@ -2212,7 +2031,7 @@ const de_ListReceiptRuleSetsCommand = async (output, context) => {
2212
2031
  $metadata: deserializeMetadata(output),
2213
2032
  ...contents,
2214
2033
  };
2215
- return Promise.resolve(response);
2034
+ return response;
2216
2035
  };
2217
2036
  exports.de_ListReceiptRuleSetsCommand = de_ListReceiptRuleSetsCommand;
2218
2037
  const de_ListReceiptRuleSetsCommandError = async (output, context) => {
@@ -2222,10 +2041,9 @@ const de_ListReceiptRuleSetsCommandError = async (output, context) => {
2222
2041
  };
2223
2042
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2224
2043
  const parsedBody = parsedOutput.body;
2225
- (0, smithy_client_1.throwDefaultError)({
2044
+ return throwDefaultError({
2226
2045
  output,
2227
2046
  parsedBody: parsedBody.Error,
2228
- exceptionCtor: SESServiceException_1.SESServiceException,
2229
2047
  errorCode,
2230
2048
  });
2231
2049
  };
@@ -2240,7 +2058,7 @@ const de_ListTemplatesCommand = async (output, context) => {
2240
2058
  $metadata: deserializeMetadata(output),
2241
2059
  ...contents,
2242
2060
  };
2243
- return Promise.resolve(response);
2061
+ return response;
2244
2062
  };
2245
2063
  exports.de_ListTemplatesCommand = de_ListTemplatesCommand;
2246
2064
  const de_ListTemplatesCommandError = async (output, context) => {
@@ -2250,10 +2068,9 @@ const de_ListTemplatesCommandError = async (output, context) => {
2250
2068
  };
2251
2069
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2252
2070
  const parsedBody = parsedOutput.body;
2253
- (0, smithy_client_1.throwDefaultError)({
2071
+ return throwDefaultError({
2254
2072
  output,
2255
2073
  parsedBody: parsedBody.Error,
2256
- exceptionCtor: SESServiceException_1.SESServiceException,
2257
2074
  errorCode,
2258
2075
  });
2259
2076
  };
@@ -2268,7 +2085,7 @@ const de_ListVerifiedEmailAddressesCommand = async (output, context) => {
2268
2085
  $metadata: deserializeMetadata(output),
2269
2086
  ...contents,
2270
2087
  };
2271
- return Promise.resolve(response);
2088
+ return response;
2272
2089
  };
2273
2090
  exports.de_ListVerifiedEmailAddressesCommand = de_ListVerifiedEmailAddressesCommand;
2274
2091
  const de_ListVerifiedEmailAddressesCommandError = async (output, context) => {
@@ -2278,10 +2095,9 @@ const de_ListVerifiedEmailAddressesCommandError = async (output, context) => {
2278
2095
  };
2279
2096
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2280
2097
  const parsedBody = parsedOutput.body;
2281
- (0, smithy_client_1.throwDefaultError)({
2098
+ return throwDefaultError({
2282
2099
  output,
2283
2100
  parsedBody: parsedBody.Error,
2284
- exceptionCtor: SESServiceException_1.SESServiceException,
2285
2101
  errorCode,
2286
2102
  });
2287
2103
  };
@@ -2296,7 +2112,7 @@ const de_PutConfigurationSetDeliveryOptionsCommand = async (output, context) =>
2296
2112
  $metadata: deserializeMetadata(output),
2297
2113
  ...contents,
2298
2114
  };
2299
- return Promise.resolve(response);
2115
+ return response;
2300
2116
  };
2301
2117
  exports.de_PutConfigurationSetDeliveryOptionsCommand = de_PutConfigurationSetDeliveryOptionsCommand;
2302
2118
  const de_PutConfigurationSetDeliveryOptionsCommandError = async (output, context) => {
@@ -2314,10 +2130,9 @@ const de_PutConfigurationSetDeliveryOptionsCommandError = async (output, context
2314
2130
  throw await de_InvalidDeliveryOptionsExceptionRes(parsedOutput, context);
2315
2131
  default:
2316
2132
  const parsedBody = parsedOutput.body;
2317
- (0, smithy_client_1.throwDefaultError)({
2133
+ return throwDefaultError({
2318
2134
  output,
2319
2135
  parsedBody: parsedBody.Error,
2320
- exceptionCtor: SESServiceException_1.SESServiceException,
2321
2136
  errorCode,
2322
2137
  });
2323
2138
  }
@@ -2333,7 +2148,7 @@ const de_PutIdentityPolicyCommand = async (output, context) => {
2333
2148
  $metadata: deserializeMetadata(output),
2334
2149
  ...contents,
2335
2150
  };
2336
- return Promise.resolve(response);
2151
+ return response;
2337
2152
  };
2338
2153
  exports.de_PutIdentityPolicyCommand = de_PutIdentityPolicyCommand;
2339
2154
  const de_PutIdentityPolicyCommandError = async (output, context) => {
@@ -2348,10 +2163,9 @@ const de_PutIdentityPolicyCommandError = async (output, context) => {
2348
2163
  throw await de_InvalidPolicyExceptionRes(parsedOutput, context);
2349
2164
  default:
2350
2165
  const parsedBody = parsedOutput.body;
2351
- (0, smithy_client_1.throwDefaultError)({
2166
+ return throwDefaultError({
2352
2167
  output,
2353
2168
  parsedBody: parsedBody.Error,
2354
- exceptionCtor: SESServiceException_1.SESServiceException,
2355
2169
  errorCode,
2356
2170
  });
2357
2171
  }
@@ -2367,7 +2181,7 @@ const de_ReorderReceiptRuleSetCommand = async (output, context) => {
2367
2181
  $metadata: deserializeMetadata(output),
2368
2182
  ...contents,
2369
2183
  };
2370
- return Promise.resolve(response);
2184
+ return response;
2371
2185
  };
2372
2186
  exports.de_ReorderReceiptRuleSetCommand = de_ReorderReceiptRuleSetCommand;
2373
2187
  const de_ReorderReceiptRuleSetCommandError = async (output, context) => {
@@ -2385,10 +2199,9 @@ const de_ReorderReceiptRuleSetCommandError = async (output, context) => {
2385
2199
  throw await de_RuleSetDoesNotExistExceptionRes(parsedOutput, context);
2386
2200
  default:
2387
2201
  const parsedBody = parsedOutput.body;
2388
- (0, smithy_client_1.throwDefaultError)({
2202
+ return throwDefaultError({
2389
2203
  output,
2390
2204
  parsedBody: parsedBody.Error,
2391
- exceptionCtor: SESServiceException_1.SESServiceException,
2392
2205
  errorCode,
2393
2206
  });
2394
2207
  }
@@ -2404,7 +2217,7 @@ const de_SendBounceCommand = async (output, context) => {
2404
2217
  $metadata: deserializeMetadata(output),
2405
2218
  ...contents,
2406
2219
  };
2407
- return Promise.resolve(response);
2220
+ return response;
2408
2221
  };
2409
2222
  exports.de_SendBounceCommand = de_SendBounceCommand;
2410
2223
  const de_SendBounceCommandError = async (output, context) => {
@@ -2419,10 +2232,9 @@ const de_SendBounceCommandError = async (output, context) => {
2419
2232
  throw await de_MessageRejectedRes(parsedOutput, context);
2420
2233
  default:
2421
2234
  const parsedBody = parsedOutput.body;
2422
- (0, smithy_client_1.throwDefaultError)({
2235
+ return throwDefaultError({
2423
2236
  output,
2424
2237
  parsedBody: parsedBody.Error,
2425
- exceptionCtor: SESServiceException_1.SESServiceException,
2426
2238
  errorCode,
2427
2239
  });
2428
2240
  }
@@ -2438,7 +2250,7 @@ const de_SendBulkTemplatedEmailCommand = async (output, context) => {
2438
2250
  $metadata: deserializeMetadata(output),
2439
2251
  ...contents,
2440
2252
  };
2441
- return Promise.resolve(response);
2253
+ return response;
2442
2254
  };
2443
2255
  exports.de_SendBulkTemplatedEmailCommand = de_SendBulkTemplatedEmailCommand;
2444
2256
  const de_SendBulkTemplatedEmailCommandError = async (output, context) => {
@@ -2468,10 +2280,9 @@ const de_SendBulkTemplatedEmailCommandError = async (output, context) => {
2468
2280
  throw await de_TemplateDoesNotExistExceptionRes(parsedOutput, context);
2469
2281
  default:
2470
2282
  const parsedBody = parsedOutput.body;
2471
- (0, smithy_client_1.throwDefaultError)({
2283
+ return throwDefaultError({
2472
2284
  output,
2473
2285
  parsedBody: parsedBody.Error,
2474
- exceptionCtor: SESServiceException_1.SESServiceException,
2475
2286
  errorCode,
2476
2287
  });
2477
2288
  }
@@ -2487,7 +2298,7 @@ const de_SendCustomVerificationEmailCommand = async (output, context) => {
2487
2298
  $metadata: deserializeMetadata(output),
2488
2299
  ...contents,
2489
2300
  };
2490
- return Promise.resolve(response);
2301
+ return response;
2491
2302
  };
2492
2303
  exports.de_SendCustomVerificationEmailCommand = de_SendCustomVerificationEmailCommand;
2493
2304
  const de_SendCustomVerificationEmailCommandError = async (output, context) => {
@@ -2514,10 +2325,9 @@ const de_SendCustomVerificationEmailCommandError = async (output, context) => {
2514
2325
  throw await de_ProductionAccessNotGrantedExceptionRes(parsedOutput, context);
2515
2326
  default:
2516
2327
  const parsedBody = parsedOutput.body;
2517
- (0, smithy_client_1.throwDefaultError)({
2328
+ return throwDefaultError({
2518
2329
  output,
2519
2330
  parsedBody: parsedBody.Error,
2520
- exceptionCtor: SESServiceException_1.SESServiceException,
2521
2331
  errorCode,
2522
2332
  });
2523
2333
  }
@@ -2533,7 +2343,7 @@ const de_SendEmailCommand = async (output, context) => {
2533
2343
  $metadata: deserializeMetadata(output),
2534
2344
  ...contents,
2535
2345
  };
2536
- return Promise.resolve(response);
2346
+ return response;
2537
2347
  };
2538
2348
  exports.de_SendEmailCommand = de_SendEmailCommand;
2539
2349
  const de_SendEmailCommandError = async (output, context) => {
@@ -2560,10 +2370,9 @@ const de_SendEmailCommandError = async (output, context) => {
2560
2370
  throw await de_MessageRejectedRes(parsedOutput, context);
2561
2371
  default:
2562
2372
  const parsedBody = parsedOutput.body;
2563
- (0, smithy_client_1.throwDefaultError)({
2373
+ return throwDefaultError({
2564
2374
  output,
2565
2375
  parsedBody: parsedBody.Error,
2566
- exceptionCtor: SESServiceException_1.SESServiceException,
2567
2376
  errorCode,
2568
2377
  });
2569
2378
  }
@@ -2579,7 +2388,7 @@ const de_SendRawEmailCommand = async (output, context) => {
2579
2388
  $metadata: deserializeMetadata(output),
2580
2389
  ...contents,
2581
2390
  };
2582
- return Promise.resolve(response);
2391
+ return response;
2583
2392
  };
2584
2393
  exports.de_SendRawEmailCommand = de_SendRawEmailCommand;
2585
2394
  const de_SendRawEmailCommandError = async (output, context) => {
@@ -2606,10 +2415,9 @@ const de_SendRawEmailCommandError = async (output, context) => {
2606
2415
  throw await de_MessageRejectedRes(parsedOutput, context);
2607
2416
  default:
2608
2417
  const parsedBody = parsedOutput.body;
2609
- (0, smithy_client_1.throwDefaultError)({
2418
+ return throwDefaultError({
2610
2419
  output,
2611
2420
  parsedBody: parsedBody.Error,
2612
- exceptionCtor: SESServiceException_1.SESServiceException,
2613
2421
  errorCode,
2614
2422
  });
2615
2423
  }
@@ -2625,7 +2433,7 @@ const de_SendTemplatedEmailCommand = async (output, context) => {
2625
2433
  $metadata: deserializeMetadata(output),
2626
2434
  ...contents,
2627
2435
  };
2628
- return Promise.resolve(response);
2436
+ return response;
2629
2437
  };
2630
2438
  exports.de_SendTemplatedEmailCommand = de_SendTemplatedEmailCommand;
2631
2439
  const de_SendTemplatedEmailCommandError = async (output, context) => {
@@ -2655,10 +2463,9 @@ const de_SendTemplatedEmailCommandError = async (output, context) => {
2655
2463
  throw await de_TemplateDoesNotExistExceptionRes(parsedOutput, context);
2656
2464
  default:
2657
2465
  const parsedBody = parsedOutput.body;
2658
- (0, smithy_client_1.throwDefaultError)({
2466
+ return throwDefaultError({
2659
2467
  output,
2660
2468
  parsedBody: parsedBody.Error,
2661
- exceptionCtor: SESServiceException_1.SESServiceException,
2662
2469
  errorCode,
2663
2470
  });
2664
2471
  }
@@ -2674,7 +2481,7 @@ const de_SetActiveReceiptRuleSetCommand = async (output, context) => {
2674
2481
  $metadata: deserializeMetadata(output),
2675
2482
  ...contents,
2676
2483
  };
2677
- return Promise.resolve(response);
2484
+ return response;
2678
2485
  };
2679
2486
  exports.de_SetActiveReceiptRuleSetCommand = de_SetActiveReceiptRuleSetCommand;
2680
2487
  const de_SetActiveReceiptRuleSetCommandError = async (output, context) => {
@@ -2689,10 +2496,9 @@ const de_SetActiveReceiptRuleSetCommandError = async (output, context) => {
2689
2496
  throw await de_RuleSetDoesNotExistExceptionRes(parsedOutput, context);
2690
2497
  default:
2691
2498
  const parsedBody = parsedOutput.body;
2692
- (0, smithy_client_1.throwDefaultError)({
2499
+ return throwDefaultError({
2693
2500
  output,
2694
2501
  parsedBody: parsedBody.Error,
2695
- exceptionCtor: SESServiceException_1.SESServiceException,
2696
2502
  errorCode,
2697
2503
  });
2698
2504
  }
@@ -2708,7 +2514,7 @@ const de_SetIdentityDkimEnabledCommand = async (output, context) => {
2708
2514
  $metadata: deserializeMetadata(output),
2709
2515
  ...contents,
2710
2516
  };
2711
- return Promise.resolve(response);
2517
+ return response;
2712
2518
  };
2713
2519
  exports.de_SetIdentityDkimEnabledCommand = de_SetIdentityDkimEnabledCommand;
2714
2520
  const de_SetIdentityDkimEnabledCommandError = async (output, context) => {
@@ -2718,10 +2524,9 @@ const de_SetIdentityDkimEnabledCommandError = async (output, context) => {
2718
2524
  };
2719
2525
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2720
2526
  const parsedBody = parsedOutput.body;
2721
- (0, smithy_client_1.throwDefaultError)({
2527
+ return throwDefaultError({
2722
2528
  output,
2723
2529
  parsedBody: parsedBody.Error,
2724
- exceptionCtor: SESServiceException_1.SESServiceException,
2725
2530
  errorCode,
2726
2531
  });
2727
2532
  };
@@ -2736,7 +2541,7 @@ const de_SetIdentityFeedbackForwardingEnabledCommand = async (output, context) =
2736
2541
  $metadata: deserializeMetadata(output),
2737
2542
  ...contents,
2738
2543
  };
2739
- return Promise.resolve(response);
2544
+ return response;
2740
2545
  };
2741
2546
  exports.de_SetIdentityFeedbackForwardingEnabledCommand = de_SetIdentityFeedbackForwardingEnabledCommand;
2742
2547
  const de_SetIdentityFeedbackForwardingEnabledCommandError = async (output, context) => {
@@ -2746,10 +2551,9 @@ const de_SetIdentityFeedbackForwardingEnabledCommandError = async (output, conte
2746
2551
  };
2747
2552
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2748
2553
  const parsedBody = parsedOutput.body;
2749
- (0, smithy_client_1.throwDefaultError)({
2554
+ return throwDefaultError({
2750
2555
  output,
2751
2556
  parsedBody: parsedBody.Error,
2752
- exceptionCtor: SESServiceException_1.SESServiceException,
2753
2557
  errorCode,
2754
2558
  });
2755
2559
  };
@@ -2764,7 +2568,7 @@ const de_SetIdentityHeadersInNotificationsEnabledCommand = async (output, contex
2764
2568
  $metadata: deserializeMetadata(output),
2765
2569
  ...contents,
2766
2570
  };
2767
- return Promise.resolve(response);
2571
+ return response;
2768
2572
  };
2769
2573
  exports.de_SetIdentityHeadersInNotificationsEnabledCommand = de_SetIdentityHeadersInNotificationsEnabledCommand;
2770
2574
  const de_SetIdentityHeadersInNotificationsEnabledCommandError = async (output, context) => {
@@ -2774,10 +2578,9 @@ const de_SetIdentityHeadersInNotificationsEnabledCommandError = async (output, c
2774
2578
  };
2775
2579
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2776
2580
  const parsedBody = parsedOutput.body;
2777
- (0, smithy_client_1.throwDefaultError)({
2581
+ return throwDefaultError({
2778
2582
  output,
2779
2583
  parsedBody: parsedBody.Error,
2780
- exceptionCtor: SESServiceException_1.SESServiceException,
2781
2584
  errorCode,
2782
2585
  });
2783
2586
  };
@@ -2792,7 +2595,7 @@ const de_SetIdentityMailFromDomainCommand = async (output, context) => {
2792
2595
  $metadata: deserializeMetadata(output),
2793
2596
  ...contents,
2794
2597
  };
2795
- return Promise.resolve(response);
2598
+ return response;
2796
2599
  };
2797
2600
  exports.de_SetIdentityMailFromDomainCommand = de_SetIdentityMailFromDomainCommand;
2798
2601
  const de_SetIdentityMailFromDomainCommandError = async (output, context) => {
@@ -2802,10 +2605,9 @@ const de_SetIdentityMailFromDomainCommandError = async (output, context) => {
2802
2605
  };
2803
2606
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2804
2607
  const parsedBody = parsedOutput.body;
2805
- (0, smithy_client_1.throwDefaultError)({
2608
+ return throwDefaultError({
2806
2609
  output,
2807
2610
  parsedBody: parsedBody.Error,
2808
- exceptionCtor: SESServiceException_1.SESServiceException,
2809
2611
  errorCode,
2810
2612
  });
2811
2613
  };
@@ -2820,7 +2622,7 @@ const de_SetIdentityNotificationTopicCommand = async (output, context) => {
2820
2622
  $metadata: deserializeMetadata(output),
2821
2623
  ...contents,
2822
2624
  };
2823
- return Promise.resolve(response);
2625
+ return response;
2824
2626
  };
2825
2627
  exports.de_SetIdentityNotificationTopicCommand = de_SetIdentityNotificationTopicCommand;
2826
2628
  const de_SetIdentityNotificationTopicCommandError = async (output, context) => {
@@ -2830,10 +2632,9 @@ const de_SetIdentityNotificationTopicCommandError = async (output, context) => {
2830
2632
  };
2831
2633
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2832
2634
  const parsedBody = parsedOutput.body;
2833
- (0, smithy_client_1.throwDefaultError)({
2635
+ return throwDefaultError({
2834
2636
  output,
2835
2637
  parsedBody: parsedBody.Error,
2836
- exceptionCtor: SESServiceException_1.SESServiceException,
2837
2638
  errorCode,
2838
2639
  });
2839
2640
  };
@@ -2848,7 +2649,7 @@ const de_SetReceiptRulePositionCommand = async (output, context) => {
2848
2649
  $metadata: deserializeMetadata(output),
2849
2650
  ...contents,
2850
2651
  };
2851
- return Promise.resolve(response);
2652
+ return response;
2852
2653
  };
2853
2654
  exports.de_SetReceiptRulePositionCommand = de_SetReceiptRulePositionCommand;
2854
2655
  const de_SetReceiptRulePositionCommandError = async (output, context) => {
@@ -2866,10 +2667,9 @@ const de_SetReceiptRulePositionCommandError = async (output, context) => {
2866
2667
  throw await de_RuleSetDoesNotExistExceptionRes(parsedOutput, context);
2867
2668
  default:
2868
2669
  const parsedBody = parsedOutput.body;
2869
- (0, smithy_client_1.throwDefaultError)({
2670
+ return throwDefaultError({
2870
2671
  output,
2871
2672
  parsedBody: parsedBody.Error,
2872
- exceptionCtor: SESServiceException_1.SESServiceException,
2873
2673
  errorCode,
2874
2674
  });
2875
2675
  }
@@ -2885,7 +2685,7 @@ const de_TestRenderTemplateCommand = async (output, context) => {
2885
2685
  $metadata: deserializeMetadata(output),
2886
2686
  ...contents,
2887
2687
  };
2888
- return Promise.resolve(response);
2688
+ return response;
2889
2689
  };
2890
2690
  exports.de_TestRenderTemplateCommand = de_TestRenderTemplateCommand;
2891
2691
  const de_TestRenderTemplateCommandError = async (output, context) => {
@@ -2906,10 +2706,9 @@ const de_TestRenderTemplateCommandError = async (output, context) => {
2906
2706
  throw await de_TemplateDoesNotExistExceptionRes(parsedOutput, context);
2907
2707
  default:
2908
2708
  const parsedBody = parsedOutput.body;
2909
- (0, smithy_client_1.throwDefaultError)({
2709
+ return throwDefaultError({
2910
2710
  output,
2911
2711
  parsedBody: parsedBody.Error,
2912
- exceptionCtor: SESServiceException_1.SESServiceException,
2913
2712
  errorCode,
2914
2713
  });
2915
2714
  }
@@ -2922,7 +2721,7 @@ const de_UpdateAccountSendingEnabledCommand = async (output, context) => {
2922
2721
  const response = {
2923
2722
  $metadata: deserializeMetadata(output),
2924
2723
  };
2925
- return Promise.resolve(response);
2724
+ return response;
2926
2725
  };
2927
2726
  exports.de_UpdateAccountSendingEnabledCommand = de_UpdateAccountSendingEnabledCommand;
2928
2727
  const de_UpdateAccountSendingEnabledCommandError = async (output, context) => {
@@ -2932,10 +2731,9 @@ const de_UpdateAccountSendingEnabledCommandError = async (output, context) => {
2932
2731
  };
2933
2732
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2934
2733
  const parsedBody = parsedOutput.body;
2935
- (0, smithy_client_1.throwDefaultError)({
2734
+ return throwDefaultError({
2936
2735
  output,
2937
2736
  parsedBody: parsedBody.Error,
2938
- exceptionCtor: SESServiceException_1.SESServiceException,
2939
2737
  errorCode,
2940
2738
  });
2941
2739
  };
@@ -2950,7 +2748,7 @@ const de_UpdateConfigurationSetEventDestinationCommand = async (output, context)
2950
2748
  $metadata: deserializeMetadata(output),
2951
2749
  ...contents,
2952
2750
  };
2953
- return Promise.resolve(response);
2751
+ return response;
2954
2752
  };
2955
2753
  exports.de_UpdateConfigurationSetEventDestinationCommand = de_UpdateConfigurationSetEventDestinationCommand;
2956
2754
  const de_UpdateConfigurationSetEventDestinationCommandError = async (output, context) => {
@@ -2977,10 +2775,9 @@ const de_UpdateConfigurationSetEventDestinationCommandError = async (output, con
2977
2775
  throw await de_InvalidSNSDestinationExceptionRes(parsedOutput, context);
2978
2776
  default:
2979
2777
  const parsedBody = parsedOutput.body;
2980
- (0, smithy_client_1.throwDefaultError)({
2778
+ return throwDefaultError({
2981
2779
  output,
2982
2780
  parsedBody: parsedBody.Error,
2983
- exceptionCtor: SESServiceException_1.SESServiceException,
2984
2781
  errorCode,
2985
2782
  });
2986
2783
  }
@@ -2993,7 +2790,7 @@ const de_UpdateConfigurationSetReputationMetricsEnabledCommand = async (output,
2993
2790
  const response = {
2994
2791
  $metadata: deserializeMetadata(output),
2995
2792
  };
2996
- return Promise.resolve(response);
2793
+ return response;
2997
2794
  };
2998
2795
  exports.de_UpdateConfigurationSetReputationMetricsEnabledCommand = de_UpdateConfigurationSetReputationMetricsEnabledCommand;
2999
2796
  const de_UpdateConfigurationSetReputationMetricsEnabledCommandError = async (output, context) => {
@@ -3008,10 +2805,9 @@ const de_UpdateConfigurationSetReputationMetricsEnabledCommandError = async (out
3008
2805
  throw await de_ConfigurationSetDoesNotExistExceptionRes(parsedOutput, context);
3009
2806
  default:
3010
2807
  const parsedBody = parsedOutput.body;
3011
- (0, smithy_client_1.throwDefaultError)({
2808
+ return throwDefaultError({
3012
2809
  output,
3013
2810
  parsedBody: parsedBody.Error,
3014
- exceptionCtor: SESServiceException_1.SESServiceException,
3015
2811
  errorCode,
3016
2812
  });
3017
2813
  }
@@ -3024,7 +2820,7 @@ const de_UpdateConfigurationSetSendingEnabledCommand = async (output, context) =
3024
2820
  const response = {
3025
2821
  $metadata: deserializeMetadata(output),
3026
2822
  };
3027
- return Promise.resolve(response);
2823
+ return response;
3028
2824
  };
3029
2825
  exports.de_UpdateConfigurationSetSendingEnabledCommand = de_UpdateConfigurationSetSendingEnabledCommand;
3030
2826
  const de_UpdateConfigurationSetSendingEnabledCommandError = async (output, context) => {
@@ -3039,10 +2835,9 @@ const de_UpdateConfigurationSetSendingEnabledCommandError = async (output, conte
3039
2835
  throw await de_ConfigurationSetDoesNotExistExceptionRes(parsedOutput, context);
3040
2836
  default:
3041
2837
  const parsedBody = parsedOutput.body;
3042
- (0, smithy_client_1.throwDefaultError)({
2838
+ return throwDefaultError({
3043
2839
  output,
3044
2840
  parsedBody: parsedBody.Error,
3045
- exceptionCtor: SESServiceException_1.SESServiceException,
3046
2841
  errorCode,
3047
2842
  });
3048
2843
  }
@@ -3058,7 +2853,7 @@ const de_UpdateConfigurationSetTrackingOptionsCommand = async (output, context)
3058
2853
  $metadata: deserializeMetadata(output),
3059
2854
  ...contents,
3060
2855
  };
3061
- return Promise.resolve(response);
2856
+ return response;
3062
2857
  };
3063
2858
  exports.de_UpdateConfigurationSetTrackingOptionsCommand = de_UpdateConfigurationSetTrackingOptionsCommand;
3064
2859
  const de_UpdateConfigurationSetTrackingOptionsCommandError = async (output, context) => {
@@ -3079,10 +2874,9 @@ const de_UpdateConfigurationSetTrackingOptionsCommandError = async (output, cont
3079
2874
  throw await de_TrackingOptionsDoesNotExistExceptionRes(parsedOutput, context);
3080
2875
  default:
3081
2876
  const parsedBody = parsedOutput.body;
3082
- (0, smithy_client_1.throwDefaultError)({
2877
+ return throwDefaultError({
3083
2878
  output,
3084
2879
  parsedBody: parsedBody.Error,
3085
- exceptionCtor: SESServiceException_1.SESServiceException,
3086
2880
  errorCode,
3087
2881
  });
3088
2882
  }
@@ -3095,7 +2889,7 @@ const de_UpdateCustomVerificationEmailTemplateCommand = async (output, context)
3095
2889
  const response = {
3096
2890
  $metadata: deserializeMetadata(output),
3097
2891
  };
3098
- return Promise.resolve(response);
2892
+ return response;
3099
2893
  };
3100
2894
  exports.de_UpdateCustomVerificationEmailTemplateCommand = de_UpdateCustomVerificationEmailTemplateCommand;
3101
2895
  const de_UpdateCustomVerificationEmailTemplateCommandError = async (output, context) => {
@@ -3116,10 +2910,9 @@ const de_UpdateCustomVerificationEmailTemplateCommandError = async (output, cont
3116
2910
  throw await de_FromEmailAddressNotVerifiedExceptionRes(parsedOutput, context);
3117
2911
  default:
3118
2912
  const parsedBody = parsedOutput.body;
3119
- (0, smithy_client_1.throwDefaultError)({
2913
+ return throwDefaultError({
3120
2914
  output,
3121
2915
  parsedBody: parsedBody.Error,
3122
- exceptionCtor: SESServiceException_1.SESServiceException,
3123
2916
  errorCode,
3124
2917
  });
3125
2918
  }
@@ -3135,7 +2928,7 @@ const de_UpdateReceiptRuleCommand = async (output, context) => {
3135
2928
  $metadata: deserializeMetadata(output),
3136
2929
  ...contents,
3137
2930
  };
3138
- return Promise.resolve(response);
2931
+ return response;
3139
2932
  };
3140
2933
  exports.de_UpdateReceiptRuleCommand = de_UpdateReceiptRuleCommand;
3141
2934
  const de_UpdateReceiptRuleCommandError = async (output, context) => {
@@ -3165,10 +2958,9 @@ const de_UpdateReceiptRuleCommandError = async (output, context) => {
3165
2958
  throw await de_RuleSetDoesNotExistExceptionRes(parsedOutput, context);
3166
2959
  default:
3167
2960
  const parsedBody = parsedOutput.body;
3168
- (0, smithy_client_1.throwDefaultError)({
2961
+ return throwDefaultError({
3169
2962
  output,
3170
2963
  parsedBody: parsedBody.Error,
3171
- exceptionCtor: SESServiceException_1.SESServiceException,
3172
2964
  errorCode,
3173
2965
  });
3174
2966
  }
@@ -3184,7 +2976,7 @@ const de_UpdateTemplateCommand = async (output, context) => {
3184
2976
  $metadata: deserializeMetadata(output),
3185
2977
  ...contents,
3186
2978
  };
3187
- return Promise.resolve(response);
2979
+ return response;
3188
2980
  };
3189
2981
  exports.de_UpdateTemplateCommand = de_UpdateTemplateCommand;
3190
2982
  const de_UpdateTemplateCommandError = async (output, context) => {
@@ -3202,10 +2994,9 @@ const de_UpdateTemplateCommandError = async (output, context) => {
3202
2994
  throw await de_TemplateDoesNotExistExceptionRes(parsedOutput, context);
3203
2995
  default:
3204
2996
  const parsedBody = parsedOutput.body;
3205
- (0, smithy_client_1.throwDefaultError)({
2997
+ return throwDefaultError({
3206
2998
  output,
3207
2999
  parsedBody: parsedBody.Error,
3208
- exceptionCtor: SESServiceException_1.SESServiceException,
3209
3000
  errorCode,
3210
3001
  });
3211
3002
  }
@@ -3221,7 +3012,7 @@ const de_VerifyDomainDkimCommand = async (output, context) => {
3221
3012
  $metadata: deserializeMetadata(output),
3222
3013
  ...contents,
3223
3014
  };
3224
- return Promise.resolve(response);
3015
+ return response;
3225
3016
  };
3226
3017
  exports.de_VerifyDomainDkimCommand = de_VerifyDomainDkimCommand;
3227
3018
  const de_VerifyDomainDkimCommandError = async (output, context) => {
@@ -3231,10 +3022,9 @@ const de_VerifyDomainDkimCommandError = async (output, context) => {
3231
3022
  };
3232
3023
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3233
3024
  const parsedBody = parsedOutput.body;
3234
- (0, smithy_client_1.throwDefaultError)({
3025
+ return throwDefaultError({
3235
3026
  output,
3236
3027
  parsedBody: parsedBody.Error,
3237
- exceptionCtor: SESServiceException_1.SESServiceException,
3238
3028
  errorCode,
3239
3029
  });
3240
3030
  };
@@ -3249,7 +3039,7 @@ const de_VerifyDomainIdentityCommand = async (output, context) => {
3249
3039
  $metadata: deserializeMetadata(output),
3250
3040
  ...contents,
3251
3041
  };
3252
- return Promise.resolve(response);
3042
+ return response;
3253
3043
  };
3254
3044
  exports.de_VerifyDomainIdentityCommand = de_VerifyDomainIdentityCommand;
3255
3045
  const de_VerifyDomainIdentityCommandError = async (output, context) => {
@@ -3259,10 +3049,9 @@ const de_VerifyDomainIdentityCommandError = async (output, context) => {
3259
3049
  };
3260
3050
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3261
3051
  const parsedBody = parsedOutput.body;
3262
- (0, smithy_client_1.throwDefaultError)({
3052
+ return throwDefaultError({
3263
3053
  output,
3264
3054
  parsedBody: parsedBody.Error,
3265
- exceptionCtor: SESServiceException_1.SESServiceException,
3266
3055
  errorCode,
3267
3056
  });
3268
3057
  };
@@ -3274,7 +3063,7 @@ const de_VerifyEmailAddressCommand = async (output, context) => {
3274
3063
  const response = {
3275
3064
  $metadata: deserializeMetadata(output),
3276
3065
  };
3277
- return Promise.resolve(response);
3066
+ return response;
3278
3067
  };
3279
3068
  exports.de_VerifyEmailAddressCommand = de_VerifyEmailAddressCommand;
3280
3069
  const de_VerifyEmailAddressCommandError = async (output, context) => {
@@ -3284,10 +3073,9 @@ const de_VerifyEmailAddressCommandError = async (output, context) => {
3284
3073
  };
3285
3074
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3286
3075
  const parsedBody = parsedOutput.body;
3287
- (0, smithy_client_1.throwDefaultError)({
3076
+ return throwDefaultError({
3288
3077
  output,
3289
3078
  parsedBody: parsedBody.Error,
3290
- exceptionCtor: SESServiceException_1.SESServiceException,
3291
3079
  errorCode,
3292
3080
  });
3293
3081
  };
@@ -3302,7 +3090,7 @@ const de_VerifyEmailIdentityCommand = async (output, context) => {
3302
3090
  $metadata: deserializeMetadata(output),
3303
3091
  ...contents,
3304
3092
  };
3305
- return Promise.resolve(response);
3093
+ return response;
3306
3094
  };
3307
3095
  exports.de_VerifyEmailIdentityCommand = de_VerifyEmailIdentityCommand;
3308
3096
  const de_VerifyEmailIdentityCommandError = async (output, context) => {
@@ -3312,10 +3100,9 @@ const de_VerifyEmailIdentityCommandError = async (output, context) => {
3312
3100
  };
3313
3101
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3314
3102
  const parsedBody = parsedOutput.body;
3315
- (0, smithy_client_1.throwDefaultError)({
3103
+ return throwDefaultError({
3316
3104
  output,
3317
3105
  parsedBody: parsedBody.Error,
3318
- exceptionCtor: SESServiceException_1.SESServiceException,
3319
3106
  errorCode,
3320
3107
  });
3321
3108
  };
@@ -6610,6 +6397,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
6610
6397
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
6611
6398
  };
6612
6399
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
6400
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(SESServiceException_1.SESServiceException);
6613
6401
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
6614
6402
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
6615
6403
  const contents = {
@@ -6628,6 +6416,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
6628
6416
  }
6629
6417
  return new protocol_http_1.HttpRequest(contents);
6630
6418
  };
6419
+ const SHARED_HEADERS = {
6420
+ "content-type": "application/x-www-form-urlencoded",
6421
+ };
6631
6422
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
6632
6423
  if (encoded.length) {
6633
6424
  const parser = new fast_xml_parser_1.XMLParser({