@aws-sdk/client-ses 3.310.0 → 3.312.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),
@@ -6628,6 +6486,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
6628
6486
  }
6629
6487
  return new protocol_http_1.HttpRequest(contents);
6630
6488
  };
6489
+ const SHARED_HEADERS = {
6490
+ "content-type": "application/x-www-form-urlencoded",
6491
+ };
6631
6492
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
6632
6493
  if (encoded.length) {
6633
6494
  const parser = new fast_xml_parser_1.XMLParser({