@aws-sdk/client-elasticache 3.310.0 → 3.315.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,9 +9,7 @@ const fast_xml_parser_1 = require("fast-xml-parser");
9
9
  const ElastiCacheServiceException_1 = require("../models/ElastiCacheServiceException");
10
10
  const models_0_1 = require("../models/models_0");
11
11
  const se_AddTagsToResourceCommand = async (input, context) => {
12
- const headers = {
13
- "content-type": "application/x-www-form-urlencoded",
14
- };
12
+ const headers = SHARED_HEADERS;
15
13
  let body;
16
14
  body = buildFormUrlencodedString({
17
15
  ...se_AddTagsToResourceMessage(input, context),
@@ -22,9 +20,7 @@ const se_AddTagsToResourceCommand = async (input, context) => {
22
20
  };
23
21
  exports.se_AddTagsToResourceCommand = se_AddTagsToResourceCommand;
24
22
  const se_AuthorizeCacheSecurityGroupIngressCommand = async (input, context) => {
25
- const headers = {
26
- "content-type": "application/x-www-form-urlencoded",
27
- };
23
+ const headers = SHARED_HEADERS;
28
24
  let body;
29
25
  body = buildFormUrlencodedString({
30
26
  ...se_AuthorizeCacheSecurityGroupIngressMessage(input, context),
@@ -35,9 +31,7 @@ const se_AuthorizeCacheSecurityGroupIngressCommand = async (input, context) => {
35
31
  };
36
32
  exports.se_AuthorizeCacheSecurityGroupIngressCommand = se_AuthorizeCacheSecurityGroupIngressCommand;
37
33
  const se_BatchApplyUpdateActionCommand = async (input, context) => {
38
- const headers = {
39
- "content-type": "application/x-www-form-urlencoded",
40
- };
34
+ const headers = SHARED_HEADERS;
41
35
  let body;
42
36
  body = buildFormUrlencodedString({
43
37
  ...se_BatchApplyUpdateActionMessage(input, context),
@@ -48,9 +42,7 @@ const se_BatchApplyUpdateActionCommand = async (input, context) => {
48
42
  };
49
43
  exports.se_BatchApplyUpdateActionCommand = se_BatchApplyUpdateActionCommand;
50
44
  const se_BatchStopUpdateActionCommand = async (input, context) => {
51
- const headers = {
52
- "content-type": "application/x-www-form-urlencoded",
53
- };
45
+ const headers = SHARED_HEADERS;
54
46
  let body;
55
47
  body = buildFormUrlencodedString({
56
48
  ...se_BatchStopUpdateActionMessage(input, context),
@@ -61,9 +53,7 @@ const se_BatchStopUpdateActionCommand = async (input, context) => {
61
53
  };
62
54
  exports.se_BatchStopUpdateActionCommand = se_BatchStopUpdateActionCommand;
63
55
  const se_CompleteMigrationCommand = async (input, context) => {
64
- const headers = {
65
- "content-type": "application/x-www-form-urlencoded",
66
- };
56
+ const headers = SHARED_HEADERS;
67
57
  let body;
68
58
  body = buildFormUrlencodedString({
69
59
  ...se_CompleteMigrationMessage(input, context),
@@ -74,9 +64,7 @@ const se_CompleteMigrationCommand = async (input, context) => {
74
64
  };
75
65
  exports.se_CompleteMigrationCommand = se_CompleteMigrationCommand;
76
66
  const se_CopySnapshotCommand = async (input, context) => {
77
- const headers = {
78
- "content-type": "application/x-www-form-urlencoded",
79
- };
67
+ const headers = SHARED_HEADERS;
80
68
  let body;
81
69
  body = buildFormUrlencodedString({
82
70
  ...se_CopySnapshotMessage(input, context),
@@ -87,9 +75,7 @@ const se_CopySnapshotCommand = async (input, context) => {
87
75
  };
88
76
  exports.se_CopySnapshotCommand = se_CopySnapshotCommand;
89
77
  const se_CreateCacheClusterCommand = async (input, context) => {
90
- const headers = {
91
- "content-type": "application/x-www-form-urlencoded",
92
- };
78
+ const headers = SHARED_HEADERS;
93
79
  let body;
94
80
  body = buildFormUrlencodedString({
95
81
  ...se_CreateCacheClusterMessage(input, context),
@@ -100,9 +86,7 @@ const se_CreateCacheClusterCommand = async (input, context) => {
100
86
  };
101
87
  exports.se_CreateCacheClusterCommand = se_CreateCacheClusterCommand;
102
88
  const se_CreateCacheParameterGroupCommand = async (input, context) => {
103
- const headers = {
104
- "content-type": "application/x-www-form-urlencoded",
105
- };
89
+ const headers = SHARED_HEADERS;
106
90
  let body;
107
91
  body = buildFormUrlencodedString({
108
92
  ...se_CreateCacheParameterGroupMessage(input, context),
@@ -113,9 +97,7 @@ const se_CreateCacheParameterGroupCommand = async (input, context) => {
113
97
  };
114
98
  exports.se_CreateCacheParameterGroupCommand = se_CreateCacheParameterGroupCommand;
115
99
  const se_CreateCacheSecurityGroupCommand = async (input, context) => {
116
- const headers = {
117
- "content-type": "application/x-www-form-urlencoded",
118
- };
100
+ const headers = SHARED_HEADERS;
119
101
  let body;
120
102
  body = buildFormUrlencodedString({
121
103
  ...se_CreateCacheSecurityGroupMessage(input, context),
@@ -126,9 +108,7 @@ const se_CreateCacheSecurityGroupCommand = async (input, context) => {
126
108
  };
127
109
  exports.se_CreateCacheSecurityGroupCommand = se_CreateCacheSecurityGroupCommand;
128
110
  const se_CreateCacheSubnetGroupCommand = async (input, context) => {
129
- const headers = {
130
- "content-type": "application/x-www-form-urlencoded",
131
- };
111
+ const headers = SHARED_HEADERS;
132
112
  let body;
133
113
  body = buildFormUrlencodedString({
134
114
  ...se_CreateCacheSubnetGroupMessage(input, context),
@@ -139,9 +119,7 @@ const se_CreateCacheSubnetGroupCommand = async (input, context) => {
139
119
  };
140
120
  exports.se_CreateCacheSubnetGroupCommand = se_CreateCacheSubnetGroupCommand;
141
121
  const se_CreateGlobalReplicationGroupCommand = async (input, context) => {
142
- const headers = {
143
- "content-type": "application/x-www-form-urlencoded",
144
- };
122
+ const headers = SHARED_HEADERS;
145
123
  let body;
146
124
  body = buildFormUrlencodedString({
147
125
  ...se_CreateGlobalReplicationGroupMessage(input, context),
@@ -152,9 +130,7 @@ const se_CreateGlobalReplicationGroupCommand = async (input, context) => {
152
130
  };
153
131
  exports.se_CreateGlobalReplicationGroupCommand = se_CreateGlobalReplicationGroupCommand;
154
132
  const se_CreateReplicationGroupCommand = async (input, context) => {
155
- const headers = {
156
- "content-type": "application/x-www-form-urlencoded",
157
- };
133
+ const headers = SHARED_HEADERS;
158
134
  let body;
159
135
  body = buildFormUrlencodedString({
160
136
  ...se_CreateReplicationGroupMessage(input, context),
@@ -165,9 +141,7 @@ const se_CreateReplicationGroupCommand = async (input, context) => {
165
141
  };
166
142
  exports.se_CreateReplicationGroupCommand = se_CreateReplicationGroupCommand;
167
143
  const se_CreateSnapshotCommand = async (input, context) => {
168
- const headers = {
169
- "content-type": "application/x-www-form-urlencoded",
170
- };
144
+ const headers = SHARED_HEADERS;
171
145
  let body;
172
146
  body = buildFormUrlencodedString({
173
147
  ...se_CreateSnapshotMessage(input, context),
@@ -178,9 +152,7 @@ const se_CreateSnapshotCommand = async (input, context) => {
178
152
  };
179
153
  exports.se_CreateSnapshotCommand = se_CreateSnapshotCommand;
180
154
  const se_CreateUserCommand = async (input, context) => {
181
- const headers = {
182
- "content-type": "application/x-www-form-urlencoded",
183
- };
155
+ const headers = SHARED_HEADERS;
184
156
  let body;
185
157
  body = buildFormUrlencodedString({
186
158
  ...se_CreateUserMessage(input, context),
@@ -191,9 +163,7 @@ const se_CreateUserCommand = async (input, context) => {
191
163
  };
192
164
  exports.se_CreateUserCommand = se_CreateUserCommand;
193
165
  const se_CreateUserGroupCommand = async (input, context) => {
194
- const headers = {
195
- "content-type": "application/x-www-form-urlencoded",
196
- };
166
+ const headers = SHARED_HEADERS;
197
167
  let body;
198
168
  body = buildFormUrlencodedString({
199
169
  ...se_CreateUserGroupMessage(input, context),
@@ -204,9 +174,7 @@ const se_CreateUserGroupCommand = async (input, context) => {
204
174
  };
205
175
  exports.se_CreateUserGroupCommand = se_CreateUserGroupCommand;
206
176
  const se_DecreaseNodeGroupsInGlobalReplicationGroupCommand = async (input, context) => {
207
- const headers = {
208
- "content-type": "application/x-www-form-urlencoded",
209
- };
177
+ const headers = SHARED_HEADERS;
210
178
  let body;
211
179
  body = buildFormUrlencodedString({
212
180
  ...se_DecreaseNodeGroupsInGlobalReplicationGroupMessage(input, context),
@@ -217,9 +185,7 @@ const se_DecreaseNodeGroupsInGlobalReplicationGroupCommand = async (input, conte
217
185
  };
218
186
  exports.se_DecreaseNodeGroupsInGlobalReplicationGroupCommand = se_DecreaseNodeGroupsInGlobalReplicationGroupCommand;
219
187
  const se_DecreaseReplicaCountCommand = async (input, context) => {
220
- const headers = {
221
- "content-type": "application/x-www-form-urlencoded",
222
- };
188
+ const headers = SHARED_HEADERS;
223
189
  let body;
224
190
  body = buildFormUrlencodedString({
225
191
  ...se_DecreaseReplicaCountMessage(input, context),
@@ -230,9 +196,7 @@ const se_DecreaseReplicaCountCommand = async (input, context) => {
230
196
  };
231
197
  exports.se_DecreaseReplicaCountCommand = se_DecreaseReplicaCountCommand;
232
198
  const se_DeleteCacheClusterCommand = async (input, context) => {
233
- const headers = {
234
- "content-type": "application/x-www-form-urlencoded",
235
- };
199
+ const headers = SHARED_HEADERS;
236
200
  let body;
237
201
  body = buildFormUrlencodedString({
238
202
  ...se_DeleteCacheClusterMessage(input, context),
@@ -243,9 +207,7 @@ const se_DeleteCacheClusterCommand = async (input, context) => {
243
207
  };
244
208
  exports.se_DeleteCacheClusterCommand = se_DeleteCacheClusterCommand;
245
209
  const se_DeleteCacheParameterGroupCommand = async (input, context) => {
246
- const headers = {
247
- "content-type": "application/x-www-form-urlencoded",
248
- };
210
+ const headers = SHARED_HEADERS;
249
211
  let body;
250
212
  body = buildFormUrlencodedString({
251
213
  ...se_DeleteCacheParameterGroupMessage(input, context),
@@ -256,9 +218,7 @@ const se_DeleteCacheParameterGroupCommand = async (input, context) => {
256
218
  };
257
219
  exports.se_DeleteCacheParameterGroupCommand = se_DeleteCacheParameterGroupCommand;
258
220
  const se_DeleteCacheSecurityGroupCommand = async (input, context) => {
259
- const headers = {
260
- "content-type": "application/x-www-form-urlencoded",
261
- };
221
+ const headers = SHARED_HEADERS;
262
222
  let body;
263
223
  body = buildFormUrlencodedString({
264
224
  ...se_DeleteCacheSecurityGroupMessage(input, context),
@@ -269,9 +229,7 @@ const se_DeleteCacheSecurityGroupCommand = async (input, context) => {
269
229
  };
270
230
  exports.se_DeleteCacheSecurityGroupCommand = se_DeleteCacheSecurityGroupCommand;
271
231
  const se_DeleteCacheSubnetGroupCommand = async (input, context) => {
272
- const headers = {
273
- "content-type": "application/x-www-form-urlencoded",
274
- };
232
+ const headers = SHARED_HEADERS;
275
233
  let body;
276
234
  body = buildFormUrlencodedString({
277
235
  ...se_DeleteCacheSubnetGroupMessage(input, context),
@@ -282,9 +240,7 @@ const se_DeleteCacheSubnetGroupCommand = async (input, context) => {
282
240
  };
283
241
  exports.se_DeleteCacheSubnetGroupCommand = se_DeleteCacheSubnetGroupCommand;
284
242
  const se_DeleteGlobalReplicationGroupCommand = async (input, context) => {
285
- const headers = {
286
- "content-type": "application/x-www-form-urlencoded",
287
- };
243
+ const headers = SHARED_HEADERS;
288
244
  let body;
289
245
  body = buildFormUrlencodedString({
290
246
  ...se_DeleteGlobalReplicationGroupMessage(input, context),
@@ -295,9 +251,7 @@ const se_DeleteGlobalReplicationGroupCommand = async (input, context) => {
295
251
  };
296
252
  exports.se_DeleteGlobalReplicationGroupCommand = se_DeleteGlobalReplicationGroupCommand;
297
253
  const se_DeleteReplicationGroupCommand = async (input, context) => {
298
- const headers = {
299
- "content-type": "application/x-www-form-urlencoded",
300
- };
254
+ const headers = SHARED_HEADERS;
301
255
  let body;
302
256
  body = buildFormUrlencodedString({
303
257
  ...se_DeleteReplicationGroupMessage(input, context),
@@ -308,9 +262,7 @@ const se_DeleteReplicationGroupCommand = async (input, context) => {
308
262
  };
309
263
  exports.se_DeleteReplicationGroupCommand = se_DeleteReplicationGroupCommand;
310
264
  const se_DeleteSnapshotCommand = async (input, context) => {
311
- const headers = {
312
- "content-type": "application/x-www-form-urlencoded",
313
- };
265
+ const headers = SHARED_HEADERS;
314
266
  let body;
315
267
  body = buildFormUrlencodedString({
316
268
  ...se_DeleteSnapshotMessage(input, context),
@@ -321,9 +273,7 @@ const se_DeleteSnapshotCommand = async (input, context) => {
321
273
  };
322
274
  exports.se_DeleteSnapshotCommand = se_DeleteSnapshotCommand;
323
275
  const se_DeleteUserCommand = async (input, context) => {
324
- const headers = {
325
- "content-type": "application/x-www-form-urlencoded",
326
- };
276
+ const headers = SHARED_HEADERS;
327
277
  let body;
328
278
  body = buildFormUrlencodedString({
329
279
  ...se_DeleteUserMessage(input, context),
@@ -334,9 +284,7 @@ const se_DeleteUserCommand = async (input, context) => {
334
284
  };
335
285
  exports.se_DeleteUserCommand = se_DeleteUserCommand;
336
286
  const se_DeleteUserGroupCommand = async (input, context) => {
337
- const headers = {
338
- "content-type": "application/x-www-form-urlencoded",
339
- };
287
+ const headers = SHARED_HEADERS;
340
288
  let body;
341
289
  body = buildFormUrlencodedString({
342
290
  ...se_DeleteUserGroupMessage(input, context),
@@ -347,9 +295,7 @@ const se_DeleteUserGroupCommand = async (input, context) => {
347
295
  };
348
296
  exports.se_DeleteUserGroupCommand = se_DeleteUserGroupCommand;
349
297
  const se_DescribeCacheClustersCommand = async (input, context) => {
350
- const headers = {
351
- "content-type": "application/x-www-form-urlencoded",
352
- };
298
+ const headers = SHARED_HEADERS;
353
299
  let body;
354
300
  body = buildFormUrlencodedString({
355
301
  ...se_DescribeCacheClustersMessage(input, context),
@@ -360,9 +306,7 @@ const se_DescribeCacheClustersCommand = async (input, context) => {
360
306
  };
361
307
  exports.se_DescribeCacheClustersCommand = se_DescribeCacheClustersCommand;
362
308
  const se_DescribeCacheEngineVersionsCommand = async (input, context) => {
363
- const headers = {
364
- "content-type": "application/x-www-form-urlencoded",
365
- };
309
+ const headers = SHARED_HEADERS;
366
310
  let body;
367
311
  body = buildFormUrlencodedString({
368
312
  ...se_DescribeCacheEngineVersionsMessage(input, context),
@@ -373,9 +317,7 @@ const se_DescribeCacheEngineVersionsCommand = async (input, context) => {
373
317
  };
374
318
  exports.se_DescribeCacheEngineVersionsCommand = se_DescribeCacheEngineVersionsCommand;
375
319
  const se_DescribeCacheParameterGroupsCommand = async (input, context) => {
376
- const headers = {
377
- "content-type": "application/x-www-form-urlencoded",
378
- };
320
+ const headers = SHARED_HEADERS;
379
321
  let body;
380
322
  body = buildFormUrlencodedString({
381
323
  ...se_DescribeCacheParameterGroupsMessage(input, context),
@@ -386,9 +328,7 @@ const se_DescribeCacheParameterGroupsCommand = async (input, context) => {
386
328
  };
387
329
  exports.se_DescribeCacheParameterGroupsCommand = se_DescribeCacheParameterGroupsCommand;
388
330
  const se_DescribeCacheParametersCommand = async (input, context) => {
389
- const headers = {
390
- "content-type": "application/x-www-form-urlencoded",
391
- };
331
+ const headers = SHARED_HEADERS;
392
332
  let body;
393
333
  body = buildFormUrlencodedString({
394
334
  ...se_DescribeCacheParametersMessage(input, context),
@@ -399,9 +339,7 @@ const se_DescribeCacheParametersCommand = async (input, context) => {
399
339
  };
400
340
  exports.se_DescribeCacheParametersCommand = se_DescribeCacheParametersCommand;
401
341
  const se_DescribeCacheSecurityGroupsCommand = async (input, context) => {
402
- const headers = {
403
- "content-type": "application/x-www-form-urlencoded",
404
- };
342
+ const headers = SHARED_HEADERS;
405
343
  let body;
406
344
  body = buildFormUrlencodedString({
407
345
  ...se_DescribeCacheSecurityGroupsMessage(input, context),
@@ -412,9 +350,7 @@ const se_DescribeCacheSecurityGroupsCommand = async (input, context) => {
412
350
  };
413
351
  exports.se_DescribeCacheSecurityGroupsCommand = se_DescribeCacheSecurityGroupsCommand;
414
352
  const se_DescribeCacheSubnetGroupsCommand = async (input, context) => {
415
- const headers = {
416
- "content-type": "application/x-www-form-urlencoded",
417
- };
353
+ const headers = SHARED_HEADERS;
418
354
  let body;
419
355
  body = buildFormUrlencodedString({
420
356
  ...se_DescribeCacheSubnetGroupsMessage(input, context),
@@ -425,9 +361,7 @@ const se_DescribeCacheSubnetGroupsCommand = async (input, context) => {
425
361
  };
426
362
  exports.se_DescribeCacheSubnetGroupsCommand = se_DescribeCacheSubnetGroupsCommand;
427
363
  const se_DescribeEngineDefaultParametersCommand = async (input, context) => {
428
- const headers = {
429
- "content-type": "application/x-www-form-urlencoded",
430
- };
364
+ const headers = SHARED_HEADERS;
431
365
  let body;
432
366
  body = buildFormUrlencodedString({
433
367
  ...se_DescribeEngineDefaultParametersMessage(input, context),
@@ -438,9 +372,7 @@ const se_DescribeEngineDefaultParametersCommand = async (input, context) => {
438
372
  };
439
373
  exports.se_DescribeEngineDefaultParametersCommand = se_DescribeEngineDefaultParametersCommand;
440
374
  const se_DescribeEventsCommand = async (input, context) => {
441
- const headers = {
442
- "content-type": "application/x-www-form-urlencoded",
443
- };
375
+ const headers = SHARED_HEADERS;
444
376
  let body;
445
377
  body = buildFormUrlencodedString({
446
378
  ...se_DescribeEventsMessage(input, context),
@@ -451,9 +383,7 @@ const se_DescribeEventsCommand = async (input, context) => {
451
383
  };
452
384
  exports.se_DescribeEventsCommand = se_DescribeEventsCommand;
453
385
  const se_DescribeGlobalReplicationGroupsCommand = async (input, context) => {
454
- const headers = {
455
- "content-type": "application/x-www-form-urlencoded",
456
- };
386
+ const headers = SHARED_HEADERS;
457
387
  let body;
458
388
  body = buildFormUrlencodedString({
459
389
  ...se_DescribeGlobalReplicationGroupsMessage(input, context),
@@ -464,9 +394,7 @@ const se_DescribeGlobalReplicationGroupsCommand = async (input, context) => {
464
394
  };
465
395
  exports.se_DescribeGlobalReplicationGroupsCommand = se_DescribeGlobalReplicationGroupsCommand;
466
396
  const se_DescribeReplicationGroupsCommand = async (input, context) => {
467
- const headers = {
468
- "content-type": "application/x-www-form-urlencoded",
469
- };
397
+ const headers = SHARED_HEADERS;
470
398
  let body;
471
399
  body = buildFormUrlencodedString({
472
400
  ...se_DescribeReplicationGroupsMessage(input, context),
@@ -477,9 +405,7 @@ const se_DescribeReplicationGroupsCommand = async (input, context) => {
477
405
  };
478
406
  exports.se_DescribeReplicationGroupsCommand = se_DescribeReplicationGroupsCommand;
479
407
  const se_DescribeReservedCacheNodesCommand = async (input, context) => {
480
- const headers = {
481
- "content-type": "application/x-www-form-urlencoded",
482
- };
408
+ const headers = SHARED_HEADERS;
483
409
  let body;
484
410
  body = buildFormUrlencodedString({
485
411
  ...se_DescribeReservedCacheNodesMessage(input, context),
@@ -490,9 +416,7 @@ const se_DescribeReservedCacheNodesCommand = async (input, context) => {
490
416
  };
491
417
  exports.se_DescribeReservedCacheNodesCommand = se_DescribeReservedCacheNodesCommand;
492
418
  const se_DescribeReservedCacheNodesOfferingsCommand = async (input, context) => {
493
- const headers = {
494
- "content-type": "application/x-www-form-urlencoded",
495
- };
419
+ const headers = SHARED_HEADERS;
496
420
  let body;
497
421
  body = buildFormUrlencodedString({
498
422
  ...se_DescribeReservedCacheNodesOfferingsMessage(input, context),
@@ -503,9 +427,7 @@ const se_DescribeReservedCacheNodesOfferingsCommand = async (input, context) =>
503
427
  };
504
428
  exports.se_DescribeReservedCacheNodesOfferingsCommand = se_DescribeReservedCacheNodesOfferingsCommand;
505
429
  const se_DescribeServiceUpdatesCommand = async (input, context) => {
506
- const headers = {
507
- "content-type": "application/x-www-form-urlencoded",
508
- };
430
+ const headers = SHARED_HEADERS;
509
431
  let body;
510
432
  body = buildFormUrlencodedString({
511
433
  ...se_DescribeServiceUpdatesMessage(input, context),
@@ -516,9 +438,7 @@ const se_DescribeServiceUpdatesCommand = async (input, context) => {
516
438
  };
517
439
  exports.se_DescribeServiceUpdatesCommand = se_DescribeServiceUpdatesCommand;
518
440
  const se_DescribeSnapshotsCommand = async (input, context) => {
519
- const headers = {
520
- "content-type": "application/x-www-form-urlencoded",
521
- };
441
+ const headers = SHARED_HEADERS;
522
442
  let body;
523
443
  body = buildFormUrlencodedString({
524
444
  ...se_DescribeSnapshotsMessage(input, context),
@@ -529,9 +449,7 @@ const se_DescribeSnapshotsCommand = async (input, context) => {
529
449
  };
530
450
  exports.se_DescribeSnapshotsCommand = se_DescribeSnapshotsCommand;
531
451
  const se_DescribeUpdateActionsCommand = async (input, context) => {
532
- const headers = {
533
- "content-type": "application/x-www-form-urlencoded",
534
- };
452
+ const headers = SHARED_HEADERS;
535
453
  let body;
536
454
  body = buildFormUrlencodedString({
537
455
  ...se_DescribeUpdateActionsMessage(input, context),
@@ -542,9 +460,7 @@ const se_DescribeUpdateActionsCommand = async (input, context) => {
542
460
  };
543
461
  exports.se_DescribeUpdateActionsCommand = se_DescribeUpdateActionsCommand;
544
462
  const se_DescribeUserGroupsCommand = async (input, context) => {
545
- const headers = {
546
- "content-type": "application/x-www-form-urlencoded",
547
- };
463
+ const headers = SHARED_HEADERS;
548
464
  let body;
549
465
  body = buildFormUrlencodedString({
550
466
  ...se_DescribeUserGroupsMessage(input, context),
@@ -555,9 +471,7 @@ const se_DescribeUserGroupsCommand = async (input, context) => {
555
471
  };
556
472
  exports.se_DescribeUserGroupsCommand = se_DescribeUserGroupsCommand;
557
473
  const se_DescribeUsersCommand = async (input, context) => {
558
- const headers = {
559
- "content-type": "application/x-www-form-urlencoded",
560
- };
474
+ const headers = SHARED_HEADERS;
561
475
  let body;
562
476
  body = buildFormUrlencodedString({
563
477
  ...se_DescribeUsersMessage(input, context),
@@ -568,9 +482,7 @@ const se_DescribeUsersCommand = async (input, context) => {
568
482
  };
569
483
  exports.se_DescribeUsersCommand = se_DescribeUsersCommand;
570
484
  const se_DisassociateGlobalReplicationGroupCommand = async (input, context) => {
571
- const headers = {
572
- "content-type": "application/x-www-form-urlencoded",
573
- };
485
+ const headers = SHARED_HEADERS;
574
486
  let body;
575
487
  body = buildFormUrlencodedString({
576
488
  ...se_DisassociateGlobalReplicationGroupMessage(input, context),
@@ -581,9 +493,7 @@ const se_DisassociateGlobalReplicationGroupCommand = async (input, context) => {
581
493
  };
582
494
  exports.se_DisassociateGlobalReplicationGroupCommand = se_DisassociateGlobalReplicationGroupCommand;
583
495
  const se_FailoverGlobalReplicationGroupCommand = async (input, context) => {
584
- const headers = {
585
- "content-type": "application/x-www-form-urlencoded",
586
- };
496
+ const headers = SHARED_HEADERS;
587
497
  let body;
588
498
  body = buildFormUrlencodedString({
589
499
  ...se_FailoverGlobalReplicationGroupMessage(input, context),
@@ -594,9 +504,7 @@ const se_FailoverGlobalReplicationGroupCommand = async (input, context) => {
594
504
  };
595
505
  exports.se_FailoverGlobalReplicationGroupCommand = se_FailoverGlobalReplicationGroupCommand;
596
506
  const se_IncreaseNodeGroupsInGlobalReplicationGroupCommand = async (input, context) => {
597
- const headers = {
598
- "content-type": "application/x-www-form-urlencoded",
599
- };
507
+ const headers = SHARED_HEADERS;
600
508
  let body;
601
509
  body = buildFormUrlencodedString({
602
510
  ...se_IncreaseNodeGroupsInGlobalReplicationGroupMessage(input, context),
@@ -607,9 +515,7 @@ const se_IncreaseNodeGroupsInGlobalReplicationGroupCommand = async (input, conte
607
515
  };
608
516
  exports.se_IncreaseNodeGroupsInGlobalReplicationGroupCommand = se_IncreaseNodeGroupsInGlobalReplicationGroupCommand;
609
517
  const se_IncreaseReplicaCountCommand = async (input, context) => {
610
- const headers = {
611
- "content-type": "application/x-www-form-urlencoded",
612
- };
518
+ const headers = SHARED_HEADERS;
613
519
  let body;
614
520
  body = buildFormUrlencodedString({
615
521
  ...se_IncreaseReplicaCountMessage(input, context),
@@ -620,9 +526,7 @@ const se_IncreaseReplicaCountCommand = async (input, context) => {
620
526
  };
621
527
  exports.se_IncreaseReplicaCountCommand = se_IncreaseReplicaCountCommand;
622
528
  const se_ListAllowedNodeTypeModificationsCommand = async (input, context) => {
623
- const headers = {
624
- "content-type": "application/x-www-form-urlencoded",
625
- };
529
+ const headers = SHARED_HEADERS;
626
530
  let body;
627
531
  body = buildFormUrlencodedString({
628
532
  ...se_ListAllowedNodeTypeModificationsMessage(input, context),
@@ -633,9 +537,7 @@ const se_ListAllowedNodeTypeModificationsCommand = async (input, context) => {
633
537
  };
634
538
  exports.se_ListAllowedNodeTypeModificationsCommand = se_ListAllowedNodeTypeModificationsCommand;
635
539
  const se_ListTagsForResourceCommand = async (input, context) => {
636
- const headers = {
637
- "content-type": "application/x-www-form-urlencoded",
638
- };
540
+ const headers = SHARED_HEADERS;
639
541
  let body;
640
542
  body = buildFormUrlencodedString({
641
543
  ...se_ListTagsForResourceMessage(input, context),
@@ -646,9 +548,7 @@ const se_ListTagsForResourceCommand = async (input, context) => {
646
548
  };
647
549
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
648
550
  const se_ModifyCacheClusterCommand = async (input, context) => {
649
- const headers = {
650
- "content-type": "application/x-www-form-urlencoded",
651
- };
551
+ const headers = SHARED_HEADERS;
652
552
  let body;
653
553
  body = buildFormUrlencodedString({
654
554
  ...se_ModifyCacheClusterMessage(input, context),
@@ -659,9 +559,7 @@ const se_ModifyCacheClusterCommand = async (input, context) => {
659
559
  };
660
560
  exports.se_ModifyCacheClusterCommand = se_ModifyCacheClusterCommand;
661
561
  const se_ModifyCacheParameterGroupCommand = async (input, context) => {
662
- const headers = {
663
- "content-type": "application/x-www-form-urlencoded",
664
- };
562
+ const headers = SHARED_HEADERS;
665
563
  let body;
666
564
  body = buildFormUrlencodedString({
667
565
  ...se_ModifyCacheParameterGroupMessage(input, context),
@@ -672,9 +570,7 @@ const se_ModifyCacheParameterGroupCommand = async (input, context) => {
672
570
  };
673
571
  exports.se_ModifyCacheParameterGroupCommand = se_ModifyCacheParameterGroupCommand;
674
572
  const se_ModifyCacheSubnetGroupCommand = async (input, context) => {
675
- const headers = {
676
- "content-type": "application/x-www-form-urlencoded",
677
- };
573
+ const headers = SHARED_HEADERS;
678
574
  let body;
679
575
  body = buildFormUrlencodedString({
680
576
  ...se_ModifyCacheSubnetGroupMessage(input, context),
@@ -685,9 +581,7 @@ const se_ModifyCacheSubnetGroupCommand = async (input, context) => {
685
581
  };
686
582
  exports.se_ModifyCacheSubnetGroupCommand = se_ModifyCacheSubnetGroupCommand;
687
583
  const se_ModifyGlobalReplicationGroupCommand = async (input, context) => {
688
- const headers = {
689
- "content-type": "application/x-www-form-urlencoded",
690
- };
584
+ const headers = SHARED_HEADERS;
691
585
  let body;
692
586
  body = buildFormUrlencodedString({
693
587
  ...se_ModifyGlobalReplicationGroupMessage(input, context),
@@ -698,9 +592,7 @@ const se_ModifyGlobalReplicationGroupCommand = async (input, context) => {
698
592
  };
699
593
  exports.se_ModifyGlobalReplicationGroupCommand = se_ModifyGlobalReplicationGroupCommand;
700
594
  const se_ModifyReplicationGroupCommand = async (input, context) => {
701
- const headers = {
702
- "content-type": "application/x-www-form-urlencoded",
703
- };
595
+ const headers = SHARED_HEADERS;
704
596
  let body;
705
597
  body = buildFormUrlencodedString({
706
598
  ...se_ModifyReplicationGroupMessage(input, context),
@@ -711,9 +603,7 @@ const se_ModifyReplicationGroupCommand = async (input, context) => {
711
603
  };
712
604
  exports.se_ModifyReplicationGroupCommand = se_ModifyReplicationGroupCommand;
713
605
  const se_ModifyReplicationGroupShardConfigurationCommand = async (input, context) => {
714
- const headers = {
715
- "content-type": "application/x-www-form-urlencoded",
716
- };
606
+ const headers = SHARED_HEADERS;
717
607
  let body;
718
608
  body = buildFormUrlencodedString({
719
609
  ...se_ModifyReplicationGroupShardConfigurationMessage(input, context),
@@ -724,9 +614,7 @@ const se_ModifyReplicationGroupShardConfigurationCommand = async (input, context
724
614
  };
725
615
  exports.se_ModifyReplicationGroupShardConfigurationCommand = se_ModifyReplicationGroupShardConfigurationCommand;
726
616
  const se_ModifyUserCommand = async (input, context) => {
727
- const headers = {
728
- "content-type": "application/x-www-form-urlencoded",
729
- };
617
+ const headers = SHARED_HEADERS;
730
618
  let body;
731
619
  body = buildFormUrlencodedString({
732
620
  ...se_ModifyUserMessage(input, context),
@@ -737,9 +625,7 @@ const se_ModifyUserCommand = async (input, context) => {
737
625
  };
738
626
  exports.se_ModifyUserCommand = se_ModifyUserCommand;
739
627
  const se_ModifyUserGroupCommand = async (input, context) => {
740
- const headers = {
741
- "content-type": "application/x-www-form-urlencoded",
742
- };
628
+ const headers = SHARED_HEADERS;
743
629
  let body;
744
630
  body = buildFormUrlencodedString({
745
631
  ...se_ModifyUserGroupMessage(input, context),
@@ -750,9 +636,7 @@ const se_ModifyUserGroupCommand = async (input, context) => {
750
636
  };
751
637
  exports.se_ModifyUserGroupCommand = se_ModifyUserGroupCommand;
752
638
  const se_PurchaseReservedCacheNodesOfferingCommand = async (input, context) => {
753
- const headers = {
754
- "content-type": "application/x-www-form-urlencoded",
755
- };
639
+ const headers = SHARED_HEADERS;
756
640
  let body;
757
641
  body = buildFormUrlencodedString({
758
642
  ...se_PurchaseReservedCacheNodesOfferingMessage(input, context),
@@ -763,9 +647,7 @@ const se_PurchaseReservedCacheNodesOfferingCommand = async (input, context) => {
763
647
  };
764
648
  exports.se_PurchaseReservedCacheNodesOfferingCommand = se_PurchaseReservedCacheNodesOfferingCommand;
765
649
  const se_RebalanceSlotsInGlobalReplicationGroupCommand = async (input, context) => {
766
- const headers = {
767
- "content-type": "application/x-www-form-urlencoded",
768
- };
650
+ const headers = SHARED_HEADERS;
769
651
  let body;
770
652
  body = buildFormUrlencodedString({
771
653
  ...se_RebalanceSlotsInGlobalReplicationGroupMessage(input, context),
@@ -776,9 +658,7 @@ const se_RebalanceSlotsInGlobalReplicationGroupCommand = async (input, context)
776
658
  };
777
659
  exports.se_RebalanceSlotsInGlobalReplicationGroupCommand = se_RebalanceSlotsInGlobalReplicationGroupCommand;
778
660
  const se_RebootCacheClusterCommand = async (input, context) => {
779
- const headers = {
780
- "content-type": "application/x-www-form-urlencoded",
781
- };
661
+ const headers = SHARED_HEADERS;
782
662
  let body;
783
663
  body = buildFormUrlencodedString({
784
664
  ...se_RebootCacheClusterMessage(input, context),
@@ -789,9 +669,7 @@ const se_RebootCacheClusterCommand = async (input, context) => {
789
669
  };
790
670
  exports.se_RebootCacheClusterCommand = se_RebootCacheClusterCommand;
791
671
  const se_RemoveTagsFromResourceCommand = async (input, context) => {
792
- const headers = {
793
- "content-type": "application/x-www-form-urlencoded",
794
- };
672
+ const headers = SHARED_HEADERS;
795
673
  let body;
796
674
  body = buildFormUrlencodedString({
797
675
  ...se_RemoveTagsFromResourceMessage(input, context),
@@ -802,9 +680,7 @@ const se_RemoveTagsFromResourceCommand = async (input, context) => {
802
680
  };
803
681
  exports.se_RemoveTagsFromResourceCommand = se_RemoveTagsFromResourceCommand;
804
682
  const se_ResetCacheParameterGroupCommand = async (input, context) => {
805
- const headers = {
806
- "content-type": "application/x-www-form-urlencoded",
807
- };
683
+ const headers = SHARED_HEADERS;
808
684
  let body;
809
685
  body = buildFormUrlencodedString({
810
686
  ...se_ResetCacheParameterGroupMessage(input, context),
@@ -815,9 +691,7 @@ const se_ResetCacheParameterGroupCommand = async (input, context) => {
815
691
  };
816
692
  exports.se_ResetCacheParameterGroupCommand = se_ResetCacheParameterGroupCommand;
817
693
  const se_RevokeCacheSecurityGroupIngressCommand = async (input, context) => {
818
- const headers = {
819
- "content-type": "application/x-www-form-urlencoded",
820
- };
694
+ const headers = SHARED_HEADERS;
821
695
  let body;
822
696
  body = buildFormUrlencodedString({
823
697
  ...se_RevokeCacheSecurityGroupIngressMessage(input, context),
@@ -828,9 +702,7 @@ const se_RevokeCacheSecurityGroupIngressCommand = async (input, context) => {
828
702
  };
829
703
  exports.se_RevokeCacheSecurityGroupIngressCommand = se_RevokeCacheSecurityGroupIngressCommand;
830
704
  const se_StartMigrationCommand = async (input, context) => {
831
- const headers = {
832
- "content-type": "application/x-www-form-urlencoded",
833
- };
705
+ const headers = SHARED_HEADERS;
834
706
  let body;
835
707
  body = buildFormUrlencodedString({
836
708
  ...se_StartMigrationMessage(input, context),
@@ -841,9 +713,7 @@ const se_StartMigrationCommand = async (input, context) => {
841
713
  };
842
714
  exports.se_StartMigrationCommand = se_StartMigrationCommand;
843
715
  const se_TestFailoverCommand = async (input, context) => {
844
- const headers = {
845
- "content-type": "application/x-www-form-urlencoded",
846
- };
716
+ const headers = SHARED_HEADERS;
847
717
  let body;
848
718
  body = buildFormUrlencodedString({
849
719
  ...se_TestFailoverMessage(input, context),
@@ -864,7 +734,7 @@ const de_AddTagsToResourceCommand = async (output, context) => {
864
734
  $metadata: deserializeMetadata(output),
865
735
  ...contents,
866
736
  };
867
- return Promise.resolve(response);
737
+ return response;
868
738
  };
869
739
  exports.de_AddTagsToResourceCommand = de_AddTagsToResourceCommand;
870
740
  const de_AddTagsToResourceCommandError = async (output, context) => {
@@ -912,10 +782,9 @@ const de_AddTagsToResourceCommandError = async (output, context) => {
912
782
  throw await de_UserNotFoundFaultRes(parsedOutput, context);
913
783
  default:
914
784
  const parsedBody = parsedOutput.body;
915
- (0, smithy_client_1.throwDefaultError)({
785
+ return throwDefaultError({
916
786
  output,
917
787
  parsedBody: parsedBody.Error,
918
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
919
788
  errorCode,
920
789
  });
921
790
  }
@@ -931,7 +800,7 @@ const de_AuthorizeCacheSecurityGroupIngressCommand = async (output, context) =>
931
800
  $metadata: deserializeMetadata(output),
932
801
  ...contents,
933
802
  };
934
- return Promise.resolve(response);
803
+ return response;
935
804
  };
936
805
  exports.de_AuthorizeCacheSecurityGroupIngressCommand = de_AuthorizeCacheSecurityGroupIngressCommand;
937
806
  const de_AuthorizeCacheSecurityGroupIngressCommandError = async (output, context) => {
@@ -958,10 +827,9 @@ const de_AuthorizeCacheSecurityGroupIngressCommandError = async (output, context
958
827
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
959
828
  default:
960
829
  const parsedBody = parsedOutput.body;
961
- (0, smithy_client_1.throwDefaultError)({
830
+ return throwDefaultError({
962
831
  output,
963
832
  parsedBody: parsedBody.Error,
964
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
965
833
  errorCode,
966
834
  });
967
835
  }
@@ -977,7 +845,7 @@ const de_BatchApplyUpdateActionCommand = async (output, context) => {
977
845
  $metadata: deserializeMetadata(output),
978
846
  ...contents,
979
847
  };
980
- return Promise.resolve(response);
848
+ return response;
981
849
  };
982
850
  exports.de_BatchApplyUpdateActionCommand = de_BatchApplyUpdateActionCommand;
983
851
  const de_BatchApplyUpdateActionCommandError = async (output, context) => {
@@ -995,10 +863,9 @@ const de_BatchApplyUpdateActionCommandError = async (output, context) => {
995
863
  throw await de_ServiceUpdateNotFoundFaultRes(parsedOutput, context);
996
864
  default:
997
865
  const parsedBody = parsedOutput.body;
998
- (0, smithy_client_1.throwDefaultError)({
866
+ return throwDefaultError({
999
867
  output,
1000
868
  parsedBody: parsedBody.Error,
1001
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1002
869
  errorCode,
1003
870
  });
1004
871
  }
@@ -1014,7 +881,7 @@ const de_BatchStopUpdateActionCommand = async (output, context) => {
1014
881
  $metadata: deserializeMetadata(output),
1015
882
  ...contents,
1016
883
  };
1017
- return Promise.resolve(response);
884
+ return response;
1018
885
  };
1019
886
  exports.de_BatchStopUpdateActionCommand = de_BatchStopUpdateActionCommand;
1020
887
  const de_BatchStopUpdateActionCommandError = async (output, context) => {
@@ -1032,10 +899,9 @@ const de_BatchStopUpdateActionCommandError = async (output, context) => {
1032
899
  throw await de_ServiceUpdateNotFoundFaultRes(parsedOutput, context);
1033
900
  default:
1034
901
  const parsedBody = parsedOutput.body;
1035
- (0, smithy_client_1.throwDefaultError)({
902
+ return throwDefaultError({
1036
903
  output,
1037
904
  parsedBody: parsedBody.Error,
1038
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1039
905
  errorCode,
1040
906
  });
1041
907
  }
@@ -1051,7 +917,7 @@ const de_CompleteMigrationCommand = async (output, context) => {
1051
917
  $metadata: deserializeMetadata(output),
1052
918
  ...contents,
1053
919
  };
1054
- return Promise.resolve(response);
920
+ return response;
1055
921
  };
1056
922
  exports.de_CompleteMigrationCommand = de_CompleteMigrationCommand;
1057
923
  const de_CompleteMigrationCommandError = async (output, context) => {
@@ -1072,10 +938,9 @@ const de_CompleteMigrationCommandError = async (output, context) => {
1072
938
  throw await de_ReplicationGroupNotUnderMigrationFaultRes(parsedOutput, context);
1073
939
  default:
1074
940
  const parsedBody = parsedOutput.body;
1075
- (0, smithy_client_1.throwDefaultError)({
941
+ return throwDefaultError({
1076
942
  output,
1077
943
  parsedBody: parsedBody.Error,
1078
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1079
944
  errorCode,
1080
945
  });
1081
946
  }
@@ -1091,7 +956,7 @@ const de_CopySnapshotCommand = async (output, context) => {
1091
956
  $metadata: deserializeMetadata(output),
1092
957
  ...contents,
1093
958
  };
1094
- return Promise.resolve(response);
959
+ return response;
1095
960
  };
1096
961
  exports.de_CopySnapshotCommand = de_CopySnapshotCommand;
1097
962
  const de_CopySnapshotCommandError = async (output, context) => {
@@ -1124,10 +989,9 @@ const de_CopySnapshotCommandError = async (output, context) => {
1124
989
  throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
1125
990
  default:
1126
991
  const parsedBody = parsedOutput.body;
1127
- (0, smithy_client_1.throwDefaultError)({
992
+ return throwDefaultError({
1128
993
  output,
1129
994
  parsedBody: parsedBody.Error,
1130
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1131
995
  errorCode,
1132
996
  });
1133
997
  }
@@ -1143,7 +1007,7 @@ const de_CreateCacheClusterCommand = async (output, context) => {
1143
1007
  $metadata: deserializeMetadata(output),
1144
1008
  ...contents,
1145
1009
  };
1146
- return Promise.resolve(response);
1010
+ return response;
1147
1011
  };
1148
1012
  exports.de_CreateCacheClusterCommand = de_CreateCacheClusterCommand;
1149
1013
  const de_CreateCacheClusterCommandError = async (output, context) => {
@@ -1197,10 +1061,9 @@ const de_CreateCacheClusterCommandError = async (output, context) => {
1197
1061
  throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
1198
1062
  default:
1199
1063
  const parsedBody = parsedOutput.body;
1200
- (0, smithy_client_1.throwDefaultError)({
1064
+ return throwDefaultError({
1201
1065
  output,
1202
1066
  parsedBody: parsedBody.Error,
1203
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1204
1067
  errorCode,
1205
1068
  });
1206
1069
  }
@@ -1216,7 +1079,7 @@ const de_CreateCacheParameterGroupCommand = async (output, context) => {
1216
1079
  $metadata: deserializeMetadata(output),
1217
1080
  ...contents,
1218
1081
  };
1219
- return Promise.resolve(response);
1082
+ return response;
1220
1083
  };
1221
1084
  exports.de_CreateCacheParameterGroupCommand = de_CreateCacheParameterGroupCommand;
1222
1085
  const de_CreateCacheParameterGroupCommandError = async (output, context) => {
@@ -1246,10 +1109,9 @@ const de_CreateCacheParameterGroupCommandError = async (output, context) => {
1246
1109
  throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
1247
1110
  default:
1248
1111
  const parsedBody = parsedOutput.body;
1249
- (0, smithy_client_1.throwDefaultError)({
1112
+ return throwDefaultError({
1250
1113
  output,
1251
1114
  parsedBody: parsedBody.Error,
1252
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1253
1115
  errorCode,
1254
1116
  });
1255
1117
  }
@@ -1265,7 +1127,7 @@ const de_CreateCacheSecurityGroupCommand = async (output, context) => {
1265
1127
  $metadata: deserializeMetadata(output),
1266
1128
  ...contents,
1267
1129
  };
1268
- return Promise.resolve(response);
1130
+ return response;
1269
1131
  };
1270
1132
  exports.de_CreateCacheSecurityGroupCommand = de_CreateCacheSecurityGroupCommand;
1271
1133
  const de_CreateCacheSecurityGroupCommandError = async (output, context) => {
@@ -1292,10 +1154,9 @@ const de_CreateCacheSecurityGroupCommandError = async (output, context) => {
1292
1154
  throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
1293
1155
  default:
1294
1156
  const parsedBody = parsedOutput.body;
1295
- (0, smithy_client_1.throwDefaultError)({
1157
+ return throwDefaultError({
1296
1158
  output,
1297
1159
  parsedBody: parsedBody.Error,
1298
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1299
1160
  errorCode,
1300
1161
  });
1301
1162
  }
@@ -1311,7 +1172,7 @@ const de_CreateCacheSubnetGroupCommand = async (output, context) => {
1311
1172
  $metadata: deserializeMetadata(output),
1312
1173
  ...contents,
1313
1174
  };
1314
- return Promise.resolve(response);
1175
+ return response;
1315
1176
  };
1316
1177
  exports.de_CreateCacheSubnetGroupCommand = de_CreateCacheSubnetGroupCommand;
1317
1178
  const de_CreateCacheSubnetGroupCommandError = async (output, context) => {
@@ -1341,10 +1202,9 @@ const de_CreateCacheSubnetGroupCommandError = async (output, context) => {
1341
1202
  throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
1342
1203
  default:
1343
1204
  const parsedBody = parsedOutput.body;
1344
- (0, smithy_client_1.throwDefaultError)({
1205
+ return throwDefaultError({
1345
1206
  output,
1346
1207
  parsedBody: parsedBody.Error,
1347
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1348
1208
  errorCode,
1349
1209
  });
1350
1210
  }
@@ -1360,7 +1220,7 @@ const de_CreateGlobalReplicationGroupCommand = async (output, context) => {
1360
1220
  $metadata: deserializeMetadata(output),
1361
1221
  ...contents,
1362
1222
  };
1363
- return Promise.resolve(response);
1223
+ return response;
1364
1224
  };
1365
1225
  exports.de_CreateGlobalReplicationGroupCommand = de_CreateGlobalReplicationGroupCommand;
1366
1226
  const de_CreateGlobalReplicationGroupCommandError = async (output, context) => {
@@ -1387,10 +1247,9 @@ const de_CreateGlobalReplicationGroupCommandError = async (output, context) => {
1387
1247
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1388
1248
  default:
1389
1249
  const parsedBody = parsedOutput.body;
1390
- (0, smithy_client_1.throwDefaultError)({
1250
+ return throwDefaultError({
1391
1251
  output,
1392
1252
  parsedBody: parsedBody.Error,
1393
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1394
1253
  errorCode,
1395
1254
  });
1396
1255
  }
@@ -1406,7 +1265,7 @@ const de_CreateReplicationGroupCommand = async (output, context) => {
1406
1265
  $metadata: deserializeMetadata(output),
1407
1266
  ...contents,
1408
1267
  };
1409
- return Promise.resolve(response);
1268
+ return response;
1410
1269
  };
1411
1270
  exports.de_CreateReplicationGroupCommand = de_CreateReplicationGroupCommand;
1412
1271
  const de_CreateReplicationGroupCommandError = async (output, context) => {
@@ -1475,10 +1334,9 @@ const de_CreateReplicationGroupCommandError = async (output, context) => {
1475
1334
  throw await de_UserGroupNotFoundFaultRes(parsedOutput, context);
1476
1335
  default:
1477
1336
  const parsedBody = parsedOutput.body;
1478
- (0, smithy_client_1.throwDefaultError)({
1337
+ return throwDefaultError({
1479
1338
  output,
1480
1339
  parsedBody: parsedBody.Error,
1481
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1482
1340
  errorCode,
1483
1341
  });
1484
1342
  }
@@ -1494,7 +1352,7 @@ const de_CreateSnapshotCommand = async (output, context) => {
1494
1352
  $metadata: deserializeMetadata(output),
1495
1353
  ...contents,
1496
1354
  };
1497
- return Promise.resolve(response);
1355
+ return response;
1498
1356
  };
1499
1357
  exports.de_CreateSnapshotCommand = de_CreateSnapshotCommand;
1500
1358
  const de_CreateSnapshotCommandError = async (output, context) => {
@@ -1536,10 +1394,9 @@ const de_CreateSnapshotCommandError = async (output, context) => {
1536
1394
  throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
1537
1395
  default:
1538
1396
  const parsedBody = parsedOutput.body;
1539
- (0, smithy_client_1.throwDefaultError)({
1397
+ return throwDefaultError({
1540
1398
  output,
1541
1399
  parsedBody: parsedBody.Error,
1542
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1543
1400
  errorCode,
1544
1401
  });
1545
1402
  }
@@ -1555,7 +1412,7 @@ const de_CreateUserCommand = async (output, context) => {
1555
1412
  $metadata: deserializeMetadata(output),
1556
1413
  ...contents,
1557
1414
  };
1558
- return Promise.resolve(response);
1415
+ return response;
1559
1416
  };
1560
1417
  exports.de_CreateUserCommand = de_CreateUserCommand;
1561
1418
  const de_CreateUserCommandError = async (output, context) => {
@@ -1588,10 +1445,9 @@ const de_CreateUserCommandError = async (output, context) => {
1588
1445
  throw await de_UserQuotaExceededFaultRes(parsedOutput, context);
1589
1446
  default:
1590
1447
  const parsedBody = parsedOutput.body;
1591
- (0, smithy_client_1.throwDefaultError)({
1448
+ return throwDefaultError({
1592
1449
  output,
1593
1450
  parsedBody: parsedBody.Error,
1594
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1595
1451
  errorCode,
1596
1452
  });
1597
1453
  }
@@ -1607,7 +1463,7 @@ const de_CreateUserGroupCommand = async (output, context) => {
1607
1463
  $metadata: deserializeMetadata(output),
1608
1464
  ...contents,
1609
1465
  };
1610
- return Promise.resolve(response);
1466
+ return response;
1611
1467
  };
1612
1468
  exports.de_CreateUserGroupCommand = de_CreateUserGroupCommand;
1613
1469
  const de_CreateUserGroupCommandError = async (output, context) => {
@@ -1643,10 +1499,9 @@ const de_CreateUserGroupCommandError = async (output, context) => {
1643
1499
  throw await de_UserNotFoundFaultRes(parsedOutput, context);
1644
1500
  default:
1645
1501
  const parsedBody = parsedOutput.body;
1646
- (0, smithy_client_1.throwDefaultError)({
1502
+ return throwDefaultError({
1647
1503
  output,
1648
1504
  parsedBody: parsedBody.Error,
1649
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1650
1505
  errorCode,
1651
1506
  });
1652
1507
  }
@@ -1662,7 +1517,7 @@ const de_DecreaseNodeGroupsInGlobalReplicationGroupCommand = async (output, cont
1662
1517
  $metadata: deserializeMetadata(output),
1663
1518
  ...contents,
1664
1519
  };
1665
- return Promise.resolve(response);
1520
+ return response;
1666
1521
  };
1667
1522
  exports.de_DecreaseNodeGroupsInGlobalReplicationGroupCommand = de_DecreaseNodeGroupsInGlobalReplicationGroupCommand;
1668
1523
  const de_DecreaseNodeGroupsInGlobalReplicationGroupCommandError = async (output, context) => {
@@ -1686,10 +1541,9 @@ const de_DecreaseNodeGroupsInGlobalReplicationGroupCommandError = async (output,
1686
1541
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1687
1542
  default:
1688
1543
  const parsedBody = parsedOutput.body;
1689
- (0, smithy_client_1.throwDefaultError)({
1544
+ return throwDefaultError({
1690
1545
  output,
1691
1546
  parsedBody: parsedBody.Error,
1692
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1693
1547
  errorCode,
1694
1548
  });
1695
1549
  }
@@ -1705,7 +1559,7 @@ const de_DecreaseReplicaCountCommand = async (output, context) => {
1705
1559
  $metadata: deserializeMetadata(output),
1706
1560
  ...contents,
1707
1561
  };
1708
- return Promise.resolve(response);
1562
+ return response;
1709
1563
  };
1710
1564
  exports.de_DecreaseReplicaCountCommand = de_DecreaseReplicaCountCommand;
1711
1565
  const de_DecreaseReplicaCountCommandError = async (output, context) => {
@@ -1753,10 +1607,9 @@ const de_DecreaseReplicaCountCommandError = async (output, context) => {
1753
1607
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1754
1608
  default:
1755
1609
  const parsedBody = parsedOutput.body;
1756
- (0, smithy_client_1.throwDefaultError)({
1610
+ return throwDefaultError({
1757
1611
  output,
1758
1612
  parsedBody: parsedBody.Error,
1759
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1760
1613
  errorCode,
1761
1614
  });
1762
1615
  }
@@ -1772,7 +1625,7 @@ const de_DeleteCacheClusterCommand = async (output, context) => {
1772
1625
  $metadata: deserializeMetadata(output),
1773
1626
  ...contents,
1774
1627
  };
1775
- return Promise.resolve(response);
1628
+ return response;
1776
1629
  };
1777
1630
  exports.de_DeleteCacheClusterCommand = de_DeleteCacheClusterCommand;
1778
1631
  const de_DeleteCacheClusterCommandError = async (output, context) => {
@@ -1805,10 +1658,9 @@ const de_DeleteCacheClusterCommandError = async (output, context) => {
1805
1658
  throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
1806
1659
  default:
1807
1660
  const parsedBody = parsedOutput.body;
1808
- (0, smithy_client_1.throwDefaultError)({
1661
+ return throwDefaultError({
1809
1662
  output,
1810
1663
  parsedBody: parsedBody.Error,
1811
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1812
1664
  errorCode,
1813
1665
  });
1814
1666
  }
@@ -1821,7 +1673,7 @@ const de_DeleteCacheParameterGroupCommand = async (output, context) => {
1821
1673
  const response = {
1822
1674
  $metadata: deserializeMetadata(output),
1823
1675
  };
1824
- return Promise.resolve(response);
1676
+ return response;
1825
1677
  };
1826
1678
  exports.de_DeleteCacheParameterGroupCommand = de_DeleteCacheParameterGroupCommand;
1827
1679
  const de_DeleteCacheParameterGroupCommandError = async (output, context) => {
@@ -1845,10 +1697,9 @@ const de_DeleteCacheParameterGroupCommandError = async (output, context) => {
1845
1697
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1846
1698
  default:
1847
1699
  const parsedBody = parsedOutput.body;
1848
- (0, smithy_client_1.throwDefaultError)({
1700
+ return throwDefaultError({
1849
1701
  output,
1850
1702
  parsedBody: parsedBody.Error,
1851
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1852
1703
  errorCode,
1853
1704
  });
1854
1705
  }
@@ -1861,7 +1712,7 @@ const de_DeleteCacheSecurityGroupCommand = async (output, context) => {
1861
1712
  const response = {
1862
1713
  $metadata: deserializeMetadata(output),
1863
1714
  };
1864
- return Promise.resolve(response);
1715
+ return response;
1865
1716
  };
1866
1717
  exports.de_DeleteCacheSecurityGroupCommand = de_DeleteCacheSecurityGroupCommand;
1867
1718
  const de_DeleteCacheSecurityGroupCommandError = async (output, context) => {
@@ -1885,10 +1736,9 @@ const de_DeleteCacheSecurityGroupCommandError = async (output, context) => {
1885
1736
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1886
1737
  default:
1887
1738
  const parsedBody = parsedOutput.body;
1888
- (0, smithy_client_1.throwDefaultError)({
1739
+ return throwDefaultError({
1889
1740
  output,
1890
1741
  parsedBody: parsedBody.Error,
1891
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1892
1742
  errorCode,
1893
1743
  });
1894
1744
  }
@@ -1901,7 +1751,7 @@ const de_DeleteCacheSubnetGroupCommand = async (output, context) => {
1901
1751
  const response = {
1902
1752
  $metadata: deserializeMetadata(output),
1903
1753
  };
1904
- return Promise.resolve(response);
1754
+ return response;
1905
1755
  };
1906
1756
  exports.de_DeleteCacheSubnetGroupCommand = de_DeleteCacheSubnetGroupCommand;
1907
1757
  const de_DeleteCacheSubnetGroupCommandError = async (output, context) => {
@@ -1919,10 +1769,9 @@ const de_DeleteCacheSubnetGroupCommandError = async (output, context) => {
1919
1769
  throw await de_CacheSubnetGroupNotFoundFaultRes(parsedOutput, context);
1920
1770
  default:
1921
1771
  const parsedBody = parsedOutput.body;
1922
- (0, smithy_client_1.throwDefaultError)({
1772
+ return throwDefaultError({
1923
1773
  output,
1924
1774
  parsedBody: parsedBody.Error,
1925
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1926
1775
  errorCode,
1927
1776
  });
1928
1777
  }
@@ -1938,7 +1787,7 @@ const de_DeleteGlobalReplicationGroupCommand = async (output, context) => {
1938
1787
  $metadata: deserializeMetadata(output),
1939
1788
  ...contents,
1940
1789
  };
1941
- return Promise.resolve(response);
1790
+ return response;
1942
1791
  };
1943
1792
  exports.de_DeleteGlobalReplicationGroupCommand = de_DeleteGlobalReplicationGroupCommand;
1944
1793
  const de_DeleteGlobalReplicationGroupCommandError = async (output, context) => {
@@ -1959,10 +1808,9 @@ const de_DeleteGlobalReplicationGroupCommandError = async (output, context) => {
1959
1808
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1960
1809
  default:
1961
1810
  const parsedBody = parsedOutput.body;
1962
- (0, smithy_client_1.throwDefaultError)({
1811
+ return throwDefaultError({
1963
1812
  output,
1964
1813
  parsedBody: parsedBody.Error,
1965
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1966
1814
  errorCode,
1967
1815
  });
1968
1816
  }
@@ -1978,7 +1826,7 @@ const de_DeleteReplicationGroupCommand = async (output, context) => {
1978
1826
  $metadata: deserializeMetadata(output),
1979
1827
  ...contents,
1980
1828
  };
1981
- return Promise.resolve(response);
1829
+ return response;
1982
1830
  };
1983
1831
  exports.de_DeleteReplicationGroupCommand = de_DeleteReplicationGroupCommand;
1984
1832
  const de_DeleteReplicationGroupCommandError = async (output, context) => {
@@ -2011,10 +1859,9 @@ const de_DeleteReplicationGroupCommandError = async (output, context) => {
2011
1859
  throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
2012
1860
  default:
2013
1861
  const parsedBody = parsedOutput.body;
2014
- (0, smithy_client_1.throwDefaultError)({
1862
+ return throwDefaultError({
2015
1863
  output,
2016
1864
  parsedBody: parsedBody.Error,
2017
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2018
1865
  errorCode,
2019
1866
  });
2020
1867
  }
@@ -2030,7 +1877,7 @@ const de_DeleteSnapshotCommand = async (output, context) => {
2030
1877
  $metadata: deserializeMetadata(output),
2031
1878
  ...contents,
2032
1879
  };
2033
- return Promise.resolve(response);
1880
+ return response;
2034
1881
  };
2035
1882
  exports.de_DeleteSnapshotCommand = de_DeleteSnapshotCommand;
2036
1883
  const de_DeleteSnapshotCommandError = async (output, context) => {
@@ -2054,10 +1901,9 @@ const de_DeleteSnapshotCommandError = async (output, context) => {
2054
1901
  throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
2055
1902
  default:
2056
1903
  const parsedBody = parsedOutput.body;
2057
- (0, smithy_client_1.throwDefaultError)({
1904
+ return throwDefaultError({
2058
1905
  output,
2059
1906
  parsedBody: parsedBody.Error,
2060
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2061
1907
  errorCode,
2062
1908
  });
2063
1909
  }
@@ -2073,7 +1919,7 @@ const de_DeleteUserCommand = async (output, context) => {
2073
1919
  $metadata: deserializeMetadata(output),
2074
1920
  ...contents,
2075
1921
  };
2076
- return Promise.resolve(response);
1922
+ return response;
2077
1923
  };
2078
1924
  exports.de_DeleteUserCommand = de_DeleteUserCommand;
2079
1925
  const de_DeleteUserCommandError = async (output, context) => {
@@ -2100,10 +1946,9 @@ const de_DeleteUserCommandError = async (output, context) => {
2100
1946
  throw await de_UserNotFoundFaultRes(parsedOutput, context);
2101
1947
  default:
2102
1948
  const parsedBody = parsedOutput.body;
2103
- (0, smithy_client_1.throwDefaultError)({
1949
+ return throwDefaultError({
2104
1950
  output,
2105
1951
  parsedBody: parsedBody.Error,
2106
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2107
1952
  errorCode,
2108
1953
  });
2109
1954
  }
@@ -2119,7 +1964,7 @@ const de_DeleteUserGroupCommand = async (output, context) => {
2119
1964
  $metadata: deserializeMetadata(output),
2120
1965
  ...contents,
2121
1966
  };
2122
- return Promise.resolve(response);
1967
+ return response;
2123
1968
  };
2124
1969
  exports.de_DeleteUserGroupCommand = de_DeleteUserGroupCommand;
2125
1970
  const de_DeleteUserGroupCommandError = async (output, context) => {
@@ -2143,10 +1988,9 @@ const de_DeleteUserGroupCommandError = async (output, context) => {
2143
1988
  throw await de_UserGroupNotFoundFaultRes(parsedOutput, context);
2144
1989
  default:
2145
1990
  const parsedBody = parsedOutput.body;
2146
- (0, smithy_client_1.throwDefaultError)({
1991
+ return throwDefaultError({
2147
1992
  output,
2148
1993
  parsedBody: parsedBody.Error,
2149
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2150
1994
  errorCode,
2151
1995
  });
2152
1996
  }
@@ -2162,7 +2006,7 @@ const de_DescribeCacheClustersCommand = async (output, context) => {
2162
2006
  $metadata: deserializeMetadata(output),
2163
2007
  ...contents,
2164
2008
  };
2165
- return Promise.resolve(response);
2009
+ return response;
2166
2010
  };
2167
2011
  exports.de_DescribeCacheClustersCommand = de_DescribeCacheClustersCommand;
2168
2012
  const de_DescribeCacheClustersCommandError = async (output, context) => {
@@ -2183,10 +2027,9 @@ const de_DescribeCacheClustersCommandError = async (output, context) => {
2183
2027
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2184
2028
  default:
2185
2029
  const parsedBody = parsedOutput.body;
2186
- (0, smithy_client_1.throwDefaultError)({
2030
+ return throwDefaultError({
2187
2031
  output,
2188
2032
  parsedBody: parsedBody.Error,
2189
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2190
2033
  errorCode,
2191
2034
  });
2192
2035
  }
@@ -2202,7 +2045,7 @@ const de_DescribeCacheEngineVersionsCommand = async (output, context) => {
2202
2045
  $metadata: deserializeMetadata(output),
2203
2046
  ...contents,
2204
2047
  };
2205
- return Promise.resolve(response);
2048
+ return response;
2206
2049
  };
2207
2050
  exports.de_DescribeCacheEngineVersionsCommand = de_DescribeCacheEngineVersionsCommand;
2208
2051
  const de_DescribeCacheEngineVersionsCommandError = async (output, context) => {
@@ -2212,10 +2055,9 @@ const de_DescribeCacheEngineVersionsCommandError = async (output, context) => {
2212
2055
  };
2213
2056
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2214
2057
  const parsedBody = parsedOutput.body;
2215
- (0, smithy_client_1.throwDefaultError)({
2058
+ return throwDefaultError({
2216
2059
  output,
2217
2060
  parsedBody: parsedBody.Error,
2218
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2219
2061
  errorCode,
2220
2062
  });
2221
2063
  };
@@ -2230,7 +2072,7 @@ const de_DescribeCacheParameterGroupsCommand = async (output, context) => {
2230
2072
  $metadata: deserializeMetadata(output),
2231
2073
  ...contents,
2232
2074
  };
2233
- return Promise.resolve(response);
2075
+ return response;
2234
2076
  };
2235
2077
  exports.de_DescribeCacheParameterGroupsCommand = de_DescribeCacheParameterGroupsCommand;
2236
2078
  const de_DescribeCacheParameterGroupsCommandError = async (output, context) => {
@@ -2251,10 +2093,9 @@ const de_DescribeCacheParameterGroupsCommandError = async (output, context) => {
2251
2093
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2252
2094
  default:
2253
2095
  const parsedBody = parsedOutput.body;
2254
- (0, smithy_client_1.throwDefaultError)({
2096
+ return throwDefaultError({
2255
2097
  output,
2256
2098
  parsedBody: parsedBody.Error,
2257
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2258
2099
  errorCode,
2259
2100
  });
2260
2101
  }
@@ -2270,7 +2111,7 @@ const de_DescribeCacheParametersCommand = async (output, context) => {
2270
2111
  $metadata: deserializeMetadata(output),
2271
2112
  ...contents,
2272
2113
  };
2273
- return Promise.resolve(response);
2114
+ return response;
2274
2115
  };
2275
2116
  exports.de_DescribeCacheParametersCommand = de_DescribeCacheParametersCommand;
2276
2117
  const de_DescribeCacheParametersCommandError = async (output, context) => {
@@ -2291,10 +2132,9 @@ const de_DescribeCacheParametersCommandError = async (output, context) => {
2291
2132
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2292
2133
  default:
2293
2134
  const parsedBody = parsedOutput.body;
2294
- (0, smithy_client_1.throwDefaultError)({
2135
+ return throwDefaultError({
2295
2136
  output,
2296
2137
  parsedBody: parsedBody.Error,
2297
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2298
2138
  errorCode,
2299
2139
  });
2300
2140
  }
@@ -2310,7 +2150,7 @@ const de_DescribeCacheSecurityGroupsCommand = async (output, context) => {
2310
2150
  $metadata: deserializeMetadata(output),
2311
2151
  ...contents,
2312
2152
  };
2313
- return Promise.resolve(response);
2153
+ return response;
2314
2154
  };
2315
2155
  exports.de_DescribeCacheSecurityGroupsCommand = de_DescribeCacheSecurityGroupsCommand;
2316
2156
  const de_DescribeCacheSecurityGroupsCommandError = async (output, context) => {
@@ -2331,10 +2171,9 @@ const de_DescribeCacheSecurityGroupsCommandError = async (output, context) => {
2331
2171
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2332
2172
  default:
2333
2173
  const parsedBody = parsedOutput.body;
2334
- (0, smithy_client_1.throwDefaultError)({
2174
+ return throwDefaultError({
2335
2175
  output,
2336
2176
  parsedBody: parsedBody.Error,
2337
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2338
2177
  errorCode,
2339
2178
  });
2340
2179
  }
@@ -2350,7 +2189,7 @@ const de_DescribeCacheSubnetGroupsCommand = async (output, context) => {
2350
2189
  $metadata: deserializeMetadata(output),
2351
2190
  ...contents,
2352
2191
  };
2353
- return Promise.resolve(response);
2192
+ return response;
2354
2193
  };
2355
2194
  exports.de_DescribeCacheSubnetGroupsCommand = de_DescribeCacheSubnetGroupsCommand;
2356
2195
  const de_DescribeCacheSubnetGroupsCommandError = async (output, context) => {
@@ -2365,10 +2204,9 @@ const de_DescribeCacheSubnetGroupsCommandError = async (output, context) => {
2365
2204
  throw await de_CacheSubnetGroupNotFoundFaultRes(parsedOutput, context);
2366
2205
  default:
2367
2206
  const parsedBody = parsedOutput.body;
2368
- (0, smithy_client_1.throwDefaultError)({
2207
+ return throwDefaultError({
2369
2208
  output,
2370
2209
  parsedBody: parsedBody.Error,
2371
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2372
2210
  errorCode,
2373
2211
  });
2374
2212
  }
@@ -2384,7 +2222,7 @@ const de_DescribeEngineDefaultParametersCommand = async (output, context) => {
2384
2222
  $metadata: deserializeMetadata(output),
2385
2223
  ...contents,
2386
2224
  };
2387
- return Promise.resolve(response);
2225
+ return response;
2388
2226
  };
2389
2227
  exports.de_DescribeEngineDefaultParametersCommand = de_DescribeEngineDefaultParametersCommand;
2390
2228
  const de_DescribeEngineDefaultParametersCommandError = async (output, context) => {
@@ -2402,10 +2240,9 @@ const de_DescribeEngineDefaultParametersCommandError = async (output, context) =
2402
2240
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2403
2241
  default:
2404
2242
  const parsedBody = parsedOutput.body;
2405
- (0, smithy_client_1.throwDefaultError)({
2243
+ return throwDefaultError({
2406
2244
  output,
2407
2245
  parsedBody: parsedBody.Error,
2408
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2409
2246
  errorCode,
2410
2247
  });
2411
2248
  }
@@ -2421,7 +2258,7 @@ const de_DescribeEventsCommand = async (output, context) => {
2421
2258
  $metadata: deserializeMetadata(output),
2422
2259
  ...contents,
2423
2260
  };
2424
- return Promise.resolve(response);
2261
+ return response;
2425
2262
  };
2426
2263
  exports.de_DescribeEventsCommand = de_DescribeEventsCommand;
2427
2264
  const de_DescribeEventsCommandError = async (output, context) => {
@@ -2439,10 +2276,9 @@ const de_DescribeEventsCommandError = async (output, context) => {
2439
2276
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2440
2277
  default:
2441
2278
  const parsedBody = parsedOutput.body;
2442
- (0, smithy_client_1.throwDefaultError)({
2279
+ return throwDefaultError({
2443
2280
  output,
2444
2281
  parsedBody: parsedBody.Error,
2445
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2446
2282
  errorCode,
2447
2283
  });
2448
2284
  }
@@ -2458,7 +2294,7 @@ const de_DescribeGlobalReplicationGroupsCommand = async (output, context) => {
2458
2294
  $metadata: deserializeMetadata(output),
2459
2295
  ...contents,
2460
2296
  };
2461
- return Promise.resolve(response);
2297
+ return response;
2462
2298
  };
2463
2299
  exports.de_DescribeGlobalReplicationGroupsCommand = de_DescribeGlobalReplicationGroupsCommand;
2464
2300
  const de_DescribeGlobalReplicationGroupsCommandError = async (output, context) => {
@@ -2479,10 +2315,9 @@ const de_DescribeGlobalReplicationGroupsCommandError = async (output, context) =
2479
2315
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2480
2316
  default:
2481
2317
  const parsedBody = parsedOutput.body;
2482
- (0, smithy_client_1.throwDefaultError)({
2318
+ return throwDefaultError({
2483
2319
  output,
2484
2320
  parsedBody: parsedBody.Error,
2485
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2486
2321
  errorCode,
2487
2322
  });
2488
2323
  }
@@ -2498,7 +2333,7 @@ const de_DescribeReplicationGroupsCommand = async (output, context) => {
2498
2333
  $metadata: deserializeMetadata(output),
2499
2334
  ...contents,
2500
2335
  };
2501
- return Promise.resolve(response);
2336
+ return response;
2502
2337
  };
2503
2338
  exports.de_DescribeReplicationGroupsCommand = de_DescribeReplicationGroupsCommand;
2504
2339
  const de_DescribeReplicationGroupsCommandError = async (output, context) => {
@@ -2519,10 +2354,9 @@ const de_DescribeReplicationGroupsCommandError = async (output, context) => {
2519
2354
  throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
2520
2355
  default:
2521
2356
  const parsedBody = parsedOutput.body;
2522
- (0, smithy_client_1.throwDefaultError)({
2357
+ return throwDefaultError({
2523
2358
  output,
2524
2359
  parsedBody: parsedBody.Error,
2525
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2526
2360
  errorCode,
2527
2361
  });
2528
2362
  }
@@ -2538,7 +2372,7 @@ const de_DescribeReservedCacheNodesCommand = async (output, context) => {
2538
2372
  $metadata: deserializeMetadata(output),
2539
2373
  ...contents,
2540
2374
  };
2541
- return Promise.resolve(response);
2375
+ return response;
2542
2376
  };
2543
2377
  exports.de_DescribeReservedCacheNodesCommand = de_DescribeReservedCacheNodesCommand;
2544
2378
  const de_DescribeReservedCacheNodesCommandError = async (output, context) => {
@@ -2559,10 +2393,9 @@ const de_DescribeReservedCacheNodesCommandError = async (output, context) => {
2559
2393
  throw await de_ReservedCacheNodeNotFoundFaultRes(parsedOutput, context);
2560
2394
  default:
2561
2395
  const parsedBody = parsedOutput.body;
2562
- (0, smithy_client_1.throwDefaultError)({
2396
+ return throwDefaultError({
2563
2397
  output,
2564
2398
  parsedBody: parsedBody.Error,
2565
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2566
2399
  errorCode,
2567
2400
  });
2568
2401
  }
@@ -2578,7 +2411,7 @@ const de_DescribeReservedCacheNodesOfferingsCommand = async (output, context) =>
2578
2411
  $metadata: deserializeMetadata(output),
2579
2412
  ...contents,
2580
2413
  };
2581
- return Promise.resolve(response);
2414
+ return response;
2582
2415
  };
2583
2416
  exports.de_DescribeReservedCacheNodesOfferingsCommand = de_DescribeReservedCacheNodesOfferingsCommand;
2584
2417
  const de_DescribeReservedCacheNodesOfferingsCommandError = async (output, context) => {
@@ -2599,10 +2432,9 @@ const de_DescribeReservedCacheNodesOfferingsCommandError = async (output, contex
2599
2432
  throw await de_ReservedCacheNodesOfferingNotFoundFaultRes(parsedOutput, context);
2600
2433
  default:
2601
2434
  const parsedBody = parsedOutput.body;
2602
- (0, smithy_client_1.throwDefaultError)({
2435
+ return throwDefaultError({
2603
2436
  output,
2604
2437
  parsedBody: parsedBody.Error,
2605
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2606
2438
  errorCode,
2607
2439
  });
2608
2440
  }
@@ -2618,7 +2450,7 @@ const de_DescribeServiceUpdatesCommand = async (output, context) => {
2618
2450
  $metadata: deserializeMetadata(output),
2619
2451
  ...contents,
2620
2452
  };
2621
- return Promise.resolve(response);
2453
+ return response;
2622
2454
  };
2623
2455
  exports.de_DescribeServiceUpdatesCommand = de_DescribeServiceUpdatesCommand;
2624
2456
  const de_DescribeServiceUpdatesCommandError = async (output, context) => {
@@ -2639,10 +2471,9 @@ const de_DescribeServiceUpdatesCommandError = async (output, context) => {
2639
2471
  throw await de_ServiceUpdateNotFoundFaultRes(parsedOutput, context);
2640
2472
  default:
2641
2473
  const parsedBody = parsedOutput.body;
2642
- (0, smithy_client_1.throwDefaultError)({
2474
+ return throwDefaultError({
2643
2475
  output,
2644
2476
  parsedBody: parsedBody.Error,
2645
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2646
2477
  errorCode,
2647
2478
  });
2648
2479
  }
@@ -2658,7 +2489,7 @@ const de_DescribeSnapshotsCommand = async (output, context) => {
2658
2489
  $metadata: deserializeMetadata(output),
2659
2490
  ...contents,
2660
2491
  };
2661
- return Promise.resolve(response);
2492
+ return response;
2662
2493
  };
2663
2494
  exports.de_DescribeSnapshotsCommand = de_DescribeSnapshotsCommand;
2664
2495
  const de_DescribeSnapshotsCommandError = async (output, context) => {
@@ -2682,10 +2513,9 @@ const de_DescribeSnapshotsCommandError = async (output, context) => {
2682
2513
  throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
2683
2514
  default:
2684
2515
  const parsedBody = parsedOutput.body;
2685
- (0, smithy_client_1.throwDefaultError)({
2516
+ return throwDefaultError({
2686
2517
  output,
2687
2518
  parsedBody: parsedBody.Error,
2688
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2689
2519
  errorCode,
2690
2520
  });
2691
2521
  }
@@ -2701,7 +2531,7 @@ const de_DescribeUpdateActionsCommand = async (output, context) => {
2701
2531
  $metadata: deserializeMetadata(output),
2702
2532
  ...contents,
2703
2533
  };
2704
- return Promise.resolve(response);
2534
+ return response;
2705
2535
  };
2706
2536
  exports.de_DescribeUpdateActionsCommand = de_DescribeUpdateActionsCommand;
2707
2537
  const de_DescribeUpdateActionsCommandError = async (output, context) => {
@@ -2719,10 +2549,9 @@ const de_DescribeUpdateActionsCommandError = async (output, context) => {
2719
2549
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2720
2550
  default:
2721
2551
  const parsedBody = parsedOutput.body;
2722
- (0, smithy_client_1.throwDefaultError)({
2552
+ return throwDefaultError({
2723
2553
  output,
2724
2554
  parsedBody: parsedBody.Error,
2725
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2726
2555
  errorCode,
2727
2556
  });
2728
2557
  }
@@ -2738,7 +2567,7 @@ const de_DescribeUserGroupsCommand = async (output, context) => {
2738
2567
  $metadata: deserializeMetadata(output),
2739
2568
  ...contents,
2740
2569
  };
2741
- return Promise.resolve(response);
2570
+ return response;
2742
2571
  };
2743
2572
  exports.de_DescribeUserGroupsCommand = de_DescribeUserGroupsCommand;
2744
2573
  const de_DescribeUserGroupsCommandError = async (output, context) => {
@@ -2759,10 +2588,9 @@ const de_DescribeUserGroupsCommandError = async (output, context) => {
2759
2588
  throw await de_UserGroupNotFoundFaultRes(parsedOutput, context);
2760
2589
  default:
2761
2590
  const parsedBody = parsedOutput.body;
2762
- (0, smithy_client_1.throwDefaultError)({
2591
+ return throwDefaultError({
2763
2592
  output,
2764
2593
  parsedBody: parsedBody.Error,
2765
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2766
2594
  errorCode,
2767
2595
  });
2768
2596
  }
@@ -2778,7 +2606,7 @@ const de_DescribeUsersCommand = async (output, context) => {
2778
2606
  $metadata: deserializeMetadata(output),
2779
2607
  ...contents,
2780
2608
  };
2781
- return Promise.resolve(response);
2609
+ return response;
2782
2610
  };
2783
2611
  exports.de_DescribeUsersCommand = de_DescribeUsersCommand;
2784
2612
  const de_DescribeUsersCommandError = async (output, context) => {
@@ -2799,10 +2627,9 @@ const de_DescribeUsersCommandError = async (output, context) => {
2799
2627
  throw await de_UserNotFoundFaultRes(parsedOutput, context);
2800
2628
  default:
2801
2629
  const parsedBody = parsedOutput.body;
2802
- (0, smithy_client_1.throwDefaultError)({
2630
+ return throwDefaultError({
2803
2631
  output,
2804
2632
  parsedBody: parsedBody.Error,
2805
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2806
2633
  errorCode,
2807
2634
  });
2808
2635
  }
@@ -2818,7 +2645,7 @@ const de_DisassociateGlobalReplicationGroupCommand = async (output, context) =>
2818
2645
  $metadata: deserializeMetadata(output),
2819
2646
  ...contents,
2820
2647
  };
2821
- return Promise.resolve(response);
2648
+ return response;
2822
2649
  };
2823
2650
  exports.de_DisassociateGlobalReplicationGroupCommand = de_DisassociateGlobalReplicationGroupCommand;
2824
2651
  const de_DisassociateGlobalReplicationGroupCommandError = async (output, context) => {
@@ -2842,10 +2669,9 @@ const de_DisassociateGlobalReplicationGroupCommandError = async (output, context
2842
2669
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2843
2670
  default:
2844
2671
  const parsedBody = parsedOutput.body;
2845
- (0, smithy_client_1.throwDefaultError)({
2672
+ return throwDefaultError({
2846
2673
  output,
2847
2674
  parsedBody: parsedBody.Error,
2848
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2849
2675
  errorCode,
2850
2676
  });
2851
2677
  }
@@ -2861,7 +2687,7 @@ const de_FailoverGlobalReplicationGroupCommand = async (output, context) => {
2861
2687
  $metadata: deserializeMetadata(output),
2862
2688
  ...contents,
2863
2689
  };
2864
- return Promise.resolve(response);
2690
+ return response;
2865
2691
  };
2866
2692
  exports.de_FailoverGlobalReplicationGroupCommand = de_FailoverGlobalReplicationGroupCommand;
2867
2693
  const de_FailoverGlobalReplicationGroupCommandError = async (output, context) => {
@@ -2885,10 +2711,9 @@ const de_FailoverGlobalReplicationGroupCommandError = async (output, context) =>
2885
2711
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2886
2712
  default:
2887
2713
  const parsedBody = parsedOutput.body;
2888
- (0, smithy_client_1.throwDefaultError)({
2714
+ return throwDefaultError({
2889
2715
  output,
2890
2716
  parsedBody: parsedBody.Error,
2891
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2892
2717
  errorCode,
2893
2718
  });
2894
2719
  }
@@ -2904,7 +2729,7 @@ const de_IncreaseNodeGroupsInGlobalReplicationGroupCommand = async (output, cont
2904
2729
  $metadata: deserializeMetadata(output),
2905
2730
  ...contents,
2906
2731
  };
2907
- return Promise.resolve(response);
2732
+ return response;
2908
2733
  };
2909
2734
  exports.de_IncreaseNodeGroupsInGlobalReplicationGroupCommand = de_IncreaseNodeGroupsInGlobalReplicationGroupCommand;
2910
2735
  const de_IncreaseNodeGroupsInGlobalReplicationGroupCommandError = async (output, context) => {
@@ -2925,10 +2750,9 @@ const de_IncreaseNodeGroupsInGlobalReplicationGroupCommandError = async (output,
2925
2750
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2926
2751
  default:
2927
2752
  const parsedBody = parsedOutput.body;
2928
- (0, smithy_client_1.throwDefaultError)({
2753
+ return throwDefaultError({
2929
2754
  output,
2930
2755
  parsedBody: parsedBody.Error,
2931
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2932
2756
  errorCode,
2933
2757
  });
2934
2758
  }
@@ -2944,7 +2768,7 @@ const de_IncreaseReplicaCountCommand = async (output, context) => {
2944
2768
  $metadata: deserializeMetadata(output),
2945
2769
  ...contents,
2946
2770
  };
2947
- return Promise.resolve(response);
2771
+ return response;
2948
2772
  };
2949
2773
  exports.de_IncreaseReplicaCountCommand = de_IncreaseReplicaCountCommand;
2950
2774
  const de_IncreaseReplicaCountCommandError = async (output, context) => {
@@ -2992,10 +2816,9 @@ const de_IncreaseReplicaCountCommandError = async (output, context) => {
2992
2816
  throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
2993
2817
  default:
2994
2818
  const parsedBody = parsedOutput.body;
2995
- (0, smithy_client_1.throwDefaultError)({
2819
+ return throwDefaultError({
2996
2820
  output,
2997
2821
  parsedBody: parsedBody.Error,
2998
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2999
2822
  errorCode,
3000
2823
  });
3001
2824
  }
@@ -3011,7 +2834,7 @@ const de_ListAllowedNodeTypeModificationsCommand = async (output, context) => {
3011
2834
  $metadata: deserializeMetadata(output),
3012
2835
  ...contents,
3013
2836
  };
3014
- return Promise.resolve(response);
2837
+ return response;
3015
2838
  };
3016
2839
  exports.de_ListAllowedNodeTypeModificationsCommand = de_ListAllowedNodeTypeModificationsCommand;
3017
2840
  const de_ListAllowedNodeTypeModificationsCommandError = async (output, context) => {
@@ -3035,10 +2858,9 @@ const de_ListAllowedNodeTypeModificationsCommandError = async (output, context)
3035
2858
  throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
3036
2859
  default:
3037
2860
  const parsedBody = parsedOutput.body;
3038
- (0, smithy_client_1.throwDefaultError)({
2861
+ return throwDefaultError({
3039
2862
  output,
3040
2863
  parsedBody: parsedBody.Error,
3041
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
3042
2864
  errorCode,
3043
2865
  });
3044
2866
  }
@@ -3054,7 +2876,7 @@ const de_ListTagsForResourceCommand = async (output, context) => {
3054
2876
  $metadata: deserializeMetadata(output),
3055
2877
  ...contents,
3056
2878
  };
3057
- return Promise.resolve(response);
2879
+ return response;
3058
2880
  };
3059
2881
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
3060
2882
  const de_ListTagsForResourceCommandError = async (output, context) => {
@@ -3099,10 +2921,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
3099
2921
  throw await de_UserNotFoundFaultRes(parsedOutput, context);
3100
2922
  default:
3101
2923
  const parsedBody = parsedOutput.body;
3102
- (0, smithy_client_1.throwDefaultError)({
2924
+ return throwDefaultError({
3103
2925
  output,
3104
2926
  parsedBody: parsedBody.Error,
3105
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
3106
2927
  errorCode,
3107
2928
  });
3108
2929
  }
@@ -3118,7 +2939,7 @@ const de_ModifyCacheClusterCommand = async (output, context) => {
3118
2939
  $metadata: deserializeMetadata(output),
3119
2940
  ...contents,
3120
2941
  };
3121
- return Promise.resolve(response);
2942
+ return response;
3122
2943
  };
3123
2944
  exports.de_ModifyCacheClusterCommand = de_ModifyCacheClusterCommand;
3124
2945
  const de_ModifyCacheClusterCommandError = async (output, context) => {
@@ -3163,10 +2984,9 @@ const de_ModifyCacheClusterCommandError = async (output, context) => {
3163
2984
  throw await de_NodeQuotaForCustomerExceededFaultRes(parsedOutput, context);
3164
2985
  default:
3165
2986
  const parsedBody = parsedOutput.body;
3166
- (0, smithy_client_1.throwDefaultError)({
2987
+ return throwDefaultError({
3167
2988
  output,
3168
2989
  parsedBody: parsedBody.Error,
3169
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
3170
2990
  errorCode,
3171
2991
  });
3172
2992
  }
@@ -3182,7 +3002,7 @@ const de_ModifyCacheParameterGroupCommand = async (output, context) => {
3182
3002
  $metadata: deserializeMetadata(output),
3183
3003
  ...contents,
3184
3004
  };
3185
- return Promise.resolve(response);
3005
+ return response;
3186
3006
  };
3187
3007
  exports.de_ModifyCacheParameterGroupCommand = de_ModifyCacheParameterGroupCommand;
3188
3008
  const de_ModifyCacheParameterGroupCommandError = async (output, context) => {
@@ -3209,10 +3029,9 @@ const de_ModifyCacheParameterGroupCommandError = async (output, context) => {
3209
3029
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
3210
3030
  default:
3211
3031
  const parsedBody = parsedOutput.body;
3212
- (0, smithy_client_1.throwDefaultError)({
3032
+ return throwDefaultError({
3213
3033
  output,
3214
3034
  parsedBody: parsedBody.Error,
3215
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
3216
3035
  errorCode,
3217
3036
  });
3218
3037
  }
@@ -3228,7 +3047,7 @@ const de_ModifyCacheSubnetGroupCommand = async (output, context) => {
3228
3047
  $metadata: deserializeMetadata(output),
3229
3048
  ...contents,
3230
3049
  };
3231
- return Promise.resolve(response);
3050
+ return response;
3232
3051
  };
3233
3052
  exports.de_ModifyCacheSubnetGroupCommand = de_ModifyCacheSubnetGroupCommand;
3234
3053
  const de_ModifyCacheSubnetGroupCommandError = async (output, context) => {
@@ -3255,10 +3074,9 @@ const de_ModifyCacheSubnetGroupCommandError = async (output, context) => {
3255
3074
  throw await de_SubnetNotAllowedFaultRes(parsedOutput, context);
3256
3075
  default:
3257
3076
  const parsedBody = parsedOutput.body;
3258
- (0, smithy_client_1.throwDefaultError)({
3077
+ return throwDefaultError({
3259
3078
  output,
3260
3079
  parsedBody: parsedBody.Error,
3261
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
3262
3080
  errorCode,
3263
3081
  });
3264
3082
  }
@@ -3274,7 +3092,7 @@ const de_ModifyGlobalReplicationGroupCommand = async (output, context) => {
3274
3092
  $metadata: deserializeMetadata(output),
3275
3093
  ...contents,
3276
3094
  };
3277
- return Promise.resolve(response);
3095
+ return response;
3278
3096
  };
3279
3097
  exports.de_ModifyGlobalReplicationGroupCommand = de_ModifyGlobalReplicationGroupCommand;
3280
3098
  const de_ModifyGlobalReplicationGroupCommandError = async (output, context) => {
@@ -3295,10 +3113,9 @@ const de_ModifyGlobalReplicationGroupCommandError = async (output, context) => {
3295
3113
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
3296
3114
  default:
3297
3115
  const parsedBody = parsedOutput.body;
3298
- (0, smithy_client_1.throwDefaultError)({
3116
+ return throwDefaultError({
3299
3117
  output,
3300
3118
  parsedBody: parsedBody.Error,
3301
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
3302
3119
  errorCode,
3303
3120
  });
3304
3121
  }
@@ -3314,7 +3131,7 @@ const de_ModifyReplicationGroupCommand = async (output, context) => {
3314
3131
  $metadata: deserializeMetadata(output),
3315
3132
  ...contents,
3316
3133
  };
3317
- return Promise.resolve(response);
3134
+ return response;
3318
3135
  };
3319
3136
  exports.de_ModifyReplicationGroupCommand = de_ModifyReplicationGroupCommand;
3320
3137
  const de_ModifyReplicationGroupCommandError = async (output, context) => {
@@ -3374,10 +3191,9 @@ const de_ModifyReplicationGroupCommandError = async (output, context) => {
3374
3191
  throw await de_UserGroupNotFoundFaultRes(parsedOutput, context);
3375
3192
  default:
3376
3193
  const parsedBody = parsedOutput.body;
3377
- (0, smithy_client_1.throwDefaultError)({
3194
+ return throwDefaultError({
3378
3195
  output,
3379
3196
  parsedBody: parsedBody.Error,
3380
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
3381
3197
  errorCode,
3382
3198
  });
3383
3199
  }
@@ -3393,7 +3209,7 @@ const de_ModifyReplicationGroupShardConfigurationCommand = async (output, contex
3393
3209
  $metadata: deserializeMetadata(output),
3394
3210
  ...contents,
3395
3211
  };
3396
- return Promise.resolve(response);
3212
+ return response;
3397
3213
  };
3398
3214
  exports.de_ModifyReplicationGroupShardConfigurationCommand = de_ModifyReplicationGroupShardConfigurationCommand;
3399
3215
  const de_ModifyReplicationGroupShardConfigurationCommandError = async (output, context) => {
@@ -3435,10 +3251,9 @@ const de_ModifyReplicationGroupShardConfigurationCommandError = async (output, c
3435
3251
  throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
3436
3252
  default:
3437
3253
  const parsedBody = parsedOutput.body;
3438
- (0, smithy_client_1.throwDefaultError)({
3254
+ return throwDefaultError({
3439
3255
  output,
3440
3256
  parsedBody: parsedBody.Error,
3441
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
3442
3257
  errorCode,
3443
3258
  });
3444
3259
  }
@@ -3454,7 +3269,7 @@ const de_ModifyUserCommand = async (output, context) => {
3454
3269
  $metadata: deserializeMetadata(output),
3455
3270
  ...contents,
3456
3271
  };
3457
- return Promise.resolve(response);
3272
+ return response;
3458
3273
  };
3459
3274
  exports.de_ModifyUserCommand = de_ModifyUserCommand;
3460
3275
  const de_ModifyUserCommandError = async (output, context) => {
@@ -3481,10 +3296,9 @@ const de_ModifyUserCommandError = async (output, context) => {
3481
3296
  throw await de_UserNotFoundFaultRes(parsedOutput, context);
3482
3297
  default:
3483
3298
  const parsedBody = parsedOutput.body;
3484
- (0, smithy_client_1.throwDefaultError)({
3299
+ return throwDefaultError({
3485
3300
  output,
3486
3301
  parsedBody: parsedBody.Error,
3487
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
3488
3302
  errorCode,
3489
3303
  });
3490
3304
  }
@@ -3500,7 +3314,7 @@ const de_ModifyUserGroupCommand = async (output, context) => {
3500
3314
  $metadata: deserializeMetadata(output),
3501
3315
  ...contents,
3502
3316
  };
3503
- return Promise.resolve(response);
3317
+ return response;
3504
3318
  };
3505
3319
  exports.de_ModifyUserGroupCommand = de_ModifyUserGroupCommand;
3506
3320
  const de_ModifyUserGroupCommandError = async (output, context) => {
@@ -3536,10 +3350,9 @@ const de_ModifyUserGroupCommandError = async (output, context) => {
3536
3350
  throw await de_UserNotFoundFaultRes(parsedOutput, context);
3537
3351
  default:
3538
3352
  const parsedBody = parsedOutput.body;
3539
- (0, smithy_client_1.throwDefaultError)({
3353
+ return throwDefaultError({
3540
3354
  output,
3541
3355
  parsedBody: parsedBody.Error,
3542
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
3543
3356
  errorCode,
3544
3357
  });
3545
3358
  }
@@ -3555,7 +3368,7 @@ const de_PurchaseReservedCacheNodesOfferingCommand = async (output, context) =>
3555
3368
  $metadata: deserializeMetadata(output),
3556
3369
  ...contents,
3557
3370
  };
3558
- return Promise.resolve(response);
3371
+ return response;
3559
3372
  };
3560
3373
  exports.de_PurchaseReservedCacheNodesOfferingCommand = de_PurchaseReservedCacheNodesOfferingCommand;
3561
3374
  const de_PurchaseReservedCacheNodesOfferingCommandError = async (output, context) => {
@@ -3585,10 +3398,9 @@ const de_PurchaseReservedCacheNodesOfferingCommandError = async (output, context
3585
3398
  throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
3586
3399
  default:
3587
3400
  const parsedBody = parsedOutput.body;
3588
- (0, smithy_client_1.throwDefaultError)({
3401
+ return throwDefaultError({
3589
3402
  output,
3590
3403
  parsedBody: parsedBody.Error,
3591
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
3592
3404
  errorCode,
3593
3405
  });
3594
3406
  }
@@ -3604,7 +3416,7 @@ const de_RebalanceSlotsInGlobalReplicationGroupCommand = async (output, context)
3604
3416
  $metadata: deserializeMetadata(output),
3605
3417
  ...contents,
3606
3418
  };
3607
- return Promise.resolve(response);
3419
+ return response;
3608
3420
  };
3609
3421
  exports.de_RebalanceSlotsInGlobalReplicationGroupCommand = de_RebalanceSlotsInGlobalReplicationGroupCommand;
3610
3422
  const de_RebalanceSlotsInGlobalReplicationGroupCommandError = async (output, context) => {
@@ -3625,10 +3437,9 @@ const de_RebalanceSlotsInGlobalReplicationGroupCommandError = async (output, con
3625
3437
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
3626
3438
  default:
3627
3439
  const parsedBody = parsedOutput.body;
3628
- (0, smithy_client_1.throwDefaultError)({
3440
+ return throwDefaultError({
3629
3441
  output,
3630
3442
  parsedBody: parsedBody.Error,
3631
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
3632
3443
  errorCode,
3633
3444
  });
3634
3445
  }
@@ -3644,7 +3455,7 @@ const de_RebootCacheClusterCommand = async (output, context) => {
3644
3455
  $metadata: deserializeMetadata(output),
3645
3456
  ...contents,
3646
3457
  };
3647
- return Promise.resolve(response);
3458
+ return response;
3648
3459
  };
3649
3460
  exports.de_RebootCacheClusterCommand = de_RebootCacheClusterCommand;
3650
3461
  const de_RebootCacheClusterCommandError = async (output, context) => {
@@ -3662,10 +3473,9 @@ const de_RebootCacheClusterCommandError = async (output, context) => {
3662
3473
  throw await de_InvalidCacheClusterStateFaultRes(parsedOutput, context);
3663
3474
  default:
3664
3475
  const parsedBody = parsedOutput.body;
3665
- (0, smithy_client_1.throwDefaultError)({
3476
+ return throwDefaultError({
3666
3477
  output,
3667
3478
  parsedBody: parsedBody.Error,
3668
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
3669
3479
  errorCode,
3670
3480
  });
3671
3481
  }
@@ -3681,7 +3491,7 @@ const de_RemoveTagsFromResourceCommand = async (output, context) => {
3681
3491
  $metadata: deserializeMetadata(output),
3682
3492
  ...contents,
3683
3493
  };
3684
- return Promise.resolve(response);
3494
+ return response;
3685
3495
  };
3686
3496
  exports.de_RemoveTagsFromResourceCommand = de_RemoveTagsFromResourceCommand;
3687
3497
  const de_RemoveTagsFromResourceCommandError = async (output, context) => {
@@ -3729,10 +3539,9 @@ const de_RemoveTagsFromResourceCommandError = async (output, context) => {
3729
3539
  throw await de_UserNotFoundFaultRes(parsedOutput, context);
3730
3540
  default:
3731
3541
  const parsedBody = parsedOutput.body;
3732
- (0, smithy_client_1.throwDefaultError)({
3542
+ return throwDefaultError({
3733
3543
  output,
3734
3544
  parsedBody: parsedBody.Error,
3735
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
3736
3545
  errorCode,
3737
3546
  });
3738
3547
  }
@@ -3748,7 +3557,7 @@ const de_ResetCacheParameterGroupCommand = async (output, context) => {
3748
3557
  $metadata: deserializeMetadata(output),
3749
3558
  ...contents,
3750
3559
  };
3751
- return Promise.resolve(response);
3560
+ return response;
3752
3561
  };
3753
3562
  exports.de_ResetCacheParameterGroupCommand = de_ResetCacheParameterGroupCommand;
3754
3563
  const de_ResetCacheParameterGroupCommandError = async (output, context) => {
@@ -3775,10 +3584,9 @@ const de_ResetCacheParameterGroupCommandError = async (output, context) => {
3775
3584
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
3776
3585
  default:
3777
3586
  const parsedBody = parsedOutput.body;
3778
- (0, smithy_client_1.throwDefaultError)({
3587
+ return throwDefaultError({
3779
3588
  output,
3780
3589
  parsedBody: parsedBody.Error,
3781
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
3782
3590
  errorCode,
3783
3591
  });
3784
3592
  }
@@ -3794,7 +3602,7 @@ const de_RevokeCacheSecurityGroupIngressCommand = async (output, context) => {
3794
3602
  $metadata: deserializeMetadata(output),
3795
3603
  ...contents,
3796
3604
  };
3797
- return Promise.resolve(response);
3605
+ return response;
3798
3606
  };
3799
3607
  exports.de_RevokeCacheSecurityGroupIngressCommand = de_RevokeCacheSecurityGroupIngressCommand;
3800
3608
  const de_RevokeCacheSecurityGroupIngressCommandError = async (output, context) => {
@@ -3821,10 +3629,9 @@ const de_RevokeCacheSecurityGroupIngressCommandError = async (output, context) =
3821
3629
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
3822
3630
  default:
3823
3631
  const parsedBody = parsedOutput.body;
3824
- (0, smithy_client_1.throwDefaultError)({
3632
+ return throwDefaultError({
3825
3633
  output,
3826
3634
  parsedBody: parsedBody.Error,
3827
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
3828
3635
  errorCode,
3829
3636
  });
3830
3637
  }
@@ -3840,7 +3647,7 @@ const de_StartMigrationCommand = async (output, context) => {
3840
3647
  $metadata: deserializeMetadata(output),
3841
3648
  ...contents,
3842
3649
  };
3843
- return Promise.resolve(response);
3650
+ return response;
3844
3651
  };
3845
3652
  exports.de_StartMigrationCommand = de_StartMigrationCommand;
3846
3653
  const de_StartMigrationCommandError = async (output, context) => {
@@ -3864,10 +3671,9 @@ const de_StartMigrationCommandError = async (output, context) => {
3864
3671
  throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
3865
3672
  default:
3866
3673
  const parsedBody = parsedOutput.body;
3867
- (0, smithy_client_1.throwDefaultError)({
3674
+ return throwDefaultError({
3868
3675
  output,
3869
3676
  parsedBody: parsedBody.Error,
3870
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
3871
3677
  errorCode,
3872
3678
  });
3873
3679
  }
@@ -3883,7 +3689,7 @@ const de_TestFailoverCommand = async (output, context) => {
3883
3689
  $metadata: deserializeMetadata(output),
3884
3690
  ...contents,
3885
3691
  };
3886
- return Promise.resolve(response);
3692
+ return response;
3887
3693
  };
3888
3694
  exports.de_TestFailoverCommand = de_TestFailoverCommand;
3889
3695
  const de_TestFailoverCommandError = async (output, context) => {
@@ -3922,10 +3728,9 @@ const de_TestFailoverCommandError = async (output, context) => {
3922
3728
  throw await de_TestFailoverNotAvailableFaultRes(parsedOutput, context);
3923
3729
  default:
3924
3730
  const parsedBody = parsedOutput.body;
3925
- (0, smithy_client_1.throwDefaultError)({
3731
+ return throwDefaultError({
3926
3732
  output,
3927
3733
  parsedBody: parsedBody.Error,
3928
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
3929
3734
  errorCode,
3930
3735
  });
3931
3736
  }
@@ -9635,6 +9440,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
9635
9440
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
9636
9441
  };
9637
9442
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
9443
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(ElastiCacheServiceException_1.ElastiCacheServiceException);
9638
9444
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
9639
9445
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
9640
9446
  const contents = {
@@ -9653,6 +9459,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
9653
9459
  }
9654
9460
  return new protocol_http_1.HttpRequest(contents);
9655
9461
  };
9462
+ const SHARED_HEADERS = {
9463
+ "content-type": "application/x-www-form-urlencoded",
9464
+ };
9656
9465
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
9657
9466
  if (encoded.length) {
9658
9467
  const parser = new fast_xml_parser_1.XMLParser({