@aws-sdk/client-neptune 3.309.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 NeptuneServiceException_1 = require("../models/NeptuneServiceException");
11
11
  const se_AddRoleToDBClusterCommand = 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_AddRoleToDBClusterMessage(input, context),
@@ -22,9 +20,7 @@ const se_AddRoleToDBClusterCommand = async (input, context) => {
22
20
  };
23
21
  exports.se_AddRoleToDBClusterCommand = se_AddRoleToDBClusterCommand;
24
22
  const se_AddSourceIdentifierToSubscriptionCommand = 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_AddSourceIdentifierToSubscriptionMessage(input, context),
@@ -35,9 +31,7 @@ const se_AddSourceIdentifierToSubscriptionCommand = async (input, context) => {
35
31
  };
36
32
  exports.se_AddSourceIdentifierToSubscriptionCommand = se_AddSourceIdentifierToSubscriptionCommand;
37
33
  const se_AddTagsToResourceCommand = 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_AddTagsToResourceMessage(input, context),
@@ -48,9 +42,7 @@ const se_AddTagsToResourceCommand = async (input, context) => {
48
42
  };
49
43
  exports.se_AddTagsToResourceCommand = se_AddTagsToResourceCommand;
50
44
  const se_ApplyPendingMaintenanceActionCommand = 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_ApplyPendingMaintenanceActionMessage(input, context),
@@ -61,9 +53,7 @@ const se_ApplyPendingMaintenanceActionCommand = async (input, context) => {
61
53
  };
62
54
  exports.se_ApplyPendingMaintenanceActionCommand = se_ApplyPendingMaintenanceActionCommand;
63
55
  const se_CopyDBClusterParameterGroupCommand = 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_CopyDBClusterParameterGroupMessage(input, context),
@@ -74,9 +64,7 @@ const se_CopyDBClusterParameterGroupCommand = async (input, context) => {
74
64
  };
75
65
  exports.se_CopyDBClusterParameterGroupCommand = se_CopyDBClusterParameterGroupCommand;
76
66
  const se_CopyDBClusterSnapshotCommand = 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_CopyDBClusterSnapshotMessage(input, context),
@@ -87,9 +75,7 @@ const se_CopyDBClusterSnapshotCommand = async (input, context) => {
87
75
  };
88
76
  exports.se_CopyDBClusterSnapshotCommand = se_CopyDBClusterSnapshotCommand;
89
77
  const se_CopyDBParameterGroupCommand = 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_CopyDBParameterGroupMessage(input, context),
@@ -100,9 +86,7 @@ const se_CopyDBParameterGroupCommand = async (input, context) => {
100
86
  };
101
87
  exports.se_CopyDBParameterGroupCommand = se_CopyDBParameterGroupCommand;
102
88
  const se_CreateDBClusterCommand = 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_CreateDBClusterMessage(input, context),
@@ -113,9 +97,7 @@ const se_CreateDBClusterCommand = async (input, context) => {
113
97
  };
114
98
  exports.se_CreateDBClusterCommand = se_CreateDBClusterCommand;
115
99
  const se_CreateDBClusterEndpointCommand = 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_CreateDBClusterEndpointMessage(input, context),
@@ -126,9 +108,7 @@ const se_CreateDBClusterEndpointCommand = async (input, context) => {
126
108
  };
127
109
  exports.se_CreateDBClusterEndpointCommand = se_CreateDBClusterEndpointCommand;
128
110
  const se_CreateDBClusterParameterGroupCommand = 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_CreateDBClusterParameterGroupMessage(input, context),
@@ -139,9 +119,7 @@ const se_CreateDBClusterParameterGroupCommand = async (input, context) => {
139
119
  };
140
120
  exports.se_CreateDBClusterParameterGroupCommand = se_CreateDBClusterParameterGroupCommand;
141
121
  const se_CreateDBClusterSnapshotCommand = 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_CreateDBClusterSnapshotMessage(input, context),
@@ -152,9 +130,7 @@ const se_CreateDBClusterSnapshotCommand = async (input, context) => {
152
130
  };
153
131
  exports.se_CreateDBClusterSnapshotCommand = se_CreateDBClusterSnapshotCommand;
154
132
  const se_CreateDBInstanceCommand = 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_CreateDBInstanceMessage(input, context),
@@ -165,9 +141,7 @@ const se_CreateDBInstanceCommand = async (input, context) => {
165
141
  };
166
142
  exports.se_CreateDBInstanceCommand = se_CreateDBInstanceCommand;
167
143
  const se_CreateDBParameterGroupCommand = 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_CreateDBParameterGroupMessage(input, context),
