@aws-sdk/client-dax 3.504.0 → 3.507.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.
@@ -130,7 +130,7 @@ export const se_UpdateSubnetGroupCommand = async (input, context) => {
130
130
  };
131
131
  export const de_CreateClusterCommand = async (output, context) => {
132
132
  if (output.statusCode >= 300) {
133
- return de_CreateClusterCommandError(output, context);
133
+ return de_CommandError(output, context);
134
134
  }
135
135
  const data = await parseBody(output.body, context);
136
136
  let contents = {};
@@ -141,70 +141,9 @@ export const de_CreateClusterCommand = async (output, context) => {
141
141
  };
142
142
  return response;
143
143
  };
144
- const de_CreateClusterCommandError = async (output, context) => {
145
- const parsedOutput = {
146
- ...output,
147
- body: await parseErrorBody(output.body, context),
148
- };
149
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
150
- switch (errorCode) {
151
- case "ClusterAlreadyExistsFault":
152
- case "com.amazonaws.dax#ClusterAlreadyExistsFault":
153
- throw await de_ClusterAlreadyExistsFaultRes(parsedOutput, context);
154
- case "ClusterQuotaForCustomerExceededFault":
155
- case "com.amazonaws.dax#ClusterQuotaForCustomerExceededFault":
156
- throw await de_ClusterQuotaForCustomerExceededFaultRes(parsedOutput, context);
157
- case "InsufficientClusterCapacityFault":
158
- case "com.amazonaws.dax#InsufficientClusterCapacityFault":
159
- throw await de_InsufficientClusterCapacityFaultRes(parsedOutput, context);
160
- case "InvalidClusterStateFault":
161
- case "com.amazonaws.dax#InvalidClusterStateFault":
162
- throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
163
- case "InvalidParameterCombinationException":
164
- case "com.amazonaws.dax#InvalidParameterCombinationException":
165
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
166
- case "InvalidParameterGroupStateFault":
167
- case "com.amazonaws.dax#InvalidParameterGroupStateFault":
168
- throw await de_InvalidParameterGroupStateFaultRes(parsedOutput, context);
169
- case "InvalidParameterValueException":
170
- case "com.amazonaws.dax#InvalidParameterValueException":
171
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
172
- case "InvalidVPCNetworkStateFault":
173
- case "com.amazonaws.dax#InvalidVPCNetworkStateFault":
174
- throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
175
- case "NodeQuotaForClusterExceededFault":
176
- case "com.amazonaws.dax#NodeQuotaForClusterExceededFault":
177
- throw await de_NodeQuotaForClusterExceededFaultRes(parsedOutput, context);
178
- case "NodeQuotaForCustomerExceededFault":
179
- case "com.amazonaws.dax#NodeQuotaForCustomerExceededFault":
180
- throw await de_NodeQuotaForCustomerExceededFaultRes(parsedOutput, context);
181
- case "ParameterGroupNotFoundFault":
182
- case "com.amazonaws.dax#ParameterGroupNotFoundFault":
183
- throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
184
- case "ServiceLinkedRoleNotFoundFault":
185
- case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
186
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
187
- case "ServiceQuotaExceededException":
188
- case "com.amazonaws.dax#ServiceQuotaExceededException":
189
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
190
- case "SubnetGroupNotFoundFault":
191
- case "com.amazonaws.dax#SubnetGroupNotFoundFault":
192
- throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
193
- case "TagQuotaPerResourceExceeded":
194
- case "com.amazonaws.dax#TagQuotaPerResourceExceeded":
195
- throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
196
- default:
197
- const parsedBody = parsedOutput.body;
198
- return throwDefaultError({
199
- output,
200
- parsedBody,
201
- errorCode,
202
- });
203
- }
204
- };
205
144
  export const de_CreateParameterGroupCommand = async (output, context) => {
206
145
  if (output.statusCode >= 300) {
207
- return de_CreateParameterGroupCommandError(output, context);
146
+ return de_CommandError(output, context);
208
147
  }
209
148
  const data = await parseBody(output.body, context);
210
149
  let contents = {};
@@ -215,43 +154,9 @@ export const de_CreateParameterGroupCommand = async (output, context) => {
215
154
  };
216
155
  return response;
217
156
  };
218
- const de_CreateParameterGroupCommandError = async (output, context) => {
219
- const parsedOutput = {
220
- ...output,
221
- body: await parseErrorBody(output.body, context),
222
- };
223
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
224
- switch (errorCode) {
225
- case "InvalidParameterCombinationException":
226
- case "com.amazonaws.dax#InvalidParameterCombinationException":
227
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
228
- case "InvalidParameterGroupStateFault":
229
- case "com.amazonaws.dax#InvalidParameterGroupStateFault":
230
- throw await de_InvalidParameterGroupStateFaultRes(parsedOutput, context);
231
- case "InvalidParameterValueException":
232
- case "com.amazonaws.dax#InvalidParameterValueException":
233
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
234
- case "ParameterGroupAlreadyExistsFault":
235
- case "com.amazonaws.dax#ParameterGroupAlreadyExistsFault":
236
- throw await de_ParameterGroupAlreadyExistsFaultRes(parsedOutput, context);
237
- case "ParameterGroupQuotaExceededFault":
238
- case "com.amazonaws.dax#ParameterGroupQuotaExceededFault":
239
- throw await de_ParameterGroupQuotaExceededFaultRes(parsedOutput, context);
240
- case "ServiceLinkedRoleNotFoundFault":
241
- case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
242
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
243
- default:
244
- const parsedBody = parsedOutput.body;
245
- return throwDefaultError({
246
- output,
247
- parsedBody,
248
- errorCode,
249
- });
250
- }
251
- };
252
157
  export const de_CreateSubnetGroupCommand = async (output, context) => {
253
158
  if (output.statusCode >= 300) {
254
- return de_CreateSubnetGroupCommandError(output, context);
159
+ return de_CommandError(output, context);
255
160
  }
256
161
  const data = await parseBody(output.body, context);
257
162
  let contents = {};
@@ -262,40 +167,9 @@ export const de_CreateSubnetGroupCommand = async (output, context) => {
262
167
  };
263
168
  return response;
264
169
  };
