@aws-sdk/client-dax 3.137.0 → 3.145.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.
- package/CHANGELOG.md +30 -0
- package/README.md +1 -1
- package/dist-cjs/protocols/Aws_json1_1.js +105 -198
- package/dist-es/protocols/Aws_json1_1.js +169 -199
- package/package.json +11 -6
|
@@ -234,7 +234,6 @@ const deserializeAws_json1_1CreateClusterCommandError = async (output, context)
|
|
|
234
234
|
...output,
|
|
235
235
|
body: await parseBody(output.body, context),
|
|
236
236
|
};
|
|
237
|
-
let response;
|
|
238
237
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
239
238
|
switch (errorCode) {
|
|
240
239
|
case "ClusterAlreadyExistsFault":
|
|
@@ -284,14 +283,12 @@ const deserializeAws_json1_1CreateClusterCommandError = async (output, context)
|
|
|
284
283
|
throw await deserializeAws_json1_1TagQuotaPerResourceExceededResponse(parsedOutput, context);
|
|
285
284
|
default:
|
|
286
285
|
const parsedBody = parsedOutput.body;
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
$metadata,
|
|
286
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
287
|
+
output,
|
|
288
|
+
parsedBody,
|
|
289
|
+
exceptionCtor: DAXServiceException_1.DAXServiceException,
|
|
290
|
+
errorCode,
|
|
293
291
|
});
|
|
294
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
295
292
|
}
|
|
296
293
|
};
|
|
297
294
|
const deserializeAws_json1_1CreateParameterGroupCommand = async (output, context) => {
|
|
@@ -313,7 +310,6 @@ const deserializeAws_json1_1CreateParameterGroupCommandError = async (output, co
|
|
|
313
310
|
...output,
|
|
314
311
|
body: await parseBody(output.body, context),
|
|
315
312
|
};
|
|
316
|
-
let response;
|
|
317
313
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
318
314
|
switch (errorCode) {
|
|
319
315
|
case "InvalidParameterCombinationException":
|
|
@@ -336,14 +332,12 @@ const deserializeAws_json1_1CreateParameterGroupCommandError = async (output, co
|
|
|
336
332
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
337
333
|
default:
|
|
338
334
|
const parsedBody = parsedOutput.body;
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
$metadata,
|
|
335
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
336
|
+
output,
|
|
337
|
+
parsedBody,
|
|
338
|
+
exceptionCtor: DAXServiceException_1.DAXServiceException,
|
|
339
|
+
errorCode,
|
|
345
340
|
});
|
|
346
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
347
341
|
}
|
|
348
342
|
};
|
|
349
343
|
const deserializeAws_json1_1CreateSubnetGroupCommand = async (output, context) => {
|
|
@@ -365,7 +359,6 @@ const deserializeAws_json1_1CreateSubnetGroupCommandError = async (output, conte
|
|
|
365
359
|
...output,
|
|
366
360
|
body: await parseBody(output.body, context),
|
|
367
361
|
};
|
|
368
|
-
let response;
|
|
369
362
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
370
363
|
switch (errorCode) {
|
|
371
364
|
case "InvalidSubnet":
|
|
@@ -385,14 +378,12 @@ const deserializeAws_json1_1CreateSubnetGroupCommandError = async (output, conte
|
|
|
385
378
|
throw await deserializeAws_json1_1SubnetQuotaExceededFaultResponse(parsedOutput, context);
|
|
386
379
|
default:
|
|
387
380
|
const parsedBody = parsedOutput.body;
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
$metadata,
|
|
381
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
382
|
+
output,
|
|
383
|
+
parsedBody,
|
|
384
|
+
exceptionCtor: DAXServiceException_1.DAXServiceException,
|
|
385
|
+
errorCode,
|
|
394
386
|
});
|
|
395
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
396
387
|
}
|
|
397
388
|
};
|
|
398
389
|
const deserializeAws_json1_1DecreaseReplicationFactorCommand = async (output, context) => {
|
|
@@ -414,7 +405,6 @@ const deserializeAws_json1_1DecreaseReplicationFactorCommandError = async (outpu
|
|
|
414
405
|
...output,
|
|
415
406
|
body: await parseBody(output.body, context),
|
|
416
407
|
};
|
|
417
|
-
let response;
|
|
418
408
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
419
409
|
switch (errorCode) {
|
|
420
410
|
case "ClusterNotFoundFault":
|
|
@@ -437,14 +427,12 @@ const deserializeAws_json1_1DecreaseReplicationFactorCommandError = async (outpu
|
|
|
437
427
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
438
428
|
default:
|
|
439
429
|
const parsedBody = parsedOutput.body;
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
$metadata,
|
|
430
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
431
|
+
output,
|
|
432
|
+
parsedBody,
|
|
433
|
+
exceptionCtor: DAXServiceException_1.DAXServiceException,
|
|
434
|
+
errorCode,
|
|
446
435
|
});
|
|
447
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
448
436
|
}
|
|
449
437
|
};
|
|
450
438
|
const deserializeAws_json1_1DeleteClusterCommand = async (output, context) => {
|
|
@@ -466,7 +454,6 @@ const deserializeAws_json1_1DeleteClusterCommandError = async (output, context)
|
|
|
466
454
|
...output,
|
|
467
455
|
body: await parseBody(output.body, context),
|
|
468
456
|
};
|
|
469
|
-
let response;
|
|
470
457
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
471
458
|
switch (errorCode) {
|
|
472
459
|
case "ClusterNotFoundFault":
|
|
@@ -486,14 +473,12 @@ const deserializeAws_json1_1DeleteClusterCommandError = async (output, context)
|
|
|
486
473
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
487
474
|
default:
|
|
488
475
|
const parsedBody = parsedOutput.body;
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
$metadata,
|
|
476
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
477
|
+
output,
|
|
478
|
+
parsedBody,
|
|
479
|
+
exceptionCtor: DAXServiceException_1.DAXServiceException,
|
|
480
|
+
errorCode,
|
|
495
481
|
});
|
|
496
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
497
482
|
}
|
|
498
483
|
};
|
|
499
484
|
const deserializeAws_json1_1DeleteParameterGroupCommand = async (output, context) => {
|
|
@@ -515,7 +500,6 @@ const deserializeAws_json1_1DeleteParameterGroupCommandError = async (output, co
|
|
|
515
500
|
...output,
|
|
516
501
|
body: await parseBody(output.body, context),
|
|
517
502
|
};
|
|
518
|
-
let response;
|
|
519
503
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
520
504
|
switch (errorCode) {
|
|
521
505
|
case "InvalidParameterCombinationException":
|
|
@@ -535,14 +519,12 @@ const deserializeAws_json1_1DeleteParameterGroupCommandError = async (output, co
|
|
|
535
519
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
536
520
|
default:
|
|
537
521
|
const parsedBody = parsedOutput.body;
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
$metadata,
|
|
522
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
523
|
+
output,
|
|
524
|
+
parsedBody,
|
|
525
|
+
exceptionCtor: DAXServiceException_1.DAXServiceException,
|
|
526
|
+
errorCode,
|
|
544
527
|
});
|
|
545
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
546
528
|
}
|
|
547
529
|
};
|
|
548
530
|
const deserializeAws_json1_1DeleteSubnetGroupCommand = async (output, context) => {
|
|
@@ -564,7 +546,6 @@ const deserializeAws_json1_1DeleteSubnetGroupCommandError = async (output, conte
|
|
|
564
546
|
...output,
|
|
565
547
|
body: await parseBody(output.body, context),
|
|
566
548
|
};
|
|
567
|
-
let response;
|
|
568
549
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
569
550
|
switch (errorCode) {
|
|
570
551
|
case "ServiceLinkedRoleNotFoundFault":
|
|
@@ -578,14 +559,12 @@ const deserializeAws_json1_1DeleteSubnetGroupCommandError = async (output, conte
|
|
|
578
559
|
throw await deserializeAws_json1_1SubnetGroupNotFoundFaultResponse(parsedOutput, context);
|
|
579
560
|
default:
|
|
580
561
|
const parsedBody = parsedOutput.body;
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
$metadata,
|
|
562
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
563
|
+
output,
|
|
564
|
+
parsedBody,
|
|
565
|
+
exceptionCtor: DAXServiceException_1.DAXServiceException,
|
|
566
|
+
errorCode,
|
|
587
567
|
});
|
|
588
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
589
568
|
}
|
|
590
569
|
};
|
|
591
570
|
const deserializeAws_json1_1DescribeClustersCommand = async (output, context) => {
|
|
@@ -607,7 +586,6 @@ const deserializeAws_json1_1DescribeClustersCommandError = async (output, contex
|
|
|
607
586
|
...output,
|
|
608
587
|
body: await parseBody(output.body, context),
|
|
609
588
|
};
|
|
610
|
-
let response;
|
|
611
589
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
612
590
|
switch (errorCode) {
|
|
613
591
|
case "ClusterNotFoundFault":
|
|
@@ -624,14 +602,12 @@ const deserializeAws_json1_1DescribeClustersCommandError = async (output, contex
|
|
|
624
602
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
625
603
|
default:
|
|
626
604
|
const parsedBody = parsedOutput.body;
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
$metadata,
|
|
605
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
606
|
+
output,
|
|
607
|
+
parsedBody,
|
|
608
|
+
exceptionCtor: DAXServiceException_1.DAXServiceException,
|
|
609
|
+
errorCode,
|
|
633
610
|
});
|
|
634
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
635
611
|
}
|
|
636
612
|
};
|
|
637
613
|
const deserializeAws_json1_1DescribeDefaultParametersCommand = async (output, context) => {
|
|
@@ -653,7 +629,6 @@ const deserializeAws_json1_1DescribeDefaultParametersCommandError = async (outpu
|
|
|
653
629
|
...output,
|
|
654
630
|
body: await parseBody(output.body, context),
|
|
655
631
|
};
|
|
656
|
-
let response;
|
|
657
632
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
658
633
|
switch (errorCode) {
|
|
659
634
|
case "InvalidParameterCombinationException":
|
|
@@ -667,14 +642,12 @@ const deserializeAws_json1_1DescribeDefaultParametersCommandError = async (outpu
|
|
|
667
642
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
668
643
|
default:
|
|
669
644
|
const parsedBody = parsedOutput.body;
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
$metadata,
|
|
645
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
646
|
+
output,
|
|
647
|
+
parsedBody,
|
|
648
|
+
exceptionCtor: DAXServiceException_1.DAXServiceException,
|
|
649
|
+
errorCode,
|
|
676
650
|
});
|
|
677
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
678
651
|
}
|
|
679
652
|
};
|
|
680
653
|
const deserializeAws_json1_1DescribeEventsCommand = async (output, context) => {
|
|
@@ -696,7 +669,6 @@ const deserializeAws_json1_1DescribeEventsCommandError = async (output, context)
|
|
|
696
669
|
...output,
|
|
697
670
|
body: await parseBody(output.body, context),
|
|
698
671
|
};
|
|
699
|
-
let response;
|
|
700
672
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
701
673
|
switch (errorCode) {
|
|
702
674
|
case "InvalidParameterCombinationException":
|
|
@@ -710,14 +682,12 @@ const deserializeAws_json1_1DescribeEventsCommandError = async (output, context)
|
|
|
710
682
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
711
683
|
default:
|
|
712
684
|
const parsedBody = parsedOutput.body;
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
$metadata,
|
|
685
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
686
|
+
output,
|
|
687
|
+
parsedBody,
|
|
688
|
+
exceptionCtor: DAXServiceException_1.DAXServiceException,
|
|
689
|
+
errorCode,
|
|
719
690
|
});
|
|
720
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
721
691
|
}
|
|
722
692
|
};
|
|
723
693
|
const deserializeAws_json1_1DescribeParameterGroupsCommand = async (output, context) => {
|
|
@@ -739,7 +709,6 @@ const deserializeAws_json1_1DescribeParameterGroupsCommandError = async (output,
|
|
|
739
709
|
...output,
|
|
740
710
|
body: await parseBody(output.body, context),
|
|
741
711
|
};
|
|
742
|
-
let response;
|
|
743
712
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
744
713
|
switch (errorCode) {
|
|
745
714
|
case "InvalidParameterCombinationException":
|
|
@@ -756,14 +725,12 @@ const deserializeAws_json1_1DescribeParameterGroupsCommandError = async (output,
|
|
|
756
725
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
757
726
|
default:
|
|
758
727
|
const parsedBody = parsedOutput.body;
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
$metadata,
|
|
728
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
729
|
+
output,
|
|
730
|
+
parsedBody,
|
|
731
|
+
exceptionCtor: DAXServiceException_1.DAXServiceException,
|
|
732
|
+
errorCode,
|
|
765
733
|
});
|
|
766
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
767
734
|
}
|
|
768
735
|
};
|
|
769
736
|
const deserializeAws_json1_1DescribeParametersCommand = async (output, context) => {
|
|
@@ -785,7 +752,6 @@ const deserializeAws_json1_1DescribeParametersCommandError = async (output, cont
|
|
|
785
752
|
...output,
|
|
786
753
|
body: await parseBody(output.body, context),
|
|
787
754
|
};
|
|
788
|
-
let response;
|
|
789
755
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
790
756
|
switch (errorCode) {
|
|
791
757
|
case "InvalidParameterCombinationException":
|
|
@@ -802,14 +768,12 @@ const deserializeAws_json1_1DescribeParametersCommandError = async (output, cont
|
|
|
802
768
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
803
769
|
default:
|
|
804
770
|
const parsedBody = parsedOutput.body;
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
$metadata,
|
|
771
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
772
|
+
output,
|
|
773
|
+
parsedBody,
|
|
774
|
+
exceptionCtor: DAXServiceException_1.DAXServiceException,
|
|
775
|
+
errorCode,
|
|
811
776
|
});
|
|
812
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
813
777
|
}
|
|
814
778
|
};
|
|
815
779
|
const deserializeAws_json1_1DescribeSubnetGroupsCommand = async (output, context) => {
|
|
@@ -831,7 +795,6 @@ const deserializeAws_json1_1DescribeSubnetGroupsCommandError = async (output, co
|
|
|
831
795
|
...output,
|
|
832
796
|
body: await parseBody(output.body, context),
|
|
833
797
|
};
|
|
834
|
-
let response;
|
|
835
798
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
836
799
|
switch (errorCode) {
|
|
837
800
|
case "ServiceLinkedRoleNotFoundFault":
|
|
@@ -842,14 +805,12 @@ const deserializeAws_json1_1DescribeSubnetGroupsCommandError = async (output, co
|
|
|
842
805
|
throw await deserializeAws_json1_1SubnetGroupNotFoundFaultResponse(parsedOutput, context);
|
|
843
806
|
default:
|
|
844
807
|
const parsedBody = parsedOutput.body;
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
$metadata,
|
|
808
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
809
|
+
output,
|
|
810
|
+
parsedBody,
|
|
811
|
+
exceptionCtor: DAXServiceException_1.DAXServiceException,
|
|
812
|
+
errorCode,
|
|
851
813
|
});
|
|
852
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
853
814
|
}
|
|
854
815
|
};
|
|
855
816
|
const deserializeAws_json1_1IncreaseReplicationFactorCommand = async (output, context) => {
|
|
@@ -871,7 +832,6 @@ const deserializeAws_json1_1IncreaseReplicationFactorCommandError = async (outpu
|
|
|
871
832
|
...output,
|
|
872
833
|
body: await parseBody(output.body, context),
|
|
873
834
|
};
|
|
874
|
-
let response;
|
|
875
835
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
876
836
|
switch (errorCode) {
|
|
877
837
|
case "ClusterNotFoundFault":
|
|
@@ -903,14 +863,12 @@ const deserializeAws_json1_1IncreaseReplicationFactorCommandError = async (outpu
|
|
|
903
863
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
904
864
|
default:
|
|
905
865
|
const parsedBody = parsedOutput.body;
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
$metadata,
|
|
866
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
867
|
+
output,
|
|
868
|
+
parsedBody,
|
|
869
|
+
exceptionCtor: DAXServiceException_1.DAXServiceException,
|
|
870
|
+
errorCode,
|
|
912
871
|
});
|
|
913
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
914
872
|
}
|
|
915
873
|
};
|
|
916
874
|
const deserializeAws_json1_1ListTagsCommand = async (output, context) => {
|
|
@@ -932,7 +890,6 @@ const deserializeAws_json1_1ListTagsCommandError = async (output, context) => {
|
|
|
932
890
|
...output,
|
|
933
891
|
body: await parseBody(output.body, context),
|
|
934
892
|
};
|
|
935
|
-
let response;
|
|
936
893
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
937
894
|
switch (errorCode) {
|
|
938
895
|
case "ClusterNotFoundFault":
|
|
@@ -955,14 +912,12 @@ const deserializeAws_json1_1ListTagsCommandError = async (output, context) => {
|
|
|
955
912
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
956
913
|
default:
|
|
957
914
|
const parsedBody = parsedOutput.body;
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
$metadata,
|
|
915
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
916
|
+
output,
|
|
917
|
+
parsedBody,
|
|
918
|
+
exceptionCtor: DAXServiceException_1.DAXServiceException,
|
|
919
|
+
errorCode,
|
|
964
920
|
});
|
|
965
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
966
921
|
}
|
|
967
922
|
};
|
|
968
923
|
const deserializeAws_json1_1RebootNodeCommand = async (output, context) => {
|
|
@@ -984,7 +939,6 @@ const deserializeAws_json1_1RebootNodeCommandError = async (output, context) =>
|
|
|
984
939
|
...output,
|
|
985
940
|
body: await parseBody(output.body, context),
|
|
986
941
|
};
|
|
987
|
-
let response;
|
|
988
942
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
989
943
|
switch (errorCode) {
|
|
990
944
|
case "ClusterNotFoundFault":
|
|
@@ -1007,14 +961,12 @@ const deserializeAws_json1_1RebootNodeCommandError = async (output, context) =>
|
|
|
1007
961
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
1008
962
|
default:
|
|
1009
963
|
const parsedBody = parsedOutput.body;
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
$metadata,
|
|
964
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
965
|
+
output,
|
|
966
|
+
parsedBody,
|
|
967
|
+
exceptionCtor: DAXServiceException_1.DAXServiceException,
|
|
968
|
+
errorCode,
|
|
1016
969
|
});
|
|
1017
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1018
970
|
}
|
|
1019
971
|
};
|
|
1020
972
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
@@ -1036,7 +988,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1036
988
|
...output,
|
|
1037
989
|
body: await parseBody(output.body, context),
|
|
1038
990
|
};
|
|
1039
|
-
let response;
|
|
1040
991
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1041
992
|
switch (errorCode) {
|
|
1042
993
|
case "ClusterNotFoundFault":
|
|
@@ -1062,14 +1013,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1062
1013
|
throw await deserializeAws_json1_1TagQuotaPerResourceExceededResponse(parsedOutput, context);
|
|
1063
1014
|
default:
|
|
1064
1015
|
const parsedBody = parsedOutput.body;
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
$metadata,
|
|
1016
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1017
|
+
output,
|
|
1018
|
+
parsedBody,
|
|
1019
|
+
exceptionCtor: DAXServiceException_1.DAXServiceException,
|
|
1020
|
+
errorCode,
|
|
1071
1021
|
});
|
|
1072
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1073
1022
|
}
|
|
1074
1023
|
};
|
|
1075
1024
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
@@ -1091,7 +1040,6 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1091
1040
|
...output,
|
|
1092
1041
|
body: await parseBody(output.body, context),
|
|
1093
1042
|
};
|
|
1094
|
-
let response;
|
|
1095
1043
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1096
1044
|
switch (errorCode) {
|
|
1097
1045
|
case "ClusterNotFoundFault":
|
|
@@ -1117,14 +1065,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1117
1065
|
throw await deserializeAws_json1_1TagNotFoundFaultResponse(parsedOutput, context);
|
|
1118
1066
|
default:
|
|
1119
1067
|
const parsedBody = parsedOutput.body;
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
$metadata,
|
|
1068
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1069
|
+
output,
|
|
1070
|
+
parsedBody,
|
|
1071
|
+
exceptionCtor: DAXServiceException_1.DAXServiceException,
|
|
1072
|
+
errorCode,
|
|
1126
1073
|
});
|
|
1127
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1128
1074
|
}
|
|
1129
1075
|
};
|
|
1130
1076
|
const deserializeAws_json1_1UpdateClusterCommand = async (output, context) => {
|
|
@@ -1146,7 +1092,6 @@ const deserializeAws_json1_1UpdateClusterCommandError = async (output, context)
|
|
|
1146
1092
|
...output,
|
|
1147
1093
|
body: await parseBody(output.body, context),
|
|
1148
1094
|
};
|
|
1149
|
-
let response;
|
|
1150
1095
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1151
1096
|
switch (errorCode) {
|
|
1152
1097
|
case "ClusterNotFoundFault":
|
|
@@ -1172,14 +1117,12 @@ const deserializeAws_json1_1UpdateClusterCommandError = async (output, context)
|
|
|
1172
1117
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
1173
1118
|
default:
|
|
1174
1119
|
const parsedBody = parsedOutput.body;
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
$metadata,
|
|
1120
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1121
|
+
output,
|
|
1122
|
+
parsedBody,
|
|
1123
|
+
exceptionCtor: DAXServiceException_1.DAXServiceException,
|
|
1124
|
+
errorCode,
|
|
1181
1125
|
});
|
|
1182
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1183
1126
|
}
|
|
1184
1127
|
};
|
|
1185
1128
|
const deserializeAws_json1_1UpdateParameterGroupCommand = async (output, context) => {
|
|
@@ -1201,7 +1144,6 @@ const deserializeAws_json1_1UpdateParameterGroupCommandError = async (output, co
|
|
|
1201
1144
|
...output,
|
|
1202
1145
|
body: await parseBody(output.body, context),
|
|
1203
1146
|
};
|
|
1204
|
-
let response;
|
|
1205
1147
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1206
1148
|
switch (errorCode) {
|
|
1207
1149
|
case "InvalidParameterCombinationException":
|
|
@@ -1221,14 +1163,12 @@ const deserializeAws_json1_1UpdateParameterGroupCommandError = async (output, co
|
|
|
1221
1163
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
1222
1164
|
default:
|
|
1223
1165
|
const parsedBody = parsedOutput.body;
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
$metadata,
|
|
1166
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1167
|
+
output,
|
|
1168
|
+
parsedBody,
|
|
1169
|
+
exceptionCtor: DAXServiceException_1.DAXServiceException,
|
|
1170
|
+
errorCode,
|
|
1230
1171
|
});
|
|
1231
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1232
1172
|
}
|
|
1233
1173
|
};
|
|
1234
1174
|
const deserializeAws_json1_1UpdateSubnetGroupCommand = async (output, context) => {
|
|
@@ -1250,7 +1190,6 @@ const deserializeAws_json1_1UpdateSubnetGroupCommandError = async (output, conte
|
|
|
1250
1190
|
...output,
|
|
1251
1191
|
body: await parseBody(output.body, context),
|
|
1252
1192
|
};
|
|
1253
|
-
let response;
|
|
1254
1193
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1255
1194
|
switch (errorCode) {
|
|
1256
1195
|
case "InvalidSubnet":
|
|
@@ -1270,14 +1209,12 @@ const deserializeAws_json1_1UpdateSubnetGroupCommandError = async (output, conte
|
|
|
1270
1209
|
throw await deserializeAws_json1_1SubnetQuotaExceededFaultResponse(parsedOutput, context);
|
|
1271
1210
|
default:
|
|
1272
1211
|
const parsedBody = parsedOutput.body;
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
$metadata,
|
|
1212
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1213
|
+
output,
|
|
1214
|
+
parsedBody,
|
|
1215
|
+
exceptionCtor: DAXServiceException_1.DAXServiceException,
|
|
1216
|
+
errorCode,
|
|
1279
1217
|
});
|
|
1280
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1281
1218
|
}
|
|
1282
1219
|
};
|
|
1283
1220
|
const deserializeAws_json1_1ClusterAlreadyExistsFaultResponse = async (parsedOutput, context) => {
|
|
@@ -1527,9 +1464,6 @@ const serializeAws_json1_1AvailabilityZoneList = (input, context) => {
|
|
|
1527
1464
|
return input
|
|
1528
1465
|
.filter((e) => e != null)
|
|
1529
1466
|
.map((entry) => {
|
|
1530
|
-
if (entry === null) {
|
|
1531
|
-
return null;
|
|
1532
|
-
}
|
|
1533
1467
|
return entry;
|
|
1534
1468
|
});
|
|
1535
1469
|
};
|
|
@@ -1537,9 +1471,6 @@ const serializeAws_json1_1ClusterNameList = (input, context) => {
|
|
|
1537
1471
|
return input
|
|
1538
1472
|
.filter((e) => e != null)
|
|
1539
1473
|
.map((entry) => {
|
|
1540
|
-
if (entry === null) {
|
|
1541
|
-
return null;
|
|
1542
|
-
}
|
|
1543
1474
|
return entry;
|
|
1544
1475
|
});
|
|
1545
1476
|
};
|
|
@@ -1674,9 +1605,6 @@ const serializeAws_json1_1KeyList = (input, context) => {
|
|
|
1674
1605
|
return input
|
|
1675
1606
|
.filter((e) => e != null)
|
|
1676
1607
|
.map((entry) => {
|
|
1677
|
-
if (entry === null) {
|
|
1678
|
-
return null;
|
|
1679
|
-
}
|
|
1680
1608
|
return entry;
|
|
1681
1609
|
});
|
|
1682
1610
|
};
|
|
@@ -1690,9 +1618,6 @@ const serializeAws_json1_1NodeIdentifierList = (input, context) => {
|
|
|
1690
1618
|
return input
|
|
1691
1619
|
.filter((e) => e != null)
|
|
1692
1620
|
.map((entry) => {
|
|
1693
|
-
if (entry === null) {
|
|
1694
|
-
return null;
|
|
1695
|
-
}
|
|
1696
1621
|
return entry;
|
|
1697
1622
|
});
|
|
1698
1623
|
};
|
|
@@ -1700,9 +1625,6 @@ const serializeAws_json1_1ParameterGroupNameList = (input, context) => {
|
|
|
1700
1625
|
return input
|
|
1701
1626
|
.filter((e) => e != null)
|
|
1702
1627
|
.map((entry) => {
|
|
1703
|
-
if (entry === null) {
|
|
1704
|
-
return null;
|
|
1705
|
-
}
|
|
1706
1628
|
return entry;
|
|
1707
1629
|
});
|
|
1708
1630
|
};
|
|
@@ -1716,9 +1638,6 @@ const serializeAws_json1_1ParameterNameValueList = (input, context) => {
|
|
|
1716
1638
|
return input
|
|
1717
1639
|
.filter((e) => e != null)
|
|
1718
1640
|
.map((entry) => {
|
|
1719
|
-
if (entry === null) {
|
|
1720
|
-
return null;
|
|
1721
|
-
}
|
|
1722
1641
|
return serializeAws_json1_1ParameterNameValue(entry, context);
|
|
1723
1642
|
});
|
|
1724
1643
|
};
|
|
@@ -1732,9 +1651,6 @@ const serializeAws_json1_1SecurityGroupIdentifierList = (input, context) => {
|
|
|
1732
1651
|
return input
|
|
1733
1652
|
.filter((e) => e != null)
|
|
1734
1653
|
.map((entry) => {
|
|
1735
|
-
if (entry === null) {
|
|
1736
|
-
return null;
|
|
1737
|
-
}
|
|
1738
1654
|
return entry;
|
|
1739
1655
|
});
|
|
1740
1656
|
};
|
|
@@ -1747,9 +1663,6 @@ const serializeAws_json1_1SubnetGroupNameList = (input, context) => {
|
|
|
1747
1663
|
return input
|
|
1748
1664
|
.filter((e) => e != null)
|
|
1749
1665
|
.map((entry) => {
|
|
1750
|
-
if (entry === null) {
|
|
1751
|
-
return null;
|
|
1752
|
-
}
|
|
1753
1666
|
return entry;
|
|
1754
1667
|
});
|
|
1755
1668
|
};
|
|
@@ -1757,9 +1670,6 @@ const serializeAws_json1_1SubnetIdentifierList = (input, context) => {
|
|
|
1757
1670
|
return input
|
|
1758
1671
|
.filter((e) => e != null)
|
|
1759
1672
|
.map((entry) => {
|
|
1760
|
-
if (entry === null) {
|
|
1761
|
-
return null;
|
|
1762
|
-
}
|
|
1763
1673
|
return entry;
|
|
1764
1674
|
});
|
|
1765
1675
|
};
|
|
@@ -1773,9 +1683,6 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
1773
1683
|
return input
|
|
1774
1684
|
.filter((e) => e != null)
|
|
1775
1685
|
.map((entry) => {
|
|
1776
|
-
if (entry === null) {
|
|
1777
|
-
return null;
|
|
1778
|
-
}
|
|
1779
1686
|
return serializeAws_json1_1Tag(entry, context);
|
|
1780
1687
|
});
|
|
1781
1688
|
};
|