@@ -178,9 +152,7 @@ const se_CreateDBParameterGroupCommand = async (input, context) => {
178
152
  };
179
153
  exports.se_CreateDBParameterGroupCommand = se_CreateDBParameterGroupCommand;
180
154
  const se_CreateDBSubnetGroupCommand = 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_CreateDBSubnetGroupMessage(input, context),
@@ -191,9 +163,7 @@ const se_CreateDBSubnetGroupCommand = async (input, context) => {
191
163
  };
192
164
  exports.se_CreateDBSubnetGroupCommand = se_CreateDBSubnetGroupCommand;
193
165
  const se_CreateEventSubscriptionCommand = 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_CreateEventSubscriptionMessage(input, context),
@@ -204,9 +174,7 @@ const se_CreateEventSubscriptionCommand = async (input, context) => {
204
174
  };
205
175
  exports.se_CreateEventSubscriptionCommand = se_CreateEventSubscriptionCommand;
206
176
  const se_CreateGlobalClusterCommand = 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_CreateGlobalClusterMessage(input, context),
@@ -217,9 +185,7 @@ const se_CreateGlobalClusterCommand = async (input, context) => {
217
185
  };
218
186
  exports.se_CreateGlobalClusterCommand = se_CreateGlobalClusterCommand;
219
187
  const se_DeleteDBClusterCommand = 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_DeleteDBClusterMessage(input, context),
@@ -230,9 +196,7 @@ const se_DeleteDBClusterCommand = async (input, context) => {
230
196
  };
231
197
  exports.se_DeleteDBClusterCommand = se_DeleteDBClusterCommand;
232
198
  const se_DeleteDBClusterEndpointCommand = 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_DeleteDBClusterEndpointMessage(input, context),
@@ -243,9 +207,7 @@ const se_DeleteDBClusterEndpointCommand = async (input, context) => {
243
207
  };
244
208
  exports.se_DeleteDBClusterEndpointCommand = se_DeleteDBClusterEndpointCommand;
245
209
  const se_DeleteDBClusterParameterGroupCommand = 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_DeleteDBClusterParameterGroupMessage(input, context),
@@ -256,9 +218,7 @@ const se_DeleteDBClusterParameterGroupCommand = async (input, context) => {
256
218
  };
257
219
  exports.se_DeleteDBClusterParameterGroupCommand = se_DeleteDBClusterParameterGroupCommand;
258
220
  const se_DeleteDBClusterSnapshotCommand = 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_DeleteDBClusterSnapshotMessage(input, context),
@@ -269,9 +229,7 @@ const se_DeleteDBClusterSnapshotCommand = async (input, context) => {
269
229
  };
270
230
  exports.se_DeleteDBClusterSnapshotCommand = se_DeleteDBClusterSnapshotCommand;
271
231
  const se_DeleteDBInstanceCommand = 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_DeleteDBInstanceMessage(input, context),
@@ -282,9 +240,7 @@ const se_DeleteDBInstanceCommand = async (input, context) => {
282
240
  };
283
241
  exports.se_DeleteDBInstanceCommand = se_DeleteDBInstanceCommand;
284
242
  const se_DeleteDBParameterGroupCommand = 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_DeleteDBParameterGroupMessage(input, context),
@@ -295,9 +251,7 @@ const se_DeleteDBParameterGroupCommand = async (input, context) => {
295
251
  };
296
252
  exports.se_DeleteDBParameterGroupCommand = se_DeleteDBParameterGroupCommand;
297
253
  const se_DeleteDBSubnetGroupCommand = 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_DeleteDBSubnetGroupMessage(input, context),
@@ -308,9 +262,7 @@ const se_DeleteDBSubnetGroupCommand = async (input, context) => {
308
262
  };
309
263
  exports.se_DeleteDBSubnetGroupCommand = se_DeleteDBSubnetGroupCommand;
310
264
  const se_DeleteEventSubscriptionCommand = 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_DeleteEventSubscriptionMessage(input, context),
@@ -321,9 +273,7 @@ const se_DeleteEventSubscriptionCommand = async (input, context) => {
321
273
  };
322
274
  exports.se_DeleteEventSubscriptionCommand = se_DeleteEventSubscriptionCommand;
