@aws-sdk/client-docdb 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 DocDBServiceException_1 = require("../models/DocDBServiceException");
10
10
  const models_0_1 = require("../models/models_0");
11
11
  const se_AddSourceIdentifierToSubscriptionCommand = 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_AddSourceIdentifierToSubscriptionMessage(input, context),
@@ -22,9 +20,7 @@ const se_AddSourceIdentifierToSubscriptionCommand = async (input, context) => {
22
20
  };
23
21
  exports.se_AddSourceIdentifierToSubscriptionCommand = se_AddSourceIdentifierToSubscriptionCommand;
24
22
  const se_AddTagsToResourceCommand = 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_AddTagsToResourceMessage(input, context),
@@ -35,9 +31,7 @@ const se_AddTagsToResourceCommand = async (input, context) => {
35
31
  };
36
32
  exports.se_AddTagsToResourceCommand = se_AddTagsToResourceCommand;
37
33
  const se_ApplyPendingMaintenanceActionCommand = 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_ApplyPendingMaintenanceActionMessage(input, context),
@@ -48,9 +42,7 @@ const se_ApplyPendingMaintenanceActionCommand = async (input, context) => {
48
42
  };
49
43
  exports.se_ApplyPendingMaintenanceActionCommand = se_ApplyPendingMaintenanceActionCommand;
50
44
  const se_CopyDBClusterParameterGroupCommand = 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_CopyDBClusterParameterGroupMessage(input, context),
@@ -61,9 +53,7 @@ const se_CopyDBClusterParameterGroupCommand = async (input, context) => {
61
53
  };
62
54
  exports.se_CopyDBClusterParameterGroupCommand = se_CopyDBClusterParameterGroupCommand;
63
55
  const se_CopyDBClusterSnapshotCommand = 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_CopyDBClusterSnapshotMessage(input, context),
@@ -74,9 +64,7 @@ const se_CopyDBClusterSnapshotCommand = async (input, context) => {
74
64
  };
75
65
  exports.se_CopyDBClusterSnapshotCommand = se_CopyDBClusterSnapshotCommand;
76
66
  const se_CreateDBClusterCommand = 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_CreateDBClusterMessage(input, context),
@@ -87,9 +75,7 @@ const se_CreateDBClusterCommand = async (input, context) => {
87
75
  };
88
76
  exports.se_CreateDBClusterCommand = se_CreateDBClusterCommand;
89
77
  const se_CreateDBClusterParameterGroupCommand = 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_CreateDBClusterParameterGroupMessage(input, context),
@@ -100,9 +86,7 @@ const se_CreateDBClusterParameterGroupCommand = async (input, context) => {
100
86
  };
101
87
  exports.se_CreateDBClusterParameterGroupCommand = se_CreateDBClusterParameterGroupCommand;
102
88
  const se_CreateDBClusterSnapshotCommand = 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_CreateDBClusterSnapshotMessage(input, context),
@@ -113,9 +97,7 @@ const se_CreateDBClusterSnapshotCommand = async (input, context) => {
113
97
  };
114
98
  exports.se_CreateDBClusterSnapshotCommand = se_CreateDBClusterSnapshotCommand;
115
99
  const se_CreateDBInstanceCommand = 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_CreateDBInstanceMessage(input, context),
@@ -126,9 +108,7 @@ const se_CreateDBInstanceCommand = async (input, context) => {
126
108
  };
127
109
  exports.se_CreateDBInstanceCommand = se_CreateDBInstanceCommand;
128
110
  const se_CreateDBSubnetGroupCommand = 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_CreateDBSubnetGroupMessage(input, context),
@@ -139,9 +119,7 @@ const se_CreateDBSubnetGroupCommand = async (input, context) => {
139
119
  };
140
120
  exports.se_CreateDBSubnetGroupCommand = se_CreateDBSubnetGroupCommand;
141
121
  const se_CreateEventSubscriptionCommand = 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_CreateEventSubscriptionMessage(input, context),
@@ -152,9 +130,7 @@ const se_CreateEventSubscriptionCommand = async (input, context) => {
152
130
  };
153
131
  exports.se_CreateEventSubscriptionCommand = se_CreateEventSubscriptionCommand;
154
132
  const se_CreateGlobalClusterCommand = 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_CreateGlobalClusterMessage(input, context),
@@ -165,9 +141,7 @@ const se_CreateGlobalClusterCommand = async (input, context) => {
165
141
  };
166
142
  exports.se_CreateGlobalClusterCommand = se_CreateGlobalClusterCommand;
167
143
  const se_DeleteDBClusterCommand = 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_DeleteDBClusterMessage(input, context),
@@ -178,9 +152,7 @@ const se_DeleteDBClusterCommand = async (input, context) => {
178
152
  };
179
153
  exports.se_DeleteDBClusterCommand = se_DeleteDBClusterCommand;
180
154
  const se_DeleteDBClusterParameterGroupCommand = 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_DeleteDBClusterParameterGroupMessage(input, context),
@@ -191,9 +163,7 @@ const se_DeleteDBClusterParameterGroupCommand = async (input, context) => {
191
163
  };
192
164
  exports.se_DeleteDBClusterParameterGroupCommand = se_DeleteDBClusterParameterGroupCommand;
193
165
  const se_DeleteDBClusterSnapshotCommand = 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_DeleteDBClusterSnapshotMessage(input, context),
@@ -204,9 +174,7 @@ const se_DeleteDBClusterSnapshotCommand = async (input, context) => {
204
174
  };
205
175
  exports.se_DeleteDBClusterSnapshotCommand = se_DeleteDBClusterSnapshotCommand;
206
176
  const se_DeleteDBInstanceCommand = 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_DeleteDBInstanceMessage(input, context),
@@ -217,9 +185,7 @@ const se_DeleteDBInstanceCommand = async (input, context) => {
217
185
  };
218
186
  exports.se_DeleteDBInstanceCommand = se_DeleteDBInstanceCommand;
219
187
  const se_DeleteDBSubnetGroupCommand = 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_DeleteDBSubnetGroupMessage(input, context),
@@ -230,9 +196,7 @@ const se_DeleteDBSubnetGroupCommand = async (input, context) => {
230
196
  };
231
197
  exports.se_DeleteDBSubnetGroupCommand = se_DeleteDBSubnetGroupCommand;