265
- const de_CreateSubnetGroupCommandError = async (output, context) => {
266
- const parsedOutput = {
267
- ...output,
268
- body: await parseErrorBody(output.body, context),
269
- };
270
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
271
- switch (errorCode) {
272
- case "InvalidSubnet":
273
- case "com.amazonaws.dax#InvalidSubnet":
274
- throw await de_InvalidSubnetRes(parsedOutput, context);
275
- case "ServiceLinkedRoleNotFoundFault":
276
- case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
277
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
278
- case "SubnetGroupAlreadyExistsFault":
279
- case "com.amazonaws.dax#SubnetGroupAlreadyExistsFault":
280
- throw await de_SubnetGroupAlreadyExistsFaultRes(parsedOutput, context);
281
- case "SubnetGroupQuotaExceededFault":
282
- case "com.amazonaws.dax#SubnetGroupQuotaExceededFault":
283
- throw await de_SubnetGroupQuotaExceededFaultRes(parsedOutput, context);
284
- case "SubnetQuotaExceededFault":
285
- case "com.amazonaws.dax#SubnetQuotaExceededFault":
286
- throw await de_SubnetQuotaExceededFaultRes(parsedOutput, context);
287
- default:
288
- const parsedBody = parsedOutput.body;
289
- return throwDefaultError({
290
- output,
291
- parsedBody,
292
- errorCode,
293
- });
294
- }
295
- };
296
170
  export const de_DecreaseReplicationFactorCommand = async (output, context) => {
297
171
  if (output.statusCode >= 300) {
298
- return de_DecreaseReplicationFactorCommandError(output, context);
172
+ return de_CommandError(output, context);
299
173
  }
300
174
  const data = await parseBody(output.body, context);
301
175
  let contents = {};
@@ -306,43 +180,9 @@ export const de_DecreaseReplicationFactorCommand = async (output, context) => {
306
180
  };
307
181
  return response;
308
182
  };
309
- const de_DecreaseReplicationFactorCommandError = async (output, context) => {
310
- const parsedOutput = {
311
- ...output,
312
- body: await parseErrorBody(output.body, context),
313
- };
314
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
315
- switch (errorCode) {
316
- case "ClusterNotFoundFault":
317
- case "com.amazonaws.dax#ClusterNotFoundFault":
318
- throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
319
- case "InvalidClusterStateFault":
320
- case "com.amazonaws.dax#InvalidClusterStateFault":
321
- throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
322
- case "InvalidParameterCombinationException":
323
- case "com.amazonaws.dax#InvalidParameterCombinationException":
324
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
325
- case "InvalidParameterValueException":
326
- case "com.amazonaws.dax#InvalidParameterValueException":
327
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
328
- case "NodeNotFoundFault":
329
- case "com.amazonaws.dax#NodeNotFoundFault":
330
- throw await de_NodeNotFoundFaultRes(parsedOutput, context);
331
- case "ServiceLinkedRoleNotFoundFault":
332
- case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
333
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
334
- default:
335
- const parsedBody = parsedOutput.body;
336
- return throwDefaultError({
337
- output,
338
- parsedBody,
339
- errorCode,
340
- });
341
- }
342
- };
343
183
  export const de_DeleteClusterCommand = async (output, context) => {
344
184
  if (output.statusCode >= 300) {
345
- return de_DeleteClusterCommandError(output, context);
185
+ return de_CommandError(output, context);
346
186
  }
347
187
  const data = await parseBody(output.body, context);
348
188
  let contents = {};
@@ -353,40 +193,9 @@ export const de_DeleteClusterCommand = async (output, context) => {
353
193
  };
354
194
  return response;
355
195
  };