323
275
  const se_DeleteGlobalClusterCommand = async (input, context) => {
324
- const headers = {
325
- "content-type": "application/x-www-form-urlencoded",
326
- };
276
+ const headers = SHARED_HEADERS;
327
277
  let body;
328
278
  body = buildFormUrlencodedString({
329
279
  ...se_DeleteGlobalClusterMessage(input, context),
@@ -334,9 +284,7 @@ const se_DeleteGlobalClusterCommand = async (input, context) => {
334
284
  };
335
285
  exports.se_DeleteGlobalClusterCommand = se_DeleteGlobalClusterCommand;
336
286
  const se_DescribeDBClusterEndpointsCommand = async (input, context) => {
337
- const headers = {
338
- "content-type": "application/x-www-form-urlencoded",
339
- };
287
+ const headers = SHARED_HEADERS;
340
288
  let body;
341
289
  body = buildFormUrlencodedString({
342
290
  ...se_DescribeDBClusterEndpointsMessage(input, context),
@@ -347,9 +295,7 @@ const se_DescribeDBClusterEndpointsCommand = async (input, context) => {
347
295
  };
348
296
  exports.se_DescribeDBClusterEndpointsCommand = se_DescribeDBClusterEndpointsCommand;
349
297
  const se_DescribeDBClusterParameterGroupsCommand = async (input, context) => {
350
- const headers = {
351
- "content-type": "application/x-www-form-urlencoded",
352
- };
298
+ const headers = SHARED_HEADERS;
353
299
  let body;
354
300
  body = buildFormUrlencodedString({
355
301
  ...se_DescribeDBClusterParameterGroupsMessage(input, context),
@@ -360,9 +306,7 @@ const se_DescribeDBClusterParameterGroupsCommand = async (input, context) => {
360
306
  };
361
307
  exports.se_DescribeDBClusterParameterGroupsCommand = se_DescribeDBClusterParameterGroupsCommand;
362
308
  const se_DescribeDBClusterParametersCommand = async (input, context) => {
363
- const headers = {
364
- "content-type": "application/x-www-form-urlencoded",
365
- };
309
+ const headers = SHARED_HEADERS;
366
310
  let body;
367
311
  body = buildFormUrlencodedString({
368
312
  ...se_DescribeDBClusterParametersMessage(input, context),
@@ -373,9 +317,7 @@ const se_DescribeDBClusterParametersCommand = async (input, context) => {
373
317
  };
374
318
  exports.se_DescribeDBClusterParametersCommand = se_DescribeDBClusterParametersCommand;
375
319
  const se_DescribeDBClustersCommand = async (input, context) => {
376
- const headers = {
377
- "content-type": "application/x-www-form-urlencoded",
378
- };
320
+ const headers = SHARED_HEADERS;
379
321
  let body;
380
322
  body = buildFormUrlencodedString({
381
323
  ...se_DescribeDBClustersMessage(input, context),
@@ -386,9 +328,7 @@ const se_DescribeDBClustersCommand = async (input, context) => {
386
328
  };
387
329
  exports.se_DescribeDBClustersCommand = se_DescribeDBClustersCommand;
388
330
  const se_DescribeDBClusterSnapshotAttributesCommand = async (input, context) => {
389
- const headers = {
390
- "content-type": "application/x-www-form-urlencoded",
391
- };
331
+ const headers = SHARED_HEADERS;
392
332
  let body;
393
333
  body = buildFormUrlencodedString({
394
334
  ...se_DescribeDBClusterSnapshotAttributesMessage(input, context),
@@ -399,9 +339,7 @@ const se_DescribeDBClusterSnapshotAttributesCommand = async (input, context) =>
399
339
  };
400
340
  exports.se_DescribeDBClusterSnapshotAttributesCommand = se_DescribeDBClusterSnapshotAttributesCommand;
401
341
  const se_DescribeDBClusterSnapshotsCommand = async (input, context) => {
402
- const headers = {
403
- "content-type": "application/x-www-form-urlencoded",
404
- };
342
+ const headers = SHARED_HEADERS;
405
343
  let body;
406
344
  body = buildFormUrlencodedString({
407
345
  ...se_DescribeDBClusterSnapshotsMessage(input, context),
@@ -412,9 +350,7 @@ const se_DescribeDBClusterSnapshotsCommand = async (input, context) => {
412
350
  };
413
351
  exports.se_DescribeDBClusterSnapshotsCommand = se_DescribeDBClusterSnapshotsCommand;
414
352
  const se_DescribeDBEngineVersionsCommand = async (input, context) => {
415
- const headers = {
416
- "content-type": "application/x-www-form-urlencoded",
417
- };
353
+ const headers = SHARED_HEADERS;
418
354
  let body;
419
355
  body = buildFormUrlencodedString({
420
356
  ...se_DescribeDBEngineVersionsMessage(input, context),
@@ -425,9 +361,7 @@ const se_DescribeDBEngineVersionsCommand = async (input, context) => {
425
361
  };
426
362
  exports.se_DescribeDBEngineVersionsCommand = se_DescribeDBEngineVersionsCommand;
427
363
  const se_DescribeDBInstancesCommand = async (input, context) => {
428
- const headers = {
429
- "content-type": "application/x-www-form-urlencoded",
430
- };
364
+ const headers = SHARED_HEADERS;
431
365
  let body;
432
366
  body = buildFormUrlencodedString({
433
367
  ...se_DescribeDBInstancesMessage(input, context),
@@ -438,9 +372,7 @@ const se_DescribeDBInstancesCommand = async (input, context) => {
438
372
  };
439
373
  exports.se_DescribeDBInstancesCommand = se_DescribeDBInstancesCommand;
440
374
  const se_DescribeDBParameterGroupsCommand = async (input, context) => {
441
- const headers = {
442
- "content-type": "application/x-www-form-urlencoded",
443
- };
375
+ const headers = SHARED_HEADERS;
444
376
  let body;
445
377
  body = buildFormUrlencodedString({
446
378
  ...se_DescribeDBParameterGroupsMessage(input, context),
@@ -451,9 +383,7 @@ const se_DescribeDBParameterGroupsCommand = async (input, context) => {
451
383
  };
452
384
  exports.se_DescribeDBParameterGroupsCommand = se_DescribeDBParameterGroupsCommand;
453
385
  const se_DescribeDBParametersCommand = async (input, context) => {
454
- const headers = {
455
- "content-type": "application/x-www-form-urlencoded",
456
- };
386
+ const headers = SHARED_HEADERS;
457
387
  let body;
458
388
  body = buildFormUrlencodedString({
459
389
  ...se_DescribeDBParametersMessage(input, context),
@@ -464,9 +394,7 @@ const se_DescribeDBParametersCommand = async (input, context) => {
464
394
  };
465
395
  exports.se_DescribeDBParametersCommand = se_DescribeDBParametersCommand;
466
396
  const se_DescribeDBSubnetGroupsCommand = async (input, context) => {
467
- const headers = {
468
- "content-type": "application/x-www-form-urlencoded",
469
- };
397
+ const headers = SHARED_HEADERS;
470
398
  let body;
471
399
  body = buildFormUrlencodedString({
472
400
  ...se_DescribeDBSubnetGroupsMessage(input, context),
@@ -477,9 +405,7 @@ const se_DescribeDBSubnetGroupsCommand = async (input, context) => {
477
405
  };
478
406
  exports.se_DescribeDBSubnetGroupsCommand = se_DescribeDBSubnetGroupsCommand;
479
407
  const se_DescribeEngineDefaultClusterParametersCommand = async (input, context) => {
480
- const headers = {
481
- "content-type": "application/x-www-form-urlencoded",
482
- };
408
+ const headers = SHARED_HEADERS;
483
409
  let body;
484
410
  body = buildFormUrlencodedString({
485
411
  ...se_DescribeEngineDefaultClusterParametersMessage(input, context),
@@ -490,9 +416,7 @@ const se_DescribeEngineDefaultClusterParametersCommand = async (input, context)
490
416
  };
491
417
  exports.se_DescribeEngineDefaultClusterParametersCommand = se_DescribeEngineDefaultClusterParametersCommand;
492
418
  const se_DescribeEngineDefaultParametersCommand = async (input, context) => {
493
- const headers = {
494
- "content-type": "application/x-www-form-urlencoded",
495
- };
419
+ const headers = SHARED_HEADERS;
496
420
  let body;
497
421
  body = buildFormUrlencodedString({
498
422
  ...se_DescribeEngineDefaultParametersMessage(input, context),
@@ -503,9 +427,7 @@ const se_DescribeEngineDefaultParametersCommand = async (input, context) => {
503
427
  };
504
428
  exports.se_DescribeEngineDefaultParametersCommand = se_DescribeEngineDefaultParametersCommand;
505
429
  const se_DescribeEventCategoriesCommand = async (input, context) => {
506
- const headers = {
507
- "content-type": "application/x-www-form-urlencoded",
508
- };
430
+ const headers = SHARED_HEADERS;
509
431
  let body;
510
432
  body = buildFormUrlencodedString({
511
433
  ...se_DescribeEventCategoriesMessage(input, context),
@@ -516,9 +438,7 @@ const se_DescribeEventCategoriesCommand = async (input, context) => {
516
438
  };
517
439
  exports.se_DescribeEventCategoriesCommand = se_DescribeEventCategoriesCommand;
518
440
  const se_DescribeEventsCommand = async (input, context) => {
519
- const headers = {
520
- "content-type": "application/x-www-form-urlencoded",
521
- };
441
+ const headers = SHARED_HEADERS;
522
442
  let body;
523
443
  body = buildFormUrlencodedString({
524
444
  ...se_DescribeEventsMessage(input, context),
@@ -529,9 +449,7 @@ const se_DescribeEventsCommand = async (input, context) => {
529
449
  };
530
450
  exports.se_DescribeEventsCommand = se_DescribeEventsCommand;
531
451
  const se_DescribeEventSubscriptionsCommand = async (input, context) => {
532
- const headers = {
533
- "content-type": "application/x-www-form-urlencoded",
534
- };
452
+ const headers = SHARED_HEADERS;
535
453
  let body;
536
454
  body = buildFormUrlencodedString({
537
455
  ...se_DescribeEventSubscriptionsMessage(input, context),
@@ -542,9 +460,7 @@ const se_DescribeEventSubscriptionsCommand = async (input, context) => {
542
460
  };
543
461
  exports.se_DescribeEventSubscriptionsCommand = se_DescribeEventSubscriptionsCommand;
544
462
  const se_DescribeGlobalClustersCommand = async (input, context) => {
545
- const headers = {
546
- "content-type": "application/x-www-form-urlencoded",
547
- };
463
+ const headers = SHARED_HEADERS;
548
464
  let body;
549
465
  body = buildFormUrlencodedString({
550
466
  ...se_DescribeGlobalClustersMessage(input, context),
@@ -555,9 +471,7 @@ const se_DescribeGlobalClustersCommand = async (input, context) => {
555
471
  };
556
472
  exports.se_DescribeGlobalClustersCommand = se_DescribeGlobalClustersCommand;
557
473
  const se_DescribeOrderableDBInstanceOptionsCommand = async (input, context) => {
558
- const headers = {
559
- "content-type": "application/x-www-form-urlencoded",
560
- };
474
+ const headers = SHARED_HEADERS;
561
475
  let body;
562
476
  body = buildFormUrlencodedString({
563
477
  ...se_DescribeOrderableDBInstanceOptionsMessage(input, context),
@@ -568,9 +482,7 @@ const se_DescribeOrderableDBInstanceOptionsCommand = async (input, context) => {
568
482
  };
569
483
  exports.se_DescribeOrderableDBInstanceOptionsCommand = se_DescribeOrderableDBInstanceOptionsCommand;
570
484
  const se_DescribePendingMaintenanceActionsCommand = async (input, context) => {
571
- const headers = {
572
- "content-type": "application/x-www-form-urlencoded",
573
- };
485
+ const headers = SHARED_HEADERS;
574
486
  let body;
575
487
  body = buildFormUrlencodedString({
576
488
  ...se_DescribePendingMaintenanceActionsMessage(input, context),
@@ -581,9 +493,7 @@ const se_DescribePendingMaintenanceActionsCommand = async (input, context) => {
581
493
  };
582
494
  exports.se_DescribePendingMaintenanceActionsCommand = se_DescribePendingMaintenanceActionsCommand;
583
495
  const se_DescribeValidDBInstanceModificationsCommand = async (input, context) => {
584
- const headers = {
585
- "content-type": "application/x-www-form-urlencoded",
586
- };
496
+ const headers = SHARED_HEADERS;
587
497
  let body;
588
498
  body = buildFormUrlencodedString({
589
499
  ...se_DescribeValidDBInstanceModificationsMessage(input, context),
@@ -594,9 +504,7 @@ const se_DescribeValidDBInstanceModificationsCommand = async (input, context) =>
594
504
  };
595
505
  exports.se_DescribeValidDBInstanceModificationsCommand = se_DescribeValidDBInstanceModificationsCommand;
596
506
  const se_FailoverDBClusterCommand = async (input, context) => {
597
- const headers = {
598
- "content-type": "application/x-www-form-urlencoded",
599
- };
507
+ const headers = SHARED_HEADERS;
600
508
  let body;
601
509
  body = buildFormUrlencodedString({
602
510
  ...se_FailoverDBClusterMessage(input, context),
@@ -607,9 +515,7 @@ const se_FailoverDBClusterCommand = async (input, context) => {
607
515
  };
608
516
  exports.se_FailoverDBClusterCommand = se_FailoverDBClusterCommand;
609
517
  const se_FailoverGlobalClusterCommand = async (input, context) => {
610
- const headers = {
611
- "content-type": "application/x-www-form-urlencoded",
612
- };
518
+ const headers = SHARED_HEADERS;
613
519
  let body;
614
520
  body = buildFormUrlencodedString({
615
521
  ...se_FailoverGlobalClusterMessage(input, context),
@@ -620,9 +526,7 @@ const se_FailoverGlobalClusterCommand = async (input, context) => {
620
526
  };
621
527
  exports.se_FailoverGlobalClusterCommand = se_FailoverGlobalClusterCommand;
622
528
  const se_ListTagsForResourceCommand = async (input, context) => {
623
- const headers = {
624
- "content-type": "application/x-www-form-urlencoded",
625
- };
529
+ const headers = SHARED_HEADERS;
626
530
  let body;
627
531
  body = buildFormUrlencodedString({
628
532
  ...se_ListTagsForResourceMessage(input, context),
@@ -633,9 +537,7 @@ const se_ListTagsForResourceCommand = async (input, context) => {
633
537
  };
634
538
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
635
539
  const se_ModifyDBClusterCommand = async (input, context) => {
636
- const headers = {
637
- "content-type": "application/x-www-form-urlencoded",
638
- };
540
+ const headers = SHARED_HEADERS;
639
541
  let body;
640
542
  body = buildFormUrlencodedString({
641
543
  ...se_ModifyDBClusterMessage(input, context),
@@ -646,9 +548,7 @@ const se_ModifyDBClusterCommand = async (input, context) => {
646
548
  };
647
549
  exports.se_ModifyDBClusterCommand = se_ModifyDBClusterCommand;
648
550
  const se_ModifyDBClusterEndpointCommand = async (input, context) => {
649
- const headers = {
650
- "content-type": "application/x-www-form-urlencoded",
651
- };
551
+ const headers = SHARED_HEADERS;
652
552
  let body;
653
553
  body = buildFormUrlencodedString({
654
554
  ...se_ModifyDBClusterEndpointMessage(input, context),
@@ -659,9 +559,7 @@ const se_ModifyDBClusterEndpointCommand = async (input, context) => {
659
559
  };
660
560
  exports.se_ModifyDBClusterEndpointCommand = se_ModifyDBClusterEndpointCommand;
661
561
  const se_ModifyDBClusterParameterGroupCommand = async (input, context) => {
662
- const headers = {
663
- "content-type": "application/x-www-form-urlencoded",
664
- };
562
+ const headers = SHARED_HEADERS;
665
563
  let body;
666
564
  body = buildFormUrlencodedString({
667
565
  ...se_ModifyDBClusterParameterGroupMessage(input, context),
@@ -672,9 +570,7 @@ const se_ModifyDBClusterParameterGroupCommand = async (input, context) => {
672
570
  };
673
571
  exports.se_ModifyDBClusterParameterGroupCommand = se_ModifyDBClusterParameterGroupCommand;
674
572
  const se_ModifyDBClusterSnapshotAttributeCommand = async (input, context) => {
675
- const headers = {
676
- "content-type": "application/x-www-form-urlencoded",
677
- };
573
+ const headers = SHARED_HEADERS;
678
574
  let body;
679
575
  body = buildFormUrlencodedString({
680
576
  ...se_ModifyDBClusterSnapshotAttributeMessage(input, context),
@@ -685,9 +581,7 @@ const se_ModifyDBClusterSnapshotAttributeCommand = async (input, context) => {
685
581
  };
686
582
  exports.se_ModifyDBClusterSnapshotAttributeCommand = se_ModifyDBClusterSnapshotAttributeCommand;
687
583
  const se_ModifyDBInstanceCommand = async (input, context) => {
688
- const headers = {
689
- "content-type": "application/x-www-form-urlencoded",
690
- };
584
+ const headers = SHARED_HEADERS;
691
585
  let body;
692
586
  body = buildFormUrlencodedString({
693
587
  ...se_ModifyDBInstanceMessage(input, context),
@@ -698,9 +592,7 @@ const se_ModifyDBInstanceCommand = async (input, context) => {
698
592
  };
699
593
  exports.se_ModifyDBInstanceCommand = se_ModifyDBInstanceCommand;
700
594
  const se_ModifyDBParameterGroupCommand = async (input, context) => {
701
- const headers = {
702
- "content-type": "application/x-www-form-urlencoded",
703
- };
595
+ const headers = SHARED_HEADERS;
704
596
  let body;
705
597
  body = buildFormUrlencodedString({
706
598
  ...se_ModifyDBParameterGroupMessage(input, context),
@@ -711,9 +603,7 @@ const se_ModifyDBParameterGroupCommand = async (input, context) => {
711
603
  };
712
604
  exports.se_ModifyDBParameterGroupCommand = se_ModifyDBParameterGroupCommand;
713
605
  const se_ModifyDBSubnetGroupCommand = async (input, context) => {
714
- const headers = {
715
- "content-type": "application/x-www-form-urlencoded",
716
- };
606
+ const headers = SHARED_HEADERS;
717
607
  let body;
718
608
  body = buildFormUrlencodedString({
719
609
  ...se_ModifyDBSubnetGroupMessage(input, context),
@@ -724,9 +614,7 @@ const se_ModifyDBSubnetGroupCommand = async (input, context) => {
724
614
  };
725
615
  exports.se_ModifyDBSubnetGroupCommand = se_ModifyDBSubnetGroupCommand;
726
616
  const se_ModifyEventSubscriptionCommand = async (input, context) => {
727
- const headers = {
728
- "content-type": "application/x-www-form-urlencoded",
729
- };
617
+ const headers = SHARED_HEADERS;
730
618
  let body;
731
619
  body = buildFormUrlencodedString({
732
620
  ...se_ModifyEventSubscriptionMessage(input, context),
@@ -737,9 +625,7 @@ const se_ModifyEventSubscriptionCommand = async (input, context) => {
737
625
  };
738
626
  exports.se_ModifyEventSubscriptionCommand = se_ModifyEventSubscriptionCommand;
739
627
  const se_ModifyGlobalClusterCommand = async (input, context) => {
740
- const headers = {
741
- "content-type": "application/x-www-form-urlencoded",
742
- };
628
+ const headers = SHARED_HEADERS;
743
629
  let body;
744
630
  body = buildFormUrlencodedString({
745
631
  ...se_ModifyGlobalClusterMessage(input, context),
@@ -750,9 +636,7 @@ const se_ModifyGlobalClusterCommand = async (input, context) => {
750
636
  };
751
637
  exports.se_ModifyGlobalClusterCommand = se_ModifyGlobalClusterCommand;
752
638
  const se_PromoteReadReplicaDBClusterCommand = async (input, context) => {
753
- const headers = {
754
- "content-type": "application/x-www-form-urlencoded",
755
- };
639
+ const headers = SHARED_HEADERS;
756
640
  let body;
757
641
  body = buildFormUrlencodedString({
758
642
  ...se_PromoteReadReplicaDBClusterMessage(input, context),
@@ -763,9 +647,7 @@ const se_PromoteReadReplicaDBClusterCommand = async (input, context) => {
763
647
  };
764
648
  exports.se_PromoteReadReplicaDBClusterCommand = se_PromoteReadReplicaDBClusterCommand;
765
649
  const se_RebootDBInstanceCommand = async (input, context) => {
766
- const headers = {
767
- "content-type": "application/x-www-form-urlencoded",
768
- };
650
+ const headers = SHARED_HEADERS;
769
651
  let body;
770
652
  body = buildFormUrlencodedString({
771
653
  ...se_RebootDBInstanceMessage(input, context),
@@ -776,9 +658,7 @@ const se_RebootDBInstanceCommand = async (input, context) => {
776
658
  };
777
659
  exports.se_RebootDBInstanceCommand = se_RebootDBInstanceCommand;
778
660
  const se_RemoveFromGlobalClusterCommand = async (input, context) => {
779
- const headers = {
780
- "content-type": "application/x-www-form-urlencoded",
781
- };
661
+ const headers = SHARED_HEADERS;
782
662
  let body;
783
663
  body = buildFormUrlencodedString({
784
664
  ...se_RemoveFromGlobalClusterMessage(input, context),
@@ -789,9 +669,7 @@ const se_RemoveFromGlobalClusterCommand = async (input, context) => {
789
669
  };
790
670
  exports.se_RemoveFromGlobalClusterCommand = se_RemoveFromGlobalClusterCommand;
791
671
  const se_RemoveRoleFromDBClusterCommand = async (input, context) => {
792
- const headers = {
793
- "content-type": "application/x-www-form-urlencoded",
794
- };
672
+ const headers = SHARED_HEADERS;
795
673
  let body;
796
674
  body = buildFormUrlencodedString({
797
675
  ...se_RemoveRoleFromDBClusterMessage(input, context),
@@ -802,9 +680,7 @@ const se_RemoveRoleFromDBClusterCommand = async (input, context) => {
802
680
  };
803
681
  exports.se_RemoveRoleFromDBClusterCommand = se_RemoveRoleFromDBClusterCommand;
804
682
  const se_RemoveSourceIdentifierFromSubscriptionCommand = async (input, context) => {
805
- const headers = {
806
- "content-type": "application/x-www-form-urlencoded",
807
- };
683
+ const headers = SHARED_HEADERS;
808
684
  let body;
809
685
  body = buildFormUrlencodedString({
810
686
  ...se_RemoveSourceIdentifierFromSubscriptionMessage(input, context),
@@ -815,9 +691,7 @@ const se_RemoveSourceIdentifierFromSubscriptionCommand = async (input, context)
815
691
  };
816
692
  exports.se_RemoveSourceIdentifierFromSubscriptionCommand = se_RemoveSourceIdentifierFromSubscriptionCommand;
817
693
  const se_RemoveTagsFromResourceCommand = async (input, context) => {
818
- const headers = {
819
- "content-type": "application/x-www-form-urlencoded",
820
- };
694
+ const headers = SHARED_HEADERS;
821
695
  let body;
822
696
  body = buildFormUrlencodedString({
823
697
  ...se_RemoveTagsFromResourceMessage(input, context),
@@ -828,9 +702,7 @@ const se_RemoveTagsFromResourceCommand = async (input, context) => {
828
702
  };
829
703
  exports.se_RemoveTagsFromResourceCommand = se_RemoveTagsFromResourceCommand;
830
704
  const se_ResetDBClusterParameterGroupCommand = async (input, context) => {
831
- const headers = {
832
- "content-type": "application/x-www-form-urlencoded",
833
- };
705
+ const headers = SHARED_HEADERS;
834
706
  let body;
835
707
  body = buildFormUrlencodedString({
836
708
  ...se_ResetDBClusterParameterGroupMessage(input, context),
@@ -841,9 +713,7 @@ const se_ResetDBClusterParameterGroupCommand = async (input, context) => {
841
713
  };
842
714
  exports.se_ResetDBClusterParameterGroupCommand = se_ResetDBClusterParameterGroupCommand;
843
715
  const se_ResetDBParameterGroupCommand = async (input, context) => {
844
- const headers = {
845
- "content-type": "application/x-www-form-urlencoded",
846
- };
716
+ const headers = SHARED_HEADERS;
847
717
  let body;
848
718
  body = buildFormUrlencodedString({
849
719
  ...se_ResetDBParameterGroupMessage(input, context),
@@ -854,9 +724,7 @@ const se_ResetDBParameterGroupCommand = async (input, context) => {
854
724
  };
855
725
  exports.se_ResetDBParameterGroupCommand = se_ResetDBParameterGroupCommand;
856
726
  const se_RestoreDBClusterFromSnapshotCommand = async (input, context) => {
857
- const headers = {
858
- "content-type": "application/x-www-form-urlencoded",
859
- };
727
+ const headers = SHARED_HEADERS;
860
728
  let body;
861
729
  body = buildFormUrlencodedString({
862
730
  ...se_RestoreDBClusterFromSnapshotMessage(input, context),
@@ -867,9 +735,7 @@ const se_RestoreDBClusterFromSnapshotCommand = async (input, context) => {
867
735
  };
868
736
  exports.se_RestoreDBClusterFromSnapshotCommand = se_RestoreDBClusterFromSnapshotCommand;
869
737
  const se_RestoreDBClusterToPointInTimeCommand = async (input, context) => {
870
- const headers = {
871
- "content-type": "application/x-www-form-urlencoded",
872
- };
738
+ const headers = SHARED_HEADERS;
873
739
  let body;
874
740
  body = buildFormUrlencodedString({
875
741
  ...se_RestoreDBClusterToPointInTimeMessage(input, context),
@@ -880,9 +746,7 @@ const se_RestoreDBClusterToPointInTimeCommand = async (input, context) => {
880
746
  };
881
747
  exports.se_RestoreDBClusterToPointInTimeCommand = se_RestoreDBClusterToPointInTimeCommand;
882
748
  const se_StartDBClusterCommand = async (input, context) => {
883
- const headers = {
884
- "content-type": "application/x-www-form-urlencoded",
885
- };
749
+ const headers = SHARED_HEADERS;
886
750
  let body;
887
751
  body = buildFormUrlencodedString({
888
752
  ...se_StartDBClusterMessage(input, context),
@@ -893,9 +757,7 @@ const se_StartDBClusterCommand = async (input, context) => {
893
757
  };
894
758
  exports.se_StartDBClusterCommand = se_StartDBClusterCommand;
895
759
  const se_StopDBClusterCommand = async (input, context) => {
896
- const headers = {
897
- "content-type": "application/x-www-form-urlencoded",
898
- };
760
+ const headers = SHARED_HEADERS;
899
761
  let body;
900
762
  body = buildFormUrlencodedString({
901
763
  ...se_StopDBClusterMessage(input, context),
@@ -9175,6 +9037,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
9175
9037
  }
9176
9038
  return new protocol_http_1.HttpRequest(contents);
9177
9039
  };
9040
+ const SHARED_HEADERS = {
9041
+ "content-type": "application/x-www-form-urlencoded",
9042
+ };
9178
9043
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
9179
9044
  if (encoded.length) {
9180
9045
  const parser = new fast_xml_parser_1.XMLParser({