@aws-sdk/client-redshift 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.
@@ -12,9 +12,7 @@ const models_0_1 = require("../models/models_0");
12
12
  const models_1_1 = require("../models/models_1");
13
13
  const RedshiftServiceException_1 = require("../models/RedshiftServiceException");
14
14
  const se_AcceptReservedNodeExchangeCommand = async (input, context) => {
15
- const headers = {
16
- "content-type": "application/x-www-form-urlencoded",
17
- };
15
+ const headers = SHARED_HEADERS;
18
16
  let body;
19
17
  body = buildFormUrlencodedString({
20
18
  ...se_AcceptReservedNodeExchangeInputMessage(input, context),
@@ -25,9 +23,7 @@ const se_AcceptReservedNodeExchangeCommand = async (input, context) => {
25
23
  };
26
24
  exports.se_AcceptReservedNodeExchangeCommand = se_AcceptReservedNodeExchangeCommand;
27
25
  const se_AddPartnerCommand = async (input, context) => {
28
- const headers = {
29
- "content-type": "application/x-www-form-urlencoded",
30
- };
26
+ const headers = SHARED_HEADERS;
31
27
  let body;
32
28
  body = buildFormUrlencodedString({
33
29
  ...se_PartnerIntegrationInputMessage(input, context),
@@ -38,9 +34,7 @@ const se_AddPartnerCommand = async (input, context) => {
38
34
  };
39
35
  exports.se_AddPartnerCommand = se_AddPartnerCommand;
40
36
  const se_AssociateDataShareConsumerCommand = async (input, context) => {
41
- const headers = {
42
- "content-type": "application/x-www-form-urlencoded",
43
- };
37
+ const headers = SHARED_HEADERS;
44
38
  let body;
45
39
  body = buildFormUrlencodedString({
46
40
  ...se_AssociateDataShareConsumerMessage(input, context),
@@ -51,9 +45,7 @@ const se_AssociateDataShareConsumerCommand = async (input, context) => {
51
45
  };
52
46
  exports.se_AssociateDataShareConsumerCommand = se_AssociateDataShareConsumerCommand;
53
47
  const se_AuthorizeClusterSecurityGroupIngressCommand = async (input, context) => {
54
- const headers = {
55
- "content-type": "application/x-www-form-urlencoded",
56
- };
48
+ const headers = SHARED_HEADERS;
57
49
  let body;
58
50
  body = buildFormUrlencodedString({
59
51
  ...se_AuthorizeClusterSecurityGroupIngressMessage(input, context),
@@ -64,9 +56,7 @@ const se_AuthorizeClusterSecurityGroupIngressCommand = async (input, context) =>
64
56
  };
65
57
  exports.se_AuthorizeClusterSecurityGroupIngressCommand = se_AuthorizeClusterSecurityGroupIngressCommand;
66
58
  const se_AuthorizeDataShareCommand = async (input, context) => {
67
- const headers = {
68
- "content-type": "application/x-www-form-urlencoded",
69
- };
59
+ const headers = SHARED_HEADERS;
70
60
  let body;
71
61
  body = buildFormUrlencodedString({
72
62
  ...se_AuthorizeDataShareMessage(input, context),
@@ -77,9 +67,7 @@ const se_AuthorizeDataShareCommand = async (input, context) => {
77
67
  };
78
68
  exports.se_AuthorizeDataShareCommand = se_AuthorizeDataShareCommand;
79
69
  const se_AuthorizeEndpointAccessCommand = async (input, context) => {
80
- const headers = {
81
- "content-type": "application/x-www-form-urlencoded",
82
- };
70
+ const headers = SHARED_HEADERS;
83
71
  let body;
84
72
  body = buildFormUrlencodedString({
85
73
  ...se_AuthorizeEndpointAccessMessage(input, context),
@@ -90,9 +78,7 @@ const se_AuthorizeEndpointAccessCommand = async (input, context) => {
90
78
  };
91
79
  exports.se_AuthorizeEndpointAccessCommand = se_AuthorizeEndpointAccessCommand;
92
80
  const se_AuthorizeSnapshotAccessCommand = async (input, context) => {
93
- const headers = {
94
- "content-type": "application/x-www-form-urlencoded",
95
- };
81
+ const headers = SHARED_HEADERS;
96
82
  let body;
97
83
  body = buildFormUrlencodedString({
98
84
  ...se_AuthorizeSnapshotAccessMessage(input, context),
@@ -103,9 +89,7 @@ const se_AuthorizeSnapshotAccessCommand = async (input, context) => {
103
89
  };
104
90
  exports.se_AuthorizeSnapshotAccessCommand = se_AuthorizeSnapshotAccessCommand;
105
91
  const se_BatchDeleteClusterSnapshotsCommand = async (input, context) => {
106
- const headers = {
107
- "content-type": "application/x-www-form-urlencoded",
108
- };
92
+ const headers = SHARED_HEADERS;
109
93
  let body;
110
94
  body = buildFormUrlencodedString({
111
95
  ...se_BatchDeleteClusterSnapshotsRequest(input, context),
@@ -116,9 +100,7 @@ const se_BatchDeleteClusterSnapshotsCommand = async (input, context) => {
116
100
  };
117
101
  exports.se_BatchDeleteClusterSnapshotsCommand = se_BatchDeleteClusterSnapshotsCommand;
118
102
  const se_BatchModifyClusterSnapshotsCommand = async (input, context) => {
119
- const headers = {
120
- "content-type": "application/x-www-form-urlencoded",
121
- };
103
+ const headers = SHARED_HEADERS;
122
104
  let body;
123
105
  body = buildFormUrlencodedString({
124
106
  ...se_BatchModifyClusterSnapshotsMessage(input, context),
@@ -129,9 +111,7 @@ const se_BatchModifyClusterSnapshotsCommand = async (input, context) => {
129
111
  };
130
112
  exports.se_BatchModifyClusterSnapshotsCommand = se_BatchModifyClusterSnapshotsCommand;
131
113
  const se_CancelResizeCommand = async (input, context) => {
132
- const headers = {
133
- "content-type": "application/x-www-form-urlencoded",
134
- };
114
+ const headers = SHARED_HEADERS;
135
115
  let body;
136
116
  body = buildFormUrlencodedString({
137
117
  ...se_CancelResizeMessage(input, context),
@@ -142,9 +122,7 @@ const se_CancelResizeCommand = async (input, context) => {
142
122
  };
143
123
  exports.se_CancelResizeCommand = se_CancelResizeCommand;
144
124
  const se_CopyClusterSnapshotCommand = async (input, context) => {
145
- const headers = {
146
- "content-type": "application/x-www-form-urlencoded",
147
- };
125
+ const headers = SHARED_HEADERS;
148
126
  let body;
149
127
  body = buildFormUrlencodedString({
150
128
  ...se_CopyClusterSnapshotMessage(input, context),
@@ -155,9 +133,7 @@ const se_CopyClusterSnapshotCommand = async (input, context) => {
155
133
  };
156
134
  exports.se_CopyClusterSnapshotCommand = se_CopyClusterSnapshotCommand;
157
135
  const se_CreateAuthenticationProfileCommand = async (input, context) => {
158
- const headers = {
159
- "content-type": "application/x-www-form-urlencoded",
160
- };
136
+ const headers = SHARED_HEADERS;
161
137
  let body;
162
138
  body = buildFormUrlencodedString({
163
139
  ...se_CreateAuthenticationProfileMessage(input, context),
@@ -168,9 +144,7 @@ const se_CreateAuthenticationProfileCommand = async (input, context) => {
168
144
  };
169
145
  exports.se_CreateAuthenticationProfileCommand = se_CreateAuthenticationProfileCommand;
170
146
  const se_CreateClusterCommand = async (input, context) => {
171
- const headers = {
172
- "content-type": "application/x-www-form-urlencoded",
173
- };
147
+ const headers = SHARED_HEADERS;
174
148
  let body;
175
149
  body = buildFormUrlencodedString({
176
150
  ...se_CreateClusterMessage(input, context),
@@ -181,9 +155,7 @@ const se_CreateClusterCommand = async (input, context) => {
181
155
  };
182
156
  exports.se_CreateClusterCommand = se_CreateClusterCommand;
183
157
  const se_CreateClusterParameterGroupCommand = async (input, context) => {
184
- const headers = {
185
- "content-type": "application/x-www-form-urlencoded",
186
- };
158
+ const headers = SHARED_HEADERS;
187
159
  let body;
188
160
  body = buildFormUrlencodedString({
189
161
  ...se_CreateClusterParameterGroupMessage(input, context),
@@ -194,9 +166,7 @@ const se_CreateClusterParameterGroupCommand = async (input, context) => {
194
166
  };
195
167
  exports.se_CreateClusterParameterGroupCommand = se_CreateClusterParameterGroupCommand;
196
168
  const se_CreateClusterSecurityGroupCommand = async (input, context) => {
197
- const headers = {
198
- "content-type": "application/x-www-form-urlencoded",
199
- };
169
+ const headers = SHARED_HEADERS;
200
170
  let body;
201
171
  body = buildFormUrlencodedString({
202
172
  ...se_CreateClusterSecurityGroupMessage(input, context),
@@ -207,9 +177,7 @@ const se_CreateClusterSecurityGroupCommand = async (input, context) => {
207
177
  };
208
178
  exports.se_CreateClusterSecurityGroupCommand = se_CreateClusterSecurityGroupCommand;
209
179
  const se_CreateClusterSnapshotCommand = async (input, context) => {
210
- const headers = {
211
- "content-type": "application/x-www-form-urlencoded",
212
- };
180
+ const headers = SHARED_HEADERS;
213
181
  let body;
214
182
  body = buildFormUrlencodedString({
215
183
  ...se_CreateClusterSnapshotMessage(input, context),
@@ -220,9 +188,7 @@ const se_CreateClusterSnapshotCommand = async (input, context) => {
220
188
  };
221
189
  exports.se_CreateClusterSnapshotCommand = se_CreateClusterSnapshotCommand;
222
190
  const se_CreateClusterSubnetGroupCommand = async (input, context) => {
223
- const headers = {
224
- "content-type": "application/x-www-form-urlencoded",
225
- };
191
+ const headers = SHARED_HEADERS;
226
192
  let body;
227
193
  body = buildFormUrlencodedString({
228
194
  ...se_CreateClusterSubnetGroupMessage(input, context),
@@ -233,9 +199,7 @@ const se_CreateClusterSubnetGroupCommand = async (input, context) => {
233
199
  };
234
200
  exports.se_CreateClusterSubnetGroupCommand = se_CreateClusterSubnetGroupCommand;
235
201
  const se_CreateEndpointAccessCommand = async (input, context) => {
236
- const headers = {
237
- "content-type": "application/x-www-form-urlencoded",
238
- };
202
+ const headers = SHARED_HEADERS;
239
203
  let body;
240
204
  body = buildFormUrlencodedString({
241
205
  ...se_CreateEndpointAccessMessage(input, context),
@@ -246,9 +210,7 @@ const se_CreateEndpointAccessCommand = async (input, context) => {
246
210
  };
247
211
  exports.se_CreateEndpointAccessCommand = se_CreateEndpointAccessCommand;
248
212
  const se_CreateEventSubscriptionCommand = async (input, context) => {
249
- const headers = {
250
- "content-type": "application/x-www-form-urlencoded",
251
- };
213
+ const headers = SHARED_HEADERS;
252
214
  let body;
253
215
  body = buildFormUrlencodedString({
254
216
  ...se_CreateEventSubscriptionMessage(input, context),
@@ -259,9 +221,7 @@ const se_CreateEventSubscriptionCommand = async (input, context) => {
259
221
  };
260
222
  exports.se_CreateEventSubscriptionCommand = se_CreateEventSubscriptionCommand;
261
223
  const se_CreateHsmClientCertificateCommand = async (input, context) => {
262
- const headers = {
263
- "content-type": "application/x-www-form-urlencoded",
264
- };
224
+ const headers = SHARED_HEADERS;
265
225
  let body;
266
226
  body = buildFormUrlencodedString({
267
227
  ...se_CreateHsmClientCertificateMessage(input, context),
@@ -272,9 +232,7 @@ const se_CreateHsmClientCertificateCommand = async (input, context) => {
272
232
  };
273
233
  exports.se_CreateHsmClientCertificateCommand = se_CreateHsmClientCertificateCommand;
274
234
  const se_CreateHsmConfigurationCommand = async (input, context) => {
275
- const headers = {
276
- "content-type": "application/x-www-form-urlencoded",
277
- };
235
+ const headers = SHARED_HEADERS;
278
236
  let body;
279
237
  body = buildFormUrlencodedString({
280
238
  ...se_CreateHsmConfigurationMessage(input, context),
@@ -285,9 +243,7 @@ const se_CreateHsmConfigurationCommand = async (input, context) => {
285
243
  };
286
244
  exports.se_CreateHsmConfigurationCommand = se_CreateHsmConfigurationCommand;
287
245
  const se_CreateScheduledActionCommand = async (input, context) => {
288
- const headers = {
289
- "content-type": "application/x-www-form-urlencoded",
290
- };
246
+ const headers = SHARED_HEADERS;
291
247
  let body;
292
248
  body = buildFormUrlencodedString({
293
249
  ...se_CreateScheduledActionMessage(input, context),
@@ -298,9 +254,7 @@ const se_CreateScheduledActionCommand = async (input, context) => {
298
254
  };
299
255
  exports.se_CreateScheduledActionCommand = se_CreateScheduledActionCommand;
300
256
  const se_CreateSnapshotCopyGrantCommand = async (input, context) => {
301
- const headers = {
302
- "content-type": "application/x-www-form-urlencoded",
303
- };
257
+ const headers = SHARED_HEADERS;
304
258
  let body;
305
259
  body = buildFormUrlencodedString({
306
260
  ...se_CreateSnapshotCopyGrantMessage(input, context),
@@ -311,9 +265,7 @@ const se_CreateSnapshotCopyGrantCommand = async (input, context) => {
311
265
  };
312
266
  exports.se_CreateSnapshotCopyGrantCommand = se_CreateSnapshotCopyGrantCommand;
313
267
  const se_CreateSnapshotScheduleCommand = async (input, context) => {
314
- const headers = {
315
- "content-type": "application/x-www-form-urlencoded",
316
- };
268
+ const headers = SHARED_HEADERS;
317
269
  let body;
318
270
  body = buildFormUrlencodedString({
319
271
  ...se_CreateSnapshotScheduleMessage(input, context),
@@ -324,9 +276,7 @@ const se_CreateSnapshotScheduleCommand = async (input, context) => {
324
276
  };
325
277
  exports.se_CreateSnapshotScheduleCommand = se_CreateSnapshotScheduleCommand;
326
278
  const se_CreateTagsCommand = async (input, context) => {
327
- const headers = {
328
- "content-type": "application/x-www-form-urlencoded",
329
- };
279
+ const headers = SHARED_HEADERS;
330
280
  let body;
331
281
  body = buildFormUrlencodedString({
332
282
  ...se_CreateTagsMessage(input, context),
@@ -337,9 +287,7 @@ const se_CreateTagsCommand = async (input, context) => {
337
287
  };
338
288
  exports.se_CreateTagsCommand = se_CreateTagsCommand;
339
289
  const se_CreateUsageLimitCommand = async (input, context) => {
340
- const headers = {
341
- "content-type": "application/x-www-form-urlencoded",
342
- };
290
+ const headers = SHARED_HEADERS;
343
291
  let body;
344
292
  body = buildFormUrlencodedString({
345
293
  ...se_CreateUsageLimitMessage(input, context),
@@ -350,9 +298,7 @@ const se_CreateUsageLimitCommand = async (input, context) => {
350
298
  };
351
299
  exports.se_CreateUsageLimitCommand = se_CreateUsageLimitCommand;
352
300
  const se_DeauthorizeDataShareCommand = async (input, context) => {
353
- const headers = {
354
- "content-type": "application/x-www-form-urlencoded",
355
- };
301
+ const headers = SHARED_HEADERS;
356
302
  let body;
357
303
  body = buildFormUrlencodedString({
358
304
  ...se_DeauthorizeDataShareMessage(input, context),
@@ -363,9 +309,7 @@ const se_DeauthorizeDataShareCommand = async (input, context) => {
363
309
  };
364
310
  exports.se_DeauthorizeDataShareCommand = se_DeauthorizeDataShareCommand;
365
311
  const se_DeleteAuthenticationProfileCommand = async (input, context) => {
366
- const headers = {
367
- "content-type": "application/x-www-form-urlencoded",
368
- };
312
+ const headers = SHARED_HEADERS;
369
313
  let body;
370
314
  body = buildFormUrlencodedString({
371
315
  ...se_DeleteAuthenticationProfileMessage(input, context),
@@ -376,9 +320,7 @@ const se_DeleteAuthenticationProfileCommand = async (input, context) => {
376
320
  };
377
321
  exports.se_DeleteAuthenticationProfileCommand = se_DeleteAuthenticationProfileCommand;
378
322
  const se_DeleteClusterCommand = async (input, context) => {
379
- const headers = {
380
- "content-type": "application/x-www-form-urlencoded",
381
- };
323
+ const headers = SHARED_HEADERS;
382
324
  let body;
383
325
  body = buildFormUrlencodedString({
384
326
  ...se_DeleteClusterMessage(input, context),
@@ -389,9 +331,7 @@ const se_DeleteClusterCommand = async (input, context) => {
389
331
  };
390
332
  exports.se_DeleteClusterCommand = se_DeleteClusterCommand;
391
333
  const se_DeleteClusterParameterGroupCommand = async (input, context) => {
392
- const headers = {
393
- "content-type": "application/x-www-form-urlencoded",
394
- };
334
+ const headers = SHARED_HEADERS;
395
335
  let body;
396
336
  body = buildFormUrlencodedString({
397
337
  ...se_DeleteClusterParameterGroupMessage(input, context),
@@ -402,9 +342,7 @@ const se_DeleteClusterParameterGroupCommand = async (input, context) => {
402
342
  };
403
343
  exports.se_DeleteClusterParameterGroupCommand = se_DeleteClusterParameterGroupCommand;
404
344
  const se_DeleteClusterSecurityGroupCommand = async (input, context) => {
405
- const headers = {
406
- "content-type": "application/x-www-form-urlencoded",
407
- };
345
+ const headers = SHARED_HEADERS;
408
346
  let body;
409
347
  body = buildFormUrlencodedString({
410
348
  ...se_DeleteClusterSecurityGroupMessage(input, context),
@@ -415,9 +353,7 @@ const se_DeleteClusterSecurityGroupCommand = async (input, context) => {
415
353
  };
416
354
  exports.se_DeleteClusterSecurityGroupCommand = se_DeleteClusterSecurityGroupCommand;
417
355
  const se_DeleteClusterSnapshotCommand = async (input, context) => {
418
- const headers = {
419
- "content-type": "application/x-www-form-urlencoded",
420
- };
356
+ const headers = SHARED_HEADERS;
421
357
  let body;
422
358
  body = buildFormUrlencodedString({
423
359
  ...se_DeleteClusterSnapshotMessage(input, context),
@@ -428,9 +364,7 @@ const se_DeleteClusterSnapshotCommand = async (input, context) => {
428
364
  };
429
365
  exports.se_DeleteClusterSnapshotCommand = se_DeleteClusterSnapshotCommand;
430
366
  const se_DeleteClusterSubnetGroupCommand = async (input, context) => {
431
- const headers = {
432
- "content-type": "application/x-www-form-urlencoded",
433
- };
367
+ const headers = SHARED_HEADERS;
434
368
  let body;
435
369
  body = buildFormUrlencodedString({
436
370
  ...se_DeleteClusterSubnetGroupMessage(input, context),
@@ -441,9 +375,7 @@ const se_DeleteClusterSubnetGroupCommand = async (input, context) => {
441
375
  };
442
376
  exports.se_DeleteClusterSubnetGroupCommand = se_DeleteClusterSubnetGroupCommand;
443
377
  const se_DeleteEndpointAccessCommand = async (input, context) => {
444
- const headers = {
445
- "content-type": "application/x-www-form-urlencoded",
446
- };
378
+ const headers = SHARED_HEADERS;
447
379
  let body;
448
380
  body = buildFormUrlencodedString({
449
381
  ...se_DeleteEndpointAccessMessage(input, context),
@@ -454,9 +386,7 @@ const se_DeleteEndpointAccessCommand = async (input, context) => {
454
386
  };
455
387
  exports.se_DeleteEndpointAccessCommand = se_DeleteEndpointAccessCommand;
456
388
  const se_DeleteEventSubscriptionCommand = async (input, context) => {
457
- const headers = {
458
- "content-type": "application/x-www-form-urlencoded",
459
- };
389
+ const headers = SHARED_HEADERS;
460
390
  let body;
461
391
  body = buildFormUrlencodedString({
462
392
  ...se_DeleteEventSubscriptionMessage(input, context),
@@ -467,9 +397,7 @@ const se_DeleteEventSubscriptionCommand = async (input, context) => {
467
397
  };
468
398
  exports.se_DeleteEventSubscriptionCommand = se_DeleteEventSubscriptionCommand;
469
399
  const se_DeleteHsmClientCertificateCommand = async (input, context) => {
470
- const headers = {
471
- "content-type": "application/x-www-form-urlencoded",
472
- };
400
+ const headers = SHARED_HEADERS;
473
401
  let body;
474
402
  body = buildFormUrlencodedString({
475
403
  ...se_DeleteHsmClientCertificateMessage(input, context),
@@ -480,9 +408,7 @@ const se_DeleteHsmClientCertificateCommand = async (input, context) => {
480
408
  };
481
409
  exports.se_DeleteHsmClientCertificateCommand = se_DeleteHsmClientCertificateCommand;
482
410
  const se_DeleteHsmConfigurationCommand = async (input, context) => {
483
- const headers = {
484
- "content-type": "application/x-www-form-urlencoded",
485
- };
411
+ const headers = SHARED_HEADERS;
486
412
  let body;
487
413
  body = buildFormUrlencodedString({
488
414
  ...se_DeleteHsmConfigurationMessage(input, context),
@@ -493,9 +419,7 @@ const se_DeleteHsmConfigurationCommand = async (input, context) => {
493
419
  };
494
420
  exports.se_DeleteHsmConfigurationCommand = se_DeleteHsmConfigurationCommand;
495
421
  const se_DeletePartnerCommand = async (input, context) => {
496
- const headers = {
497
- "content-type": "application/x-www-form-urlencoded",
498
- };
422
+ const headers = SHARED_HEADERS;
499
423
  let body;
500
424
  body = buildFormUrlencodedString({
501
425
  ...se_PartnerIntegrationInputMessage(input, context),
@@ -506,9 +430,7 @@ const se_DeletePartnerCommand = async (input, context) => {
506
430
  };
507
431
  exports.se_DeletePartnerCommand = se_DeletePartnerCommand;
508
432
  const se_DeleteScheduledActionCommand = async (input, context) => {
509
- const headers = {
510
- "content-type": "application/x-www-form-urlencoded",
511
- };
433
+ const headers = SHARED_HEADERS;
512
434
  let body;
513
435
  body = buildFormUrlencodedString({
514
436
  ...se_DeleteScheduledActionMessage(input, context),
@@ -519,9 +441,7 @@ const se_DeleteScheduledActionCommand = async (input, context) => {
519
441
  };
520
442
  exports.se_DeleteScheduledActionCommand = se_DeleteScheduledActionCommand;
521
443
  const se_DeleteSnapshotCopyGrantCommand = async (input, context) => {
522
- const headers = {
523
- "content-type": "application/x-www-form-urlencoded",
524
- };
444
+ const headers = SHARED_HEADERS;
525
445
  let body;
526
446
  body = buildFormUrlencodedString({
527
447
  ...se_DeleteSnapshotCopyGrantMessage(input, context),
@@ -532,9 +452,7 @@ const se_DeleteSnapshotCopyGrantCommand = async (input, context) => {
532
452
  };
533
453
  exports.se_DeleteSnapshotCopyGrantCommand = se_DeleteSnapshotCopyGrantCommand;
534
454
  const se_DeleteSnapshotScheduleCommand = async (input, context) => {
535
- const headers = {
536
- "content-type": "application/x-www-form-urlencoded",
537
- };
455
+ const headers = SHARED_HEADERS;
538
456
  let body;
539
457
  body = buildFormUrlencodedString({
540
458
  ...se_DeleteSnapshotScheduleMessage(input, context),
@@ -545,9 +463,7 @@ const se_DeleteSnapshotScheduleCommand = async (input, context) => {
545
463
  };
546
464
  exports.se_DeleteSnapshotScheduleCommand = se_DeleteSnapshotScheduleCommand;
547
465
  const se_DeleteTagsCommand = async (input, context) => {
548
- const headers = {
549
- "content-type": "application/x-www-form-urlencoded",
550
- };
466
+ const headers = SHARED_HEADERS;
551
467
  let body;
552
468
  body = buildFormUrlencodedString({
553
469
  ...se_DeleteTagsMessage(input, context),
@@ -558,9 +474,7 @@ const se_DeleteTagsCommand = async (input, context) => {
558
474
  };
559
475
  exports.se_DeleteTagsCommand = se_DeleteTagsCommand;
560
476
  const se_DeleteUsageLimitCommand = async (input, context) => {
561
- const headers = {
562
- "content-type": "application/x-www-form-urlencoded",
563
- };
477
+ const headers = SHARED_HEADERS;
564
478
  let body;
565
479
  body = buildFormUrlencodedString({
566
480
  ...se_DeleteUsageLimitMessage(input, context),
@@ -571,9 +485,7 @@ const se_DeleteUsageLimitCommand = async (input, context) => {
571
485
  };
572
486
  exports.se_DeleteUsageLimitCommand = se_DeleteUsageLimitCommand;
573
487
  const se_DescribeAccountAttributesCommand = async (input, context) => {
574
- const headers = {
575
- "content-type": "application/x-www-form-urlencoded",
576
- };
488
+ const headers = SHARED_HEADERS;
577
489
  let body;
578
490
  body = buildFormUrlencodedString({
579
491
  ...se_DescribeAccountAttributesMessage(input, context),
@@ -584,9 +496,7 @@ const se_DescribeAccountAttributesCommand = async (input, context) => {
584
496
  };
585
497
  exports.se_DescribeAccountAttributesCommand = se_DescribeAccountAttributesCommand;
586
498
  const se_DescribeAuthenticationProfilesCommand = async (input, context) => {
587
- const headers = {
588
- "content-type": "application/x-www-form-urlencoded",
589
- };
499
+ const headers = SHARED_HEADERS;
590
500
  let body;
591
501
  body = buildFormUrlencodedString({
592
502
  ...se_DescribeAuthenticationProfilesMessage(input, context),
@@ -597,9 +507,7 @@ const se_DescribeAuthenticationProfilesCommand = async (input, context) => {
597
507
  };
598
508
  exports.se_DescribeAuthenticationProfilesCommand = se_DescribeAuthenticationProfilesCommand;
599
509
  const se_DescribeClusterDbRevisionsCommand = async (input, context) => {
600
- const headers = {
601
- "content-type": "application/x-www-form-urlencoded",
602
- };
510
+ const headers = SHARED_HEADERS;
603
511
  let body;
604
512
  body = buildFormUrlencodedString({
605
513
  ...se_DescribeClusterDbRevisionsMessage(input, context),
@@ -610,9 +518,7 @@ const se_DescribeClusterDbRevisionsCommand = async (input, context) => {
610
518
  };
611
519
  exports.se_DescribeClusterDbRevisionsCommand = se_DescribeClusterDbRevisionsCommand;
612
520
  const se_DescribeClusterParameterGroupsCommand = async (input, context) => {
613
- const headers = {
614
- "content-type": "application/x-www-form-urlencoded",
615
- };
521
+ const headers = SHARED_HEADERS;
616
522
  let body;
617
523
  body = buildFormUrlencodedString({
618
524
  ...se_DescribeClusterParameterGroupsMessage(input, context),
@@ -623,9 +529,7 @@ const se_DescribeClusterParameterGroupsCommand = async (input, context) => {
623
529
  };
624
530
  exports.se_DescribeClusterParameterGroupsCommand = se_DescribeClusterParameterGroupsCommand;
625
531
  const se_DescribeClusterParametersCommand = async (input, context) => {
626
- const headers = {
627
- "content-type": "application/x-www-form-urlencoded",
628
- };
532
+ const headers = SHARED_HEADERS;
629
533
  let body;
630
534
  body = buildFormUrlencodedString({
631
535
  ...se_DescribeClusterParametersMessage(input, context),
@@ -636,9 +540,7 @@ const se_DescribeClusterParametersCommand = async (input, context) => {
636
540
  };
637
541
  exports.se_DescribeClusterParametersCommand = se_DescribeClusterParametersCommand;
638
542
  const se_DescribeClustersCommand = async (input, context) => {
639
- const headers = {
640
- "content-type": "application/x-www-form-urlencoded",
641
- };
543
+ const headers = SHARED_HEADERS;
642
544
  let body;
643
545
  body = buildFormUrlencodedString({
644
546
  ...se_DescribeClustersMessage(input, context),
@@ -649,9 +551,7 @@ const se_DescribeClustersCommand = async (input, context) => {
649
551
  };
650
552
  exports.se_DescribeClustersCommand = se_DescribeClustersCommand;
651
553
  const se_DescribeClusterSecurityGroupsCommand = async (input, context) => {
652
- const headers = {
653
- "content-type": "application/x-www-form-urlencoded",
654
- };
554
+ const headers = SHARED_HEADERS;
655
555
  let body;
656
556
  body = buildFormUrlencodedString({
657
557
  ...se_DescribeClusterSecurityGroupsMessage(input, context),
@@ -662,9 +562,7 @@ const se_DescribeClusterSecurityGroupsCommand = async (input, context) => {
662
562
  };
663
563
  exports.se_DescribeClusterSecurityGroupsCommand = se_DescribeClusterSecurityGroupsCommand;
664
564
  const se_DescribeClusterSnapshotsCommand = async (input, context) => {
665
- const headers = {
666
- "content-type": "application/x-www-form-urlencoded",
667
- };
565
+ const headers = SHARED_HEADERS;
668
566
  let body;
669
567
  body = buildFormUrlencodedString({
670
568
  ...se_DescribeClusterSnapshotsMessage(input, context),
@@ -675,9 +573,7 @@ const se_DescribeClusterSnapshotsCommand = async (input, context) => {
675
573
  };
676
574
  exports.se_DescribeClusterSnapshotsCommand = se_DescribeClusterSnapshotsCommand;
677
575
  const se_DescribeClusterSubnetGroupsCommand = async (input, context) => {
678
- const headers = {
679
- "content-type": "application/x-www-form-urlencoded",
680
- };
576
+ const headers = SHARED_HEADERS;
681
577
  let body;
682
578
  body = buildFormUrlencodedString({
683
579
  ...se_DescribeClusterSubnetGroupsMessage(input, context),
@@ -688,9 +584,7 @@ const se_DescribeClusterSubnetGroupsCommand = async (input, context) => {
688
584
  };
689
585
  exports.se_DescribeClusterSubnetGroupsCommand = se_DescribeClusterSubnetGroupsCommand;
690
586
  const se_DescribeClusterTracksCommand = async (input, context) => {
691
- const headers = {
692
- "content-type": "application/x-www-form-urlencoded",
693
- };
587
+ const headers = SHARED_HEADERS;
694
588
  let body;
695
589
  body = buildFormUrlencodedString({
696
590
  ...se_DescribeClusterTracksMessage(input, context),
@@ -701,9 +595,7 @@ const se_DescribeClusterTracksCommand = async (input, context) => {
701
595
  };
702
596
  exports.se_DescribeClusterTracksCommand = se_DescribeClusterTracksCommand;
703
597
  const se_DescribeClusterVersionsCommand = async (input, context) => {
704
- const headers = {
705
- "content-type": "application/x-www-form-urlencoded",
706
- };
598
+ const headers = SHARED_HEADERS;
707
599
  let body;
708
600
  body = buildFormUrlencodedString({
709
601
  ...se_DescribeClusterVersionsMessage(input, context),
@@ -714,9 +606,7 @@ const se_DescribeClusterVersionsCommand = async (input, context) => {
714
606
  };
715
607
  exports.se_DescribeClusterVersionsCommand = se_DescribeClusterVersionsCommand;
716
608
  const se_DescribeDataSharesCommand = async (input, context) => {
717
- const headers = {
718
- "content-type": "application/x-www-form-urlencoded",
719
- };
609
+ const headers = SHARED_HEADERS;
720
610
  let body;
721
611
  body = buildFormUrlencodedString({
722
612
  ...se_DescribeDataSharesMessage(input, context),
@@ -727,9 +617,7 @@ const se_DescribeDataSharesCommand = async (input, context) => {
727
617
  };
728
618
  exports.se_DescribeDataSharesCommand = se_DescribeDataSharesCommand;
729
619
  const se_DescribeDataSharesForConsumerCommand = async (input, context) => {
730
- const headers = {
731
- "content-type": "application/x-www-form-urlencoded",
732
- };
620
+ const headers = SHARED_HEADERS;
733
621
  let body;
734
622
  body = buildFormUrlencodedString({
735
623
  ...se_DescribeDataSharesForConsumerMessage(input, context),
@@ -740,9 +628,7 @@ const se_DescribeDataSharesForConsumerCommand = async (input, context) => {
740
628
  };
741
629
  exports.se_DescribeDataSharesForConsumerCommand = se_DescribeDataSharesForConsumerCommand;
742
630
  const se_DescribeDataSharesForProducerCommand = async (input, context) => {
743
- const headers = {
744
- "content-type": "application/x-www-form-urlencoded",
745
- };
631
+ const headers = SHARED_HEADERS;
746
632
  let body;
747
633
  body = buildFormUrlencodedString({
748
634
  ...se_DescribeDataSharesForProducerMessage(input, context),
@@ -753,9 +639,7 @@ const se_DescribeDataSharesForProducerCommand = async (input, context) => {
753
639
  };
754
640
  exports.se_DescribeDataSharesForProducerCommand = se_DescribeDataSharesForProducerCommand;
755
641
  const se_DescribeDefaultClusterParametersCommand = async (input, context) => {
756
- const headers = {
757
- "content-type": "application/x-www-form-urlencoded",
758
- };
642
+ const headers = SHARED_HEADERS;
759
643
  let body;
760
644
  body = buildFormUrlencodedString({
761
645
  ...se_DescribeDefaultClusterParametersMessage(input, context),
@@ -766,9 +650,7 @@ const se_DescribeDefaultClusterParametersCommand = async (input, context) => {
766
650
  };
767
651
  exports.se_DescribeDefaultClusterParametersCommand = se_DescribeDefaultClusterParametersCommand;
768
652
  const se_DescribeEndpointAccessCommand = async (input, context) => {
769
- const headers = {
770
- "content-type": "application/x-www-form-urlencoded",
771
- };
653
+ const headers = SHARED_HEADERS;
772
654
  let body;
773
655
  body = buildFormUrlencodedString({
774
656
  ...se_DescribeEndpointAccessMessage(input, context),
@@ -779,9 +661,7 @@ const se_DescribeEndpointAccessCommand = async (input, context) => {
779
661
  };
780
662
  exports.se_DescribeEndpointAccessCommand = se_DescribeEndpointAccessCommand;
781
663
  const se_DescribeEndpointAuthorizationCommand = async (input, context) => {
782
- const headers = {
783
- "content-type": "application/x-www-form-urlencoded",
784
- };
664
+ const headers = SHARED_HEADERS;
785
665
  let body;
786
666
  body = buildFormUrlencodedString({
787
667
  ...se_DescribeEndpointAuthorizationMessage(input, context),
@@ -792,9 +672,7 @@ const se_DescribeEndpointAuthorizationCommand = async (input, context) => {
792
672
  };
793
673
  exports.se_DescribeEndpointAuthorizationCommand = se_DescribeEndpointAuthorizationCommand;
794
674
  const se_DescribeEventCategoriesCommand = async (input, context) => {
795
- const headers = {
796
- "content-type": "application/x-www-form-urlencoded",
797
- };
675
+ const headers = SHARED_HEADERS;
798
676
  let body;
799
677
  body = buildFormUrlencodedString({
800
678
  ...se_DescribeEventCategoriesMessage(input, context),
@@ -805,9 +683,7 @@ const se_DescribeEventCategoriesCommand = async (input, context) => {
805
683
  };
806
684
  exports.se_DescribeEventCategoriesCommand = se_DescribeEventCategoriesCommand;
807
685
  const se_DescribeEventsCommand = async (input, context) => {
808
- const headers = {
809
- "content-type": "application/x-www-form-urlencoded",
810
- };
686
+ const headers = SHARED_HEADERS;
811
687
  let body;
812
688
  body = buildFormUrlencodedString({
813
689
  ...se_DescribeEventsMessage(input, context),
@@ -818,9 +694,7 @@ const se_DescribeEventsCommand = async (input, context) => {
818
694
  };
819
695
  exports.se_DescribeEventsCommand = se_DescribeEventsCommand;
820
696
  const se_DescribeEventSubscriptionsCommand = async (input, context) => {
821
- const headers = {
822
- "content-type": "application/x-www-form-urlencoded",
823
- };
697
+ const headers = SHARED_HEADERS;
824
698
  let body;
825
699
  body = buildFormUrlencodedString({
826
700
  ...se_DescribeEventSubscriptionsMessage(input, context),
@@ -831,9 +705,7 @@ const se_DescribeEventSubscriptionsCommand = async (input, context) => {
831
705
  };
832
706
  exports.se_DescribeEventSubscriptionsCommand = se_DescribeEventSubscriptionsCommand;
833
707
  const se_DescribeHsmClientCertificatesCommand = async (input, context) => {
834
- const headers = {
835
- "content-type": "application/x-www-form-urlencoded",
836
- };
708
+ const headers = SHARED_HEADERS;
837
709
  let body;
838
710
  body = buildFormUrlencodedString({
839
711
  ...se_DescribeHsmClientCertificatesMessage(input, context),
@@ -844,9 +716,7 @@ const se_DescribeHsmClientCertificatesCommand = async (input, context) => {
844
716
  };
845
717
  exports.se_DescribeHsmClientCertificatesCommand = se_DescribeHsmClientCertificatesCommand;
846
718
  const se_DescribeHsmConfigurationsCommand = async (input, context) => {
847
- const headers = {
848
- "content-type": "application/x-www-form-urlencoded",
849
- };
719
+ const headers = SHARED_HEADERS;
850
720
  let body;
851
721
  body = buildFormUrlencodedString({
852
722
  ...se_DescribeHsmConfigurationsMessage(input, context),
@@ -857,9 +727,7 @@ const se_DescribeHsmConfigurationsCommand = async (input, context) => {
857
727
  };
858
728
  exports.se_DescribeHsmConfigurationsCommand = se_DescribeHsmConfigurationsCommand;
859
729
  const se_DescribeLoggingStatusCommand = async (input, context) => {
860
- const headers = {
861
- "content-type": "application/x-www-form-urlencoded",
862
- };
730
+ const headers = SHARED_HEADERS;
863
731
  let body;
864
732
  body = buildFormUrlencodedString({
865
733
  ...se_DescribeLoggingStatusMessage(input, context),
@@ -870,9 +738,7 @@ const se_DescribeLoggingStatusCommand = async (input, context) => {
870
738
  };
871
739
  exports.se_DescribeLoggingStatusCommand = se_DescribeLoggingStatusCommand;
872
740
  const se_DescribeNodeConfigurationOptionsCommand = async (input, context) => {
873
- const headers = {
874
- "content-type": "application/x-www-form-urlencoded",
875
- };
741
+ const headers = SHARED_HEADERS;
876
742
  let body;
877
743
  body = buildFormUrlencodedString({
878
744
  ...se_DescribeNodeConfigurationOptionsMessage(input, context),
@@ -883,9 +749,7 @@ const se_DescribeNodeConfigurationOptionsCommand = async (input, context) => {
883
749
  };
884
750
  exports.se_DescribeNodeConfigurationOptionsCommand = se_DescribeNodeConfigurationOptionsCommand;
885
751
  const se_DescribeOrderableClusterOptionsCommand = async (input, context) => {
886
- const headers = {
887
- "content-type": "application/x-www-form-urlencoded",
888
- };
752
+ const headers = SHARED_HEADERS;
889
753
  let body;
890
754
  body = buildFormUrlencodedString({
891
755
  ...se_DescribeOrderableClusterOptionsMessage(input, context),
@@ -896,9 +760,7 @@ const se_DescribeOrderableClusterOptionsCommand = async (input, context) => {
896
760
  };
897
761
  exports.se_DescribeOrderableClusterOptionsCommand = se_DescribeOrderableClusterOptionsCommand;
898
762
  const se_DescribePartnersCommand = async (input, context) => {
899
- const headers = {
900
- "content-type": "application/x-www-form-urlencoded",
901
- };
763
+ const headers = SHARED_HEADERS;
902
764
  let body;
903
765
  body = buildFormUrlencodedString({
904
766
  ...se_DescribePartnersInputMessage(input, context),
@@ -909,9 +771,7 @@ const se_DescribePartnersCommand = async (input, context) => {
909
771
  };
910
772
  exports.se_DescribePartnersCommand = se_DescribePartnersCommand;
911
773
  const se_DescribeReservedNodeExchangeStatusCommand = async (input, context) => {
912
- const headers = {
913
- "content-type": "application/x-www-form-urlencoded",
914
- };
774
+ const headers = SHARED_HEADERS;
915
775
  let body;
916
776
  body = buildFormUrlencodedString({
917
777
  ...se_DescribeReservedNodeExchangeStatusInputMessage(input, context),
@@ -922,9 +782,7 @@ const se_DescribeReservedNodeExchangeStatusCommand = async (input, context) => {
922
782
  };
923
783
  exports.se_DescribeReservedNodeExchangeStatusCommand = se_DescribeReservedNodeExchangeStatusCommand;
924
784
  const se_DescribeReservedNodeOfferingsCommand = async (input, context) => {
925
- const headers = {
926
- "content-type": "application/x-www-form-urlencoded",
927
- };
785
+ const headers = SHARED_HEADERS;
928
786
  let body;
929
787
  body = buildFormUrlencodedString({
930
788
  ...se_DescribeReservedNodeOfferingsMessage(input, context),
@@ -935,9 +793,7 @@ const se_DescribeReservedNodeOfferingsCommand = async (input, context) => {
935
793
  };
936
794
  exports.se_DescribeReservedNodeOfferingsCommand = se_DescribeReservedNodeOfferingsCommand;
937
795
  const se_DescribeReservedNodesCommand = async (input, context) => {
938
- const headers = {
939
- "content-type": "application/x-www-form-urlencoded",
940
- };
796
+ const headers = SHARED_HEADERS;
941
797
  let body;
942
798
  body = buildFormUrlencodedString({
943
799
  ...se_DescribeReservedNodesMessage(input, context),
@@ -948,9 +804,7 @@ const se_DescribeReservedNodesCommand = async (input, context) => {
948
804
  };
949
805
  exports.se_DescribeReservedNodesCommand = se_DescribeReservedNodesCommand;
950
806
  const se_DescribeResizeCommand = async (input, context) => {
951
- const headers = {
952
- "content-type": "application/x-www-form-urlencoded",
953
- };
807
+ const headers = SHARED_HEADERS;
954
808
  let body;
955
809
  body = buildFormUrlencodedString({
956
810
  ...se_DescribeResizeMessage(input, context),
@@ -961,9 +815,7 @@ const se_DescribeResizeCommand = async (input, context) => {
961
815
  };
962
816
  exports.se_DescribeResizeCommand = se_DescribeResizeCommand;
963
817
  const se_DescribeScheduledActionsCommand = async (input, context) => {
964
- const headers = {
965
- "content-type": "application/x-www-form-urlencoded",
966
- };
818
+ const headers = SHARED_HEADERS;
967
819
  let body;
968
820
  body = buildFormUrlencodedString({
969
821
  ...se_DescribeScheduledActionsMessage(input, context),
@@ -974,9 +826,7 @@ const se_DescribeScheduledActionsCommand = async (input, context) => {
974
826
  };
975
827
  exports.se_DescribeScheduledActionsCommand = se_DescribeScheduledActionsCommand;
976
828
  const se_DescribeSnapshotCopyGrantsCommand = async (input, context) => {
977
- const headers = {
978
- "content-type": "application/x-www-form-urlencoded",
979
- };
829
+ const headers = SHARED_HEADERS;
980
830
  let body;
981
831
  body = buildFormUrlencodedString({
982
832
  ...se_DescribeSnapshotCopyGrantsMessage(input, context),
@@ -987,9 +837,7 @@ const se_DescribeSnapshotCopyGrantsCommand = async (input, context) => {
987
837
  };
988
838
  exports.se_DescribeSnapshotCopyGrantsCommand = se_DescribeSnapshotCopyGrantsCommand;
989
839
  const se_DescribeSnapshotSchedulesCommand = async (input, context) => {
990
- const headers = {
991
- "content-type": "application/x-www-form-urlencoded",
992
- };
840
+ const headers = SHARED_HEADERS;
993
841
  let body;
994
842
  body = buildFormUrlencodedString({
995
843
  ...se_DescribeSnapshotSchedulesMessage(input, context),
@@ -1000,9 +848,7 @@ const se_DescribeSnapshotSchedulesCommand = async (input, context) => {
1000
848
  };
1001
849
  exports.se_DescribeSnapshotSchedulesCommand = se_DescribeSnapshotSchedulesCommand;
1002
850
  const se_DescribeStorageCommand = async (input, context) => {
1003
- const headers = {
1004
- "content-type": "application/x-www-form-urlencoded",
1005
- };
851
+ const headers = SHARED_HEADERS;
1006
852
  const body = buildFormUrlencodedString({
1007
853
  Action: "DescribeStorage",
1008
854
  Version: "2012-12-01",
@@ -1011,9 +857,7 @@ const se_DescribeStorageCommand = async (input, context) => {
1011
857
  };
1012
858
  exports.se_DescribeStorageCommand = se_DescribeStorageCommand;
1013
859
  const se_DescribeTableRestoreStatusCommand = async (input, context) => {
1014
- const headers = {
1015
- "content-type": "application/x-www-form-urlencoded",
1016
- };
860
+ const headers = SHARED_HEADERS;
1017
861
  let body;
1018
862
  body = buildFormUrlencodedString({
1019
863
  ...se_DescribeTableRestoreStatusMessage(input, context),
@@ -1024,9 +868,7 @@ const se_DescribeTableRestoreStatusCommand = async (input, context) => {
1024
868
  };
1025
869
  exports.se_DescribeTableRestoreStatusCommand = se_DescribeTableRestoreStatusCommand;
1026
870
  const se_DescribeTagsCommand = async (input, context) => {
1027
- const headers = {
1028
- "content-type": "application/x-www-form-urlencoded",
1029
- };
871
+ const headers = SHARED_HEADERS;
1030
872
  let body;
1031
873
  body = buildFormUrlencodedString({
1032
874
  ...se_DescribeTagsMessage(input, context),
@@ -1037,9 +879,7 @@ const se_DescribeTagsCommand = async (input, context) => {
1037
879
  };
1038
880
  exports.se_DescribeTagsCommand = se_DescribeTagsCommand;
1039
881
  const se_DescribeUsageLimitsCommand = async (input, context) => {
1040
- const headers = {
1041
- "content-type": "application/x-www-form-urlencoded",
1042
- };
882
+ const headers = SHARED_HEADERS;
1043
883
  let body;
1044
884
  body = buildFormUrlencodedString({
1045
885
  ...se_DescribeUsageLimitsMessage(input, context),
@@ -1050,9 +890,7 @@ const se_DescribeUsageLimitsCommand = async (input, context) => {
1050
890
  };
1051
891
  exports.se_DescribeUsageLimitsCommand = se_DescribeUsageLimitsCommand;
1052
892
  const se_DisableLoggingCommand = async (input, context) => {
1053
- const headers = {
1054
- "content-type": "application/x-www-form-urlencoded",
1055
- };
893
+ const headers = SHARED_HEADERS;
1056
894
  let body;
1057
895
  body = buildFormUrlencodedString({
1058
896
  ...se_DisableLoggingMessage(input, context),
@@ -1063,9 +901,7 @@ const se_DisableLoggingCommand = async (input, context) => {
1063
901
  };
1064
902
  exports.se_DisableLoggingCommand = se_DisableLoggingCommand;
1065
903
  const se_DisableSnapshotCopyCommand = async (input, context) => {
1066
- const headers = {
1067
- "content-type": "application/x-www-form-urlencoded",
1068
- };
904
+ const headers = SHARED_HEADERS;
1069
905
  let body;
1070
906
  body = buildFormUrlencodedString({
1071
907
  ...se_DisableSnapshotCopyMessage(input, context),
@@ -1076,9 +912,7 @@ const se_DisableSnapshotCopyCommand = async (input, context) => {
1076
912
  };
1077
913
  exports.se_DisableSnapshotCopyCommand = se_DisableSnapshotCopyCommand;
1078
914
  const se_DisassociateDataShareConsumerCommand = async (input, context) => {
1079
- const headers = {
1080
- "content-type": "application/x-www-form-urlencoded",
1081
- };
915
+ const headers = SHARED_HEADERS;
1082
916
  let body;
1083
917
  body = buildFormUrlencodedString({
1084
918
  ...se_DisassociateDataShareConsumerMessage(input, context),
@@ -1089,9 +923,7 @@ const se_DisassociateDataShareConsumerCommand = async (input, context) => {
1089
923
  };
1090
924
  exports.se_DisassociateDataShareConsumerCommand = se_DisassociateDataShareConsumerCommand;
1091
925
  const se_EnableLoggingCommand = async (input, context) => {
1092
- const headers = {
1093
- "content-type": "application/x-www-form-urlencoded",
1094
- };
926
+ const headers = SHARED_HEADERS;
1095
927
  let body;
1096
928
  body = buildFormUrlencodedString({
1097
929
  ...se_EnableLoggingMessage(input, context),
@@ -1102,9 +934,7 @@ const se_EnableLoggingCommand = async (input, context) => {
1102
934
  };
1103
935
  exports.se_EnableLoggingCommand = se_EnableLoggingCommand;
1104
936
  const se_EnableSnapshotCopyCommand = async (input, context) => {
1105
- const headers = {
1106
- "content-type": "application/x-www-form-urlencoded",
1107
- };
937
+ const headers = SHARED_HEADERS;
1108
938
  let body;
1109
939
  body = buildFormUrlencodedString({
1110
940
  ...se_EnableSnapshotCopyMessage(input, context),
@@ -1115,9 +945,7 @@ const se_EnableSnapshotCopyCommand = async (input, context) => {
1115
945
  };
1116
946
  exports.se_EnableSnapshotCopyCommand = se_EnableSnapshotCopyCommand;
1117
947
  const se_GetClusterCredentialsCommand = async (input, context) => {
1118
- const headers = {
1119
- "content-type": "application/x-www-form-urlencoded",
1120
- };
948
+ const headers = SHARED_HEADERS;
1121
949
  let body;
1122
950
  body = buildFormUrlencodedString({
1123
951
  ...se_GetClusterCredentialsMessage(input, context),
@@ -1128,9 +956,7 @@ const se_GetClusterCredentialsCommand = async (input, context) => {
1128
956
  };
1129
957
  exports.se_GetClusterCredentialsCommand = se_GetClusterCredentialsCommand;
1130
958
  const se_GetClusterCredentialsWithIAMCommand = async (input, context) => {
1131
- const headers = {
1132
- "content-type": "application/x-www-form-urlencoded",
1133
- };
959
+ const headers = SHARED_HEADERS;
1134
960
  let body;
1135
961
  body = buildFormUrlencodedString({
1136
962
  ...se_GetClusterCredentialsWithIAMMessage(input, context),
@@ -1141,9 +967,7 @@ const se_GetClusterCredentialsWithIAMCommand = async (input, context) => {
1141
967
  };
1142
968
  exports.se_GetClusterCredentialsWithIAMCommand = se_GetClusterCredentialsWithIAMCommand;
1143
969
  const se_GetReservedNodeExchangeConfigurationOptionsCommand = async (input, context) => {
1144
- const headers = {
1145
- "content-type": "application/x-www-form-urlencoded",
1146
- };
970
+ const headers = SHARED_HEADERS;
1147
971
  let body;
1148
972
  body = buildFormUrlencodedString({
1149
973
  ...se_GetReservedNodeExchangeConfigurationOptionsInputMessage(input, context),
@@ -1154,9 +978,7 @@ const se_GetReservedNodeExchangeConfigurationOptionsCommand = async (input, cont
1154
978
  };
1155
979
  exports.se_GetReservedNodeExchangeConfigurationOptionsCommand = se_GetReservedNodeExchangeConfigurationOptionsCommand;
1156
980
  const se_GetReservedNodeExchangeOfferingsCommand = async (input, context) => {
1157
- const headers = {
1158
- "content-type": "application/x-www-form-urlencoded",
1159
- };
981
+ const headers = SHARED_HEADERS;
1160
982
  let body;
1161
983
  body = buildFormUrlencodedString({
1162
984
  ...se_GetReservedNodeExchangeOfferingsInputMessage(input, context),
@@ -1167,9 +989,7 @@ const se_GetReservedNodeExchangeOfferingsCommand = async (input, context) => {
1167
989
  };
1168
990
  exports.se_GetReservedNodeExchangeOfferingsCommand = se_GetReservedNodeExchangeOfferingsCommand;
1169
991
  const se_ModifyAquaConfigurationCommand = async (input, context) => {
1170
- const headers = {
1171
- "content-type": "application/x-www-form-urlencoded",
1172
- };
992
+ const headers = SHARED_HEADERS;
1173
993
  let body;
1174
994
  body = buildFormUrlencodedString({
1175
995
  ...se_ModifyAquaInputMessage(input, context),
@@ -1180,9 +1000,7 @@ const se_ModifyAquaConfigurationCommand = async (input, context) => {
1180
1000
  };
1181
1001
  exports.se_ModifyAquaConfigurationCommand = se_ModifyAquaConfigurationCommand;
1182
1002
  const se_ModifyAuthenticationProfileCommand = async (input, context) => {
1183
- const headers = {
1184
- "content-type": "application/x-www-form-urlencoded",
1185
- };
1003
+ const headers = SHARED_HEADERS;
1186
1004
  let body;
1187
1005
  body = buildFormUrlencodedString({
1188
1006
  ...se_ModifyAuthenticationProfileMessage(input, context),
@@ -1193,9 +1011,7 @@ const se_ModifyAuthenticationProfileCommand = async (input, context) => {
1193
1011
  };
1194
1012
  exports.se_ModifyAuthenticationProfileCommand = se_ModifyAuthenticationProfileCommand;
1195
1013
  const se_ModifyClusterCommand = async (input, context) => {
1196
- const headers = {
1197
- "content-type": "application/x-www-form-urlencoded",
1198
- };
1014
+ const headers = SHARED_HEADERS;
1199
1015
  let body;
1200
1016
  body = buildFormUrlencodedString({
1201
1017
  ...se_ModifyClusterMessage(input, context),
@@ -1206,9 +1022,7 @@ const se_ModifyClusterCommand = async (input, context) => {
1206
1022
  };
1207
1023
  exports.se_ModifyClusterCommand = se_ModifyClusterCommand;
1208
1024
  const se_ModifyClusterDbRevisionCommand = async (input, context) => {
1209
- const headers = {
1210
- "content-type": "application/x-www-form-urlencoded",
1211
- };
1025
+ const headers = SHARED_HEADERS;
1212
1026
  let body;
1213
1027
  body = buildFormUrlencodedString({
1214
1028
  ...se_ModifyClusterDbRevisionMessage(input, context),
@@ -1219,9 +1033,7 @@ const se_ModifyClusterDbRevisionCommand = async (input, context) => {
1219
1033
  };
1220
1034
  exports.se_ModifyClusterDbRevisionCommand = se_ModifyClusterDbRevisionCommand;
1221
1035
  const se_ModifyClusterIamRolesCommand = async (input, context) => {
1222
- const headers = {
1223
- "content-type": "application/x-www-form-urlencoded",
1224
- };
1036
+ const headers = SHARED_HEADERS;
1225
1037
  let body;
1226
1038
  body = buildFormUrlencodedString({
1227
1039
  ...se_ModifyClusterIamRolesMessage(input, context),
@@ -1232,9 +1044,7 @@ const se_ModifyClusterIamRolesCommand = async (input, context) => {
1232
1044
  };
1233
1045
  exports.se_ModifyClusterIamRolesCommand = se_ModifyClusterIamRolesCommand;
1234
1046
  const se_ModifyClusterMaintenanceCommand = async (input, context) => {
1235
- const headers = {
1236
- "content-type": "application/x-www-form-urlencoded",
1237
- };
1047
+ const headers = SHARED_HEADERS;
1238
1048
  let body;
1239
1049
  body = buildFormUrlencodedString({
1240
1050
  ...se_ModifyClusterMaintenanceMessage(input, context),
@@ -1245,9 +1055,7 @@ const se_ModifyClusterMaintenanceCommand = async (input, context) => {
1245
1055
  };
1246
1056
  exports.se_ModifyClusterMaintenanceCommand = se_ModifyClusterMaintenanceCommand;
1247
1057
  const se_ModifyClusterParameterGroupCommand = async (input, context) => {
1248
- const headers = {
1249
- "content-type": "application/x-www-form-urlencoded",
1250
- };
1058
+ const headers = SHARED_HEADERS;
1251
1059
  let body;
1252
1060
  body = buildFormUrlencodedString({
1253
1061
  ...se_ModifyClusterParameterGroupMessage(input, context),
@@ -1258,9 +1066,7 @@ const se_ModifyClusterParameterGroupCommand = async (input, context) => {
1258
1066
  };
1259
1067
  exports.se_ModifyClusterParameterGroupCommand = se_ModifyClusterParameterGroupCommand;
1260
1068
  const se_ModifyClusterSnapshotCommand = async (input, context) => {
1261
- const headers = {
1262
- "content-type": "application/x-www-form-urlencoded",
1263
- };
1069
+ const headers = SHARED_HEADERS;
1264
1070
  let body;
1265
1071
  body = buildFormUrlencodedString({
1266
1072
  ...se_ModifyClusterSnapshotMessage(input, context),
@@ -1271,9 +1077,7 @@ const se_ModifyClusterSnapshotCommand = async (input, context) => {
1271
1077
  };
1272
1078
  exports.se_ModifyClusterSnapshotCommand = se_ModifyClusterSnapshotCommand;
1273
1079
  const se_ModifyClusterSnapshotScheduleCommand = async (input, context) => {
1274
- const headers = {
1275
- "content-type": "application/x-www-form-urlencoded",
1276
- };
1080
+ const headers = SHARED_HEADERS;
1277
1081
  let body;
1278
1082
  body = buildFormUrlencodedString({
1279
1083
  ...se_ModifyClusterSnapshotScheduleMessage(input, context),
@@ -1284,9 +1088,7 @@ const se_ModifyClusterSnapshotScheduleCommand = async (input, context) => {
1284
1088
  };
1285
1089
  exports.se_ModifyClusterSnapshotScheduleCommand = se_ModifyClusterSnapshotScheduleCommand;
1286
1090
  const se_ModifyClusterSubnetGroupCommand = async (input, context) => {
1287
- const headers = {
1288
- "content-type": "application/x-www-form-urlencoded",
1289
- };
1091
+ const headers = SHARED_HEADERS;
1290
1092
  let body;
1291
1093
  body = buildFormUrlencodedString({
1292
1094
  ...se_ModifyClusterSubnetGroupMessage(input, context),
@@ -1297,9 +1099,7 @@ const se_ModifyClusterSubnetGroupCommand = async (input, context) => {
1297
1099
  };
1298
1100
  exports.se_ModifyClusterSubnetGroupCommand = se_ModifyClusterSubnetGroupCommand;
1299
1101
  const se_ModifyEndpointAccessCommand = async (input, context) => {
1300
- const headers = {
1301
- "content-type": "application/x-www-form-urlencoded",
1302
- };
1102
+ const headers = SHARED_HEADERS;
1303
1103
  let body;
1304
1104
  body = buildFormUrlencodedString({
1305
1105
  ...se_ModifyEndpointAccessMessage(input, context),
@@ -1310,9 +1110,7 @@ const se_ModifyEndpointAccessCommand = async (input, context) => {
1310
1110
  };
1311
1111
  exports.se_ModifyEndpointAccessCommand = se_ModifyEndpointAccessCommand;
1312
1112
  const se_ModifyEventSubscriptionCommand = async (input, context) => {
1313
- const headers = {
1314
- "content-type": "application/x-www-form-urlencoded",
1315
- };
1113
+ const headers = SHARED_HEADERS;
1316
1114
  let body;
1317
1115
  body = buildFormUrlencodedString({
1318
1116
  ...se_ModifyEventSubscriptionMessage(input, context),
@@ -1323,9 +1121,7 @@ const se_ModifyEventSubscriptionCommand = async (input, context) => {
1323
1121
  };
1324
1122
  exports.se_ModifyEventSubscriptionCommand = se_ModifyEventSubscriptionCommand;
1325
1123
  const se_ModifyScheduledActionCommand = async (input, context) => {
1326
- const headers = {
1327
- "content-type": "application/x-www-form-urlencoded",
1328
- };
1124
+ const headers = SHARED_HEADERS;
1329
1125
  let body;
1330
1126
  body = buildFormUrlencodedString({
1331
1127
  ...se_ModifyScheduledActionMessage(input, context),
@@ -1336,9 +1132,7 @@ const se_ModifyScheduledActionCommand = async (input, context) => {
1336
1132
  };
1337
1133
  exports.se_ModifyScheduledActionCommand = se_ModifyScheduledActionCommand;
1338
1134
  const se_ModifySnapshotCopyRetentionPeriodCommand = async (input, context) => {
1339
- const headers = {
1340
- "content-type": "application/x-www-form-urlencoded",
1341
- };
1135
+ const headers = SHARED_HEADERS;
1342
1136
  let body;
1343
1137
  body = buildFormUrlencodedString({
1344
1138
  ...se_ModifySnapshotCopyRetentionPeriodMessage(input, context),
@@ -1349,9 +1143,7 @@ const se_ModifySnapshotCopyRetentionPeriodCommand = async (input, context) => {
1349
1143
  };
1350
1144
  exports.se_ModifySnapshotCopyRetentionPeriodCommand = se_ModifySnapshotCopyRetentionPeriodCommand;
1351
1145
  const se_ModifySnapshotScheduleCommand = async (input, context) => {
1352
- const headers = {
1353
- "content-type": "application/x-www-form-urlencoded",
1354
- };
1146
+ const headers = SHARED_HEADERS;
1355
1147
  let body;
1356
1148
  body = buildFormUrlencodedString({
1357
1149
  ...se_ModifySnapshotScheduleMessage(input, context),
@@ -1362,9 +1154,7 @@ const se_ModifySnapshotScheduleCommand = async (input, context) => {
1362
1154
  };
1363
1155
  exports.se_ModifySnapshotScheduleCommand = se_ModifySnapshotScheduleCommand;
1364
1156
  const se_ModifyUsageLimitCommand = async (input, context) => {
1365
- const headers = {
1366
- "content-type": "application/x-www-form-urlencoded",
1367
- };
1157
+ const headers = SHARED_HEADERS;
1368
1158
  let body;
1369
1159
  body = buildFormUrlencodedString({
1370
1160
  ...se_ModifyUsageLimitMessage(input, context),
@@ -1375,9 +1165,7 @@ const se_ModifyUsageLimitCommand = async (input, context) => {
1375
1165
  };
1376
1166
  exports.se_ModifyUsageLimitCommand = se_ModifyUsageLimitCommand;
1377
1167
  const se_PauseClusterCommand = async (input, context) => {
1378
- const headers = {
1379
- "content-type": "application/x-www-form-urlencoded",
1380
- };
1168
+ const headers = SHARED_HEADERS;
1381
1169
  let body;
1382
1170
  body = buildFormUrlencodedString({
1383
1171
  ...se_PauseClusterMessage(input, context),
@@ -1388,9 +1176,7 @@ const se_PauseClusterCommand = async (input, context) => {
1388
1176
  };
1389
1177
  exports.se_PauseClusterCommand = se_PauseClusterCommand;
1390
1178
  const se_PurchaseReservedNodeOfferingCommand = async (input, context) => {
1391
- const headers = {
1392
- "content-type": "application/x-www-form-urlencoded",
1393
- };
1179
+ const headers = SHARED_HEADERS;
1394
1180
  let body;
1395
1181
  body = buildFormUrlencodedString({
1396
1182
  ...se_PurchaseReservedNodeOfferingMessage(input, context),
@@ -1401,9 +1187,7 @@ const se_PurchaseReservedNodeOfferingCommand = async (input, context) => {
1401
1187
  };
1402
1188
  exports.se_PurchaseReservedNodeOfferingCommand = se_PurchaseReservedNodeOfferingCommand;
1403
1189
  const se_RebootClusterCommand = async (input, context) => {
1404
- const headers = {
1405
- "content-type": "application/x-www-form-urlencoded",
1406
- };
1190
+ const headers = SHARED_HEADERS;
1407
1191
  let body;
1408
1192
  body = buildFormUrlencodedString({
1409
1193
  ...se_RebootClusterMessage(input, context),
@@ -1414,9 +1198,7 @@ const se_RebootClusterCommand = async (input, context) => {
1414
1198
  };
1415
1199
  exports.se_RebootClusterCommand = se_RebootClusterCommand;
1416
1200
  const se_RejectDataShareCommand = async (input, context) => {
1417
- const headers = {
1418
- "content-type": "application/x-www-form-urlencoded",
1419
- };
1201
+ const headers = SHARED_HEADERS;
1420
1202
  let body;
1421
1203
  body = buildFormUrlencodedString({
1422
1204
  ...se_RejectDataShareMessage(input, context),
@@ -1427,9 +1209,7 @@ const se_RejectDataShareCommand = async (input, context) => {
1427
1209
  };
1428
1210
  exports.se_RejectDataShareCommand = se_RejectDataShareCommand;
1429
1211
  const se_ResetClusterParameterGroupCommand = async (input, context) => {
1430
- const headers = {
1431
- "content-type": "application/x-www-form-urlencoded",
1432
- };
1212
+ const headers = SHARED_HEADERS;
1433
1213
  let body;
1434
1214
  body = buildFormUrlencodedString({
1435
1215
  ...se_ResetClusterParameterGroupMessage(input, context),
@@ -1440,9 +1220,7 @@ const se_ResetClusterParameterGroupCommand = async (input, context) => {
1440
1220
  };
1441
1221
  exports.se_ResetClusterParameterGroupCommand = se_ResetClusterParameterGroupCommand;
1442
1222
  const se_ResizeClusterCommand = async (input, context) => {
1443
- const headers = {
1444
- "content-type": "application/x-www-form-urlencoded",
1445
- };
1223
+ const headers = SHARED_HEADERS;
1446
1224
  let body;
1447
1225
  body = buildFormUrlencodedString({
1448
1226
  ...se_ResizeClusterMessage(input, context),
@@ -1453,9 +1231,7 @@ const se_ResizeClusterCommand = async (input, context) => {
1453
1231
  };
1454
1232
  exports.se_ResizeClusterCommand = se_ResizeClusterCommand;
1455
1233
  const se_RestoreFromClusterSnapshotCommand = async (input, context) => {
1456
- const headers = {
1457
- "content-type": "application/x-www-form-urlencoded",
1458
- };
1234
+ const headers = SHARED_HEADERS;
1459
1235
  let body;
1460
1236
  body = buildFormUrlencodedString({
1461
1237
  ...se_RestoreFromClusterSnapshotMessage(input, context),
@@ -1466,9 +1242,7 @@ const se_RestoreFromClusterSnapshotCommand = async (input, context) => {
1466
1242
  };
1467
1243
  exports.se_RestoreFromClusterSnapshotCommand = se_RestoreFromClusterSnapshotCommand;
1468
1244
  const se_RestoreTableFromClusterSnapshotCommand = async (input, context) => {
1469
- const headers = {
1470
- "content-type": "application/x-www-form-urlencoded",
1471
- };
1245
+ const headers = SHARED_HEADERS;
1472
1246
  let body;
1473
1247
  body = buildFormUrlencodedString({
1474
1248
  ...se_RestoreTableFromClusterSnapshotMessage(input, context),
@@ -1479,9 +1253,7 @@ const se_RestoreTableFromClusterSnapshotCommand = async (input, context) => {
1479
1253
  };
1480
1254
  exports.se_RestoreTableFromClusterSnapshotCommand = se_RestoreTableFromClusterSnapshotCommand;
1481
1255
  const se_ResumeClusterCommand = async (input, context) => {
1482
- const headers = {
1483
- "content-type": "application/x-www-form-urlencoded",
1484
- };
1256
+ const headers = SHARED_HEADERS;
1485
1257
  let body;
1486
1258
  body = buildFormUrlencodedString({
1487
1259
  ...se_ResumeClusterMessage(input, context),
@@ -1492,9 +1264,7 @@ const se_ResumeClusterCommand = async (input, context) => {
1492
1264
  };
1493
1265
  exports.se_ResumeClusterCommand = se_ResumeClusterCommand;
1494
1266
  const se_RevokeClusterSecurityGroupIngressCommand = async (input, context) => {
1495
- const headers = {
1496
- "content-type": "application/x-www-form-urlencoded",
1497
- };
1267
+ const headers = SHARED_HEADERS;
1498
1268
  let body;
1499
1269
  body = buildFormUrlencodedString({
1500
1270
  ...se_RevokeClusterSecurityGroupIngressMessage(input, context),
@@ -1505,9 +1275,7 @@ const se_RevokeClusterSecurityGroupIngressCommand = async (input, context) => {
1505
1275
  };
1506
1276
  exports.se_RevokeClusterSecurityGroupIngressCommand = se_RevokeClusterSecurityGroupIngressCommand;
1507
1277
  const se_RevokeEndpointAccessCommand = async (input, context) => {
1508
- const headers = {
1509
- "content-type": "application/x-www-form-urlencoded",
1510
- };
1278
+ const headers = SHARED_HEADERS;
1511
1279
  let body;
1512
1280
  body = buildFormUrlencodedString({
1513
1281
  ...se_RevokeEndpointAccessMessage(input, context),
@@ -1518,9 +1286,7 @@ const se_RevokeEndpointAccessCommand = async (input, context) => {
1518
1286
  };
1519
1287
  exports.se_RevokeEndpointAccessCommand = se_RevokeEndpointAccessCommand;
1520
1288
  const se_RevokeSnapshotAccessCommand = async (input, context) => {
1521
- const headers = {
1522
- "content-type": "application/x-www-form-urlencoded",
1523
- };
1289
+ const headers = SHARED_HEADERS;
1524
1290
  let body;
1525
1291
  body = buildFormUrlencodedString({
1526
1292
  ...se_RevokeSnapshotAccessMessage(input, context),
@@ -1531,9 +1297,7 @@ const se_RevokeSnapshotAccessCommand = async (input, context) => {
1531
1297
  };
1532
1298
  exports.se_RevokeSnapshotAccessCommand = se_RevokeSnapshotAccessCommand;
1533
1299
  const se_RotateEncryptionKeyCommand = async (input, context) => {
1534
- const headers = {
1535
- "content-type": "application/x-www-form-urlencoded",
1536
- };
1300
+ const headers = SHARED_HEADERS;
1537
1301
  let body;
1538
1302
  body = buildFormUrlencodedString({
1539
1303
  ...se_RotateEncryptionKeyMessage(input, context),
@@ -1544,9 +1308,7 @@ const se_RotateEncryptionKeyCommand = async (input, context) => {
1544
1308
  };
1545
1309
  exports.se_RotateEncryptionKeyCommand = se_RotateEncryptionKeyCommand;
1546
1310
  const se_UpdatePartnerStatusCommand = async (input, context) => {
1547
- const headers = {
1548
- "content-type": "application/x-www-form-urlencoded",
1549
- };
1311
+ const headers = SHARED_HEADERS;
1550
1312
  let body;
1551
1313
  body = buildFormUrlencodedString({
1552
1314
  ...se_UpdatePartnerStatusInputMessage(input, context),
@@ -1567,7 +1329,7 @@ const de_AcceptReservedNodeExchangeCommand = async (output, context) => {
1567
1329
  $metadata: deserializeMetadata(output),
1568
1330
  ...contents,
1569
1331
  };
1570
- return Promise.resolve(response);
1332
+ return response;
1571
1333
  };
1572
1334
  exports.de_AcceptReservedNodeExchangeCommand = de_AcceptReservedNodeExchangeCommand;
1573
1335
  const de_AcceptReservedNodeExchangeCommandError = async (output, context) => {
@@ -1600,10 +1362,9 @@ const de_AcceptReservedNodeExchangeCommandError = async (output, context) => {
1600
1362
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
1601
1363
  default:
1602
1364
  const parsedBody = parsedOutput.body;
1603
- (0, smithy_client_1.throwDefaultError)({
1365
+ return throwDefaultError({
1604
1366
  output,
1605
1367
  parsedBody: parsedBody.Error,
1606
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
1607
1368
  errorCode,
1608
1369
  });
1609
1370
  }
@@ -1619,7 +1380,7 @@ const de_AddPartnerCommand = async (output, context) => {
1619
1380
  $metadata: deserializeMetadata(output),
1620
1381
  ...contents,
1621
1382
  };
1622
- return Promise.resolve(response);
1383
+ return response;
1623
1384
  };
1624
1385
  exports.de_AddPartnerCommand = de_AddPartnerCommand;
1625
1386
  const de_AddPartnerCommandError = async (output, context) => {
@@ -1640,10 +1401,9 @@ const de_AddPartnerCommandError = async (output, context) => {
1640
1401
  throw await de_UnauthorizedPartnerIntegrationFaultRes(parsedOutput, context);
1641
1402
  default:
1642
1403
  const parsedBody = parsedOutput.body;
1643
- (0, smithy_client_1.throwDefaultError)({
1404
+ return throwDefaultError({
1644
1405
  output,
1645
1406
  parsedBody: parsedBody.Error,
1646
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
1647
1407
  errorCode,
1648
1408
  });
1649
1409
  }
@@ -1659,7 +1419,7 @@ const de_AssociateDataShareConsumerCommand = async (output, context) => {
1659
1419
  $metadata: deserializeMetadata(output),
1660
1420
  ...contents,
1661
1421
  };
1662
- return Promise.resolve(response);
1422
+ return response;
1663
1423
  };
1664
1424
  exports.de_AssociateDataShareConsumerCommand = de_AssociateDataShareConsumerCommand;
1665
1425
  const de_AssociateDataShareConsumerCommandError = async (output, context) => {
@@ -1677,10 +1437,9 @@ const de_AssociateDataShareConsumerCommandError = async (output, context) => {
1677
1437
  throw await de_InvalidNamespaceFaultRes(parsedOutput, context);
1678
1438
  default:
1679
1439
  const parsedBody = parsedOutput.body;
1680
- (0, smithy_client_1.throwDefaultError)({
1440
+ return throwDefaultError({
1681
1441
  output,
1682
1442
  parsedBody: parsedBody.Error,
1683
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
1684
1443
  errorCode,
1685
1444
  });
1686
1445
  }
@@ -1696,7 +1455,7 @@ const de_AuthorizeClusterSecurityGroupIngressCommand = async (output, context) =
1696
1455
  $metadata: deserializeMetadata(output),
1697
1456
  ...contents,
1698
1457
  };
1699
- return Promise.resolve(response);
1458
+ return response;
1700
1459
  };
1701
1460
  exports.de_AuthorizeClusterSecurityGroupIngressCommand = de_AuthorizeClusterSecurityGroupIngressCommand;
1702
1461
  const de_AuthorizeClusterSecurityGroupIngressCommandError = async (output, context) => {
@@ -1720,10 +1479,9 @@ const de_AuthorizeClusterSecurityGroupIngressCommandError = async (output, conte
1720
1479
  throw await de_InvalidClusterSecurityGroupStateFaultRes(parsedOutput, context);
1721
1480
  default:
1722
1481
  const parsedBody = parsedOutput.body;
1723
- (0, smithy_client_1.throwDefaultError)({
1482
+ return throwDefaultError({
1724
1483
  output,
1725
1484
  parsedBody: parsedBody.Error,
1726
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
1727
1485
  errorCode,
1728
1486
  });
1729
1487
  }
@@ -1739,7 +1497,7 @@ const de_AuthorizeDataShareCommand = async (output, context) => {
1739
1497
  $metadata: deserializeMetadata(output),
1740
1498
  ...contents,
1741
1499
  };
1742
- return Promise.resolve(response);
1500
+ return response;
1743
1501
  };
1744
1502
  exports.de_AuthorizeDataShareCommand = de_AuthorizeDataShareCommand;
1745
1503
  const de_AuthorizeDataShareCommandError = async (output, context) => {
@@ -1754,10 +1512,9 @@ const de_AuthorizeDataShareCommandError = async (output, context) => {
1754
1512
  throw await de_InvalidDataShareFaultRes(parsedOutput, context);
1755
1513
  default:
1756
1514
  const parsedBody = parsedOutput.body;
1757
- (0, smithy_client_1.throwDefaultError)({
1515
+ return throwDefaultError({
1758
1516
  output,
1759
1517
  parsedBody: parsedBody.Error,
1760
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
1761
1518
  errorCode,
1762
1519
  });
1763
1520
  }
@@ -1773,7 +1530,7 @@ const de_AuthorizeEndpointAccessCommand = async (output, context) => {
1773
1530
  $metadata: deserializeMetadata(output),
1774
1531
  ...contents,
1775
1532
  };
1776
- return Promise.resolve(response);
1533
+ return response;
1777
1534
  };
1778
1535
  exports.de_AuthorizeEndpointAccessCommand = de_AuthorizeEndpointAccessCommand;
1779
1536
  const de_AuthorizeEndpointAccessCommandError = async (output, context) => {
@@ -1803,10 +1560,9 @@ const de_AuthorizeEndpointAccessCommandError = async (output, context) => {
1803
1560
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
1804
1561
  default:
1805
1562
  const parsedBody = parsedOutput.body;
1806
- (0, smithy_client_1.throwDefaultError)({
1563
+ return throwDefaultError({
1807
1564
  output,
1808
1565
  parsedBody: parsedBody.Error,
1809
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
1810
1566
  errorCode,
1811
1567
  });
1812
1568
  }
@@ -1822,7 +1578,7 @@ const de_AuthorizeSnapshotAccessCommand = async (output, context) => {
1822
1578
  $metadata: deserializeMetadata(output),
1823
1579
  ...contents,
1824
1580
  };
1825
- return Promise.resolve(response);
1581
+ return response;
1826
1582
  };
1827
1583
  exports.de_AuthorizeSnapshotAccessCommand = de_AuthorizeSnapshotAccessCommand;
1828
1584
  const de_AuthorizeSnapshotAccessCommandError = async (output, context) => {
@@ -1855,10 +1611,9 @@ const de_AuthorizeSnapshotAccessCommandError = async (output, context) => {
1855
1611
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
1856
1612
  default:
1857
1613
  const parsedBody = parsedOutput.body;
1858
- (0, smithy_client_1.throwDefaultError)({
1614
+ return throwDefaultError({
1859
1615
  output,
1860
1616
  parsedBody: parsedBody.Error,
1861
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
1862
1617
  errorCode,
1863
1618
  });
1864
1619
  }
@@ -1874,7 +1629,7 @@ const de_BatchDeleteClusterSnapshotsCommand = async (output, context) => {
1874
1629
  $metadata: deserializeMetadata(output),
1875
1630
  ...contents,
1876
1631
  };
1877
- return Promise.resolve(response);
1632
+ return response;
1878
1633
  };
1879
1634
  exports.de_BatchDeleteClusterSnapshotsCommand = de_BatchDeleteClusterSnapshotsCommand;
1880
1635
  const de_BatchDeleteClusterSnapshotsCommandError = async (output, context) => {
@@ -1889,10 +1644,9 @@ const de_BatchDeleteClusterSnapshotsCommandError = async (output, context) => {
1889
1644
  throw await de_BatchDeleteRequestSizeExceededFaultRes(parsedOutput, context);
1890
1645
  default:
1891
1646
  const parsedBody = parsedOutput.body;
1892
- (0, smithy_client_1.throwDefaultError)({
1647
+ return throwDefaultError({
1893
1648
  output,
1894
1649
  parsedBody: parsedBody.Error,
1895
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
1896
1650
  errorCode,
1897
1651
  });
1898
1652
  }
@@ -1908,7 +1662,7 @@ const de_BatchModifyClusterSnapshotsCommand = async (output, context) => {
1908
1662
  $metadata: deserializeMetadata(output),
1909
1663
  ...contents,
1910
1664
  };
1911
- return Promise.resolve(response);
1665
+ return response;
1912
1666
  };
1913
1667
  exports.de_BatchModifyClusterSnapshotsCommand = de_BatchModifyClusterSnapshotsCommand;
1914
1668
  const de_BatchModifyClusterSnapshotsCommandError = async (output, context) => {
@@ -1926,10 +1680,9 @@ const de_BatchModifyClusterSnapshotsCommandError = async (output, context) => {
1926
1680
  throw await de_InvalidRetentionPeriodFaultRes(parsedOutput, context);
1927
1681
  default:
1928
1682
  const parsedBody = parsedOutput.body;
1929
- (0, smithy_client_1.throwDefaultError)({
1683
+ return throwDefaultError({
1930
1684
  output,
1931
1685
  parsedBody: parsedBody.Error,
1932
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
1933
1686
  errorCode,
1934
1687
  });
1935
1688
  }
@@ -1945,7 +1698,7 @@ const de_CancelResizeCommand = async (output, context) => {
1945
1698
  $metadata: deserializeMetadata(output),
1946
1699
  ...contents,
1947
1700
  };
1948
- return Promise.resolve(response);
1701
+ return response;
1949
1702
  };
1950
1703
  exports.de_CancelResizeCommand = de_CancelResizeCommand;
1951
1704
  const de_CancelResizeCommandError = async (output, context) => {
@@ -1969,10 +1722,9 @@ const de_CancelResizeCommandError = async (output, context) => {
1969
1722
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
1970
1723
  default:
1971
1724
  const parsedBody = parsedOutput.body;
1972
- (0, smithy_client_1.throwDefaultError)({
1725
+ return throwDefaultError({
1973
1726
  output,
1974
1727
  parsedBody: parsedBody.Error,
1975
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
1976
1728
  errorCode,
1977
1729
  });
1978
1730
  }
@@ -1988,7 +1740,7 @@ const de_CopyClusterSnapshotCommand = async (output, context) => {
1988
1740
  $metadata: deserializeMetadata(output),
1989
1741
  ...contents,
1990
1742
  };
1991
- return Promise.resolve(response);
1743
+ return response;
1992
1744
  };
1993
1745
  exports.de_CopyClusterSnapshotCommand = de_CopyClusterSnapshotCommand;
1994
1746
  const de_CopyClusterSnapshotCommandError = async (output, context) => {
@@ -2015,10 +1767,9 @@ const de_CopyClusterSnapshotCommandError = async (output, context) => {
2015
1767
  throw await de_InvalidRetentionPeriodFaultRes(parsedOutput, context);
2016
1768
  default:
2017
1769
  const parsedBody = parsedOutput.body;
2018
- (0, smithy_client_1.throwDefaultError)({
1770
+ return throwDefaultError({
2019
1771
  output,
2020
1772
  parsedBody: parsedBody.Error,
2021
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
2022
1773
  errorCode,
2023
1774
  });
2024
1775
  }
@@ -2034,7 +1785,7 @@ const de_CreateAuthenticationProfileCommand = async (output, context) => {
2034
1785
  $metadata: deserializeMetadata(output),
2035
1786
  ...contents,
2036
1787
  };
2037
- return Promise.resolve(response);
1788
+ return response;
2038
1789
  };
2039
1790
  exports.de_CreateAuthenticationProfileCommand = de_CreateAuthenticationProfileCommand;
2040
1791
  const de_CreateAuthenticationProfileCommandError = async (output, context) => {
@@ -2055,10 +1806,9 @@ const de_CreateAuthenticationProfileCommandError = async (output, context) => {
2055
1806
  throw await de_InvalidAuthenticationProfileRequestFaultRes(parsedOutput, context);
2056
1807
  default:
2057
1808
  const parsedBody = parsedOutput.body;
2058
- (0, smithy_client_1.throwDefaultError)({
1809
+ return throwDefaultError({
2059
1810
  output,
2060
1811
  parsedBody: parsedBody.Error,
2061
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
2062
1812
  errorCode,
2063
1813
  });
2064
1814
  }
@@ -2074,7 +1824,7 @@ const de_CreateClusterCommand = async (output, context) => {
2074
1824
  $metadata: deserializeMetadata(output),
2075
1825
  ...contents,
2076
1826
  };
2077
- return Promise.resolve(response);
1827
+ return response;
2078
1828
  };
2079
1829
  exports.de_CreateClusterCommand = de_CreateClusterCommand;
2080
1830
  const de_CreateClusterCommandError = async (output, context) => {
@@ -2152,10 +1902,9 @@ const de_CreateClusterCommandError = async (output, context) => {
2152
1902
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
2153
1903
  default:
2154
1904
  const parsedBody = parsedOutput.body;
2155
- (0, smithy_client_1.throwDefaultError)({
1905
+ return throwDefaultError({
2156
1906
  output,
2157
1907
  parsedBody: parsedBody.Error,
2158
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
2159
1908
  errorCode,
2160
1909
  });
2161
1910
  }
@@ -2171,7 +1920,7 @@ const de_CreateClusterParameterGroupCommand = async (output, context) => {
2171
1920
  $metadata: deserializeMetadata(output),
2172
1921
  ...contents,
2173
1922
  };
2174
- return Promise.resolve(response);
1923
+ return response;
2175
1924
  };
2176
1925
  exports.de_CreateClusterParameterGroupCommand = de_CreateClusterParameterGroupCommand;
2177
1926
  const de_CreateClusterParameterGroupCommandError = async (output, context) => {
@@ -2195,10 +1944,9 @@ const de_CreateClusterParameterGroupCommandError = async (output, context) => {
2195
1944
  throw await de_TagLimitExceededFaultRes(parsedOutput, context);
2196
1945
  default:
2197
1946
  const parsedBody = parsedOutput.body;
2198
- (0, smithy_client_1.throwDefaultError)({
1947
+ return throwDefaultError({
2199
1948
  output,
2200
1949
  parsedBody: parsedBody.Error,
2201
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
2202
1950
  errorCode,
2203
1951
  });
2204
1952
  }
@@ -2214,7 +1962,7 @@ const de_CreateClusterSecurityGroupCommand = async (output, context) => {
2214
1962
  $metadata: deserializeMetadata(output),
2215
1963
  ...contents,
2216
1964
  };
2217
- return Promise.resolve(response);
1965
+ return response;
2218
1966
  };
2219
1967
  exports.de_CreateClusterSecurityGroupCommand = de_CreateClusterSecurityGroupCommand;
2220
1968
  const de_CreateClusterSecurityGroupCommandError = async (output, context) => {
@@ -2238,10 +1986,9 @@ const de_CreateClusterSecurityGroupCommandError = async (output, context) => {
2238
1986
  throw await de_TagLimitExceededFaultRes(parsedOutput, context);
2239
1987
  default:
2240
1988
  const parsedBody = parsedOutput.body;
2241
- (0, smithy_client_1.throwDefaultError)({
1989
+ return throwDefaultError({
2242
1990
  output,
2243
1991
  parsedBody: parsedBody.Error,
2244
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
2245
1992
  errorCode,
2246
1993
  });
2247
1994
  }
@@ -2257,7 +2004,7 @@ const de_CreateClusterSnapshotCommand = async (output, context) => {
2257
2004
  $metadata: deserializeMetadata(output),
2258
2005
  ...contents,
2259
2006
  };
2260
- return Promise.resolve(response);
2007
+ return response;
2261
2008
  };
2262
2009
  exports.de_CreateClusterSnapshotCommand = de_CreateClusterSnapshotCommand;
2263
2010
  const de_CreateClusterSnapshotCommandError = async (output, context) => {
@@ -2290,10 +2037,9 @@ const de_CreateClusterSnapshotCommandError = async (output, context) => {
2290
2037
  throw await de_TagLimitExceededFaultRes(parsedOutput, context);
2291
2038
  default:
2292
2039
  const parsedBody = parsedOutput.body;
2293
- (0, smithy_client_1.throwDefaultError)({
2040
+ return throwDefaultError({
2294
2041
  output,
2295
2042
  parsedBody: parsedBody.Error,
2296
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
2297
2043
  errorCode,
2298
2044
  });
2299
2045
  }
@@ -2309,7 +2055,7 @@ const de_CreateClusterSubnetGroupCommand = async (output, context) => {
2309
2055
  $metadata: deserializeMetadata(output),
2310
2056
  ...contents,
2311
2057
  };
2312
- return Promise.resolve(response);
2058
+ return response;
2313
2059
  };
2314
2060
  exports.de_CreateClusterSubnetGroupCommand = de_CreateClusterSubnetGroupCommand;
2315
2061
  const de_CreateClusterSubnetGroupCommandError = async (output, context) => {
@@ -2345,10 +2091,9 @@ const de_CreateClusterSubnetGroupCommandError = async (output, context) => {
2345
2091
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
2346
2092
  default:
2347
2093
  const parsedBody = parsedOutput.body;
2348
- (0, smithy_client_1.throwDefaultError)({
2094
+ return throwDefaultError({
2349
2095
  output,
2350
2096
  parsedBody: parsedBody.Error,
2351
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
2352
2097
  errorCode,
2353
2098
  });
2354
2099
  }
@@ -2364,7 +2109,7 @@ const de_CreateEndpointAccessCommand = async (output, context) => {
2364
2109
  $metadata: deserializeMetadata(output),
2365
2110
  ...contents,
2366
2111
  };
2367
- return Promise.resolve(response);
2112
+ return response;
2368
2113
  };
2369
2114
  exports.de_CreateEndpointAccessCommand = de_CreateEndpointAccessCommand;
2370
2115
  const de_CreateEndpointAccessCommandError = async (output, context) => {
@@ -2406,10 +2151,9 @@ const de_CreateEndpointAccessCommandError = async (output, context) => {
2406
2151
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
2407
2152
  default:
2408
2153
  const parsedBody = parsedOutput.body;
2409
- (0, smithy_client_1.throwDefaultError)({
2154
+ return throwDefaultError({
2410
2155
  output,
2411
2156
  parsedBody: parsedBody.Error,
2412
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
2413
2157
  errorCode,
2414
2158
  });
2415
2159
  }
@@ -2425,7 +2169,7 @@ const de_CreateEventSubscriptionCommand = async (output, context) => {
2425
2169
  $metadata: deserializeMetadata(output),
2426
2170
  ...contents,
2427
2171
  };
2428
- return Promise.resolve(response);
2172
+ return response;
2429
2173
  };
2430
2174
  exports.de_CreateEventSubscriptionCommand = de_CreateEventSubscriptionCommand;
2431
2175
  const de_CreateEventSubscriptionCommandError = async (output, context) => {
@@ -2470,10 +2214,9 @@ const de_CreateEventSubscriptionCommandError = async (output, context) => {
2470
2214
  throw await de_TagLimitExceededFaultRes(parsedOutput, context);
2471
2215
  default:
2472
2216
  const parsedBody = parsedOutput.body;
2473
- (0, smithy_client_1.throwDefaultError)({
2217
+ return throwDefaultError({
2474
2218
  output,
2475
2219
  parsedBody: parsedBody.Error,
2476
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
2477
2220
  errorCode,
2478
2221
  });
2479
2222
  }
@@ -2489,7 +2232,7 @@ const de_CreateHsmClientCertificateCommand = async (output, context) => {
2489
2232
  $metadata: deserializeMetadata(output),
2490
2233
  ...contents,
2491
2234
  };
2492
- return Promise.resolve(response);
2235
+ return response;
2493
2236
  };
2494
2237
  exports.de_CreateHsmClientCertificateCommand = de_CreateHsmClientCertificateCommand;
2495
2238
  const de_CreateHsmClientCertificateCommandError = async (output, context) => {
@@ -2513,10 +2256,9 @@ const de_CreateHsmClientCertificateCommandError = async (output, context) => {
2513
2256
  throw await de_TagLimitExceededFaultRes(parsedOutput, context);
2514
2257
  default:
2515
2258
  const parsedBody = parsedOutput.body;
2516
- (0, smithy_client_1.throwDefaultError)({
2259
+ return throwDefaultError({
2517
2260
  output,
2518
2261
  parsedBody: parsedBody.Error,
2519
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
2520
2262
  errorCode,
2521
2263
  });
2522
2264
  }
@@ -2532,7 +2274,7 @@ const de_CreateHsmConfigurationCommand = async (output, context) => {
2532
2274
  $metadata: deserializeMetadata(output),
2533
2275
  ...contents,
2534
2276
  };
2535
- return Promise.resolve(response);
2277
+ return response;
2536
2278
  };
2537
2279
  exports.de_CreateHsmConfigurationCommand = de_CreateHsmConfigurationCommand;
2538
2280
  const de_CreateHsmConfigurationCommandError = async (output, context) => {
@@ -2556,10 +2298,9 @@ const de_CreateHsmConfigurationCommandError = async (output, context) => {
2556
2298
  throw await de_TagLimitExceededFaultRes(parsedOutput, context);
2557
2299
  default:
2558
2300
  const parsedBody = parsedOutput.body;
2559
- (0, smithy_client_1.throwDefaultError)({
2301
+ return throwDefaultError({
2560
2302
  output,
2561
2303
  parsedBody: parsedBody.Error,
2562
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
2563
2304
  errorCode,
2564
2305
  });
2565
2306
  }
@@ -2575,7 +2316,7 @@ const de_CreateScheduledActionCommand = async (output, context) => {
2575
2316
  $metadata: deserializeMetadata(output),
2576
2317
  ...contents,
2577
2318
  };
2578
- return Promise.resolve(response);
2319
+ return response;
2579
2320
  };
2580
2321
  exports.de_CreateScheduledActionCommand = de_CreateScheduledActionCommand;
2581
2322
  const de_CreateScheduledActionCommandError = async (output, context) => {
@@ -2605,10 +2346,9 @@ const de_CreateScheduledActionCommandError = async (output, context) => {
2605
2346
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
2606
2347
  default:
2607
2348
  const parsedBody = parsedOutput.body;
2608
- (0, smithy_client_1.throwDefaultError)({
2349
+ return throwDefaultError({
2609
2350
  output,
2610
2351
  parsedBody: parsedBody.Error,
2611
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
2612
2352
  errorCode,
2613
2353
  });
2614
2354
  }
@@ -2624,7 +2364,7 @@ const de_CreateSnapshotCopyGrantCommand = async (output, context) => {
2624
2364
  $metadata: deserializeMetadata(output),
2625
2365
  ...contents,
2626
2366
  };
2627
- return Promise.resolve(response);
2367
+ return response;
2628
2368
  };
2629
2369
  exports.de_CreateSnapshotCopyGrantCommand = de_CreateSnapshotCopyGrantCommand;
2630
2370
  const de_CreateSnapshotCopyGrantCommandError = async (output, context) => {
@@ -2654,10 +2394,9 @@ const de_CreateSnapshotCopyGrantCommandError = async (output, context) => {
2654
2394
  throw await de_TagLimitExceededFaultRes(parsedOutput, context);
2655
2395
  default:
2656
2396
  const parsedBody = parsedOutput.body;
2657
- (0, smithy_client_1.throwDefaultError)({
2397
+ return throwDefaultError({
2658
2398
  output,
2659
2399
  parsedBody: parsedBody.Error,
2660
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
2661
2400
  errorCode,
2662
2401
  });
2663
2402
  }
@@ -2673,7 +2412,7 @@ const de_CreateSnapshotScheduleCommand = async (output, context) => {
2673
2412
  $metadata: deserializeMetadata(output),
2674
2413
  ...contents,
2675
2414
  };
2676
- return Promise.resolve(response);
2415
+ return response;
2677
2416
  };
2678
2417
  exports.de_CreateSnapshotScheduleCommand = de_CreateSnapshotScheduleCommand;
2679
2418
  const de_CreateSnapshotScheduleCommandError = async (output, context) => {
@@ -2703,10 +2442,9 @@ const de_CreateSnapshotScheduleCommandError = async (output, context) => {
2703
2442
  throw await de_TagLimitExceededFaultRes(parsedOutput, context);
2704
2443
  default:
2705
2444
  const parsedBody = parsedOutput.body;
2706
- (0, smithy_client_1.throwDefaultError)({
2445
+ return throwDefaultError({
2707
2446
  output,
2708
2447
  parsedBody: parsedBody.Error,
2709
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
2710
2448
  errorCode,
2711
2449
  });
2712
2450
  }
@@ -2719,7 +2457,7 @@ const de_CreateTagsCommand = async (output, context) => {
2719
2457
  const response = {
2720
2458
  $metadata: deserializeMetadata(output),
2721
2459
  };
2722
- return Promise.resolve(response);
2460
+ return response;
2723
2461
  };
2724
2462
  exports.de_CreateTagsCommand = de_CreateTagsCommand;
2725
2463
  const de_CreateTagsCommandError = async (output, context) => {
@@ -2743,10 +2481,9 @@ const de_CreateTagsCommandError = async (output, context) => {
2743
2481
  throw await de_TagLimitExceededFaultRes(parsedOutput, context);
2744
2482
  default:
2745
2483
  const parsedBody = parsedOutput.body;
2746
- (0, smithy_client_1.throwDefaultError)({
2484
+ return throwDefaultError({
2747
2485
  output,
2748
2486
  parsedBody: parsedBody.Error,
2749
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
2750
2487
  errorCode,
2751
2488
  });
2752
2489
  }
@@ -2762,7 +2499,7 @@ const de_CreateUsageLimitCommand = async (output, context) => {
2762
2499
  $metadata: deserializeMetadata(output),
2763
2500
  ...contents,
2764
2501
  };
2765
- return Promise.resolve(response);
2502
+ return response;
2766
2503
  };
2767
2504
  exports.de_CreateUsageLimitCommand = de_CreateUsageLimitCommand;
2768
2505
  const de_CreateUsageLimitCommandError = async (output, context) => {
@@ -2795,10 +2532,9 @@ const de_CreateUsageLimitCommandError = async (output, context) => {
2795
2532
  throw await de_UsageLimitAlreadyExistsFaultRes(parsedOutput, context);
2796
2533
  default:
2797
2534
  const parsedBody = parsedOutput.body;
2798
- (0, smithy_client_1.throwDefaultError)({
2535
+ return throwDefaultError({
2799
2536
  output,
2800
2537
  parsedBody: parsedBody.Error,
2801
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
2802
2538
  errorCode,
2803
2539
  });
2804
2540
  }
@@ -2814,7 +2550,7 @@ const de_DeauthorizeDataShareCommand = async (output, context) => {
2814
2550
  $metadata: deserializeMetadata(output),
2815
2551
  ...contents,
2816
2552
  };
2817
- return Promise.resolve(response);
2553
+ return response;
2818
2554
  };
2819
2555
  exports.de_DeauthorizeDataShareCommand = de_DeauthorizeDataShareCommand;
2820
2556
  const de_DeauthorizeDataShareCommandError = async (output, context) => {
@@ -2829,10 +2565,9 @@ const de_DeauthorizeDataShareCommandError = async (output, context) => {
2829
2565
  throw await de_InvalidDataShareFaultRes(parsedOutput, context);
2830
2566
  default:
2831
2567
  const parsedBody = parsedOutput.body;
2832
- (0, smithy_client_1.throwDefaultError)({
2568
+ return throwDefaultError({
2833
2569
  output,
2834
2570
  parsedBody: parsedBody.Error,
2835
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
2836
2571
  errorCode,
2837
2572
  });
2838
2573
  }
@@ -2848,7 +2583,7 @@ const de_DeleteAuthenticationProfileCommand = async (output, context) => {
2848
2583
  $metadata: deserializeMetadata(output),
2849
2584
  ...contents,
2850
2585
  };
2851
- return Promise.resolve(response);
2586
+ return response;
2852
2587
  };
2853
2588
  exports.de_DeleteAuthenticationProfileCommand = de_DeleteAuthenticationProfileCommand;
2854
2589
  const de_DeleteAuthenticationProfileCommandError = async (output, context) => {
@@ -2866,10 +2601,9 @@ const de_DeleteAuthenticationProfileCommandError = async (output, context) => {
2866
2601
  throw await de_InvalidAuthenticationProfileRequestFaultRes(parsedOutput, context);
2867
2602
  default:
2868
2603
  const parsedBody = parsedOutput.body;
2869
- (0, smithy_client_1.throwDefaultError)({
2604
+ return throwDefaultError({
2870
2605
  output,
2871
2606
  parsedBody: parsedBody.Error,
2872
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
2873
2607
  errorCode,
2874
2608
  });
2875
2609
  }
@@ -2885,7 +2619,7 @@ const de_DeleteClusterCommand = async (output, context) => {
2885
2619
  $metadata: deserializeMetadata(output),
2886
2620
  ...contents,
2887
2621
  };
2888
- return Promise.resolve(response);
2622
+ return response;
2889
2623
  };
2890
2624
  exports.de_DeleteClusterCommand = de_DeleteClusterCommand;
2891
2625
  const de_DeleteClusterCommandError = async (output, context) => {
@@ -2912,10 +2646,9 @@ const de_DeleteClusterCommandError = async (output, context) => {
2912
2646
  throw await de_InvalidRetentionPeriodFaultRes(parsedOutput, context);
2913
2647
  default:
2914
2648
  const parsedBody = parsedOutput.body;
2915
- (0, smithy_client_1.throwDefaultError)({
2649
+ return throwDefaultError({
2916
2650
  output,
2917
2651
  parsedBody: parsedBody.Error,
2918
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
2919
2652
  errorCode,
2920
2653
  });
2921
2654
  }
@@ -2928,7 +2661,7 @@ const de_DeleteClusterParameterGroupCommand = async (output, context) => {
2928
2661
  const response = {
2929
2662
  $metadata: deserializeMetadata(output),
2930
2663
  };
2931
- return Promise.resolve(response);
2664
+ return response;
2932
2665
  };
2933
2666
  exports.de_DeleteClusterParameterGroupCommand = de_DeleteClusterParameterGroupCommand;
2934
2667
  const de_DeleteClusterParameterGroupCommandError = async (output, context) => {
@@ -2946,10 +2679,9 @@ const de_DeleteClusterParameterGroupCommandError = async (output, context) => {
2946
2679
  throw await de_InvalidClusterParameterGroupStateFaultRes(parsedOutput, context);
2947
2680
  default:
2948
2681
  const parsedBody = parsedOutput.body;
2949
- (0, smithy_client_1.throwDefaultError)({
2682
+ return throwDefaultError({
2950
2683
  output,
2951
2684
  parsedBody: parsedBody.Error,
2952
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
2953
2685
  errorCode,
2954
2686
  });
2955
2687
  }
@@ -2962,7 +2694,7 @@ const de_DeleteClusterSecurityGroupCommand = async (output, context) => {
2962
2694
  const response = {
2963
2695
  $metadata: deserializeMetadata(output),
2964
2696
  };
2965
- return Promise.resolve(response);
2697
+ return response;
2966
2698
  };
2967
2699
  exports.de_DeleteClusterSecurityGroupCommand = de_DeleteClusterSecurityGroupCommand;
2968
2700
  const de_DeleteClusterSecurityGroupCommandError = async (output, context) => {
@@ -2980,10 +2712,9 @@ const de_DeleteClusterSecurityGroupCommandError = async (output, context) => {
2980
2712
  throw await de_InvalidClusterSecurityGroupStateFaultRes(parsedOutput, context);
2981
2713
  default:
2982
2714
  const parsedBody = parsedOutput.body;
2983
- (0, smithy_client_1.throwDefaultError)({
2715
+ return throwDefaultError({
2984
2716
  output,
2985
2717
  parsedBody: parsedBody.Error,
2986
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
2987
2718
  errorCode,
2988
2719
  });
2989
2720
  }
@@ -2999,7 +2730,7 @@ const de_DeleteClusterSnapshotCommand = async (output, context) => {
2999
2730
  $metadata: deserializeMetadata(output),
3000
2731
  ...contents,
3001
2732
  };
3002
- return Promise.resolve(response);
2733
+ return response;
3003
2734
  };
3004
2735
  exports.de_DeleteClusterSnapshotCommand = de_DeleteClusterSnapshotCommand;
3005
2736
  const de_DeleteClusterSnapshotCommandError = async (output, context) => {
@@ -3017,10 +2748,9 @@ const de_DeleteClusterSnapshotCommandError = async (output, context) => {
3017
2748
  throw await de_InvalidClusterSnapshotStateFaultRes(parsedOutput, context);
3018
2749
  default:
3019
2750
  const parsedBody = parsedOutput.body;
3020
- (0, smithy_client_1.throwDefaultError)({
2751
+ return throwDefaultError({
3021
2752
  output,
3022
2753
  parsedBody: parsedBody.Error,
3023
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
3024
2754
  errorCode,
3025
2755
  });
3026
2756
  }
@@ -3033,7 +2763,7 @@ const de_DeleteClusterSubnetGroupCommand = async (output, context) => {
3033
2763
  const response = {
3034
2764
  $metadata: deserializeMetadata(output),
3035
2765
  };
3036
- return Promise.resolve(response);
2766
+ return response;
3037
2767
  };
3038
2768
  exports.de_DeleteClusterSubnetGroupCommand = de_DeleteClusterSubnetGroupCommand;
3039
2769
  const de_DeleteClusterSubnetGroupCommandError = async (output, context) => {
@@ -3054,10 +2784,9 @@ const de_DeleteClusterSubnetGroupCommandError = async (output, context) => {
3054
2784
  throw await de_InvalidClusterSubnetStateFaultRes(parsedOutput, context);
3055
2785
  default:
3056
2786
  const parsedBody = parsedOutput.body;
3057
- (0, smithy_client_1.throwDefaultError)({
2787
+ return throwDefaultError({
3058
2788
  output,
3059
2789
  parsedBody: parsedBody.Error,
3060
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
3061
2790
  errorCode,
3062
2791
  });
3063
2792
  }
@@ -3073,7 +2802,7 @@ const de_DeleteEndpointAccessCommand = async (output, context) => {
3073
2802
  $metadata: deserializeMetadata(output),
3074
2803
  ...contents,
3075
2804
  };
3076
- return Promise.resolve(response);
2805
+ return response;
3077
2806
  };
3078
2807
  exports.de_DeleteEndpointAccessCommand = de_DeleteEndpointAccessCommand;
3079
2808
  const de_DeleteEndpointAccessCommandError = async (output, context) => {
@@ -3100,10 +2829,9 @@ const de_DeleteEndpointAccessCommandError = async (output, context) => {
3100
2829
  throw await de_InvalidEndpointStateFaultRes(parsedOutput, context);
3101
2830
  default:
3102
2831
  const parsedBody = parsedOutput.body;
3103
- (0, smithy_client_1.throwDefaultError)({
2832
+ return throwDefaultError({
3104
2833
  output,
3105
2834
  parsedBody: parsedBody.Error,
3106
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
3107
2835
  errorCode,
3108
2836
  });
3109
2837
  }
@@ -3116,7 +2844,7 @@ const de_DeleteEventSubscriptionCommand = async (output, context) => {
3116
2844
  const response = {
3117
2845
  $metadata: deserializeMetadata(output),
3118
2846
  };
3119
- return Promise.resolve(response);
2847
+ return response;
3120
2848
  };
3121
2849
  exports.de_DeleteEventSubscriptionCommand = de_DeleteEventSubscriptionCommand;
3122
2850
  const de_DeleteEventSubscriptionCommandError = async (output, context) => {
@@ -3134,10 +2862,9 @@ const de_DeleteEventSubscriptionCommandError = async (output, context) => {
3134
2862
  throw await de_SubscriptionNotFoundFaultRes(parsedOutput, context);
3135
2863
  default:
3136
2864
  const parsedBody = parsedOutput.body;
3137
- (0, smithy_client_1.throwDefaultError)({
2865
+ return throwDefaultError({
3138
2866
  output,
3139
2867
  parsedBody: parsedBody.Error,
3140
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
3141
2868
  errorCode,
3142
2869
  });
3143
2870
  }
@@ -3150,7 +2877,7 @@ const de_DeleteHsmClientCertificateCommand = async (output, context) => {
3150
2877
  const response = {
3151
2878
  $metadata: deserializeMetadata(output),
3152
2879
  };
3153
- return Promise.resolve(response);
2880
+ return response;
3154
2881
  };
3155
2882
  exports.de_DeleteHsmClientCertificateCommand = de_DeleteHsmClientCertificateCommand;
3156
2883
  const de_DeleteHsmClientCertificateCommandError = async (output, context) => {
@@ -3168,10 +2895,9 @@ const de_DeleteHsmClientCertificateCommandError = async (output, context) => {
3168
2895
  throw await de_InvalidHsmClientCertificateStateFaultRes(parsedOutput, context);
3169
2896
  default:
3170
2897
  const parsedBody = parsedOutput.body;
3171
- (0, smithy_client_1.throwDefaultError)({
2898
+ return throwDefaultError({
3172
2899
  output,
3173
2900
  parsedBody: parsedBody.Error,
3174
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
3175
2901
  errorCode,
3176
2902
  });
3177
2903
  }
@@ -3184,7 +2910,7 @@ const de_DeleteHsmConfigurationCommand = async (output, context) => {
3184
2910
  const response = {
3185
2911
  $metadata: deserializeMetadata(output),
3186
2912
  };
3187
- return Promise.resolve(response);
2913
+ return response;
3188
2914
  };
3189
2915
  exports.de_DeleteHsmConfigurationCommand = de_DeleteHsmConfigurationCommand;
3190
2916
  const de_DeleteHsmConfigurationCommandError = async (output, context) => {
@@ -3202,10 +2928,9 @@ const de_DeleteHsmConfigurationCommandError = async (output, context) => {
3202
2928
  throw await de_InvalidHsmConfigurationStateFaultRes(parsedOutput, context);
3203
2929
  default:
3204
2930
  const parsedBody = parsedOutput.body;
3205
- (0, smithy_client_1.throwDefaultError)({
2931
+ return throwDefaultError({
3206
2932
  output,
3207
2933
  parsedBody: parsedBody.Error,
3208
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
3209
2934
  errorCode,
3210
2935
  });
3211
2936
  }
@@ -3221,7 +2946,7 @@ const de_DeletePartnerCommand = async (output, context) => {
3221
2946
  $metadata: deserializeMetadata(output),
3222
2947
  ...contents,
3223
2948
  };
3224
- return Promise.resolve(response);
2949
+ return response;
3225
2950
  };
3226
2951
  exports.de_DeletePartnerCommand = de_DeletePartnerCommand;
3227
2952
  const de_DeletePartnerCommandError = async (output, context) => {
@@ -3242,10 +2967,9 @@ const de_DeletePartnerCommandError = async (output, context) => {
3242
2967
  throw await de_UnauthorizedPartnerIntegrationFaultRes(parsedOutput, context);
3243
2968
  default:
3244
2969
  const parsedBody = parsedOutput.body;
3245
- (0, smithy_client_1.throwDefaultError)({
2970
+ return throwDefaultError({
3246
2971
  output,
3247
2972
  parsedBody: parsedBody.Error,
3248
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
3249
2973
  errorCode,
3250
2974
  });
3251
2975
  }
@@ -3258,7 +2982,7 @@ const de_DeleteScheduledActionCommand = async (output, context) => {
3258
2982
  const response = {
3259
2983
  $metadata: deserializeMetadata(output),
3260
2984
  };
3261
- return Promise.resolve(response);
2985
+ return response;
3262
2986
  };
3263
2987
  exports.de_DeleteScheduledActionCommand = de_DeleteScheduledActionCommand;
3264
2988
  const de_DeleteScheduledActionCommandError = async (output, context) => {
@@ -3276,10 +3000,9 @@ const de_DeleteScheduledActionCommandError = async (output, context) => {
3276
3000
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
3277
3001
  default:
3278
3002
  const parsedBody = parsedOutput.body;
3279
- (0, smithy_client_1.throwDefaultError)({
3003
+ return throwDefaultError({
3280
3004
  output,
3281
3005
  parsedBody: parsedBody.Error,
3282
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
3283
3006
  errorCode,
3284
3007
  });
3285
3008
  }
@@ -3292,7 +3015,7 @@ const de_DeleteSnapshotCopyGrantCommand = async (output, context) => {
3292
3015
  const response = {
3293
3016
  $metadata: deserializeMetadata(output),
3294
3017
  };
3295
- return Promise.resolve(response);
3018
+ return response;
3296
3019
  };
3297
3020
  exports.de_DeleteSnapshotCopyGrantCommand = de_DeleteSnapshotCopyGrantCommand;
3298
3021
  const de_DeleteSnapshotCopyGrantCommandError = async (output, context) => {
@@ -3310,10 +3033,9 @@ const de_DeleteSnapshotCopyGrantCommandError = async (output, context) => {
3310
3033
  throw await de_SnapshotCopyGrantNotFoundFaultRes(parsedOutput, context);
3311
3034
  default:
3312
3035
  const parsedBody = parsedOutput.body;
3313
- (0, smithy_client_1.throwDefaultError)({
3036
+ return throwDefaultError({
3314
3037
  output,
3315
3038
  parsedBody: parsedBody.Error,
3316
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
3317
3039
  errorCode,
3318
3040
  });
3319
3041
  }
@@ -3326,7 +3048,7 @@ const de_DeleteSnapshotScheduleCommand = async (output, context) => {
3326
3048
  const response = {
3327
3049
  $metadata: deserializeMetadata(output),
3328
3050
  };
3329
- return Promise.resolve(response);
3051
+ return response;
3330
3052
  };
3331
3053
  exports.de_DeleteSnapshotScheduleCommand = de_DeleteSnapshotScheduleCommand;
3332
3054
  const de_DeleteSnapshotScheduleCommandError = async (output, context) => {
@@ -3344,10 +3066,9 @@ const de_DeleteSnapshotScheduleCommandError = async (output, context) => {
3344
3066
  throw await de_SnapshotScheduleNotFoundFaultRes(parsedOutput, context);
3345
3067
  default:
3346
3068
  const parsedBody = parsedOutput.body;
3347
- (0, smithy_client_1.throwDefaultError)({
3069
+ return throwDefaultError({
3348
3070
  output,
3349
3071
  parsedBody: parsedBody.Error,
3350
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
3351
3072
  errorCode,
3352
3073
  });
3353
3074
  }
@@ -3360,7 +3081,7 @@ const de_DeleteTagsCommand = async (output, context) => {
3360
3081
  const response = {
3361
3082
  $metadata: deserializeMetadata(output),
3362
3083
  };
3363
- return Promise.resolve(response);
3084
+ return response;
3364
3085
  };
3365
3086
  exports.de_DeleteTagsCommand = de_DeleteTagsCommand;
3366
3087
  const de_DeleteTagsCommandError = async (output, context) => {
@@ -3378,10 +3099,9 @@ const de_DeleteTagsCommandError = async (output, context) => {
3378
3099
  throw await de_ResourceNotFoundFaultRes(parsedOutput, context);
3379
3100
  default:
3380
3101
  const parsedBody = parsedOutput.body;
3381
- (0, smithy_client_1.throwDefaultError)({
3102
+ return throwDefaultError({
3382
3103
  output,
3383
3104
  parsedBody: parsedBody.Error,
3384
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
3385
3105
  errorCode,
3386
3106
  });
3387
3107
  }
@@ -3394,7 +3114,7 @@ const de_DeleteUsageLimitCommand = async (output, context) => {
3394
3114
  const response = {
3395
3115
  $metadata: deserializeMetadata(output),
3396
3116
  };
3397
- return Promise.resolve(response);
3117
+ return response;
3398
3118
  };
3399
3119
  exports.de_DeleteUsageLimitCommand = de_DeleteUsageLimitCommand;
3400
3120
  const de_DeleteUsageLimitCommandError = async (output, context) => {
@@ -3412,10 +3132,9 @@ const de_DeleteUsageLimitCommandError = async (output, context) => {
3412
3132
  throw await de_UsageLimitNotFoundFaultRes(parsedOutput, context);
3413
3133
  default:
3414
3134
  const parsedBody = parsedOutput.body;
3415
- (0, smithy_client_1.throwDefaultError)({
3135
+ return throwDefaultError({
3416
3136
  output,
3417
3137
  parsedBody: parsedBody.Error,
3418
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
3419
3138
  errorCode,
3420
3139
  });
3421
3140
  }
@@ -3431,7 +3150,7 @@ const de_DescribeAccountAttributesCommand = async (output, context) => {
3431
3150
  $metadata: deserializeMetadata(output),
3432
3151
  ...contents,
3433
3152
  };
3434
- return Promise.resolve(response);
3153
+ return response;
3435
3154
  };
3436
3155
  exports.de_DescribeAccountAttributesCommand = de_DescribeAccountAttributesCommand;
3437
3156
  const de_DescribeAccountAttributesCommandError = async (output, context) => {
@@ -3441,10 +3160,9 @@ const de_DescribeAccountAttributesCommandError = async (output, context) => {
3441
3160
  };
3442
3161
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3443
3162
  const parsedBody = parsedOutput.body;
3444
- (0, smithy_client_1.throwDefaultError)({
3163
+ return throwDefaultError({
3445
3164
  output,
3446
3165
  parsedBody: parsedBody.Error,
3447
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
3448
3166
  errorCode,
3449
3167
  });
3450
3168
  };
@@ -3459,7 +3177,7 @@ const de_DescribeAuthenticationProfilesCommand = async (output, context) => {
3459
3177
  $metadata: deserializeMetadata(output),
3460
3178
  ...contents,
3461
3179
  };
3462
- return Promise.resolve(response);
3180
+ return response;
3463
3181
  };
3464
3182
  exports.de_DescribeAuthenticationProfilesCommand = de_DescribeAuthenticationProfilesCommand;
3465
3183
  const de_DescribeAuthenticationProfilesCommandError = async (output, context) => {
@@ -3477,10 +3195,9 @@ const de_DescribeAuthenticationProfilesCommandError = async (output, context) =>
3477
3195
  throw await de_InvalidAuthenticationProfileRequestFaultRes(parsedOutput, context);
3478
3196
  default:
3479
3197
  const parsedBody = parsedOutput.body;
3480
- (0, smithy_client_1.throwDefaultError)({
3198
+ return throwDefaultError({
3481
3199
  output,
3482
3200
  parsedBody: parsedBody.Error,
3483
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
3484
3201
  errorCode,
3485
3202
  });
3486
3203
  }
@@ -3496,7 +3213,7 @@ const de_DescribeClusterDbRevisionsCommand = async (output, context) => {
3496
3213
  $metadata: deserializeMetadata(output),
3497
3214
  ...contents,
3498
3215
  };
3499
- return Promise.resolve(response);
3216
+ return response;
3500
3217
  };
3501
3218
  exports.de_DescribeClusterDbRevisionsCommand = de_DescribeClusterDbRevisionsCommand;
3502
3219
  const de_DescribeClusterDbRevisionsCommandError = async (output, context) => {
@@ -3514,10 +3231,9 @@ const de_DescribeClusterDbRevisionsCommandError = async (output, context) => {
3514
3231
  throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
3515
3232
  default:
3516
3233
  const parsedBody = parsedOutput.body;
3517
- (0, smithy_client_1.throwDefaultError)({
3234
+ return throwDefaultError({
3518
3235
  output,
3519
3236
  parsedBody: parsedBody.Error,
3520
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
3521
3237
  errorCode,
3522
3238
  });
3523
3239
  }
@@ -3533,7 +3249,7 @@ const de_DescribeClusterParameterGroupsCommand = async (output, context) => {
3533
3249
  $metadata: deserializeMetadata(output),
3534
3250
  ...contents,
3535
3251
  };
3536
- return Promise.resolve(response);
3252
+ return response;
3537
3253
  };
3538
3254
  exports.de_DescribeClusterParameterGroupsCommand = de_DescribeClusterParameterGroupsCommand;
3539
3255
  const de_DescribeClusterParameterGroupsCommandError = async (output, context) => {
@@ -3551,10 +3267,9 @@ const de_DescribeClusterParameterGroupsCommandError = async (output, context) =>
3551
3267
  throw await de_InvalidTagFaultRes(parsedOutput, context);
3552
3268
  default:
3553
3269
  const parsedBody = parsedOutput.body;
3554
- (0, smithy_client_1.throwDefaultError)({
3270
+ return throwDefaultError({
3555
3271
  output,
3556
3272
  parsedBody: parsedBody.Error,
3557
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
3558
3273
  errorCode,
3559
3274
  });
3560
3275
  }
@@ -3570,7 +3285,7 @@ const de_DescribeClusterParametersCommand = async (output, context) => {
3570
3285
  $metadata: deserializeMetadata(output),
3571
3286
  ...contents,
3572
3287
  };
3573
- return Promise.resolve(response);
3288
+ return response;
3574
3289
  };
3575
3290
  exports.de_DescribeClusterParametersCommand = de_DescribeClusterParametersCommand;
3576
3291
  const de_DescribeClusterParametersCommandError = async (output, context) => {
@@ -3585,10 +3300,9 @@ const de_DescribeClusterParametersCommandError = async (output, context) => {
3585
3300
  throw await de_ClusterParameterGroupNotFoundFaultRes(parsedOutput, context);
3586
3301
  default:
3587
3302
  const parsedBody = parsedOutput.body;
3588
- (0, smithy_client_1.throwDefaultError)({
3303
+ return throwDefaultError({
3589
3304
  output,
3590
3305
  parsedBody: parsedBody.Error,
3591
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
3592
3306
  errorCode,
3593
3307
  });
3594
3308
  }
@@ -3604,7 +3318,7 @@ const de_DescribeClustersCommand = async (output, context) => {
3604
3318
  $metadata: deserializeMetadata(output),
3605
3319
  ...contents,
3606
3320
  };
3607
- return Promise.resolve(response);
3321
+ return response;
3608
3322
  };
3609
3323
  exports.de_DescribeClustersCommand = de_DescribeClustersCommand;
3610
3324
  const de_DescribeClustersCommandError = async (output, context) => {
@@ -3622,10 +3336,9 @@ const de_DescribeClustersCommandError = async (output, context) => {
3622
3336
  throw await de_InvalidTagFaultRes(parsedOutput, context);
3623
3337
  default:
3624
3338
  const parsedBody = parsedOutput.body;
3625
- (0, smithy_client_1.throwDefaultError)({
3339
+ return throwDefaultError({
3626
3340
  output,
3627
3341
  parsedBody: parsedBody.Error,
3628
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
3629
3342
  errorCode,
3630
3343
  });
3631
3344
  }
@@ -3641,7 +3354,7 @@ const de_DescribeClusterSecurityGroupsCommand = async (output, context) => {
3641
3354
  $metadata: deserializeMetadata(output),
3642
3355
  ...contents,
3643
3356
  };
3644
- return Promise.resolve(response);
3357
+ return response;
3645
3358
  };
3646
3359
  exports.de_DescribeClusterSecurityGroupsCommand = de_DescribeClusterSecurityGroupsCommand;
3647
3360
  const de_DescribeClusterSecurityGroupsCommandError = async (output, context) => {
@@ -3659,10 +3372,9 @@ const de_DescribeClusterSecurityGroupsCommandError = async (output, context) =>
3659
3372
  throw await de_InvalidTagFaultRes(parsedOutput, context);
3660
3373
  default:
3661
3374
  const parsedBody = parsedOutput.body;
3662
- (0, smithy_client_1.throwDefaultError)({
3375
+ return throwDefaultError({
3663
3376
  output,
3664
3377
  parsedBody: parsedBody.Error,
3665
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
3666
3378
  errorCode,
3667
3379
  });
3668
3380
  }
@@ -3678,7 +3390,7 @@ const de_DescribeClusterSnapshotsCommand = async (output, context) => {
3678
3390
  $metadata: deserializeMetadata(output),
3679
3391
  ...contents,
3680
3392
  };
3681
- return Promise.resolve(response);
3393
+ return response;
3682
3394
  };
3683
3395
  exports.de_DescribeClusterSnapshotsCommand = de_DescribeClusterSnapshotsCommand;
3684
3396
  const de_DescribeClusterSnapshotsCommandError = async (output, context) => {
@@ -3702,10 +3414,9 @@ const de_DescribeClusterSnapshotsCommandError = async (output, context) => {
3702
3414
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
3703
3415
  default:
3704
3416
  const parsedBody = parsedOutput.body;
3705
- (0, smithy_client_1.throwDefaultError)({
3417
+ return throwDefaultError({
3706
3418
  output,
3707
3419
  parsedBody: parsedBody.Error,
3708
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
3709
3420
  errorCode,
3710
3421
  });
3711
3422
  }
@@ -3721,7 +3432,7 @@ const de_DescribeClusterSubnetGroupsCommand = async (output, context) => {
3721
3432
  $metadata: deserializeMetadata(output),
3722
3433
  ...contents,
3723
3434
  };
3724
- return Promise.resolve(response);
3435
+ return response;
3725
3436
  };
3726
3437
  exports.de_DescribeClusterSubnetGroupsCommand = de_DescribeClusterSubnetGroupsCommand;
3727
3438
  const de_DescribeClusterSubnetGroupsCommandError = async (output, context) => {
@@ -3739,10 +3450,9 @@ const de_DescribeClusterSubnetGroupsCommandError = async (output, context) => {
3739
3450
  throw await de_InvalidTagFaultRes(parsedOutput, context);
3740
3451
  default:
3741
3452
  const parsedBody = parsedOutput.body;
3742
- (0, smithy_client_1.throwDefaultError)({
3453
+ return throwDefaultError({
3743
3454
  output,
3744
3455
  parsedBody: parsedBody.Error,
3745
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
3746
3456
  errorCode,
3747
3457
  });
3748
3458
  }
@@ -3758,7 +3468,7 @@ const de_DescribeClusterTracksCommand = async (output, context) => {
3758
3468
  $metadata: deserializeMetadata(output),
3759
3469
  ...contents,
3760
3470
  };
3761
- return Promise.resolve(response);
3471
+ return response;
3762
3472
  };
3763
3473
  exports.de_DescribeClusterTracksCommand = de_DescribeClusterTracksCommand;
3764
3474
  const de_DescribeClusterTracksCommandError = async (output, context) => {
@@ -3776,10 +3486,9 @@ const de_DescribeClusterTracksCommandError = async (output, context) => {
3776
3486
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
3777
3487
  default:
3778
3488
  const parsedBody = parsedOutput.body;
3779
- (0, smithy_client_1.throwDefaultError)({
3489
+ return throwDefaultError({
3780
3490
  output,
3781
3491
  parsedBody: parsedBody.Error,
3782
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
3783
3492
  errorCode,
3784
3493
  });
3785
3494
  }
@@ -3795,7 +3504,7 @@ const de_DescribeClusterVersionsCommand = async (output, context) => {
3795
3504
  $metadata: deserializeMetadata(output),
3796
3505
  ...contents,
3797
3506
  };
3798
- return Promise.resolve(response);
3507
+ return response;
3799
3508
  };
3800
3509
  exports.de_DescribeClusterVersionsCommand = de_DescribeClusterVersionsCommand;
3801
3510
  const de_DescribeClusterVersionsCommandError = async (output, context) => {
@@ -3805,10 +3514,9 @@ const de_DescribeClusterVersionsCommandError = async (output, context) => {
3805
3514
  };
3806
3515
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3807
3516
  const parsedBody = parsedOutput.body;
3808
- (0, smithy_client_1.throwDefaultError)({
3517
+ return throwDefaultError({
3809
3518
  output,
3810
3519
  parsedBody: parsedBody.Error,
3811
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
3812
3520
  errorCode,
3813
3521
  });
3814
3522
  };
@@ -3823,7 +3531,7 @@ const de_DescribeDataSharesCommand = async (output, context) => {
3823
3531
  $metadata: deserializeMetadata(output),
3824
3532
  ...contents,
3825
3533
  };
3826
- return Promise.resolve(response);
3534
+ return response;
3827
3535
  };
3828
3536
  exports.de_DescribeDataSharesCommand = de_DescribeDataSharesCommand;
3829
3537
  const de_DescribeDataSharesCommandError = async (output, context) => {
@@ -3838,10 +3546,9 @@ const de_DescribeDataSharesCommandError = async (output, context) => {
3838
3546
  throw await de_InvalidDataShareFaultRes(parsedOutput, context);
3839
3547
  default:
3840
3548
  const parsedBody = parsedOutput.body;
3841
- (0, smithy_client_1.throwDefaultError)({
3549
+ return throwDefaultError({
3842
3550
  output,
3843
3551
  parsedBody: parsedBody.Error,
3844
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
3845
3552
  errorCode,
3846
3553
  });
3847
3554
  }
@@ -3857,7 +3564,7 @@ const de_DescribeDataSharesForConsumerCommand = async (output, context) => {
3857
3564
  $metadata: deserializeMetadata(output),
3858
3565
  ...contents,
3859
3566
  };
3860
- return Promise.resolve(response);
3567
+ return response;
3861
3568
  };
3862
3569
  exports.de_DescribeDataSharesForConsumerCommand = de_DescribeDataSharesForConsumerCommand;
3863
3570
  const de_DescribeDataSharesForConsumerCommandError = async (output, context) => {
@@ -3872,10 +3579,9 @@ const de_DescribeDataSharesForConsumerCommandError = async (output, context) =>
3872
3579
  throw await de_InvalidNamespaceFaultRes(parsedOutput, context);
3873
3580
  default:
3874
3581
  const parsedBody = parsedOutput.body;
3875
- (0, smithy_client_1.throwDefaultError)({
3582
+ return throwDefaultError({
3876
3583
  output,
3877
3584
  parsedBody: parsedBody.Error,
3878
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
3879
3585
  errorCode,
3880
3586
  });
3881
3587
  }
@@ -3891,7 +3597,7 @@ const de_DescribeDataSharesForProducerCommand = async (output, context) => {
3891
3597
  $metadata: deserializeMetadata(output),
3892
3598
  ...contents,
3893
3599
  };
3894
- return Promise.resolve(response);
3600
+ return response;
3895
3601
  };
3896
3602
  exports.de_DescribeDataSharesForProducerCommand = de_DescribeDataSharesForProducerCommand;
3897
3603
  const de_DescribeDataSharesForProducerCommandError = async (output, context) => {
@@ -3906,10 +3612,9 @@ const de_DescribeDataSharesForProducerCommandError = async (output, context) =>
3906
3612
  throw await de_InvalidNamespaceFaultRes(parsedOutput, context);
3907
3613
  default:
3908
3614
  const parsedBody = parsedOutput.body;
3909
- (0, smithy_client_1.throwDefaultError)({
3615
+ return throwDefaultError({
3910
3616
  output,
3911
3617
  parsedBody: parsedBody.Error,
3912
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
3913
3618
  errorCode,
3914
3619
  });
3915
3620
  }
@@ -3925,7 +3630,7 @@ const de_DescribeDefaultClusterParametersCommand = async (output, context) => {
3925
3630
  $metadata: deserializeMetadata(output),
3926
3631
  ...contents,
3927
3632
  };
3928
- return Promise.resolve(response);
3633
+ return response;
3929
3634
  };
3930
3635
  exports.de_DescribeDefaultClusterParametersCommand = de_DescribeDefaultClusterParametersCommand;
3931
3636
  const de_DescribeDefaultClusterParametersCommandError = async (output, context) => {
@@ -3935,10 +3640,9 @@ const de_DescribeDefaultClusterParametersCommandError = async (output, context)
3935
3640
  };
3936
3641
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3937
3642
  const parsedBody = parsedOutput.body;
3938
- (0, smithy_client_1.throwDefaultError)({
3643
+ return throwDefaultError({
3939
3644
  output,
3940
3645
  parsedBody: parsedBody.Error,
3941
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
3942
3646
  errorCode,
3943
3647
  });
3944
3648
  };
@@ -3953,7 +3657,7 @@ const de_DescribeEndpointAccessCommand = async (output, context) => {
3953
3657
  $metadata: deserializeMetadata(output),
3954
3658
  ...contents,
3955
3659
  };
3956
- return Promise.resolve(response);
3660
+ return response;
3957
3661
  };
3958
3662
  exports.de_DescribeEndpointAccessCommand = de_DescribeEndpointAccessCommand;
3959
3663
  const de_DescribeEndpointAccessCommandError = async (output, context) => {
@@ -3974,10 +3678,9 @@ const de_DescribeEndpointAccessCommandError = async (output, context) => {
3974
3678
  throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
3975
3679
  default:
3976
3680
  const parsedBody = parsedOutput.body;
3977
- (0, smithy_client_1.throwDefaultError)({
3681
+ return throwDefaultError({
3978
3682
  output,
3979
3683
  parsedBody: parsedBody.Error,
3980
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
3981
3684
  errorCode,
3982
3685
  });
3983
3686
  }
@@ -3993,7 +3696,7 @@ const de_DescribeEndpointAuthorizationCommand = async (output, context) => {
3993
3696
  $metadata: deserializeMetadata(output),
3994
3697
  ...contents,
3995
3698
  };
3996
- return Promise.resolve(response);
3699
+ return response;
3997
3700
  };
3998
3701
  exports.de_DescribeEndpointAuthorizationCommand = de_DescribeEndpointAuthorizationCommand;
3999
3702
  const de_DescribeEndpointAuthorizationCommandError = async (output, context) => {
@@ -4011,10 +3714,9 @@ const de_DescribeEndpointAuthorizationCommandError = async (output, context) =>
4011
3714
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
4012
3715
  default:
4013
3716
  const parsedBody = parsedOutput.body;
4014
- (0, smithy_client_1.throwDefaultError)({
3717
+ return throwDefaultError({
4015
3718
  output,
4016
3719
  parsedBody: parsedBody.Error,
4017
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
4018
3720
  errorCode,
4019
3721
  });
4020
3722
  }
@@ -4030,7 +3732,7 @@ const de_DescribeEventCategoriesCommand = async (output, context) => {
4030
3732
  $metadata: deserializeMetadata(output),
4031
3733
  ...contents,
4032
3734
  };
4033
- return Promise.resolve(response);
3735
+ return response;
4034
3736
  };
4035
3737
  exports.de_DescribeEventCategoriesCommand = de_DescribeEventCategoriesCommand;
4036
3738
  const de_DescribeEventCategoriesCommandError = async (output, context) => {
@@ -4040,10 +3742,9 @@ const de_DescribeEventCategoriesCommandError = async (output, context) => {
4040
3742
  };
4041
3743
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
4042
3744
  const parsedBody = parsedOutput.body;
4043
- (0, smithy_client_1.throwDefaultError)({
3745
+ return throwDefaultError({
4044
3746
  output,
4045
3747
  parsedBody: parsedBody.Error,
4046
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
4047
3748
  errorCode,
4048
3749
  });
4049
3750
  };
@@ -4058,7 +3759,7 @@ const de_DescribeEventsCommand = async (output, context) => {
4058
3759
  $metadata: deserializeMetadata(output),
4059
3760
  ...contents,
4060
3761
  };
4061
- return Promise.resolve(response);
3762
+ return response;
4062
3763
  };
4063
3764
  exports.de_DescribeEventsCommand = de_DescribeEventsCommand;
4064
3765
  const de_DescribeEventsCommandError = async (output, context) => {
@@ -4068,10 +3769,9 @@ const de_DescribeEventsCommandError = async (output, context) => {
4068
3769
  };
4069
3770
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
4070
3771
  const parsedBody = parsedOutput.body;
4071
- (0, smithy_client_1.throwDefaultError)({
3772
+ return throwDefaultError({
4072
3773
  output,
4073
3774
  parsedBody: parsedBody.Error,
4074
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
4075
3775
  errorCode,
4076
3776
  });
4077
3777
  };
@@ -4086,7 +3786,7 @@ const de_DescribeEventSubscriptionsCommand = async (output, context) => {
4086
3786
  $metadata: deserializeMetadata(output),
4087
3787
  ...contents,
4088
3788
  };
4089
- return Promise.resolve(response);
3789
+ return response;
4090
3790
  };
4091
3791
  exports.de_DescribeEventSubscriptionsCommand = de_DescribeEventSubscriptionsCommand;
4092
3792
  const de_DescribeEventSubscriptionsCommandError = async (output, context) => {
@@ -4104,10 +3804,9 @@ const de_DescribeEventSubscriptionsCommandError = async (output, context) => {
4104
3804
  throw await de_SubscriptionNotFoundFaultRes(parsedOutput, context);
4105
3805
  default:
4106
3806
  const parsedBody = parsedOutput.body;
4107
- (0, smithy_client_1.throwDefaultError)({
3807
+ return throwDefaultError({
4108
3808
  output,
4109
3809
  parsedBody: parsedBody.Error,
4110
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
4111
3810
  errorCode,
4112
3811
  });
4113
3812
  }
@@ -4123,7 +3822,7 @@ const de_DescribeHsmClientCertificatesCommand = async (output, context) => {
4123
3822
  $metadata: deserializeMetadata(output),
4124
3823
  ...contents,
4125
3824
  };
4126
- return Promise.resolve(response);
3825
+ return response;
4127
3826
  };
4128
3827
  exports.de_DescribeHsmClientCertificatesCommand = de_DescribeHsmClientCertificatesCommand;
4129
3828
  const de_DescribeHsmClientCertificatesCommandError = async (output, context) => {
@@ -4141,10 +3840,9 @@ const de_DescribeHsmClientCertificatesCommandError = async (output, context) =>
4141
3840
  throw await de_InvalidTagFaultRes(parsedOutput, context);
4142
3841
  default:
4143
3842
  const parsedBody = parsedOutput.body;
4144
- (0, smithy_client_1.throwDefaultError)({
3843
+ return throwDefaultError({
4145
3844
  output,
4146
3845
  parsedBody: parsedBody.Error,
4147
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
4148
3846
  errorCode,
4149
3847
  });
4150
3848
  }
@@ -4160,7 +3858,7 @@ const de_DescribeHsmConfigurationsCommand = async (output, context) => {
4160
3858
  $metadata: deserializeMetadata(output),
4161
3859
  ...contents,
4162
3860
  };
4163
- return Promise.resolve(response);
3861
+ return response;
4164
3862
  };
4165
3863
  exports.de_DescribeHsmConfigurationsCommand = de_DescribeHsmConfigurationsCommand;
4166
3864
  const de_DescribeHsmConfigurationsCommandError = async (output, context) => {
@@ -4178,10 +3876,9 @@ const de_DescribeHsmConfigurationsCommandError = async (output, context) => {
4178
3876
  throw await de_InvalidTagFaultRes(parsedOutput, context);
4179
3877
  default:
4180
3878
  const parsedBody = parsedOutput.body;
4181
- (0, smithy_client_1.throwDefaultError)({
3879
+ return throwDefaultError({
4182
3880
  output,
4183
3881
  parsedBody: parsedBody.Error,
4184
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
4185
3882
  errorCode,
4186
3883
  });
4187
3884
  }
@@ -4197,7 +3894,7 @@ const de_DescribeLoggingStatusCommand = async (output, context) => {
4197
3894
  $metadata: deserializeMetadata(output),
4198
3895
  ...contents,
4199
3896
  };
4200
- return Promise.resolve(response);
3897
+ return response;
4201
3898
  };
4202
3899
  exports.de_DescribeLoggingStatusCommand = de_DescribeLoggingStatusCommand;
4203
3900
  const de_DescribeLoggingStatusCommandError = async (output, context) => {
@@ -4212,10 +3909,9 @@ const de_DescribeLoggingStatusCommandError = async (output, context) => {
4212
3909
  throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
4213
3910
  default:
4214
3911
  const parsedBody = parsedOutput.body;
4215
- (0, smithy_client_1.throwDefaultError)({
3912
+ return throwDefaultError({
4216
3913
  output,
4217
3914
  parsedBody: parsedBody.Error,
4218
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
4219
3915
  errorCode,
4220
3916
  });
4221
3917
  }
@@ -4231,7 +3927,7 @@ const de_DescribeNodeConfigurationOptionsCommand = async (output, context) => {
4231
3927
  $metadata: deserializeMetadata(output),
4232
3928
  ...contents,
4233
3929
  };
4234
- return Promise.resolve(response);
3930
+ return response;
4235
3931
  };
4236
3932
  exports.de_DescribeNodeConfigurationOptionsCommand = de_DescribeNodeConfigurationOptionsCommand;
4237
3933
  const de_DescribeNodeConfigurationOptionsCommandError = async (output, context) => {
@@ -4258,10 +3954,9 @@ const de_DescribeNodeConfigurationOptionsCommandError = async (output, context)
4258
3954
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
4259
3955
  default:
4260
3956
  const parsedBody = parsedOutput.body;
4261
- (0, smithy_client_1.throwDefaultError)({
3957
+ return throwDefaultError({
4262
3958
  output,
4263
3959
  parsedBody: parsedBody.Error,
4264
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
4265
3960
  errorCode,
4266
3961
  });
4267
3962
  }
@@ -4277,7 +3972,7 @@ const de_DescribeOrderableClusterOptionsCommand = async (output, context) => {
4277
3972
  $metadata: deserializeMetadata(output),
4278
3973
  ...contents,
4279
3974
  };
4280
- return Promise.resolve(response);
3975
+ return response;
4281
3976
  };
4282
3977
  exports.de_DescribeOrderableClusterOptionsCommand = de_DescribeOrderableClusterOptionsCommand;
4283
3978
  const de_DescribeOrderableClusterOptionsCommandError = async (output, context) => {
@@ -4287,10 +3982,9 @@ const de_DescribeOrderableClusterOptionsCommandError = async (output, context) =
4287
3982
  };
4288
3983
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
4289
3984
  const parsedBody = parsedOutput.body;
4290
- (0, smithy_client_1.throwDefaultError)({
3985
+ return throwDefaultError({
4291
3986
  output,
4292
3987
  parsedBody: parsedBody.Error,
4293
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
4294
3988
  errorCode,
4295
3989
  });
4296
3990
  };
@@ -4305,7 +3999,7 @@ const de_DescribePartnersCommand = async (output, context) => {
4305
3999
  $metadata: deserializeMetadata(output),
4306
4000
  ...contents,
4307
4001
  };
4308
- return Promise.resolve(response);
4002
+ return response;
4309
4003
  };
4310
4004
  exports.de_DescribePartnersCommand = de_DescribePartnersCommand;
4311
4005
  const de_DescribePartnersCommandError = async (output, context) => {
@@ -4323,10 +4017,9 @@ const de_DescribePartnersCommandError = async (output, context) => {
4323
4017
  throw await de_UnauthorizedPartnerIntegrationFaultRes(parsedOutput, context);
4324
4018
  default:
4325
4019
  const parsedBody = parsedOutput.body;
4326
- (0, smithy_client_1.throwDefaultError)({
4020
+ return throwDefaultError({
4327
4021
  output,
4328
4022
  parsedBody: parsedBody.Error,
4329
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
4330
4023
  errorCode,
4331
4024
  });
4332
4025
  }
@@ -4342,7 +4035,7 @@ const de_DescribeReservedNodeExchangeStatusCommand = async (output, context) =>
4342
4035
  $metadata: deserializeMetadata(output),
4343
4036
  ...contents,
4344
4037
  };
4345
- return Promise.resolve(response);
4038
+ return response;
4346
4039
  };
4347
4040
  exports.de_DescribeReservedNodeExchangeStatusCommand = de_DescribeReservedNodeExchangeStatusCommand;
4348
4041
  const de_DescribeReservedNodeExchangeStatusCommandError = async (output, context) => {
@@ -4363,10 +4056,9 @@ const de_DescribeReservedNodeExchangeStatusCommandError = async (output, context
4363
4056
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
4364
4057
  default:
4365
4058
  const parsedBody = parsedOutput.body;
4366
- (0, smithy_client_1.throwDefaultError)({
4059
+ return throwDefaultError({
4367
4060
  output,
4368
4061
  parsedBody: parsedBody.Error,
4369
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
4370
4062
  errorCode,
4371
4063
  });
4372
4064
  }
@@ -4382,7 +4074,7 @@ const de_DescribeReservedNodeOfferingsCommand = async (output, context) => {
4382
4074
  $metadata: deserializeMetadata(output),
4383
4075
  ...contents,
4384
4076
  };
4385
- return Promise.resolve(response);
4077
+ return response;
4386
4078
  };
4387
4079
  exports.de_DescribeReservedNodeOfferingsCommand = de_DescribeReservedNodeOfferingsCommand;
4388
4080
  const de_DescribeReservedNodeOfferingsCommandError = async (output, context) => {
@@ -4403,10 +4095,9 @@ const de_DescribeReservedNodeOfferingsCommandError = async (output, context) =>
4403
4095
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
4404
4096
  default:
4405
4097
  const parsedBody = parsedOutput.body;
4406
- (0, smithy_client_1.throwDefaultError)({
4098
+ return throwDefaultError({
4407
4099
  output,
4408
4100
  parsedBody: parsedBody.Error,
4409
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
4410
4101
  errorCode,
4411
4102
  });
4412
4103
  }
@@ -4422,7 +4113,7 @@ const de_DescribeReservedNodesCommand = async (output, context) => {
4422
4113
  $metadata: deserializeMetadata(output),
4423
4114
  ...contents,
4424
4115
  };
4425
- return Promise.resolve(response);
4116
+ return response;
4426
4117
  };
4427
4118
  exports.de_DescribeReservedNodesCommand = de_DescribeReservedNodesCommand;
4428
4119
  const de_DescribeReservedNodesCommandError = async (output, context) => {
@@ -4440,10 +4131,9 @@ const de_DescribeReservedNodesCommandError = async (output, context) => {
4440
4131
  throw await de_ReservedNodeNotFoundFaultRes(parsedOutput, context);
4441
4132
  default:
4442
4133
  const parsedBody = parsedOutput.body;
4443
- (0, smithy_client_1.throwDefaultError)({
4134
+ return throwDefaultError({
4444
4135
  output,
4445
4136
  parsedBody: parsedBody.Error,
4446
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
4447
4137
  errorCode,
4448
4138
  });
4449
4139
  }
@@ -4459,7 +4149,7 @@ const de_DescribeResizeCommand = async (output, context) => {
4459
4149
  $metadata: deserializeMetadata(output),
4460
4150
  ...contents,
4461
4151
  };
4462
- return Promise.resolve(response);
4152
+ return response;
4463
4153
  };
4464
4154
  exports.de_DescribeResizeCommand = de_DescribeResizeCommand;
4465
4155
  const de_DescribeResizeCommandError = async (output, context) => {
@@ -4477,10 +4167,9 @@ const de_DescribeResizeCommandError = async (output, context) => {
4477
4167
  throw await de_ResizeNotFoundFaultRes(parsedOutput, context);
4478
4168
  default:
4479
4169
  const parsedBody = parsedOutput.body;
4480
- (0, smithy_client_1.throwDefaultError)({
4170
+ return throwDefaultError({
4481
4171
  output,
4482
4172
  parsedBody: parsedBody.Error,
4483
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
4484
4173
  errorCode,
4485
4174
  });
4486
4175
  }
@@ -4496,7 +4185,7 @@ const de_DescribeScheduledActionsCommand = async (output, context) => {
4496
4185
  $metadata: deserializeMetadata(output),
4497
4186
  ...contents,
4498
4187
  };
4499
- return Promise.resolve(response);
4188
+ return response;
4500
4189
  };
4501
4190
  exports.de_DescribeScheduledActionsCommand = de_DescribeScheduledActionsCommand;
4502
4191
  const de_DescribeScheduledActionsCommandError = async (output, context) => {
@@ -4514,10 +4203,9 @@ const de_DescribeScheduledActionsCommandError = async (output, context) => {
4514
4203
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
4515
4204
  default:
4516
4205
  const parsedBody = parsedOutput.body;
4517
- (0, smithy_client_1.throwDefaultError)({
4206
+ return throwDefaultError({
4518
4207
  output,
4519
4208
  parsedBody: parsedBody.Error,
4520
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
4521
4209
  errorCode,
4522
4210
  });
4523
4211
  }
@@ -4533,7 +4221,7 @@ const de_DescribeSnapshotCopyGrantsCommand = async (output, context) => {
4533
4221
  $metadata: deserializeMetadata(output),
4534
4222
  ...contents,
4535
4223
  };
4536
- return Promise.resolve(response);
4224
+ return response;
4537
4225
  };
4538
4226
  exports.de_DescribeSnapshotCopyGrantsCommand = de_DescribeSnapshotCopyGrantsCommand;
4539
4227
  const de_DescribeSnapshotCopyGrantsCommandError = async (output, context) => {
@@ -4551,10 +4239,9 @@ const de_DescribeSnapshotCopyGrantsCommandError = async (output, context) => {
4551
4239
  throw await de_SnapshotCopyGrantNotFoundFaultRes(parsedOutput, context);
4552
4240
  default:
4553
4241
  const parsedBody = parsedOutput.body;
4554
- (0, smithy_client_1.throwDefaultError)({
4242
+ return throwDefaultError({
4555
4243
  output,
4556
4244
  parsedBody: parsedBody.Error,
4557
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
4558
4245
  errorCode,
4559
4246
  });
4560
4247
  }
@@ -4570,7 +4257,7 @@ const de_DescribeSnapshotSchedulesCommand = async (output, context) => {
4570
4257
  $metadata: deserializeMetadata(output),
4571
4258
  ...contents,
4572
4259
  };
4573
- return Promise.resolve(response);
4260
+ return response;
4574
4261
  };
4575
4262
  exports.de_DescribeSnapshotSchedulesCommand = de_DescribeSnapshotSchedulesCommand;
4576
4263
  const de_DescribeSnapshotSchedulesCommandError = async (output, context) => {
@@ -4580,10 +4267,9 @@ const de_DescribeSnapshotSchedulesCommandError = async (output, context) => {
4580
4267
  };
4581
4268
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
4582
4269
  const parsedBody = parsedOutput.body;
4583
- (0, smithy_client_1.throwDefaultError)({
4270
+ return throwDefaultError({
4584
4271
  output,
4585
4272
  parsedBody: parsedBody.Error,
4586
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
4587
4273
  errorCode,
4588
4274
  });
4589
4275
  };
@@ -4598,7 +4284,7 @@ const de_DescribeStorageCommand = async (output, context) => {
4598
4284
  $metadata: deserializeMetadata(output),
4599
4285
  ...contents,
4600
4286
  };
4601
- return Promise.resolve(response);
4287
+ return response;
4602
4288
  };
4603
4289
  exports.de_DescribeStorageCommand = de_DescribeStorageCommand;
4604
4290
  const de_DescribeStorageCommandError = async (output, context) => {
@@ -4608,10 +4294,9 @@ const de_DescribeStorageCommandError = async (output, context) => {
4608
4294
  };
4609
4295
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
4610
4296
  const parsedBody = parsedOutput.body;
4611
- (0, smithy_client_1.throwDefaultError)({
4297
+ return throwDefaultError({
4612
4298
  output,
4613
4299
  parsedBody: parsedBody.Error,
4614
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
4615
4300
  errorCode,
4616
4301
  });
4617
4302
  };
@@ -4626,7 +4311,7 @@ const de_DescribeTableRestoreStatusCommand = async (output, context) => {
4626
4311
  $metadata: deserializeMetadata(output),
4627
4312
  ...contents,
4628
4313
  };
4629
- return Promise.resolve(response);
4314
+ return response;
4630
4315
  };
4631
4316
  exports.de_DescribeTableRestoreStatusCommand = de_DescribeTableRestoreStatusCommand;
4632
4317
  const de_DescribeTableRestoreStatusCommandError = async (output, context) => {
@@ -4644,10 +4329,9 @@ const de_DescribeTableRestoreStatusCommandError = async (output, context) => {
4644
4329
  throw await de_TableRestoreNotFoundFaultRes(parsedOutput, context);
4645
4330
  default:
4646
4331
  const parsedBody = parsedOutput.body;
4647
- (0, smithy_client_1.throwDefaultError)({
4332
+ return throwDefaultError({
4648
4333
  output,
4649
4334
  parsedBody: parsedBody.Error,
4650
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
4651
4335
  errorCode,
4652
4336
  });
4653
4337
  }
@@ -4663,7 +4347,7 @@ const de_DescribeTagsCommand = async (output, context) => {
4663
4347
  $metadata: deserializeMetadata(output),
4664
4348
  ...contents,
4665
4349
  };
4666
- return Promise.resolve(response);
4350
+ return response;
4667
4351
  };
4668
4352
  exports.de_DescribeTagsCommand = de_DescribeTagsCommand;
4669
4353
  const de_DescribeTagsCommandError = async (output, context) => {
@@ -4681,10 +4365,9 @@ const de_DescribeTagsCommandError = async (output, context) => {
4681
4365
  throw await de_ResourceNotFoundFaultRes(parsedOutput, context);
4682
4366
  default:
4683
4367
  const parsedBody = parsedOutput.body;
4684
- (0, smithy_client_1.throwDefaultError)({
4368
+ return throwDefaultError({
4685
4369
  output,
4686
4370
  parsedBody: parsedBody.Error,
4687
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
4688
4371
  errorCode,
4689
4372
  });
4690
4373
  }
@@ -4700,7 +4383,7 @@ const de_DescribeUsageLimitsCommand = async (output, context) => {
4700
4383
  $metadata: deserializeMetadata(output),
4701
4384
  ...contents,
4702
4385
  };
4703
- return Promise.resolve(response);
4386
+ return response;
4704
4387
  };
4705
4388
  exports.de_DescribeUsageLimitsCommand = de_DescribeUsageLimitsCommand;
4706
4389
  const de_DescribeUsageLimitsCommandError = async (output, context) => {
@@ -4718,10 +4401,9 @@ const de_DescribeUsageLimitsCommandError = async (output, context) => {
4718
4401
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
4719
4402
  default:
4720
4403
  const parsedBody = parsedOutput.body;
4721
- (0, smithy_client_1.throwDefaultError)({
4404
+ return throwDefaultError({
4722
4405
  output,
4723
4406
  parsedBody: parsedBody.Error,
4724
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
4725
4407
  errorCode,
4726
4408
  });
4727
4409
  }
@@ -4737,7 +4419,7 @@ const de_DisableLoggingCommand = async (output, context) => {
4737
4419
  $metadata: deserializeMetadata(output),
4738
4420
  ...contents,
4739
4421
  };
4740
- return Promise.resolve(response);
4422
+ return response;
4741
4423
  };
4742
4424
  exports.de_DisableLoggingCommand = de_DisableLoggingCommand;
4743
4425
  const de_DisableLoggingCommandError = async (output, context) => {
@@ -4755,10 +4437,9 @@ const de_DisableLoggingCommandError = async (output, context) => {
4755
4437
  throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
4756
4438
  default:
4757
4439
  const parsedBody = parsedOutput.body;
4758
- (0, smithy_client_1.throwDefaultError)({
4440
+ return throwDefaultError({
4759
4441
  output,
4760
4442
  parsedBody: parsedBody.Error,
4761
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
4762
4443
  errorCode,
4763
4444
  });
4764
4445
  }
@@ -4774,7 +4455,7 @@ const de_DisableSnapshotCopyCommand = async (output, context) => {
4774
4455
  $metadata: deserializeMetadata(output),
4775
4456
  ...contents,
4776
4457
  };
4777
- return Promise.resolve(response);
4458
+ return response;
4778
4459
  };
4779
4460
  exports.de_DisableSnapshotCopyCommand = de_DisableSnapshotCopyCommand;
4780
4461
  const de_DisableSnapshotCopyCommandError = async (output, context) => {
@@ -4798,10 +4479,9 @@ const de_DisableSnapshotCopyCommandError = async (output, context) => {
4798
4479
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
4799
4480
  default:
4800
4481
  const parsedBody = parsedOutput.body;
4801
- (0, smithy_client_1.throwDefaultError)({
4482
+ return throwDefaultError({
4802
4483
  output,
4803
4484
  parsedBody: parsedBody.Error,
4804
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
4805
4485
  errorCode,
4806
4486
  });
4807
4487
  }
@@ -4817,7 +4497,7 @@ const de_DisassociateDataShareConsumerCommand = async (output, context) => {
4817
4497
  $metadata: deserializeMetadata(output),
4818
4498
  ...contents,
4819
4499
  };
4820
- return Promise.resolve(response);
4500
+ return response;
4821
4501
  };
4822
4502
  exports.de_DisassociateDataShareConsumerCommand = de_DisassociateDataShareConsumerCommand;
4823
4503
  const de_DisassociateDataShareConsumerCommandError = async (output, context) => {
@@ -4835,10 +4515,9 @@ const de_DisassociateDataShareConsumerCommandError = async (output, context) =>
4835
4515
  throw await de_InvalidNamespaceFaultRes(parsedOutput, context);
4836
4516
  default:
4837
4517
  const parsedBody = parsedOutput.body;
4838
- (0, smithy_client_1.throwDefaultError)({
4518
+ return throwDefaultError({
4839
4519
  output,
4840
4520
  parsedBody: parsedBody.Error,
4841
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
4842
4521
  errorCode,
4843
4522
  });
4844
4523
  }
@@ -4854,7 +4533,7 @@ const de_EnableLoggingCommand = async (output, context) => {
4854
4533
  $metadata: deserializeMetadata(output),
4855
4534
  ...contents,
4856
4535
  };
4857
- return Promise.resolve(response);
4536
+ return response;
4858
4537
  };
4859
4538
  exports.de_EnableLoggingCommand = de_EnableLoggingCommand;
4860
4539
  const de_EnableLoggingCommandError = async (output, context) => {
@@ -4884,10 +4563,9 @@ const de_EnableLoggingCommandError = async (output, context) => {
4884
4563
  throw await de_InvalidS3KeyPrefixFaultRes(parsedOutput, context);
4885
4564
  default:
4886
4565
  const parsedBody = parsedOutput.body;
4887
- (0, smithy_client_1.throwDefaultError)({
4566
+ return throwDefaultError({
4888
4567
  output,
4889
4568
  parsedBody: parsedBody.Error,
4890
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
4891
4569
  errorCode,
4892
4570
  });
4893
4571
  }
@@ -4903,7 +4581,7 @@ const de_EnableSnapshotCopyCommand = async (output, context) => {
4903
4581
  $metadata: deserializeMetadata(output),
4904
4582
  ...contents,
4905
4583
  };
4906
- return Promise.resolve(response);
4584
+ return response;
4907
4585
  };
4908
4586
  exports.de_EnableSnapshotCopyCommand = de_EnableSnapshotCopyCommand;
4909
4587
  const de_EnableSnapshotCopyCommandError = async (output, context) => {
@@ -4948,10 +4626,9 @@ const de_EnableSnapshotCopyCommandError = async (output, context) => {
4948
4626
  throw await de_UnknownSnapshotCopyRegionFaultRes(parsedOutput, context);
4949
4627
  default:
4950
4628
  const parsedBody = parsedOutput.body;
4951
- (0, smithy_client_1.throwDefaultError)({
4629
+ return throwDefaultError({
4952
4630
  output,
4953
4631
  parsedBody: parsedBody.Error,
4954
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
4955
4632
  errorCode,
4956
4633
  });
4957
4634
  }
@@ -4967,7 +4644,7 @@ const de_GetClusterCredentialsCommand = async (output, context) => {
4967
4644
  $metadata: deserializeMetadata(output),
4968
4645
  ...contents,
4969
4646
  };
4970
- return Promise.resolve(response);
4647
+ return response;
4971
4648
  };
4972
4649
  exports.de_GetClusterCredentialsCommand = de_GetClusterCredentialsCommand;
4973
4650
  const de_GetClusterCredentialsCommandError = async (output, context) => {
@@ -4985,10 +4662,9 @@ const de_GetClusterCredentialsCommandError = async (output, context) => {
4985
4662
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
4986
4663
  default:
4987
4664
  const parsedBody = parsedOutput.body;
4988
- (0, smithy_client_1.throwDefaultError)({
4665
+ return throwDefaultError({
4989
4666
  output,
4990
4667
  parsedBody: parsedBody.Error,
4991
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
4992
4668
  errorCode,
4993
4669
  });
4994
4670
  }
@@ -5004,7 +4680,7 @@ const de_GetClusterCredentialsWithIAMCommand = async (output, context) => {
5004
4680
  $metadata: deserializeMetadata(output),
5005
4681
  ...contents,
5006
4682
  };
5007
- return Promise.resolve(response);
4683
+ return response;
5008
4684
  };
5009
4685
  exports.de_GetClusterCredentialsWithIAMCommand = de_GetClusterCredentialsWithIAMCommand;
5010
4686
  const de_GetClusterCredentialsWithIAMCommandError = async (output, context) => {
@@ -5022,10 +4698,9 @@ const de_GetClusterCredentialsWithIAMCommandError = async (output, context) => {
5022
4698
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
5023
4699
  default:
5024
4700
  const parsedBody = parsedOutput.body;
5025
- (0, smithy_client_1.throwDefaultError)({
4701
+ return throwDefaultError({
5026
4702
  output,
5027
4703
  parsedBody: parsedBody.Error,
5028
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
5029
4704
  errorCode,
5030
4705
  });
5031
4706
  }
@@ -5041,7 +4716,7 @@ const de_GetReservedNodeExchangeConfigurationOptionsCommand = async (output, con
5041
4716
  $metadata: deserializeMetadata(output),
5042
4717
  ...contents,
5043
4718
  };
5044
- return Promise.resolve(response);
4719
+ return response;
5045
4720
  };
5046
4721
  exports.de_GetReservedNodeExchangeConfigurationOptionsCommand = de_GetReservedNodeExchangeConfigurationOptionsCommand;
5047
4722
  const de_GetReservedNodeExchangeConfigurationOptionsCommandError = async (output, context) => {
@@ -5077,10 +4752,9 @@ const de_GetReservedNodeExchangeConfigurationOptionsCommandError = async (output
5077
4752
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
5078
4753
  default:
5079
4754
  const parsedBody = parsedOutput.body;
5080
- (0, smithy_client_1.throwDefaultError)({
4755
+ return throwDefaultError({
5081
4756
  output,
5082
4757
  parsedBody: parsedBody.Error,
5083
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
5084
4758
  errorCode,
5085
4759
  });
5086
4760
  }
@@ -5096,7 +4770,7 @@ const de_GetReservedNodeExchangeOfferingsCommand = async (output, context) => {
5096
4770
  $metadata: deserializeMetadata(output),
5097
4771
  ...contents,
5098
4772
  };
5099
- return Promise.resolve(response);
4773
+ return response;
5100
4774
  };
5101
4775
  exports.de_GetReservedNodeExchangeOfferingsCommand = de_GetReservedNodeExchangeOfferingsCommand;
5102
4776
  const de_GetReservedNodeExchangeOfferingsCommandError = async (output, context) => {
@@ -5126,10 +4800,9 @@ const de_GetReservedNodeExchangeOfferingsCommandError = async (output, context)
5126
4800
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
5127
4801
  default:
5128
4802
  const parsedBody = parsedOutput.body;
5129
- (0, smithy_client_1.throwDefaultError)({
4803
+ return throwDefaultError({
5130
4804
  output,
5131
4805
  parsedBody: parsedBody.Error,
5132
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
5133
4806
  errorCode,
5134
4807
  });
5135
4808
  }
@@ -5145,7 +4818,7 @@ const de_ModifyAquaConfigurationCommand = async (output, context) => {
5145
4818
  $metadata: deserializeMetadata(output),
5146
4819
  ...contents,
5147
4820
  };
5148
- return Promise.resolve(response);
4821
+ return response;
5149
4822
  };
5150
4823
  exports.de_ModifyAquaConfigurationCommand = de_ModifyAquaConfigurationCommand;
5151
4824
  const de_ModifyAquaConfigurationCommandError = async (output, context) => {
@@ -5166,10 +4839,9 @@ const de_ModifyAquaConfigurationCommandError = async (output, context) => {
5166
4839
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
5167
4840
  default:
5168
4841
  const parsedBody = parsedOutput.body;
5169
- (0, smithy_client_1.throwDefaultError)({
4842
+ return throwDefaultError({
5170
4843
  output,
5171
4844
  parsedBody: parsedBody.Error,
5172
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
5173
4845
  errorCode,
5174
4846
  });
5175
4847
  }
@@ -5185,7 +4857,7 @@ const de_ModifyAuthenticationProfileCommand = async (output, context) => {
5185
4857
  $metadata: deserializeMetadata(output),
5186
4858
  ...contents,
5187
4859
  };
5188
- return Promise.resolve(response);
4860
+ return response;
5189
4861
  };
5190
4862
  exports.de_ModifyAuthenticationProfileCommand = de_ModifyAuthenticationProfileCommand;
5191
4863
  const de_ModifyAuthenticationProfileCommandError = async (output, context) => {
@@ -5206,10 +4878,9 @@ const de_ModifyAuthenticationProfileCommandError = async (output, context) => {
5206
4878
  throw await de_InvalidAuthenticationProfileRequestFaultRes(parsedOutput, context);
5207
4879
  default:
5208
4880
  const parsedBody = parsedOutput.body;
5209
- (0, smithy_client_1.throwDefaultError)({
4881
+ return throwDefaultError({
5210
4882
  output,
5211
4883
  parsedBody: parsedBody.Error,
5212
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
5213
4884
  errorCode,
5214
4885
  });
5215
4886
  }
@@ -5225,7 +4896,7 @@ const de_ModifyClusterCommand = async (output, context) => {
5225
4896
  $metadata: deserializeMetadata(output),
5226
4897
  ...contents,
5227
4898
  };
5228
- return Promise.resolve(response);
4899
+ return response;
5229
4900
  };
5230
4901
  exports.de_ModifyClusterCommand = de_ModifyClusterCommand;
5231
4902
  const de_ModifyClusterCommandError = async (output, context) => {
@@ -5294,10 +4965,9 @@ const de_ModifyClusterCommandError = async (output, context) => {
5294
4965
  throw await de_UnsupportedOptionFaultRes(parsedOutput, context);
5295
4966
  default:
5296
4967
  const parsedBody = parsedOutput.body;
5297
- (0, smithy_client_1.throwDefaultError)({
4968
+ return throwDefaultError({
5298
4969
  output,
5299
4970
  parsedBody: parsedBody.Error,
5300
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
5301
4971
  errorCode,
5302
4972
  });
5303
4973
  }
@@ -5313,7 +4983,7 @@ const de_ModifyClusterDbRevisionCommand = async (output, context) => {
5313
4983
  $metadata: deserializeMetadata(output),
5314
4984
  ...contents,
5315
4985
  };
5316
- return Promise.resolve(response);
4986
+ return response;
5317
4987
  };
5318
4988
  exports.de_ModifyClusterDbRevisionCommand = de_ModifyClusterDbRevisionCommand;
5319
4989
  const de_ModifyClusterDbRevisionCommandError = async (output, context) => {
@@ -5334,10 +5004,9 @@ const de_ModifyClusterDbRevisionCommandError = async (output, context) => {
5334
5004
  throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
5335
5005
  default:
5336
5006
  const parsedBody = parsedOutput.body;
5337
- (0, smithy_client_1.throwDefaultError)({
5007
+ return throwDefaultError({
5338
5008
  output,
5339
5009
  parsedBody: parsedBody.Error,
5340
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
5341
5010
  errorCode,
5342
5011
  });
5343
5012
  }
@@ -5353,7 +5022,7 @@ const de_ModifyClusterIamRolesCommand = async (output, context) => {
5353
5022
  $metadata: deserializeMetadata(output),
5354
5023
  ...contents,
5355
5024
  };
5356
- return Promise.resolve(response);
5025
+ return response;
5357
5026
  };
5358
5027
  exports.de_ModifyClusterIamRolesCommand = de_ModifyClusterIamRolesCommand;
5359
5028
  const de_ModifyClusterIamRolesCommandError = async (output, context) => {
@@ -5371,10 +5040,9 @@ const de_ModifyClusterIamRolesCommandError = async (output, context) => {
5371
5040
  throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
5372
5041
  default:
5373
5042
  const parsedBody = parsedOutput.body;
5374
- (0, smithy_client_1.throwDefaultError)({
5043
+ return throwDefaultError({
5375
5044
  output,
5376
5045
  parsedBody: parsedBody.Error,
5377
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
5378
5046
  errorCode,
5379
5047
  });
5380
5048
  }
@@ -5390,7 +5058,7 @@ const de_ModifyClusterMaintenanceCommand = async (output, context) => {
5390
5058
  $metadata: deserializeMetadata(output),
5391
5059
  ...contents,
5392
5060
  };
5393
- return Promise.resolve(response);
5061
+ return response;
5394
5062
  };
5395
5063
  exports.de_ModifyClusterMaintenanceCommand = de_ModifyClusterMaintenanceCommand;
5396
5064
  const de_ModifyClusterMaintenanceCommandError = async (output, context) => {
@@ -5408,10 +5076,9 @@ const de_ModifyClusterMaintenanceCommandError = async (output, context) => {
5408
5076
  throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
5409
5077
  default:
5410
5078
  const parsedBody = parsedOutput.body;
5411
- (0, smithy_client_1.throwDefaultError)({
5079
+ return throwDefaultError({
5412
5080
  output,
5413
5081
  parsedBody: parsedBody.Error,
5414
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
5415
5082
  errorCode,
5416
5083
  });
5417
5084
  }
@@ -5427,7 +5094,7 @@ const de_ModifyClusterParameterGroupCommand = async (output, context) => {
5427
5094
  $metadata: deserializeMetadata(output),
5428
5095
  ...contents,
5429
5096
  };
5430
- return Promise.resolve(response);
5097
+ return response;
5431
5098
  };
5432
5099
  exports.de_ModifyClusterParameterGroupCommand = de_ModifyClusterParameterGroupCommand;
5433
5100
  const de_ModifyClusterParameterGroupCommandError = async (output, context) => {
@@ -5445,10 +5112,9 @@ const de_ModifyClusterParameterGroupCommandError = async (output, context) => {
5445
5112
  throw await de_InvalidClusterParameterGroupStateFaultRes(parsedOutput, context);
5446
5113
  default:
5447
5114
  const parsedBody = parsedOutput.body;
5448
- (0, smithy_client_1.throwDefaultError)({
5115
+ return throwDefaultError({
5449
5116
  output,
5450
5117
  parsedBody: parsedBody.Error,
5451
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
5452
5118
  errorCode,
5453
5119
  });
5454
5120
  }
@@ -5464,7 +5130,7 @@ const de_ModifyClusterSnapshotCommand = async (output, context) => {
5464
5130
  $metadata: deserializeMetadata(output),
5465
5131
  ...contents,
5466
5132
  };
5467
- return Promise.resolve(response);
5133
+ return response;
5468
5134
  };
5469
5135
  exports.de_ModifyClusterSnapshotCommand = de_ModifyClusterSnapshotCommand;
5470
5136
  const de_ModifyClusterSnapshotCommandError = async (output, context) => {
@@ -5485,10 +5151,9 @@ const de_ModifyClusterSnapshotCommandError = async (output, context) => {
5485
5151
  throw await de_InvalidRetentionPeriodFaultRes(parsedOutput, context);
5486
5152
  default:
5487
5153
  const parsedBody = parsedOutput.body;
5488
- (0, smithy_client_1.throwDefaultError)({
5154
+ return throwDefaultError({
5489
5155
  output,
5490
5156
  parsedBody: parsedBody.Error,
5491
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
5492
5157
  errorCode,
5493
5158
  });
5494
5159
  }
@@ -5501,7 +5166,7 @@ const de_ModifyClusterSnapshotScheduleCommand = async (output, context) => {
5501
5166
  const response = {
5502
5167
  $metadata: deserializeMetadata(output),
5503
5168
  };
5504
- return Promise.resolve(response);
5169
+ return response;
5505
5170
  };
5506
5171
  exports.de_ModifyClusterSnapshotScheduleCommand = de_ModifyClusterSnapshotScheduleCommand;
5507
5172
  const de_ModifyClusterSnapshotScheduleCommandError = async (output, context) => {
@@ -5522,10 +5187,9 @@ const de_ModifyClusterSnapshotScheduleCommandError = async (output, context) =>
5522
5187
  throw await de_SnapshotScheduleNotFoundFaultRes(parsedOutput, context);
5523
5188
  default:
5524
5189
  const parsedBody = parsedOutput.body;
5525
- (0, smithy_client_1.throwDefaultError)({
5190
+ return throwDefaultError({
5526
5191
  output,
5527
5192
  parsedBody: parsedBody.Error,
5528
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
5529
5193
  errorCode,
5530
5194
  });
5531
5195
  }
@@ -5541,7 +5205,7 @@ const de_ModifyClusterSubnetGroupCommand = async (output, context) => {
5541
5205
  $metadata: deserializeMetadata(output),
5542
5206
  ...contents,
5543
5207
  };
5544
- return Promise.resolve(response);
5208
+ return response;
5545
5209
  };
5546
5210
  exports.de_ModifyClusterSubnetGroupCommand = de_ModifyClusterSubnetGroupCommand;
5547
5211
  const de_ModifyClusterSubnetGroupCommandError = async (output, context) => {
@@ -5571,10 +5235,9 @@ const de_ModifyClusterSubnetGroupCommandError = async (output, context) => {
5571
5235
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
5572
5236
  default:
5573
5237
  const parsedBody = parsedOutput.body;
5574
- (0, smithy_client_1.throwDefaultError)({
5238
+ return throwDefaultError({
5575
5239
  output,
5576
5240
  parsedBody: parsedBody.Error,
5577
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
5578
5241
  errorCode,
5579
5242
  });
5580
5243
  }
@@ -5590,7 +5253,7 @@ const de_ModifyEndpointAccessCommand = async (output, context) => {
5590
5253
  $metadata: deserializeMetadata(output),
5591
5254
  ...contents,
5592
5255
  };
5593
- return Promise.resolve(response);
5256
+ return response;
5594
5257
  };
5595
5258
  exports.de_ModifyEndpointAccessCommand = de_ModifyEndpointAccessCommand;
5596
5259
  const de_ModifyEndpointAccessCommandError = async (output, context) => {
@@ -5620,10 +5283,9 @@ const de_ModifyEndpointAccessCommandError = async (output, context) => {
5620
5283
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
5621
5284
  default:
5622
5285
  const parsedBody = parsedOutput.body;
5623
- (0, smithy_client_1.throwDefaultError)({
5286
+ return throwDefaultError({
5624
5287
  output,
5625
5288
  parsedBody: parsedBody.Error,
5626
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
5627
5289
  errorCode,
5628
5290
  });
5629
5291
  }
@@ -5639,7 +5301,7 @@ const de_ModifyEventSubscriptionCommand = async (output, context) => {
5639
5301
  $metadata: deserializeMetadata(output),
5640
5302
  ...contents,
5641
5303
  };
5642
- return Promise.resolve(response);
5304
+ return response;
5643
5305
  };
5644
5306
  exports.de_ModifyEventSubscriptionCommand = de_ModifyEventSubscriptionCommand;
5645
5307
  const de_ModifyEventSubscriptionCommandError = async (output, context) => {
@@ -5678,10 +5340,9 @@ const de_ModifyEventSubscriptionCommandError = async (output, context) => {
5678
5340
  throw await de_SubscriptionSeverityNotFoundFaultRes(parsedOutput, context);
5679
5341
  default:
5680
5342
  const parsedBody = parsedOutput.body;
5681
- (0, smithy_client_1.throwDefaultError)({
5343
+ return throwDefaultError({
5682
5344
  output,
5683
5345
  parsedBody: parsedBody.Error,
5684
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
5685
5346
  errorCode,
5686
5347
  });
5687
5348
  }
@@ -5697,7 +5358,7 @@ const de_ModifyScheduledActionCommand = async (output, context) => {
5697
5358
  $metadata: deserializeMetadata(output),
5698
5359
  ...contents,
5699
5360
  };
5700
- return Promise.resolve(response);
5361
+ return response;
5701
5362
  };
5702
5363
  exports.de_ModifyScheduledActionCommand = de_ModifyScheduledActionCommand;
5703
5364
  const de_ModifyScheduledActionCommandError = async (output, context) => {
@@ -5724,10 +5385,9 @@ const de_ModifyScheduledActionCommandError = async (output, context) => {
5724
5385
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
5725
5386
  default:
5726
5387
  const parsedBody = parsedOutput.body;
5727
- (0, smithy_client_1.throwDefaultError)({
5388
+ return throwDefaultError({
5728
5389
  output,
5729
5390
  parsedBody: parsedBody.Error,
5730
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
5731
5391
  errorCode,
5732
5392
  });
5733
5393
  }
@@ -5743,7 +5403,7 @@ const de_ModifySnapshotCopyRetentionPeriodCommand = async (output, context) => {
5743
5403
  $metadata: deserializeMetadata(output),
5744
5404
  ...contents,
5745
5405
  };
5746
- return Promise.resolve(response);
5406
+ return response;
5747
5407
  };
5748
5408
  exports.de_ModifySnapshotCopyRetentionPeriodCommand = de_ModifySnapshotCopyRetentionPeriodCommand;
5749
5409
  const de_ModifySnapshotCopyRetentionPeriodCommandError = async (output, context) => {
@@ -5770,10 +5430,9 @@ const de_ModifySnapshotCopyRetentionPeriodCommandError = async (output, context)
5770
5430
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
5771
5431
  default:
5772
5432
  const parsedBody = parsedOutput.body;
5773
- (0, smithy_client_1.throwDefaultError)({
5433
+ return throwDefaultError({
5774
5434
  output,
5775
5435
  parsedBody: parsedBody.Error,
5776
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
5777
5436
  errorCode,
5778
5437
  });
5779
5438
  }
@@ -5789,7 +5448,7 @@ const de_ModifySnapshotScheduleCommand = async (output, context) => {
5789
5448
  $metadata: deserializeMetadata(output),
5790
5449
  ...contents,
5791
5450
  };
5792
- return Promise.resolve(response);
5451
+ return response;
5793
5452
  };
5794
5453
  exports.de_ModifySnapshotScheduleCommand = de_ModifySnapshotScheduleCommand;
5795
5454
  const de_ModifySnapshotScheduleCommandError = async (output, context) => {
@@ -5810,10 +5469,9 @@ const de_ModifySnapshotScheduleCommandError = async (output, context) => {
5810
5469
  throw await de_SnapshotScheduleUpdateInProgressFaultRes(parsedOutput, context);
5811
5470
  default:
5812
5471
  const parsedBody = parsedOutput.body;
5813
- (0, smithy_client_1.throwDefaultError)({
5472
+ return throwDefaultError({
5814
5473
  output,
5815
5474
  parsedBody: parsedBody.Error,
5816
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
5817
5475
  errorCode,
5818
5476
  });
5819
5477
  }
@@ -5829,7 +5487,7 @@ const de_ModifyUsageLimitCommand = async (output, context) => {
5829
5487
  $metadata: deserializeMetadata(output),
5830
5488
  ...contents,
5831
5489
  };
5832
- return Promise.resolve(response);
5490
+ return response;
5833
5491
  };
5834
5492
  exports.de_ModifyUsageLimitCommand = de_ModifyUsageLimitCommand;
5835
5493
  const de_ModifyUsageLimitCommandError = async (output, context) => {
@@ -5850,10 +5508,9 @@ const de_ModifyUsageLimitCommandError = async (output, context) => {
5850
5508
  throw await de_UsageLimitNotFoundFaultRes(parsedOutput, context);
5851
5509
  default:
5852
5510
  const parsedBody = parsedOutput.body;
5853
- (0, smithy_client_1.throwDefaultError)({
5511
+ return throwDefaultError({
5854
5512
  output,
5855
5513
  parsedBody: parsedBody.Error,
5856
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
5857
5514
  errorCode,
5858
5515
  });
5859
5516
  }
@@ -5869,7 +5526,7 @@ const de_PauseClusterCommand = async (output, context) => {
5869
5526
  $metadata: deserializeMetadata(output),
5870
5527
  ...contents,
5871
5528
  };
5872
- return Promise.resolve(response);
5529
+ return response;
5873
5530
  };
5874
5531
  exports.de_PauseClusterCommand = de_PauseClusterCommand;
5875
5532
  const de_PauseClusterCommandError = async (output, context) => {
@@ -5887,10 +5544,9 @@ const de_PauseClusterCommandError = async (output, context) => {
5887
5544
  throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
5888
5545
  default:
5889
5546
  const parsedBody = parsedOutput.body;
5890
- (0, smithy_client_1.throwDefaultError)({
5547
+ return throwDefaultError({
5891
5548
  output,
5892
5549
  parsedBody: parsedBody.Error,
5893
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
5894
5550
  errorCode,
5895
5551
  });
5896
5552
  }
@@ -5906,7 +5562,7 @@ const de_PurchaseReservedNodeOfferingCommand = async (output, context) => {
5906
5562
  $metadata: deserializeMetadata(output),
5907
5563
  ...contents,
5908
5564
  };
5909
- return Promise.resolve(response);
5565
+ return response;
5910
5566
  };
5911
5567
  exports.de_PurchaseReservedNodeOfferingCommand = de_PurchaseReservedNodeOfferingCommand;
5912
5568
  const de_PurchaseReservedNodeOfferingCommandError = async (output, context) => {
@@ -5930,10 +5586,9 @@ const de_PurchaseReservedNodeOfferingCommandError = async (output, context) => {
5930
5586
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
5931
5587
  default:
5932
5588
  const parsedBody = parsedOutput.body;
5933
- (0, smithy_client_1.throwDefaultError)({
5589
+ return throwDefaultError({
5934
5590
  output,
5935
5591
  parsedBody: parsedBody.Error,
5936
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
5937
5592
  errorCode,
5938
5593
  });
5939
5594
  }
@@ -5949,7 +5604,7 @@ const de_RebootClusterCommand = async (output, context) => {
5949
5604
  $metadata: deserializeMetadata(output),
5950
5605
  ...contents,
5951
5606
  };
5952
- return Promise.resolve(response);
5607
+ return response;
5953
5608
  };
5954
5609
  exports.de_RebootClusterCommand = de_RebootClusterCommand;
5955
5610
  const de_RebootClusterCommandError = async (output, context) => {
@@ -5967,10 +5622,9 @@ const de_RebootClusterCommandError = async (output, context) => {
5967
5622
  throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
5968
5623
  default:
5969
5624
  const parsedBody = parsedOutput.body;
5970
- (0, smithy_client_1.throwDefaultError)({
5625
+ return throwDefaultError({
5971
5626
  output,
5972
5627
  parsedBody: parsedBody.Error,
5973
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
5974
5628
  errorCode,
5975
5629
  });
5976
5630
  }
@@ -5986,7 +5640,7 @@ const de_RejectDataShareCommand = async (output, context) => {
5986
5640
  $metadata: deserializeMetadata(output),
5987
5641
  ...contents,
5988
5642
  };
5989
- return Promise.resolve(response);
5643
+ return response;
5990
5644
  };
5991
5645
  exports.de_RejectDataShareCommand = de_RejectDataShareCommand;
5992
5646
  const de_RejectDataShareCommandError = async (output, context) => {
@@ -6001,10 +5655,9 @@ const de_RejectDataShareCommandError = async (output, context) => {
6001
5655
  throw await de_InvalidDataShareFaultRes(parsedOutput, context);
6002
5656
  default:
6003
5657
  const parsedBody = parsedOutput.body;
6004
- (0, smithy_client_1.throwDefaultError)({
5658
+ return throwDefaultError({
6005
5659
  output,
6006
5660
  parsedBody: parsedBody.Error,
6007
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
6008
5661
  errorCode,
6009
5662
  });
6010
5663
  }
@@ -6020,7 +5673,7 @@ const de_ResetClusterParameterGroupCommand = async (output, context) => {
6020
5673
  $metadata: deserializeMetadata(output),
6021
5674
  ...contents,
6022
5675
  };
6023
- return Promise.resolve(response);
5676
+ return response;
6024
5677
  };
6025
5678
  exports.de_ResetClusterParameterGroupCommand = de_ResetClusterParameterGroupCommand;
6026
5679
  const de_ResetClusterParameterGroupCommandError = async (output, context) => {
@@ -6038,10 +5691,9 @@ const de_ResetClusterParameterGroupCommandError = async (output, context) => {
6038
5691
  throw await de_InvalidClusterParameterGroupStateFaultRes(parsedOutput, context);
6039
5692
  default:
6040
5693
  const parsedBody = parsedOutput.body;
6041
- (0, smithy_client_1.throwDefaultError)({
5694
+ return throwDefaultError({
6042
5695
  output,
6043
5696
  parsedBody: parsedBody.Error,
6044
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
6045
5697
  errorCode,
6046
5698
  });
6047
5699
  }
@@ -6057,7 +5709,7 @@ const de_ResizeClusterCommand = async (output, context) => {
6057
5709
  $metadata: deserializeMetadata(output),
6058
5710
  ...contents,
6059
5711
  };
6060
- return Promise.resolve(response);
5712
+ return response;
6061
5713
  };
6062
5714
  exports.de_ResizeClusterCommand = de_ResizeClusterCommand;
6063
5715
  const de_ResizeClusterCommandError = async (output, context) => {
@@ -6114,10 +5766,9 @@ const de_ResizeClusterCommandError = async (output, context) => {
6114
5766
  throw await de_UnsupportedOptionFaultRes(parsedOutput, context);
6115
5767
  default:
6116
5768
  const parsedBody = parsedOutput.body;
6117
- (0, smithy_client_1.throwDefaultError)({
5769
+ return throwDefaultError({
6118
5770
  output,
6119
5771
  parsedBody: parsedBody.Error,
6120
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
6121
5772
  errorCode,
6122
5773
  });
6123
5774
  }
@@ -6133,7 +5784,7 @@ const de_RestoreFromClusterSnapshotCommand = async (output, context) => {
6133
5784
  $metadata: deserializeMetadata(output),
6134
5785
  ...contents,
6135
5786
  };
6136
- return Promise.resolve(response);
5787
+ return response;
6137
5788
  };
6138
5789
  exports.de_RestoreFromClusterSnapshotCommand = de_RestoreFromClusterSnapshotCommand;
6139
5790
  const de_RestoreFromClusterSnapshotCommandError = async (output, context) => {
@@ -6241,10 +5892,9 @@ const de_RestoreFromClusterSnapshotCommandError = async (output, context) => {
6241
5892
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
6242
5893
  default:
6243
5894
  const parsedBody = parsedOutput.body;
6244
- (0, smithy_client_1.throwDefaultError)({
5895
+ return throwDefaultError({
6245
5896
  output,
6246
5897
  parsedBody: parsedBody.Error,
6247
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
6248
5898
  errorCode,
6249
5899
  });
6250
5900
  }
@@ -6260,7 +5910,7 @@ const de_RestoreTableFromClusterSnapshotCommand = async (output, context) => {
6260
5910
  $metadata: deserializeMetadata(output),
6261
5911
  ...contents,
6262
5912
  };
6263
- return Promise.resolve(response);
5913
+ return response;
6264
5914
  };
6265
5915
  exports.de_RestoreTableFromClusterSnapshotCommand = de_RestoreTableFromClusterSnapshotCommand;
6266
5916
  const de_RestoreTableFromClusterSnapshotCommandError = async (output, context) => {
@@ -6293,10 +5943,9 @@ const de_RestoreTableFromClusterSnapshotCommandError = async (output, context) =
6293
5943
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
6294
5944
  default:
6295
5945
  const parsedBody = parsedOutput.body;
6296
- (0, smithy_client_1.throwDefaultError)({
5946
+ return throwDefaultError({
6297
5947
  output,
6298
5948
  parsedBody: parsedBody.Error,
6299
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
6300
5949
  errorCode,
6301
5950
  });
6302
5951
  }
@@ -6312,7 +5961,7 @@ const de_ResumeClusterCommand = async (output, context) => {
6312
5961
  $metadata: deserializeMetadata(output),
6313
5962
  ...contents,
6314
5963
  };
6315
- return Promise.resolve(response);
5964
+ return response;
6316
5965
  };
6317
5966
  exports.de_ResumeClusterCommand = de_ResumeClusterCommand;
6318
5967
  const de_ResumeClusterCommandError = async (output, context) => {
@@ -6333,10 +5982,9 @@ const de_ResumeClusterCommandError = async (output, context) => {
6333
5982
  throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
6334
5983
  default:
6335
5984
  const parsedBody = parsedOutput.body;
6336
- (0, smithy_client_1.throwDefaultError)({
5985
+ return throwDefaultError({
6337
5986
  output,
6338
5987
  parsedBody: parsedBody.Error,
6339
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
6340
5988
  errorCode,
6341
5989
  });
6342
5990
  }
@@ -6352,7 +6000,7 @@ const de_RevokeClusterSecurityGroupIngressCommand = async (output, context) => {
6352
6000
  $metadata: deserializeMetadata(output),
6353
6001
  ...contents,
6354
6002
  };
6355
- return Promise.resolve(response);
6003
+ return response;
6356
6004
  };
6357
6005
  exports.de_RevokeClusterSecurityGroupIngressCommand = de_RevokeClusterSecurityGroupIngressCommand;
6358
6006
  const de_RevokeClusterSecurityGroupIngressCommandError = async (output, context) => {
@@ -6373,10 +6021,9 @@ const de_RevokeClusterSecurityGroupIngressCommandError = async (output, context)
6373
6021
  throw await de_InvalidClusterSecurityGroupStateFaultRes(parsedOutput, context);
6374
6022
  default:
6375
6023
  const parsedBody = parsedOutput.body;
6376
- (0, smithy_client_1.throwDefaultError)({
6024
+ return throwDefaultError({
6377
6025
  output,
6378
6026
  parsedBody: parsedBody.Error,
6379
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
6380
6027
  errorCode,
6381
6028
  });
6382
6029
  }
@@ -6392,7 +6039,7 @@ const de_RevokeEndpointAccessCommand = async (output, context) => {
6392
6039
  $metadata: deserializeMetadata(output),
6393
6040
  ...contents,
6394
6041
  };
6395
- return Promise.resolve(response);
6042
+ return response;
6396
6043
  };
6397
6044
  exports.de_RevokeEndpointAccessCommand = de_RevokeEndpointAccessCommand;
6398
6045
  const de_RevokeEndpointAccessCommandError = async (output, context) => {
@@ -6425,10 +6072,9 @@ const de_RevokeEndpointAccessCommandError = async (output, context) => {
6425
6072
  throw await de_InvalidEndpointStateFaultRes(parsedOutput, context);
6426
6073
  default:
6427
6074
  const parsedBody = parsedOutput.body;
6428
- (0, smithy_client_1.throwDefaultError)({
6075
+ return throwDefaultError({
6429
6076
  output,
6430
6077
  parsedBody: parsedBody.Error,
6431
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
6432
6078
  errorCode,
6433
6079
  });
6434
6080
  }
@@ -6444,7 +6090,7 @@ const de_RevokeSnapshotAccessCommand = async (output, context) => {
6444
6090
  $metadata: deserializeMetadata(output),
6445
6091
  ...contents,
6446
6092
  };
6447
- return Promise.resolve(response);
6093
+ return response;
6448
6094
  };
6449
6095
  exports.de_RevokeSnapshotAccessCommand = de_RevokeSnapshotAccessCommand;
6450
6096
  const de_RevokeSnapshotAccessCommandError = async (output, context) => {
@@ -6468,10 +6114,9 @@ const de_RevokeSnapshotAccessCommandError = async (output, context) => {
6468
6114
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
6469
6115
  default:
6470
6116
  const parsedBody = parsedOutput.body;
6471
- (0, smithy_client_1.throwDefaultError)({
6117
+ return throwDefaultError({
6472
6118
  output,
6473
6119
  parsedBody: parsedBody.Error,
6474
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
6475
6120
  errorCode,
6476
6121
  });
6477
6122
  }
@@ -6487,7 +6132,7 @@ const de_RotateEncryptionKeyCommand = async (output, context) => {
6487
6132
  $metadata: deserializeMetadata(output),
6488
6133
  ...contents,
6489
6134
  };
6490
- return Promise.resolve(response);
6135
+ return response;
6491
6136
  };
6492
6137
  exports.de_RotateEncryptionKeyCommand = de_RotateEncryptionKeyCommand;
6493
6138
  const de_RotateEncryptionKeyCommandError = async (output, context) => {
@@ -6508,10 +6153,9 @@ const de_RotateEncryptionKeyCommandError = async (output, context) => {
6508
6153
  throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
6509
6154
  default:
6510
6155
  const parsedBody = parsedOutput.body;
6511
- (0, smithy_client_1.throwDefaultError)({
6156
+ return throwDefaultError({
6512
6157
  output,
6513
6158
  parsedBody: parsedBody.Error,
6514
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
6515
6159
  errorCode,
6516
6160
  });
6517
6161
  }
@@ -6527,7 +6171,7 @@ const de_UpdatePartnerStatusCommand = async (output, context) => {
6527
6171
  $metadata: deserializeMetadata(output),
6528
6172
  ...contents,
6529
6173
  };
6530
- return Promise.resolve(response);
6174
+ return response;
6531
6175
  };
6532
6176
  exports.de_UpdatePartnerStatusCommand = de_UpdatePartnerStatusCommand;
6533
6177
  const de_UpdatePartnerStatusCommandError = async (output, context) => {
@@ -6548,10 +6192,9 @@ const de_UpdatePartnerStatusCommandError = async (output, context) => {
6548
6192
  throw await de_UnauthorizedPartnerIntegrationFaultRes(parsedOutput, context);
6549
6193
  default:
6550
6194
  const parsedBody = parsedOutput.body;
6551
- (0, smithy_client_1.throwDefaultError)({
6195
+ return throwDefaultError({
6552
6196
  output,
6553
6197
  parsedBody: parsedBody.Error,
6554
- exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
6555
6198
  errorCode,
6556
6199
  });
6557
6200
  }
@@ -14478,6 +14121,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
14478
14121
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
14479
14122
  };
14480
14123
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
14124
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(RedshiftServiceException_1.RedshiftServiceException);
14481
14125
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
14482
14126
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
14483
14127
  const contents = {
@@ -14496,6 +14140,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
14496
14140
  }
14497
14141
  return new protocol_http_1.HttpRequest(contents);
14498
14142
  };
14143
+ const SHARED_HEADERS = {
14144
+ "content-type": "application/x-www-form-urlencoded",
14145
+ };
14499
14146
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
14500
14147
  if (encoded.length) {
14501
14148
  const parser = new fast_xml_parser_1.XMLParser({