356
- const de_DeleteClusterCommandError = async (output, context) => {
357
- const parsedOutput = {
358
- ...output,
359
- body: await parseErrorBody(output.body, context),
360
- };
361
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
362
- switch (errorCode) {
363
- case "ClusterNotFoundFault":
364
- case "com.amazonaws.dax#ClusterNotFoundFault":
365
- throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
366
- case "InvalidClusterStateFault":
367
- case "com.amazonaws.dax#InvalidClusterStateFault":
368
- throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
369
- case "InvalidParameterCombinationException":
370
- case "com.amazonaws.dax#InvalidParameterCombinationException":
371
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
372
- case "InvalidParameterValueException":
373
- case "com.amazonaws.dax#InvalidParameterValueException":
374
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
375
- case "ServiceLinkedRoleNotFoundFault":
376
- case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
377
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
378
- default:
379
- const parsedBody = parsedOutput.body;
380
- return throwDefaultError({
381
- output,
382
- parsedBody,
383
- errorCode,
384
- });
385
- }
386
- };
387
196
  export const de_DeleteParameterGroupCommand = async (output, context) => {
388
197
  if (output.statusCode >= 300) {
389
- return de_DeleteParameterGroupCommandError(output, context);
198
+ return de_CommandError(output, context);
390
199
  }
391
200
  const data = await parseBody(output.body, context);
392
201
  let contents = {};
@@ -397,40 +206,9 @@ export const de_DeleteParameterGroupCommand = async (output, context) => {
397
206
  };
398
207
  return response;
399
208
  };
400
- const de_DeleteParameterGroupCommandError = async (output, context) => {
401
- const parsedOutput = {
402
- ...output,
403
- body: await parseErrorBody(output.body, context),
404
- };
405
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
406
- switch (errorCode) {
407
- case "InvalidParameterCombinationException":
408
- case "com.amazonaws.dax#InvalidParameterCombinationException":
409
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
410
- case "InvalidParameterGroupStateFault":
411
- case "com.amazonaws.dax#InvalidParameterGroupStateFault":
412
- throw await de_InvalidParameterGroupStateFaultRes(parsedOutput, context);
413
- case "InvalidParameterValueException":
414
- case "com.amazonaws.dax#InvalidParameterValueException":
415
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
416
- case "ParameterGroupNotFoundFault":
417
- case "com.amazonaws.dax#ParameterGroupNotFoundFault":
418
- throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
419
- case "ServiceLinkedRoleNotFoundFault":
420
- case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
421
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
422
- default:
423
- const parsedBody = parsedOutput.body;
424
- return throwDefaultError({
425
- output,
426
- parsedBody,
427
- errorCode,
428
- });
429
- }
430
- };
431
209
  export const de_DeleteSubnetGroupCommand = async (output, context) => {
432
210
  if (output.statusCode >= 300) {
433
- return de_DeleteSubnetGroupCommandError(output, context);
211
+ return de_CommandError(output, context);
434
212
  }
435
213
  const data = await parseBody(output.body, context);
436
214
  let contents = {};
@@ -441,34 +219,9 @@ export const de_DeleteSubnetGroupCommand = async (output, context) => {
441
219
  };
442
220
  return response;
443
221
  };
444
- const de_DeleteSubnetGroupCommandError = async (output, context) => {
445
- const parsedOutput = {
446
- ...output,
447
- body: await parseErrorBody(output.body, context),
448
- };
449
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
450
- switch (errorCode) {
451
- case "ServiceLinkedRoleNotFoundFault":
452
- case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
453
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
454
- case "SubnetGroupInUseFault":
455
- case "com.amazonaws.dax#SubnetGroupInUseFault":
456
- throw await de_SubnetGroupInUseFaultRes(parsedOutput, context);
457
- case "SubnetGroupNotFoundFault":
458
- case "com.amazonaws.dax#SubnetGroupNotFoundFault":
459
- throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
460
- default:
461
- const parsedBody = parsedOutput.body;
462
- return throwDefaultError({
463
- output,
464
- parsedBody,
465
- errorCode,
466
- });
467
- }
468
- };
469
222
  export const de_DescribeClustersCommand = async (output, context) => {
470
223
  if (output.statusCode >= 300) {
471
- return de_DescribeClustersCommandError(output, context);
224
+ return de_CommandError(output, context);
472
225
  }
473
226
  const data = await parseBody(output.body, context);
474
227
  let contents = {};
@@ -479,37 +232,9 @@ export const de_DescribeClustersCommand = async (output, context) => {
479
232
  };
480
233
  return response;
481
234
  };
482
- const de_DescribeClustersCommandError = async (output, context) => {
483
- const parsedOutput = {
484
- ...output,
485
- body: await parseErrorBody(output.body, context),
486
- };
487
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
488
- switch (errorCode) {
489
- case "ClusterNotFoundFault":
490
- case "com.amazonaws.dax#ClusterNotFoundFault":
491
- throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
492
- case "InvalidParameterCombinationException":
493
- case "com.amazonaws.dax#InvalidParameterCombinationException":
494
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
495
- case "InvalidParameterValueException":
496
- case "com.amazonaws.dax#InvalidParameterValueException":
497
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
498
- case "ServiceLinkedRoleNotFoundFault":
499
- case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
500
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
501
- default:
502
- const parsedBody = parsedOutput.body;
503
- return throwDefaultError({
504
- output,
505
- parsedBody,
506
- errorCode,
507
- });
508
- }
509
- };
510
235
  export const de_DescribeDefaultParametersCommand = async (output, context) => {
511
236
  if (output.statusCode >= 300) {
512
- return de_DescribeDefaultParametersCommandError(output, context);
237
+ return de_CommandError(output, context);
513
238
  }
514
239
  const data = await parseBody(output.body, context);
515
240
  let contents = {};
@@ -520,34 +245,9 @@ export const de_DescribeDefaultParametersCommand = async (output, context) => {
520
245
  };
521
246
  return response;
522
247
  };