232
198
  const se_DeleteEventSubscriptionCommand = 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_DeleteEventSubscriptionMessage(input, context),
@@ -243,9 +207,7 @@ const se_DeleteEventSubscriptionCommand = async (input, context) => {
243
207
  };
244
208
  exports.se_DeleteEventSubscriptionCommand = se_DeleteEventSubscriptionCommand;
245
209
  const se_DeleteGlobalClusterCommand = 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_DeleteGlobalClusterMessage(input, context),
@@ -256,9 +218,7 @@ const se_DeleteGlobalClusterCommand = async (input, context) => {
256
218
  };
257
219
  exports.se_DeleteGlobalClusterCommand = se_DeleteGlobalClusterCommand;
258
220
  const se_DescribeCertificatesCommand = 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_DescribeCertificatesMessage(input, context),
@@ -269,9 +229,7 @@ const se_DescribeCertificatesCommand = async (input, context) => {
269
229
  };
270
230
  exports.se_DescribeCertificatesCommand = se_DescribeCertificatesCommand;
271
231
  const se_DescribeDBClusterParameterGroupsCommand = 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_DescribeDBClusterParameterGroupsMessage(input, context),
@@ -282,9 +240,7 @@ const se_DescribeDBClusterParameterGroupsCommand = async (input, context) => {
282
240
  };
283
241
  exports.se_DescribeDBClusterParameterGroupsCommand = se_DescribeDBClusterParameterGroupsCommand;
284
242
  const se_DescribeDBClusterParametersCommand = 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_DescribeDBClusterParametersMessage(input, context),
@@ -295,9 +251,7 @@ const se_DescribeDBClusterParametersCommand = async (input, context) => {
295
251
  };
296
252
  exports.se_DescribeDBClusterParametersCommand = se_DescribeDBClusterParametersCommand;
297
253
  const se_DescribeDBClustersCommand = 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_DescribeDBClustersMessage(input, context),
@@ -308,9 +262,7 @@ const se_DescribeDBClustersCommand = async (input, context) => {
308
262
  };
309
263
  exports.se_DescribeDBClustersCommand = se_DescribeDBClustersCommand;
310
264
  const se_DescribeDBClusterSnapshotAttributesCommand = 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_DescribeDBClusterSnapshotAttributesMessage(input, context),
@@ -321,9 +273,7 @@ const se_DescribeDBClusterSnapshotAttributesCommand = async (input, context) =>
321
273
  };
322
274
  exports.se_DescribeDBClusterSnapshotAttributesCommand = se_DescribeDBClusterSnapshotAttributesCommand;
323
275
  const se_DescribeDBClusterSnapshotsCommand = 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_DescribeDBClusterSnapshotsMessage(input, context),
@@ -334,9 +284,7 @@ const se_DescribeDBClusterSnapshotsCommand = async (input, context) => {
334
284
  };
335
285
  exports.se_DescribeDBClusterSnapshotsCommand = se_DescribeDBClusterSnapshotsCommand;
336
286
  const se_DescribeDBEngineVersionsCommand = 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_DescribeDBEngineVersionsMessage(input, context),
@@ -347,9 +295,7 @@ const se_DescribeDBEngineVersionsCommand = async (input, context) => {
347
295
  };
348
296
  exports.se_DescribeDBEngineVersionsCommand = se_DescribeDBEngineVersionsCommand;
349
297
  const se_DescribeDBInstancesCommand = 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_DescribeDBInstancesMessage(input, context),
@@ -360,9 +306,7 @@ const se_DescribeDBInstancesCommand = async (input, context) => {
360
306
  };
361
307
  exports.se_DescribeDBInstancesCommand = se_DescribeDBInstancesCommand;
362
308
  const se_DescribeDBSubnetGroupsCommand = 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_DescribeDBSubnetGroupsMessage(input, context),
@@ -373,9 +317,7 @@ const se_DescribeDBSubnetGroupsCommand = async (input, context) => {
373
317
  };
374
318
  exports.se_DescribeDBSubnetGroupsCommand = se_DescribeDBSubnetGroupsCommand;
375
319
  const se_DescribeEngineDefaultClusterParametersCommand = 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_DescribeEngineDefaultClusterParametersMessage(input, context),
@@ -386,9 +328,7 @@ const se_DescribeEngineDefaultClusterParametersCommand = async (input, context)
386
328
  };
387
329
  exports.se_DescribeEngineDefaultClusterParametersCommand = se_DescribeEngineDefaultClusterParametersCommand;
388
330
  const se_DescribeEventCategoriesCommand = 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_DescribeEventCategoriesMessage(input, context),
@@ -399,9 +339,7 @@ const se_DescribeEventCategoriesCommand = async (input, context) => {
399
339
  };
400
340
  exports.se_DescribeEventCategoriesCommand = se_DescribeEventCategoriesCommand;
401
341
  const se_DescribeEventsCommand = 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_DescribeEventsMessage(input, context),
@@ -412,9 +350,7 @@ const se_DescribeEventsCommand = async (input, context) => {
412
350
  };
413
351
  exports.se_DescribeEventsCommand = se_DescribeEventsCommand;
414
352
  const se_DescribeEventSubscriptionsCommand = 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_DescribeEventSubscriptionsMessage(input, context),
@@ -425,9 +361,7 @@ const se_DescribeEventSubscriptionsCommand = async (input, context) => {
425
361
  };
426
362
  exports.se_DescribeEventSubscriptionsCommand = se_DescribeEventSubscriptionsCommand;
427
363
  const se_DescribeGlobalClustersCommand = 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_DescribeGlobalClustersMessage(input, context),
@@ -438,9 +372,7 @@ const se_DescribeGlobalClustersCommand = async (input, context) => {
438
372
  };
439
373
  exports.se_DescribeGlobalClustersCommand = se_DescribeGlobalClustersCommand;
440
374
  const se_DescribeOrderableDBInstanceOptionsCommand = 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_DescribeOrderableDBInstanceOptionsMessage(input, context),
@@ -451,9 +383,7 @@ const se_DescribeOrderableDBInstanceOptionsCommand = async (input, context) => {
451
383
  };
452
384
  exports.se_DescribeOrderableDBInstanceOptionsCommand = se_DescribeOrderableDBInstanceOptionsCommand;
