@aws-sdk/client-dax 3.118.0 → 3.127.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 +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +213 -275
- package/dist-es/protocols/Aws_json1_1.js +168 -230
- package/package.json +26 -26
|
@@ -235,8 +235,7 @@ const deserializeAws_json1_1CreateClusterCommandError = async (output, context)
|
|
|
235
235
|
body: await parseBody(output.body, context),
|
|
236
236
|
};
|
|
237
237
|
let response;
|
|
238
|
-
|
|
239
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
238
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
240
239
|
switch (errorCode) {
|
|
241
240
|
case "ClusterAlreadyExistsFault":
|
|
242
241
|
case "com.amazonaws.dax#ClusterAlreadyExistsFault":
|
|
@@ -285,10 +284,12 @@ const deserializeAws_json1_1CreateClusterCommandError = async (output, context)
|
|
|
285
284
|
throw await deserializeAws_json1_1TagQuotaPerResourceExceededResponse(parsedOutput, context);
|
|
286
285
|
default:
|
|
287
286
|
const parsedBody = parsedOutput.body;
|
|
287
|
+
const $metadata = deserializeMetadata(output);
|
|
288
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
288
289
|
response = new DAXServiceException_1.DAXServiceException({
|
|
289
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
290
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
290
291
|
$fault: "client",
|
|
291
|
-
$metadata
|
|
292
|
+
$metadata,
|
|
292
293
|
});
|
|
293
294
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
294
295
|
}
|
|
@@ -313,8 +314,7 @@ const deserializeAws_json1_1CreateParameterGroupCommandError = async (output, co
|
|
|
313
314
|
body: await parseBody(output.body, context),
|
|
314
315
|
};
|
|
315
316
|
let response;
|
|
316
|
-
|
|
317
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
317
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
318
318
|
switch (errorCode) {
|
|
319
319
|
case "InvalidParameterCombinationException":
|
|
320
320
|
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
@@ -336,10 +336,12 @@ const deserializeAws_json1_1CreateParameterGroupCommandError = async (output, co
|
|
|
336
336
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
337
337
|
default:
|
|
338
338
|
const parsedBody = parsedOutput.body;
|
|
339
|
+
const $metadata = deserializeMetadata(output);
|
|
340
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
339
341
|
response = new DAXServiceException_1.DAXServiceException({
|
|
340
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
342
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
341
343
|
$fault: "client",
|
|
342
|
-
$metadata
|
|
344
|
+
$metadata,
|
|
343
345
|
});
|
|
344
346
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
345
347
|
}
|
|
@@ -364,8 +366,7 @@ const deserializeAws_json1_1CreateSubnetGroupCommandError = async (output, conte
|
|
|
364
366
|
body: await parseBody(output.body, context),
|
|
365
367
|
};
|
|
366
368
|
let response;
|
|
367
|
-
|
|
368
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
369
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
369
370
|
switch (errorCode) {
|
|
370
371
|
case "InvalidSubnet":
|
|
371
372
|
case "com.amazonaws.dax#InvalidSubnet":
|
|
@@ -384,10 +385,12 @@ const deserializeAws_json1_1CreateSubnetGroupCommandError = async (output, conte
|
|
|
384
385
|
throw await deserializeAws_json1_1SubnetQuotaExceededFaultResponse(parsedOutput, context);
|
|
385
386
|
default:
|
|
386
387
|
const parsedBody = parsedOutput.body;
|
|
388
|
+
const $metadata = deserializeMetadata(output);
|
|
389
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
387
390
|
response = new DAXServiceException_1.DAXServiceException({
|
|
388
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
391
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
389
392
|
$fault: "client",
|
|
390
|
-
$metadata
|
|
393
|
+
$metadata,
|
|
391
394
|
});
|
|
392
395
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
393
396
|
}
|
|
@@ -412,8 +415,7 @@ const deserializeAws_json1_1DecreaseReplicationFactorCommandError = async (outpu
|
|
|
412
415
|
body: await parseBody(output.body, context),
|
|
413
416
|
};
|
|
414
417
|
let response;
|
|
415
|
-
|
|
416
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
418
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
417
419
|
switch (errorCode) {
|
|
418
420
|
case "ClusterNotFoundFault":
|
|
419
421
|
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
@@ -435,10 +437,12 @@ const deserializeAws_json1_1DecreaseReplicationFactorCommandError = async (outpu
|
|
|
435
437
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
436
438
|
default:
|
|
437
439
|
const parsedBody = parsedOutput.body;
|
|
440
|
+
const $metadata = deserializeMetadata(output);
|
|
441
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
438
442
|
response = new DAXServiceException_1.DAXServiceException({
|
|
439
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
443
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
440
444
|
$fault: "client",
|
|
441
|
-
$metadata
|
|
445
|
+
$metadata,
|
|
442
446
|
});
|
|
443
447
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
444
448
|
}
|
|
@@ -463,8 +467,7 @@ const deserializeAws_json1_1DeleteClusterCommandError = async (output, context)
|
|
|
463
467
|
body: await parseBody(output.body, context),
|
|
464
468
|
};
|
|
465
469
|
let response;
|
|
466
|
-
|
|
467
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
470
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
468
471
|
switch (errorCode) {
|
|
469
472
|
case "ClusterNotFoundFault":
|
|
470
473
|
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
@@ -483,10 +486,12 @@ const deserializeAws_json1_1DeleteClusterCommandError = async (output, context)
|
|
|
483
486
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
484
487
|
default:
|
|
485
488
|
const parsedBody = parsedOutput.body;
|
|
489
|
+
const $metadata = deserializeMetadata(output);
|
|
490
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
486
491
|
response = new DAXServiceException_1.DAXServiceException({
|
|
487
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
492
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
488
493
|
$fault: "client",
|
|
489
|
-
$metadata
|
|
494
|
+
$metadata,
|
|
490
495
|
});
|
|
491
496
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
492
497
|
}
|
|
@@ -511,8 +516,7 @@ const deserializeAws_json1_1DeleteParameterGroupCommandError = async (output, co
|
|
|
511
516
|
body: await parseBody(output.body, context),
|
|
512
517
|
};
|
|
513
518
|
let response;
|
|
514
|
-
|
|
515
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
519
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
516
520
|
switch (errorCode) {
|
|
517
521
|
case "InvalidParameterCombinationException":
|
|
518
522
|
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
@@ -531,10 +535,12 @@ const deserializeAws_json1_1DeleteParameterGroupCommandError = async (output, co
|
|
|
531
535
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
532
536
|
default:
|
|
533
537
|
const parsedBody = parsedOutput.body;
|
|
538
|
+
const $metadata = deserializeMetadata(output);
|
|
539
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
534
540
|
response = new DAXServiceException_1.DAXServiceException({
|
|
535
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
541
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
536
542
|
$fault: "client",
|
|
537
|
-
$metadata
|
|
543
|
+
$metadata,
|
|
538
544
|
});
|
|
539
545
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
540
546
|
}
|
|
@@ -559,8 +565,7 @@ const deserializeAws_json1_1DeleteSubnetGroupCommandError = async (output, conte
|
|
|
559
565
|
body: await parseBody(output.body, context),
|
|
560
566
|
};
|
|
561
567
|
let response;
|
|
562
|
-
|
|
563
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
568
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
564
569
|
switch (errorCode) {
|
|
565
570
|
case "ServiceLinkedRoleNotFoundFault":
|
|
566
571
|
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
@@ -573,10 +578,12 @@ const deserializeAws_json1_1DeleteSubnetGroupCommandError = async (output, conte
|
|
|
573
578
|
throw await deserializeAws_json1_1SubnetGroupNotFoundFaultResponse(parsedOutput, context);
|
|
574
579
|
default:
|
|
575
580
|
const parsedBody = parsedOutput.body;
|
|
581
|
+
const $metadata = deserializeMetadata(output);
|
|
582
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
576
583
|
response = new DAXServiceException_1.DAXServiceException({
|
|
577
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
584
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
578
585
|
$fault: "client",
|
|
579
|
-
$metadata
|
|
586
|
+
$metadata,
|
|
580
587
|
});
|
|
581
588
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
582
589
|
}
|
|
@@ -601,8 +608,7 @@ const deserializeAws_json1_1DescribeClustersCommandError = async (output, contex
|
|
|
601
608
|
body: await parseBody(output.body, context),
|
|
602
609
|
};
|
|
603
610
|
let response;
|
|
604
|
-
|
|
605
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
611
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
606
612
|
switch (errorCode) {
|
|
607
613
|
case "ClusterNotFoundFault":
|
|
608
614
|
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
@@ -618,10 +624,12 @@ const deserializeAws_json1_1DescribeClustersCommandError = async (output, contex
|
|
|
618
624
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
619
625
|
default:
|
|
620
626
|
const parsedBody = parsedOutput.body;
|
|
627
|
+
const $metadata = deserializeMetadata(output);
|
|
628
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
621
629
|
response = new DAXServiceException_1.DAXServiceException({
|
|
622
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
630
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
623
631
|
$fault: "client",
|
|
624
|
-
$metadata
|
|
632
|
+
$metadata,
|
|
625
633
|
});
|
|
626
634
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
627
635
|
}
|
|
@@ -646,8 +654,7 @@ const deserializeAws_json1_1DescribeDefaultParametersCommandError = async (outpu
|
|
|
646
654
|
body: await parseBody(output.body, context),
|
|
647
655
|
};
|
|
648
656
|
let response;
|
|
649
|
-
|
|
650
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
657
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
651
658
|
switch (errorCode) {
|
|
652
659
|
case "InvalidParameterCombinationException":
|
|
653
660
|
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
@@ -660,10 +667,12 @@ const deserializeAws_json1_1DescribeDefaultParametersCommandError = async (outpu
|
|
|
660
667
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
661
668
|
default:
|
|
662
669
|
const parsedBody = parsedOutput.body;
|
|
670
|
+
const $metadata = deserializeMetadata(output);
|
|
671
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
663
672
|
response = new DAXServiceException_1.DAXServiceException({
|
|
664
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
673
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
665
674
|
$fault: "client",
|
|
666
|
-
$metadata
|
|
675
|
+
$metadata,
|
|
667
676
|
});
|
|
668
677
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
669
678
|
}
|
|
@@ -688,8 +697,7 @@ const deserializeAws_json1_1DescribeEventsCommandError = async (output, context)
|
|
|
688
697
|
body: await parseBody(output.body, context),
|
|
689
698
|
};
|
|
690
699
|
let response;
|
|
691
|
-
|
|
692
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
700
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
693
701
|
switch (errorCode) {
|
|
694
702
|
case "InvalidParameterCombinationException":
|
|
695
703
|
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
@@ -702,10 +710,12 @@ const deserializeAws_json1_1DescribeEventsCommandError = async (output, context)
|
|
|
702
710
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
703
711
|
default:
|
|
704
712
|
const parsedBody = parsedOutput.body;
|
|
713
|
+
const $metadata = deserializeMetadata(output);
|
|
714
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
705
715
|
response = new DAXServiceException_1.DAXServiceException({
|
|
706
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
716
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
707
717
|
$fault: "client",
|
|
708
|
-
$metadata
|
|
718
|
+
$metadata,
|
|
709
719
|
});
|
|
710
720
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
711
721
|
}
|
|
@@ -730,8 +740,7 @@ const deserializeAws_json1_1DescribeParameterGroupsCommandError = async (output,
|
|
|
730
740
|
body: await parseBody(output.body, context),
|
|
731
741
|
};
|
|
732
742
|
let response;
|
|
733
|
-
|
|
734
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
743
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
735
744
|
switch (errorCode) {
|
|
736
745
|
case "InvalidParameterCombinationException":
|
|
737
746
|
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
@@ -747,10 +756,12 @@ const deserializeAws_json1_1DescribeParameterGroupsCommandError = async (output,
|
|
|
747
756
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
748
757
|
default:
|
|
749
758
|
const parsedBody = parsedOutput.body;
|
|
759
|
+
const $metadata = deserializeMetadata(output);
|
|
760
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
750
761
|
response = new DAXServiceException_1.DAXServiceException({
|
|
751
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
762
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
752
763
|
$fault: "client",
|
|
753
|
-
$metadata
|
|
764
|
+
$metadata,
|
|
754
765
|
});
|
|
755
766
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
756
767
|
}
|
|
@@ -775,8 +786,7 @@ const deserializeAws_json1_1DescribeParametersCommandError = async (output, cont
|
|
|
775
786
|
body: await parseBody(output.body, context),
|
|
776
787
|
};
|
|
777
788
|
let response;
|
|
778
|
-
|
|
779
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
789
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
780
790
|
switch (errorCode) {
|
|
781
791
|
case "InvalidParameterCombinationException":
|
|
782
792
|
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
@@ -792,10 +802,12 @@ const deserializeAws_json1_1DescribeParametersCommandError = async (output, cont
|
|
|
792
802
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
793
803
|
default:
|
|
794
804
|
const parsedBody = parsedOutput.body;
|
|
805
|
+
const $metadata = deserializeMetadata(output);
|
|
806
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
795
807
|
response = new DAXServiceException_1.DAXServiceException({
|
|
796
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
808
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
797
809
|
$fault: "client",
|
|
798
|
-
$metadata
|
|
810
|
+
$metadata,
|
|
799
811
|
});
|
|
800
812
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
801
813
|
}
|
|
@@ -820,8 +832,7 @@ const deserializeAws_json1_1DescribeSubnetGroupsCommandError = async (output, co
|
|
|
820
832
|
body: await parseBody(output.body, context),
|
|
821
833
|
};
|
|
822
834
|
let response;
|
|
823
|
-
|
|
824
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
835
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
825
836
|
switch (errorCode) {
|
|
826
837
|
case "ServiceLinkedRoleNotFoundFault":
|
|
827
838
|
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
@@ -831,10 +842,12 @@ const deserializeAws_json1_1DescribeSubnetGroupsCommandError = async (output, co
|
|
|
831
842
|
throw await deserializeAws_json1_1SubnetGroupNotFoundFaultResponse(parsedOutput, context);
|
|
832
843
|
default:
|
|
833
844
|
const parsedBody = parsedOutput.body;
|
|
845
|
+
const $metadata = deserializeMetadata(output);
|
|
846
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
834
847
|
response = new DAXServiceException_1.DAXServiceException({
|
|
835
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
848
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
836
849
|
$fault: "client",
|
|
837
|
-
$metadata
|
|
850
|
+
$metadata,
|
|
838
851
|
});
|
|
839
852
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
840
853
|
}
|
|
@@ -859,8 +872,7 @@ const deserializeAws_json1_1IncreaseReplicationFactorCommandError = async (outpu
|
|
|
859
872
|
body: await parseBody(output.body, context),
|
|
860
873
|
};
|
|
861
874
|
let response;
|
|
862
|
-
|
|
863
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
875
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
864
876
|
switch (errorCode) {
|
|
865
877
|
case "ClusterNotFoundFault":
|
|
866
878
|
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
@@ -891,10 +903,12 @@ const deserializeAws_json1_1IncreaseReplicationFactorCommandError = async (outpu
|
|
|
891
903
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
892
904
|
default:
|
|
893
905
|
const parsedBody = parsedOutput.body;
|
|
906
|
+
const $metadata = deserializeMetadata(output);
|
|
907
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
894
908
|
response = new DAXServiceException_1.DAXServiceException({
|
|
895
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
909
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
896
910
|
$fault: "client",
|
|
897
|
-
$metadata
|
|
911
|
+
$metadata,
|
|
898
912
|
});
|
|
899
913
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
900
914
|
}
|
|
@@ -919,8 +933,7 @@ const deserializeAws_json1_1ListTagsCommandError = async (output, context) => {
|
|
|
919
933
|
body: await parseBody(output.body, context),
|
|
920
934
|
};
|
|
921
935
|
let response;
|
|
922
|
-
|
|
923
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
936
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
924
937
|
switch (errorCode) {
|
|
925
938
|
case "ClusterNotFoundFault":
|
|
926
939
|
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
@@ -942,10 +955,12 @@ const deserializeAws_json1_1ListTagsCommandError = async (output, context) => {
|
|
|
942
955
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
943
956
|
default:
|
|
944
957
|
const parsedBody = parsedOutput.body;
|
|
958
|
+
const $metadata = deserializeMetadata(output);
|
|
959
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
945
960
|
response = new DAXServiceException_1.DAXServiceException({
|
|
946
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
961
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
947
962
|
$fault: "client",
|
|
948
|
-
$metadata
|
|
963
|
+
$metadata,
|
|
949
964
|
});
|
|
950
965
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
951
966
|
}
|
|
@@ -970,8 +985,7 @@ const deserializeAws_json1_1RebootNodeCommandError = async (output, context) =>
|
|
|
970
985
|
body: await parseBody(output.body, context),
|
|
971
986
|
};
|
|
972
987
|
let response;
|
|
973
|
-
|
|
974
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
988
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
975
989
|
switch (errorCode) {
|
|
976
990
|
case "ClusterNotFoundFault":
|
|
977
991
|
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
@@ -993,10 +1007,12 @@ const deserializeAws_json1_1RebootNodeCommandError = async (output, context) =>
|
|
|
993
1007
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
994
1008
|
default:
|
|
995
1009
|
const parsedBody = parsedOutput.body;
|
|
1010
|
+
const $metadata = deserializeMetadata(output);
|
|
1011
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
996
1012
|
response = new DAXServiceException_1.DAXServiceException({
|
|
997
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1013
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
998
1014
|
$fault: "client",
|
|
999
|
-
$metadata
|
|
1015
|
+
$metadata,
|
|
1000
1016
|
});
|
|
1001
1017
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1002
1018
|
}
|
|
@@ -1021,8 +1037,7 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1021
1037
|
body: await parseBody(output.body, context),
|
|
1022
1038
|
};
|
|
1023
1039
|
let response;
|
|
1024
|
-
|
|
1025
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1040
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1026
1041
|
switch (errorCode) {
|
|
1027
1042
|
case "ClusterNotFoundFault":
|
|
1028
1043
|
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
@@ -1047,10 +1062,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1047
1062
|
throw await deserializeAws_json1_1TagQuotaPerResourceExceededResponse(parsedOutput, context);
|
|
1048
1063
|
default:
|
|
1049
1064
|
const parsedBody = parsedOutput.body;
|
|
1065
|
+
const $metadata = deserializeMetadata(output);
|
|
1066
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1050
1067
|
response = new DAXServiceException_1.DAXServiceException({
|
|
1051
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1068
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1052
1069
|
$fault: "client",
|
|
1053
|
-
$metadata
|
|
1070
|
+
$metadata,
|
|
1054
1071
|
});
|
|
1055
1072
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1056
1073
|
}
|
|
@@ -1075,8 +1092,7 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1075
1092
|
body: await parseBody(output.body, context),
|
|
1076
1093
|
};
|
|
1077
1094
|
let response;
|
|
1078
|
-
|
|
1079
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1095
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1080
1096
|
switch (errorCode) {
|
|
1081
1097
|
case "ClusterNotFoundFault":
|
|
1082
1098
|
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
@@ -1101,10 +1117,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1101
1117
|
throw await deserializeAws_json1_1TagNotFoundFaultResponse(parsedOutput, context);
|
|
1102
1118
|
default:
|
|
1103
1119
|
const parsedBody = parsedOutput.body;
|
|
1120
|
+
const $metadata = deserializeMetadata(output);
|
|
1121
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1104
1122
|
response = new DAXServiceException_1.DAXServiceException({
|
|
1105
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1123
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1106
1124
|
$fault: "client",
|
|
1107
|
-
$metadata
|
|
1125
|
+
$metadata,
|
|
1108
1126
|
});
|
|
1109
1127
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1110
1128
|
}
|
|
@@ -1129,8 +1147,7 @@ const deserializeAws_json1_1UpdateClusterCommandError = async (output, context)
|
|
|
1129
1147
|
body: await parseBody(output.body, context),
|
|
1130
1148
|
};
|
|
1131
1149
|
let response;
|
|
1132
|
-
|
|
1133
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1150
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1134
1151
|
switch (errorCode) {
|
|
1135
1152
|
case "ClusterNotFoundFault":
|
|
1136
1153
|
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
@@ -1155,10 +1172,12 @@ const deserializeAws_json1_1UpdateClusterCommandError = async (output, context)
|
|
|
1155
1172
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
1156
1173
|
default:
|
|
1157
1174
|
const parsedBody = parsedOutput.body;
|
|
1175
|
+
const $metadata = deserializeMetadata(output);
|
|
1176
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1158
1177
|
response = new DAXServiceException_1.DAXServiceException({
|
|
1159
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1178
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1160
1179
|
$fault: "client",
|
|
1161
|
-
$metadata
|
|
1180
|
+
$metadata,
|
|
1162
1181
|
});
|
|
1163
1182
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1164
1183
|
}
|
|
@@ -1183,8 +1202,7 @@ const deserializeAws_json1_1UpdateParameterGroupCommandError = async (output, co
|
|
|
1183
1202
|
body: await parseBody(output.body, context),
|
|
1184
1203
|
};
|
|
1185
1204
|
let response;
|
|
1186
|
-
|
|
1187
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1205
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1188
1206
|
switch (errorCode) {
|
|
1189
1207
|
case "InvalidParameterCombinationException":
|
|
1190
1208
|
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
@@ -1203,10 +1221,12 @@ const deserializeAws_json1_1UpdateParameterGroupCommandError = async (output, co
|
|
|
1203
1221
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
1204
1222
|
default:
|
|
1205
1223
|
const parsedBody = parsedOutput.body;
|
|
1224
|
+
const $metadata = deserializeMetadata(output);
|
|
1225
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1206
1226
|
response = new DAXServiceException_1.DAXServiceException({
|
|
1207
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1227
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1208
1228
|
$fault: "client",
|
|
1209
|
-
$metadata
|
|
1229
|
+
$metadata,
|
|
1210
1230
|
});
|
|
1211
1231
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1212
1232
|
}
|
|
@@ -1231,8 +1251,7 @@ const deserializeAws_json1_1UpdateSubnetGroupCommandError = async (output, conte
|
|
|
1231
1251
|
body: await parseBody(output.body, context),
|
|
1232
1252
|
};
|
|
1233
1253
|
let response;
|
|
1234
|
-
|
|
1235
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1254
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1236
1255
|
switch (errorCode) {
|
|
1237
1256
|
case "InvalidSubnet":
|
|
1238
1257
|
case "com.amazonaws.dax#InvalidSubnet":
|
|
@@ -1251,10 +1270,12 @@ const deserializeAws_json1_1UpdateSubnetGroupCommandError = async (output, conte
|
|
|
1251
1270
|
throw await deserializeAws_json1_1SubnetQuotaExceededFaultResponse(parsedOutput, context);
|
|
1252
1271
|
default:
|
|
1253
1272
|
const parsedBody = parsedOutput.body;
|
|
1273
|
+
const $metadata = deserializeMetadata(output);
|
|
1274
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1254
1275
|
response = new DAXServiceException_1.DAXServiceException({
|
|
1255
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1276
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1256
1277
|
$fault: "client",
|
|
1257
|
-
$metadata
|
|
1278
|
+
$metadata,
|
|
1258
1279
|
});
|
|
1259
1280
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1260
1281
|
}
|
|
@@ -1524,154 +1545,129 @@ const serializeAws_json1_1ClusterNameList = (input, context) => {
|
|
|
1524
1545
|
};
|
|
1525
1546
|
const serializeAws_json1_1CreateClusterRequest = (input, context) => {
|
|
1526
1547
|
return {
|
|
1527
|
-
...(input.AvailabilityZones
|
|
1528
|
-
input.AvailabilityZones !== null && {
|
|
1548
|
+
...(input.AvailabilityZones != null && {
|
|
1529
1549
|
AvailabilityZones: serializeAws_json1_1AvailabilityZoneList(input.AvailabilityZones, context),
|
|
1530
1550
|
}),
|
|
1531
|
-
...(input.ClusterEndpointEncryptionType
|
|
1532
|
-
input.ClusterEndpointEncryptionType !== null && {
|
|
1551
|
+
...(input.ClusterEndpointEncryptionType != null && {
|
|
1533
1552
|
ClusterEndpointEncryptionType: input.ClusterEndpointEncryptionType,
|
|
1534
1553
|
}),
|
|
1535
|
-
...(input.ClusterName
|
|
1536
|
-
...(input.Description
|
|
1537
|
-
...(input.IamRoleArn
|
|
1538
|
-
...(input.NodeType
|
|
1539
|
-
...(input.NotificationTopicArn
|
|
1540
|
-
|
|
1541
|
-
...(input.
|
|
1542
|
-
|
|
1543
|
-
...(input.
|
|
1544
|
-
input.PreferredMaintenanceWindow !== null && { PreferredMaintenanceWindow: input.PreferredMaintenanceWindow }),
|
|
1545
|
-
...(input.ReplicationFactor !== undefined &&
|
|
1546
|
-
input.ReplicationFactor !== null && { ReplicationFactor: input.ReplicationFactor }),
|
|
1547
|
-
...(input.SSESpecification !== undefined &&
|
|
1548
|
-
input.SSESpecification !== null && {
|
|
1554
|
+
...(input.ClusterName != null && { ClusterName: input.ClusterName }),
|
|
1555
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1556
|
+
...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
|
|
1557
|
+
...(input.NodeType != null && { NodeType: input.NodeType }),
|
|
1558
|
+
...(input.NotificationTopicArn != null && { NotificationTopicArn: input.NotificationTopicArn }),
|
|
1559
|
+
...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
|
|
1560
|
+
...(input.PreferredMaintenanceWindow != null && { PreferredMaintenanceWindow: input.PreferredMaintenanceWindow }),
|
|
1561
|
+
...(input.ReplicationFactor != null && { ReplicationFactor: input.ReplicationFactor }),
|
|
1562
|
+
...(input.SSESpecification != null && {
|
|
1549
1563
|
SSESpecification: serializeAws_json1_1SSESpecification(input.SSESpecification, context),
|
|
1550
1564
|
}),
|
|
1551
|
-
...(input.SecurityGroupIds
|
|
1552
|
-
input.SecurityGroupIds !== null && {
|
|
1565
|
+
...(input.SecurityGroupIds != null && {
|
|
1553
1566
|
SecurityGroupIds: serializeAws_json1_1SecurityGroupIdentifierList(input.SecurityGroupIds, context),
|
|
1554
1567
|
}),
|
|
1555
|
-
...(input.SubnetGroupName
|
|
1556
|
-
|
|
1557
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
1568
|
+
...(input.SubnetGroupName != null && { SubnetGroupName: input.SubnetGroupName }),
|
|
1569
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
1558
1570
|
};
|
|
1559
1571
|
};
|
|
1560
1572
|
const serializeAws_json1_1CreateParameterGroupRequest = (input, context) => {
|
|
1561
1573
|
return {
|
|
1562
|
-
...(input.Description
|
|
1563
|
-
...(input.ParameterGroupName
|
|
1564
|
-
input.ParameterGroupName !== null && { ParameterGroupName: input.ParameterGroupName }),
|
|
1574
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1575
|
+
...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
|
|
1565
1576
|
};
|
|
1566
1577
|
};
|
|
1567
1578
|
const serializeAws_json1_1CreateSubnetGroupRequest = (input, context) => {
|
|
1568
1579
|
return {
|
|
1569
|
-
...(input.Description
|
|
1570
|
-
...(input.SubnetGroupName
|
|
1571
|
-
|
|
1572
|
-
...(input.SubnetIds !== undefined &&
|
|
1573
|
-
input.SubnetIds !== null && { SubnetIds: serializeAws_json1_1SubnetIdentifierList(input.SubnetIds, context) }),
|
|
1580
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1581
|
+
...(input.SubnetGroupName != null && { SubnetGroupName: input.SubnetGroupName }),
|
|
1582
|
+
...(input.SubnetIds != null && { SubnetIds: serializeAws_json1_1SubnetIdentifierList(input.SubnetIds, context) }),
|
|
1574
1583
|
};
|
|
1575
1584
|
};
|
|
1576
1585
|
const serializeAws_json1_1DecreaseReplicationFactorRequest = (input, context) => {
|
|
1577
1586
|
return {
|
|
1578
|
-
...(input.AvailabilityZones
|
|
1579
|
-
input.AvailabilityZones !== null && {
|
|
1587
|
+
...(input.AvailabilityZones != null && {
|
|
1580
1588
|
AvailabilityZones: serializeAws_json1_1AvailabilityZoneList(input.AvailabilityZones, context),
|
|
1581
1589
|
}),
|
|
1582
|
-
...(input.ClusterName
|
|
1583
|
-
...(input.NewReplicationFactor
|
|
1584
|
-
|
|
1585
|
-
...(input.NodeIdsToRemove !== undefined &&
|
|
1586
|
-
input.NodeIdsToRemove !== null && {
|
|
1590
|
+
...(input.ClusterName != null && { ClusterName: input.ClusterName }),
|
|
1591
|
+
...(input.NewReplicationFactor != null && { NewReplicationFactor: input.NewReplicationFactor }),
|
|
1592
|
+
...(input.NodeIdsToRemove != null && {
|
|
1587
1593
|
NodeIdsToRemove: serializeAws_json1_1NodeIdentifierList(input.NodeIdsToRemove, context),
|
|
1588
1594
|
}),
|
|
1589
1595
|
};
|
|
1590
1596
|
};
|
|
1591
1597
|
const serializeAws_json1_1DeleteClusterRequest = (input, context) => {
|
|
1592
1598
|
return {
|
|
1593
|
-
...(input.ClusterName
|
|
1599
|
+
...(input.ClusterName != null && { ClusterName: input.ClusterName }),
|
|
1594
1600
|
};
|
|
1595
1601
|
};
|
|
1596
1602
|
const serializeAws_json1_1DeleteParameterGroupRequest = (input, context) => {
|
|
1597
1603
|
return {
|
|
1598
|
-
...(input.ParameterGroupName
|
|
1599
|
-
input.ParameterGroupName !== null && { ParameterGroupName: input.ParameterGroupName }),
|
|
1604
|
+
...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
|
|
1600
1605
|
};
|
|
1601
1606
|
};
|
|
1602
1607
|
const serializeAws_json1_1DeleteSubnetGroupRequest = (input, context) => {
|
|
1603
1608
|
return {
|
|
1604
|
-
...(input.SubnetGroupName
|
|
1605
|
-
input.SubnetGroupName !== null && { SubnetGroupName: input.SubnetGroupName }),
|
|
1609
|
+
...(input.SubnetGroupName != null && { SubnetGroupName: input.SubnetGroupName }),
|
|
1606
1610
|
};
|
|
1607
1611
|
};
|
|
1608
1612
|
const serializeAws_json1_1DescribeClustersRequest = (input, context) => {
|
|
1609
1613
|
return {
|
|
1610
|
-
...(input.ClusterNames
|
|
1611
|
-
input.ClusterNames !== null && {
|
|
1614
|
+
...(input.ClusterNames != null && {
|
|
1612
1615
|
ClusterNames: serializeAws_json1_1ClusterNameList(input.ClusterNames, context),
|
|
1613
1616
|
}),
|
|
1614
|
-
...(input.MaxResults
|
|
1615
|
-
...(input.NextToken
|
|
1617
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1618
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1616
1619
|
};
|
|
1617
1620
|
};
|
|
1618
1621
|
const serializeAws_json1_1DescribeDefaultParametersRequest = (input, context) => {
|
|
1619
1622
|
return {
|
|
1620
|
-
...(input.MaxResults
|
|
1621
|
-
...(input.NextToken
|
|
1623
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1624
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1622
1625
|
};
|
|
1623
1626
|
};
|
|
1624
1627
|
const serializeAws_json1_1DescribeEventsRequest = (input, context) => {
|
|
1625
1628
|
return {
|
|
1626
|
-
...(input.Duration
|
|
1627
|
-
...(input.EndTime
|
|
1628
|
-
|
|
1629
|
-
...(input.
|
|
1630
|
-
...(input.
|
|
1631
|
-
...(input.
|
|
1632
|
-
...(input.
|
|
1633
|
-
...(input.StartTime !== undefined &&
|
|
1634
|
-
input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
1629
|
+
...(input.Duration != null && { Duration: input.Duration }),
|
|
1630
|
+
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
1631
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1632
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1633
|
+
...(input.SourceName != null && { SourceName: input.SourceName }),
|
|
1634
|
+
...(input.SourceType != null && { SourceType: input.SourceType }),
|
|
1635
|
+
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
1635
1636
|
};
|
|
1636
1637
|
};
|
|
1637
1638
|
const serializeAws_json1_1DescribeParameterGroupsRequest = (input, context) => {
|
|
1638
1639
|
return {
|
|
1639
|
-
...(input.MaxResults
|
|
1640
|
-
...(input.NextToken
|
|
1641
|
-
...(input.ParameterGroupNames
|
|
1642
|
-
input.ParameterGroupNames !== null && {
|
|
1640
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1641
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1642
|
+
...(input.ParameterGroupNames != null && {
|
|
1643
1643
|
ParameterGroupNames: serializeAws_json1_1ParameterGroupNameList(input.ParameterGroupNames, context),
|
|
1644
1644
|
}),
|
|
1645
1645
|
};
|
|
1646
1646
|
};
|
|
1647
1647
|
const serializeAws_json1_1DescribeParametersRequest = (input, context) => {
|
|
1648
1648
|
return {
|
|
1649
|
-
...(input.MaxResults
|
|
1650
|
-
...(input.NextToken
|
|
1651
|
-
...(input.ParameterGroupName
|
|
1652
|
-
|
|
1653
|
-
...(input.Source !== undefined && input.Source !== null && { Source: input.Source }),
|
|
1649
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1650
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1651
|
+
...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
|
|
1652
|
+
...(input.Source != null && { Source: input.Source }),
|
|
1654
1653
|
};
|
|
1655
1654
|
};
|
|
1656
1655
|
const serializeAws_json1_1DescribeSubnetGroupsRequest = (input, context) => {
|
|
1657
1656
|
return {
|
|
1658
|
-
...(input.MaxResults
|
|
1659
|
-
...(input.NextToken
|
|
1660
|
-
...(input.SubnetGroupNames
|
|
1661
|
-
input.SubnetGroupNames !== null && {
|
|
1657
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1658
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1659
|
+
...(input.SubnetGroupNames != null && {
|
|
1662
1660
|
SubnetGroupNames: serializeAws_json1_1SubnetGroupNameList(input.SubnetGroupNames, context),
|
|
1663
1661
|
}),
|
|
1664
1662
|
};
|
|
1665
1663
|
};
|
|
1666
1664
|
const serializeAws_json1_1IncreaseReplicationFactorRequest = (input, context) => {
|
|
1667
1665
|
return {
|
|
1668
|
-
...(input.AvailabilityZones
|
|
1669
|
-
input.AvailabilityZones !== null && {
|
|
1666
|
+
...(input.AvailabilityZones != null && {
|
|
1670
1667
|
AvailabilityZones: serializeAws_json1_1AvailabilityZoneList(input.AvailabilityZones, context),
|
|
1671
1668
|
}),
|
|
1672
|
-
...(input.ClusterName
|
|
1673
|
-
...(input.NewReplicationFactor
|
|
1674
|
-
input.NewReplicationFactor !== null && { NewReplicationFactor: input.NewReplicationFactor }),
|
|
1669
|
+
...(input.ClusterName != null && { ClusterName: input.ClusterName }),
|
|
1670
|
+
...(input.NewReplicationFactor != null && { NewReplicationFactor: input.NewReplicationFactor }),
|
|
1675
1671
|
};
|
|
1676
1672
|
};
|
|
1677
1673
|
const serializeAws_json1_1KeyList = (input, context) => {
|
|
@@ -1686,8 +1682,8 @@ const serializeAws_json1_1KeyList = (input, context) => {
|
|
|
1686
1682
|
};
|
|
1687
1683
|
const serializeAws_json1_1ListTagsRequest = (input, context) => {
|
|
1688
1684
|
return {
|
|
1689
|
-
...(input.NextToken
|
|
1690
|
-
...(input.ResourceName
|
|
1685
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1686
|
+
...(input.ResourceName != null && { ResourceName: input.ResourceName }),
|
|
1691
1687
|
};
|
|
1692
1688
|
};
|
|
1693
1689
|
const serializeAws_json1_1NodeIdentifierList = (input, context) => {
|
|
@@ -1712,9 +1708,8 @@ const serializeAws_json1_1ParameterGroupNameList = (input, context) => {
|
|
|
1712
1708
|
};
|
|
1713
1709
|
const serializeAws_json1_1ParameterNameValue = (input, context) => {
|
|
1714
1710
|
return {
|
|
1715
|
-
...(input.ParameterName
|
|
1716
|
-
...(input.ParameterValue
|
|
1717
|
-
input.ParameterValue !== null && { ParameterValue: input.ParameterValue }),
|
|
1711
|
+
...(input.ParameterName != null && { ParameterName: input.ParameterName }),
|
|
1712
|
+
...(input.ParameterValue != null && { ParameterValue: input.ParameterValue }),
|
|
1718
1713
|
};
|
|
1719
1714
|
};
|
|
1720
1715
|
const serializeAws_json1_1ParameterNameValueList = (input, context) => {
|
|
@@ -1729,8 +1724,8 @@ const serializeAws_json1_1ParameterNameValueList = (input, context) => {
|
|
|
1729
1724
|
};
|
|
1730
1725
|
const serializeAws_json1_1RebootNodeRequest = (input, context) => {
|
|
1731
1726
|
return {
|
|
1732
|
-
...(input.ClusterName
|
|
1733
|
-
...(input.NodeId
|
|
1727
|
+
...(input.ClusterName != null && { ClusterName: input.ClusterName }),
|
|
1728
|
+
...(input.NodeId != null && { NodeId: input.NodeId }),
|
|
1734
1729
|
};
|
|
1735
1730
|
};
|
|
1736
1731
|
const serializeAws_json1_1SecurityGroupIdentifierList = (input, context) => {
|
|
@@ -1745,7 +1740,7 @@ const serializeAws_json1_1SecurityGroupIdentifierList = (input, context) => {
|
|
|
1745
1740
|
};
|
|
1746
1741
|
const serializeAws_json1_1SSESpecification = (input, context) => {
|
|
1747
1742
|
return {
|
|
1748
|
-
...(input.Enabled
|
|
1743
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
1749
1744
|
};
|
|
1750
1745
|
};
|
|
1751
1746
|
const serializeAws_json1_1SubnetGroupNameList = (input, context) => {
|
|
@@ -1770,8 +1765,8 @@ const serializeAws_json1_1SubnetIdentifierList = (input, context) => {
|
|
|
1770
1765
|
};
|
|
1771
1766
|
const serializeAws_json1_1Tag = (input, context) => {
|
|
1772
1767
|
return {
|
|
1773
|
-
...(input.Key
|
|
1774
|
-
...(input.Value
|
|
1768
|
+
...(input.Key != null && { Key: input.Key }),
|
|
1769
|
+
...(input.Value != null && { Value: input.Value }),
|
|
1775
1770
|
};
|
|
1776
1771
|
};
|
|
1777
1772
|
const serializeAws_json1_1TagList = (input, context) => {
|
|
@@ -1786,83 +1781,69 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
1786
1781
|
};
|
|
1787
1782
|
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
1788
1783
|
return {
|
|
1789
|
-
...(input.ResourceName
|
|
1790
|
-
...(input.Tags
|
|
1784
|
+
...(input.ResourceName != null && { ResourceName: input.ResourceName }),
|
|
1785
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
1791
1786
|
};
|
|
1792
1787
|
};
|
|
1793
1788
|
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
1794
1789
|
return {
|
|
1795
|
-
...(input.ResourceName
|
|
1796
|
-
...(input.TagKeys
|
|
1797
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_1KeyList(input.TagKeys, context) }),
|
|
1790
|
+
...(input.ResourceName != null && { ResourceName: input.ResourceName }),
|
|
1791
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_json1_1KeyList(input.TagKeys, context) }),
|
|
1798
1792
|
};
|
|
1799
1793
|
};
|
|
1800
1794
|
const serializeAws_json1_1UpdateClusterRequest = (input, context) => {
|
|
1801
1795
|
return {
|
|
1802
|
-
...(input.ClusterName
|
|
1803
|
-
...(input.Description
|
|
1804
|
-
...(input.NotificationTopicArn
|
|
1805
|
-
|
|
1806
|
-
...(input.
|
|
1807
|
-
|
|
1808
|
-
...(input.
|
|
1809
|
-
input.ParameterGroupName !== null && { ParameterGroupName: input.ParameterGroupName }),
|
|
1810
|
-
...(input.PreferredMaintenanceWindow !== undefined &&
|
|
1811
|
-
input.PreferredMaintenanceWindow !== null && { PreferredMaintenanceWindow: input.PreferredMaintenanceWindow }),
|
|
1812
|
-
...(input.SecurityGroupIds !== undefined &&
|
|
1813
|
-
input.SecurityGroupIds !== null && {
|
|
1796
|
+
...(input.ClusterName != null && { ClusterName: input.ClusterName }),
|
|
1797
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1798
|
+
...(input.NotificationTopicArn != null && { NotificationTopicArn: input.NotificationTopicArn }),
|
|
1799
|
+
...(input.NotificationTopicStatus != null && { NotificationTopicStatus: input.NotificationTopicStatus }),
|
|
1800
|
+
...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
|
|
1801
|
+
...(input.PreferredMaintenanceWindow != null && { PreferredMaintenanceWindow: input.PreferredMaintenanceWindow }),
|
|
1802
|
+
...(input.SecurityGroupIds != null && {
|
|
1814
1803
|
SecurityGroupIds: serializeAws_json1_1SecurityGroupIdentifierList(input.SecurityGroupIds, context),
|
|
1815
1804
|
}),
|
|
1816
1805
|
};
|
|
1817
1806
|
};
|
|
1818
1807
|
const serializeAws_json1_1UpdateParameterGroupRequest = (input, context) => {
|
|
1819
1808
|
return {
|
|
1820
|
-
...(input.ParameterGroupName
|
|
1821
|
-
|
|
1822
|
-
...(input.ParameterNameValues !== undefined &&
|
|
1823
|
-
input.ParameterNameValues !== null && {
|
|
1809
|
+
...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
|
|
1810
|
+
...(input.ParameterNameValues != null && {
|
|
1824
1811
|
ParameterNameValues: serializeAws_json1_1ParameterNameValueList(input.ParameterNameValues, context),
|
|
1825
1812
|
}),
|
|
1826
1813
|
};
|
|
1827
1814
|
};
|
|
1828
1815
|
const serializeAws_json1_1UpdateSubnetGroupRequest = (input, context) => {
|
|
1829
1816
|
return {
|
|
1830
|
-
...(input.Description
|
|
1831
|
-
...(input.SubnetGroupName
|
|
1832
|
-
|
|
1833
|
-
...(input.SubnetIds !== undefined &&
|
|
1834
|
-
input.SubnetIds !== null && { SubnetIds: serializeAws_json1_1SubnetIdentifierList(input.SubnetIds, context) }),
|
|
1817
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1818
|
+
...(input.SubnetGroupName != null && { SubnetGroupName: input.SubnetGroupName }),
|
|
1819
|
+
...(input.SubnetIds != null && { SubnetIds: serializeAws_json1_1SubnetIdentifierList(input.SubnetIds, context) }),
|
|
1835
1820
|
};
|
|
1836
1821
|
};
|
|
1837
1822
|
const deserializeAws_json1_1Cluster = (output, context) => {
|
|
1838
1823
|
return {
|
|
1839
1824
|
ActiveNodes: (0, smithy_client_1.expectInt32)(output.ActiveNodes),
|
|
1840
1825
|
ClusterArn: (0, smithy_client_1.expectString)(output.ClusterArn),
|
|
1841
|
-
ClusterDiscoveryEndpoint: output.ClusterDiscoveryEndpoint
|
|
1826
|
+
ClusterDiscoveryEndpoint: output.ClusterDiscoveryEndpoint != null
|
|
1842
1827
|
? deserializeAws_json1_1Endpoint(output.ClusterDiscoveryEndpoint, context)
|
|
1843
1828
|
: undefined,
|
|
1844
1829
|
ClusterEndpointEncryptionType: (0, smithy_client_1.expectString)(output.ClusterEndpointEncryptionType),
|
|
1845
1830
|
ClusterName: (0, smithy_client_1.expectString)(output.ClusterName),
|
|
1846
1831
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
1847
1832
|
IamRoleArn: (0, smithy_client_1.expectString)(output.IamRoleArn),
|
|
1848
|
-
NodeIdsToRemove: output.NodeIdsToRemove
|
|
1833
|
+
NodeIdsToRemove: output.NodeIdsToRemove != null
|
|
1849
1834
|
? deserializeAws_json1_1NodeIdentifierList(output.NodeIdsToRemove, context)
|
|
1850
1835
|
: undefined,
|
|
1851
1836
|
NodeType: (0, smithy_client_1.expectString)(output.NodeType),
|
|
1852
|
-
Nodes: output.Nodes
|
|
1853
|
-
|
|
1854
|
-
: undefined,
|
|
1855
|
-
NotificationConfiguration: output.NotificationConfiguration !== undefined && output.NotificationConfiguration !== null
|
|
1837
|
+
Nodes: output.Nodes != null ? deserializeAws_json1_1NodeList(output.Nodes, context) : undefined,
|
|
1838
|
+
NotificationConfiguration: output.NotificationConfiguration != null
|
|
1856
1839
|
? deserializeAws_json1_1NotificationConfiguration(output.NotificationConfiguration, context)
|
|
1857
1840
|
: undefined,
|
|
1858
|
-
ParameterGroup: output.ParameterGroup
|
|
1841
|
+
ParameterGroup: output.ParameterGroup != null
|
|
1859
1842
|
? deserializeAws_json1_1ParameterGroupStatus(output.ParameterGroup, context)
|
|
1860
1843
|
: undefined,
|
|
1861
1844
|
PreferredMaintenanceWindow: (0, smithy_client_1.expectString)(output.PreferredMaintenanceWindow),
|
|
1862
|
-
SSEDescription: output.SSEDescription
|
|
1863
|
-
|
|
1864
|
-
: undefined,
|
|
1865
|
-
SecurityGroups: output.SecurityGroups !== undefined && output.SecurityGroups !== null
|
|
1845
|
+
SSEDescription: output.SSEDescription != null ? deserializeAws_json1_1SSEDescription(output.SSEDescription, context) : undefined,
|
|
1846
|
+
SecurityGroups: output.SecurityGroups != null
|
|
1866
1847
|
? deserializeAws_json1_1SecurityGroupMembershipList(output.SecurityGroups, context)
|
|
1867
1848
|
: undefined,
|
|
1868
1849
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
@@ -1898,37 +1879,27 @@ const deserializeAws_json1_1ClusterQuotaForCustomerExceededFault = (output, cont
|
|
|
1898
1879
|
};
|
|
1899
1880
|
const deserializeAws_json1_1CreateClusterResponse = (output, context) => {
|
|
1900
1881
|
return {
|
|
1901
|
-
Cluster: output.Cluster
|
|
1902
|
-
? deserializeAws_json1_1Cluster(output.Cluster, context)
|
|
1903
|
-
: undefined,
|
|
1882
|
+
Cluster: output.Cluster != null ? deserializeAws_json1_1Cluster(output.Cluster, context) : undefined,
|
|
1904
1883
|
};
|
|
1905
1884
|
};
|
|
1906
1885
|
const deserializeAws_json1_1CreateParameterGroupResponse = (output, context) => {
|
|
1907
1886
|
return {
|
|
1908
|
-
ParameterGroup: output.ParameterGroup
|
|
1909
|
-
? deserializeAws_json1_1ParameterGroup(output.ParameterGroup, context)
|
|
1910
|
-
: undefined,
|
|
1887
|
+
ParameterGroup: output.ParameterGroup != null ? deserializeAws_json1_1ParameterGroup(output.ParameterGroup, context) : undefined,
|
|
1911
1888
|
};
|
|
1912
1889
|
};
|
|
1913
1890
|
const deserializeAws_json1_1CreateSubnetGroupResponse = (output, context) => {
|
|
1914
1891
|
return {
|
|
1915
|
-
SubnetGroup: output.SubnetGroup
|
|
1916
|
-
? deserializeAws_json1_1SubnetGroup(output.SubnetGroup, context)
|
|
1917
|
-
: undefined,
|
|
1892
|
+
SubnetGroup: output.SubnetGroup != null ? deserializeAws_json1_1SubnetGroup(output.SubnetGroup, context) : undefined,
|
|
1918
1893
|
};
|
|
1919
1894
|
};
|
|
1920
1895
|
const deserializeAws_json1_1DecreaseReplicationFactorResponse = (output, context) => {
|
|
1921
1896
|
return {
|
|
1922
|
-
Cluster: output.Cluster
|
|
1923
|
-
? deserializeAws_json1_1Cluster(output.Cluster, context)
|
|
1924
|
-
: undefined,
|
|
1897
|
+
Cluster: output.Cluster != null ? deserializeAws_json1_1Cluster(output.Cluster, context) : undefined,
|
|
1925
1898
|
};
|
|
1926
1899
|
};
|
|
1927
1900
|
const deserializeAws_json1_1DeleteClusterResponse = (output, context) => {
|
|
1928
1901
|
return {
|
|
1929
|
-
Cluster: output.Cluster
|
|
1930
|
-
? deserializeAws_json1_1Cluster(output.Cluster, context)
|
|
1931
|
-
: undefined,
|
|
1902
|
+
Cluster: output.Cluster != null ? deserializeAws_json1_1Cluster(output.Cluster, context) : undefined,
|
|
1932
1903
|
};
|
|
1933
1904
|
};
|
|
1934
1905
|
const deserializeAws_json1_1DeleteParameterGroupResponse = (output, context) => {
|
|
@@ -1943,32 +1914,26 @@ const deserializeAws_json1_1DeleteSubnetGroupResponse = (output, context) => {
|
|
|
1943
1914
|
};
|
|
1944
1915
|
const deserializeAws_json1_1DescribeClustersResponse = (output, context) => {
|
|
1945
1916
|
return {
|
|
1946
|
-
Clusters: output.Clusters
|
|
1947
|
-
? deserializeAws_json1_1ClusterList(output.Clusters, context)
|
|
1948
|
-
: undefined,
|
|
1917
|
+
Clusters: output.Clusters != null ? deserializeAws_json1_1ClusterList(output.Clusters, context) : undefined,
|
|
1949
1918
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1950
1919
|
};
|
|
1951
1920
|
};
|
|
1952
1921
|
const deserializeAws_json1_1DescribeDefaultParametersResponse = (output, context) => {
|
|
1953
1922
|
return {
|
|
1954
1923
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1955
|
-
Parameters: output.Parameters
|
|
1956
|
-
? deserializeAws_json1_1ParameterList(output.Parameters, context)
|
|
1957
|
-
: undefined,
|
|
1924
|
+
Parameters: output.Parameters != null ? deserializeAws_json1_1ParameterList(output.Parameters, context) : undefined,
|
|
1958
1925
|
};
|
|
1959
1926
|
};
|
|
1960
1927
|
const deserializeAws_json1_1DescribeEventsResponse = (output, context) => {
|
|
1961
1928
|
return {
|
|
1962
|
-
Events: output.Events
|
|
1963
|
-
? deserializeAws_json1_1EventList(output.Events, context)
|
|
1964
|
-
: undefined,
|
|
1929
|
+
Events: output.Events != null ? deserializeAws_json1_1EventList(output.Events, context) : undefined,
|
|
1965
1930
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1966
1931
|
};
|
|
1967
1932
|
};
|
|
1968
1933
|
const deserializeAws_json1_1DescribeParameterGroupsResponse = (output, context) => {
|
|
1969
1934
|
return {
|
|
1970
1935
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1971
|
-
ParameterGroups: output.ParameterGroups
|
|
1936
|
+
ParameterGroups: output.ParameterGroups != null
|
|
1972
1937
|
? deserializeAws_json1_1ParameterGroupList(output.ParameterGroups, context)
|
|
1973
1938
|
: undefined,
|
|
1974
1939
|
};
|
|
@@ -1976,17 +1941,13 @@ const deserializeAws_json1_1DescribeParameterGroupsResponse = (output, context)
|
|
|
1976
1941
|
const deserializeAws_json1_1DescribeParametersResponse = (output, context) => {
|
|
1977
1942
|
return {
|
|
1978
1943
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1979
|
-
Parameters: output.Parameters
|
|
1980
|
-
? deserializeAws_json1_1ParameterList(output.Parameters, context)
|
|
1981
|
-
: undefined,
|
|
1944
|
+
Parameters: output.Parameters != null ? deserializeAws_json1_1ParameterList(output.Parameters, context) : undefined,
|
|
1982
1945
|
};
|
|
1983
1946
|
};
|
|
1984
1947
|
const deserializeAws_json1_1DescribeSubnetGroupsResponse = (output, context) => {
|
|
1985
1948
|
return {
|
|
1986
1949
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1987
|
-
SubnetGroups: output.SubnetGroups
|
|
1988
|
-
? deserializeAws_json1_1SubnetGroupList(output.SubnetGroups, context)
|
|
1989
|
-
: undefined,
|
|
1950
|
+
SubnetGroups: output.SubnetGroups != null ? deserializeAws_json1_1SubnetGroupList(output.SubnetGroups, context) : undefined,
|
|
1990
1951
|
};
|
|
1991
1952
|
};
|
|
1992
1953
|
const deserializeAws_json1_1Endpoint = (output, context) => {
|
|
@@ -1998,9 +1959,7 @@ const deserializeAws_json1_1Endpoint = (output, context) => {
|
|
|
1998
1959
|
};
|
|
1999
1960
|
const deserializeAws_json1_1Event = (output, context) => {
|
|
2000
1961
|
return {
|
|
2001
|
-
Date: output.Date
|
|
2002
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Date)))
|
|
2003
|
-
: undefined,
|
|
1962
|
+
Date: output.Date != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Date))) : undefined,
|
|
2004
1963
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2005
1964
|
SourceName: (0, smithy_client_1.expectString)(output.SourceName),
|
|
2006
1965
|
SourceType: (0, smithy_client_1.expectString)(output.SourceType),
|
|
@@ -2019,9 +1978,7 @@ const deserializeAws_json1_1EventList = (output, context) => {
|
|
|
2019
1978
|
};
|
|
2020
1979
|
const deserializeAws_json1_1IncreaseReplicationFactorResponse = (output, context) => {
|
|
2021
1980
|
return {
|
|
2022
|
-
Cluster: output.Cluster
|
|
2023
|
-
? deserializeAws_json1_1Cluster(output.Cluster, context)
|
|
2024
|
-
: undefined,
|
|
1981
|
+
Cluster: output.Cluster != null ? deserializeAws_json1_1Cluster(output.Cluster, context) : undefined,
|
|
2025
1982
|
};
|
|
2026
1983
|
};
|
|
2027
1984
|
const deserializeAws_json1_1InsufficientClusterCapacityFault = (output, context) => {
|
|
@@ -2067,18 +2024,14 @@ const deserializeAws_json1_1InvalidVPCNetworkStateFault = (output, context) => {
|
|
|
2067
2024
|
const deserializeAws_json1_1ListTagsResponse = (output, context) => {
|
|
2068
2025
|
return {
|
|
2069
2026
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2070
|
-
Tags: output.Tags
|
|
2071
|
-
? deserializeAws_json1_1TagList(output.Tags, context)
|
|
2072
|
-
: undefined,
|
|
2027
|
+
Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
|
|
2073
2028
|
};
|
|
2074
2029
|
};
|
|
2075
2030
|
const deserializeAws_json1_1Node = (output, context) => {
|
|
2076
2031
|
return {
|
|
2077
2032
|
AvailabilityZone: (0, smithy_client_1.expectString)(output.AvailabilityZone),
|
|
2078
|
-
Endpoint: output.Endpoint
|
|
2079
|
-
|
|
2080
|
-
: undefined,
|
|
2081
|
-
NodeCreateTime: output.NodeCreateTime !== undefined && output.NodeCreateTime !== null
|
|
2033
|
+
Endpoint: output.Endpoint != null ? deserializeAws_json1_1Endpoint(output.Endpoint, context) : undefined,
|
|
2034
|
+
NodeCreateTime: output.NodeCreateTime != null
|
|
2082
2035
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.NodeCreateTime)))
|
|
2083
2036
|
: undefined,
|
|
2084
2037
|
NodeId: (0, smithy_client_1.expectString)(output.NodeId),
|
|
@@ -2153,7 +2106,7 @@ const deserializeAws_json1_1Parameter = (output, context) => {
|
|
|
2153
2106
|
DataType: (0, smithy_client_1.expectString)(output.DataType),
|
|
2154
2107
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
2155
2108
|
IsModifiable: (0, smithy_client_1.expectString)(output.IsModifiable),
|
|
2156
|
-
NodeTypeSpecificValues: output.NodeTypeSpecificValues
|
|
2109
|
+
NodeTypeSpecificValues: output.NodeTypeSpecificValues != null
|
|
2157
2110
|
? deserializeAws_json1_1NodeTypeSpecificValueList(output.NodeTypeSpecificValues, context)
|
|
2158
2111
|
: undefined,
|
|
2159
2112
|
ParameterName: (0, smithy_client_1.expectString)(output.ParameterName),
|
|
@@ -2196,7 +2149,7 @@ const deserializeAws_json1_1ParameterGroupQuotaExceededFault = (output, context)
|
|
|
2196
2149
|
};
|
|
2197
2150
|
const deserializeAws_json1_1ParameterGroupStatus = (output, context) => {
|
|
2198
2151
|
return {
|
|
2199
|
-
NodeIdsToReboot: output.NodeIdsToReboot
|
|
2152
|
+
NodeIdsToReboot: output.NodeIdsToReboot != null
|
|
2200
2153
|
? deserializeAws_json1_1NodeIdentifierList(output.NodeIdsToReboot, context)
|
|
2201
2154
|
: undefined,
|
|
2202
2155
|
ParameterApplyStatus: (0, smithy_client_1.expectString)(output.ParameterApplyStatus),
|
|
@@ -2216,9 +2169,7 @@ const deserializeAws_json1_1ParameterList = (output, context) => {
|
|
|
2216
2169
|
};
|
|
2217
2170
|
const deserializeAws_json1_1RebootNodeResponse = (output, context) => {
|
|
2218
2171
|
return {
|
|
2219
|
-
Cluster: output.Cluster
|
|
2220
|
-
? deserializeAws_json1_1Cluster(output.Cluster, context)
|
|
2221
|
-
: undefined,
|
|
2172
|
+
Cluster: output.Cluster != null ? deserializeAws_json1_1Cluster(output.Cluster, context) : undefined,
|
|
2222
2173
|
};
|
|
2223
2174
|
};
|
|
2224
2175
|
const deserializeAws_json1_1SecurityGroupMembership = (output, context) => {
|
|
@@ -2261,9 +2212,7 @@ const deserializeAws_json1_1SubnetGroup = (output, context) => {
|
|
|
2261
2212
|
return {
|
|
2262
2213
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
2263
2214
|
SubnetGroupName: (0, smithy_client_1.expectString)(output.SubnetGroupName),
|
|
2264
|
-
Subnets: output.Subnets
|
|
2265
|
-
? deserializeAws_json1_1SubnetList(output.Subnets, context)
|
|
2266
|
-
: undefined,
|
|
2215
|
+
Subnets: output.Subnets != null ? deserializeAws_json1_1SubnetList(output.Subnets, context) : undefined,
|
|
2267
2216
|
VpcId: (0, smithy_client_1.expectString)(output.VpcId),
|
|
2268
2217
|
};
|
|
2269
2218
|
};
|
|
@@ -2348,37 +2297,27 @@ const deserializeAws_json1_1TagQuotaPerResourceExceeded = (output, context) => {
|
|
|
2348
2297
|
};
|
|
2349
2298
|
const deserializeAws_json1_1TagResourceResponse = (output, context) => {
|
|
2350
2299
|
return {
|
|
2351
|
-
Tags: output.Tags
|
|
2352
|
-
? deserializeAws_json1_1TagList(output.Tags, context)
|
|
2353
|
-
: undefined,
|
|
2300
|
+
Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
|
|
2354
2301
|
};
|
|
2355
2302
|
};
|
|
2356
2303
|
const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
2357
2304
|
return {
|
|
2358
|
-
Tags: output.Tags
|
|
2359
|
-
? deserializeAws_json1_1TagList(output.Tags, context)
|
|
2360
|
-
: undefined,
|
|
2305
|
+
Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
|
|
2361
2306
|
};
|
|
2362
2307
|
};
|
|
2363
2308
|
const deserializeAws_json1_1UpdateClusterResponse = (output, context) => {
|
|
2364
2309
|
return {
|
|
2365
|
-
Cluster: output.Cluster
|
|
2366
|
-
? deserializeAws_json1_1Cluster(output.Cluster, context)
|
|
2367
|
-
: undefined,
|
|
2310
|
+
Cluster: output.Cluster != null ? deserializeAws_json1_1Cluster(output.Cluster, context) : undefined,
|
|
2368
2311
|
};
|
|
2369
2312
|
};
|
|
2370
2313
|
const deserializeAws_json1_1UpdateParameterGroupResponse = (output, context) => {
|
|
2371
2314
|
return {
|
|
2372
|
-
ParameterGroup: output.ParameterGroup
|
|
2373
|
-
? deserializeAws_json1_1ParameterGroup(output.ParameterGroup, context)
|
|
2374
|
-
: undefined,
|
|
2315
|
+
ParameterGroup: output.ParameterGroup != null ? deserializeAws_json1_1ParameterGroup(output.ParameterGroup, context) : undefined,
|
|
2375
2316
|
};
|
|
2376
2317
|
};
|
|
2377
2318
|
const deserializeAws_json1_1UpdateSubnetGroupResponse = (output, context) => {
|
|
2378
2319
|
return {
|
|
2379
|
-
SubnetGroup: output.SubnetGroup
|
|
2380
|
-
? deserializeAws_json1_1SubnetGroup(output.SubnetGroup, context)
|
|
2381
|
-
: undefined,
|
|
2320
|
+
SubnetGroup: output.SubnetGroup != null ? deserializeAws_json1_1SubnetGroup(output.SubnetGroup, context) : undefined,
|
|
2382
2321
|
};
|
|
2383
2322
|
};
|
|
2384
2323
|
const deserializeMetadata = (output) => {
|
|
@@ -2443,5 +2382,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
2443
2382
|
if (data["__type"] !== undefined) {
|
|
2444
2383
|
return sanitizeErrorCode(data["__type"]);
|
|
2445
2384
|
}
|
|
2446
|
-
return "";
|
|
2447
2385
|
};
|