523
- const de_DescribeDefaultParametersCommandError = async (output, context) => {
524
- const parsedOutput = {
525
- ...output,
526
- body: await parseErrorBody(output.body, context),
527
- };
528
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
529
- switch (errorCode) {
530
- case "InvalidParameterCombinationException":
531
- case "com.amazonaws.dax#InvalidParameterCombinationException":
532
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
533
- case "InvalidParameterValueException":
534
- case "com.amazonaws.dax#InvalidParameterValueException":
535
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
536
- case "ServiceLinkedRoleNotFoundFault":
537
- case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
538
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
539
- default:
540
- const parsedBody = parsedOutput.body;
541
- return throwDefaultError({
542
- output,
543
- parsedBody,
544
- errorCode,
545
- });
546
- }
547
- };
548
248
  export const de_DescribeEventsCommand = async (output, context) => {
549
249
  if (output.statusCode >= 300) {
550
- return de_DescribeEventsCommandError(output, context);
250
+ return de_CommandError(output, context);
551
251
  }
552
252
  const data = await parseBody(output.body, context);
553
253
  let contents = {};
@@ -558,34 +258,9 @@ export const de_DescribeEventsCommand = async (output, context) => {
558
258
  };
559
259
  return response;
560
260
  };
561
- const de_DescribeEventsCommandError = async (output, context) => {
562
- const parsedOutput = {
563
- ...output,
564
- body: await parseErrorBody(output.body, context),
565
- };
566
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
567
- switch (errorCode) {
568
- case "InvalidParameterCombinationException":
569
- case "com.amazonaws.dax#InvalidParameterCombinationException":
570
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
571
- case "InvalidParameterValueException":
572
- case "com.amazonaws.dax#InvalidParameterValueException":
573
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
574
- case "ServiceLinkedRoleNotFoundFault":
575
- case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
576
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
577
- default:
578
- const parsedBody = parsedOutput.body;
579
- return throwDefaultError({
580
- output,
581
- parsedBody,
582
- errorCode,
583
- });
584
- }
585
- };
586
261
  export const de_DescribeParameterGroupsCommand = async (output, context) => {
587
262
  if (output.statusCode >= 300) {
588
- return de_DescribeParameterGroupsCommandError(output, context);
263
+ return de_CommandError(output, context);
589
264
  }
590
265
  const data = await parseBody(output.body, context);
591
266
  let contents = {};
@@ -596,37 +271,9 @@ export const de_DescribeParameterGroupsCommand = async (output, context) => {
596
271
  };
597
272
  return response;
598
273
  };
599
- const de_DescribeParameterGroupsCommandError = async (output, context) => {
600
- const parsedOutput = {
601
- ...output,
602
- body: await parseErrorBody(output.body, context),
603
- };
604
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
605
- switch (errorCode) {
606
- case "InvalidParameterCombinationException":
607
- case "com.amazonaws.dax#InvalidParameterCombinationException":
608
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
609
- case "InvalidParameterValueException":
610
- case "com.amazonaws.dax#InvalidParameterValueException":
611
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
612
- case "ParameterGroupNotFoundFault":
613
- case "com.amazonaws.dax#ParameterGroupNotFoundFault":
614
- throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
615
- case "ServiceLinkedRoleNotFoundFault":
616
- case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
617
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
618
- default:
619
- const parsedBody = parsedOutput.body;
620
- return throwDefaultError({
621
- output,
622
- parsedBody,
623
- errorCode,
624
- });
625
- }
626
- };
627
274
  export const de_DescribeParametersCommand = async (output, context) => {
628
275
  if (output.statusCode >= 300) {
629
- return de_DescribeParametersCommandError(output, context);
276
+ return de_CommandError(output, context);
630
277
  }
631
278
  const data = await parseBody(output.body, context);
632
279
  let contents = {};
@@ -637,37 +284,9 @@ export const de_DescribeParametersCommand = async (output, context) => {
637
284
  };
638
285
  return response;
639
286
  };
640
- const de_DescribeParametersCommandError = async (output, context) => {
641
- const parsedOutput = {
642
- ...output,
643
- body: await parseErrorBody(output.body, context),
644
- };
645
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
646
- switch (errorCode) {
647
- case "InvalidParameterCombinationException":
648
- case "com.amazonaws.dax#InvalidParameterCombinationException":
649
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
650
- case "InvalidParameterValueException":
651
- case "com.amazonaws.dax#InvalidParameterValueException":
652
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
653
- case "ParameterGroupNotFoundFault":
654
- case "com.amazonaws.dax#ParameterGroupNotFoundFault":
655
- throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
656
- case "ServiceLinkedRoleNotFoundFault":
657
- case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
658
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
659
- default:
660
- const parsedBody = parsedOutput.body;
661
- return throwDefaultError({
662
- output,
663
- parsedBody,
664
- errorCode,
665
- });
666
- }
667
- };
668
287
  export const de_DescribeSubnetGroupsCommand = async (output, context) => {
669
288
  if (output.statusCode >= 300) {
670
- return de_DescribeSubnetGroupsCommandError(output, context);
289
+ return de_CommandError(output, context);
671
290
  }
672
291
  const data = await parseBody(output.body, context);
673
292
  let contents = {};
@@ -678,31 +297,9 @@ export const de_DescribeSubnetGroupsCommand = async (output, context) => {
678
297
  };
679
298
  return response;
680
299
  };