453
385
  const se_DescribePendingMaintenanceActionsCommand = 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_DescribePendingMaintenanceActionsMessage(input, context),
@@ -464,9 +394,7 @@ const se_DescribePendingMaintenanceActionsCommand = async (input, context) => {
464
394
  };
465
395
  exports.se_DescribePendingMaintenanceActionsCommand = se_DescribePendingMaintenanceActionsCommand;
466
396
  const se_FailoverDBClusterCommand = 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_FailoverDBClusterMessage(input, context),
@@ -477,9 +405,7 @@ const se_FailoverDBClusterCommand = async (input, context) => {
477
405
  };
478
406
  exports.se_FailoverDBClusterCommand = se_FailoverDBClusterCommand;
479
407
  const se_ListTagsForResourceCommand = 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_ListTagsForResourceMessage(input, context),
@@ -490,9 +416,7 @@ const se_ListTagsForResourceCommand = async (input, context) => {
490
416
  };
491
417
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
492
418
  const se_ModifyDBClusterCommand = 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_ModifyDBClusterMessage(input, context),
@@ -503,9 +427,7 @@ const se_ModifyDBClusterCommand = async (input, context) => {
503
427
  };
504
428
  exports.se_ModifyDBClusterCommand = se_ModifyDBClusterCommand;
505
429
  const se_ModifyDBClusterParameterGroupCommand = 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_ModifyDBClusterParameterGroupMessage(input, context),
@@ -516,9 +438,7 @@ const se_ModifyDBClusterParameterGroupCommand = async (input, context) => {
516
438
  };
517
439
  exports.se_ModifyDBClusterParameterGroupCommand = se_ModifyDBClusterParameterGroupCommand;
518
440
  const se_ModifyDBClusterSnapshotAttributeCommand = 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_ModifyDBClusterSnapshotAttributeMessage(input, context),
@@ -529,9 +449,7 @@ const se_ModifyDBClusterSnapshotAttributeCommand = async (input, context) => {
529
449
  };
530
450
  exports.se_ModifyDBClusterSnapshotAttributeCommand = se_ModifyDBClusterSnapshotAttributeCommand;
531
451
  const se_ModifyDBInstanceCommand = 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_ModifyDBInstanceMessage(input, context),
@@ -542,9 +460,7 @@ const se_ModifyDBInstanceCommand = async (input, context) => {
542
460
  };
543
461
  exports.se_ModifyDBInstanceCommand = se_ModifyDBInstanceCommand;
544
462
  const se_ModifyDBSubnetGroupCommand = 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_ModifyDBSubnetGroupMessage(input, context),
@@ -555,9 +471,7 @@ const se_ModifyDBSubnetGroupCommand = async (input, context) => {
555
471
  };
556
472
  exports.se_ModifyDBSubnetGroupCommand = se_ModifyDBSubnetGroupCommand;
557
473
  const se_ModifyEventSubscriptionCommand = 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_ModifyEventSubscriptionMessage(input, context),
@@ -568,9 +482,7 @@ const se_ModifyEventSubscriptionCommand = async (input, context) => {
568
482
  };
569
483
  exports.se_ModifyEventSubscriptionCommand = se_ModifyEventSubscriptionCommand;
570
484
  const se_ModifyGlobalClusterCommand = 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_ModifyGlobalClusterMessage(input, context),
@@ -581,9 +493,7 @@ const se_ModifyGlobalClusterCommand = async (input, context) => {
581
493
  };
582
494
  exports.se_ModifyGlobalClusterCommand = se_ModifyGlobalClusterCommand;
583
495
  const se_RebootDBInstanceCommand = 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_RebootDBInstanceMessage(input, context),
@@ -594,9 +504,7 @@ const se_RebootDBInstanceCommand = async (input, context) => {
594
504
  };
595
505
  exports.se_RebootDBInstanceCommand = se_RebootDBInstanceCommand;
596
506
  const se_RemoveFromGlobalClusterCommand = 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_RemoveFromGlobalClusterMessage(input, context),
@@ -607,9 +515,7 @@ const se_RemoveFromGlobalClusterCommand = async (input, context) => {
607
515
  };
608
516
  exports.se_RemoveFromGlobalClusterCommand = se_RemoveFromGlobalClusterCommand;
609
517
  const se_RemoveSourceIdentifierFromSubscriptionCommand = 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_RemoveSourceIdentifierFromSubscriptionMessage(input, context),
@@ -620,9 +526,7 @@ const se_RemoveSourceIdentifierFromSubscriptionCommand = async (input, context)
620
526
  };
621
527
  exports.se_RemoveSourceIdentifierFromSubscriptionCommand = se_RemoveSourceIdentifierFromSubscriptionCommand;
622
528
  const se_RemoveTagsFromResourceCommand = 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_RemoveTagsFromResourceMessage(input, context),
@@ -633,9 +537,7 @@ const se_RemoveTagsFromResourceCommand = async (input, context) => {
633
537
  };
634
538
  exports.se_RemoveTagsFromResourceCommand = se_RemoveTagsFromResourceCommand;
635
539
  const se_ResetDBClusterParameterGroupCommand = 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_ResetDBClusterParameterGroupMessage(input, context),
@@ -646,9 +548,7 @@ const se_ResetDBClusterParameterGroupCommand = async (input, context) => {
646
548
  };
647
549
  exports.se_ResetDBClusterParameterGroupCommand = se_ResetDBClusterParameterGroupCommand;
648
550
  const se_RestoreDBClusterFromSnapshotCommand = 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_RestoreDBClusterFromSnapshotMessage(input, context),
@@ -659,9 +559,7 @@ const se_RestoreDBClusterFromSnapshotCommand = async (input, context) => {
659
559
  };
660
560
  exports.se_RestoreDBClusterFromSnapshotCommand = se_RestoreDBClusterFromSnapshotCommand;
661
561
  const se_RestoreDBClusterToPointInTimeCommand = 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_RestoreDBClusterToPointInTimeMessage(input, context),
@@ -672,9 +570,7 @@ const se_RestoreDBClusterToPointInTimeCommand = async (input, context) => {
672
570
  };
673
571
  exports.se_RestoreDBClusterToPointInTimeCommand = se_RestoreDBClusterToPointInTimeCommand;
674
572
  const se_StartDBClusterCommand = 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_StartDBClusterMessage(input, context),
