@aws-sdk/client-memorydb 3.118.1 → 3.128.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 +383 -483
- package/dist-es/protocols/Aws_json1_1.js +291 -391
- package/package.json +26 -26
|
@@ -376,8 +376,7 @@ const deserializeAws_json1_1BatchUpdateClusterCommandError = async (output, cont
|
|
|
376
376
|
body: await parseBody(output.body, context),
|
|
377
377
|
};
|
|
378
378
|
let response;
|
|
379
|
-
|
|
380
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
379
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
381
380
|
switch (errorCode) {
|
|
382
381
|
case "InvalidParameterValueException":
|
|
383
382
|
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
@@ -387,10 +386,12 @@ const deserializeAws_json1_1BatchUpdateClusterCommandError = async (output, cont
|
|
|
387
386
|
throw await deserializeAws_json1_1ServiceUpdateNotFoundFaultResponse(parsedOutput, context);
|
|
388
387
|
default:
|
|
389
388
|
const parsedBody = parsedOutput.body;
|
|
389
|
+
const $metadata = deserializeMetadata(output);
|
|
390
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
390
391
|
response = new MemoryDBServiceException_1.MemoryDBServiceException({
|
|
391
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
392
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
392
393
|
$fault: "client",
|
|
393
|
-
$metadata
|
|
394
|
+
$metadata,
|
|
394
395
|
});
|
|
395
396
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
396
397
|
}
|
|
@@ -415,8 +416,7 @@ const deserializeAws_json1_1CopySnapshotCommandError = async (output, context) =
|
|
|
415
416
|
body: await parseBody(output.body, context),
|
|
416
417
|
};
|
|
417
418
|
let response;
|
|
418
|
-
|
|
419
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
419
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
420
420
|
switch (errorCode) {
|
|
421
421
|
case "InvalidParameterCombinationException":
|
|
422
422
|
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
@@ -444,10 +444,12 @@ const deserializeAws_json1_1CopySnapshotCommandError = async (output, context) =
|
|
|
444
444
|
throw await deserializeAws_json1_1TagQuotaPerResourceExceededResponse(parsedOutput, context);
|
|
445
445
|
default:
|
|
446
446
|
const parsedBody = parsedOutput.body;
|
|
447
|
+
const $metadata = deserializeMetadata(output);
|
|
448
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
447
449
|
response = new MemoryDBServiceException_1.MemoryDBServiceException({
|
|
448
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
450
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
449
451
|
$fault: "client",
|
|
450
|
-
$metadata
|
|
452
|
+
$metadata,
|
|
451
453
|
});
|
|
452
454
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
453
455
|
}
|
|
@@ -472,8 +474,7 @@ const deserializeAws_json1_1CreateACLCommandError = async (output, context) => {
|
|
|
472
474
|
body: await parseBody(output.body, context),
|
|
473
475
|
};
|
|
474
476
|
let response;
|
|
475
|
-
|
|
476
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
477
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
477
478
|
switch (errorCode) {
|
|
478
479
|
case "ACLAlreadyExistsFault":
|
|
479
480
|
case "com.amazonaws.memorydb#ACLAlreadyExistsFault":
|
|
@@ -498,10 +499,12 @@ const deserializeAws_json1_1CreateACLCommandError = async (output, context) => {
|
|
|
498
499
|
throw await deserializeAws_json1_1UserNotFoundFaultResponse(parsedOutput, context);
|
|
499
500
|
default:
|
|
500
501
|
const parsedBody = parsedOutput.body;
|
|
502
|
+
const $metadata = deserializeMetadata(output);
|
|
503
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
501
504
|
response = new MemoryDBServiceException_1.MemoryDBServiceException({
|
|
502
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
505
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
503
506
|
$fault: "client",
|
|
504
|
-
$metadata
|
|
507
|
+
$metadata,
|
|
505
508
|
});
|
|
506
509
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
507
510
|
}
|
|
@@ -526,8 +529,7 @@ const deserializeAws_json1_1CreateClusterCommandError = async (output, context)
|
|
|
526
529
|
body: await parseBody(output.body, context),
|
|
527
530
|
};
|
|
528
531
|
let response;
|
|
529
|
-
|
|
530
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
532
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
531
533
|
switch (errorCode) {
|
|
532
534
|
case "ACLNotFoundFault":
|
|
533
535
|
case "com.amazonaws.memorydb#ACLNotFoundFault":
|
|
@@ -579,10 +581,12 @@ const deserializeAws_json1_1CreateClusterCommandError = async (output, context)
|
|
|
579
581
|
throw await deserializeAws_json1_1TagQuotaPerResourceExceededResponse(parsedOutput, context);
|
|
580
582
|
default:
|
|
581
583
|
const parsedBody = parsedOutput.body;
|
|
584
|
+
const $metadata = deserializeMetadata(output);
|
|
585
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
582
586
|
response = new MemoryDBServiceException_1.MemoryDBServiceException({
|
|
583
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
587
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
584
588
|
$fault: "client",
|
|
585
|
-
$metadata
|
|
589
|
+
$metadata,
|
|
586
590
|
});
|
|
587
591
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
588
592
|
}
|
|
@@ -607,8 +611,7 @@ const deserializeAws_json1_1CreateParameterGroupCommandError = async (output, co
|
|
|
607
611
|
body: await parseBody(output.body, context),
|
|
608
612
|
};
|
|
609
613
|
let response;
|
|
610
|
-
|
|
611
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
614
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
612
615
|
switch (errorCode) {
|
|
613
616
|
case "InvalidParameterCombinationException":
|
|
614
617
|
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
@@ -633,10 +636,12 @@ const deserializeAws_json1_1CreateParameterGroupCommandError = async (output, co
|
|
|
633
636
|
throw await deserializeAws_json1_1TagQuotaPerResourceExceededResponse(parsedOutput, context);
|
|
634
637
|
default:
|
|
635
638
|
const parsedBody = parsedOutput.body;
|
|
639
|
+
const $metadata = deserializeMetadata(output);
|
|
640
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
636
641
|
response = new MemoryDBServiceException_1.MemoryDBServiceException({
|
|
637
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
642
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
638
643
|
$fault: "client",
|
|
639
|
-
$metadata
|
|
644
|
+
$metadata,
|
|
640
645
|
});
|
|
641
646
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
642
647
|
}
|
|
@@ -661,8 +666,7 @@ const deserializeAws_json1_1CreateSnapshotCommandError = async (output, context)
|
|
|
661
666
|
body: await parseBody(output.body, context),
|
|
662
667
|
};
|
|
663
668
|
let response;
|
|
664
|
-
|
|
665
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
669
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
666
670
|
switch (errorCode) {
|
|
667
671
|
case "ClusterNotFoundFault":
|
|
668
672
|
case "com.amazonaws.memorydb#ClusterNotFoundFault":
|
|
@@ -690,10 +694,12 @@ const deserializeAws_json1_1CreateSnapshotCommandError = async (output, context)
|
|
|
690
694
|
throw await deserializeAws_json1_1TagQuotaPerResourceExceededResponse(parsedOutput, context);
|
|
691
695
|
default:
|
|
692
696
|
const parsedBody = parsedOutput.body;
|
|
697
|
+
const $metadata = deserializeMetadata(output);
|
|
698
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
693
699
|
response = new MemoryDBServiceException_1.MemoryDBServiceException({
|
|
694
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
700
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
695
701
|
$fault: "client",
|
|
696
|
-
$metadata
|
|
702
|
+
$metadata,
|
|
697
703
|
});
|
|
698
704
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
699
705
|
}
|
|
@@ -718,8 +724,7 @@ const deserializeAws_json1_1CreateSubnetGroupCommandError = async (output, conte
|
|
|
718
724
|
body: await parseBody(output.body, context),
|
|
719
725
|
};
|
|
720
726
|
let response;
|
|
721
|
-
|
|
722
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
727
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
723
728
|
switch (errorCode) {
|
|
724
729
|
case "InvalidSubnet":
|
|
725
730
|
case "com.amazonaws.memorydb#InvalidSubnet":
|
|
@@ -744,10 +749,12 @@ const deserializeAws_json1_1CreateSubnetGroupCommandError = async (output, conte
|
|
|
744
749
|
throw await deserializeAws_json1_1TagQuotaPerResourceExceededResponse(parsedOutput, context);
|
|
745
750
|
default:
|
|
746
751
|
const parsedBody = parsedOutput.body;
|
|
752
|
+
const $metadata = deserializeMetadata(output);
|
|
753
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
747
754
|
response = new MemoryDBServiceException_1.MemoryDBServiceException({
|
|
748
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
755
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
749
756
|
$fault: "client",
|
|
750
|
-
$metadata
|
|
757
|
+
$metadata,
|
|
751
758
|
});
|
|
752
759
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
753
760
|
}
|
|
@@ -772,8 +779,7 @@ const deserializeAws_json1_1CreateUserCommandError = async (output, context) =>
|
|
|
772
779
|
body: await parseBody(output.body, context),
|
|
773
780
|
};
|
|
774
781
|
let response;
|
|
775
|
-
|
|
776
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
782
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
777
783
|
switch (errorCode) {
|
|
778
784
|
case "DuplicateUserNameFault":
|
|
779
785
|
case "com.amazonaws.memorydb#DuplicateUserNameFault":
|
|
@@ -795,10 +801,12 @@ const deserializeAws_json1_1CreateUserCommandError = async (output, context) =>
|
|
|
795
801
|
throw await deserializeAws_json1_1UserQuotaExceededFaultResponse(parsedOutput, context);
|
|
796
802
|
default:
|
|
797
803
|
const parsedBody = parsedOutput.body;
|
|
804
|
+
const $metadata = deserializeMetadata(output);
|
|
805
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
798
806
|
response = new MemoryDBServiceException_1.MemoryDBServiceException({
|
|
799
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
807
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
800
808
|
$fault: "client",
|
|
801
|
-
$metadata
|
|
809
|
+
$metadata,
|
|
802
810
|
});
|
|
803
811
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
804
812
|
}
|
|
@@ -823,8 +831,7 @@ const deserializeAws_json1_1DeleteACLCommandError = async (output, context) => {
|
|
|
823
831
|
body: await parseBody(output.body, context),
|
|
824
832
|
};
|
|
825
833
|
let response;
|
|
826
|
-
|
|
827
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
834
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
828
835
|
switch (errorCode) {
|
|
829
836
|
case "ACLNotFoundFault":
|
|
830
837
|
case "com.amazonaws.memorydb#ACLNotFoundFault":
|
|
@@ -837,10 +844,12 @@ const deserializeAws_json1_1DeleteACLCommandError = async (output, context) => {
|
|
|
837
844
|
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
838
845
|
default:
|
|
839
846
|
const parsedBody = parsedOutput.body;
|
|
847
|
+
const $metadata = deserializeMetadata(output);
|
|
848
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
840
849
|
response = new MemoryDBServiceException_1.MemoryDBServiceException({
|
|
841
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
850
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
842
851
|
$fault: "client",
|
|
843
|
-
$metadata
|
|
852
|
+
$metadata,
|
|
844
853
|
});
|
|
845
854
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
846
855
|
}
|
|
@@ -865,8 +874,7 @@ const deserializeAws_json1_1DeleteClusterCommandError = async (output, context)
|
|
|
865
874
|
body: await parseBody(output.body, context),
|
|
866
875
|
};
|
|
867
876
|
let response;
|
|
868
|
-
|
|
869
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
877
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
870
878
|
switch (errorCode) {
|
|
871
879
|
case "ClusterNotFoundFault":
|
|
872
880
|
case "com.amazonaws.memorydb#ClusterNotFoundFault":
|
|
@@ -888,10 +896,12 @@ const deserializeAws_json1_1DeleteClusterCommandError = async (output, context)
|
|
|
888
896
|
throw await deserializeAws_json1_1SnapshotAlreadyExistsFaultResponse(parsedOutput, context);
|
|
889
897
|
default:
|
|
890
898
|
const parsedBody = parsedOutput.body;
|
|
899
|
+
const $metadata = deserializeMetadata(output);
|
|
900
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
891
901
|
response = new MemoryDBServiceException_1.MemoryDBServiceException({
|
|
892
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
902
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
893
903
|
$fault: "client",
|
|
894
|
-
$metadata
|
|
904
|
+
$metadata,
|
|
895
905
|
});
|
|
896
906
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
897
907
|
}
|
|
@@ -916,8 +926,7 @@ const deserializeAws_json1_1DeleteParameterGroupCommandError = async (output, co
|
|
|
916
926
|
body: await parseBody(output.body, context),
|
|
917
927
|
};
|
|
918
928
|
let response;
|
|
919
|
-
|
|
920
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
929
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
921
930
|
switch (errorCode) {
|
|
922
931
|
case "InvalidParameterCombinationException":
|
|
923
932
|
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
@@ -936,10 +945,12 @@ const deserializeAws_json1_1DeleteParameterGroupCommandError = async (output, co
|
|
|
936
945
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
937
946
|
default:
|
|
938
947
|
const parsedBody = parsedOutput.body;
|
|
948
|
+
const $metadata = deserializeMetadata(output);
|
|
949
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
939
950
|
response = new MemoryDBServiceException_1.MemoryDBServiceException({
|
|
940
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
951
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
941
952
|
$fault: "client",
|
|
942
|
-
$metadata
|
|
953
|
+
$metadata,
|
|
943
954
|
});
|
|
944
955
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
945
956
|
}
|
|
@@ -964,8 +975,7 @@ const deserializeAws_json1_1DeleteSnapshotCommandError = async (output, context)
|
|
|
964
975
|
body: await parseBody(output.body, context),
|
|
965
976
|
};
|
|
966
977
|
let response;
|
|
967
|
-
|
|
968
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
978
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
969
979
|
switch (errorCode) {
|
|
970
980
|
case "InvalidParameterCombinationException":
|
|
971
981
|
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
@@ -984,10 +994,12 @@ const deserializeAws_json1_1DeleteSnapshotCommandError = async (output, context)
|
|
|
984
994
|
throw await deserializeAws_json1_1SnapshotNotFoundFaultResponse(parsedOutput, context);
|
|
985
995
|
default:
|
|
986
996
|
const parsedBody = parsedOutput.body;
|
|
997
|
+
const $metadata = deserializeMetadata(output);
|
|
998
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
987
999
|
response = new MemoryDBServiceException_1.MemoryDBServiceException({
|
|
988
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1000
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
989
1001
|
$fault: "client",
|
|
990
|
-
$metadata
|
|
1002
|
+
$metadata,
|
|
991
1003
|
});
|
|
992
1004
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
993
1005
|
}
|
|
@@ -1012,8 +1024,7 @@ const deserializeAws_json1_1DeleteSubnetGroupCommandError = async (output, conte
|
|
|
1012
1024
|
body: await parseBody(output.body, context),
|
|
1013
1025
|
};
|
|
1014
1026
|
let response;
|
|
1015
|
-
|
|
1016
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1027
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1017
1028
|
switch (errorCode) {
|
|
1018
1029
|
case "ServiceLinkedRoleNotFoundFault":
|
|
1019
1030
|
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
@@ -1026,10 +1037,12 @@ const deserializeAws_json1_1DeleteSubnetGroupCommandError = async (output, conte
|
|
|
1026
1037
|
throw await deserializeAws_json1_1SubnetGroupNotFoundFaultResponse(parsedOutput, context);
|
|
1027
1038
|
default:
|
|
1028
1039
|
const parsedBody = parsedOutput.body;
|
|
1040
|
+
const $metadata = deserializeMetadata(output);
|
|
1041
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1029
1042
|
response = new MemoryDBServiceException_1.MemoryDBServiceException({
|
|
1030
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1043
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1031
1044
|
$fault: "client",
|
|
1032
|
-
$metadata
|
|
1045
|
+
$metadata,
|
|
1033
1046
|
});
|
|
1034
1047
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1035
1048
|
}
|
|
@@ -1054,8 +1067,7 @@ const deserializeAws_json1_1DeleteUserCommandError = async (output, context) =>
|
|
|
1054
1067
|
body: await parseBody(output.body, context),
|
|
1055
1068
|
};
|
|
1056
1069
|
let response;
|
|
1057
|
-
|
|
1058
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1070
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1059
1071
|
switch (errorCode) {
|
|
1060
1072
|
case "InvalidParameterValueException":
|
|
1061
1073
|
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
@@ -1068,10 +1080,12 @@ const deserializeAws_json1_1DeleteUserCommandError = async (output, context) =>
|
|
|
1068
1080
|
throw await deserializeAws_json1_1UserNotFoundFaultResponse(parsedOutput, context);
|
|
1069
1081
|
default:
|
|
1070
1082
|
const parsedBody = parsedOutput.body;
|
|
1083
|
+
const $metadata = deserializeMetadata(output);
|
|
1084
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1071
1085
|
response = new MemoryDBServiceException_1.MemoryDBServiceException({
|
|
1072
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1086
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1073
1087
|
$fault: "client",
|
|
1074
|
-
$metadata
|
|
1088
|
+
$metadata,
|
|
1075
1089
|
});
|
|
1076
1090
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1077
1091
|
}
|
|
@@ -1096,8 +1110,7 @@ const deserializeAws_json1_1DescribeACLsCommandError = async (output, context) =
|
|
|
1096
1110
|
body: await parseBody(output.body, context),
|
|
1097
1111
|
};
|
|
1098
1112
|
let response;
|
|
1099
|
-
|
|
1100
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1113
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1101
1114
|
switch (errorCode) {
|
|
1102
1115
|
case "ACLNotFoundFault":
|
|
1103
1116
|
case "com.amazonaws.memorydb#ACLNotFoundFault":
|
|
@@ -1107,10 +1120,12 @@ const deserializeAws_json1_1DescribeACLsCommandError = async (output, context) =
|
|
|
1107
1120
|
throw await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context);
|
|
1108
1121
|
default:
|
|
1109
1122
|
const parsedBody = parsedOutput.body;
|
|
1123
|
+
const $metadata = deserializeMetadata(output);
|
|
1124
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1110
1125
|
response = new MemoryDBServiceException_1.MemoryDBServiceException({
|
|
1111
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1126
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1112
1127
|
$fault: "client",
|
|
1113
|
-
$metadata
|
|
1128
|
+
$metadata,
|
|
1114
1129
|
});
|
|
1115
1130
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1116
1131
|
}
|
|
@@ -1135,8 +1150,7 @@ const deserializeAws_json1_1DescribeClustersCommandError = async (output, contex
|
|
|
1135
1150
|
body: await parseBody(output.body, context),
|
|
1136
1151
|
};
|
|
1137
1152
|
let response;
|
|
1138
|
-
|
|
1139
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1153
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1140
1154
|
switch (errorCode) {
|
|
1141
1155
|
case "ClusterNotFoundFault":
|
|
1142
1156
|
case "com.amazonaws.memorydb#ClusterNotFoundFault":
|
|
@@ -1152,10 +1166,12 @@ const deserializeAws_json1_1DescribeClustersCommandError = async (output, contex
|
|
|
1152
1166
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
1153
1167
|
default:
|
|
1154
1168
|
const parsedBody = parsedOutput.body;
|
|
1169
|
+
const $metadata = deserializeMetadata(output);
|
|
1170
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1155
1171
|
response = new MemoryDBServiceException_1.MemoryDBServiceException({
|
|
1156
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1172
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1157
1173
|
$fault: "client",
|
|
1158
|
-
$metadata
|
|
1174
|
+
$metadata,
|
|
1159
1175
|
});
|
|
1160
1176
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1161
1177
|
}
|
|
@@ -1180,8 +1196,7 @@ const deserializeAws_json1_1DescribeEngineVersionsCommandError = async (output,
|
|
|
1180
1196
|
body: await parseBody(output.body, context),
|
|
1181
1197
|
};
|
|
1182
1198
|
let response;
|
|
1183
|
-
|
|
1184
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1199
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1185
1200
|
switch (errorCode) {
|
|
1186
1201
|
case "InvalidParameterCombinationException":
|
|
1187
1202
|
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
@@ -1194,10 +1209,12 @@ const deserializeAws_json1_1DescribeEngineVersionsCommandError = async (output,
|
|
|
1194
1209
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
1195
1210
|
default:
|
|
1196
1211
|
const parsedBody = parsedOutput.body;
|
|
1212
|
+
const $metadata = deserializeMetadata(output);
|
|
1213
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1197
1214
|
response = new MemoryDBServiceException_1.MemoryDBServiceException({
|
|
1198
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1215
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1199
1216
|
$fault: "client",
|
|
1200
|
-
$metadata
|
|
1217
|
+
$metadata,
|
|
1201
1218
|
});
|
|
1202
1219
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1203
1220
|
}
|
|
@@ -1222,8 +1239,7 @@ const deserializeAws_json1_1DescribeEventsCommandError = async (output, context)
|
|
|
1222
1239
|
body: await parseBody(output.body, context),
|
|
1223
1240
|
};
|
|
1224
1241
|
let response;
|
|
1225
|
-
|
|
1226
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1242
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1227
1243
|
switch (errorCode) {
|
|
1228
1244
|
case "InvalidParameterCombinationException":
|
|
1229
1245
|
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
@@ -1236,10 +1252,12 @@ const deserializeAws_json1_1DescribeEventsCommandError = async (output, context)
|
|
|
1236
1252
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
1237
1253
|
default:
|
|
1238
1254
|
const parsedBody = parsedOutput.body;
|
|
1255
|
+
const $metadata = deserializeMetadata(output);
|
|
1256
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1239
1257
|
response = new MemoryDBServiceException_1.MemoryDBServiceException({
|
|
1240
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1258
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1241
1259
|
$fault: "client",
|
|
1242
|
-
$metadata
|
|
1260
|
+
$metadata,
|
|
1243
1261
|
});
|
|
1244
1262
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1245
1263
|
}
|
|
@@ -1264,8 +1282,7 @@ const deserializeAws_json1_1DescribeParameterGroupsCommandError = async (output,
|
|
|
1264
1282
|
body: await parseBody(output.body, context),
|
|
1265
1283
|
};
|
|
1266
1284
|
let response;
|
|
1267
|
-
|
|
1268
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1285
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1269
1286
|
switch (errorCode) {
|
|
1270
1287
|
case "InvalidParameterCombinationException":
|
|
1271
1288
|
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
@@ -1281,10 +1298,12 @@ const deserializeAws_json1_1DescribeParameterGroupsCommandError = async (output,
|
|
|
1281
1298
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
1282
1299
|
default:
|
|
1283
1300
|
const parsedBody = parsedOutput.body;
|
|
1301
|
+
const $metadata = deserializeMetadata(output);
|
|
1302
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1284
1303
|
response = new MemoryDBServiceException_1.MemoryDBServiceException({
|
|
1285
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1304
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1286
1305
|
$fault: "client",
|
|
1287
|
-
$metadata
|
|
1306
|
+
$metadata,
|
|
1288
1307
|
});
|
|
1289
1308
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1290
1309
|
}
|
|
@@ -1309,8 +1328,7 @@ const deserializeAws_json1_1DescribeParametersCommandError = async (output, cont
|
|
|
1309
1328
|
body: await parseBody(output.body, context),
|
|
1310
1329
|
};
|
|
1311
1330
|
let response;
|
|
1312
|
-
|
|
1313
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1331
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1314
1332
|
switch (errorCode) {
|
|
1315
1333
|
case "InvalidParameterCombinationException":
|
|
1316
1334
|
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
@@ -1326,10 +1344,12 @@ const deserializeAws_json1_1DescribeParametersCommandError = async (output, cont
|
|
|
1326
1344
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
1327
1345
|
default:
|
|
1328
1346
|
const parsedBody = parsedOutput.body;
|
|
1347
|
+
const $metadata = deserializeMetadata(output);
|
|
1348
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1329
1349
|
response = new MemoryDBServiceException_1.MemoryDBServiceException({
|
|
1330
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1350
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1331
1351
|
$fault: "client",
|
|
1332
|
-
$metadata
|
|
1352
|
+
$metadata,
|
|
1333
1353
|
});
|
|
1334
1354
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1335
1355
|
}
|
|
@@ -1354,8 +1374,7 @@ const deserializeAws_json1_1DescribeServiceUpdatesCommandError = async (output,
|
|
|
1354
1374
|
body: await parseBody(output.body, context),
|
|
1355
1375
|
};
|
|
1356
1376
|
let response;
|
|
1357
|
-
|
|
1358
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1377
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1359
1378
|
switch (errorCode) {
|
|
1360
1379
|
case "InvalidParameterCombinationException":
|
|
1361
1380
|
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
@@ -1365,10 +1384,12 @@ const deserializeAws_json1_1DescribeServiceUpdatesCommandError = async (output,
|
|
|
1365
1384
|
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1366
1385
|
default:
|
|
1367
1386
|
const parsedBody = parsedOutput.body;
|
|
1387
|
+
const $metadata = deserializeMetadata(output);
|
|
1388
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1368
1389
|
response = new MemoryDBServiceException_1.MemoryDBServiceException({
|
|
1369
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1390
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1370
1391
|
$fault: "client",
|
|
1371
|
-
$metadata
|
|
1392
|
+
$metadata,
|
|
1372
1393
|
});
|
|
1373
1394
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1374
1395
|
}
|
|
@@ -1393,8 +1414,7 @@ const deserializeAws_json1_1DescribeSnapshotsCommandError = async (output, conte
|
|
|
1393
1414
|
body: await parseBody(output.body, context),
|
|
1394
1415
|
};
|
|
1395
1416
|
let response;
|
|
1396
|
-
|
|
1397
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1417
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1398
1418
|
switch (errorCode) {
|
|
1399
1419
|
case "InvalidParameterCombinationException":
|
|
1400
1420
|
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
@@ -1410,10 +1430,12 @@ const deserializeAws_json1_1DescribeSnapshotsCommandError = async (output, conte
|
|
|
1410
1430
|
throw await deserializeAws_json1_1SnapshotNotFoundFaultResponse(parsedOutput, context);
|
|
1411
1431
|
default:
|
|
1412
1432
|
const parsedBody = parsedOutput.body;
|
|
1433
|
+
const $metadata = deserializeMetadata(output);
|
|
1434
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1413
1435
|
response = new MemoryDBServiceException_1.MemoryDBServiceException({
|
|
1414
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1436
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1415
1437
|
$fault: "client",
|
|
1416
|
-
$metadata
|
|
1438
|
+
$metadata,
|
|
1417
1439
|
});
|
|
1418
1440
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1419
1441
|
}
|
|
@@ -1438,8 +1460,7 @@ const deserializeAws_json1_1DescribeSubnetGroupsCommandError = async (output, co
|
|
|
1438
1460
|
body: await parseBody(output.body, context),
|
|
1439
1461
|
};
|
|
1440
1462
|
let response;
|
|
1441
|
-
|
|
1442
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1463
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1443
1464
|
switch (errorCode) {
|
|
1444
1465
|
case "ServiceLinkedRoleNotFoundFault":
|
|
1445
1466
|
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
@@ -1449,10 +1470,12 @@ const deserializeAws_json1_1DescribeSubnetGroupsCommandError = async (output, co
|
|
|
1449
1470
|
throw await deserializeAws_json1_1SubnetGroupNotFoundFaultResponse(parsedOutput, context);
|
|
1450
1471
|
default:
|
|
1451
1472
|
const parsedBody = parsedOutput.body;
|
|
1473
|
+
const $metadata = deserializeMetadata(output);
|
|
1474
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1452
1475
|
response = new MemoryDBServiceException_1.MemoryDBServiceException({
|
|
1453
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1476
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1454
1477
|
$fault: "client",
|
|
1455
|
-
$metadata
|
|
1478
|
+
$metadata,
|
|
1456
1479
|
});
|
|
1457
1480
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1458
1481
|
}
|
|
@@ -1477,8 +1500,7 @@ const deserializeAws_json1_1DescribeUsersCommandError = async (output, context)
|
|
|
1477
1500
|
body: await parseBody(output.body, context),
|
|
1478
1501
|
};
|
|
1479
1502
|
let response;
|
|
1480
|
-
|
|
1481
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1503
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1482
1504
|
switch (errorCode) {
|
|
1483
1505
|
case "InvalidParameterCombinationException":
|
|
1484
1506
|
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
@@ -1488,10 +1510,12 @@ const deserializeAws_json1_1DescribeUsersCommandError = async (output, context)
|
|
|
1488
1510
|
throw await deserializeAws_json1_1UserNotFoundFaultResponse(parsedOutput, context);
|
|
1489
1511
|
default:
|
|
1490
1512
|
const parsedBody = parsedOutput.body;
|
|
1513
|
+
const $metadata = deserializeMetadata(output);
|
|
1514
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1491
1515
|
response = new MemoryDBServiceException_1.MemoryDBServiceException({
|
|
1492
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1516
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1493
1517
|
$fault: "client",
|
|
1494
|
-
$metadata
|
|
1518
|
+
$metadata,
|
|
1495
1519
|
});
|
|
1496
1520
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1497
1521
|
}
|
|
@@ -1516,8 +1540,7 @@ const deserializeAws_json1_1FailoverShardCommandError = async (output, context)
|
|
|
1516
1540
|
body: await parseBody(output.body, context),
|
|
1517
1541
|
};
|
|
1518
1542
|
let response;
|
|
1519
|
-
|
|
1520
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1543
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1521
1544
|
switch (errorCode) {
|
|
1522
1545
|
case "APICallRateForCustomerExceededFault":
|
|
1523
1546
|
case "com.amazonaws.memorydb#APICallRateForCustomerExceededFault":
|
|
@@ -1545,10 +1568,12 @@ const deserializeAws_json1_1FailoverShardCommandError = async (output, context)
|
|
|
1545
1568
|
throw await deserializeAws_json1_1TestFailoverNotAvailableFaultResponse(parsedOutput, context);
|
|
1546
1569
|
default:
|
|
1547
1570
|
const parsedBody = parsedOutput.body;
|
|
1571
|
+
const $metadata = deserializeMetadata(output);
|
|
1572
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1548
1573
|
response = new MemoryDBServiceException_1.MemoryDBServiceException({
|
|
1549
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1574
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1550
1575
|
$fault: "client",
|
|
1551
|
-
$metadata
|
|
1576
|
+
$metadata,
|
|
1552
1577
|
});
|
|
1553
1578
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1554
1579
|
}
|
|
@@ -1573,8 +1598,7 @@ const deserializeAws_json1_1ListAllowedNodeTypeUpdatesCommandError = async (outp
|
|
|
1573
1598
|
body: await parseBody(output.body, context),
|
|
1574
1599
|
};
|
|
1575
1600
|
let response;
|
|
1576
|
-
|
|
1577
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1601
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1578
1602
|
switch (errorCode) {
|
|
1579
1603
|
case "ClusterNotFoundFault":
|
|
1580
1604
|
case "com.amazonaws.memorydb#ClusterNotFoundFault":
|
|
@@ -1590,10 +1614,12 @@ const deserializeAws_json1_1ListAllowedNodeTypeUpdatesCommandError = async (outp
|
|
|
1590
1614
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
1591
1615
|
default:
|
|
1592
1616
|
const parsedBody = parsedOutput.body;
|
|
1617
|
+
const $metadata = deserializeMetadata(output);
|
|
1618
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1593
1619
|
response = new MemoryDBServiceException_1.MemoryDBServiceException({
|
|
1594
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1620
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1595
1621
|
$fault: "client",
|
|
1596
|
-
$metadata
|
|
1622
|
+
$metadata,
|
|
1597
1623
|
});
|
|
1598
1624
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1599
1625
|
}
|
|
@@ -1618,8 +1644,7 @@ const deserializeAws_json1_1ListTagsCommandError = async (output, context) => {
|
|
|
1618
1644
|
body: await parseBody(output.body, context),
|
|
1619
1645
|
};
|
|
1620
1646
|
let response;
|
|
1621
|
-
|
|
1622
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1647
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1623
1648
|
switch (errorCode) {
|
|
1624
1649
|
case "ACLNotFoundFault":
|
|
1625
1650
|
case "com.amazonaws.memorydb#ACLNotFoundFault":
|
|
@@ -1650,10 +1675,12 @@ const deserializeAws_json1_1ListTagsCommandError = async (output, context) => {
|
|
|
1650
1675
|
throw await deserializeAws_json1_1UserNotFoundFaultResponse(parsedOutput, context);
|
|
1651
1676
|
default:
|
|
1652
1677
|
const parsedBody = parsedOutput.body;
|
|
1678
|
+
const $metadata = deserializeMetadata(output);
|
|
1679
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1653
1680
|
response = new MemoryDBServiceException_1.MemoryDBServiceException({
|
|
1654
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1681
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1655
1682
|
$fault: "client",
|
|
1656
|
-
$metadata
|
|
1683
|
+
$metadata,
|
|
1657
1684
|
});
|
|
1658
1685
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1659
1686
|
}
|
|
@@ -1678,8 +1705,7 @@ const deserializeAws_json1_1ResetParameterGroupCommandError = async (output, con
|
|
|
1678
1705
|
body: await parseBody(output.body, context),
|
|
1679
1706
|
};
|
|
1680
1707
|
let response;
|
|
1681
|
-
|
|
1682
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1708
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1683
1709
|
switch (errorCode) {
|
|
1684
1710
|
case "InvalidParameterCombinationException":
|
|
1685
1711
|
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
@@ -1698,10 +1724,12 @@ const deserializeAws_json1_1ResetParameterGroupCommandError = async (output, con
|
|
|
1698
1724
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
1699
1725
|
default:
|
|
1700
1726
|
const parsedBody = parsedOutput.body;
|
|
1727
|
+
const $metadata = deserializeMetadata(output);
|
|
1728
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1701
1729
|
response = new MemoryDBServiceException_1.MemoryDBServiceException({
|
|
1702
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1730
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1703
1731
|
$fault: "client",
|
|
1704
|
-
$metadata
|
|
1732
|
+
$metadata,
|
|
1705
1733
|
});
|
|
1706
1734
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1707
1735
|
}
|
|
@@ -1726,8 +1754,7 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1726
1754
|
body: await parseBody(output.body, context),
|
|
1727
1755
|
};
|
|
1728
1756
|
let response;
|
|
1729
|
-
|
|
1730
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1757
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1731
1758
|
switch (errorCode) {
|
|
1732
1759
|
case "ACLNotFoundFault":
|
|
1733
1760
|
case "com.amazonaws.memorydb#ACLNotFoundFault":
|
|
@@ -1761,10 +1788,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1761
1788
|
throw await deserializeAws_json1_1UserNotFoundFaultResponse(parsedOutput, context);
|
|
1762
1789
|
default:
|
|
1763
1790
|
const parsedBody = parsedOutput.body;
|
|
1791
|
+
const $metadata = deserializeMetadata(output);
|
|
1792
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1764
1793
|
response = new MemoryDBServiceException_1.MemoryDBServiceException({
|
|
1765
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1794
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1766
1795
|
$fault: "client",
|
|
1767
|
-
$metadata
|
|
1796
|
+
$metadata,
|
|
1768
1797
|
});
|
|
1769
1798
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1770
1799
|
}
|
|
@@ -1789,8 +1818,7 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1789
1818
|
body: await parseBody(output.body, context),
|
|
1790
1819
|
};
|
|
1791
1820
|
let response;
|
|
1792
|
-
|
|
1793
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1821
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1794
1822
|
switch (errorCode) {
|
|
1795
1823
|
case "ACLNotFoundFault":
|
|
1796
1824
|
case "com.amazonaws.memorydb#ACLNotFoundFault":
|
|
@@ -1824,10 +1852,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1824
1852
|
throw await deserializeAws_json1_1UserNotFoundFaultResponse(parsedOutput, context);
|
|
1825
1853
|
default:
|
|
1826
1854
|
const parsedBody = parsedOutput.body;
|
|
1855
|
+
const $metadata = deserializeMetadata(output);
|
|
1856
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1827
1857
|
response = new MemoryDBServiceException_1.MemoryDBServiceException({
|
|
1828
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1858
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1829
1859
|
$fault: "client",
|
|
1830
|
-
$metadata
|
|
1860
|
+
$metadata,
|
|
1831
1861
|
});
|
|
1832
1862
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1833
1863
|
}
|
|
@@ -1852,8 +1882,7 @@ const deserializeAws_json1_1UpdateACLCommandError = async (output, context) => {
|
|
|
1852
1882
|
body: await parseBody(output.body, context),
|
|
1853
1883
|
};
|
|
1854
1884
|
let response;
|
|
1855
|
-
|
|
1856
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1885
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1857
1886
|
switch (errorCode) {
|
|
1858
1887
|
case "ACLNotFoundFault":
|
|
1859
1888
|
case "com.amazonaws.memorydb#ACLNotFoundFault":
|
|
@@ -1878,10 +1907,12 @@ const deserializeAws_json1_1UpdateACLCommandError = async (output, context) => {
|
|
|
1878
1907
|
throw await deserializeAws_json1_1UserNotFoundFaultResponse(parsedOutput, context);
|
|
1879
1908
|
default:
|
|
1880
1909
|
const parsedBody = parsedOutput.body;
|
|
1910
|
+
const $metadata = deserializeMetadata(output);
|
|
1911
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1881
1912
|
response = new MemoryDBServiceException_1.MemoryDBServiceException({
|
|
1882
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1913
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1883
1914
|
$fault: "client",
|
|
1884
|
-
$metadata
|
|
1915
|
+
$metadata,
|
|
1885
1916
|
});
|
|
1886
1917
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1887
1918
|
}
|
|
@@ -1906,8 +1937,7 @@ const deserializeAws_json1_1UpdateClusterCommandError = async (output, context)
|
|
|
1906
1937
|
body: await parseBody(output.body, context),
|
|
1907
1938
|
};
|
|
1908
1939
|
let response;
|
|
1909
|
-
|
|
1910
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1940
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1911
1941
|
switch (errorCode) {
|
|
1912
1942
|
case "ACLNotFoundFault":
|
|
1913
1943
|
case "com.amazonaws.memorydb#ACLNotFoundFault":
|
|
@@ -1959,10 +1989,12 @@ const deserializeAws_json1_1UpdateClusterCommandError = async (output, context)
|
|
|
1959
1989
|
throw await deserializeAws_json1_1ShardsPerClusterQuotaExceededFaultResponse(parsedOutput, context);
|
|
1960
1990
|
default:
|
|
1961
1991
|
const parsedBody = parsedOutput.body;
|
|
1992
|
+
const $metadata = deserializeMetadata(output);
|
|
1993
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1962
1994
|
response = new MemoryDBServiceException_1.MemoryDBServiceException({
|
|
1963
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1995
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1964
1996
|
$fault: "client",
|
|
1965
|
-
$metadata
|
|
1997
|
+
$metadata,
|
|
1966
1998
|
});
|
|
1967
1999
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1968
2000
|
}
|
|
@@ -1987,8 +2019,7 @@ const deserializeAws_json1_1UpdateParameterGroupCommandError = async (output, co
|
|
|
1987
2019
|
body: await parseBody(output.body, context),
|
|
1988
2020
|
};
|
|
1989
2021
|
let response;
|
|
1990
|
-
|
|
1991
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2022
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1992
2023
|
switch (errorCode) {
|
|
1993
2024
|
case "InvalidParameterCombinationException":
|
|
1994
2025
|
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
@@ -2007,10 +2038,12 @@ const deserializeAws_json1_1UpdateParameterGroupCommandError = async (output, co
|
|
|
2007
2038
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
2008
2039
|
default:
|
|
2009
2040
|
const parsedBody = parsedOutput.body;
|
|
2041
|
+
const $metadata = deserializeMetadata(output);
|
|
2042
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2010
2043
|
response = new MemoryDBServiceException_1.MemoryDBServiceException({
|
|
2011
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2044
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2012
2045
|
$fault: "client",
|
|
2013
|
-
$metadata
|
|
2046
|
+
$metadata,
|
|
2014
2047
|
});
|
|
2015
2048
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2016
2049
|
}
|
|
@@ -2035,8 +2068,7 @@ const deserializeAws_json1_1UpdateSubnetGroupCommandError = async (output, conte
|
|
|
2035
2068
|
body: await parseBody(output.body, context),
|
|
2036
2069
|
};
|
|
2037
2070
|
let response;
|
|
2038
|
-
|
|
2039
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2071
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2040
2072
|
switch (errorCode) {
|
|
2041
2073
|
case "InvalidSubnet":
|
|
2042
2074
|
case "com.amazonaws.memorydb#InvalidSubnet":
|
|
@@ -2058,10 +2090,12 @@ const deserializeAws_json1_1UpdateSubnetGroupCommandError = async (output, conte
|
|
|
2058
2090
|
throw await deserializeAws_json1_1SubnetQuotaExceededFaultResponse(parsedOutput, context);
|
|
2059
2091
|
default:
|
|
2060
2092
|
const parsedBody = parsedOutput.body;
|
|
2093
|
+
const $metadata = deserializeMetadata(output);
|
|
2094
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2061
2095
|
response = new MemoryDBServiceException_1.MemoryDBServiceException({
|
|
2062
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2096
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2063
2097
|
$fault: "client",
|
|
2064
|
-
$metadata
|
|
2098
|
+
$metadata,
|
|
2065
2099
|
});
|
|
2066
2100
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2067
2101
|
}
|
|
@@ -2086,8 +2120,7 @@ const deserializeAws_json1_1UpdateUserCommandError = async (output, context) =>
|
|
|
2086
2120
|
body: await parseBody(output.body, context),
|
|
2087
2121
|
};
|
|
2088
2122
|
let response;
|
|
2089
|
-
|
|
2090
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2123
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2091
2124
|
switch (errorCode) {
|
|
2092
2125
|
case "InvalidParameterCombinationException":
|
|
2093
2126
|
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
@@ -2103,10 +2136,12 @@ const deserializeAws_json1_1UpdateUserCommandError = async (output, context) =>
|
|
|
2103
2136
|
throw await deserializeAws_json1_1UserNotFoundFaultResponse(parsedOutput, context);
|
|
2104
2137
|
default:
|
|
2105
2138
|
const parsedBody = parsedOutput.body;
|
|
2139
|
+
const $metadata = deserializeMetadata(output);
|
|
2140
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2106
2141
|
response = new MemoryDBServiceException_1.MemoryDBServiceException({
|
|
2107
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2142
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2108
2143
|
$fault: "client",
|
|
2109
|
-
$metadata
|
|
2144
|
+
$metadata,
|
|
2110
2145
|
});
|
|
2111
2146
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2112
2147
|
}
|
|
@@ -2554,19 +2589,16 @@ const deserializeAws_json1_1UserQuotaExceededFaultResponse = async (parsedOutput
|
|
|
2554
2589
|
};
|
|
2555
2590
|
const serializeAws_json1_1AuthenticationMode = (input, context) => {
|
|
2556
2591
|
return {
|
|
2557
|
-
...(input.Passwords
|
|
2558
|
-
|
|
2559
|
-
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
2592
|
+
...(input.Passwords != null && { Passwords: serializeAws_json1_1PasswordListInput(input.Passwords, context) }),
|
|
2593
|
+
...(input.Type != null && { Type: input.Type }),
|
|
2560
2594
|
};
|
|
2561
2595
|
};
|
|
2562
2596
|
const serializeAws_json1_1BatchUpdateClusterRequest = (input, context) => {
|
|
2563
2597
|
return {
|
|
2564
|
-
...(input.ClusterNames
|
|
2565
|
-
input.ClusterNames !== null && {
|
|
2598
|
+
...(input.ClusterNames != null && {
|
|
2566
2599
|
ClusterNames: serializeAws_json1_1ClusterNameList(input.ClusterNames, context),
|
|
2567
2600
|
}),
|
|
2568
|
-
...(input.ServiceUpdate
|
|
2569
|
-
input.ServiceUpdate !== null && {
|
|
2601
|
+
...(input.ServiceUpdate != null && {
|
|
2570
2602
|
ServiceUpdate: serializeAws_json1_1ServiceUpdateRequest(input.ServiceUpdate, context),
|
|
2571
2603
|
}),
|
|
2572
2604
|
};
|
|
@@ -2583,240 +2615,209 @@ const serializeAws_json1_1ClusterNameList = (input, context) => {
|
|
|
2583
2615
|
};
|
|
2584
2616
|
const serializeAws_json1_1CopySnapshotRequest = (input, context) => {
|
|
2585
2617
|
return {
|
|
2586
|
-
...(input.KmsKeyId
|
|
2587
|
-
...(input.SourceSnapshotName
|
|
2588
|
-
|
|
2589
|
-
...(input.
|
|
2590
|
-
...(input.
|
|
2591
|
-
...(input.TargetSnapshotName !== undefined &&
|
|
2592
|
-
input.TargetSnapshotName !== null && { TargetSnapshotName: input.TargetSnapshotName }),
|
|
2618
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
2619
|
+
...(input.SourceSnapshotName != null && { SourceSnapshotName: input.SourceSnapshotName }),
|
|
2620
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
2621
|
+
...(input.TargetBucket != null && { TargetBucket: input.TargetBucket }),
|
|
2622
|
+
...(input.TargetSnapshotName != null && { TargetSnapshotName: input.TargetSnapshotName }),
|
|
2593
2623
|
};
|
|
2594
2624
|
};
|
|
2595
2625
|
const serializeAws_json1_1CreateACLRequest = (input, context) => {
|
|
2596
2626
|
return {
|
|
2597
|
-
...(input.ACLName
|
|
2598
|
-
...(input.Tags
|
|
2599
|
-
...(input.UserNames
|
|
2600
|
-
input.UserNames !== null && { UserNames: serializeAws_json1_1UserNameListInput(input.UserNames, context) }),
|
|
2627
|
+
...(input.ACLName != null && { ACLName: input.ACLName }),
|
|
2628
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
2629
|
+
...(input.UserNames != null && { UserNames: serializeAws_json1_1UserNameListInput(input.UserNames, context) }),
|
|
2601
2630
|
};
|
|
2602
2631
|
};
|
|
2603
2632
|
const serializeAws_json1_1CreateClusterRequest = (input, context) => {
|
|
2604
2633
|
return {
|
|
2605
|
-
...(input.ACLName
|
|
2606
|
-
...(input.AutoMinorVersionUpgrade
|
|
2607
|
-
|
|
2608
|
-
...(input.
|
|
2609
|
-
...(input.
|
|
2610
|
-
...(input.
|
|
2611
|
-
...(input.
|
|
2612
|
-
...(input.
|
|
2613
|
-
|
|
2614
|
-
...(input.
|
|
2615
|
-
...(input.
|
|
2616
|
-
|
|
2617
|
-
...(input.
|
|
2618
|
-
...(input.ParameterGroupName !== undefined &&
|
|
2619
|
-
input.ParameterGroupName !== null && { ParameterGroupName: input.ParameterGroupName }),
|
|
2620
|
-
...(input.Port !== undefined && input.Port !== null && { Port: input.Port }),
|
|
2621
|
-
...(input.SecurityGroupIds !== undefined &&
|
|
2622
|
-
input.SecurityGroupIds !== null && {
|
|
2634
|
+
...(input.ACLName != null && { ACLName: input.ACLName }),
|
|
2635
|
+
...(input.AutoMinorVersionUpgrade != null && { AutoMinorVersionUpgrade: input.AutoMinorVersionUpgrade }),
|
|
2636
|
+
...(input.ClusterName != null && { ClusterName: input.ClusterName }),
|
|
2637
|
+
...(input.Description != null && { Description: input.Description }),
|
|
2638
|
+
...(input.EngineVersion != null && { EngineVersion: input.EngineVersion }),
|
|
2639
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
2640
|
+
...(input.MaintenanceWindow != null && { MaintenanceWindow: input.MaintenanceWindow }),
|
|
2641
|
+
...(input.NodeType != null && { NodeType: input.NodeType }),
|
|
2642
|
+
...(input.NumReplicasPerShard != null && { NumReplicasPerShard: input.NumReplicasPerShard }),
|
|
2643
|
+
...(input.NumShards != null && { NumShards: input.NumShards }),
|
|
2644
|
+
...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
|
|
2645
|
+
...(input.Port != null && { Port: input.Port }),
|
|
2646
|
+
...(input.SecurityGroupIds != null && {
|
|
2623
2647
|
SecurityGroupIds: serializeAws_json1_1SecurityGroupIdsList(input.SecurityGroupIds, context),
|
|
2624
2648
|
}),
|
|
2625
|
-
...(input.SnapshotArns
|
|
2626
|
-
input.SnapshotArns !== null && {
|
|
2649
|
+
...(input.SnapshotArns != null && {
|
|
2627
2650
|
SnapshotArns: serializeAws_json1_1SnapshotArnsList(input.SnapshotArns, context),
|
|
2628
2651
|
}),
|
|
2629
|
-
...(input.SnapshotName
|
|
2630
|
-
...(input.SnapshotRetentionLimit
|
|
2631
|
-
|
|
2632
|
-
...(input.
|
|
2633
|
-
|
|
2634
|
-
...(input.
|
|
2635
|
-
...(input.
|
|
2636
|
-
input.SubnetGroupName !== null && { SubnetGroupName: input.SubnetGroupName }),
|
|
2637
|
-
...(input.TLSEnabled !== undefined && input.TLSEnabled !== null && { TLSEnabled: input.TLSEnabled }),
|
|
2638
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
2652
|
+
...(input.SnapshotName != null && { SnapshotName: input.SnapshotName }),
|
|
2653
|
+
...(input.SnapshotRetentionLimit != null && { SnapshotRetentionLimit: input.SnapshotRetentionLimit }),
|
|
2654
|
+
...(input.SnapshotWindow != null && { SnapshotWindow: input.SnapshotWindow }),
|
|
2655
|
+
...(input.SnsTopicArn != null && { SnsTopicArn: input.SnsTopicArn }),
|
|
2656
|
+
...(input.SubnetGroupName != null && { SubnetGroupName: input.SubnetGroupName }),
|
|
2657
|
+
...(input.TLSEnabled != null && { TLSEnabled: input.TLSEnabled }),
|
|
2658
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
2639
2659
|
};
|
|
2640
2660
|
};
|
|
2641
2661
|
const serializeAws_json1_1CreateParameterGroupRequest = (input, context) => {
|
|
2642
2662
|
return {
|
|
2643
|
-
...(input.Description
|
|
2644
|
-
...(input.Family
|
|
2645
|
-
...(input.ParameterGroupName
|
|
2646
|
-
|
|
2647
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
2663
|
+
...(input.Description != null && { Description: input.Description }),
|
|
2664
|
+
...(input.Family != null && { Family: input.Family }),
|
|
2665
|
+
...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
|
|
2666
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
2648
2667
|
};
|
|
2649
2668
|
};
|
|
2650
2669
|
const serializeAws_json1_1CreateSnapshotRequest = (input, context) => {
|
|
2651
2670
|
return {
|
|
2652
|
-
...(input.ClusterName
|
|
2653
|
-
...(input.KmsKeyId
|
|
2654
|
-
...(input.SnapshotName
|
|
2655
|
-
...(input.Tags
|
|
2671
|
+
...(input.ClusterName != null && { ClusterName: input.ClusterName }),
|
|
2672
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
2673
|
+
...(input.SnapshotName != null && { SnapshotName: input.SnapshotName }),
|
|
2674
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
2656
2675
|
};
|
|
2657
2676
|
};
|
|
2658
2677
|
const serializeAws_json1_1CreateSubnetGroupRequest = (input, context) => {
|
|
2659
2678
|
return {
|
|
2660
|
-
...(input.Description
|
|
2661
|
-
...(input.SubnetGroupName
|
|
2662
|
-
|
|
2663
|
-
...(input.
|
|
2664
|
-
input.SubnetIds !== null && { SubnetIds: serializeAws_json1_1SubnetIdentifierList(input.SubnetIds, context) }),
|
|
2665
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
2679
|
+
...(input.Description != null && { Description: input.Description }),
|
|
2680
|
+
...(input.SubnetGroupName != null && { SubnetGroupName: input.SubnetGroupName }),
|
|
2681
|
+
...(input.SubnetIds != null && { SubnetIds: serializeAws_json1_1SubnetIdentifierList(input.SubnetIds, context) }),
|
|
2682
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
2666
2683
|
};
|
|
2667
2684
|
};
|
|
2668
2685
|
const serializeAws_json1_1CreateUserRequest = (input, context) => {
|
|
2669
2686
|
return {
|
|
2670
|
-
...(input.AccessString
|
|
2671
|
-
...(input.AuthenticationMode
|
|
2672
|
-
input.AuthenticationMode !== null && {
|
|
2687
|
+
...(input.AccessString != null && { AccessString: input.AccessString }),
|
|
2688
|
+
...(input.AuthenticationMode != null && {
|
|
2673
2689
|
AuthenticationMode: serializeAws_json1_1AuthenticationMode(input.AuthenticationMode, context),
|
|
2674
2690
|
}),
|
|
2675
|
-
...(input.Tags
|
|
2676
|
-
...(input.UserName
|
|
2691
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
2692
|
+
...(input.UserName != null && { UserName: input.UserName }),
|
|
2677
2693
|
};
|
|
2678
2694
|
};
|
|
2679
2695
|
const serializeAws_json1_1DeleteACLRequest = (input, context) => {
|
|
2680
2696
|
return {
|
|
2681
|
-
...(input.ACLName
|
|
2697
|
+
...(input.ACLName != null && { ACLName: input.ACLName }),
|
|
2682
2698
|
};
|
|
2683
2699
|
};
|
|
2684
2700
|
const serializeAws_json1_1DeleteClusterRequest = (input, context) => {
|
|
2685
2701
|
return {
|
|
2686
|
-
...(input.ClusterName
|
|
2687
|
-
...(input.FinalSnapshotName
|
|
2688
|
-
input.FinalSnapshotName !== null && { FinalSnapshotName: input.FinalSnapshotName }),
|
|
2702
|
+
...(input.ClusterName != null && { ClusterName: input.ClusterName }),
|
|
2703
|
+
...(input.FinalSnapshotName != null && { FinalSnapshotName: input.FinalSnapshotName }),
|
|
2689
2704
|
};
|
|
2690
2705
|
};
|
|
2691
2706
|
const serializeAws_json1_1DeleteParameterGroupRequest = (input, context) => {
|
|
2692
2707
|
return {
|
|
2693
|
-
...(input.ParameterGroupName
|
|
2694
|
-
input.ParameterGroupName !== null && { ParameterGroupName: input.ParameterGroupName }),
|
|
2708
|
+
...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
|
|
2695
2709
|
};
|
|
2696
2710
|
};
|
|
2697
2711
|
const serializeAws_json1_1DeleteSnapshotRequest = (input, context) => {
|
|
2698
2712
|
return {
|
|
2699
|
-
...(input.SnapshotName
|
|
2713
|
+
...(input.SnapshotName != null && { SnapshotName: input.SnapshotName }),
|
|
2700
2714
|
};
|
|
2701
2715
|
};
|
|
2702
2716
|
const serializeAws_json1_1DeleteSubnetGroupRequest = (input, context) => {
|
|
2703
2717
|
return {
|
|
2704
|
-
...(input.SubnetGroupName
|
|
2705
|
-
input.SubnetGroupName !== null && { SubnetGroupName: input.SubnetGroupName }),
|
|
2718
|
+
...(input.SubnetGroupName != null && { SubnetGroupName: input.SubnetGroupName }),
|
|
2706
2719
|
};
|
|
2707
2720
|
};
|
|
2708
2721
|
const serializeAws_json1_1DeleteUserRequest = (input, context) => {
|
|
2709
2722
|
return {
|
|
2710
|
-
...(input.UserName
|
|
2723
|
+
...(input.UserName != null && { UserName: input.UserName }),
|
|
2711
2724
|
};
|
|
2712
2725
|
};
|
|
2713
2726
|
const serializeAws_json1_1DescribeACLsRequest = (input, context) => {
|
|
2714
2727
|
return {
|
|
2715
|
-
...(input.ACLName
|
|
2716
|
-
...(input.MaxResults
|
|
2717
|
-
...(input.NextToken
|
|
2728
|
+
...(input.ACLName != null && { ACLName: input.ACLName }),
|
|
2729
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2730
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2718
2731
|
};
|
|
2719
2732
|
};
|
|
2720
2733
|
const serializeAws_json1_1DescribeClustersRequest = (input, context) => {
|
|
2721
2734
|
return {
|
|
2722
|
-
...(input.ClusterName
|
|
2723
|
-
...(input.MaxResults
|
|
2724
|
-
...(input.NextToken
|
|
2725
|
-
...(input.ShowShardDetails
|
|
2726
|
-
input.ShowShardDetails !== null && { ShowShardDetails: input.ShowShardDetails }),
|
|
2735
|
+
...(input.ClusterName != null && { ClusterName: input.ClusterName }),
|
|
2736
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2737
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2738
|
+
...(input.ShowShardDetails != null && { ShowShardDetails: input.ShowShardDetails }),
|
|
2727
2739
|
};
|
|
2728
2740
|
};
|
|
2729
2741
|
const serializeAws_json1_1DescribeEngineVersionsRequest = (input, context) => {
|
|
2730
2742
|
return {
|
|
2731
|
-
...(input.DefaultOnly
|
|
2732
|
-
...(input.EngineVersion
|
|
2733
|
-
...(input.MaxResults
|
|
2734
|
-
...(input.NextToken
|
|
2735
|
-
...(input.ParameterGroupFamily
|
|
2736
|
-
input.ParameterGroupFamily !== null && { ParameterGroupFamily: input.ParameterGroupFamily }),
|
|
2743
|
+
...(input.DefaultOnly != null && { DefaultOnly: input.DefaultOnly }),
|
|
2744
|
+
...(input.EngineVersion != null && { EngineVersion: input.EngineVersion }),
|
|
2745
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2746
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2747
|
+
...(input.ParameterGroupFamily != null && { ParameterGroupFamily: input.ParameterGroupFamily }),
|
|
2737
2748
|
};
|
|
2738
2749
|
};
|
|
2739
2750
|
const serializeAws_json1_1DescribeEventsRequest = (input, context) => {
|
|
2740
2751
|
return {
|
|
2741
|
-
...(input.Duration
|
|
2742
|
-
...(input.EndTime
|
|
2743
|
-
|
|
2744
|
-
...(input.
|
|
2745
|
-
...(input.
|
|
2746
|
-
...(input.
|
|
2747
|
-
...(input.
|
|
2748
|
-
...(input.StartTime !== undefined &&
|
|
2749
|
-
input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
2752
|
+
...(input.Duration != null && { Duration: input.Duration }),
|
|
2753
|
+
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
2754
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2755
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2756
|
+
...(input.SourceName != null && { SourceName: input.SourceName }),
|
|
2757
|
+
...(input.SourceType != null && { SourceType: input.SourceType }),
|
|
2758
|
+
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
2750
2759
|
};
|
|
2751
2760
|
};
|
|
2752
2761
|
const serializeAws_json1_1DescribeParameterGroupsRequest = (input, context) => {
|
|
2753
2762
|
return {
|
|
2754
|
-
...(input.MaxResults
|
|
2755
|
-
...(input.NextToken
|
|
2756
|
-
...(input.ParameterGroupName
|
|
2757
|
-
input.ParameterGroupName !== null && { ParameterGroupName: input.ParameterGroupName }),
|
|
2763
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2764
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2765
|
+
...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
|
|
2758
2766
|
};
|
|
2759
2767
|
};
|
|
2760
2768
|
const serializeAws_json1_1DescribeParametersRequest = (input, context) => {
|
|
2761
2769
|
return {
|
|
2762
|
-
...(input.MaxResults
|
|
2763
|
-
...(input.NextToken
|
|
2764
|
-
...(input.ParameterGroupName
|
|
2765
|
-
input.ParameterGroupName !== null && { ParameterGroupName: input.ParameterGroupName }),
|
|
2770
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2771
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2772
|
+
...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
|
|
2766
2773
|
};
|
|
2767
2774
|
};
|
|
2768
2775
|
const serializeAws_json1_1DescribeServiceUpdatesRequest = (input, context) => {
|
|
2769
2776
|
return {
|
|
2770
|
-
...(input.ClusterNames
|
|
2771
|
-
input.ClusterNames !== null && {
|
|
2777
|
+
...(input.ClusterNames != null && {
|
|
2772
2778
|
ClusterNames: serializeAws_json1_1ClusterNameList(input.ClusterNames, context),
|
|
2773
2779
|
}),
|
|
2774
|
-
...(input.MaxResults
|
|
2775
|
-
...(input.NextToken
|
|
2776
|
-
...(input.ServiceUpdateName
|
|
2777
|
-
|
|
2778
|
-
...(input.Status !== undefined &&
|
|
2779
|
-
input.Status !== null && { Status: serializeAws_json1_1ServiceUpdateStatusList(input.Status, context) }),
|
|
2780
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2781
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2782
|
+
...(input.ServiceUpdateName != null && { ServiceUpdateName: input.ServiceUpdateName }),
|
|
2783
|
+
...(input.Status != null && { Status: serializeAws_json1_1ServiceUpdateStatusList(input.Status, context) }),
|
|
2780
2784
|
};
|
|
2781
2785
|
};
|
|
2782
2786
|
const serializeAws_json1_1DescribeSnapshotsRequest = (input, context) => {
|
|
2783
2787
|
return {
|
|
2784
|
-
...(input.ClusterName
|
|
2785
|
-
...(input.MaxResults
|
|
2786
|
-
...(input.NextToken
|
|
2787
|
-
...(input.ShowDetail
|
|
2788
|
-
...(input.SnapshotName
|
|
2789
|
-
...(input.Source
|
|
2788
|
+
...(input.ClusterName != null && { ClusterName: input.ClusterName }),
|
|
2789
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2790
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2791
|
+
...(input.ShowDetail != null && { ShowDetail: input.ShowDetail }),
|
|
2792
|
+
...(input.SnapshotName != null && { SnapshotName: input.SnapshotName }),
|
|
2793
|
+
...(input.Source != null && { Source: input.Source }),
|
|
2790
2794
|
};
|
|
2791
2795
|
};
|
|
2792
2796
|
const serializeAws_json1_1DescribeSubnetGroupsRequest = (input, context) => {
|
|
2793
2797
|
return {
|
|
2794
|
-
...(input.MaxResults
|
|
2795
|
-
...(input.NextToken
|
|
2796
|
-
...(input.SubnetGroupName
|
|
2797
|
-
input.SubnetGroupName !== null && { SubnetGroupName: input.SubnetGroupName }),
|
|
2798
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2799
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2800
|
+
...(input.SubnetGroupName != null && { SubnetGroupName: input.SubnetGroupName }),
|
|
2798
2801
|
};
|
|
2799
2802
|
};
|
|
2800
2803
|
const serializeAws_json1_1DescribeUsersRequest = (input, context) => {
|
|
2801
2804
|
return {
|
|
2802
|
-
...(input.Filters
|
|
2803
|
-
|
|
2804
|
-
...(input.
|
|
2805
|
-
...(input.
|
|
2806
|
-
...(input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }),
|
|
2805
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1FilterList(input.Filters, context) }),
|
|
2806
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2807
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2808
|
+
...(input.UserName != null && { UserName: input.UserName }),
|
|
2807
2809
|
};
|
|
2808
2810
|
};
|
|
2809
2811
|
const serializeAws_json1_1FailoverShardRequest = (input, context) => {
|
|
2810
2812
|
return {
|
|
2811
|
-
...(input.ClusterName
|
|
2812
|
-
...(input.ShardName
|
|
2813
|
+
...(input.ClusterName != null && { ClusterName: input.ClusterName }),
|
|
2814
|
+
...(input.ShardName != null && { ShardName: input.ShardName }),
|
|
2813
2815
|
};
|
|
2814
2816
|
};
|
|
2815
2817
|
const serializeAws_json1_1Filter = (input, context) => {
|
|
2816
2818
|
return {
|
|
2817
|
-
...(input.Name
|
|
2818
|
-
...(input.Values
|
|
2819
|
-
input.Values !== null && { Values: serializeAws_json1_1FilterValueList(input.Values, context) }),
|
|
2819
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2820
|
+
...(input.Values != null && { Values: serializeAws_json1_1FilterValueList(input.Values, context) }),
|
|
2820
2821
|
};
|
|
2821
2822
|
};
|
|
2822
2823
|
const serializeAws_json1_1FilterList = (input, context) => {
|
|
@@ -2851,12 +2852,12 @@ const serializeAws_json1_1KeyList = (input, context) => {
|
|
|
2851
2852
|
};
|
|
2852
2853
|
const serializeAws_json1_1ListAllowedNodeTypeUpdatesRequest = (input, context) => {
|
|
2853
2854
|
return {
|
|
2854
|
-
...(input.ClusterName
|
|
2855
|
+
...(input.ClusterName != null && { ClusterName: input.ClusterName }),
|
|
2855
2856
|
};
|
|
2856
2857
|
};
|
|
2857
2858
|
const serializeAws_json1_1ListTagsRequest = (input, context) => {
|
|
2858
2859
|
return {
|
|
2859
|
-
...(input.ResourceArn
|
|
2860
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2860
2861
|
};
|
|
2861
2862
|
};
|
|
2862
2863
|
const serializeAws_json1_1ParameterNameList = (input, context) => {
|
|
@@ -2871,9 +2872,8 @@ const serializeAws_json1_1ParameterNameList = (input, context) => {
|
|
|
2871
2872
|
};
|
|
2872
2873
|
const serializeAws_json1_1ParameterNameValue = (input, context) => {
|
|
2873
2874
|
return {
|
|
2874
|
-
...(input.ParameterName
|
|
2875
|
-
...(input.ParameterValue
|
|
2876
|
-
input.ParameterValue !== null && { ParameterValue: input.ParameterValue }),
|
|
2875
|
+
...(input.ParameterName != null && { ParameterName: input.ParameterName }),
|
|
2876
|
+
...(input.ParameterValue != null && { ParameterValue: input.ParameterValue }),
|
|
2877
2877
|
};
|
|
2878
2878
|
};
|
|
2879
2879
|
const serializeAws_json1_1ParameterNameValueList = (input, context) => {
|
|
@@ -2898,16 +2898,14 @@ const serializeAws_json1_1PasswordListInput = (input, context) => {
|
|
|
2898
2898
|
};
|
|
2899
2899
|
const serializeAws_json1_1ReplicaConfigurationRequest = (input, context) => {
|
|
2900
2900
|
return {
|
|
2901
|
-
...(input.ReplicaCount
|
|
2901
|
+
...(input.ReplicaCount != null && { ReplicaCount: input.ReplicaCount }),
|
|
2902
2902
|
};
|
|
2903
2903
|
};
|
|
2904
2904
|
const serializeAws_json1_1ResetParameterGroupRequest = (input, context) => {
|
|
2905
2905
|
return {
|
|
2906
|
-
...(input.AllParameters
|
|
2907
|
-
...(input.ParameterGroupName
|
|
2908
|
-
|
|
2909
|
-
...(input.ParameterNames !== undefined &&
|
|
2910
|
-
input.ParameterNames !== null && {
|
|
2906
|
+
...(input.AllParameters != null && { AllParameters: input.AllParameters }),
|
|
2907
|
+
...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
|
|
2908
|
+
...(input.ParameterNames != null && {
|
|
2911
2909
|
ParameterNames: serializeAws_json1_1ParameterNameList(input.ParameterNames, context),
|
|
2912
2910
|
}),
|
|
2913
2911
|
};
|
|
@@ -2924,8 +2922,7 @@ const serializeAws_json1_1SecurityGroupIdsList = (input, context) => {
|
|
|
2924
2922
|
};
|
|
2925
2923
|
const serializeAws_json1_1ServiceUpdateRequest = (input, context) => {
|
|
2926
2924
|
return {
|
|
2927
|
-
...(input.ServiceUpdateNameToApply
|
|
2928
|
-
input.ServiceUpdateNameToApply !== null && { ServiceUpdateNameToApply: input.ServiceUpdateNameToApply }),
|
|
2925
|
+
...(input.ServiceUpdateNameToApply != null && { ServiceUpdateNameToApply: input.ServiceUpdateNameToApply }),
|
|
2929
2926
|
};
|
|
2930
2927
|
};
|
|
2931
2928
|
const serializeAws_json1_1ServiceUpdateStatusList = (input, context) => {
|
|
@@ -2940,7 +2937,7 @@ const serializeAws_json1_1ServiceUpdateStatusList = (input, context) => {
|
|
|
2940
2937
|
};
|
|
2941
2938
|
const serializeAws_json1_1ShardConfigurationRequest = (input, context) => {
|
|
2942
2939
|
return {
|
|
2943
|
-
...(input.ShardCount
|
|
2940
|
+
...(input.ShardCount != null && { ShardCount: input.ShardCount }),
|
|
2944
2941
|
};
|
|
2945
2942
|
};
|
|
2946
2943
|
const serializeAws_json1_1SnapshotArnsList = (input, context) => {
|
|
@@ -2965,8 +2962,8 @@ const serializeAws_json1_1SubnetIdentifierList = (input, context) => {
|
|
|
2965
2962
|
};
|
|
2966
2963
|
const serializeAws_json1_1Tag = (input, context) => {
|
|
2967
2964
|
return {
|
|
2968
|
-
...(input.Key
|
|
2969
|
-
...(input.Value
|
|
2965
|
+
...(input.Key != null && { Key: input.Key }),
|
|
2966
|
+
...(input.Value != null && { Value: input.Value }),
|
|
2970
2967
|
};
|
|
2971
2968
|
};
|
|
2972
2969
|
const serializeAws_json1_1TagList = (input, context) => {
|
|
@@ -2981,89 +2978,73 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
2981
2978
|
};
|
|
2982
2979
|
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
2983
2980
|
return {
|
|
2984
|
-
...(input.ResourceArn
|
|
2985
|
-
...(input.Tags
|
|
2981
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2982
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
2986
2983
|
};
|
|
2987
2984
|
};
|
|
2988
2985
|
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
2989
2986
|
return {
|
|
2990
|
-
...(input.ResourceArn
|
|
2991
|
-
...(input.TagKeys
|
|
2992
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_1KeyList(input.TagKeys, context) }),
|
|
2987
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2988
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_json1_1KeyList(input.TagKeys, context) }),
|
|
2993
2989
|
};
|
|
2994
2990
|
};
|
|
2995
2991
|
const serializeAws_json1_1UpdateACLRequest = (input, context) => {
|
|
2996
2992
|
return {
|
|
2997
|
-
...(input.ACLName
|
|
2998
|
-
...(input.UserNamesToAdd
|
|
2999
|
-
input.UserNamesToAdd !== null && {
|
|
2993
|
+
...(input.ACLName != null && { ACLName: input.ACLName }),
|
|
2994
|
+
...(input.UserNamesToAdd != null && {
|
|
3000
2995
|
UserNamesToAdd: serializeAws_json1_1UserNameListInput(input.UserNamesToAdd, context),
|
|
3001
2996
|
}),
|
|
3002
|
-
...(input.UserNamesToRemove
|
|
3003
|
-
input.UserNamesToRemove !== null && {
|
|
2997
|
+
...(input.UserNamesToRemove != null && {
|
|
3004
2998
|
UserNamesToRemove: serializeAws_json1_1UserNameListInput(input.UserNamesToRemove, context),
|
|
3005
2999
|
}),
|
|
3006
3000
|
};
|
|
3007
3001
|
};
|
|
3008
3002
|
const serializeAws_json1_1UpdateClusterRequest = (input, context) => {
|
|
3009
3003
|
return {
|
|
3010
|
-
...(input.ACLName
|
|
3011
|
-
...(input.ClusterName
|
|
3012
|
-
...(input.Description
|
|
3013
|
-
...(input.EngineVersion
|
|
3014
|
-
...(input.MaintenanceWindow
|
|
3015
|
-
|
|
3016
|
-
...(input.
|
|
3017
|
-
...(input.
|
|
3018
|
-
input.ParameterGroupName !== null && { ParameterGroupName: input.ParameterGroupName }),
|
|
3019
|
-
...(input.ReplicaConfiguration !== undefined &&
|
|
3020
|
-
input.ReplicaConfiguration !== null && {
|
|
3004
|
+
...(input.ACLName != null && { ACLName: input.ACLName }),
|
|
3005
|
+
...(input.ClusterName != null && { ClusterName: input.ClusterName }),
|
|
3006
|
+
...(input.Description != null && { Description: input.Description }),
|
|
3007
|
+
...(input.EngineVersion != null && { EngineVersion: input.EngineVersion }),
|
|
3008
|
+
...(input.MaintenanceWindow != null && { MaintenanceWindow: input.MaintenanceWindow }),
|
|
3009
|
+
...(input.NodeType != null && { NodeType: input.NodeType }),
|
|
3010
|
+
...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
|
|
3011
|
+
...(input.ReplicaConfiguration != null && {
|
|
3021
3012
|
ReplicaConfiguration: serializeAws_json1_1ReplicaConfigurationRequest(input.ReplicaConfiguration, context),
|
|
3022
3013
|
}),
|
|
3023
|
-
...(input.SecurityGroupIds
|
|
3024
|
-
input.SecurityGroupIds !== null && {
|
|
3014
|
+
...(input.SecurityGroupIds != null && {
|
|
3025
3015
|
SecurityGroupIds: serializeAws_json1_1SecurityGroupIdsList(input.SecurityGroupIds, context),
|
|
3026
3016
|
}),
|
|
3027
|
-
...(input.ShardConfiguration
|
|
3028
|
-
input.ShardConfiguration !== null && {
|
|
3017
|
+
...(input.ShardConfiguration != null && {
|
|
3029
3018
|
ShardConfiguration: serializeAws_json1_1ShardConfigurationRequest(input.ShardConfiguration, context),
|
|
3030
3019
|
}),
|
|
3031
|
-
...(input.SnapshotRetentionLimit
|
|
3032
|
-
|
|
3033
|
-
...(input.
|
|
3034
|
-
|
|
3035
|
-
...(input.SnsTopicArn !== undefined && input.SnsTopicArn !== null && { SnsTopicArn: input.SnsTopicArn }),
|
|
3036
|
-
...(input.SnsTopicStatus !== undefined &&
|
|
3037
|
-
input.SnsTopicStatus !== null && { SnsTopicStatus: input.SnsTopicStatus }),
|
|
3020
|
+
...(input.SnapshotRetentionLimit != null && { SnapshotRetentionLimit: input.SnapshotRetentionLimit }),
|
|
3021
|
+
...(input.SnapshotWindow != null && { SnapshotWindow: input.SnapshotWindow }),
|
|
3022
|
+
...(input.SnsTopicArn != null && { SnsTopicArn: input.SnsTopicArn }),
|
|
3023
|
+
...(input.SnsTopicStatus != null && { SnsTopicStatus: input.SnsTopicStatus }),
|
|
3038
3024
|
};
|
|
3039
3025
|
};
|
|
3040
3026
|
const serializeAws_json1_1UpdateParameterGroupRequest = (input, context) => {
|
|
3041
3027
|
return {
|
|
3042
|
-
...(input.ParameterGroupName
|
|
3043
|
-
|
|
3044
|
-
...(input.ParameterNameValues !== undefined &&
|
|
3045
|
-
input.ParameterNameValues !== null && {
|
|
3028
|
+
...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
|
|
3029
|
+
...(input.ParameterNameValues != null && {
|
|
3046
3030
|
ParameterNameValues: serializeAws_json1_1ParameterNameValueList(input.ParameterNameValues, context),
|
|
3047
3031
|
}),
|
|
3048
3032
|
};
|
|
3049
3033
|
};
|
|
3050
3034
|
const serializeAws_json1_1UpdateSubnetGroupRequest = (input, context) => {
|
|
3051
3035
|
return {
|
|
3052
|
-
...(input.Description
|
|
3053
|
-
...(input.SubnetGroupName
|
|
3054
|
-
|
|
3055
|
-
...(input.SubnetIds !== undefined &&
|
|
3056
|
-
input.SubnetIds !== null && { SubnetIds: serializeAws_json1_1SubnetIdentifierList(input.SubnetIds, context) }),
|
|
3036
|
+
...(input.Description != null && { Description: input.Description }),
|
|
3037
|
+
...(input.SubnetGroupName != null && { SubnetGroupName: input.SubnetGroupName }),
|
|
3038
|
+
...(input.SubnetIds != null && { SubnetIds: serializeAws_json1_1SubnetIdentifierList(input.SubnetIds, context) }),
|
|
3057
3039
|
};
|
|
3058
3040
|
};
|
|
3059
3041
|
const serializeAws_json1_1UpdateUserRequest = (input, context) => {
|
|
3060
3042
|
return {
|
|
3061
|
-
...(input.AccessString
|
|
3062
|
-
...(input.AuthenticationMode
|
|
3063
|
-
input.AuthenticationMode !== null && {
|
|
3043
|
+
...(input.AccessString != null && { AccessString: input.AccessString }),
|
|
3044
|
+
...(input.AuthenticationMode != null && {
|
|
3064
3045
|
AuthenticationMode: serializeAws_json1_1AuthenticationMode(input.AuthenticationMode, context),
|
|
3065
3046
|
}),
|
|
3066
|
-
...(input.UserName
|
|
3047
|
+
...(input.UserName != null && { UserName: input.UserName }),
|
|
3067
3048
|
};
|
|
3068
3049
|
};
|
|
3069
3050
|
const serializeAws_json1_1UserNameListInput = (input, context) => {
|
|
@@ -3079,18 +3060,14 @@ const serializeAws_json1_1UserNameListInput = (input, context) => {
|
|
|
3079
3060
|
const deserializeAws_json1_1ACL = (output, context) => {
|
|
3080
3061
|
return {
|
|
3081
3062
|
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
3082
|
-
Clusters: output.Clusters
|
|
3083
|
-
? deserializeAws_json1_1ACLClusterNameList(output.Clusters, context)
|
|
3084
|
-
: undefined,
|
|
3063
|
+
Clusters: output.Clusters != null ? deserializeAws_json1_1ACLClusterNameList(output.Clusters, context) : undefined,
|
|
3085
3064
|
MinimumEngineVersion: (0, smithy_client_1.expectString)(output.MinimumEngineVersion),
|
|
3086
3065
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3087
|
-
PendingChanges: output.PendingChanges
|
|
3066
|
+
PendingChanges: output.PendingChanges != null
|
|
3088
3067
|
? deserializeAws_json1_1ACLPendingChanges(output.PendingChanges, context)
|
|
3089
3068
|
: undefined,
|
|
3090
3069
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3091
|
-
UserNames: output.UserNames
|
|
3092
|
-
? deserializeAws_json1_1UserNameList(output.UserNames, context)
|
|
3093
|
-
: undefined,
|
|
3070
|
+
UserNames: output.UserNames != null ? deserializeAws_json1_1UserNameList(output.UserNames, context) : undefined,
|
|
3094
3071
|
};
|
|
3095
3072
|
};
|
|
3096
3073
|
const deserializeAws_json1_1ACLAlreadyExistsFault = (output, context) => {
|
|
@@ -3138,10 +3115,8 @@ const deserializeAws_json1_1ACLNotFoundFault = (output, context) => {
|
|
|
3138
3115
|
};
|
|
3139
3116
|
const deserializeAws_json1_1ACLPendingChanges = (output, context) => {
|
|
3140
3117
|
return {
|
|
3141
|
-
UserNamesToAdd: output.UserNamesToAdd
|
|
3142
|
-
|
|
3143
|
-
: undefined,
|
|
3144
|
-
UserNamesToRemove: output.UserNamesToRemove !== undefined && output.UserNamesToRemove !== null
|
|
3118
|
+
UserNamesToAdd: output.UserNamesToAdd != null ? deserializeAws_json1_1UserNameList(output.UserNamesToAdd, context) : undefined,
|
|
3119
|
+
UserNamesToRemove: output.UserNamesToRemove != null
|
|
3145
3120
|
? deserializeAws_json1_1UserNameList(output.UserNamesToRemove, context)
|
|
3146
3121
|
: undefined,
|
|
3147
3122
|
};
|
|
@@ -3174,10 +3149,10 @@ const deserializeAws_json1_1AvailabilityZone = (output, context) => {
|
|
|
3174
3149
|
};
|
|
3175
3150
|
const deserializeAws_json1_1BatchUpdateClusterResponse = (output, context) => {
|
|
3176
3151
|
return {
|
|
3177
|
-
ProcessedClusters: output.ProcessedClusters
|
|
3152
|
+
ProcessedClusters: output.ProcessedClusters != null
|
|
3178
3153
|
? deserializeAws_json1_1ClusterList(output.ProcessedClusters, context)
|
|
3179
3154
|
: undefined,
|
|
3180
|
-
UnprocessedClusters: output.UnprocessedClusters
|
|
3155
|
+
UnprocessedClusters: output.UnprocessedClusters != null
|
|
3181
3156
|
? deserializeAws_json1_1UnprocessedClusterList(output.UnprocessedClusters, context)
|
|
3182
3157
|
: undefined,
|
|
3183
3158
|
};
|
|
@@ -3188,9 +3163,7 @@ const deserializeAws_json1_1Cluster = (output, context) => {
|
|
|
3188
3163
|
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
3189
3164
|
AutoMinorVersionUpgrade: (0, smithy_client_1.expectBoolean)(output.AutoMinorVersionUpgrade),
|
|
3190
3165
|
AvailabilityMode: (0, smithy_client_1.expectString)(output.AvailabilityMode),
|
|
3191
|
-
ClusterEndpoint: output.ClusterEndpoint
|
|
3192
|
-
? deserializeAws_json1_1Endpoint(output.ClusterEndpoint, context)
|
|
3193
|
-
: undefined,
|
|
3166
|
+
ClusterEndpoint: output.ClusterEndpoint != null ? deserializeAws_json1_1Endpoint(output.ClusterEndpoint, context) : undefined,
|
|
3194
3167
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
3195
3168
|
EnginePatchVersion: (0, smithy_client_1.expectString)(output.EnginePatchVersion),
|
|
3196
3169
|
EngineVersion: (0, smithy_client_1.expectString)(output.EngineVersion),
|
|
@@ -3201,15 +3174,13 @@ const deserializeAws_json1_1Cluster = (output, context) => {
|
|
|
3201
3174
|
NumberOfShards: (0, smithy_client_1.expectInt32)(output.NumberOfShards),
|
|
3202
3175
|
ParameterGroupName: (0, smithy_client_1.expectString)(output.ParameterGroupName),
|
|
3203
3176
|
ParameterGroupStatus: (0, smithy_client_1.expectString)(output.ParameterGroupStatus),
|
|
3204
|
-
PendingUpdates: output.PendingUpdates
|
|
3177
|
+
PendingUpdates: output.PendingUpdates != null
|
|
3205
3178
|
? deserializeAws_json1_1ClusterPendingUpdates(output.PendingUpdates, context)
|
|
3206
3179
|
: undefined,
|
|
3207
|
-
SecurityGroups: output.SecurityGroups
|
|
3180
|
+
SecurityGroups: output.SecurityGroups != null
|
|
3208
3181
|
? deserializeAws_json1_1SecurityGroupMembershipList(output.SecurityGroups, context)
|
|
3209
3182
|
: undefined,
|
|
3210
|
-
Shards: output.Shards
|
|
3211
|
-
? deserializeAws_json1_1ShardList(output.Shards, context)
|
|
3212
|
-
: undefined,
|
|
3183
|
+
Shards: output.Shards != null ? deserializeAws_json1_1ShardList(output.Shards, context) : undefined,
|
|
3213
3184
|
SnapshotRetentionLimit: (0, smithy_client_1.expectInt32)(output.SnapshotRetentionLimit),
|
|
3214
3185
|
SnapshotWindow: (0, smithy_client_1.expectString)(output.SnapshotWindow),
|
|
3215
3186
|
SnsTopicArn: (0, smithy_client_1.expectString)(output.SnsTopicArn),
|
|
@@ -3234,9 +3205,7 @@ const deserializeAws_json1_1ClusterConfiguration = (output, context) => {
|
|
|
3234
3205
|
NumShards: (0, smithy_client_1.expectInt32)(output.NumShards),
|
|
3235
3206
|
ParameterGroupName: (0, smithy_client_1.expectString)(output.ParameterGroupName),
|
|
3236
3207
|
Port: (0, smithy_client_1.expectInt32)(output.Port),
|
|
3237
|
-
Shards: output.Shards
|
|
3238
|
-
? deserializeAws_json1_1ShardDetails(output.Shards, context)
|
|
3239
|
-
: undefined,
|
|
3208
|
+
Shards: output.Shards != null ? deserializeAws_json1_1ShardDetails(output.Shards, context) : undefined,
|
|
3240
3209
|
SnapshotRetentionLimit: (0, smithy_client_1.expectInt32)(output.SnapshotRetentionLimit),
|
|
3241
3210
|
SnapshotWindow: (0, smithy_client_1.expectString)(output.SnapshotWindow),
|
|
3242
3211
|
SubnetGroupName: (0, smithy_client_1.expectString)(output.SubnetGroupName),
|
|
@@ -3262,13 +3231,9 @@ const deserializeAws_json1_1ClusterNotFoundFault = (output, context) => {
|
|
|
3262
3231
|
};
|
|
3263
3232
|
const deserializeAws_json1_1ClusterPendingUpdates = (output, context) => {
|
|
3264
3233
|
return {
|
|
3265
|
-
ACLs: output.ACLs
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
Resharding: output.Resharding !== undefined && output.Resharding !== null
|
|
3269
|
-
? deserializeAws_json1_1ReshardingStatus(output.Resharding, context)
|
|
3270
|
-
: undefined,
|
|
3271
|
-
ServiceUpdates: output.ServiceUpdates !== undefined && output.ServiceUpdates !== null
|
|
3234
|
+
ACLs: output.ACLs != null ? deserializeAws_json1_1ACLsUpdateStatus(output.ACLs, context) : undefined,
|
|
3235
|
+
Resharding: output.Resharding != null ? deserializeAws_json1_1ReshardingStatus(output.Resharding, context) : undefined,
|
|
3236
|
+
ServiceUpdates: output.ServiceUpdates != null
|
|
3272
3237
|
? deserializeAws_json1_1PendingModifiedServiceUpdateList(output.ServiceUpdates, context)
|
|
3273
3238
|
: undefined,
|
|
3274
3239
|
};
|
|
@@ -3280,47 +3245,37 @@ const deserializeAws_json1_1ClusterQuotaForCustomerExceededFault = (output, cont
|
|
|
3280
3245
|
};
|
|
3281
3246
|
const deserializeAws_json1_1CopySnapshotResponse = (output, context) => {
|
|
3282
3247
|
return {
|
|
3283
|
-
Snapshot: output.Snapshot
|
|
3284
|
-
? deserializeAws_json1_1Snapshot(output.Snapshot, context)
|
|
3285
|
-
: undefined,
|
|
3248
|
+
Snapshot: output.Snapshot != null ? deserializeAws_json1_1Snapshot(output.Snapshot, context) : undefined,
|
|
3286
3249
|
};
|
|
3287
3250
|
};
|
|
3288
3251
|
const deserializeAws_json1_1CreateACLResponse = (output, context) => {
|
|
3289
3252
|
return {
|
|
3290
|
-
ACL: output.ACL
|
|
3253
|
+
ACL: output.ACL != null ? deserializeAws_json1_1ACL(output.ACL, context) : undefined,
|
|
3291
3254
|
};
|
|
3292
3255
|
};
|
|
3293
3256
|
const deserializeAws_json1_1CreateClusterResponse = (output, context) => {
|
|
3294
3257
|
return {
|
|
3295
|
-
Cluster: output.Cluster
|
|
3296
|
-
? deserializeAws_json1_1Cluster(output.Cluster, context)
|
|
3297
|
-
: undefined,
|
|
3258
|
+
Cluster: output.Cluster != null ? deserializeAws_json1_1Cluster(output.Cluster, context) : undefined,
|
|
3298
3259
|
};
|
|
3299
3260
|
};
|
|
3300
3261
|
const deserializeAws_json1_1CreateParameterGroupResponse = (output, context) => {
|
|
3301
3262
|
return {
|
|
3302
|
-
ParameterGroup: output.ParameterGroup
|
|
3303
|
-
? deserializeAws_json1_1ParameterGroup(output.ParameterGroup, context)
|
|
3304
|
-
: undefined,
|
|
3263
|
+
ParameterGroup: output.ParameterGroup != null ? deserializeAws_json1_1ParameterGroup(output.ParameterGroup, context) : undefined,
|
|
3305
3264
|
};
|
|
3306
3265
|
};
|
|
3307
3266
|
const deserializeAws_json1_1CreateSnapshotResponse = (output, context) => {
|
|
3308
3267
|
return {
|
|
3309
|
-
Snapshot: output.Snapshot
|
|
3310
|
-
? deserializeAws_json1_1Snapshot(output.Snapshot, context)
|
|
3311
|
-
: undefined,
|
|
3268
|
+
Snapshot: output.Snapshot != null ? deserializeAws_json1_1Snapshot(output.Snapshot, context) : undefined,
|
|
3312
3269
|
};
|
|
3313
3270
|
};
|
|
3314
3271
|
const deserializeAws_json1_1CreateSubnetGroupResponse = (output, context) => {
|
|
3315
3272
|
return {
|
|
3316
|
-
SubnetGroup: output.SubnetGroup
|
|
3317
|
-
? deserializeAws_json1_1SubnetGroup(output.SubnetGroup, context)
|
|
3318
|
-
: undefined,
|
|
3273
|
+
SubnetGroup: output.SubnetGroup != null ? deserializeAws_json1_1SubnetGroup(output.SubnetGroup, context) : undefined,
|
|
3319
3274
|
};
|
|
3320
3275
|
};
|
|
3321
3276
|
const deserializeAws_json1_1CreateUserResponse = (output, context) => {
|
|
3322
3277
|
return {
|
|
3323
|
-
User: output.User
|
|
3278
|
+
User: output.User != null ? deserializeAws_json1_1User(output.User, context) : undefined,
|
|
3324
3279
|
};
|
|
3325
3280
|
};
|
|
3326
3281
|
const deserializeAws_json1_1DefaultUserRequired = (output, context) => {
|
|
@@ -3330,61 +3285,49 @@ const deserializeAws_json1_1DefaultUserRequired = (output, context) => {
|
|
|
3330
3285
|
};
|
|
3331
3286
|
const deserializeAws_json1_1DeleteACLResponse = (output, context) => {
|
|
3332
3287
|
return {
|
|
3333
|
-
ACL: output.ACL
|
|
3288
|
+
ACL: output.ACL != null ? deserializeAws_json1_1ACL(output.ACL, context) : undefined,
|
|
3334
3289
|
};
|
|
3335
3290
|
};
|
|
3336
3291
|
const deserializeAws_json1_1DeleteClusterResponse = (output, context) => {
|
|
3337
3292
|
return {
|
|
3338
|
-
Cluster: output.Cluster
|
|
3339
|
-
? deserializeAws_json1_1Cluster(output.Cluster, context)
|
|
3340
|
-
: undefined,
|
|
3293
|
+
Cluster: output.Cluster != null ? deserializeAws_json1_1Cluster(output.Cluster, context) : undefined,
|
|
3341
3294
|
};
|
|
3342
3295
|
};
|
|
3343
3296
|
const deserializeAws_json1_1DeleteParameterGroupResponse = (output, context) => {
|
|
3344
3297
|
return {
|
|
3345
|
-
ParameterGroup: output.ParameterGroup
|
|
3346
|
-
? deserializeAws_json1_1ParameterGroup(output.ParameterGroup, context)
|
|
3347
|
-
: undefined,
|
|
3298
|
+
ParameterGroup: output.ParameterGroup != null ? deserializeAws_json1_1ParameterGroup(output.ParameterGroup, context) : undefined,
|
|
3348
3299
|
};
|
|
3349
3300
|
};
|
|
3350
3301
|
const deserializeAws_json1_1DeleteSnapshotResponse = (output, context) => {
|
|
3351
3302
|
return {
|
|
3352
|
-
Snapshot: output.Snapshot
|
|
3353
|
-
? deserializeAws_json1_1Snapshot(output.Snapshot, context)
|
|
3354
|
-
: undefined,
|
|
3303
|
+
Snapshot: output.Snapshot != null ? deserializeAws_json1_1Snapshot(output.Snapshot, context) : undefined,
|
|
3355
3304
|
};
|
|
3356
3305
|
};
|
|
3357
3306
|
const deserializeAws_json1_1DeleteSubnetGroupResponse = (output, context) => {
|
|
3358
3307
|
return {
|
|
3359
|
-
SubnetGroup: output.SubnetGroup
|
|
3360
|
-
? deserializeAws_json1_1SubnetGroup(output.SubnetGroup, context)
|
|
3361
|
-
: undefined,
|
|
3308
|
+
SubnetGroup: output.SubnetGroup != null ? deserializeAws_json1_1SubnetGroup(output.SubnetGroup, context) : undefined,
|
|
3362
3309
|
};
|
|
3363
3310
|
};
|
|
3364
3311
|
const deserializeAws_json1_1DeleteUserResponse = (output, context) => {
|
|
3365
3312
|
return {
|
|
3366
|
-
User: output.User
|
|
3313
|
+
User: output.User != null ? deserializeAws_json1_1User(output.User, context) : undefined,
|
|
3367
3314
|
};
|
|
3368
3315
|
};
|
|
3369
3316
|
const deserializeAws_json1_1DescribeACLsResponse = (output, context) => {
|
|
3370
3317
|
return {
|
|
3371
|
-
ACLs: output.ACLs
|
|
3372
|
-
? deserializeAws_json1_1ACLList(output.ACLs, context)
|
|
3373
|
-
: undefined,
|
|
3318
|
+
ACLs: output.ACLs != null ? deserializeAws_json1_1ACLList(output.ACLs, context) : undefined,
|
|
3374
3319
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3375
3320
|
};
|
|
3376
3321
|
};
|
|
3377
3322
|
const deserializeAws_json1_1DescribeClustersResponse = (output, context) => {
|
|
3378
3323
|
return {
|
|
3379
|
-
Clusters: output.Clusters
|
|
3380
|
-
? deserializeAws_json1_1ClusterList(output.Clusters, context)
|
|
3381
|
-
: undefined,
|
|
3324
|
+
Clusters: output.Clusters != null ? deserializeAws_json1_1ClusterList(output.Clusters, context) : undefined,
|
|
3382
3325
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3383
3326
|
};
|
|
3384
3327
|
};
|
|
3385
3328
|
const deserializeAws_json1_1DescribeEngineVersionsResponse = (output, context) => {
|
|
3386
3329
|
return {
|
|
3387
|
-
EngineVersions: output.EngineVersions
|
|
3330
|
+
EngineVersions: output.EngineVersions != null
|
|
3388
3331
|
? deserializeAws_json1_1EngineVersionInfoList(output.EngineVersions, context)
|
|
3389
3332
|
: undefined,
|
|
3390
3333
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -3392,16 +3335,14 @@ const deserializeAws_json1_1DescribeEngineVersionsResponse = (output, context) =
|
|
|
3392
3335
|
};
|
|
3393
3336
|
const deserializeAws_json1_1DescribeEventsResponse = (output, context) => {
|
|
3394
3337
|
return {
|
|
3395
|
-
Events: output.Events
|
|
3396
|
-
? deserializeAws_json1_1EventList(output.Events, context)
|
|
3397
|
-
: undefined,
|
|
3338
|
+
Events: output.Events != null ? deserializeAws_json1_1EventList(output.Events, context) : undefined,
|
|
3398
3339
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3399
3340
|
};
|
|
3400
3341
|
};
|
|
3401
3342
|
const deserializeAws_json1_1DescribeParameterGroupsResponse = (output, context) => {
|
|
3402
3343
|
return {
|
|
3403
3344
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3404
|
-
ParameterGroups: output.ParameterGroups
|
|
3345
|
+
ParameterGroups: output.ParameterGroups != null
|
|
3405
3346
|
? deserializeAws_json1_1ParameterGroupList(output.ParameterGroups, context)
|
|
3406
3347
|
: undefined,
|
|
3407
3348
|
};
|
|
@@ -3409,15 +3350,13 @@ const deserializeAws_json1_1DescribeParameterGroupsResponse = (output, context)
|
|
|
3409
3350
|
const deserializeAws_json1_1DescribeParametersResponse = (output, context) => {
|
|
3410
3351
|
return {
|
|
3411
3352
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3412
|
-
Parameters: output.Parameters
|
|
3413
|
-
? deserializeAws_json1_1ParametersList(output.Parameters, context)
|
|
3414
|
-
: undefined,
|
|
3353
|
+
Parameters: output.Parameters != null ? deserializeAws_json1_1ParametersList(output.Parameters, context) : undefined,
|
|
3415
3354
|
};
|
|
3416
3355
|
};
|
|
3417
3356
|
const deserializeAws_json1_1DescribeServiceUpdatesResponse = (output, context) => {
|
|
3418
3357
|
return {
|
|
3419
3358
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3420
|
-
ServiceUpdates: output.ServiceUpdates
|
|
3359
|
+
ServiceUpdates: output.ServiceUpdates != null
|
|
3421
3360
|
? deserializeAws_json1_1ServiceUpdateList(output.ServiceUpdates, context)
|
|
3422
3361
|
: undefined,
|
|
3423
3362
|
};
|
|
@@ -3425,25 +3364,19 @@ const deserializeAws_json1_1DescribeServiceUpdatesResponse = (output, context) =
|
|
|
3425
3364
|
const deserializeAws_json1_1DescribeSnapshotsResponse = (output, context) => {
|
|
3426
3365
|
return {
|
|
3427
3366
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3428
|
-
Snapshots: output.Snapshots
|
|
3429
|
-
? deserializeAws_json1_1SnapshotList(output.Snapshots, context)
|
|
3430
|
-
: undefined,
|
|
3367
|
+
Snapshots: output.Snapshots != null ? deserializeAws_json1_1SnapshotList(output.Snapshots, context) : undefined,
|
|
3431
3368
|
};
|
|
3432
3369
|
};
|
|
3433
3370
|
const deserializeAws_json1_1DescribeSubnetGroupsResponse = (output, context) => {
|
|
3434
3371
|
return {
|
|
3435
3372
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3436
|
-
SubnetGroups: output.SubnetGroups
|
|
3437
|
-
? deserializeAws_json1_1SubnetGroupList(output.SubnetGroups, context)
|
|
3438
|
-
: undefined,
|
|
3373
|
+
SubnetGroups: output.SubnetGroups != null ? deserializeAws_json1_1SubnetGroupList(output.SubnetGroups, context) : undefined,
|
|
3439
3374
|
};
|
|
3440
3375
|
};
|
|
3441
3376
|
const deserializeAws_json1_1DescribeUsersResponse = (output, context) => {
|
|
3442
3377
|
return {
|
|
3443
3378
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3444
|
-
Users: output.Users
|
|
3445
|
-
? deserializeAws_json1_1UserList(output.Users, context)
|
|
3446
|
-
: undefined,
|
|
3379
|
+
Users: output.Users != null ? deserializeAws_json1_1UserList(output.Users, context) : undefined,
|
|
3447
3380
|
};
|
|
3448
3381
|
};
|
|
3449
3382
|
const deserializeAws_json1_1DuplicateUserNameFault = (output, context) => {
|
|
@@ -3477,9 +3410,7 @@ const deserializeAws_json1_1EngineVersionInfoList = (output, context) => {
|
|
|
3477
3410
|
};
|
|
3478
3411
|
const deserializeAws_json1_1Event = (output, context) => {
|
|
3479
3412
|
return {
|
|
3480
|
-
Date: output.Date
|
|
3481
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Date)))
|
|
3482
|
-
: undefined,
|
|
3413
|
+
Date: output.Date != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Date))) : undefined,
|
|
3483
3414
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3484
3415
|
SourceName: (0, smithy_client_1.expectString)(output.SourceName),
|
|
3485
3416
|
SourceType: (0, smithy_client_1.expectString)(output.SourceType),
|
|
@@ -3498,9 +3429,7 @@ const deserializeAws_json1_1EventList = (output, context) => {
|
|
|
3498
3429
|
};
|
|
3499
3430
|
const deserializeAws_json1_1FailoverShardResponse = (output, context) => {
|
|
3500
3431
|
return {
|
|
3501
|
-
Cluster: output.Cluster
|
|
3502
|
-
? deserializeAws_json1_1Cluster(output.Cluster, context)
|
|
3503
|
-
: undefined,
|
|
3432
|
+
Cluster: output.Cluster != null ? deserializeAws_json1_1Cluster(output.Cluster, context) : undefined,
|
|
3504
3433
|
};
|
|
3505
3434
|
};
|
|
3506
3435
|
const deserializeAws_json1_1InsufficientClusterCapacityFault = (output, context) => {
|
|
@@ -3575,30 +3504,24 @@ const deserializeAws_json1_1InvalidVPCNetworkStateFault = (output, context) => {
|
|
|
3575
3504
|
};
|
|
3576
3505
|
const deserializeAws_json1_1ListAllowedNodeTypeUpdatesResponse = (output, context) => {
|
|
3577
3506
|
return {
|
|
3578
|
-
ScaleDownNodeTypes: output.ScaleDownNodeTypes
|
|
3507
|
+
ScaleDownNodeTypes: output.ScaleDownNodeTypes != null
|
|
3579
3508
|
? deserializeAws_json1_1NodeTypeList(output.ScaleDownNodeTypes, context)
|
|
3580
3509
|
: undefined,
|
|
3581
|
-
ScaleUpNodeTypes: output.ScaleUpNodeTypes
|
|
3510
|
+
ScaleUpNodeTypes: output.ScaleUpNodeTypes != null
|
|
3582
3511
|
? deserializeAws_json1_1NodeTypeList(output.ScaleUpNodeTypes, context)
|
|
3583
3512
|
: undefined,
|
|
3584
3513
|
};
|
|
3585
3514
|
};
|
|
3586
3515
|
const deserializeAws_json1_1ListTagsResponse = (output, context) => {
|
|
3587
3516
|
return {
|
|
3588
|
-
TagList: output.TagList
|
|
3589
|
-
? deserializeAws_json1_1TagList(output.TagList, context)
|
|
3590
|
-
: undefined,
|
|
3517
|
+
TagList: output.TagList != null ? deserializeAws_json1_1TagList(output.TagList, context) : undefined,
|
|
3591
3518
|
};
|
|
3592
3519
|
};
|
|
3593
3520
|
const deserializeAws_json1_1Node = (output, context) => {
|
|
3594
3521
|
return {
|
|
3595
3522
|
AvailabilityZone: (0, smithy_client_1.expectString)(output.AvailabilityZone),
|
|
3596
|
-
CreateTime: output.CreateTime
|
|
3597
|
-
|
|
3598
|
-
: undefined,
|
|
3599
|
-
Endpoint: output.Endpoint !== undefined && output.Endpoint !== null
|
|
3600
|
-
? deserializeAws_json1_1Endpoint(output.Endpoint, context)
|
|
3601
|
-
: undefined,
|
|
3523
|
+
CreateTime: output.CreateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateTime))) : undefined,
|
|
3524
|
+
Endpoint: output.Endpoint != null ? deserializeAws_json1_1Endpoint(output.Endpoint, context) : undefined,
|
|
3602
3525
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3603
3526
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3604
3527
|
};
|
|
@@ -3714,16 +3637,12 @@ const deserializeAws_json1_1PendingModifiedServiceUpdateList = (output, context)
|
|
|
3714
3637
|
};
|
|
3715
3638
|
const deserializeAws_json1_1ResetParameterGroupResponse = (output, context) => {
|
|
3716
3639
|
return {
|
|
3717
|
-
ParameterGroup: output.ParameterGroup
|
|
3718
|
-
? deserializeAws_json1_1ParameterGroup(output.ParameterGroup, context)
|
|
3719
|
-
: undefined,
|
|
3640
|
+
ParameterGroup: output.ParameterGroup != null ? deserializeAws_json1_1ParameterGroup(output.ParameterGroup, context) : undefined,
|
|
3720
3641
|
};
|
|
3721
3642
|
};
|
|
3722
3643
|
const deserializeAws_json1_1ReshardingStatus = (output, context) => {
|
|
3723
3644
|
return {
|
|
3724
|
-
SlotMigration: output.SlotMigration
|
|
3725
|
-
? deserializeAws_json1_1SlotMigration(output.SlotMigration, context)
|
|
3726
|
-
: undefined,
|
|
3645
|
+
SlotMigration: output.SlotMigration != null ? deserializeAws_json1_1SlotMigration(output.SlotMigration, context) : undefined,
|
|
3727
3646
|
};
|
|
3728
3647
|
};
|
|
3729
3648
|
const deserializeAws_json1_1SecurityGroupMembership = (output, context) => {
|
|
@@ -3750,13 +3669,13 @@ const deserializeAws_json1_1ServiceLinkedRoleNotFoundFault = (output, context) =
|
|
|
3750
3669
|
};
|
|
3751
3670
|
const deserializeAws_json1_1ServiceUpdate = (output, context) => {
|
|
3752
3671
|
return {
|
|
3753
|
-
AutoUpdateStartDate: output.AutoUpdateStartDate
|
|
3672
|
+
AutoUpdateStartDate: output.AutoUpdateStartDate != null
|
|
3754
3673
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.AutoUpdateStartDate)))
|
|
3755
3674
|
: undefined,
|
|
3756
3675
|
ClusterName: (0, smithy_client_1.expectString)(output.ClusterName),
|
|
3757
3676
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
3758
3677
|
NodesUpdated: (0, smithy_client_1.expectString)(output.NodesUpdated),
|
|
3759
|
-
ReleaseDate: output.ReleaseDate
|
|
3678
|
+
ReleaseDate: output.ReleaseDate != null
|
|
3760
3679
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReleaseDate)))
|
|
3761
3680
|
: undefined,
|
|
3762
3681
|
ServiceUpdateName: (0, smithy_client_1.expectString)(output.ServiceUpdateName),
|
|
@@ -3783,9 +3702,7 @@ const deserializeAws_json1_1ServiceUpdateNotFoundFault = (output, context) => {
|
|
|
3783
3702
|
const deserializeAws_json1_1Shard = (output, context) => {
|
|
3784
3703
|
return {
|
|
3785
3704
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3786
|
-
Nodes: output.Nodes
|
|
3787
|
-
? deserializeAws_json1_1NodeList(output.Nodes, context)
|
|
3788
|
-
: undefined,
|
|
3705
|
+
Nodes: output.Nodes != null ? deserializeAws_json1_1NodeList(output.Nodes, context) : undefined,
|
|
3789
3706
|
NumberOfNodes: (0, smithy_client_1.expectInt32)(output.NumberOfNodes),
|
|
3790
3707
|
Slots: (0, smithy_client_1.expectString)(output.Slots),
|
|
3791
3708
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
@@ -3799,12 +3716,12 @@ const deserializeAws_json1_1ShardConfiguration = (output, context) => {
|
|
|
3799
3716
|
};
|
|
3800
3717
|
const deserializeAws_json1_1ShardDetail = (output, context) => {
|
|
3801
3718
|
return {
|
|
3802
|
-
Configuration: output.Configuration
|
|
3719
|
+
Configuration: output.Configuration != null
|
|
3803
3720
|
? deserializeAws_json1_1ShardConfiguration(output.Configuration, context)
|
|
3804
3721
|
: undefined,
|
|
3805
3722
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3806
3723
|
Size: (0, smithy_client_1.expectString)(output.Size),
|
|
3807
|
-
SnapshotCreationTime: output.SnapshotCreationTime
|
|
3724
|
+
SnapshotCreationTime: output.SnapshotCreationTime != null
|
|
3808
3725
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SnapshotCreationTime)))
|
|
3809
3726
|
: undefined,
|
|
3810
3727
|
};
|
|
@@ -3849,7 +3766,7 @@ const deserializeAws_json1_1SlotMigration = (output, context) => {
|
|
|
3849
3766
|
const deserializeAws_json1_1Snapshot = (output, context) => {
|
|
3850
3767
|
return {
|
|
3851
3768
|
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
3852
|
-
ClusterConfiguration: output.ClusterConfiguration
|
|
3769
|
+
ClusterConfiguration: output.ClusterConfiguration != null
|
|
3853
3770
|
? deserializeAws_json1_1ClusterConfiguration(output.ClusterConfiguration, context)
|
|
3854
3771
|
: undefined,
|
|
3855
3772
|
KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
|
|
@@ -3886,7 +3803,7 @@ const deserializeAws_json1_1SnapshotQuotaExceededFault = (output, context) => {
|
|
|
3886
3803
|
};
|
|
3887
3804
|
const deserializeAws_json1_1Subnet = (output, context) => {
|
|
3888
3805
|
return {
|
|
3889
|
-
AvailabilityZone: output.AvailabilityZone
|
|
3806
|
+
AvailabilityZone: output.AvailabilityZone != null
|
|
3890
3807
|
? deserializeAws_json1_1AvailabilityZone(output.AvailabilityZone, context)
|
|
3891
3808
|
: undefined,
|
|
3892
3809
|
Identifier: (0, smithy_client_1.expectString)(output.Identifier),
|
|
@@ -3897,9 +3814,7 @@ const deserializeAws_json1_1SubnetGroup = (output, context) => {
|
|
|
3897
3814
|
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
3898
3815
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
3899
3816
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3900
|
-
Subnets: output.Subnets
|
|
3901
|
-
? deserializeAws_json1_1SubnetList(output.Subnets, context)
|
|
3902
|
-
: undefined,
|
|
3817
|
+
Subnets: output.Subnets != null ? deserializeAws_json1_1SubnetList(output.Subnets, context) : undefined,
|
|
3903
3818
|
VpcId: (0, smithy_client_1.expectString)(output.VpcId),
|
|
3904
3819
|
};
|
|
3905
3820
|
};
|
|
@@ -3989,9 +3904,7 @@ const deserializeAws_json1_1TagQuotaPerResourceExceeded = (output, context) => {
|
|
|
3989
3904
|
};
|
|
3990
3905
|
const deserializeAws_json1_1TagResourceResponse = (output, context) => {
|
|
3991
3906
|
return {
|
|
3992
|
-
TagList: output.TagList
|
|
3993
|
-
? deserializeAws_json1_1TagList(output.TagList, context)
|
|
3994
|
-
: undefined,
|
|
3907
|
+
TagList: output.TagList != null ? deserializeAws_json1_1TagList(output.TagList, context) : undefined,
|
|
3995
3908
|
};
|
|
3996
3909
|
};
|
|
3997
3910
|
const deserializeAws_json1_1TestFailoverNotAvailableFault = (output, context) => {
|
|
@@ -4019,52 +3932,40 @@ const deserializeAws_json1_1UnprocessedClusterList = (output, context) => {
|
|
|
4019
3932
|
};
|
|
4020
3933
|
const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
4021
3934
|
return {
|
|
4022
|
-
TagList: output.TagList
|
|
4023
|
-
? deserializeAws_json1_1TagList(output.TagList, context)
|
|
4024
|
-
: undefined,
|
|
3935
|
+
TagList: output.TagList != null ? deserializeAws_json1_1TagList(output.TagList, context) : undefined,
|
|
4025
3936
|
};
|
|
4026
3937
|
};
|
|
4027
3938
|
const deserializeAws_json1_1UpdateACLResponse = (output, context) => {
|
|
4028
3939
|
return {
|
|
4029
|
-
ACL: output.ACL
|
|
3940
|
+
ACL: output.ACL != null ? deserializeAws_json1_1ACL(output.ACL, context) : undefined,
|
|
4030
3941
|
};
|
|
4031
3942
|
};
|
|
4032
3943
|
const deserializeAws_json1_1UpdateClusterResponse = (output, context) => {
|
|
4033
3944
|
return {
|
|
4034
|
-
Cluster: output.Cluster
|
|
4035
|
-
? deserializeAws_json1_1Cluster(output.Cluster, context)
|
|
4036
|
-
: undefined,
|
|
3945
|
+
Cluster: output.Cluster != null ? deserializeAws_json1_1Cluster(output.Cluster, context) : undefined,
|
|
4037
3946
|
};
|
|
4038
3947
|
};
|
|
4039
3948
|
const deserializeAws_json1_1UpdateParameterGroupResponse = (output, context) => {
|
|
4040
3949
|
return {
|
|
4041
|
-
ParameterGroup: output.ParameterGroup
|
|
4042
|
-
? deserializeAws_json1_1ParameterGroup(output.ParameterGroup, context)
|
|
4043
|
-
: undefined,
|
|
3950
|
+
ParameterGroup: output.ParameterGroup != null ? deserializeAws_json1_1ParameterGroup(output.ParameterGroup, context) : undefined,
|
|
4044
3951
|
};
|
|
4045
3952
|
};
|
|
4046
3953
|
const deserializeAws_json1_1UpdateSubnetGroupResponse = (output, context) => {
|
|
4047
3954
|
return {
|
|
4048
|
-
SubnetGroup: output.SubnetGroup
|
|
4049
|
-
? deserializeAws_json1_1SubnetGroup(output.SubnetGroup, context)
|
|
4050
|
-
: undefined,
|
|
3955
|
+
SubnetGroup: output.SubnetGroup != null ? deserializeAws_json1_1SubnetGroup(output.SubnetGroup, context) : undefined,
|
|
4051
3956
|
};
|
|
4052
3957
|
};
|
|
4053
3958
|
const deserializeAws_json1_1UpdateUserResponse = (output, context) => {
|
|
4054
3959
|
return {
|
|
4055
|
-
User: output.User
|
|
3960
|
+
User: output.User != null ? deserializeAws_json1_1User(output.User, context) : undefined,
|
|
4056
3961
|
};
|
|
4057
3962
|
};
|
|
4058
3963
|
const deserializeAws_json1_1User = (output, context) => {
|
|
4059
3964
|
return {
|
|
4060
|
-
ACLNames: output.ACLNames
|
|
4061
|
-
? deserializeAws_json1_1ACLNameList(output.ACLNames, context)
|
|
4062
|
-
: undefined,
|
|
3965
|
+
ACLNames: output.ACLNames != null ? deserializeAws_json1_1ACLNameList(output.ACLNames, context) : undefined,
|
|
4063
3966
|
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
4064
3967
|
AccessString: (0, smithy_client_1.expectString)(output.AccessString),
|
|
4065
|
-
Authentication: output.Authentication
|
|
4066
|
-
? deserializeAws_json1_1Authentication(output.Authentication, context)
|
|
4067
|
-
: undefined,
|
|
3968
|
+
Authentication: output.Authentication != null ? deserializeAws_json1_1Authentication(output.Authentication, context) : undefined,
|
|
4068
3969
|
MinimumEngineVersion: (0, smithy_client_1.expectString)(output.MinimumEngineVersion),
|
|
4069
3970
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4070
3971
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
@@ -4169,5 +4070,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
4169
4070
|
if (data["__type"] !== undefined) {
|
|
4170
4071
|
return sanitizeErrorCode(data["__type"]);
|
|
4171
4072
|
}
|
|
4172
|
-
return "";
|
|
4173
4073
|
};
|