681
- const de_DescribeSubnetGroupsCommandError = async (output, context) => {
682
- const parsedOutput = {
683
- ...output,
684
- body: await parseErrorBody(output.body, context),
685
- };
686
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
687
- switch (errorCode) {
688
- case "ServiceLinkedRoleNotFoundFault":
689
- case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
690
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
691
- case "SubnetGroupNotFoundFault":
692
- case "com.amazonaws.dax#SubnetGroupNotFoundFault":
693
- throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
694
- default:
695
- const parsedBody = parsedOutput.body;
696
- return throwDefaultError({
697
- output,
698
- parsedBody,
699
- errorCode,
700
- });
701
- }
702
- };
703
300
  export const de_IncreaseReplicationFactorCommand = async (output, context) => {
704
301
  if (output.statusCode >= 300) {
705
- return de_IncreaseReplicationFactorCommandError(output, context);
302
+ return de_CommandError(output, context);
706
303
  }
707
304
  const data = await parseBody(output.body, context);
708
305
  let contents = {};
@@ -713,99 +310,22 @@ export const de_IncreaseReplicationFactorCommand = async (output, context) => {
713
310
  };
714
311
  return response;
715
312
  };
716
- const de_IncreaseReplicationFactorCommandError = async (output, context) => {
717
- const parsedOutput = {
718
- ...output,
719
- body: await parseErrorBody(output.body, context),
720
- };
721
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
722
- switch (errorCode) {
723
- case "ClusterNotFoundFault":
724
- case "com.amazonaws.dax#ClusterNotFoundFault":
725
- throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
726
- case "InsufficientClusterCapacityFault":
727
- case "com.amazonaws.dax#InsufficientClusterCapacityFault":
728
- throw await de_InsufficientClusterCapacityFaultRes(parsedOutput, context);
729
- case "InvalidClusterStateFault":
730
- case "com.amazonaws.dax#InvalidClusterStateFault":
731
- throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
732
- case "InvalidParameterCombinationException":
733
- case "com.amazonaws.dax#InvalidParameterCombinationException":
734
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
735
- case "InvalidParameterValueException":
736
- case "com.amazonaws.dax#InvalidParameterValueException":
737
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
738
- case "InvalidVPCNetworkStateFault":
739
- case "com.amazonaws.dax#InvalidVPCNetworkStateFault":
740
- throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
741
- case "NodeQuotaForClusterExceededFault":
742
- case "com.amazonaws.dax#NodeQuotaForClusterExceededFault":
743
- throw await de_NodeQuotaForClusterExceededFaultRes(parsedOutput, context);
744
- case "NodeQuotaForCustomerExceededFault":
745
- case "com.amazonaws.dax#NodeQuotaForCustomerExceededFault":
746
- throw await de_NodeQuotaForCustomerExceededFaultRes(parsedOutput, context);
747
- case "ServiceLinkedRoleNotFoundFault":
748
- case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
749
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
750
- default:
751
- const parsedBody = parsedOutput.body;
752
- return throwDefaultError({
753
- output,
754
- parsedBody,
755
- errorCode,
756
- });
757
- }
758
- };
759
313
  export const de_ListTagsCommand = async (output, context) => {
760
- if (output.statusCode >= 300) {
761
- return de_ListTagsCommandError(output, context);
762
- }
763
- const data = await parseBody(output.body, context);
764
- let contents = {};
765
- contents = _json(data);
766
- const response = {
767
- $metadata: deserializeMetadata(output),
768
- ...contents,
769
- };
770
- return response;
771
- };
772
- const de_ListTagsCommandError = async (output, context) => {
773
- const parsedOutput = {
774
- ...output,
775
- body: await parseErrorBody(output.body, context),
776
- };
777
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
778
- switch (errorCode) {
779
- case "ClusterNotFoundFault":
780
- case "com.amazonaws.dax#ClusterNotFoundFault":
781
- throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
782
- case "InvalidARNFault":
783
- case "com.amazonaws.dax#InvalidARNFault":
784
- throw await de_InvalidARNFaultRes(parsedOutput, context);
785
- case "InvalidClusterStateFault":
786
- case "com.amazonaws.dax#InvalidClusterStateFault":
787
- throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
788
- case "InvalidParameterCombinationException":
789
- case "com.amazonaws.dax#InvalidParameterCombinationException":
790
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
791
- case "InvalidParameterValueException":
792
- case "com.amazonaws.dax#InvalidParameterValueException":
793
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
794
- case "ServiceLinkedRoleNotFoundFault":
795
- case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
796
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
797
- default:
798
- const parsedBody = parsedOutput.body;
799
- return throwDefaultError({
800
- output,
801
- parsedBody,
802
- errorCode,
803
- });
314
+ if (output.statusCode >= 300) {
315
+ return de_CommandError(output, context);
804
316
  }
317
+ const data = await parseBody(output.body, context);
318
+ let contents = {};
319
+ contents = _json(data);
320
+ const response = {
321
+ $metadata: deserializeMetadata(output),
322
+ ...contents,
323
+ };
324
+ return response;
805
325
  };
806
326
  export const de_RebootNodeCommand = async (output, context) => {
807
327
  if (output.statusCode >= 300) {
808
- return de_RebootNodeCommandError(output, context);
328
+ return de_CommandError(output, context);
809
329
  }
810
330
  const data = await parseBody(output.body, context);
811
331
  let contents = {};
@@ -816,43 +336,9 @@ export const de_RebootNodeCommand = async (output, context) => {
816
336
  };
817
337
  return response;
818
338
  };
819
- const de_RebootNodeCommandError = async (output, context) => {
820
- const parsedOutput = {
821
- ...output,
822
- body: await parseErrorBody(output.body, context),
823
- };
824
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
825
- switch (errorCode) {
826
- case "ClusterNotFoundFault":
827
- case "com.amazonaws.dax#ClusterNotFoundFault":
828
- throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
829
- case "InvalidClusterStateFault":
830
- case "com.amazonaws.dax#InvalidClusterStateFault":
831
- throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
832
- case "InvalidParameterCombinationException":
833
- case "com.amazonaws.dax#InvalidParameterCombinationException":
834
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
835
- case "InvalidParameterValueException":
836
- case "com.amazonaws.dax#InvalidParameterValueException":
837
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
838
- case "NodeNotFoundFault":
839
- case "com.amazonaws.dax#NodeNotFoundFault":
840
- throw await de_NodeNotFoundFaultRes(parsedOutput, context);
841
- case "ServiceLinkedRoleNotFoundFault":
842
- case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
843
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
844
- default:
845
- const parsedBody = parsedOutput.body;
846
- return throwDefaultError({
847
- output,
848
- parsedBody,
849
- errorCode,
850
- });
851
- }
852
- };
853
339
  export const de_TagResourceCommand = async (output, context) => {
854
340
  if (output.statusCode >= 300) {
855
- return de_TagResourceCommandError(output, context);
341
+ return de_CommandError(output, context);
856
342
  }
857
343
  const data = await parseBody(output.body, context);
858
344
  let contents = {};
@@ -863,46 +349,9 @@ export const de_TagResourceCommand = async (output, context) => {
863
349
  };
864
350
  return response;
865
351
  };
866
- const de_TagResourceCommandError = async (output, context) => {
867
- const parsedOutput = {
868
- ...output,
869
- body: await parseErrorBody(output.body, context),
870
- };
871
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
872
- switch (errorCode) {
873
- case "ClusterNotFoundFault":
874
- case "com.amazonaws.dax#ClusterNotFoundFault":
875
- throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
876
- case "InvalidARNFault":
877
- case "com.amazonaws.dax#InvalidARNFault":
878
- throw await de_InvalidARNFaultRes(parsedOutput, context);
879
- case "InvalidClusterStateFault":
880
- case "com.amazonaws.dax#InvalidClusterStateFault":
881
- throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
882
- case "InvalidParameterCombinationException":
883
- case "com.amazonaws.dax#InvalidParameterCombinationException":
884
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
885
- case "InvalidParameterValueException":
886
- case "com.amazonaws.dax#InvalidParameterValueException":
887
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
888
- case "ServiceLinkedRoleNotFoundFault":
889
- case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
890
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
891
- case "TagQuotaPerResourceExceeded":
892
- case "com.amazonaws.dax#TagQuotaPerResourceExceeded":
893
- throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
894
- default:
895
- const parsedBody = parsedOutput.body;
896
- return throwDefaultError({
897
- output,
898
- parsedBody,
899
- errorCode,
900
- });
901
- }
902
- };
903
352
  export const de_UntagResourceCommand = async (output, context) => {
904
353
  if (output.statusCode >= 300) {
905
- return de_UntagResourceCommandError(output, context);
354
+ return de_CommandError(output, context);
906
355
  }
907
356
  const data = await parseBody(output.body, context);
908
357
  let contents = {};
@@ -913,46 +362,9 @@ export const de_UntagResourceCommand = async (output, context) => {
913
362
  };
914
363
  return response;
915
364
  };
916
- const de_UntagResourceCommandError = async (output, context) => {
917
- const parsedOutput = {
918
- ...output,
919
- body: await parseErrorBody(output.body, context),
920
- };
921
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
922
- switch (errorCode) {
923
- case "ClusterNotFoundFault":
924
- case "com.amazonaws.dax#ClusterNotFoundFault":
925
- throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
926
- case "InvalidARNFault":
927
- case "com.amazonaws.dax#InvalidARNFault":
928
- throw await de_InvalidARNFaultRes(parsedOutput, context);
929
- case "InvalidClusterStateFault":
930
- case "com.amazonaws.dax#InvalidClusterStateFault":
931
- throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
932
- case "InvalidParameterCombinationException":
933
- case "com.amazonaws.dax#InvalidParameterCombinationException":
934
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
935
- case "InvalidParameterValueException":
936
- case "com.amazonaws.dax#InvalidParameterValueException":
937
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
938
- case "ServiceLinkedRoleNotFoundFault":
939
- case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
940
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
941
- case "TagNotFoundFault":
942
- case "com.amazonaws.dax#TagNotFoundFault":
943
- throw await de_TagNotFoundFaultRes(parsedOutput, context);
944
- default:
945
- const parsedBody = parsedOutput.body;
946
- return throwDefaultError({
947
- output,
948
- parsedBody,
949
- errorCode,
950
- });
951
- }
952
- };
953
365
  export const de_UpdateClusterCommand = async (output, context) => {
954
366
  if (output.statusCode >= 300) {
955
- return de_UpdateClusterCommandError(output, context);
367
+ return de_CommandError(output, context);
956
368
  }
957
369
  const data = await parseBody(output.body, context);
958
370
  let contents = {};
@@ -963,46 +375,22 @@ export const de_UpdateClusterCommand = async (output, context) => {
963
375
  };
964
376
  return response;
965
377
  };
966
- const de_UpdateClusterCommandError = async (output, context) => {
967
- const parsedOutput = {
968
- ...output,
969
- body: await parseErrorBody(output.body, context),
970
- };
971
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
972
- switch (errorCode) {
973
- case "ClusterNotFoundFault":
974
- case "com.amazonaws.dax#ClusterNotFoundFault":
975
- throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
976
- case "InvalidClusterStateFault":
977
- case "com.amazonaws.dax#InvalidClusterStateFault":
978
- throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
979
- case "InvalidParameterCombinationException":
980
- case "com.amazonaws.dax#InvalidParameterCombinationException":
981
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
982
- case "InvalidParameterGroupStateFault":
983
- case "com.amazonaws.dax#InvalidParameterGroupStateFault":
984
- throw await de_InvalidParameterGroupStateFaultRes(parsedOutput, context);
985
- case "InvalidParameterValueException":
986
- case "com.amazonaws.dax#InvalidParameterValueException":
987
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
988
- case "ParameterGroupNotFoundFault":
989
- case "com.amazonaws.dax#ParameterGroupNotFoundFault":
990
- throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
991
- case "ServiceLinkedRoleNotFoundFault":
992
- case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
993
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
994
- default:
995
- const parsedBody = parsedOutput.body;
996
- return throwDefaultError({
997
- output,
998
- parsedBody,
999
- errorCode,
1000
- });
378
+ export const de_UpdateParameterGroupCommand = async (output, context) => {
379
+ if (output.statusCode >= 300) {
380
+ return de_CommandError(output, context);
1001
381
  }
382
+ const data = await parseBody(output.body, context);
383
+ let contents = {};
384
+ contents = _json(data);
385
+ const response = {
386
+ $metadata: deserializeMetadata(output),
387
+ ...contents,
388
+ };
389
+ return response;
1002
390
  };
1003
- export const de_UpdateParameterGroupCommand = async (output, context) => {
391
+ export const de_UpdateSubnetGroupCommand = async (output, context) => {
1004
392
  if (output.statusCode >= 300) {
1005
- return de_UpdateParameterGroupCommandError(output, context);
393
+ return de_CommandError(output, context);
1006
394
  }
1007
395
  const data = await parseBody(output.body, context);
1008
396
  let contents = {};
@@ -1013,13 +401,25 @@ export const de_UpdateParameterGroupCommand = async (output, context) => {
1013
401
  };
1014
402
  return response;
1015
403
  };
1016
- const de_UpdateParameterGroupCommandError = async (output, context) => {
404
+ const de_CommandError = async (output, context) => {
1017
405
  const parsedOutput = {
1018
406
  ...output,
1019
407
  body: await parseErrorBody(output.body, context),
1020
408
  };
1021
409
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1022
410
  switch (errorCode) {
411
+ case "ClusterAlreadyExistsFault":
412
+ case "com.amazonaws.dax#ClusterAlreadyExistsFault":
413
+ throw await de_ClusterAlreadyExistsFaultRes(parsedOutput, context);
414
+ case "ClusterQuotaForCustomerExceededFault":
415
+ case "com.amazonaws.dax#ClusterQuotaForCustomerExceededFault":
416
+ throw await de_ClusterQuotaForCustomerExceededFaultRes(parsedOutput, context);
417
+ case "InsufficientClusterCapacityFault":
418
+ case "com.amazonaws.dax#InsufficientClusterCapacityFault":
419
+ throw await de_InsufficientClusterCapacityFaultRes(parsedOutput, context);
420
+ case "InvalidClusterStateFault":
421
+ case "com.amazonaws.dax#InvalidClusterStateFault":
422
+ throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
1023
423
  case "InvalidParameterCombinationException":
1024
424
  case "com.amazonaws.dax#InvalidParameterCombinationException":
1025
425
  throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
@@ -1029,56 +429,66 @@ const de_UpdateParameterGroupCommandError = async (output, context) => {
1029
429
  case "InvalidParameterValueException":
1030
430
  case "com.amazonaws.dax#InvalidParameterValueException":
1031
431
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
432
+ case "InvalidVPCNetworkStateFault":
433
+ case "com.amazonaws.dax#InvalidVPCNetworkStateFault":
434
+ throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
435
+ case "NodeQuotaForClusterExceededFault":
436
+ case "com.amazonaws.dax#NodeQuotaForClusterExceededFault":
437
+ throw await de_NodeQuotaForClusterExceededFaultRes(parsedOutput, context);
438
+ case "NodeQuotaForCustomerExceededFault":
439
+ case "com.amazonaws.dax#NodeQuotaForCustomerExceededFault":
440
+ throw await de_NodeQuotaForCustomerExceededFaultRes(parsedOutput, context);
1032
441
  case "ParameterGroupNotFoundFault":
1033
442
  case "com.amazonaws.dax#ParameterGroupNotFoundFault":
1034
443
  throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
1035
444
  case "ServiceLinkedRoleNotFoundFault":
1036
445
  case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
1037
446
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1038
- default:
1039
- const parsedBody = parsedOutput.body;
1040
- return throwDefaultError({
1041
- output,
1042
- parsedBody,
1043
- errorCode,
1044
- });
1045
- }
1046
- };
1047
- export const de_UpdateSubnetGroupCommand = async (output, context) => {
1048
- if (output.statusCode >= 300) {
1049
- return de_UpdateSubnetGroupCommandError(output, context);
1050
- }
1051
- const data = await parseBody(output.body, context);
1052
- let contents = {};
1053
- contents = _json(data);
1054
- const response = {
1055
- $metadata: deserializeMetadata(output),
1056
- ...contents,
1057
- };
1058
- return response;
1059
- };
1060
- const de_UpdateSubnetGroupCommandError = async (output, context) => {
1061
- const parsedOutput = {
1062
- ...output,
1063
- body: await parseErrorBody(output.body, context),
1064
- };
1065
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1066
- switch (errorCode) {
1067
- case "InvalidSubnet":
1068
- case "com.amazonaws.dax#InvalidSubnet":
1069
- throw await de_InvalidSubnetRes(parsedOutput, context);
1070
- case "ServiceLinkedRoleNotFoundFault":
1071
- case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
1072
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
447
+ case "ServiceQuotaExceededException":
448
+ case "com.amazonaws.dax#ServiceQuotaExceededException":
449
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1073
450
  case "SubnetGroupNotFoundFault":
1074
451
  case "com.amazonaws.dax#SubnetGroupNotFoundFault":
1075
452
  throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
1076
- case "SubnetInUse":
1077
- case "com.amazonaws.dax#SubnetInUse":
1078
- throw await de_SubnetInUseRes(parsedOutput, context);
453
+ case "TagQuotaPerResourceExceeded":
454
+ case "com.amazonaws.dax#TagQuotaPerResourceExceeded":
455
+ throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
456
+ case "ParameterGroupAlreadyExistsFault":
457
+ case "com.amazonaws.dax#ParameterGroupAlreadyExistsFault":
458
+ throw await de_ParameterGroupAlreadyExistsFaultRes(parsedOutput, context);
459
+ case "ParameterGroupQuotaExceededFault":
460
+ case "com.amazonaws.dax#ParameterGroupQuotaExceededFault":
461
+ throw await de_ParameterGroupQuotaExceededFaultRes(parsedOutput, context);
462
+ case "InvalidSubnet":
463
+ case "com.amazonaws.dax#InvalidSubnet":
464
+ throw await de_InvalidSubnetRes(parsedOutput, context);
465
+ case "SubnetGroupAlreadyExistsFault":
466
+ case "com.amazonaws.dax#SubnetGroupAlreadyExistsFault":
467
+ throw await de_SubnetGroupAlreadyExistsFaultRes(parsedOutput, context);
468
+ case "SubnetGroupQuotaExceededFault":
469
+ case "com.amazonaws.dax#SubnetGroupQuotaExceededFault":
470
+ throw await de_SubnetGroupQuotaExceededFaultRes(parsedOutput, context);
1079
471
  case "SubnetQuotaExceededFault":
1080
472
  case "com.amazonaws.dax#SubnetQuotaExceededFault":
1081
473
  throw await de_SubnetQuotaExceededFaultRes(parsedOutput, context);
474
+ case "ClusterNotFoundFault":
475
+ case "com.amazonaws.dax#ClusterNotFoundFault":
476
+ throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
477
+ case "NodeNotFoundFault":
478
+ case "com.amazonaws.dax#NodeNotFoundFault":
479
+ throw await de_NodeNotFoundFaultRes(parsedOutput, context);
480
+ case "SubnetGroupInUseFault":
481
+ case "com.amazonaws.dax#SubnetGroupInUseFault":
482
+ throw await de_SubnetGroupInUseFaultRes(parsedOutput, context);
483
+ case "InvalidARNFault":
484
+ case "com.amazonaws.dax#InvalidARNFault":
485
+ throw await de_InvalidARNFaultRes(parsedOutput, context);
486
+ case "TagNotFoundFault":
487
+ case "com.amazonaws.dax#TagNotFoundFault":
488
+ throw await de_TagNotFoundFaultRes(parsedOutput, context);
489
+ case "SubnetInUse":
490
+ case "com.amazonaws.dax#SubnetInUse":
491
+ throw await de_SubnetInUseRes(parsedOutput, context);
1082
492
  default:
1083
493
  const parsedBody = parsedOutput.body;
1084
494
  return throwDefaultError({