@aws-sdk/client-docdb 3.310.0 → 3.315.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,9 +9,7 @@ const fast_xml_parser_1 = require("fast-xml-parser");
9
9
  const 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),
@@ -708,7 +602,7 @@ const de_AddSourceIdentifierToSubscriptionCommand = async (output, context) => {
708
602
  $metadata: deserializeMetadata(output),
709
603
  ...contents,
710
604
  };
711
- return Promise.resolve(response);
605
+ return response;
712
606
  };
713
607
  exports.de_AddSourceIdentifierToSubscriptionCommand = de_AddSourceIdentifierToSubscriptionCommand;
714
608
  const de_AddSourceIdentifierToSubscriptionCommandError = async (output, context) => {
@@ -726,10 +620,9 @@ const de_AddSourceIdentifierToSubscriptionCommandError = async (output, context)
726
620
  throw await de_SubscriptionNotFoundFaultRes(parsedOutput, context);
727
621
  default:
728
622
  const parsedBody = parsedOutput.body;
729
- (0, smithy_client_1.throwDefaultError)({
623
+ return throwDefaultError({
730
624
  output,
731
625
  parsedBody: parsedBody.Error,
732
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
733
626
  errorCode,
734
627
  });
735
628
  }
@@ -742,7 +635,7 @@ const de_AddTagsToResourceCommand = async (output, context) => {
742
635
  const response = {
743
636
  $metadata: deserializeMetadata(output),
744
637
  };
745
- return Promise.resolve(response);
638
+ return response;
746
639
  };
747
640
  exports.de_AddTagsToResourceCommand = de_AddTagsToResourceCommand;
748
641
  const de_AddTagsToResourceCommandError = async (output, context) => {
@@ -763,10 +656,9 @@ const de_AddTagsToResourceCommandError = async (output, context) => {
763
656
  throw await de_DBSnapshotNotFoundFaultRes(parsedOutput, context);
764
657
  default:
765
658
  const parsedBody = parsedOutput.body;
766
- (0, smithy_client_1.throwDefaultError)({
659
+ return throwDefaultError({
767
660
  output,
768
661
  parsedBody: parsedBody.Error,
769
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
770
662
  errorCode,
771
663
  });
772
664
  }
@@ -782,7 +674,7 @@ const de_ApplyPendingMaintenanceActionCommand = async (output, context) => {
782
674
  $metadata: deserializeMetadata(output),
783
675
  ...contents,
784
676
  };
785
- return Promise.resolve(response);
677
+ return response;
786
678
  };
787
679
  exports.de_ApplyPendingMaintenanceActionCommand = de_ApplyPendingMaintenanceActionCommand;
788
680
  const de_ApplyPendingMaintenanceActionCommandError = async (output, context) => {
@@ -803,10 +695,9 @@ const de_ApplyPendingMaintenanceActionCommandError = async (output, context) =>
803
695
  throw await de_ResourceNotFoundFaultRes(parsedOutput, context);
804
696
  default:
805
697
  const parsedBody = parsedOutput.body;
806
- (0, smithy_client_1.throwDefaultError)({
698
+ return throwDefaultError({
807
699
  output,
808
700
  parsedBody: parsedBody.Error,
809
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
810
701
  errorCode,
811
702
  });
812
703
  }
@@ -822,7 +713,7 @@ const de_CopyDBClusterParameterGroupCommand = async (output, context) => {
822
713
  $metadata: deserializeMetadata(output),
823
714
  ...contents,
824
715
  };
825
- return Promise.resolve(response);
716
+ return response;
826
717
  };
827
718
  exports.de_CopyDBClusterParameterGroupCommand = de_CopyDBClusterParameterGroupCommand;
828
719
  const de_CopyDBClusterParameterGroupCommandError = async (output, context) => {
@@ -843,10 +734,9 @@ const de_CopyDBClusterParameterGroupCommandError = async (output, context) => {
843
734
  throw await de_DBParameterGroupQuotaExceededFaultRes(parsedOutput, context);
844
735
  default:
845
736
  const parsedBody = parsedOutput.body;
846
- (0, smithy_client_1.throwDefaultError)({
737
+ return throwDefaultError({
847
738
  output,
848
739
  parsedBody: parsedBody.Error,
849
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
850
740
  errorCode,
851
741
  });
852
742
  }
@@ -862,7 +752,7 @@ const de_CopyDBClusterSnapshotCommand = async (output, context) => {
862
752
  $metadata: deserializeMetadata(output),
863
753
  ...contents,
864
754
  };
865
- return Promise.resolve(response);
755
+ return response;
866
756
  };
867
757
  exports.de_CopyDBClusterSnapshotCommand = de_CopyDBClusterSnapshotCommand;
868
758
  const de_CopyDBClusterSnapshotCommandError = async (output, context) => {
@@ -892,10 +782,9 @@ const de_CopyDBClusterSnapshotCommandError = async (output, context) => {
892
782
  throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
893
783
  default:
894
784
  const parsedBody = parsedOutput.body;
895
- (0, smithy_client_1.throwDefaultError)({
785
+ return throwDefaultError({
896
786
  output,
897
787
  parsedBody: parsedBody.Error,
898
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
899
788
  errorCode,
900
789
  });
901
790
  }
@@ -911,7 +800,7 @@ const de_CreateDBClusterCommand = async (output, context) => {
911
800
  $metadata: deserializeMetadata(output),
912
801
  ...contents,
913
802
  };
914
- return Promise.resolve(response);
803
+ return response;
915
804
  };
916
805
  exports.de_CreateDBClusterCommand = de_CreateDBClusterCommand;
917
806
  const de_CreateDBClusterCommandError = async (output, context) => {
@@ -974,10 +863,9 @@ const de_CreateDBClusterCommandError = async (output, context) => {
974
863
  throw await de_StorageQuotaExceededFaultRes(parsedOutput, context);
975
864
  default:
976
865
  const parsedBody = parsedOutput.body;
977
- (0, smithy_client_1.throwDefaultError)({
866
+ return throwDefaultError({
978
867
  output,
979
868
  parsedBody: parsedBody.Error,
980
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
981
869
  errorCode,
982
870
  });
983
871
  }
@@ -993,7 +881,7 @@ const de_CreateDBClusterParameterGroupCommand = async (output, context) => {
993
881
  $metadata: deserializeMetadata(output),
994
882
  ...contents,
995
883
  };
996
- return Promise.resolve(response);
884
+ return response;
997
885
  };
998
886
  exports.de_CreateDBClusterParameterGroupCommand = de_CreateDBClusterParameterGroupCommand;
999
887
  const de_CreateDBClusterParameterGroupCommandError = async (output, context) => {
@@ -1011,10 +899,9 @@ const de_CreateDBClusterParameterGroupCommandError = async (output, context) =>
1011
899
  throw await de_DBParameterGroupQuotaExceededFaultRes(parsedOutput, context);
1012
900
  default:
1013
901
  const parsedBody = parsedOutput.body;
1014
- (0, smithy_client_1.throwDefaultError)({
902
+ return throwDefaultError({
1015
903
  output,
1016
904
  parsedBody: parsedBody.Error,
1017
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
1018
905
  errorCode,
1019
906
  });
1020
907
  }
@@ -1030,7 +917,7 @@ const de_CreateDBClusterSnapshotCommand = async (output, context) => {
1030
917
  $metadata: deserializeMetadata(output),
1031
918
  ...contents,
1032
919
  };
1033
- return Promise.resolve(response);
920
+ return response;
1034
921
  };
1035
922
  exports.de_CreateDBClusterSnapshotCommand = de_CreateDBClusterSnapshotCommand;
1036
923
  const de_CreateDBClusterSnapshotCommandError = async (output, context) => {
@@ -1057,10 +944,9 @@ const de_CreateDBClusterSnapshotCommandError = async (output, context) => {
1057
944
  throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
1058
945
  default:
1059
946
  const parsedBody = parsedOutput.body;
1060
- (0, smithy_client_1.throwDefaultError)({
947
+ return throwDefaultError({
1061
948
  output,
1062
949
  parsedBody: parsedBody.Error,
1063
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
1064
950
  errorCode,
1065
951
  });
1066
952
  }
@@ -1076,7 +962,7 @@ const de_CreateDBInstanceCommand = async (output, context) => {
1076
962
  $metadata: deserializeMetadata(output),
1077
963
  ...contents,
1078
964
  };
1079
- return Promise.resolve(response);
965
+ return response;
1080
966
  };
1081
967
  exports.de_CreateDBInstanceCommand = de_CreateDBInstanceCommand;
1082
968
  const de_CreateDBInstanceCommandError = async (output, context) => {
@@ -1133,10 +1019,9 @@ const de_CreateDBInstanceCommandError = async (output, context) => {
1133
1019
  throw await de_StorageTypeNotSupportedFaultRes(parsedOutput, context);
1134
1020
  default:
1135
1021
  const parsedBody = parsedOutput.body;
1136
- (0, smithy_client_1.throwDefaultError)({
1022
+ return throwDefaultError({
1137
1023
  output,
1138
1024
  parsedBody: parsedBody.Error,
1139
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
1140
1025
  errorCode,
1141
1026
  });
1142
1027
  }
@@ -1152,7 +1037,7 @@ const de_CreateDBSubnetGroupCommand = async (output, context) => {
1152
1037
  $metadata: deserializeMetadata(output),
1153
1038
  ...contents,
1154
1039
  };
1155
- return Promise.resolve(response);
1040
+ return response;
1156
1041
  };
1157
1042
  exports.de_CreateDBSubnetGroupCommand = de_CreateDBSubnetGroupCommand;
1158
1043
  const de_CreateDBSubnetGroupCommandError = async (output, context) => {
@@ -1179,10 +1064,9 @@ const de_CreateDBSubnetGroupCommandError = async (output, context) => {
1179
1064
  throw await de_InvalidSubnetRes(parsedOutput, context);
1180
1065
  default:
1181
1066
  const parsedBody = parsedOutput.body;
1182
- (0, smithy_client_1.throwDefaultError)({
1067
+ return throwDefaultError({
1183
1068
  output,
1184
1069
  parsedBody: parsedBody.Error,
1185
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
1186
1070
  errorCode,
1187
1071
  });
1188
1072
  }
@@ -1198,7 +1082,7 @@ const de_CreateEventSubscriptionCommand = async (output, context) => {
1198
1082
  $metadata: deserializeMetadata(output),
1199
1083
  ...contents,
1200
1084
  };
1201
- return Promise.resolve(response);
1085
+ return response;
1202
1086
  };
1203
1087
  exports.de_CreateEventSubscriptionCommand = de_CreateEventSubscriptionCommand;
1204
1088
  const de_CreateEventSubscriptionCommandError = async (output, context) => {
@@ -1231,10 +1115,9 @@ const de_CreateEventSubscriptionCommandError = async (output, context) => {
1231
1115
  throw await de_SubscriptionCategoryNotFoundFaultRes(parsedOutput, context);
1232
1116
  default:
1233
1117
  const parsedBody = parsedOutput.body;
1234
- (0, smithy_client_1.throwDefaultError)({
1118
+ return throwDefaultError({
1235
1119
  output,
1236
1120
  parsedBody: parsedBody.Error,
1237
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
1238
1121
  errorCode,
1239
1122
  });
1240
1123
  }
@@ -1250,7 +1133,7 @@ const de_CreateGlobalClusterCommand = async (output, context) => {
1250
1133
  $metadata: deserializeMetadata(output),
1251
1134
  ...contents,
1252
1135
  };
1253
- return Promise.resolve(response);
1136
+ return response;
1254
1137
  };
1255
1138
  exports.de_CreateGlobalClusterCommand = de_CreateGlobalClusterCommand;
1256
1139
  const de_CreateGlobalClusterCommandError = async (output, context) => {
@@ -1274,10 +1157,9 @@ const de_CreateGlobalClusterCommandError = async (output, context) => {
1274
1157
  throw await de_InvalidDBClusterStateFaultRes(parsedOutput, context);
1275
1158
  default:
1276
1159
  const parsedBody = parsedOutput.body;
1277
- (0, smithy_client_1.throwDefaultError)({
1160
+ return throwDefaultError({
1278
1161
  output,
1279
1162
  parsedBody: parsedBody.Error,
1280
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
1281
1163
  errorCode,
1282
1164
  });
1283
1165
  }
@@ -1293,7 +1175,7 @@ const de_DeleteDBClusterCommand = async (output, context) => {
1293
1175
  $metadata: deserializeMetadata(output),
1294
1176
  ...contents,
1295
1177
  };
1296
- return Promise.resolve(response);
1178
+ return response;
1297
1179
  };
1298
1180
  exports.de_DeleteDBClusterCommand = de_DeleteDBClusterCommand;
1299
1181
  const de_DeleteDBClusterCommandError = async (output, context) => {
@@ -1320,10 +1202,9 @@ const de_DeleteDBClusterCommandError = async (output, context) => {
1320
1202
  throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
1321
1203
  default:
1322
1204
  const parsedBody = parsedOutput.body;
1323
- (0, smithy_client_1.throwDefaultError)({
1205
+ return throwDefaultError({
1324
1206
  output,
1325
1207
  parsedBody: parsedBody.Error,
1326
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
1327
1208
  errorCode,
1328
1209
  });
1329
1210
  }
@@ -1336,7 +1217,7 @@ const de_DeleteDBClusterParameterGroupCommand = async (output, context) => {
1336
1217
  const response = {
1337
1218
  $metadata: deserializeMetadata(output),
1338
1219
  };
1339
- return Promise.resolve(response);
1220
+ return response;
1340
1221
  };
1341
1222
  exports.de_DeleteDBClusterParameterGroupCommand = de_DeleteDBClusterParameterGroupCommand;
1342
1223
  const de_DeleteDBClusterParameterGroupCommandError = async (output, context) => {
@@ -1354,10 +1235,9 @@ const de_DeleteDBClusterParameterGroupCommandError = async (output, context) =>
1354
1235
  throw await de_InvalidDBParameterGroupStateFaultRes(parsedOutput, context);
1355
1236
  default:
1356
1237
  const parsedBody = parsedOutput.body;
1357
- (0, smithy_client_1.throwDefaultError)({
1238
+ return throwDefaultError({
1358
1239
  output,
1359
1240
  parsedBody: parsedBody.Error,
1360
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
1361
1241
  errorCode,
1362
1242
  });
1363
1243
  }
@@ -1373,7 +1253,7 @@ const de_DeleteDBClusterSnapshotCommand = async (output, context) => {
1373
1253
  $metadata: deserializeMetadata(output),
1374
1254
  ...contents,
1375
1255
  };
1376
- return Promise.resolve(response);
1256
+ return response;
1377
1257
  };
1378
1258
  exports.de_DeleteDBClusterSnapshotCommand = de_DeleteDBClusterSnapshotCommand;
1379
1259
  const de_DeleteDBClusterSnapshotCommandError = async (output, context) => {
@@ -1391,10 +1271,9 @@ const de_DeleteDBClusterSnapshotCommandError = async (output, context) => {
1391
1271
  throw await de_InvalidDBClusterSnapshotStateFaultRes(parsedOutput, context);
1392
1272
  default:
1393
1273
  const parsedBody = parsedOutput.body;
1394
- (0, smithy_client_1.throwDefaultError)({
1274
+ return throwDefaultError({
1395
1275
  output,
1396
1276
  parsedBody: parsedBody.Error,
1397
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
1398
1277
  errorCode,
1399
1278
  });
1400
1279
  }
@@ -1410,7 +1289,7 @@ const de_DeleteDBInstanceCommand = async (output, context) => {
1410
1289
  $metadata: deserializeMetadata(output),
1411
1290
  ...contents,
1412
1291
  };
1413
- return Promise.resolve(response);
1292
+ return response;
1414
1293
  };
1415
1294
  exports.de_DeleteDBInstanceCommand = de_DeleteDBInstanceCommand;
1416
1295
  const de_DeleteDBInstanceCommandError = async (output, context) => {
@@ -1437,10 +1316,9 @@ const de_DeleteDBInstanceCommandError = async (output, context) => {
1437
1316
  throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
1438
1317
  default:
1439
1318
  const parsedBody = parsedOutput.body;
1440
- (0, smithy_client_1.throwDefaultError)({
1319
+ return throwDefaultError({
1441
1320
  output,
1442
1321
  parsedBody: parsedBody.Error,
1443
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
1444
1322
  errorCode,
1445
1323
  });
1446
1324
  }
@@ -1453,7 +1331,7 @@ const de_DeleteDBSubnetGroupCommand = async (output, context) => {
1453
1331
  const response = {
1454
1332
  $metadata: deserializeMetadata(output),
1455
1333
  };
1456
- return Promise.resolve(response);
1334
+ return response;
1457
1335
  };
1458
1336
  exports.de_DeleteDBSubnetGroupCommand = de_DeleteDBSubnetGroupCommand;
1459
1337
  const de_DeleteDBSubnetGroupCommandError = async (output, context) => {
@@ -1474,10 +1352,9 @@ const de_DeleteDBSubnetGroupCommandError = async (output, context) => {
1474
1352
  throw await de_InvalidDBSubnetStateFaultRes(parsedOutput, context);
1475
1353
  default:
1476
1354
  const parsedBody = parsedOutput.body;
1477
- (0, smithy_client_1.throwDefaultError)({
1355
+ return throwDefaultError({
1478
1356
  output,
1479
1357
  parsedBody: parsedBody.Error,
1480
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
1481
1358
  errorCode,
1482
1359
  });
1483
1360
  }
@@ -1493,7 +1370,7 @@ const de_DeleteEventSubscriptionCommand = async (output, context) => {
1493
1370
  $metadata: deserializeMetadata(output),
1494
1371
  ...contents,
1495
1372
  };
1496
- return Promise.resolve(response);
1373
+ return response;
1497
1374
  };
1498
1375
  exports.de_DeleteEventSubscriptionCommand = de_DeleteEventSubscriptionCommand;
1499
1376
  const de_DeleteEventSubscriptionCommandError = async (output, context) => {
@@ -1511,10 +1388,9 @@ const de_DeleteEventSubscriptionCommandError = async (output, context) => {
1511
1388
  throw await de_SubscriptionNotFoundFaultRes(parsedOutput, context);
1512
1389
  default:
1513
1390
  const parsedBody = parsedOutput.body;
1514
- (0, smithy_client_1.throwDefaultError)({
1391
+ return throwDefaultError({
1515
1392
  output,
1516
1393
  parsedBody: parsedBody.Error,
1517
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
1518
1394
  errorCode,
1519
1395
  });
1520
1396
  }
@@ -1530,7 +1406,7 @@ const de_DeleteGlobalClusterCommand = async (output, context) => {
1530
1406
  $metadata: deserializeMetadata(output),
1531
1407
  ...contents,
1532
1408
  };
1533
- return Promise.resolve(response);
1409
+ return response;
1534
1410
  };
1535
1411
  exports.de_DeleteGlobalClusterCommand = de_DeleteGlobalClusterCommand;
1536
1412
  const de_DeleteGlobalClusterCommandError = async (output, context) => {
@@ -1548,10 +1424,9 @@ const de_DeleteGlobalClusterCommandError = async (output, context) => {
1548
1424
  throw await de_InvalidGlobalClusterStateFaultRes(parsedOutput, context);
1549
1425
  default:
1550
1426
  const parsedBody = parsedOutput.body;
1551
- (0, smithy_client_1.throwDefaultError)({
1427
+ return throwDefaultError({
1552
1428
  output,
1553
1429
  parsedBody: parsedBody.Error,
1554
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
1555
1430
  errorCode,
1556
1431
  });
1557
1432
  }
@@ -1567,7 +1442,7 @@ const de_DescribeCertificatesCommand = async (output, context) => {
1567
1442
  $metadata: deserializeMetadata(output),
1568
1443
  ...contents,
1569
1444
  };
1570
- return Promise.resolve(response);
1445
+ return response;
1571
1446
  };
1572
1447
  exports.de_DescribeCertificatesCommand = de_DescribeCertificatesCommand;
1573
1448
  const de_DescribeCertificatesCommandError = async (output, context) => {
@@ -1582,10 +1457,9 @@ const de_DescribeCertificatesCommandError = async (output, context) => {
1582
1457
  throw await de_CertificateNotFoundFaultRes(parsedOutput, context);
1583
1458
  default:
1584
1459
  const parsedBody = parsedOutput.body;
1585
- (0, smithy_client_1.throwDefaultError)({
1460
+ return throwDefaultError({
1586
1461
  output,
1587
1462
  parsedBody: parsedBody.Error,
1588
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
1589
1463
  errorCode,
1590
1464
  });
1591
1465
  }
@@ -1601,7 +1475,7 @@ const de_DescribeDBClusterParameterGroupsCommand = async (output, context) => {
1601
1475
  $metadata: deserializeMetadata(output),
1602
1476
  ...contents,
1603
1477
  };
1604
- return Promise.resolve(response);
1478
+ return response;
1605
1479
  };
1606
1480
  exports.de_DescribeDBClusterParameterGroupsCommand = de_DescribeDBClusterParameterGroupsCommand;
1607
1481
  const de_DescribeDBClusterParameterGroupsCommandError = async (output, context) => {
@@ -1616,10 +1490,9 @@ const de_DescribeDBClusterParameterGroupsCommandError = async (output, context)
1616
1490
  throw await de_DBParameterGroupNotFoundFaultRes(parsedOutput, context);
1617
1491
  default:
1618
1492
  const parsedBody = parsedOutput.body;
1619
- (0, smithy_client_1.throwDefaultError)({
1493
+ return throwDefaultError({
1620
1494
  output,
1621
1495
  parsedBody: parsedBody.Error,
1622
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
1623
1496
  errorCode,
1624
1497
  });
1625
1498
  }
@@ -1635,7 +1508,7 @@ const de_DescribeDBClusterParametersCommand = async (output, context) => {
1635
1508
  $metadata: deserializeMetadata(output),
1636
1509
  ...contents,
1637
1510
  };
1638
- return Promise.resolve(response);
1511
+ return response;
1639
1512
  };
1640
1513
  exports.de_DescribeDBClusterParametersCommand = de_DescribeDBClusterParametersCommand;
1641
1514
  const de_DescribeDBClusterParametersCommandError = async (output, context) => {
@@ -1650,10 +1523,9 @@ const de_DescribeDBClusterParametersCommandError = async (output, context) => {
1650
1523
  throw await de_DBParameterGroupNotFoundFaultRes(parsedOutput, context);
1651
1524
  default:
1652
1525
  const parsedBody = parsedOutput.body;
1653
- (0, smithy_client_1.throwDefaultError)({
1526
+ return throwDefaultError({
1654
1527
  output,
1655
1528
  parsedBody: parsedBody.Error,
1656
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
1657
1529
  errorCode,
1658
1530
  });
1659
1531
  }
@@ -1669,7 +1541,7 @@ const de_DescribeDBClustersCommand = async (output, context) => {
1669
1541
  $metadata: deserializeMetadata(output),
1670
1542
  ...contents,
1671
1543
  };
1672
- return Promise.resolve(response);
1544
+ return response;
1673
1545
  };
1674
1546
  exports.de_DescribeDBClustersCommand = de_DescribeDBClustersCommand;
1675
1547
  const de_DescribeDBClustersCommandError = async (output, context) => {
@@ -1684,10 +1556,9 @@ const de_DescribeDBClustersCommandError = async (output, context) => {
1684
1556
  throw await de_DBClusterNotFoundFaultRes(parsedOutput, context);
1685
1557
  default:
1686
1558
  const parsedBody = parsedOutput.body;
1687
- (0, smithy_client_1.throwDefaultError)({
1559
+ return throwDefaultError({
1688
1560
  output,
1689
1561
  parsedBody: parsedBody.Error,
1690
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
1691
1562
  errorCode,
1692
1563
  });
1693
1564
  }
@@ -1703,7 +1574,7 @@ const de_DescribeDBClusterSnapshotAttributesCommand = async (output, context) =>
1703
1574
  $metadata: deserializeMetadata(output),
1704
1575
  ...contents,
1705
1576
  };
1706
- return Promise.resolve(response);
1577
+ return response;
1707
1578
  };
1708
1579
  exports.de_DescribeDBClusterSnapshotAttributesCommand = de_DescribeDBClusterSnapshotAttributesCommand;
1709
1580
  const de_DescribeDBClusterSnapshotAttributesCommandError = async (output, context) => {
@@ -1718,10 +1589,9 @@ const de_DescribeDBClusterSnapshotAttributesCommandError = async (output, contex
1718
1589
  throw await de_DBClusterSnapshotNotFoundFaultRes(parsedOutput, context);
1719
1590
  default:
1720
1591
  const parsedBody = parsedOutput.body;
1721
- (0, smithy_client_1.throwDefaultError)({
1592
+ return throwDefaultError({
1722
1593
  output,
1723
1594
  parsedBody: parsedBody.Error,
1724
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
1725
1595
  errorCode,
1726
1596
  });
1727
1597
  }
@@ -1737,7 +1607,7 @@ const de_DescribeDBClusterSnapshotsCommand = async (output, context) => {
1737
1607
  $metadata: deserializeMetadata(output),
1738
1608
  ...contents,
1739
1609
  };
1740
- return Promise.resolve(response);
1610
+ return response;
1741
1611
  };
1742
1612
  exports.de_DescribeDBClusterSnapshotsCommand = de_DescribeDBClusterSnapshotsCommand;
1743
1613
  const de_DescribeDBClusterSnapshotsCommandError = async (output, context) => {
@@ -1752,10 +1622,9 @@ const de_DescribeDBClusterSnapshotsCommandError = async (output, context) => {
1752
1622
  throw await de_DBClusterSnapshotNotFoundFaultRes(parsedOutput, context);
1753
1623
  default:
1754
1624
  const parsedBody = parsedOutput.body;
1755
- (0, smithy_client_1.throwDefaultError)({
1625
+ return throwDefaultError({
1756
1626
  output,
1757
1627
  parsedBody: parsedBody.Error,
1758
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
1759
1628
  errorCode,
1760
1629
  });
1761
1630
  }
@@ -1771,7 +1640,7 @@ const de_DescribeDBEngineVersionsCommand = async (output, context) => {
1771
1640
  $metadata: deserializeMetadata(output),
1772
1641
  ...contents,
1773
1642
  };
1774
- return Promise.resolve(response);
1643
+ return response;
1775
1644
  };
1776
1645
  exports.de_DescribeDBEngineVersionsCommand = de_DescribeDBEngineVersionsCommand;
1777
1646
  const de_DescribeDBEngineVersionsCommandError = async (output, context) => {
@@ -1781,10 +1650,9 @@ const de_DescribeDBEngineVersionsCommandError = async (output, context) => {
1781
1650
  };
1782
1651
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1783
1652
  const parsedBody = parsedOutput.body;
1784
- (0, smithy_client_1.throwDefaultError)({
1653
+ return throwDefaultError({
1785
1654
  output,
1786
1655
  parsedBody: parsedBody.Error,
1787
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
1788
1656
  errorCode,
1789
1657
  });
1790
1658
  };
@@ -1799,7 +1667,7 @@ const de_DescribeDBInstancesCommand = async (output, context) => {
1799
1667
  $metadata: deserializeMetadata(output),
1800
1668
  ...contents,
1801
1669
  };
1802
- return Promise.resolve(response);
1670
+ return response;
1803
1671
  };
1804
1672
  exports.de_DescribeDBInstancesCommand = de_DescribeDBInstancesCommand;
1805
1673
  const de_DescribeDBInstancesCommandError = async (output, context) => {
@@ -1814,10 +1682,9 @@ const de_DescribeDBInstancesCommandError = async (output, context) => {
1814
1682
  throw await de_DBInstanceNotFoundFaultRes(parsedOutput, context);
1815
1683
  default:
1816
1684
  const parsedBody = parsedOutput.body;
1817
- (0, smithy_client_1.throwDefaultError)({
1685
+ return throwDefaultError({
1818
1686
  output,
1819
1687
  parsedBody: parsedBody.Error,
1820
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
1821
1688
  errorCode,
1822
1689
  });
1823
1690
  }
@@ -1833,7 +1700,7 @@ const de_DescribeDBSubnetGroupsCommand = async (output, context) => {
1833
1700
  $metadata: deserializeMetadata(output),
1834
1701
  ...contents,
1835
1702
  };
1836
- return Promise.resolve(response);
1703
+ return response;
1837
1704
  };
1838
1705
  exports.de_DescribeDBSubnetGroupsCommand = de_DescribeDBSubnetGroupsCommand;
1839
1706
  const de_DescribeDBSubnetGroupsCommandError = async (output, context) => {
@@ -1848,10 +1715,9 @@ const de_DescribeDBSubnetGroupsCommandError = async (output, context) => {
1848
1715
  throw await de_DBSubnetGroupNotFoundFaultRes(parsedOutput, context);
1849
1716
  default:
1850
1717
  const parsedBody = parsedOutput.body;
1851
- (0, smithy_client_1.throwDefaultError)({
1718
+ return throwDefaultError({
1852
1719
  output,
1853
1720
  parsedBody: parsedBody.Error,
1854
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
1855
1721
  errorCode,
1856
1722
  });
1857
1723
  }
@@ -1867,7 +1733,7 @@ const de_DescribeEngineDefaultClusterParametersCommand = async (output, context)
1867
1733
  $metadata: deserializeMetadata(output),
1868
1734
  ...contents,
1869
1735
  };
1870
- return Promise.resolve(response);
1736
+ return response;
1871
1737
  };
1872
1738
  exports.de_DescribeEngineDefaultClusterParametersCommand = de_DescribeEngineDefaultClusterParametersCommand;
1873
1739
  const de_DescribeEngineDefaultClusterParametersCommandError = async (output, context) => {
@@ -1877,10 +1743,9 @@ const de_DescribeEngineDefaultClusterParametersCommandError = async (output, con
1877
1743
  };
1878
1744
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1879
1745
  const parsedBody = parsedOutput.body;
1880
- (0, smithy_client_1.throwDefaultError)({
1746
+ return throwDefaultError({
1881
1747
  output,
1882
1748
  parsedBody: parsedBody.Error,
1883
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
1884
1749
  errorCode,
1885
1750
  });
1886
1751
  };
@@ -1895,7 +1760,7 @@ const de_DescribeEventCategoriesCommand = async (output, context) => {
1895
1760
  $metadata: deserializeMetadata(output),
1896
1761
  ...contents,
1897
1762
  };
1898
- return Promise.resolve(response);
1763
+ return response;
1899
1764
  };
1900
1765
  exports.de_DescribeEventCategoriesCommand = de_DescribeEventCategoriesCommand;
1901
1766
  const de_DescribeEventCategoriesCommandError = async (output, context) => {
@@ -1905,10 +1770,9 @@ const de_DescribeEventCategoriesCommandError = async (output, context) => {
1905
1770
  };
1906
1771
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1907
1772
  const parsedBody = parsedOutput.body;
1908
- (0, smithy_client_1.throwDefaultError)({
1773
+ return throwDefaultError({
1909
1774
  output,
1910
1775
  parsedBody: parsedBody.Error,
1911
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
1912
1776
  errorCode,
1913
1777
  });
1914
1778
  };
@@ -1923,7 +1787,7 @@ const de_DescribeEventsCommand = async (output, context) => {
1923
1787
  $metadata: deserializeMetadata(output),
1924
1788
  ...contents,
1925
1789
  };
1926
- return Promise.resolve(response);
1790
+ return response;
1927
1791
  };
1928
1792
  exports.de_DescribeEventsCommand = de_DescribeEventsCommand;
1929
1793
  const de_DescribeEventsCommandError = async (output, context) => {
@@ -1933,10 +1797,9 @@ const de_DescribeEventsCommandError = async (output, context) => {
1933
1797
  };
1934
1798
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1935
1799
  const parsedBody = parsedOutput.body;
1936
- (0, smithy_client_1.throwDefaultError)({
1800
+ return throwDefaultError({
1937
1801
  output,
1938
1802
  parsedBody: parsedBody.Error,
1939
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
1940
1803
  errorCode,
1941
1804
  });
1942
1805
  };
@@ -1951,7 +1814,7 @@ const de_DescribeEventSubscriptionsCommand = async (output, context) => {
1951
1814
  $metadata: deserializeMetadata(output),
1952
1815
  ...contents,
1953
1816
  };
1954
- return Promise.resolve(response);
1817
+ return response;
1955
1818
  };
1956
1819
  exports.de_DescribeEventSubscriptionsCommand = de_DescribeEventSubscriptionsCommand;
1957
1820
  const de_DescribeEventSubscriptionsCommandError = async (output, context) => {
@@ -1966,10 +1829,9 @@ const de_DescribeEventSubscriptionsCommandError = async (output, context) => {
1966
1829
  throw await de_SubscriptionNotFoundFaultRes(parsedOutput, context);
1967
1830
  default:
1968
1831
  const parsedBody = parsedOutput.body;
1969
- (0, smithy_client_1.throwDefaultError)({
1832
+ return throwDefaultError({
1970
1833
  output,
1971
1834
  parsedBody: parsedBody.Error,
1972
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
1973
1835
  errorCode,
1974
1836
  });
1975
1837
  }
@@ -1985,7 +1847,7 @@ const de_DescribeGlobalClustersCommand = async (output, context) => {
1985
1847
  $metadata: deserializeMetadata(output),
1986
1848
  ...contents,
1987
1849
  };
1988
- return Promise.resolve(response);
1850
+ return response;
1989
1851
  };
1990
1852
  exports.de_DescribeGlobalClustersCommand = de_DescribeGlobalClustersCommand;
1991
1853
  const de_DescribeGlobalClustersCommandError = async (output, context) => {
@@ -2000,10 +1862,9 @@ const de_DescribeGlobalClustersCommandError = async (output, context) => {
2000
1862
  throw await de_GlobalClusterNotFoundFaultRes(parsedOutput, context);
2001
1863
  default:
2002
1864
  const parsedBody = parsedOutput.body;
2003
- (0, smithy_client_1.throwDefaultError)({
1865
+ return throwDefaultError({
2004
1866
  output,
2005
1867
  parsedBody: parsedBody.Error,
2006
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
2007
1868
  errorCode,
2008
1869
  });
2009
1870
  }
@@ -2019,7 +1880,7 @@ const de_DescribeOrderableDBInstanceOptionsCommand = async (output, context) =>
2019
1880
  $metadata: deserializeMetadata(output),
2020
1881
  ...contents,
2021
1882
  };
2022
- return Promise.resolve(response);
1883
+ return response;
2023
1884
  };
2024
1885
  exports.de_DescribeOrderableDBInstanceOptionsCommand = de_DescribeOrderableDBInstanceOptionsCommand;
2025
1886
  const de_DescribeOrderableDBInstanceOptionsCommandError = async (output, context) => {
@@ -2029,10 +1890,9 @@ const de_DescribeOrderableDBInstanceOptionsCommandError = async (output, context
2029
1890
  };
2030
1891
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2031
1892
  const parsedBody = parsedOutput.body;
2032
- (0, smithy_client_1.throwDefaultError)({
1893
+ return throwDefaultError({
2033
1894
  output,
2034
1895
  parsedBody: parsedBody.Error,
2035
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
2036
1896
  errorCode,
2037
1897
  });
2038
1898
  };
@@ -2047,7 +1907,7 @@ const de_DescribePendingMaintenanceActionsCommand = async (output, context) => {
2047
1907
  $metadata: deserializeMetadata(output),
2048
1908
  ...contents,
2049
1909
  };
2050
- return Promise.resolve(response);
1910
+ return response;
2051
1911
  };
2052
1912
  exports.de_DescribePendingMaintenanceActionsCommand = de_DescribePendingMaintenanceActionsCommand;
2053
1913
  const de_DescribePendingMaintenanceActionsCommandError = async (output, context) => {
@@ -2062,10 +1922,9 @@ const de_DescribePendingMaintenanceActionsCommandError = async (output, context)
2062
1922
  throw await de_ResourceNotFoundFaultRes(parsedOutput, context);
2063
1923
  default:
2064
1924
  const parsedBody = parsedOutput.body;
2065
- (0, smithy_client_1.throwDefaultError)({
1925
+ return throwDefaultError({
2066
1926
  output,
2067
1927
  parsedBody: parsedBody.Error,
2068
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
2069
1928
  errorCode,
2070
1929
  });
2071
1930
  }
@@ -2081,7 +1940,7 @@ const de_FailoverDBClusterCommand = async (output, context) => {
2081
1940
  $metadata: deserializeMetadata(output),
2082
1941
  ...contents,
2083
1942
  };
2084
- return Promise.resolve(response);
1943
+ return response;
2085
1944
  };
2086
1945
  exports.de_FailoverDBClusterCommand = de_FailoverDBClusterCommand;
2087
1946
  const de_FailoverDBClusterCommandError = async (output, context) => {
@@ -2102,10 +1961,9 @@ const de_FailoverDBClusterCommandError = async (output, context) => {
2102
1961
  throw await de_InvalidDBInstanceStateFaultRes(parsedOutput, context);
2103
1962
  default:
2104
1963
  const parsedBody = parsedOutput.body;
2105
- (0, smithy_client_1.throwDefaultError)({
1964
+ return throwDefaultError({
2106
1965
  output,
2107
1966
  parsedBody: parsedBody.Error,
2108
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
2109
1967
  errorCode,
2110
1968
  });
2111
1969
  }
@@ -2121,7 +1979,7 @@ const de_ListTagsForResourceCommand = async (output, context) => {
2121
1979
  $metadata: deserializeMetadata(output),
2122
1980
  ...contents,
2123
1981
  };
2124
- return Promise.resolve(response);
1982
+ return response;
2125
1983
  };
2126
1984
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
2127
1985
  const de_ListTagsForResourceCommandError = async (output, context) => {
@@ -2142,10 +2000,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
2142
2000
  throw await de_DBSnapshotNotFoundFaultRes(parsedOutput, context);
2143
2001
  default:
2144
2002
  const parsedBody = parsedOutput.body;
2145
- (0, smithy_client_1.throwDefaultError)({
2003
+ return throwDefaultError({
2146
2004
  output,
2147
2005
  parsedBody: parsedBody.Error,
2148
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
2149
2006
  errorCode,
2150
2007
  });
2151
2008
  }
@@ -2161,7 +2018,7 @@ const de_ModifyDBClusterCommand = async (output, context) => {
2161
2018
  $metadata: deserializeMetadata(output),
2162
2019
  ...contents,
2163
2020
  };
2164
- return Promise.resolve(response);
2021
+ return response;
2165
2022
  };
2166
2023
  exports.de_ModifyDBClusterCommand = de_ModifyDBClusterCommand;
2167
2024
  const de_ModifyDBClusterCommandError = async (output, context) => {
@@ -2206,10 +2063,9 @@ const de_ModifyDBClusterCommandError = async (output, context) => {
2206
2063
  throw await de_StorageQuotaExceededFaultRes(parsedOutput, context);
2207
2064
  default:
2208
2065
  const parsedBody = parsedOutput.body;
2209
- (0, smithy_client_1.throwDefaultError)({
2066
+ return throwDefaultError({
2210
2067
  output,
2211
2068
  parsedBody: parsedBody.Error,
2212
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
2213
2069
  errorCode,
2214
2070
  });
2215
2071
  }
@@ -2225,7 +2081,7 @@ const de_ModifyDBClusterParameterGroupCommand = async (output, context) => {
2225
2081
  $metadata: deserializeMetadata(output),
2226
2082
  ...contents,
2227
2083
  };
2228
- return Promise.resolve(response);
2084
+ return response;
2229
2085
  };
2230
2086
  exports.de_ModifyDBClusterParameterGroupCommand = de_ModifyDBClusterParameterGroupCommand;
2231
2087
  const de_ModifyDBClusterParameterGroupCommandError = async (output, context) => {
@@ -2243,10 +2099,9 @@ const de_ModifyDBClusterParameterGroupCommandError = async (output, context) =>
2243
2099
  throw await de_InvalidDBParameterGroupStateFaultRes(parsedOutput, context);
2244
2100
  default:
2245
2101
  const parsedBody = parsedOutput.body;
2246
- (0, smithy_client_1.throwDefaultError)({
2102
+ return throwDefaultError({
2247
2103
  output,
2248
2104
  parsedBody: parsedBody.Error,
2249
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
2250
2105
  errorCode,
2251
2106
  });
2252
2107
  }
@@ -2262,7 +2117,7 @@ const de_ModifyDBClusterSnapshotAttributeCommand = async (output, context) => {
2262
2117
  $metadata: deserializeMetadata(output),
2263
2118
  ...contents,
2264
2119
  };
2265
- return Promise.resolve(response);
2120
+ return response;
2266
2121
  };
2267
2122
  exports.de_ModifyDBClusterSnapshotAttributeCommand = de_ModifyDBClusterSnapshotAttributeCommand;
2268
2123
  const de_ModifyDBClusterSnapshotAttributeCommandError = async (output, context) => {
@@ -2283,10 +2138,9 @@ const de_ModifyDBClusterSnapshotAttributeCommandError = async (output, context)
2283
2138
  throw await de_SharedSnapshotQuotaExceededFaultRes(parsedOutput, context);
2284
2139
  default:
2285
2140
  const parsedBody = parsedOutput.body;
2286
- (0, smithy_client_1.throwDefaultError)({
2141
+ return throwDefaultError({
2287
2142
  output,
2288
2143
  parsedBody: parsedBody.Error,
2289
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
2290
2144
  errorCode,
2291
2145
  });
2292
2146
  }
@@ -2302,7 +2156,7 @@ const de_ModifyDBInstanceCommand = async (output, context) => {
2302
2156
  $metadata: deserializeMetadata(output),
2303
2157
  ...contents,
2304
2158
  };
2305
- return Promise.resolve(response);
2159
+ return response;
2306
2160
  };
2307
2161
  exports.de_ModifyDBInstanceCommand = de_ModifyDBInstanceCommand;
2308
2162
  const de_ModifyDBInstanceCommandError = async (output, context) => {
@@ -2353,10 +2207,9 @@ const de_ModifyDBInstanceCommandError = async (output, context) => {
2353
2207
  throw await de_StorageTypeNotSupportedFaultRes(parsedOutput, context);
2354
2208
  default:
2355
2209
  const parsedBody = parsedOutput.body;
2356
- (0, smithy_client_1.throwDefaultError)({
2210
+ return throwDefaultError({
2357
2211
  output,
2358
2212
  parsedBody: parsedBody.Error,
2359
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
2360
2213
  errorCode,
2361
2214
  });
2362
2215
  }
@@ -2372,7 +2225,7 @@ const de_ModifyDBSubnetGroupCommand = async (output, context) => {
2372
2225
  $metadata: deserializeMetadata(output),
2373
2226
  ...contents,
2374
2227
  };
2375
- return Promise.resolve(response);
2228
+ return response;
2376
2229
  };
2377
2230
  exports.de_ModifyDBSubnetGroupCommand = de_ModifyDBSubnetGroupCommand;
2378
2231
  const de_ModifyDBSubnetGroupCommandError = async (output, context) => {
@@ -2399,10 +2252,9 @@ const de_ModifyDBSubnetGroupCommandError = async (output, context) => {
2399
2252
  throw await de_SubnetAlreadyInUseRes(parsedOutput, context);
2400
2253
  default:
2401
2254
  const parsedBody = parsedOutput.body;
2402
- (0, smithy_client_1.throwDefaultError)({
2255
+ return throwDefaultError({
2403
2256
  output,
2404
2257
  parsedBody: parsedBody.Error,
2405
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
2406
2258
  errorCode,
2407
2259
  });
2408
2260
  }
@@ -2418,7 +2270,7 @@ const de_ModifyEventSubscriptionCommand = async (output, context) => {
2418
2270
  $metadata: deserializeMetadata(output),
2419
2271
  ...contents,
2420
2272
  };
2421
- return Promise.resolve(response);
2273
+ return response;
2422
2274
  };
2423
2275
  exports.de_ModifyEventSubscriptionCommand = de_ModifyEventSubscriptionCommand;
2424
2276
  const de_ModifyEventSubscriptionCommandError = async (output, context) => {
@@ -2448,10 +2300,9 @@ const de_ModifyEventSubscriptionCommandError = async (output, context) => {
2448
2300
  throw await de_SubscriptionNotFoundFaultRes(parsedOutput, context);
2449
2301
  default:
2450
2302
  const parsedBody = parsedOutput.body;
2451
- (0, smithy_client_1.throwDefaultError)({
2303
+ return throwDefaultError({
2452
2304
  output,
2453
2305
  parsedBody: parsedBody.Error,
2454
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
2455
2306
  errorCode,
2456
2307
  });
2457
2308
  }
@@ -2467,7 +2318,7 @@ const de_ModifyGlobalClusterCommand = async (output, context) => {
2467
2318
  $metadata: deserializeMetadata(output),
2468
2319
  ...contents,
2469
2320
  };
2470
- return Promise.resolve(response);
2321
+ return response;
2471
2322
  };
2472
2323
  exports.de_ModifyGlobalClusterCommand = de_ModifyGlobalClusterCommand;
2473
2324
  const de_ModifyGlobalClusterCommandError = async (output, context) => {
@@ -2485,10 +2336,9 @@ const de_ModifyGlobalClusterCommandError = async (output, context) => {
2485
2336
  throw await de_InvalidGlobalClusterStateFaultRes(parsedOutput, context);
2486
2337
  default:
2487
2338
  const parsedBody = parsedOutput.body;
2488
- (0, smithy_client_1.throwDefaultError)({
2339
+ return throwDefaultError({
2489
2340
  output,
2490
2341
  parsedBody: parsedBody.Error,
2491
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
2492
2342
  errorCode,
2493
2343
  });
2494
2344
  }
@@ -2504,7 +2354,7 @@ const de_RebootDBInstanceCommand = async (output, context) => {
2504
2354
  $metadata: deserializeMetadata(output),
2505
2355
  ...contents,
2506
2356
  };
2507
- return Promise.resolve(response);
2357
+ return response;
2508
2358
  };
2509
2359
  exports.de_RebootDBInstanceCommand = de_RebootDBInstanceCommand;
2510
2360
  const de_RebootDBInstanceCommandError = async (output, context) => {
@@ -2522,10 +2372,9 @@ const de_RebootDBInstanceCommandError = async (output, context) => {
2522
2372
  throw await de_InvalidDBInstanceStateFaultRes(parsedOutput, context);
2523
2373
  default:
2524
2374
  const parsedBody = parsedOutput.body;
2525
- (0, smithy_client_1.throwDefaultError)({
2375
+ return throwDefaultError({
2526
2376
  output,
2527
2377
  parsedBody: parsedBody.Error,
2528
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
2529
2378
  errorCode,
2530
2379
  });
2531
2380
  }
@@ -2541,7 +2390,7 @@ const de_RemoveFromGlobalClusterCommand = async (output, context) => {
2541
2390
  $metadata: deserializeMetadata(output),
2542
2391
  ...contents,
2543
2392
  };
2544
- return Promise.resolve(response);
2393
+ return response;
2545
2394
  };
2546
2395
  exports.de_RemoveFromGlobalClusterCommand = de_RemoveFromGlobalClusterCommand;
2547
2396
  const de_RemoveFromGlobalClusterCommandError = async (output, context) => {
@@ -2562,10 +2411,9 @@ const de_RemoveFromGlobalClusterCommandError = async (output, context) => {
2562
2411
  throw await de_InvalidGlobalClusterStateFaultRes(parsedOutput, context);
2563
2412
  default:
2564
2413
  const parsedBody = parsedOutput.body;
2565
- (0, smithy_client_1.throwDefaultError)({
2414
+ return throwDefaultError({
2566
2415
  output,
2567
2416
  parsedBody: parsedBody.Error,
2568
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
2569
2417
  errorCode,
2570
2418
  });
2571
2419
  }
@@ -2581,7 +2429,7 @@ const de_RemoveSourceIdentifierFromSubscriptionCommand = async (output, context)
2581
2429
  $metadata: deserializeMetadata(output),
2582
2430
  ...contents,
2583
2431
  };
2584
- return Promise.resolve(response);
2432
+ return response;
2585
2433
  };
2586
2434
  exports.de_RemoveSourceIdentifierFromSubscriptionCommand = de_RemoveSourceIdentifierFromSubscriptionCommand;
2587
2435
  const de_RemoveSourceIdentifierFromSubscriptionCommandError = async (output, context) => {
@@ -2599,10 +2447,9 @@ const de_RemoveSourceIdentifierFromSubscriptionCommandError = async (output, con
2599
2447
  throw await de_SubscriptionNotFoundFaultRes(parsedOutput, context);
2600
2448
  default:
2601
2449
  const parsedBody = parsedOutput.body;
2602
- (0, smithy_client_1.throwDefaultError)({
2450
+ return throwDefaultError({
2603
2451
  output,
2604
2452
  parsedBody: parsedBody.Error,
2605
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
2606
2453
  errorCode,
2607
2454
  });
2608
2455
  }
@@ -2615,7 +2462,7 @@ const de_RemoveTagsFromResourceCommand = async (output, context) => {
2615
2462
  const response = {
2616
2463
  $metadata: deserializeMetadata(output),
2617
2464
  };
2618
- return Promise.resolve(response);
2465
+ return response;
2619
2466
  };
2620
2467
  exports.de_RemoveTagsFromResourceCommand = de_RemoveTagsFromResourceCommand;
2621
2468
  const de_RemoveTagsFromResourceCommandError = async (output, context) => {
@@ -2636,10 +2483,9 @@ const de_RemoveTagsFromResourceCommandError = async (output, context) => {
2636
2483
  throw await de_DBSnapshotNotFoundFaultRes(parsedOutput, context);
2637
2484
  default:
2638
2485
  const parsedBody = parsedOutput.body;
2639
- (0, smithy_client_1.throwDefaultError)({
2486
+ return throwDefaultError({
2640
2487
  output,
2641
2488
  parsedBody: parsedBody.Error,
2642
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
2643
2489
  errorCode,
2644
2490
  });
2645
2491
  }
@@ -2655,7 +2501,7 @@ const de_ResetDBClusterParameterGroupCommand = async (output, context) => {
2655
2501
  $metadata: deserializeMetadata(output),
2656
2502
  ...contents,
2657
2503
  };
2658
- return Promise.resolve(response);
2504
+ return response;
2659
2505
  };
2660
2506
  exports.de_ResetDBClusterParameterGroupCommand = de_ResetDBClusterParameterGroupCommand;
2661
2507
  const de_ResetDBClusterParameterGroupCommandError = async (output, context) => {
@@ -2673,10 +2519,9 @@ const de_ResetDBClusterParameterGroupCommandError = async (output, context) => {
2673
2519
  throw await de_InvalidDBParameterGroupStateFaultRes(parsedOutput, context);
2674
2520
  default:
2675
2521
  const parsedBody = parsedOutput.body;
2676
- (0, smithy_client_1.throwDefaultError)({
2522
+ return throwDefaultError({
2677
2523
  output,
2678
2524
  parsedBody: parsedBody.Error,
2679
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
2680
2525
  errorCode,
2681
2526
  });
2682
2527
  }
@@ -2692,7 +2537,7 @@ const de_RestoreDBClusterFromSnapshotCommand = async (output, context) => {
2692
2537
  $metadata: deserializeMetadata(output),
2693
2538
  ...contents,
2694
2539
  };
2695
- return Promise.resolve(response);
2540
+ return response;
2696
2541
  };
2697
2542
  exports.de_RestoreDBClusterFromSnapshotCommand = de_RestoreDBClusterFromSnapshotCommand;
2698
2543
  const de_RestoreDBClusterFromSnapshotCommandError = async (output, context) => {
@@ -2746,10 +2591,9 @@ const de_RestoreDBClusterFromSnapshotCommandError = async (output, context) => {
2746
2591
  throw await de_StorageQuotaExceededFaultRes(parsedOutput, context);
2747
2592
  default:
2748
2593
  const parsedBody = parsedOutput.body;
2749
- (0, smithy_client_1.throwDefaultError)({
2594
+ return throwDefaultError({
2750
2595
  output,
2751
2596
  parsedBody: parsedBody.Error,
2752
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
2753
2597
  errorCode,
2754
2598
  });
2755
2599
  }
@@ -2765,7 +2609,7 @@ const de_RestoreDBClusterToPointInTimeCommand = async (output, context) => {
2765
2609
  $metadata: deserializeMetadata(output),
2766
2610
  ...contents,
2767
2611
  };
2768
- return Promise.resolve(response);
2612
+ return response;
2769
2613
  };
2770
2614
  exports.de_RestoreDBClusterToPointInTimeCommand = de_RestoreDBClusterToPointInTimeCommand;
2771
2615
  const de_RestoreDBClusterToPointInTimeCommandError = async (output, context) => {
@@ -2822,10 +2666,9 @@ const de_RestoreDBClusterToPointInTimeCommandError = async (output, context) =>
2822
2666
  throw await de_StorageQuotaExceededFaultRes(parsedOutput, context);
2823
2667
  default:
2824
2668
  const parsedBody = parsedOutput.body;
2825
- (0, smithy_client_1.throwDefaultError)({
2669
+ return throwDefaultError({
2826
2670
  output,
2827
2671
  parsedBody: parsedBody.Error,
2828
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
2829
2672
  errorCode,
2830
2673
  });
2831
2674
  }
@@ -2841,7 +2684,7 @@ const de_StartDBClusterCommand = async (output, context) => {
2841
2684
  $metadata: deserializeMetadata(output),
2842
2685
  ...contents,
2843
2686
  };
2844
- return Promise.resolve(response);
2687
+ return response;
2845
2688
  };
2846
2689
  exports.de_StartDBClusterCommand = de_StartDBClusterCommand;
2847
2690
  const de_StartDBClusterCommandError = async (output, context) => {
@@ -2862,10 +2705,9 @@ const de_StartDBClusterCommandError = async (output, context) => {
2862
2705
  throw await de_InvalidDBInstanceStateFaultRes(parsedOutput, context);
2863
2706
  default:
2864
2707
  const parsedBody = parsedOutput.body;
2865
- (0, smithy_client_1.throwDefaultError)({
2708
+ return throwDefaultError({
2866
2709
  output,
2867
2710
  parsedBody: parsedBody.Error,
2868
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
2869
2711
  errorCode,
2870
2712
  });
2871
2713
  }
@@ -2881,7 +2723,7 @@ const de_StopDBClusterCommand = async (output, context) => {
2881
2723
  $metadata: deserializeMetadata(output),
2882
2724
  ...contents,
2883
2725
  };
2884
- return Promise.resolve(response);
2726
+ return response;
2885
2727
  };
2886
2728
  exports.de_StopDBClusterCommand = de_StopDBClusterCommand;
2887
2729
  const de_StopDBClusterCommandError = async (output, context) => {
@@ -2902,10 +2744,9 @@ const de_StopDBClusterCommandError = async (output, context) => {
2902
2744
  throw await de_InvalidDBInstanceStateFaultRes(parsedOutput, context);
2903
2745
  default:
2904
2746
  const parsedBody = parsedOutput.body;
2905
- (0, smithy_client_1.throwDefaultError)({
2747
+ return throwDefaultError({
2906
2748
  output,
2907
2749
  parsedBody: parsedBody.Error,
2908
- exceptionCtor: DocDBServiceException_1.DocDBServiceException,
2909
2750
  errorCode,
2910
2751
  });
2911
2752
  }
@@ -6823,6 +6664,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
6823
6664
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
6824
6665
  };
6825
6666
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
6667
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(DocDBServiceException_1.DocDBServiceException);
6826
6668
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
6827
6669
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
6828
6670
  const contents = {
@@ -6841,6 +6683,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
6841
6683
  }
6842
6684
  return new protocol_http_1.HttpRequest(contents);
6843
6685
  };
6686
+ const SHARED_HEADERS = {
6687
+ "content-type": "application/x-www-form-urlencoded",
6688
+ };
6844
6689
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
6845
6690
  if (encoded.length) {
6846
6691
  const parser = new fast_xml_parser_1.XMLParser({