@@ -685,9 +581,7 @@ const se_StartDBClusterCommand = async (input, context) => {
685
581
  };
686
582
  exports.se_StartDBClusterCommand = se_StartDBClusterCommand;
687
583
  const se_StopDBClusterCommand = 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_StopDBClusterMessage(input, context),
@@ -6841,6 +6735,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
6841
6735
  }
6842
6736
  return new protocol_http_1.HttpRequest(contents);
6843
6737
  };
6738
+ const SHARED_HEADERS = {
6739
+ "content-type": "application/x-www-form-urlencoded",
6740
+ };
6844
6741
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
6845
6742
  if (encoded.length) {
6846
6743
  const parser = new fast_xml_parser_1.XMLParser({
@@ -4,9 +4,7 @@ import { XMLParser } from "fast-xml-parser";
4
4
  import { DocDBServiceException as __BaseException } from "../models/DocDBServiceException";
5
5
  import { AuthorizationNotFoundFault, CertificateNotFoundFault, DBClusterAlreadyExistsFault, DBClusterNotFoundFault, DBClusterParameterGroupNotFoundFault, DBClusterQuotaExceededFault, DBClusterSnapshotAlreadyExistsFault, DBClusterSnapshotNotFoundFault, DBInstanceAlreadyExistsFault, DBInstanceNotFoundFault, DBParameterGroupAlreadyExistsFault, DBParameterGroupNotFoundFault, DBParameterGroupQuotaExceededFault, DBSecurityGroupNotFoundFault, DBSnapshotAlreadyExistsFault, DBSnapshotNotFoundFault, DBSubnetGroupAlreadyExistsFault, DBSubnetGroupDoesNotCoverEnoughAZs, DBSubnetGroupNotFoundFault, DBSubnetGroupQuotaExceededFault, DBSubnetQuotaExceededFault, DBUpgradeDependencyFailureFault, EventSubscriptionQuotaExceededFault, GlobalClusterAlreadyExistsFault, GlobalClusterNotFoundFault, GlobalClusterQuotaExceededFault, InstanceQuotaExceededFault, InsufficientDBClusterCapacityFault, InsufficientDBInstanceCapacityFault, InsufficientStorageClusterCapacityFault, InvalidDBClusterSnapshotStateFault, InvalidDBClusterStateFault, InvalidDBInstanceStateFault, InvalidDBParameterGroupStateFault, InvalidDBSecurityGroupStateFault, InvalidDBSnapshotStateFault, InvalidDBSubnetGroupStateFault, InvalidDBSubnetStateFault, InvalidEventSubscriptionStateFault, InvalidGlobalClusterStateFault, InvalidRestoreFault, InvalidSubnet, InvalidVPCNetworkStateFault, KMSKeyNotAccessibleFault, ResourceNotFoundFault, SharedSnapshotQuotaExceededFault, SnapshotQuotaExceededFault, SNSInvalidTopicFault, SNSNoAuthorizationFault, SNSTopicArnNotFoundFault, SourceNotFoundFault, StorageQuotaExceededFault, StorageTypeNotSupportedFault, SubnetAlreadyInUse, SubscriptionAlreadyExistFault, SubscriptionCategoryNotFoundFault, SubscriptionNotFoundFault, } from "../models/models_0";
6
6
  export const se_AddSourceIdentifierToSubscriptionCommand = async (input, context) => {
7
- const headers = {
8
- "content-type": "application/x-www-form-urlencoded",
9
- };
7
+ const headers = SHARED_HEADERS;
10
8
  let body;
11
9
  body = buildFormUrlencodedString({
12
10
  ...se_AddSourceIdentifierToSubscriptionMessage(input, context),
@@ -16,9 +14,7 @@ export const se_AddSourceIdentifierToSubscriptionCommand = async (input, context
16
14
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
17
15
  };
18
16
  export const se_AddTagsToResourceCommand = async (input, context) => {
19
- const headers = {
20
- "content-type": "application/x-www-form-urlencoded",
21
- };
17
+ const headers = SHARED_HEADERS;
22
18
  let body;
23
19
  body = buildFormUrlencodedString({
24
20
  ...se_AddTagsToResourceMessage(input, context),
@@ -28,9 +24,7 @@ export const se_AddTagsToResourceCommand = async (input, context) => {
28
24
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
29
25
  };
30
26
  export const se_ApplyPendingMaintenanceActionCommand = async (input, context) => {
31
- const headers = {
32
- "content-type": "application/x-www-form-urlencoded",
33
- };
27
+ const headers = SHARED_HEADERS;
34
28
  let body;
35
29
  body = buildFormUrlencodedString({
36
30
  ...se_ApplyPendingMaintenanceActionMessage(input, context),
@@ -40,9 +34,7 @@ export const se_ApplyPendingMaintenanceActionCommand = async (input, context) =>
40
34
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
41
35
  };
42
36
  export const se_CopyDBClusterParameterGroupCommand = async (input, context) => {
43
- const headers = {
44
- "content-type": "application/x-www-form-urlencoded",
45
- };
37
+ const headers = SHARED_HEADERS;
46
38
  let body;
47
39
  body = buildFormUrlencodedString({
48
40
  ...se_CopyDBClusterParameterGroupMessage(input, context),
@@ -52,9 +44,7 @@ export const se_CopyDBClusterParameterGroupCommand = async (input, context) => {
52
44
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
53
45
  };
54
46
  export const se_CopyDBClusterSnapshotCommand = async (input, context) => {
55
- const headers = {
56
- "content-type": "application/x-www-form-urlencoded",
57
- };
47
+ const headers = SHARED_HEADERS;
58
48
  let body;
59
49
  body = buildFormUrlencodedString({
60
50
  ...se_CopyDBClusterSnapshotMessage(input, context),
@@ -64,9 +54,7 @@ export const se_CopyDBClusterSnapshotCommand = async (input, context) => {
64
54
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
65
55
  };
66
56
  export const se_CreateDBClusterCommand = async (input, context) => {
67
- const headers = {
68
- "content-type": "application/x-www-form-urlencoded",
69
- };
57
+ const headers = SHARED_HEADERS;
70
58
  let body;
71
59
  body = buildFormUrlencodedString({
72
60
  ...se_CreateDBClusterMessage(input, context),
@@ -76,9 +64,7 @@ export const se_CreateDBClusterCommand = async (input, context) => {
76
64
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
65
  };
78
66
  export const se_CreateDBClusterParameterGroupCommand = async (input, context) => {
79
- const headers = {
80
- "content-type": "application/x-www-form-urlencoded",
81
- };
67
+ const headers = SHARED_HEADERS;
82
68
  let body;
83
69
  body = buildFormUrlencodedString({
84
70
  ...se_CreateDBClusterParameterGroupMessage(input, context),
@@ -88,9 +74,7 @@ export const se_CreateDBClusterParameterGroupCommand = async (input, context) =>
88
74
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
89
75
  };
90
76
  export const se_CreateDBClusterSnapshotCommand = async (input, context) => {
91
- const headers = {
92
- "content-type": "application/x-www-form-urlencoded",
93
- };
77
+ const headers = SHARED_HEADERS;
94
78
  let body;
95
79
  body = buildFormUrlencodedString({
96
80
  ...se_CreateDBClusterSnapshotMessage(input, context),
@@ -100,9 +84,7 @@ export const se_CreateDBClusterSnapshotCommand = async (input, context) => {
100
84
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
101
85
  };
102
86
  export const se_CreateDBInstanceCommand = async (input, context) => {
103
- const headers = {
104
- "content-type": "application/x-www-form-urlencoded",
105
- };
87
+ const headers = SHARED_HEADERS;
106
88
  let body;
107
89
  body = buildFormUrlencodedString({
108
90
  ...se_CreateDBInstanceMessage(input, context),
@@ -112,9 +94,7 @@ export const se_CreateDBInstanceCommand = async (input, context) => {
112
94
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
113
95
  };
114
96
  export const se_CreateDBSubnetGroupCommand = async (input, context) => {
115
- const headers = {
116
- "content-type": "application/x-www-form-urlencoded",
117
- };
97
+ const headers = SHARED_HEADERS;
118
98
  let body;
119
99
  body = buildFormUrlencodedString({
120
100
  ...se_CreateDBSubnetGroupMessage(input, context),
@@ -124,9 +104,7 @@ export const se_CreateDBSubnetGroupCommand = async (input, context) => {
124
104
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
125
105
  };
126
106
  export const se_CreateEventSubscriptionCommand = async (input, context) => {
127
- const headers = {
128
- "content-type": "application/x-www-form-urlencoded",
129
- };
107
+ const headers = SHARED_HEADERS;
130
108
  let body;
131
109
  body = buildFormUrlencodedString({
132
110
  ...se_CreateEventSubscriptionMessage(input, context),
@@ -136,9 +114,7 @@ export const se_CreateEventSubscriptionCommand = async (input, context) => {
136
114
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
137
115
  };
138
116
  export const se_CreateGlobalClusterCommand = async (input, context) => {
139
- const headers = {
140
- "content-type": "application/x-www-form-urlencoded",
141
- };
117
+ const headers = SHARED_HEADERS;
142
118
  let body;
143
119
  body = buildFormUrlencodedString({
144
120
  ...se_CreateGlobalClusterMessage(input, context),
@@ -148,9 +124,7 @@ export const se_CreateGlobalClusterCommand = async (input, context) => {
148
124
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
149
125
  };
150
126
  export const se_DeleteDBClusterCommand = async (input, context) => {
151
- const headers = {
152
- "content-type": "application/x-www-form-urlencoded",
153
- };
127
+ const headers = SHARED_HEADERS;
154
128
  let body;
155
129
  body = buildFormUrlencodedString({
156
130
  ...se_DeleteDBClusterMessage(input, context),
@@ -160,9 +134,7 @@ export const se_DeleteDBClusterCommand = async (input, context) => {
160
134
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
161
135
  };
162
136
  export const se_DeleteDBClusterParameterGroupCommand = async (input, context) => {
163
- const headers = {
164
- "content-type": "application/x-www-form-urlencoded",
165
- };
137
+ const headers = SHARED_HEADERS;
166
138
  let body;
167
139
  body = buildFormUrlencodedString({
168
140
  ...se_DeleteDBClusterParameterGroupMessage(input, context),
@@ -172,9 +144,7 @@ export const se_DeleteDBClusterParameterGroupCommand = async (input, context) =>
172
144
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
173
145
  };
174
146
  export const se_DeleteDBClusterSnapshotCommand = async (input, context) => {
175
- const headers = {
176
- "content-type": "application/x-www-form-urlencoded",
177
- };
147
+ const headers = SHARED_HEADERS;
178
148
  let body;
179
149
  body = buildFormUrlencodedString({
180
150
  ...se_DeleteDBClusterSnapshotMessage(input, context),
@@ -184,9 +154,7 @@ export const se_DeleteDBClusterSnapshotCommand = async (input, context) => {
184
154
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
185
155
  };
186
156
  export const se_DeleteDBInstanceCommand = async (input, context) => {
187
- const headers = {
188
- "content-type": "application/x-www-form-urlencoded",
189
- };
157
+ const headers = SHARED_HEADERS;
190
158
  let body;
191
159
  body = buildFormUrlencodedString({
192
160
  ...se_DeleteDBInstanceMessage(input, context),
@@ -196,9 +164,7 @@ export const se_DeleteDBInstanceCommand = async (input, context) => {
196
164
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
197
165
  };
198
166
  export const se_DeleteDBSubnetGroupCommand = async (input, context) => {
199
- const headers = {
200
- "content-type": "application/x-www-form-urlencoded",
201
- };
167
+ const headers = SHARED_HEADERS;
202
168
  let body;
203
169
  body = buildFormUrlencodedString({
204
170
  ...se_DeleteDBSubnetGroupMessage(input, context),
@@ -208,9 +174,7 @@ export const se_DeleteDBSubnetGroupCommand = async (input, context) => {
208
174
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
209
175
  };
210
176
  export const se_DeleteEventSubscriptionCommand = async (input, context) => {
211
- const headers = {
212
- "content-type": "application/x-www-form-urlencoded",
213
- };
177
+ const headers = SHARED_HEADERS;
214
178
  let body;
215
179
  body = buildFormUrlencodedString({
216
180
  ...se_DeleteEventSubscriptionMessage(input, context),
@@ -220,9 +184,7 @@ export const se_DeleteEventSubscriptionCommand = async (input, context) => {
220
184
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
221
185
  };
222
186
  export const se_DeleteGlobalClusterCommand = async (input, context) => {
223
- const headers = {
224
- "content-type": "application/x-www-form-urlencoded",
225
- };
187
+ const headers = SHARED_HEADERS;
226
188
  let body;
227
189
  body = buildFormUrlencodedString({
228
190
  ...se_DeleteGlobalClusterMessage(input, context),
@@ -232,9 +194,7 @@ export const se_DeleteGlobalClusterCommand = async (input, context) => {
232
194
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
233
195
  };
234
196
  export const se_DescribeCertificatesCommand = async (input, context) => {
235
- const headers = {
236
- "content-type": "application/x-www-form-urlencoded",
237
- };
197
+ const headers = SHARED_HEADERS;
238
198
  let body;
239
199
  body = buildFormUrlencodedString({
240
200
  ...se_DescribeCertificatesMessage(input, context),
@@ -244,9 +204,7 @@ export const se_DescribeCertificatesCommand = async (input, context) => {
244
204
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
245
205
  };
246
206
  export const se_DescribeDBClusterParameterGroupsCommand = async (input, context) => {
247
- const headers = {
248
- "content-type": "application/x-www-form-urlencoded",
249
- };
207
+ const headers = SHARED_HEADERS;
250
208
  let body;
251
209
  body = buildFormUrlencodedString({
252
210
  ...se_DescribeDBClusterParameterGroupsMessage(input, context),
@@ -256,9 +214,7 @@ export const se_DescribeDBClusterParameterGroupsCommand = async (input, context)
256
214
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
257
215
  };
258
216
  export const se_DescribeDBClusterParametersCommand = async (input, context) => {
259
- const headers = {
260
- "content-type": "application/x-www-form-urlencoded",
261
- };
217
+ const headers = SHARED_HEADERS;
262
218
  let body;
263
219
  body = buildFormUrlencodedString({
264
220
  ...se_DescribeDBClusterParametersMessage(input, context),
@@ -268,9 +224,7 @@ export const se_DescribeDBClusterParametersCommand = async (input, context) => {
268
224
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
269
225
  };
270
226
  export const se_DescribeDBClustersCommand = async (input, context) => {
271
- const headers = {
272
- "content-type": "application/x-www-form-urlencoded",
273
- };
227
+ const headers = SHARED_HEADERS;
274
228
  let body;
275
229
  body = buildFormUrlencodedString({
276
230
  ...se_DescribeDBClustersMessage(input, context),
@@ -280,9 +234,7 @@ export const se_DescribeDBClustersCommand = async (input, context) => {
280
234
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
281
235
  };
282
236
  export const se_DescribeDBClusterSnapshotAttributesCommand = async (input, context) => {
283
- const headers = {
284
- "content-type": "application/x-www-form-urlencoded",
285
- };
237
+ const headers = SHARED_HEADERS;
286
238
  let body;
287
239
  body = buildFormUrlencodedString({
288
240
  ...se_DescribeDBClusterSnapshotAttributesMessage(input, context),
@@ -292,9 +244,7 @@ export const se_DescribeDBClusterSnapshotAttributesCommand = async (input, conte
292
244
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
293
245
  };
294
246
  export const se_DescribeDBClusterSnapshotsCommand = async (input, context) => {
295
- const headers = {
296
- "content-type": "application/x-www-form-urlencoded",
297
- };
247
+ const headers = SHARED_HEADERS;
298
248
  let body;
299
249
  body = buildFormUrlencodedString({
300
250
  ...se_DescribeDBClusterSnapshotsMessage(input, context),
@@ -304,9 +254,7 @@ export const se_DescribeDBClusterSnapshotsCommand = async (input, context) => {
304
254
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
305
255
  };
306
256
  export const se_DescribeDBEngineVersionsCommand = async (input, context) => {
307
- const headers = {
308
- "content-type": "application/x-www-form-urlencoded",
309
- };
257
+ const headers = SHARED_HEADERS;
310
258
  let body;
311
259
  body = buildFormUrlencodedString({
312
260
  ...se_DescribeDBEngineVersionsMessage(input, context),
@@ -316,9 +264,7 @@ export const se_DescribeDBEngineVersionsCommand = async (input, context) => {
316
264
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
317
265
  };
318
266
  export const se_DescribeDBInstancesCommand = async (input, context) => {
319
- const headers = {
320
- "content-type": "application/x-www-form-urlencoded",
321
- };
267
+ const headers = SHARED_HEADERS;
322
268
  let body;
323
269
  body = buildFormUrlencodedString({
324
270
  ...se_DescribeDBInstancesMessage(input, context),
@@ -328,9 +274,7 @@ export const se_DescribeDBInstancesCommand = async (input, context) => {
328
274
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
329
275
  };
330
276
  export const se_DescribeDBSubnetGroupsCommand = async (input, context) => {
331
- const headers = {
332
- "content-type": "application/x-www-form-urlencoded",
333
- };
277
+ const headers = SHARED_HEADERS;
334
278
  let body;
335
279
  body = buildFormUrlencodedString({
336
280
  ...se_DescribeDBSubnetGroupsMessage(input, context),
@@ -340,9 +284,7 @@ export const se_DescribeDBSubnetGroupsCommand = async (input, context) => {
340
284
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
341
285
  };
342
286
  export const se_DescribeEngineDefaultClusterParametersCommand = async (input, context) => {
343
- const headers = {
344
- "content-type": "application/x-www-form-urlencoded",
345
- };
287
+ const headers = SHARED_HEADERS;
346
288
  let body;
347
289
  body = buildFormUrlencodedString({
348
290
  ...se_DescribeEngineDefaultClusterParametersMessage(input, context),
@@ -352,9 +294,7 @@ export const se_DescribeEngineDefaultClusterParametersCommand = async (input, co
352
294
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
353
295
  };
354
296
  export const se_DescribeEventCategoriesCommand = async (input, context) => {
355
- const headers = {
356
- "content-type": "application/x-www-form-urlencoded",
357
- };
297
+ const headers = SHARED_HEADERS;
358
298
  let body;
359
299
  body = buildFormUrlencodedString({
360
300
  ...se_DescribeEventCategoriesMessage(input, context),
@@ -364,9 +304,7 @@ export const se_DescribeEventCategoriesCommand = async (input, context) => {
364
304
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
365
305
  };
366
306
  export const se_DescribeEventsCommand = async (input, context) => {
367
- const headers = {
368
- "content-type": "application/x-www-form-urlencoded",
369
- };
307
+ const headers = SHARED_HEADERS;
370
308
  let body;
371
309
  body = buildFormUrlencodedString({
372
310
  ...se_DescribeEventsMessage(input, context),
@@ -376,9 +314,7 @@ export const se_DescribeEventsCommand = async (input, context) => {
376
314
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
377
315
  };
378
316
  export const se_DescribeEventSubscriptionsCommand = async (input, context) => {
379
- const headers = {
380
- "content-type": "application/x-www-form-urlencoded",
381
- };
317
+ const headers = SHARED_HEADERS;
382
318
  let body;
383
319
  body = buildFormUrlencodedString({
384
320
  ...se_DescribeEventSubscriptionsMessage(input, context),
@@ -388,9 +324,7 @@ export const se_DescribeEventSubscriptionsCommand = async (input, context) => {
388
324
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
389
325
  };
390
326
  export const se_DescribeGlobalClustersCommand = async (input, context) => {
391
- const headers = {
392
- "content-type": "application/x-www-form-urlencoded",
393
- };
327
+ const headers = SHARED_HEADERS;
394
328
  let body;
395
329
  body = buildFormUrlencodedString({
396
330
  ...se_DescribeGlobalClustersMessage(input, context),
@@ -400,9 +334,7 @@ export const se_DescribeGlobalClustersCommand = async (input, context) => {
400
334
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
401
335
  };
402
336
  export const se_DescribeOrderableDBInstanceOptionsCommand = async (input, context) => {
403
- const headers = {
404
- "content-type": "application/x-www-form-urlencoded",
405
- };
337
+ const headers = SHARED_HEADERS;
406
338
  let body;
407
339
  body = buildFormUrlencodedString({
408
340
  ...se_DescribeOrderableDBInstanceOptionsMessage(input, context),
@@ -412,9 +344,7 @@ export const se_DescribeOrderableDBInstanceOptionsCommand = async (input, contex
412
344
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
413
345
  };
414
346
  export const se_DescribePendingMaintenanceActionsCommand = async (input, context) => {
415
- const headers = {
416
- "content-type": "application/x-www-form-urlencoded",
417
- };
347
+ const headers = SHARED_HEADERS;
418
348
  let body;
419
349
  body = buildFormUrlencodedString({
420
350
  ...se_DescribePendingMaintenanceActionsMessage(input, context),
@@ -424,9 +354,7 @@ export const se_DescribePendingMaintenanceActionsCommand = async (input, context
424
354
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
425
355
  };
426
356
  export const se_FailoverDBClusterCommand = async (input, context) => {
427
- const headers = {
428
- "content-type": "application/x-www-form-urlencoded",
429
- };
357
+ const headers = SHARED_HEADERS;
430
358
  let body;
431
359
  body = buildFormUrlencodedString({
432
360
  ...se_FailoverDBClusterMessage(input, context),
@@ -436,9 +364,7 @@ export const se_FailoverDBClusterCommand = async (input, context) => {
436
364
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
437
365
  };
438
366
  export const se_ListTagsForResourceCommand = async (input, context) => {
439
- const headers = {
440
- "content-type": "application/x-www-form-urlencoded",
441
- };
367
+ const headers = SHARED_HEADERS;
442
368
  let body;
443
369
  body = buildFormUrlencodedString({
444
370
  ...se_ListTagsForResourceMessage(input, context),
@@ -448,9 +374,7 @@ export const se_ListTagsForResourceCommand = async (input, context) => {
448
374
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
449
375
  };
450
376
  export const se_ModifyDBClusterCommand = async (input, context) => {
451
- const headers = {
452
- "content-type": "application/x-www-form-urlencoded",
453
- };
377
+ const headers = SHARED_HEADERS;
454
378
  let body;
455
379
  body = buildFormUrlencodedString({
456
380
  ...se_ModifyDBClusterMessage(input, context),
@@ -460,9 +384,7 @@ export const se_ModifyDBClusterCommand = async (input, context) => {
460
384
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
461
385
  };
462
386
  export const se_ModifyDBClusterParameterGroupCommand = async (input, context) => {
463
- const headers = {
464
- "content-type": "application/x-www-form-urlencoded",
465
- };
387
+ const headers = SHARED_HEADERS;
466
388
  let body;
467
389
  body = buildFormUrlencodedString({
468
390
  ...se_ModifyDBClusterParameterGroupMessage(input, context),
@@ -472,9 +394,7 @@ export const se_ModifyDBClusterParameterGroupCommand = async (input, context) =>
472
394
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
473
395
  };
474
396
  export const se_ModifyDBClusterSnapshotAttributeCommand = async (input, context) => {
475
- const headers = {
476
- "content-type": "application/x-www-form-urlencoded",
477
- };
397
+ const headers = SHARED_HEADERS;
478
398
  let body;
479
399
  body = buildFormUrlencodedString({
480
400
  ...se_ModifyDBClusterSnapshotAttributeMessage(input, context),
@@ -484,9 +404,7 @@ export const se_ModifyDBClusterSnapshotAttributeCommand = async (input, context)
484
404
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
485
405
  };
486
406
  export const se_ModifyDBInstanceCommand = async (input, context) => {
487
- const headers = {
488
- "content-type": "application/x-www-form-urlencoded",
489
- };
407
+ const headers = SHARED_HEADERS;
490
408
  let body;
491
409
  body = buildFormUrlencodedString({
492
410
  ...se_ModifyDBInstanceMessage(input, context),
@@ -496,9 +414,7 @@ export const se_ModifyDBInstanceCommand = async (input, context) => {
496
414
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
497
415
  };
498
416
  export const se_ModifyDBSubnetGroupCommand = async (input, context) => {
499
- const headers = {
500
- "content-type": "application/x-www-form-urlencoded",
501
- };
417
+ const headers = SHARED_HEADERS;
502
418
  let body;
503
419
  body = buildFormUrlencodedString({
504
420
  ...se_ModifyDBSubnetGroupMessage(input, context),
@@ -508,9 +424,7 @@ export const se_ModifyDBSubnetGroupCommand = async (input, context) => {
508
424
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
509
425
  };
510
426
  export const se_ModifyEventSubscriptionCommand = async (input, context) => {
511
- const headers = {
512
- "content-type": "application/x-www-form-urlencoded",
513
- };
427
+ const headers = SHARED_HEADERS;
514
428
  let body;
515
429
  body = buildFormUrlencodedString({
516
430
  ...se_ModifyEventSubscriptionMessage(input, context),
@@ -520,9 +434,7 @@ export const se_ModifyEventSubscriptionCommand = async (input, context) => {
520
434
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
521
435
  };
522
436
  export const se_ModifyGlobalClusterCommand = async (input, context) => {
523
- const headers = {
524
- "content-type": "application/x-www-form-urlencoded",
525
- };
437
+ const headers = SHARED_HEADERS;
526
438
  let body;
527
439
  body = buildFormUrlencodedString({
528
440
  ...se_ModifyGlobalClusterMessage(input, context),
@@ -532,9 +444,7 @@ export const se_ModifyGlobalClusterCommand = async (input, context) => {
532
444
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
533
445
  };
534
446
  export const se_RebootDBInstanceCommand = async (input, context) => {
535
- const headers = {
536
- "content-type": "application/x-www-form-urlencoded",
537
- };
447
+ const headers = SHARED_HEADERS;
538
448
  let body;
539
449
  body = buildFormUrlencodedString({
540
450
  ...se_RebootDBInstanceMessage(input, context),
@@ -544,9 +454,7 @@ export const se_RebootDBInstanceCommand = async (input, context) => {
544
454
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
545
455
  };
546
456
  export const se_RemoveFromGlobalClusterCommand = async (input, context) => {
547
- const headers = {
548
- "content-type": "application/x-www-form-urlencoded",
549
- };
457
+ const headers = SHARED_HEADERS;
550
458
  let body;
551
459
  body = buildFormUrlencodedString({
552
460
  ...se_RemoveFromGlobalClusterMessage(input, context),
@@ -556,9 +464,7 @@ export const se_RemoveFromGlobalClusterCommand = async (input, context) => {
556
464
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
557
465
  };
558
466
  export const se_RemoveSourceIdentifierFromSubscriptionCommand = async (input, context) => {
559
- const headers = {
560
- "content-type": "application/x-www-form-urlencoded",
561
- };
467
+ const headers = SHARED_HEADERS;
562
468
  let body;
563
469
  body = buildFormUrlencodedString({
564
470
  ...se_RemoveSourceIdentifierFromSubscriptionMessage(input, context),
@@ -568,9 +474,7 @@ export const se_RemoveSourceIdentifierFromSubscriptionCommand = async (input, co
568
474
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
569
475
  };
570
476
  export const se_RemoveTagsFromResourceCommand = async (input, context) => {
571
- const headers = {
572
- "content-type": "application/x-www-form-urlencoded",
573
- };
477
+ const headers = SHARED_HEADERS;
574
478
  let body;
575
479
  body = buildFormUrlencodedString({
576
480
  ...se_RemoveTagsFromResourceMessage(input, context),
@@ -580,9 +484,7 @@ export const se_RemoveTagsFromResourceCommand = async (input, context) => {
580
484
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
581
485
  };
582
486
  export const se_ResetDBClusterParameterGroupCommand = async (input, context) => {
583
- const headers = {
584
- "content-type": "application/x-www-form-urlencoded",
585
- };
487
+ const headers = SHARED_HEADERS;
586
488
  let body;
587
489
  body = buildFormUrlencodedString({
588
490
  ...se_ResetDBClusterParameterGroupMessage(input, context),
@@ -592,9 +494,7 @@ export const se_ResetDBClusterParameterGroupCommand = async (input, context) =>
592
494
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
593
495
  };
594
496
  export const se_RestoreDBClusterFromSnapshotCommand = async (input, context) => {
595
- const headers = {
596
- "content-type": "application/x-www-form-urlencoded",
597
- };
497
+ const headers = SHARED_HEADERS;
598
498
  let body;
599
499
  body = buildFormUrlencodedString({
600
500
  ...se_RestoreDBClusterFromSnapshotMessage(input, context),
@@ -604,9 +504,7 @@ export const se_RestoreDBClusterFromSnapshotCommand = async (input, context) =>
604
504
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
605
505
  };
606
506
  export const se_RestoreDBClusterToPointInTimeCommand = async (input, context) => {
607
- const headers = {
608
- "content-type": "application/x-www-form-urlencoded",
609
- };
507
+ const headers = SHARED_HEADERS;
610
508
  let body;
611
509
  body = buildFormUrlencodedString({
612
510
  ...se_RestoreDBClusterToPointInTimeMessage(input, context),
@@ -616,9 +514,7 @@ export const se_RestoreDBClusterToPointInTimeCommand = async (input, context) =>
616
514
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
617
515
  };
618
516
  export const se_StartDBClusterCommand = async (input, context) => {
619
- const headers = {
620
- "content-type": "application/x-www-form-urlencoded",
621
- };
517
+ const headers = SHARED_HEADERS;
622
518
  let body;
623
519
  body = buildFormUrlencodedString({
624
520
  ...se_StartDBClusterMessage(input, context),
@@ -628,9 +524,7 @@ export const se_StartDBClusterCommand = async (input, context) => {
628
524
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
629
525
  };
630
526
  export const se_StopDBClusterCommand = async (input, context) => {
631
- const headers = {
632
- "content-type": "application/x-www-form-urlencoded",
633
- };
527
+ const headers = SHARED_HEADERS;
634
528
  let body;
635
529
  body = buildFormUrlencodedString({
636
530
  ...se_StopDBClusterMessage(input, context),
@@ -6730,6 +6624,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
6730
6624
  }
6731
6625
  return new __HttpRequest(contents);
6732
6626
  };
6627
+ const SHARED_HEADERS = {
6628
+ "content-type": "application/x-www-form-urlencoded",
6629
+ };
6733
6630
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
6734
6631
  if (encoded.length) {
6735
6632
  const parser = new XMLParser({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-docdb",
3
3
  "description": "AWS SDK for JavaScript Docdb Client for Node.js, Browser and React Native",
4
- "version": "3.310.0",
4
+ "version": "3.312.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.310.0",
24
+ "@aws-sdk/client-sts": "3.312.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
26
  "@aws-sdk/credential-provider-node": "3.310.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",